Skip to main content

kx_users

Creates, updates, deletes, gets or lists a kx_users resource.

Overview

Namekx_users
TypeResource
Idaws.finspace.kx_users

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
environment_idstringA unique identifier for the kdb environment. (pattern: <code>^[a-zA-Z0-9]{1,26}$</code>)
iam_rolestringThe IAM role ARN that is associated with the user. (pattern: <code>^arn:aws[a-z-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@-_/]+$</code>)
user_arnstringThe Amazon Resource Name (ARN) that identifies the user. For more information about ARNs and how to use ARNs in policies, see IAM Identifiers in the IAM User Guide. (pattern: <code>^arn:aws:finspace:[A-Za-z0-9_/.-]{0,63}:\d+:kxEnvironment/[0-9A-Za-z_-]{1,128}/kxUser/[0-9A-Za-z_-]{1,128}$</code>)
user_namestringA unique identifier for the user. (pattern: <code>^[a-zA-Z0-9]{1,26}$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_kx_userselectuser_name, environment_id, regionRetrieves information about the specified kdb user.
list_kx_usersselectenvironment_id, regionnextToken, maxResultsLists all the users in a kdb environment.
create_kx_userinsertenvironment_id, region, userName, iamRoleCreates a user in FinSpace kdb environment with an associated IAM role.
update_kx_userupdateenvironment_id, user_name, region, iamRoleUpdates the user details. You can only update the IAM role associated with a user.
delete_kx_userdeleteuser_name, environment_id, regionclientTokenDeletes a user in the specified kdb environment.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
environment_idstringA unique identifier for the kdb environment.
regionstringAWS region (default: us-east-1)
user_namestringA unique identifier for the user that you want to delete.
clientTokenstringA token that ensures idempotency. This token expires in 10 minutes.
maxResultsintegerThe maximum number of results to return in this request.
nextTokenstringA token that indicates where a results page should begin.

SELECT examples

Retrieves information about the specified kdb user.

SELECT
environment_id,
iam_role,
user_arn,
user_name
FROM aws.finspace.kx_users
WHERE user_name = '{{ user_name }}' -- required
AND environment_id = '{{ environment_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a user in FinSpace kdb environment with an associated IAM role.

INSERT INTO aws.finspace.kx_users (
userName,
iamRole,
tags,
clientToken,
environment_id,
region
)
SELECT
'{{ userName }}' /* required */,
'{{ iamRole }}' /* required */,
'{{ tags }}',
'{{ clientToken }}',
'{{ environment_id }}',
'{{ region }}'
RETURNING
environment_id,
iam_role,
user_arn,
user_name
;

UPDATE examples

Updates the user details. You can only update the IAM role associated with a user.

UPDATE aws.finspace.kx_users
SET
iamRole = '{{ iamRole }}',
clientToken = '{{ clientToken }}'
WHERE
environment_id = '{{ environment_id }}' --required
AND user_name = '{{ user_name }}' --required
AND region = '{{ region }}' --required
AND iamRole = '{{ iamRole }}' --required
RETURNING
environment_id,
iam_role,
user_arn,
user_name;

DELETE examples

Deletes a user in the specified kdb environment.

DELETE FROM aws.finspace.kx_users
WHERE user_name = '{{ user_name }}' --required
AND environment_id = '{{ environment_id }}' --required
AND region = '{{ region }}' --required
AND clientToken = '{{ clientToken }}'
;