# AWS::Connect::User Resource Type definition for AWS::Connect::User ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{
    "Type" : "AWS::Connect::User",
    "Properties" : {
        "InstanceArn" : String,
        "DirectoryUserId" : String,
        "HierarchyGroupArn" : String,
        "Username" : String,
        "Password" : String,
        "RoutingProfileArn" : String,
        "IdentityInfo" : UserIdentityInfo,
        "PhoneConfig" : UserPhoneConfig,
        "SecurityProfileArns" : [ String, ... ],
        "Tags" : [ Tag, ... ]
    }
}
### YAML
Type: AWS::Connect::User
Properties:
    InstanceArn: String
    DirectoryUserId: String
    HierarchyGroupArn: String
    Username: String
    Password: String
    RoutingProfileArn: String
    IdentityInfo: UserIdentityInfo
    PhoneConfig: UserPhoneConfig
    SecurityProfileArns: 
      - String
    Tags: 
      - Tag
## Properties #### InstanceArn The identifier of the Amazon Connect instance. _Required_: Yes _Type_: String _Pattern_: ^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*$ _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### DirectoryUserId The identifier of the user account in the directory used for identity management. _Required_: No _Type_: String _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### HierarchyGroupArn The identifier of the hierarchy group for the user. _Required_: No _Type_: String _Pattern_: ^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*/agent-group/[-a-zA-Z0-9]*$ _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### Username The user name for the account. _Required_: Yes _Type_: String _Minimum_: 1 _Maximum_: 64 _Pattern_: [a-zA-Z0-9\_\-\.\@]+ _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### Password The password for the user account. A password is required if you are using Amazon Connect for identity management. Otherwise, it is an error to include a password. _Required_: No _Type_: String _Pattern_: ^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d\S]{8,64}$ _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### RoutingProfileArn The identifier of the routing profile for the user. _Required_: Yes _Type_: String _Pattern_: ^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*/routing-profile/[-a-zA-Z0-9]*$ _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### IdentityInfo Contains information about the identity of a user. _Required_: No _Type_: UserIdentityInfo _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### PhoneConfig Contains information about the phone configuration settings for a user. _Required_: Yes _Type_: UserPhoneConfig _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### SecurityProfileArns One or more security profile arns for the user _Required_: Yes _Type_: List of String _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### Tags One or more tags. _Required_: No _Type_: List of Tag _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) ## Return Values ### Ref When you pass the logical ID of this resource to the intrinsic `Ref` function, Ref returns the UserArn. ### Fn::GetAtt The `Fn::GetAtt` intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values. For more information about using the `Fn::GetAtt` intrinsic function, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html). #### UserArn The Amazon Resource Name (ARN) for the user.