Skip to main content

projects

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

Overview

Nameprojects
TypeResource
Idaws.datazone.projects

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstring>The ID of the project. (pattern: <code>[a-zA-Z0-9_-]{1,36}</code>)
namestringThe name of the project. (pattern: <code>[\w -]+</code>)
created_atstring (date-time)The timestamp of when the project was created.
created_bystringThe Amazon DataZone user who created the project.
descriptionstringThe description of the project.
domain_idstringThe ID of the Amazon DataZone domain in which the project exists. (pattern: <code>dzd[-][a-zA-Z0-9-]{1,36}</code>)
domain_unit_idstringThe ID of the domain unit. (pattern: <code>[a-z0-9_-]+</code>)
environment_deployment_detailsobjectThe environment deployment status of a project.
failure_reasonsarraySpecifies the error message that is returned if the operation cannot be successfully completed.
glossary_termsarrayThe business glossary terms that can be used in the project.
last_updated_atstring (date-time)The timestamp of when the project was last updated.
project_categorystringThe category of the project.
project_profile_idstringThe ID of the project profile of a project. (pattern: <code>[a-zA-Z0-9_-]{1,36}</code>)
project_statusstringThe status of the project. (ACTIVE, DELETING, DELETE_FAILED, UPDATING, UPDATE_FAILED, MOVING)
resource_tagsarrayThe resource tags of the project.
user_parametersarrayThe user parameters of a project.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_projectselectdomain_identifier, identifier, regionGets a project in Amazon DataZone.
list_projectsselectdomain_identifier, regionuserIdentifier, groupIdentifier, name, projectCategory, nextToken, maxResultsLists Amazon DataZone projects.
create_projectinsertdomain_identifier, region, nameCreates an Amazon DataZone project.
update_projectupdatedomain_identifier, identifier, regionUpdates the specified project in Amazon DataZone.
delete_projectdeletedomain_identifier, identifier, regionskipDeletionCheckDeletes a project 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 in which the project is deleted.
identifierstringThe identifier of the project that is to be deleted.
regionstringAWS region (default: us-east-1)
groupIdentifierstringThe identifier of a group.
maxResultsintegerThe maximum number of projects to return in a single call to ListProjects. When the number of projects 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 ListProjects to list the next set of projects.
namestringThe name of the project.
nextTokenstringWhen the number of projects 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 projects, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListProjects to list the next set of projects.
projectCategorystringA parameter to filter projects by their category.
skipDeletionCheckbooleanSpecifies the optional flag to delete all child entities within the project.
userIdentifierstringThe identifier of the Amazon DataZone user.

SELECT examples

Gets a project in Amazon DataZone.

SELECT
id,
name,
created_at,
created_by,
description,
domain_id,
domain_unit_id,
environment_deployment_details,
failure_reasons,
glossary_terms,
last_updated_at,
project_category,
project_profile_id,
project_status,
resource_tags,
user_parameters
FROM aws.datazone.projects
WHERE domain_identifier = '{{ domain_identifier }}' -- required
AND identifier = '{{ identifier }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an Amazon DataZone project.

INSERT INTO aws.datazone.projects (
name,
description,
resourceTags,
glossaryTerms,
domainUnitId,
projectProfileId,
userParameters,
projectCategory,
projectExecutionRole,
membershipAssignments,
domain_identifier,
region
)
SELECT
'{{ name }}' /* required */,
'{{ description }}',
'{{ resourceTags }}',
'{{ glossaryTerms }}',
'{{ domainUnitId }}',
'{{ projectProfileId }}',
'{{ userParameters }}',
'{{ projectCategory }}',
'{{ projectExecutionRole }}',
'{{ membershipAssignments }}',
'{{ domain_identifier }}',
'{{ region }}'
RETURNING
id,
name,
created_at,
created_by,
description,
domain_id,
domain_unit_id,
environment_deployment_details,
failure_reasons,
glossary_terms,
last_updated_at,
project_category,
project_profile_id,
project_status,
resource_tags,
user_parameters
;

UPDATE examples

Updates the specified project in Amazon DataZone.

UPDATE aws.datazone.projects
SET
name = '{{ name }}',
description = '{{ description }}',
resourceTags = '{{ resourceTags }}',
glossaryTerms = '{{ glossaryTerms }}',
domainUnitId = '{{ domainUnitId }}',
environmentDeploymentDetails = '{{ environmentDeploymentDetails }}',
userParameters = '{{ userParameters }}',
projectProfileVersion = '{{ projectProfileVersion }}'
WHERE
domain_identifier = '{{ domain_identifier }}' --required
AND identifier = '{{ identifier }}' --required
AND region = '{{ region }}' --required
RETURNING
id,
name,
created_at,
created_by,
description,
domain_id,
domain_unit_id,
environment_deployment_details,
failure_reasons,
glossary_terms,
last_updated_at,
project_category,
project_profile_id,
project_status,
resource_tags,
user_parameters;

DELETE examples

Deletes a project in Amazon DataZone.

DELETE FROM aws.datazone.projects
WHERE domain_identifier = '{{ domain_identifier }}' --required
AND identifier = '{{ identifier }}' --required
AND region = '{{ region }}' --required
AND skipDeletionCheck = '{{ skipDeletionCheck }}'
;