@aws-sdk/client-cloudcontrol 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/CancelResourceRequestCommand.js +2 -2
- package/dist-cjs/commands/CreateResourceCommand.js +2 -2
- package/dist-cjs/commands/DeleteResourceCommand.js +2 -2
- package/dist-cjs/commands/GetResourceCommand.js +2 -2
- package/dist-cjs/commands/GetResourceRequestStatusCommand.js +2 -2
- package/dist-cjs/commands/ListResourceRequestsCommand.js +2 -2
- package/dist-cjs/commands/ListResourcesCommand.js +2 -2
- package/dist-cjs/commands/UpdateResourceCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_0.js +258 -262
- package/dist-es/commands/CancelResourceRequestCommand.js +3 -3
- package/dist-es/commands/CreateResourceCommand.js +3 -3
- package/dist-es/commands/DeleteResourceCommand.js +3 -3
- package/dist-es/commands/GetResourceCommand.js +3 -3
- package/dist-es/commands/GetResourceRequestStatusCommand.js +3 -3
- package/dist-es/commands/ListResourceRequestsCommand.js +3 -3
- package/dist-es/commands/ListResourcesCommand.js +3 -3
- package/dist-es/commands/UpdateResourceCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_0.js +241 -245
- package/dist-types/protocols/Aws_json1_0.d.ts +64 -16
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +16 -16
- package/package.json +6 -6
|
@@ -1,106 +1,106 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_UpdateResourceCommand = exports.de_ListResourcesCommand = exports.de_ListResourceRequestsCommand = exports.de_GetResourceRequestStatusCommand = exports.de_GetResourceCommand = exports.de_DeleteResourceCommand = exports.de_CreateResourceCommand = exports.de_CancelResourceRequestCommand = exports.se_UpdateResourceCommand = exports.se_ListResourcesCommand = exports.se_ListResourceRequestsCommand = exports.se_GetResourceRequestStatusCommand = exports.se_GetResourceCommand = exports.se_DeleteResourceCommand = exports.se_CreateResourceCommand = exports.se_CancelResourceRequestCommand = 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 uuid_1 = require("uuid");
|
|
7
7
|
const CloudControlServiceException_1 = require("../models/CloudControlServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const
|
|
9
|
+
const se_CancelResourceRequestCommand = async (input, context) => {
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/x-amz-json-1.0",
|
|
12
12
|
"x-amz-target": "CloudApiService.CancelResourceRequest",
|
|
13
13
|
};
|
|
14
14
|
let body;
|
|
15
|
-
body = JSON.stringify(
|
|
15
|
+
body = JSON.stringify(se_CancelResourceRequestInput(input, context));
|
|
16
16
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
17
|
};
|
|
18
|
-
exports.
|
|
19
|
-
const
|
|
18
|
+
exports.se_CancelResourceRequestCommand = se_CancelResourceRequestCommand;
|
|
19
|
+
const se_CreateResourceCommand = async (input, context) => {
|
|
20
20
|
const headers = {
|
|
21
21
|
"content-type": "application/x-amz-json-1.0",
|
|
22
22
|
"x-amz-target": "CloudApiService.CreateResource",
|
|
23
23
|
};
|
|
24
24
|
let body;
|
|
25
|
-
body = JSON.stringify(
|
|
25
|
+
body = JSON.stringify(se_CreateResourceInput(input, context));
|
|
26
26
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
27
|
};
|
|
28
|
-
exports.
|
|
29
|
-
const
|
|
28
|
+
exports.se_CreateResourceCommand = se_CreateResourceCommand;
|
|
29
|
+
const se_DeleteResourceCommand = async (input, context) => {
|
|
30
30
|
const headers = {
|
|
31
31
|
"content-type": "application/x-amz-json-1.0",
|
|
32
32
|
"x-amz-target": "CloudApiService.DeleteResource",
|
|
33
33
|
};
|
|
34
34
|
let body;
|
|
35
|
-
body = JSON.stringify(
|
|
35
|
+
body = JSON.stringify(se_DeleteResourceInput(input, context));
|
|
36
36
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
37
|
};
|
|
38
|
-
exports.
|
|
39
|
-
const
|
|
38
|
+
exports.se_DeleteResourceCommand = se_DeleteResourceCommand;
|
|
39
|
+
const se_GetResourceCommand = async (input, context) => {
|
|
40
40
|
const headers = {
|
|
41
41
|
"content-type": "application/x-amz-json-1.0",
|
|
42
42
|
"x-amz-target": "CloudApiService.GetResource",
|
|
43
43
|
};
|
|
44
44
|
let body;
|
|
45
|
-
body = JSON.stringify(
|
|
45
|
+
body = JSON.stringify(se_GetResourceInput(input, context));
|
|
46
46
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
47
|
};
|
|
48
|
-
exports.
|
|
49
|
-
const
|
|
48
|
+
exports.se_GetResourceCommand = se_GetResourceCommand;
|
|
49
|
+
const se_GetResourceRequestStatusCommand = async (input, context) => {
|
|
50
50
|
const headers = {
|
|
51
51
|
"content-type": "application/x-amz-json-1.0",
|
|
52
52
|
"x-amz-target": "CloudApiService.GetResourceRequestStatus",
|
|
53
53
|
};
|
|
54
54
|
let body;
|
|
55
|
-
body = JSON.stringify(
|
|
55
|
+
body = JSON.stringify(se_GetResourceRequestStatusInput(input, context));
|
|
56
56
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
57
|
};
|
|
58
|
-
exports.
|
|
59
|
-
const
|
|
58
|
+
exports.se_GetResourceRequestStatusCommand = se_GetResourceRequestStatusCommand;
|
|
59
|
+
const se_ListResourceRequestsCommand = async (input, context) => {
|
|
60
60
|
const headers = {
|
|
61
61
|
"content-type": "application/x-amz-json-1.0",
|
|
62
62
|
"x-amz-target": "CloudApiService.ListResourceRequests",
|
|
63
63
|
};
|
|
64
64
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
65
|
+
body = JSON.stringify(se_ListResourceRequestsInput(input, context));
|
|
66
66
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
67
|
};
|
|
68
|
-
exports.
|
|
69
|
-
const
|
|
68
|
+
exports.se_ListResourceRequestsCommand = se_ListResourceRequestsCommand;
|
|
69
|
+
const se_ListResourcesCommand = async (input, context) => {
|
|
70
70
|
const headers = {
|
|
71
71
|
"content-type": "application/x-amz-json-1.0",
|
|
72
72
|
"x-amz-target": "CloudApiService.ListResources",
|
|
73
73
|
};
|
|
74
74
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify(se_ListResourcesInput(input, context));
|
|
76
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
77
|
};
|
|
78
|
-
exports.
|
|
79
|
-
const
|
|
78
|
+
exports.se_ListResourcesCommand = se_ListResourcesCommand;
|
|
79
|
+
const se_UpdateResourceCommand = async (input, context) => {
|
|
80
80
|
const headers = {
|
|
81
81
|
"content-type": "application/x-amz-json-1.0",
|
|
82
82
|
"x-amz-target": "CloudApiService.UpdateResource",
|
|
83
83
|
};
|
|
84
84
|
let body;
|
|
85
|
-
body = JSON.stringify(
|
|
85
|
+
body = JSON.stringify(se_UpdateResourceInput(input, context));
|
|
86
86
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
87
|
};
|
|
88
|
-
exports.
|
|
89
|
-
const
|
|
88
|
+
exports.se_UpdateResourceCommand = se_UpdateResourceCommand;
|
|
89
|
+
const de_CancelResourceRequestCommand = async (output, context) => {
|
|
90
90
|
if (output.statusCode >= 300) {
|
|
91
|
-
return
|
|
91
|
+
return de_CancelResourceRequestCommandError(output, context);
|
|
92
92
|
}
|
|
93
93
|
const data = await parseBody(output.body, context);
|
|
94
94
|
let contents = {};
|
|
95
|
-
contents =
|
|
95
|
+
contents = de_CancelResourceRequestOutput(data, context);
|
|
96
96
|
const response = {
|
|
97
97
|
$metadata: deserializeMetadata(output),
|
|
98
98
|
...contents,
|
|
99
99
|
};
|
|
100
100
|
return Promise.resolve(response);
|
|
101
101
|
};
|
|
102
|
-
exports.
|
|
103
|
-
const
|
|
102
|
+
exports.de_CancelResourceRequestCommand = de_CancelResourceRequestCommand;
|
|
103
|
+
const de_CancelResourceRequestCommandError = async (output, context) => {
|
|
104
104
|
const parsedOutput = {
|
|
105
105
|
...output,
|
|
106
106
|
body: await parseErrorBody(output.body, context),
|
|
@@ -109,10 +109,10 @@ const deserializeAws_json1_0CancelResourceRequestCommandError = async (output, c
|
|
|
109
109
|
switch (errorCode) {
|
|
110
110
|
case "ConcurrentModificationException":
|
|
111
111
|
case "com.amazonaws.cloudcontrol#ConcurrentModificationException":
|
|
112
|
-
throw await
|
|
112
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
113
113
|
case "RequestTokenNotFoundException":
|
|
114
114
|
case "com.amazonaws.cloudcontrol#RequestTokenNotFoundException":
|
|
115
|
-
throw await
|
|
115
|
+
throw await de_RequestTokenNotFoundExceptionRes(parsedOutput, context);
|
|
116
116
|
default:
|
|
117
117
|
const parsedBody = parsedOutput.body;
|
|
118
118
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -123,21 +123,21 @@ const deserializeAws_json1_0CancelResourceRequestCommandError = async (output, c
|
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
|
-
const
|
|
126
|
+
const de_CreateResourceCommand = async (output, context) => {
|
|
127
127
|
if (output.statusCode >= 300) {
|
|
128
|
-
return
|
|
128
|
+
return de_CreateResourceCommandError(output, context);
|
|
129
129
|
}
|
|
130
130
|
const data = await parseBody(output.body, context);
|
|
131
131
|
let contents = {};
|
|
132
|
-
contents =
|
|
132
|
+
contents = de_CreateResourceOutput(data, context);
|
|
133
133
|
const response = {
|
|
134
134
|
$metadata: deserializeMetadata(output),
|
|
135
135
|
...contents,
|
|
136
136
|
};
|
|
137
137
|
return Promise.resolve(response);
|
|
138
138
|
};
|
|
139
|
-
exports.
|
|
140
|
-
const
|
|
139
|
+
exports.de_CreateResourceCommand = de_CreateResourceCommand;
|
|
140
|
+
const de_CreateResourceCommandError = async (output, context) => {
|
|
141
141
|
const parsedOutput = {
|
|
142
142
|
...output,
|
|
143
143
|
body: await parseErrorBody(output.body, context),
|
|
@@ -146,61 +146,61 @@ const deserializeAws_json1_0CreateResourceCommandError = async (output, context)
|
|
|
146
146
|
switch (errorCode) {
|
|
147
147
|
case "AlreadyExistsException":
|
|
148
148
|
case "com.amazonaws.cloudcontrol#AlreadyExistsException":
|
|
149
|
-
throw await
|
|
149
|
+
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
150
150
|
case "ClientTokenConflictException":
|
|
151
151
|
case "com.amazonaws.cloudcontrol#ClientTokenConflictException":
|
|
152
|
-
throw await
|
|
152
|
+
throw await de_ClientTokenConflictExceptionRes(parsedOutput, context);
|
|
153
153
|
case "ConcurrentOperationException":
|
|
154
154
|
case "com.amazonaws.cloudcontrol#ConcurrentOperationException":
|
|
155
|
-
throw await
|
|
155
|
+
throw await de_ConcurrentOperationExceptionRes(parsedOutput, context);
|
|
156
156
|
case "GeneralServiceException":
|
|
157
157
|
case "com.amazonaws.cloudcontrol#GeneralServiceException":
|
|
158
|
-
throw await
|
|
158
|
+
throw await de_GeneralServiceExceptionRes(parsedOutput, context);
|
|
159
159
|
case "HandlerFailureException":
|
|
160
160
|
case "com.amazonaws.cloudcontrol#HandlerFailureException":
|
|
161
|
-
throw await
|
|
161
|
+
throw await de_HandlerFailureExceptionRes(parsedOutput, context);
|
|
162
162
|
case "HandlerInternalFailureException":
|
|
163
163
|
case "com.amazonaws.cloudcontrol#HandlerInternalFailureException":
|
|
164
|
-
throw await
|
|
164
|
+
throw await de_HandlerInternalFailureExceptionRes(parsedOutput, context);
|
|
165
165
|
case "InvalidCredentialsException":
|
|
166
166
|
case "com.amazonaws.cloudcontrol#InvalidCredentialsException":
|
|
167
|
-
throw await
|
|
167
|
+
throw await de_InvalidCredentialsExceptionRes(parsedOutput, context);
|
|
168
168
|
case "InvalidRequestException":
|
|
169
169
|
case "com.amazonaws.cloudcontrol#InvalidRequestException":
|
|
170
|
-
throw await
|
|
170
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
171
171
|
case "NetworkFailureException":
|
|
172
172
|
case "com.amazonaws.cloudcontrol#NetworkFailureException":
|
|
173
|
-
throw await
|
|
173
|
+
throw await de_NetworkFailureExceptionRes(parsedOutput, context);
|
|
174
174
|
case "NotStabilizedException":
|
|
175
175
|
case "com.amazonaws.cloudcontrol#NotStabilizedException":
|
|
176
|
-
throw await
|
|
176
|
+
throw await de_NotStabilizedExceptionRes(parsedOutput, context);
|
|
177
177
|
case "NotUpdatableException":
|
|
178
178
|
case "com.amazonaws.cloudcontrol#NotUpdatableException":
|
|
179
|
-
throw await
|
|
179
|
+
throw await de_NotUpdatableExceptionRes(parsedOutput, context);
|
|
180
180
|
case "PrivateTypeException":
|
|
181
181
|
case "com.amazonaws.cloudcontrol#PrivateTypeException":
|
|
182
|
-
throw await
|
|
182
|
+
throw await de_PrivateTypeExceptionRes(parsedOutput, context);
|
|
183
183
|
case "ResourceConflictException":
|
|
184
184
|
case "com.amazonaws.cloudcontrol#ResourceConflictException":
|
|
185
|
-
throw await
|
|
185
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
186
186
|
case "ResourceNotFoundException":
|
|
187
187
|
case "com.amazonaws.cloudcontrol#ResourceNotFoundException":
|
|
188
|
-
throw await
|
|
188
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
189
189
|
case "ServiceInternalErrorException":
|
|
190
190
|
case "com.amazonaws.cloudcontrol#ServiceInternalErrorException":
|
|
191
|
-
throw await
|
|
191
|
+
throw await de_ServiceInternalErrorExceptionRes(parsedOutput, context);
|
|
192
192
|
case "ServiceLimitExceededException":
|
|
193
193
|
case "com.amazonaws.cloudcontrol#ServiceLimitExceededException":
|
|
194
|
-
throw await
|
|
194
|
+
throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
|
|
195
195
|
case "ThrottlingException":
|
|
196
196
|
case "com.amazonaws.cloudcontrol#ThrottlingException":
|
|
197
|
-
throw await
|
|
197
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
198
198
|
case "TypeNotFoundException":
|
|
199
199
|
case "com.amazonaws.cloudcontrol#TypeNotFoundException":
|
|
200
|
-
throw await
|
|
200
|
+
throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
|
|
201
201
|
case "UnsupportedActionException":
|
|
202
202
|
case "com.amazonaws.cloudcontrol#UnsupportedActionException":
|
|
203
|
-
throw await
|
|
203
|
+
throw await de_UnsupportedActionExceptionRes(parsedOutput, context);
|
|
204
204
|
default:
|
|
205
205
|
const parsedBody = parsedOutput.body;
|
|
206
206
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -211,21 +211,21 @@ const deserializeAws_json1_0CreateResourceCommandError = async (output, context)
|
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
213
|
};
|
|
214
|
-
const
|
|
214
|
+
const de_DeleteResourceCommand = async (output, context) => {
|
|
215
215
|
if (output.statusCode >= 300) {
|
|
216
|
-
return
|
|
216
|
+
return de_DeleteResourceCommandError(output, context);
|
|
217
217
|
}
|
|
218
218
|
const data = await parseBody(output.body, context);
|
|
219
219
|
let contents = {};
|
|
220
|
-
contents =
|
|
220
|
+
contents = de_DeleteResourceOutput(data, context);
|
|
221
221
|
const response = {
|
|
222
222
|
$metadata: deserializeMetadata(output),
|
|
223
223
|
...contents,
|
|
224
224
|
};
|
|
225
225
|
return Promise.resolve(response);
|
|
226
226
|
};
|
|
227
|
-
exports.
|
|
228
|
-
const
|
|
227
|
+
exports.de_DeleteResourceCommand = de_DeleteResourceCommand;
|
|
228
|
+
const de_DeleteResourceCommandError = async (output, context) => {
|
|
229
229
|
const parsedOutput = {
|
|
230
230
|
...output,
|
|
231
231
|
body: await parseErrorBody(output.body, context),
|
|
@@ -234,61 +234,61 @@ const deserializeAws_json1_0DeleteResourceCommandError = async (output, context)
|
|
|
234
234
|
switch (errorCode) {
|
|
235
235
|
case "AlreadyExistsException":
|
|
236
236
|
case "com.amazonaws.cloudcontrol#AlreadyExistsException":
|
|
237
|
-
throw await
|
|
237
|
+
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
238
238
|
case "ClientTokenConflictException":
|
|
239
239
|
case "com.amazonaws.cloudcontrol#ClientTokenConflictException":
|
|
240
|
-
throw await
|
|
240
|
+
throw await de_ClientTokenConflictExceptionRes(parsedOutput, context);
|
|
241
241
|
case "ConcurrentOperationException":
|
|
242
242
|
case "com.amazonaws.cloudcontrol#ConcurrentOperationException":
|
|
243
|
-
throw await
|
|
243
|
+
throw await de_ConcurrentOperationExceptionRes(parsedOutput, context);
|
|
244
244
|
case "GeneralServiceException":
|
|
245
245
|
case "com.amazonaws.cloudcontrol#GeneralServiceException":
|
|
246
|
-
throw await
|
|
246
|
+
throw await de_GeneralServiceExceptionRes(parsedOutput, context);
|
|
247
247
|
case "HandlerFailureException":
|
|
248
248
|
case "com.amazonaws.cloudcontrol#HandlerFailureException":
|
|
249
|
-
throw await
|
|
249
|
+
throw await de_HandlerFailureExceptionRes(parsedOutput, context);
|
|
250
250
|
case "HandlerInternalFailureException":
|
|
251
251
|
case "com.amazonaws.cloudcontrol#HandlerInternalFailureException":
|
|
252
|
-
throw await
|
|
252
|
+
throw await de_HandlerInternalFailureExceptionRes(parsedOutput, context);
|
|
253
253
|
case "InvalidCredentialsException":
|
|
254
254
|
case "com.amazonaws.cloudcontrol#InvalidCredentialsException":
|
|
255
|
-
throw await
|
|
255
|
+
throw await de_InvalidCredentialsExceptionRes(parsedOutput, context);
|
|
256
256
|
case "InvalidRequestException":
|
|
257
257
|
case "com.amazonaws.cloudcontrol#InvalidRequestException":
|
|
258
|
-
throw await
|
|
258
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
259
259
|
case "NetworkFailureException":
|
|
260
260
|
case "com.amazonaws.cloudcontrol#NetworkFailureException":
|
|
261
|
-
throw await
|
|
261
|
+
throw await de_NetworkFailureExceptionRes(parsedOutput, context);
|
|
262
262
|
case "NotStabilizedException":
|
|
263
263
|
case "com.amazonaws.cloudcontrol#NotStabilizedException":
|
|
264
|
-
throw await
|
|
264
|
+
throw await de_NotStabilizedExceptionRes(parsedOutput, context);
|
|
265
265
|
case "NotUpdatableException":
|
|
266
266
|
case "com.amazonaws.cloudcontrol#NotUpdatableException":
|
|
267
|
-
throw await
|
|
267
|
+
throw await de_NotUpdatableExceptionRes(parsedOutput, context);
|
|
268
268
|
case "PrivateTypeException":
|
|
269
269
|
case "com.amazonaws.cloudcontrol#PrivateTypeException":
|
|
270
|
-
throw await
|
|
270
|
+
throw await de_PrivateTypeExceptionRes(parsedOutput, context);
|
|
271
271
|
case "ResourceConflictException":
|
|
272
272
|
case "com.amazonaws.cloudcontrol#ResourceConflictException":
|
|
273
|
-
throw await
|
|
273
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
274
274
|
case "ResourceNotFoundException":
|
|
275
275
|
case "com.amazonaws.cloudcontrol#ResourceNotFoundException":
|
|
276
|
-
throw await
|
|
276
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
277
277
|
case "ServiceInternalErrorException":
|
|
278
278
|
case "com.amazonaws.cloudcontrol#ServiceInternalErrorException":
|
|
279
|
-
throw await
|
|
279
|
+
throw await de_ServiceInternalErrorExceptionRes(parsedOutput, context);
|
|
280
280
|
case "ServiceLimitExceededException":
|
|
281
281
|
case "com.amazonaws.cloudcontrol#ServiceLimitExceededException":
|
|
282
|
-
throw await
|
|
282
|
+
throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
|
|
283
283
|
case "ThrottlingException":
|
|
284
284
|
case "com.amazonaws.cloudcontrol#ThrottlingException":
|
|
285
|
-
throw await
|
|
285
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
286
286
|
case "TypeNotFoundException":
|
|
287
287
|
case "com.amazonaws.cloudcontrol#TypeNotFoundException":
|
|
288
|
-
throw await
|
|
288
|
+
throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
|
|
289
289
|
case "UnsupportedActionException":
|
|
290
290
|
case "com.amazonaws.cloudcontrol#UnsupportedActionException":
|
|
291
|
-
throw await
|
|
291
|
+
throw await de_UnsupportedActionExceptionRes(parsedOutput, context);
|
|
292
292
|
default:
|
|
293
293
|
const parsedBody = parsedOutput.body;
|
|
294
294
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -299,21 +299,21 @@ const deserializeAws_json1_0DeleteResourceCommandError = async (output, context)
|
|
|
299
299
|
});
|
|
300
300
|
}
|
|
301
301
|
};
|
|
302
|
-
const
|
|
302
|
+
const de_GetResourceCommand = async (output, context) => {
|
|
303
303
|
if (output.statusCode >= 300) {
|
|
304
|
-
return
|
|
304
|
+
return de_GetResourceCommandError(output, context);
|
|
305
305
|
}
|
|
306
306
|
const data = await parseBody(output.body, context);
|
|
307
307
|
let contents = {};
|
|
308
|
-
contents =
|
|
308
|
+
contents = de_GetResourceOutput(data, context);
|
|
309
309
|
const response = {
|
|
310
310
|
$metadata: deserializeMetadata(output),
|
|
311
311
|
...contents,
|
|
312
312
|
};
|
|
313
313
|
return Promise.resolve(response);
|
|
314
314
|
};
|
|
315
|
-
exports.
|
|
316
|
-
const
|
|
315
|
+
exports.de_GetResourceCommand = de_GetResourceCommand;
|
|
316
|
+
const de_GetResourceCommandError = async (output, context) => {
|
|
317
317
|
const parsedOutput = {
|
|
318
318
|
...output,
|
|
319
319
|
body: await parseErrorBody(output.body, context),
|
|
@@ -322,55 +322,55 @@ const deserializeAws_json1_0GetResourceCommandError = async (output, context) =>
|
|
|
322
322
|
switch (errorCode) {
|
|
323
323
|
case "AlreadyExistsException":
|
|
324
324
|
case "com.amazonaws.cloudcontrol#AlreadyExistsException":
|
|
325
|
-
throw await
|
|
325
|
+
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
326
326
|
case "GeneralServiceException":
|
|
327
327
|
case "com.amazonaws.cloudcontrol#GeneralServiceException":
|
|
328
|
-
throw await
|
|
328
|
+
throw await de_GeneralServiceExceptionRes(parsedOutput, context);
|
|
329
329
|
case "HandlerFailureException":
|
|
330
330
|
case "com.amazonaws.cloudcontrol#HandlerFailureException":
|
|
331
|
-
throw await
|
|
331
|
+
throw await de_HandlerFailureExceptionRes(parsedOutput, context);
|
|
332
332
|
case "HandlerInternalFailureException":
|
|
333
333
|
case "com.amazonaws.cloudcontrol#HandlerInternalFailureException":
|
|
334
|
-
throw await
|
|
334
|
+
throw await de_HandlerInternalFailureExceptionRes(parsedOutput, context);
|
|
335
335
|
case "InvalidCredentialsException":
|
|
336
336
|
case "com.amazonaws.cloudcontrol#InvalidCredentialsException":
|
|
337
|
-
throw await
|
|
337
|
+
throw await de_InvalidCredentialsExceptionRes(parsedOutput, context);
|
|
338
338
|
case "InvalidRequestException":
|
|
339
339
|
case "com.amazonaws.cloudcontrol#InvalidRequestException":
|
|
340
|
-
throw await
|
|
340
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
341
341
|
case "NetworkFailureException":
|
|
342
342
|
case "com.amazonaws.cloudcontrol#NetworkFailureException":
|
|
343
|
-
throw await
|
|
343
|
+
throw await de_NetworkFailureExceptionRes(parsedOutput, context);
|
|
344
344
|
case "NotStabilizedException":
|
|
345
345
|
case "com.amazonaws.cloudcontrol#NotStabilizedException":
|
|
346
|
-
throw await
|
|
346
|
+
throw await de_NotStabilizedExceptionRes(parsedOutput, context);
|
|
347
347
|
case "NotUpdatableException":
|
|
348
348
|
case "com.amazonaws.cloudcontrol#NotUpdatableException":
|
|
349
|
-
throw await
|
|
349
|
+
throw await de_NotUpdatableExceptionRes(parsedOutput, context);
|
|
350
350
|
case "PrivateTypeException":
|
|
351
351
|
case "com.amazonaws.cloudcontrol#PrivateTypeException":
|
|
352
|
-
throw await
|
|
352
|
+
throw await de_PrivateTypeExceptionRes(parsedOutput, context);
|
|
353
353
|
case "ResourceConflictException":
|
|
354
354
|
case "com.amazonaws.cloudcontrol#ResourceConflictException":
|
|
355
|
-
throw await
|
|
355
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
356
356
|
case "ResourceNotFoundException":
|
|
357
357
|
case "com.amazonaws.cloudcontrol#ResourceNotFoundException":
|
|
358
|
-
throw await
|
|
358
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
359
359
|
case "ServiceInternalErrorException":
|
|
360
360
|
case "com.amazonaws.cloudcontrol#ServiceInternalErrorException":
|
|
361
|
-
throw await
|
|
361
|
+
throw await de_ServiceInternalErrorExceptionRes(parsedOutput, context);
|
|
362
362
|
case "ServiceLimitExceededException":
|
|
363
363
|
case "com.amazonaws.cloudcontrol#ServiceLimitExceededException":
|
|
364
|
-
throw await
|
|
364
|
+
throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
|
|
365
365
|
case "ThrottlingException":
|
|
366
366
|
case "com.amazonaws.cloudcontrol#ThrottlingException":
|
|
367
|
-
throw await
|
|
367
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
368
368
|
case "TypeNotFoundException":
|
|
369
369
|
case "com.amazonaws.cloudcontrol#TypeNotFoundException":
|
|
370
|
-
throw await
|
|
370
|
+
throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
|
|
371
371
|
case "UnsupportedActionException":
|
|
372
372
|
case "com.amazonaws.cloudcontrol#UnsupportedActionException":
|
|
373
|
-
throw await
|
|
373
|
+
throw await de_UnsupportedActionExceptionRes(parsedOutput, context);
|
|
374
374
|
default:
|
|
375
375
|
const parsedBody = parsedOutput.body;
|
|
376
376
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -381,21 +381,21 @@ const deserializeAws_json1_0GetResourceCommandError = async (output, context) =>
|
|
|
381
381
|
});
|
|
382
382
|
}
|
|
383
383
|
};
|
|
384
|
-
const
|
|
384
|
+
const de_GetResourceRequestStatusCommand = async (output, context) => {
|
|
385
385
|
if (output.statusCode >= 300) {
|
|
386
|
-
return
|
|
386
|
+
return de_GetResourceRequestStatusCommandError(output, context);
|
|
387
387
|
}
|
|
388
388
|
const data = await parseBody(output.body, context);
|
|
389
389
|
let contents = {};
|
|
390
|
-
contents =
|
|
390
|
+
contents = de_GetResourceRequestStatusOutput(data, context);
|
|
391
391
|
const response = {
|
|
392
392
|
$metadata: deserializeMetadata(output),
|
|
393
393
|
...contents,
|
|
394
394
|
};
|
|
395
395
|
return Promise.resolve(response);
|
|
396
396
|
};
|
|
397
|
-
exports.
|
|
398
|
-
const
|
|
397
|
+
exports.de_GetResourceRequestStatusCommand = de_GetResourceRequestStatusCommand;
|
|
398
|
+
const de_GetResourceRequestStatusCommandError = async (output, context) => {
|
|
399
399
|
const parsedOutput = {
|
|
400
400
|
...output,
|
|
401
401
|
body: await parseErrorBody(output.body, context),
|
|
@@ -404,7 +404,7 @@ const deserializeAws_json1_0GetResourceRequestStatusCommandError = async (output
|
|
|
404
404
|
switch (errorCode) {
|
|
405
405
|
case "RequestTokenNotFoundException":
|
|
406
406
|
case "com.amazonaws.cloudcontrol#RequestTokenNotFoundException":
|
|
407
|
-
throw await
|
|
407
|
+
throw await de_RequestTokenNotFoundExceptionRes(parsedOutput, context);
|
|
408
408
|
default:
|
|
409
409
|
const parsedBody = parsedOutput.body;
|
|
410
410
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -415,21 +415,21 @@ const deserializeAws_json1_0GetResourceRequestStatusCommandError = async (output
|
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
};
|
|
418
|
-
const
|
|
418
|
+
const de_ListResourceRequestsCommand = async (output, context) => {
|
|
419
419
|
if (output.statusCode >= 300) {
|
|
420
|
-
return
|
|
420
|
+
return de_ListResourceRequestsCommandError(output, context);
|
|
421
421
|
}
|
|
422
422
|
const data = await parseBody(output.body, context);
|
|
423
423
|
let contents = {};
|
|
424
|
-
contents =
|
|
424
|
+
contents = de_ListResourceRequestsOutput(data, context);
|
|
425
425
|
const response = {
|
|
426
426
|
$metadata: deserializeMetadata(output),
|
|
427
427
|
...contents,
|
|
428
428
|
};
|
|
429
429
|
return Promise.resolve(response);
|
|
430
430
|
};
|
|
431
|
-
exports.
|
|
432
|
-
const
|
|
431
|
+
exports.de_ListResourceRequestsCommand = de_ListResourceRequestsCommand;
|
|
432
|
+
const de_ListResourceRequestsCommandError = async (output, context) => {
|
|
433
433
|
const parsedOutput = {
|
|
434
434
|
...output,
|
|
435
435
|
body: await parseErrorBody(output.body, context),
|
|
@@ -443,21 +443,21 @@ const deserializeAws_json1_0ListResourceRequestsCommandError = async (output, co
|
|
|
443
443
|
errorCode,
|
|
444
444
|
});
|
|
445
445
|
};
|
|
446
|
-
const
|
|
446
|
+
const de_ListResourcesCommand = async (output, context) => {
|
|
447
447
|
if (output.statusCode >= 300) {
|
|
448
|
-
return
|
|
448
|
+
return de_ListResourcesCommandError(output, context);
|
|
449
449
|
}
|
|
450
450
|
const data = await parseBody(output.body, context);
|
|
451
451
|
let contents = {};
|
|
452
|
-
contents =
|
|
452
|
+
contents = de_ListResourcesOutput(data, context);
|
|
453
453
|
const response = {
|
|
454
454
|
$metadata: deserializeMetadata(output),
|
|
455
455
|
...contents,
|
|
456
456
|
};
|
|
457
457
|
return Promise.resolve(response);
|
|
458
458
|
};
|
|
459
|
-
exports.
|
|
460
|
-
const
|
|
459
|
+
exports.de_ListResourcesCommand = de_ListResourcesCommand;
|
|
460
|
+
const de_ListResourcesCommandError = async (output, context) => {
|
|
461
461
|
const parsedOutput = {
|
|
462
462
|
...output,
|
|
463
463
|
body: await parseErrorBody(output.body, context),
|
|
@@ -466,55 +466,55 @@ const deserializeAws_json1_0ListResourcesCommandError = async (output, context)
|
|
|
466
466
|
switch (errorCode) {
|
|
467
467
|
case "AlreadyExistsException":
|
|
468
468
|
case "com.amazonaws.cloudcontrol#AlreadyExistsException":
|
|
469
|
-
throw await
|
|
469
|
+
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
470
470
|
case "GeneralServiceException":
|
|
471
471
|
case "com.amazonaws.cloudcontrol#GeneralServiceException":
|
|
472
|
-
throw await
|
|
472
|
+
throw await de_GeneralServiceExceptionRes(parsedOutput, context);
|
|
473
473
|
case "HandlerFailureException":
|
|
474
474
|
case "com.amazonaws.cloudcontrol#HandlerFailureException":
|
|
475
|
-
throw await
|
|
475
|
+
throw await de_HandlerFailureExceptionRes(parsedOutput, context);
|
|
476
476
|
case "HandlerInternalFailureException":
|
|
477
477
|
case "com.amazonaws.cloudcontrol#HandlerInternalFailureException":
|
|
478
|
-
throw await
|
|
478
|
+
throw await de_HandlerInternalFailureExceptionRes(parsedOutput, context);
|
|
479
479
|
case "InvalidCredentialsException":
|
|
480
480
|
case "com.amazonaws.cloudcontrol#InvalidCredentialsException":
|
|
481
|
-
throw await
|
|
481
|
+
throw await de_InvalidCredentialsExceptionRes(parsedOutput, context);
|
|
482
482
|
case "InvalidRequestException":
|
|
483
483
|
case "com.amazonaws.cloudcontrol#InvalidRequestException":
|
|
484
|
-
throw await
|
|
484
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
485
485
|
case "NetworkFailureException":
|
|
486
486
|
case "com.amazonaws.cloudcontrol#NetworkFailureException":
|
|
487
|
-
throw await
|
|
487
|
+
throw await de_NetworkFailureExceptionRes(parsedOutput, context);
|
|
488
488
|
case "NotStabilizedException":
|
|
489
489
|
case "com.amazonaws.cloudcontrol#NotStabilizedException":
|
|
490
|
-
throw await
|
|
490
|
+
throw await de_NotStabilizedExceptionRes(parsedOutput, context);
|
|
491
491
|
case "NotUpdatableException":
|
|
492
492
|
case "com.amazonaws.cloudcontrol#NotUpdatableException":
|
|
493
|
-
throw await
|
|
493
|
+
throw await de_NotUpdatableExceptionRes(parsedOutput, context);
|
|
494
494
|
case "PrivateTypeException":
|
|
495
495
|
case "com.amazonaws.cloudcontrol#PrivateTypeException":
|
|
496
|
-
throw await
|
|
496
|
+
throw await de_PrivateTypeExceptionRes(parsedOutput, context);
|
|
497
497
|
case "ResourceConflictException":
|
|
498
498
|
case "com.amazonaws.cloudcontrol#ResourceConflictException":
|
|
499
|
-
throw await
|
|
499
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
500
500
|
case "ResourceNotFoundException":
|
|
501
501
|
case "com.amazonaws.cloudcontrol#ResourceNotFoundException":
|
|
502
|
-
throw await
|
|
502
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
503
503
|
case "ServiceInternalErrorException":
|
|
504
504
|
case "com.amazonaws.cloudcontrol#ServiceInternalErrorException":
|
|
505
|
-
throw await
|
|
505
|
+
throw await de_ServiceInternalErrorExceptionRes(parsedOutput, context);
|
|
506
506
|
case "ServiceLimitExceededException":
|
|
507
507
|
case "com.amazonaws.cloudcontrol#ServiceLimitExceededException":
|
|
508
|
-
throw await
|
|
508
|
+
throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
|
|
509
509
|
case "ThrottlingException":
|
|
510
510
|
case "com.amazonaws.cloudcontrol#ThrottlingException":
|
|
511
|
-
throw await
|
|
511
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
512
512
|
case "TypeNotFoundException":
|
|
513
513
|
case "com.amazonaws.cloudcontrol#TypeNotFoundException":
|
|
514
|
-
throw await
|
|
514
|
+
throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
|
|
515
515
|
case "UnsupportedActionException":
|
|
516
516
|
case "com.amazonaws.cloudcontrol#UnsupportedActionException":
|
|
517
|
-
throw await
|
|
517
|
+
throw await de_UnsupportedActionExceptionRes(parsedOutput, context);
|
|
518
518
|
default:
|
|
519
519
|
const parsedBody = parsedOutput.body;
|
|
520
520
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -525,21 +525,21 @@ const deserializeAws_json1_0ListResourcesCommandError = async (output, context)
|
|
|
525
525
|
});
|
|
526
526
|
}
|
|
527
527
|
};
|
|
528
|
-
const
|
|
528
|
+
const de_UpdateResourceCommand = async (output, context) => {
|
|
529
529
|
if (output.statusCode >= 300) {
|
|
530
|
-
return
|
|
530
|
+
return de_UpdateResourceCommandError(output, context);
|
|
531
531
|
}
|
|
532
532
|
const data = await parseBody(output.body, context);
|
|
533
533
|
let contents = {};
|
|
534
|
-
contents =
|
|
534
|
+
contents = de_UpdateResourceOutput(data, context);
|
|
535
535
|
const response = {
|
|
536
536
|
$metadata: deserializeMetadata(output),
|
|
537
537
|
...contents,
|
|
538
538
|
};
|
|
539
539
|
return Promise.resolve(response);
|
|
540
540
|
};
|
|
541
|
-
exports.
|
|
542
|
-
const
|
|
541
|
+
exports.de_UpdateResourceCommand = de_UpdateResourceCommand;
|
|
542
|
+
const de_UpdateResourceCommandError = async (output, context) => {
|
|
543
543
|
const parsedOutput = {
|
|
544
544
|
...output,
|
|
545
545
|
body: await parseErrorBody(output.body, context),
|
|
@@ -548,61 +548,61 @@ const deserializeAws_json1_0UpdateResourceCommandError = async (output, context)
|
|
|
548
548
|
switch (errorCode) {
|
|
549
549
|
case "AlreadyExistsException":
|
|
550
550
|
case "com.amazonaws.cloudcontrol#AlreadyExistsException":
|
|
551
|
-
throw await
|
|
551
|
+
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
552
552
|
case "ClientTokenConflictException":
|
|
553
553
|
case "com.amazonaws.cloudcontrol#ClientTokenConflictException":
|
|
554
|
-
throw await
|
|
554
|
+
throw await de_ClientTokenConflictExceptionRes(parsedOutput, context);
|
|
555
555
|
case "ConcurrentOperationException":
|
|
556
556
|
case "com.amazonaws.cloudcontrol#ConcurrentOperationException":
|
|
557
|
-
throw await
|
|
557
|
+
throw await de_ConcurrentOperationExceptionRes(parsedOutput, context);
|
|
558
558
|
case "GeneralServiceException":
|
|
559
559
|
case "com.amazonaws.cloudcontrol#GeneralServiceException":
|
|
560
|
-
throw await
|
|
560
|
+
throw await de_GeneralServiceExceptionRes(parsedOutput, context);
|
|
561
561
|
case "HandlerFailureException":
|
|
562
562
|
case "com.amazonaws.cloudcontrol#HandlerFailureException":
|
|
563
|
-
throw await
|
|
563
|
+
throw await de_HandlerFailureExceptionRes(parsedOutput, context);
|
|
564
564
|
case "HandlerInternalFailureException":
|
|
565
565
|
case "com.amazonaws.cloudcontrol#HandlerInternalFailureException":
|
|
566
|
-
throw await
|
|
566
|
+
throw await de_HandlerInternalFailureExceptionRes(parsedOutput, context);
|
|
567
567
|
case "InvalidCredentialsException":
|
|
568
568
|
case "com.amazonaws.cloudcontrol#InvalidCredentialsException":
|
|
569
|
-
throw await
|
|
569
|
+
throw await de_InvalidCredentialsExceptionRes(parsedOutput, context);
|
|
570
570
|
case "InvalidRequestException":
|
|
571
571
|
case "com.amazonaws.cloudcontrol#InvalidRequestException":
|
|
572
|
-
throw await
|
|
572
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
573
573
|
case "NetworkFailureException":
|
|
574
574
|
case "com.amazonaws.cloudcontrol#NetworkFailureException":
|
|
575
|
-
throw await
|
|
575
|
+
throw await de_NetworkFailureExceptionRes(parsedOutput, context);
|
|
576
576
|
case "NotStabilizedException":
|
|
577
577
|
case "com.amazonaws.cloudcontrol#NotStabilizedException":
|
|
578
|
-
throw await
|
|
578
|
+
throw await de_NotStabilizedExceptionRes(parsedOutput, context);
|
|
579
579
|
case "NotUpdatableException":
|
|
580
580
|
case "com.amazonaws.cloudcontrol#NotUpdatableException":
|
|
581
|
-
throw await
|
|
581
|
+
throw await de_NotUpdatableExceptionRes(parsedOutput, context);
|
|
582
582
|
case "PrivateTypeException":
|
|
583
583
|
case "com.amazonaws.cloudcontrol#PrivateTypeException":
|
|
584
|
-
throw await
|
|
584
|
+
throw await de_PrivateTypeExceptionRes(parsedOutput, context);
|
|
585
585
|
case "ResourceConflictException":
|
|
586
586
|
case "com.amazonaws.cloudcontrol#ResourceConflictException":
|
|
587
|
-
throw await
|
|
587
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
588
588
|
case "ResourceNotFoundException":
|
|
589
589
|
case "com.amazonaws.cloudcontrol#ResourceNotFoundException":
|
|
590
|
-
throw await
|
|
590
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
591
591
|
case "ServiceInternalErrorException":
|
|
592
592
|
case "com.amazonaws.cloudcontrol#ServiceInternalErrorException":
|
|
593
|
-
throw await
|
|
593
|
+
throw await de_ServiceInternalErrorExceptionRes(parsedOutput, context);
|
|
594
594
|
case "ServiceLimitExceededException":
|
|
595
595
|
case "com.amazonaws.cloudcontrol#ServiceLimitExceededException":
|
|
596
|
-
throw await
|
|
596
|
+
throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
|
|
597
597
|
case "ThrottlingException":
|
|
598
598
|
case "com.amazonaws.cloudcontrol#ThrottlingException":
|
|
599
|
-
throw await
|
|
599
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
600
600
|
case "TypeNotFoundException":
|
|
601
601
|
case "com.amazonaws.cloudcontrol#TypeNotFoundException":
|
|
602
|
-
throw await
|
|
602
|
+
throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
|
|
603
603
|
case "UnsupportedActionException":
|
|
604
604
|
case "com.amazonaws.cloudcontrol#UnsupportedActionException":
|
|
605
|
-
throw await
|
|
605
|
+
throw await de_UnsupportedActionExceptionRes(parsedOutput, context);
|
|
606
606
|
default:
|
|
607
607
|
const parsedBody = parsedOutput.body;
|
|
608
608
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -613,201 +613,201 @@ const deserializeAws_json1_0UpdateResourceCommandError = async (output, context)
|
|
|
613
613
|
});
|
|
614
614
|
}
|
|
615
615
|
};
|
|
616
|
-
const
|
|
616
|
+
const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
617
617
|
const body = parsedOutput.body;
|
|
618
|
-
const deserialized =
|
|
618
|
+
const deserialized = de_AlreadyExistsException(body, context);
|
|
619
619
|
const exception = new models_0_1.AlreadyExistsException({
|
|
620
620
|
$metadata: deserializeMetadata(parsedOutput),
|
|
621
621
|
...deserialized,
|
|
622
622
|
});
|
|
623
623
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
624
624
|
};
|
|
625
|
-
const
|
|
625
|
+
const de_ClientTokenConflictExceptionRes = async (parsedOutput, context) => {
|
|
626
626
|
const body = parsedOutput.body;
|
|
627
|
-
const deserialized =
|
|
627
|
+
const deserialized = de_ClientTokenConflictException(body, context);
|
|
628
628
|
const exception = new models_0_1.ClientTokenConflictException({
|
|
629
629
|
$metadata: deserializeMetadata(parsedOutput),
|
|
630
630
|
...deserialized,
|
|
631
631
|
});
|
|
632
632
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
633
633
|
};
|
|
634
|
-
const
|
|
634
|
+
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
635
635
|
const body = parsedOutput.body;
|
|
636
|
-
const deserialized =
|
|
636
|
+
const deserialized = de_ConcurrentModificationException(body, context);
|
|
637
637
|
const exception = new models_0_1.ConcurrentModificationException({
|
|
638
638
|
$metadata: deserializeMetadata(parsedOutput),
|
|
639
639
|
...deserialized,
|
|
640
640
|
});
|
|
641
641
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
642
642
|
};
|
|
643
|
-
const
|
|
643
|
+
const de_ConcurrentOperationExceptionRes = async (parsedOutput, context) => {
|
|
644
644
|
const body = parsedOutput.body;
|
|
645
|
-
const deserialized =
|
|
645
|
+
const deserialized = de_ConcurrentOperationException(body, context);
|
|
646
646
|
const exception = new models_0_1.ConcurrentOperationException({
|
|
647
647
|
$metadata: deserializeMetadata(parsedOutput),
|
|
648
648
|
...deserialized,
|
|
649
649
|
});
|
|
650
650
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
651
651
|
};
|
|
652
|
-
const
|
|
652
|
+
const de_GeneralServiceExceptionRes = async (parsedOutput, context) => {
|
|
653
653
|
const body = parsedOutput.body;
|
|
654
|
-
const deserialized =
|
|
654
|
+
const deserialized = de_GeneralServiceException(body, context);
|
|
655
655
|
const exception = new models_0_1.GeneralServiceException({
|
|
656
656
|
$metadata: deserializeMetadata(parsedOutput),
|
|
657
657
|
...deserialized,
|
|
658
658
|
});
|
|
659
659
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
660
660
|
};
|
|
661
|
-
const
|
|
661
|
+
const de_HandlerFailureExceptionRes = async (parsedOutput, context) => {
|
|
662
662
|
const body = parsedOutput.body;
|
|
663
|
-
const deserialized =
|
|
663
|
+
const deserialized = de_HandlerFailureException(body, context);
|
|
664
664
|
const exception = new models_0_1.HandlerFailureException({
|
|
665
665
|
$metadata: deserializeMetadata(parsedOutput),
|
|
666
666
|
...deserialized,
|
|
667
667
|
});
|
|
668
668
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
669
669
|
};
|
|
670
|
-
const
|
|
670
|
+
const de_HandlerInternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
671
671
|
const body = parsedOutput.body;
|
|
672
|
-
const deserialized =
|
|
672
|
+
const deserialized = de_HandlerInternalFailureException(body, context);
|
|
673
673
|
const exception = new models_0_1.HandlerInternalFailureException({
|
|
674
674
|
$metadata: deserializeMetadata(parsedOutput),
|
|
675
675
|
...deserialized,
|
|
676
676
|
});
|
|
677
677
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
678
678
|
};
|
|
679
|
-
const
|
|
679
|
+
const de_InvalidCredentialsExceptionRes = async (parsedOutput, context) => {
|
|
680
680
|
const body = parsedOutput.body;
|
|
681
|
-
const deserialized =
|
|
681
|
+
const deserialized = de_InvalidCredentialsException(body, context);
|
|
682
682
|
const exception = new models_0_1.InvalidCredentialsException({
|
|
683
683
|
$metadata: deserializeMetadata(parsedOutput),
|
|
684
684
|
...deserialized,
|
|
685
685
|
});
|
|
686
686
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
687
687
|
};
|
|
688
|
-
const
|
|
688
|
+
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
689
689
|
const body = parsedOutput.body;
|
|
690
|
-
const deserialized =
|
|
690
|
+
const deserialized = de_InvalidRequestException(body, context);
|
|
691
691
|
const exception = new models_0_1.InvalidRequestException({
|
|
692
692
|
$metadata: deserializeMetadata(parsedOutput),
|
|
693
693
|
...deserialized,
|
|
694
694
|
});
|
|
695
695
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
696
696
|
};
|
|
697
|
-
const
|
|
697
|
+
const de_NetworkFailureExceptionRes = async (parsedOutput, context) => {
|
|
698
698
|
const body = parsedOutput.body;
|
|
699
|
-
const deserialized =
|
|
699
|
+
const deserialized = de_NetworkFailureException(body, context);
|
|
700
700
|
const exception = new models_0_1.NetworkFailureException({
|
|
701
701
|
$metadata: deserializeMetadata(parsedOutput),
|
|
702
702
|
...deserialized,
|
|
703
703
|
});
|
|
704
704
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
705
705
|
};
|
|
706
|
-
const
|
|
706
|
+
const de_NotStabilizedExceptionRes = async (parsedOutput, context) => {
|
|
707
707
|
const body = parsedOutput.body;
|
|
708
|
-
const deserialized =
|
|
708
|
+
const deserialized = de_NotStabilizedException(body, context);
|
|
709
709
|
const exception = new models_0_1.NotStabilizedException({
|
|
710
710
|
$metadata: deserializeMetadata(parsedOutput),
|
|
711
711
|
...deserialized,
|
|
712
712
|
});
|
|
713
713
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
714
714
|
};
|
|
715
|
-
const
|
|
715
|
+
const de_NotUpdatableExceptionRes = async (parsedOutput, context) => {
|
|
716
716
|
const body = parsedOutput.body;
|
|
717
|
-
const deserialized =
|
|
717
|
+
const deserialized = de_NotUpdatableException(body, context);
|
|
718
718
|
const exception = new models_0_1.NotUpdatableException({
|
|
719
719
|
$metadata: deserializeMetadata(parsedOutput),
|
|
720
720
|
...deserialized,
|
|
721
721
|
});
|
|
722
722
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
723
723
|
};
|
|
724
|
-
const
|
|
724
|
+
const de_PrivateTypeExceptionRes = async (parsedOutput, context) => {
|
|
725
725
|
const body = parsedOutput.body;
|
|
726
|
-
const deserialized =
|
|
726
|
+
const deserialized = de_PrivateTypeException(body, context);
|
|
727
727
|
const exception = new models_0_1.PrivateTypeException({
|
|
728
728
|
$metadata: deserializeMetadata(parsedOutput),
|
|
729
729
|
...deserialized,
|
|
730
730
|
});
|
|
731
731
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
732
732
|
};
|
|
733
|
-
const
|
|
733
|
+
const de_RequestTokenNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
734
734
|
const body = parsedOutput.body;
|
|
735
|
-
const deserialized =
|
|
735
|
+
const deserialized = de_RequestTokenNotFoundException(body, context);
|
|
736
736
|
const exception = new models_0_1.RequestTokenNotFoundException({
|
|
737
737
|
$metadata: deserializeMetadata(parsedOutput),
|
|
738
738
|
...deserialized,
|
|
739
739
|
});
|
|
740
740
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
741
741
|
};
|
|
742
|
-
const
|
|
742
|
+
const de_ResourceConflictExceptionRes = async (parsedOutput, context) => {
|
|
743
743
|
const body = parsedOutput.body;
|
|
744
|
-
const deserialized =
|
|
744
|
+
const deserialized = de_ResourceConflictException(body, context);
|
|
745
745
|
const exception = new models_0_1.ResourceConflictException({
|
|
746
746
|
$metadata: deserializeMetadata(parsedOutput),
|
|
747
747
|
...deserialized,
|
|
748
748
|
});
|
|
749
749
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
750
750
|
};
|
|
751
|
-
const
|
|
751
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
752
752
|
const body = parsedOutput.body;
|
|
753
|
-
const deserialized =
|
|
753
|
+
const deserialized = de_ResourceNotFoundException(body, context);
|
|
754
754
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
755
755
|
$metadata: deserializeMetadata(parsedOutput),
|
|
756
756
|
...deserialized,
|
|
757
757
|
});
|
|
758
758
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
759
759
|
};
|
|
760
|
-
const
|
|
760
|
+
const de_ServiceInternalErrorExceptionRes = async (parsedOutput, context) => {
|
|
761
761
|
const body = parsedOutput.body;
|
|
762
|
-
const deserialized =
|
|
762
|
+
const deserialized = de_ServiceInternalErrorException(body, context);
|
|
763
763
|
const exception = new models_0_1.ServiceInternalErrorException({
|
|
764
764
|
$metadata: deserializeMetadata(parsedOutput),
|
|
765
765
|
...deserialized,
|
|
766
766
|
});
|
|
767
767
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
768
768
|
};
|
|
769
|
-
const
|
|
769
|
+
const de_ServiceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
770
770
|
const body = parsedOutput.body;
|
|
771
|
-
const deserialized =
|
|
771
|
+
const deserialized = de_ServiceLimitExceededException(body, context);
|
|
772
772
|
const exception = new models_0_1.ServiceLimitExceededException({
|
|
773
773
|
$metadata: deserializeMetadata(parsedOutput),
|
|
774
774
|
...deserialized,
|
|
775
775
|
});
|
|
776
776
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
777
777
|
};
|
|
778
|
-
const
|
|
778
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
779
779
|
const body = parsedOutput.body;
|
|
780
|
-
const deserialized =
|
|
780
|
+
const deserialized = de_ThrottlingException(body, context);
|
|
781
781
|
const exception = new models_0_1.ThrottlingException({
|
|
782
782
|
$metadata: deserializeMetadata(parsedOutput),
|
|
783
783
|
...deserialized,
|
|
784
784
|
});
|
|
785
785
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
786
786
|
};
|
|
787
|
-
const
|
|
787
|
+
const de_TypeNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
788
788
|
const body = parsedOutput.body;
|
|
789
|
-
const deserialized =
|
|
789
|
+
const deserialized = de_TypeNotFoundException(body, context);
|
|
790
790
|
const exception = new models_0_1.TypeNotFoundException({
|
|
791
791
|
$metadata: deserializeMetadata(parsedOutput),
|
|
792
792
|
...deserialized,
|
|
793
793
|
});
|
|
794
794
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
795
795
|
};
|
|
796
|
-
const
|
|
796
|
+
const de_UnsupportedActionExceptionRes = async (parsedOutput, context) => {
|
|
797
797
|
const body = parsedOutput.body;
|
|
798
|
-
const deserialized =
|
|
798
|
+
const deserialized = de_UnsupportedActionException(body, context);
|
|
799
799
|
const exception = new models_0_1.UnsupportedActionException({
|
|
800
800
|
$metadata: deserializeMetadata(parsedOutput),
|
|
801
801
|
...deserialized,
|
|
802
802
|
});
|
|
803
803
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
804
804
|
};
|
|
805
|
-
const
|
|
805
|
+
const se_CancelResourceRequestInput = (input, context) => {
|
|
806
806
|
return {
|
|
807
807
|
...(input.RequestToken != null && { RequestToken: input.RequestToken }),
|
|
808
808
|
};
|
|
809
809
|
};
|
|
810
|
-
const
|
|
810
|
+
const se_CreateResourceInput = (input, context) => {
|
|
811
811
|
return {
|
|
812
812
|
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
813
813
|
...(input.DesiredState != null && { DesiredState: input.DesiredState }),
|
|
@@ -816,7 +816,7 @@ const serializeAws_json1_0CreateResourceInput = (input, context) => {
|
|
|
816
816
|
...(input.TypeVersionId != null && { TypeVersionId: input.TypeVersionId }),
|
|
817
817
|
};
|
|
818
818
|
};
|
|
819
|
-
const
|
|
819
|
+
const se_DeleteResourceInput = (input, context) => {
|
|
820
820
|
return {
|
|
821
821
|
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
822
822
|
...(input.Identifier != null && { Identifier: input.Identifier }),
|
|
@@ -825,7 +825,7 @@ const serializeAws_json1_0DeleteResourceInput = (input, context) => {
|
|
|
825
825
|
...(input.TypeVersionId != null && { TypeVersionId: input.TypeVersionId }),
|
|
826
826
|
};
|
|
827
827
|
};
|
|
828
|
-
const
|
|
828
|
+
const se_GetResourceInput = (input, context) => {
|
|
829
829
|
return {
|
|
830
830
|
...(input.Identifier != null && { Identifier: input.Identifier }),
|
|
831
831
|
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
@@ -833,21 +833,21 @@ const serializeAws_json1_0GetResourceInput = (input, context) => {
|
|
|
833
833
|
...(input.TypeVersionId != null && { TypeVersionId: input.TypeVersionId }),
|
|
834
834
|
};
|
|
835
835
|
};
|
|
836
|
-
const
|
|
836
|
+
const se_GetResourceRequestStatusInput = (input, context) => {
|
|
837
837
|
return {
|
|
838
838
|
...(input.RequestToken != null && { RequestToken: input.RequestToken }),
|
|
839
839
|
};
|
|
840
840
|
};
|
|
841
|
-
const
|
|
841
|
+
const se_ListResourceRequestsInput = (input, context) => {
|
|
842
842
|
return {
|
|
843
843
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
844
844
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
845
845
|
...(input.ResourceRequestStatusFilter != null && {
|
|
846
|
-
ResourceRequestStatusFilter:
|
|
846
|
+
ResourceRequestStatusFilter: se_ResourceRequestStatusFilter(input.ResourceRequestStatusFilter, context),
|
|
847
847
|
}),
|
|
848
848
|
};
|
|
849
849
|
};
|
|
850
|
-
const
|
|
850
|
+
const se_ListResourcesInput = (input, context) => {
|
|
851
851
|
return {
|
|
852
852
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
853
853
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
@@ -857,29 +857,29 @@ const serializeAws_json1_0ListResourcesInput = (input, context) => {
|
|
|
857
857
|
...(input.TypeVersionId != null && { TypeVersionId: input.TypeVersionId }),
|
|
858
858
|
};
|
|
859
859
|
};
|
|
860
|
-
const
|
|
860
|
+
const se_Operations = (input, context) => {
|
|
861
861
|
return input
|
|
862
862
|
.filter((e) => e != null)
|
|
863
863
|
.map((entry) => {
|
|
864
864
|
return entry;
|
|
865
865
|
});
|
|
866
866
|
};
|
|
867
|
-
const
|
|
867
|
+
const se_OperationStatuses = (input, context) => {
|
|
868
868
|
return input
|
|
869
869
|
.filter((e) => e != null)
|
|
870
870
|
.map((entry) => {
|
|
871
871
|
return entry;
|
|
872
872
|
});
|
|
873
873
|
};
|
|
874
|
-
const
|
|
874
|
+
const se_ResourceRequestStatusFilter = (input, context) => {
|
|
875
875
|
return {
|
|
876
876
|
...(input.OperationStatuses != null && {
|
|
877
|
-
OperationStatuses:
|
|
877
|
+
OperationStatuses: se_OperationStatuses(input.OperationStatuses, context),
|
|
878
878
|
}),
|
|
879
|
-
...(input.Operations != null && { Operations:
|
|
879
|
+
...(input.Operations != null && { Operations: se_Operations(input.Operations, context) }),
|
|
880
880
|
};
|
|
881
881
|
};
|
|
882
|
-
const
|
|
882
|
+
const se_UpdateResourceInput = (input, context) => {
|
|
883
883
|
return {
|
|
884
884
|
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
885
885
|
...(input.Identifier != null && { Identifier: input.Identifier }),
|
|
@@ -889,117 +889,113 @@ const serializeAws_json1_0UpdateResourceInput = (input, context) => {
|
|
|
889
889
|
...(input.TypeVersionId != null && { TypeVersionId: input.TypeVersionId }),
|
|
890
890
|
};
|
|
891
891
|
};
|
|
892
|
-
const
|
|
892
|
+
const de_AlreadyExistsException = (output, context) => {
|
|
893
893
|
return {
|
|
894
894
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
895
895
|
};
|
|
896
896
|
};
|
|
897
|
-
const
|
|
897
|
+
const de_CancelResourceRequestOutput = (output, context) => {
|
|
898
898
|
return {
|
|
899
|
-
ProgressEvent: output.ProgressEvent != null ?
|
|
899
|
+
ProgressEvent: output.ProgressEvent != null ? de_ProgressEvent(output.ProgressEvent, context) : undefined,
|
|
900
900
|
};
|
|
901
901
|
};
|
|
902
|
-
const
|
|
902
|
+
const de_ClientTokenConflictException = (output, context) => {
|
|
903
903
|
return {
|
|
904
904
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
905
905
|
};
|
|
906
906
|
};
|
|
907
|
-
const
|
|
907
|
+
const de_ConcurrentModificationException = (output, context) => {
|
|
908
908
|
return {
|
|
909
909
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
910
910
|
};
|
|
911
911
|
};
|
|
912
|
-
const
|
|
912
|
+
const de_ConcurrentOperationException = (output, context) => {
|
|
913
913
|
return {
|
|
914
914
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
915
915
|
};
|
|
916
916
|
};
|
|
917
|
-
const
|
|
917
|
+
const de_CreateResourceOutput = (output, context) => {
|
|
918
918
|
return {
|
|
919
|
-
ProgressEvent: output.ProgressEvent != null ?
|
|
919
|
+
ProgressEvent: output.ProgressEvent != null ? de_ProgressEvent(output.ProgressEvent, context) : undefined,
|
|
920
920
|
};
|
|
921
921
|
};
|
|
922
|
-
const
|
|
922
|
+
const de_DeleteResourceOutput = (output, context) => {
|
|
923
923
|
return {
|
|
924
|
-
ProgressEvent: output.ProgressEvent != null ?
|
|
924
|
+
ProgressEvent: output.ProgressEvent != null ? de_ProgressEvent(output.ProgressEvent, context) : undefined,
|
|
925
925
|
};
|
|
926
926
|
};
|
|
927
|
-
const
|
|
927
|
+
const de_GeneralServiceException = (output, context) => {
|
|
928
928
|
return {
|
|
929
929
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
930
930
|
};
|
|
931
931
|
};
|
|
932
|
-
const
|
|
932
|
+
const de_GetResourceOutput = (output, context) => {
|
|
933
933
|
return {
|
|
934
|
-
ResourceDescription: output.ResourceDescription != null
|
|
935
|
-
? deserializeAws_json1_0ResourceDescription(output.ResourceDescription, context)
|
|
936
|
-
: undefined,
|
|
934
|
+
ResourceDescription: output.ResourceDescription != null ? de_ResourceDescription(output.ResourceDescription, context) : undefined,
|
|
937
935
|
TypeName: (0, smithy_client_1.expectString)(output.TypeName),
|
|
938
936
|
};
|
|
939
937
|
};
|
|
940
|
-
const
|
|
938
|
+
const de_GetResourceRequestStatusOutput = (output, context) => {
|
|
941
939
|
return {
|
|
942
|
-
ProgressEvent: output.ProgressEvent != null ?
|
|
940
|
+
ProgressEvent: output.ProgressEvent != null ? de_ProgressEvent(output.ProgressEvent, context) : undefined,
|
|
943
941
|
};
|
|
944
942
|
};
|
|
945
|
-
const
|
|
943
|
+
const de_HandlerFailureException = (output, context) => {
|
|
946
944
|
return {
|
|
947
945
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
948
946
|
};
|
|
949
947
|
};
|
|
950
|
-
const
|
|
948
|
+
const de_HandlerInternalFailureException = (output, context) => {
|
|
951
949
|
return {
|
|
952
950
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
953
951
|
};
|
|
954
952
|
};
|
|
955
|
-
const
|
|
953
|
+
const de_InvalidCredentialsException = (output, context) => {
|
|
956
954
|
return {
|
|
957
955
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
958
956
|
};
|
|
959
957
|
};
|
|
960
|
-
const
|
|
958
|
+
const de_InvalidRequestException = (output, context) => {
|
|
961
959
|
return {
|
|
962
960
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
963
961
|
};
|
|
964
962
|
};
|
|
965
|
-
const
|
|
963
|
+
const de_ListResourceRequestsOutput = (output, context) => {
|
|
966
964
|
return {
|
|
967
965
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
968
966
|
ResourceRequestStatusSummaries: output.ResourceRequestStatusSummaries != null
|
|
969
|
-
?
|
|
967
|
+
? de_ResourceRequestStatusSummaries(output.ResourceRequestStatusSummaries, context)
|
|
970
968
|
: undefined,
|
|
971
969
|
};
|
|
972
970
|
};
|
|
973
|
-
const
|
|
971
|
+
const de_ListResourcesOutput = (output, context) => {
|
|
974
972
|
return {
|
|
975
973
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
976
|
-
ResourceDescriptions: output.ResourceDescriptions != null
|
|
977
|
-
? deserializeAws_json1_0ResourceDescriptions(output.ResourceDescriptions, context)
|
|
978
|
-
: undefined,
|
|
974
|
+
ResourceDescriptions: output.ResourceDescriptions != null ? de_ResourceDescriptions(output.ResourceDescriptions, context) : undefined,
|
|
979
975
|
TypeName: (0, smithy_client_1.expectString)(output.TypeName),
|
|
980
976
|
};
|
|
981
977
|
};
|
|
982
|
-
const
|
|
978
|
+
const de_NetworkFailureException = (output, context) => {
|
|
983
979
|
return {
|
|
984
980
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
985
981
|
};
|
|
986
982
|
};
|
|
987
|
-
const
|
|
983
|
+
const de_NotStabilizedException = (output, context) => {
|
|
988
984
|
return {
|
|
989
985
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
990
986
|
};
|
|
991
987
|
};
|
|
992
|
-
const
|
|
988
|
+
const de_NotUpdatableException = (output, context) => {
|
|
993
989
|
return {
|
|
994
990
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
995
991
|
};
|
|
996
992
|
};
|
|
997
|
-
const
|
|
993
|
+
const de_PrivateTypeException = (output, context) => {
|
|
998
994
|
return {
|
|
999
995
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1000
996
|
};
|
|
1001
997
|
};
|
|
1002
|
-
const
|
|
998
|
+
const de_ProgressEvent = (output, context) => {
|
|
1003
999
|
return {
|
|
1004
1000
|
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
1005
1001
|
EventTime: output.EventTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EventTime))) : undefined,
|
|
@@ -1013,77 +1009,77 @@ const deserializeAws_json1_0ProgressEvent = (output, context) => {
|
|
|
1013
1009
|
TypeName: (0, smithy_client_1.expectString)(output.TypeName),
|
|
1014
1010
|
};
|
|
1015
1011
|
};
|
|
1016
|
-
const
|
|
1012
|
+
const de_RequestTokenNotFoundException = (output, context) => {
|
|
1017
1013
|
return {
|
|
1018
1014
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1019
1015
|
};
|
|
1020
1016
|
};
|
|
1021
|
-
const
|
|
1017
|
+
const de_ResourceConflictException = (output, context) => {
|
|
1022
1018
|
return {
|
|
1023
1019
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1024
1020
|
};
|
|
1025
1021
|
};
|
|
1026
|
-
const
|
|
1022
|
+
const de_ResourceDescription = (output, context) => {
|
|
1027
1023
|
return {
|
|
1028
1024
|
Identifier: (0, smithy_client_1.expectString)(output.Identifier),
|
|
1029
1025
|
Properties: (0, smithy_client_1.expectString)(output.Properties),
|
|
1030
1026
|
};
|
|
1031
1027
|
};
|
|
1032
|
-
const
|
|
1028
|
+
const de_ResourceDescriptions = (output, context) => {
|
|
1033
1029
|
const retVal = (output || [])
|
|
1034
1030
|
.filter((e) => e != null)
|
|
1035
1031
|
.map((entry) => {
|
|
1036
1032
|
if (entry === null) {
|
|
1037
1033
|
return null;
|
|
1038
1034
|
}
|
|
1039
|
-
return
|
|
1035
|
+
return de_ResourceDescription(entry, context);
|
|
1040
1036
|
});
|
|
1041
1037
|
return retVal;
|
|
1042
1038
|
};
|
|
1043
|
-
const
|
|
1039
|
+
const de_ResourceNotFoundException = (output, context) => {
|
|
1044
1040
|
return {
|
|
1045
1041
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1046
1042
|
};
|
|
1047
1043
|
};
|
|
1048
|
-
const
|
|
1044
|
+
const de_ResourceRequestStatusSummaries = (output, context) => {
|
|
1049
1045
|
const retVal = (output || [])
|
|
1050
1046
|
.filter((e) => e != null)
|
|
1051
1047
|
.map((entry) => {
|
|
1052
1048
|
if (entry === null) {
|
|
1053
1049
|
return null;
|
|
1054
1050
|
}
|
|
1055
|
-
return
|
|
1051
|
+
return de_ProgressEvent(entry, context);
|
|
1056
1052
|
});
|
|
1057
1053
|
return retVal;
|
|
1058
1054
|
};
|
|
1059
|
-
const
|
|
1055
|
+
const de_ServiceInternalErrorException = (output, context) => {
|
|
1060
1056
|
return {
|
|
1061
1057
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1062
1058
|
};
|
|
1063
1059
|
};
|
|
1064
|
-
const
|
|
1060
|
+
const de_ServiceLimitExceededException = (output, context) => {
|
|
1065
1061
|
return {
|
|
1066
1062
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1067
1063
|
};
|
|
1068
1064
|
};
|
|
1069
|
-
const
|
|
1065
|
+
const de_ThrottlingException = (output, context) => {
|
|
1070
1066
|
return {
|
|
1071
1067
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1072
1068
|
};
|
|
1073
1069
|
};
|
|
1074
|
-
const
|
|
1070
|
+
const de_TypeNotFoundException = (output, context) => {
|
|
1075
1071
|
return {
|
|
1076
1072
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1077
1073
|
};
|
|
1078
1074
|
};
|
|
1079
|
-
const
|
|
1075
|
+
const de_UnsupportedActionException = (output, context) => {
|
|
1080
1076
|
return {
|
|
1081
1077
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1082
1078
|
};
|
|
1083
1079
|
};
|
|
1084
|
-
const
|
|
1080
|
+
const de_UpdateResourceOutput = (output, context) => {
|
|
1085
1081
|
return {
|
|
1086
|
-
ProgressEvent: output.ProgressEvent != null ?
|
|
1082
|
+
ProgressEvent: output.ProgressEvent != null ? de_ProgressEvent(output.ProgressEvent, context) : undefined,
|
|
1087
1083
|
};
|
|
1088
1084
|
};
|
|
1089
1085
|
const deserializeMetadata = (output) => ({
|