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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.datazone.environment_actions
WHERE
Identifier = '{{ domain_id }}|{{ environment_id }}|{{ id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

datazone:CreateEnvironmentAction,
datazone:GetEnvironmentAction,
datazone:DeleteEnvironmentAction