@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:44.575Z") @Stability(value=Stable) public class ClientAttributes extends software.amazon.jsii.JsiiObject
Example:
UserPool pool = new UserPool(this, "Pool");
ClientAttributes clientWriteAttributes = (new ClientAttributes()).withStandardAttributes(StandardAttributesMask.builder().fullname(true).email(true).build()).withCustomAttributes("favouritePizza", "favouriteBeverage");
ClientAttributes clientReadAttributes = clientWriteAttributes.withStandardAttributes(StandardAttributesMask.builder().emailVerified(true).build()).withCustomAttributes("pointsEarned");
pool.addClient("app-client", UserPoolClientOptions.builder()
// ...
.readAttributes(clientReadAttributes)
.writeAttributes(clientWriteAttributes)
.build());
| Modifier | Constructor and Description |
|---|---|
|
ClientAttributes()
Creates a ClientAttributes with the specified attributes.
|
protected |
ClientAttributes(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ClientAttributes(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
attributes()
The list of attributes represented by this ClientAttributes.
|
ClientAttributes |
withCustomAttributes(String... attributes)
Creates a custom ClientAttributes with the specified attributes.
|
ClientAttributes |
withStandardAttributes(StandardAttributesMask attributes)
Creates a custom ClientAttributes with the specified attributes.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected ClientAttributes(software.amazon.jsii.JsiiObjectRef objRef)
protected ClientAttributes(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) public ClientAttributes()
Default: - a ClientAttributes object without any attributes
@Stability(value=Stable) @NotNull public List<String> attributes()
@Stability(value=Stable) @NotNull public ClientAttributes withCustomAttributes(@NotNull String... attributes)
attributes - a list of custom attributes to add to the set. This parameter is required.@Stability(value=Stable) @NotNull public ClientAttributes withStandardAttributes(@NotNull StandardAttributesMask attributes)
attributes - a list of standard attributes to add to the set. This parameter is required.Copyright © 2022. All rights reserved.