@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,126 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { TagResourcesInput, TagResourcesOutput } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_1TagResourcesCommand,
17
- serializeAws_json1_1TagResourcesCommand,
18
- } from "../protocols/Aws_json1_1";
19
- import {
20
- ResourceGroupsTaggingAPIClientResolvedConfig,
21
- ServiceInputTypes,
22
- ServiceOutputTypes,
23
- } from "../ResourceGroupsTaggingAPIClient";
24
-
25
- export interface TagResourcesCommandInput extends TagResourcesInput {}
26
- export interface TagResourcesCommandOutput extends TagResourcesOutput, __MetadataBearer {}
27
-
28
- /**
29
- * <p>Applies one or more tags to the specified resources. Note the following:</p>
30
- * <ul>
31
- * <li>
32
- * <p>Not all resources can have tags. For a list of services with resources that
33
- * support tagging using this operation, see <a href="https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/supported-services.html">Services that support the
34
- * Resource Groups Tagging API</a>.</p>
35
- * </li>
36
- * <li>
37
- * <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
38
- * Reference.</i>
39
- * </p>
40
- * </li>
41
- * <li>
42
- * <p>You can only tag resources that are located in the specified AWS Region for
43
- * the AWS account.</p>
44
- * </li>
45
- * <li>
46
- * <p>To add tags to a resource, you need the necessary permissions for the service
47
- * that the resource belongs to as well as permissions for adding tags. For more
48
- * information, see the documentation for each service.</p>
49
- * </li>
50
- * </ul>
51
- * <important>
52
- * <p>Do not store personally identifiable information (PII) or other confidential or
53
- * sensitive information in tags. We use tags to provide you with billing and
54
- * administration services. Tags are not intended to be used for private or sensitive
55
- * data.</p>
56
- * </important>
57
- * @example
58
- * Use a bare-bones client and the command you need to make an API call.
59
- * ```javascript
60
- * import { ResourceGroupsTaggingAPIClient, TagResourcesCommand } from "@aws-sdk/client-resource-groups-tagging-api"; // ES Modules import
61
- * // const { ResourceGroupsTaggingAPIClient, TagResourcesCommand } = require("@aws-sdk/client-resource-groups-tagging-api"); // CommonJS import
62
- * const client = new ResourceGroupsTaggingAPIClient(config);
63
- * const command = new TagResourcesCommand(input);
64
- * const response = await client.send(command);
65
- * ```
66
- *
67
- * @see {@link TagResourcesCommandInput} for command's `input` shape.
68
- * @see {@link TagResourcesCommandOutput} for command's `response` shape.
69
- * @see {@link ResourceGroupsTaggingAPIClientResolvedConfig | config} for command's `input` shape.
70
- *
71
- */
72
- export class TagResourcesCommand extends $Command<
73
- TagResourcesCommandInput,
74
- TagResourcesCommandOutput,
75
- ResourceGroupsTaggingAPIClientResolvedConfig
76
- > {
77
- // Start section: command_properties
78
- // End section: command_properties
79
-
80
- constructor(readonly input: TagResourcesCommandInput) {
81
- // Start section: command_constructor
82
- super();
83
- // End section: command_constructor
84
- }
85
-
86
- /**
87
- * @internal
88
- */
89
- resolveMiddleware(
90
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
91
- configuration: ResourceGroupsTaggingAPIClientResolvedConfig,
92
- options?: __HttpHandlerOptions
93
- ): Handler<TagResourcesCommandInput, TagResourcesCommandOutput> {
94
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
95
-
96
- const stack = clientStack.concat(this.middlewareStack);
97
-
98
- const { logger } = configuration;
99
- const clientName = "ResourceGroupsTaggingAPIClient";
100
- const commandName = "TagResourcesCommand";
101
- const handlerExecutionContext: HandlerExecutionContext = {
102
- logger,
103
- clientName,
104
- commandName,
105
- inputFilterSensitiveLog: TagResourcesInput.filterSensitiveLog,
106
- outputFilterSensitiveLog: TagResourcesOutput.filterSensitiveLog,
107
- };
108
- const { requestHandler } = configuration;
109
- return stack.resolve(
110
- (request: FinalizeHandlerArguments<any>) =>
111
- requestHandler.handle(request.request as __HttpRequest, options || {}),
112
- handlerExecutionContext
113
- );
114
- }
115
-
116
- private serialize(input: TagResourcesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
117
- return serializeAws_json1_1TagResourcesCommand(input, context);
118
- }
119
-
120
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<TagResourcesCommandOutput> {
121
- return deserializeAws_json1_1TagResourcesCommand(output, context);
122
- }
123
-
124
- // Start section: command_body_extra
125
- // End section: command_body_extra
126
- }
@@ -1,114 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { UntagResourcesInput, UntagResourcesOutput } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_1UntagResourcesCommand,
17
- serializeAws_json1_1UntagResourcesCommand,
18
- } from "../protocols/Aws_json1_1";
19
- import {
20
- ResourceGroupsTaggingAPIClientResolvedConfig,
21
- ServiceInputTypes,
22
- ServiceOutputTypes,
23
- } from "../ResourceGroupsTaggingAPIClient";
24
-
25
- export interface UntagResourcesCommandInput extends UntagResourcesInput {}
26
- export interface UntagResourcesCommandOutput extends UntagResourcesOutput, __MetadataBearer {}
27
-
28
- /**
29
- * <p>Removes the specified tags from the specified resources. When you specify a tag key,
30
- * the action removes both that key and its associated value. The operation succeeds even
31
- * if you attempt to remove tags from a resource that were already removed. Note the
32
- * following:</p>
33
- * <ul>
34
- * <li>
35
- * <p>To remove tags from a resource, you need the necessary permissions for the
36
- * service that the resource belongs to as well as permissions for removing tags.
37
- * For more information, see the documentation for the service whose resource you
38
- * want to untag.</p>
39
- * </li>
40
- * <li>
41
- * <p>You can only tag resources that are located in the specified AWS Region for
42
- * the calling AWS account.</p>
43
- * </li>
44
- * </ul>
45
- * @example
46
- * Use a bare-bones client and the command you need to make an API call.
47
- * ```javascript
48
- * import { ResourceGroupsTaggingAPIClient, UntagResourcesCommand } from "@aws-sdk/client-resource-groups-tagging-api"; // ES Modules import
49
- * // const { ResourceGroupsTaggingAPIClient, UntagResourcesCommand } = require("@aws-sdk/client-resource-groups-tagging-api"); // CommonJS import
50
- * const client = new ResourceGroupsTaggingAPIClient(config);
51
- * const command = new UntagResourcesCommand(input);
52
- * const response = await client.send(command);
53
- * ```
54
- *
55
- * @see {@link UntagResourcesCommandInput} for command's `input` shape.
56
- * @see {@link UntagResourcesCommandOutput} for command's `response` shape.
57
- * @see {@link ResourceGroupsTaggingAPIClientResolvedConfig | config} for command's `input` shape.
58
- *
59
- */
60
- export class UntagResourcesCommand extends $Command<
61
- UntagResourcesCommandInput,
62
- UntagResourcesCommandOutput,
63
- ResourceGroupsTaggingAPIClientResolvedConfig
64
- > {
65
- // Start section: command_properties
66
- // End section: command_properties
67
-
68
- constructor(readonly input: UntagResourcesCommandInput) {
69
- // Start section: command_constructor
70
- super();
71
- // End section: command_constructor
72
- }
73
-
74
- /**
75
- * @internal
76
- */
77
- resolveMiddleware(
78
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
79
- configuration: ResourceGroupsTaggingAPIClientResolvedConfig,
80
- options?: __HttpHandlerOptions
81
- ): Handler<UntagResourcesCommandInput, UntagResourcesCommandOutput> {
82
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
83
-
84
- const stack = clientStack.concat(this.middlewareStack);
85
-
86
- const { logger } = configuration;
87
- const clientName = "ResourceGroupsTaggingAPIClient";
88
- const commandName = "UntagResourcesCommand";
89
- const handlerExecutionContext: HandlerExecutionContext = {
90
- logger,
91
- clientName,
92
- commandName,
93
- inputFilterSensitiveLog: UntagResourcesInput.filterSensitiveLog,
94
- outputFilterSensitiveLog: UntagResourcesOutput.filterSensitiveLog,
95
- };
96
- const { requestHandler } = configuration;
97
- return stack.resolve(
98
- (request: FinalizeHandlerArguments<any>) =>
99
- requestHandler.handle(request.request as __HttpRequest, options || {}),
100
- handlerExecutionContext
101
- );
102
- }
103
-
104
- private serialize(input: UntagResourcesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
105
- return serializeAws_json1_1UntagResourcesCommand(input, context);
106
- }
107
-
108
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UntagResourcesCommandOutput> {
109
- return deserializeAws_json1_1UntagResourcesCommand(output, context);
110
- }
111
-
112
- // Start section: command_body_extra
113
- // End section: command_body_extra
114
- }
package/src/endpoints.ts DELETED
@@ -1,57 +0,0 @@
1
- import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
2
- import { RegionInfoProvider } from "@aws-sdk/types";
3
-
4
- const regionHash: RegionHash = {};
5
-
6
- const partitionHash: PartitionHash = {
7
- aws: {
8
- regions: [
9
- "af-south-1",
10
- "ap-east-1",
11
- "ap-northeast-1",
12
- "ap-northeast-2",
13
- "ap-northeast-3",
14
- "ap-south-1",
15
- "ap-southeast-1",
16
- "ap-southeast-2",
17
- "ca-central-1",
18
- "eu-central-1",
19
- "eu-north-1",
20
- "eu-south-1",
21
- "eu-west-1",
22
- "eu-west-2",
23
- "eu-west-3",
24
- "me-south-1",
25
- "sa-east-1",
26
- "us-east-1",
27
- "us-east-2",
28
- "us-west-1",
29
- "us-west-2",
30
- ],
31
- hostname: "tagging.{region}.amazonaws.com",
32
- },
33
- "aws-cn": {
34
- regions: ["cn-north-1", "cn-northwest-1"],
35
- hostname: "tagging.{region}.amazonaws.com.cn",
36
- },
37
- "aws-iso": {
38
- regions: ["us-iso-east-1"],
39
- hostname: "tagging.{region}.c2s.ic.gov",
40
- },
41
- "aws-iso-b": {
42
- regions: ["us-isob-east-1"],
43
- hostname: "tagging.{region}.sc2s.sgov.gov",
44
- },
45
- "aws-us-gov": {
46
- regions: ["us-gov-east-1", "us-gov-west-1"],
47
- hostname: "tagging.{region}.amazonaws.com",
48
- },
49
- };
50
-
51
- export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
52
- getRegionInfo(region, {
53
- ...options,
54
- signingService: "tagging",
55
- regionHash,
56
- partitionHash,
57
- });
package/src/index.ts DELETED
@@ -1,16 +0,0 @@
1
- export * from "./ResourceGroupsTaggingAPIClient";
2
- export * from "./ResourceGroupsTaggingAPI";
3
- export * from "./commands/DescribeReportCreationCommand";
4
- export * from "./commands/GetComplianceSummaryCommand";
5
- export * from "./pagination/GetComplianceSummaryPaginator";
6
- export * from "./commands/GetResourcesCommand";
7
- export * from "./pagination/GetResourcesPaginator";
8
- export * from "./commands/GetTagKeysCommand";
9
- export * from "./pagination/GetTagKeysPaginator";
10
- export * from "./commands/GetTagValuesCommand";
11
- export * from "./pagination/GetTagValuesPaginator";
12
- export * from "./commands/StartReportCreationCommand";
13
- export * from "./commands/TagResourcesCommand";
14
- export * from "./commands/UntagResourcesCommand";
15
- export * from "./pagination/Interfaces";
16
- export * from "./models/index";
@@ -1 +0,0 @@
1
- export * from "./models_0";