Interface ConnectionMapping.Builder

  • Method Details

    • connectionId

      ConnectionMapping.Builder connectionId(String connectionId)

      The connection, by its ID (which starts with conn-) or its full ARN. Required. AWS Context resolves an ID to an ARN in your account and the current Region.

      Parameters:
      connectionId - The connection, by its ID (which starts with conn-) or its full ARN. Required. AWS Context resolves an ID to an ARN in your account and the current Region.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ontologyMappings

      ConnectionMapping.Builder ontologyMappings(Collection<OntologyMapping> ontologyMappings)

      The ontology mappings for this connection mapping. Each entry identifies an ontology that this mapping targets. BEDROCK_KNOWLEDGE_BASE rejects the AWS managed Data ontology. GLUE_DATA_CATALOG rejects the AWS managed Enterprise and Business Process ontologies. AWS Context accepts a new or changed mapping to a customer-owned ontology only on BEDROCK_KNOWLEDGE_BASE. An incompatible mapping, or an ontology that isn't PUBLISHED, fails with ValidationException.

      Parameters:
      ontologyMappings - The ontology mappings for this connection mapping. Each entry identifies an ontology that this mapping targets. BEDROCK_KNOWLEDGE_BASE rejects the AWS managed Data ontology. GLUE_DATA_CATALOG rejects the AWS managed Enterprise and Business Process ontologies. AWS Context accepts a new or changed mapping to a customer-owned ontology only on BEDROCK_KNOWLEDGE_BASE. An incompatible mapping, or an ontology that isn't PUBLISHED, fails with ValidationException.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ontologyMappings

      ConnectionMapping.Builder ontologyMappings(OntologyMapping... ontologyMappings)

      The ontology mappings for this connection mapping. Each entry identifies an ontology that this mapping targets. BEDROCK_KNOWLEDGE_BASE rejects the AWS managed Data ontology. GLUE_DATA_CATALOG rejects the AWS managed Enterprise and Business Process ontologies. AWS Context accepts a new or changed mapping to a customer-owned ontology only on BEDROCK_KNOWLEDGE_BASE. An incompatible mapping, or an ontology that isn't PUBLISHED, fails with ValidationException.

      Parameters:
      ontologyMappings - The ontology mappings for this connection mapping. Each entry identifies an ontology that this mapping targets. BEDROCK_KNOWLEDGE_BASE rejects the AWS managed Data ontology. GLUE_DATA_CATALOG rejects the AWS managed Enterprise and Business Process ontologies. AWS Context accepts a new or changed mapping to a customer-owned ontology only on BEDROCK_KNOWLEDGE_BASE. An incompatible mapping, or an ontology that isn't PUBLISHED, fails with ValidationException.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ontologyMappings

      ConnectionMapping.Builder ontologyMappings(Consumer<OntologyMapping.Builder>... ontologyMappings)

      The ontology mappings for this connection mapping. Each entry identifies an ontology that this mapping targets. BEDROCK_KNOWLEDGE_BASE rejects the AWS managed Data ontology. GLUE_DATA_CATALOG rejects the AWS managed Enterprise and Business Process ontologies. AWS Context accepts a new or changed mapping to a customer-owned ontology only on BEDROCK_KNOWLEDGE_BASE. An incompatible mapping, or an ontology that isn't PUBLISHED, fails with ValidationException.

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

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

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

      ConnectionMapping.Builder dataFilter(DataFilter dataFilter)

      Optional. The data filter for this connection mapping. A document matches if it matches any filter in the list. Within a filter, all conditions must match. If you omit it, every document matches.

      Parameters:
      dataFilter - Optional. The data filter for this connection mapping. A document matches if it matches any filter in the list. Within a filter, all conditions must match. If you omit it, every document matches.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dataFilter

      default ConnectionMapping.Builder dataFilter(Consumer<DataFilter.Builder> dataFilter)

      Optional. The data filter for this connection mapping. A document matches if it matches any filter in the list. Within a filter, all conditions must match. If you omit it, every document matches.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to dataFilter(DataFilter).

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

      ConnectionMapping.Builder extractionDepth(String extractionDepth)

      Optional extraction depth override for BEDROCK_KNOWLEDGE_BASE connections.

      Parameters:
      extractionDepth - Optional extraction depth override for BEDROCK_KNOWLEDGE_BASE connections.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pathSegments

      ConnectionMapping.Builder pathSegments(Collection<PathSegment> pathSegments)

      The path segments that scope ingestion within the data source, 0–100 segments. Optional. An empty list is the same as omitting the field and matches everything. The segments name levels from one branch of the connection type's level hierarchy. The container levels form a contiguous prefix of that branch that starts at its root, and a link can also name the table level. AWS Context rejects a link that mixes branches. The branches are the following:

      • GLUE_DATA_CATALOG - The native branch (glueDatabase, glueTable) and one branch for each federated AWS data source: redshiftNamespace, redshiftDatabase, redshiftSchema, redshiftTable, rdsInstance, rdsDatabase, rdsSchema, rdsTable, s3TableBucket, s3Namespace, s3Table, and sagemakerModelGroup.

      • SNOWFLAKE - snowflakeDatabase, snowflakeSchema, snowflakeTable.

      • DATABRICKS - databricksCatalog, databricksSchema, databricksTable.

      The connection holds the source's identity, such as the account locator or metastore ID, so it isn't a segment. AWS Context matches IDs as opaque strings against the source's coordinate values.

      Parameters:
      pathSegments - The path segments that scope ingestion within the data source, 0–100 segments. Optional. An empty list is the same as omitting the field and matches everything. The segments name levels from one branch of the connection type's level hierarchy. The container levels form a contiguous prefix of that branch that starts at its root, and a link can also name the table level. AWS Context rejects a link that mixes branches. The branches are the following:

      • GLUE_DATA_CATALOG - The native branch (glueDatabase, glueTable) and one branch for each federated AWS data source: redshiftNamespace, redshiftDatabase, redshiftSchema, redshiftTable, rdsInstance, rdsDatabase, rdsSchema, rdsTable, s3TableBucket, s3Namespace, s3Table, and sagemakerModelGroup.

      • SNOWFLAKE - snowflakeDatabase, snowflakeSchema, snowflakeTable.

      • DATABRICKS - databricksCatalog, databricksSchema, databricksTable.

      The connection holds the source's identity, such as the account locator or metastore ID, so it isn't a segment. AWS Context matches IDs as opaque strings against the source's coordinate values.

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

      ConnectionMapping.Builder pathSegments(PathSegment... pathSegments)

      The path segments that scope ingestion within the data source, 0–100 segments. Optional. An empty list is the same as omitting the field and matches everything. The segments name levels from one branch of the connection type's level hierarchy. The container levels form a contiguous prefix of that branch that starts at its root, and a link can also name the table level. AWS Context rejects a link that mixes branches. The branches are the following:

      • GLUE_DATA_CATALOG - The native branch (glueDatabase, glueTable) and one branch for each federated AWS data source: redshiftNamespace, redshiftDatabase, redshiftSchema, redshiftTable, rdsInstance, rdsDatabase, rdsSchema, rdsTable, s3TableBucket, s3Namespace, s3Table, and sagemakerModelGroup.

      • SNOWFLAKE - snowflakeDatabase, snowflakeSchema, snowflakeTable.

      • DATABRICKS - databricksCatalog, databricksSchema, databricksTable.

      The connection holds the source's identity, such as the account locator or metastore ID, so it isn't a segment. AWS Context matches IDs as opaque strings against the source's coordinate values.

      Parameters:
      pathSegments - The path segments that scope ingestion within the data source, 0–100 segments. Optional. An empty list is the same as omitting the field and matches everything. The segments name levels from one branch of the connection type's level hierarchy. The container levels form a contiguous prefix of that branch that starts at its root, and a link can also name the table level. AWS Context rejects a link that mixes branches. The branches are the following:

      • GLUE_DATA_CATALOG - The native branch (glueDatabase, glueTable) and one branch for each federated AWS data source: redshiftNamespace, redshiftDatabase, redshiftSchema, redshiftTable, rdsInstance, rdsDatabase, rdsSchema, rdsTable, s3TableBucket, s3Namespace, s3Table, and sagemakerModelGroup.

      • SNOWFLAKE - snowflakeDatabase, snowflakeSchema, snowflakeTable.

      • DATABRICKS - databricksCatalog, databricksSchema, databricksTable.

      The connection holds the source's identity, such as the account locator or metastore ID, so it isn't a segment. AWS Context matches IDs as opaque strings against the source's coordinate values.

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

      ConnectionMapping.Builder pathSegments(Consumer<PathSegment.Builder>... pathSegments)

      The path segments that scope ingestion within the data source, 0–100 segments. Optional. An empty list is the same as omitting the field and matches everything. The segments name levels from one branch of the connection type's level hierarchy. The container levels form a contiguous prefix of that branch that starts at its root, and a link can also name the table level. AWS Context rejects a link that mixes branches. The branches are the following:

      • GLUE_DATA_CATALOG - The native branch (glueDatabase, glueTable) and one branch for each federated AWS data source: redshiftNamespace, redshiftDatabase, redshiftSchema, redshiftTable, rdsInstance, rdsDatabase, rdsSchema, rdsTable, s3TableBucket, s3Namespace, s3Table, and sagemakerModelGroup.

      • SNOWFLAKE - snowflakeDatabase, snowflakeSchema, snowflakeTable.

      • DATABRICKS - databricksCatalog, databricksSchema, databricksTable.

      The connection holds the source's identity, such as the account locator or metastore ID, so it isn't a segment. AWS Context matches IDs as opaque strings against the source's coordinate values.

      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 pathSegments(List<PathSegment>).

      Parameters:
      pathSegments - 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:
    • type

      The connection's data source type. AWS Context sets it from the referenced connection's data source type when you create or update the mapping. Read-only.

      Valid values:

      • GLUE_DATA_CATALOG - An AWS Glue Data Catalog, or an AWS Glue connection that fronts a federated AWS data source.

      • BEDROCK_KNOWLEDGE_BASE - An Amazon Bedrock knowledge base.

      • DATABRICKS - A Databricks third-party catalog.

      • SNOWFLAKE - A Snowflake third-party catalog.

      Parameters:
      type - The connection's data source type. AWS Context sets it from the referenced connection's data source type when you create or update the mapping. Read-only.

      Valid values:

      • GLUE_DATA_CATALOG - An AWS Glue Data Catalog, or an AWS Glue connection that fronts a federated AWS data source.

      • BEDROCK_KNOWLEDGE_BASE - An Amazon Bedrock knowledge base.

      • DATABRICKS - A Databricks third-party catalog.

      • SNOWFLAKE - A Snowflake third-party catalog.

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

      The connection's data source type. AWS Context sets it from the referenced connection's data source type when you create or update the mapping. Read-only.

      Valid values:

      • GLUE_DATA_CATALOG - An AWS Glue Data Catalog, or an AWS Glue connection that fronts a federated AWS data source.

      • BEDROCK_KNOWLEDGE_BASE - An Amazon Bedrock knowledge base.

      • DATABRICKS - A Databricks third-party catalog.

      • SNOWFLAKE - A Snowflake third-party catalog.

      Parameters:
      type - The connection's data source type. AWS Context sets it from the referenced connection's data source type when you create or update the mapping. Read-only.

      Valid values:

      • GLUE_DATA_CATALOG - An AWS Glue Data Catalog, or an AWS Glue connection that fronts a federated AWS data source.

      • BEDROCK_KNOWLEDGE_BASE - An Amazon Bedrock knowledge base.

      • DATABRICKS - A Databricks third-party catalog.

      • SNOWFLAKE - A Snowflake third-party catalog.

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