Skip to main content

project_profiles

Creates, updates, deletes or gets a project_profile resource or lists project_profiles in a region

Overview

Nameproject_profiles
TypeResource
DescriptionDefinition of AWS::DataZone::ProjectProfile Resource Type
Idawscc.datazone.project_profiles

Fields

NameDatatypeDescription
created_atstring
created_bystring
descriptionstring
domain_idstring
domain_identifierstring
domain_unit_idstring
domain_unit_identifierstring
environment_configurationsarray
idstring
identifierstring
last_updated_atstring
namestring
statusstring
regionstringAWS region.

For more information, see AWS::DataZone::ProjectProfile.

Methods

NameResourceAccessible byRequired Params
create_resourceproject_profilesINSERTName, region
delete_resourceproject_profilesDELETEIdentifier, region
update_resourceproject_profilesUPDATEIdentifier, PatchDocument, region
list_resourcesproject_profiles_list_onlySELECTregion
get_resourceproject_profilesSELECTIdentifier, region

SELECT examples

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 }}';

INSERT example

Use the following StackQL query and manifest file to create a new project_profile resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.datazone.project_profiles (
Name,
region
)
SELECT
'{{ name }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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:

ParameterDescription
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:

datazone:CreateProjectProfile,
datazone:GetProjectProfile,
ssm:GetParameter