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
Idawscc.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

NameResourceAccessible byRequired Params
create_resourceenvironment_actionsINSERTName, region
delete_resourceenvironment_actionsDELETEIdentifier, region
update_resourceenvironment_actionsUPDATEIdentifier, PatchDocument, region
list_resourcesenvironment_actions_list_onlySELECTregion
get_resourceenvironment_actionsSELECTIdentifier, region

SELECT examples

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 }}';

INSERT example

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

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

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:

datazone:CreateEnvironmentAction,
datazone:GetEnvironmentAction,
datazone:DeleteEnvironmentAction