Skip to main content

project_memberships

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

Overview

Nameproject_memberships
TypeResource
Idaws.datazone.project_memberships

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
designationstringThe designated role of a project member. (PROJECT_OWNER, PROJECT_CONTRIBUTOR, PROJECT_CATALOG_VIEWER, PROJECT_CATALOG_CONSUMER, PROJECT_CATALOG_STEWARD)
member_detailsobjectThe membership details of a project member.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_project_membershipsselectdomain_identifier, project_identifier, regionsortBy, sortOrder, nextToken, maxResultsLists all members of the specified project.
create_project_membershipinsertdomain_identifier, project_identifier, region, member, designationCreates a project membership in Amazon DataZone.
delete_project_membershipdeletedomain_identifier, project_identifier, regionDeletes project membership 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 ID of the Amazon DataZone domain where project membership is deleted.
project_identifierstringThe ID of the Amazon DataZone project the membership to which is deleted.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of memberships to return in a single call to ListProjectMemberships. When the number of memberships to be listed is greater than the value of MaxResults, the response contains a NextToken value that you can use in a subsequent call to ListProjectMemberships to list the next set of memberships.
nextTokenstringWhen the number of memberships is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of memberships, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListProjectMemberships to list the next set of memberships.
sortBystringThe method by which you want to sort the project memberships.
sortOrderstringThe sort order of the project memberships.

SELECT examples

Lists all members of the specified project.

SELECT
designation,
member_details
FROM aws.datazone.project_memberships
WHERE domain_identifier = '{{ domain_identifier }}' -- required
AND project_identifier = '{{ project_identifier }}' -- required
AND region = '{{ region }}' -- required
AND sortBy = '{{ sortBy }}'
AND sortOrder = '{{ sortOrder }}'
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;

INSERT examples

Creates a project membership in Amazon DataZone.

INSERT INTO aws.datazone.project_memberships (
member,
designation,
domain_identifier,
project_identifier,
region
)
SELECT
'{{ member }}' /* required */,
'{{ designation }}' /* required */,
'{{ domain_identifier }}',
'{{ project_identifier }}',
'{{ region }}'
;

DELETE examples

Deletes project membership in Amazon DataZone.

DELETE FROM aws.datazone.project_memberships
WHERE domain_identifier = '{{ domain_identifier }}' --required
AND project_identifier = '{{ project_identifier }}' --required
AND region = '{{ region }}' --required
;