Class CfnUser
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.identitystore.CfnUser
- All Implemented Interfaces:
IInspectable,IUserRef,IEnvironmentAware,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:11.562Z")
@Stability(Stable)
public class CfnUser
extends CfnResource
implements IInspectable, IUserRef
Creates a user within the specified identity store.
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.identitystore.*;
CfnUser cfnUser = CfnUser.Builder.create(this, "MyCfnUser")
.identityStoreId("identityStoreId")
// the properties below are optional
.addresses(List.of(AddressesItemsProperty.builder()
.country("country")
.formatted("formatted")
.locality("locality")
.postalCode("postalCode")
.primary(false)
.region("region")
.streetAddress("streetAddress")
.type("type")
.build()))
.birthdate("birthdate")
.displayName("displayName")
.emails(List.of(EmailsItemsProperty.builder()
.primary(false)
.type("type")
.value("value")
.build()))
.locale("locale")
.name(NameProperty.builder()
.familyName("familyName")
.formatted("formatted")
.givenName("givenName")
.honorificPrefix("honorificPrefix")
.honorificSuffix("honorificSuffix")
.middleName("middleName")
.build())
.nickName("nickName")
.phoneNumbers(List.of(PhoneNumbersItemsProperty.builder()
.primary(false)
.type("type")
.value("value")
.build()))
.photos(List.of(PhotosItemsProperty.builder()
.value("value")
// the properties below are optional
.display("display")
.primary(false)
.type("type")
.build()))
.preferredLanguage("preferredLanguage")
.profileUrl("profileUrl")
.roles(List.of(RolesItemsProperty.builder()
.primary(false)
.type("type")
.value("value")
.build()))
.timezone("timezone")
.title("title")
.userName("userName")
.userType("userType")
.website("website")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceExample:static final classA fluent builder forCfnUser.static interfaceExample:static interfaceThe name of the user.static interfaceExample:static interfaceExample:static interfaceExample: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.identitystore.IUserRef
IUserRef.Jsii$Default, IUserRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnUser(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnUser(software.amazon.jsii.JsiiObjectRef objRef) CfnUser(software.constructs.Construct scope, String id, CfnUserProps props) Create a newAWS::IdentityStore::User. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForUser(IUserRef resource) A list of addresses associated with the user.The Amazon Resource Name (ARN) of the user.The date and time the user was created.The identifier of the user or system that created the user.The date and time the user was last updated.The identifier of the user or system that last updated the user.The identifier for a user in the identity store.The current status of the user account.The user's birthdate in YYYY-MM-DD format.A string containing the name of the user for display.A list of email addresses associated with the user.The globally unique identifier for the identity store.The geographical region or location of the user.getName()The name of the user.An alternate name for the user.A list of phone numbers associated with the user.A list of photos associated with the user.The preferred language of the user.A URL associated with the user.getRoles()A list of roles associated with the user.The time zone for the user.getTitle()The title of the user.A unique string used to identify the user.A reference to a User resource.A string indicating the type of user.The user's personal website or blog URL.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnUser.renderProperties(Map<String, Object> props) voidsetAddresses(List<Object> value) A list of addresses associated with the user.voidsetAddresses(IResolvable value) A list of addresses associated with the user.voidsetBirthdate(String value) The user's birthdate in YYYY-MM-DD format.voidsetDisplayName(String value) A string containing the name of the user for display.voidA list of email addresses associated with the user.voidsetEmails(IResolvable value) A list of email addresses associated with the user.voidsetIdentityStoreId(String value) The globally unique identifier for the identity store.voidThe geographical region or location of the user.voidsetName(IResolvable value) The name of the user.voidsetName(CfnUser.NameProperty value) The name of the user.voidsetNickName(String value) An alternate name for the user.voidsetPhoneNumbers(List<Object> value) A list of phone numbers associated with the user.voidsetPhoneNumbers(IResolvable value) A list of phone numbers associated with the user.voidA list of photos associated with the user.voidsetPhotos(IResolvable value) A list of photos associated with the user.voidsetPreferredLanguage(String value) The preferred language of the user.voidsetProfileUrl(String value) A URL associated with the user.voidA list of roles associated with the user.voidsetRoles(IResolvable value) A list of roles associated with the user.voidsetTimezone(String value) The time zone for the user.voidThe title of the user.voidsetUserName(String value) A unique string used to identify the user.voidsetUserType(String value) A string indicating the type of user.voidsetWebsite(String value) The user's personal website or blog URL.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods 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
getNode, withMethods 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
-
CfnUser
protected CfnUser(software.amazon.jsii.JsiiObjectRef objRef) -
CfnUser
protected CfnUser(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnUser
@Stability(Stable) public CfnUser(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnUserProps props) Create a newAWS::IdentityStore::User.- 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
-
arnForUser
- Parameters:
resource- This parameter is required.
-
isCfnUser
Checks whether the given object is a CfnUser.- 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.
-
getAttrArn
The Amazon Resource Name (ARN) of the user. -
getAttrCreatedAt
The date and time the user was created. -
getAttrCreatedBy
The identifier of the user or system that created the user. -
getAttrUpdatedAt
The date and time the user was last updated. -
getAttrUpdatedBy
The identifier of the user or system that last updated the user. -
getAttrUserId
The identifier for a user in the identity store. -
getAttrUserStatus
The current status of the user account. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getUserRef
A reference to a User resource.- Specified by:
getUserRefin interfaceIUserRef
-
getIdentityStoreId
The globally unique identifier for the identity store. -
setIdentityStoreId
The globally unique identifier for the identity store. -
getAddresses
A list of addresses associated with the user.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnUser.AddressesItemsProperty> -
setAddresses
A list of addresses associated with the user. -
setAddresses
A list of addresses associated with the user. -
getBirthdate
The user's birthdate in YYYY-MM-DD format. -
setBirthdate
The user's birthdate in YYYY-MM-DD format. -
getDisplayName
A string containing the name of the user for display. -
setDisplayName
A string containing the name of the user for display. -
getEmails
A list of email addresses associated with the user.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnUser.EmailsItemsProperty> -
setEmails
A list of email addresses associated with the user. -
setEmails
A list of email addresses associated with the user. -
getLocale
The geographical region or location of the user. -
setLocale
The geographical region or location of the user. -
getName
The name of the user.Returns union: either
IResolvableorCfnUser.NameProperty -
setName
The name of the user. -
setName
The name of the user. -
getNickName
An alternate name for the user. -
setNickName
An alternate name for the user. -
getPhoneNumbers
A list of phone numbers associated with the user.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnUser.PhoneNumbersItemsProperty> -
setPhoneNumbers
A list of phone numbers associated with the user. -
setPhoneNumbers
A list of phone numbers associated with the user. -
getPhotos
A list of photos associated with the user.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnUser.PhotosItemsProperty> -
setPhotos
A list of photos associated with the user. -
setPhotos
A list of photos associated with the user. -
getPreferredLanguage
The preferred language of the user. -
setPreferredLanguage
The preferred language of the user. -
getProfileUrl
A URL associated with the user. -
setProfileUrl
A URL associated with the user. -
getRoles
A list of roles associated with the user.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnUser.RolesItemsProperty> -
setRoles
A list of roles associated with the user. -
setRoles
A list of roles associated with the user. -
getTimezone
The time zone for the user. -
setTimezone
The time zone for the user. -
getTitle
The title of the user. -
setTitle
The title of the user. -
getUserName
A unique string used to identify the user. -
setUserName
A unique string used to identify the user. -
getUserType
A string indicating the type of user. -
setUserType
A string indicating the type of user. -
getWebsite
The user's personal website or blog URL. -
setWebsite
The user's personal website or blog URL.
-