Skip to main content

project_profiles

Creates, updates, deletes, gets or lists a project_profiles resource.

Overview​

Nameproject_profiles
TypeResource
Idaws.datazone.project_profiles

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the project profile. (pattern: <code>[a-zA-Z0-9_-]{1,36}</code>)
namestringThe name of the project profile. (pattern: <code>[\w -]+</code>)
allow_custom_project_resource_tagsbooleanSpecifies whether custom project resource tags are supported.
created_atstring (date-time)The timestamp of when the project profile was created.
created_bystringThe user who created the project profile.
descriptionstringThe description of the project profile.
domain_idstringThe ID of the domain of the project profile. (pattern: <code>dzd[-][a-zA-Z0-9-]{1,36}</code>)
domain_unit_idstringThe ID of the domain unit of the project profile. (pattern: <code>[a-z0-9_-]+</code>)
environment_configurationsarrayThe environment configurations of the project profile.
last_updated_atstring (date-time)The timestamp of when project profile was last updated.
project_resource_tagsarrayThe resource tags of the project profile.
project_resource_tags_descriptionstringField viewable through the UI that provides a project user with the allowed resource tag specifications.
statusstringThe status of the project profile. (ENABLED, DISABLED)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_project_profileselectdomain_identifier, identifier, regionThe details of the project profile.
list_project_profilesselectdomain_identifier, regionname, sortBy, sortOrder, nextToken, maxResultsLists project profiles.
create_project_profileinsertdomain_identifier, region, nameCreates a project profile.
update_project_profileupdatedomain_identifier, identifier, regionUpdates a project profile.
delete_project_profiledeletedomain_identifier, identifier, regionDeletes a project profile.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
domain_identifierstringThe ID of the domain where a project profile is deleted.
identifierstringThe ID of the project profile that is deleted.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of project profiles to return in a single call to ListProjectProfiles. When the number of project profiles to be listed is greater than the value of MaxResults, the response contains a NextToken value that you can use in a subsequent call to ListProjectProfiles to list the next set of project profiles.
namestringThe name of a project profile.
nextTokenstringWhen the number of project profiles is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of project profiles, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListProjectProfiles to list the next set of project profiles.
sortBystringSpecifies by what to sort project profiles.
sortOrderstringSpecifies the sort order of the project profiles.

SELECT examples​

The details of the project profile.

SELECT
id,
name,
allow_custom_project_resource_tags,
created_at,
created_by,
description,
domain_id,
domain_unit_id,
environment_configurations,
last_updated_at,
project_resource_tags,
project_resource_tags_description,
status
FROM aws.datazone.project_profiles
WHERE domain_identifier = '{{ domain_identifier }}' -- required
AND identifier = '{{ identifier }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples​

Creates a project profile.

INSERT INTO aws.datazone.project_profiles (
name,
description,
status,
projectResourceTags,
allowCustomProjectResourceTags,
projectResourceTagsDescription,
environmentConfigurations,
domainUnitIdentifier,
domain_identifier,
region
)
SELECT
'{{ name }}' /* required */,
'{{ description }}',
'{{ status }}',
'{{ projectResourceTags }}',
{{ allowCustomProjectResourceTags }},
'{{ projectResourceTagsDescription }}',
'{{ environmentConfigurations }}',
'{{ domainUnitIdentifier }}',
'{{ domain_identifier }}',
'{{ region }}'
RETURNING
id,
name,
allow_custom_project_resource_tags,
created_at,
created_by,
description,
domain_id,
domain_unit_id,
environment_configurations,
last_updated_at,
project_resource_tags,
project_resource_tags_description,
status
;

UPDATE examples​

Updates a project profile.

UPDATE aws.datazone.project_profiles
SET
name = '{{ name }}',
description = '{{ description }}',
status = '{{ status }}',
projectResourceTags = '{{ projectResourceTags }}',
allowCustomProjectResourceTags = {{ allowCustomProjectResourceTags }},
projectResourceTagsDescription = '{{ projectResourceTagsDescription }}',
environmentConfigurations = '{{ environmentConfigurations }}',
domainUnitIdentifier = '{{ domainUnitIdentifier }}'
WHERE
domain_identifier = '{{ domain_identifier }}' --required
AND identifier = '{{ identifier }}' --required
AND region = '{{ region }}' --required
RETURNING
id,
name,
allow_custom_project_resource_tags,
created_at,
created_by,
description,
domain_id,
domain_unit_id,
environment_configurations,
last_updated_at,
project_resource_tags,
project_resource_tags_description,
status;

DELETE examples​

Deletes a project profile.

DELETE FROM aws.datazone.project_profiles
WHERE domain_identifier = '{{ domain_identifier }}' --required
AND identifier = '{{ identifier }}' --required
AND region = '{{ region }}' --required
;