Class CfnUser
- All Implemented Interfaces:
IInspectable,IUserRef,IEnvironmentAware,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
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")
.routingProfileArn("routingProfileArn")
.securityProfileArns(List.of("securityProfileArns"))
.username("username")
// the properties below are optional
.afterContactWorkConfigs(List.of(AfterContactWorkConfigPerChannelProperty.builder()
.afterContactWorkConfig(AfterContactWorkConfigProperty.builder()
.afterContactWorkTimeLimit(123)
.build())
.channel("channel")
// the properties below are optional
.agentFirstCallbackAfterContactWorkConfig(AfterContactWorkConfigProperty.builder()
.afterContactWorkTimeLimit(123)
.build())
.build()))
.autoAcceptConfigs(List.of(AutoAcceptConfigProperty.builder()
.autoAccept(false)
.channel("channel")
// the properties below are optional
.agentFirstCallbackAutoAccept(false)
.build()))
.directoryUserId("directoryUserId")
.hierarchyGroupArn("hierarchyGroupArn")
.identityInfo(UserIdentityInfoProperty.builder()
.email("email")
.firstName("firstName")
.lastName("lastName")
.mobile("mobile")
.secondaryEmail("secondaryEmail")
.build())
.password("password")
.persistentConnectionConfigs(List.of(PersistentConnectionConfigProperty.builder()
.channel("channel")
.persistentConnection(false)
.build()))
.phoneConfig(UserPhoneConfigProperty.builder()
.afterContactWorkTimeLimit(123)
.autoAccept(false)
.deskPhoneNumber("deskPhoneNumber")
.persistentConnection(false)
.phoneType("phoneType")
.build())
.phoneNumberConfigs(List.of(PhoneNumberConfigProperty.builder()
.channel("channel")
.phoneType("phoneType")
// the properties below are optional
.phoneNumber("phoneNumber")
.build()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.userProficiencies(List.of(UserProficiencyProperty.builder()
.attributeName("attributeName")
.attributeValue("attributeValue")
.level(123)
.build()))
.voiceEnhancementConfigs(List.of(VoiceEnhancementConfigProperty.builder()
.channel("channel")
.voiceEnhancementMode("voiceEnhancementMode")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAfter Contact Work configuration per channel.static interfaceAfter Contact Work configuration.static interfaceAuto-accept configuration per channel.static final classA fluent builder forCfnUser.static interfacePersistent Connection configuration per channel.static interfacePhone Number configuration per channel.static interfaceContains information about the identity of a user.static interfaceContains information about the phone configuration settings for a user.static interfacestatic interfaceVoice Enhancement configuration per channel.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.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.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) Create a newAWS::Connect::User. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForUser(IUserRef resource) After Contact Work configurations of a user.The Amazon Resource Name (ARN) of the user.Auto-accept configurations of a 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.Persistent Connection configurations of a user.Information about the phone configuration for the user.Phone Number configurations of a 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.Voice Enhancement configurations of a user.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnUser.renderProperties(Map<String, Object> props) voidsetAfterContactWorkConfigs(List<Object> value) After Contact Work configurations of a user.voidAfter Contact Work configurations of a user.voidsetAutoAcceptConfigs(List<Object> value) Auto-accept configurations of a user.voidsetAutoAcceptConfigs(IResolvable value) Auto-accept configurations of a user.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.voidsetPersistentConnectionConfigs(List<Object> value) Persistent Connection configurations of a user.voidPersistent Connection configurations of a user.voidsetPhoneConfig(IResolvable value) Information about the phone configuration for the user.voidInformation about the phone configuration for the user.voidsetPhoneNumberConfigs(List<Object> value) Phone Number configurations of a user.voidsetPhoneNumberConfigs(IResolvable value) Phone Number configurations of a 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.voidsetVoiceEnhancementConfigs(List<Object> value) Voice Enhancement configurations of a user.voidVoice Enhancement configurations of a user.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, 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::Connect::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.
-
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. -
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. -
getAfterContactWorkConfigs
After Contact Work configurations of a user.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnUser.AfterContactWorkConfigPerChannelProperty> -
setAfterContactWorkConfigs
After Contact Work configurations of a user. -
setAfterContactWorkConfigs
After Contact Work configurations of a user. -
getAutoAcceptConfigs
Auto-accept configurations of a user.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnUser.AutoAcceptConfigProperty> -
setAutoAcceptConfigs
Auto-accept configurations of a user. -
setAutoAcceptConfigs
Auto-accept configurations of a user. -
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. -
getPersistentConnectionConfigs
Persistent Connection configurations of a user.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnUser.PersistentConnectionConfigProperty> -
setPersistentConnectionConfigs
Persistent Connection configurations of a user. -
setPersistentConnectionConfigs
Persistent Connection configurations of a user. -
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. -
getPhoneNumberConfigs
Phone Number configurations of a user.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnUser.PhoneNumberConfigProperty> -
setPhoneNumberConfigs
Phone Number configurations of a user. -
setPhoneNumberConfigs
Phone Number configurations of a user. -
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. -
getVoiceEnhancementConfigs
Voice Enhancement configurations of a user.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnUser.VoiceEnhancementConfigProperty> -
setVoiceEnhancementConfigs
Voice Enhancement configurations of a user. -
setVoiceEnhancementConfigs
Voice Enhancement configurations of a user.
-