@aws-sdk/client-resource-groups-tagging-api 3.306.0 → 3.310.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/DescribeReportCreationCommand.js +2 -2
- package/dist-cjs/commands/GetComplianceSummaryCommand.js +2 -2
- package/dist-cjs/commands/GetResourcesCommand.js +2 -2
- package/dist-cjs/commands/GetTagKeysCommand.js +2 -2
- package/dist-cjs/commands/GetTagValuesCommand.js +2 -2
- package/dist-cjs/commands/StartReportCreationCommand.js +2 -2
- package/dist-cjs/commands/TagResourcesCommand.js +2 -2
- package/dist-cjs/commands/UntagResourcesCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_1.js +181 -197
- package/dist-es/commands/DescribeReportCreationCommand.js +3 -3
- package/dist-es/commands/GetComplianceSummaryCommand.js +3 -3
- package/dist-es/commands/GetResourcesCommand.js +3 -3
- package/dist-es/commands/GetTagKeysCommand.js +3 -3
- package/dist-es/commands/GetTagValuesCommand.js +3 -3
- package/dist-es/commands/StartReportCreationCommand.js +3 -3
- package/dist-es/commands/TagResourcesCommand.js +3 -3
- package/dist-es/commands/UntagResourcesCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_1.js +164 -180
- package/dist-types/protocols/Aws_json1_1.d.ts +64 -16
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +16 -16
- package/package.json +35 -35
|
@@ -2,92 +2,92 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectString as __expectString, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { ConcurrentModificationException, ConstraintViolationException, InternalServiceException, InvalidParameterException, PaginationTokenExpiredException, ThrottledException, } from "../models/models_0";
|
|
4
4
|
import { ResourceGroupsTaggingAPIServiceException as __BaseException } from "../models/ResourceGroupsTaggingAPIServiceException";
|
|
5
|
-
export const
|
|
5
|
+
export const se_DescribeReportCreationCommand = async (input, context) => {
|
|
6
6
|
const headers = {
|
|
7
7
|
"content-type": "application/x-amz-json-1.1",
|
|
8
8
|
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.DescribeReportCreation",
|
|
9
9
|
};
|
|
10
10
|
let body;
|
|
11
|
-
body = JSON.stringify(
|
|
11
|
+
body = JSON.stringify(se_DescribeReportCreationInput(input, context));
|
|
12
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
13
|
};
|
|
14
|
-
export const
|
|
14
|
+
export const se_GetComplianceSummaryCommand = async (input, context) => {
|
|
15
15
|
const headers = {
|
|
16
16
|
"content-type": "application/x-amz-json-1.1",
|
|
17
17
|
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.GetComplianceSummary",
|
|
18
18
|
};
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(se_GetComplianceSummaryInput(input, context));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
|
-
export const
|
|
23
|
+
export const se_GetResourcesCommand = async (input, context) => {
|
|
24
24
|
const headers = {
|
|
25
25
|
"content-type": "application/x-amz-json-1.1",
|
|
26
26
|
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.GetResources",
|
|
27
27
|
};
|
|
28
28
|
let body;
|
|
29
|
-
body = JSON.stringify(
|
|
29
|
+
body = JSON.stringify(se_GetResourcesInput(input, context));
|
|
30
30
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
31
|
};
|
|
32
|
-
export const
|
|
32
|
+
export const se_GetTagKeysCommand = async (input, context) => {
|
|
33
33
|
const headers = {
|
|
34
34
|
"content-type": "application/x-amz-json-1.1",
|
|
35
35
|
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.GetTagKeys",
|
|
36
36
|
};
|
|
37
37
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(se_GetTagKeysInput(input, context));
|
|
39
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
40
|
};
|
|
41
|
-
export const
|
|
41
|
+
export const se_GetTagValuesCommand = async (input, context) => {
|
|
42
42
|
const headers = {
|
|
43
43
|
"content-type": "application/x-amz-json-1.1",
|
|
44
44
|
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.GetTagValues",
|
|
45
45
|
};
|
|
46
46
|
let body;
|
|
47
|
-
body = JSON.stringify(
|
|
47
|
+
body = JSON.stringify(se_GetTagValuesInput(input, context));
|
|
48
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
49
|
};
|
|
50
|
-
export const
|
|
50
|
+
export const se_StartReportCreationCommand = async (input, context) => {
|
|
51
51
|
const headers = {
|
|
52
52
|
"content-type": "application/x-amz-json-1.1",
|
|
53
53
|
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.StartReportCreation",
|
|
54
54
|
};
|
|
55
55
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify(se_StartReportCreationInput(input, context));
|
|
57
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
58
|
};
|
|
59
|
-
export const
|
|
59
|
+
export const se_TagResourcesCommand = async (input, context) => {
|
|
60
60
|
const headers = {
|
|
61
61
|
"content-type": "application/x-amz-json-1.1",
|
|
62
62
|
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.TagResources",
|
|
63
63
|
};
|
|
64
64
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
65
|
+
body = JSON.stringify(se_TagResourcesInput(input, context));
|
|
66
66
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
67
|
};
|
|
68
|
-
export const
|
|
68
|
+
export const se_UntagResourcesCommand = async (input, context) => {
|
|
69
69
|
const headers = {
|
|
70
70
|
"content-type": "application/x-amz-json-1.1",
|
|
71
71
|
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.UntagResources",
|
|
72
72
|
};
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(se_UntagResourcesInput(input, context));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
|
-
export const
|
|
77
|
+
export const de_DescribeReportCreationCommand = async (output, context) => {
|
|
78
78
|
if (output.statusCode >= 300) {
|
|
79
|
-
return
|
|
79
|
+
return de_DescribeReportCreationCommandError(output, context);
|
|
80
80
|
}
|
|
81
81
|
const data = await parseBody(output.body, context);
|
|
82
82
|
let contents = {};
|
|
83
|
-
contents =
|
|
83
|
+
contents = de_DescribeReportCreationOutput(data, context);
|
|
84
84
|
const response = {
|
|
85
85
|
$metadata: deserializeMetadata(output),
|
|
86
86
|
...contents,
|
|
87
87
|
};
|
|
88
88
|
return Promise.resolve(response);
|
|
89
89
|
};
|
|
90
|
-
const
|
|
90
|
+
const de_DescribeReportCreationCommandError = async (output, context) => {
|
|
91
91
|
const parsedOutput = {
|
|
92
92
|
...output,
|
|
93
93
|
body: await parseErrorBody(output.body, context),
|
|
@@ -96,16 +96,16 @@ const deserializeAws_json1_1DescribeReportCreationCommandError = async (output,
|
|
|
96
96
|
switch (errorCode) {
|
|
97
97
|
case "ConstraintViolationException":
|
|
98
98
|
case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException":
|
|
99
|
-
throw await
|
|
99
|
+
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
100
100
|
case "InternalServiceException":
|
|
101
101
|
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
102
|
-
throw await
|
|
102
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
103
103
|
case "InvalidParameterException":
|
|
104
104
|
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
105
|
-
throw await
|
|
105
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
106
106
|
case "ThrottledException":
|
|
107
107
|
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
108
|
-
throw await
|
|
108
|
+
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
109
109
|
default:
|
|
110
110
|
const parsedBody = parsedOutput.body;
|
|
111
111
|
throwDefaultError({
|
|
@@ -116,20 +116,20 @@ const deserializeAws_json1_1DescribeReportCreationCommandError = async (output,
|
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
};
|
|
119
|
-
export const
|
|
119
|
+
export const de_GetComplianceSummaryCommand = async (output, context) => {
|
|
120
120
|
if (output.statusCode >= 300) {
|
|
121
|
-
return
|
|
121
|
+
return de_GetComplianceSummaryCommandError(output, context);
|
|
122
122
|
}
|
|
123
123
|
const data = await parseBody(output.body, context);
|
|
124
124
|
let contents = {};
|
|
125
|
-
contents =
|
|
125
|
+
contents = de_GetComplianceSummaryOutput(data, context);
|
|
126
126
|
const response = {
|
|
127
127
|
$metadata: deserializeMetadata(output),
|
|
128
128
|
...contents,
|
|
129
129
|
};
|
|
130
130
|
return Promise.resolve(response);
|
|
131
131
|
};
|
|
132
|
-
const
|
|
132
|
+
const de_GetComplianceSummaryCommandError = async (output, context) => {
|
|
133
133
|
const parsedOutput = {
|
|
134
134
|
...output,
|
|
135
135
|
body: await parseErrorBody(output.body, context),
|
|
@@ -138,16 +138,16 @@ const deserializeAws_json1_1GetComplianceSummaryCommandError = async (output, co
|
|
|
138
138
|
switch (errorCode) {
|
|
139
139
|
case "ConstraintViolationException":
|
|
140
140
|
case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException":
|
|
141
|
-
throw await
|
|
141
|
+
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
142
142
|
case "InternalServiceException":
|
|
143
143
|
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
144
|
-
throw await
|
|
144
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
145
145
|
case "InvalidParameterException":
|
|
146
146
|
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
147
|
-
throw await
|
|
147
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
148
148
|
case "ThrottledException":
|
|
149
149
|
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
150
|
-
throw await
|
|
150
|
+
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
151
151
|
default:
|
|
152
152
|
const parsedBody = parsedOutput.body;
|
|
153
153
|
throwDefaultError({
|
|
@@ -158,20 +158,20 @@ const deserializeAws_json1_1GetComplianceSummaryCommandError = async (output, co
|
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
160
|
};
|
|
161
|
-
export const
|
|
161
|
+
export const de_GetResourcesCommand = async (output, context) => {
|
|
162
162
|
if (output.statusCode >= 300) {
|
|
163
|
-
return
|
|
163
|
+
return de_GetResourcesCommandError(output, context);
|
|
164
164
|
}
|
|
165
165
|
const data = await parseBody(output.body, context);
|
|
166
166
|
let contents = {};
|
|
167
|
-
contents =
|
|
167
|
+
contents = de_GetResourcesOutput(data, context);
|
|
168
168
|
const response = {
|
|
169
169
|
$metadata: deserializeMetadata(output),
|
|
170
170
|
...contents,
|
|
171
171
|
};
|
|
172
172
|
return Promise.resolve(response);
|
|
173
173
|
};
|
|
174
|
-
const
|
|
174
|
+
const de_GetResourcesCommandError = async (output, context) => {
|
|
175
175
|
const parsedOutput = {
|
|
176
176
|
...output,
|
|
177
177
|
body: await parseErrorBody(output.body, context),
|
|
@@ -180,16 +180,16 @@ const deserializeAws_json1_1GetResourcesCommandError = async (output, context) =
|
|
|
180
180
|
switch (errorCode) {
|
|
181
181
|
case "InternalServiceException":
|
|
182
182
|
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
183
|
-
throw await
|
|
183
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
184
184
|
case "InvalidParameterException":
|
|
185
185
|
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
186
|
-
throw await
|
|
186
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
187
187
|
case "PaginationTokenExpiredException":
|
|
188
188
|
case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException":
|
|
189
|
-
throw await
|
|
189
|
+
throw await de_PaginationTokenExpiredExceptionRes(parsedOutput, context);
|
|
190
190
|
case "ThrottledException":
|
|
191
191
|
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
192
|
-
throw await
|
|
192
|
+
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
193
193
|
default:
|
|
194
194
|
const parsedBody = parsedOutput.body;
|
|
195
195
|
throwDefaultError({
|
|
@@ -200,20 +200,20 @@ const deserializeAws_json1_1GetResourcesCommandError = async (output, context) =
|
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
202
|
};
|
|
203
|
-
export const
|
|
203
|
+
export const de_GetTagKeysCommand = async (output, context) => {
|
|
204
204
|
if (output.statusCode >= 300) {
|
|
205
|
-
return
|
|
205
|
+
return de_GetTagKeysCommandError(output, context);
|
|
206
206
|
}
|
|
207
207
|
const data = await parseBody(output.body, context);
|
|
208
208
|
let contents = {};
|
|
209
|
-
contents =
|
|
209
|
+
contents = de_GetTagKeysOutput(data, context);
|
|
210
210
|
const response = {
|
|
211
211
|
$metadata: deserializeMetadata(output),
|
|
212
212
|
...contents,
|
|
213
213
|
};
|
|
214
214
|
return Promise.resolve(response);
|
|
215
215
|
};
|
|
216
|
-
const
|
|
216
|
+
const de_GetTagKeysCommandError = async (output, context) => {
|
|
217
217
|
const parsedOutput = {
|
|
218
218
|
...output,
|
|
219
219
|
body: await parseErrorBody(output.body, context),
|
|
@@ -222,16 +222,16 @@ const deserializeAws_json1_1GetTagKeysCommandError = async (output, context) =>
|
|
|
222
222
|
switch (errorCode) {
|
|
223
223
|
case "InternalServiceException":
|
|
224
224
|
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
225
|
-
throw await
|
|
225
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
226
226
|
case "InvalidParameterException":
|
|
227
227
|
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
228
|
-
throw await
|
|
228
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
229
229
|
case "PaginationTokenExpiredException":
|
|
230
230
|
case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException":
|
|
231
|
-
throw await
|
|
231
|
+
throw await de_PaginationTokenExpiredExceptionRes(parsedOutput, context);
|
|
232
232
|
case "ThrottledException":
|
|
233
233
|
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
234
|
-
throw await
|
|
234
|
+
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
235
235
|
default:
|
|
236
236
|
const parsedBody = parsedOutput.body;
|
|
237
237
|
throwDefaultError({
|
|
@@ -242,20 +242,20 @@ const deserializeAws_json1_1GetTagKeysCommandError = async (output, context) =>
|
|
|
242
242
|
});
|
|
243
243
|
}
|
|
244
244
|
};
|
|
245
|
-
export const
|
|
245
|
+
export const de_GetTagValuesCommand = async (output, context) => {
|
|
246
246
|
if (output.statusCode >= 300) {
|
|
247
|
-
return
|
|
247
|
+
return de_GetTagValuesCommandError(output, context);
|
|
248
248
|
}
|
|
249
249
|
const data = await parseBody(output.body, context);
|
|
250
250
|
let contents = {};
|
|
251
|
-
contents =
|
|
251
|
+
contents = de_GetTagValuesOutput(data, context);
|
|
252
252
|
const response = {
|
|
253
253
|
$metadata: deserializeMetadata(output),
|
|
254
254
|
...contents,
|
|
255
255
|
};
|
|
256
256
|
return Promise.resolve(response);
|
|
257
257
|
};
|
|
258
|
-
const
|
|
258
|
+
const de_GetTagValuesCommandError = async (output, context) => {
|
|
259
259
|
const parsedOutput = {
|
|
260
260
|
...output,
|
|
261
261
|
body: await parseErrorBody(output.body, context),
|
|
@@ -264,16 +264,16 @@ const deserializeAws_json1_1GetTagValuesCommandError = async (output, context) =
|
|
|
264
264
|
switch (errorCode) {
|
|
265
265
|
case "InternalServiceException":
|
|
266
266
|
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
267
|
-
throw await
|
|
267
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
268
268
|
case "InvalidParameterException":
|
|
269
269
|
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
270
|
-
throw await
|
|
270
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
271
271
|
case "PaginationTokenExpiredException":
|
|
272
272
|
case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException":
|
|
273
|
-
throw await
|
|
273
|
+
throw await de_PaginationTokenExpiredExceptionRes(parsedOutput, context);
|
|
274
274
|
case "ThrottledException":
|
|
275
275
|
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
276
|
-
throw await
|
|
276
|
+
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
277
277
|
default:
|
|
278
278
|
const parsedBody = parsedOutput.body;
|
|
279
279
|
throwDefaultError({
|
|
@@ -284,20 +284,20 @@ const deserializeAws_json1_1GetTagValuesCommandError = async (output, context) =
|
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
286
|
};
|
|
287
|
-
export const
|
|
287
|
+
export const de_StartReportCreationCommand = async (output, context) => {
|
|
288
288
|
if (output.statusCode >= 300) {
|
|
289
|
-
return
|
|
289
|
+
return de_StartReportCreationCommandError(output, context);
|
|
290
290
|
}
|
|
291
291
|
const data = await parseBody(output.body, context);
|
|
292
292
|
let contents = {};
|
|
293
|
-
contents =
|
|
293
|
+
contents = de_StartReportCreationOutput(data, context);
|
|
294
294
|
const response = {
|
|
295
295
|
$metadata: deserializeMetadata(output),
|
|
296
296
|
...contents,
|
|
297
297
|
};
|
|
298
298
|
return Promise.resolve(response);
|
|
299
299
|
};
|
|
300
|
-
const
|
|
300
|
+
const de_StartReportCreationCommandError = async (output, context) => {
|
|
301
301
|
const parsedOutput = {
|
|
302
302
|
...output,
|
|
303
303
|
body: await parseErrorBody(output.body, context),
|
|
@@ -306,19 +306,19 @@ const deserializeAws_json1_1StartReportCreationCommandError = async (output, con
|
|
|
306
306
|
switch (errorCode) {
|
|
307
307
|
case "ConcurrentModificationException":
|
|
308
308
|
case "com.amazonaws.resourcegroupstaggingapi#ConcurrentModificationException":
|
|
309
|
-
throw await
|
|
309
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
310
310
|
case "ConstraintViolationException":
|
|
311
311
|
case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException":
|
|
312
|
-
throw await
|
|
312
|
+
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
313
313
|
case "InternalServiceException":
|
|
314
314
|
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
315
|
-
throw await
|
|
315
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
316
316
|
case "InvalidParameterException":
|
|
317
317
|
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
318
|
-
throw await
|
|
318
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
319
319
|
case "ThrottledException":
|
|
320
320
|
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
321
|
-
throw await
|
|
321
|
+
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
322
322
|
default:
|
|
323
323
|
const parsedBody = parsedOutput.body;
|
|
324
324
|
throwDefaultError({
|
|
@@ -329,20 +329,20 @@ const deserializeAws_json1_1StartReportCreationCommandError = async (output, con
|
|
|
329
329
|
});
|
|
330
330
|
}
|
|
331
331
|
};
|
|
332
|
-
export const
|
|
332
|
+
export const de_TagResourcesCommand = async (output, context) => {
|
|
333
333
|
if (output.statusCode >= 300) {
|
|
334
|
-
return
|
|
334
|
+
return de_TagResourcesCommandError(output, context);
|
|
335
335
|
}
|
|
336
336
|
const data = await parseBody(output.body, context);
|
|
337
337
|
let contents = {};
|
|
338
|
-
contents =
|
|
338
|
+
contents = de_TagResourcesOutput(data, context);
|
|
339
339
|
const response = {
|
|
340
340
|
$metadata: deserializeMetadata(output),
|
|
341
341
|
...contents,
|
|
342
342
|
};
|
|
343
343
|
return Promise.resolve(response);
|
|
344
344
|
};
|
|
345
|
-
const
|
|
345
|
+
const de_TagResourcesCommandError = async (output, context) => {
|
|
346
346
|
const parsedOutput = {
|
|
347
347
|
...output,
|
|
348
348
|
body: await parseErrorBody(output.body, context),
|
|
@@ -351,13 +351,13 @@ const deserializeAws_json1_1TagResourcesCommandError = async (output, context) =
|
|
|
351
351
|
switch (errorCode) {
|
|
352
352
|
case "InternalServiceException":
|
|
353
353
|
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
354
|
-
throw await
|
|
354
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
355
355
|
case "InvalidParameterException":
|
|
356
356
|
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
357
|
-
throw await
|
|
357
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
358
358
|
case "ThrottledException":
|
|
359
359
|
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
360
|
-
throw await
|
|
360
|
+
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
361
361
|
default:
|
|
362
362
|
const parsedBody = parsedOutput.body;
|
|
363
363
|
throwDefaultError({
|
|
@@ -368,20 +368,20 @@ const deserializeAws_json1_1TagResourcesCommandError = async (output, context) =
|
|
|
368
368
|
});
|
|
369
369
|
}
|
|
370
370
|
};
|
|
371
|
-
export const
|
|
371
|
+
export const de_UntagResourcesCommand = async (output, context) => {
|
|
372
372
|
if (output.statusCode >= 300) {
|
|
373
|
-
return
|
|
373
|
+
return de_UntagResourcesCommandError(output, context);
|
|
374
374
|
}
|
|
375
375
|
const data = await parseBody(output.body, context);
|
|
376
376
|
let contents = {};
|
|
377
|
-
contents =
|
|
377
|
+
contents = de_UntagResourcesOutput(data, context);
|
|
378
378
|
const response = {
|
|
379
379
|
$metadata: deserializeMetadata(output),
|
|
380
380
|
...contents,
|
|
381
381
|
};
|
|
382
382
|
return Promise.resolve(response);
|
|
383
383
|
};
|
|
384
|
-
const
|
|
384
|
+
const de_UntagResourcesCommandError = async (output, context) => {
|
|
385
385
|
const parsedOutput = {
|
|
386
386
|
...output,
|
|
387
387
|
body: await parseErrorBody(output.body, context),
|
|
@@ -390,13 +390,13 @@ const deserializeAws_json1_1UntagResourcesCommandError = async (output, context)
|
|
|
390
390
|
switch (errorCode) {
|
|
391
391
|
case "InternalServiceException":
|
|
392
392
|
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
393
|
-
throw await
|
|
393
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
394
394
|
case "InvalidParameterException":
|
|
395
395
|
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
396
|
-
throw await
|
|
396
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
397
397
|
case "ThrottledException":
|
|
398
398
|
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
399
|
-
throw await
|
|
399
|
+
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
400
400
|
default:
|
|
401
401
|
const parsedBody = parsedOutput.body;
|
|
402
402
|
throwDefaultError({
|
|
@@ -407,177 +407,169 @@ const deserializeAws_json1_1UntagResourcesCommandError = async (output, context)
|
|
|
407
407
|
});
|
|
408
408
|
}
|
|
409
409
|
};
|
|
410
|
-
const
|
|
410
|
+
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
411
411
|
const body = parsedOutput.body;
|
|
412
|
-
const deserialized =
|
|
412
|
+
const deserialized = de_ConcurrentModificationException(body, context);
|
|
413
413
|
const exception = new ConcurrentModificationException({
|
|
414
414
|
$metadata: deserializeMetadata(parsedOutput),
|
|
415
415
|
...deserialized,
|
|
416
416
|
});
|
|
417
417
|
return __decorateServiceException(exception, body);
|
|
418
418
|
};
|
|
419
|
-
const
|
|
419
|
+
const de_ConstraintViolationExceptionRes = async (parsedOutput, context) => {
|
|
420
420
|
const body = parsedOutput.body;
|
|
421
|
-
const deserialized =
|
|
421
|
+
const deserialized = de_ConstraintViolationException(body, context);
|
|
422
422
|
const exception = new ConstraintViolationException({
|
|
423
423
|
$metadata: deserializeMetadata(parsedOutput),
|
|
424
424
|
...deserialized,
|
|
425
425
|
});
|
|
426
426
|
return __decorateServiceException(exception, body);
|
|
427
427
|
};
|
|
428
|
-
const
|
|
428
|
+
const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
|
|
429
429
|
const body = parsedOutput.body;
|
|
430
|
-
const deserialized =
|
|
430
|
+
const deserialized = de_InternalServiceException(body, context);
|
|
431
431
|
const exception = new InternalServiceException({
|
|
432
432
|
$metadata: deserializeMetadata(parsedOutput),
|
|
433
433
|
...deserialized,
|
|
434
434
|
});
|
|
435
435
|
return __decorateServiceException(exception, body);
|
|
436
436
|
};
|
|
437
|
-
const
|
|
437
|
+
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
438
438
|
const body = parsedOutput.body;
|
|
439
|
-
const deserialized =
|
|
439
|
+
const deserialized = de_InvalidParameterException(body, context);
|
|
440
440
|
const exception = new InvalidParameterException({
|
|
441
441
|
$metadata: deserializeMetadata(parsedOutput),
|
|
442
442
|
...deserialized,
|
|
443
443
|
});
|
|
444
444
|
return __decorateServiceException(exception, body);
|
|
445
445
|
};
|
|
446
|
-
const
|
|
446
|
+
const de_PaginationTokenExpiredExceptionRes = async (parsedOutput, context) => {
|
|
447
447
|
const body = parsedOutput.body;
|
|
448
|
-
const deserialized =
|
|
448
|
+
const deserialized = de_PaginationTokenExpiredException(body, context);
|
|
449
449
|
const exception = new PaginationTokenExpiredException({
|
|
450
450
|
$metadata: deserializeMetadata(parsedOutput),
|
|
451
451
|
...deserialized,
|
|
452
452
|
});
|
|
453
453
|
return __decorateServiceException(exception, body);
|
|
454
454
|
};
|
|
455
|
-
const
|
|
455
|
+
const de_ThrottledExceptionRes = async (parsedOutput, context) => {
|
|
456
456
|
const body = parsedOutput.body;
|
|
457
|
-
const deserialized =
|
|
457
|
+
const deserialized = de_ThrottledException(body, context);
|
|
458
458
|
const exception = new ThrottledException({
|
|
459
459
|
$metadata: deserializeMetadata(parsedOutput),
|
|
460
460
|
...deserialized,
|
|
461
461
|
});
|
|
462
462
|
return __decorateServiceException(exception, body);
|
|
463
463
|
};
|
|
464
|
-
const
|
|
464
|
+
const se_DescribeReportCreationInput = (input, context) => {
|
|
465
465
|
return {};
|
|
466
466
|
};
|
|
467
|
-
const
|
|
467
|
+
const se_GetComplianceSummaryInput = (input, context) => {
|
|
468
468
|
return {
|
|
469
|
-
...(input.GroupBy != null && { GroupBy:
|
|
469
|
+
...(input.GroupBy != null && { GroupBy: se_GroupBy(input.GroupBy, context) }),
|
|
470
470
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
471
471
|
...(input.PaginationToken != null && { PaginationToken: input.PaginationToken }),
|
|
472
|
-
...(input.RegionFilters != null && {
|
|
473
|
-
RegionFilters: serializeAws_json1_1RegionFilterList(input.RegionFilters, context),
|
|
474
|
-
}),
|
|
472
|
+
...(input.RegionFilters != null && { RegionFilters: se_RegionFilterList(input.RegionFilters, context) }),
|
|
475
473
|
...(input.ResourceTypeFilters != null && {
|
|
476
|
-
ResourceTypeFilters:
|
|
477
|
-
}),
|
|
478
|
-
...(input.TagKeyFilters != null && {
|
|
479
|
-
TagKeyFilters: serializeAws_json1_1TagKeyFilterList(input.TagKeyFilters, context),
|
|
480
|
-
}),
|
|
481
|
-
...(input.TargetIdFilters != null && {
|
|
482
|
-
TargetIdFilters: serializeAws_json1_1TargetIdFilterList(input.TargetIdFilters, context),
|
|
474
|
+
ResourceTypeFilters: se_ResourceTypeFilterList(input.ResourceTypeFilters, context),
|
|
483
475
|
}),
|
|
476
|
+
...(input.TagKeyFilters != null && { TagKeyFilters: se_TagKeyFilterList(input.TagKeyFilters, context) }),
|
|
477
|
+
...(input.TargetIdFilters != null && { TargetIdFilters: se_TargetIdFilterList(input.TargetIdFilters, context) }),
|
|
484
478
|
};
|
|
485
479
|
};
|
|
486
|
-
const
|
|
480
|
+
const se_GetResourcesInput = (input, context) => {
|
|
487
481
|
return {
|
|
488
482
|
...(input.ExcludeCompliantResources != null && { ExcludeCompliantResources: input.ExcludeCompliantResources }),
|
|
489
483
|
...(input.IncludeComplianceDetails != null && { IncludeComplianceDetails: input.IncludeComplianceDetails }),
|
|
490
484
|
...(input.PaginationToken != null && { PaginationToken: input.PaginationToken }),
|
|
491
|
-
...(input.ResourceARNList != null && {
|
|
492
|
-
ResourceARNList: serializeAws_json1_1ResourceARNListForGet(input.ResourceARNList, context),
|
|
493
|
-
}),
|
|
485
|
+
...(input.ResourceARNList != null && { ResourceARNList: se_ResourceARNListForGet(input.ResourceARNList, context) }),
|
|
494
486
|
...(input.ResourceTypeFilters != null && {
|
|
495
|
-
ResourceTypeFilters:
|
|
487
|
+
ResourceTypeFilters: se_ResourceTypeFilterList(input.ResourceTypeFilters, context),
|
|
496
488
|
}),
|
|
497
489
|
...(input.ResourcesPerPage != null && { ResourcesPerPage: input.ResourcesPerPage }),
|
|
498
|
-
...(input.TagFilters != null && { TagFilters:
|
|
490
|
+
...(input.TagFilters != null && { TagFilters: se_TagFilterList(input.TagFilters, context) }),
|
|
499
491
|
...(input.TagsPerPage != null && { TagsPerPage: input.TagsPerPage }),
|
|
500
492
|
};
|
|
501
493
|
};
|
|
502
|
-
const
|
|
494
|
+
const se_GetTagKeysInput = (input, context) => {
|
|
503
495
|
return {
|
|
504
496
|
...(input.PaginationToken != null && { PaginationToken: input.PaginationToken }),
|
|
505
497
|
};
|
|
506
498
|
};
|
|
507
|
-
const
|
|
499
|
+
const se_GetTagValuesInput = (input, context) => {
|
|
508
500
|
return {
|
|
509
501
|
...(input.Key != null && { Key: input.Key }),
|
|
510
502
|
...(input.PaginationToken != null && { PaginationToken: input.PaginationToken }),
|
|
511
503
|
};
|
|
512
504
|
};
|
|
513
|
-
const
|
|
505
|
+
const se_GroupBy = (input, context) => {
|
|
514
506
|
return input
|
|
515
507
|
.filter((e) => e != null)
|
|
516
508
|
.map((entry) => {
|
|
517
509
|
return entry;
|
|
518
510
|
});
|
|
519
511
|
};
|
|
520
|
-
const
|
|
512
|
+
const se_RegionFilterList = (input, context) => {
|
|
521
513
|
return input
|
|
522
514
|
.filter((e) => e != null)
|
|
523
515
|
.map((entry) => {
|
|
524
516
|
return entry;
|
|
525
517
|
});
|
|
526
518
|
};
|
|
527
|
-
const
|
|
519
|
+
const se_ResourceARNListForGet = (input, context) => {
|
|
528
520
|
return input
|
|
529
521
|
.filter((e) => e != null)
|
|
530
522
|
.map((entry) => {
|
|
531
523
|
return entry;
|
|
532
524
|
});
|
|
533
525
|
};
|
|
534
|
-
const
|
|
526
|
+
const se_ResourceARNListForTagUntag = (input, context) => {
|
|
535
527
|
return input
|
|
536
528
|
.filter((e) => e != null)
|
|
537
529
|
.map((entry) => {
|
|
538
530
|
return entry;
|
|
539
531
|
});
|
|
540
532
|
};
|
|
541
|
-
const
|
|
533
|
+
const se_ResourceTypeFilterList = (input, context) => {
|
|
542
534
|
return input
|
|
543
535
|
.filter((e) => e != null)
|
|
544
536
|
.map((entry) => {
|
|
545
537
|
return entry;
|
|
546
538
|
});
|
|
547
539
|
};
|
|
548
|
-
const
|
|
540
|
+
const se_StartReportCreationInput = (input, context) => {
|
|
549
541
|
return {
|
|
550
542
|
...(input.S3Bucket != null && { S3Bucket: input.S3Bucket }),
|
|
551
543
|
};
|
|
552
544
|
};
|
|
553
|
-
const
|
|
545
|
+
const se_TagFilter = (input, context) => {
|
|
554
546
|
return {
|
|
555
547
|
...(input.Key != null && { Key: input.Key }),
|
|
556
|
-
...(input.Values != null && { Values:
|
|
548
|
+
...(input.Values != null && { Values: se_TagValueList(input.Values, context) }),
|
|
557
549
|
};
|
|
558
550
|
};
|
|
559
|
-
const
|
|
551
|
+
const se_TagFilterList = (input, context) => {
|
|
560
552
|
return input
|
|
561
553
|
.filter((e) => e != null)
|
|
562
554
|
.map((entry) => {
|
|
563
|
-
return
|
|
555
|
+
return se_TagFilter(entry, context);
|
|
564
556
|
});
|
|
565
557
|
};
|
|
566
|
-
const
|
|
558
|
+
const se_TagKeyFilterList = (input, context) => {
|
|
567
559
|
return input
|
|
568
560
|
.filter((e) => e != null)
|
|
569
561
|
.map((entry) => {
|
|
570
562
|
return entry;
|
|
571
563
|
});
|
|
572
564
|
};
|
|
573
|
-
const
|
|
565
|
+
const se_TagKeyListForUntag = (input, context) => {
|
|
574
566
|
return input
|
|
575
567
|
.filter((e) => e != null)
|
|
576
568
|
.map((entry) => {
|
|
577
569
|
return entry;
|
|
578
570
|
});
|
|
579
571
|
};
|
|
580
|
-
const
|
|
572
|
+
const se_TagMap = (input, context) => {
|
|
581
573
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
582
574
|
if (value === null) {
|
|
583
575
|
return acc;
|
|
@@ -586,56 +578,54 @@ const serializeAws_json1_1TagMap = (input, context) => {
|
|
|
586
578
|
return acc;
|
|
587
579
|
}, {});
|
|
588
580
|
};
|
|
589
|
-
const
|
|
581
|
+
const se_TagResourcesInput = (input, context) => {
|
|
590
582
|
return {
|
|
591
583
|
...(input.ResourceARNList != null && {
|
|
592
|
-
ResourceARNList:
|
|
584
|
+
ResourceARNList: se_ResourceARNListForTagUntag(input.ResourceARNList, context),
|
|
593
585
|
}),
|
|
594
|
-
...(input.Tags != null && { Tags:
|
|
586
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
595
587
|
};
|
|
596
588
|
};
|
|
597
|
-
const
|
|
589
|
+
const se_TagValueList = (input, context) => {
|
|
598
590
|
return input
|
|
599
591
|
.filter((e) => e != null)
|
|
600
592
|
.map((entry) => {
|
|
601
593
|
return entry;
|
|
602
594
|
});
|
|
603
595
|
};
|
|
604
|
-
const
|
|
596
|
+
const se_TargetIdFilterList = (input, context) => {
|
|
605
597
|
return input
|
|
606
598
|
.filter((e) => e != null)
|
|
607
599
|
.map((entry) => {
|
|
608
600
|
return entry;
|
|
609
601
|
});
|
|
610
602
|
};
|
|
611
|
-
const
|
|
603
|
+
const se_UntagResourcesInput = (input, context) => {
|
|
612
604
|
return {
|
|
613
605
|
...(input.ResourceARNList != null && {
|
|
614
|
-
ResourceARNList:
|
|
606
|
+
ResourceARNList: se_ResourceARNListForTagUntag(input.ResourceARNList, context),
|
|
615
607
|
}),
|
|
616
|
-
...(input.TagKeys != null && { TagKeys:
|
|
608
|
+
...(input.TagKeys != null && { TagKeys: se_TagKeyListForUntag(input.TagKeys, context) }),
|
|
617
609
|
};
|
|
618
610
|
};
|
|
619
|
-
const
|
|
611
|
+
const de_ComplianceDetails = (output, context) => {
|
|
620
612
|
return {
|
|
621
613
|
ComplianceStatus: __expectBoolean(output.ComplianceStatus),
|
|
622
|
-
KeysWithNoncompliantValues: output.KeysWithNoncompliantValues != null
|
|
623
|
-
|
|
624
|
-
: undefined,
|
|
625
|
-
NoncompliantKeys: output.NoncompliantKeys != null ? deserializeAws_json1_1TagKeyList(output.NoncompliantKeys, context) : undefined,
|
|
614
|
+
KeysWithNoncompliantValues: output.KeysWithNoncompliantValues != null ? de_TagKeyList(output.KeysWithNoncompliantValues, context) : undefined,
|
|
615
|
+
NoncompliantKeys: output.NoncompliantKeys != null ? de_TagKeyList(output.NoncompliantKeys, context) : undefined,
|
|
626
616
|
};
|
|
627
617
|
};
|
|
628
|
-
const
|
|
618
|
+
const de_ConcurrentModificationException = (output, context) => {
|
|
629
619
|
return {
|
|
630
620
|
Message: __expectString(output.Message),
|
|
631
621
|
};
|
|
632
622
|
};
|
|
633
|
-
const
|
|
623
|
+
const de_ConstraintViolationException = (output, context) => {
|
|
634
624
|
return {
|
|
635
625
|
Message: __expectString(output.Message),
|
|
636
626
|
};
|
|
637
627
|
};
|
|
638
|
-
const
|
|
628
|
+
const de_DescribeReportCreationOutput = (output, context) => {
|
|
639
629
|
return {
|
|
640
630
|
ErrorMessage: __expectString(output.ErrorMessage),
|
|
641
631
|
S3Location: __expectString(output.S3Location),
|
|
@@ -643,87 +633,85 @@ const deserializeAws_json1_1DescribeReportCreationOutput = (output, context) =>
|
|
|
643
633
|
Status: __expectString(output.Status),
|
|
644
634
|
};
|
|
645
635
|
};
|
|
646
|
-
const
|
|
636
|
+
const de_FailedResourcesMap = (output, context) => {
|
|
647
637
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
648
638
|
if (value === null) {
|
|
649
639
|
return acc;
|
|
650
640
|
}
|
|
651
|
-
acc[key] =
|
|
641
|
+
acc[key] = de_FailureInfo(value, context);
|
|
652
642
|
return acc;
|
|
653
643
|
}, {});
|
|
654
644
|
};
|
|
655
|
-
const
|
|
645
|
+
const de_FailureInfo = (output, context) => {
|
|
656
646
|
return {
|
|
657
647
|
ErrorCode: __expectString(output.ErrorCode),
|
|
658
648
|
ErrorMessage: __expectString(output.ErrorMessage),
|
|
659
649
|
StatusCode: __expectInt32(output.StatusCode),
|
|
660
650
|
};
|
|
661
651
|
};
|
|
662
|
-
const
|
|
652
|
+
const de_GetComplianceSummaryOutput = (output, context) => {
|
|
663
653
|
return {
|
|
664
654
|
PaginationToken: __expectString(output.PaginationToken),
|
|
665
|
-
SummaryList: output.SummaryList != null ?
|
|
655
|
+
SummaryList: output.SummaryList != null ? de_SummaryList(output.SummaryList, context) : undefined,
|
|
666
656
|
};
|
|
667
657
|
};
|
|
668
|
-
const
|
|
658
|
+
const de_GetResourcesOutput = (output, context) => {
|
|
669
659
|
return {
|
|
670
660
|
PaginationToken: __expectString(output.PaginationToken),
|
|
671
661
|
ResourceTagMappingList: output.ResourceTagMappingList != null
|
|
672
|
-
?
|
|
662
|
+
? de_ResourceTagMappingList(output.ResourceTagMappingList, context)
|
|
673
663
|
: undefined,
|
|
674
664
|
};
|
|
675
665
|
};
|
|
676
|
-
const
|
|
666
|
+
const de_GetTagKeysOutput = (output, context) => {
|
|
677
667
|
return {
|
|
678
668
|
PaginationToken: __expectString(output.PaginationToken),
|
|
679
|
-
TagKeys: output.TagKeys != null ?
|
|
669
|
+
TagKeys: output.TagKeys != null ? de_TagKeyList(output.TagKeys, context) : undefined,
|
|
680
670
|
};
|
|
681
671
|
};
|
|
682
|
-
const
|
|
672
|
+
const de_GetTagValuesOutput = (output, context) => {
|
|
683
673
|
return {
|
|
684
674
|
PaginationToken: __expectString(output.PaginationToken),
|
|
685
|
-
TagValues: output.TagValues != null ?
|
|
675
|
+
TagValues: output.TagValues != null ? de_TagValuesOutputList(output.TagValues, context) : undefined,
|
|
686
676
|
};
|
|
687
677
|
};
|
|
688
|
-
const
|
|
678
|
+
const de_InternalServiceException = (output, context) => {
|
|
689
679
|
return {
|
|
690
680
|
Message: __expectString(output.Message),
|
|
691
681
|
};
|
|
692
682
|
};
|
|
693
|
-
const
|
|
683
|
+
const de_InvalidParameterException = (output, context) => {
|
|
694
684
|
return {
|
|
695
685
|
Message: __expectString(output.Message),
|
|
696
686
|
};
|
|
697
687
|
};
|
|
698
|
-
const
|
|
688
|
+
const de_PaginationTokenExpiredException = (output, context) => {
|
|
699
689
|
return {
|
|
700
690
|
Message: __expectString(output.Message),
|
|
701
691
|
};
|
|
702
692
|
};
|
|
703
|
-
const
|
|
693
|
+
const de_ResourceTagMapping = (output, context) => {
|
|
704
694
|
return {
|
|
705
|
-
ComplianceDetails: output.ComplianceDetails != null
|
|
706
|
-
? deserializeAws_json1_1ComplianceDetails(output.ComplianceDetails, context)
|
|
707
|
-
: undefined,
|
|
695
|
+
ComplianceDetails: output.ComplianceDetails != null ? de_ComplianceDetails(output.ComplianceDetails, context) : undefined,
|
|
708
696
|
ResourceARN: __expectString(output.ResourceARN),
|
|
709
|
-
Tags: output.Tags != null ?
|
|
697
|
+
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
710
698
|
};
|
|
711
699
|
};
|
|
712
|
-
const
|
|
700
|
+
const de_ResourceTagMappingList = (output, context) => {
|
|
713
701
|
const retVal = (output || [])
|
|
714
702
|
.filter((e) => e != null)
|
|
715
703
|
.map((entry) => {
|
|
716
704
|
if (entry === null) {
|
|
717
705
|
return null;
|
|
718
706
|
}
|
|
719
|
-
return
|
|
707
|
+
return de_ResourceTagMapping(entry, context);
|
|
720
708
|
});
|
|
721
709
|
return retVal;
|
|
722
710
|
};
|
|
723
|
-
const
|
|
711
|
+
const de_StartReportCreationOutput = (output, context) => {
|
|
724
712
|
return {};
|
|
725
713
|
};
|
|
726
|
-
const
|
|
714
|
+
const de_Summary = (output, context) => {
|
|
727
715
|
return {
|
|
728
716
|
LastUpdated: __expectString(output.LastUpdated),
|
|
729
717
|
NonCompliantResources: __expectLong(output.NonCompliantResources),
|
|
@@ -733,24 +721,24 @@ const deserializeAws_json1_1Summary = (output, context) => {
|
|
|
733
721
|
TargetIdType: __expectString(output.TargetIdType),
|
|
734
722
|
};
|
|
735
723
|
};
|
|
736
|
-
const
|
|
724
|
+
const de_SummaryList = (output, context) => {
|
|
737
725
|
const retVal = (output || [])
|
|
738
726
|
.filter((e) => e != null)
|
|
739
727
|
.map((entry) => {
|
|
740
728
|
if (entry === null) {
|
|
741
729
|
return null;
|
|
742
730
|
}
|
|
743
|
-
return
|
|
731
|
+
return de_Summary(entry, context);
|
|
744
732
|
});
|
|
745
733
|
return retVal;
|
|
746
734
|
};
|
|
747
|
-
const
|
|
735
|
+
const de_Tag = (output, context) => {
|
|
748
736
|
return {
|
|
749
737
|
Key: __expectString(output.Key),
|
|
750
738
|
Value: __expectString(output.Value),
|
|
751
739
|
};
|
|
752
740
|
};
|
|
753
|
-
const
|
|
741
|
+
const de_TagKeyList = (output, context) => {
|
|
754
742
|
const retVal = (output || [])
|
|
755
743
|
.filter((e) => e != null)
|
|
756
744
|
.map((entry) => {
|
|
@@ -761,25 +749,23 @@ const deserializeAws_json1_1TagKeyList = (output, context) => {
|
|
|
761
749
|
});
|
|
762
750
|
return retVal;
|
|
763
751
|
};
|
|
764
|
-
const
|
|
752
|
+
const de_TagList = (output, context) => {
|
|
765
753
|
const retVal = (output || [])
|
|
766
754
|
.filter((e) => e != null)
|
|
767
755
|
.map((entry) => {
|
|
768
756
|
if (entry === null) {
|
|
769
757
|
return null;
|
|
770
758
|
}
|
|
771
|
-
return
|
|
759
|
+
return de_Tag(entry, context);
|
|
772
760
|
});
|
|
773
761
|
return retVal;
|
|
774
762
|
};
|
|
775
|
-
const
|
|
763
|
+
const de_TagResourcesOutput = (output, context) => {
|
|
776
764
|
return {
|
|
777
|
-
FailedResourcesMap: output.FailedResourcesMap != null
|
|
778
|
-
? deserializeAws_json1_1FailedResourcesMap(output.FailedResourcesMap, context)
|
|
779
|
-
: undefined,
|
|
765
|
+
FailedResourcesMap: output.FailedResourcesMap != null ? de_FailedResourcesMap(output.FailedResourcesMap, context) : undefined,
|
|
780
766
|
};
|
|
781
767
|
};
|
|
782
|
-
const
|
|
768
|
+
const de_TagValuesOutputList = (output, context) => {
|
|
783
769
|
const retVal = (output || [])
|
|
784
770
|
.filter((e) => e != null)
|
|
785
771
|
.map((entry) => {
|
|
@@ -790,16 +776,14 @@ const deserializeAws_json1_1TagValuesOutputList = (output, context) => {
|
|
|
790
776
|
});
|
|
791
777
|
return retVal;
|
|
792
778
|
};
|
|
793
|
-
const
|
|
779
|
+
const de_ThrottledException = (output, context) => {
|
|
794
780
|
return {
|
|
795
781
|
Message: __expectString(output.Message),
|
|
796
782
|
};
|
|
797
783
|
};
|
|
798
|
-
const
|
|
784
|
+
const de_UntagResourcesOutput = (output, context) => {
|
|
799
785
|
return {
|
|
800
|
-
FailedResourcesMap: output.FailedResourcesMap != null
|
|
801
|
-
? deserializeAws_json1_1FailedResourcesMap(output.FailedResourcesMap, context)
|
|
802
|
-
: undefined,
|
|
786
|
+
FailedResourcesMap: output.FailedResourcesMap != null ? de_FailedResourcesMap(output.FailedResourcesMap, context) : undefined,
|
|
803
787
|
};
|
|
804
788
|
};
|
|
805
789
|
const deserializeMetadata = (output) => ({
|