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 | awscc.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. |
domain_unit_id | string | The ID of the domain unit. |
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. |
project_profile_id | string | The project profile ID. |
project_profile_version | string | The project profile version to which the project should be updated. You can only specify the following string for this parameter: latest. |
project_status | string | The status of the project. |
user_parameters | array | The user parameters of the 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 properties from an individual project.
SELECT
region,
created_at,
created_by,
description,
domain_id,
domain_identifier,
domain_unit_id,
glossary_terms,
id,
last_updated_at,
name,
project_profile_id,
project_profile_version,
project_status,
user_parameters
FROM awscc.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 awscc.datazone.projects (
DomainIdentifier,
Name,
region
)
SELECT
'{{ DomainIdentifier }}',
'{{ Name }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.datazone.projects (
Description,
DomainIdentifier,
DomainUnitId,
GlossaryTerms,
Name,
ProjectProfileId,
ProjectProfileVersion,
UserParameters,
region
)
SELECT
'{{ Description }}',
'{{ DomainIdentifier }}',
'{{ DomainUnitId }}',
'{{ GlossaryTerms }}',
'{{ Name }}',
'{{ ProjectProfileId }}',
'{{ ProjectProfileVersion }}',
'{{ UserParameters }}',
'{{ 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: DomainUnitId
value: '{{ DomainUnitId }}'
- name: GlossaryTerms
value:
- '{{ GlossaryTerms[0] }}'
- name: Name
value: '{{ Name }}'
- name: ProjectProfileId
value: '{{ ProjectProfileId }}'
- name: ProjectProfileVersion
value: '{{ ProjectProfileVersion }}'
- name: UserParameters
value:
- EnvironmentId: '{{ EnvironmentId }}'
EnvironmentConfigurationName: '{{ EnvironmentConfigurationName }}'
EnvironmentParameters:
- Name: '{{ Name }}'
Value: '{{ Value }}'
DELETE example
/*+ delete */
DELETE FROM awscc.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