environment_actions
Creates, updates, deletes or gets an environment_action resource or lists environment_actions in a region
Overview
| Name | environment_actions |
| Type | Resource |
| Description | Definition of AWS::DataZone::EnvironmentActions Resource Type |
| Id | awscc.datazone.environment_actions |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
description | string | The description of the Amazon DataZone environment action. |
domain_id | string | The identifier of the Amazon DataZone domain in which the environment is created. |
domain_identifier | string | The identifier of the Amazon DataZone domain in which the environment would be created. |
environment_id | string | The identifier of the Amazon DataZone environment in which the action is taking place |
environment_identifier | string | The identifier of the Amazon DataZone environment in which the action is taking place |
id | string | The ID of the Amazon DataZone environment action. |
identifier | string | The ID of the Amazon DataZone environment action. |
name | string | The name of the environment action. |
parameters | object | The parameters of the environment action. |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
domain_id | string | The identifier of the Amazon DataZone domain in which the environment is created. |
environment_id | string | The identifier of the Amazon DataZone environment in which the action is taking place |
id | string | The ID of the Amazon DataZone environment action. |
region | string | AWS region. |
For more information, see AWS::DataZone::EnvironmentActions.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | environment_actions | INSERT | Name, region |
delete_resource | environment_actions | DELETE | Identifier, region |
update_resource | environment_actions | UPDATE | Identifier, PatchDocument, region |
list_resources | environment_actions_list_only | SELECT | region |
get_resource | environment_actions | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual environment_action.
SELECT
region,
description,
domain_id,
domain_identifier,
environment_id,
environment_identifier,
id,
identifier,
name,
parameters
FROM awscc.datazone.environment_actions
WHERE
region = 'us-east-1' AND
Identifier = '{{ domain_id }}|{{ environment_id }}|{{ id }}';
Lists all environment_actions in a region.
SELECT
region,
domain_id,
environment_id,
id
FROM awscc.datazone.environment_actions_list_only
WHERE
region = 'us-east-1';
INSERT example
Use the following StackQL query and manifest file to create a new environment_action resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.datazone.environment_actions (
Name,
region
)
SELECT
'{{ name }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.datazone.environment_actions (
Description,
DomainIdentifier,
EnvironmentIdentifier,
Identifier,
Name,
Parameters,
region
)
SELECT
'{{ description }}',
'{{ domain_identifier }}',
'{{ environment_identifier }}',
'{{ identifier }}',
'{{ name }}',
'{{ parameters }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: environment_action
props:
- name: description
value: '{{ description }}'
- name: domain_identifier
value: '{{ domain_identifier }}'
- name: environment_identifier
value: '{{ environment_identifier }}'
- name: identifier
value: '{{ identifier }}'
- name: name
value: '{{ name }}'
- name: parameters
value:
uri: '{{ uri }}'
UPDATE example
Use the following StackQL query and manifest file to update a environment_action resource, using stack-deploy.
/*+ update */
UPDATE awscc.datazone.environment_actions
SET PatchDocument = string('{{ {
"Description": description,
"Identifier": identifier,
"Name": name,
"Parameters": parameters
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ domain_id }}|{{ environment_id }}|{{ id }}';
DELETE example
/*+ delete */
DELETE FROM awscc.datazone.environment_actions
WHERE
Identifier = '{{ domain_id }}|{{ environment_id }}|{{ id }}' AND
region = 'us-east-1';
Permissions
To operate on the environment_actions resource, the following permissions are required:
- Create
- Read
- Update
- Delete
- List
datazone:CreateEnvironmentAction,
datazone:GetEnvironmentAction,
datazone:DeleteEnvironmentAction
datazone:GetEnvironmentAction
datazone:UpdateEnvironmentAction,
datazone:GetEnvironmentAction,
datazone:DeleteEnvironmentAction
datazone:DeleteEnvironmentAction,
datazone:GetEnvironmentAction
datazone:ListEnvironmentActions