@aws-sdk/client-resource-groups-tagging-api 3.901.0 → 3.906.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 +642 -776
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -1,811 +1,677 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
GroupByAttribute: () => GroupByAttribute,
|
|
33
|
-
InternalServiceException: () => InternalServiceException,
|
|
34
|
-
InvalidParameterException: () => InvalidParameterException,
|
|
35
|
-
PaginationTokenExpiredException: () => PaginationTokenExpiredException,
|
|
36
|
-
ResourceGroupsTaggingAPI: () => ResourceGroupsTaggingAPI,
|
|
37
|
-
ResourceGroupsTaggingAPIClient: () => ResourceGroupsTaggingAPIClient,
|
|
38
|
-
ResourceGroupsTaggingAPIServiceException: () => ResourceGroupsTaggingAPIServiceException,
|
|
39
|
-
StartReportCreationCommand: () => StartReportCreationCommand,
|
|
40
|
-
TagResourcesCommand: () => TagResourcesCommand,
|
|
41
|
-
TargetIdType: () => TargetIdType,
|
|
42
|
-
ThrottledException: () => ThrottledException,
|
|
43
|
-
UntagResourcesCommand: () => UntagResourcesCommand,
|
|
44
|
-
__Client: () => import_smithy_client.Client,
|
|
45
|
-
paginateGetComplianceSummary: () => paginateGetComplianceSummary,
|
|
46
|
-
paginateGetResources: () => paginateGetResources,
|
|
47
|
-
paginateGetTagKeys: () => paginateGetTagKeys,
|
|
48
|
-
paginateGetTagValues: () => paginateGetTagValues
|
|
49
|
-
});
|
|
50
|
-
module.exports = __toCommonJS(index_exports);
|
|
51
|
-
|
|
52
|
-
// src/ResourceGroupsTaggingAPIClient.ts
|
|
53
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
54
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
55
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
56
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
57
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
58
|
-
var import_core = require("@smithy/core");
|
|
59
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
60
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
61
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
62
|
-
|
|
63
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
64
|
-
|
|
65
|
-
// src/endpoint/EndpointParameters.ts
|
|
66
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
67
|
-
return Object.assign(options, {
|
|
68
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
69
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
70
|
-
defaultSigningName: "tagging"
|
|
71
|
-
});
|
|
72
|
-
}, "resolveClientEndpointParameters");
|
|
73
|
-
var commonParams = {
|
|
74
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
75
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
76
|
-
Region: { type: "builtInParams", name: "region" },
|
|
77
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
|
|
20
|
+
const resolveClientEndpointParameters = (options) => {
|
|
21
|
+
return Object.assign(options, {
|
|
22
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
23
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
24
|
+
defaultSigningName: "tagging",
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
const commonParams = {
|
|
28
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
29
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
30
|
+
Region: { type: "builtInParams", name: "region" },
|
|
31
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
78
32
|
};
|
|
79
33
|
|
|
80
|
-
|
|
81
|
-
|
|
34
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
37
|
+
let _credentials = runtimeConfig.credentials;
|
|
38
|
+
return {
|
|
39
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
40
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
41
|
+
if (index === -1) {
|
|
42
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
httpAuthSchemes() {
|
|
49
|
+
return _httpAuthSchemes;
|
|
50
|
+
},
|
|
51
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
52
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
53
|
+
},
|
|
54
|
+
httpAuthSchemeProvider() {
|
|
55
|
+
return _httpAuthSchemeProvider;
|
|
56
|
+
},
|
|
57
|
+
setCredentials(credentials) {
|
|
58
|
+
_credentials = credentials;
|
|
59
|
+
},
|
|
60
|
+
credentials() {
|
|
61
|
+
return _credentials;
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
66
|
+
return {
|
|
67
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
68
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
69
|
+
credentials: config.credentials(),
|
|
70
|
+
};
|
|
71
|
+
};
|
|
82
72
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
73
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
74
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
75
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
76
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
77
|
+
};
|
|
87
78
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
79
|
+
class ResourceGroupsTaggingAPIClient extends smithyClient.Client {
|
|
80
|
+
config;
|
|
81
|
+
constructor(...[configuration]) {
|
|
82
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
83
|
+
super(_config_0);
|
|
84
|
+
this.initConfig = _config_0;
|
|
85
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
86
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
|
+
this.config = _config_8;
|
|
94
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
101
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultResourceGroupsTaggingAPIHttpAuthSchemeParametersProvider,
|
|
102
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
103
|
+
"aws.auth#sigv4": config.credentials,
|
|
104
|
+
}),
|
|
105
|
+
}));
|
|
106
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
116
107
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
122
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
123
|
-
credentials: config.credentials()
|
|
124
|
-
};
|
|
125
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
108
|
+
destroy() {
|
|
109
|
+
super.destroy();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
126
112
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
134
|
-
);
|
|
135
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
136
|
-
return Object.assign(
|
|
137
|
-
runtimeConfig,
|
|
138
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
139
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
140
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
141
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
142
|
-
);
|
|
143
|
-
}, "resolveRuntimeExtensions");
|
|
113
|
+
class ResourceGroupsTaggingAPIServiceException extends smithyClient.ServiceException {
|
|
114
|
+
constructor(options) {
|
|
115
|
+
super(options);
|
|
116
|
+
Object.setPrototypeOf(this, ResourceGroupsTaggingAPIServiceException.prototype);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
144
119
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
120
|
+
class ConcurrentModificationException extends ResourceGroupsTaggingAPIServiceException {
|
|
121
|
+
name = "ConcurrentModificationException";
|
|
122
|
+
$fault = "client";
|
|
123
|
+
Message;
|
|
124
|
+
constructor(opts) {
|
|
125
|
+
super({
|
|
126
|
+
name: "ConcurrentModificationException",
|
|
127
|
+
$fault: "client",
|
|
128
|
+
...opts,
|
|
129
|
+
});
|
|
130
|
+
Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
|
|
131
|
+
this.Message = opts.Message;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
class ConstraintViolationException extends ResourceGroupsTaggingAPIServiceException {
|
|
135
|
+
name = "ConstraintViolationException";
|
|
136
|
+
$fault = "client";
|
|
137
|
+
Message;
|
|
138
|
+
constructor(opts) {
|
|
139
|
+
super({
|
|
140
|
+
name: "ConstraintViolationException",
|
|
141
|
+
$fault: "client",
|
|
142
|
+
...opts,
|
|
143
|
+
});
|
|
144
|
+
Object.setPrototypeOf(this, ConstraintViolationException.prototype);
|
|
145
|
+
this.Message = opts.Message;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
class InternalServiceException extends ResourceGroupsTaggingAPIServiceException {
|
|
149
|
+
name = "InternalServiceException";
|
|
150
|
+
$fault = "server";
|
|
151
|
+
Message;
|
|
152
|
+
constructor(opts) {
|
|
153
|
+
super({
|
|
154
|
+
name: "InternalServiceException",
|
|
155
|
+
$fault: "server",
|
|
156
|
+
...opts,
|
|
157
|
+
});
|
|
158
|
+
Object.setPrototypeOf(this, InternalServiceException.prototype);
|
|
159
|
+
this.Message = opts.Message;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
class InvalidParameterException extends ResourceGroupsTaggingAPIServiceException {
|
|
163
|
+
name = "InvalidParameterException";
|
|
164
|
+
$fault = "client";
|
|
165
|
+
Message;
|
|
166
|
+
constructor(opts) {
|
|
167
|
+
super({
|
|
168
|
+
name: "InvalidParameterException",
|
|
169
|
+
$fault: "client",
|
|
170
|
+
...opts,
|
|
171
|
+
});
|
|
172
|
+
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
173
|
+
this.Message = opts.Message;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
class ThrottledException extends ResourceGroupsTaggingAPIServiceException {
|
|
177
|
+
name = "ThrottledException";
|
|
178
|
+
$fault = "client";
|
|
179
|
+
Message;
|
|
180
|
+
constructor(opts) {
|
|
181
|
+
super({
|
|
182
|
+
name: "ThrottledException",
|
|
183
|
+
$fault: "client",
|
|
184
|
+
...opts,
|
|
185
|
+
});
|
|
186
|
+
Object.setPrototypeOf(this, ThrottledException.prototype);
|
|
187
|
+
this.Message = opts.Message;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
const ErrorCode = {
|
|
191
|
+
INTERNAL_SERVICE_EXCEPTION: "InternalServiceException",
|
|
192
|
+
INVALID_PARAMETER_EXCEPTION: "InvalidParameterException",
|
|
191
193
|
};
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
// src/protocols/Aws_json1_1.ts
|
|
202
|
-
var import_core2 = require("@aws-sdk/core");
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
// src/models/ResourceGroupsTaggingAPIServiceException.ts
|
|
207
|
-
|
|
208
|
-
var ResourceGroupsTaggingAPIServiceException = class _ResourceGroupsTaggingAPIServiceException extends import_smithy_client.ServiceException {
|
|
209
|
-
static {
|
|
210
|
-
__name(this, "ResourceGroupsTaggingAPIServiceException");
|
|
211
|
-
}
|
|
212
|
-
/**
|
|
213
|
-
* @internal
|
|
214
|
-
*/
|
|
215
|
-
constructor(options) {
|
|
216
|
-
super(options);
|
|
217
|
-
Object.setPrototypeOf(this, _ResourceGroupsTaggingAPIServiceException.prototype);
|
|
218
|
-
}
|
|
194
|
+
const GroupByAttribute = {
|
|
195
|
+
REGION: "REGION",
|
|
196
|
+
RESOURCE_TYPE: "RESOURCE_TYPE",
|
|
197
|
+
TARGET_ID: "TARGET_ID",
|
|
198
|
+
};
|
|
199
|
+
const TargetIdType = {
|
|
200
|
+
ACCOUNT: "ACCOUNT",
|
|
201
|
+
OU: "OU",
|
|
202
|
+
ROOT: "ROOT",
|
|
219
203
|
};
|
|
204
|
+
class PaginationTokenExpiredException extends ResourceGroupsTaggingAPIServiceException {
|
|
205
|
+
name = "PaginationTokenExpiredException";
|
|
206
|
+
$fault = "client";
|
|
207
|
+
Message;
|
|
208
|
+
constructor(opts) {
|
|
209
|
+
super({
|
|
210
|
+
name: "PaginationTokenExpiredException",
|
|
211
|
+
$fault: "client",
|
|
212
|
+
...opts,
|
|
213
|
+
});
|
|
214
|
+
Object.setPrototypeOf(this, PaginationTokenExpiredException.prototype);
|
|
215
|
+
this.Message = opts.Message;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
220
218
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
219
|
+
const se_DescribeReportCreationCommand = async (input, context) => {
|
|
220
|
+
const headers = sharedHeaders("DescribeReportCreation");
|
|
221
|
+
let body;
|
|
222
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
223
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
224
|
+
};
|
|
225
|
+
const se_GetComplianceSummaryCommand = async (input, context) => {
|
|
226
|
+
const headers = sharedHeaders("GetComplianceSummary");
|
|
227
|
+
let body;
|
|
228
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
229
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
230
|
+
};
|
|
231
|
+
const se_GetResourcesCommand = async (input, context) => {
|
|
232
|
+
const headers = sharedHeaders("GetResources");
|
|
233
|
+
let body;
|
|
234
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
235
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
236
|
+
};
|
|
237
|
+
const se_GetTagKeysCommand = async (input, context) => {
|
|
238
|
+
const headers = sharedHeaders("GetTagKeys");
|
|
239
|
+
let body;
|
|
240
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
241
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
242
|
+
};
|
|
243
|
+
const se_GetTagValuesCommand = async (input, context) => {
|
|
244
|
+
const headers = sharedHeaders("GetTagValues");
|
|
245
|
+
let body;
|
|
246
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
247
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
248
|
+
};
|
|
249
|
+
const se_StartReportCreationCommand = async (input, context) => {
|
|
250
|
+
const headers = sharedHeaders("StartReportCreation");
|
|
251
|
+
let body;
|
|
252
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
253
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
254
|
+
};
|
|
255
|
+
const se_TagResourcesCommand = async (input, context) => {
|
|
256
|
+
const headers = sharedHeaders("TagResources");
|
|
257
|
+
let body;
|
|
258
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
259
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
260
|
+
};
|
|
261
|
+
const se_UntagResourcesCommand = async (input, context) => {
|
|
262
|
+
const headers = sharedHeaders("UntagResources");
|
|
263
|
+
let body;
|
|
264
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
265
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
266
|
+
};
|
|
267
|
+
const de_DescribeReportCreationCommand = async (output, context) => {
|
|
268
|
+
if (output.statusCode >= 300) {
|
|
269
|
+
return de_CommandError(output, context);
|
|
270
|
+
}
|
|
271
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
272
|
+
let contents = {};
|
|
273
|
+
contents = smithyClient._json(data);
|
|
274
|
+
const response = {
|
|
275
|
+
$metadata: deserializeMetadata(output),
|
|
276
|
+
...contents,
|
|
277
|
+
};
|
|
278
|
+
return response;
|
|
279
|
+
};
|
|
280
|
+
const de_GetComplianceSummaryCommand = async (output, context) => {
|
|
281
|
+
if (output.statusCode >= 300) {
|
|
282
|
+
return de_CommandError(output, context);
|
|
283
|
+
}
|
|
284
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
285
|
+
let contents = {};
|
|
286
|
+
contents = smithyClient._json(data);
|
|
287
|
+
const response = {
|
|
288
|
+
$metadata: deserializeMetadata(output),
|
|
289
|
+
...contents,
|
|
290
|
+
};
|
|
291
|
+
return response;
|
|
292
|
+
};
|
|
293
|
+
const de_GetResourcesCommand = async (output, context) => {
|
|
294
|
+
if (output.statusCode >= 300) {
|
|
295
|
+
return de_CommandError(output, context);
|
|
296
|
+
}
|
|
297
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
298
|
+
let contents = {};
|
|
299
|
+
contents = smithyClient._json(data);
|
|
300
|
+
const response = {
|
|
301
|
+
$metadata: deserializeMetadata(output),
|
|
302
|
+
...contents,
|
|
303
|
+
};
|
|
304
|
+
return response;
|
|
305
|
+
};
|
|
306
|
+
const de_GetTagKeysCommand = async (output, context) => {
|
|
307
|
+
if (output.statusCode >= 300) {
|
|
308
|
+
return de_CommandError(output, context);
|
|
309
|
+
}
|
|
310
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
311
|
+
let contents = {};
|
|
312
|
+
contents = smithyClient._json(data);
|
|
313
|
+
const response = {
|
|
314
|
+
$metadata: deserializeMetadata(output),
|
|
315
|
+
...contents,
|
|
316
|
+
};
|
|
317
|
+
return response;
|
|
318
|
+
};
|
|
319
|
+
const de_GetTagValuesCommand = async (output, context) => {
|
|
320
|
+
if (output.statusCode >= 300) {
|
|
321
|
+
return de_CommandError(output, context);
|
|
322
|
+
}
|
|
323
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
324
|
+
let contents = {};
|
|
325
|
+
contents = smithyClient._json(data);
|
|
326
|
+
const response = {
|
|
327
|
+
$metadata: deserializeMetadata(output),
|
|
328
|
+
...contents,
|
|
329
|
+
};
|
|
330
|
+
return response;
|
|
331
|
+
};
|
|
332
|
+
const de_StartReportCreationCommand = async (output, context) => {
|
|
333
|
+
if (output.statusCode >= 300) {
|
|
334
|
+
return de_CommandError(output, context);
|
|
335
|
+
}
|
|
336
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
337
|
+
let contents = {};
|
|
338
|
+
contents = smithyClient._json(data);
|
|
339
|
+
const response = {
|
|
340
|
+
$metadata: deserializeMetadata(output),
|
|
341
|
+
...contents,
|
|
342
|
+
};
|
|
343
|
+
return response;
|
|
344
|
+
};
|
|
345
|
+
const de_TagResourcesCommand = async (output, context) => {
|
|
346
|
+
if (output.statusCode >= 300) {
|
|
347
|
+
return de_CommandError(output, context);
|
|
348
|
+
}
|
|
349
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
350
|
+
let contents = {};
|
|
351
|
+
contents = smithyClient._json(data);
|
|
352
|
+
const response = {
|
|
353
|
+
$metadata: deserializeMetadata(output),
|
|
354
|
+
...contents,
|
|
355
|
+
};
|
|
356
|
+
return response;
|
|
357
|
+
};
|
|
358
|
+
const de_UntagResourcesCommand = async (output, context) => {
|
|
359
|
+
if (output.statusCode >= 300) {
|
|
360
|
+
return de_CommandError(output, context);
|
|
361
|
+
}
|
|
362
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
363
|
+
let contents = {};
|
|
364
|
+
contents = smithyClient._json(data);
|
|
365
|
+
const response = {
|
|
366
|
+
$metadata: deserializeMetadata(output),
|
|
367
|
+
...contents,
|
|
368
|
+
};
|
|
369
|
+
return response;
|
|
370
|
+
};
|
|
371
|
+
const de_CommandError = async (output, context) => {
|
|
372
|
+
const parsedOutput = {
|
|
373
|
+
...output,
|
|
374
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
375
|
+
};
|
|
376
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
377
|
+
switch (errorCode) {
|
|
378
|
+
case "ConstraintViolationException":
|
|
379
|
+
case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException":
|
|
380
|
+
throw await de_ConstraintViolationExceptionRes(parsedOutput);
|
|
381
|
+
case "InternalServiceException":
|
|
382
|
+
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
383
|
+
throw await de_InternalServiceExceptionRes(parsedOutput);
|
|
384
|
+
case "InvalidParameterException":
|
|
385
|
+
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
386
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput);
|
|
387
|
+
case "ThrottledException":
|
|
388
|
+
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
389
|
+
throw await de_ThrottledExceptionRes(parsedOutput);
|
|
390
|
+
case "PaginationTokenExpiredException":
|
|
391
|
+
case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException":
|
|
392
|
+
throw await de_PaginationTokenExpiredExceptionRes(parsedOutput);
|
|
393
|
+
case "ConcurrentModificationException":
|
|
394
|
+
case "com.amazonaws.resourcegroupstaggingapi#ConcurrentModificationException":
|
|
395
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput);
|
|
396
|
+
default:
|
|
397
|
+
const parsedBody = parsedOutput.body;
|
|
398
|
+
return throwDefaultError({
|
|
399
|
+
output,
|
|
400
|
+
parsedBody,
|
|
401
|
+
errorCode,
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
};
|
|
405
|
+
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
406
|
+
const body = parsedOutput.body;
|
|
407
|
+
const deserialized = smithyClient._json(body);
|
|
408
|
+
const exception = new ConcurrentModificationException({
|
|
409
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
410
|
+
...deserialized,
|
|
237
411
|
});
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
name = "ConstraintViolationException";
|
|
247
|
-
$fault = "client";
|
|
248
|
-
Message;
|
|
249
|
-
/**
|
|
250
|
-
* @internal
|
|
251
|
-
*/
|
|
252
|
-
constructor(opts) {
|
|
253
|
-
super({
|
|
254
|
-
name: "ConstraintViolationException",
|
|
255
|
-
$fault: "client",
|
|
256
|
-
...opts
|
|
412
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
413
|
+
};
|
|
414
|
+
const de_ConstraintViolationExceptionRes = async (parsedOutput, context) => {
|
|
415
|
+
const body = parsedOutput.body;
|
|
416
|
+
const deserialized = smithyClient._json(body);
|
|
417
|
+
const exception = new ConstraintViolationException({
|
|
418
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
419
|
+
...deserialized,
|
|
257
420
|
});
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
name = "InternalServiceException";
|
|
267
|
-
$fault = "server";
|
|
268
|
-
Message;
|
|
269
|
-
/**
|
|
270
|
-
* @internal
|
|
271
|
-
*/
|
|
272
|
-
constructor(opts) {
|
|
273
|
-
super({
|
|
274
|
-
name: "InternalServiceException",
|
|
275
|
-
$fault: "server",
|
|
276
|
-
...opts
|
|
421
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
422
|
+
};
|
|
423
|
+
const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
|
|
424
|
+
const body = parsedOutput.body;
|
|
425
|
+
const deserialized = smithyClient._json(body);
|
|
426
|
+
const exception = new InternalServiceException({
|
|
427
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
428
|
+
...deserialized,
|
|
277
429
|
});
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
name = "InvalidParameterException";
|
|
287
|
-
$fault = "client";
|
|
288
|
-
Message;
|
|
289
|
-
/**
|
|
290
|
-
* @internal
|
|
291
|
-
*/
|
|
292
|
-
constructor(opts) {
|
|
293
|
-
super({
|
|
294
|
-
name: "InvalidParameterException",
|
|
295
|
-
$fault: "client",
|
|
296
|
-
...opts
|
|
430
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
431
|
+
};
|
|
432
|
+
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
433
|
+
const body = parsedOutput.body;
|
|
434
|
+
const deserialized = smithyClient._json(body);
|
|
435
|
+
const exception = new InvalidParameterException({
|
|
436
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
437
|
+
...deserialized,
|
|
297
438
|
});
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
name = "ThrottledException";
|
|
307
|
-
$fault = "client";
|
|
308
|
-
Message;
|
|
309
|
-
/**
|
|
310
|
-
* @internal
|
|
311
|
-
*/
|
|
312
|
-
constructor(opts) {
|
|
313
|
-
super({
|
|
314
|
-
name: "ThrottledException",
|
|
315
|
-
$fault: "client",
|
|
316
|
-
...opts
|
|
439
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
440
|
+
};
|
|
441
|
+
const de_PaginationTokenExpiredExceptionRes = async (parsedOutput, context) => {
|
|
442
|
+
const body = parsedOutput.body;
|
|
443
|
+
const deserialized = smithyClient._json(body);
|
|
444
|
+
const exception = new PaginationTokenExpiredException({
|
|
445
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
446
|
+
...deserialized,
|
|
317
447
|
});
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
var GroupByAttribute = {
|
|
327
|
-
REGION: "REGION",
|
|
328
|
-
RESOURCE_TYPE: "RESOURCE_TYPE",
|
|
329
|
-
TARGET_ID: "TARGET_ID"
|
|
330
|
-
};
|
|
331
|
-
var TargetIdType = {
|
|
332
|
-
ACCOUNT: "ACCOUNT",
|
|
333
|
-
OU: "OU",
|
|
334
|
-
ROOT: "ROOT"
|
|
335
|
-
};
|
|
336
|
-
var PaginationTokenExpiredException = class _PaginationTokenExpiredException extends ResourceGroupsTaggingAPIServiceException {
|
|
337
|
-
static {
|
|
338
|
-
__name(this, "PaginationTokenExpiredException");
|
|
339
|
-
}
|
|
340
|
-
name = "PaginationTokenExpiredException";
|
|
341
|
-
$fault = "client";
|
|
342
|
-
Message;
|
|
343
|
-
/**
|
|
344
|
-
* @internal
|
|
345
|
-
*/
|
|
346
|
-
constructor(opts) {
|
|
347
|
-
super({
|
|
348
|
-
name: "PaginationTokenExpiredException",
|
|
349
|
-
$fault: "client",
|
|
350
|
-
...opts
|
|
448
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
449
|
+
};
|
|
450
|
+
const de_ThrottledExceptionRes = async (parsedOutput, context) => {
|
|
451
|
+
const body = parsedOutput.body;
|
|
452
|
+
const deserialized = smithyClient._json(body);
|
|
453
|
+
const exception = new ThrottledException({
|
|
454
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
455
|
+
...deserialized,
|
|
351
456
|
});
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
457
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
458
|
+
};
|
|
459
|
+
const deserializeMetadata = (output) => ({
|
|
460
|
+
httpStatusCode: output.statusCode,
|
|
461
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
462
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
463
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
464
|
+
});
|
|
465
|
+
const throwDefaultError = smithyClient.withBaseException(ResourceGroupsTaggingAPIServiceException);
|
|
466
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
467
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
468
|
+
const contents = {
|
|
469
|
+
protocol,
|
|
470
|
+
hostname,
|
|
471
|
+
port,
|
|
472
|
+
method: "POST",
|
|
473
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
474
|
+
headers,
|
|
475
|
+
};
|
|
476
|
+
if (body !== undefined) {
|
|
477
|
+
contents.body = body;
|
|
478
|
+
}
|
|
479
|
+
return new protocolHttp.HttpRequest(contents);
|
|
355
480
|
};
|
|
356
|
-
|
|
357
|
-
// src/protocols/Aws_json1_1.ts
|
|
358
|
-
var se_DescribeReportCreationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
359
|
-
const headers = sharedHeaders("DescribeReportCreation");
|
|
360
|
-
let body;
|
|
361
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
362
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
363
|
-
}, "se_DescribeReportCreationCommand");
|
|
364
|
-
var se_GetComplianceSummaryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
365
|
-
const headers = sharedHeaders("GetComplianceSummary");
|
|
366
|
-
let body;
|
|
367
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
368
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
369
|
-
}, "se_GetComplianceSummaryCommand");
|
|
370
|
-
var se_GetResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
371
|
-
const headers = sharedHeaders("GetResources");
|
|
372
|
-
let body;
|
|
373
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
374
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
375
|
-
}, "se_GetResourcesCommand");
|
|
376
|
-
var se_GetTagKeysCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
377
|
-
const headers = sharedHeaders("GetTagKeys");
|
|
378
|
-
let body;
|
|
379
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
380
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
381
|
-
}, "se_GetTagKeysCommand");
|
|
382
|
-
var se_GetTagValuesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
383
|
-
const headers = sharedHeaders("GetTagValues");
|
|
384
|
-
let body;
|
|
385
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
386
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
387
|
-
}, "se_GetTagValuesCommand");
|
|
388
|
-
var se_StartReportCreationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
389
|
-
const headers = sharedHeaders("StartReportCreation");
|
|
390
|
-
let body;
|
|
391
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
392
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
393
|
-
}, "se_StartReportCreationCommand");
|
|
394
|
-
var se_TagResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
395
|
-
const headers = sharedHeaders("TagResources");
|
|
396
|
-
let body;
|
|
397
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
398
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
399
|
-
}, "se_TagResourcesCommand");
|
|
400
|
-
var se_UntagResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
401
|
-
const headers = sharedHeaders("UntagResources");
|
|
402
|
-
let body;
|
|
403
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
404
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
405
|
-
}, "se_UntagResourcesCommand");
|
|
406
|
-
var de_DescribeReportCreationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
407
|
-
if (output.statusCode >= 300) {
|
|
408
|
-
return de_CommandError(output, context);
|
|
409
|
-
}
|
|
410
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
411
|
-
let contents = {};
|
|
412
|
-
contents = (0, import_smithy_client._json)(data);
|
|
413
|
-
const response = {
|
|
414
|
-
$metadata: deserializeMetadata(output),
|
|
415
|
-
...contents
|
|
416
|
-
};
|
|
417
|
-
return response;
|
|
418
|
-
}, "de_DescribeReportCreationCommand");
|
|
419
|
-
var de_GetComplianceSummaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
420
|
-
if (output.statusCode >= 300) {
|
|
421
|
-
return de_CommandError(output, context);
|
|
422
|
-
}
|
|
423
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
424
|
-
let contents = {};
|
|
425
|
-
contents = (0, import_smithy_client._json)(data);
|
|
426
|
-
const response = {
|
|
427
|
-
$metadata: deserializeMetadata(output),
|
|
428
|
-
...contents
|
|
429
|
-
};
|
|
430
|
-
return response;
|
|
431
|
-
}, "de_GetComplianceSummaryCommand");
|
|
432
|
-
var de_GetResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
433
|
-
if (output.statusCode >= 300) {
|
|
434
|
-
return de_CommandError(output, context);
|
|
435
|
-
}
|
|
436
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
437
|
-
let contents = {};
|
|
438
|
-
contents = (0, import_smithy_client._json)(data);
|
|
439
|
-
const response = {
|
|
440
|
-
$metadata: deserializeMetadata(output),
|
|
441
|
-
...contents
|
|
442
|
-
};
|
|
443
|
-
return response;
|
|
444
|
-
}, "de_GetResourcesCommand");
|
|
445
|
-
var de_GetTagKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
446
|
-
if (output.statusCode >= 300) {
|
|
447
|
-
return de_CommandError(output, context);
|
|
448
|
-
}
|
|
449
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
450
|
-
let contents = {};
|
|
451
|
-
contents = (0, import_smithy_client._json)(data);
|
|
452
|
-
const response = {
|
|
453
|
-
$metadata: deserializeMetadata(output),
|
|
454
|
-
...contents
|
|
455
|
-
};
|
|
456
|
-
return response;
|
|
457
|
-
}, "de_GetTagKeysCommand");
|
|
458
|
-
var de_GetTagValuesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
459
|
-
if (output.statusCode >= 300) {
|
|
460
|
-
return de_CommandError(output, context);
|
|
461
|
-
}
|
|
462
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
463
|
-
let contents = {};
|
|
464
|
-
contents = (0, import_smithy_client._json)(data);
|
|
465
|
-
const response = {
|
|
466
|
-
$metadata: deserializeMetadata(output),
|
|
467
|
-
...contents
|
|
468
|
-
};
|
|
469
|
-
return response;
|
|
470
|
-
}, "de_GetTagValuesCommand");
|
|
471
|
-
var de_StartReportCreationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
472
|
-
if (output.statusCode >= 300) {
|
|
473
|
-
return de_CommandError(output, context);
|
|
474
|
-
}
|
|
475
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
476
|
-
let contents = {};
|
|
477
|
-
contents = (0, import_smithy_client._json)(data);
|
|
478
|
-
const response = {
|
|
479
|
-
$metadata: deserializeMetadata(output),
|
|
480
|
-
...contents
|
|
481
|
-
};
|
|
482
|
-
return response;
|
|
483
|
-
}, "de_StartReportCreationCommand");
|
|
484
|
-
var de_TagResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
485
|
-
if (output.statusCode >= 300) {
|
|
486
|
-
return de_CommandError(output, context);
|
|
487
|
-
}
|
|
488
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
489
|
-
let contents = {};
|
|
490
|
-
contents = (0, import_smithy_client._json)(data);
|
|
491
|
-
const response = {
|
|
492
|
-
$metadata: deserializeMetadata(output),
|
|
493
|
-
...contents
|
|
494
|
-
};
|
|
495
|
-
return response;
|
|
496
|
-
}, "de_TagResourcesCommand");
|
|
497
|
-
var de_UntagResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
498
|
-
if (output.statusCode >= 300) {
|
|
499
|
-
return de_CommandError(output, context);
|
|
500
|
-
}
|
|
501
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
502
|
-
let contents = {};
|
|
503
|
-
contents = (0, import_smithy_client._json)(data);
|
|
504
|
-
const response = {
|
|
505
|
-
$metadata: deserializeMetadata(output),
|
|
506
|
-
...contents
|
|
507
|
-
};
|
|
508
|
-
return response;
|
|
509
|
-
}, "de_UntagResourcesCommand");
|
|
510
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
511
|
-
const parsedOutput = {
|
|
512
|
-
...output,
|
|
513
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
514
|
-
};
|
|
515
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
516
|
-
switch (errorCode) {
|
|
517
|
-
case "ConstraintViolationException":
|
|
518
|
-
case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException":
|
|
519
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
520
|
-
case "InternalServiceException":
|
|
521
|
-
case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
|
|
522
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
523
|
-
case "InvalidParameterException":
|
|
524
|
-
case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
|
|
525
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
526
|
-
case "ThrottledException":
|
|
527
|
-
case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
|
|
528
|
-
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
529
|
-
case "PaginationTokenExpiredException":
|
|
530
|
-
case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException":
|
|
531
|
-
throw await de_PaginationTokenExpiredExceptionRes(parsedOutput, context);
|
|
532
|
-
case "ConcurrentModificationException":
|
|
533
|
-
case "com.amazonaws.resourcegroupstaggingapi#ConcurrentModificationException":
|
|
534
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
535
|
-
default:
|
|
536
|
-
const parsedBody = parsedOutput.body;
|
|
537
|
-
return throwDefaultError({
|
|
538
|
-
output,
|
|
539
|
-
parsedBody,
|
|
540
|
-
errorCode
|
|
541
|
-
});
|
|
542
|
-
}
|
|
543
|
-
}, "de_CommandError");
|
|
544
|
-
var de_ConcurrentModificationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
545
|
-
const body = parsedOutput.body;
|
|
546
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
547
|
-
const exception = new ConcurrentModificationException({
|
|
548
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
549
|
-
...deserialized
|
|
550
|
-
});
|
|
551
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
552
|
-
}, "de_ConcurrentModificationExceptionRes");
|
|
553
|
-
var de_ConstraintViolationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
554
|
-
const body = parsedOutput.body;
|
|
555
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
556
|
-
const exception = new ConstraintViolationException({
|
|
557
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
558
|
-
...deserialized
|
|
559
|
-
});
|
|
560
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
561
|
-
}, "de_ConstraintViolationExceptionRes");
|
|
562
|
-
var de_InternalServiceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
563
|
-
const body = parsedOutput.body;
|
|
564
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
565
|
-
const exception = new InternalServiceException({
|
|
566
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
567
|
-
...deserialized
|
|
568
|
-
});
|
|
569
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
570
|
-
}, "de_InternalServiceExceptionRes");
|
|
571
|
-
var de_InvalidParameterExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
572
|
-
const body = parsedOutput.body;
|
|
573
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
574
|
-
const exception = new InvalidParameterException({
|
|
575
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
576
|
-
...deserialized
|
|
577
|
-
});
|
|
578
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
579
|
-
}, "de_InvalidParameterExceptionRes");
|
|
580
|
-
var de_PaginationTokenExpiredExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
581
|
-
const body = parsedOutput.body;
|
|
582
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
583
|
-
const exception = new PaginationTokenExpiredException({
|
|
584
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
585
|
-
...deserialized
|
|
586
|
-
});
|
|
587
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
588
|
-
}, "de_PaginationTokenExpiredExceptionRes");
|
|
589
|
-
var de_ThrottledExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
590
|
-
const body = parsedOutput.body;
|
|
591
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
592
|
-
const exception = new ThrottledException({
|
|
593
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
594
|
-
...deserialized
|
|
595
|
-
});
|
|
596
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
597
|
-
}, "de_ThrottledExceptionRes");
|
|
598
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
599
|
-
httpStatusCode: output.statusCode,
|
|
600
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
601
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
602
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
603
|
-
}), "deserializeMetadata");
|
|
604
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(ResourceGroupsTaggingAPIServiceException);
|
|
605
|
-
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
606
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
607
|
-
const contents = {
|
|
608
|
-
protocol,
|
|
609
|
-
hostname,
|
|
610
|
-
port,
|
|
611
|
-
method: "POST",
|
|
612
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
613
|
-
headers
|
|
614
|
-
};
|
|
615
|
-
if (resolvedHostname !== void 0) {
|
|
616
|
-
contents.hostname = resolvedHostname;
|
|
617
|
-
}
|
|
618
|
-
if (body !== void 0) {
|
|
619
|
-
contents.body = body;
|
|
620
|
-
}
|
|
621
|
-
return new import_protocol_http.HttpRequest(contents);
|
|
622
|
-
}, "buildHttpRpcRequest");
|
|
623
481
|
function sharedHeaders(operation) {
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
482
|
+
return {
|
|
483
|
+
"content-type": "application/x-amz-json-1.1",
|
|
484
|
+
"x-amz-target": `ResourceGroupsTaggingAPI_20170126.${operation}`,
|
|
485
|
+
};
|
|
628
486
|
}
|
|
629
|
-
__name(sharedHeaders, "sharedHeaders");
|
|
630
|
-
|
|
631
|
-
// src/commands/DescribeReportCreationCommand.ts
|
|
632
|
-
var DescribeReportCreationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
633
|
-
return [
|
|
634
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
635
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
636
|
-
];
|
|
637
|
-
}).s("ResourceGroupsTaggingAPI_20170126", "DescribeReportCreation", {}).n("ResourceGroupsTaggingAPIClient", "DescribeReportCreationCommand").f(void 0, void 0).ser(se_DescribeReportCreationCommand).de(de_DescribeReportCreationCommand).build() {
|
|
638
|
-
static {
|
|
639
|
-
__name(this, "DescribeReportCreationCommand");
|
|
640
|
-
}
|
|
641
|
-
};
|
|
642
|
-
|
|
643
|
-
// src/commands/GetComplianceSummaryCommand.ts
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
var GetComplianceSummaryCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
648
|
-
return [
|
|
649
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
650
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
651
|
-
];
|
|
652
|
-
}).s("ResourceGroupsTaggingAPI_20170126", "GetComplianceSummary", {}).n("ResourceGroupsTaggingAPIClient", "GetComplianceSummaryCommand").f(void 0, void 0).ser(se_GetComplianceSummaryCommand).de(de_GetComplianceSummaryCommand).build() {
|
|
653
|
-
static {
|
|
654
|
-
__name(this, "GetComplianceSummaryCommand");
|
|
655
|
-
}
|
|
656
|
-
};
|
|
657
|
-
|
|
658
|
-
// src/commands/GetResourcesCommand.ts
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
var GetResourcesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
663
|
-
return [
|
|
664
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
665
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
666
|
-
];
|
|
667
|
-
}).s("ResourceGroupsTaggingAPI_20170126", "GetResources", {}).n("ResourceGroupsTaggingAPIClient", "GetResourcesCommand").f(void 0, void 0).ser(se_GetResourcesCommand).de(de_GetResourcesCommand).build() {
|
|
668
|
-
static {
|
|
669
|
-
__name(this, "GetResourcesCommand");
|
|
670
|
-
}
|
|
671
|
-
};
|
|
672
|
-
|
|
673
|
-
// src/commands/GetTagKeysCommand.ts
|
|
674
|
-
|
|
675
|
-
|
|
676
487
|
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
(
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
return [
|
|
694
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
695
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
696
|
-
];
|
|
697
|
-
}).s("ResourceGroupsTaggingAPI_20170126", "GetTagValues", {}).n("ResourceGroupsTaggingAPIClient", "GetTagValuesCommand").f(void 0, void 0).ser(se_GetTagValuesCommand).de(de_GetTagValuesCommand).build() {
|
|
698
|
-
static {
|
|
699
|
-
__name(this, "GetTagValuesCommand");
|
|
700
|
-
}
|
|
701
|
-
};
|
|
702
|
-
|
|
703
|
-
// src/commands/StartReportCreationCommand.ts
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
var StartReportCreationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
708
|
-
return [
|
|
709
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
710
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
711
|
-
];
|
|
712
|
-
}).s("ResourceGroupsTaggingAPI_20170126", "StartReportCreation", {}).n("ResourceGroupsTaggingAPIClient", "StartReportCreationCommand").f(void 0, void 0).ser(se_StartReportCreationCommand).de(de_StartReportCreationCommand).build() {
|
|
713
|
-
static {
|
|
714
|
-
__name(this, "StartReportCreationCommand");
|
|
715
|
-
}
|
|
716
|
-
};
|
|
488
|
+
class DescribeReportCreationCommand extends smithyClient.Command
|
|
489
|
+
.classBuilder()
|
|
490
|
+
.ep(commonParams)
|
|
491
|
+
.m(function (Command, cs, config, o) {
|
|
492
|
+
return [
|
|
493
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
494
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
495
|
+
];
|
|
496
|
+
})
|
|
497
|
+
.s("ResourceGroupsTaggingAPI_20170126", "DescribeReportCreation", {})
|
|
498
|
+
.n("ResourceGroupsTaggingAPIClient", "DescribeReportCreationCommand")
|
|
499
|
+
.f(void 0, void 0)
|
|
500
|
+
.ser(se_DescribeReportCreationCommand)
|
|
501
|
+
.de(de_DescribeReportCreationCommand)
|
|
502
|
+
.build() {
|
|
503
|
+
}
|
|
717
504
|
|
|
718
|
-
|
|
505
|
+
class GetComplianceSummaryCommand extends smithyClient.Command
|
|
506
|
+
.classBuilder()
|
|
507
|
+
.ep(commonParams)
|
|
508
|
+
.m(function (Command, cs, config, o) {
|
|
509
|
+
return [
|
|
510
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
511
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
512
|
+
];
|
|
513
|
+
})
|
|
514
|
+
.s("ResourceGroupsTaggingAPI_20170126", "GetComplianceSummary", {})
|
|
515
|
+
.n("ResourceGroupsTaggingAPIClient", "GetComplianceSummaryCommand")
|
|
516
|
+
.f(void 0, void 0)
|
|
517
|
+
.ser(se_GetComplianceSummaryCommand)
|
|
518
|
+
.de(de_GetComplianceSummaryCommand)
|
|
519
|
+
.build() {
|
|
520
|
+
}
|
|
719
521
|
|
|
522
|
+
class GetResourcesCommand extends smithyClient.Command
|
|
523
|
+
.classBuilder()
|
|
524
|
+
.ep(commonParams)
|
|
525
|
+
.m(function (Command, cs, config, o) {
|
|
526
|
+
return [
|
|
527
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
528
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
529
|
+
];
|
|
530
|
+
})
|
|
531
|
+
.s("ResourceGroupsTaggingAPI_20170126", "GetResources", {})
|
|
532
|
+
.n("ResourceGroupsTaggingAPIClient", "GetResourcesCommand")
|
|
533
|
+
.f(void 0, void 0)
|
|
534
|
+
.ser(se_GetResourcesCommand)
|
|
535
|
+
.de(de_GetResourcesCommand)
|
|
536
|
+
.build() {
|
|
537
|
+
}
|
|
720
538
|
|
|
539
|
+
class GetTagKeysCommand extends smithyClient.Command
|
|
540
|
+
.classBuilder()
|
|
541
|
+
.ep(commonParams)
|
|
542
|
+
.m(function (Command, cs, config, o) {
|
|
543
|
+
return [
|
|
544
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
545
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
546
|
+
];
|
|
547
|
+
})
|
|
548
|
+
.s("ResourceGroupsTaggingAPI_20170126", "GetTagKeys", {})
|
|
549
|
+
.n("ResourceGroupsTaggingAPIClient", "GetTagKeysCommand")
|
|
550
|
+
.f(void 0, void 0)
|
|
551
|
+
.ser(se_GetTagKeysCommand)
|
|
552
|
+
.de(de_GetTagKeysCommand)
|
|
553
|
+
.build() {
|
|
554
|
+
}
|
|
721
555
|
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
(
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
}
|
|
556
|
+
class GetTagValuesCommand extends smithyClient.Command
|
|
557
|
+
.classBuilder()
|
|
558
|
+
.ep(commonParams)
|
|
559
|
+
.m(function (Command, cs, config, o) {
|
|
560
|
+
return [
|
|
561
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
562
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
563
|
+
];
|
|
564
|
+
})
|
|
565
|
+
.s("ResourceGroupsTaggingAPI_20170126", "GetTagValues", {})
|
|
566
|
+
.n("ResourceGroupsTaggingAPIClient", "GetTagValuesCommand")
|
|
567
|
+
.f(void 0, void 0)
|
|
568
|
+
.ser(se_GetTagValuesCommand)
|
|
569
|
+
.de(de_GetTagValuesCommand)
|
|
570
|
+
.build() {
|
|
571
|
+
}
|
|
732
572
|
|
|
733
|
-
|
|
573
|
+
class StartReportCreationCommand extends smithyClient.Command
|
|
574
|
+
.classBuilder()
|
|
575
|
+
.ep(commonParams)
|
|
576
|
+
.m(function (Command, cs, config, o) {
|
|
577
|
+
return [
|
|
578
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
579
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
580
|
+
];
|
|
581
|
+
})
|
|
582
|
+
.s("ResourceGroupsTaggingAPI_20170126", "StartReportCreation", {})
|
|
583
|
+
.n("ResourceGroupsTaggingAPIClient", "StartReportCreationCommand")
|
|
584
|
+
.f(void 0, void 0)
|
|
585
|
+
.ser(se_StartReportCreationCommand)
|
|
586
|
+
.de(de_StartReportCreationCommand)
|
|
587
|
+
.build() {
|
|
588
|
+
}
|
|
734
589
|
|
|
590
|
+
class TagResourcesCommand extends smithyClient.Command
|
|
591
|
+
.classBuilder()
|
|
592
|
+
.ep(commonParams)
|
|
593
|
+
.m(function (Command, cs, config, o) {
|
|
594
|
+
return [
|
|
595
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
596
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
597
|
+
];
|
|
598
|
+
})
|
|
599
|
+
.s("ResourceGroupsTaggingAPI_20170126", "TagResources", {})
|
|
600
|
+
.n("ResourceGroupsTaggingAPIClient", "TagResourcesCommand")
|
|
601
|
+
.f(void 0, void 0)
|
|
602
|
+
.ser(se_TagResourcesCommand)
|
|
603
|
+
.de(de_TagResourcesCommand)
|
|
604
|
+
.build() {
|
|
605
|
+
}
|
|
735
606
|
|
|
607
|
+
class UntagResourcesCommand extends smithyClient.Command
|
|
608
|
+
.classBuilder()
|
|
609
|
+
.ep(commonParams)
|
|
610
|
+
.m(function (Command, cs, config, o) {
|
|
611
|
+
return [
|
|
612
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
613
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
614
|
+
];
|
|
615
|
+
})
|
|
616
|
+
.s("ResourceGroupsTaggingAPI_20170126", "UntagResources", {})
|
|
617
|
+
.n("ResourceGroupsTaggingAPIClient", "UntagResourcesCommand")
|
|
618
|
+
.f(void 0, void 0)
|
|
619
|
+
.ser(se_UntagResourcesCommand)
|
|
620
|
+
.de(de_UntagResourcesCommand)
|
|
621
|
+
.build() {
|
|
622
|
+
}
|
|
736
623
|
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
624
|
+
const commands = {
|
|
625
|
+
DescribeReportCreationCommand,
|
|
626
|
+
GetComplianceSummaryCommand,
|
|
627
|
+
GetResourcesCommand,
|
|
628
|
+
GetTagKeysCommand,
|
|
629
|
+
GetTagValuesCommand,
|
|
630
|
+
StartReportCreationCommand,
|
|
631
|
+
TagResourcesCommand,
|
|
632
|
+
UntagResourcesCommand,
|
|
746
633
|
};
|
|
634
|
+
class ResourceGroupsTaggingAPI extends ResourceGroupsTaggingAPIClient {
|
|
635
|
+
}
|
|
636
|
+
smithyClient.createAggregatedClient(commands, ResourceGroupsTaggingAPI);
|
|
747
637
|
|
|
748
|
-
|
|
749
|
-
var commands = {
|
|
750
|
-
DescribeReportCreationCommand,
|
|
751
|
-
GetComplianceSummaryCommand,
|
|
752
|
-
GetResourcesCommand,
|
|
753
|
-
GetTagKeysCommand,
|
|
754
|
-
GetTagValuesCommand,
|
|
755
|
-
StartReportCreationCommand,
|
|
756
|
-
TagResourcesCommand,
|
|
757
|
-
UntagResourcesCommand
|
|
758
|
-
};
|
|
759
|
-
var ResourceGroupsTaggingAPI = class extends ResourceGroupsTaggingAPIClient {
|
|
760
|
-
static {
|
|
761
|
-
__name(this, "ResourceGroupsTaggingAPI");
|
|
762
|
-
}
|
|
763
|
-
};
|
|
764
|
-
(0, import_smithy_client.createAggregatedClient)(commands, ResourceGroupsTaggingAPI);
|
|
765
|
-
|
|
766
|
-
// src/pagination/GetComplianceSummaryPaginator.ts
|
|
767
|
-
|
|
768
|
-
var paginateGetComplianceSummary = (0, import_core.createPaginator)(ResourceGroupsTaggingAPIClient, GetComplianceSummaryCommand, "PaginationToken", "PaginationToken", "MaxResults");
|
|
769
|
-
|
|
770
|
-
// src/pagination/GetResourcesPaginator.ts
|
|
771
|
-
|
|
772
|
-
var paginateGetResources = (0, import_core.createPaginator)(ResourceGroupsTaggingAPIClient, GetResourcesCommand, "PaginationToken", "PaginationToken", "ResourcesPerPage");
|
|
773
|
-
|
|
774
|
-
// src/pagination/GetTagKeysPaginator.ts
|
|
638
|
+
const paginateGetComplianceSummary = core.createPaginator(ResourceGroupsTaggingAPIClient, GetComplianceSummaryCommand, "PaginationToken", "PaginationToken", "MaxResults");
|
|
775
639
|
|
|
776
|
-
|
|
640
|
+
const paginateGetResources = core.createPaginator(ResourceGroupsTaggingAPIClient, GetResourcesCommand, "PaginationToken", "PaginationToken", "ResourcesPerPage");
|
|
777
641
|
|
|
778
|
-
|
|
642
|
+
const paginateGetTagKeys = core.createPaginator(ResourceGroupsTaggingAPIClient, GetTagKeysCommand, "PaginationToken", "PaginationToken", "");
|
|
779
643
|
|
|
780
|
-
|
|
781
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
644
|
+
const paginateGetTagValues = core.createPaginator(ResourceGroupsTaggingAPIClient, GetTagValuesCommand, "PaginationToken", "PaginationToken", "");
|
|
782
645
|
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
ResourceGroupsTaggingAPIClient,
|
|
787
|
-
ResourceGroupsTaggingAPI,
|
|
788
|
-
$Command,
|
|
789
|
-
DescribeReportCreationCommand,
|
|
790
|
-
GetComplianceSummaryCommand,
|
|
791
|
-
GetResourcesCommand,
|
|
792
|
-
GetTagKeysCommand,
|
|
793
|
-
GetTagValuesCommand,
|
|
794
|
-
StartReportCreationCommand,
|
|
795
|
-
TagResourcesCommand,
|
|
796
|
-
UntagResourcesCommand,
|
|
797
|
-
paginateGetComplianceSummary,
|
|
798
|
-
paginateGetResources,
|
|
799
|
-
paginateGetTagKeys,
|
|
800
|
-
paginateGetTagValues,
|
|
801
|
-
ConcurrentModificationException,
|
|
802
|
-
ConstraintViolationException,
|
|
803
|
-
InternalServiceException,
|
|
804
|
-
InvalidParameterException,
|
|
805
|
-
ThrottledException,
|
|
806
|
-
ErrorCode,
|
|
807
|
-
GroupByAttribute,
|
|
808
|
-
TargetIdType,
|
|
809
|
-
PaginationTokenExpiredException
|
|
646
|
+
Object.defineProperty(exports, "$Command", {
|
|
647
|
+
enumerable: true,
|
|
648
|
+
get: function () { return smithyClient.Command; }
|
|
810
649
|
});
|
|
811
|
-
|
|
650
|
+
Object.defineProperty(exports, "__Client", {
|
|
651
|
+
enumerable: true,
|
|
652
|
+
get: function () { return smithyClient.Client; }
|
|
653
|
+
});
|
|
654
|
+
exports.ConcurrentModificationException = ConcurrentModificationException;
|
|
655
|
+
exports.ConstraintViolationException = ConstraintViolationException;
|
|
656
|
+
exports.DescribeReportCreationCommand = DescribeReportCreationCommand;
|
|
657
|
+
exports.ErrorCode = ErrorCode;
|
|
658
|
+
exports.GetComplianceSummaryCommand = GetComplianceSummaryCommand;
|
|
659
|
+
exports.GetResourcesCommand = GetResourcesCommand;
|
|
660
|
+
exports.GetTagKeysCommand = GetTagKeysCommand;
|
|
661
|
+
exports.GetTagValuesCommand = GetTagValuesCommand;
|
|
662
|
+
exports.GroupByAttribute = GroupByAttribute;
|
|
663
|
+
exports.InternalServiceException = InternalServiceException;
|
|
664
|
+
exports.InvalidParameterException = InvalidParameterException;
|
|
665
|
+
exports.PaginationTokenExpiredException = PaginationTokenExpiredException;
|
|
666
|
+
exports.ResourceGroupsTaggingAPI = ResourceGroupsTaggingAPI;
|
|
667
|
+
exports.ResourceGroupsTaggingAPIClient = ResourceGroupsTaggingAPIClient;
|
|
668
|
+
exports.ResourceGroupsTaggingAPIServiceException = ResourceGroupsTaggingAPIServiceException;
|
|
669
|
+
exports.StartReportCreationCommand = StartReportCreationCommand;
|
|
670
|
+
exports.TagResourcesCommand = TagResourcesCommand;
|
|
671
|
+
exports.TargetIdType = TargetIdType;
|
|
672
|
+
exports.ThrottledException = ThrottledException;
|
|
673
|
+
exports.UntagResourcesCommand = UntagResourcesCommand;
|
|
674
|
+
exports.paginateGetComplianceSummary = paginateGetComplianceSummary;
|
|
675
|
+
exports.paginateGetResources = paginateGetResources;
|
|
676
|
+
exports.paginateGetTagKeys = paginateGetTagKeys;
|
|
677
|
+
exports.paginateGetTagValues = paginateGetTagValues;
|