projects
Creates, updates, deletes or gets a project resource or lists projects in a region
Overview
| Name | projects |
| Type | Resource |
| Description | Amazon DataZone projects are business use case–based groupings of people, assets (data), and tools used to simplify access to the AWS analytics. |
| Id | aws.datazone.projects |
Fields
| Name | Datatype | Description |
|---|---|---|
created_at | string | The timestamp of when the project was created. |
created_by | string | The Amazon DataZone user who created the project. |
description | string | The description of the Amazon DataZone project. |
domain_id | string | The identifier of the Amazon DataZone domain in which the project was created. |
domain_identifier | string | The ID of the Amazon DataZone domain in which this project is created. |
glossary_terms | array | The glossary terms that can be used in this Amazon DataZone project. |
id | string | The ID of the Amazon DataZone project. |
last_updated_at | string | The timestamp of when the project was last updated. |
name | string | The name of the Amazon DataZone project. |
region | string | AWS region. |
For more information, see AWS::DataZone::Project.
Methods
| Name | Accessible by | Required Params |
|---|---|---|
create_resource | INSERT | DomainIdentifier, Name, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT examples
Gets all projects in a region.
SELECT
region,
created_at,
created_by,
description,
domain_id,
domain_identifier,
glossary_terms,
id,
last_updated_at,
name
FROM aws.datazone.projects
WHERE region = 'us-east-1';
Gets all properties from an individual project.
SELECT
region,
created_at,
created_by,
description,
domain_id,
domain_identifier,
glossary_terms,
id,
last_updated_at,
name
FROM aws.datazone.projects
WHERE region = 'us-east-1' AND data__Identifier = '<DomainId>|<Id>';
INSERT example
Use the following StackQL query and manifest file to create a new project resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.datazone.projects (
DomainIdentifier,
Name,
region
)
SELECT
'{{ DomainIdentifier }}',
'{{ Name }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.datazone.projects (
Description,
DomainIdentifier,
GlossaryTerms,
Name,
region
)
SELECT
'{{ Description }}',
'{{ DomainIdentifier }}',
'{{ GlossaryTerms }}',
'{{ Name }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: project
props:
- name: Description
value: '{{ Description }}'
- name: DomainIdentifier
value: '{{ DomainIdentifier }}'
- name: GlossaryTerms
value:
- '{{ GlossaryTerms[0] }}'
- name: Name
value: '{{ Name }}'
DELETE example
/*+ delete */
DELETE FROM aws.datazone.projects
WHERE data__Identifier = '<DomainId|Id>'
AND region = 'us-east-1';
Permissions
To operate on the projects resource, the following permissions are required:
Create
datazone:CreateProject,
datazone:GetProject
Read
datazone:GetProject
Update
datazone:UpdateProject,
datazone:GetProject
Delete
datazone:DeleteProject,
datazone:GetProject
List
datazone:ListProjects