Skip to main content

environment_profiles

Creates, updates, deletes or gets an environment_profile resource or lists environment_profiles in a region

Overview

Nameenvironment_profiles
TypeResource
DescriptionAWS Datazone Environment Profile is pre-configured set of resources and blueprints that provide reusable templates for creating environments.
Idawscc.datazone.environment_profiles

Fields

NameDatatypeDescription
aws_account_idstringThe AWS account in which the Amazon DataZone environment is created.
aws_account_regionstringThe AWS region in which this environment profile is created.
created_atstringThe timestamp of when this environment profile was created.
created_bystringThe Amazon DataZone user who created this environment profile.
descriptionstringThe description of this Amazon DataZone environment profile.
domain_idstringThe ID of the Amazon DataZone domain in which this environment profile is created.
domain_identifierstringThe ID of the Amazon DataZone domain in which this environment profile is created.
environment_blueprint_idstringThe ID of the blueprint with which this environment profile is created.
environment_blueprint_identifierstringThe ID of the blueprint with which this environment profile is created.
idstringThe ID of this Amazon DataZone environment profile.
namestringThe name of this Amazon DataZone environment profile.
project_idstringThe identifier of the project in which to create the environment profile.
project_identifierstringThe identifier of the project in which to create the environment profile.
updated_atstringThe timestamp of when this environment profile was updated.
user_parametersarrayThe user parameters of this Amazon DataZone environment profile.
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourceenvironment_profilesINSERTEnvironmentBlueprintIdentifier, ProjectIdentifier, DomainIdentifier, AwsAccountId, AwsAccountRegion, Name, region
delete_resourceenvironment_profilesDELETEIdentifier, region
update_resourceenvironment_profilesUPDATEIdentifier, PatchDocument, region
list_resourcesenvironment_profiles_list_onlySELECTregion
get_resourceenvironment_profilesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual environment_profile.

SELECT
region,
aws_account_id,
aws_account_region,
created_at,
created_by,
description,
domain_id,
domain_identifier,
environment_blueprint_id,
environment_blueprint_identifier,
id,
name,
project_id,
project_identifier,
updated_at,
user_parameters
FROM awscc.datazone.environment_profiles
WHERE
region = 'us-east-1' AND
Identifier = '{{ domain_id }}|{{ id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.datazone.environment_profiles (
AwsAccountId,
AwsAccountRegion,
DomainIdentifier,
EnvironmentBlueprintIdentifier,
Name,
ProjectIdentifier,
region
)
SELECT
'{{ aws_account_id }}',
'{{ aws_account_region }}',
'{{ domain_identifier }}',
'{{ environment_blueprint_identifier }}',
'{{ name }}',
'{{ project_identifier }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a environment_profile resource, using stack-deploy.

/*+ update */
UPDATE awscc.datazone.environment_profiles
SET PatchDocument = string('{{ {
"AwsAccountId": aws_account_id,
"AwsAccountRegion": aws_account_region,
"Description": description,
"Name": name,
"UserParameters": user_parameters
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ domain_id }}|{{ id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.datazone.environment_profiles
WHERE
Identifier = '{{ domain_id }}|{{ id }}' AND
region = 'us-east-1';

Permissions

To operate on the environment_profiles resource, the following permissions are required:

datazone:CreateEnvironmentProfile,
datazone:GetEnvironmentProfile