@aws-sdk/client-resource-groups-tagging-api 3.927.0 → 3.929.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/index.js +288 -347
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/ResourceGroupsTaggingAPIClient.js +2 -0
- package/dist-es/commands/DescribeReportCreationCommand.js +3 -9
- package/dist-es/commands/GetComplianceSummaryCommand.js +3 -9
- package/dist-es/commands/GetResourcesCommand.js +3 -9
- package/dist-es/commands/GetTagKeysCommand.js +3 -9
- package/dist-es/commands/GetTagValuesCommand.js +3 -9
- package/dist-es/commands/StartReportCreationCommand.js +3 -9
- package/dist-es/commands/TagResourcesCommand.js +3 -9
- package/dist-es/commands/UntagResourcesCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +265 -0
- package/dist-types/ResourceGroupsTaggingAPIClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +56 -0
- package/dist-types/ts3.4/ResourceGroupsTaggingAPIClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +62 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_1.js +0 -277
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -74
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -101
|
@@ -30,10 +30,13 @@ import {
|
|
|
30
30
|
BodyLengthCalculator as __BodyLengthCalculator,
|
|
31
31
|
CheckOptionalClientConfig as __CheckOptionalClientConfig,
|
|
32
32
|
ChecksumConstructor as __ChecksumConstructor,
|
|
33
|
+
ClientProtocol,
|
|
33
34
|
Decoder as __Decoder,
|
|
34
35
|
Encoder as __Encoder,
|
|
35
36
|
HashConstructor as __HashConstructor,
|
|
36
37
|
HttpHandlerOptions as __HttpHandlerOptions,
|
|
38
|
+
HttpRequest,
|
|
39
|
+
HttpResponse,
|
|
37
40
|
Logger as __Logger,
|
|
38
41
|
Provider as __Provider,
|
|
39
42
|
Provider,
|
|
@@ -126,6 +129,7 @@ export interface ClientDefaults
|
|
|
126
129
|
retryMode?: string | __Provider<string>;
|
|
127
130
|
logger?: __Logger;
|
|
128
131
|
extensions?: RuntimeExtension[];
|
|
132
|
+
protocol?: ClientProtocol<HttpRequest, HttpResponse>;
|
|
129
133
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
130
134
|
}
|
|
131
135
|
export type ResourceGroupsTaggingAPIClientConfigType = Partial<
|
|
@@ -40,6 +40,10 @@ export declare const getRuntimeConfig: (
|
|
|
40
40
|
profile?: string;
|
|
41
41
|
logger: import("@smithy/types").Logger;
|
|
42
42
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
43
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
44
|
+
import("@smithy/types").HttpRequest,
|
|
45
|
+
import("@smithy/types").HttpResponse
|
|
46
|
+
>;
|
|
43
47
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
44
48
|
userAgentAppId?:
|
|
45
49
|
| string
|
|
@@ -40,6 +40,10 @@ export declare const getRuntimeConfig: (
|
|
|
40
40
|
profile?: string;
|
|
41
41
|
logger: import("@smithy/types").Logger;
|
|
42
42
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
43
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
44
|
+
import("@smithy/types").HttpRequest,
|
|
45
|
+
import("@smithy/types").HttpResponse
|
|
46
|
+
>;
|
|
43
47
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
44
48
|
retryStrategy?:
|
|
45
49
|
| import("@smithy/types").RetryStrategy
|
|
@@ -39,6 +39,10 @@ export declare const getRuntimeConfig: (
|
|
|
39
39
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
40
40
|
logger: import("@smithy/types").Logger;
|
|
41
41
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
42
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
43
|
+
import("@smithy/types").HttpRequest,
|
|
44
|
+
import("@smithy/types").HttpResponse
|
|
45
|
+
>;
|
|
42
46
|
defaultsMode:
|
|
43
47
|
| import("@smithy/smithy-client").DefaultsMode
|
|
44
48
|
| import("@smithy/types").Provider<
|
|
@@ -16,6 +16,10 @@ export declare const getRuntimeConfig: (
|
|
|
16
16
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").ResourceGroupsTaggingAPIHttpAuthSchemeProvider;
|
|
17
17
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
18
18
|
logger: import("@smithy/types").Logger;
|
|
19
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
20
|
+
import("@smithy/types").HttpRequest,
|
|
21
|
+
import("@smithy/types").HttpResponse
|
|
22
|
+
>;
|
|
19
23
|
serviceId: string;
|
|
20
24
|
urlParser: import("@smithy/types").UrlParser;
|
|
21
25
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StaticErrorSchema,
|
|
3
|
+
StaticListSchema,
|
|
4
|
+
StaticMapSchema,
|
|
5
|
+
StaticOperationSchema,
|
|
6
|
+
StaticStructureSchema,
|
|
7
|
+
} from "@smithy/types";
|
|
8
|
+
export declare var ComplianceDetails: StaticStructureSchema;
|
|
9
|
+
export declare var ConcurrentModificationException: StaticErrorSchema;
|
|
10
|
+
export declare var ConstraintViolationException: StaticErrorSchema;
|
|
11
|
+
export declare var DescribeReportCreationInput: StaticStructureSchema;
|
|
12
|
+
export declare var DescribeReportCreationOutput: StaticStructureSchema;
|
|
13
|
+
export declare var FailureInfo: StaticStructureSchema;
|
|
14
|
+
export declare var GetComplianceSummaryInput: StaticStructureSchema;
|
|
15
|
+
export declare var GetComplianceSummaryOutput: StaticStructureSchema;
|
|
16
|
+
export declare var GetResourcesInput: StaticStructureSchema;
|
|
17
|
+
export declare var GetResourcesOutput: StaticStructureSchema;
|
|
18
|
+
export declare var GetTagKeysInput: StaticStructureSchema;
|
|
19
|
+
export declare var GetTagKeysOutput: StaticStructureSchema;
|
|
20
|
+
export declare var GetTagValuesInput: StaticStructureSchema;
|
|
21
|
+
export declare var GetTagValuesOutput: StaticStructureSchema;
|
|
22
|
+
export declare var InternalServiceException: StaticErrorSchema;
|
|
23
|
+
export declare var InvalidParameterException: StaticErrorSchema;
|
|
24
|
+
export declare var PaginationTokenExpiredException: StaticErrorSchema;
|
|
25
|
+
export declare var ResourceTagMapping: StaticStructureSchema;
|
|
26
|
+
export declare var StartReportCreationInput: StaticStructureSchema;
|
|
27
|
+
export declare var StartReportCreationOutput: StaticStructureSchema;
|
|
28
|
+
export declare var Summary: StaticStructureSchema;
|
|
29
|
+
export declare var Tag: StaticStructureSchema;
|
|
30
|
+
export declare var TagFilter: StaticStructureSchema;
|
|
31
|
+
export declare var TagResourcesInput: StaticStructureSchema;
|
|
32
|
+
export declare var TagResourcesOutput: StaticStructureSchema;
|
|
33
|
+
export declare var ThrottledException: StaticErrorSchema;
|
|
34
|
+
export declare var UntagResourcesInput: StaticStructureSchema;
|
|
35
|
+
export declare var UntagResourcesOutput: StaticStructureSchema;
|
|
36
|
+
export declare var __Unit: "unit";
|
|
37
|
+
export declare var ResourceGroupsTaggingAPIServiceException: StaticErrorSchema;
|
|
38
|
+
export declare var GroupBy: number;
|
|
39
|
+
export declare var RegionFilterList: number;
|
|
40
|
+
export declare var ResourceARNListForGet: number;
|
|
41
|
+
export declare var ResourceARNListForTagUntag: number;
|
|
42
|
+
export declare var ResourceTagMappingList: StaticListSchema;
|
|
43
|
+
export declare var ResourceTypeFilterList: number;
|
|
44
|
+
export declare var SummaryList: StaticListSchema;
|
|
45
|
+
export declare var TagFilterList: StaticListSchema;
|
|
46
|
+
export declare var TagKeyFilterList: number;
|
|
47
|
+
export declare var TagKeyList: number;
|
|
48
|
+
export declare var TagKeyListForUntag: number;
|
|
49
|
+
export declare var TagList: StaticListSchema;
|
|
50
|
+
export declare var TagValueList: number;
|
|
51
|
+
export declare var TagValuesOutputList: number;
|
|
52
|
+
export declare var TargetIdFilterList: number;
|
|
53
|
+
export declare var FailedResourcesMap: StaticMapSchema;
|
|
54
|
+
export declare var TagMap: number;
|
|
55
|
+
export declare var DescribeReportCreation: StaticOperationSchema;
|
|
56
|
+
export declare var GetComplianceSummary: StaticOperationSchema;
|
|
57
|
+
export declare var GetResources: StaticOperationSchema;
|
|
58
|
+
export declare var GetTagKeys: StaticOperationSchema;
|
|
59
|
+
export declare var GetTagValues: StaticOperationSchema;
|
|
60
|
+
export declare var StartReportCreation: StaticOperationSchema;
|
|
61
|
+
export declare var TagResources: StaticOperationSchema;
|
|
62
|
+
export declare var UntagResources: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-resource-groups-tagging-api",
|
|
3
3
|
"description": "AWS SDK for JavaScript Resource Groups Tagging Api Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.929.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-resource-groups-tagging-api",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.928.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.929.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.922.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.922.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.922.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.928.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.925.0",
|
|
30
30
|
"@aws-sdk/types": "3.922.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.922.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.922.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.928.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.4.2",
|
|
35
35
|
"@smithy/core": "^3.17.2",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.3.5",
|
|
@@ -1,277 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { ConcurrentModificationException, ConstraintViolationException, InternalServiceException, InvalidParameterException, PaginationTokenExpiredException, ThrottledException, } from "../models/models_0";
|
|
5
|
-
import { ResourceGroupsTaggingAPIServiceException as __BaseException } from "../models/ResourceGroupsTaggingAPIServiceException";
|
|
6
|
-
export const se_DescribeReportCreationCommand = async (input, context) => {
|
|
7
|
-
const headers = sharedHeaders("DescribeReportCreation");
|
|
8
|
-
let body;
|
|
9
|
-
body = JSON.stringify(_json(input));
|
|
10
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
11
|
-
};
|
|
12
|
-
export const se_GetComplianceSummaryCommand = async (input, context) => {
|
|
13
|
-
const headers = sharedHeaders("GetComplianceSummary");
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(_json(input));
|
|
16
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
|
-
};
|
|
18
|
-
export const se_GetResourcesCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("GetResources");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify(_json(input));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
export const se_GetTagKeysCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("GetTagKeys");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify(_json(input));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
export const se_GetTagValuesCommand = async (input, context) => {
|
|
31
|
-
const headers = sharedHeaders("GetTagValues");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify(_json(input));
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
export const se_StartReportCreationCommand = async (input, context) => {
|
|
37
|
-
const headers = sharedHeaders("StartReportCreation");
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify(_json(input));
|
|
40
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
-
};
|
|
42
|
-
export const se_TagResourcesCommand = async (input, context) => {
|
|
43
|
-
const headers = sharedHeaders("TagResources");
|
|
44
|
-
let body;
|
|
45
|
-
body = JSON.stringify(_json(input));
|
|
46
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
|
-
};
|
|
48
|
-
export const se_UntagResourcesCommand = async (input, context) => {
|
|
49
|
-
const headers = sharedHeaders("UntagResources");
|
|
50
|
-
let body;
|
|
51
|
-
body = JSON.stringify(_json(input));
|
|
52
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
|
-
};
|
|
54
|
-
export const de_DescribeReportCreationCommand = async (output, context) => {
|
|
55
|
-
if (output.statusCode >= 300) {
|
|
56
|
-
return de_CommandError(output, context);
|
|
57
|
-
}
|
|
58
|
-
const data = await parseBody(output.body, context);
|
|
59
|
-
let contents = {};
|
|
60
|
-
contents = _json(data);
|
|
61
|
-
const response = {
|
|
62
|
-
$metadata: deserializeMetadata(output),
|
|
63
|
-
...contents,
|
|
64
|
-
};
|
|
65
|
-
return response;
|
|
66
|
-
};
|
|
67
|
-
export const de_GetComplianceSummaryCommand = async (output, context) => {
|
|
68
|
-
if (output.statusCode >= 300) {
|
|
69
|
-
return de_CommandError(output, context);
|
|
70
|
-
}
|
|
71
|
-
const data = await parseBody(output.body, context);
|
|
72
|
-
let contents = {};
|
|
73
|
-
contents = _json(data);
|
|
74
|
-
const response = {
|
|
75
|
-
$metadata: deserializeMetadata(output),
|
|
76
|
-
...contents,
|
|
77
|
-
};
|
|
78
|
-
return response;
|
|
79
|
-
};
|
|
80
|
-
export const de_GetResourcesCommand = async (output, context) => {
|
|
81
|
-
if (output.statusCode >= 300) {
|
|
82
|
-
return de_CommandError(output, context);
|
|
83
|
-
}
|
|
84
|
-
const data = await parseBody(output.body, context);
|
|
85
|
-
let contents = {};
|
|
86
|
-
contents = _json(data);
|
|
87
|
-
const response = {
|
|
88
|
-
$metadata: deserializeMetadata(output),
|
|
89
|
-
...contents,
|
|
90
|
-
};
|
|
91
|
-
return response;
|
|
92
|
-
};
|
|
93
|
-
export const de_GetTagKeysCommand = async (output, context) => {
|
|
94
|
-
if (output.statusCode >= 300) {
|
|
95
|
-
return de_CommandError(output, context);
|
|
96
|
-
}
|
|
97
|
-
const data = await parseBody(output.body, context);
|
|
98
|
-
let contents = {};
|
|
99
|
-
contents = _json(data);
|
|
100
|
-
const response = {
|
|
101
|
-
$metadata: deserializeMetadata(output),
|
|
102
|
-
...contents,
|
|
103
|
-
};
|
|
104
|
-
return response;
|
|
105
|
-
};
|
|
106
|
-
export const de_GetTagValuesCommand = async (output, context) => {
|
|
107
|
-
if (output.statusCode >= 300) {
|
|
108
|
-
return de_CommandError(output, context);
|
|
109
|
-
}
|
|
110
|
-
const data = await parseBody(output.body, context);
|
|
111
|
-
let contents = {};
|
|
112
|
-
contents = _json(data);
|
|
113
|
-
const response = {
|
|
114
|
-
$metadata: deserializeMetadata(output),
|
|
115
|
-
...contents,
|
|
116
|
-
};
|
|
117
|
-
return response;
|
|
118
|
-
};
|
|
119
|
-
export const de_StartReportCreationCommand = async (output, context) => {
|
|
120
|
-
if (output.statusCode >= 300) {
|
|
121
|
-
return de_CommandError(output, context);
|
|
122
|
-
}
|
|
123
|
-
const data = await parseBody(output.body, context);
|
|
124
|
-
let contents = {};
|
|
125
|
-
contents = _json(data);
|
|
126
|
-
const response = {
|
|
127
|
-
$metadata: deserializeMetadata(output),
|
|
128
|
-
...contents,
|
|
129
|
-
};
|
|
130
|
-
return response;
|
|
131
|
-
};
|
|
132
|
-
export const de_TagResourcesCommand = async (output, context) => {
|
|
133
|
-
if (output.statusCode >= 300) {
|
|
134
|
-
return de_CommandError(output, context);
|
|
135
|
-
}
|
|
136
|
-
const data = await parseBody(output.body, context);
|
|
137
|
-
let contents = {};
|
|
138
|
-
contents = _json(data);
|
|
139
|
-
const response = {
|
|
140
|
-
$metadata: deserializeMetadata(output),
|
|
141
|
-
...contents,
|
|
142
|
-
};
|
|
143
|
-
return response;
|
|
144
|
-
};
|
|
145
|
-
export const de_UntagResourcesCommand = async (output, context) => {
|
|
146
|
-
if (output.statusCode >= 300) {
|
|
147
|
-
return de_CommandError(output, context);
|
|
148
|
-
}
|
|
149
|
-
const data = await parseBody(output.body, context);
|
|
150
|
-
let contents = {};
|
|
151
|
-
contents = _json(data);
|
|
152
|
-
const response = {
|
|
153
|
-
$metadata: deserializeMetadata(output),
|
|
154
|
-
...contents,
|
|
155
|
-
};
|
|
156
|
-
return response;
|
|
157
|
-
};
|
|
158
|
-
const de_CommandError = async (output, context) => {
|
|
159
|
-
const parsedOutput = {
|
|
160
|
-
...output,
|
|
161
|
-
body: await parseErrorBody(output.body, context),
|
|
162
|
-
};
|
|
163
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
164
|
-
switch (errorCode) {
|
|
165
|
-
case "ConstraintViolationException":
|
|
166
|
-
case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException":
|
|
167
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
168
|
-
case "InternalServiceException":
|
|
169
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
170
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
171
|
-
case "InvalidParameterException":
|
|
172
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
173
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
174
|
-
case "ThrottledException":
|
|
175
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
176
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
177
|
-
case "PaginationTokenExpiredException":
|
|
178
|
-
case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException":
|
|
179
|
-
throw await de_PaginationTokenExpiredExceptionRes(parsedOutput, context);
|
|
180
|
-
case "ConcurrentModificationException":
|
|
181
|
-
case "com.amazonaws.resourcegroupstaggingapi#ConcurrentModificationException":
|
|
182
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
183
|
-
default:
|
|
184
|
-
const parsedBody = parsedOutput.body;
|
|
185
|
-
return throwDefaultError({
|
|
186
|
-
output,
|
|
187
|
-
parsedBody,
|
|
188
|
-
errorCode,
|
|
189
|
-
});
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
|
-
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
193
|
-
const body = parsedOutput.body;
|
|
194
|
-
const deserialized = _json(body);
|
|
195
|
-
const exception = new ConcurrentModificationException({
|
|
196
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
197
|
-
...deserialized,
|
|
198
|
-
});
|
|
199
|
-
return __decorateServiceException(exception, body);
|
|
200
|
-
};
|
|
201
|
-
const de_ConstraintViolationExceptionRes = async (parsedOutput, context) => {
|
|
202
|
-
const body = parsedOutput.body;
|
|
203
|
-
const deserialized = _json(body);
|
|
204
|
-
const exception = new ConstraintViolationException({
|
|
205
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
206
|
-
...deserialized,
|
|
207
|
-
});
|
|
208
|
-
return __decorateServiceException(exception, body);
|
|
209
|
-
};
|
|
210
|
-
const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
|
|
211
|
-
const body = parsedOutput.body;
|
|
212
|
-
const deserialized = _json(body);
|
|
213
|
-
const exception = new InternalServiceException({
|
|
214
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
215
|
-
...deserialized,
|
|
216
|
-
});
|
|
217
|
-
return __decorateServiceException(exception, body);
|
|
218
|
-
};
|
|
219
|
-
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
220
|
-
const body = parsedOutput.body;
|
|
221
|
-
const deserialized = _json(body);
|
|
222
|
-
const exception = new InvalidParameterException({
|
|
223
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
224
|
-
...deserialized,
|
|
225
|
-
});
|
|
226
|
-
return __decorateServiceException(exception, body);
|
|
227
|
-
};
|
|
228
|
-
const de_PaginationTokenExpiredExceptionRes = async (parsedOutput, context) => {
|
|
229
|
-
const body = parsedOutput.body;
|
|
230
|
-
const deserialized = _json(body);
|
|
231
|
-
const exception = new PaginationTokenExpiredException({
|
|
232
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
233
|
-
...deserialized,
|
|
234
|
-
});
|
|
235
|
-
return __decorateServiceException(exception, body);
|
|
236
|
-
};
|
|
237
|
-
const de_ThrottledExceptionRes = async (parsedOutput, context) => {
|
|
238
|
-
const body = parsedOutput.body;
|
|
239
|
-
const deserialized = _json(body);
|
|
240
|
-
const exception = new ThrottledException({
|
|
241
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
242
|
-
...deserialized,
|
|
243
|
-
});
|
|
244
|
-
return __decorateServiceException(exception, body);
|
|
245
|
-
};
|
|
246
|
-
const deserializeMetadata = (output) => ({
|
|
247
|
-
httpStatusCode: output.statusCode,
|
|
248
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
249
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
250
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
251
|
-
});
|
|
252
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
253
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
254
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
255
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
256
|
-
const contents = {
|
|
257
|
-
protocol,
|
|
258
|
-
hostname,
|
|
259
|
-
port,
|
|
260
|
-
method: "POST",
|
|
261
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
262
|
-
headers,
|
|
263
|
-
};
|
|
264
|
-
if (resolvedHostname !== undefined) {
|
|
265
|
-
contents.hostname = resolvedHostname;
|
|
266
|
-
}
|
|
267
|
-
if (body !== undefined) {
|
|
268
|
-
contents.body = body;
|
|
269
|
-
}
|
|
270
|
-
return new __HttpRequest(contents);
|
|
271
|
-
};
|
|
272
|
-
function sharedHeaders(operation) {
|
|
273
|
-
return {
|
|
274
|
-
"content-type": "application/x-amz-json-1.1",
|
|
275
|
-
"x-amz-target": `ResourceGroupsTaggingAPI_20170126.${operation}`,
|
|
276
|
-
};
|
|
277
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
|
-
import { DescribeReportCreationCommandInput, DescribeReportCreationCommandOutput } from "../commands/DescribeReportCreationCommand";
|
|
4
|
-
import { GetComplianceSummaryCommandInput, GetComplianceSummaryCommandOutput } from "../commands/GetComplianceSummaryCommand";
|
|
5
|
-
import { GetResourcesCommandInput, GetResourcesCommandOutput } from "../commands/GetResourcesCommand";
|
|
6
|
-
import { GetTagKeysCommandInput, GetTagKeysCommandOutput } from "../commands/GetTagKeysCommand";
|
|
7
|
-
import { GetTagValuesCommandInput, GetTagValuesCommandOutput } from "../commands/GetTagValuesCommand";
|
|
8
|
-
import { StartReportCreationCommandInput, StartReportCreationCommandOutput } from "../commands/StartReportCreationCommand";
|
|
9
|
-
import { TagResourcesCommandInput, TagResourcesCommandOutput } from "../commands/TagResourcesCommand";
|
|
10
|
-
import { UntagResourcesCommandInput, UntagResourcesCommandOutput } from "../commands/UntagResourcesCommand";
|
|
11
|
-
/**
|
|
12
|
-
* serializeAws_json1_1DescribeReportCreationCommand
|
|
13
|
-
*/
|
|
14
|
-
export declare const se_DescribeReportCreationCommand: (input: DescribeReportCreationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
15
|
-
/**
|
|
16
|
-
* serializeAws_json1_1GetComplianceSummaryCommand
|
|
17
|
-
*/
|
|
18
|
-
export declare const se_GetComplianceSummaryCommand: (input: GetComplianceSummaryCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
19
|
-
/**
|
|
20
|
-
* serializeAws_json1_1GetResourcesCommand
|
|
21
|
-
*/
|
|
22
|
-
export declare const se_GetResourcesCommand: (input: GetResourcesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
23
|
-
/**
|
|
24
|
-
* serializeAws_json1_1GetTagKeysCommand
|
|
25
|
-
*/
|
|
26
|
-
export declare const se_GetTagKeysCommand: (input: GetTagKeysCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
27
|
-
/**
|
|
28
|
-
* serializeAws_json1_1GetTagValuesCommand
|
|
29
|
-
*/
|
|
30
|
-
export declare const se_GetTagValuesCommand: (input: GetTagValuesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
31
|
-
/**
|
|
32
|
-
* serializeAws_json1_1StartReportCreationCommand
|
|
33
|
-
*/
|
|
34
|
-
export declare const se_StartReportCreationCommand: (input: StartReportCreationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
35
|
-
/**
|
|
36
|
-
* serializeAws_json1_1TagResourcesCommand
|
|
37
|
-
*/
|
|
38
|
-
export declare const se_TagResourcesCommand: (input: TagResourcesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
39
|
-
/**
|
|
40
|
-
* serializeAws_json1_1UntagResourcesCommand
|
|
41
|
-
*/
|
|
42
|
-
export declare const se_UntagResourcesCommand: (input: UntagResourcesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
43
|
-
/**
|
|
44
|
-
* deserializeAws_json1_1DescribeReportCreationCommand
|
|
45
|
-
*/
|
|
46
|
-
export declare const de_DescribeReportCreationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeReportCreationCommandOutput>;
|
|
47
|
-
/**
|
|
48
|
-
* deserializeAws_json1_1GetComplianceSummaryCommand
|
|
49
|
-
*/
|
|
50
|
-
export declare const de_GetComplianceSummaryCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetComplianceSummaryCommandOutput>;
|
|
51
|
-
/**
|
|
52
|
-
* deserializeAws_json1_1GetResourcesCommand
|
|
53
|
-
*/
|
|
54
|
-
export declare const de_GetResourcesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetResourcesCommandOutput>;
|
|
55
|
-
/**
|
|
56
|
-
* deserializeAws_json1_1GetTagKeysCommand
|
|
57
|
-
*/
|
|
58
|
-
export declare const de_GetTagKeysCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetTagKeysCommandOutput>;
|
|
59
|
-
/**
|
|
60
|
-
* deserializeAws_json1_1GetTagValuesCommand
|
|
61
|
-
*/
|
|
62
|
-
export declare const de_GetTagValuesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetTagValuesCommandOutput>;
|
|
63
|
-
/**
|
|
64
|
-
* deserializeAws_json1_1StartReportCreationCommand
|
|
65
|
-
*/
|
|
66
|
-
export declare const de_StartReportCreationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartReportCreationCommandOutput>;
|
|
67
|
-
/**
|
|
68
|
-
* deserializeAws_json1_1TagResourcesCommand
|
|
69
|
-
*/
|
|
70
|
-
export declare const de_TagResourcesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourcesCommandOutput>;
|
|
71
|
-
/**
|
|
72
|
-
* deserializeAws_json1_1UntagResourcesCommand
|
|
73
|
-
*/
|
|
74
|
-
export declare const de_UntagResourcesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourcesCommandOutput>;
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
HttpRequest as __HttpRequest,
|
|
3
|
-
HttpResponse as __HttpResponse,
|
|
4
|
-
} from "@smithy/protocol-http";
|
|
5
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
6
|
-
import {
|
|
7
|
-
DescribeReportCreationCommandInput,
|
|
8
|
-
DescribeReportCreationCommandOutput,
|
|
9
|
-
} from "../commands/DescribeReportCreationCommand";
|
|
10
|
-
import {
|
|
11
|
-
GetComplianceSummaryCommandInput,
|
|
12
|
-
GetComplianceSummaryCommandOutput,
|
|
13
|
-
} from "../commands/GetComplianceSummaryCommand";
|
|
14
|
-
import {
|
|
15
|
-
GetResourcesCommandInput,
|
|
16
|
-
GetResourcesCommandOutput,
|
|
17
|
-
} from "../commands/GetResourcesCommand";
|
|
18
|
-
import {
|
|
19
|
-
GetTagKeysCommandInput,
|
|
20
|
-
GetTagKeysCommandOutput,
|
|
21
|
-
} from "../commands/GetTagKeysCommand";
|
|
22
|
-
import {
|
|
23
|
-
GetTagValuesCommandInput,
|
|
24
|
-
GetTagValuesCommandOutput,
|
|
25
|
-
} from "../commands/GetTagValuesCommand";
|
|
26
|
-
import {
|
|
27
|
-
StartReportCreationCommandInput,
|
|
28
|
-
StartReportCreationCommandOutput,
|
|
29
|
-
} from "../commands/StartReportCreationCommand";
|
|
30
|
-
import {
|
|
31
|
-
TagResourcesCommandInput,
|
|
32
|
-
TagResourcesCommandOutput,
|
|
33
|
-
} from "../commands/TagResourcesCommand";
|
|
34
|
-
import {
|
|
35
|
-
UntagResourcesCommandInput,
|
|
36
|
-
UntagResourcesCommandOutput,
|
|
37
|
-
} from "../commands/UntagResourcesCommand";
|
|
38
|
-
export declare const se_DescribeReportCreationCommand: (
|
|
39
|
-
input: DescribeReportCreationCommandInput,
|
|
40
|
-
context: __SerdeContext
|
|
41
|
-
) => Promise<__HttpRequest>;
|
|
42
|
-
export declare const se_GetComplianceSummaryCommand: (
|
|
43
|
-
input: GetComplianceSummaryCommandInput,
|
|
44
|
-
context: __SerdeContext
|
|
45
|
-
) => Promise<__HttpRequest>;
|
|
46
|
-
export declare const se_GetResourcesCommand: (
|
|
47
|
-
input: GetResourcesCommandInput,
|
|
48
|
-
context: __SerdeContext
|
|
49
|
-
) => Promise<__HttpRequest>;
|
|
50
|
-
export declare const se_GetTagKeysCommand: (
|
|
51
|
-
input: GetTagKeysCommandInput,
|
|
52
|
-
context: __SerdeContext
|
|
53
|
-
) => Promise<__HttpRequest>;
|
|
54
|
-
export declare const se_GetTagValuesCommand: (
|
|
55
|
-
input: GetTagValuesCommandInput,
|
|
56
|
-
context: __SerdeContext
|
|
57
|
-
) => Promise<__HttpRequest>;
|
|
58
|
-
export declare const se_StartReportCreationCommand: (
|
|
59
|
-
input: StartReportCreationCommandInput,
|
|
60
|
-
context: __SerdeContext
|
|
61
|
-
) => Promise<__HttpRequest>;
|
|
62
|
-
export declare const se_TagResourcesCommand: (
|
|
63
|
-
input: TagResourcesCommandInput,
|
|
64
|
-
context: __SerdeContext
|
|
65
|
-
) => Promise<__HttpRequest>;
|
|
66
|
-
export declare const se_UntagResourcesCommand: (
|
|
67
|
-
input: UntagResourcesCommandInput,
|
|
68
|
-
context: __SerdeContext
|
|
69
|
-
) => Promise<__HttpRequest>;
|
|
70
|
-
export declare const de_DescribeReportCreationCommand: (
|
|
71
|
-
output: __HttpResponse,
|
|
72
|
-
context: __SerdeContext
|
|
73
|
-
) => Promise<DescribeReportCreationCommandOutput>;
|
|
74
|
-
export declare const de_GetComplianceSummaryCommand: (
|
|
75
|
-
output: __HttpResponse,
|
|
76
|
-
context: __SerdeContext
|
|
77
|
-
) => Promise<GetComplianceSummaryCommandOutput>;
|
|
78
|
-
export declare const de_GetResourcesCommand: (
|
|
79
|
-
output: __HttpResponse,
|
|
80
|
-
context: __SerdeContext
|
|
81
|
-
) => Promise<GetResourcesCommandOutput>;
|
|
82
|
-
export declare const de_GetTagKeysCommand: (
|
|
83
|
-
output: __HttpResponse,
|
|
84
|
-
context: __SerdeContext
|
|
85
|
-
) => Promise<GetTagKeysCommandOutput>;
|
|
86
|
-
export declare const de_GetTagValuesCommand: (
|
|
87
|
-
output: __HttpResponse,
|
|
88
|
-
context: __SerdeContext
|
|
89
|
-
) => Promise<GetTagValuesCommandOutput>;
|
|
90
|
-
export declare const de_StartReportCreationCommand: (
|
|
91
|
-
output: __HttpResponse,
|
|
92
|
-
context: __SerdeContext
|
|
93
|
-
) => Promise<StartReportCreationCommandOutput>;
|
|
94
|
-
export declare const de_TagResourcesCommand: (
|
|
95
|
-
output: __HttpResponse,
|
|
96
|
-
context: __SerdeContext
|
|
97
|
-
) => Promise<TagResourcesCommandOutput>;
|
|
98
|
-
export declare const de_UntagResourcesCommand: (
|
|
99
|
-
output: __HttpResponse,
|
|
100
|
-
context: __SerdeContext
|
|
101
|
-
) => Promise<UntagResourcesCommandOutput>;
|