@aws-sdk/client-service-quotas 3.310.0 → 3.315.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/protocols/Aws_json1_1.js +193 -584
- package/dist-es/protocols/Aws_json1_1.js +194 -585
- package/package.json +6 -6
|
@@ -6,192 +6,135 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const ServiceQuotasServiceException_1 = require("../models/ServiceQuotasServiceException");
|
|
8
8
|
const se_AssociateServiceQuotaTemplateCommand = async (input, context) => {
|
|
9
|
-
const headers =
|
|
10
|
-
"content-type": "application/x-amz-json-1.1",
|
|
11
|
-
"x-amz-target": "ServiceQuotasV20190624.AssociateServiceQuotaTemplate",
|
|
12
|
-
};
|
|
9
|
+
const headers = sharedHeaders("AssociateServiceQuotaTemplate");
|
|
13
10
|
let body;
|
|
14
|
-
body = JSON.stringify(
|
|
11
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
15
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
13
|
};
|
|
17
14
|
exports.se_AssociateServiceQuotaTemplateCommand = se_AssociateServiceQuotaTemplateCommand;
|
|
18
15
|
const se_DeleteServiceQuotaIncreaseRequestFromTemplateCommand = async (input, context) => {
|
|
19
|
-
const headers =
|
|
20
|
-
"content-type": "application/x-amz-json-1.1",
|
|
21
|
-
"x-amz-target": "ServiceQuotasV20190624.DeleteServiceQuotaIncreaseRequestFromTemplate",
|
|
22
|
-
};
|
|
16
|
+
const headers = sharedHeaders("DeleteServiceQuotaIncreaseRequestFromTemplate");
|
|
23
17
|
let body;
|
|
24
|
-
body = JSON.stringify(
|
|
18
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
25
19
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
26
20
|
};
|
|
27
21
|
exports.se_DeleteServiceQuotaIncreaseRequestFromTemplateCommand = se_DeleteServiceQuotaIncreaseRequestFromTemplateCommand;
|
|
28
22
|
const se_DisassociateServiceQuotaTemplateCommand = async (input, context) => {
|
|
29
|
-
const headers =
|
|
30
|
-
"content-type": "application/x-amz-json-1.1",
|
|
31
|
-
"x-amz-target": "ServiceQuotasV20190624.DisassociateServiceQuotaTemplate",
|
|
32
|
-
};
|
|
23
|
+
const headers = sharedHeaders("DisassociateServiceQuotaTemplate");
|
|
33
24
|
let body;
|
|
34
|
-
body = JSON.stringify(
|
|
25
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
35
26
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
27
|
};
|
|
37
28
|
exports.se_DisassociateServiceQuotaTemplateCommand = se_DisassociateServiceQuotaTemplateCommand;
|
|
38
29
|
const se_GetAssociationForServiceQuotaTemplateCommand = async (input, context) => {
|
|
39
|
-
const headers =
|
|
40
|
-
"content-type": "application/x-amz-json-1.1",
|
|
41
|
-
"x-amz-target": "ServiceQuotasV20190624.GetAssociationForServiceQuotaTemplate",
|
|
42
|
-
};
|
|
30
|
+
const headers = sharedHeaders("GetAssociationForServiceQuotaTemplate");
|
|
43
31
|
let body;
|
|
44
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
45
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
34
|
};
|
|
47
35
|
exports.se_GetAssociationForServiceQuotaTemplateCommand = se_GetAssociationForServiceQuotaTemplateCommand;
|
|
48
36
|
const se_GetAWSDefaultServiceQuotaCommand = async (input, context) => {
|
|
49
|
-
const headers =
|
|
50
|
-
"content-type": "application/x-amz-json-1.1",
|
|
51
|
-
"x-amz-target": "ServiceQuotasV20190624.GetAWSDefaultServiceQuota",
|
|
52
|
-
};
|
|
37
|
+
const headers = sharedHeaders("GetAWSDefaultServiceQuota");
|
|
53
38
|
let body;
|
|
54
|
-
body = JSON.stringify(
|
|
39
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
55
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
41
|
};
|
|
57
42
|
exports.se_GetAWSDefaultServiceQuotaCommand = se_GetAWSDefaultServiceQuotaCommand;
|
|
58
43
|
const se_GetRequestedServiceQuotaChangeCommand = async (input, context) => {
|
|
59
|
-
const headers =
|
|
60
|
-
"content-type": "application/x-amz-json-1.1",
|
|
61
|
-
"x-amz-target": "ServiceQuotasV20190624.GetRequestedServiceQuotaChange",
|
|
62
|
-
};
|
|
44
|
+
const headers = sharedHeaders("GetRequestedServiceQuotaChange");
|
|
63
45
|
let body;
|
|
64
|
-
body = JSON.stringify(
|
|
46
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
65
47
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
48
|
};
|
|
67
49
|
exports.se_GetRequestedServiceQuotaChangeCommand = se_GetRequestedServiceQuotaChangeCommand;
|
|
68
50
|
const se_GetServiceQuotaCommand = async (input, context) => {
|
|
69
|
-
const headers =
|
|
70
|
-
"content-type": "application/x-amz-json-1.1",
|
|
71
|
-
"x-amz-target": "ServiceQuotasV20190624.GetServiceQuota",
|
|
72
|
-
};
|
|
51
|
+
const headers = sharedHeaders("GetServiceQuota");
|
|
73
52
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
53
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
75
54
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
55
|
};
|
|
77
56
|
exports.se_GetServiceQuotaCommand = se_GetServiceQuotaCommand;
|
|
78
57
|
const se_GetServiceQuotaIncreaseRequestFromTemplateCommand = async (input, context) => {
|
|
79
|
-
const headers =
|
|
80
|
-
"content-type": "application/x-amz-json-1.1",
|
|
81
|
-
"x-amz-target": "ServiceQuotasV20190624.GetServiceQuotaIncreaseRequestFromTemplate",
|
|
82
|
-
};
|
|
58
|
+
const headers = sharedHeaders("GetServiceQuotaIncreaseRequestFromTemplate");
|
|
83
59
|
let body;
|
|
84
|
-
body = JSON.stringify(
|
|
60
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
85
61
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
62
|
};
|
|
87
63
|
exports.se_GetServiceQuotaIncreaseRequestFromTemplateCommand = se_GetServiceQuotaIncreaseRequestFromTemplateCommand;
|
|
88
64
|
const se_ListAWSDefaultServiceQuotasCommand = async (input, context) => {
|
|
89
|
-
const headers =
|
|
90
|
-
"content-type": "application/x-amz-json-1.1",
|
|
91
|
-
"x-amz-target": "ServiceQuotasV20190624.ListAWSDefaultServiceQuotas",
|
|
92
|
-
};
|
|
65
|
+
const headers = sharedHeaders("ListAWSDefaultServiceQuotas");
|
|
93
66
|
let body;
|
|
94
|
-
body = JSON.stringify(
|
|
67
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
95
68
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
69
|
};
|
|
97
70
|
exports.se_ListAWSDefaultServiceQuotasCommand = se_ListAWSDefaultServiceQuotasCommand;
|
|
98
71
|
const se_ListRequestedServiceQuotaChangeHistoryCommand = async (input, context) => {
|
|
99
|
-
const headers =
|
|
100
|
-
"content-type": "application/x-amz-json-1.1",
|
|
101
|
-
"x-amz-target": "ServiceQuotasV20190624.ListRequestedServiceQuotaChangeHistory",
|
|
102
|
-
};
|
|
72
|
+
const headers = sharedHeaders("ListRequestedServiceQuotaChangeHistory");
|
|
103
73
|
let body;
|
|
104
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
105
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
76
|
};
|
|
107
77
|
exports.se_ListRequestedServiceQuotaChangeHistoryCommand = se_ListRequestedServiceQuotaChangeHistoryCommand;
|
|
108
78
|
const se_ListRequestedServiceQuotaChangeHistoryByQuotaCommand = async (input, context) => {
|
|
109
|
-
const headers =
|
|
110
|
-
"content-type": "application/x-amz-json-1.1",
|
|
111
|
-
"x-amz-target": "ServiceQuotasV20190624.ListRequestedServiceQuotaChangeHistoryByQuota",
|
|
112
|
-
};
|
|
79
|
+
const headers = sharedHeaders("ListRequestedServiceQuotaChangeHistoryByQuota");
|
|
113
80
|
let body;
|
|
114
|
-
body = JSON.stringify(
|
|
81
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
115
82
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
116
83
|
};
|
|
117
84
|
exports.se_ListRequestedServiceQuotaChangeHistoryByQuotaCommand = se_ListRequestedServiceQuotaChangeHistoryByQuotaCommand;
|
|
118
85
|
const se_ListServiceQuotaIncreaseRequestsInTemplateCommand = async (input, context) => {
|
|
119
|
-
const headers =
|
|
120
|
-
"content-type": "application/x-amz-json-1.1",
|
|
121
|
-
"x-amz-target": "ServiceQuotasV20190624.ListServiceQuotaIncreaseRequestsInTemplate",
|
|
122
|
-
};
|
|
86
|
+
const headers = sharedHeaders("ListServiceQuotaIncreaseRequestsInTemplate");
|
|
123
87
|
let body;
|
|
124
|
-
body = JSON.stringify(
|
|
88
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
125
89
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
90
|
};
|
|
127
91
|
exports.se_ListServiceQuotaIncreaseRequestsInTemplateCommand = se_ListServiceQuotaIncreaseRequestsInTemplateCommand;
|
|
128
92
|
const se_ListServiceQuotasCommand = async (input, context) => {
|
|
129
|
-
const headers =
|
|
130
|
-
"content-type": "application/x-amz-json-1.1",
|
|
131
|
-
"x-amz-target": "ServiceQuotasV20190624.ListServiceQuotas",
|
|
132
|
-
};
|
|
93
|
+
const headers = sharedHeaders("ListServiceQuotas");
|
|
133
94
|
let body;
|
|
134
|
-
body = JSON.stringify(
|
|
95
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
135
96
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
136
97
|
};
|
|
137
98
|
exports.se_ListServiceQuotasCommand = se_ListServiceQuotasCommand;
|
|
138
99
|
const se_ListServicesCommand = async (input, context) => {
|
|
139
|
-
const headers =
|
|
140
|
-
"content-type": "application/x-amz-json-1.1",
|
|
141
|
-
"x-amz-target": "ServiceQuotasV20190624.ListServices",
|
|
142
|
-
};
|
|
100
|
+
const headers = sharedHeaders("ListServices");
|
|
143
101
|
let body;
|
|
144
|
-
body = JSON.stringify(
|
|
102
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
145
103
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
146
104
|
};
|
|
147
105
|
exports.se_ListServicesCommand = se_ListServicesCommand;
|
|
148
106
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
149
|
-
const headers =
|
|
150
|
-
"content-type": "application/x-amz-json-1.1",
|
|
151
|
-
"x-amz-target": "ServiceQuotasV20190624.ListTagsForResource",
|
|
152
|
-
};
|
|
107
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
153
108
|
let body;
|
|
154
|
-
body = JSON.stringify(
|
|
109
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
155
110
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
111
|
};
|
|
157
112
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
158
113
|
const se_PutServiceQuotaIncreaseRequestIntoTemplateCommand = async (input, context) => {
|
|
159
|
-
const headers =
|
|
160
|
-
"content-type": "application/x-amz-json-1.1",
|
|
161
|
-
"x-amz-target": "ServiceQuotasV20190624.PutServiceQuotaIncreaseRequestIntoTemplate",
|
|
162
|
-
};
|
|
114
|
+
const headers = sharedHeaders("PutServiceQuotaIncreaseRequestIntoTemplate");
|
|
163
115
|
let body;
|
|
164
116
|
body = JSON.stringify(se_PutServiceQuotaIncreaseRequestIntoTemplateRequest(input, context));
|
|
165
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
118
|
};
|
|
167
119
|
exports.se_PutServiceQuotaIncreaseRequestIntoTemplateCommand = se_PutServiceQuotaIncreaseRequestIntoTemplateCommand;
|
|
168
120
|
const se_RequestServiceQuotaIncreaseCommand = async (input, context) => {
|
|
169
|
-
const headers =
|
|
170
|
-
"content-type": "application/x-amz-json-1.1",
|
|
171
|
-
"x-amz-target": "ServiceQuotasV20190624.RequestServiceQuotaIncrease",
|
|
172
|
-
};
|
|
121
|
+
const headers = sharedHeaders("RequestServiceQuotaIncrease");
|
|
173
122
|
let body;
|
|
174
123
|
body = JSON.stringify(se_RequestServiceQuotaIncreaseRequest(input, context));
|
|
175
124
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
125
|
};
|
|
177
126
|
exports.se_RequestServiceQuotaIncreaseCommand = se_RequestServiceQuotaIncreaseCommand;
|
|
178
127
|
const se_TagResourceCommand = async (input, context) => {
|
|
179
|
-
const headers =
|
|
180
|
-
"content-type": "application/x-amz-json-1.1",
|
|
181
|
-
"x-amz-target": "ServiceQuotasV20190624.TagResource",
|
|
182
|
-
};
|
|
128
|
+
const headers = sharedHeaders("TagResource");
|
|
183
129
|
let body;
|
|
184
|
-
body = JSON.stringify(
|
|
130
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
185
131
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
186
132
|
};
|
|
187
133
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
188
134
|
const se_UntagResourceCommand = async (input, context) => {
|
|
189
|
-
const headers =
|
|
190
|
-
"content-type": "application/x-amz-json-1.1",
|
|
191
|
-
"x-amz-target": "ServiceQuotasV20190624.UntagResource",
|
|
192
|
-
};
|
|
135
|
+
const headers = sharedHeaders("UntagResource");
|
|
193
136
|
let body;
|
|
194
|
-
body = JSON.stringify(
|
|
137
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
195
138
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
139
|
};
|
|
197
140
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
@@ -201,12 +144,12 @@ const de_AssociateServiceQuotaTemplateCommand = async (output, context) => {
|
|
|
201
144
|
}
|
|
202
145
|
const data = await parseBody(output.body, context);
|
|
203
146
|
let contents = {};
|
|
204
|
-
contents =
|
|
147
|
+
contents = (0, smithy_client_1._json)(data);
|
|
205
148
|
const response = {
|
|
206
149
|
$metadata: deserializeMetadata(output),
|
|
207
150
|
...contents,
|
|
208
151
|
};
|
|
209
|
-
return
|
|
152
|
+
return response;
|
|
210
153
|
};
|
|
211
154
|
exports.de_AssociateServiceQuotaTemplateCommand = de_AssociateServiceQuotaTemplateCommand;
|
|
212
155
|
const de_AssociateServiceQuotaTemplateCommandError = async (output, context) => {
|
|
@@ -242,10 +185,9 @@ const de_AssociateServiceQuotaTemplateCommandError = async (output, context) =>
|
|
|
242
185
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
243
186
|
default:
|
|
244
187
|
const parsedBody = parsedOutput.body;
|
|
245
|
-
|
|
188
|
+
return throwDefaultError({
|
|
246
189
|
output,
|
|
247
190
|
parsedBody,
|
|
248
|
-
exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
|
|
249
191
|
errorCode,
|
|
250
192
|
});
|
|
251
193
|
}
|
|
@@ -256,12 +198,12 @@ const de_DeleteServiceQuotaIncreaseRequestFromTemplateCommand = async (output, c
|
|
|
256
198
|
}
|
|
257
199
|
const data = await parseBody(output.body, context);
|
|
258
200
|
let contents = {};
|
|
259
|
-
contents =
|
|
201
|
+
contents = (0, smithy_client_1._json)(data);
|
|
260
202
|
const response = {
|
|
261
203
|
$metadata: deserializeMetadata(output),
|
|
262
204
|
...contents,
|
|
263
205
|
};
|
|
264
|
-
return
|
|
206
|
+
return response;
|
|
265
207
|
};
|
|
266
208
|
exports.de_DeleteServiceQuotaIncreaseRequestFromTemplateCommand = de_DeleteServiceQuotaIncreaseRequestFromTemplateCommand;
|
|
267
209
|
const de_DeleteServiceQuotaIncreaseRequestFromTemplateCommandError = async (output, context) => {
|
|
@@ -300,10 +242,9 @@ const de_DeleteServiceQuotaIncreaseRequestFromTemplateCommandError = async (outp
|
|
|
300
242
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
301
243
|
default:
|
|
302
244
|
const parsedBody = parsedOutput.body;
|
|
303
|
-
|
|
245
|
+
return throwDefaultError({
|
|
304
246
|
output,
|
|
305
247
|
parsedBody,
|
|
306
|
-
exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
|
|
307
248
|
errorCode,
|
|
308
249
|
});
|
|
309
250
|
}
|
|
@@ -314,12 +255,12 @@ const de_DisassociateServiceQuotaTemplateCommand = async (output, context) => {
|
|
|
314
255
|
}
|
|
315
256
|
const data = await parseBody(output.body, context);
|
|
316
257
|
let contents = {};
|
|
317
|
-
contents =
|
|
258
|
+
contents = (0, smithy_client_1._json)(data);
|
|
318
259
|
const response = {
|
|
319
260
|
$metadata: deserializeMetadata(output),
|
|
320
261
|
...contents,
|
|
321
262
|
};
|
|
322
|
-
return
|
|
263
|
+
return response;
|
|
323
264
|
};
|
|
324
265
|
exports.de_DisassociateServiceQuotaTemplateCommand = de_DisassociateServiceQuotaTemplateCommand;
|
|
325
266
|
const de_DisassociateServiceQuotaTemplateCommandError = async (output, context) => {
|
|
@@ -355,10 +296,9 @@ const de_DisassociateServiceQuotaTemplateCommandError = async (output, context)
|
|
|
355
296
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
356
297
|
default:
|
|
357
298
|
const parsedBody = parsedOutput.body;
|
|
358
|
-
|
|
299
|
+
return throwDefaultError({
|
|
359
300
|
output,
|
|
360
301
|
parsedBody,
|
|
361
|
-
exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
|
|
362
302
|
errorCode,
|
|
363
303
|
});
|
|
364
304
|
}
|
|
@@ -369,12 +309,12 @@ const de_GetAssociationForServiceQuotaTemplateCommand = async (output, context)
|
|
|
369
309
|
}
|
|
370
310
|
const data = await parseBody(output.body, context);
|
|
371
311
|
let contents = {};
|
|
372
|
-
contents =
|
|
312
|
+
contents = (0, smithy_client_1._json)(data);
|
|
373
313
|
const response = {
|
|
374
314
|
$metadata: deserializeMetadata(output),
|
|
375
315
|
...contents,
|
|
376
316
|
};
|
|
377
|
-
return
|
|
317
|
+
return response;
|
|
378
318
|
};
|
|
379
319
|
exports.de_GetAssociationForServiceQuotaTemplateCommand = de_GetAssociationForServiceQuotaTemplateCommand;
|
|
380
320
|
const de_GetAssociationForServiceQuotaTemplateCommandError = async (output, context) => {
|
|
@@ -410,10 +350,9 @@ const de_GetAssociationForServiceQuotaTemplateCommandError = async (output, cont
|
|
|
410
350
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
411
351
|
default:
|
|
412
352
|
const parsedBody = parsedOutput.body;
|
|
413
|
-
|
|
353
|
+
return throwDefaultError({
|
|
414
354
|
output,
|
|
415
355
|
parsedBody,
|
|
416
|
-
exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
|
|
417
356
|
errorCode,
|
|
418
357
|
});
|
|
419
358
|
}
|
|
@@ -429,7 +368,7 @@ const de_GetAWSDefaultServiceQuotaCommand = async (output, context) => {
|
|
|
429
368
|
$metadata: deserializeMetadata(output),
|
|
430
369
|
...contents,
|
|
431
370
|
};
|
|
432
|
-
return
|
|
371
|
+
return response;
|
|
433
372
|
};
|
|
434
373
|
exports.de_GetAWSDefaultServiceQuotaCommand = de_GetAWSDefaultServiceQuotaCommand;
|
|
435
374
|
const de_GetAWSDefaultServiceQuotaCommandError = async (output, context) => {
|
|
@@ -456,10 +395,9 @@ const de_GetAWSDefaultServiceQuotaCommandError = async (output, context) => {
|
|
|
456
395
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
457
396
|
default:
|
|
458
397
|
const parsedBody = parsedOutput.body;
|
|
459
|
-
|
|
398
|
+
return throwDefaultError({
|
|
460
399
|
output,
|
|
461
400
|
parsedBody,
|
|
462
|
-
exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
|
|
463
401
|
errorCode,
|
|
464
402
|
});
|
|
465
403
|
}
|
|
@@ -475,7 +413,7 @@ const de_GetRequestedServiceQuotaChangeCommand = async (output, context) => {
|
|
|
475
413
|
$metadata: deserializeMetadata(output),
|
|
476
414
|
...contents,
|
|
477
415
|
};
|
|
478
|
-
return
|
|
416
|
+
return response;
|
|
479
417
|
};
|
|
480
418
|
exports.de_GetRequestedServiceQuotaChangeCommand = de_GetRequestedServiceQuotaChangeCommand;
|
|
481
419
|
const de_GetRequestedServiceQuotaChangeCommandError = async (output, context) => {
|
|
@@ -502,10 +440,9 @@ const de_GetRequestedServiceQuotaChangeCommandError = async (output, context) =>
|
|
|
502
440
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
503
441
|
default:
|
|
504
442
|
const parsedBody = parsedOutput.body;
|
|
505
|
-
|
|
443
|
+
return throwDefaultError({
|
|
506
444
|
output,
|
|
507
445
|
parsedBody,
|
|
508
|
-
exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
|
|
509
446
|
errorCode,
|
|
510
447
|
});
|
|
511
448
|
}
|
|
@@ -521,7 +458,7 @@ const de_GetServiceQuotaCommand = async (output, context) => {
|
|
|
521
458
|
$metadata: deserializeMetadata(output),
|
|
522
459
|
...contents,
|
|
523
460
|
};
|
|
524
|
-
return
|
|
461
|
+
return response;
|
|
525
462
|
};
|
|
526
463
|
exports.de_GetServiceQuotaCommand = de_GetServiceQuotaCommand;
|
|
527
464
|
const de_GetServiceQuotaCommandError = async (output, context) => {
|
|
@@ -548,10 +485,9 @@ const de_GetServiceQuotaCommandError = async (output, context) => {
|
|
|
548
485
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
549
486
|
default:
|
|
550
487
|
const parsedBody = parsedOutput.body;
|
|
551
|
-
|
|
488
|
+
return throwDefaultError({
|
|
552
489
|
output,
|
|
553
490
|
parsedBody,
|
|
554
|
-
exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
|
|
555
491
|
errorCode,
|
|
556
492
|
});
|
|
557
493
|
}
|
|
@@ -567,7 +503,7 @@ const de_GetServiceQuotaIncreaseRequestFromTemplateCommand = async (output, cont
|
|
|
567
503
|
$metadata: deserializeMetadata(output),
|
|
568
504
|
...contents,
|
|
569
505
|
};
|
|
570
|
-
return
|
|
506
|
+
return response;
|
|
571
507
|
};
|
|
572
508
|
exports.de_GetServiceQuotaIncreaseRequestFromTemplateCommand = de_GetServiceQuotaIncreaseRequestFromTemplateCommand;
|
|
573
509
|
const de_GetServiceQuotaIncreaseRequestFromTemplateCommandError = async (output, context) => {
|
|
@@ -606,10 +542,9 @@ const de_GetServiceQuotaIncreaseRequestFromTemplateCommandError = async (output,
|
|
|
606
542
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
607
543
|
default:
|
|
608
544
|
const parsedBody = parsedOutput.body;
|
|
609
|
-
|
|
545
|
+
return throwDefaultError({
|
|
610
546
|
output,
|
|
611
547
|
parsedBody,
|
|
612
|
-
exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
|
|
613
548
|
errorCode,
|
|
614
549
|
});
|
|
615
550
|
}
|
|
@@ -625,7 +560,7 @@ const de_ListAWSDefaultServiceQuotasCommand = async (output, context) => {
|
|
|
625
560
|
$metadata: deserializeMetadata(output),
|
|
626
561
|
...contents,
|
|
627
562
|
};
|
|
628
|
-
return
|
|
563
|
+
return response;
|
|
629
564
|
};
|
|
630
565
|
exports.de_ListAWSDefaultServiceQuotasCommand = de_ListAWSDefaultServiceQuotasCommand;
|
|
631
566
|
const de_ListAWSDefaultServiceQuotasCommandError = async (output, context) => {
|
|
@@ -655,10 +590,9 @@ const de_ListAWSDefaultServiceQuotasCommandError = async (output, context) => {
|
|
|
655
590
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
656
591
|
default:
|
|
657
592
|
const parsedBody = parsedOutput.body;
|
|
658
|
-
|
|
593
|
+
return throwDefaultError({
|
|
659
594
|
output,
|
|
660
595
|
parsedBody,
|
|
661
|
-
exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
|
|
662
596
|
errorCode,
|
|
663
597
|
});
|
|
664
598
|
}
|
|
@@ -674,7 +608,7 @@ const de_ListRequestedServiceQuotaChangeHistoryCommand = async (output, context)
|
|
|
674
608
|
$metadata: deserializeMetadata(output),
|
|
675
609
|
...contents,
|
|
676
610
|
};
|
|
677
|
-
return
|
|
611
|
+
return response;
|
|
678
612
|
};
|
|
679
613
|
exports.de_ListRequestedServiceQuotaChangeHistoryCommand = de_ListRequestedServiceQuotaChangeHistoryCommand;
|
|
680
614
|
const de_ListRequestedServiceQuotaChangeHistoryCommandError = async (output, context) => {
|
|
@@ -704,10 +638,9 @@ const de_ListRequestedServiceQuotaChangeHistoryCommandError = async (output, con
|
|
|
704
638
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
705
639
|
default:
|
|
706
640
|
const parsedBody = parsedOutput.body;
|
|
707
|
-
|
|
641
|
+
return throwDefaultError({
|
|
708
642
|
output,
|
|
709
643
|
parsedBody,
|
|
710
|
-
exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
|
|
711
644
|
errorCode,
|
|
712
645
|
});
|
|
713
646
|
}
|
|
@@ -723,7 +656,7 @@ const de_ListRequestedServiceQuotaChangeHistoryByQuotaCommand = async (output, c
|
|
|
723
656
|
$metadata: deserializeMetadata(output),
|
|
724
657
|
...contents,
|
|
725
658
|
};
|
|
726
|
-
return
|
|
659
|
+
return response;
|
|
727
660
|
};
|
|
728
661
|
exports.de_ListRequestedServiceQuotaChangeHistoryByQuotaCommand = de_ListRequestedServiceQuotaChangeHistoryByQuotaCommand;
|
|
729
662
|
const de_ListRequestedServiceQuotaChangeHistoryByQuotaCommandError = async (output, context) => {
|
|
@@ -753,10 +686,9 @@ const de_ListRequestedServiceQuotaChangeHistoryByQuotaCommandError = async (outp
|
|
|
753
686
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
754
687
|
default:
|
|
755
688
|
const parsedBody = parsedOutput.body;
|
|
756
|
-
|
|
689
|
+
return throwDefaultError({
|
|
757
690
|
output,
|
|
758
691
|
parsedBody,
|
|
759
|
-
exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
|
|
760
692
|
errorCode,
|
|
761
693
|
});
|
|
762
694
|
}
|
|
@@ -772,7 +704,7 @@ const de_ListServiceQuotaIncreaseRequestsInTemplateCommand = async (output, cont
|
|
|
772
704
|
$metadata: deserializeMetadata(output),
|
|
773
705
|
...contents,
|
|
774
706
|
};
|
|
775
|
-
return
|
|
707
|
+
return response;
|
|
776
708
|
};
|
|
777
709
|
exports.de_ListServiceQuotaIncreaseRequestsInTemplateCommand = de_ListServiceQuotaIncreaseRequestsInTemplateCommand;
|
|
778
710
|
const de_ListServiceQuotaIncreaseRequestsInTemplateCommandError = async (output, context) => {
|
|
@@ -808,10 +740,9 @@ const de_ListServiceQuotaIncreaseRequestsInTemplateCommandError = async (output,
|
|
|
808
740
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
809
741
|
default:
|
|
810
742
|
const parsedBody = parsedOutput.body;
|
|
811
|
-
|
|
743
|
+
return throwDefaultError({
|
|
812
744
|
output,
|
|
813
745
|
parsedBody,
|
|
814
|
-
exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
|
|
815
746
|
errorCode,
|
|
816
747
|
});
|
|
817
748
|
}
|
|
@@ -827,7 +758,7 @@ const de_ListServiceQuotasCommand = async (output, context) => {
|
|
|
827
758
|
$metadata: deserializeMetadata(output),
|
|
828
759
|
...contents,
|
|
829
760
|
};
|
|
830
|
-
return
|
|
761
|
+
return response;
|
|
831
762
|
};
|
|
832
763
|
exports.de_ListServiceQuotasCommand = de_ListServiceQuotasCommand;
|
|
833
764
|
const de_ListServiceQuotasCommandError = async (output, context) => {
|
|
@@ -857,10 +788,9 @@ const de_ListServiceQuotasCommandError = async (output, context) => {
|
|
|
857
788
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
858
789
|
default:
|
|
859
790
|
const parsedBody = parsedOutput.body;
|
|
860
|
-
|
|
791
|
+
return throwDefaultError({
|
|
861
792
|
output,
|
|
862
793
|
parsedBody,
|
|
863
|
-
exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
|
|
864
794
|
errorCode,
|
|
865
795
|
});
|
|
866
796
|
}
|
|
@@ -871,12 +801,12 @@ const de_ListServicesCommand = async (output, context) => {
|
|
|
871
801
|
}
|
|
872
802
|
const data = await parseBody(output.body, context);
|
|
873
803
|
let contents = {};
|
|
874
|
-
contents =
|
|
804
|
+
contents = (0, smithy_client_1._json)(data);
|
|
875
805
|
const response = {
|
|
876
806
|
$metadata: deserializeMetadata(output),
|
|
877
807
|
...contents,
|
|
878
808
|
};
|
|
879
|
-
return
|
|
809
|
+
return response;
|
|
880
810
|
};
|
|
881
811
|
exports.de_ListServicesCommand = de_ListServicesCommand;
|
|
882
812
|
const de_ListServicesCommandError = async (output, context) => {
|
|
@@ -903,10 +833,9 @@ const de_ListServicesCommandError = async (output, context) => {
|
|
|
903
833
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
904
834
|
default:
|
|
905
835
|
const parsedBody = parsedOutput.body;
|
|
906
|
-
|
|
836
|
+
return throwDefaultError({
|
|
907
837
|
output,
|
|
908
838
|
parsedBody,
|
|
909
|
-
exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
|
|
910
839
|
errorCode,
|
|
911
840
|
});
|
|
912
841
|
}
|
|
@@ -917,12 +846,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
917
846
|
}
|
|
918
847
|
const data = await parseBody(output.body, context);
|
|
919
848
|
let contents = {};
|
|
920
|
-
contents =
|
|
849
|
+
contents = (0, smithy_client_1._json)(data);
|
|
921
850
|
const response = {
|
|
922
851
|
$metadata: deserializeMetadata(output),
|
|
923
852
|
...contents,
|
|
924
853
|
};
|
|
925
|
-
return
|
|
854
|
+
return response;
|
|
926
855
|
};
|
|
927
856
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
928
857
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -949,10 +878,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
949
878
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
950
879
|
default:
|
|
951
880
|
const parsedBody = parsedOutput.body;
|
|
952
|
-
|
|
881
|
+
return throwDefaultError({
|
|
953
882
|
output,
|
|
954
883
|
parsedBody,
|
|
955
|
-
exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
|
|
956
884
|
errorCode,
|
|
957
885
|
});
|
|
958
886
|
}
|
|
@@ -968,7 +896,7 @@ const de_PutServiceQuotaIncreaseRequestIntoTemplateCommand = async (output, cont
|
|
|
968
896
|
$metadata: deserializeMetadata(output),
|
|
969
897
|
...contents,
|
|
970
898
|
};
|
|
971
|
-
return
|
|
899
|
+
return response;
|
|
972
900
|
};
|
|
973
901
|
exports.de_PutServiceQuotaIncreaseRequestIntoTemplateCommand = de_PutServiceQuotaIncreaseRequestIntoTemplateCommand;
|
|
974
902
|
const de_PutServiceQuotaIncreaseRequestIntoTemplateCommandError = async (output, context) => {
|
|
@@ -1010,10 +938,9 @@ const de_PutServiceQuotaIncreaseRequestIntoTemplateCommandError = async (output,
|
|
|
1010
938
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1011
939
|
default:
|
|
1012
940
|
const parsedBody = parsedOutput.body;
|
|
1013
|
-
|
|
941
|
+
return throwDefaultError({
|
|
1014
942
|
output,
|
|
1015
943
|
parsedBody,
|
|
1016
|
-
exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
|
|
1017
944
|
errorCode,
|
|
1018
945
|
});
|
|
1019
946
|
}
|
|
@@ -1029,7 +956,7 @@ const de_RequestServiceQuotaIncreaseCommand = async (output, context) => {
|
|
|
1029
956
|
$metadata: deserializeMetadata(output),
|
|
1030
957
|
...contents,
|
|
1031
958
|
};
|
|
1032
|
-
return
|
|
959
|
+
return response;
|
|
1033
960
|
};
|
|
1034
961
|
exports.de_RequestServiceQuotaIncreaseCommand = de_RequestServiceQuotaIncreaseCommand;
|
|
1035
962
|
const de_RequestServiceQuotaIncreaseCommandError = async (output, context) => {
|
|
@@ -1068,10 +995,9 @@ const de_RequestServiceQuotaIncreaseCommandError = async (output, context) => {
|
|
|
1068
995
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1069
996
|
default:
|
|
1070
997
|
const parsedBody = parsedOutput.body;
|
|
1071
|
-
|
|
998
|
+
return throwDefaultError({
|
|
1072
999
|
output,
|
|
1073
1000
|
parsedBody,
|
|
1074
|
-
exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
|
|
1075
1001
|
errorCode,
|
|
1076
1002
|
});
|
|
1077
1003
|
}
|
|
@@ -1082,12 +1008,12 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
1082
1008
|
}
|
|
1083
1009
|
const data = await parseBody(output.body, context);
|
|
1084
1010
|
let contents = {};
|
|
1085
|
-
contents =
|
|
1011
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1086
1012
|
const response = {
|
|
1087
1013
|
$metadata: deserializeMetadata(output),
|
|
1088
1014
|
...contents,
|
|
1089
1015
|
};
|
|
1090
|
-
return
|
|
1016
|
+
return response;
|
|
1091
1017
|
};
|
|
1092
1018
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1093
1019
|
const de_TagResourceCommandError = async (output, context) => {
|
|
@@ -1120,10 +1046,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1120
1046
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1121
1047
|
default:
|
|
1122
1048
|
const parsedBody = parsedOutput.body;
|
|
1123
|
-
|
|
1049
|
+
return throwDefaultError({
|
|
1124
1050
|
output,
|
|
1125
1051
|
parsedBody,
|
|
1126
|
-
exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
|
|
1127
1052
|
errorCode,
|
|
1128
1053
|
});
|
|
1129
1054
|
}
|
|
@@ -1134,12 +1059,12 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
1134
1059
|
}
|
|
1135
1060
|
const data = await parseBody(output.body, context);
|
|
1136
1061
|
let contents = {};
|
|
1137
|
-
contents =
|
|
1062
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1138
1063
|
const response = {
|
|
1139
1064
|
$metadata: deserializeMetadata(output),
|
|
1140
1065
|
...contents,
|
|
1141
1066
|
};
|
|
1142
|
-
return
|
|
1067
|
+
return response;
|
|
1143
1068
|
};
|
|
1144
1069
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1145
1070
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
@@ -1166,17 +1091,16 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1166
1091
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1167
1092
|
default:
|
|
1168
1093
|
const parsedBody = parsedOutput.body;
|
|
1169
|
-
|
|
1094
|
+
return throwDefaultError({
|
|
1170
1095
|
output,
|
|
1171
1096
|
parsedBody,
|
|
1172
|
-
exceptionCtor: ServiceQuotasServiceException_1.ServiceQuotasServiceException,
|
|
1173
1097
|
errorCode,
|
|
1174
1098
|
});
|
|
1175
1099
|
}
|
|
1176
1100
|
};
|
|
1177
1101
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1178
1102
|
const body = parsedOutput.body;
|
|
1179
|
-
const deserialized =
|
|
1103
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1180
1104
|
const exception = new models_0_1.AccessDeniedException({
|
|
1181
1105
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1182
1106
|
...deserialized,
|
|
@@ -1185,7 +1109,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1185
1109
|
};
|
|
1186
1110
|
const de_AWSServiceAccessNotEnabledExceptionRes = async (parsedOutput, context) => {
|
|
1187
1111
|
const body = parsedOutput.body;
|
|
1188
|
-
const deserialized =
|
|
1112
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1189
1113
|
const exception = new models_0_1.AWSServiceAccessNotEnabledException({
|
|
1190
1114
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1191
1115
|
...deserialized,
|
|
@@ -1194,7 +1118,7 @@ const de_AWSServiceAccessNotEnabledExceptionRes = async (parsedOutput, context)
|
|
|
1194
1118
|
};
|
|
1195
1119
|
const de_DependencyAccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1196
1120
|
const body = parsedOutput.body;
|
|
1197
|
-
const deserialized =
|
|
1121
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1198
1122
|
const exception = new models_0_1.DependencyAccessDeniedException({
|
|
1199
1123
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1200
1124
|
...deserialized,
|
|
@@ -1203,7 +1127,7 @@ const de_DependencyAccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1203
1127
|
};
|
|
1204
1128
|
const de_IllegalArgumentExceptionRes = async (parsedOutput, context) => {
|
|
1205
1129
|
const body = parsedOutput.body;
|
|
1206
|
-
const deserialized =
|
|
1130
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1207
1131
|
const exception = new models_0_1.IllegalArgumentException({
|
|
1208
1132
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1209
1133
|
...deserialized,
|
|
@@ -1212,7 +1136,7 @@ const de_IllegalArgumentExceptionRes = async (parsedOutput, context) => {
|
|
|
1212
1136
|
};
|
|
1213
1137
|
const de_InvalidPaginationTokenExceptionRes = async (parsedOutput, context) => {
|
|
1214
1138
|
const body = parsedOutput.body;
|
|
1215
|
-
const deserialized =
|
|
1139
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1216
1140
|
const exception = new models_0_1.InvalidPaginationTokenException({
|
|
1217
1141
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1218
1142
|
...deserialized,
|
|
@@ -1221,7 +1145,7 @@ const de_InvalidPaginationTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
1221
1145
|
};
|
|
1222
1146
|
const de_InvalidResourceStateExceptionRes = async (parsedOutput, context) => {
|
|
1223
1147
|
const body = parsedOutput.body;
|
|
1224
|
-
const deserialized =
|
|
1148
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1225
1149
|
const exception = new models_0_1.InvalidResourceStateException({
|
|
1226
1150
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1227
1151
|
...deserialized,
|
|
@@ -1230,7 +1154,7 @@ const de_InvalidResourceStateExceptionRes = async (parsedOutput, context) => {
|
|
|
1230
1154
|
};
|
|
1231
1155
|
const de_NoAvailableOrganizationExceptionRes = async (parsedOutput, context) => {
|
|
1232
1156
|
const body = parsedOutput.body;
|
|
1233
|
-
const deserialized =
|
|
1157
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1234
1158
|
const exception = new models_0_1.NoAvailableOrganizationException({
|
|
1235
1159
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1236
1160
|
...deserialized,
|
|
@@ -1239,7 +1163,7 @@ const de_NoAvailableOrganizationExceptionRes = async (parsedOutput, context) =>
|
|
|
1239
1163
|
};
|
|
1240
1164
|
const de_NoSuchResourceExceptionRes = async (parsedOutput, context) => {
|
|
1241
1165
|
const body = parsedOutput.body;
|
|
1242
|
-
const deserialized =
|
|
1166
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1243
1167
|
const exception = new models_0_1.NoSuchResourceException({
|
|
1244
1168
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1245
1169
|
...deserialized,
|
|
@@ -1248,7 +1172,7 @@ const de_NoSuchResourceExceptionRes = async (parsedOutput, context) => {
|
|
|
1248
1172
|
};
|
|
1249
1173
|
const de_OrganizationNotInAllFeaturesModeExceptionRes = async (parsedOutput, context) => {
|
|
1250
1174
|
const body = parsedOutput.body;
|
|
1251
|
-
const deserialized =
|
|
1175
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1252
1176
|
const exception = new models_0_1.OrganizationNotInAllFeaturesModeException({
|
|
1253
1177
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1254
1178
|
...deserialized,
|
|
@@ -1257,7 +1181,7 @@ const de_OrganizationNotInAllFeaturesModeExceptionRes = async (parsedOutput, con
|
|
|
1257
1181
|
};
|
|
1258
1182
|
const de_QuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1259
1183
|
const body = parsedOutput.body;
|
|
1260
|
-
const deserialized =
|
|
1184
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1261
1185
|
const exception = new models_0_1.QuotaExceededException({
|
|
1262
1186
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1263
1187
|
...deserialized,
|
|
@@ -1266,7 +1190,7 @@ const de_QuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1266
1190
|
};
|
|
1267
1191
|
const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1268
1192
|
const body = parsedOutput.body;
|
|
1269
|
-
const deserialized =
|
|
1193
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1270
1194
|
const exception = new models_0_1.ResourceAlreadyExistsException({
|
|
1271
1195
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1272
1196
|
...deserialized,
|
|
@@ -1275,7 +1199,7 @@ const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
|
1275
1199
|
};
|
|
1276
1200
|
const de_ServiceExceptionRes = async (parsedOutput, context) => {
|
|
1277
1201
|
const body = parsedOutput.body;
|
|
1278
|
-
const deserialized =
|
|
1202
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1279
1203
|
const exception = new models_0_1.ServiceException({
|
|
1280
1204
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1281
1205
|
...deserialized,
|
|
@@ -1284,7 +1208,7 @@ const de_ServiceExceptionRes = async (parsedOutput, context) => {
|
|
|
1284
1208
|
};
|
|
1285
1209
|
const de_ServiceQuotaTemplateNotInUseExceptionRes = async (parsedOutput, context) => {
|
|
1286
1210
|
const body = parsedOutput.body;
|
|
1287
|
-
const deserialized =
|
|
1211
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1288
1212
|
const exception = new models_0_1.ServiceQuotaTemplateNotInUseException({
|
|
1289
1213
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1290
1214
|
...deserialized,
|
|
@@ -1293,7 +1217,7 @@ const de_ServiceQuotaTemplateNotInUseExceptionRes = async (parsedOutput, context
|
|
|
1293
1217
|
};
|
|
1294
1218
|
const de_TagPolicyViolationExceptionRes = async (parsedOutput, context) => {
|
|
1295
1219
|
const body = parsedOutput.body;
|
|
1296
|
-
const deserialized =
|
|
1220
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1297
1221
|
const exception = new models_0_1.TagPolicyViolationException({
|
|
1298
1222
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1299
1223
|
...deserialized,
|
|
@@ -1302,7 +1226,7 @@ const de_TagPolicyViolationExceptionRes = async (parsedOutput, context) => {
|
|
|
1302
1226
|
};
|
|
1303
1227
|
const de_TemplatesNotAvailableInRegionExceptionRes = async (parsedOutput, context) => {
|
|
1304
1228
|
const body = parsedOutput.body;
|
|
1305
|
-
const deserialized =
|
|
1229
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1306
1230
|
const exception = new models_0_1.TemplatesNotAvailableInRegionException({
|
|
1307
1231
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1308
1232
|
...deserialized,
|
|
@@ -1311,7 +1235,7 @@ const de_TemplatesNotAvailableInRegionExceptionRes = async (parsedOutput, contex
|
|
|
1311
1235
|
};
|
|
1312
1236
|
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
1313
1237
|
const body = parsedOutput.body;
|
|
1314
|
-
const deserialized =
|
|
1238
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1315
1239
|
const exception = new models_0_1.TooManyRequestsException({
|
|
1316
1240
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1317
1241
|
...deserialized,
|
|
@@ -1320,428 +1244,146 @@ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
|
1320
1244
|
};
|
|
1321
1245
|
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
1322
1246
|
const body = parsedOutput.body;
|
|
1323
|
-
const deserialized =
|
|
1247
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1324
1248
|
const exception = new models_0_1.TooManyTagsException({
|
|
1325
1249
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1326
1250
|
...deserialized,
|
|
1327
1251
|
});
|
|
1328
1252
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1329
1253
|
};
|
|
1330
|
-
const se_AssociateServiceQuotaTemplateRequest = (input, context) => {
|
|
1331
|
-
return {};
|
|
1332
|
-
};
|
|
1333
|
-
const se_DeleteServiceQuotaIncreaseRequestFromTemplateRequest = (input, context) => {
|
|
1334
|
-
return {
|
|
1335
|
-
...(input.AwsRegion != null && { AwsRegion: input.AwsRegion }),
|
|
1336
|
-
...(input.QuotaCode != null && { QuotaCode: input.QuotaCode }),
|
|
1337
|
-
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
1338
|
-
};
|
|
1339
|
-
};
|
|
1340
|
-
const se_DisassociateServiceQuotaTemplateRequest = (input, context) => {
|
|
1341
|
-
return {};
|
|
1342
|
-
};
|
|
1343
|
-
const se_GetAssociationForServiceQuotaTemplateRequest = (input, context) => {
|
|
1344
|
-
return {};
|
|
1345
|
-
};
|
|
1346
|
-
const se_GetAWSDefaultServiceQuotaRequest = (input, context) => {
|
|
1347
|
-
return {
|
|
1348
|
-
...(input.QuotaCode != null && { QuotaCode: input.QuotaCode }),
|
|
1349
|
-
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
1350
|
-
};
|
|
1351
|
-
};
|
|
1352
|
-
const se_GetRequestedServiceQuotaChangeRequest = (input, context) => {
|
|
1353
|
-
return {
|
|
1354
|
-
...(input.RequestId != null && { RequestId: input.RequestId }),
|
|
1355
|
-
};
|
|
1356
|
-
};
|
|
1357
|
-
const se_GetServiceQuotaIncreaseRequestFromTemplateRequest = (input, context) => {
|
|
1358
|
-
return {
|
|
1359
|
-
...(input.AwsRegion != null && { AwsRegion: input.AwsRegion }),
|
|
1360
|
-
...(input.QuotaCode != null && { QuotaCode: input.QuotaCode }),
|
|
1361
|
-
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
1362
|
-
};
|
|
1363
|
-
};
|
|
1364
|
-
const se_GetServiceQuotaRequest = (input, context) => {
|
|
1365
|
-
return {
|
|
1366
|
-
...(input.QuotaCode != null && { QuotaCode: input.QuotaCode }),
|
|
1367
|
-
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
1368
|
-
};
|
|
1369
|
-
};
|
|
1370
|
-
const se_InputTagKeys = (input, context) => {
|
|
1371
|
-
return input
|
|
1372
|
-
.filter((e) => e != null)
|
|
1373
|
-
.map((entry) => {
|
|
1374
|
-
return entry;
|
|
1375
|
-
});
|
|
1376
|
-
};
|
|
1377
|
-
const se_InputTags = (input, context) => {
|
|
1378
|
-
return input
|
|
1379
|
-
.filter((e) => e != null)
|
|
1380
|
-
.map((entry) => {
|
|
1381
|
-
return se_Tag(entry, context);
|
|
1382
|
-
});
|
|
1383
|
-
};
|
|
1384
|
-
const se_ListAWSDefaultServiceQuotasRequest = (input, context) => {
|
|
1385
|
-
return {
|
|
1386
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1387
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1388
|
-
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
1389
|
-
};
|
|
1390
|
-
};
|
|
1391
|
-
const se_ListRequestedServiceQuotaChangeHistoryByQuotaRequest = (input, context) => {
|
|
1392
|
-
return {
|
|
1393
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1394
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1395
|
-
...(input.QuotaCode != null && { QuotaCode: input.QuotaCode }),
|
|
1396
|
-
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
1397
|
-
...(input.Status != null && { Status: input.Status }),
|
|
1398
|
-
};
|
|
1399
|
-
};
|
|
1400
|
-
const se_ListRequestedServiceQuotaChangeHistoryRequest = (input, context) => {
|
|
1401
|
-
return {
|
|
1402
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1403
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1404
|
-
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
1405
|
-
...(input.Status != null && { Status: input.Status }),
|
|
1406
|
-
};
|
|
1407
|
-
};
|
|
1408
|
-
const se_ListServiceQuotaIncreaseRequestsInTemplateRequest = (input, context) => {
|
|
1409
|
-
return {
|
|
1410
|
-
...(input.AwsRegion != null && { AwsRegion: input.AwsRegion }),
|
|
1411
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1412
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1413
|
-
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
1414
|
-
};
|
|
1415
|
-
};
|
|
1416
|
-
const se_ListServiceQuotasRequest = (input, context) => {
|
|
1417
|
-
return {
|
|
1418
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1419
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1420
|
-
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
1421
|
-
};
|
|
1422
|
-
};
|
|
1423
|
-
const se_ListServicesRequest = (input, context) => {
|
|
1424
|
-
return {
|
|
1425
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1426
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1427
|
-
};
|
|
1428
|
-
};
|
|
1429
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
1430
|
-
return {
|
|
1431
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1432
|
-
};
|
|
1433
|
-
};
|
|
1434
1254
|
const se_PutServiceQuotaIncreaseRequestIntoTemplateRequest = (input, context) => {
|
|
1435
|
-
return {
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
};
|
|
1255
|
+
return (0, smithy_client_1.take)(input, {
|
|
1256
|
+
AwsRegion: [],
|
|
1257
|
+
DesiredValue: smithy_client_1.serializeFloat,
|
|
1258
|
+
QuotaCode: [],
|
|
1259
|
+
ServiceCode: [],
|
|
1260
|
+
});
|
|
1441
1261
|
};
|
|
1442
1262
|
const se_RequestServiceQuotaIncreaseRequest = (input, context) => {
|
|
1443
|
-
return {
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
};
|
|
1448
|
-
};
|
|
1449
|
-
const se_Tag = (input, context) => {
|
|
1450
|
-
return {
|
|
1451
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1452
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1453
|
-
};
|
|
1454
|
-
};
|
|
1455
|
-
const se_TagResourceRequest = (input, context) => {
|
|
1456
|
-
return {
|
|
1457
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1458
|
-
...(input.Tags != null && { Tags: se_InputTags(input.Tags, context) }),
|
|
1459
|
-
};
|
|
1460
|
-
};
|
|
1461
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
1462
|
-
return {
|
|
1463
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1464
|
-
...(input.TagKeys != null && { TagKeys: se_InputTagKeys(input.TagKeys, context) }),
|
|
1465
|
-
};
|
|
1466
|
-
};
|
|
1467
|
-
const de_AccessDeniedException = (output, context) => {
|
|
1468
|
-
return {
|
|
1469
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1470
|
-
};
|
|
1471
|
-
};
|
|
1472
|
-
const de_AssociateServiceQuotaTemplateResponse = (output, context) => {
|
|
1473
|
-
return {};
|
|
1474
|
-
};
|
|
1475
|
-
const de_AWSServiceAccessNotEnabledException = (output, context) => {
|
|
1476
|
-
return {
|
|
1477
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1478
|
-
};
|
|
1479
|
-
};
|
|
1480
|
-
const de_DeleteServiceQuotaIncreaseRequestFromTemplateResponse = (output, context) => {
|
|
1481
|
-
return {};
|
|
1482
|
-
};
|
|
1483
|
-
const de_DependencyAccessDeniedException = (output, context) => {
|
|
1484
|
-
return {
|
|
1485
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1486
|
-
};
|
|
1487
|
-
};
|
|
1488
|
-
const de_DisassociateServiceQuotaTemplateResponse = (output, context) => {
|
|
1489
|
-
return {};
|
|
1490
|
-
};
|
|
1491
|
-
const de_ErrorReason = (output, context) => {
|
|
1492
|
-
return {
|
|
1493
|
-
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
1494
|
-
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
1495
|
-
};
|
|
1496
|
-
};
|
|
1497
|
-
const de_GetAssociationForServiceQuotaTemplateResponse = (output, context) => {
|
|
1498
|
-
return {
|
|
1499
|
-
ServiceQuotaTemplateAssociationStatus: (0, smithy_client_1.expectString)(output.ServiceQuotaTemplateAssociationStatus),
|
|
1500
|
-
};
|
|
1263
|
+
return (0, smithy_client_1.take)(input, {
|
|
1264
|
+
DesiredValue: smithy_client_1.serializeFloat,
|
|
1265
|
+
QuotaCode: [],
|
|
1266
|
+
ServiceCode: [],
|
|
1267
|
+
});
|
|
1501
1268
|
};
|
|
1502
1269
|
const de_GetAWSDefaultServiceQuotaResponse = (output, context) => {
|
|
1503
|
-
return {
|
|
1504
|
-
Quota:
|
|
1505
|
-
};
|
|
1270
|
+
return (0, smithy_client_1.take)(output, {
|
|
1271
|
+
Quota: (_) => de_ServiceQuota(_, context),
|
|
1272
|
+
});
|
|
1506
1273
|
};
|
|
1507
1274
|
const de_GetRequestedServiceQuotaChangeResponse = (output, context) => {
|
|
1508
|
-
return {
|
|
1509
|
-
RequestedQuota:
|
|
1510
|
-
};
|
|
1275
|
+
return (0, smithy_client_1.take)(output, {
|
|
1276
|
+
RequestedQuota: (_) => de_RequestedServiceQuotaChange(_, context),
|
|
1277
|
+
});
|
|
1511
1278
|
};
|
|
1512
1279
|
const de_GetServiceQuotaIncreaseRequestFromTemplateResponse = (output, context) => {
|
|
1513
|
-
return {
|
|
1514
|
-
ServiceQuotaIncreaseRequestInTemplate:
|
|
1515
|
-
|
|
1516
|
-
: undefined,
|
|
1517
|
-
};
|
|
1280
|
+
return (0, smithy_client_1.take)(output, {
|
|
1281
|
+
ServiceQuotaIncreaseRequestInTemplate: (_) => de_ServiceQuotaIncreaseRequestInTemplate(_, context),
|
|
1282
|
+
});
|
|
1518
1283
|
};
|
|
1519
1284
|
const de_GetServiceQuotaResponse = (output, context) => {
|
|
1520
|
-
return {
|
|
1521
|
-
Quota:
|
|
1522
|
-
};
|
|
1523
|
-
};
|
|
1524
|
-
const de_IllegalArgumentException = (output, context) => {
|
|
1525
|
-
return {
|
|
1526
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1527
|
-
};
|
|
1528
|
-
};
|
|
1529
|
-
const de_InvalidPaginationTokenException = (output, context) => {
|
|
1530
|
-
return {
|
|
1531
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1532
|
-
};
|
|
1533
|
-
};
|
|
1534
|
-
const de_InvalidResourceStateException = (output, context) => {
|
|
1535
|
-
return {
|
|
1536
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1537
|
-
};
|
|
1285
|
+
return (0, smithy_client_1.take)(output, {
|
|
1286
|
+
Quota: (_) => de_ServiceQuota(_, context),
|
|
1287
|
+
});
|
|
1538
1288
|
};
|
|
1539
1289
|
const de_ListAWSDefaultServiceQuotasResponse = (output, context) => {
|
|
1540
|
-
return {
|
|
1541
|
-
NextToken:
|
|
1542
|
-
Quotas:
|
|
1543
|
-
};
|
|
1290
|
+
return (0, smithy_client_1.take)(output, {
|
|
1291
|
+
NextToken: smithy_client_1.expectString,
|
|
1292
|
+
Quotas: (_) => de_ServiceQuotaListDefinition(_, context),
|
|
1293
|
+
});
|
|
1544
1294
|
};
|
|
1545
1295
|
const de_ListRequestedServiceQuotaChangeHistoryByQuotaResponse = (output, context) => {
|
|
1546
|
-
return {
|
|
1547
|
-
NextToken:
|
|
1548
|
-
RequestedQuotas:
|
|
1549
|
-
|
|
1550
|
-
: undefined,
|
|
1551
|
-
};
|
|
1296
|
+
return (0, smithy_client_1.take)(output, {
|
|
1297
|
+
NextToken: smithy_client_1.expectString,
|
|
1298
|
+
RequestedQuotas: (_) => de_RequestedServiceQuotaChangeHistoryListDefinition(_, context),
|
|
1299
|
+
});
|
|
1552
1300
|
};
|
|
1553
1301
|
const de_ListRequestedServiceQuotaChangeHistoryResponse = (output, context) => {
|
|
1554
|
-
return {
|
|
1555
|
-
NextToken:
|
|
1556
|
-
RequestedQuotas:
|
|
1557
|
-
|
|
1558
|
-
: undefined,
|
|
1559
|
-
};
|
|
1302
|
+
return (0, smithy_client_1.take)(output, {
|
|
1303
|
+
NextToken: smithy_client_1.expectString,
|
|
1304
|
+
RequestedQuotas: (_) => de_RequestedServiceQuotaChangeHistoryListDefinition(_, context),
|
|
1305
|
+
});
|
|
1560
1306
|
};
|
|
1561
1307
|
const de_ListServiceQuotaIncreaseRequestsInTemplateResponse = (output, context) => {
|
|
1562
|
-
return {
|
|
1563
|
-
NextToken:
|
|
1564
|
-
ServiceQuotaIncreaseRequestInTemplateList:
|
|
1565
|
-
|
|
1566
|
-
: undefined,
|
|
1567
|
-
};
|
|
1308
|
+
return (0, smithy_client_1.take)(output, {
|
|
1309
|
+
NextToken: smithy_client_1.expectString,
|
|
1310
|
+
ServiceQuotaIncreaseRequestInTemplateList: (_) => de_ServiceQuotaIncreaseRequestInTemplateList(_, context),
|
|
1311
|
+
});
|
|
1568
1312
|
};
|
|
1569
1313
|
const de_ListServiceQuotasResponse = (output, context) => {
|
|
1570
|
-
return {
|
|
1571
|
-
NextToken:
|
|
1572
|
-
Quotas:
|
|
1573
|
-
};
|
|
1574
|
-
};
|
|
1575
|
-
const de_ListServicesResponse = (output, context) => {
|
|
1576
|
-
return {
|
|
1577
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1578
|
-
Services: output.Services != null ? de_ServiceInfoListDefinition(output.Services, context) : undefined,
|
|
1579
|
-
};
|
|
1580
|
-
};
|
|
1581
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
1582
|
-
return {
|
|
1583
|
-
Tags: output.Tags != null ? de_OutputTags(output.Tags, context) : undefined,
|
|
1584
|
-
};
|
|
1585
|
-
};
|
|
1586
|
-
const de_MetricDimensionsMapDefinition = (output, context) => {
|
|
1587
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1588
|
-
if (value === null) {
|
|
1589
|
-
return acc;
|
|
1590
|
-
}
|
|
1591
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
1592
|
-
return acc;
|
|
1593
|
-
}, {});
|
|
1594
|
-
};
|
|
1595
|
-
const de_MetricInfo = (output, context) => {
|
|
1596
|
-
return {
|
|
1597
|
-
MetricDimensions: output.MetricDimensions != null ? de_MetricDimensionsMapDefinition(output.MetricDimensions, context) : undefined,
|
|
1598
|
-
MetricName: (0, smithy_client_1.expectString)(output.MetricName),
|
|
1599
|
-
MetricNamespace: (0, smithy_client_1.expectString)(output.MetricNamespace),
|
|
1600
|
-
MetricStatisticRecommendation: (0, smithy_client_1.expectString)(output.MetricStatisticRecommendation),
|
|
1601
|
-
};
|
|
1602
|
-
};
|
|
1603
|
-
const de_NoAvailableOrganizationException = (output, context) => {
|
|
1604
|
-
return {
|
|
1605
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1606
|
-
};
|
|
1607
|
-
};
|
|
1608
|
-
const de_NoSuchResourceException = (output, context) => {
|
|
1609
|
-
return {
|
|
1610
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1611
|
-
};
|
|
1612
|
-
};
|
|
1613
|
-
const de_OrganizationNotInAllFeaturesModeException = (output, context) => {
|
|
1614
|
-
return {
|
|
1615
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1616
|
-
};
|
|
1617
|
-
};
|
|
1618
|
-
const de_OutputTags = (output, context) => {
|
|
1619
|
-
const retVal = (output || [])
|
|
1620
|
-
.filter((e) => e != null)
|
|
1621
|
-
.map((entry) => {
|
|
1622
|
-
if (entry === null) {
|
|
1623
|
-
return null;
|
|
1624
|
-
}
|
|
1625
|
-
return de_Tag(entry, context);
|
|
1314
|
+
return (0, smithy_client_1.take)(output, {
|
|
1315
|
+
NextToken: smithy_client_1.expectString,
|
|
1316
|
+
Quotas: (_) => de_ServiceQuotaListDefinition(_, context),
|
|
1626
1317
|
});
|
|
1627
|
-
return retVal;
|
|
1628
1318
|
};
|
|
1629
1319
|
const de_PutServiceQuotaIncreaseRequestIntoTemplateResponse = (output, context) => {
|
|
1630
|
-
return {
|
|
1631
|
-
ServiceQuotaIncreaseRequestInTemplate:
|
|
1632
|
-
|
|
1633
|
-
: undefined,
|
|
1634
|
-
};
|
|
1635
|
-
};
|
|
1636
|
-
const de_QuotaExceededException = (output, context) => {
|
|
1637
|
-
return {
|
|
1638
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1639
|
-
};
|
|
1640
|
-
};
|
|
1641
|
-
const de_QuotaPeriod = (output, context) => {
|
|
1642
|
-
return {
|
|
1643
|
-
PeriodUnit: (0, smithy_client_1.expectString)(output.PeriodUnit),
|
|
1644
|
-
PeriodValue: (0, smithy_client_1.expectInt32)(output.PeriodValue),
|
|
1645
|
-
};
|
|
1320
|
+
return (0, smithy_client_1.take)(output, {
|
|
1321
|
+
ServiceQuotaIncreaseRequestInTemplate: (_) => de_ServiceQuotaIncreaseRequestInTemplate(_, context),
|
|
1322
|
+
});
|
|
1646
1323
|
};
|
|
1647
1324
|
const de_RequestedServiceQuotaChange = (output, context) => {
|
|
1648
|
-
return {
|
|
1649
|
-
CaseId:
|
|
1650
|
-
Created:
|
|
1651
|
-
DesiredValue:
|
|
1652
|
-
GlobalQuota:
|
|
1653
|
-
Id:
|
|
1654
|
-
LastUpdated:
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
Unit: (0, smithy_client_1.expectString)(output.Unit),
|
|
1665
|
-
};
|
|
1325
|
+
return (0, smithy_client_1.take)(output, {
|
|
1326
|
+
CaseId: smithy_client_1.expectString,
|
|
1327
|
+
Created: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1328
|
+
DesiredValue: smithy_client_1.limitedParseDouble,
|
|
1329
|
+
GlobalQuota: smithy_client_1.expectBoolean,
|
|
1330
|
+
Id: smithy_client_1.expectString,
|
|
1331
|
+
LastUpdated: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1332
|
+
QuotaArn: smithy_client_1.expectString,
|
|
1333
|
+
QuotaCode: smithy_client_1.expectString,
|
|
1334
|
+
QuotaName: smithy_client_1.expectString,
|
|
1335
|
+
Requester: smithy_client_1.expectString,
|
|
1336
|
+
ServiceCode: smithy_client_1.expectString,
|
|
1337
|
+
ServiceName: smithy_client_1.expectString,
|
|
1338
|
+
Status: smithy_client_1.expectString,
|
|
1339
|
+
Unit: smithy_client_1.expectString,
|
|
1340
|
+
});
|
|
1666
1341
|
};
|
|
1667
1342
|
const de_RequestedServiceQuotaChangeHistoryListDefinition = (output, context) => {
|
|
1668
1343
|
const retVal = (output || [])
|
|
1669
1344
|
.filter((e) => e != null)
|
|
1670
1345
|
.map((entry) => {
|
|
1671
|
-
if (entry === null) {
|
|
1672
|
-
return null;
|
|
1673
|
-
}
|
|
1674
1346
|
return de_RequestedServiceQuotaChange(entry, context);
|
|
1675
1347
|
});
|
|
1676
1348
|
return retVal;
|
|
1677
1349
|
};
|
|
1678
1350
|
const de_RequestServiceQuotaIncreaseResponse = (output, context) => {
|
|
1679
|
-
return {
|
|
1680
|
-
RequestedQuota:
|
|
1681
|
-
};
|
|
1682
|
-
};
|
|
1683
|
-
const de_ResourceAlreadyExistsException = (output, context) => {
|
|
1684
|
-
return {
|
|
1685
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1686
|
-
};
|
|
1687
|
-
};
|
|
1688
|
-
const de_ServiceException = (output, context) => {
|
|
1689
|
-
return {
|
|
1690
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1691
|
-
};
|
|
1692
|
-
};
|
|
1693
|
-
const de_ServiceInfo = (output, context) => {
|
|
1694
|
-
return {
|
|
1695
|
-
ServiceCode: (0, smithy_client_1.expectString)(output.ServiceCode),
|
|
1696
|
-
ServiceName: (0, smithy_client_1.expectString)(output.ServiceName),
|
|
1697
|
-
};
|
|
1698
|
-
};
|
|
1699
|
-
const de_ServiceInfoListDefinition = (output, context) => {
|
|
1700
|
-
const retVal = (output || [])
|
|
1701
|
-
.filter((e) => e != null)
|
|
1702
|
-
.map((entry) => {
|
|
1703
|
-
if (entry === null) {
|
|
1704
|
-
return null;
|
|
1705
|
-
}
|
|
1706
|
-
return de_ServiceInfo(entry, context);
|
|
1351
|
+
return (0, smithy_client_1.take)(output, {
|
|
1352
|
+
RequestedQuota: (_) => de_RequestedServiceQuotaChange(_, context),
|
|
1707
1353
|
});
|
|
1708
|
-
return retVal;
|
|
1709
1354
|
};
|
|
1710
1355
|
const de_ServiceQuota = (output, context) => {
|
|
1711
|
-
return {
|
|
1712
|
-
Adjustable:
|
|
1713
|
-
ErrorReason:
|
|
1714
|
-
GlobalQuota:
|
|
1715
|
-
Period:
|
|
1716
|
-
QuotaArn:
|
|
1717
|
-
QuotaCode:
|
|
1718
|
-
QuotaName:
|
|
1719
|
-
ServiceCode:
|
|
1720
|
-
ServiceName:
|
|
1721
|
-
Unit:
|
|
1722
|
-
UsageMetric:
|
|
1723
|
-
Value:
|
|
1724
|
-
};
|
|
1356
|
+
return (0, smithy_client_1.take)(output, {
|
|
1357
|
+
Adjustable: smithy_client_1.expectBoolean,
|
|
1358
|
+
ErrorReason: smithy_client_1._json,
|
|
1359
|
+
GlobalQuota: smithy_client_1.expectBoolean,
|
|
1360
|
+
Period: smithy_client_1._json,
|
|
1361
|
+
QuotaArn: smithy_client_1.expectString,
|
|
1362
|
+
QuotaCode: smithy_client_1.expectString,
|
|
1363
|
+
QuotaName: smithy_client_1.expectString,
|
|
1364
|
+
ServiceCode: smithy_client_1.expectString,
|
|
1365
|
+
ServiceName: smithy_client_1.expectString,
|
|
1366
|
+
Unit: smithy_client_1.expectString,
|
|
1367
|
+
UsageMetric: smithy_client_1._json,
|
|
1368
|
+
Value: smithy_client_1.limitedParseDouble,
|
|
1369
|
+
});
|
|
1725
1370
|
};
|
|
1726
1371
|
const de_ServiceQuotaIncreaseRequestInTemplate = (output, context) => {
|
|
1727
|
-
return {
|
|
1728
|
-
AwsRegion:
|
|
1729
|
-
DesiredValue:
|
|
1730
|
-
GlobalQuota:
|
|
1731
|
-
QuotaCode:
|
|
1732
|
-
QuotaName:
|
|
1733
|
-
ServiceCode:
|
|
1734
|
-
ServiceName:
|
|
1735
|
-
Unit:
|
|
1736
|
-
};
|
|
1372
|
+
return (0, smithy_client_1.take)(output, {
|
|
1373
|
+
AwsRegion: smithy_client_1.expectString,
|
|
1374
|
+
DesiredValue: smithy_client_1.limitedParseDouble,
|
|
1375
|
+
GlobalQuota: smithy_client_1.expectBoolean,
|
|
1376
|
+
QuotaCode: smithy_client_1.expectString,
|
|
1377
|
+
QuotaName: smithy_client_1.expectString,
|
|
1378
|
+
ServiceCode: smithy_client_1.expectString,
|
|
1379
|
+
ServiceName: smithy_client_1.expectString,
|
|
1380
|
+
Unit: smithy_client_1.expectString,
|
|
1381
|
+
});
|
|
1737
1382
|
};
|
|
1738
1383
|
const de_ServiceQuotaIncreaseRequestInTemplateList = (output, context) => {
|
|
1739
1384
|
const retVal = (output || [])
|
|
1740
1385
|
.filter((e) => e != null)
|
|
1741
1386
|
.map((entry) => {
|
|
1742
|
-
if (entry === null) {
|
|
1743
|
-
return null;
|
|
1744
|
-
}
|
|
1745
1387
|
return de_ServiceQuotaIncreaseRequestInTemplate(entry, context);
|
|
1746
1388
|
});
|
|
1747
1389
|
return retVal;
|
|
@@ -1750,50 +1392,10 @@ const de_ServiceQuotaListDefinition = (output, context) => {
|
|
|
1750
1392
|
const retVal = (output || [])
|
|
1751
1393
|
.filter((e) => e != null)
|
|
1752
1394
|
.map((entry) => {
|
|
1753
|
-
if (entry === null) {
|
|
1754
|
-
return null;
|
|
1755
|
-
}
|
|
1756
1395
|
return de_ServiceQuota(entry, context);
|
|
1757
1396
|
});
|
|
1758
1397
|
return retVal;
|
|
1759
1398
|
};
|
|
1760
|
-
const de_ServiceQuotaTemplateNotInUseException = (output, context) => {
|
|
1761
|
-
return {
|
|
1762
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1763
|
-
};
|
|
1764
|
-
};
|
|
1765
|
-
const de_Tag = (output, context) => {
|
|
1766
|
-
return {
|
|
1767
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
1768
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1769
|
-
};
|
|
1770
|
-
};
|
|
1771
|
-
const de_TagPolicyViolationException = (output, context) => {
|
|
1772
|
-
return {
|
|
1773
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1774
|
-
};
|
|
1775
|
-
};
|
|
1776
|
-
const de_TagResourceResponse = (output, context) => {
|
|
1777
|
-
return {};
|
|
1778
|
-
};
|
|
1779
|
-
const de_TemplatesNotAvailableInRegionException = (output, context) => {
|
|
1780
|
-
return {
|
|
1781
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1782
|
-
};
|
|
1783
|
-
};
|
|
1784
|
-
const de_TooManyRequestsException = (output, context) => {
|
|
1785
|
-
return {
|
|
1786
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1787
|
-
};
|
|
1788
|
-
};
|
|
1789
|
-
const de_TooManyTagsException = (output, context) => {
|
|
1790
|
-
return {
|
|
1791
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1792
|
-
};
|
|
1793
|
-
};
|
|
1794
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
1795
|
-
return {};
|
|
1796
|
-
};
|
|
1797
1399
|
const deserializeMetadata = (output) => ({
|
|
1798
1400
|
httpStatusCode: output.statusCode,
|
|
1799
1401
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -1807,6 +1409,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
1807
1409
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1808
1410
|
};
|
|
1809
1411
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1412
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(ServiceQuotasServiceException_1.ServiceQuotasServiceException);
|
|
1810
1413
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1811
1414
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1812
1415
|
const contents = {
|
|
@@ -1825,6 +1428,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
1825
1428
|
}
|
|
1826
1429
|
return new protocol_http_1.HttpRequest(contents);
|
|
1827
1430
|
};
|
|
1431
|
+
function sharedHeaders(operation) {
|
|
1432
|
+
return {
|
|
1433
|
+
"content-type": "application/x-amz-json-1.1",
|
|
1434
|
+
"x-amz-target": `ServiceQuotasV20190624.${operation}`,
|
|
1435
|
+
};
|
|
1436
|
+
}
|
|
1828
1437
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1829
1438
|
if (encoded.length) {
|
|
1830
1439
|
return JSON.parse(encoded);
|