project_profiles
Creates, updates, deletes or gets a project_profile resource or lists project_profiles in a region
Overview
| Name | project_profiles |
| Type | Resource |
| Description | Definition of AWS::DataZone::ProjectProfile Resource Type |
| Id | awscc.datazone.project_profiles |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
created_at | string | |
created_by | string | |
description | string | |
domain_id | string | |
domain_identifier | string | |
domain_unit_id | string | |
domain_unit_identifier | string | |
environment_configurations | array | |
id | string | |
identifier | string | |
last_updated_at | string | |
name | string | |
status | string | |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
domain_id | string | |
domain_identifier | string | |
id | string | |
identifier | string | |
region | string | AWS region. |
For more information, see AWS::DataZone::ProjectProfile.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | project_profiles | INSERT | Name, region |
delete_resource | project_profiles | DELETE | Identifier, region |
update_resource | project_profiles | UPDATE | Identifier, PatchDocument, region |
list_resources | project_profiles_list_only | SELECT | region |
get_resource | project_profiles | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual project_profile.
SELECT
region,
created_at,
created_by,
description,
domain_id,
domain_identifier,
domain_unit_id,
domain_unit_identifier,
environment_configurations,
id,
identifier,
last_updated_at,
name,
status
FROM awscc.datazone.project_profiles
WHERE
region = '{{ region }}' AND
Identifier = '{{ domain_identifier }}|{{ identifier }}';
Lists all project_profiles in a region.
SELECT
region,
domain_identifier,
identifier
FROM awscc.datazone.project_profiles_list_only
WHERE
region = '{{ region }}';
INSERT example
Use the following StackQL query and manifest file to create a new project_profile resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.datazone.project_profiles (
Name,
region
)
SELECT
'{{ name }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
/*+ create */
INSERT INTO awscc.datazone.project_profiles (
Description,
DomainIdentifier,
DomainUnitIdentifier,
EnvironmentConfigurations,
Name,
Status,
region
)
SELECT
'{{ description }}',
'{{ domain_identifier }}',
'{{ domain_unit_identifier }}',
'{{ environment_configurations }}',
'{{ name }}',
'{{ status }}',
'{{ 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_profile
props:
- name: description
value: '{{ description }}'
- name: domain_identifier
value: '{{ domain_identifier }}'
- name: domain_unit_identifier
value: '{{ domain_unit_identifier }}'
- name: environment_configurations
value:
- name: '{{ name }}'
id: '{{ id }}'
environment_blueprint_id: '{{ environment_blueprint_id }}'
description: '{{ description }}'
deployment_mode: '{{ deployment_mode }}'
configuration_parameters:
ssm_path: '{{ ssm_path }}'
parameter_overrides:
- name: '{{ name }}'
value: '{{ value }}'
is_editable: '{{ is_editable }}'
resolved_parameters:
- null
aws_account:
aws_account_id: '{{ aws_account_id }}'
aws_region:
region_name: '{{ region_name }}'
deployment_order: null
- name: name
value: '{{ name }}'
- name: status
value: '{{ status }}'
UPDATE example
Use the following StackQL query and manifest file to update a project_profile resource, using stack-deploy.
/*+ update */
UPDATE awscc.datazone.project_profiles
SET PatchDocument = string('{{ {
"Description": description,
"DomainUnitIdentifier": domain_unit_identifier,
"Name": name,
"Status": status
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ domain_identifier }}|{{ identifier }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
DELETE example
/*+ delete */
DELETE FROM awscc.datazone.project_profiles
WHERE
Identifier = '{{ domain_identifier }}|{{ identifier }}' 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 project_profiles resource, the following permissions are required:
- Create
- Read
- Update
- Delete
- List
datazone:CreateProjectProfile,
datazone:GetProjectProfile,
ssm:GetParameter
datazone:GetProjectProfile,
ssm:GetParameter
datazone:UpdateProjectProfile,
datazone:GetProjectProfile,
ssm:GetParameter
datazone:DeleteProjectProfile,
datazone:GetProjectProfile
datazone:ListProjectProfiles