@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.
@@ -1,522 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_UntagResourcesCommand = exports.de_TagResourcesCommand = exports.de_StartReportCreationCommand = exports.de_GetTagValuesCommand = exports.de_GetTagKeysCommand = exports.de_GetResourcesCommand = exports.de_GetComplianceSummaryCommand = exports.de_DescribeReportCreationCommand = exports.se_UntagResourcesCommand = exports.se_TagResourcesCommand = exports.se_StartReportCreationCommand = exports.se_GetTagValuesCommand = exports.se_GetTagKeysCommand = exports.se_GetResourcesCommand = exports.se_GetComplianceSummaryCommand = exports.se_DescribeReportCreationCommand = void 0;
4
- const protocol_http_1 = require("@smithy/protocol-http");
5
- const smithy_client_1 = require("@smithy/smithy-client");
6
- const models_0_1 = require("../models/models_0");
7
- const ResourceGroupsTaggingAPIServiceException_1 = require("../models/ResourceGroupsTaggingAPIServiceException");
8
- const se_DescribeReportCreationCommand = async (input, context) => {
9
- const headers = sharedHeaders("DescribeReportCreation");
10
- let body;
11
- body = JSON.stringify((0, smithy_client_1._json)(input));
12
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
13
- };
14
- exports.se_DescribeReportCreationCommand = se_DescribeReportCreationCommand;
15
- const se_GetComplianceSummaryCommand = async (input, context) => {
16
- const headers = sharedHeaders("GetComplianceSummary");
17
- let body;
18
- body = JSON.stringify((0, smithy_client_1._json)(input));
19
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
20
- };
21
- exports.se_GetComplianceSummaryCommand = se_GetComplianceSummaryCommand;
22
- const se_GetResourcesCommand = async (input, context) => {
23
- const headers = sharedHeaders("GetResources");
24
- let body;
25
- body = JSON.stringify((0, smithy_client_1._json)(input));
26
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
27
- };
28
- exports.se_GetResourcesCommand = se_GetResourcesCommand;
29
- const se_GetTagKeysCommand = async (input, context) => {
30
- const headers = sharedHeaders("GetTagKeys");
31
- let body;
32
- body = JSON.stringify((0, smithy_client_1._json)(input));
33
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
34
- };
35
- exports.se_GetTagKeysCommand = se_GetTagKeysCommand;
36
- const se_GetTagValuesCommand = async (input, context) => {
37
- const headers = sharedHeaders("GetTagValues");
38
- let body;
39
- body = JSON.stringify((0, smithy_client_1._json)(input));
40
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
41
- };
42
- exports.se_GetTagValuesCommand = se_GetTagValuesCommand;
43
- const se_StartReportCreationCommand = async (input, context) => {
44
- const headers = sharedHeaders("StartReportCreation");
45
- let body;
46
- body = JSON.stringify((0, smithy_client_1._json)(input));
47
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
48
- };
49
- exports.se_StartReportCreationCommand = se_StartReportCreationCommand;
50
- const se_TagResourcesCommand = async (input, context) => {
51
- const headers = sharedHeaders("TagResources");
52
- let body;
53
- body = JSON.stringify((0, smithy_client_1._json)(input));
54
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
55
- };
56
- exports.se_TagResourcesCommand = se_TagResourcesCommand;
57
- const se_UntagResourcesCommand = async (input, context) => {
58
- const headers = sharedHeaders("UntagResources");
59
- let body;
60
- body = JSON.stringify((0, smithy_client_1._json)(input));
61
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
62
- };
63
- exports.se_UntagResourcesCommand = se_UntagResourcesCommand;
64
- const de_DescribeReportCreationCommand = async (output, context) => {
65
- if (output.statusCode >= 300) {
66
- return de_DescribeReportCreationCommandError(output, context);
67
- }
68
- const data = await parseBody(output.body, context);
69
- let contents = {};
70
- contents = (0, smithy_client_1._json)(data);
71
- const response = {
72
- $metadata: deserializeMetadata(output),
73
- ...contents,
74
- };
75
- return response;
76
- };
77
- exports.de_DescribeReportCreationCommand = de_DescribeReportCreationCommand;
78
- const de_DescribeReportCreationCommandError = async (output, context) => {
79
- const parsedOutput = {
80
- ...output,
81
- body: await parseErrorBody(output.body, context),
82
- };
83
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
84
- switch (errorCode) {
85
- case "ConstraintViolationException":
86
- case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException":
87
- throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
88
- case "InternalServiceException":
89
- case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
90
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
91
- case "InvalidParameterException":
92
- case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
93
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
94
- case "ThrottledException":
95
- case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
96
- throw await de_ThrottledExceptionRes(parsedOutput, context);
97
- default:
98
- const parsedBody = parsedOutput.body;
99
- return throwDefaultError({
100
- output,
101
- parsedBody,
102
- errorCode,
103
- });
104
- }
105
- };
106
- const de_GetComplianceSummaryCommand = async (output, context) => {
107
- if (output.statusCode >= 300) {
108
- return de_GetComplianceSummaryCommandError(output, context);
109
- }
110
- const data = await parseBody(output.body, context);
111
- let contents = {};
112
- contents = (0, smithy_client_1._json)(data);
113
- const response = {
114
- $metadata: deserializeMetadata(output),
115
- ...contents,
116
- };
117
- return response;
118
- };
119
- exports.de_GetComplianceSummaryCommand = de_GetComplianceSummaryCommand;
120
- const de_GetComplianceSummaryCommandError = async (output, context) => {
121
- const parsedOutput = {
122
- ...output,
123
- body: await parseErrorBody(output.body, context),
124
- };
125
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
126
- switch (errorCode) {
127
- case "ConstraintViolationException":
128
- case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException":
129
- throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
130
- case "InternalServiceException":
131
- case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
132
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
133
- case "InvalidParameterException":
134
- case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
135
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
136
- case "ThrottledException":
137
- case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
138
- throw await de_ThrottledExceptionRes(parsedOutput, context);
139
- default:
140
- const parsedBody = parsedOutput.body;
141
- return throwDefaultError({
142
- output,
143
- parsedBody,
144
- errorCode,
145
- });
146
- }
147
- };
148
- const de_GetResourcesCommand = async (output, context) => {
149
- if (output.statusCode >= 300) {
150
- return de_GetResourcesCommandError(output, context);
151
- }
152
- const data = await parseBody(output.body, context);
153
- let contents = {};
154
- contents = (0, smithy_client_1._json)(data);
155
- const response = {
156
- $metadata: deserializeMetadata(output),
157
- ...contents,
158
- };
159
- return response;
160
- };
161
- exports.de_GetResourcesCommand = de_GetResourcesCommand;
162
- const de_GetResourcesCommandError = async (output, context) => {
163
- const parsedOutput = {
164
- ...output,
165
- body: await parseErrorBody(output.body, context),
166
- };
167
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
168
- switch (errorCode) {
169
- case "InternalServiceException":
170
- case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
171
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
172
- case "InvalidParameterException":
173
- case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
174
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
175
- case "PaginationTokenExpiredException":
176
- case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException":
177
- throw await de_PaginationTokenExpiredExceptionRes(parsedOutput, context);
178
- case "ThrottledException":
179
- case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
180
- throw await de_ThrottledExceptionRes(parsedOutput, context);
181
- default:
182
- const parsedBody = parsedOutput.body;
183
- return throwDefaultError({
184
- output,
185
- parsedBody,
186
- errorCode,
187
- });
188
- }
189
- };
190
- const de_GetTagKeysCommand = async (output, context) => {
191
- if (output.statusCode >= 300) {
192
- return de_GetTagKeysCommandError(output, context);
193
- }
194
- const data = await parseBody(output.body, context);
195
- let contents = {};
196
- contents = (0, smithy_client_1._json)(data);
197
- const response = {
198
- $metadata: deserializeMetadata(output),
199
- ...contents,
200
- };
201
- return response;
202
- };
203
- exports.de_GetTagKeysCommand = de_GetTagKeysCommand;
204
- const de_GetTagKeysCommandError = async (output, context) => {
205
- const parsedOutput = {
206
- ...output,
207
- body: await parseErrorBody(output.body, context),
208
- };
209
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
210
- switch (errorCode) {
211
- case "InternalServiceException":
212
- case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
213
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
214
- case "InvalidParameterException":
215
- case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
216
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
217
- case "PaginationTokenExpiredException":
218
- case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException":
219
- throw await de_PaginationTokenExpiredExceptionRes(parsedOutput, context);
220
- case "ThrottledException":
221
- case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
222
- throw await de_ThrottledExceptionRes(parsedOutput, context);
223
- default:
224
- const parsedBody = parsedOutput.body;
225
- return throwDefaultError({
226
- output,
227
- parsedBody,
228
- errorCode,
229
- });
230
- }
231
- };
232
- const de_GetTagValuesCommand = async (output, context) => {
233
- if (output.statusCode >= 300) {
234
- return de_GetTagValuesCommandError(output, context);
235
- }
236
- const data = await parseBody(output.body, context);
237
- let contents = {};
238
- contents = (0, smithy_client_1._json)(data);
239
- const response = {
240
- $metadata: deserializeMetadata(output),
241
- ...contents,
242
- };
243
- return response;
244
- };
245
- exports.de_GetTagValuesCommand = de_GetTagValuesCommand;
246
- const de_GetTagValuesCommandError = async (output, context) => {
247
- const parsedOutput = {
248
- ...output,
249
- body: await parseErrorBody(output.body, context),
250
- };
251
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
252
- switch (errorCode) {
253
- case "InternalServiceException":
254
- case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
255
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
256
- case "InvalidParameterException":
257
- case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
258
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
259
- case "PaginationTokenExpiredException":
260
- case "com.amazonaws.resourcegroupstaggingapi#PaginationTokenExpiredException":
261
- throw await de_PaginationTokenExpiredExceptionRes(parsedOutput, context);
262
- case "ThrottledException":
263
- case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
264
- throw await de_ThrottledExceptionRes(parsedOutput, context);
265
- default:
266
- const parsedBody = parsedOutput.body;
267
- return throwDefaultError({
268
- output,
269
- parsedBody,
270
- errorCode,
271
- });
272
- }
273
- };
274
- const de_StartReportCreationCommand = async (output, context) => {
275
- if (output.statusCode >= 300) {
276
- return de_StartReportCreationCommandError(output, context);
277
- }
278
- const data = await parseBody(output.body, context);
279
- let contents = {};
280
- contents = (0, smithy_client_1._json)(data);
281
- const response = {
282
- $metadata: deserializeMetadata(output),
283
- ...contents,
284
- };
285
- return response;
286
- };
287
- exports.de_StartReportCreationCommand = de_StartReportCreationCommand;
288
- const de_StartReportCreationCommandError = async (output, context) => {
289
- const parsedOutput = {
290
- ...output,
291
- body: await parseErrorBody(output.body, context),
292
- };
293
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
294
- switch (errorCode) {
295
- case "ConcurrentModificationException":
296
- case "com.amazonaws.resourcegroupstaggingapi#ConcurrentModificationException":
297
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
298
- case "ConstraintViolationException":
299
- case "com.amazonaws.resourcegroupstaggingapi#ConstraintViolationException":
300
- throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
301
- case "InternalServiceException":
302
- case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
303
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
304
- case "InvalidParameterException":
305
- case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
306
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
307
- case "ThrottledException":
308
- case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
309
- throw await de_ThrottledExceptionRes(parsedOutput, context);
310
- default:
311
- const parsedBody = parsedOutput.body;
312
- return throwDefaultError({
313
- output,
314
- parsedBody,
315
- errorCode,
316
- });
317
- }
318
- };
319
- const de_TagResourcesCommand = async (output, context) => {
320
- if (output.statusCode >= 300) {
321
- return de_TagResourcesCommandError(output, context);
322
- }
323
- const data = await parseBody(output.body, context);
324
- let contents = {};
325
- contents = (0, smithy_client_1._json)(data);
326
- const response = {
327
- $metadata: deserializeMetadata(output),
328
- ...contents,
329
- };
330
- return response;
331
- };
332
- exports.de_TagResourcesCommand = de_TagResourcesCommand;
333
- const de_TagResourcesCommandError = async (output, context) => {
334
- const parsedOutput = {
335
- ...output,
336
- body: await parseErrorBody(output.body, context),
337
- };
338
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
339
- switch (errorCode) {
340
- case "InternalServiceException":
341
- case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
342
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
343
- case "InvalidParameterException":
344
- case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
345
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
346
- case "ThrottledException":
347
- case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
348
- throw await de_ThrottledExceptionRes(parsedOutput, context);
349
- default:
350
- const parsedBody = parsedOutput.body;
351
- return throwDefaultError({
352
- output,
353
- parsedBody,
354
- errorCode,
355
- });
356
- }
357
- };
358
- const de_UntagResourcesCommand = async (output, context) => {
359
- if (output.statusCode >= 300) {
360
- return de_UntagResourcesCommandError(output, context);
361
- }
362
- const data = await parseBody(output.body, context);
363
- let contents = {};
364
- contents = (0, smithy_client_1._json)(data);
365
- const response = {
366
- $metadata: deserializeMetadata(output),
367
- ...contents,
368
- };
369
- return response;
370
- };
371
- exports.de_UntagResourcesCommand = de_UntagResourcesCommand;
372
- const de_UntagResourcesCommandError = async (output, context) => {
373
- const parsedOutput = {
374
- ...output,
375
- body: await parseErrorBody(output.body, context),
376
- };
377
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
378
- switch (errorCode) {
379
- case "InternalServiceException":
380
- case "com.amazonaws.resourcegroupstaggingapi#InternalServiceException":
381
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
382
- case "InvalidParameterException":
383
- case "com.amazonaws.resourcegroupstaggingapi#InvalidParameterException":
384
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
385
- case "ThrottledException":
386
- case "com.amazonaws.resourcegroupstaggingapi#ThrottledException":
387
- throw await de_ThrottledExceptionRes(parsedOutput, context);
388
- default:
389
- const parsedBody = parsedOutput.body;
390
- return throwDefaultError({
391
- output,
392
- parsedBody,
393
- errorCode,
394
- });
395
- }
396
- };
397
- const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
398
- const body = parsedOutput.body;
399
- const deserialized = (0, smithy_client_1._json)(body);
400
- const exception = new models_0_1.ConcurrentModificationException({
401
- $metadata: deserializeMetadata(parsedOutput),
402
- ...deserialized,
403
- });
404
- return (0, smithy_client_1.decorateServiceException)(exception, body);
405
- };
406
- const de_ConstraintViolationExceptionRes = async (parsedOutput, context) => {
407
- const body = parsedOutput.body;
408
- const deserialized = (0, smithy_client_1._json)(body);
409
- const exception = new models_0_1.ConstraintViolationException({
410
- $metadata: deserializeMetadata(parsedOutput),
411
- ...deserialized,
412
- });
413
- return (0, smithy_client_1.decorateServiceException)(exception, body);
414
- };
415
- const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
416
- const body = parsedOutput.body;
417
- const deserialized = (0, smithy_client_1._json)(body);
418
- const exception = new models_0_1.InternalServiceException({
419
- $metadata: deserializeMetadata(parsedOutput),
420
- ...deserialized,
421
- });
422
- return (0, smithy_client_1.decorateServiceException)(exception, body);
423
- };
424
- const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
425
- const body = parsedOutput.body;
426
- const deserialized = (0, smithy_client_1._json)(body);
427
- const exception = new models_0_1.InvalidParameterException({
428
- $metadata: deserializeMetadata(parsedOutput),
429
- ...deserialized,
430
- });
431
- return (0, smithy_client_1.decorateServiceException)(exception, body);
432
- };
433
- const de_PaginationTokenExpiredExceptionRes = async (parsedOutput, context) => {
434
- const body = parsedOutput.body;
435
- const deserialized = (0, smithy_client_1._json)(body);
436
- const exception = new models_0_1.PaginationTokenExpiredException({
437
- $metadata: deserializeMetadata(parsedOutput),
438
- ...deserialized,
439
- });
440
- return (0, smithy_client_1.decorateServiceException)(exception, body);
441
- };
442
- const de_ThrottledExceptionRes = async (parsedOutput, context) => {
443
- const body = parsedOutput.body;
444
- const deserialized = (0, smithy_client_1._json)(body);
445
- const exception = new models_0_1.ThrottledException({
446
- $metadata: deserializeMetadata(parsedOutput),
447
- ...deserialized,
448
- });
449
- return (0, smithy_client_1.decorateServiceException)(exception, body);
450
- };
451
- const deserializeMetadata = (output) => ({
452
- httpStatusCode: output.statusCode,
453
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
454
- extendedRequestId: output.headers["x-amz-id-2"],
455
- cfId: output.headers["x-amz-cf-id"],
456
- });
457
- const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
458
- const throwDefaultError = (0, smithy_client_1.withBaseException)(ResourceGroupsTaggingAPIServiceException_1.ResourceGroupsTaggingAPIServiceException);
459
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
460
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
461
- const contents = {
462
- protocol,
463
- hostname,
464
- port,
465
- method: "POST",
466
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
467
- headers,
468
- };
469
- if (resolvedHostname !== undefined) {
470
- contents.hostname = resolvedHostname;
471
- }
472
- if (body !== undefined) {
473
- contents.body = body;
474
- }
475
- return new protocol_http_1.HttpRequest(contents);
476
- };
477
- function sharedHeaders(operation) {
478
- return {
479
- "content-type": "application/x-amz-json-1.1",
480
- "x-amz-target": `ResourceGroupsTaggingAPI_20170126.${operation}`,
481
- };
482
- }
483
- const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
484
- if (encoded.length) {
485
- return JSON.parse(encoded);
486
- }
487
- return {};
488
- });
489
- const parseErrorBody = async (errorBody, context) => {
490
- const value = await parseBody(errorBody, context);
491
- value.message = value.message ?? value.Message;
492
- return value;
493
- };
494
- const loadRestJsonErrorCode = (output, data) => {
495
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
496
- const sanitizeErrorCode = (rawValue) => {
497
- let cleanValue = rawValue;
498
- if (typeof cleanValue === "number") {
499
- cleanValue = cleanValue.toString();
500
- }
501
- if (cleanValue.indexOf(",") >= 0) {
502
- cleanValue = cleanValue.split(",")[0];
503
- }
504
- if (cleanValue.indexOf(":") >= 0) {
505
- cleanValue = cleanValue.split(":")[0];
506
- }
507
- if (cleanValue.indexOf("#") >= 0) {
508
- cleanValue = cleanValue.split("#")[1];
509
- }
510
- return cleanValue;
511
- };
512
- const headerKey = findKey(output.headers, "x-amzn-errortype");
513
- if (headerKey !== undefined) {
514
- return sanitizeErrorCode(output.headers[headerKey]);
515
- }
516
- if (data.code !== undefined) {
517
- return sanitizeErrorCode(data.code);
518
- }
519
- if (data["__type"] !== undefined) {
520
- return sanitizeErrorCode(data["__type"]);
521
- }
522
- };
1
+ module.exports = require("../index.js");
@@ -1,22 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveRuntimeExtensions = void 0;
4
- const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
5
- const protocol_http_1 = require("@smithy/protocol-http");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- const asPartial = (t) => t;
8
- const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
9
- const extensionConfiguration = {
10
- ...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
11
- ...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
12
- ...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
13
- };
14
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
15
- return {
16
- ...runtimeConfig,
17
- ...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
18
- ...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
19
- ...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
20
- };
21
- };
22
- exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
1
+ module.exports = require("./index.js");
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-resource-groups-tagging-api",
3
3
  "description": "AWS SDK for JavaScript Resource Groups Tagging Api Client for Node.js, Browser and React Native",
4
- "version": "3.490.0",
4
+ "version": "3.496.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
- "build:cjs": "tsc -p tsconfig.cjs.json",
7
+ "build:cjs": "node ../../scripts/compilation/inline client-resource-groups-tagging-api",
8
8
  "build:es": "tsc -p tsconfig.es.json",
9
9
  "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
10
10
  "build:types": "tsc -p tsconfig.types.json",
@@ -20,47 +20,47 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.490.0",
24
- "@aws-sdk/core": "3.490.0",
25
- "@aws-sdk/credential-provider-node": "3.490.0",
26
- "@aws-sdk/middleware-host-header": "3.489.0",
27
- "@aws-sdk/middleware-logger": "3.489.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.489.0",
29
- "@aws-sdk/middleware-signing": "3.489.0",
30
- "@aws-sdk/middleware-user-agent": "3.489.0",
31
- "@aws-sdk/region-config-resolver": "3.489.0",
32
- "@aws-sdk/types": "3.489.0",
33
- "@aws-sdk/util-endpoints": "3.489.0",
34
- "@aws-sdk/util-user-agent-browser": "3.489.0",
35
- "@aws-sdk/util-user-agent-node": "3.489.0",
36
- "@smithy/config-resolver": "^2.0.23",
37
- "@smithy/core": "^1.2.2",
38
- "@smithy/fetch-http-handler": "^2.3.2",
39
- "@smithy/hash-node": "^2.0.18",
40
- "@smithy/invalid-dependency": "^2.0.16",
41
- "@smithy/middleware-content-length": "^2.0.18",
42
- "@smithy/middleware-endpoint": "^2.3.0",
43
- "@smithy/middleware-retry": "^2.0.26",
44
- "@smithy/middleware-serde": "^2.0.16",
45
- "@smithy/middleware-stack": "^2.0.10",
46
- "@smithy/node-config-provider": "^2.1.9",
47
- "@smithy/node-http-handler": "^2.2.2",
48
- "@smithy/protocol-http": "^3.0.12",
49
- "@smithy/smithy-client": "^2.2.1",
50
- "@smithy/types": "^2.8.0",
51
- "@smithy/url-parser": "^2.0.16",
52
- "@smithy/util-base64": "^2.0.1",
53
- "@smithy/util-body-length-browser": "^2.0.1",
54
- "@smithy/util-body-length-node": "^2.1.0",
55
- "@smithy/util-defaults-mode-browser": "^2.0.24",
56
- "@smithy/util-defaults-mode-node": "^2.0.32",
57
- "@smithy/util-endpoints": "^1.0.8",
58
- "@smithy/util-retry": "^2.0.9",
59
- "@smithy/util-utf8": "^2.0.2",
23
+ "@aws-sdk/client-sts": "3.496.0",
24
+ "@aws-sdk/core": "3.496.0",
25
+ "@aws-sdk/credential-provider-node": "3.496.0",
26
+ "@aws-sdk/middleware-host-header": "3.496.0",
27
+ "@aws-sdk/middleware-logger": "3.496.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.496.0",
29
+ "@aws-sdk/middleware-signing": "3.496.0",
30
+ "@aws-sdk/middleware-user-agent": "3.496.0",
31
+ "@aws-sdk/region-config-resolver": "3.496.0",
32
+ "@aws-sdk/types": "3.496.0",
33
+ "@aws-sdk/util-endpoints": "3.496.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.496.0",
35
+ "@aws-sdk/util-user-agent-node": "3.496.0",
36
+ "@smithy/config-resolver": "^2.1.1",
37
+ "@smithy/core": "^1.3.1",
38
+ "@smithy/fetch-http-handler": "^2.4.1",
39
+ "@smithy/hash-node": "^2.1.1",
40
+ "@smithy/invalid-dependency": "^2.1.1",
41
+ "@smithy/middleware-content-length": "^2.1.1",
42
+ "@smithy/middleware-endpoint": "^2.4.1",
43
+ "@smithy/middleware-retry": "^2.1.1",
44
+ "@smithy/middleware-serde": "^2.1.1",
45
+ "@smithy/middleware-stack": "^2.1.1",
46
+ "@smithy/node-config-provider": "^2.2.1",
47
+ "@smithy/node-http-handler": "^2.3.1",
48
+ "@smithy/protocol-http": "^3.1.1",
49
+ "@smithy/smithy-client": "^2.3.1",
50
+ "@smithy/types": "^2.9.1",
51
+ "@smithy/url-parser": "^2.1.1",
52
+ "@smithy/util-base64": "^2.1.1",
53
+ "@smithy/util-body-length-browser": "^2.1.1",
54
+ "@smithy/util-body-length-node": "^2.2.1",
55
+ "@smithy/util-defaults-mode-browser": "^2.1.1",
56
+ "@smithy/util-defaults-mode-node": "^2.1.1",
57
+ "@smithy/util-endpoints": "^1.1.1",
58
+ "@smithy/util-retry": "^2.1.1",
59
+ "@smithy/util-utf8": "^2.1.1",
60
60
  "tslib": "^2.5.0"
61
61
  },
62
62
  "devDependencies": {
63
- "@smithy/service-client-documentation-generator": "^2.0.0",
63
+ "@smithy/service-client-documentation-generator": "^2.1.1",
64
64
  "@tsconfig/node14": "1.0.3",
65
65
  "@types/node": "^14.14.31",
66
66
  "concurrently": "7.0.0",