Skip to content
v2.278.0

CfnUserProps Struct ​

Properties for defining a CfnUser.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_connect as connect } from 'aws-cdk-lib';
const cfnUserProps: connect.CfnUserProps = {
  instanceArn: 'instanceArn',
  routingProfileArn: 'routingProfileArn',
  securityProfileArns: ['securityProfileArns'],
  username: 'username',

  // the properties below are optional
  afterContactWorkConfigs: [{
    afterContactWorkConfig: {
      afterContactWorkMode: 'afterContactWorkMode',
      afterContactWorkTimeLimit: 123,
    },
    channel: 'channel',

    // the properties below are optional
    agentFirstCallbackAfterContactWorkConfig: {
      afterContactWorkMode: 'afterContactWorkMode',
      afterContactWorkTimeLimit: 123,
    },
  }],
  autoAcceptConfigs: [{
    autoAccept: false,
    channel: 'channel',

    // the properties below are optional
    agentFirstCallbackAutoAccept: false,
  }],
  directoryUserId: 'directoryUserId',
  hierarchyGroupArn: 'hierarchyGroupArn',
  identityInfo: {
    email: 'email',
    firstName: 'firstName',
    lastName: 'lastName',
    mobile: 'mobile',
    secondaryEmail: 'secondaryEmail',
  },
  password: 'password',
  persistentConnectionConfigs: [{
    channel: 'channel',
    persistentConnection: false,
  }],
  phoneConfig: {
    afterContactWorkTimeLimit: 123,
    autoAccept: false,
    deskPhoneNumber: 'deskPhoneNumber',
    persistentConnection: false,
    phoneType: 'phoneType',
  },
  phoneNumberConfigs: [{
    channel: 'channel',
    phoneType: 'phoneType',

    // the properties below are optional
    phoneNumber: 'phoneNumber',
  }],
  tags: [{
    key: 'key',
    value: 'value',
  }],
  userProficiencies: [{
    attributeName: 'attributeName',
    attributeValue: 'attributeValue',
    level: 123,
  }],
  voiceEnhancementConfigs: [{
    channel: 'channel',
    voiceEnhancementMode: 'voiceEnhancementMode',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_connect as connect

cfn_user_props = connect.CfnUserProps(
    instance_arn="instanceArn",
    routing_profile_arn="routingProfileArn",
    security_profile_arns=["securityProfileArns"],
    username="username",

    # the properties below are optional
    after_contact_work_configs=[connect.CfnUser.AfterContactWorkConfigPerChannelProperty(
        after_contact_work_config=connect.CfnUser.AfterContactWorkConfigProperty(
            after_contact_work_mode="afterContactWorkMode",
            after_contact_work_time_limit=123
        ),
        channel="channel",

        # the properties below are optional
        agent_first_callback_after_contact_work_config=connect.CfnUser.AfterContactWorkConfigProperty(
            after_contact_work_mode="afterContactWorkMode",
            after_contact_work_time_limit=123
        )
    )],
    auto_accept_configs=[connect.CfnUser.AutoAcceptConfigProperty(
        auto_accept=False,
        channel="channel",

        # the properties below are optional
        agent_first_callback_auto_accept=False
    )],
    directory_user_id="directoryUserId",
    hierarchy_group_arn="hierarchyGroupArn",
    identity_info=connect.CfnUser.UserIdentityInfoProperty(
        email="email",
        first_name="firstName",
        last_name="lastName",
        mobile="mobile",
        secondary_email="secondaryEmail"
    ),
    password="password",
    persistent_connection_configs=[connect.CfnUser.PersistentConnectionConfigProperty(
        channel="channel",
        persistent_connection=False
    )],
    phone_config=connect.CfnUser.UserPhoneConfigProperty(
        after_contact_work_time_limit=123,
        auto_accept=False,
        desk_phone_number="deskPhoneNumber",
        persistent_connection=False,
        phone_type="phoneType"
    ),
    phone_number_configs=[connect.CfnUser.PhoneNumberConfigProperty(
        channel="channel",
        phone_type="phoneType",

        # the properties below are optional
        phone_number="phoneNumber"
    )],
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    user_proficiencies=[connect.CfnUser.UserProficiencyProperty(
        attribute_name="attributeName",
        attribute_value="attributeValue",
        level=123
    )],
    voice_enhancement_configs=[connect.CfnUser.VoiceEnhancementConfigProperty(
        channel="channel",
        voice_enhancement_mode="voiceEnhancementMode"
    )]
)
java
// 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.*;

CfnUserProps cfnUserProps = CfnUserProps.builder()
        .instanceArn("instanceArn")
        .routingProfileArn("routingProfileArn")
        .securityProfileArns(List.of("securityProfileArns"))
        .username("username")

        // the properties below are optional
        .afterContactWorkConfigs(List.of(AfterContactWorkConfigPerChannelProperty.builder()
                .afterContactWorkConfig(AfterContactWorkConfigProperty.builder()
                        .afterContactWorkMode("afterContactWorkMode")
                        .afterContactWorkTimeLimit(123)
                        .build())
                .channel("channel")

                // the properties below are optional
                .agentFirstCallbackAfterContactWorkConfig(AfterContactWorkConfigProperty.builder()
                        .afterContactWorkMode("afterContactWorkMode")
                        .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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Connect;

var cfnUserProps = new CfnUserProps {
    InstanceArn = "instanceArn",
    RoutingProfileArn = "routingProfileArn",
    SecurityProfileArns = new [] { "securityProfileArns" },
    Username = "username",

    // the properties below are optional
    AfterContactWorkConfigs = new [] { new AfterContactWorkConfigPerChannelProperty {
        AfterContactWorkConfig = new AfterContactWorkConfigProperty {
            AfterContactWorkMode = "afterContactWorkMode",
            AfterContactWorkTimeLimit = 123
        },
        Channel = "channel",

        // the properties below are optional
        AgentFirstCallbackAfterContactWorkConfig = new AfterContactWorkConfigProperty {
            AfterContactWorkMode = "afterContactWorkMode",
            AfterContactWorkTimeLimit = 123
        }
    } },
    AutoAcceptConfigs = new [] { new AutoAcceptConfigProperty {
        AutoAccept = false,
        Channel = "channel",

        // the properties below are optional
        AgentFirstCallbackAutoAccept = false
    } },
    DirectoryUserId = "directoryUserId",
    HierarchyGroupArn = "hierarchyGroupArn",
    IdentityInfo = new UserIdentityInfoProperty {
        Email = "email",
        FirstName = "firstName",
        LastName = "lastName",
        Mobile = "mobile",
        SecondaryEmail = "secondaryEmail"
    },
    Password = "password",
    PersistentConnectionConfigs = new [] { new PersistentConnectionConfigProperty {
        Channel = "channel",
        PersistentConnection = false
    } },
    PhoneConfig = new UserPhoneConfigProperty {
        AfterContactWorkTimeLimit = 123,
        AutoAccept = false,
        DeskPhoneNumber = "deskPhoneNumber",
        PersistentConnection = false,
        PhoneType = "phoneType"
    },
    PhoneNumberConfigs = new [] { new PhoneNumberConfigProperty {
        Channel = "channel",
        PhoneType = "phoneType",

        // the properties below are optional
        PhoneNumber = "phoneNumber"
    } },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    UserProficiencies = new [] { new UserProficiencyProperty {
        AttributeName = "attributeName",
        AttributeValue = "attributeValue",
        Level = 123
    } },
    VoiceEnhancementConfigs = new [] { new VoiceEnhancementConfigProperty {
        Channel = "channel",
        VoiceEnhancementMode = "voiceEnhancementMode"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnUserProps := &CfnUserProps{
	InstanceArn: jsii.String("instanceArn"),
	RoutingProfileArn: jsii.String("routingProfileArn"),
	SecurityProfileArns: []*string{
		jsii.String("securityProfileArns"),
	},
	Username: jsii.String("username"),

	// the properties below are optional
	AfterContactWorkConfigs: []interface{}{
		&AfterContactWorkConfigPerChannelProperty{
			AfterContactWorkConfig: &AfterContactWorkConfigProperty{
				AfterContactWorkMode: jsii.String("afterContactWorkMode"),
				AfterContactWorkTimeLimit: jsii.Number(123),
			},
			Channel: jsii.String("channel"),

			// the properties below are optional
			AgentFirstCallbackAfterContactWorkConfig: &AfterContactWorkConfigProperty{
				AfterContactWorkMode: jsii.String("afterContactWorkMode"),
				AfterContactWorkTimeLimit: jsii.Number(123),
			},
		},
	},
	AutoAcceptConfigs: []interface{}{
		&AutoAcceptConfigProperty{
			AutoAccept: jsii.Boolean(false),
			Channel: jsii.String("channel"),

			// the properties below are optional
			AgentFirstCallbackAutoAccept: jsii.Boolean(false),
		},
	},
	DirectoryUserId: jsii.String("directoryUserId"),
	HierarchyGroupArn: jsii.String("hierarchyGroupArn"),
	IdentityInfo: &UserIdentityInfoProperty{
		Email: jsii.String("email"),
		FirstName: jsii.String("firstName"),
		LastName: jsii.String("lastName"),
		Mobile: jsii.String("mobile"),
		SecondaryEmail: jsii.String("secondaryEmail"),
	},
	Password: jsii.String("password"),
	PersistentConnectionConfigs: []interface{}{
		&PersistentConnectionConfigProperty{
			Channel: jsii.String("channel"),
			PersistentConnection: jsii.Boolean(false),
		},
	},
	PhoneConfig: &UserPhoneConfigProperty{
		AfterContactWorkTimeLimit: jsii.Number(123),
		AutoAccept: jsii.Boolean(false),
		DeskPhoneNumber: jsii.String("deskPhoneNumber"),
		PersistentConnection: jsii.Boolean(false),
		PhoneType: jsii.String("phoneType"),
	},
	PhoneNumberConfigs: []interface{}{
		&PhoneNumberConfigProperty{
			Channel: jsii.String("channel"),
			PhoneType: jsii.String("phoneType"),

			// the properties below are optional
			PhoneNumber: jsii.String("phoneNumber"),
		},
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	UserProficiencies: []interface{}{
		&UserProficiencyProperty{
			AttributeName: jsii.String("attributeName"),
			AttributeValue: jsii.String("attributeValue"),
			Level: jsii.Number(123),
		},
	},
	VoiceEnhancementConfigs: []interface{}{
		&VoiceEnhancementConfigProperty{
			Channel: jsii.String("channel"),
			VoiceEnhancementMode: jsii.String("voiceEnhancementMode"),
		},
	},
}

Properties ​

afterContactWorkConfigsoptionalIResolvable | IResolvable | CfnUser.AfterContactWorkConfigPerChannelProperty[]after_contact_work_configsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AfterContactWorkConfigPerChannelProperty]]]afterContactWorkConfigsoptionalIResolvableAfterContactWorkConfigsoptionalIResolvableAfterContactWorkConfigsoptionalinterface{} #
After Contact Work configurations of a user.
autoAcceptConfigsoptionalIResolvable | IResolvable | CfnUser.AutoAcceptConfigProperty[]auto_accept_configsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AutoAcceptConfigProperty]]]autoAcceptConfigsoptionalIResolvableAutoAcceptConfigsoptionalIResolvableAutoAcceptConfigsoptionalinterface{} #
Auto-accept configurations of a user.
directoryUserIdoptionalstringdirectory_user_idoptionalstrdirectoryUserIdoptionalStringDirectoryUserIdoptionalstringDirectoryUserIdoptional*string #
The identifier of the user account in the directory used for identity management.
hierarchyGroupArnoptionalstringhierarchy_group_arnoptionalstrhierarchyGroupArnoptionalStringHierarchyGroupArnoptionalstringHierarchyGroupArnoptional*string #
The Amazon Resource Name (ARN) of the user's hierarchy group.
identityInfooptionalIResolvable | CfnUser.UserIdentityInfoPropertyidentity_infooptionaltyping.Union[IResolvable, UserIdentityInfoProperty]identityInfooptionalIResolvableIdentityInfooptionalIResolvableIdentityInfooptionalinterface{} #
Information about the user identity.
instanceArnstringinstance_arnstrinstanceArnStringInstanceArnstringInstanceArn*string required #
The Amazon Resource Name (ARN) of the instance.
passwordoptionalstringpasswordoptionalstrpasswordoptionalStringPasswordoptionalstringPasswordoptional*string #
The user's password.
persistentConnectionConfigsoptionalIResolvable | IResolvable | CfnUser.PersistentConnectionConfigProperty[]persistent_connection_configsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, PersistentConnectionConfigProperty]]]persistentConnectionConfigsoptionalIResolvablePersistentConnectionConfigsoptionalIResolvablePersistentConnectionConfigsoptionalinterface{} #
Persistent Connection configurations of a user.
phoneConfigoptionalIResolvable | CfnUser.UserPhoneConfigPropertyphone_configoptionaltyping.Union[IResolvable, UserPhoneConfigProperty]phoneConfigoptionalIResolvablePhoneConfigoptionalIResolvablePhoneConfigoptionalinterface{} #
Information about the phone configuration for the user.
phoneNumberConfigsoptionalIResolvable | IResolvable | CfnUser.PhoneNumberConfigProperty[]phone_number_configsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, PhoneNumberConfigProperty]]]phoneNumberConfigsoptionalIResolvablePhoneNumberConfigsoptionalIResolvablePhoneNumberConfigsoptionalinterface{} #
Phone Number configurations of a user.
routingProfileArnstringrouting_profile_arnstrroutingProfileArnStringRoutingProfileArnstringRoutingProfileArn*string required #
The Amazon Resource Name (ARN) of the user's routing profile.
securityProfileArnsstring[]security_profile_arnstyping.List[str]securityProfileArnsList<String>SecurityProfileArnsstring[]SecurityProfileArns*[]*string required #
The Amazon Resource Name (ARN) of the user's security profile.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
The tags.
usernamestringusernamestrusernameStringUsernamestringUsername*string required #
The user name assigned to the user account.
userProficienciesoptionalIResolvable | IResolvable | CfnUser.UserProficiencyProperty[]user_proficienciesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, UserProficiencyProperty]]]userProficienciesoptionalIResolvableUserProficienciesoptionalIResolvableUserProficienciesoptionalinterface{} #
One or more predefined attributes assigned to a user, with a numeric value that indicates how their level of skill in a specified area.
voiceEnhancementConfigsoptionalIResolvable | IResolvable | CfnUser.VoiceEnhancementConfigProperty[]voice_enhancement_configsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, VoiceEnhancementConfigProperty]]]voiceEnhancementConfigsoptionalIResolvableVoiceEnhancementConfigsoptionalIResolvableVoiceEnhancementConfigsoptionalinterface{} #
Voice Enhancement configurations of a user.