Interface CreateConnectionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,ContextRequest.Builder,CopyableBuilder<CreateConnectionRequest.Builder,,CreateConnectionRequest> SdkBuilder<CreateConnectionRequest.Builder,,CreateConnectionRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateConnectionRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateConnectionRequest.BuilderaccessConfig(Consumer<AccessConfig.Builder> accessConfig) The access configuration for the data source, which names the AWS Identity and Access Management (IAM) role for data access.accessConfig(AccessConfig accessConfig) The access configuration for the data source, which names the AWS Identity and Access Management (IAM) role for data access.acknowledgements(String... acknowledgements) The conditions that you acknowledge AWS Context can't honor.acknowledgements(Collection<String> acknowledgements) The conditions that you acknowledge AWS Context can't honor.clientToken(String clientToken) A client idempotency token.default CreateConnectionRequest.BuilderdataSource(Consumer<DataSourceReference.Builder> dataSource) The external data source that this connection binds to: itstypeandlocation.arn.dataSource(DataSourceReference dataSource) The external data source that this connection binds to: itstypeandlocation.arn.glueConnectionMappings(Collection<GlueConnectionMapping> glueConnectionMappings) The AWS Glue connection to use for eachredshiftNamespace, eachrdsInstanceandrdsDatabasepair, or eachsnowflakeDatabaseinscope, keyed bypath.glueConnectionMappings(Consumer<GlueConnectionMapping.Builder>... glueConnectionMappings) The AWS Glue connection to use for eachredshiftNamespace, eachrdsInstanceandrdsDatabasepair, or eachsnowflakeDatabaseinscope, keyed bypath.glueConnectionMappings(GlueConnectionMapping... glueConnectionMappings) The AWS Glue connection to use for eachredshiftNamespace, eachrdsInstanceandrdsDatabasepair, or eachsnowflakeDatabaseinscope, keyed bypath.default CreateConnectionRequest.BuilderingestionConfig(Consumer<IngestionConfig.Builder> ingestionConfig) The ingestion configuration: the IAM role that a data producer (AWS Glue Data Catalog or Amazon Bedrock knowledge base) assumes to push data into this connection's agent contexts.ingestionConfig(IngestionConfig ingestionConfig) The ingestion configuration: the IAM role that a data producer (AWS Glue Data Catalog or Amazon Bedrock knowledge base) assumes to push data into this connection's agent contexts.The name of the connection.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Specifies whether to configure catalog synchronization and wait for it to be provisioned during this call.default CreateConnectionRequest.Builderscope(Consumer<DataSourceScope.Builder> scope) Optional hierarchical subset of the data source to ingest.scope(DataSourceScope scope) Optional hierarchical subset of the data source to ingest.default CreateConnectionRequest.BuildersyncSchedule(Consumer<SyncSchedule.Builder> syncSchedule) How often AWS Context re-syncs aDATABRICKSorSNOWFLAKEsource.syncSchedule(SyncSchedule syncSchedule) How often AWS Context re-syncs aDATABRICKSorSNOWFLAKEsource.Tags to add to the connection when you create it: up to 200 in the request, of which at most 50 can be user tags.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.context.model.ContextRequest.Builder
buildMethods 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
-
clientToken
A client idempotency token. It is optional, so the AWS SDKs can generate it automatically and reuse it on retries. A retry with an identical request returns the original connection. A different request returns
ValidationException.acknowledgements,tagsand, once the connection isACTIVE,publishare not compared with the original request. A create refused for a missing acknowledgement records no token.- Parameters:
clientToken- A client idempotency token. It is optional, so the AWS SDKs can generate it automatically and reuse it on retries. A retry with an identical request returns the original connection. A different request returnsValidationException.acknowledgements,tagsand, once the connection isACTIVE,publishare not compared with the original request. A create refused for a missing acknowledgement records no token.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the connection. Required. You can change it later with UpdateConnection. Starts with a letter and contains 3–63 ASCII letters, digits, and hyphens.
- Parameters:
name- The name of the connection. Required. You can change it later with UpdateConnection. Starts with a letter and contains 3–63 ASCII letters, digits, and hyphens.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataSource
The external data source that this connection binds to: its
typeandlocation.arn. The ARN must be in your account, except forGLUE_DATA_CATALOG, where it can name a catalog or an AWS Glue connection in another account.-
GLUE_DATA_CATALOG- An AWS Glue Data Catalog ARN (:catalogor:catalog/<path>), or the ARN of an existing AWS Glue connection (:connection/<name>) for a federated AWS data source such as Amazon Redshift or Amazon RDS. The AWS Glue connection must be a unified connection (ConnectionSchemaVersion 2) in your partition and Region that you can read. You can't specifyscopewith an AWS Glue connection ARN. While AWS Glue is still validating the connection, the request fails withConflictException. If its validation failed, the request fails withAccessDeniedException. -
DATABRICKSorSNOWFLAKE- The ARN of an existing AWS Glue connection whose AWS Glue ConnectionType matchestype. AWS Context validates its Credential Broker settings, if present, and doesn't store them.
- Parameters:
dataSource- The external data source that this connection binds to: itstypeandlocation.arn. The ARN must be in your account, except forGLUE_DATA_CATALOG, where it can name a catalog or an AWS Glue connection in another account.-
GLUE_DATA_CATALOG- An AWS Glue Data Catalog ARN (:catalogor:catalog/<path>), or the ARN of an existing AWS Glue connection (:connection/<name>) for a federated AWS data source such as Amazon Redshift or Amazon RDS. The AWS Glue connection must be a unified connection (ConnectionSchemaVersion 2) in your partition and Region that you can read. You can't specifyscopewith an AWS Glue connection ARN. While AWS Glue is still validating the connection, the request fails withConflictException. If its validation failed, the request fails withAccessDeniedException. -
DATABRICKSorSNOWFLAKE- The ARN of an existing AWS Glue connection whose AWS Glue ConnectionType matchestype. AWS Context validates its Credential Broker settings, if present, and doesn't store them.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
dataSource
default CreateConnectionRequest.Builder dataSource(Consumer<DataSourceReference.Builder> dataSource) The external data source that this connection binds to: its
typeandlocation.arn. The ARN must be in your account, except forGLUE_DATA_CATALOG, where it can name a catalog or an AWS Glue connection in another account.-
GLUE_DATA_CATALOG- An AWS Glue Data Catalog ARN (:catalogor:catalog/<path>), or the ARN of an existing AWS Glue connection (:connection/<name>) for a federated AWS data source such as Amazon Redshift or Amazon RDS. The AWS Glue connection must be a unified connection (ConnectionSchemaVersion 2) in your partition and Region that you can read. You can't specifyscopewith an AWS Glue connection ARN. While AWS Glue is still validating the connection, the request fails withConflictException. If its validation failed, the request fails withAccessDeniedException. -
DATABRICKSorSNOWFLAKE- The ARN of an existing AWS Glue connection whose AWS Glue ConnectionType matchestype. AWS Context validates its Credential Broker settings, if present, and doesn't store them.
DataSourceReference.Builderavoiding the need to create one manually viaDataSourceReference.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todataSource(DataSourceReference).- Parameters:
dataSource- a consumer that will call methods onDataSourceReference.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
scope
Optional hierarchical subset of the data source to ingest. Absent means the whole source. A DATABRICKS scope names at most one
databricksCatalog, and a SNOWFLAKE scope onesnowflakeDatabase. A GLUE_DATA_CATALOG scope can select by service with aglueServicesegment (seeDataSourceScope). An unknown service name, a repeated or misplacedglueServicesegment, a later level of another service, orglueServiceon another connection type returns ValidationException.- Parameters:
scope- Optional hierarchical subset of the data source to ingest. Absent means the whole source. A DATABRICKS scope names at most onedatabricksCatalog, and a SNOWFLAKE scope onesnowflakeDatabase. A GLUE_DATA_CATALOG scope can select by service with aglueServicesegment (seeDataSourceScope). An unknown service name, a repeated or misplacedglueServicesegment, a later level of another service, orglueServiceon another connection type returns ValidationException.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scope
Optional hierarchical subset of the data source to ingest. Absent means the whole source. A DATABRICKS scope names at most one
This is a convenience method that creates an instance of thedatabricksCatalog, and a SNOWFLAKE scope onesnowflakeDatabase. A GLUE_DATA_CATALOG scope can select by service with aglueServicesegment (seeDataSourceScope). An unknown service name, a repeated or misplacedglueServicesegment, a later level of another service, orglueServiceon another connection type returns ValidationException.DataSourceScope.Builderavoiding the need to create one manually viaDataSourceScope.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscope(DataSourceScope).- Parameters:
scope- a consumer that will call methods onDataSourceScope.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
accessConfig
The access configuration for the data source, which names the AWS Identity and Access Management (IAM) role for data access. Optional.
For
GLUE_DATA_CATALOGandBEDROCK_KNOWLEDGE_BASE,iamRoleis the IAM role that AWS Context assumes to read the source and the AWS Glue connections inglueConnectionMappings. If you omitaccessConfigor set no variant, AWS Context reads them with your own credentials. This applies whether the source is in your account or another account. For a source in another account, AWS Context checks when it creates the connection thatiamRolecan read the source, and the request fails if it can't. A source in another account with noiamRoleisn't checked when the connection is created. AnaccessConfigwith no variant is stored as absent and is not returned on the connection.For
DATABRICKSandSNOWFLAKE, AWS Glue reads the source with theROLE_ARNof the AWS Glue connection indataSource, not withaccessConfig. For these types,accessConfigis reserved for other roles.- Parameters:
accessConfig- The access configuration for the data source, which names the AWS Identity and Access Management (IAM) role for data access. Optional.For
GLUE_DATA_CATALOGandBEDROCK_KNOWLEDGE_BASE,iamRoleis the IAM role that AWS Context assumes to read the source and the AWS Glue connections inglueConnectionMappings. If you omitaccessConfigor set no variant, AWS Context reads them with your own credentials. This applies whether the source is in your account or another account. For a source in another account, AWS Context checks when it creates the connection thatiamRolecan read the source, and the request fails if it can't. A source in another account with noiamRoleisn't checked when the connection is created. AnaccessConfigwith no variant is stored as absent and is not returned on the connection.For
DATABRICKSandSNOWFLAKE, AWS Glue reads the source with theROLE_ARNof the AWS Glue connection indataSource, not withaccessConfig. For these types,accessConfigis reserved for other roles.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessConfig
The access configuration for the data source, which names the AWS Identity and Access Management (IAM) role for data access. Optional.
For
GLUE_DATA_CATALOGandBEDROCK_KNOWLEDGE_BASE,iamRoleis the IAM role that AWS Context assumes to read the source and the AWS Glue connections inglueConnectionMappings. If you omitaccessConfigor set no variant, AWS Context reads them with your own credentials. This applies whether the source is in your account or another account. For a source in another account, AWS Context checks when it creates the connection thatiamRolecan read the source, and the request fails if it can't. A source in another account with noiamRoleisn't checked when the connection is created. AnaccessConfigwith no variant is stored as absent and is not returned on the connection.For
This is a convenience method that creates an instance of theDATABRICKSandSNOWFLAKE, AWS Glue reads the source with theROLE_ARNof the AWS Glue connection indataSource, not withaccessConfig. For these types,accessConfigis reserved for other roles.AccessConfig.Builderavoiding the need to create one manually viaAccessConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaccessConfig(AccessConfig).- Parameters:
accessConfig- a consumer that will call methods onAccessConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
syncSchedule
How often AWS Context re-syncs a
DATABRICKSorSNOWFLAKEsource. If you omit it, the default isDAILY. Not accepted forGLUE_DATA_CATALOGandBEDROCK_KNOWLEDGE_BASEconnections. You can change it with UpdateConnection.- Parameters:
syncSchedule- How often AWS Context re-syncs aDATABRICKSorSNOWFLAKEsource. If you omit it, the default isDAILY. Not accepted forGLUE_DATA_CATALOGandBEDROCK_KNOWLEDGE_BASEconnections. You can change it with UpdateConnection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
syncSchedule
How often AWS Context re-syncs a
This is a convenience method that creates an instance of theDATABRICKSorSNOWFLAKEsource. If you omit it, the default isDAILY. Not accepted forGLUE_DATA_CATALOGandBEDROCK_KNOWLEDGE_BASEconnections. You can change it with UpdateConnection.SyncSchedule.Builderavoiding the need to create one manually viaSyncSchedule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosyncSchedule(SyncSchedule).- Parameters:
syncSchedule- a consumer that will call methods onSyncSchedule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ingestionConfig
The ingestion configuration: the IAM role that a data producer (AWS Glue Data Catalog or Amazon Bedrock knowledge base) assumes to push data into this connection's agent contexts. It is separate from
accessConfig, which names the role that AWS Context assumes to read the source. Required, because a connection can't ingest data without a role that its data producer can assume. You must haveiam:PassRolepermission to pass this role to the data producer, and the role must be in your account.- Parameters:
ingestionConfig- The ingestion configuration: the IAM role that a data producer (AWS Glue Data Catalog or Amazon Bedrock knowledge base) assumes to push data into this connection's agent contexts. It is separate fromaccessConfig, which names the role that AWS Context assumes to read the source. Required, because a connection can't ingest data without a role that its data producer can assume. You must haveiam:PassRolepermission to pass this role to the data producer, and the role must be in your account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ingestionConfig
default CreateConnectionRequest.Builder ingestionConfig(Consumer<IngestionConfig.Builder> ingestionConfig) The ingestion configuration: the IAM role that a data producer (AWS Glue Data Catalog or Amazon Bedrock knowledge base) assumes to push data into this connection's agent contexts. It is separate from
This is a convenience method that creates an instance of theaccessConfig, which names the role that AWS Context assumes to read the source. Required, because a connection can't ingest data without a role that its data producer can assume. You must haveiam:PassRolepermission to pass this role to the data producer, and the role must be in your account.IngestionConfig.Builderavoiding the need to create one manually viaIngestionConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toingestionConfig(IngestionConfig).- Parameters:
ingestionConfig- a consumer that will call methods onIngestionConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
glueConnectionMappings
CreateConnectionRequest.Builder glueConnectionMappings(Collection<GlueConnectionMapping> glueConnectionMappings) The AWS Glue connection to use for each
redshiftNamespace, eachrdsInstanceandrdsDatabasepair, or eachsnowflakeDatabaseinscope, keyed bypath. Optional. You can specify 0–20 entries. The following rules apply:-
Once an entry names a level, every resource of that level in
scopeneeds an entry. While an entry namesrdsInstance, every selector that names anrdsInstancemust also name itsrdsDatabase. -
redshiftNamespaceandrdsInstanceentries requiredataSourceto be an AWS Glue Data Catalog ARN.accessConfig.iamRoleis optional. -
snowflakeDatabaseentries requiredataSourceto be an AWS Glue connection ARN. -
While any entry is present,
scopecannot contain a selector that names only a catalog or aglueService, because such a selector covers every resource of the catalog or service. Otherwise, a selector with aglueServicesegment follows these rules as it would without that segment. An entry'spathnever namesglueService. -
A selector that names only
glueServiceREDSHIFTorRDS, with no namespace or instance, cannot be combined with any entry. Such a connection reads only the service's metadata, and you cannot query its data.
- Parameters:
glueConnectionMappings- The AWS Glue connection to use for eachredshiftNamespace, eachrdsInstanceandrdsDatabasepair, or eachsnowflakeDatabaseinscope, keyed bypath. Optional. You can specify 0–20 entries. The following rules apply:-
Once an entry names a level, every resource of that level in
scopeneeds an entry. While an entry namesrdsInstance, every selector that names anrdsInstancemust also name itsrdsDatabase. -
redshiftNamespaceandrdsInstanceentries requiredataSourceto be an AWS Glue Data Catalog ARN.accessConfig.iamRoleis optional. -
snowflakeDatabaseentries requiredataSourceto be an AWS Glue connection ARN. -
While any entry is present,
scopecannot contain a selector that names only a catalog or aglueService, because such a selector covers every resource of the catalog or service. Otherwise, a selector with aglueServicesegment follows these rules as it would without that segment. An entry'spathnever namesglueService. -
A selector that names only
glueServiceREDSHIFTorRDS, with no namespace or instance, cannot be combined with any entry. Such a connection reads only the service's metadata, and you cannot query its data.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
glueConnectionMappings
CreateConnectionRequest.Builder glueConnectionMappings(GlueConnectionMapping... glueConnectionMappings) The AWS Glue connection to use for each
redshiftNamespace, eachrdsInstanceandrdsDatabasepair, or eachsnowflakeDatabaseinscope, keyed bypath. Optional. You can specify 0–20 entries. The following rules apply:-
Once an entry names a level, every resource of that level in
scopeneeds an entry. While an entry namesrdsInstance, every selector that names anrdsInstancemust also name itsrdsDatabase. -
redshiftNamespaceandrdsInstanceentries requiredataSourceto be an AWS Glue Data Catalog ARN.accessConfig.iamRoleis optional. -
snowflakeDatabaseentries requiredataSourceto be an AWS Glue connection ARN. -
While any entry is present,
scopecannot contain a selector that names only a catalog or aglueService, because such a selector covers every resource of the catalog or service. Otherwise, a selector with aglueServicesegment follows these rules as it would without that segment. An entry'spathnever namesglueService. -
A selector that names only
glueServiceREDSHIFTorRDS, with no namespace or instance, cannot be combined with any entry. Such a connection reads only the service's metadata, and you cannot query its data.
- Parameters:
glueConnectionMappings- The AWS Glue connection to use for eachredshiftNamespace, eachrdsInstanceandrdsDatabasepair, or eachsnowflakeDatabaseinscope, keyed bypath. Optional. You can specify 0–20 entries. The following rules apply:-
Once an entry names a level, every resource of that level in
scopeneeds an entry. While an entry namesrdsInstance, every selector that names anrdsInstancemust also name itsrdsDatabase. -
redshiftNamespaceandrdsInstanceentries requiredataSourceto be an AWS Glue Data Catalog ARN.accessConfig.iamRoleis optional. -
snowflakeDatabaseentries requiredataSourceto be an AWS Glue connection ARN. -
While any entry is present,
scopecannot contain a selector that names only a catalog or aglueService, because such a selector covers every resource of the catalog or service. Otherwise, a selector with aglueServicesegment follows these rules as it would without that segment. An entry'spathnever namesglueService. -
A selector that names only
glueServiceREDSHIFTorRDS, with no namespace or instance, cannot be combined with any entry. Such a connection reads only the service's metadata, and you cannot query its data.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
glueConnectionMappings
CreateConnectionRequest.Builder glueConnectionMappings(Consumer<GlueConnectionMapping.Builder>... glueConnectionMappings) The AWS Glue connection to use for each
redshiftNamespace, eachrdsInstanceandrdsDatabasepair, or eachsnowflakeDatabaseinscope, keyed bypath. Optional. You can specify 0–20 entries. The following rules apply:-
Once an entry names a level, every resource of that level in
scopeneeds an entry. While an entry namesrdsInstance, every selector that names anrdsInstancemust also name itsrdsDatabase. -
redshiftNamespaceandrdsInstanceentries requiredataSourceto be an AWS Glue Data Catalog ARN.accessConfig.iamRoleis optional. -
snowflakeDatabaseentries requiredataSourceto be an AWS Glue connection ARN. -
While any entry is present,
scopecannot contain a selector that names only a catalog or aglueService, because such a selector covers every resource of the catalog or service. Otherwise, a selector with aglueServicesegment follows these rules as it would without that segment. An entry'spathnever namesglueService. -
A selector that names only
glueServiceREDSHIFTorRDS, with no namespace or instance, cannot be combined with any entry. Such a connection reads only the service's metadata, and you cannot query its data.
GlueConnectionMapping.Builderavoiding the need to create one manually viaGlueConnectionMapping.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toglueConnectionMappings(List<GlueConnectionMapping>).- Parameters:
glueConnectionMappings- a consumer that will call methods onGlueConnectionMapping.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
publish
Specifies whether to configure catalog synchronization and wait for it to be provisioned during this call. If you omit it, the default is
true. For aDATABRICKSorSNOWFLAKEconnection,falsevalidates only the AWS Glue connection. The connection is returned asCREATINGwithsubStatusGLUE_CONNECTION_VALIDATED, and you publish it later by calling UpdateConnection withpublishset totrue. Ignored forGLUE_DATA_CATALOGandBEDROCK_KNOWLEDGE_BASEconnections, which have no sync job.- Parameters:
publish- Specifies whether to configure catalog synchronization and wait for it to be provisioned during this call. If you omit it, the default istrue. For aDATABRICKSorSNOWFLAKEconnection,falsevalidates only the AWS Glue connection. The connection is returned asCREATINGwithsubStatusGLUE_CONNECTION_VALIDATED, and you publish it later by calling UpdateConnection withpublishset totrue. Ignored forGLUE_DATA_CATALOGandBEDROCK_KNOWLEDGE_BASEconnections, which have no sync job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
acknowledgements
The conditions that you acknowledge AWS Context can't honor. Specify
CUSTOMER_MANAGED_KEYwhen the knowledge base is encrypted with an AWS KMS customer managed key and you accept that AWS Context stores the ingested data under AWS owned keys. If you omit it, creating a connection to such a knowledge base fails withValidationException. An unknown or repeated value also fails withValidationException.- Parameters:
acknowledgements- The conditions that you acknowledge AWS Context can't honor. SpecifyCUSTOMER_MANAGED_KEYwhen the knowledge base is encrypted with an AWS KMS customer managed key and you accept that AWS Context stores the ingested data under AWS owned keys. If you omit it, creating a connection to such a knowledge base fails withValidationException. An unknown or repeated value also fails withValidationException.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
acknowledgements
The conditions that you acknowledge AWS Context can't honor. Specify
CUSTOMER_MANAGED_KEYwhen the knowledge base is encrypted with an AWS KMS customer managed key and you accept that AWS Context stores the ingested data under AWS owned keys. If you omit it, creating a connection to such a knowledge base fails withValidationException. An unknown or repeated value also fails withValidationException.- Parameters:
acknowledgements- The conditions that you acknowledge AWS Context can't honor. SpecifyCUSTOMER_MANAGED_KEYwhen the knowledge base is encrypted with an AWS KMS customer managed key and you accept that AWS Context stores the ingested data under AWS owned keys. If you omit it, creating a connection to such a knowledge base fails withValidationException. An unknown or repeated value also fails withValidationException.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Tags to add to the connection when you create it: up to 200 in the request, of which at most 50 can be user tags. Keys can't start with
aws:. To add tags, you also needcontext:TagResourcepermission on the new connection. If you specify more than 50 user tags, the request fails withServiceQuotaExceededException, as on TagResource. If an AWS Organizations tag policy refuses a tag, the request fails withValidationException.- Parameters:
tags- Tags to add to the connection when you create it: up to 200 in the request, of which at most 50 can be user tags. Keys can't start withaws:. To add tags, you also needcontext:TagResourcepermission on the new connection. If you specify more than 50 user tags, the request fails withServiceQuotaExceededException, as on TagResource. If an AWS Organizations tag policy refuses a tag, the request fails withValidationException.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateConnectionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateConnectionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-