Skip to main content

project_memberships

Creates, updates, deletes or gets a project_membership resource or lists project_memberships in a region

Overview

Nameproject_memberships
TypeResource
DescriptionDefinition of AWS::DataZone::ProjectMembership Resource Type
Idaws.datazone.project_memberships

Fields

NameDatatypeDescription
project_identifierstring
designationstring
memberundefined
domain_identifierstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTDesignation, DomainIdentifier, ProjectIdentifier, Member, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all project_memberships in a region.

SELECT
region,
project_identifier,
designation,
member,
domain_identifier
FROM aws.datazone.project_memberships
WHERE region = 'us-east-1';

Gets all properties from an individual project_membership.

SELECT
region,
project_identifier,
designation,
member,
domain_identifier
FROM aws.datazone.project_memberships
WHERE region = 'us-east-1' AND data__Identifier = '<DomainIdentifier>|<MemberIdentifier>|<MemberIdentifierType>|<ProjectIdentifier>';

INSERT example

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

/*+ create */
INSERT INTO aws.datazone.project_memberships (
ProjectIdentifier,
Designation,
Member,
DomainIdentifier,
region
)
SELECT
'{{ ProjectIdentifier }}',
'{{ Designation }}',
'{{ Member }}',
'{{ DomainIdentifier }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.datazone.project_memberships
WHERE data__Identifier = '<DomainIdentifier|MemberIdentifier|MemberIdentifierType|ProjectIdentifier>'
AND region = 'us-east-1';

Permissions

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

Read

datazone:ListProjectMemberships

Create

datazone:CreateProjectMembership,
datazone:ListProjectMemberships,
iam:GetRole,
datazone:GetGroupProfile,
datazone:GetUserProfile

Update

datazone:CreateProjectMembership,
datazone:DeleteProjectMembership

List

datazone:ListProjectMemberships

Delete

datazone:DeleteProjectMembership