Skip to main content

environment_credentials

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

Overview

Nameenvironment_credentials
TypeResource
Idaws.datazone.environment_credentials

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
access_key_idstringThe access key ID of the environment.
expirationstring (date-time)The expiration timestamp of the environment credentials.
secret_access_keystringThe secret access key of the environment credentials.
session_tokenstringThe session token of the environment credentials.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_environment_credentialsselectdomain_identifier, environment_identifier, regionGets the credentials of an environment in Amazon DataZone.

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 this environment and its credentials exist.
environment_identifierstringThe ID of the environment whose credentials this operation gets.
regionstringAWS region (default: us-east-1)

SELECT examples

Gets the credentials of an environment in Amazon DataZone.

SELECT
access_key_id,
expiration,
secret_access_key,
session_token
FROM aws.datazone.environment_credentials
WHERE domain_identifier = '{{ domain_identifier }}' -- required
AND environment_identifier = '{{ environment_identifier }}' -- required
AND region = '{{ region }}' -- required
;