Skip to main content

environment_profiles

Creates, updates, deletes, gets or lists an environment_profiles resource.

Overview

Nameenvironment_profiles
TypeResource
Idaws.datazone.environment_profiles

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the environment profile. (pattern: <code>[a-zA-Z0-9_-]{0,36}</code>)
namestringThe name of the environment profile. (pattern: <code>[\w -]+</code>)
aws_account_idstringThe ID of the Amazon Web Services account where this environment profile exists. (pattern: <code>\d{12}</code>)
aws_account_regionstringThe Amazon Web Services region where this environment profile exists. (pattern: <code>[a-z]{2}-[a-z]{4,10}-\d</code>)
created_atstring (date-time)The timestamp of when this environment profile was created.
created_bystringThe Amazon DataZone user who created this environment profile.
descriptionstringThe description of the environment profile.
domain_idstringThe ID of the Amazon DataZone domain in which this environment profile exists. (pattern: <code>dzd[-][a-zA-Z0-9-]{1,36}</code>)
environment_blueprint_idstringThe ID of the blueprint with which this environment profile is created. (pattern: <code>[a-zA-Z0-9_-]{1,36}</code>)
project_idstringThe ID of the Amazon DataZone project in which this environment profile is created. (pattern: <code>[a-zA-Z0-9_-]{1,36}</code>)
updated_atstring (date-time)The timestamp of when this environment profile was upated.
user_parametersarrayThe user parameters of the environment profile.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_environment_profileselectdomain_identifier, identifier, regionGets an evinronment profile in Amazon DataZone.
list_environment_profilesselectdomain_identifier, regionawsAccountId, awsAccountRegion, environmentBlueprintIdentifier, projectIdentifier, name, nextToken, maxResultsLists Amazon DataZone environment profiles.
create_environment_profileinsertdomain_identifier, region, name, environmentBlueprintIdentifier, projectIdentifierCreates an Amazon DataZone environment profile.
update_environment_profileupdatedomain_identifier, identifier, regionUpdates the specified environment profile in Amazon DataZone.
delete_environment_profiledeletedomain_identifier, identifier, regionDeletes an environment profile in Amazon DataZone.

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 Amazon DataZone domain in which the environment profile is deleted.
identifierstringThe ID of the environment profile that is deleted.
regionstringAWS region (default: us-east-1)
awsAccountIdstringThe identifier of the Amazon Web Services account where you want to list environment profiles.
awsAccountRegionstringThe Amazon Web Services region where you want to list environment profiles.
environmentBlueprintIdentifierstringThe identifier of the blueprint that was used to create the environment profiles that you want to list.
maxResultsintegerThe maximum number of environment profiles to return in a single call to ListEnvironmentProfiles. When the number of environment 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 ListEnvironmentProfiles to list the next set of environment profiles.
namestring
nextTokenstringWhen the number of environment 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 environment profiles, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListEnvironmentProfiles to list the next set of environment profiles.
projectIdentifierstringThe identifier of the Amazon DataZone project.

SELECT examples

Gets an evinronment profile in Amazon DataZone.

SELECT
id,
name,
aws_account_id,
aws_account_region,
created_at,
created_by,
description,
domain_id,
environment_blueprint_id,
project_id,
updated_at,
user_parameters
FROM aws.datazone.environment_profiles
WHERE domain_identifier = '{{ domain_identifier }}' -- required
AND identifier = '{{ identifier }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an Amazon DataZone environment profile.

INSERT INTO aws.datazone.environment_profiles (
name,
description,
environmentBlueprintIdentifier,
projectIdentifier,
userParameters,
awsAccountId,
awsAccountRegion,
domain_identifier,
region
)
SELECT
'{{ name }}' /* required */,
'{{ description }}',
'{{ environmentBlueprintIdentifier }}' /* required */,
'{{ projectIdentifier }}' /* required */,
'{{ userParameters }}',
'{{ awsAccountId }}',
'{{ awsAccountRegion }}',
'{{ domain_identifier }}',
'{{ region }}'
RETURNING
id,
name,
aws_account_id,
aws_account_region,
created_at,
created_by,
description,
domain_id,
environment_blueprint_id,
project_id,
updated_at,
user_parameters
;

UPDATE examples

Updates the specified environment profile in Amazon DataZone.

UPDATE aws.datazone.environment_profiles
SET
name = '{{ name }}',
description = '{{ description }}',
userParameters = '{{ userParameters }}',
awsAccountId = '{{ awsAccountId }}',
awsAccountRegion = '{{ awsAccountRegion }}'
WHERE
domain_identifier = '{{ domain_identifier }}' --required
AND identifier = '{{ identifier }}' --required
AND region = '{{ region }}' --required
RETURNING
id,
name,
aws_account_id,
aws_account_region,
created_at,
created_by,
description,
domain_id,
environment_blueprint_id,
project_id,
updated_at,
user_parameters;

DELETE examples

Deletes an environment profile in Amazon DataZone.

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