@aws-sdk/client-resource-groups-tagging-api 3.490.0 → 3.496.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 CHANGED
@@ -1,12 +1,986 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ResourceGroupsTaggingAPIServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./ResourceGroupsTaggingAPIClient"), exports);
6
- tslib_1.__exportStar(require("./ResourceGroupsTaggingAPI"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- require("@aws-sdk/util-endpoints");
11
- var ResourceGroupsTaggingAPIServiceException_1 = require("./models/ResourceGroupsTaggingAPIServiceException");
12
- Object.defineProperty(exports, "ResourceGroupsTaggingAPIServiceException", { enumerable: true, get: function () { return ResourceGroupsTaggingAPIServiceException_1.ResourceGroupsTaggingAPIServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ ConcurrentModificationException: () => ConcurrentModificationException,
25
+ ConstraintViolationException: () => ConstraintViolationException,
26
+ DescribeReportCreationCommand: () => DescribeReportCreationCommand,
27
+ ErrorCode: () => ErrorCode,
28
+ GetComplianceSummaryCommand: () => GetComplianceSummaryCommand,
29
+ GetResourcesCommand: () => GetResourcesCommand,
30
+ GetTagKeysCommand: () => GetTagKeysCommand,
31
+ GetTagValuesCommand: () => GetTagValuesCommand,
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(src_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_signing = require("@aws-sdk/middleware-signing");
57
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
58
+ var import_config_resolver = require("@smithy/config-resolver");
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
+
64
+ // src/endpoint/EndpointParameters.ts
65
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
66
+ return {
67
+ ...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" }
78
+ };
79
+
80
+ // src/ResourceGroupsTaggingAPIClient.ts
81
+ var import_runtimeConfig = require("././runtimeConfig");
82
+
83
+ // src/runtimeExtensions.ts
84
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
85
+ var import_protocol_http = require("@smithy/protocol-http");
86
+ var import_smithy_client = require("@smithy/smithy-client");
87
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
88
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
89
+ const extensionConfiguration = {
90
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
91
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
92
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
93
+ };
94
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
95
+ return {
96
+ ...runtimeConfig,
97
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
98
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
99
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
100
+ };
101
+ }, "resolveRuntimeExtensions");
102
+
103
+ // src/ResourceGroupsTaggingAPIClient.ts
104
+ var _ResourceGroupsTaggingAPIClient = class _ResourceGroupsTaggingAPIClient extends import_smithy_client.Client {
105
+ constructor(...[configuration]) {
106
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
107
+ const _config_1 = resolveClientEndpointParameters(_config_0);
108
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
109
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
110
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
111
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
112
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
113
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
114
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
115
+ super(_config_8);
116
+ this.config = _config_8;
117
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
118
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
119
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
120
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
121
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
122
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
123
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
124
+ }
125
+ /**
126
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
127
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
128
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
129
+ */
130
+ destroy() {
131
+ super.destroy();
132
+ }
133
+ };
134
+ __name(_ResourceGroupsTaggingAPIClient, "ResourceGroupsTaggingAPIClient");
135
+ var ResourceGroupsTaggingAPIClient = _ResourceGroupsTaggingAPIClient;
136
+
137
+ // src/ResourceGroupsTaggingAPI.ts
138
+
139
+
140
+ // src/commands/DescribeReportCreationCommand.ts
141
+
142
+ var import_middleware_serde = require("@smithy/middleware-serde");
143
+
144
+ var import_types = require("@smithy/types");
145
+
146
+ // src/protocols/Aws_json1_1.ts
147
+
148
+
149
+
150
+ // src/models/ResourceGroupsTaggingAPIServiceException.ts
151
+
152
+ var _ResourceGroupsTaggingAPIServiceException = class _ResourceGroupsTaggingAPIServiceException extends import_smithy_client.ServiceException {
153
+ /**
154
+ * @internal
155
+ */
156
+ constructor(options) {
157
+ super(options);
158
+ Object.setPrototypeOf(this, _ResourceGroupsTaggingAPIServiceException.prototype);
159
+ }
160
+ };
161
+ __name(_ResourceGroupsTaggingAPIServiceException, "ResourceGroupsTaggingAPIServiceException");
162
+ var ResourceGroupsTaggingAPIServiceException = _ResourceGroupsTaggingAPIServiceException;
163
+
164
+ // src/models/models_0.ts
165
+ var _ConcurrentModificationException = class _ConcurrentModificationException extends ResourceGroupsTaggingAPIServiceException {
166
+ /**
167
+ * @internal
168
+ */
169
+ constructor(opts) {
170
+ super({
171
+ name: "ConcurrentModificationException",
172
+ $fault: "client",
173
+ ...opts
174
+ });
175
+ this.name = "ConcurrentModificationException";
176
+ this.$fault = "client";
177
+ Object.setPrototypeOf(this, _ConcurrentModificationException.prototype);
178
+ this.Message = opts.Message;
179
+ }
180
+ };
181
+ __name(_ConcurrentModificationException, "ConcurrentModificationException");
182
+ var ConcurrentModificationException = _ConcurrentModificationException;
183
+ var _ConstraintViolationException = class _ConstraintViolationException extends ResourceGroupsTaggingAPIServiceException {
184
+ /**
185
+ * @internal
186
+ */
187
+ constructor(opts) {
188
+ super({
189
+ name: "ConstraintViolationException",
190
+ $fault: "client",
191
+ ...opts
192
+ });
193
+ this.name = "ConstraintViolationException";
194
+ this.$fault = "client";
195
+ Object.setPrototypeOf(this, _ConstraintViolationException.prototype);
196
+ this.Message = opts.Message;
197
+ }
198
+ };
199
+ __name(_ConstraintViolationException, "ConstraintViolationException");
200
+ var ConstraintViolationException = _ConstraintViolationException;
201
+ var _InternalServiceException = class _InternalServiceException extends ResourceGroupsTaggingAPIServiceException {
202
+ /**
203
+ * @internal
204
+ */
205
+ constructor(opts) {
206
+ super({
207
+ name: "InternalServiceException",
208
+ $fault: "server",
209
+ ...opts
210
+ });
211
+ this.name = "InternalServiceException";
212
+ this.$fault = "server";
213
+ Object.setPrototypeOf(this, _InternalServiceException.prototype);
214
+ this.Message = opts.Message;
215
+ }
216
+ };
217
+ __name(_InternalServiceException, "InternalServiceException");
218
+ var InternalServiceException = _InternalServiceException;
219
+ var _InvalidParameterException = class _InvalidParameterException extends ResourceGroupsTaggingAPIServiceException {
220
+ /**
221
+ * @internal
222
+ */
223
+ constructor(opts) {
224
+ super({
225
+ name: "InvalidParameterException",
226
+ $fault: "client",
227
+ ...opts
228
+ });
229
+ this.name = "InvalidParameterException";
230
+ this.$fault = "client";
231
+ Object.setPrototypeOf(this, _InvalidParameterException.prototype);
232
+ this.Message = opts.Message;
233
+ }
234
+ };
235
+ __name(_InvalidParameterException, "InvalidParameterException");
236
+ var InvalidParameterException = _InvalidParameterException;
237
+ var _ThrottledException = class _ThrottledException extends ResourceGroupsTaggingAPIServiceException {
238
+ /**
239
+ * @internal
240
+ */
241
+ constructor(opts) {
242
+ super({
243
+ name: "ThrottledException",
244
+ $fault: "client",
245
+ ...opts
246
+ });
247
+ this.name = "ThrottledException";
248
+ this.$fault = "client";
249
+ Object.setPrototypeOf(this, _ThrottledException.prototype);
250
+ this.Message = opts.Message;
251
+ }
252
+ };
253
+ __name(_ThrottledException, "ThrottledException");
254
+ var ThrottledException = _ThrottledException;
255
+ var ErrorCode = {
256
+ INTERNAL_SERVICE_EXCEPTION: "InternalServiceException",
257
+ INVALID_PARAMETER_EXCEPTION: "InvalidParameterException"
258
+ };
259
+ var GroupByAttribute = {
260
+ REGION: "REGION",
261
+ RESOURCE_TYPE: "RESOURCE_TYPE",
262
+ TARGET_ID: "TARGET_ID"
263
+ };
264
+ var TargetIdType = {
265
+ ACCOUNT: "ACCOUNT",
266
+ OU: "OU",
267
+ ROOT: "ROOT"
268
+ };
269
+ var _PaginationTokenExpiredException = class _PaginationTokenExpiredException extends ResourceGroupsTaggingAPIServiceException {
270
+ /**
271
+ * @internal
272
+ */
273
+ constructor(opts) {
274
+ super({
275
+ name: "PaginationTokenExpiredException",
276
+ $fault: "client",
277
+ ...opts
278
+ });
279
+ this.name = "PaginationTokenExpiredException";
280
+ this.$fault = "client";
281
+ Object.setPrototypeOf(this, _PaginationTokenExpiredException.prototype);
282
+ this.Message = opts.Message;
283
+ }
284
+ };
285
+ __name(_PaginationTokenExpiredException, "PaginationTokenExpiredException");
286
+ var PaginationTokenExpiredException = _PaginationTokenExpiredException;
287
+
288
+ // src/protocols/Aws_json1_1.ts
289
+ var se_DescribeReportCreationCommand = /* @__PURE__ */ __name(async (input, context) => {
290
+ const headers = sharedHeaders("DescribeReportCreation");
291
+ let body;
292
+ body = JSON.stringify((0, import_smithy_client._json)(input));
293
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
294
+ }, "se_DescribeReportCreationCommand");
295
+ var se_GetComplianceSummaryCommand = /* @__PURE__ */ __name(async (input, context) => {
296
+ const headers = sharedHeaders("GetComplianceSummary");
297
+ let body;
298
+ body = JSON.stringify((0, import_smithy_client._json)(input));
299
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
300
+ }, "se_GetComplianceSummaryCommand");
301
+ var se_GetResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
302
+ const headers = sharedHeaders("GetResources");
303
+ let body;
304
+ body = JSON.stringify((0, import_smithy_client._json)(input));
305
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
306
+ }, "se_GetResourcesCommand");
307
+ var se_GetTagKeysCommand = /* @__PURE__ */ __name(async (input, context) => {
308
+ const headers = sharedHeaders("GetTagKeys");
309
+ let body;
310
+ body = JSON.stringify((0, import_smithy_client._json)(input));
311
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
312
+ }, "se_GetTagKeysCommand");
313
+ var se_GetTagValuesCommand = /* @__PURE__ */ __name(async (input, context) => {
314
+ const headers = sharedHeaders("GetTagValues");
315
+ let body;
316
+ body = JSON.stringify((0, import_smithy_client._json)(input));
317
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
318
+ }, "se_GetTagValuesCommand");
319
+ var se_StartReportCreationCommand = /* @__PURE__ */ __name(async (input, context) => {
320
+ const headers = sharedHeaders("StartReportCreation");
321
+ let body;
322
+ body = JSON.stringify((0, import_smithy_client._json)(input));
323
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
324
+ }, "se_StartReportCreationCommand");
325
+ var se_TagResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
326
+ const headers = sharedHeaders("TagResources");
327
+ let body;
328
+ body = JSON.stringify((0, import_smithy_client._json)(input));
329
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
330
+ }, "se_TagResourcesCommand");
331
+ var se_UntagResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
332
+ const headers = sharedHeaders("UntagResources");
333
+ let body;
334
+ body = JSON.stringify((0, import_smithy_client._json)(input));
335
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
336
+ }, "se_UntagResourcesCommand");
337
+ var de_DescribeReportCreationCommand = /* @__PURE__ */ __name(async (output, context) => {
338
+ if (output.statusCode >= 300) {
339
+ return de_DescribeReportCreationCommandError(output, context);
340
+ }
341
+ const data = await parseBody(output.body, context);
342
+ let contents = {};
343
+ contents = (0, import_smithy_client._json)(data);
344
+ const response = {
345
+ $metadata: deserializeMetadata(output),
346
+ ...contents
347
+ };
348
+ return response;
349
+ }, "de_DescribeReportCreationCommand");
350
+ var de_DescribeReportCreationCommandError = /* @__PURE__ */ __name(async (output, context) => {
351
+ const parsedOutput = {
352
+ ...output,
353
+ body: await parseErrorBody(output.body, context)
354
+ };
355
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
356
+ switch (errorCode) {
357
+ case "ConstraintViolationException":
358
+ case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException":
359
+ throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
360
+ case "InternalServiceException":
361
+ case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
362
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
363
+ case "InvalidParameterException":
364
+ case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
365
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
366
+ case "ThrottledException":
367
+ case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
368
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
369
+ default:
370
+ const parsedBody = parsedOutput.body;
371
+ return throwDefaultError({
372
+ output,
373
+ parsedBody,
374
+ errorCode
375
+ });
376
+ }
377
+ }, "de_DescribeReportCreationCommandError");
378
+ var de_GetComplianceSummaryCommand = /* @__PURE__ */ __name(async (output, context) => {
379
+ if (output.statusCode >= 300) {
380
+ return de_GetComplianceSummaryCommandError(output, context);
381
+ }
382
+ const data = await parseBody(output.body, context);
383
+ let contents = {};
384
+ contents = (0, import_smithy_client._json)(data);
385
+ const response = {
386
+ $metadata: deserializeMetadata(output),
387
+ ...contents
388
+ };
389
+ return response;
390
+ }, "de_GetComplianceSummaryCommand");
391
+ var de_GetComplianceSummaryCommandError = /* @__PURE__ */ __name(async (output, context) => {
392
+ const parsedOutput = {
393
+ ...output,
394
+ body: await parseErrorBody(output.body, context)
395
+ };
396
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
397
+ switch (errorCode) {
398
+ case "ConstraintViolationException":
399
+ case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException":
400
+ throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
401
+ case "InternalServiceException":
402
+ case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
403
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
404
+ case "InvalidParameterException":
405
+ case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
406
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
407
+ case "ThrottledException":
408
+ case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
409
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
410
+ default:
411
+ const parsedBody = parsedOutput.body;
412
+ return throwDefaultError({
413
+ output,
414
+ parsedBody,
415
+ errorCode
416
+ });
417
+ }
418
+ }, "de_GetComplianceSummaryCommandError");
419
+ var de_GetResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
420
+ if (output.statusCode >= 300) {
421
+ return de_GetResourcesCommandError(output, context);
422
+ }
423
+ const data = await parseBody(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_GetResourcesCommand");
432
+ var de_GetResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
433
+ const parsedOutput = {
434
+ ...output,
435
+ body: await parseErrorBody(output.body, context)
436
+ };
437
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
438
+ switch (errorCode) {
439
+ case "InternalServiceException":
440
+ case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
441
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
442
+ case "InvalidParameterException":
443
+ case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
444
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
445
+ case "PaginationTokenExpiredException":
446
+ case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException":
447
+ throw await de_PaginationTokenExpiredExceptionRes(parsedOutput, context);
448
+ case "ThrottledException":
449
+ case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
450
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
451
+ default:
452
+ const parsedBody = parsedOutput.body;
453
+ return throwDefaultError({
454
+ output,
455
+ parsedBody,
456
+ errorCode
457
+ });
458
+ }
459
+ }, "de_GetResourcesCommandError");
460
+ var de_GetTagKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
461
+ if (output.statusCode >= 300) {
462
+ return de_GetTagKeysCommandError(output, context);
463
+ }
464
+ const data = await parseBody(output.body, context);
465
+ let contents = {};
466
+ contents = (0, import_smithy_client._json)(data);
467
+ const response = {
468
+ $metadata: deserializeMetadata(output),
469
+ ...contents
470
+ };
471
+ return response;
472
+ }, "de_GetTagKeysCommand");
473
+ var de_GetTagKeysCommandError = /* @__PURE__ */ __name(async (output, context) => {
474
+ const parsedOutput = {
475
+ ...output,
476
+ body: await parseErrorBody(output.body, context)
477
+ };
478
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
479
+ switch (errorCode) {
480
+ case "InternalServiceException":
481
+ case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
482
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
483
+ case "InvalidParameterException":
484
+ case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
485
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
486
+ case "PaginationTokenExpiredException":
487
+ case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException":
488
+ throw await de_PaginationTokenExpiredExceptionRes(parsedOutput, context);
489
+ case "ThrottledException":
490
+ case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
491
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
492
+ default:
493
+ const parsedBody = parsedOutput.body;
494
+ return throwDefaultError({
495
+ output,
496
+ parsedBody,
497
+ errorCode
498
+ });
499
+ }
500
+ }, "de_GetTagKeysCommandError");
501
+ var de_GetTagValuesCommand = /* @__PURE__ */ __name(async (output, context) => {
502
+ if (output.statusCode >= 300) {
503
+ return de_GetTagValuesCommandError(output, context);
504
+ }
505
+ const data = await parseBody(output.body, context);
506
+ let contents = {};
507
+ contents = (0, import_smithy_client._json)(data);
508
+ const response = {
509
+ $metadata: deserializeMetadata(output),
510
+ ...contents
511
+ };
512
+ return response;
513
+ }, "de_GetTagValuesCommand");
514
+ var de_GetTagValuesCommandError = /* @__PURE__ */ __name(async (output, context) => {
515
+ const parsedOutput = {
516
+ ...output,
517
+ body: await parseErrorBody(output.body, context)
518
+ };
519
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
520
+ switch (errorCode) {
521
+ case "InternalServiceException":
522
+ case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
523
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
524
+ case "InvalidParameterException":
525
+ case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
526
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
527
+ case "PaginationTokenExpiredException":
528
+ case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException":
529
+ throw await de_PaginationTokenExpiredExceptionRes(parsedOutput, context);
530
+ case "ThrottledException":
531
+ case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
532
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
533
+ default:
534
+ const parsedBody = parsedOutput.body;
535
+ return throwDefaultError({
536
+ output,
537
+ parsedBody,
538
+ errorCode
539
+ });
540
+ }
541
+ }, "de_GetTagValuesCommandError");
542
+ var de_StartReportCreationCommand = /* @__PURE__ */ __name(async (output, context) => {
543
+ if (output.statusCode >= 300) {
544
+ return de_StartReportCreationCommandError(output, context);
545
+ }
546
+ const data = await parseBody(output.body, context);
547
+ let contents = {};
548
+ contents = (0, import_smithy_client._json)(data);
549
+ const response = {
550
+ $metadata: deserializeMetadata(output),
551
+ ...contents
552
+ };
553
+ return response;
554
+ }, "de_StartReportCreationCommand");
555
+ var de_StartReportCreationCommandError = /* @__PURE__ */ __name(async (output, context) => {
556
+ const parsedOutput = {
557
+ ...output,
558
+ body: await parseErrorBody(output.body, context)
559
+ };
560
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
561
+ switch (errorCode) {
562
+ case "ConcurrentModificationException":
563
+ case "com.amazonaws.resourcegroupstaggingapi#ConcurrentModificationException":
564
+ throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
565
+ case "ConstraintViolationException":
566
+ case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException":
567
+ throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
568
+ case "InternalServiceException":
569
+ case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
570
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
571
+ case "InvalidParameterException":
572
+ case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
573
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
574
+ case "ThrottledException":
575
+ case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
576
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
577
+ default:
578
+ const parsedBody = parsedOutput.body;
579
+ return throwDefaultError({
580
+ output,
581
+ parsedBody,
582
+ errorCode
583
+ });
584
+ }
585
+ }, "de_StartReportCreationCommandError");
586
+ var de_TagResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
587
+ if (output.statusCode >= 300) {
588
+ return de_TagResourcesCommandError(output, context);
589
+ }
590
+ const data = await parseBody(output.body, context);
591
+ let contents = {};
592
+ contents = (0, import_smithy_client._json)(data);
593
+ const response = {
594
+ $metadata: deserializeMetadata(output),
595
+ ...contents
596
+ };
597
+ return response;
598
+ }, "de_TagResourcesCommand");
599
+ var de_TagResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
600
+ const parsedOutput = {
601
+ ...output,
602
+ body: await parseErrorBody(output.body, context)
603
+ };
604
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
605
+ switch (errorCode) {
606
+ case "InternalServiceException":
607
+ case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
608
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
609
+ case "InvalidParameterException":
610
+ case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
611
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
612
+ case "ThrottledException":
613
+ case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
614
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
615
+ default:
616
+ const parsedBody = parsedOutput.body;
617
+ return throwDefaultError({
618
+ output,
619
+ parsedBody,
620
+ errorCode
621
+ });
622
+ }
623
+ }, "de_TagResourcesCommandError");
624
+ var de_UntagResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
625
+ if (output.statusCode >= 300) {
626
+ return de_UntagResourcesCommandError(output, context);
627
+ }
628
+ const data = await parseBody(output.body, context);
629
+ let contents = {};
630
+ contents = (0, import_smithy_client._json)(data);
631
+ const response = {
632
+ $metadata: deserializeMetadata(output),
633
+ ...contents
634
+ };
635
+ return response;
636
+ }, "de_UntagResourcesCommand");
637
+ var de_UntagResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
638
+ const parsedOutput = {
639
+ ...output,
640
+ body: await parseErrorBody(output.body, context)
641
+ };
642
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
643
+ switch (errorCode) {
644
+ case "InternalServiceException":
645
+ case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
646
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
647
+ case "InvalidParameterException":
648
+ case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
649
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
650
+ case "ThrottledException":
651
+ case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
652
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
653
+ default:
654
+ const parsedBody = parsedOutput.body;
655
+ return throwDefaultError({
656
+ output,
657
+ parsedBody,
658
+ errorCode
659
+ });
660
+ }
661
+ }, "de_UntagResourcesCommandError");
662
+ var de_ConcurrentModificationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
663
+ const body = parsedOutput.body;
664
+ const deserialized = (0, import_smithy_client._json)(body);
665
+ const exception = new ConcurrentModificationException({
666
+ $metadata: deserializeMetadata(parsedOutput),
667
+ ...deserialized
668
+ });
669
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
670
+ }, "de_ConcurrentModificationExceptionRes");
671
+ var de_ConstraintViolationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
672
+ const body = parsedOutput.body;
673
+ const deserialized = (0, import_smithy_client._json)(body);
674
+ const exception = new ConstraintViolationException({
675
+ $metadata: deserializeMetadata(parsedOutput),
676
+ ...deserialized
677
+ });
678
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
679
+ }, "de_ConstraintViolationExceptionRes");
680
+ var de_InternalServiceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
681
+ const body = parsedOutput.body;
682
+ const deserialized = (0, import_smithy_client._json)(body);
683
+ const exception = new InternalServiceException({
684
+ $metadata: deserializeMetadata(parsedOutput),
685
+ ...deserialized
686
+ });
687
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
688
+ }, "de_InternalServiceExceptionRes");
689
+ var de_InvalidParameterExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
690
+ const body = parsedOutput.body;
691
+ const deserialized = (0, import_smithy_client._json)(body);
692
+ const exception = new InvalidParameterException({
693
+ $metadata: deserializeMetadata(parsedOutput),
694
+ ...deserialized
695
+ });
696
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
697
+ }, "de_InvalidParameterExceptionRes");
698
+ var de_PaginationTokenExpiredExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
699
+ const body = parsedOutput.body;
700
+ const deserialized = (0, import_smithy_client._json)(body);
701
+ const exception = new PaginationTokenExpiredException({
702
+ $metadata: deserializeMetadata(parsedOutput),
703
+ ...deserialized
704
+ });
705
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
706
+ }, "de_PaginationTokenExpiredExceptionRes");
707
+ var de_ThrottledExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
708
+ const body = parsedOutput.body;
709
+ const deserialized = (0, import_smithy_client._json)(body);
710
+ const exception = new ThrottledException({
711
+ $metadata: deserializeMetadata(parsedOutput),
712
+ ...deserialized
713
+ });
714
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
715
+ }, "de_ThrottledExceptionRes");
716
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
717
+ httpStatusCode: output.statusCode,
718
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
719
+ extendedRequestId: output.headers["x-amz-id-2"],
720
+ cfId: output.headers["x-amz-cf-id"]
721
+ }), "deserializeMetadata");
722
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
723
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(ResourceGroupsTaggingAPIServiceException);
724
+ var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
725
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
726
+ const contents = {
727
+ protocol,
728
+ hostname,
729
+ port,
730
+ method: "POST",
731
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
732
+ headers
733
+ };
734
+ if (resolvedHostname !== void 0) {
735
+ contents.hostname = resolvedHostname;
736
+ }
737
+ if (body !== void 0) {
738
+ contents.body = body;
739
+ }
740
+ return new import_protocol_http.HttpRequest(contents);
741
+ }, "buildHttpRpcRequest");
742
+ function sharedHeaders(operation) {
743
+ return {
744
+ "content-type": "application/x-amz-json-1.1",
745
+ "x-amz-target": `ResourceGroupsTaggingAPI_20170126.${operation}`
746
+ };
747
+ }
748
+ __name(sharedHeaders, "sharedHeaders");
749
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
750
+ if (encoded.length) {
751
+ return JSON.parse(encoded);
752
+ }
753
+ return {};
754
+ }), "parseBody");
755
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
756
+ const value = await parseBody(errorBody, context);
757
+ value.message = value.message ?? value.Message;
758
+ return value;
759
+ }, "parseErrorBody");
760
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
761
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
762
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
763
+ let cleanValue = rawValue;
764
+ if (typeof cleanValue === "number") {
765
+ cleanValue = cleanValue.toString();
766
+ }
767
+ if (cleanValue.indexOf(",") >= 0) {
768
+ cleanValue = cleanValue.split(",")[0];
769
+ }
770
+ if (cleanValue.indexOf(":") >= 0) {
771
+ cleanValue = cleanValue.split(":")[0];
772
+ }
773
+ if (cleanValue.indexOf("#") >= 0) {
774
+ cleanValue = cleanValue.split("#")[1];
775
+ }
776
+ return cleanValue;
777
+ }, "sanitizeErrorCode");
778
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
779
+ if (headerKey !== void 0) {
780
+ return sanitizeErrorCode(output.headers[headerKey]);
781
+ }
782
+ if (data.code !== void 0) {
783
+ return sanitizeErrorCode(data.code);
784
+ }
785
+ if (data["__type"] !== void 0) {
786
+ return sanitizeErrorCode(data["__type"]);
787
+ }
788
+ }, "loadRestJsonErrorCode");
789
+
790
+ // src/commands/DescribeReportCreationCommand.ts
791
+ var _DescribeReportCreationCommand = class _DescribeReportCreationCommand extends import_smithy_client.Command.classBuilder().ep({
792
+ ...commonParams
793
+ }).m(function(Command, cs, config, o) {
794
+ return [
795
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
796
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
797
+ ];
798
+ }).s("ResourceGroupsTaggingAPI_20170126", "DescribeReportCreation", {}).n("ResourceGroupsTaggingAPIClient", "DescribeReportCreationCommand").f(void 0, void 0).ser(se_DescribeReportCreationCommand).de(de_DescribeReportCreationCommand).build() {
799
+ };
800
+ __name(_DescribeReportCreationCommand, "DescribeReportCreationCommand");
801
+ var DescribeReportCreationCommand = _DescribeReportCreationCommand;
802
+
803
+ // src/commands/GetComplianceSummaryCommand.ts
804
+
805
+
806
+
807
+
808
+ var _GetComplianceSummaryCommand = class _GetComplianceSummaryCommand extends import_smithy_client.Command.classBuilder().ep({
809
+ ...commonParams
810
+ }).m(function(Command, cs, config, o) {
811
+ return [
812
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
813
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
814
+ ];
815
+ }).s("ResourceGroupsTaggingAPI_20170126", "GetComplianceSummary", {}).n("ResourceGroupsTaggingAPIClient", "GetComplianceSummaryCommand").f(void 0, void 0).ser(se_GetComplianceSummaryCommand).de(de_GetComplianceSummaryCommand).build() {
816
+ };
817
+ __name(_GetComplianceSummaryCommand, "GetComplianceSummaryCommand");
818
+ var GetComplianceSummaryCommand = _GetComplianceSummaryCommand;
819
+
820
+ // src/commands/GetResourcesCommand.ts
821
+
822
+
823
+
824
+
825
+ var _GetResourcesCommand = class _GetResourcesCommand extends import_smithy_client.Command.classBuilder().ep({
826
+ ...commonParams
827
+ }).m(function(Command, cs, config, o) {
828
+ return [
829
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
830
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
831
+ ];
832
+ }).s("ResourceGroupsTaggingAPI_20170126", "GetResources", {}).n("ResourceGroupsTaggingAPIClient", "GetResourcesCommand").f(void 0, void 0).ser(se_GetResourcesCommand).de(de_GetResourcesCommand).build() {
833
+ };
834
+ __name(_GetResourcesCommand, "GetResourcesCommand");
835
+ var GetResourcesCommand = _GetResourcesCommand;
836
+
837
+ // src/commands/GetTagKeysCommand.ts
838
+
839
+
840
+
841
+
842
+ var _GetTagKeysCommand = class _GetTagKeysCommand extends import_smithy_client.Command.classBuilder().ep({
843
+ ...commonParams
844
+ }).m(function(Command, cs, config, o) {
845
+ return [
846
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
847
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
848
+ ];
849
+ }).s("ResourceGroupsTaggingAPI_20170126", "GetTagKeys", {}).n("ResourceGroupsTaggingAPIClient", "GetTagKeysCommand").f(void 0, void 0).ser(se_GetTagKeysCommand).de(de_GetTagKeysCommand).build() {
850
+ };
851
+ __name(_GetTagKeysCommand, "GetTagKeysCommand");
852
+ var GetTagKeysCommand = _GetTagKeysCommand;
853
+
854
+ // src/commands/GetTagValuesCommand.ts
855
+
856
+
857
+
858
+
859
+ var _GetTagValuesCommand = class _GetTagValuesCommand extends import_smithy_client.Command.classBuilder().ep({
860
+ ...commonParams
861
+ }).m(function(Command, cs, config, o) {
862
+ return [
863
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
864
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
865
+ ];
866
+ }).s("ResourceGroupsTaggingAPI_20170126", "GetTagValues", {}).n("ResourceGroupsTaggingAPIClient", "GetTagValuesCommand").f(void 0, void 0).ser(se_GetTagValuesCommand).de(de_GetTagValuesCommand).build() {
867
+ };
868
+ __name(_GetTagValuesCommand, "GetTagValuesCommand");
869
+ var GetTagValuesCommand = _GetTagValuesCommand;
870
+
871
+ // src/commands/StartReportCreationCommand.ts
872
+
873
+
874
+
875
+
876
+ var _StartReportCreationCommand = class _StartReportCreationCommand extends import_smithy_client.Command.classBuilder().ep({
877
+ ...commonParams
878
+ }).m(function(Command, cs, config, o) {
879
+ return [
880
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
881
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
882
+ ];
883
+ }).s("ResourceGroupsTaggingAPI_20170126", "StartReportCreation", {}).n("ResourceGroupsTaggingAPIClient", "StartReportCreationCommand").f(void 0, void 0).ser(se_StartReportCreationCommand).de(de_StartReportCreationCommand).build() {
884
+ };
885
+ __name(_StartReportCreationCommand, "StartReportCreationCommand");
886
+ var StartReportCreationCommand = _StartReportCreationCommand;
887
+
888
+ // src/commands/TagResourcesCommand.ts
889
+
890
+
891
+
892
+
893
+ var _TagResourcesCommand = class _TagResourcesCommand extends import_smithy_client.Command.classBuilder().ep({
894
+ ...commonParams
895
+ }).m(function(Command, cs, config, o) {
896
+ return [
897
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
898
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
899
+ ];
900
+ }).s("ResourceGroupsTaggingAPI_20170126", "TagResources", {}).n("ResourceGroupsTaggingAPIClient", "TagResourcesCommand").f(void 0, void 0).ser(se_TagResourcesCommand).de(de_TagResourcesCommand).build() {
901
+ };
902
+ __name(_TagResourcesCommand, "TagResourcesCommand");
903
+ var TagResourcesCommand = _TagResourcesCommand;
904
+
905
+ // src/commands/UntagResourcesCommand.ts
906
+
907
+
908
+
909
+
910
+ var _UntagResourcesCommand = class _UntagResourcesCommand extends import_smithy_client.Command.classBuilder().ep({
911
+ ...commonParams
912
+ }).m(function(Command, cs, config, o) {
913
+ return [
914
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
915
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
916
+ ];
917
+ }).s("ResourceGroupsTaggingAPI_20170126", "UntagResources", {}).n("ResourceGroupsTaggingAPIClient", "UntagResourcesCommand").f(void 0, void 0).ser(se_UntagResourcesCommand).de(de_UntagResourcesCommand).build() {
918
+ };
919
+ __name(_UntagResourcesCommand, "UntagResourcesCommand");
920
+ var UntagResourcesCommand = _UntagResourcesCommand;
921
+
922
+ // src/ResourceGroupsTaggingAPI.ts
923
+ var commands = {
924
+ DescribeReportCreationCommand,
925
+ GetComplianceSummaryCommand,
926
+ GetResourcesCommand,
927
+ GetTagKeysCommand,
928
+ GetTagValuesCommand,
929
+ StartReportCreationCommand,
930
+ TagResourcesCommand,
931
+ UntagResourcesCommand
932
+ };
933
+ var _ResourceGroupsTaggingAPI = class _ResourceGroupsTaggingAPI extends ResourceGroupsTaggingAPIClient {
934
+ };
935
+ __name(_ResourceGroupsTaggingAPI, "ResourceGroupsTaggingAPI");
936
+ var ResourceGroupsTaggingAPI = _ResourceGroupsTaggingAPI;
937
+ (0, import_smithy_client.createAggregatedClient)(commands, ResourceGroupsTaggingAPI);
938
+
939
+ // src/pagination/GetComplianceSummaryPaginator.ts
940
+ var import_core = require("@smithy/core");
941
+ var paginateGetComplianceSummary = (0, import_core.createPaginator)(ResourceGroupsTaggingAPIClient, GetComplianceSummaryCommand, "PaginationToken", "PaginationToken", "MaxResults");
942
+
943
+ // src/pagination/GetResourcesPaginator.ts
944
+
945
+ var paginateGetResources = (0, import_core.createPaginator)(ResourceGroupsTaggingAPIClient, GetResourcesCommand, "PaginationToken", "PaginationToken", "ResourcesPerPage");
946
+
947
+ // src/pagination/GetTagKeysPaginator.ts
948
+
949
+ var paginateGetTagKeys = (0, import_core.createPaginator)(ResourceGroupsTaggingAPIClient, GetTagKeysCommand, "PaginationToken", "PaginationToken", "");
950
+
951
+ // src/pagination/GetTagValuesPaginator.ts
952
+
953
+ var paginateGetTagValues = (0, import_core.createPaginator)(ResourceGroupsTaggingAPIClient, GetTagValuesCommand, "PaginationToken", "PaginationToken", "");
954
+
955
+ // src/index.ts
956
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
957
+ // Annotate the CommonJS export names for ESM import in node:
958
+
959
+ 0 && (module.exports = {
960
+ ConcurrentModificationException,
961
+ ConstraintViolationException,
962
+ DescribeReportCreationCommand,
963
+ ErrorCode,
964
+ GetComplianceSummaryCommand,
965
+ GetResourcesCommand,
966
+ GetTagKeysCommand,
967
+ GetTagValuesCommand,
968
+ GroupByAttribute,
969
+ InternalServiceException,
970
+ InvalidParameterException,
971
+ PaginationTokenExpiredException,
972
+ ResourceGroupsTaggingAPI,
973
+ ResourceGroupsTaggingAPIClient,
974
+ ResourceGroupsTaggingAPIServiceException,
975
+ StartReportCreationCommand,
976
+ TagResourcesCommand,
977
+ TargetIdType,
978
+ ThrottledException,
979
+ UntagResourcesCommand,
980
+ __Client,
981
+ paginateGetComplianceSummary,
982
+ paginateGetResources,
983
+ paginateGetTagKeys,
984
+ paginateGetTagValues
985
+ });
986
+