@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.667Z") @Stability(value=Stable) public interface CustomAttributeConfig extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cognito.*;
CustomAttributeConfig customAttributeConfig = CustomAttributeConfig.builder()
.dataType("dataType")
// the properties below are optional
.mutable(false)
.numberConstraints(NumberAttributeConstraints.builder()
.max(123)
.min(123)
.build())
.stringConstraints(StringAttributeConstraints.builder()
.maxLen(123)
.minLen(123)
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CustomAttributeConfig.Builder
A builder for
CustomAttributeConfig |
static class |
CustomAttributeConfig.Jsii$Proxy
An implementation for
CustomAttributeConfig |
| Modifier and Type | Method and Description |
|---|---|
static CustomAttributeConfig.Builder |
builder() |
String |
getDataType()
The data type of the custom attribute.
|
default Boolean |
getMutable()
Specifies whether the value of the attribute can be changed.
|
default NumberAttributeConstraints |
getNumberConstraints()
The constraints for a custom attribute of the 'Number' data type.
|
default StringAttributeConstraints |
getStringConstraints()
The constraints for a custom attribute of 'String' data type.
|
@Stability(value=Stable) @NotNull String getDataType()
@Stability(value=Stable) @Nullable default Boolean getMutable()
For any user pool attribute that's mapped to an identity provider attribute, you must set this parameter to true. Amazon Cognito updates mapped attributes when users sign in to your application through an identity provider. If an attribute is immutable, Amazon Cognito throws an error when it attempts to update the attribute.
Default: false
@Stability(value=Stable) @Nullable default NumberAttributeConstraints getNumberConstraints()
Default: - None.
@Stability(value=Stable) @Nullable default StringAttributeConstraints getStringConstraints()
Default: - None.
@Stability(value=Stable) static CustomAttributeConfig.Builder builder()
CustomAttributeConfig.Builder of CustomAttributeConfigCopyright © 2022. All rights reserved.