create_connection
Create a connection in Amazon DataZone to link your domains, projects, and environments to external resources and services.
Instructions
Creates a new connection in Amazon DataZone. A connection enables you to connect your resources.
(domains, projects, and environments) to external resources and services.
This is specifically for creating DataZone connections and should be used in the DataZone MCP server.
Args: domain_identifier (str): The ID of the domain where the connection is created. Pattern: ^dzd[-][a-zA-Z0-9-]{1,36}$ name (str): The connection name. Length Constraints: Minimum length of 0. Maximum length of 64. environment_identifier (str, optional): The ID of the environment where the connection is created. Pattern: ^[a-zA-Z0-9_-]{1,36}$ aws_location (Dict[str, str], optional): The location where the connection is created. Contains: - accessRole (str): The access role for the connection - awsAccountId (str): The AWS account ID - awsRegion (str): The AWS region - iamConnectionId (str): The IAM connection ID description (str, optional): A connection description. Length Constraints: Minimum length of 0. Maximum length of 128. client_token (str, optional): A unique, case-sensitive identifier to ensure idempotency. props (Dict[str, Any], optional): The connection properties. Type: ConnectionPropertiesInput object (Union type)
Returns: Any: The API response containing: - connectionId (str): The ID of the created connection - description (str): The connection description - domainId (str): The domain ID - domainUnitId (str): The domain unit ID - environmentId (str): The environment ID - 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
Example: >>> create_connection( ... domain_identifier="dzd_4p9n6sw4qt9xgn", ... name="MyConnection", ... environment_identifier="env_123456789", ... aws_location={ ... "accessRole": "arn:aws:iam::123456789012:role/DataZoneAccessRole", ... "awsAccountId": "123456789012", ... "awsRegion": "us-east-1", ... "iamConnectionId": "iam-123456789", ... }, ... description="Connection to external service", ... )
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| props | No | ||
| description | No | ||
| aws_location | No | ||
| client_token | No | ||
| domain_identifier | Yes | ||
| environment_identifier | No |