@aws-sdk/client-resource-groups-tagging-api 3.36.0 → 3.36.1
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/CHANGELOG.md +11 -0
- package/dist-cjs/ResourceGroupsTaggingAPI.js +0 -3
- package/dist-cjs/ResourceGroupsTaggingAPIClient.js +0 -8
- package/dist-cjs/commands/DescribeReportCreationCommand.js +0 -26
- package/dist-cjs/commands/GetComplianceSummaryCommand.js +0 -36
- package/dist-cjs/commands/GetResourcesCommand.js +0 -47
- package/dist-cjs/commands/GetTagKeysCommand.js +0 -31
- package/dist-cjs/commands/GetTagValuesCommand.js +0 -31
- package/dist-cjs/commands/StartReportCreationCommand.js +0 -32
- package/dist-cjs/commands/TagResourcesCommand.js +0 -51
- package/dist-cjs/commands/UntagResourcesCommand.js +0 -39
- package/dist-cjs/models/models_0.js +0 -84
- package/dist-cjs/pagination/GetComplianceSummaryPaginator.js +0 -10
- package/dist-cjs/pagination/GetResourcesPaginator.js +0 -10
- package/dist-cjs/pagination/GetTagKeysPaginator.js +0 -10
- package/dist-cjs/pagination/GetTagValuesPaginator.js +0 -10
- package/dist-cjs/protocols/Aws_json1_1.js +0 -5
- package/dist-cjs/runtimeConfig.browser.js +1 -5
- package/dist-cjs/runtimeConfig.js +1 -5
- package/dist-cjs/runtimeConfig.native.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +0 -3
- package/dist-types/ts3.4/ResourceGroupsTaggingAPI.d.ts +9 -128
- package/dist-types/ts3.4/ResourceGroupsTaggingAPIClient.d.ts +24 -89
- package/dist-types/ts3.4/commands/DescribeReportCreationCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/GetComplianceSummaryCommand.d.ts +2 -32
- package/dist-types/ts3.4/commands/GetResourcesCommand.d.ts +2 -43
- package/dist-types/ts3.4/commands/GetTagKeysCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/GetTagValuesCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/StartReportCreationCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/TagResourcesCommand.d.ts +2 -47
- package/dist-types/ts3.4/commands/UntagResourcesCommand.d.ts +2 -35
- package/dist-types/ts3.4/models/models_0.d.ts +96 -569
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **clients:** emitDeclarationOnly in tsconfig.types.json ([#2893](https://github.com/aws/aws-sdk-js-v3/issues/2893)) ([6dc3d56](https://github.com/aws/aws-sdk-js-v3/commit/6dc3d56c20809c90cbdc4dd48627eeebc64af99d))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -10,9 +10,6 @@ const StartReportCreationCommand_1 = require("./commands/StartReportCreationComm
|
|
|
10
10
|
const TagResourcesCommand_1 = require("./commands/TagResourcesCommand");
|
|
11
11
|
const UntagResourcesCommand_1 = require("./commands/UntagResourcesCommand");
|
|
12
12
|
const ResourceGroupsTaggingAPIClient_1 = require("./ResourceGroupsTaggingAPIClient");
|
|
13
|
-
/**
|
|
14
|
-
* <fullname>Resource Groups Tagging API</fullname>
|
|
15
|
-
*/
|
|
16
13
|
class ResourceGroupsTaggingAPI extends ResourceGroupsTaggingAPIClient_1.ResourceGroupsTaggingAPIClient {
|
|
17
14
|
describeReportCreation(args, optionsOrCb, cb) {
|
|
18
15
|
const command = new DescribeReportCreationCommand_1.DescribeReportCreationCommand(args);
|
|
@@ -10,9 +10,6 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
|
10
10
|
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
11
11
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
12
12
|
const runtimeConfig_1 = require("./runtimeConfig");
|
|
13
|
-
/**
|
|
14
|
-
* <fullname>Resource Groups Tagging API</fullname>
|
|
15
|
-
*/
|
|
16
13
|
class ResourceGroupsTaggingAPIClient extends smithy_client_1.Client {
|
|
17
14
|
constructor(configuration) {
|
|
18
15
|
const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
|
|
@@ -31,11 +28,6 @@ class ResourceGroupsTaggingAPIClient extends smithy_client_1.Client {
|
|
|
31
28
|
this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
|
|
32
29
|
this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
|
|
33
30
|
}
|
|
34
|
-
/**
|
|
35
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
36
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
37
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
38
|
-
*/
|
|
39
31
|
destroy() {
|
|
40
32
|
super.destroy();
|
|
41
33
|
}
|
|
@@ -5,37 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Describes the status of the <code>StartReportCreation</code> operation. </p>
|
|
10
|
-
* <p>You can call this operation only from the organization's
|
|
11
|
-
* management account and from the us-east-1 Region.</p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { ResourceGroupsTaggingAPIClient, DescribeReportCreationCommand } from "@aws-sdk/client-resource-groups-tagging-api"; // ES Modules import
|
|
16
|
-
* // const { ResourceGroupsTaggingAPIClient, DescribeReportCreationCommand } = require("@aws-sdk/client-resource-groups-tagging-api"); // CommonJS import
|
|
17
|
-
* const client = new ResourceGroupsTaggingAPIClient(config);
|
|
18
|
-
* const command = new DescribeReportCreationCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link DescribeReportCreationCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link DescribeReportCreationCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link ResourceGroupsTaggingAPIClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
8
|
class DescribeReportCreationCommand extends smithy_client_1.Command {
|
|
28
|
-
// Start section: command_properties
|
|
29
|
-
// End section: command_properties
|
|
30
9
|
constructor(input) {
|
|
31
|
-
// Start section: command_constructor
|
|
32
10
|
super();
|
|
33
11
|
this.input = input;
|
|
34
|
-
// End section: command_constructor
|
|
35
12
|
}
|
|
36
|
-
/**
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
39
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
40
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
41
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,47 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Returns a table that shows counts of resources that are noncompliant with their tag
|
|
10
|
-
* policies.</p>
|
|
11
|
-
* <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
|
|
12
|
-
* the <i>AWS Organizations User Guide.</i>
|
|
13
|
-
* </p>
|
|
14
|
-
* <p>You can call this operation only from the organization's
|
|
15
|
-
* management account and from the us-east-1 Region.</p>
|
|
16
|
-
* <p>This operation supports pagination, where the response can be sent in
|
|
17
|
-
* multiple pages. You should check the <code>PaginationToken</code> response parameter to determine
|
|
18
|
-
* if there are additional results available to return. Repeat the query, passing the
|
|
19
|
-
* <code>PaginationToken</code> response parameter value as an input to the next request until you
|
|
20
|
-
* recieve a <code>null</code> value. A null value for <code>PaginationToken</code> indicates that
|
|
21
|
-
* there are no more results waiting to be returned.</p>
|
|
22
|
-
* @example
|
|
23
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
24
|
-
* ```javascript
|
|
25
|
-
* import { ResourceGroupsTaggingAPIClient, GetComplianceSummaryCommand } from "@aws-sdk/client-resource-groups-tagging-api"; // ES Modules import
|
|
26
|
-
* // const { ResourceGroupsTaggingAPIClient, GetComplianceSummaryCommand } = require("@aws-sdk/client-resource-groups-tagging-api"); // CommonJS import
|
|
27
|
-
* const client = new ResourceGroupsTaggingAPIClient(config);
|
|
28
|
-
* const command = new GetComplianceSummaryCommand(input);
|
|
29
|
-
* const response = await client.send(command);
|
|
30
|
-
* ```
|
|
31
|
-
*
|
|
32
|
-
* @see {@link GetComplianceSummaryCommandInput} for command's `input` shape.
|
|
33
|
-
* @see {@link GetComplianceSummaryCommandOutput} for command's `response` shape.
|
|
34
|
-
* @see {@link ResourceGroupsTaggingAPIClientResolvedConfig | config} for command's `input` shape.
|
|
35
|
-
*
|
|
36
|
-
*/
|
|
37
8
|
class GetComplianceSummaryCommand extends smithy_client_1.Command {
|
|
38
|
-
// Start section: command_properties
|
|
39
|
-
// End section: command_properties
|
|
40
9
|
constructor(input) {
|
|
41
|
-
// Start section: command_constructor
|
|
42
10
|
super();
|
|
43
11
|
this.input = input;
|
|
44
|
-
// End section: command_constructor
|
|
45
12
|
}
|
|
46
|
-
/**
|
|
47
|
-
* @internal
|
|
48
|
-
*/
|
|
49
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
50
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
51
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,58 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Returns all the tagged or previously tagged resources that are located in the
|
|
10
|
-
* specified Region for the AWS account.</p>
|
|
11
|
-
* <p>Depending on what information you want returned, you can also specify the
|
|
12
|
-
* following:</p>
|
|
13
|
-
* <ul>
|
|
14
|
-
* <li>
|
|
15
|
-
* <p>
|
|
16
|
-
* <i>Filters</i> that specify what tags and resource types you
|
|
17
|
-
* want returned. The response includes all tags that are associated with the
|
|
18
|
-
* requested resources.</p>
|
|
19
|
-
* </li>
|
|
20
|
-
* <li>
|
|
21
|
-
* <p>Information about compliance with the account's effective tag policy. For more
|
|
22
|
-
* information on tag policies, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html">Tag
|
|
23
|
-
* Policies</a> in the <i>AWS Organizations User Guide.</i>
|
|
24
|
-
* </p>
|
|
25
|
-
* </li>
|
|
26
|
-
* </ul>
|
|
27
|
-
* <p>This operation supports pagination, where the response can be sent in
|
|
28
|
-
* multiple pages. You should check the <code>PaginationToken</code> response parameter to determine
|
|
29
|
-
* if there are additional results available to return. Repeat the query, passing the
|
|
30
|
-
* <code>PaginationToken</code> response parameter value as an input to the next request until you
|
|
31
|
-
* recieve a <code>null</code> value. A null value for <code>PaginationToken</code> indicates that
|
|
32
|
-
* there are no more results waiting to be returned.</p>
|
|
33
|
-
* @example
|
|
34
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
-
* ```javascript
|
|
36
|
-
* import { ResourceGroupsTaggingAPIClient, GetResourcesCommand } from "@aws-sdk/client-resource-groups-tagging-api"; // ES Modules import
|
|
37
|
-
* // const { ResourceGroupsTaggingAPIClient, GetResourcesCommand } = require("@aws-sdk/client-resource-groups-tagging-api"); // CommonJS import
|
|
38
|
-
* const client = new ResourceGroupsTaggingAPIClient(config);
|
|
39
|
-
* const command = new GetResourcesCommand(input);
|
|
40
|
-
* const response = await client.send(command);
|
|
41
|
-
* ```
|
|
42
|
-
*
|
|
43
|
-
* @see {@link GetResourcesCommandInput} for command's `input` shape.
|
|
44
|
-
* @see {@link GetResourcesCommandOutput} for command's `response` shape.
|
|
45
|
-
* @see {@link ResourceGroupsTaggingAPIClientResolvedConfig | config} for command's `input` shape.
|
|
46
|
-
*
|
|
47
|
-
*/
|
|
48
8
|
class GetResourcesCommand extends smithy_client_1.Command {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
9
|
constructor(input) {
|
|
52
|
-
// Start section: command_constructor
|
|
53
10
|
super();
|
|
54
11
|
this.input = input;
|
|
55
|
-
// End section: command_constructor
|
|
56
12
|
}
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
*/
|
|
60
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
61
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
62
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,42 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Returns all tag keys currently in use in the specified Region for the calling AWS
|
|
10
|
-
* account.</p>
|
|
11
|
-
* <p>This operation supports pagination, where the response can be sent in
|
|
12
|
-
* multiple pages. You should check the <code>PaginationToken</code> response parameter to determine
|
|
13
|
-
* if there are additional results available to return. Repeat the query, passing the
|
|
14
|
-
* <code>PaginationToken</code> response parameter value as an input to the next request until you
|
|
15
|
-
* recieve a <code>null</code> value. A null value for <code>PaginationToken</code> indicates that
|
|
16
|
-
* there are no more results waiting to be returned.</p>
|
|
17
|
-
* @example
|
|
18
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
19
|
-
* ```javascript
|
|
20
|
-
* import { ResourceGroupsTaggingAPIClient, GetTagKeysCommand } from "@aws-sdk/client-resource-groups-tagging-api"; // ES Modules import
|
|
21
|
-
* // const { ResourceGroupsTaggingAPIClient, GetTagKeysCommand } = require("@aws-sdk/client-resource-groups-tagging-api"); // CommonJS import
|
|
22
|
-
* const client = new ResourceGroupsTaggingAPIClient(config);
|
|
23
|
-
* const command = new GetTagKeysCommand(input);
|
|
24
|
-
* const response = await client.send(command);
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* @see {@link GetTagKeysCommandInput} for command's `input` shape.
|
|
28
|
-
* @see {@link GetTagKeysCommandOutput} for command's `response` shape.
|
|
29
|
-
* @see {@link ResourceGroupsTaggingAPIClientResolvedConfig | config} for command's `input` shape.
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
32
8
|
class GetTagKeysCommand extends smithy_client_1.Command {
|
|
33
|
-
// Start section: command_properties
|
|
34
|
-
// End section: command_properties
|
|
35
9
|
constructor(input) {
|
|
36
|
-
// Start section: command_constructor
|
|
37
10
|
super();
|
|
38
11
|
this.input = input;
|
|
39
|
-
// End section: command_constructor
|
|
40
12
|
}
|
|
41
|
-
/**
|
|
42
|
-
* @internal
|
|
43
|
-
*/
|
|
44
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
45
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
46
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,42 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Returns all tag values for the specified key that are used in the specified AWS
|
|
10
|
-
* Region for the calling AWS account.</p>
|
|
11
|
-
* <p>This operation supports pagination, where the response can be sent in
|
|
12
|
-
* multiple pages. You should check the <code>PaginationToken</code> response parameter to determine
|
|
13
|
-
* if there are additional results available to return. Repeat the query, passing the
|
|
14
|
-
* <code>PaginationToken</code> response parameter value as an input to the next request until you
|
|
15
|
-
* recieve a <code>null</code> value. A null value for <code>PaginationToken</code> indicates that
|
|
16
|
-
* there are no more results waiting to be returned.</p>
|
|
17
|
-
* @example
|
|
18
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
19
|
-
* ```javascript
|
|
20
|
-
* import { ResourceGroupsTaggingAPIClient, GetTagValuesCommand } from "@aws-sdk/client-resource-groups-tagging-api"; // ES Modules import
|
|
21
|
-
* // const { ResourceGroupsTaggingAPIClient, GetTagValuesCommand } = require("@aws-sdk/client-resource-groups-tagging-api"); // CommonJS import
|
|
22
|
-
* const client = new ResourceGroupsTaggingAPIClient(config);
|
|
23
|
-
* const command = new GetTagValuesCommand(input);
|
|
24
|
-
* const response = await client.send(command);
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* @see {@link GetTagValuesCommandInput} for command's `input` shape.
|
|
28
|
-
* @see {@link GetTagValuesCommandOutput} for command's `response` shape.
|
|
29
|
-
* @see {@link ResourceGroupsTaggingAPIClientResolvedConfig | config} for command's `input` shape.
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
32
8
|
class GetTagValuesCommand extends smithy_client_1.Command {
|
|
33
|
-
// Start section: command_properties
|
|
34
|
-
// End section: command_properties
|
|
35
9
|
constructor(input) {
|
|
36
|
-
// Start section: command_constructor
|
|
37
10
|
super();
|
|
38
11
|
this.input = input;
|
|
39
|
-
// End section: command_constructor
|
|
40
12
|
}
|
|
41
|
-
/**
|
|
42
|
-
* @internal
|
|
43
|
-
*/
|
|
44
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
45
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
46
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,43 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Generates a report that lists all tagged resources in the accounts across your
|
|
10
|
-
* organization and tells whether each resource is compliant with the effective tag policy.
|
|
11
|
-
* Compliance data is refreshed daily. The report is generated asynchronously.</p>
|
|
12
|
-
* <p>The generated report is saved to the following location:</p>
|
|
13
|
-
* <p>
|
|
14
|
-
* <code>s3://example-bucket/AwsTagPolicies/o-exampleorgid/YYYY-MM-ddTHH:mm:ssZ/report.csv</code>
|
|
15
|
-
* </p>
|
|
16
|
-
* <p>You can call this operation only from the organization's
|
|
17
|
-
* management account and from the us-east-1 Region.</p>
|
|
18
|
-
* @example
|
|
19
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
20
|
-
* ```javascript
|
|
21
|
-
* import { ResourceGroupsTaggingAPIClient, StartReportCreationCommand } from "@aws-sdk/client-resource-groups-tagging-api"; // ES Modules import
|
|
22
|
-
* // const { ResourceGroupsTaggingAPIClient, StartReportCreationCommand } = require("@aws-sdk/client-resource-groups-tagging-api"); // CommonJS import
|
|
23
|
-
* const client = new ResourceGroupsTaggingAPIClient(config);
|
|
24
|
-
* const command = new StartReportCreationCommand(input);
|
|
25
|
-
* const response = await client.send(command);
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* @see {@link StartReportCreationCommandInput} for command's `input` shape.
|
|
29
|
-
* @see {@link StartReportCreationCommandOutput} for command's `response` shape.
|
|
30
|
-
* @see {@link ResourceGroupsTaggingAPIClientResolvedConfig | config} for command's `input` shape.
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
8
|
class StartReportCreationCommand extends smithy_client_1.Command {
|
|
34
|
-
// Start section: command_properties
|
|
35
|
-
// End section: command_properties
|
|
36
9
|
constructor(input) {
|
|
37
|
-
// Start section: command_constructor
|
|
38
10
|
super();
|
|
39
11
|
this.input = input;
|
|
40
|
-
// End section: command_constructor
|
|
41
12
|
}
|
|
42
|
-
/**
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
45
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
46
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
47
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,62 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Applies one or more tags to the specified resources. Note the following:</p>
|
|
10
|
-
* <ul>
|
|
11
|
-
* <li>
|
|
12
|
-
* <p>Not all resources can have tags. For a list of services with resources that
|
|
13
|
-
* support tagging using this operation, see <a href="https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/supported-services.html">Services that support the
|
|
14
|
-
* Resource Groups Tagging API</a>.</p>
|
|
15
|
-
* </li>
|
|
16
|
-
* <li>
|
|
17
|
-
* <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
|
|
18
|
-
* Reference.</i>
|
|
19
|
-
* </p>
|
|
20
|
-
* </li>
|
|
21
|
-
* <li>
|
|
22
|
-
* <p>You can only tag resources that are located in the specified AWS Region for
|
|
23
|
-
* the AWS account.</p>
|
|
24
|
-
* </li>
|
|
25
|
-
* <li>
|
|
26
|
-
* <p>To add tags to a resource, you need the necessary permissions for the service
|
|
27
|
-
* that the resource belongs to as well as permissions for adding tags. For more
|
|
28
|
-
* information, see the documentation for each service.</p>
|
|
29
|
-
* </li>
|
|
30
|
-
* </ul>
|
|
31
|
-
* <important>
|
|
32
|
-
* <p>Do not store personally identifiable information (PII) or other confidential or
|
|
33
|
-
* sensitive information in tags. We use tags to provide you with billing and
|
|
34
|
-
* administration services. Tags are not intended to be used for private or sensitive
|
|
35
|
-
* data.</p>
|
|
36
|
-
* </important>
|
|
37
|
-
* @example
|
|
38
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
39
|
-
* ```javascript
|
|
40
|
-
* import { ResourceGroupsTaggingAPIClient, TagResourcesCommand } from "@aws-sdk/client-resource-groups-tagging-api"; // ES Modules import
|
|
41
|
-
* // const { ResourceGroupsTaggingAPIClient, TagResourcesCommand } = require("@aws-sdk/client-resource-groups-tagging-api"); // CommonJS import
|
|
42
|
-
* const client = new ResourceGroupsTaggingAPIClient(config);
|
|
43
|
-
* const command = new TagResourcesCommand(input);
|
|
44
|
-
* const response = await client.send(command);
|
|
45
|
-
* ```
|
|
46
|
-
*
|
|
47
|
-
* @see {@link TagResourcesCommandInput} for command's `input` shape.
|
|
48
|
-
* @see {@link TagResourcesCommandOutput} for command's `response` shape.
|
|
49
|
-
* @see {@link ResourceGroupsTaggingAPIClientResolvedConfig | config} for command's `input` shape.
|
|
50
|
-
*
|
|
51
|
-
*/
|
|
52
8
|
class TagResourcesCommand extends smithy_client_1.Command {
|
|
53
|
-
// Start section: command_properties
|
|
54
|
-
// End section: command_properties
|
|
55
9
|
constructor(input) {
|
|
56
|
-
// Start section: command_constructor
|
|
57
10
|
super();
|
|
58
11
|
this.input = input;
|
|
59
|
-
// End section: command_constructor
|
|
60
12
|
}
|
|
61
|
-
/**
|
|
62
|
-
* @internal
|
|
63
|
-
*/
|
|
64
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
65
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
66
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,50 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Removes the specified tags from the specified resources. When you specify a tag key,
|
|
10
|
-
* the action removes both that key and its associated value. The operation succeeds even
|
|
11
|
-
* if you attempt to remove tags from a resource that were already removed. Note the
|
|
12
|
-
* following:</p>
|
|
13
|
-
* <ul>
|
|
14
|
-
* <li>
|
|
15
|
-
* <p>To remove tags from a resource, you need the necessary permissions for the
|
|
16
|
-
* service that the resource belongs to as well as permissions for removing tags.
|
|
17
|
-
* For more information, see the documentation for the service whose resource you
|
|
18
|
-
* want to untag.</p>
|
|
19
|
-
* </li>
|
|
20
|
-
* <li>
|
|
21
|
-
* <p>You can only tag resources that are located in the specified AWS Region for
|
|
22
|
-
* the calling AWS account.</p>
|
|
23
|
-
* </li>
|
|
24
|
-
* </ul>
|
|
25
|
-
* @example
|
|
26
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
27
|
-
* ```javascript
|
|
28
|
-
* import { ResourceGroupsTaggingAPIClient, UntagResourcesCommand } from "@aws-sdk/client-resource-groups-tagging-api"; // ES Modules import
|
|
29
|
-
* // const { ResourceGroupsTaggingAPIClient, UntagResourcesCommand } = require("@aws-sdk/client-resource-groups-tagging-api"); // CommonJS import
|
|
30
|
-
* const client = new ResourceGroupsTaggingAPIClient(config);
|
|
31
|
-
* const command = new UntagResourcesCommand(input);
|
|
32
|
-
* const response = await client.send(command);
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @see {@link UntagResourcesCommandInput} for command's `input` shape.
|
|
36
|
-
* @see {@link UntagResourcesCommandOutput} for command's `response` shape.
|
|
37
|
-
* @see {@link ResourceGroupsTaggingAPIClientResolvedConfig | config} for command's `input` shape.
|
|
38
|
-
*
|
|
39
|
-
*/
|
|
40
8
|
class UntagResourcesCommand extends smithy_client_1.Command {
|
|
41
|
-
// Start section: command_properties
|
|
42
|
-
// End section: command_properties
|
|
43
9
|
constructor(input) {
|
|
44
|
-
// Start section: command_constructor
|
|
45
10
|
super();
|
|
46
11
|
this.input = input;
|
|
47
|
-
// End section: command_constructor
|
|
48
12
|
}
|
|
49
|
-
/**
|
|
50
|
-
* @internal
|
|
51
|
-
*/
|
|
52
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
53
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
54
15
|
const stack = clientStack.concat(this.middlewareStack);
|