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.connect.CfnUser
- All Implemented Interfaces:
IInspectable,ITaggable,IUserRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:34.410Z")
@Stability(Stable)
public class CfnUser
extends CfnResource
implements IInspectable, IUserRef, ITaggable
Specifies a user account for an Amazon Connect instance.
For information about how to create user accounts using the Amazon Connect console, see Add Users in the Amazon Connect Administrator Guide .
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.connect.*;
CfnUser cfnUser = CfnUser.Builder.create(this, "MyCfnUser")
.instanceArn("instanceArn")
.phoneConfig(UserPhoneConfigProperty.builder()
.phoneType("phoneType")
// the properties below are optional
.afterContactWorkTimeLimit(123)
.autoAccept(false)
.deskPhoneNumber("deskPhoneNumber")
.persistentConnection(false)
.build())
.routingProfileArn("routingProfileArn")
.securityProfileArns(List.of("securityProfileArns"))
.username("username")
// the properties below are optional
.directoryUserId("directoryUserId")
.hierarchyGroupArn("hierarchyGroupArn")
.identityInfo(UserIdentityInfoProperty.builder()
.email("email")
.firstName("firstName")
.lastName("lastName")
.mobile("mobile")
.secondaryEmail("secondaryEmail")
.build())
.password("password")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.userProficiencies(List.of(UserProficiencyProperty.builder()
.attributeName("attributeName")
.attributeValue("attributeValue")
.level(123)
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnUser.static interfaceContains information about the identity of a user.static interfaceContains information about the phone configuration settings for a user.static interfaceNested 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.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.connect.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) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the user.The identifier of the user account in the directory used for identity management.The Amazon Resource Name (ARN) of the user's hierarchy group.Information about the user identity.The Amazon Resource Name (ARN) of the instance.The user's password.Information about the phone configuration for the user.The Amazon Resource Name (ARN) of the user's routing profile.The Amazon Resource Name (ARN) of the user's security profile.getTags()Tag Manager which manages the tags for this resource.The tags.The user name assigned to the user account.One or more predefined attributes assigned to a user, with a numeric value that indicates how their level of skill in a specified area.A reference to a User resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDirectoryUserId(String value) The identifier of the user account in the directory used for identity management.voidsetHierarchyGroupArn(String value) The Amazon Resource Name (ARN) of the user's hierarchy group.voidsetIdentityInfo(IResolvable value) Information about the user identity.voidInformation about the user identity.voidsetInstanceArn(String value) The Amazon Resource Name (ARN) of the instance.voidsetPassword(String value) The user's password.voidsetPhoneConfig(IResolvable value) Information about the phone configuration for the user.voidInformation about the phone configuration for the user.voidsetRoutingProfileArn(String value) The Amazon Resource Name (ARN) of the user's routing profile.voidsetSecurityProfileArns(List<String> value) The Amazon Resource Name (ARN) of the user's security profile.voidsetTagsRaw(List<CfnTag> value) The tags.voidsetUsername(String value) The user name assigned to the user account.voidsetUserProficiencies(List<Object> value) One or more predefined attributes assigned to a user, with a numeric value that indicates how their level of skill in a specified area.voidsetUserProficiencies(IResolvable value) One or more predefined attributes assigned to a user, with a numeric value that indicates how their level of skill in a specified area.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, 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.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) - 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
-
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.
-
getAttrUserArn
The Amazon Resource Name (ARN) of the user. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getUserRef
A reference to a User resource.- Specified by:
getUserRefin interfaceIUserRef
-
getInstanceArn
The Amazon Resource Name (ARN) of the instance. -
setInstanceArn
The Amazon Resource Name (ARN) of the instance. -
getPhoneConfig
Information about the phone configuration for the user.Returns union: either
IResolvableorCfnUser.UserPhoneConfigProperty -
setPhoneConfig
Information about the phone configuration for the user. -
setPhoneConfig
Information about the phone configuration for the user. -
getRoutingProfileArn
The Amazon Resource Name (ARN) of the user's routing profile. -
setRoutingProfileArn
The Amazon Resource Name (ARN) of the user's routing profile. -
getSecurityProfileArns
The Amazon Resource Name (ARN) of the user's security profile. -
setSecurityProfileArns
The Amazon Resource Name (ARN) of the user's security profile. -
getUsername
The user name assigned to the user account. -
setUsername
The user name assigned to the user account. -
getDirectoryUserId
The identifier of the user account in the directory used for identity management. -
setDirectoryUserId
The identifier of the user account in the directory used for identity management. -
getHierarchyGroupArn
The Amazon Resource Name (ARN) of the user's hierarchy group. -
setHierarchyGroupArn
The Amazon Resource Name (ARN) of the user's hierarchy group. -
getIdentityInfo
Information about the user identity.Returns union: either
IResolvableorCfnUser.UserIdentityInfoProperty -
setIdentityInfo
Information about the user identity. -
setIdentityInfo
Information about the user identity. -
getPassword
The user's password. -
setPassword
The user's password. -
getTagsRaw
The tags. -
setTagsRaw
The tags. -
getUserProficiencies
One or more predefined attributes assigned to a user, with a numeric value that indicates how their level of skill in a specified area.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnUser.UserProficiencyProperty> -
setUserProficiencies
One or more predefined attributes assigned to a user, with a numeric value that indicates how their level of skill in a specified area. -
setUserProficiencies
One or more predefined attributes assigned to a user, with a numeric value that indicates how their level of skill in a specified area.
-