get_connection
Retrieves a connection in Amazon DataZone, enabling access to external resources and services.
Instructions
Gets a connection in Amazon DataZone. A connection enables you to connect your resources
(domains, projects, and environments) to external resources and services.
Connections are credentials + config for accessing a system, while data source is a specific location where your data resides using a connection.
related tools:
get_data_source: get detailed information about one specific data source (a data locatin)
Args: domain_identifier (str): The ID of the domain where the connection exists. Pattern: ^dzd[-][a-zA-Z0-9-]{1,36}$ identifier (str): The ID of the connection to retrieve. Length Constraints: Minimum length of 0. Maximum length of 128. with_secret (bool, optional): Specifies whether to include connection secrets. Defaults to False.
Returns: Any: The API response containing: - connectionId (str): The ID of the connection - description (str): The connection description - domainId (str): The domain ID - domainUnitId (str): The domain unit ID - environmentId (str): The environment ID - environmentUserRole (str): The environment user role - name (str): The connection name - physicalEndpoints (list): The physical endpoints of the connection - projectId (str): The project ID - props (dict): The connection properties - type (str): The connection type - connectionCredentials (dict, optional): If with_secret is True, includes: - accessKeyId (str) - expiration (str) - secretAccessKey (str) - sessionToken (str)
Example: >>> get_connection( ... domain_identifier="dzd_4p9n6sw4qt9xgn", ... identifier="conn_123456789", ... with_secret=True, ... )
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| identifier | Yes | ||
| with_secret | No | ||
| domain_identifier | Yes |