Skip to main content

group_profiles

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

Overview

Namegroup_profiles
TypeResource
Idaws.datazone.group_profiles

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe identifier of the group 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>)
domain_idstringThe identifier of the Amazon DataZone domain in which the group profile exists. (pattern: <code>dzd[-][a-zA-Z0-9-]{1,36}</code>)
group_namestringThe name of the group for which the specified group profile exists. (pattern: <code>[a-zA-Z_0-9+=,.@-]+</code>)
role_principal_arnstringThe ARN of the IAM role principal. This role is associated with the group profile.
role_principal_idstringThe unique identifier of the IAM role principal. This principal is associated with the group profile.
statusstringThe identifier of the group profile. (ASSIGNED, NOT_ASSIGNED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_group_profileselectdomain_identifier, group_identifier, regionGets a group profile in Amazon DataZone.
search_group_profilesselectdomain_identifier, regionSearches group profiles in Amazon DataZone.
create_group_profileinsertdomain_identifier, regionCreates a group profile in Amazon DataZone.
update_group_profileupdatedomain_identifier, group_identifier, region, statusUpdates the specified group 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 group profile is updated.
group_identifierstringThe identifier of the group profile that is updated.
regionstringAWS region (default: us-east-1)

SELECT examples

Gets a group profile in Amazon DataZone.

SELECT
id,
domain_id,
group_name,
role_principal_arn,
role_principal_id,
status
FROM aws.datazone.group_profiles
WHERE domain_identifier = '{{ domain_identifier }}' -- required
AND group_identifier = '{{ group_identifier }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a group profile in Amazon DataZone.

INSERT INTO aws.datazone.group_profiles (
groupIdentifier,
rolePrincipalArn,
clientToken,
domain_identifier,
region
)
SELECT
'{{ groupIdentifier }}',
'{{ rolePrincipalArn }}',
'{{ clientToken }}',
'{{ domain_identifier }}',
'{{ region }}'
RETURNING
id,
domain_id,
group_name,
role_principal_arn,
role_principal_id,
status
;

UPDATE examples

Updates the specified group profile in Amazon DataZone.

UPDATE aws.datazone.group_profiles
SET
status = '{{ status }}'
WHERE
domain_identifier = '{{ domain_identifier }}' --required
AND group_identifier = '{{ group_identifier }}' --required
AND region = '{{ region }}' --required
AND status = '{{ status }}' --required
RETURNING
id,
domain_id,
group_name,
role_principal_arn,
role_principal_id,
status;