Interface GlueConnectionMapping.Builder

  • Method Details

    • path

      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.

      Parameters:
      path - 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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • path

      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.

      Parameters:
      path - 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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • path

      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.

      This is a convenience method that creates an instance of the PathSegment.Builder avoiding the need to create one manually via PathSegment.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to path(List<PathSegment>).

      Parameters:
      path - a consumer that will call methods on PathSegment.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • glueConnectionArn

      GlueConnectionMapping.Builder glueConnectionArn(String glueConnectionArn)

      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.

      Parameters:
      glueConnectionArn - 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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.