Skip to main content

environment_actions

Creates, updates, deletes or gets an environment_action resource or lists environment_actions in a region

Overview

Nameenvironment_actions
TypeResource
DescriptionDefinition of AWS::DataZone::EnvironmentActions Resource Type
Idaws.datazone.environment_actions

Fields

NameDatatypeDescription
descriptionstringThe description of the Amazon DataZone environment action.
domain_idstringThe identifier of the Amazon DataZone domain in which the environment is created.
domain_identifierstringThe identifier of the Amazon DataZone domain in which the environment would be created.
environment_idstringThe identifier of the Amazon DataZone environment in which the action is taking place
environment_identifierstringThe identifier of the Amazon DataZone environment in which the action is taking place
idstringThe ID of the Amazon DataZone environment action.
identifierstringThe ID of the Amazon DataZone environment action.
namestringThe name of the environment action.
parametersobjectThe parameters of the environment action.
regionstringAWS region.

For more information, see AWS::DataZone::EnvironmentActions.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all environment_actions in a region.

SELECT
region,
description,
domain_id,
domain_identifier,
environment_id,
environment_identifier,
id,
identifier,
name,
parameters
FROM aws.datazone.environment_actions
WHERE region = 'us-east-1';

Gets all properties from an individual environment_action.

SELECT
region,
description,
domain_id,
domain_identifier,
environment_id,
environment_identifier,
id,
identifier,
name,
parameters
FROM aws.datazone.environment_actions
WHERE region = 'us-east-1' AND data__Identifier = '<DomainId>|<EnvironmentId>|<Id>';

INSERT example

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

/*+ create */
INSERT INTO aws.datazone.environment_actions (
Name,
region
)
SELECT
'{{ Name }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

datazone:CreateEnvironmentAction,
datazone:GetEnvironmentAction,
datazone:DeleteEnvironmentAction

Read

datazone:GetEnvironmentAction

Update

datazone:UpdateEnvironmentAction,
datazone:GetEnvironmentAction,
datazone:DeleteEnvironmentAction

Delete

datazone:DeleteEnvironmentAction,
datazone:GetEnvironmentAction

List

datazone:ListEnvironmentActions