Interface ConnectionMapping.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ConnectionMapping.Builder,,ConnectionMapping> SdkBuilder<ConnectionMapping.Builder,,ConnectionMapping> SdkPojo
- Enclosing class:
ConnectionMapping
-
Method Summary
Modifier and TypeMethodDescriptionconnectionId(String connectionId) The connection, by its ID (which starts withconn-) or its full ARN.default ConnectionMapping.BuilderdataFilter(Consumer<DataFilter.Builder> dataFilter) Optional.dataFilter(DataFilter dataFilter) Optional.extractionDepth(String extractionDepth) Optional extraction depth override for BEDROCK_KNOWLEDGE_BASE connections.ontologyMappings(Collection<OntologyMapping> ontologyMappings) The ontology mappings for this connection mapping.ontologyMappings(Consumer<OntologyMapping.Builder>... ontologyMappings) The ontology mappings for this connection mapping.ontologyMappings(OntologyMapping... ontologyMappings) The ontology mappings for this connection mapping.pathSegments(Collection<PathSegment> pathSegments) The path segments that scope ingestion within the data source, 0–100 segments.pathSegments(Consumer<PathSegment.Builder>... pathSegments) The path segments that scope ingestion within the data source, 0–100 segments.pathSegments(PathSegment... pathSegments) The path segments that scope ingestion within the data source, 0–100 segments.The connection's data source type.type(ConnectionType type) The connection's data source type.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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 withconn-) 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
The ontology mappings for this connection mapping. Each entry identifies an ontology that this mapping targets.
BEDROCK_KNOWLEDGE_BASErejects the AWS managed Data ontology.GLUE_DATA_CATALOGrejects the AWS managed Enterprise and Business Process ontologies. AWS Context accepts a new or changed mapping to a customer-owned ontology only onBEDROCK_KNOWLEDGE_BASE. An incompatible mapping, or an ontology that isn'tPUBLISHED, fails withValidationException.- Parameters:
ontologyMappings- The ontology mappings for this connection mapping. Each entry identifies an ontology that this mapping targets.BEDROCK_KNOWLEDGE_BASErejects the AWS managed Data ontology.GLUE_DATA_CATALOGrejects the AWS managed Enterprise and Business Process ontologies. AWS Context accepts a new or changed mapping to a customer-owned ontology only onBEDROCK_KNOWLEDGE_BASE. An incompatible mapping, or an ontology that isn'tPUBLISHED, fails withValidationException.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ontologyMappings
The ontology mappings for this connection mapping. Each entry identifies an ontology that this mapping targets.
BEDROCK_KNOWLEDGE_BASErejects the AWS managed Data ontology.GLUE_DATA_CATALOGrejects the AWS managed Enterprise and Business Process ontologies. AWS Context accepts a new or changed mapping to a customer-owned ontology only onBEDROCK_KNOWLEDGE_BASE. An incompatible mapping, or an ontology that isn'tPUBLISHED, fails withValidationException.- Parameters:
ontologyMappings- The ontology mappings for this connection mapping. Each entry identifies an ontology that this mapping targets.BEDROCK_KNOWLEDGE_BASErejects the AWS managed Data ontology.GLUE_DATA_CATALOGrejects the AWS managed Enterprise and Business Process ontologies. AWS Context accepts a new or changed mapping to a customer-owned ontology only onBEDROCK_KNOWLEDGE_BASE. An incompatible mapping, or an ontology that isn'tPUBLISHED, fails withValidationException.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ontologyMappings
The ontology mappings for this connection mapping. Each entry identifies an ontology that this mapping targets.
This is a convenience method that creates an instance of theBEDROCK_KNOWLEDGE_BASErejects the AWS managed Data ontology.GLUE_DATA_CATALOGrejects the AWS managed Enterprise and Business Process ontologies. AWS Context accepts a new or changed mapping to a customer-owned ontology only onBEDROCK_KNOWLEDGE_BASE. An incompatible mapping, or an ontology that isn'tPUBLISHED, fails withValidationException.OntologyMapping.Builderavoiding the need to create one manually viaOntologyMapping.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toontologyMappings(List<OntologyMapping>).- Parameters:
ontologyMappings- a consumer that will call methods onOntologyMapping.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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 theDataFilter.Builderavoiding the need to create one manually viaDataFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todataFilter(DataFilter).- Parameters:
dataFilter- a consumer that will call methods onDataFilter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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, andsagemakerModelGroup. -
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, andsagemakerModelGroup. -
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
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, andsagemakerModelGroup. -
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, andsagemakerModelGroup. -
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
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, andsagemakerModelGroup. -
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 thePathSegment.Builderavoiding the need to create one manually viaPathSegment.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topathSegments(List<PathSegment>).- Parameters:
pathSegments- a consumer that will call methods onPathSegment.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:
-
-