Skip to main content

connections

Creates, updates, deletes, gets or lists a connections resource.

Overview

Nameconnections
TypeResource
Idaws.datazone.connections

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the connection.
configurationsarrayThe configurations of the connection.
connection_credentialsobjectConnection credentials.
connection_idstringThe ID of the connection.
descriptionstringConnection description.
domain_idstringThe domain ID of the connection. (pattern: <code>dzd[-][a-zA-Z0-9-]{1,36}</code>)
domain_unit_idstringThe domain unit ID of the connection. (pattern: <code>[a-z0-9_-]+</code>)
environment_idstringThe ID of the environment. (pattern: <code>[a-zA-Z0-9_-]{1,36}</code>)
environment_user_rolestringThe environment user role.
physical_endpointsarrayThe physical endpoints of the connection.
project_idstringThe ID of the project. (pattern: <code>[a-zA-Z0-9_-]{1,36}</code>)
propsobjectConnection props.
scopestringThe scope of the connection. (DOMAIN, PROJECT)
type_stringThe type of the connection. (ATHENA, BIGQUERY, DATABRICKS, DOCUMENTDB, DYNAMODB, HYPERPOD, IAM, MYSQL, OPENSEARCH, ORACLE, POSTGRESQL, REDSHIFT, S3, SAPHANA, SNOWFLAKE, SPARK, SQLSERVER, TERADATA, VERTICA, WORKFLOWS_MWAA, AMAZON_Q, MLFLOW, VPC, GIT)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_connectionselectdomain_identifier, identifier, regionwithSecretGets a connection. In Amazon DataZone, a connection enables you to connect your resources (domains, projects, and environments) to external resources and services.
list_connectionsselectdomain_identifier, regionmaxResults, nextToken, sortBy, sortOrder, name, environmentIdentifier, projectIdentifier, type, scopeLists connections. In Amazon DataZone, a connection enables you to connect your resources (domains, projects, and environments) to external resources and services.
create_connectioninsertdomain_identifier, region, nameCreates a new connection. In Amazon DataZone, a connection enables you to connect your resources (domains, projects, and environments) to external resources and services.
update_connectionupdatedomain_identifier, identifier, regionUpdates a connection. In Amazon DataZone, a connection enables you to connect your resources (domains, projects, and environments) to external resources and services.
delete_connectiondeletedomain_identifier, identifier, regionDeletes and connection. In Amazon DataZone, a connection enables you to connect your resources (domains, projects, and environments) to external resources and services.

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 domain where the connection is deleted.
identifierstringThe ID of the connection that is deleted.
regionstringAWS region (default: us-east-1)
environmentIdentifierstringThe ID of the environment where you want to list connections.
maxResultsintegerThe maximum number of connections to return in a single call to ListConnections. When the number of connections 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 ListConnections to list the next set of connections.
namestringThe name of the connection.
nextTokenstringWhen the number of connections 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 connections, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListConnections to list the next set of connections.
projectIdentifierstringThe ID of the project where you want to list connections.
scopestringThe scope of the connection.
sortBystringSpecifies how you want to sort the listed connections.
sortOrderstringSpecifies the sort order for the listed connections.
typestringThe type of connection.
withSecretbooleanSpecifies whether a connection has a secret.

SELECT examples

Gets a connection. In Amazon DataZone, a connection enables you to connect your resources (domains, projects, and environments) to external resources and services.

SELECT
name,
configurations,
connection_credentials,
connection_id,
description,
domain_id,
domain_unit_id,
environment_id,
environment_user_role,
physical_endpoints,
project_id,
props,
scope,
type_
FROM aws.datazone.connections
WHERE domain_identifier = '{{ domain_identifier }}' -- required
AND identifier = '{{ identifier }}' -- required
AND region = '{{ region }}' -- required
AND withSecret = '{{ withSecret }}'
;

INSERT examples

Creates a new connection. In Amazon DataZone, a connection enables you to connect your resources (domains, projects, and environments) to external resources and services.

INSERT INTO aws.datazone.connections (
awsLocation,
clientToken,
configurations,
description,
environmentIdentifier,
name,
props,
enableTrustedIdentityPropagation,
scope,
domain_identifier,
region
)
SELECT
'{{ awsLocation }}',
'{{ clientToken }}',
'{{ configurations }}',
'{{ description }}',
'{{ environmentIdentifier }}',
'{{ name }}' /* required */,
'{{ props }}',
{{ enableTrustedIdentityPropagation }},
'{{ scope }}',
'{{ domain_identifier }}',
'{{ region }}'
RETURNING
name,
configurations,
connection_id,
description,
domain_id,
domain_unit_id,
environment_id,
physical_endpoints,
project_id,
props,
scope,
type_
;

UPDATE examples

Updates a connection. In Amazon DataZone, a connection enables you to connect your resources (domains, projects, and environments) to external resources and services.

UPDATE aws.datazone.connections
SET
configurations = '{{ configurations }}',
description = '{{ description }}',
awsLocation = '{{ awsLocation }}',
props = '{{ props }}'
WHERE
domain_identifier = '{{ domain_identifier }}' --required
AND identifier = '{{ identifier }}' --required
AND region = '{{ region }}' --required
RETURNING
name,
configurations,
connection_id,
description,
domain_id,
domain_unit_id,
environment_id,
physical_endpoints,
project_id,
props,
scope,
type_;

DELETE examples

Deletes and connection. In Amazon DataZone, a connection enables you to connect your resources (domains, projects, and environments) to external resources and services.

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