@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
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ListRequiredTagsInput, ListRequiredTagsOutput } from "../models/models_0";
|
|
4
|
+
import { ResourceGroupsTaggingAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ResourceGroupsTaggingAPIClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListRequiredTagsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListRequiredTagsCommandInput extends ListRequiredTagsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListRequiredTagsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListRequiredTagsCommandOutput extends ListRequiredTagsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListRequiredTagsCommand_base: {
|
|
25
|
+
new (input: ListRequiredTagsCommandInput): import("@smithy/smithy-client").CommandImpl<ListRequiredTagsCommandInput, ListRequiredTagsCommandOutput, ResourceGroupsTaggingAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListRequiredTagsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListRequiredTagsCommandInput, ListRequiredTagsCommandOutput, ResourceGroupsTaggingAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Lists the required tags for supported resource types in an Amazon Web Services account.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ResourceGroupsTaggingAPIClient, ListRequiredTagsCommand } from "@aws-sdk/client-resource-groups-tagging-api"; // ES Modules import
|
|
35
|
+
* // const { ResourceGroupsTaggingAPIClient, ListRequiredTagsCommand } = require("@aws-sdk/client-resource-groups-tagging-api"); // CommonJS import
|
|
36
|
+
* // import type { ResourceGroupsTaggingAPIClientConfig } from "@aws-sdk/client-resource-groups-tagging-api";
|
|
37
|
+
* const config = {}; // type is ResourceGroupsTaggingAPIClientConfig
|
|
38
|
+
* const client = new ResourceGroupsTaggingAPIClient(config);
|
|
39
|
+
* const input = { // ListRequiredTagsInput
|
|
40
|
+
* NextToken: "STRING_VALUE",
|
|
41
|
+
* MaxResults: Number("int"),
|
|
42
|
+
* };
|
|
43
|
+
* const command = new ListRequiredTagsCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // ListRequiredTagsOutput
|
|
46
|
+
* // RequiredTags: [ // RequiredTagsForListRequiredTags
|
|
47
|
+
* // { // RequiredTag
|
|
48
|
+
* // ResourceType: "STRING_VALUE",
|
|
49
|
+
* // CloudFormationResourceTypes: [ // CloudFormationResourceTypes
|
|
50
|
+
* // "STRING_VALUE",
|
|
51
|
+
* // ],
|
|
52
|
+
* // ReportingTagKeys: [ // ReportingTagKeys
|
|
53
|
+
* // "STRING_VALUE",
|
|
54
|
+
* // ],
|
|
55
|
+
* // },
|
|
56
|
+
* // ],
|
|
57
|
+
* // NextToken: "STRING_VALUE",
|
|
58
|
+
* // };
|
|
59
|
+
*
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
62
|
+
* @param ListRequiredTagsCommandInput - {@link ListRequiredTagsCommandInput}
|
|
63
|
+
* @returns {@link ListRequiredTagsCommandOutput}
|
|
64
|
+
* @see {@link ListRequiredTagsCommandInput} for command's `input` shape.
|
|
65
|
+
* @see {@link ListRequiredTagsCommandOutput} for command's `response` shape.
|
|
66
|
+
* @see {@link ResourceGroupsTaggingAPIClientResolvedConfig | config} for ResourceGroupsTaggingAPIClient's `config` shape.
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link InternalServiceException} (server fault)
|
|
69
|
+
* <p>The request processing failed because of an unknown error, exception, or failure. You
|
|
70
|
+
* can retry the request.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
73
|
+
* <p>The request failed because of one of the following reasons:</p>
|
|
74
|
+
* <ul>
|
|
75
|
+
* <li>
|
|
76
|
+
* <p>A required parameter is missing.</p>
|
|
77
|
+
* </li>
|
|
78
|
+
* <li>
|
|
79
|
+
* <p>A provided string parameter is malformed.</p>
|
|
80
|
+
* </li>
|
|
81
|
+
* <li>
|
|
82
|
+
* <p>An provided parameter value is out of range.</p>
|
|
83
|
+
* </li>
|
|
84
|
+
* <li>
|
|
85
|
+
* <p>The target ID is invalid, unsupported, or doesn't exist.</p>
|
|
86
|
+
* </li>
|
|
87
|
+
* <li>
|
|
88
|
+
* <p>You can't access the Amazon S3 bucket for report storage. For more information, see
|
|
89
|
+
* <a href="https://docs.aws.amazon.com/tag-editor/latest/userguide/tag-policies-orgs.html#bucket-policy">Amazon S3 bucket policy for report storage</a> in the <i>Tagging Amazon Web Services resources and Tag Editor</i> user guide. </p>
|
|
90
|
+
* </li>
|
|
91
|
+
* <li>
|
|
92
|
+
* <p>The partition specified in an ARN parameter in the request doesn't match the
|
|
93
|
+
* partition where you invoked the operation. The partition is specified by the
|
|
94
|
+
* second field of the ARN.</p>
|
|
95
|
+
* </li>
|
|
96
|
+
* </ul>
|
|
97
|
+
*
|
|
98
|
+
* @throws {@link PaginationTokenExpiredException} (client fault)
|
|
99
|
+
* <p>The request failed because the specified <code>PaginationToken</code> has expired. A
|
|
100
|
+
* <code>PaginationToken</code> is valid for a maximum of 15 minutes.</p>
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link ThrottledException} (client fault)
|
|
103
|
+
* <p>The request failed because it exceeded the allowed frequency of submitted
|
|
104
|
+
* requests.</p>
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link ResourceGroupsTaggingAPIServiceException}
|
|
107
|
+
* <p>Base exception class for all service exceptions from ResourceGroupsTaggingAPI service.</p>
|
|
108
|
+
*
|
|
109
|
+
*
|
|
110
|
+
* @public
|
|
111
|
+
*/
|
|
112
|
+
export declare class ListRequiredTagsCommand extends ListRequiredTagsCommand_base {
|
|
113
|
+
/** @internal type navigation helper, not in runtime. */
|
|
114
|
+
protected static __types: {
|
|
115
|
+
api: {
|
|
116
|
+
input: ListRequiredTagsInput;
|
|
117
|
+
output: ListRequiredTagsOutput;
|
|
118
|
+
};
|
|
119
|
+
sdk: {
|
|
120
|
+
input: ListRequiredTagsCommandInput;
|
|
121
|
+
output: ListRequiredTagsCommandOutput;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
}
|
|
@@ -32,10 +32,19 @@ declare const StartReportCreationCommand_base: {
|
|
|
32
32
|
* Compliance data is refreshed daily. The report is generated asynchronously.</p>
|
|
33
33
|
* <p>The generated report is saved to the following location:</p>
|
|
34
34
|
* <p>
|
|
35
|
-
* <code>s3://
|
|
35
|
+
* <code>s3://amzn-s3-demo-bucket/AwsTagPolicies/o-exampleorgid/YYYY-MM-ddTHH:mm:ssZ/report.csv</code>
|
|
36
36
|
* </p>
|
|
37
|
+
* <p>For more information about evaluating resource compliance with tag policies, including
|
|
38
|
+
* the required permissions, review <a href="https://docs.aws.amazon.com/tag-editor/latest/userguide/tag-policies-orgs.html#tag-policies-permissions-org">Permissions for evaluating organization-wide compliance</a> in the
|
|
39
|
+
* <i>Tagging Amazon Web Services Resources and Tag Editor</i> user guide. </p>
|
|
37
40
|
* <p>You can call this operation only from the organization's
|
|
38
41
|
* management account and from the us-east-1 Region.</p>
|
|
42
|
+
* <p>If the account associated with the identity used to call
|
|
43
|
+
* <code>StartReportCreation</code> is different from the account that owns the Amazon S3
|
|
44
|
+
* bucket, there must be a bucket policy attached to the bucket to provide access. For more
|
|
45
|
+
* information, review <a href="https://docs.aws.amazon.com/tag-editor/latest/userguide/tag-policies-orgs.html#bucket-policy">Amazon S3 bucket
|
|
46
|
+
* policy for report storage</a> in the <i>Tagging Amazon Web Services Resources and Tag
|
|
47
|
+
* Editor</i> user guide.</p>
|
|
39
48
|
* @example
|
|
40
49
|
* Use a bare-bones client and the command you need to make an API call.
|
|
41
50
|
* ```javascript
|
|
@@ -60,19 +69,17 @@ declare const StartReportCreationCommand_base: {
|
|
|
60
69
|
* @see {@link ResourceGroupsTaggingAPIClientResolvedConfig | config} for ResourceGroupsTaggingAPIClient's `config` shape.
|
|
61
70
|
*
|
|
62
71
|
* @throws {@link ConcurrentModificationException} (client fault)
|
|
63
|
-
* <p>The target of the operation is currently being modified by
|
|
64
|
-
* again later.</p>
|
|
72
|
+
* <p>The request failed because the target of the operation is currently being modified by
|
|
73
|
+
* a different request. Try again later.</p>
|
|
65
74
|
*
|
|
66
75
|
* @throws {@link ConstraintViolationException} (client fault)
|
|
67
|
-
* <p>The request
|
|
76
|
+
* <p>The request failed because performing the operation would violate a constraint.</p>
|
|
68
77
|
* <p>Some of the reasons in the following list might not apply to this specific
|
|
69
78
|
* operation.</p>
|
|
70
79
|
* <ul>
|
|
71
80
|
* <li>
|
|
72
81
|
* <p>You must meet the prerequisites for using tag policies. For information, see
|
|
73
|
-
* <a href="https://docs.aws.amazon.com/
|
|
74
|
-
* <i>Organizations User Guide.</i>
|
|
75
|
-
* </p>
|
|
82
|
+
* <a href="https://docs.aws.amazon.com/tag-editor/latest/userguide/tag-policies-orgs.html#tag-policies-prereqs">Prerequisites and permissions</a> in the <i>Tagging Amazon Web Services resources and Tag Editor</i> user guide. </p>
|
|
76
83
|
* </li>
|
|
77
84
|
* <li>
|
|
78
85
|
* <p>You must enable the tag policies service principal
|
|
@@ -90,30 +97,34 @@ declare const StartReportCreationCommand_base: {
|
|
|
90
97
|
* can retry the request.</p>
|
|
91
98
|
*
|
|
92
99
|
* @throws {@link InvalidParameterException} (client fault)
|
|
93
|
-
* <p>
|
|
100
|
+
* <p>The request failed because of one of the following reasons:</p>
|
|
94
101
|
* <ul>
|
|
95
102
|
* <li>
|
|
96
|
-
* <p>A parameter is missing.</p>
|
|
103
|
+
* <p>A required parameter is missing.</p>
|
|
97
104
|
* </li>
|
|
98
105
|
* <li>
|
|
99
|
-
* <p>A
|
|
106
|
+
* <p>A provided string parameter is malformed.</p>
|
|
100
107
|
* </li>
|
|
101
108
|
* <li>
|
|
102
|
-
* <p>An
|
|
109
|
+
* <p>An provided parameter value is out of range.</p>
|
|
103
110
|
* </li>
|
|
104
111
|
* <li>
|
|
105
112
|
* <p>The target ID is invalid, unsupported, or doesn't exist.</p>
|
|
106
113
|
* </li>
|
|
107
114
|
* <li>
|
|
108
115
|
* <p>You can't access the Amazon S3 bucket for report storage. For more information, see
|
|
109
|
-
* <a href="https://docs.aws.amazon.com/
|
|
110
|
-
*
|
|
111
|
-
*
|
|
116
|
+
* <a href="https://docs.aws.amazon.com/tag-editor/latest/userguide/tag-policies-orgs.html#bucket-policy">Amazon S3 bucket policy for report storage</a> in the <i>Tagging Amazon Web Services resources and Tag Editor</i> user guide. </p>
|
|
117
|
+
* </li>
|
|
118
|
+
* <li>
|
|
119
|
+
* <p>The partition specified in an ARN parameter in the request doesn't match the
|
|
120
|
+
* partition where you invoked the operation. The partition is specified by the
|
|
121
|
+
* second field of the ARN.</p>
|
|
112
122
|
* </li>
|
|
113
123
|
* </ul>
|
|
114
124
|
*
|
|
115
125
|
* @throws {@link ThrottledException} (client fault)
|
|
116
|
-
* <p>The request
|
|
126
|
+
* <p>The request failed because it exceeded the allowed frequency of submitted
|
|
127
|
+
* requests.</p>
|
|
117
128
|
*
|
|
118
129
|
* @throws {@link ResourceGroupsTaggingAPIServiceException}
|
|
119
130
|
* <p>Base exception class for all service exceptions from ResourceGroupsTaggingAPI service.</p>
|
|
@@ -51,6 +51,17 @@ declare const TagResourcesCommand_base: {
|
|
|
51
51
|
* that the resource belongs to as well as permissions for adding tags. For more
|
|
52
52
|
* information, see the documentation for each service.</p>
|
|
53
53
|
* </li>
|
|
54
|
+
* <li>
|
|
55
|
+
* <p>When you use the <a href="https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/overview.html">Amazon Web Services Resource
|
|
56
|
+
* Groups Tagging API</a> to update tags for Amazon Web Services CloudFormation stack
|
|
57
|
+
* sets, Amazon Web Services calls the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_UpdateStack.html">Amazon Web Services
|
|
58
|
+
* CloudFormation <code>UpdateStack</code>
|
|
59
|
+
* </a> operation. This operation
|
|
60
|
+
* may initiate additional resource property updates in addition to the desired tag
|
|
61
|
+
* updates. To avoid unexpected resource updates, Amazon Web Services recommends that you only
|
|
62
|
+
* apply or update tags to your CloudFormation stack sets using Amazon Web Services
|
|
63
|
+
* CloudFormation. </p>
|
|
64
|
+
* </li>
|
|
54
65
|
* </ul>
|
|
55
66
|
* <important>
|
|
56
67
|
* <p>Do not store personally identifiable information (PII) or other confidential or
|
|
@@ -68,7 +79,7 @@ declare const TagResourcesCommand_base: {
|
|
|
68
79
|
* <ul>
|
|
69
80
|
* <li>
|
|
70
81
|
* <p>
|
|
71
|
-
* <code>tag:
|
|
82
|
+
* <code>tag:TagResources</code>
|
|
72
83
|
* </p>
|
|
73
84
|
* </li>
|
|
74
85
|
* <li>
|
|
@@ -77,6 +88,13 @@ declare const TagResourcesCommand_base: {
|
|
|
77
88
|
* </p>
|
|
78
89
|
* </li>
|
|
79
90
|
* </ul>
|
|
91
|
+
* <note>
|
|
92
|
+
* <p>In addition, some services might have specific requirements for tagging some types
|
|
93
|
+
* of resources. For example, to tag an Amazon S3 bucket, you must also have the
|
|
94
|
+
* <code>s3:GetBucketTagging</code> permission. If the expected minimum permissions
|
|
95
|
+
* don't work, check the documentation for that service's tagging APIs for more
|
|
96
|
+
* information.</p>
|
|
97
|
+
* </note>
|
|
80
98
|
* @example
|
|
81
99
|
* Use a bare-bones client and the command you need to make an API call.
|
|
82
100
|
* ```javascript
|
|
@@ -118,30 +136,34 @@ declare const TagResourcesCommand_base: {
|
|
|
118
136
|
* can retry the request.</p>
|
|
119
137
|
*
|
|
120
138
|
* @throws {@link InvalidParameterException} (client fault)
|
|
121
|
-
* <p>
|
|
139
|
+
* <p>The request failed because of one of the following reasons:</p>
|
|
122
140
|
* <ul>
|
|
123
141
|
* <li>
|
|
124
|
-
* <p>A parameter is missing.</p>
|
|
142
|
+
* <p>A required parameter is missing.</p>
|
|
125
143
|
* </li>
|
|
126
144
|
* <li>
|
|
127
|
-
* <p>A
|
|
145
|
+
* <p>A provided string parameter is malformed.</p>
|
|
128
146
|
* </li>
|
|
129
147
|
* <li>
|
|
130
|
-
* <p>An
|
|
148
|
+
* <p>An provided parameter value is out of range.</p>
|
|
131
149
|
* </li>
|
|
132
150
|
* <li>
|
|
133
151
|
* <p>The target ID is invalid, unsupported, or doesn't exist.</p>
|
|
134
152
|
* </li>
|
|
135
153
|
* <li>
|
|
136
154
|
* <p>You can't access the Amazon S3 bucket for report storage. For more information, see
|
|
137
|
-
* <a href="https://docs.aws.amazon.com/
|
|
138
|
-
*
|
|
139
|
-
*
|
|
155
|
+
* <a href="https://docs.aws.amazon.com/tag-editor/latest/userguide/tag-policies-orgs.html#bucket-policy">Amazon S3 bucket policy for report storage</a> in the <i>Tagging Amazon Web Services resources and Tag Editor</i> user guide. </p>
|
|
156
|
+
* </li>
|
|
157
|
+
* <li>
|
|
158
|
+
* <p>The partition specified in an ARN parameter in the request doesn't match the
|
|
159
|
+
* partition where you invoked the operation. The partition is specified by the
|
|
160
|
+
* second field of the ARN.</p>
|
|
140
161
|
* </li>
|
|
141
162
|
* </ul>
|
|
142
163
|
*
|
|
143
164
|
* @throws {@link ThrottledException} (client fault)
|
|
144
|
-
* <p>The request
|
|
165
|
+
* <p>The request failed because it exceeded the allowed frequency of submitted
|
|
166
|
+
* requests.</p>
|
|
145
167
|
*
|
|
146
168
|
* @throws {@link ResourceGroupsTaggingAPIServiceException}
|
|
147
169
|
* <p>Base exception class for all service exceptions from ResourceGroupsTaggingAPI service.</p>
|
|
@@ -54,7 +54,7 @@ declare const UntagResourcesCommand_base: {
|
|
|
54
54
|
* <ul>
|
|
55
55
|
* <li>
|
|
56
56
|
* <p>
|
|
57
|
-
* <code>tag:
|
|
57
|
+
* <code>tag:UntagResources</code>
|
|
58
58
|
* </p>
|
|
59
59
|
* </li>
|
|
60
60
|
* <li>
|
|
@@ -63,6 +63,13 @@ declare const UntagResourcesCommand_base: {
|
|
|
63
63
|
* </p>
|
|
64
64
|
* </li>
|
|
65
65
|
* </ul>
|
|
66
|
+
* <note>
|
|
67
|
+
* <p>In addition, some services might have specific requirements for untagging some
|
|
68
|
+
* types of resources. For example, to untag Amazon Web Services Glue Connection, you must also have the
|
|
69
|
+
* <code>glue:GetConnection</code> permission. If the expected minimum permissions
|
|
70
|
+
* don't work, check the documentation for that service's tagging APIs for more
|
|
71
|
+
* information.</p>
|
|
72
|
+
* </note>
|
|
66
73
|
* @example
|
|
67
74
|
* Use a bare-bones client and the command you need to make an API call.
|
|
68
75
|
* ```javascript
|
|
@@ -104,30 +111,34 @@ declare const UntagResourcesCommand_base: {
|
|
|
104
111
|
* can retry the request.</p>
|
|
105
112
|
*
|
|
106
113
|
* @throws {@link InvalidParameterException} (client fault)
|
|
107
|
-
* <p>
|
|
114
|
+
* <p>The request failed because of one of the following reasons:</p>
|
|
108
115
|
* <ul>
|
|
109
116
|
* <li>
|
|
110
|
-
* <p>A parameter is missing.</p>
|
|
117
|
+
* <p>A required parameter is missing.</p>
|
|
111
118
|
* </li>
|
|
112
119
|
* <li>
|
|
113
|
-
* <p>A
|
|
120
|
+
* <p>A provided string parameter is malformed.</p>
|
|
114
121
|
* </li>
|
|
115
122
|
* <li>
|
|
116
|
-
* <p>An
|
|
123
|
+
* <p>An provided parameter value is out of range.</p>
|
|
117
124
|
* </li>
|
|
118
125
|
* <li>
|
|
119
126
|
* <p>The target ID is invalid, unsupported, or doesn't exist.</p>
|
|
120
127
|
* </li>
|
|
121
128
|
* <li>
|
|
122
129
|
* <p>You can't access the Amazon S3 bucket for report storage. For more information, see
|
|
123
|
-
* <a href="https://docs.aws.amazon.com/
|
|
124
|
-
*
|
|
125
|
-
*
|
|
130
|
+
* <a href="https://docs.aws.amazon.com/tag-editor/latest/userguide/tag-policies-orgs.html#bucket-policy">Amazon S3 bucket policy for report storage</a> in the <i>Tagging Amazon Web Services resources and Tag Editor</i> user guide. </p>
|
|
131
|
+
* </li>
|
|
132
|
+
* <li>
|
|
133
|
+
* <p>The partition specified in an ARN parameter in the request doesn't match the
|
|
134
|
+
* partition where you invoked the operation. The partition is specified by the
|
|
135
|
+
* second field of the ARN.</p>
|
|
126
136
|
* </li>
|
|
127
137
|
* </ul>
|
|
128
138
|
*
|
|
129
139
|
* @throws {@link ThrottledException} (client fault)
|
|
130
|
-
* <p>The request
|
|
140
|
+
* <p>The request failed because it exceeded the allowed frequency of submitted
|
|
141
|
+
* requests.</p>
|
|
131
142
|
*
|
|
132
143
|
* @throws {@link ResourceGroupsTaggingAPIServiceException}
|
|
133
144
|
* <p>Base exception class for all service exceptions from ResourceGroupsTaggingAPI service.</p>
|
|
@@ -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-types/index.d.ts
CHANGED
|
@@ -10,5 +10,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
|
|
|
10
10
|
export type { ResourceGroupsTaggingAPIExtensionConfiguration } from "./extensionConfiguration";
|
|
11
11
|
export * from "./commands";
|
|
12
12
|
export * from "./pagination";
|
|
13
|
-
export * from "./models";
|
|
13
|
+
export * from "./models/enums";
|
|
14
|
+
export * from "./models/errors";
|
|
15
|
+
export type * from "./models/models_0";
|
|
14
16
|
export { ResourceGroupsTaggingAPIServiceException } from "./models/ResourceGroupsTaggingAPIServiceException";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
* @enum
|
|
4
|
+
*/
|
|
5
|
+
export declare const ErrorCode: {
|
|
6
|
+
readonly INTERNAL_SERVICE_EXCEPTION: "InternalServiceException";
|
|
7
|
+
readonly INVALID_PARAMETER_EXCEPTION: "InvalidParameterException";
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export type ErrorCode = (typeof ErrorCode)[keyof typeof ErrorCode];
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
* @enum
|
|
16
|
+
*/
|
|
17
|
+
export declare const GroupByAttribute: {
|
|
18
|
+
readonly REGION: "REGION";
|
|
19
|
+
readonly RESOURCE_TYPE: "RESOURCE_TYPE";
|
|
20
|
+
readonly TARGET_ID: "TARGET_ID";
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export type GroupByAttribute = (typeof GroupByAttribute)[keyof typeof GroupByAttribute];
|
|
26
|
+
/**
|
|
27
|
+
* @public
|
|
28
|
+
* @enum
|
|
29
|
+
*/
|
|
30
|
+
export declare const TargetIdType: {
|
|
31
|
+
readonly ACCOUNT: "ACCOUNT";
|
|
32
|
+
readonly OU: "OU";
|
|
33
|
+
readonly ROOT: "ROOT";
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
export type TargetIdType = (typeof TargetIdType)[keyof typeof TargetIdType];
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import { ResourceGroupsTaggingAPIServiceException as __BaseException } from "./ResourceGroupsTaggingAPIServiceException";
|
|
3
|
+
/**
|
|
4
|
+
* <p>The request failed because the target of the operation is currently being modified by
|
|
5
|
+
* a different request. Try again later.</p>
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare class ConcurrentModificationException extends __BaseException {
|
|
9
|
+
readonly name: "ConcurrentModificationException";
|
|
10
|
+
readonly $fault: "client";
|
|
11
|
+
Message?: string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
constructor(opts: __ExceptionOptionType<ConcurrentModificationException, __BaseException>);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* <p>The request failed because performing the operation would violate a constraint.</p>
|
|
19
|
+
* <p>Some of the reasons in the following list might not apply to this specific
|
|
20
|
+
* operation.</p>
|
|
21
|
+
* <ul>
|
|
22
|
+
* <li>
|
|
23
|
+
* <p>You must meet the prerequisites for using tag policies. For information, see
|
|
24
|
+
* <a href="https://docs.aws.amazon.com/tag-editor/latest/userguide/tag-policies-orgs.html#tag-policies-prereqs">Prerequisites and permissions</a> in the <i>Tagging Amazon Web Services resources and Tag Editor</i> user guide. </p>
|
|
25
|
+
* </li>
|
|
26
|
+
* <li>
|
|
27
|
+
* <p>You must enable the tag policies service principal
|
|
28
|
+
* (<code>tagpolicies.tag.amazonaws.com</code>) to integrate with Organizations For
|
|
29
|
+
* information, see <a href="https://docs.aws.amazon.com/organizations/latest/APIReference/API_EnableAWSServiceAccess.html">EnableAWSServiceAccess</a>.</p>
|
|
30
|
+
* </li>
|
|
31
|
+
* <li>
|
|
32
|
+
* <p>You must have a tag policy attached to the organization root, an OU, or an
|
|
33
|
+
* account.</p>
|
|
34
|
+
* </li>
|
|
35
|
+
* </ul>
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
export declare class ConstraintViolationException extends __BaseException {
|
|
39
|
+
readonly name: "ConstraintViolationException";
|
|
40
|
+
readonly $fault: "client";
|
|
41
|
+
Message?: string | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* @internal
|
|
44
|
+
*/
|
|
45
|
+
constructor(opts: __ExceptionOptionType<ConstraintViolationException, __BaseException>);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* <p>The request processing failed because of an unknown error, exception, or failure. You
|
|
49
|
+
* can retry the request.</p>
|
|
50
|
+
* @public
|
|
51
|
+
*/
|
|
52
|
+
export declare class InternalServiceException extends __BaseException {
|
|
53
|
+
readonly name: "InternalServiceException";
|
|
54
|
+
readonly $fault: "server";
|
|
55
|
+
Message?: string | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* @internal
|
|
58
|
+
*/
|
|
59
|
+
constructor(opts: __ExceptionOptionType<InternalServiceException, __BaseException>);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* <p>The request failed because of one of the following reasons:</p>
|
|
63
|
+
* <ul>
|
|
64
|
+
* <li>
|
|
65
|
+
* <p>A required parameter is missing.</p>
|
|
66
|
+
* </li>
|
|
67
|
+
* <li>
|
|
68
|
+
* <p>A provided string parameter is malformed.</p>
|
|
69
|
+
* </li>
|
|
70
|
+
* <li>
|
|
71
|
+
* <p>An provided parameter value is out of range.</p>
|
|
72
|
+
* </li>
|
|
73
|
+
* <li>
|
|
74
|
+
* <p>The target ID is invalid, unsupported, or doesn't exist.</p>
|
|
75
|
+
* </li>
|
|
76
|
+
* <li>
|
|
77
|
+
* <p>You can't access the Amazon S3 bucket for report storage. For more information, see
|
|
78
|
+
* <a href="https://docs.aws.amazon.com/tag-editor/latest/userguide/tag-policies-orgs.html#bucket-policy">Amazon S3 bucket policy for report storage</a> in the <i>Tagging Amazon Web Services resources and Tag Editor</i> user guide. </p>
|
|
79
|
+
* </li>
|
|
80
|
+
* <li>
|
|
81
|
+
* <p>The partition specified in an ARN parameter in the request doesn't match the
|
|
82
|
+
* partition where you invoked the operation. The partition is specified by the
|
|
83
|
+
* second field of the ARN.</p>
|
|
84
|
+
* </li>
|
|
85
|
+
* </ul>
|
|
86
|
+
* @public
|
|
87
|
+
*/
|
|
88
|
+
export declare class InvalidParameterException extends __BaseException {
|
|
89
|
+
readonly name: "InvalidParameterException";
|
|
90
|
+
readonly $fault: "client";
|
|
91
|
+
Message?: string | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* @internal
|
|
94
|
+
*/
|
|
95
|
+
constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* <p>The request failed because it exceeded the allowed frequency of submitted
|
|
99
|
+
* requests.</p>
|
|
100
|
+
* @public
|
|
101
|
+
*/
|
|
102
|
+
export declare class ThrottledException extends __BaseException {
|
|
103
|
+
readonly name: "ThrottledException";
|
|
104
|
+
readonly $fault: "client";
|
|
105
|
+
Message?: string | undefined;
|
|
106
|
+
/**
|
|
107
|
+
* @internal
|
|
108
|
+
*/
|
|
109
|
+
constructor(opts: __ExceptionOptionType<ThrottledException, __BaseException>);
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* <p>The request failed because the specified <code>PaginationToken</code> has expired. A
|
|
113
|
+
* <code>PaginationToken</code> is valid for a maximum of 15 minutes.</p>
|
|
114
|
+
* @public
|
|
115
|
+
*/
|
|
116
|
+
export declare class PaginationTokenExpiredException extends __BaseException {
|
|
117
|
+
readonly name: "PaginationTokenExpiredException";
|
|
118
|
+
readonly $fault: "client";
|
|
119
|
+
Message?: string | undefined;
|
|
120
|
+
/**
|
|
121
|
+
* @internal
|
|
122
|
+
*/
|
|
123
|
+
constructor(opts: __ExceptionOptionType<PaginationTokenExpiredException, __BaseException>);
|
|
124
|
+
}
|