environment_profiles
Creates, updates, deletes or gets an environment_profile
resource or lists environment_profiles
in a region
Overview
Name | environment_profiles |
Type | Resource |
Description | AWS Datazone Environment Profile is pre-configured set of resources and blueprints that provide reusable templates for creating environments. |
Id | aws.datazone.environment_profiles |
Fields
Name | Datatype | Description |
---|---|---|
aws_account_id | string | The AWS account in which the Amazon DataZone environment is created. |
aws_account_region | string | The AWS region in which this environment profile is created. |
created_at | string | The timestamp of when this environment profile was created. |
created_by | string | The Amazon DataZone user who created this environment profile. |
description | string | The description of this Amazon DataZone environment profile. |
domain_id | string | The ID of the Amazon DataZone domain in which this environment profile is created. |
domain_identifier | string | The ID of the Amazon DataZone domain in which this environment profile is created. |
environment_blueprint_id | string | The ID of the blueprint with which this environment profile is created. |
environment_blueprint_identifier | string | The ID of the blueprint with which this environment profile is created. |
id | string | The ID of this Amazon DataZone environment profile. |
name | string | The name of this Amazon DataZone environment profile. |
project_id | string | The identifier of the project in which to create the environment profile. |
project_identifier | string | The identifier of the project in which to create the environment profile. |
updated_at | string | The timestamp of when this environment profile was updated. |
user_parameters | array | The user parameters of this Amazon DataZone environment profile. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | EnvironmentBlueprintIdentifier, ProjectIdentifier, DomainIdentifier, AwsAccountId, AwsAccountRegion, Name, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.datazone.environment_profiles (
AwsAccountId,
AwsAccountRegion,
DomainIdentifier,
EnvironmentBlueprintIdentifier,
Name,
ProjectIdentifier,
region
)
SELECT
'{{ AwsAccountId }}',
'{{ AwsAccountRegion }}',
'{{ DomainIdentifier }}',
'{{ EnvironmentBlueprintIdentifier }}',
'{{ Name }}',
'{{ ProjectIdentifier }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.datazone.environment_profiles (
AwsAccountId,
AwsAccountRegion,
Description,
DomainIdentifier,
EnvironmentBlueprintIdentifier,
Name,
ProjectIdentifier,
UserParameters,
region
)
SELECT
'{{ AwsAccountId }}',
'{{ AwsAccountRegion }}',
'{{ Description }}',
'{{ DomainIdentifier }}',
'{{ EnvironmentBlueprintIdentifier }}',
'{{ Name }}',
'{{ ProjectIdentifier }}',
'{{ UserParameters }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: environment_profile
props:
- name: AwsAccountId
value: '{{ AwsAccountId }}'
- name: AwsAccountRegion
value: '{{ AwsAccountRegion }}'
- name: Description
value: '{{ Description }}'
- name: DomainIdentifier
value: '{{ DomainIdentifier }}'
- name: EnvironmentBlueprintIdentifier
value: '{{ EnvironmentBlueprintIdentifier }}'
- name: Name
value: '{{ Name }}'
- name: ProjectIdentifier
value: '{{ ProjectIdentifier }}'
- name: UserParameters
value:
- Name: '{{ Name }}'
Value: '{{ Value }}'
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