Skip to main content

user_profiles

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

Overview

Nameuser_profiles
TypeResource
Idaws.datazone.user_profiles

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe identifier of the user profile. (pattern: <code>([0-9a-f]{10}-|)[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}</code>)
detailsobjectThe user profile details.
domain_idstringthe identifier of the Amazon DataZone domain of which you want to get the user profile. (pattern: <code>dzd[-][a-zA-Z0-9-]{1,36}</code>)
statusstringThe status of the user profile. (ASSIGNED, NOT_ASSIGNED, ACTIVATED, DEACTIVATED)
type_stringThe type of the user profile. (IAM, SSO)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_user_profileselectdomain_identifier, user_identifier, regiontype, sessionNameGets a user profile in Amazon DataZone.
search_user_profilesselectdomain_identifier, regionSearches user profiles in Amazon DataZone.
create_user_profileinsertdomain_identifier, region, userIdentifierCreates a user profile in Amazon DataZone.
update_user_profileupdatedomain_identifier, user_identifier, region, statusUpdates the specified user profile in Amazon DataZone.

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
domain_identifierstringThe identifier of the Amazon DataZone domain in which a user profile is updated.
regionstringAWS region (default: us-east-1)
user_identifierstringThe identifier of the user whose user profile is to be updated.
sessionNamestringThe session name for IAM role sessions.
typestringThe type of the user profile.

SELECT examples

Gets a user profile in Amazon DataZone.

SELECT
id,
details,
domain_id,
status,
type_
FROM aws.datazone.user_profiles
WHERE domain_identifier = '{{ domain_identifier }}' -- required
AND user_identifier = '{{ user_identifier }}' -- required
AND region = '{{ region }}' -- required
AND type = '{{ type }}'
AND sessionName = '{{ sessionName }}'
;

INSERT examples

Creates a user profile in Amazon DataZone.

INSERT INTO aws.datazone.user_profiles (
userIdentifier,
userType,
sessionName,
clientToken,
domain_identifier,
region
)
SELECT
'{{ userIdentifier }}' /* required */,
'{{ userType }}',
'{{ sessionName }}',
'{{ clientToken }}',
'{{ domain_identifier }}',
'{{ region }}'
RETURNING
id,
details,
domain_id,
status,
type_
;

UPDATE examples

Updates the specified user profile in Amazon DataZone.

UPDATE aws.datazone.user_profiles
SET
type = '{{ type }}',
status = '{{ status }}',
sessionName = '{{ sessionName }}'
WHERE
domain_identifier = '{{ domain_identifier }}' --required
AND user_identifier = '{{ user_identifier }}' --required
AND region = '{{ region }}' --required
AND status = '{{ status }}' --required
RETURNING
id,
details,
domain_id,
status,
type_;