@aws-sdk/client-resource-groups-tagging-api 3.35.0 → 3.36.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.
Files changed (126) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist-cjs/ResourceGroupsTaggingAPI.js +0 -1
  3. package/dist-cjs/ResourceGroupsTaggingAPIClient.js +0 -1
  4. package/dist-cjs/commands/DescribeReportCreationCommand.js +0 -1
  5. package/dist-cjs/commands/GetComplianceSummaryCommand.js +0 -1
  6. package/dist-cjs/commands/GetResourcesCommand.js +0 -1
  7. package/dist-cjs/commands/GetTagKeysCommand.js +0 -1
  8. package/dist-cjs/commands/GetTagValuesCommand.js +0 -1
  9. package/dist-cjs/commands/StartReportCreationCommand.js +0 -1
  10. package/dist-cjs/commands/TagResourcesCommand.js +0 -1
  11. package/dist-cjs/commands/UntagResourcesCommand.js +0 -1
  12. package/dist-cjs/endpoints.js +0 -1
  13. package/dist-cjs/index.js +0 -1
  14. package/dist-cjs/models/index.js +0 -1
  15. package/dist-cjs/models/models_0.js +0 -1
  16. package/dist-cjs/pagination/GetComplianceSummaryPaginator.js +0 -1
  17. package/dist-cjs/pagination/GetResourcesPaginator.js +0 -1
  18. package/dist-cjs/pagination/GetTagKeysPaginator.js +0 -1
  19. package/dist-cjs/pagination/GetTagValuesPaginator.js +0 -1
  20. package/dist-cjs/pagination/Interfaces.js +0 -1
  21. package/dist-cjs/protocols/Aws_json1_1.js +0 -1
  22. package/dist-cjs/runtimeConfig.browser.js +2 -3
  23. package/dist-cjs/runtimeConfig.js +3 -4
  24. package/dist-cjs/runtimeConfig.native.js +0 -1
  25. package/dist-cjs/runtimeConfig.shared.js +0 -1
  26. package/dist-es/ResourceGroupsTaggingAPI.js +0 -1
  27. package/dist-es/ResourceGroupsTaggingAPIClient.js +0 -1
  28. package/dist-es/commands/DescribeReportCreationCommand.js +0 -1
  29. package/dist-es/commands/GetComplianceSummaryCommand.js +0 -1
  30. package/dist-es/commands/GetResourcesCommand.js +0 -1
  31. package/dist-es/commands/GetTagKeysCommand.js +0 -1
  32. package/dist-es/commands/GetTagValuesCommand.js +0 -1
  33. package/dist-es/commands/StartReportCreationCommand.js +0 -1
  34. package/dist-es/commands/TagResourcesCommand.js +0 -1
  35. package/dist-es/commands/UntagResourcesCommand.js +0 -1
  36. package/dist-es/endpoints.js +0 -1
  37. package/dist-es/index.js +0 -1
  38. package/dist-es/models/index.js +0 -1
  39. package/dist-es/models/models_0.js +0 -1
  40. package/dist-es/pagination/GetComplianceSummaryPaginator.js +0 -1
  41. package/dist-es/pagination/GetResourcesPaginator.js +0 -1
  42. package/dist-es/pagination/GetTagKeysPaginator.js +0 -1
  43. package/dist-es/pagination/GetTagValuesPaginator.js +0 -1
  44. package/dist-es/pagination/Interfaces.js +0 -1
  45. package/dist-es/protocols/Aws_json1_1.js +0 -1
  46. package/dist-es/runtimeConfig.browser.js +1 -2
  47. package/dist-es/runtimeConfig.js +2 -3
  48. package/dist-es/runtimeConfig.native.js +0 -1
  49. package/dist-es/runtimeConfig.shared.js +0 -1
  50. package/package.json +33 -30
  51. package/dist-cjs/ResourceGroupsTaggingAPI.js.map +0 -1
  52. package/dist-cjs/ResourceGroupsTaggingAPIClient.js.map +0 -1
  53. package/dist-cjs/commands/DescribeReportCreationCommand.js.map +0 -1
  54. package/dist-cjs/commands/GetComplianceSummaryCommand.js.map +0 -1
  55. package/dist-cjs/commands/GetResourcesCommand.js.map +0 -1
  56. package/dist-cjs/commands/GetTagKeysCommand.js.map +0 -1
  57. package/dist-cjs/commands/GetTagValuesCommand.js.map +0 -1
  58. package/dist-cjs/commands/StartReportCreationCommand.js.map +0 -1
  59. package/dist-cjs/commands/TagResourcesCommand.js.map +0 -1
  60. package/dist-cjs/commands/UntagResourcesCommand.js.map +0 -1
  61. package/dist-cjs/endpoints.js.map +0 -1
  62. package/dist-cjs/index.js.map +0 -1
  63. package/dist-cjs/models/index.js.map +0 -1
  64. package/dist-cjs/models/models_0.js.map +0 -1
  65. package/dist-cjs/pagination/GetComplianceSummaryPaginator.js.map +0 -1
  66. package/dist-cjs/pagination/GetResourcesPaginator.js.map +0 -1
  67. package/dist-cjs/pagination/GetTagKeysPaginator.js.map +0 -1
  68. package/dist-cjs/pagination/GetTagValuesPaginator.js.map +0 -1
  69. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  70. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  71. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  72. package/dist-cjs/runtimeConfig.js.map +0 -1
  73. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  74. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  75. package/dist-es/ResourceGroupsTaggingAPI.js.map +0 -1
  76. package/dist-es/ResourceGroupsTaggingAPIClient.js.map +0 -1
  77. package/dist-es/commands/DescribeReportCreationCommand.js.map +0 -1
  78. package/dist-es/commands/GetComplianceSummaryCommand.js.map +0 -1
  79. package/dist-es/commands/GetResourcesCommand.js.map +0 -1
  80. package/dist-es/commands/GetTagKeysCommand.js.map +0 -1
  81. package/dist-es/commands/GetTagValuesCommand.js.map +0 -1
  82. package/dist-es/commands/StartReportCreationCommand.js.map +0 -1
  83. package/dist-es/commands/TagResourcesCommand.js.map +0 -1
  84. package/dist-es/commands/UntagResourcesCommand.js.map +0 -1
  85. package/dist-es/endpoints.js.map +0 -1
  86. package/dist-es/index.js.map +0 -1
  87. package/dist-es/models/index.js.map +0 -1
  88. package/dist-es/models/models_0.js.map +0 -1
  89. package/dist-es/pagination/GetComplianceSummaryPaginator.js.map +0 -1
  90. package/dist-es/pagination/GetResourcesPaginator.js.map +0 -1
  91. package/dist-es/pagination/GetTagKeysPaginator.js.map +0 -1
  92. package/dist-es/pagination/GetTagValuesPaginator.js.map +0 -1
  93. package/dist-es/pagination/Interfaces.js.map +0 -1
  94. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  95. package/dist-es/runtimeConfig.browser.js.map +0 -1
  96. package/dist-es/runtimeConfig.js.map +0 -1
  97. package/dist-es/runtimeConfig.native.js.map +0 -1
  98. package/dist-es/runtimeConfig.shared.js.map +0 -1
  99. package/jest.config.js +0 -4
  100. package/src/ResourceGroupsTaggingAPI.ts +0 -386
  101. package/src/ResourceGroupsTaggingAPIClient.ts +0 -270
  102. package/src/commands/DescribeReportCreationCommand.ts +0 -101
  103. package/src/commands/GetComplianceSummaryCommand.ts +0 -111
  104. package/src/commands/GetResourcesCommand.ts +0 -122
  105. package/src/commands/GetTagKeysCommand.ts +0 -106
  106. package/src/commands/GetTagValuesCommand.ts +0 -106
  107. package/src/commands/StartReportCreationCommand.ts +0 -107
  108. package/src/commands/TagResourcesCommand.ts +0 -126
  109. package/src/commands/UntagResourcesCommand.ts +0 -114
  110. package/src/endpoints.ts +0 -57
  111. package/src/index.ts +0 -16
  112. package/src/models/index.ts +0 -1
  113. package/src/models/models_0.ts +0 -947
  114. package/src/pagination/GetComplianceSummaryPaginator.ts +0 -59
  115. package/src/pagination/GetResourcesPaginator.ts +0 -59
  116. package/src/pagination/GetTagKeysPaginator.ts +0 -54
  117. package/src/pagination/GetTagValuesPaginator.ts +0 -58
  118. package/src/pagination/Interfaces.ts +0 -8
  119. package/src/protocols/Aws_json1_1.ts +0 -1449
  120. package/src/runtimeConfig.browser.ts +0 -41
  121. package/src/runtimeConfig.native.ts +0 -17
  122. package/src/runtimeConfig.shared.ts +0 -17
  123. package/src/runtimeConfig.ts +0 -46
  124. package/tsconfig.es.json +0 -10
  125. package/tsconfig.json +0 -33
  126. package/tsconfig.types.json +0 -9
@@ -1,386 +0,0 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
-
3
- import {
4
- DescribeReportCreationCommand,
5
- DescribeReportCreationCommandInput,
6
- DescribeReportCreationCommandOutput,
7
- } from "./commands/DescribeReportCreationCommand";
8
- import {
9
- GetComplianceSummaryCommand,
10
- GetComplianceSummaryCommandInput,
11
- GetComplianceSummaryCommandOutput,
12
- } from "./commands/GetComplianceSummaryCommand";
13
- import {
14
- GetResourcesCommand,
15
- GetResourcesCommandInput,
16
- GetResourcesCommandOutput,
17
- } from "./commands/GetResourcesCommand";
18
- import { GetTagKeysCommand, GetTagKeysCommandInput, GetTagKeysCommandOutput } from "./commands/GetTagKeysCommand";
19
- import {
20
- GetTagValuesCommand,
21
- GetTagValuesCommandInput,
22
- GetTagValuesCommandOutput,
23
- } from "./commands/GetTagValuesCommand";
24
- import {
25
- StartReportCreationCommand,
26
- StartReportCreationCommandInput,
27
- StartReportCreationCommandOutput,
28
- } from "./commands/StartReportCreationCommand";
29
- import {
30
- TagResourcesCommand,
31
- TagResourcesCommandInput,
32
- TagResourcesCommandOutput,
33
- } from "./commands/TagResourcesCommand";
34
- import {
35
- UntagResourcesCommand,
36
- UntagResourcesCommandInput,
37
- UntagResourcesCommandOutput,
38
- } from "./commands/UntagResourcesCommand";
39
- import { ResourceGroupsTaggingAPIClient } from "./ResourceGroupsTaggingAPIClient";
40
-
41
- /**
42
- * <fullname>Resource Groups Tagging API</fullname>
43
- */
44
- export class ResourceGroupsTaggingAPI extends ResourceGroupsTaggingAPIClient {
45
- /**
46
- * <p>Describes the status of the <code>StartReportCreation</code> operation. </p>
47
- * <p>You can call this operation only from the organization's
48
- * management account and from the us-east-1 Region.</p>
49
- */
50
- public describeReportCreation(
51
- args: DescribeReportCreationCommandInput,
52
- options?: __HttpHandlerOptions
53
- ): Promise<DescribeReportCreationCommandOutput>;
54
- public describeReportCreation(
55
- args: DescribeReportCreationCommandInput,
56
- cb: (err: any, data?: DescribeReportCreationCommandOutput) => void
57
- ): void;
58
- public describeReportCreation(
59
- args: DescribeReportCreationCommandInput,
60
- options: __HttpHandlerOptions,
61
- cb: (err: any, data?: DescribeReportCreationCommandOutput) => void
62
- ): void;
63
- public describeReportCreation(
64
- args: DescribeReportCreationCommandInput,
65
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeReportCreationCommandOutput) => void),
66
- cb?: (err: any, data?: DescribeReportCreationCommandOutput) => void
67
- ): Promise<DescribeReportCreationCommandOutput> | void {
68
- const command = new DescribeReportCreationCommand(args);
69
- if (typeof optionsOrCb === "function") {
70
- this.send(command, optionsOrCb);
71
- } else if (typeof cb === "function") {
72
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
73
- this.send(command, optionsOrCb || {}, cb);
74
- } else {
75
- return this.send(command, optionsOrCb);
76
- }
77
- }
78
-
79
- /**
80
- * <p>Returns a table that shows counts of resources that are noncompliant with their tag
81
- * policies.</p>
82
- * <p>For more information on tag policies, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html">Tag Policies</a> in
83
- * the <i>AWS Organizations User Guide.</i>
84
- * </p>
85
- * <p>You can call this operation only from the organization's
86
- * management account and from the us-east-1 Region.</p>
87
- * <p>This operation supports pagination, where the response can be sent in
88
- * multiple pages. You should check the <code>PaginationToken</code> response parameter to determine
89
- * if there are additional results available to return. Repeat the query, passing the
90
- * <code>PaginationToken</code> response parameter value as an input to the next request until you
91
- * recieve a <code>null</code> value. A null value for <code>PaginationToken</code> indicates that
92
- * there are no more results waiting to be returned.</p>
93
- */
94
- public getComplianceSummary(
95
- args: GetComplianceSummaryCommandInput,
96
- options?: __HttpHandlerOptions
97
- ): Promise<GetComplianceSummaryCommandOutput>;
98
- public getComplianceSummary(
99
- args: GetComplianceSummaryCommandInput,
100
- cb: (err: any, data?: GetComplianceSummaryCommandOutput) => void
101
- ): void;
102
- public getComplianceSummary(
103
- args: GetComplianceSummaryCommandInput,
104
- options: __HttpHandlerOptions,
105
- cb: (err: any, data?: GetComplianceSummaryCommandOutput) => void
106
- ): void;
107
- public getComplianceSummary(
108
- args: GetComplianceSummaryCommandInput,
109
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetComplianceSummaryCommandOutput) => void),
110
- cb?: (err: any, data?: GetComplianceSummaryCommandOutput) => void
111
- ): Promise<GetComplianceSummaryCommandOutput> | void {
112
- const command = new GetComplianceSummaryCommand(args);
113
- if (typeof optionsOrCb === "function") {
114
- this.send(command, optionsOrCb);
115
- } else if (typeof cb === "function") {
116
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
117
- this.send(command, optionsOrCb || {}, cb);
118
- } else {
119
- return this.send(command, optionsOrCb);
120
- }
121
- }
122
-
123
- /**
124
- * <p>Returns all the tagged or previously tagged resources that are located in the
125
- * specified Region for the AWS account.</p>
126
- * <p>Depending on what information you want returned, you can also specify the
127
- * following:</p>
128
- * <ul>
129
- * <li>
130
- * <p>
131
- * <i>Filters</i> that specify what tags and resource types you
132
- * want returned. The response includes all tags that are associated with the
133
- * requested resources.</p>
134
- * </li>
135
- * <li>
136
- * <p>Information about compliance with the account's effective tag policy. For more
137
- * information on tag policies, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html">Tag
138
- * Policies</a> in the <i>AWS Organizations User Guide.</i>
139
- * </p>
140
- * </li>
141
- * </ul>
142
- * <p>This operation supports pagination, where the response can be sent in
143
- * multiple pages. You should check the <code>PaginationToken</code> response parameter to determine
144
- * if there are additional results available to return. Repeat the query, passing the
145
- * <code>PaginationToken</code> response parameter value as an input to the next request until you
146
- * recieve a <code>null</code> value. A null value for <code>PaginationToken</code> indicates that
147
- * there are no more results waiting to be returned.</p>
148
- */
149
- public getResources(
150
- args: GetResourcesCommandInput,
151
- options?: __HttpHandlerOptions
152
- ): Promise<GetResourcesCommandOutput>;
153
- public getResources(args: GetResourcesCommandInput, cb: (err: any, data?: GetResourcesCommandOutput) => void): void;
154
- public getResources(
155
- args: GetResourcesCommandInput,
156
- options: __HttpHandlerOptions,
157
- cb: (err: any, data?: GetResourcesCommandOutput) => void
158
- ): void;
159
- public getResources(
160
- args: GetResourcesCommandInput,
161
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetResourcesCommandOutput) => void),
162
- cb?: (err: any, data?: GetResourcesCommandOutput) => void
163
- ): Promise<GetResourcesCommandOutput> | void {
164
- const command = new GetResourcesCommand(args);
165
- if (typeof optionsOrCb === "function") {
166
- this.send(command, optionsOrCb);
167
- } else if (typeof cb === "function") {
168
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
169
- this.send(command, optionsOrCb || {}, cb);
170
- } else {
171
- return this.send(command, optionsOrCb);
172
- }
173
- }
174
-
175
- /**
176
- * <p>Returns all tag keys currently in use in the specified Region for the calling AWS
177
- * account.</p>
178
- * <p>This operation supports pagination, where the response can be sent in
179
- * multiple pages. You should check the <code>PaginationToken</code> response parameter to determine
180
- * if there are additional results available to return. Repeat the query, passing the
181
- * <code>PaginationToken</code> response parameter value as an input to the next request until you
182
- * recieve a <code>null</code> value. A null value for <code>PaginationToken</code> indicates that
183
- * there are no more results waiting to be returned.</p>
184
- */
185
- public getTagKeys(args: GetTagKeysCommandInput, options?: __HttpHandlerOptions): Promise<GetTagKeysCommandOutput>;
186
- public getTagKeys(args: GetTagKeysCommandInput, cb: (err: any, data?: GetTagKeysCommandOutput) => void): void;
187
- public getTagKeys(
188
- args: GetTagKeysCommandInput,
189
- options: __HttpHandlerOptions,
190
- cb: (err: any, data?: GetTagKeysCommandOutput) => void
191
- ): void;
192
- public getTagKeys(
193
- args: GetTagKeysCommandInput,
194
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetTagKeysCommandOutput) => void),
195
- cb?: (err: any, data?: GetTagKeysCommandOutput) => void
196
- ): Promise<GetTagKeysCommandOutput> | void {
197
- const command = new GetTagKeysCommand(args);
198
- if (typeof optionsOrCb === "function") {
199
- this.send(command, optionsOrCb);
200
- } else if (typeof cb === "function") {
201
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
202
- this.send(command, optionsOrCb || {}, cb);
203
- } else {
204
- return this.send(command, optionsOrCb);
205
- }
206
- }
207
-
208
- /**
209
- * <p>Returns all tag values for the specified key that are used in the specified AWS
210
- * Region for the calling AWS account.</p>
211
- * <p>This operation supports pagination, where the response can be sent in
212
- * multiple pages. You should check the <code>PaginationToken</code> response parameter to determine
213
- * if there are additional results available to return. Repeat the query, passing the
214
- * <code>PaginationToken</code> response parameter value as an input to the next request until you
215
- * recieve a <code>null</code> value. A null value for <code>PaginationToken</code> indicates that
216
- * there are no more results waiting to be returned.</p>
217
- */
218
- public getTagValues(
219
- args: GetTagValuesCommandInput,
220
- options?: __HttpHandlerOptions
221
- ): Promise<GetTagValuesCommandOutput>;
222
- public getTagValues(args: GetTagValuesCommandInput, cb: (err: any, data?: GetTagValuesCommandOutput) => void): void;
223
- public getTagValues(
224
- args: GetTagValuesCommandInput,
225
- options: __HttpHandlerOptions,
226
- cb: (err: any, data?: GetTagValuesCommandOutput) => void
227
- ): void;
228
- public getTagValues(
229
- args: GetTagValuesCommandInput,
230
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetTagValuesCommandOutput) => void),
231
- cb?: (err: any, data?: GetTagValuesCommandOutput) => void
232
- ): Promise<GetTagValuesCommandOutput> | void {
233
- const command = new GetTagValuesCommand(args);
234
- if (typeof optionsOrCb === "function") {
235
- this.send(command, optionsOrCb);
236
- } else if (typeof cb === "function") {
237
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
238
- this.send(command, optionsOrCb || {}, cb);
239
- } else {
240
- return this.send(command, optionsOrCb);
241
- }
242
- }
243
-
244
- /**
245
- * <p>Generates a report that lists all tagged resources in the accounts across your
246
- * organization and tells whether each resource is compliant with the effective tag policy.
247
- * Compliance data is refreshed daily. The report is generated asynchronously.</p>
248
- * <p>The generated report is saved to the following location:</p>
249
- * <p>
250
- * <code>s3://example-bucket/AwsTagPolicies/o-exampleorgid/YYYY-MM-ddTHH:mm:ssZ/report.csv</code>
251
- * </p>
252
- * <p>You can call this operation only from the organization's
253
- * management account and from the us-east-1 Region.</p>
254
- */
255
- public startReportCreation(
256
- args: StartReportCreationCommandInput,
257
- options?: __HttpHandlerOptions
258
- ): Promise<StartReportCreationCommandOutput>;
259
- public startReportCreation(
260
- args: StartReportCreationCommandInput,
261
- cb: (err: any, data?: StartReportCreationCommandOutput) => void
262
- ): void;
263
- public startReportCreation(
264
- args: StartReportCreationCommandInput,
265
- options: __HttpHandlerOptions,
266
- cb: (err: any, data?: StartReportCreationCommandOutput) => void
267
- ): void;
268
- public startReportCreation(
269
- args: StartReportCreationCommandInput,
270
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StartReportCreationCommandOutput) => void),
271
- cb?: (err: any, data?: StartReportCreationCommandOutput) => void
272
- ): Promise<StartReportCreationCommandOutput> | void {
273
- const command = new StartReportCreationCommand(args);
274
- if (typeof optionsOrCb === "function") {
275
- this.send(command, optionsOrCb);
276
- } else if (typeof cb === "function") {
277
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
278
- this.send(command, optionsOrCb || {}, cb);
279
- } else {
280
- return this.send(command, optionsOrCb);
281
- }
282
- }
283
-
284
- /**
285
- * <p>Applies one or more tags to the specified resources. Note the following:</p>
286
- * <ul>
287
- * <li>
288
- * <p>Not all resources can have tags. For a list of services with resources that
289
- * support tagging using this operation, see <a href="https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/supported-services.html">Services that support the
290
- * Resource Groups Tagging API</a>.</p>
291
- * </li>
292
- * <li>
293
- * <p>Each resource can have up to 50 tags. For other limits, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html#tag-conventions">Tag Naming and Usage Conventions</a> in the <i>AWS General
294
- * Reference.</i>
295
- * </p>
296
- * </li>
297
- * <li>
298
- * <p>You can only tag resources that are located in the specified AWS Region for
299
- * the AWS account.</p>
300
- * </li>
301
- * <li>
302
- * <p>To add tags to a resource, you need the necessary permissions for the service
303
- * that the resource belongs to as well as permissions for adding tags. For more
304
- * information, see the documentation for each service.</p>
305
- * </li>
306
- * </ul>
307
- * <important>
308
- * <p>Do not store personally identifiable information (PII) or other confidential or
309
- * sensitive information in tags. We use tags to provide you with billing and
310
- * administration services. Tags are not intended to be used for private or sensitive
311
- * data.</p>
312
- * </important>
313
- */
314
- public tagResources(
315
- args: TagResourcesCommandInput,
316
- options?: __HttpHandlerOptions
317
- ): Promise<TagResourcesCommandOutput>;
318
- public tagResources(args: TagResourcesCommandInput, cb: (err: any, data?: TagResourcesCommandOutput) => void): void;
319
- public tagResources(
320
- args: TagResourcesCommandInput,
321
- options: __HttpHandlerOptions,
322
- cb: (err: any, data?: TagResourcesCommandOutput) => void
323
- ): void;
324
- public tagResources(
325
- args: TagResourcesCommandInput,
326
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: TagResourcesCommandOutput) => void),
327
- cb?: (err: any, data?: TagResourcesCommandOutput) => void
328
- ): Promise<TagResourcesCommandOutput> | void {
329
- const command = new TagResourcesCommand(args);
330
- if (typeof optionsOrCb === "function") {
331
- this.send(command, optionsOrCb);
332
- } else if (typeof cb === "function") {
333
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
334
- this.send(command, optionsOrCb || {}, cb);
335
- } else {
336
- return this.send(command, optionsOrCb);
337
- }
338
- }
339
-
340
- /**
341
- * <p>Removes the specified tags from the specified resources. When you specify a tag key,
342
- * the action removes both that key and its associated value. The operation succeeds even
343
- * if you attempt to remove tags from a resource that were already removed. Note the
344
- * following:</p>
345
- * <ul>
346
- * <li>
347
- * <p>To remove tags from a resource, you need the necessary permissions for the
348
- * service that the resource belongs to as well as permissions for removing tags.
349
- * For more information, see the documentation for the service whose resource you
350
- * want to untag.</p>
351
- * </li>
352
- * <li>
353
- * <p>You can only tag resources that are located in the specified AWS Region for
354
- * the calling AWS account.</p>
355
- * </li>
356
- * </ul>
357
- */
358
- public untagResources(
359
- args: UntagResourcesCommandInput,
360
- options?: __HttpHandlerOptions
361
- ): Promise<UntagResourcesCommandOutput>;
362
- public untagResources(
363
- args: UntagResourcesCommandInput,
364
- cb: (err: any, data?: UntagResourcesCommandOutput) => void
365
- ): void;
366
- public untagResources(
367
- args: UntagResourcesCommandInput,
368
- options: __HttpHandlerOptions,
369
- cb: (err: any, data?: UntagResourcesCommandOutput) => void
370
- ): void;
371
- public untagResources(
372
- args: UntagResourcesCommandInput,
373
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UntagResourcesCommandOutput) => void),
374
- cb?: (err: any, data?: UntagResourcesCommandOutput) => void
375
- ): Promise<UntagResourcesCommandOutput> | void {
376
- const command = new UntagResourcesCommand(args);
377
- if (typeof optionsOrCb === "function") {
378
- this.send(command, optionsOrCb);
379
- } else if (typeof cb === "function") {
380
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
381
- this.send(command, optionsOrCb || {}, cb);
382
- } else {
383
- return this.send(command, optionsOrCb);
384
- }
385
- }
386
- }
@@ -1,270 +0,0 @@
1
- import {
2
- EndpointsInputConfig,
3
- EndpointsResolvedConfig,
4
- RegionInputConfig,
5
- RegionResolvedConfig,
6
- resolveEndpointsConfig,
7
- resolveRegionConfig,
8
- } from "@aws-sdk/config-resolver";
9
- import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
10
- import {
11
- getHostHeaderPlugin,
12
- HostHeaderInputConfig,
13
- HostHeaderResolvedConfig,
14
- resolveHostHeaderConfig,
15
- } from "@aws-sdk/middleware-host-header";
16
- import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
17
- import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
18
- import {
19
- AwsAuthInputConfig,
20
- AwsAuthResolvedConfig,
21
- getAwsAuthPlugin,
22
- resolveAwsAuthConfig,
23
- } from "@aws-sdk/middleware-signing";
24
- import {
25
- getUserAgentPlugin,
26
- resolveUserAgentConfig,
27
- UserAgentInputConfig,
28
- UserAgentResolvedConfig,
29
- } from "@aws-sdk/middleware-user-agent";
30
- import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
31
- import {
32
- Client as __Client,
33
- SmithyConfiguration as __SmithyConfiguration,
34
- SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
35
- } from "@aws-sdk/smithy-client";
36
- import {
37
- Credentials as __Credentials,
38
- Decoder as __Decoder,
39
- Encoder as __Encoder,
40
- Hash as __Hash,
41
- HashConstructor as __HashConstructor,
42
- HttpHandlerOptions as __HttpHandlerOptions,
43
- Logger as __Logger,
44
- Provider as __Provider,
45
- Provider,
46
- RegionInfoProvider,
47
- StreamCollector as __StreamCollector,
48
- UrlParser as __UrlParser,
49
- UserAgent as __UserAgent,
50
- } from "@aws-sdk/types";
51
-
52
- import {
53
- DescribeReportCreationCommandInput,
54
- DescribeReportCreationCommandOutput,
55
- } from "./commands/DescribeReportCreationCommand";
56
- import {
57
- GetComplianceSummaryCommandInput,
58
- GetComplianceSummaryCommandOutput,
59
- } from "./commands/GetComplianceSummaryCommand";
60
- import { GetResourcesCommandInput, GetResourcesCommandOutput } from "./commands/GetResourcesCommand";
61
- import { GetTagKeysCommandInput, GetTagKeysCommandOutput } from "./commands/GetTagKeysCommand";
62
- import { GetTagValuesCommandInput, GetTagValuesCommandOutput } from "./commands/GetTagValuesCommand";
63
- import {
64
- StartReportCreationCommandInput,
65
- StartReportCreationCommandOutput,
66
- } from "./commands/StartReportCreationCommand";
67
- import { TagResourcesCommandInput, TagResourcesCommandOutput } from "./commands/TagResourcesCommand";
68
- import { UntagResourcesCommandInput, UntagResourcesCommandOutput } from "./commands/UntagResourcesCommand";
69
- import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
70
-
71
- export type ServiceInputTypes =
72
- | DescribeReportCreationCommandInput
73
- | GetComplianceSummaryCommandInput
74
- | GetResourcesCommandInput
75
- | GetTagKeysCommandInput
76
- | GetTagValuesCommandInput
77
- | StartReportCreationCommandInput
78
- | TagResourcesCommandInput
79
- | UntagResourcesCommandInput;
80
-
81
- export type ServiceOutputTypes =
82
- | DescribeReportCreationCommandOutput
83
- | GetComplianceSummaryCommandOutput
84
- | GetResourcesCommandOutput
85
- | GetTagKeysCommandOutput
86
- | GetTagValuesCommandOutput
87
- | StartReportCreationCommandOutput
88
- | TagResourcesCommandOutput
89
- | UntagResourcesCommandOutput;
90
-
91
- export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
92
- /**
93
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
94
- */
95
- requestHandler?: __HttpHandler;
96
-
97
- /**
98
- * A constructor for a class implementing the {@link __Hash} interface
99
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
100
- * @internal
101
- */
102
- sha256?: __HashConstructor;
103
-
104
- /**
105
- * The function that will be used to convert strings into HTTP endpoints.
106
- * @internal
107
- */
108
- urlParser?: __UrlParser;
109
-
110
- /**
111
- * A function that can calculate the length of a request body.
112
- * @internal
113
- */
114
- bodyLengthChecker?: (body: any) => number | undefined;
115
-
116
- /**
117
- * A function that converts a stream into an array of bytes.
118
- * @internal
119
- */
120
- streamCollector?: __StreamCollector;
121
-
122
- /**
123
- * The function that will be used to convert a base64-encoded string to a byte array.
124
- * @internal
125
- */
126
- base64Decoder?: __Decoder;
127
-
128
- /**
129
- * The function that will be used to convert binary data to a base64-encoded string.
130
- * @internal
131
- */
132
- base64Encoder?: __Encoder;
133
-
134
- /**
135
- * The function that will be used to convert a UTF8-encoded string to a byte array.
136
- * @internal
137
- */
138
- utf8Decoder?: __Decoder;
139
-
140
- /**
141
- * The function that will be used to convert binary data to a UTF-8 encoded string.
142
- * @internal
143
- */
144
- utf8Encoder?: __Encoder;
145
-
146
- /**
147
- * The runtime environment.
148
- * @internal
149
- */
150
- runtime?: string;
151
-
152
- /**
153
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
154
- * trait of an operation.
155
- */
156
- disableHostPrefix?: boolean;
157
-
158
- /**
159
- * Value for how many times a request will be made at most in case of retry.
160
- */
161
- maxAttempts?: number | __Provider<number>;
162
-
163
- /**
164
- * Specifies which retry algorithm to use.
165
- */
166
- retryMode?: string | __Provider<string>;
167
-
168
- /**
169
- * Optional logger for logging debug/info/warn/error.
170
- */
171
- logger?: __Logger;
172
-
173
- /**
174
- * Unique service identifier.
175
- * @internal
176
- */
177
- serviceId?: string;
178
-
179
- /**
180
- * The AWS region to which this client will send requests
181
- */
182
- region?: string | __Provider<string>;
183
-
184
- /**
185
- * Default credentials provider; Not available in browser runtime.
186
- * @internal
187
- */
188
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
189
-
190
- /**
191
- * Fetch related hostname, signing name or signing region with given region.
192
- * @internal
193
- */
194
- regionInfoProvider?: RegionInfoProvider;
195
-
196
- /**
197
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
198
- * @internal
199
- */
200
- defaultUserAgentProvider?: Provider<__UserAgent>;
201
- }
202
-
203
- type ResourceGroupsTaggingAPIClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
204
- ClientDefaults &
205
- RegionInputConfig &
206
- EndpointsInputConfig &
207
- RetryInputConfig &
208
- HostHeaderInputConfig &
209
- AwsAuthInputConfig &
210
- UserAgentInputConfig;
211
- /**
212
- * The configuration interface of ResourceGroupsTaggingAPIClient class constructor that set the region, credentials and other options.
213
- */
214
- export interface ResourceGroupsTaggingAPIClientConfig extends ResourceGroupsTaggingAPIClientConfigType {}
215
-
216
- type ResourceGroupsTaggingAPIClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
217
- Required<ClientDefaults> &
218
- RegionResolvedConfig &
219
- EndpointsResolvedConfig &
220
- RetryResolvedConfig &
221
- HostHeaderResolvedConfig &
222
- AwsAuthResolvedConfig &
223
- UserAgentResolvedConfig;
224
- /**
225
- * The resolved configuration interface of ResourceGroupsTaggingAPIClient class. This is resolved and normalized from the {@link ResourceGroupsTaggingAPIClientConfig | constructor configuration interface}.
226
- */
227
- export interface ResourceGroupsTaggingAPIClientResolvedConfig
228
- extends ResourceGroupsTaggingAPIClientResolvedConfigType {}
229
-
230
- /**
231
- * <fullname>Resource Groups Tagging API</fullname>
232
- */
233
- export class ResourceGroupsTaggingAPIClient extends __Client<
234
- __HttpHandlerOptions,
235
- ServiceInputTypes,
236
- ServiceOutputTypes,
237
- ResourceGroupsTaggingAPIClientResolvedConfig
238
- > {
239
- /**
240
- * The resolved configuration of ResourceGroupsTaggingAPIClient class. This is resolved and normalized from the {@link ResourceGroupsTaggingAPIClientConfig | constructor configuration interface}.
241
- */
242
- readonly config: ResourceGroupsTaggingAPIClientResolvedConfig;
243
-
244
- constructor(configuration: ResourceGroupsTaggingAPIClientConfig) {
245
- const _config_0 = __getRuntimeConfig(configuration);
246
- const _config_1 = resolveRegionConfig(_config_0);
247
- const _config_2 = resolveEndpointsConfig(_config_1);
248
- const _config_3 = resolveRetryConfig(_config_2);
249
- const _config_4 = resolveHostHeaderConfig(_config_3);
250
- const _config_5 = resolveAwsAuthConfig(_config_4);
251
- const _config_6 = resolveUserAgentConfig(_config_5);
252
- super(_config_6);
253
- this.config = _config_6;
254
- this.middlewareStack.use(getRetryPlugin(this.config));
255
- this.middlewareStack.use(getContentLengthPlugin(this.config));
256
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
257
- this.middlewareStack.use(getLoggerPlugin(this.config));
258
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
259
- this.middlewareStack.use(getUserAgentPlugin(this.config));
260
- }
261
-
262
- /**
263
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
264
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
265
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
266
- */
267
- destroy(): void {
268
- super.destroy();
269
- }
270
- }