@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:35.640Z") public class CfnUser extends CfnResource implements IInspectable
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") .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())) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnUser.Builder
A fluent builder for
CfnUser . |
static interface |
CfnUser.UserIdentityInfoProperty
Contains information about the identity of a user.
|
static interface |
CfnUser.UserPhoneConfigProperty
Contains information about the phone configuration settings for a user.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnUser(Construct scope,
java.lang.String id,
CfnUserProps props)
Create a new `AWS::Connect::User`.
|
protected |
CfnUser(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnUser(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrUserArn()
The Amazon Resource Name (ARN) of the user.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getDirectoryUserId()
The identifier of the user account in the directory used for identity management.
|
java.lang.String |
getHierarchyGroupArn()
The Amazon Resource Name (ARN) of the user's hierarchy group.
|
java.lang.Object |
getIdentityInfo()
Information about the user identity.
|
java.lang.String |
getInstanceArn()
The Amazon Resource Name (ARN) of the instance.
|
java.lang.String |
getPassword()
The user's password.
|
java.lang.Object |
getPhoneConfig()
Information about the phone configuration for the user.
|
java.lang.String |
getRoutingProfileArn()
The Amazon Resource Name (ARN) of the user's routing profile.
|
java.util.List<java.lang.String> |
getSecurityProfileArns()
The Amazon Resource Name (ARN) of the user's security profile.
|
TagManager |
getTags()
The tags.
|
java.lang.String |
getUsername()
The user name assigned to the user account.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setDirectoryUserId(java.lang.String value)
The identifier of the user account in the directory used for identity management.
|
void |
setHierarchyGroupArn(java.lang.String value)
The Amazon Resource Name (ARN) of the user's hierarchy group.
|
void |
setIdentityInfo(CfnUser.UserIdentityInfoProperty value)
Information about the user identity.
|
void |
setIdentityInfo(IResolvable value)
Information about the user identity.
|
void |
setInstanceArn(java.lang.String value)
The Amazon Resource Name (ARN) of the instance.
|
void |
setPassword(java.lang.String value)
The user's password.
|
void |
setPhoneConfig(CfnUser.UserPhoneConfigProperty value)
Information about the phone configuration for the user.
|
void |
setPhoneConfig(IResolvable value)
Information about the phone configuration for the user.
|
void |
setRoutingProfileArn(java.lang.String value)
The Amazon Resource Name (ARN) of the user's routing profile.
|
void |
setSecurityProfileArns(java.util.List<java.lang.String> value)
The Amazon Resource Name (ARN) of the user's security profile.
|
void |
setUsername(java.lang.String value)
The user name assigned to the user account.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnUser(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnUser(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnUser(Construct scope, java.lang.String id, CfnUserProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrUserArn()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
public java.lang.String getInstanceArn()
public void setInstanceArn(java.lang.String value)
public java.lang.Object getPhoneConfig()
public void setPhoneConfig(IResolvable value)
public void setPhoneConfig(CfnUser.UserPhoneConfigProperty value)
public java.lang.String getRoutingProfileArn()
public void setRoutingProfileArn(java.lang.String value)
public java.util.List<java.lang.String> getSecurityProfileArns()
public void setSecurityProfileArns(java.util.List<java.lang.String> value)
public java.lang.String getUsername()
public void setUsername(java.lang.String value)
public java.lang.String getDirectoryUserId()
public void setDirectoryUserId(java.lang.String value)
public java.lang.String getHierarchyGroupArn()
public void setHierarchyGroupArn(java.lang.String value)
public java.lang.Object getIdentityInfo()
public void setIdentityInfo(IResolvable value)
public void setIdentityInfo(CfnUser.UserIdentityInfoProperty value)
public java.lang.String getPassword()
public void setPassword(java.lang.String value)