Skip to main content

environment_actions

Creates, updates, deletes, gets or lists an environment_actions resource.

Overview

Nameenvironment_actions
TypeResource
Idaws.datazone.environment_actions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the environment action. (pattern: <code>[a-zA-Z0-9_-]{1,36}</code>)
namestringThe name of the environment action.
descriptionstringThe description of the environment action.
domain_idstringThe ID of the Amazon DataZone domain in which the environment action lives. (pattern: <code>dzd[-][a-zA-Z0-9-]{1,36}</code>)
environment_idstringThe environment ID of the environment action. (pattern: <code>[a-zA-Z0-9_-]{1,36}</code>)
parametersobjectThe parameters of the environment action.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_environment_actionselectdomain_identifier, environment_identifier, identifier, regionGets the specified environment action.
list_environment_actionsselectdomain_identifier, environment_identifier, regionnextToken, maxResultsLists existing environment actions.
create_environment_actioninsertdomain_identifier, environment_identifier, region, name, parametersCreates an action for the environment, for example, creates a console link for an analytics tool that is available in this environment.
update_environment_actionupdatedomain_identifier, environment_identifier, identifier, regionUpdates an environment action.
delete_environment_actiondeletedomain_identifier, environment_identifier, identifier, regionDeletes an action for the environment, for example, deletes a console link for an analytics tool that is available in this environment.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
domain_identifierstringThe ID of the Amazon DataZone domain in which an environment action is deleted.
environment_identifierstringThe ID of the environment where an environment action is deleted.
identifierstringThe ID of the environment action that is deleted.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of environment actions to return in a single call to ListEnvironmentActions. When the number of environment actions to be listed is greater than the value of MaxResults, the response contains a NextToken value that you can use in a subsequent call to ListEnvironmentActions to list the next set of environment actions.
nextTokenstringWhen the number of environment actions is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of environment actions, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListEnvironmentActions to list the next set of environment actions.

SELECT examples

Gets the specified environment action.

SELECT
id,
name,
description,
domain_id,
environment_id,
parameters
FROM aws.datazone.environment_actions
WHERE domain_identifier = '{{ domain_identifier }}' -- required
AND environment_identifier = '{{ environment_identifier }}' -- required
AND identifier = '{{ identifier }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an action for the environment, for example, creates a console link for an analytics tool that is available in this environment.

INSERT INTO aws.datazone.environment_actions (
name,
parameters,
description,
domain_identifier,
environment_identifier,
region
)
SELECT
'{{ name }}' /* required */,
'{{ parameters }}' /* required */,
'{{ description }}',
'{{ domain_identifier }}',
'{{ environment_identifier }}',
'{{ region }}'
RETURNING
id,
name,
description,
domain_id,
environment_id,
parameters
;

UPDATE examples

Updates an environment action.

UPDATE aws.datazone.environment_actions
SET
parameters = '{{ parameters }}',
name = '{{ name }}',
description = '{{ description }}'
WHERE
domain_identifier = '{{ domain_identifier }}' --required
AND environment_identifier = '{{ environment_identifier }}' --required
AND identifier = '{{ identifier }}' --required
AND region = '{{ region }}' --required
RETURNING
id,
name,
description,
domain_id,
environment_id,
parameters;

DELETE examples

Deletes an action for the environment, for example, deletes a console link for an analytics tool that is available in this environment.

DELETE FROM aws.datazone.environment_actions
WHERE domain_identifier = '{{ domain_identifier }}' --required
AND environment_identifier = '{{ environment_identifier }}' --required
AND identifier = '{{ identifier }}' --required
AND region = '{{ region }}' --required
;