Interface CustomAttributeProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
NumberAttributeProps,StringAttributeProps
- All Known Implementing Classes:
CustomAttributeProps.Jsii$Proxy,NumberAttributeProps.Jsii$Proxy,StringAttributeProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:33.333Z")
@Stability(Stable)
public interface CustomAttributeProps
extends software.amazon.jsii.JsiiSerializable
Constraints that can be applied to a custom attribute of any type.
Example:
UserPool.Builder.create(this, "myuserpool")
// ...
.standardAttributes(StandardAttributes.builder()
.fullname(StandardAttribute.builder()
.required(true)
.mutable(false)
.build())
.address(StandardAttribute.builder()
.required(false)
.mutable(true)
.build())
.build())
.customAttributes(Map.of(
"myappid", StringAttribute.Builder.create().minLen(5).maxLen(15).mutable(false).build(),
"callingcode", NumberAttribute.Builder.create().min(1).max(3).mutable(true).build(),
"isEmployee", BooleanAttribute.Builder.create().mutable(true).build(),
"joinedOn", new DateTimeAttribute()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCustomAttributePropsstatic final classAn implementation forCustomAttributeProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomAttributeProps.Builderbuilder()default BooleanSpecifies whether the value of the attribute can be changed.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMutable
Specifies whether the value of the attribute can be changed.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
-
builder
- Returns:
- a
CustomAttributeProps.BuilderofCustomAttributeProps
-