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