@aws-sdk/client-resource-groups-tagging-api 3.32.0 → 3.36.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/CHANGELOG.md +44 -0
- package/{dist/cjs → dist-cjs}/ResourceGroupsTaggingAPI.js +1 -2
- package/{dist/cjs → dist-cjs}/ResourceGroupsTaggingAPIClient.js +8 -9
- package/{dist/cjs → dist-cjs}/commands/DescribeReportCreationCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetComplianceSummaryCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetResourcesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetTagKeysCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetTagValuesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/StartReportCreationCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/TagResourcesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UntagResourcesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/GetComplianceSummaryPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/GetResourcesPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/GetTagKeysPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/GetTagValuesPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
- package/{dist/es → dist-es}/ResourceGroupsTaggingAPI.js +2 -6
- package/{dist/es → dist-es}/ResourceGroupsTaggingAPIClient.js +2 -11
- package/{dist/es → dist-es}/commands/DescribeReportCreationCommand.js +4 -32
- package/dist-es/commands/GetComplianceSummaryCommand.js +39 -0
- package/dist-es/commands/GetResourcesCommand.js +39 -0
- package/dist-es/commands/GetTagKeysCommand.js +39 -0
- package/dist-es/commands/GetTagValuesCommand.js +39 -0
- package/{dist/es → dist-es}/commands/StartReportCreationCommand.js +4 -38
- package/dist-es/commands/TagResourcesCommand.js +39 -0
- package/dist-es/commands/UntagResourcesCommand.js +39 -0
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -85
- package/{dist/es → dist-es}/pagination/GetComplianceSummaryPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/GetResourcesPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/GetTagKeysPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/GetTagValuesPaginator.js +17 -30
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +188 -194
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/ResourceGroupsTaggingAPI.d.ts +2 -2
- package/{dist/types → dist-types}/ResourceGroupsTaggingAPIClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/DescribeReportCreationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetComplianceSummaryCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetResourcesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetTagKeysCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetTagValuesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/StartReportCreationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/TagResourcesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UntagResourcesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/GetComplianceSummaryPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/GetResourcesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/GetTagKeysPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/GetTagValuesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.browser.d.ts +37 -36
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/ResourceGroupsTaggingAPI.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/ResourceGroupsTaggingAPIClient.d.ts +8 -8
- package/{dist/types → dist-types}/ts3.4/commands/DescribeReportCreationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetComplianceSummaryCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetResourcesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetTagKeysCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetTagValuesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/StartReportCreationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/TagResourcesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/UntagResourcesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/pagination/GetComplianceSummaryPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/GetResourcesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/GetTagKeysPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/GetTagValuesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.browser.d.ts +37 -36
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +52 -49
- package/ResourceGroupsTaggingAPI.ts +0 -385
- package/ResourceGroupsTaggingAPIClient.ts +0 -269
- package/commands/DescribeReportCreationCommand.ts +0 -100
- package/commands/GetComplianceSummaryCommand.ts +0 -110
- package/commands/GetResourcesCommand.ts +0 -121
- package/commands/GetTagKeysCommand.ts +0 -105
- package/commands/GetTagValuesCommand.ts +0 -105
- package/commands/StartReportCreationCommand.ts +0 -106
- package/commands/TagResourcesCommand.ts +0 -125
- package/commands/UntagResourcesCommand.ts +0 -113
- package/dist/cjs/ResourceGroupsTaggingAPI.js.map +0 -1
- package/dist/cjs/ResourceGroupsTaggingAPIClient.js.map +0 -1
- package/dist/cjs/commands/DescribeReportCreationCommand.js.map +0 -1
- package/dist/cjs/commands/GetComplianceSummaryCommand.js.map +0 -1
- package/dist/cjs/commands/GetResourcesCommand.js.map +0 -1
- package/dist/cjs/commands/GetTagKeysCommand.js.map +0 -1
- package/dist/cjs/commands/GetTagValuesCommand.js.map +0 -1
- package/dist/cjs/commands/StartReportCreationCommand.js.map +0 -1
- package/dist/cjs/commands/TagResourcesCommand.js.map +0 -1
- package/dist/cjs/commands/UntagResourcesCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/pagination/GetComplianceSummaryPaginator.js.map +0 -1
- package/dist/cjs/pagination/GetResourcesPaginator.js.map +0 -1
- package/dist/cjs/pagination/GetTagKeysPaginator.js.map +0 -1
- package/dist/cjs/pagination/GetTagValuesPaginator.js.map +0 -1
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/ResourceGroupsTaggingAPI.js.map +0 -1
- package/dist/es/ResourceGroupsTaggingAPIClient.js.map +0 -1
- package/dist/es/commands/DescribeReportCreationCommand.js.map +0 -1
- package/dist/es/commands/GetComplianceSummaryCommand.js +0 -77
- package/dist/es/commands/GetComplianceSummaryCommand.js.map +0 -1
- package/dist/es/commands/GetResourcesCommand.js +0 -88
- package/dist/es/commands/GetResourcesCommand.js.map +0 -1
- package/dist/es/commands/GetTagKeysCommand.js +0 -72
- package/dist/es/commands/GetTagKeysCommand.js.map +0 -1
- package/dist/es/commands/GetTagValuesCommand.js +0 -72
- package/dist/es/commands/GetTagValuesCommand.js.map +0 -1
- package/dist/es/commands/StartReportCreationCommand.js.map +0 -1
- package/dist/es/commands/TagResourcesCommand.js +0 -92
- package/dist/es/commands/TagResourcesCommand.js.map +0 -1
- package/dist/es/commands/UntagResourcesCommand.js +0 -80
- package/dist/es/commands/UntagResourcesCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -17
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/GetComplianceSummaryPaginator.js.map +0 -1
- package/dist/es/pagination/GetResourcesPaginator.js.map +0 -1
- package/dist/es/pagination/GetTagKeysPaginator.js.map +0 -1
- package/dist/es/pagination/GetTagValuesPaginator.js.map +0 -1
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/protocols/Aws_json1_1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -947
- package/pagination/GetComplianceSummaryPaginator.ts +0 -58
- package/pagination/GetResourcesPaginator.ts +0 -58
- package/pagination/GetTagKeysPaginator.ts +0 -53
- package/pagination/GetTagValuesPaginator.ts +0 -57
- package/pagination/Interfaces.ts +0 -7
- package/protocols/Aws_json1_1.ts +0 -1448
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
package/protocols/Aws_json1_1.ts
DELETED
|
@@ -1,1448 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DescribeReportCreationCommandInput,
|
|
3
|
-
DescribeReportCreationCommandOutput,
|
|
4
|
-
} from "../commands/DescribeReportCreationCommand";
|
|
5
|
-
import {
|
|
6
|
-
GetComplianceSummaryCommandInput,
|
|
7
|
-
GetComplianceSummaryCommandOutput,
|
|
8
|
-
} from "../commands/GetComplianceSummaryCommand";
|
|
9
|
-
import { GetResourcesCommandInput, GetResourcesCommandOutput } from "../commands/GetResourcesCommand";
|
|
10
|
-
import { GetTagKeysCommandInput, GetTagKeysCommandOutput } from "../commands/GetTagKeysCommand";
|
|
11
|
-
import { GetTagValuesCommandInput, GetTagValuesCommandOutput } from "../commands/GetTagValuesCommand";
|
|
12
|
-
import {
|
|
13
|
-
StartReportCreationCommandInput,
|
|
14
|
-
StartReportCreationCommandOutput,
|
|
15
|
-
} from "../commands/StartReportCreationCommand";
|
|
16
|
-
import { TagResourcesCommandInput, TagResourcesCommandOutput } from "../commands/TagResourcesCommand";
|
|
17
|
-
import { UntagResourcesCommandInput, UntagResourcesCommandOutput } from "../commands/UntagResourcesCommand";
|
|
18
|
-
import {
|
|
19
|
-
ComplianceDetails,
|
|
20
|
-
ConcurrentModificationException,
|
|
21
|
-
ConstraintViolationException,
|
|
22
|
-
DescribeReportCreationInput,
|
|
23
|
-
DescribeReportCreationOutput,
|
|
24
|
-
FailureInfo,
|
|
25
|
-
GetComplianceSummaryInput,
|
|
26
|
-
GetComplianceSummaryOutput,
|
|
27
|
-
GetResourcesInput,
|
|
28
|
-
GetResourcesOutput,
|
|
29
|
-
GetTagKeysInput,
|
|
30
|
-
GetTagKeysOutput,
|
|
31
|
-
GetTagValuesInput,
|
|
32
|
-
GetTagValuesOutput,
|
|
33
|
-
GroupByAttribute,
|
|
34
|
-
InternalServiceException,
|
|
35
|
-
InvalidParameterException,
|
|
36
|
-
PaginationTokenExpiredException,
|
|
37
|
-
ResourceTagMapping,
|
|
38
|
-
StartReportCreationInput,
|
|
39
|
-
StartReportCreationOutput,
|
|
40
|
-
Summary,
|
|
41
|
-
Tag,
|
|
42
|
-
TagFilter,
|
|
43
|
-
TagResourcesInput,
|
|
44
|
-
TagResourcesOutput,
|
|
45
|
-
ThrottledException,
|
|
46
|
-
UntagResourcesInput,
|
|
47
|
-
UntagResourcesOutput,
|
|
48
|
-
} from "../models/models_0";
|
|
49
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
50
|
-
import {
|
|
51
|
-
expectBoolean as __expectBoolean,
|
|
52
|
-
expectInt32 as __expectInt32,
|
|
53
|
-
expectLong as __expectLong,
|
|
54
|
-
expectString as __expectString,
|
|
55
|
-
} from "@aws-sdk/smithy-client";
|
|
56
|
-
import {
|
|
57
|
-
Endpoint as __Endpoint,
|
|
58
|
-
HeaderBag as __HeaderBag,
|
|
59
|
-
MetadataBearer as __MetadataBearer,
|
|
60
|
-
ResponseMetadata as __ResponseMetadata,
|
|
61
|
-
SerdeContext as __SerdeContext,
|
|
62
|
-
SmithyException as __SmithyException,
|
|
63
|
-
} from "@aws-sdk/types";
|
|
64
|
-
|
|
65
|
-
export const serializeAws_json1_1DescribeReportCreationCommand = async (
|
|
66
|
-
input: DescribeReportCreationCommandInput,
|
|
67
|
-
context: __SerdeContext
|
|
68
|
-
): Promise<__HttpRequest> => {
|
|
69
|
-
const headers: __HeaderBag = {
|
|
70
|
-
"content-type": "application/x-amz-json-1.1",
|
|
71
|
-
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.DescribeReportCreation",
|
|
72
|
-
};
|
|
73
|
-
let body: any;
|
|
74
|
-
body = JSON.stringify(serializeAws_json1_1DescribeReportCreationInput(input, context));
|
|
75
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
export const serializeAws_json1_1GetComplianceSummaryCommand = async (
|
|
79
|
-
input: GetComplianceSummaryCommandInput,
|
|
80
|
-
context: __SerdeContext
|
|
81
|
-
): Promise<__HttpRequest> => {
|
|
82
|
-
const headers: __HeaderBag = {
|
|
83
|
-
"content-type": "application/x-amz-json-1.1",
|
|
84
|
-
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.GetComplianceSummary",
|
|
85
|
-
};
|
|
86
|
-
let body: any;
|
|
87
|
-
body = JSON.stringify(serializeAws_json1_1GetComplianceSummaryInput(input, context));
|
|
88
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
export const serializeAws_json1_1GetResourcesCommand = async (
|
|
92
|
-
input: GetResourcesCommandInput,
|
|
93
|
-
context: __SerdeContext
|
|
94
|
-
): Promise<__HttpRequest> => {
|
|
95
|
-
const headers: __HeaderBag = {
|
|
96
|
-
"content-type": "application/x-amz-json-1.1",
|
|
97
|
-
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.GetResources",
|
|
98
|
-
};
|
|
99
|
-
let body: any;
|
|
100
|
-
body = JSON.stringify(serializeAws_json1_1GetResourcesInput(input, context));
|
|
101
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
export const serializeAws_json1_1GetTagKeysCommand = async (
|
|
105
|
-
input: GetTagKeysCommandInput,
|
|
106
|
-
context: __SerdeContext
|
|
107
|
-
): Promise<__HttpRequest> => {
|
|
108
|
-
const headers: __HeaderBag = {
|
|
109
|
-
"content-type": "application/x-amz-json-1.1",
|
|
110
|
-
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.GetTagKeys",
|
|
111
|
-
};
|
|
112
|
-
let body: any;
|
|
113
|
-
body = JSON.stringify(serializeAws_json1_1GetTagKeysInput(input, context));
|
|
114
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
export const serializeAws_json1_1GetTagValuesCommand = async (
|
|
118
|
-
input: GetTagValuesCommandInput,
|
|
119
|
-
context: __SerdeContext
|
|
120
|
-
): Promise<__HttpRequest> => {
|
|
121
|
-
const headers: __HeaderBag = {
|
|
122
|
-
"content-type": "application/x-amz-json-1.1",
|
|
123
|
-
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.GetTagValues",
|
|
124
|
-
};
|
|
125
|
-
let body: any;
|
|
126
|
-
body = JSON.stringify(serializeAws_json1_1GetTagValuesInput(input, context));
|
|
127
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
export const serializeAws_json1_1StartReportCreationCommand = async (
|
|
131
|
-
input: StartReportCreationCommandInput,
|
|
132
|
-
context: __SerdeContext
|
|
133
|
-
): Promise<__HttpRequest> => {
|
|
134
|
-
const headers: __HeaderBag = {
|
|
135
|
-
"content-type": "application/x-amz-json-1.1",
|
|
136
|
-
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.StartReportCreation",
|
|
137
|
-
};
|
|
138
|
-
let body: any;
|
|
139
|
-
body = JSON.stringify(serializeAws_json1_1StartReportCreationInput(input, context));
|
|
140
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
export const serializeAws_json1_1TagResourcesCommand = async (
|
|
144
|
-
input: TagResourcesCommandInput,
|
|
145
|
-
context: __SerdeContext
|
|
146
|
-
): Promise<__HttpRequest> => {
|
|
147
|
-
const headers: __HeaderBag = {
|
|
148
|
-
"content-type": "application/x-amz-json-1.1",
|
|
149
|
-
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.TagResources",
|
|
150
|
-
};
|
|
151
|
-
let body: any;
|
|
152
|
-
body = JSON.stringify(serializeAws_json1_1TagResourcesInput(input, context));
|
|
153
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
export const serializeAws_json1_1UntagResourcesCommand = async (
|
|
157
|
-
input: UntagResourcesCommandInput,
|
|
158
|
-
context: __SerdeContext
|
|
159
|
-
): Promise<__HttpRequest> => {
|
|
160
|
-
const headers: __HeaderBag = {
|
|
161
|
-
"content-type": "application/x-amz-json-1.1",
|
|
162
|
-
"x-amz-target": "ResourceGroupsTaggingAPI_20170126.UntagResources",
|
|
163
|
-
};
|
|
164
|
-
let body: any;
|
|
165
|
-
body = JSON.stringify(serializeAws_json1_1UntagResourcesInput(input, context));
|
|
166
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
|
-
};
|
|
168
|
-
|
|
169
|
-
export const deserializeAws_json1_1DescribeReportCreationCommand = async (
|
|
170
|
-
output: __HttpResponse,
|
|
171
|
-
context: __SerdeContext
|
|
172
|
-
): Promise<DescribeReportCreationCommandOutput> => {
|
|
173
|
-
if (output.statusCode >= 300) {
|
|
174
|
-
return deserializeAws_json1_1DescribeReportCreationCommandError(output, context);
|
|
175
|
-
}
|
|
176
|
-
const data: any = await parseBody(output.body, context);
|
|
177
|
-
let contents: any = {};
|
|
178
|
-
contents = deserializeAws_json1_1DescribeReportCreationOutput(data, context);
|
|
179
|
-
const response: DescribeReportCreationCommandOutput = {
|
|
180
|
-
$metadata: deserializeMetadata(output),
|
|
181
|
-
...contents,
|
|
182
|
-
};
|
|
183
|
-
return Promise.resolve(response);
|
|
184
|
-
};
|
|
185
|
-
|
|
186
|
-
const deserializeAws_json1_1DescribeReportCreationCommandError = async (
|
|
187
|
-
output: __HttpResponse,
|
|
188
|
-
context: __SerdeContext
|
|
189
|
-
): Promise<DescribeReportCreationCommandOutput> => {
|
|
190
|
-
const parsedOutput: any = {
|
|
191
|
-
...output,
|
|
192
|
-
body: await parseBody(output.body, context),
|
|
193
|
-
};
|
|
194
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
195
|
-
let errorCode: string = "UnknownError";
|
|
196
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
197
|
-
switch (errorCode) {
|
|
198
|
-
case "ConstraintViolationException":
|
|
199
|
-
case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException":
|
|
200
|
-
response = {
|
|
201
|
-
...(await deserializeAws_json1_1ConstraintViolationExceptionResponse(parsedOutput, context)),
|
|
202
|
-
name: errorCode,
|
|
203
|
-
$metadata: deserializeMetadata(output),
|
|
204
|
-
};
|
|
205
|
-
break;
|
|
206
|
-
case "InternalServiceException":
|
|
207
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
208
|
-
response = {
|
|
209
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
210
|
-
name: errorCode,
|
|
211
|
-
$metadata: deserializeMetadata(output),
|
|
212
|
-
};
|
|
213
|
-
break;
|
|
214
|
-
case "InvalidParameterException":
|
|
215
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
216
|
-
response = {
|
|
217
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
218
|
-
name: errorCode,
|
|
219
|
-
$metadata: deserializeMetadata(output),
|
|
220
|
-
};
|
|
221
|
-
break;
|
|
222
|
-
case "ThrottledException":
|
|
223
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
224
|
-
response = {
|
|
225
|
-
...(await deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)),
|
|
226
|
-
name: errorCode,
|
|
227
|
-
$metadata: deserializeMetadata(output),
|
|
228
|
-
};
|
|
229
|
-
break;
|
|
230
|
-
default:
|
|
231
|
-
const parsedBody = parsedOutput.body;
|
|
232
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
233
|
-
response = {
|
|
234
|
-
...parsedBody,
|
|
235
|
-
name: `${errorCode}`,
|
|
236
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
237
|
-
$fault: "client",
|
|
238
|
-
$metadata: deserializeMetadata(output),
|
|
239
|
-
} as any;
|
|
240
|
-
}
|
|
241
|
-
const message = response.message || response.Message || errorCode;
|
|
242
|
-
response.message = message;
|
|
243
|
-
delete response.Message;
|
|
244
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
245
|
-
};
|
|
246
|
-
|
|
247
|
-
export const deserializeAws_json1_1GetComplianceSummaryCommand = async (
|
|
248
|
-
output: __HttpResponse,
|
|
249
|
-
context: __SerdeContext
|
|
250
|
-
): Promise<GetComplianceSummaryCommandOutput> => {
|
|
251
|
-
if (output.statusCode >= 300) {
|
|
252
|
-
return deserializeAws_json1_1GetComplianceSummaryCommandError(output, context);
|
|
253
|
-
}
|
|
254
|
-
const data: any = await parseBody(output.body, context);
|
|
255
|
-
let contents: any = {};
|
|
256
|
-
contents = deserializeAws_json1_1GetComplianceSummaryOutput(data, context);
|
|
257
|
-
const response: GetComplianceSummaryCommandOutput = {
|
|
258
|
-
$metadata: deserializeMetadata(output),
|
|
259
|
-
...contents,
|
|
260
|
-
};
|
|
261
|
-
return Promise.resolve(response);
|
|
262
|
-
};
|
|
263
|
-
|
|
264
|
-
const deserializeAws_json1_1GetComplianceSummaryCommandError = async (
|
|
265
|
-
output: __HttpResponse,
|
|
266
|
-
context: __SerdeContext
|
|
267
|
-
): Promise<GetComplianceSummaryCommandOutput> => {
|
|
268
|
-
const parsedOutput: any = {
|
|
269
|
-
...output,
|
|
270
|
-
body: await parseBody(output.body, context),
|
|
271
|
-
};
|
|
272
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
273
|
-
let errorCode: string = "UnknownError";
|
|
274
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
275
|
-
switch (errorCode) {
|
|
276
|
-
case "ConstraintViolationException":
|
|
277
|
-
case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException":
|
|
278
|
-
response = {
|
|
279
|
-
...(await deserializeAws_json1_1ConstraintViolationExceptionResponse(parsedOutput, context)),
|
|
280
|
-
name: errorCode,
|
|
281
|
-
$metadata: deserializeMetadata(output),
|
|
282
|
-
};
|
|
283
|
-
break;
|
|
284
|
-
case "InternalServiceException":
|
|
285
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
286
|
-
response = {
|
|
287
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
288
|
-
name: errorCode,
|
|
289
|
-
$metadata: deserializeMetadata(output),
|
|
290
|
-
};
|
|
291
|
-
break;
|
|
292
|
-
case "InvalidParameterException":
|
|
293
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
294
|
-
response = {
|
|
295
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
296
|
-
name: errorCode,
|
|
297
|
-
$metadata: deserializeMetadata(output),
|
|
298
|
-
};
|
|
299
|
-
break;
|
|
300
|
-
case "ThrottledException":
|
|
301
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
302
|
-
response = {
|
|
303
|
-
...(await deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)),
|
|
304
|
-
name: errorCode,
|
|
305
|
-
$metadata: deserializeMetadata(output),
|
|
306
|
-
};
|
|
307
|
-
break;
|
|
308
|
-
default:
|
|
309
|
-
const parsedBody = parsedOutput.body;
|
|
310
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
311
|
-
response = {
|
|
312
|
-
...parsedBody,
|
|
313
|
-
name: `${errorCode}`,
|
|
314
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
315
|
-
$fault: "client",
|
|
316
|
-
$metadata: deserializeMetadata(output),
|
|
317
|
-
} as any;
|
|
318
|
-
}
|
|
319
|
-
const message = response.message || response.Message || errorCode;
|
|
320
|
-
response.message = message;
|
|
321
|
-
delete response.Message;
|
|
322
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
323
|
-
};
|
|
324
|
-
|
|
325
|
-
export const deserializeAws_json1_1GetResourcesCommand = async (
|
|
326
|
-
output: __HttpResponse,
|
|
327
|
-
context: __SerdeContext
|
|
328
|
-
): Promise<GetResourcesCommandOutput> => {
|
|
329
|
-
if (output.statusCode >= 300) {
|
|
330
|
-
return deserializeAws_json1_1GetResourcesCommandError(output, context);
|
|
331
|
-
}
|
|
332
|
-
const data: any = await parseBody(output.body, context);
|
|
333
|
-
let contents: any = {};
|
|
334
|
-
contents = deserializeAws_json1_1GetResourcesOutput(data, context);
|
|
335
|
-
const response: GetResourcesCommandOutput = {
|
|
336
|
-
$metadata: deserializeMetadata(output),
|
|
337
|
-
...contents,
|
|
338
|
-
};
|
|
339
|
-
return Promise.resolve(response);
|
|
340
|
-
};
|
|
341
|
-
|
|
342
|
-
const deserializeAws_json1_1GetResourcesCommandError = async (
|
|
343
|
-
output: __HttpResponse,
|
|
344
|
-
context: __SerdeContext
|
|
345
|
-
): Promise<GetResourcesCommandOutput> => {
|
|
346
|
-
const parsedOutput: any = {
|
|
347
|
-
...output,
|
|
348
|
-
body: await parseBody(output.body, context),
|
|
349
|
-
};
|
|
350
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
351
|
-
let errorCode: string = "UnknownError";
|
|
352
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
353
|
-
switch (errorCode) {
|
|
354
|
-
case "InternalServiceException":
|
|
355
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
356
|
-
response = {
|
|
357
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
358
|
-
name: errorCode,
|
|
359
|
-
$metadata: deserializeMetadata(output),
|
|
360
|
-
};
|
|
361
|
-
break;
|
|
362
|
-
case "InvalidParameterException":
|
|
363
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
364
|
-
response = {
|
|
365
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
366
|
-
name: errorCode,
|
|
367
|
-
$metadata: deserializeMetadata(output),
|
|
368
|
-
};
|
|
369
|
-
break;
|
|
370
|
-
case "PaginationTokenExpiredException":
|
|
371
|
-
case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException":
|
|
372
|
-
response = {
|
|
373
|
-
...(await deserializeAws_json1_1PaginationTokenExpiredExceptionResponse(parsedOutput, context)),
|
|
374
|
-
name: errorCode,
|
|
375
|
-
$metadata: deserializeMetadata(output),
|
|
376
|
-
};
|
|
377
|
-
break;
|
|
378
|
-
case "ThrottledException":
|
|
379
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
380
|
-
response = {
|
|
381
|
-
...(await deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)),
|
|
382
|
-
name: errorCode,
|
|
383
|
-
$metadata: deserializeMetadata(output),
|
|
384
|
-
};
|
|
385
|
-
break;
|
|
386
|
-
default:
|
|
387
|
-
const parsedBody = parsedOutput.body;
|
|
388
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
389
|
-
response = {
|
|
390
|
-
...parsedBody,
|
|
391
|
-
name: `${errorCode}`,
|
|
392
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
393
|
-
$fault: "client",
|
|
394
|
-
$metadata: deserializeMetadata(output),
|
|
395
|
-
} as any;
|
|
396
|
-
}
|
|
397
|
-
const message = response.message || response.Message || errorCode;
|
|
398
|
-
response.message = message;
|
|
399
|
-
delete response.Message;
|
|
400
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
401
|
-
};
|
|
402
|
-
|
|
403
|
-
export const deserializeAws_json1_1GetTagKeysCommand = async (
|
|
404
|
-
output: __HttpResponse,
|
|
405
|
-
context: __SerdeContext
|
|
406
|
-
): Promise<GetTagKeysCommandOutput> => {
|
|
407
|
-
if (output.statusCode >= 300) {
|
|
408
|
-
return deserializeAws_json1_1GetTagKeysCommandError(output, context);
|
|
409
|
-
}
|
|
410
|
-
const data: any = await parseBody(output.body, context);
|
|
411
|
-
let contents: any = {};
|
|
412
|
-
contents = deserializeAws_json1_1GetTagKeysOutput(data, context);
|
|
413
|
-
const response: GetTagKeysCommandOutput = {
|
|
414
|
-
$metadata: deserializeMetadata(output),
|
|
415
|
-
...contents,
|
|
416
|
-
};
|
|
417
|
-
return Promise.resolve(response);
|
|
418
|
-
};
|
|
419
|
-
|
|
420
|
-
const deserializeAws_json1_1GetTagKeysCommandError = async (
|
|
421
|
-
output: __HttpResponse,
|
|
422
|
-
context: __SerdeContext
|
|
423
|
-
): Promise<GetTagKeysCommandOutput> => {
|
|
424
|
-
const parsedOutput: any = {
|
|
425
|
-
...output,
|
|
426
|
-
body: await parseBody(output.body, context),
|
|
427
|
-
};
|
|
428
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
429
|
-
let errorCode: string = "UnknownError";
|
|
430
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
431
|
-
switch (errorCode) {
|
|
432
|
-
case "InternalServiceException":
|
|
433
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
434
|
-
response = {
|
|
435
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
436
|
-
name: errorCode,
|
|
437
|
-
$metadata: deserializeMetadata(output),
|
|
438
|
-
};
|
|
439
|
-
break;
|
|
440
|
-
case "InvalidParameterException":
|
|
441
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
442
|
-
response = {
|
|
443
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
444
|
-
name: errorCode,
|
|
445
|
-
$metadata: deserializeMetadata(output),
|
|
446
|
-
};
|
|
447
|
-
break;
|
|
448
|
-
case "PaginationTokenExpiredException":
|
|
449
|
-
case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException":
|
|
450
|
-
response = {
|
|
451
|
-
...(await deserializeAws_json1_1PaginationTokenExpiredExceptionResponse(parsedOutput, context)),
|
|
452
|
-
name: errorCode,
|
|
453
|
-
$metadata: deserializeMetadata(output),
|
|
454
|
-
};
|
|
455
|
-
break;
|
|
456
|
-
case "ThrottledException":
|
|
457
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
458
|
-
response = {
|
|
459
|
-
...(await deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)),
|
|
460
|
-
name: errorCode,
|
|
461
|
-
$metadata: deserializeMetadata(output),
|
|
462
|
-
};
|
|
463
|
-
break;
|
|
464
|
-
default:
|
|
465
|
-
const parsedBody = parsedOutput.body;
|
|
466
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
467
|
-
response = {
|
|
468
|
-
...parsedBody,
|
|
469
|
-
name: `${errorCode}`,
|
|
470
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
471
|
-
$fault: "client",
|
|
472
|
-
$metadata: deserializeMetadata(output),
|
|
473
|
-
} as any;
|
|
474
|
-
}
|
|
475
|
-
const message = response.message || response.Message || errorCode;
|
|
476
|
-
response.message = message;
|
|
477
|
-
delete response.Message;
|
|
478
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
479
|
-
};
|
|
480
|
-
|
|
481
|
-
export const deserializeAws_json1_1GetTagValuesCommand = async (
|
|
482
|
-
output: __HttpResponse,
|
|
483
|
-
context: __SerdeContext
|
|
484
|
-
): Promise<GetTagValuesCommandOutput> => {
|
|
485
|
-
if (output.statusCode >= 300) {
|
|
486
|
-
return deserializeAws_json1_1GetTagValuesCommandError(output, context);
|
|
487
|
-
}
|
|
488
|
-
const data: any = await parseBody(output.body, context);
|
|
489
|
-
let contents: any = {};
|
|
490
|
-
contents = deserializeAws_json1_1GetTagValuesOutput(data, context);
|
|
491
|
-
const response: GetTagValuesCommandOutput = {
|
|
492
|
-
$metadata: deserializeMetadata(output),
|
|
493
|
-
...contents,
|
|
494
|
-
};
|
|
495
|
-
return Promise.resolve(response);
|
|
496
|
-
};
|
|
497
|
-
|
|
498
|
-
const deserializeAws_json1_1GetTagValuesCommandError = async (
|
|
499
|
-
output: __HttpResponse,
|
|
500
|
-
context: __SerdeContext
|
|
501
|
-
): Promise<GetTagValuesCommandOutput> => {
|
|
502
|
-
const parsedOutput: any = {
|
|
503
|
-
...output,
|
|
504
|
-
body: await parseBody(output.body, context),
|
|
505
|
-
};
|
|
506
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
507
|
-
let errorCode: string = "UnknownError";
|
|
508
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
509
|
-
switch (errorCode) {
|
|
510
|
-
case "InternalServiceException":
|
|
511
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
512
|
-
response = {
|
|
513
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
514
|
-
name: errorCode,
|
|
515
|
-
$metadata: deserializeMetadata(output),
|
|
516
|
-
};
|
|
517
|
-
break;
|
|
518
|
-
case "InvalidParameterException":
|
|
519
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
520
|
-
response = {
|
|
521
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
522
|
-
name: errorCode,
|
|
523
|
-
$metadata: deserializeMetadata(output),
|
|
524
|
-
};
|
|
525
|
-
break;
|
|
526
|
-
case "PaginationTokenExpiredException":
|
|
527
|
-
case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException":
|
|
528
|
-
response = {
|
|
529
|
-
...(await deserializeAws_json1_1PaginationTokenExpiredExceptionResponse(parsedOutput, context)),
|
|
530
|
-
name: errorCode,
|
|
531
|
-
$metadata: deserializeMetadata(output),
|
|
532
|
-
};
|
|
533
|
-
break;
|
|
534
|
-
case "ThrottledException":
|
|
535
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
536
|
-
response = {
|
|
537
|
-
...(await deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)),
|
|
538
|
-
name: errorCode,
|
|
539
|
-
$metadata: deserializeMetadata(output),
|
|
540
|
-
};
|
|
541
|
-
break;
|
|
542
|
-
default:
|
|
543
|
-
const parsedBody = parsedOutput.body;
|
|
544
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
545
|
-
response = {
|
|
546
|
-
...parsedBody,
|
|
547
|
-
name: `${errorCode}`,
|
|
548
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
549
|
-
$fault: "client",
|
|
550
|
-
$metadata: deserializeMetadata(output),
|
|
551
|
-
} as any;
|
|
552
|
-
}
|
|
553
|
-
const message = response.message || response.Message || errorCode;
|
|
554
|
-
response.message = message;
|
|
555
|
-
delete response.Message;
|
|
556
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
557
|
-
};
|
|
558
|
-
|
|
559
|
-
export const deserializeAws_json1_1StartReportCreationCommand = async (
|
|
560
|
-
output: __HttpResponse,
|
|
561
|
-
context: __SerdeContext
|
|
562
|
-
): Promise<StartReportCreationCommandOutput> => {
|
|
563
|
-
if (output.statusCode >= 300) {
|
|
564
|
-
return deserializeAws_json1_1StartReportCreationCommandError(output, context);
|
|
565
|
-
}
|
|
566
|
-
const data: any = await parseBody(output.body, context);
|
|
567
|
-
let contents: any = {};
|
|
568
|
-
contents = deserializeAws_json1_1StartReportCreationOutput(data, context);
|
|
569
|
-
const response: StartReportCreationCommandOutput = {
|
|
570
|
-
$metadata: deserializeMetadata(output),
|
|
571
|
-
...contents,
|
|
572
|
-
};
|
|
573
|
-
return Promise.resolve(response);
|
|
574
|
-
};
|
|
575
|
-
|
|
576
|
-
const deserializeAws_json1_1StartReportCreationCommandError = async (
|
|
577
|
-
output: __HttpResponse,
|
|
578
|
-
context: __SerdeContext
|
|
579
|
-
): Promise<StartReportCreationCommandOutput> => {
|
|
580
|
-
const parsedOutput: any = {
|
|
581
|
-
...output,
|
|
582
|
-
body: await parseBody(output.body, context),
|
|
583
|
-
};
|
|
584
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
585
|
-
let errorCode: string = "UnknownError";
|
|
586
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
587
|
-
switch (errorCode) {
|
|
588
|
-
case "ConcurrentModificationException":
|
|
589
|
-
case "com.amazonaws.resourcegroupstaggingapi#ConcurrentModificationException":
|
|
590
|
-
response = {
|
|
591
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
592
|
-
name: errorCode,
|
|
593
|
-
$metadata: deserializeMetadata(output),
|
|
594
|
-
};
|
|
595
|
-
break;
|
|
596
|
-
case "ConstraintViolationException":
|
|
597
|
-
case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException":
|
|
598
|
-
response = {
|
|
599
|
-
...(await deserializeAws_json1_1ConstraintViolationExceptionResponse(parsedOutput, context)),
|
|
600
|
-
name: errorCode,
|
|
601
|
-
$metadata: deserializeMetadata(output),
|
|
602
|
-
};
|
|
603
|
-
break;
|
|
604
|
-
case "InternalServiceException":
|
|
605
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
606
|
-
response = {
|
|
607
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
608
|
-
name: errorCode,
|
|
609
|
-
$metadata: deserializeMetadata(output),
|
|
610
|
-
};
|
|
611
|
-
break;
|
|
612
|
-
case "InvalidParameterException":
|
|
613
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
614
|
-
response = {
|
|
615
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
616
|
-
name: errorCode,
|
|
617
|
-
$metadata: deserializeMetadata(output),
|
|
618
|
-
};
|
|
619
|
-
break;
|
|
620
|
-
case "ThrottledException":
|
|
621
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
622
|
-
response = {
|
|
623
|
-
...(await deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)),
|
|
624
|
-
name: errorCode,
|
|
625
|
-
$metadata: deserializeMetadata(output),
|
|
626
|
-
};
|
|
627
|
-
break;
|
|
628
|
-
default:
|
|
629
|
-
const parsedBody = parsedOutput.body;
|
|
630
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
631
|
-
response = {
|
|
632
|
-
...parsedBody,
|
|
633
|
-
name: `${errorCode}`,
|
|
634
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
635
|
-
$fault: "client",
|
|
636
|
-
$metadata: deserializeMetadata(output),
|
|
637
|
-
} as any;
|
|
638
|
-
}
|
|
639
|
-
const message = response.message || response.Message || errorCode;
|
|
640
|
-
response.message = message;
|
|
641
|
-
delete response.Message;
|
|
642
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
643
|
-
};
|
|
644
|
-
|
|
645
|
-
export const deserializeAws_json1_1TagResourcesCommand = async (
|
|
646
|
-
output: __HttpResponse,
|
|
647
|
-
context: __SerdeContext
|
|
648
|
-
): Promise<TagResourcesCommandOutput> => {
|
|
649
|
-
if (output.statusCode >= 300) {
|
|
650
|
-
return deserializeAws_json1_1TagResourcesCommandError(output, context);
|
|
651
|
-
}
|
|
652
|
-
const data: any = await parseBody(output.body, context);
|
|
653
|
-
let contents: any = {};
|
|
654
|
-
contents = deserializeAws_json1_1TagResourcesOutput(data, context);
|
|
655
|
-
const response: TagResourcesCommandOutput = {
|
|
656
|
-
$metadata: deserializeMetadata(output),
|
|
657
|
-
...contents,
|
|
658
|
-
};
|
|
659
|
-
return Promise.resolve(response);
|
|
660
|
-
};
|
|
661
|
-
|
|
662
|
-
const deserializeAws_json1_1TagResourcesCommandError = async (
|
|
663
|
-
output: __HttpResponse,
|
|
664
|
-
context: __SerdeContext
|
|
665
|
-
): Promise<TagResourcesCommandOutput> => {
|
|
666
|
-
const parsedOutput: any = {
|
|
667
|
-
...output,
|
|
668
|
-
body: await parseBody(output.body, context),
|
|
669
|
-
};
|
|
670
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
671
|
-
let errorCode: string = "UnknownError";
|
|
672
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
673
|
-
switch (errorCode) {
|
|
674
|
-
case "InternalServiceException":
|
|
675
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
676
|
-
response = {
|
|
677
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
678
|
-
name: errorCode,
|
|
679
|
-
$metadata: deserializeMetadata(output),
|
|
680
|
-
};
|
|
681
|
-
break;
|
|
682
|
-
case "InvalidParameterException":
|
|
683
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
684
|
-
response = {
|
|
685
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
686
|
-
name: errorCode,
|
|
687
|
-
$metadata: deserializeMetadata(output),
|
|
688
|
-
};
|
|
689
|
-
break;
|
|
690
|
-
case "ThrottledException":
|
|
691
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
692
|
-
response = {
|
|
693
|
-
...(await deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)),
|
|
694
|
-
name: errorCode,
|
|
695
|
-
$metadata: deserializeMetadata(output),
|
|
696
|
-
};
|
|
697
|
-
break;
|
|
698
|
-
default:
|
|
699
|
-
const parsedBody = parsedOutput.body;
|
|
700
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
701
|
-
response = {
|
|
702
|
-
...parsedBody,
|
|
703
|
-
name: `${errorCode}`,
|
|
704
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
705
|
-
$fault: "client",
|
|
706
|
-
$metadata: deserializeMetadata(output),
|
|
707
|
-
} as any;
|
|
708
|
-
}
|
|
709
|
-
const message = response.message || response.Message || errorCode;
|
|
710
|
-
response.message = message;
|
|
711
|
-
delete response.Message;
|
|
712
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
713
|
-
};
|
|
714
|
-
|
|
715
|
-
export const deserializeAws_json1_1UntagResourcesCommand = async (
|
|
716
|
-
output: __HttpResponse,
|
|
717
|
-
context: __SerdeContext
|
|
718
|
-
): Promise<UntagResourcesCommandOutput> => {
|
|
719
|
-
if (output.statusCode >= 300) {
|
|
720
|
-
return deserializeAws_json1_1UntagResourcesCommandError(output, context);
|
|
721
|
-
}
|
|
722
|
-
const data: any = await parseBody(output.body, context);
|
|
723
|
-
let contents: any = {};
|
|
724
|
-
contents = deserializeAws_json1_1UntagResourcesOutput(data, context);
|
|
725
|
-
const response: UntagResourcesCommandOutput = {
|
|
726
|
-
$metadata: deserializeMetadata(output),
|
|
727
|
-
...contents,
|
|
728
|
-
};
|
|
729
|
-
return Promise.resolve(response);
|
|
730
|
-
};
|
|
731
|
-
|
|
732
|
-
const deserializeAws_json1_1UntagResourcesCommandError = async (
|
|
733
|
-
output: __HttpResponse,
|
|
734
|
-
context: __SerdeContext
|
|
735
|
-
): Promise<UntagResourcesCommandOutput> => {
|
|
736
|
-
const parsedOutput: any = {
|
|
737
|
-
...output,
|
|
738
|
-
body: await parseBody(output.body, context),
|
|
739
|
-
};
|
|
740
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
741
|
-
let errorCode: string = "UnknownError";
|
|
742
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
743
|
-
switch (errorCode) {
|
|
744
|
-
case "InternalServiceException":
|
|
745
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
746
|
-
response = {
|
|
747
|
-
...(await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context)),
|
|
748
|
-
name: errorCode,
|
|
749
|
-
$metadata: deserializeMetadata(output),
|
|
750
|
-
};
|
|
751
|
-
break;
|
|
752
|
-
case "InvalidParameterException":
|
|
753
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
754
|
-
response = {
|
|
755
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
756
|
-
name: errorCode,
|
|
757
|
-
$metadata: deserializeMetadata(output),
|
|
758
|
-
};
|
|
759
|
-
break;
|
|
760
|
-
case "ThrottledException":
|
|
761
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
762
|
-
response = {
|
|
763
|
-
...(await deserializeAws_json1_1ThrottledExceptionResponse(parsedOutput, context)),
|
|
764
|
-
name: errorCode,
|
|
765
|
-
$metadata: deserializeMetadata(output),
|
|
766
|
-
};
|
|
767
|
-
break;
|
|
768
|
-
default:
|
|
769
|
-
const parsedBody = parsedOutput.body;
|
|
770
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
771
|
-
response = {
|
|
772
|
-
...parsedBody,
|
|
773
|
-
name: `${errorCode}`,
|
|
774
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
775
|
-
$fault: "client",
|
|
776
|
-
$metadata: deserializeMetadata(output),
|
|
777
|
-
} as any;
|
|
778
|
-
}
|
|
779
|
-
const message = response.message || response.Message || errorCode;
|
|
780
|
-
response.message = message;
|
|
781
|
-
delete response.Message;
|
|
782
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
783
|
-
};
|
|
784
|
-
|
|
785
|
-
const deserializeAws_json1_1ConcurrentModificationExceptionResponse = async (
|
|
786
|
-
parsedOutput: any,
|
|
787
|
-
context: __SerdeContext
|
|
788
|
-
): Promise<ConcurrentModificationException> => {
|
|
789
|
-
const body = parsedOutput.body;
|
|
790
|
-
const deserialized: any = deserializeAws_json1_1ConcurrentModificationException(body, context);
|
|
791
|
-
const contents: ConcurrentModificationException = {
|
|
792
|
-
name: "ConcurrentModificationException",
|
|
793
|
-
$fault: "client",
|
|
794
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
795
|
-
...deserialized,
|
|
796
|
-
};
|
|
797
|
-
return contents;
|
|
798
|
-
};
|
|
799
|
-
|
|
800
|
-
const deserializeAws_json1_1ConstraintViolationExceptionResponse = async (
|
|
801
|
-
parsedOutput: any,
|
|
802
|
-
context: __SerdeContext
|
|
803
|
-
): Promise<ConstraintViolationException> => {
|
|
804
|
-
const body = parsedOutput.body;
|
|
805
|
-
const deserialized: any = deserializeAws_json1_1ConstraintViolationException(body, context);
|
|
806
|
-
const contents: ConstraintViolationException = {
|
|
807
|
-
name: "ConstraintViolationException",
|
|
808
|
-
$fault: "client",
|
|
809
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
810
|
-
...deserialized,
|
|
811
|
-
};
|
|
812
|
-
return contents;
|
|
813
|
-
};
|
|
814
|
-
|
|
815
|
-
const deserializeAws_json1_1InternalServiceExceptionResponse = async (
|
|
816
|
-
parsedOutput: any,
|
|
817
|
-
context: __SerdeContext
|
|
818
|
-
): Promise<InternalServiceException> => {
|
|
819
|
-
const body = parsedOutput.body;
|
|
820
|
-
const deserialized: any = deserializeAws_json1_1InternalServiceException(body, context);
|
|
821
|
-
const contents: InternalServiceException = {
|
|
822
|
-
name: "InternalServiceException",
|
|
823
|
-
$fault: "server",
|
|
824
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
825
|
-
...deserialized,
|
|
826
|
-
};
|
|
827
|
-
return contents;
|
|
828
|
-
};
|
|
829
|
-
|
|
830
|
-
const deserializeAws_json1_1InvalidParameterExceptionResponse = async (
|
|
831
|
-
parsedOutput: any,
|
|
832
|
-
context: __SerdeContext
|
|
833
|
-
): Promise<InvalidParameterException> => {
|
|
834
|
-
const body = parsedOutput.body;
|
|
835
|
-
const deserialized: any = deserializeAws_json1_1InvalidParameterException(body, context);
|
|
836
|
-
const contents: InvalidParameterException = {
|
|
837
|
-
name: "InvalidParameterException",
|
|
838
|
-
$fault: "client",
|
|
839
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
840
|
-
...deserialized,
|
|
841
|
-
};
|
|
842
|
-
return contents;
|
|
843
|
-
};
|
|
844
|
-
|
|
845
|
-
const deserializeAws_json1_1PaginationTokenExpiredExceptionResponse = async (
|
|
846
|
-
parsedOutput: any,
|
|
847
|
-
context: __SerdeContext
|
|
848
|
-
): Promise<PaginationTokenExpiredException> => {
|
|
849
|
-
const body = parsedOutput.body;
|
|
850
|
-
const deserialized: any = deserializeAws_json1_1PaginationTokenExpiredException(body, context);
|
|
851
|
-
const contents: PaginationTokenExpiredException = {
|
|
852
|
-
name: "PaginationTokenExpiredException",
|
|
853
|
-
$fault: "client",
|
|
854
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
855
|
-
...deserialized,
|
|
856
|
-
};
|
|
857
|
-
return contents;
|
|
858
|
-
};
|
|
859
|
-
|
|
860
|
-
const deserializeAws_json1_1ThrottledExceptionResponse = async (
|
|
861
|
-
parsedOutput: any,
|
|
862
|
-
context: __SerdeContext
|
|
863
|
-
): Promise<ThrottledException> => {
|
|
864
|
-
const body = parsedOutput.body;
|
|
865
|
-
const deserialized: any = deserializeAws_json1_1ThrottledException(body, context);
|
|
866
|
-
const contents: ThrottledException = {
|
|
867
|
-
name: "ThrottledException",
|
|
868
|
-
$fault: "client",
|
|
869
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
870
|
-
...deserialized,
|
|
871
|
-
};
|
|
872
|
-
return contents;
|
|
873
|
-
};
|
|
874
|
-
|
|
875
|
-
const serializeAws_json1_1DescribeReportCreationInput = (
|
|
876
|
-
input: DescribeReportCreationInput,
|
|
877
|
-
context: __SerdeContext
|
|
878
|
-
): any => {
|
|
879
|
-
return {};
|
|
880
|
-
};
|
|
881
|
-
|
|
882
|
-
const serializeAws_json1_1GetComplianceSummaryInput = (
|
|
883
|
-
input: GetComplianceSummaryInput,
|
|
884
|
-
context: __SerdeContext
|
|
885
|
-
): any => {
|
|
886
|
-
return {
|
|
887
|
-
...(input.GroupBy !== undefined &&
|
|
888
|
-
input.GroupBy !== null && { GroupBy: serializeAws_json1_1GroupBy(input.GroupBy, context) }),
|
|
889
|
-
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
890
|
-
...(input.PaginationToken !== undefined &&
|
|
891
|
-
input.PaginationToken !== null && { PaginationToken: input.PaginationToken }),
|
|
892
|
-
...(input.RegionFilters !== undefined &&
|
|
893
|
-
input.RegionFilters !== null && {
|
|
894
|
-
RegionFilters: serializeAws_json1_1RegionFilterList(input.RegionFilters, context),
|
|
895
|
-
}),
|
|
896
|
-
...(input.ResourceTypeFilters !== undefined &&
|
|
897
|
-
input.ResourceTypeFilters !== null && {
|
|
898
|
-
ResourceTypeFilters: serializeAws_json1_1ResourceTypeFilterList(input.ResourceTypeFilters, context),
|
|
899
|
-
}),
|
|
900
|
-
...(input.TagKeyFilters !== undefined &&
|
|
901
|
-
input.TagKeyFilters !== null && {
|
|
902
|
-
TagKeyFilters: serializeAws_json1_1TagKeyFilterList(input.TagKeyFilters, context),
|
|
903
|
-
}),
|
|
904
|
-
...(input.TargetIdFilters !== undefined &&
|
|
905
|
-
input.TargetIdFilters !== null && {
|
|
906
|
-
TargetIdFilters: serializeAws_json1_1TargetIdFilterList(input.TargetIdFilters, context),
|
|
907
|
-
}),
|
|
908
|
-
};
|
|
909
|
-
};
|
|
910
|
-
|
|
911
|
-
const serializeAws_json1_1GetResourcesInput = (input: GetResourcesInput, context: __SerdeContext): any => {
|
|
912
|
-
return {
|
|
913
|
-
...(input.ExcludeCompliantResources !== undefined &&
|
|
914
|
-
input.ExcludeCompliantResources !== null && { ExcludeCompliantResources: input.ExcludeCompliantResources }),
|
|
915
|
-
...(input.IncludeComplianceDetails !== undefined &&
|
|
916
|
-
input.IncludeComplianceDetails !== null && { IncludeComplianceDetails: input.IncludeComplianceDetails }),
|
|
917
|
-
...(input.PaginationToken !== undefined &&
|
|
918
|
-
input.PaginationToken !== null && { PaginationToken: input.PaginationToken }),
|
|
919
|
-
...(input.ResourceARNList !== undefined &&
|
|
920
|
-
input.ResourceARNList !== null && {
|
|
921
|
-
ResourceARNList: serializeAws_json1_1ResourceARNListForGet(input.ResourceARNList, context),
|
|
922
|
-
}),
|
|
923
|
-
...(input.ResourceTypeFilters !== undefined &&
|
|
924
|
-
input.ResourceTypeFilters !== null && {
|
|
925
|
-
ResourceTypeFilters: serializeAws_json1_1ResourceTypeFilterList(input.ResourceTypeFilters, context),
|
|
926
|
-
}),
|
|
927
|
-
...(input.ResourcesPerPage !== undefined &&
|
|
928
|
-
input.ResourcesPerPage !== null && { ResourcesPerPage: input.ResourcesPerPage }),
|
|
929
|
-
...(input.TagFilters !== undefined &&
|
|
930
|
-
input.TagFilters !== null && { TagFilters: serializeAws_json1_1TagFilterList(input.TagFilters, context) }),
|
|
931
|
-
...(input.TagsPerPage !== undefined && input.TagsPerPage !== null && { TagsPerPage: input.TagsPerPage }),
|
|
932
|
-
};
|
|
933
|
-
};
|
|
934
|
-
|
|
935
|
-
const serializeAws_json1_1GetTagKeysInput = (input: GetTagKeysInput, context: __SerdeContext): any => {
|
|
936
|
-
return {
|
|
937
|
-
...(input.PaginationToken !== undefined &&
|
|
938
|
-
input.PaginationToken !== null && { PaginationToken: input.PaginationToken }),
|
|
939
|
-
};
|
|
940
|
-
};
|
|
941
|
-
|
|
942
|
-
const serializeAws_json1_1GetTagValuesInput = (input: GetTagValuesInput, context: __SerdeContext): any => {
|
|
943
|
-
return {
|
|
944
|
-
...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
|
|
945
|
-
...(input.PaginationToken !== undefined &&
|
|
946
|
-
input.PaginationToken !== null && { PaginationToken: input.PaginationToken }),
|
|
947
|
-
};
|
|
948
|
-
};
|
|
949
|
-
|
|
950
|
-
const serializeAws_json1_1GroupBy = (input: (GroupByAttribute | string)[], context: __SerdeContext): any => {
|
|
951
|
-
return input
|
|
952
|
-
.filter((e: any) => e != null)
|
|
953
|
-
.map((entry) => {
|
|
954
|
-
if (entry === null) {
|
|
955
|
-
return null as any;
|
|
956
|
-
}
|
|
957
|
-
return entry;
|
|
958
|
-
});
|
|
959
|
-
};
|
|
960
|
-
|
|
961
|
-
const serializeAws_json1_1RegionFilterList = (input: string[], context: __SerdeContext): any => {
|
|
962
|
-
return input
|
|
963
|
-
.filter((e: any) => e != null)
|
|
964
|
-
.map((entry) => {
|
|
965
|
-
if (entry === null) {
|
|
966
|
-
return null as any;
|
|
967
|
-
}
|
|
968
|
-
return entry;
|
|
969
|
-
});
|
|
970
|
-
};
|
|
971
|
-
|
|
972
|
-
const serializeAws_json1_1ResourceARNListForGet = (input: string[], context: __SerdeContext): any => {
|
|
973
|
-
return input
|
|
974
|
-
.filter((e: any) => e != null)
|
|
975
|
-
.map((entry) => {
|
|
976
|
-
if (entry === null) {
|
|
977
|
-
return null as any;
|
|
978
|
-
}
|
|
979
|
-
return entry;
|
|
980
|
-
});
|
|
981
|
-
};
|
|
982
|
-
|
|
983
|
-
const serializeAws_json1_1ResourceARNListForTagUntag = (input: string[], context: __SerdeContext): any => {
|
|
984
|
-
return input
|
|
985
|
-
.filter((e: any) => e != null)
|
|
986
|
-
.map((entry) => {
|
|
987
|
-
if (entry === null) {
|
|
988
|
-
return null as any;
|
|
989
|
-
}
|
|
990
|
-
return entry;
|
|
991
|
-
});
|
|
992
|
-
};
|
|
993
|
-
|
|
994
|
-
const serializeAws_json1_1ResourceTypeFilterList = (input: string[], context: __SerdeContext): any => {
|
|
995
|
-
return input
|
|
996
|
-
.filter((e: any) => e != null)
|
|
997
|
-
.map((entry) => {
|
|
998
|
-
if (entry === null) {
|
|
999
|
-
return null as any;
|
|
1000
|
-
}
|
|
1001
|
-
return entry;
|
|
1002
|
-
});
|
|
1003
|
-
};
|
|
1004
|
-
|
|
1005
|
-
const serializeAws_json1_1StartReportCreationInput = (
|
|
1006
|
-
input: StartReportCreationInput,
|
|
1007
|
-
context: __SerdeContext
|
|
1008
|
-
): any => {
|
|
1009
|
-
return {
|
|
1010
|
-
...(input.S3Bucket !== undefined && input.S3Bucket !== null && { S3Bucket: input.S3Bucket }),
|
|
1011
|
-
};
|
|
1012
|
-
};
|
|
1013
|
-
|
|
1014
|
-
const serializeAws_json1_1TagFilter = (input: TagFilter, context: __SerdeContext): any => {
|
|
1015
|
-
return {
|
|
1016
|
-
...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
|
|
1017
|
-
...(input.Values !== undefined &&
|
|
1018
|
-
input.Values !== null && { Values: serializeAws_json1_1TagValueList(input.Values, context) }),
|
|
1019
|
-
};
|
|
1020
|
-
};
|
|
1021
|
-
|
|
1022
|
-
const serializeAws_json1_1TagFilterList = (input: TagFilter[], context: __SerdeContext): any => {
|
|
1023
|
-
return input
|
|
1024
|
-
.filter((e: any) => e != null)
|
|
1025
|
-
.map((entry) => {
|
|
1026
|
-
if (entry === null) {
|
|
1027
|
-
return null as any;
|
|
1028
|
-
}
|
|
1029
|
-
return serializeAws_json1_1TagFilter(entry, context);
|
|
1030
|
-
});
|
|
1031
|
-
};
|
|
1032
|
-
|
|
1033
|
-
const serializeAws_json1_1TagKeyFilterList = (input: string[], context: __SerdeContext): any => {
|
|
1034
|
-
return input
|
|
1035
|
-
.filter((e: any) => e != null)
|
|
1036
|
-
.map((entry) => {
|
|
1037
|
-
if (entry === null) {
|
|
1038
|
-
return null as any;
|
|
1039
|
-
}
|
|
1040
|
-
return entry;
|
|
1041
|
-
});
|
|
1042
|
-
};
|
|
1043
|
-
|
|
1044
|
-
const serializeAws_json1_1TagKeyListForUntag = (input: string[], context: __SerdeContext): any => {
|
|
1045
|
-
return input
|
|
1046
|
-
.filter((e: any) => e != null)
|
|
1047
|
-
.map((entry) => {
|
|
1048
|
-
if (entry === null) {
|
|
1049
|
-
return null as any;
|
|
1050
|
-
}
|
|
1051
|
-
return entry;
|
|
1052
|
-
});
|
|
1053
|
-
};
|
|
1054
|
-
|
|
1055
|
-
const serializeAws_json1_1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => {
|
|
1056
|
-
return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => {
|
|
1057
|
-
if (value === null) {
|
|
1058
|
-
return acc;
|
|
1059
|
-
}
|
|
1060
|
-
return {
|
|
1061
|
-
...acc,
|
|
1062
|
-
[key]: value,
|
|
1063
|
-
};
|
|
1064
|
-
}, {});
|
|
1065
|
-
};
|
|
1066
|
-
|
|
1067
|
-
const serializeAws_json1_1TagResourcesInput = (input: TagResourcesInput, context: __SerdeContext): any => {
|
|
1068
|
-
return {
|
|
1069
|
-
...(input.ResourceARNList !== undefined &&
|
|
1070
|
-
input.ResourceARNList !== null && {
|
|
1071
|
-
ResourceARNList: serializeAws_json1_1ResourceARNListForTagUntag(input.ResourceARNList, context),
|
|
1072
|
-
}),
|
|
1073
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagMap(input.Tags, context) }),
|
|
1074
|
-
};
|
|
1075
|
-
};
|
|
1076
|
-
|
|
1077
|
-
const serializeAws_json1_1TagValueList = (input: string[], context: __SerdeContext): any => {
|
|
1078
|
-
return input
|
|
1079
|
-
.filter((e: any) => e != null)
|
|
1080
|
-
.map((entry) => {
|
|
1081
|
-
if (entry === null) {
|
|
1082
|
-
return null as any;
|
|
1083
|
-
}
|
|
1084
|
-
return entry;
|
|
1085
|
-
});
|
|
1086
|
-
};
|
|
1087
|
-
|
|
1088
|
-
const serializeAws_json1_1TargetIdFilterList = (input: string[], context: __SerdeContext): any => {
|
|
1089
|
-
return input
|
|
1090
|
-
.filter((e: any) => e != null)
|
|
1091
|
-
.map((entry) => {
|
|
1092
|
-
if (entry === null) {
|
|
1093
|
-
return null as any;
|
|
1094
|
-
}
|
|
1095
|
-
return entry;
|
|
1096
|
-
});
|
|
1097
|
-
};
|
|
1098
|
-
|
|
1099
|
-
const serializeAws_json1_1UntagResourcesInput = (input: UntagResourcesInput, context: __SerdeContext): any => {
|
|
1100
|
-
return {
|
|
1101
|
-
...(input.ResourceARNList !== undefined &&
|
|
1102
|
-
input.ResourceARNList !== null && {
|
|
1103
|
-
ResourceARNList: serializeAws_json1_1ResourceARNListForTagUntag(input.ResourceARNList, context),
|
|
1104
|
-
}),
|
|
1105
|
-
...(input.TagKeys !== undefined &&
|
|
1106
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyListForUntag(input.TagKeys, context) }),
|
|
1107
|
-
};
|
|
1108
|
-
};
|
|
1109
|
-
|
|
1110
|
-
const deserializeAws_json1_1ComplianceDetails = (output: any, context: __SerdeContext): ComplianceDetails => {
|
|
1111
|
-
return {
|
|
1112
|
-
ComplianceStatus: __expectBoolean(output.ComplianceStatus),
|
|
1113
|
-
KeysWithNoncompliantValues:
|
|
1114
|
-
output.KeysWithNoncompliantValues !== undefined && output.KeysWithNoncompliantValues !== null
|
|
1115
|
-
? deserializeAws_json1_1TagKeyList(output.KeysWithNoncompliantValues, context)
|
|
1116
|
-
: undefined,
|
|
1117
|
-
NoncompliantKeys:
|
|
1118
|
-
output.NoncompliantKeys !== undefined && output.NoncompliantKeys !== null
|
|
1119
|
-
? deserializeAws_json1_1TagKeyList(output.NoncompliantKeys, context)
|
|
1120
|
-
: undefined,
|
|
1121
|
-
} as any;
|
|
1122
|
-
};
|
|
1123
|
-
|
|
1124
|
-
const deserializeAws_json1_1ConcurrentModificationException = (
|
|
1125
|
-
output: any,
|
|
1126
|
-
context: __SerdeContext
|
|
1127
|
-
): ConcurrentModificationException => {
|
|
1128
|
-
return {
|
|
1129
|
-
Message: __expectString(output.Message),
|
|
1130
|
-
} as any;
|
|
1131
|
-
};
|
|
1132
|
-
|
|
1133
|
-
const deserializeAws_json1_1ConstraintViolationException = (
|
|
1134
|
-
output: any,
|
|
1135
|
-
context: __SerdeContext
|
|
1136
|
-
): ConstraintViolationException => {
|
|
1137
|
-
return {
|
|
1138
|
-
Message: __expectString(output.Message),
|
|
1139
|
-
} as any;
|
|
1140
|
-
};
|
|
1141
|
-
|
|
1142
|
-
const deserializeAws_json1_1DescribeReportCreationOutput = (
|
|
1143
|
-
output: any,
|
|
1144
|
-
context: __SerdeContext
|
|
1145
|
-
): DescribeReportCreationOutput => {
|
|
1146
|
-
return {
|
|
1147
|
-
ErrorMessage: __expectString(output.ErrorMessage),
|
|
1148
|
-
S3Location: __expectString(output.S3Location),
|
|
1149
|
-
StartDate: __expectString(output.StartDate),
|
|
1150
|
-
Status: __expectString(output.Status),
|
|
1151
|
-
} as any;
|
|
1152
|
-
};
|
|
1153
|
-
|
|
1154
|
-
const deserializeAws_json1_1FailedResourcesMap = (
|
|
1155
|
-
output: any,
|
|
1156
|
-
context: __SerdeContext
|
|
1157
|
-
): { [key: string]: FailureInfo } => {
|
|
1158
|
-
return Object.entries(output).reduce((acc: { [key: string]: FailureInfo }, [key, value]: [string, any]) => {
|
|
1159
|
-
if (value === null) {
|
|
1160
|
-
return acc;
|
|
1161
|
-
}
|
|
1162
|
-
return {
|
|
1163
|
-
...acc,
|
|
1164
|
-
[key]: deserializeAws_json1_1FailureInfo(value, context),
|
|
1165
|
-
};
|
|
1166
|
-
}, {});
|
|
1167
|
-
};
|
|
1168
|
-
|
|
1169
|
-
const deserializeAws_json1_1FailureInfo = (output: any, context: __SerdeContext): FailureInfo => {
|
|
1170
|
-
return {
|
|
1171
|
-
ErrorCode: __expectString(output.ErrorCode),
|
|
1172
|
-
ErrorMessage: __expectString(output.ErrorMessage),
|
|
1173
|
-
StatusCode: __expectInt32(output.StatusCode),
|
|
1174
|
-
} as any;
|
|
1175
|
-
};
|
|
1176
|
-
|
|
1177
|
-
const deserializeAws_json1_1GetComplianceSummaryOutput = (
|
|
1178
|
-
output: any,
|
|
1179
|
-
context: __SerdeContext
|
|
1180
|
-
): GetComplianceSummaryOutput => {
|
|
1181
|
-
return {
|
|
1182
|
-
PaginationToken: __expectString(output.PaginationToken),
|
|
1183
|
-
SummaryList:
|
|
1184
|
-
output.SummaryList !== undefined && output.SummaryList !== null
|
|
1185
|
-
? deserializeAws_json1_1SummaryList(output.SummaryList, context)
|
|
1186
|
-
: undefined,
|
|
1187
|
-
} as any;
|
|
1188
|
-
};
|
|
1189
|
-
|
|
1190
|
-
const deserializeAws_json1_1GetResourcesOutput = (output: any, context: __SerdeContext): GetResourcesOutput => {
|
|
1191
|
-
return {
|
|
1192
|
-
PaginationToken: __expectString(output.PaginationToken),
|
|
1193
|
-
ResourceTagMappingList:
|
|
1194
|
-
output.ResourceTagMappingList !== undefined && output.ResourceTagMappingList !== null
|
|
1195
|
-
? deserializeAws_json1_1ResourceTagMappingList(output.ResourceTagMappingList, context)
|
|
1196
|
-
: undefined,
|
|
1197
|
-
} as any;
|
|
1198
|
-
};
|
|
1199
|
-
|
|
1200
|
-
const deserializeAws_json1_1GetTagKeysOutput = (output: any, context: __SerdeContext): GetTagKeysOutput => {
|
|
1201
|
-
return {
|
|
1202
|
-
PaginationToken: __expectString(output.PaginationToken),
|
|
1203
|
-
TagKeys:
|
|
1204
|
-
output.TagKeys !== undefined && output.TagKeys !== null
|
|
1205
|
-
? deserializeAws_json1_1TagKeyList(output.TagKeys, context)
|
|
1206
|
-
: undefined,
|
|
1207
|
-
} as any;
|
|
1208
|
-
};
|
|
1209
|
-
|
|
1210
|
-
const deserializeAws_json1_1GetTagValuesOutput = (output: any, context: __SerdeContext): GetTagValuesOutput => {
|
|
1211
|
-
return {
|
|
1212
|
-
PaginationToken: __expectString(output.PaginationToken),
|
|
1213
|
-
TagValues:
|
|
1214
|
-
output.TagValues !== undefined && output.TagValues !== null
|
|
1215
|
-
? deserializeAws_json1_1TagValuesOutputList(output.TagValues, context)
|
|
1216
|
-
: undefined,
|
|
1217
|
-
} as any;
|
|
1218
|
-
};
|
|
1219
|
-
|
|
1220
|
-
const deserializeAws_json1_1InternalServiceException = (
|
|
1221
|
-
output: any,
|
|
1222
|
-
context: __SerdeContext
|
|
1223
|
-
): InternalServiceException => {
|
|
1224
|
-
return {
|
|
1225
|
-
Message: __expectString(output.Message),
|
|
1226
|
-
} as any;
|
|
1227
|
-
};
|
|
1228
|
-
|
|
1229
|
-
const deserializeAws_json1_1InvalidParameterException = (
|
|
1230
|
-
output: any,
|
|
1231
|
-
context: __SerdeContext
|
|
1232
|
-
): InvalidParameterException => {
|
|
1233
|
-
return {
|
|
1234
|
-
Message: __expectString(output.Message),
|
|
1235
|
-
} as any;
|
|
1236
|
-
};
|
|
1237
|
-
|
|
1238
|
-
const deserializeAws_json1_1PaginationTokenExpiredException = (
|
|
1239
|
-
output: any,
|
|
1240
|
-
context: __SerdeContext
|
|
1241
|
-
): PaginationTokenExpiredException => {
|
|
1242
|
-
return {
|
|
1243
|
-
Message: __expectString(output.Message),
|
|
1244
|
-
} as any;
|
|
1245
|
-
};
|
|
1246
|
-
|
|
1247
|
-
const deserializeAws_json1_1ResourceTagMapping = (output: any, context: __SerdeContext): ResourceTagMapping => {
|
|
1248
|
-
return {
|
|
1249
|
-
ComplianceDetails:
|
|
1250
|
-
output.ComplianceDetails !== undefined && output.ComplianceDetails !== null
|
|
1251
|
-
? deserializeAws_json1_1ComplianceDetails(output.ComplianceDetails, context)
|
|
1252
|
-
: undefined,
|
|
1253
|
-
ResourceARN: __expectString(output.ResourceARN),
|
|
1254
|
-
Tags:
|
|
1255
|
-
output.Tags !== undefined && output.Tags !== null
|
|
1256
|
-
? deserializeAws_json1_1TagList(output.Tags, context)
|
|
1257
|
-
: undefined,
|
|
1258
|
-
} as any;
|
|
1259
|
-
};
|
|
1260
|
-
|
|
1261
|
-
const deserializeAws_json1_1ResourceTagMappingList = (output: any, context: __SerdeContext): ResourceTagMapping[] => {
|
|
1262
|
-
return (output || [])
|
|
1263
|
-
.filter((e: any) => e != null)
|
|
1264
|
-
.map((entry: any) => {
|
|
1265
|
-
if (entry === null) {
|
|
1266
|
-
return null as any;
|
|
1267
|
-
}
|
|
1268
|
-
return deserializeAws_json1_1ResourceTagMapping(entry, context);
|
|
1269
|
-
});
|
|
1270
|
-
};
|
|
1271
|
-
|
|
1272
|
-
const deserializeAws_json1_1StartReportCreationOutput = (
|
|
1273
|
-
output: any,
|
|
1274
|
-
context: __SerdeContext
|
|
1275
|
-
): StartReportCreationOutput => {
|
|
1276
|
-
return {} as any;
|
|
1277
|
-
};
|
|
1278
|
-
|
|
1279
|
-
const deserializeAws_json1_1Summary = (output: any, context: __SerdeContext): Summary => {
|
|
1280
|
-
return {
|
|
1281
|
-
LastUpdated: __expectString(output.LastUpdated),
|
|
1282
|
-
NonCompliantResources: __expectLong(output.NonCompliantResources),
|
|
1283
|
-
Region: __expectString(output.Region),
|
|
1284
|
-
ResourceType: __expectString(output.ResourceType),
|
|
1285
|
-
TargetId: __expectString(output.TargetId),
|
|
1286
|
-
TargetIdType: __expectString(output.TargetIdType),
|
|
1287
|
-
} as any;
|
|
1288
|
-
};
|
|
1289
|
-
|
|
1290
|
-
const deserializeAws_json1_1SummaryList = (output: any, context: __SerdeContext): Summary[] => {
|
|
1291
|
-
return (output || [])
|
|
1292
|
-
.filter((e: any) => e != null)
|
|
1293
|
-
.map((entry: any) => {
|
|
1294
|
-
if (entry === null) {
|
|
1295
|
-
return null as any;
|
|
1296
|
-
}
|
|
1297
|
-
return deserializeAws_json1_1Summary(entry, context);
|
|
1298
|
-
});
|
|
1299
|
-
};
|
|
1300
|
-
|
|
1301
|
-
const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => {
|
|
1302
|
-
return {
|
|
1303
|
-
Key: __expectString(output.Key),
|
|
1304
|
-
Value: __expectString(output.Value),
|
|
1305
|
-
} as any;
|
|
1306
|
-
};
|
|
1307
|
-
|
|
1308
|
-
const deserializeAws_json1_1TagKeyList = (output: any, context: __SerdeContext): string[] => {
|
|
1309
|
-
return (output || [])
|
|
1310
|
-
.filter((e: any) => e != null)
|
|
1311
|
-
.map((entry: any) => {
|
|
1312
|
-
if (entry === null) {
|
|
1313
|
-
return null as any;
|
|
1314
|
-
}
|
|
1315
|
-
return __expectString(entry) as any;
|
|
1316
|
-
});
|
|
1317
|
-
};
|
|
1318
|
-
|
|
1319
|
-
const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => {
|
|
1320
|
-
return (output || [])
|
|
1321
|
-
.filter((e: any) => e != null)
|
|
1322
|
-
.map((entry: any) => {
|
|
1323
|
-
if (entry === null) {
|
|
1324
|
-
return null as any;
|
|
1325
|
-
}
|
|
1326
|
-
return deserializeAws_json1_1Tag(entry, context);
|
|
1327
|
-
});
|
|
1328
|
-
};
|
|
1329
|
-
|
|
1330
|
-
const deserializeAws_json1_1TagResourcesOutput = (output: any, context: __SerdeContext): TagResourcesOutput => {
|
|
1331
|
-
return {
|
|
1332
|
-
FailedResourcesMap:
|
|
1333
|
-
output.FailedResourcesMap !== undefined && output.FailedResourcesMap !== null
|
|
1334
|
-
? deserializeAws_json1_1FailedResourcesMap(output.FailedResourcesMap, context)
|
|
1335
|
-
: undefined,
|
|
1336
|
-
} as any;
|
|
1337
|
-
};
|
|
1338
|
-
|
|
1339
|
-
const deserializeAws_json1_1TagValuesOutputList = (output: any, context: __SerdeContext): string[] => {
|
|
1340
|
-
return (output || [])
|
|
1341
|
-
.filter((e: any) => e != null)
|
|
1342
|
-
.map((entry: any) => {
|
|
1343
|
-
if (entry === null) {
|
|
1344
|
-
return null as any;
|
|
1345
|
-
}
|
|
1346
|
-
return __expectString(entry) as any;
|
|
1347
|
-
});
|
|
1348
|
-
};
|
|
1349
|
-
|
|
1350
|
-
const deserializeAws_json1_1ThrottledException = (output: any, context: __SerdeContext): ThrottledException => {
|
|
1351
|
-
return {
|
|
1352
|
-
Message: __expectString(output.Message),
|
|
1353
|
-
} as any;
|
|
1354
|
-
};
|
|
1355
|
-
|
|
1356
|
-
const deserializeAws_json1_1UntagResourcesOutput = (output: any, context: __SerdeContext): UntagResourcesOutput => {
|
|
1357
|
-
return {
|
|
1358
|
-
FailedResourcesMap:
|
|
1359
|
-
output.FailedResourcesMap !== undefined && output.FailedResourcesMap !== null
|
|
1360
|
-
? deserializeAws_json1_1FailedResourcesMap(output.FailedResourcesMap, context)
|
|
1361
|
-
: undefined,
|
|
1362
|
-
} as any;
|
|
1363
|
-
};
|
|
1364
|
-
|
|
1365
|
-
const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
|
|
1366
|
-
httpStatusCode: output.statusCode,
|
|
1367
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
|
|
1368
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1369
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1370
|
-
});
|
|
1371
|
-
|
|
1372
|
-
// Collect low-level response body stream to Uint8Array.
|
|
1373
|
-
const collectBody = (streamBody: any = new Uint8Array(), context: __SerdeContext): Promise<Uint8Array> => {
|
|
1374
|
-
if (streamBody instanceof Uint8Array) {
|
|
1375
|
-
return Promise.resolve(streamBody);
|
|
1376
|
-
}
|
|
1377
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1378
|
-
};
|
|
1379
|
-
|
|
1380
|
-
// Encode Uint8Array data into string with utf-8.
|
|
1381
|
-
const collectBodyString = (streamBody: any, context: __SerdeContext): Promise<string> =>
|
|
1382
|
-
collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1383
|
-
|
|
1384
|
-
const buildHttpRpcRequest = async (
|
|
1385
|
-
context: __SerdeContext,
|
|
1386
|
-
headers: __HeaderBag,
|
|
1387
|
-
path: string,
|
|
1388
|
-
resolvedHostname: string | undefined,
|
|
1389
|
-
body: any
|
|
1390
|
-
): Promise<__HttpRequest> => {
|
|
1391
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1392
|
-
const contents: any = {
|
|
1393
|
-
protocol,
|
|
1394
|
-
hostname,
|
|
1395
|
-
port,
|
|
1396
|
-
method: "POST",
|
|
1397
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1398
|
-
headers,
|
|
1399
|
-
};
|
|
1400
|
-
if (resolvedHostname !== undefined) {
|
|
1401
|
-
contents.hostname = resolvedHostname;
|
|
1402
|
-
}
|
|
1403
|
-
if (body !== undefined) {
|
|
1404
|
-
contents.body = body;
|
|
1405
|
-
}
|
|
1406
|
-
return new __HttpRequest(contents);
|
|
1407
|
-
};
|
|
1408
|
-
|
|
1409
|
-
const parseBody = (streamBody: any, context: __SerdeContext): any =>
|
|
1410
|
-
collectBodyString(streamBody, context).then((encoded) => {
|
|
1411
|
-
if (encoded.length) {
|
|
1412
|
-
return JSON.parse(encoded);
|
|
1413
|
-
}
|
|
1414
|
-
return {};
|
|
1415
|
-
});
|
|
1416
|
-
|
|
1417
|
-
/**
|
|
1418
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
1419
|
-
*/
|
|
1420
|
-
const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string => {
|
|
1421
|
-
const findKey = (object: any, key: string) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1422
|
-
|
|
1423
|
-
const sanitizeErrorCode = (rawValue: string): string => {
|
|
1424
|
-
let cleanValue = rawValue;
|
|
1425
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1426
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1427
|
-
}
|
|
1428
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1429
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1430
|
-
}
|
|
1431
|
-
return cleanValue;
|
|
1432
|
-
};
|
|
1433
|
-
|
|
1434
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1435
|
-
if (headerKey !== undefined) {
|
|
1436
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1437
|
-
}
|
|
1438
|
-
|
|
1439
|
-
if (data.code !== undefined) {
|
|
1440
|
-
return sanitizeErrorCode(data.code);
|
|
1441
|
-
}
|
|
1442
|
-
|
|
1443
|
-
if (data["__type"] !== undefined) {
|
|
1444
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1445
|
-
}
|
|
1446
|
-
|
|
1447
|
-
return "";
|
|
1448
|
-
};
|