# CfnUserProps

Properties for defining a `CfnUser`.

Used as props by: [CfnUser](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnUser.html)

- Source: Generated at build time
- Type last changed: v2.239.0 · 19 Feb 2026

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    } }
};
```

Golang:

```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

- `afterContactWorkConfigs`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnUser.AfterContactWorkConfigPerChannelProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnUser.AfterContactWorkConfigPerChannelProperty.html)[] — After Contact Work configurations of a user.

- `autoAcceptConfigs`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnUser.AutoAcceptConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnUser.AutoAcceptConfigProperty.html)[] — Auto-accept configurations of a user.

- `directoryUserId`: string — The identifier of the user account in the directory used for identity management.

- `hierarchyGroupArn`: string — The Amazon Resource Name (ARN) of the user's hierarchy group.

- `identityInfo`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnUser.UserIdentityInfoProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnUser.UserIdentityInfoProperty.html) — Information about the user identity.

- `instanceArn`: string (required) — The Amazon Resource Name (ARN) of the instance.

- `password`: string — The user's password.

- `persistentConnectionConfigs`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnUser.PersistentConnectionConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnUser.PersistentConnectionConfigProperty.html)[] — Persistent Connection configurations of a user.

- `phoneConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnUser.UserPhoneConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnUser.UserPhoneConfigProperty.html) — Information about the phone configuration for the user.

- `phoneNumberConfigs`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnUser.PhoneNumberConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnUser.PhoneNumberConfigProperty.html)[] — Phone Number configurations of a user.

- `routingProfileArn`: string (required) — The Amazon Resource Name (ARN) of the user's routing profile.

- `securityProfileArns`: string[] (required) — The Amazon Resource Name (ARN) of the user's security profile.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The tags.

- `username`: string (required) — The user name assigned to the user account.

- `userProficiencies`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnUser.UserProficiencyProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnUser.UserProficiencyProperty.html)[] — One or more predefined attributes assigned to a user, with a numeric value that indicates how their level of skill in a specified area.

- `voiceEnhancementConfigs`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnUser.VoiceEnhancementConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnUser.VoiceEnhancementConfigProperty.html)[] — Voice Enhancement configurations of a user.
