Class CfnUserPoolUser
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.cognito.CfnUserPoolUser
- All Implemented Interfaces:
IInspectable,IUserPoolUserRef,IEnvironmentAware,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:33.313Z")
@Stability(Stable)
public class CfnUserPoolUser
extends CfnResource
implements IInspectable, IUserPoolUserRef
The
AWS::Cognito::UserPoolUser resource creates an Amazon Cognito user pool user.
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.*;
CfnUserPoolUser cfnUserPoolUser = CfnUserPoolUser.Builder.create(this, "MyCfnUserPoolUser")
.userPoolId("userPoolId")
// the properties below are optional
.clientMetadata(Map.of(
"clientMetadataKey", "clientMetadata"))
.desiredDeliveryMediums(List.of("desiredDeliveryMediums"))
.forceAliasCreation(false)
.messageAction("messageAction")
.userAttributes(List.of(AttributeTypeProperty.builder()
.name("name")
.value("value")
.build()))
.username("username")
.validationData(List.of(AttributeTypeProperty.builder()
.name("name")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe name and value of a user attribute.static final classA fluent builder forCfnUserPoolUser.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.cognito.IUserPoolUserRef
IUserPoolUserRef.Jsii$Default, IUserPoolUserRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnUserPoolUser(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnUserPoolUser(software.amazon.jsii.JsiiObjectRef objRef) CfnUserPoolUser(software.constructs.Construct scope, String id, CfnUserPoolUserProps props) Create a newAWS::Cognito::UserPoolUser. -
Method Summary
Modifier and TypeMethodDescriptionA map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.SpecifyEMAILif email will be used to send the welcome message.This parameter is used only if thephone_number_verifiedoremail_verifiedattribute is set toTrue.Set toRESENDto resend the invitation message to a user that already exists, and to reset the temporary-password duration with a new temporary password.An array of name-value pairs that contain user attributes and attribute values to be set for the user to be created.The value that you want to set as the username sign-in attribute.The ID of the user pool where you want to create a user.A reference to a UserPoolUser resource.Temporary user attributes that contribute to the outcomes of your pre sign-up Lambda trigger.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnUserPoolUser.renderProperties(Map<String, Object> props) voidsetClientMetadata(Map<String, String> value) A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.voidsetClientMetadata(IResolvable value) A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.voidsetDesiredDeliveryMediums(List<String> value) SpecifyEMAILif email will be used to send the welcome message.voidsetForceAliasCreation(Boolean value) This parameter is used only if thephone_number_verifiedoremail_verifiedattribute is set toTrue.voidsetForceAliasCreation(IResolvable value) This parameter is used only if thephone_number_verifiedoremail_verifiedattribute is set toTrue.voidsetMessageAction(String value) Set toRESENDto resend the invitation message to a user that already exists, and to reset the temporary-password duration with a new temporary password.voidsetUserAttributes(List<Object> value) An array of name-value pairs that contain user attributes and attribute values to be set for the user to be created.voidsetUserAttributes(IResolvable value) An array of name-value pairs that contain user attributes and attribute values to be set for the user to be created.voidsetUsername(String value) The value that you want to set as the username sign-in attribute.voidsetUserPoolId(String value) The ID of the user pool where you want to create a user.voidsetValidationData(List<Object> value) Temporary user attributes that contribute to the outcomes of your pre sign-up Lambda trigger.voidsetValidationData(IResolvable value) Temporary user attributes that contribute to the outcomes of your pre sign-up Lambda trigger.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnUserPoolUser
protected CfnUserPoolUser(software.amazon.jsii.JsiiObjectRef objRef) -
CfnUserPoolUser
protected CfnUserPoolUser(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnUserPoolUser
@Stability(Stable) public CfnUserPoolUser(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnUserPoolUserProps props) Create a newAWS::Cognito::UserPoolUser.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
isCfnUserPoolUser
Checks whether the given object is a CfnUserPoolUser.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getUserPoolUserRef
A reference to a UserPoolUser resource.- Specified by:
getUserPoolUserRefin interfaceIUserPoolUserRef
-
getUserPoolId
The ID of the user pool where you want to create a user. -
setUserPoolId
The ID of the user pool where you want to create a user. -
getClientMetadata
A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.Returns union: either Mapinvalid input: '<'String,
String> orIResolvable -
setClientMetadata
A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers. -
setClientMetadata
A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers. -
getDesiredDeliveryMediums
SpecifyEMAILif email will be used to send the welcome message. -
setDesiredDeliveryMediums
SpecifyEMAILif email will be used to send the welcome message. -
getForceAliasCreation
This parameter is used only if thephone_number_verifiedoremail_verifiedattribute is set toTrue.Returns union: either
BooleanorIResolvable -
setForceAliasCreation
This parameter is used only if thephone_number_verifiedoremail_verifiedattribute is set toTrue. -
setForceAliasCreation
This parameter is used only if thephone_number_verifiedoremail_verifiedattribute is set toTrue. -
getMessageAction
Set toRESENDto resend the invitation message to a user that already exists, and to reset the temporary-password duration with a new temporary password. -
setMessageAction
Set toRESENDto resend the invitation message to a user that already exists, and to reset the temporary-password duration with a new temporary password. -
getUserAttributes
An array of name-value pairs that contain user attributes and attribute values to be set for the user to be created.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnUserPoolUser.AttributeTypeProperty> -
setUserAttributes
An array of name-value pairs that contain user attributes and attribute values to be set for the user to be created. -
setUserAttributes
An array of name-value pairs that contain user attributes and attribute values to be set for the user to be created. -
getUsername
The value that you want to set as the username sign-in attribute. -
setUsername
The value that you want to set as the username sign-in attribute. -
getValidationData
Temporary user attributes that contribute to the outcomes of your pre sign-up Lambda trigger.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnUserPoolUser.AttributeTypeProperty> -
setValidationData
Temporary user attributes that contribute to the outcomes of your pre sign-up Lambda trigger. -
setValidationData
Temporary user attributes that contribute to the outcomes of your pre sign-up Lambda trigger.
-