Skip to main content

users

Creates, updates, deletes or gets a user resource or lists users in a region

Overview

Nameusers
TypeResource
DescriptionResource Type definition for AWS::Connect::User
Idawscc.connect.users

Fields

NameDatatypeDescription
instance_arnstringThe identifier of the Amazon Connect instance.
directory_user_idstringThe identifier of the user account in the directory used for identity management.
hierarchy_group_arnstringThe identifier of the hierarchy group for the user.
usernamestringThe user name for the account.
passwordstringThe 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.
routing_profile_arnstringThe identifier of the routing profile for the user.
identity_infoobjectThe information about the identity of the user.
phone_configobjectThe phone settings for the user.
security_profile_arnsarrayOne or more security profile arns for the user
user_arnstringThe Amazon Resource Name (ARN) for the user.
tagsarrayOne or more tags.
user_proficienciesarrayOne or more predefined attributes assigned to a user, with a level that indicates how skilled they are.
regionstringAWS region.

For more information, see AWS::Connect::User.

Methods

NameResourceAccessible byRequired Params
create_resourceusersINSERTInstanceArn, PhoneConfig, RoutingProfileArn, SecurityProfileArns, Username, region
delete_resourceusersDELETEIdentifier, region
update_resourceusersUPDATEIdentifier, PatchDocument, region
list_resourcesusers_list_onlySELECTregion
get_resourceusersSELECTIdentifier, region

SELECT examples

Gets all properties from an individual user.

SELECT
region,
instance_arn,
directory_user_id,
hierarchy_group_arn,
username,
password,
routing_profile_arn,
identity_info,
phone_config,
security_profile_arns,
user_arn,
tags,
user_proficiencies
FROM awscc.connect.users
WHERE
region = '{{ region }}' AND
Identifier = '{{ user_arn }}';

INSERT example

Use the following StackQL query and manifest file to create a new user resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.connect.users (
InstanceArn,
Username,
RoutingProfileArn,
PhoneConfig,
SecurityProfileArns,
region
)
SELECT
'{{ instance_arn }}',
'{{ username }}',
'{{ routing_profile_arn }}',
'{{ phone_config }}',
'{{ security_profile_arns }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

Use the following StackQL query and manifest file to update a user resource, using stack-deploy.

/*+ update */
UPDATE awscc.connect.users
SET PatchDocument = string('{{ {
"InstanceArn": instance_arn,
"DirectoryUserId": directory_user_id,
"HierarchyGroupArn": hierarchy_group_arn,
"Username": username,
"Password": password,
"RoutingProfileArn": routing_profile_arn,
"IdentityInfo": identity_info,
"PhoneConfig": phone_config,
"SecurityProfileArns": security_profile_arns,
"Tags": tags,
"UserProficiencies": user_proficiencies
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ user_arn }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.connect.users
WHERE
Identifier = '{{ user_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

To operate on the users resource, the following permissions are required:

connect:CreateUser,
connect:TagResource,
connect:AssociateUserProficiencies