@aws-sdk/client-resource-groups-tagging-api 3.933.0 → 3.935.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/README.md +18 -7
- package/dist-cjs/index.js +117 -24
- package/dist-es/ResourceGroupsTaggingAPI.js +2 -0
- package/dist-es/commands/ListRequiredTagsCommand.js +16 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/index.js +2 -1
- package/dist-es/models/enums.js +14 -0
- package/dist-es/models/errors.js +85 -0
- package/dist-es/models/models_0.js +1 -99
- package/dist-es/pagination/ListRequiredTagsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/schemas/schemas_0.js +88 -11
- package/dist-types/ResourceGroupsTaggingAPI.d.ts +8 -0
- package/dist-types/ResourceGroupsTaggingAPIClient.d.ts +3 -2
- package/dist-types/commands/DescribeReportCreationCommand.d.ts +14 -12
- package/dist-types/commands/GetComplianceSummaryCommand.d.ts +14 -12
- package/dist-types/commands/GetResourcesCommand.d.ts +21 -11
- package/dist-types/commands/GetTagKeysCommand.d.ts +14 -10
- package/dist-types/commands/GetTagValuesCommand.d.ts +14 -10
- package/dist-types/commands/ListRequiredTagsCommand.d.ts +124 -0
- package/dist-types/commands/StartReportCreationCommand.d.ts +26 -15
- package/dist-types/commands/TagResourcesCommand.d.ts +31 -9
- package/dist-types/commands/UntagResourcesCommand.d.ts +20 -9
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/index.d.ts +3 -1
- package/dist-types/models/enums.d.ts +38 -0
- package/dist-types/models/errors.d.ts +124 -0
- package/dist-types/models/models_0.d.ts +99 -175
- package/dist-types/pagination/ListRequiredTagsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +7 -0
- package/dist-types/ts3.4/ResourceGroupsTaggingAPI.d.ts +18 -0
- package/dist-types/ts3.4/ResourceGroupsTaggingAPIClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/ListRequiredTagsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/index.d.ts +3 -1
- package/dist-types/ts3.4/models/enums.d.ts +18 -0
- package/dist-types/ts3.4/models/errors.d.ts +54 -0
- package/dist-types/ts3.4/models/models_0.d.ts +14 -72
- package/dist-types/ts3.4/pagination/ListRequiredTagsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +7 -0
- package/package.json +12 -12
- package/dist-es/models/index.js +0 -1
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/ts3.4/models/index.d.ts +0 -1
package/README.md
CHANGED
|
@@ -23,16 +23,19 @@ using your favorite package manager:
|
|
|
23
23
|
|
|
24
24
|
The AWS SDK is modulized by clients and commands.
|
|
25
25
|
To send a request, you only need to import the `ResourceGroupsTaggingAPIClient` and
|
|
26
|
-
the commands you need, for example `
|
|
26
|
+
the commands you need, for example `ListRequiredTagsCommand`:
|
|
27
27
|
|
|
28
28
|
```js
|
|
29
29
|
// ES5 example
|
|
30
|
-
const {
|
|
30
|
+
const {
|
|
31
|
+
ResourceGroupsTaggingAPIClient,
|
|
32
|
+
ListRequiredTagsCommand,
|
|
33
|
+
} = require("@aws-sdk/client-resource-groups-tagging-api");
|
|
31
34
|
```
|
|
32
35
|
|
|
33
36
|
```ts
|
|
34
37
|
// ES6+ example
|
|
35
|
-
import { ResourceGroupsTaggingAPIClient,
|
|
38
|
+
import { ResourceGroupsTaggingAPIClient, ListRequiredTagsCommand } from "@aws-sdk/client-resource-groups-tagging-api";
|
|
36
39
|
```
|
|
37
40
|
|
|
38
41
|
### Usage
|
|
@@ -51,7 +54,7 @@ const client = new ResourceGroupsTaggingAPIClient({ region: "REGION" });
|
|
|
51
54
|
const params = {
|
|
52
55
|
/** input parameters */
|
|
53
56
|
};
|
|
54
|
-
const command = new
|
|
57
|
+
const command = new ListRequiredTagsCommand(params);
|
|
55
58
|
```
|
|
56
59
|
|
|
57
60
|
#### Async/await
|
|
@@ -130,7 +133,7 @@ const client = new AWS.ResourceGroupsTaggingAPI({ region: "REGION" });
|
|
|
130
133
|
|
|
131
134
|
// async/await.
|
|
132
135
|
try {
|
|
133
|
-
const data = await client.
|
|
136
|
+
const data = await client.listRequiredTags(params);
|
|
134
137
|
// process data.
|
|
135
138
|
} catch (error) {
|
|
136
139
|
// error handling.
|
|
@@ -138,7 +141,7 @@ try {
|
|
|
138
141
|
|
|
139
142
|
// Promises.
|
|
140
143
|
client
|
|
141
|
-
.
|
|
144
|
+
.listRequiredTags(params)
|
|
142
145
|
.then((data) => {
|
|
143
146
|
// process data.
|
|
144
147
|
})
|
|
@@ -147,7 +150,7 @@ client
|
|
|
147
150
|
});
|
|
148
151
|
|
|
149
152
|
// callbacks.
|
|
150
|
-
client.
|
|
153
|
+
client.listRequiredTags(params, (err, data) => {
|
|
151
154
|
// process err and data.
|
|
152
155
|
});
|
|
153
156
|
```
|
|
@@ -242,6 +245,14 @@ GetTagValues
|
|
|
242
245
|
|
|
243
246
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resource-groups-tagging-api/command/GetTagValuesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-groups-tagging-api/Interface/GetTagValuesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-groups-tagging-api/Interface/GetTagValuesCommandOutput/)
|
|
244
247
|
|
|
248
|
+
</details>
|
|
249
|
+
<details>
|
|
250
|
+
<summary>
|
|
251
|
+
ListRequiredTags
|
|
252
|
+
</summary>
|
|
253
|
+
|
|
254
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resource-groups-tagging-api/command/ListRequiredTagsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-groups-tagging-api/Interface/ListRequiredTagsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-groups-tagging-api/Interface/ListRequiredTagsCommandOutput/)
|
|
255
|
+
|
|
245
256
|
</details>
|
|
246
257
|
<details>
|
|
247
258
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -187,20 +187,6 @@ let ThrottledException$1 = class ThrottledException extends ResourceGroupsTaggin
|
|
|
187
187
|
this.Message = opts.Message;
|
|
188
188
|
}
|
|
189
189
|
};
|
|
190
|
-
const ErrorCode = {
|
|
191
|
-
INTERNAL_SERVICE_EXCEPTION: "InternalServiceException",
|
|
192
|
-
INVALID_PARAMETER_EXCEPTION: "InvalidParameterException",
|
|
193
|
-
};
|
|
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",
|
|
203
|
-
};
|
|
204
190
|
let PaginationTokenExpiredException$1 = class PaginationTokenExpiredException extends ResourceGroupsTaggingAPIServiceException$1 {
|
|
205
191
|
name = "PaginationTokenExpiredException";
|
|
206
192
|
$fault = "client";
|
|
@@ -217,6 +203,7 @@ let PaginationTokenExpiredException$1 = class PaginationTokenExpiredException ex
|
|
|
217
203
|
};
|
|
218
204
|
|
|
219
205
|
const _CD = "ComplianceDetails";
|
|
206
|
+
const _CFRT = "CloudFormationResourceTypes";
|
|
220
207
|
const _CME = "ConcurrentModificationException";
|
|
221
208
|
const _CS = "ComplianceStatus";
|
|
222
209
|
const _CVE = "ConstraintViolationException";
|
|
@@ -246,11 +233,15 @@ const _IPE = "InvalidParameterException";
|
|
|
246
233
|
const _ISE = "InternalServiceException";
|
|
247
234
|
const _K = "Key";
|
|
248
235
|
const _KWNV = "KeysWithNoncompliantValues";
|
|
236
|
+
const _LRT = "ListRequiredTags";
|
|
237
|
+
const _LRTI = "ListRequiredTagsInput";
|
|
238
|
+
const _LRTO = "ListRequiredTagsOutput";
|
|
249
239
|
const _LU = "LastUpdated";
|
|
250
240
|
const _M = "Message";
|
|
251
241
|
const _MR = "MaxResults";
|
|
252
242
|
const _NCR = "NonCompliantResources";
|
|
253
243
|
const _NK = "NoncompliantKeys";
|
|
244
|
+
const _NT = "NextToken";
|
|
254
245
|
const _PT = "PaginationToken";
|
|
255
246
|
const _PTEE = "PaginationTokenExpiredException";
|
|
256
247
|
const _R = "Region";
|
|
@@ -258,10 +249,14 @@ const _RARN = "ResourceARN";
|
|
|
258
249
|
const _RARNL = "ResourceARNList";
|
|
259
250
|
const _RF = "RegionFilters";
|
|
260
251
|
const _RPP = "ResourcesPerPage";
|
|
261
|
-
const _RT = "
|
|
252
|
+
const _RT = "RequiredTags";
|
|
262
253
|
const _RTF = "ResourceTypeFilters";
|
|
254
|
+
const _RTFLRT = "RequiredTagsForListRequiredTags";
|
|
255
|
+
const _RTK = "ReportingTagKeys";
|
|
263
256
|
const _RTM = "ResourceTagMapping";
|
|
264
257
|
const _RTML = "ResourceTagMappingList";
|
|
258
|
+
const _RTe = "RequiredTag";
|
|
259
|
+
const _RTes = "ResourceType";
|
|
265
260
|
const _S = "Status";
|
|
266
261
|
const _SB = "S3Bucket";
|
|
267
262
|
const _SC = "StatusCode";
|
|
@@ -296,6 +291,7 @@ const _V = "Value";
|
|
|
296
291
|
const _Va = "Values";
|
|
297
292
|
const _c = "client";
|
|
298
293
|
const _e = "error";
|
|
294
|
+
const _h = "http";
|
|
299
295
|
const _s = "server";
|
|
300
296
|
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.resourcegroupstaggingapi";
|
|
301
297
|
const n0 = "com.amazonaws.resourcegroupstaggingapi";
|
|
@@ -376,6 +372,15 @@ var InvalidParameterException = [
|
|
|
376
372
|
[0],
|
|
377
373
|
];
|
|
378
374
|
schema.TypeRegistry.for(n0).registerError(InvalidParameterException, InvalidParameterException$1);
|
|
375
|
+
var ListRequiredTagsInput = [3, n0, _LRTI, 0, [_NT, _MR], [0, 1]];
|
|
376
|
+
var ListRequiredTagsOutput = [
|
|
377
|
+
3,
|
|
378
|
+
n0,
|
|
379
|
+
_LRTO,
|
|
380
|
+
0,
|
|
381
|
+
[_RT, _NT],
|
|
382
|
+
[() => RequiredTagsForListRequiredTags, 0],
|
|
383
|
+
];
|
|
379
384
|
var PaginationTokenExpiredException = [
|
|
380
385
|
-3,
|
|
381
386
|
n0,
|
|
@@ -387,6 +392,7 @@ var PaginationTokenExpiredException = [
|
|
|
387
392
|
[0],
|
|
388
393
|
];
|
|
389
394
|
schema.TypeRegistry.for(n0).registerError(PaginationTokenExpiredException, PaginationTokenExpiredException$1);
|
|
395
|
+
var RequiredTag = [3, n0, _RTe, 0, [_RTes, _CFRT, _RTK], [0, 64 | 0, 64 | 0]];
|
|
390
396
|
var ResourceTagMapping = [
|
|
391
397
|
3,
|
|
392
398
|
n0,
|
|
@@ -397,7 +403,7 @@ var ResourceTagMapping = [
|
|
|
397
403
|
];
|
|
398
404
|
var StartReportCreationInput = [3, n0, _SRCI, 0, [_SB], [0]];
|
|
399
405
|
var StartReportCreationOutput = [3, n0, _SRCO, 0, [], []];
|
|
400
|
-
var Summary = [3, n0, _Su, 0, [_LU, _TI, _TIT, _R,
|
|
406
|
+
var Summary = [3, n0, _Su, 0, [_LU, _TI, _TIT, _R, _RTes, _NCR], [0, 0, 0, 0, 0, 1]];
|
|
401
407
|
var Tag = [3, n0, _Ta, 0, [_K, _V], [0, 0]];
|
|
402
408
|
var TagFilter = [3, n0, _TFa, 0, [_K, _Va], [0, 64 | 0]];
|
|
403
409
|
var TagResourcesInput = [3, n0, _TRI, 0, [_RARNL, _T], [64 | 0, 128 | 0]];
|
|
@@ -424,6 +430,7 @@ var ResourceGroupsTaggingAPIServiceException = [
|
|
|
424
430
|
[],
|
|
425
431
|
];
|
|
426
432
|
schema.TypeRegistry.for(_sm).registerError(ResourceGroupsTaggingAPIServiceException, ResourceGroupsTaggingAPIServiceException$1);
|
|
433
|
+
var RequiredTagsForListRequiredTags = [1, n0, _RTFLRT, 0, () => RequiredTag];
|
|
427
434
|
var ResourceTagMappingList = [1, n0, _RTML, 0, () => ResourceTagMapping];
|
|
428
435
|
var SummaryList = [1, n0, _SLu, 0, () => Summary];
|
|
429
436
|
var TagFilterList = [1, n0, _TFL, 0, () => TagFilter];
|
|
@@ -433,7 +440,9 @@ var DescribeReportCreation = [
|
|
|
433
440
|
9,
|
|
434
441
|
n0,
|
|
435
442
|
_DRC,
|
|
436
|
-
|
|
443
|
+
{
|
|
444
|
+
[_h]: ["POST", "/DescribeReportCreation", 200],
|
|
445
|
+
},
|
|
437
446
|
() => DescribeReportCreationInput,
|
|
438
447
|
() => DescribeReportCreationOutput,
|
|
439
448
|
];
|
|
@@ -441,27 +450,79 @@ var GetComplianceSummary = [
|
|
|
441
450
|
9,
|
|
442
451
|
n0,
|
|
443
452
|
_GCS,
|
|
444
|
-
|
|
453
|
+
{
|
|
454
|
+
[_h]: ["POST", "/GetComplianceSummary", 200],
|
|
455
|
+
},
|
|
445
456
|
() => GetComplianceSummaryInput,
|
|
446
457
|
() => GetComplianceSummaryOutput,
|
|
447
458
|
];
|
|
448
|
-
var GetResources = [
|
|
449
|
-
|
|
450
|
-
|
|
459
|
+
var GetResources = [
|
|
460
|
+
9,
|
|
461
|
+
n0,
|
|
462
|
+
_GR,
|
|
463
|
+
{
|
|
464
|
+
[_h]: ["POST", "/GetResources", 200],
|
|
465
|
+
},
|
|
466
|
+
() => GetResourcesInput,
|
|
467
|
+
() => GetResourcesOutput,
|
|
468
|
+
];
|
|
469
|
+
var GetTagKeys = [
|
|
470
|
+
9,
|
|
471
|
+
n0,
|
|
472
|
+
_GTK,
|
|
473
|
+
{
|
|
474
|
+
[_h]: ["POST", "/GetTagKeys", 200],
|
|
475
|
+
},
|
|
476
|
+
() => GetTagKeysInput,
|
|
477
|
+
() => GetTagKeysOutput,
|
|
478
|
+
];
|
|
479
|
+
var GetTagValues = [
|
|
480
|
+
9,
|
|
481
|
+
n0,
|
|
482
|
+
_GTV,
|
|
483
|
+
{
|
|
484
|
+
[_h]: ["POST", "/GetTagValues", 200],
|
|
485
|
+
},
|
|
486
|
+
() => GetTagValuesInput,
|
|
487
|
+
() => GetTagValuesOutput,
|
|
488
|
+
];
|
|
489
|
+
var ListRequiredTags = [
|
|
490
|
+
9,
|
|
491
|
+
n0,
|
|
492
|
+
_LRT,
|
|
493
|
+
{
|
|
494
|
+
[_h]: ["POST", "/ListRequiredTags", 200],
|
|
495
|
+
},
|
|
496
|
+
() => ListRequiredTagsInput,
|
|
497
|
+
() => ListRequiredTagsOutput,
|
|
498
|
+
];
|
|
451
499
|
var StartReportCreation = [
|
|
452
500
|
9,
|
|
453
501
|
n0,
|
|
454
502
|
_SRC,
|
|
455
|
-
|
|
503
|
+
{
|
|
504
|
+
[_h]: ["POST", "/StartReportCreation", 200],
|
|
505
|
+
},
|
|
456
506
|
() => StartReportCreationInput,
|
|
457
507
|
() => StartReportCreationOutput,
|
|
458
508
|
];
|
|
459
|
-
var TagResources = [
|
|
509
|
+
var TagResources = [
|
|
510
|
+
9,
|
|
511
|
+
n0,
|
|
512
|
+
_TR,
|
|
513
|
+
{
|
|
514
|
+
[_h]: ["POST", "/TagResources", 200],
|
|
515
|
+
},
|
|
516
|
+
() => TagResourcesInput,
|
|
517
|
+
() => TagResourcesOutput,
|
|
518
|
+
];
|
|
460
519
|
var UntagResources = [
|
|
461
520
|
9,
|
|
462
521
|
n0,
|
|
463
522
|
_UR,
|
|
464
|
-
|
|
523
|
+
{
|
|
524
|
+
[_h]: ["POST", "/UntagResources", 200],
|
|
525
|
+
},
|
|
465
526
|
() => UntagResourcesInput,
|
|
466
527
|
() => UntagResourcesOutput,
|
|
467
528
|
];
|
|
@@ -526,6 +587,18 @@ class GetTagValuesCommand extends smithyClient.Command
|
|
|
526
587
|
.build() {
|
|
527
588
|
}
|
|
528
589
|
|
|
590
|
+
class ListRequiredTagsCommand extends smithyClient.Command
|
|
591
|
+
.classBuilder()
|
|
592
|
+
.ep(commonParams)
|
|
593
|
+
.m(function (Command, cs, config, o) {
|
|
594
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
595
|
+
})
|
|
596
|
+
.s("ResourceGroupsTaggingAPI_20170126", "ListRequiredTags", {})
|
|
597
|
+
.n("ResourceGroupsTaggingAPIClient", "ListRequiredTagsCommand")
|
|
598
|
+
.sc(ListRequiredTags)
|
|
599
|
+
.build() {
|
|
600
|
+
}
|
|
601
|
+
|
|
529
602
|
class StartReportCreationCommand extends smithyClient.Command
|
|
530
603
|
.classBuilder()
|
|
531
604
|
.ep(commonParams)
|
|
@@ -568,6 +641,7 @@ const commands = {
|
|
|
568
641
|
GetResourcesCommand,
|
|
569
642
|
GetTagKeysCommand,
|
|
570
643
|
GetTagValuesCommand,
|
|
644
|
+
ListRequiredTagsCommand,
|
|
571
645
|
StartReportCreationCommand,
|
|
572
646
|
TagResourcesCommand,
|
|
573
647
|
UntagResourcesCommand,
|
|
@@ -584,6 +658,23 @@ const paginateGetTagKeys = core.createPaginator(ResourceGroupsTaggingAPIClient,
|
|
|
584
658
|
|
|
585
659
|
const paginateGetTagValues = core.createPaginator(ResourceGroupsTaggingAPIClient, GetTagValuesCommand, "PaginationToken", "PaginationToken", "");
|
|
586
660
|
|
|
661
|
+
const paginateListRequiredTags = core.createPaginator(ResourceGroupsTaggingAPIClient, ListRequiredTagsCommand, "NextToken", "NextToken", "MaxResults");
|
|
662
|
+
|
|
663
|
+
const ErrorCode = {
|
|
664
|
+
INTERNAL_SERVICE_EXCEPTION: "InternalServiceException",
|
|
665
|
+
INVALID_PARAMETER_EXCEPTION: "InvalidParameterException",
|
|
666
|
+
};
|
|
667
|
+
const GroupByAttribute = {
|
|
668
|
+
REGION: "REGION",
|
|
669
|
+
RESOURCE_TYPE: "RESOURCE_TYPE",
|
|
670
|
+
TARGET_ID: "TARGET_ID",
|
|
671
|
+
};
|
|
672
|
+
const TargetIdType = {
|
|
673
|
+
ACCOUNT: "ACCOUNT",
|
|
674
|
+
OU: "OU",
|
|
675
|
+
ROOT: "ROOT",
|
|
676
|
+
};
|
|
677
|
+
|
|
587
678
|
Object.defineProperty(exports, "$Command", {
|
|
588
679
|
enumerable: true,
|
|
589
680
|
get: function () { return smithyClient.Command; }
|
|
@@ -603,6 +694,7 @@ exports.GetTagValuesCommand = GetTagValuesCommand;
|
|
|
603
694
|
exports.GroupByAttribute = GroupByAttribute;
|
|
604
695
|
exports.InternalServiceException = InternalServiceException$1;
|
|
605
696
|
exports.InvalidParameterException = InvalidParameterException$1;
|
|
697
|
+
exports.ListRequiredTagsCommand = ListRequiredTagsCommand;
|
|
606
698
|
exports.PaginationTokenExpiredException = PaginationTokenExpiredException$1;
|
|
607
699
|
exports.ResourceGroupsTaggingAPI = ResourceGroupsTaggingAPI;
|
|
608
700
|
exports.ResourceGroupsTaggingAPIClient = ResourceGroupsTaggingAPIClient;
|
|
@@ -616,3 +708,4 @@ exports.paginateGetComplianceSummary = paginateGetComplianceSummary;
|
|
|
616
708
|
exports.paginateGetResources = paginateGetResources;
|
|
617
709
|
exports.paginateGetTagKeys = paginateGetTagKeys;
|
|
618
710
|
exports.paginateGetTagValues = paginateGetTagValues;
|
|
711
|
+
exports.paginateListRequiredTags = paginateListRequiredTags;
|
|
@@ -4,6 +4,7 @@ import { GetComplianceSummaryCommand, } from "./commands/GetComplianceSummaryCom
|
|
|
4
4
|
import { GetResourcesCommand, } from "./commands/GetResourcesCommand";
|
|
5
5
|
import { GetTagKeysCommand } from "./commands/GetTagKeysCommand";
|
|
6
6
|
import { GetTagValuesCommand, } from "./commands/GetTagValuesCommand";
|
|
7
|
+
import { ListRequiredTagsCommand, } from "./commands/ListRequiredTagsCommand";
|
|
7
8
|
import { StartReportCreationCommand, } from "./commands/StartReportCreationCommand";
|
|
8
9
|
import { TagResourcesCommand, } from "./commands/TagResourcesCommand";
|
|
9
10
|
import { UntagResourcesCommand, } from "./commands/UntagResourcesCommand";
|
|
@@ -14,6 +15,7 @@ const commands = {
|
|
|
14
15
|
GetResourcesCommand,
|
|
15
16
|
GetTagKeysCommand,
|
|
16
17
|
GetTagValuesCommand,
|
|
18
|
+
ListRequiredTagsCommand,
|
|
17
19
|
StartReportCreationCommand,
|
|
18
20
|
TagResourcesCommand,
|
|
19
21
|
UntagResourcesCommand,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { ListRequiredTags } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ListRequiredTagsCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("ResourceGroupsTaggingAPI_20170126", "ListRequiredTags", {})
|
|
13
|
+
.n("ResourceGroupsTaggingAPIClient", "ListRequiredTagsCommand")
|
|
14
|
+
.sc(ListRequiredTags)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -3,6 +3,7 @@ export * from "./GetComplianceSummaryCommand";
|
|
|
3
3
|
export * from "./GetResourcesCommand";
|
|
4
4
|
export * from "./GetTagKeysCommand";
|
|
5
5
|
export * from "./GetTagValuesCommand";
|
|
6
|
+
export * from "./ListRequiredTagsCommand";
|
|
6
7
|
export * from "./StartReportCreationCommand";
|
|
7
8
|
export * from "./TagResourcesCommand";
|
|
8
9
|
export * from "./UntagResourcesCommand";
|
package/dist-es/index.js
CHANGED
|
@@ -2,5 +2,6 @@ export * from "./ResourceGroupsTaggingAPIClient";
|
|
|
2
2
|
export * from "./ResourceGroupsTaggingAPI";
|
|
3
3
|
export * from "./commands";
|
|
4
4
|
export * from "./pagination";
|
|
5
|
-
export * from "./models";
|
|
5
|
+
export * from "./models/enums";
|
|
6
|
+
export * from "./models/errors";
|
|
6
7
|
export { ResourceGroupsTaggingAPIServiceException } from "./models/ResourceGroupsTaggingAPIServiceException";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const ErrorCode = {
|
|
2
|
+
INTERNAL_SERVICE_EXCEPTION: "InternalServiceException",
|
|
3
|
+
INVALID_PARAMETER_EXCEPTION: "InvalidParameterException",
|
|
4
|
+
};
|
|
5
|
+
export const GroupByAttribute = {
|
|
6
|
+
REGION: "REGION",
|
|
7
|
+
RESOURCE_TYPE: "RESOURCE_TYPE",
|
|
8
|
+
TARGET_ID: "TARGET_ID",
|
|
9
|
+
};
|
|
10
|
+
export const TargetIdType = {
|
|
11
|
+
ACCOUNT: "ACCOUNT",
|
|
12
|
+
OU: "OU",
|
|
13
|
+
ROOT: "ROOT",
|
|
14
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { ResourceGroupsTaggingAPIServiceException as __BaseException } from "./ResourceGroupsTaggingAPIServiceException";
|
|
2
|
+
export class ConcurrentModificationException extends __BaseException {
|
|
3
|
+
name = "ConcurrentModificationException";
|
|
4
|
+
$fault = "client";
|
|
5
|
+
Message;
|
|
6
|
+
constructor(opts) {
|
|
7
|
+
super({
|
|
8
|
+
name: "ConcurrentModificationException",
|
|
9
|
+
$fault: "client",
|
|
10
|
+
...opts,
|
|
11
|
+
});
|
|
12
|
+
Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
|
|
13
|
+
this.Message = opts.Message;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export class ConstraintViolationException extends __BaseException {
|
|
17
|
+
name = "ConstraintViolationException";
|
|
18
|
+
$fault = "client";
|
|
19
|
+
Message;
|
|
20
|
+
constructor(opts) {
|
|
21
|
+
super({
|
|
22
|
+
name: "ConstraintViolationException",
|
|
23
|
+
$fault: "client",
|
|
24
|
+
...opts,
|
|
25
|
+
});
|
|
26
|
+
Object.setPrototypeOf(this, ConstraintViolationException.prototype);
|
|
27
|
+
this.Message = opts.Message;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export class InternalServiceException extends __BaseException {
|
|
31
|
+
name = "InternalServiceException";
|
|
32
|
+
$fault = "server";
|
|
33
|
+
Message;
|
|
34
|
+
constructor(opts) {
|
|
35
|
+
super({
|
|
36
|
+
name: "InternalServiceException",
|
|
37
|
+
$fault: "server",
|
|
38
|
+
...opts,
|
|
39
|
+
});
|
|
40
|
+
Object.setPrototypeOf(this, InternalServiceException.prototype);
|
|
41
|
+
this.Message = opts.Message;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
export class InvalidParameterException extends __BaseException {
|
|
45
|
+
name = "InvalidParameterException";
|
|
46
|
+
$fault = "client";
|
|
47
|
+
Message;
|
|
48
|
+
constructor(opts) {
|
|
49
|
+
super({
|
|
50
|
+
name: "InvalidParameterException",
|
|
51
|
+
$fault: "client",
|
|
52
|
+
...opts,
|
|
53
|
+
});
|
|
54
|
+
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
55
|
+
this.Message = opts.Message;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
export class ThrottledException extends __BaseException {
|
|
59
|
+
name = "ThrottledException";
|
|
60
|
+
$fault = "client";
|
|
61
|
+
Message;
|
|
62
|
+
constructor(opts) {
|
|
63
|
+
super({
|
|
64
|
+
name: "ThrottledException",
|
|
65
|
+
$fault: "client",
|
|
66
|
+
...opts,
|
|
67
|
+
});
|
|
68
|
+
Object.setPrototypeOf(this, ThrottledException.prototype);
|
|
69
|
+
this.Message = opts.Message;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
export class PaginationTokenExpiredException extends __BaseException {
|
|
73
|
+
name = "PaginationTokenExpiredException";
|
|
74
|
+
$fault = "client";
|
|
75
|
+
Message;
|
|
76
|
+
constructor(opts) {
|
|
77
|
+
super({
|
|
78
|
+
name: "PaginationTokenExpiredException",
|
|
79
|
+
$fault: "client",
|
|
80
|
+
...opts,
|
|
81
|
+
});
|
|
82
|
+
Object.setPrototypeOf(this, PaginationTokenExpiredException.prototype);
|
|
83
|
+
this.Message = opts.Message;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -1,99 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export class ConcurrentModificationException extends __BaseException {
|
|
3
|
-
name = "ConcurrentModificationException";
|
|
4
|
-
$fault = "client";
|
|
5
|
-
Message;
|
|
6
|
-
constructor(opts) {
|
|
7
|
-
super({
|
|
8
|
-
name: "ConcurrentModificationException",
|
|
9
|
-
$fault: "client",
|
|
10
|
-
...opts,
|
|
11
|
-
});
|
|
12
|
-
Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
|
|
13
|
-
this.Message = opts.Message;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
export class ConstraintViolationException extends __BaseException {
|
|
17
|
-
name = "ConstraintViolationException";
|
|
18
|
-
$fault = "client";
|
|
19
|
-
Message;
|
|
20
|
-
constructor(opts) {
|
|
21
|
-
super({
|
|
22
|
-
name: "ConstraintViolationException",
|
|
23
|
-
$fault: "client",
|
|
24
|
-
...opts,
|
|
25
|
-
});
|
|
26
|
-
Object.setPrototypeOf(this, ConstraintViolationException.prototype);
|
|
27
|
-
this.Message = opts.Message;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
export class InternalServiceException extends __BaseException {
|
|
31
|
-
name = "InternalServiceException";
|
|
32
|
-
$fault = "server";
|
|
33
|
-
Message;
|
|
34
|
-
constructor(opts) {
|
|
35
|
-
super({
|
|
36
|
-
name: "InternalServiceException",
|
|
37
|
-
$fault: "server",
|
|
38
|
-
...opts,
|
|
39
|
-
});
|
|
40
|
-
Object.setPrototypeOf(this, InternalServiceException.prototype);
|
|
41
|
-
this.Message = opts.Message;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
export class InvalidParameterException extends __BaseException {
|
|
45
|
-
name = "InvalidParameterException";
|
|
46
|
-
$fault = "client";
|
|
47
|
-
Message;
|
|
48
|
-
constructor(opts) {
|
|
49
|
-
super({
|
|
50
|
-
name: "InvalidParameterException",
|
|
51
|
-
$fault: "client",
|
|
52
|
-
...opts,
|
|
53
|
-
});
|
|
54
|
-
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
55
|
-
this.Message = opts.Message;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
export class ThrottledException extends __BaseException {
|
|
59
|
-
name = "ThrottledException";
|
|
60
|
-
$fault = "client";
|
|
61
|
-
Message;
|
|
62
|
-
constructor(opts) {
|
|
63
|
-
super({
|
|
64
|
-
name: "ThrottledException",
|
|
65
|
-
$fault: "client",
|
|
66
|
-
...opts,
|
|
67
|
-
});
|
|
68
|
-
Object.setPrototypeOf(this, ThrottledException.prototype);
|
|
69
|
-
this.Message = opts.Message;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
export const ErrorCode = {
|
|
73
|
-
INTERNAL_SERVICE_EXCEPTION: "InternalServiceException",
|
|
74
|
-
INVALID_PARAMETER_EXCEPTION: "InvalidParameterException",
|
|
75
|
-
};
|
|
76
|
-
export const GroupByAttribute = {
|
|
77
|
-
REGION: "REGION",
|
|
78
|
-
RESOURCE_TYPE: "RESOURCE_TYPE",
|
|
79
|
-
TARGET_ID: "TARGET_ID",
|
|
80
|
-
};
|
|
81
|
-
export const TargetIdType = {
|
|
82
|
-
ACCOUNT: "ACCOUNT",
|
|
83
|
-
OU: "OU",
|
|
84
|
-
ROOT: "ROOT",
|
|
85
|
-
};
|
|
86
|
-
export class PaginationTokenExpiredException extends __BaseException {
|
|
87
|
-
name = "PaginationTokenExpiredException";
|
|
88
|
-
$fault = "client";
|
|
89
|
-
Message;
|
|
90
|
-
constructor(opts) {
|
|
91
|
-
super({
|
|
92
|
-
name: "PaginationTokenExpiredException",
|
|
93
|
-
$fault: "client",
|
|
94
|
-
...opts,
|
|
95
|
-
});
|
|
96
|
-
Object.setPrototypeOf(this, PaginationTokenExpiredException.prototype);
|
|
97
|
-
this.Message = opts.Message;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListRequiredTagsCommand, } from "../commands/ListRequiredTagsCommand";
|
|
3
|
+
import { ResourceGroupsTaggingAPIClient } from "../ResourceGroupsTaggingAPIClient";
|
|
4
|
+
export const paginateListRequiredTags = createPaginator(ResourceGroupsTaggingAPIClient, ListRequiredTagsCommand, "NextToken", "NextToken", "MaxResults");
|