Skip to content

GlueConnectionMapping

Source code in docs_src/capo_context/types/glue_connection_mapping.py
class GlueConnectionMapping(TypedDict, closed=True):
    path: "capo_context.types.path_segment_list.PathSegmentList"
    """<p>The resource that this mapping binds, root first, in the same form as <code>scope.selectors[].path</code>. Required. Contains 1–2 segments:</p> <ul> <li> <p>On a <code>GLUE_DATA_CATALOG</code> connection, either a <code>redshiftNamespace</code> segment whose ID is an Amazon Redshift namespace ARN (<code>namespace:&lt;id&gt;</code>, or <code>namespace/&lt;id&gt;</code> for Amazon Redshift Serverless), or an <code>rdsInstance</code> segment whose ID is an Amazon RDS DB cluster or DB instance ARN (<code>cluster:&lt;id&gt;</code> or <code>db:&lt;id&gt;</code>) followed by an <code>rdsDatabase</code> segment whose ID is the database name. The ARN must be in your account and Region.</p> </li> <li> <p>On a <code>SNOWFLAKE</code> connection whose <code>dataSource</code> is an AWS Glue connection, a <code>snowflakeDatabase</code> segment whose ID is the database name, at most 255 characters.</p> </li> </ul>"""
    glue_connection_arn: "capo_context.types.arn_string.ArnString"
    """<p>The ARN of your AWS Glue connection for <code>path</code>, in your account and Region. Required. The connection type must be one that <code>path</code> accepts:</p> <ul> <li> <p> <code>redshiftNamespace</code> - A <code>REDSHIFT</code> unified connection (ConnectionSchemaVersion 2).</p> </li> <li> <p> <code>rdsInstance</code> and <code>rdsDatabase</code> - A <code>POSTGRESQL</code> unified connection, or, for an RDS DB instance, also <code>ORACLE</code>, with its <code>DATABASE</code> property set to that <code>rdsDatabase</code>.</p> </li> <li> <p> <code>snowflakeDatabase</code> - A <code>SNOWFLAKE</code> connection with a <code>ROLE_ARN</code> and its <code>DATABASE</code> property set to that database. The <code>ROLE_ARN</code> must allow <code>glue:GetConnection</code> on that connection.</p> </li> </ul> <p>AWS Context synchronizes the database through this connection. It doesn't change <code>DATABASE</code> on a connection that it didn't create. If AWS Glue is still validating the connection, the request fails with <code>ConflictException</code>. If its validation failed, the request fails with <code>AccessDeniedException</code>.</p>"""

glue_connection_arn instance-attribute

glue_connection_arn: ArnString

The ARN of your AWS Glue connection for path, in your account and Region. Required. The connection type must be one that path accepts:

  • redshiftNamespace - A REDSHIFT unified connection (ConnectionSchemaVersion 2).

  • rdsInstance and rdsDatabase - A POSTGRESQL unified connection, or, for an RDS DB instance, also ORACLE, with its DATABASE property set to that rdsDatabase.

  • snowflakeDatabase - A SNOWFLAKE connection with a ROLE_ARN and its DATABASE property set to that database. The ROLE_ARN must allow glue:GetConnection on that connection.

AWS Context synchronizes the database through this connection. It doesn't change DATABASE on a connection that it didn't create. If AWS Glue is still validating the connection, the request fails with ConflictException. If its validation failed, the request fails with AccessDeniedException.

path instance-attribute

The resource that this mapping binds, root first, in the same form as scope.selectors[].path. Required. Contains 1–2 segments:

  • On a GLUE_DATA_CATALOG connection, either a redshiftNamespace segment whose ID is an Amazon Redshift namespace ARN (namespace:<id>, or namespace/<id> for Amazon Redshift Serverless), or an rdsInstance segment whose ID is an Amazon RDS DB cluster or DB instance ARN (cluster:<id> or db:<id>) followed by an rdsDatabase segment whose ID is the database name. The ARN must be in your account and Region.

  • On a SNOWFLAKE connection whose dataSource is an AWS Glue connection, a snowflakeDatabase segment whose ID is the database name, at most 255 characters.