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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.datazone.environment_profiles
WHERE
Identifier = '{{ domain_id }}|{{ id }}' 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 environment_profiles resource, the following permissions are required:

datazone:CreateEnvironmentProfile,
datazone:GetEnvironmentProfile