@aws-sdk/client-cognito-identity-provider 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 CHANGED
@@ -89,19 +89,16 @@ using your favorite package manager:
89
89
 
90
90
  The AWS SDK is modulized by clients and commands.
91
91
  To send a request, you only need to import the `CognitoIdentityProviderClient` and
92
- the commands you need, for example `AddCustomAttributesCommand`:
92
+ the commands you need, for example `ListDevicesCommand`:
93
93
 
94
94
  ```js
95
95
  // ES5 example
96
- const {
97
- CognitoIdentityProviderClient,
98
- AddCustomAttributesCommand,
99
- } = require("@aws-sdk/client-cognito-identity-provider");
96
+ const { CognitoIdentityProviderClient, ListDevicesCommand } = require("@aws-sdk/client-cognito-identity-provider");
100
97
  ```
101
98
 
102
99
  ```ts
103
100
  // ES6+ example
104
- import { CognitoIdentityProviderClient, AddCustomAttributesCommand } from "@aws-sdk/client-cognito-identity-provider";
101
+ import { CognitoIdentityProviderClient, ListDevicesCommand } from "@aws-sdk/client-cognito-identity-provider";
105
102
  ```
106
103
 
107
104
  ### Usage
@@ -120,7 +117,7 @@ const client = new CognitoIdentityProviderClient({ region: "REGION" });
120
117
  const params = {
121
118
  /** input parameters */
122
119
  };
123
- const command = new AddCustomAttributesCommand(params);
120
+ const command = new ListDevicesCommand(params);
124
121
  ```
125
122
 
126
123
  #### Async/await
@@ -199,7 +196,7 @@ const client = new AWS.CognitoIdentityProvider({ region: "REGION" });
199
196
 
200
197
  // async/await.
201
198
  try {
202
- const data = await client.addCustomAttributes(params);
199
+ const data = await client.listDevices(params);
203
200
  // process data.
204
201
  } catch (error) {
205
202
  // error handling.
@@ -207,7 +204,7 @@ try {
207
204
 
208
205
  // Promises.
209
206
  client
210
- .addCustomAttributes(params)
207
+ .listDevices(params)
211
208
  .then((data) => {
212
209
  // process data.
213
210
  })
@@ -216,7 +213,7 @@ client
216
213
  });
217
214
 
218
215
  // callbacks.
219
- client.addCustomAttributes(params, (err, data) => {
216
+ client.listDevices(params, (err, data) => {
220
217
  // process err and data.
221
218
  });
222
219
  ```
@@ -605,9 +605,23 @@ export interface AdminCreateUserRequest {
605
605
  UserPoolId: string | undefined;
606
606
  /**
607
607
  * @public
608
- * <p>The username for the user. Must be unique within the user pool. Must be a UTF-8 string
609
- * between 1 and 128 characters. After the user is created, the username can't be
610
- * changed.</p>
608
+ * <p>The value that you want to set as the username sign-in attribute. The following
609
+ * conditions apply to the username parameter.</p>
610
+ * <ul>
611
+ * <li>
612
+ * <p>The username can't be a duplicate of another username in the same user
613
+ * pool.</p>
614
+ * </li>
615
+ * <li>
616
+ * <p>You can't change the value of a username after you create it.</p>
617
+ * </li>
618
+ * <li>
619
+ * <p>You can only provide a value if usernames are a valid sign-in attribute for
620
+ * your user pool. If your user pool only supports phone numbers or email addresses
621
+ * as sign-in attributes, Amazon Cognito automatically generates a username value. For more
622
+ * information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html#user-pool-settings-aliases">Customizing sign-in attributes</a>.</p>
623
+ * </li>
624
+ * </ul>
611
625
  */
612
626
  Username: string | undefined;
613
627
  /**
@@ -4846,6 +4860,8 @@ export interface UserPoolType {
4846
4860
  LambdaConfig?: LambdaConfigType;
4847
4861
  /**
4848
4862
  * @public
4863
+ * @deprecated
4864
+ *
4849
4865
  * <p>The status of a user pool.</p>
4850
4866
  */
4851
4867
  Status?: StatusType | string;
@@ -6655,7 +6671,7 @@ export interface CloudWatchLogsConfigurationType {
6655
6671
  * as your user pool.</p>
6656
6672
  * <p>To send logs to log groups with a resource policy of a size greater than 5120
6657
6673
  * characters, configure a log group with a path that starts with
6658
- * <code>/aws/vendedlogs</code>. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html">Enabling
6674
+ * <code>/aws/vendedlogs</code>. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html">Enabling
6659
6675
  * logging from certain Amazon Web Services services</a>.</p>
6660
6676
  */
6661
6677
  LogGroupArn?: string;
@@ -7645,6 +7661,8 @@ export interface UserPoolDescriptionType {
7645
7661
  LambdaConfig?: LambdaConfigType;
7646
7662
  /**
7647
7663
  * @public
7664
+ * @deprecated
7665
+ *
7648
7666
  * <p>The user pool status in a user pool description.</p>
7649
7667
  */
7650
7668
  Status?: StatusType | string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cognito-identity-provider",
3
3
  "description": "AWS SDK for JavaScript Cognito Identity Provider 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",