@aws-sdk/client-sso-admin 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.
Files changed (2) hide show
  1. package/README.md +7 -10
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -42,19 +42,16 @@ using your favorite package manager:
42
42
 
43
43
  The AWS SDK is modulized by clients and commands.
44
44
  To send a request, you only need to import the `SSOAdminClient` and
45
- the commands you need, for example `AttachCustomerManagedPolicyReferenceToPermissionSetCommand`:
45
+ the commands you need, for example `ListInstancesCommand`:
46
46
 
47
47
  ```js
48
48
  // ES5 example
49
- const {
50
- SSOAdminClient,
51
- AttachCustomerManagedPolicyReferenceToPermissionSetCommand,
52
- } = require("@aws-sdk/client-sso-admin");
49
+ const { SSOAdminClient, ListInstancesCommand } = require("@aws-sdk/client-sso-admin");
53
50
  ```
54
51
 
55
52
  ```ts
56
53
  // ES6+ example
57
- import { SSOAdminClient, AttachCustomerManagedPolicyReferenceToPermissionSetCommand } from "@aws-sdk/client-sso-admin";
54
+ import { SSOAdminClient, ListInstancesCommand } from "@aws-sdk/client-sso-admin";
58
55
  ```
59
56
 
60
57
  ### Usage
@@ -73,7 +70,7 @@ const client = new SSOAdminClient({ region: "REGION" });
73
70
  const params = {
74
71
  /** input parameters */
75
72
  };
76
- const command = new AttachCustomerManagedPolicyReferenceToPermissionSetCommand(params);
73
+ const command = new ListInstancesCommand(params);
77
74
  ```
78
75
 
79
76
  #### Async/await
@@ -152,7 +149,7 @@ const client = new AWS.SSOAdmin({ region: "REGION" });
152
149
 
153
150
  // async/await.
154
151
  try {
155
- const data = await client.attachCustomerManagedPolicyReferenceToPermissionSet(params);
152
+ const data = await client.listInstances(params);
156
153
  // process data.
157
154
  } catch (error) {
158
155
  // error handling.
@@ -160,7 +157,7 @@ try {
160
157
 
161
158
  // Promises.
162
159
  client
163
- .attachCustomerManagedPolicyReferenceToPermissionSet(params)
160
+ .listInstances(params)
164
161
  .then((data) => {
165
162
  // process data.
166
163
  })
@@ -169,7 +166,7 @@ client
169
166
  });
170
167
 
171
168
  // callbacks.
172
- client.attachCustomerManagedPolicyReferenceToPermissionSet(params, (err, data) => {
169
+ client.listInstances(params, (err, data) => {
173
170
  // process err and data.
174
171
  });
175
172
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sso-admin",
3
3
  "description": "AWS SDK for JavaScript Sso Admin Client for Node.js, Browser and React Native",
4
- "version": "3.418.0",
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.418.0",
25
- "@aws-sdk/credential-provider-node": "3.418.0",
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",