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
- get (all properties)
- list (identifiers only)
| 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. |
| Name | Datatype | Description |
|---|---|---|
domain_id | string | The identifier of the Amazon DataZone domain in which the project was created. |
id | string | The ID of the Amazon DataZone project. |
region | string | AWS region. |
For more information, see AWS::DataZone::Project.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | projects | INSERT | DomainIdentifier, Name, region |
delete_resource | projects | DELETE | Identifier, region |
update_resource | projects | UPDATE | Identifier, PatchDocument, region |
list_resources | projects_list_only | SELECT | region |
get_resource | projects | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
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 = '{{ region }}' AND
Identifier = '{{ domain_id }}|{{ id }}';
Lists all projects in a region.
SELECT
region,
domain_id,
id
FROM awscc.datazone.projects_list_only
WHERE
region = '{{ region }}';
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
'{{ domain_identifier }}',
'{{ name }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
/*+ create */
INSERT INTO awscc.datazone.projects (
Description,
DomainIdentifier,
DomainUnitId,
GlossaryTerms,
Name,
ProjectProfileId,
ProjectProfileVersion,
UserParameters,
region
)
SELECT
'{{ description }}',
'{{ domain_identifier }}',
'{{ domain_unit_id }}',
'{{ glossary_terms }}',
'{{ name }}',
'{{ project_profile_id }}',
'{{ project_profile_version }}',
'{{ user_parameters }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
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: domain_identifier
value: '{{ domain_identifier }}'
- name: domain_unit_id
value: '{{ domain_unit_id }}'
- name: glossary_terms
value:
- '{{ glossary_terms[0] }}'
- name: name
value: '{{ name }}'
- name: project_profile_id
value: '{{ project_profile_id }}'
- name: project_profile_version
value: '{{ project_profile_version }}'
- name: user_parameters
value:
- environment_id: '{{ environment_id }}'
environment_configuration_name: '{{ environment_configuration_name }}'
environment_parameters:
- name: '{{ name }}'
value: '{{ value }}'
UPDATE example
Use the following StackQL query and manifest file to update a project resource, using stack-deploy.
/*+ update */
UPDATE awscc.datazone.projects
SET PatchDocument = string('{{ {
"Description": description,
"DomainUnitId": domain_unit_id,
"GlossaryTerms": glossary_terms,
"Name": name,
"ProjectProfileVersion": project_profile_version,
"UserParameters": user_parameters
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ domain_id }}|{{ id }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
DELETE example
/*+ delete */
DELETE FROM awscc.datazone.projects
WHERE
Identifier = '{{ domain_id }}|{{ id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
Additional Parameters
Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:
| Parameter | Description |
|---|---|
ClientToken | A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.A client token is valid for 36 hours once used. After that, a resource request with the same client token is treated as a new request. If you do not specify a client token, one is generated for inclusion in the request. |
RoleArn | The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.If you do not specify a role, a temporary session is created using your AWS user credentials. |
TypeVersionId | For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used. |
Permissions
To operate on the projects resource, the following permissions are required:
- Create
- Read
- Update
- Delete
- List
datazone:CreateProject,
datazone:GetProject
datazone:GetProject
datazone:UpdateProject,
datazone:GetProject
datazone:DeleteProject,
datazone:GetProject
datazone:ListProjects