@aws-sdk/client-resource-groups-tagging-api 3.418.0 → 3.423.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 +7 -13
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -23,22 +23,16 @@ using your favorite package manager:
|
|
|
23
23
|
|
|
24
24
|
The AWS SDK is modulized by clients and commands.
|
|
25
25
|
To send a request, you only need to import the `ResourceGroupsTaggingAPIClient` and
|
|
26
|
-
the commands you need, for example `
|
|
26
|
+
the commands you need, for example `GetTagKeysCommand`:
|
|
27
27
|
|
|
28
28
|
```js
|
|
29
29
|
// ES5 example
|
|
30
|
-
const {
|
|
31
|
-
ResourceGroupsTaggingAPIClient,
|
|
32
|
-
DescribeReportCreationCommand,
|
|
33
|
-
} = require("@aws-sdk/client-resource-groups-tagging-api");
|
|
30
|
+
const { ResourceGroupsTaggingAPIClient, GetTagKeysCommand } = require("@aws-sdk/client-resource-groups-tagging-api");
|
|
34
31
|
```
|
|
35
32
|
|
|
36
33
|
```ts
|
|
37
34
|
// ES6+ example
|
|
38
|
-
import {
|
|
39
|
-
ResourceGroupsTaggingAPIClient,
|
|
40
|
-
DescribeReportCreationCommand,
|
|
41
|
-
} from "@aws-sdk/client-resource-groups-tagging-api";
|
|
35
|
+
import { ResourceGroupsTaggingAPIClient, GetTagKeysCommand } from "@aws-sdk/client-resource-groups-tagging-api";
|
|
42
36
|
```
|
|
43
37
|
|
|
44
38
|
### Usage
|
|
@@ -57,7 +51,7 @@ const client = new ResourceGroupsTaggingAPIClient({ region: "REGION" });
|
|
|
57
51
|
const params = {
|
|
58
52
|
/** input parameters */
|
|
59
53
|
};
|
|
60
|
-
const command = new
|
|
54
|
+
const command = new GetTagKeysCommand(params);
|
|
61
55
|
```
|
|
62
56
|
|
|
63
57
|
#### Async/await
|
|
@@ -136,7 +130,7 @@ const client = new AWS.ResourceGroupsTaggingAPI({ region: "REGION" });
|
|
|
136
130
|
|
|
137
131
|
// async/await.
|
|
138
132
|
try {
|
|
139
|
-
const data = await client.
|
|
133
|
+
const data = await client.getTagKeys(params);
|
|
140
134
|
// process data.
|
|
141
135
|
} catch (error) {
|
|
142
136
|
// error handling.
|
|
@@ -144,7 +138,7 @@ try {
|
|
|
144
138
|
|
|
145
139
|
// Promises.
|
|
146
140
|
client
|
|
147
|
-
.
|
|
141
|
+
.getTagKeys(params)
|
|
148
142
|
.then((data) => {
|
|
149
143
|
// process data.
|
|
150
144
|
})
|
|
@@ -153,7 +147,7 @@ client
|
|
|
153
147
|
});
|
|
154
148
|
|
|
155
149
|
// callbacks.
|
|
156
|
-
client.
|
|
150
|
+
client.getTagKeys(params, (err, data) => {
|
|
157
151
|
// process err and data.
|
|
158
152
|
});
|
|
159
153
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-resource-groups-tagging-api",
|
|
3
3
|
"description": "AWS SDK for JavaScript Resource Groups Tagging Api Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.423.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.423.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.423.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.418.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.418.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.418.0",
|