Interface CustomAttributeConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CustomAttributeConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2025-01-04T09:06:19.811Z")
@Stability(Stable)
public interface CustomAttributeConfig
extends software.amazon.jsii.JsiiSerializable
Configuration that will be fed into CloudFormation for any custom attribute type.
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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCustomAttributeConfig
static final class
An implementation forCustomAttributeConfig
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The data type of the custom attribute.default Boolean
Specifies whether the value of the attribute can be changed.default NumberAttributeConstraints
The constraints for a custom attribute of the 'Number' data type.default StringAttributeConstraints
The constraints for a custom attribute of 'String' data type.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDataType
The data type of the custom attribute.- See Also:
-
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
-
getNumberConstraints
The constraints for a custom attribute of the 'Number' data type.Default: - None.
-
getStringConstraints
The constraints for a custom attribute of 'String' data type.Default: - None.
-
builder
- Returns:
- a
CustomAttributeConfig.Builder
ofCustomAttributeConfig
-