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.
Idaws.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.

Methods

NameAccessible byRequired Params
create_resourceINSERTEnvironmentBlueprintIdentifier, ProjectIdentifier, DomainIdentifier, AwsAccountId, AwsAccountRegion, Name, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all environment_profiles in a region.

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 aws.datazone.environment_profiles
WHERE region = 'us-east-1';

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 aws.datazone.environment_profiles
WHERE region = 'us-east-1' AND data__Identifier = '<DomainId>|<Id>';

INSERT example

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

/*+ create */
INSERT INTO aws.datazone.environment_profiles (
AwsAccountId,
AwsAccountRegion,
DomainIdentifier,
EnvironmentBlueprintIdentifier,
Name,
ProjectIdentifier,
region
)
SELECT
'{{ AwsAccountId }}',
'{{ AwsAccountRegion }}',
'{{ DomainIdentifier }}',
'{{ EnvironmentBlueprintIdentifier }}',
'{{ Name }}',
'{{ ProjectIdentifier }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.datazone.environment_profiles
WHERE data__Identifier = '<DomainId|Id>'
AND region = 'us-east-1';

Permissions

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

Create

datazone:CreateEnvironmentProfile,
datazone:GetEnvironmentProfile

Read

datazone:GetEnvironmentProfile

Update

datazone:UpdateEnvironmentProfile,
datazone:GetEnvironmentProfile

Delete

datazone:DeleteEnvironmentProfile,
datazone:GetEnvironmentProfile

List

datazone:ListEnvironmentProfiles