Interface CreateKnowledgeBaseRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,BedrockAgentRequest.Builder,Buildable,CopyableBuilder<CreateKnowledgeBaseRequest.Builder,,CreateKnowledgeBaseRequest> SdkBuilder<CreateKnowledgeBaseRequest.Builder,,CreateKnowledgeBaseRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateKnowledgeBaseRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique, case-sensitive identifier to ensure that the API request completes no more than one time.description(String description) A description of the knowledge base.knowledgeBaseConfiguration(Consumer<KnowledgeBaseConfiguration.Builder> knowledgeBaseConfiguration) Contains details about the embeddings model used for the knowledge base.knowledgeBaseConfiguration(KnowledgeBaseConfiguration knowledgeBaseConfiguration) Contains details about the embeddings model used for the knowledge base.A name for the knowledge base.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.storageConfiguration(Consumer<StorageConfiguration.Builder> storageConfiguration) Contains details about the configuration of the vector database used for the knowledge base.storageConfiguration(StorageConfiguration storageConfiguration) Contains details about the configuration of the vector database used for the knowledge base.Specify the key-value pairs for the tags that you want to attach to your knowledge base in this object.trustedIdentitySources(Collection<TrustedIdentitySource> trustedIdentitySources) Specifies up to 5 identity sources that you want the knowledge base to trust for identity-enhanced sessions.trustedIdentitySources(Consumer<TrustedIdentitySource.Builder>... trustedIdentitySources) Specifies up to 5 identity sources that you want the knowledge base to trust for identity-enhanced sessions.trustedIdentitySources(TrustedIdentitySource... trustedIdentitySources) Specifies up to 5 identity sources that you want the knowledge base to trust for identity-enhanced sessions.userContextModeForRetrieval(String userContextModeForRetrieval) Specifies the end-user identity that you want the knowledge base to use to filter retrieval results by document access controls.userContextModeForRetrieval(UserContextModeForRetrieval userContextModeForRetrieval) Specifies the end-user identity that you want the knowledge base to use to filter retrieval results by document access controls.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.bedrockagent.model.BedrockAgentRequest.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 unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
- Parameters:
clientToken- A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
A name for the knowledge base.
- Parameters:
name- A name for the knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the knowledge base.
- Parameters:
description- A description of the knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArn
The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.
- Parameters:
roleArn- The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
knowledgeBaseConfiguration
CreateKnowledgeBaseRequest.Builder knowledgeBaseConfiguration(KnowledgeBaseConfiguration knowledgeBaseConfiguration) Contains details about the embeddings model used for the knowledge base.
- Parameters:
knowledgeBaseConfiguration- Contains details about the embeddings model used for the knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
knowledgeBaseConfiguration
default CreateKnowledgeBaseRequest.Builder knowledgeBaseConfiguration(Consumer<KnowledgeBaseConfiguration.Builder> knowledgeBaseConfiguration) Contains details about the embeddings model used for the knowledge base.
This is a convenience method that creates an instance of theKnowledgeBaseConfiguration.Builderavoiding the need to create one manually viaKnowledgeBaseConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toknowledgeBaseConfiguration(KnowledgeBaseConfiguration).- Parameters:
knowledgeBaseConfiguration- a consumer that will call methods onKnowledgeBaseConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
storageConfiguration
Contains details about the configuration of the vector database used for the knowledge base.
- Parameters:
storageConfiguration- Contains details about the configuration of the vector database used for the knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageConfiguration
default CreateKnowledgeBaseRequest.Builder storageConfiguration(Consumer<StorageConfiguration.Builder> storageConfiguration) Contains details about the configuration of the vector database used for the knowledge base.
This is a convenience method that creates an instance of theStorageConfiguration.Builderavoiding the need to create one manually viaStorageConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostorageConfiguration(StorageConfiguration).- Parameters:
storageConfiguration- a consumer that will call methods onStorageConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
userContextModeForRetrieval
Specifies the end-user identity that you want the knowledge base to use to filter retrieval results by document access controls. If you don't specify a value, the knowledge base uses
API_INPUT_ONLY.- Parameters:
userContextModeForRetrieval- Specifies the end-user identity that you want the knowledge base to use to filter retrieval results by document access controls. If you don't specify a value, the knowledge base usesAPI_INPUT_ONLY.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
userContextModeForRetrieval
CreateKnowledgeBaseRequest.Builder userContextModeForRetrieval(UserContextModeForRetrieval userContextModeForRetrieval) Specifies the end-user identity that you want the knowledge base to use to filter retrieval results by document access controls. If you don't specify a value, the knowledge base uses
API_INPUT_ONLY.- Parameters:
userContextModeForRetrieval- Specifies the end-user identity that you want the knowledge base to use to filter retrieval results by document access controls. If you don't specify a value, the knowledge base usesAPI_INPUT_ONLY.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
trustedIdentitySources
CreateKnowledgeBaseRequest.Builder trustedIdentitySources(Collection<TrustedIdentitySource> trustedIdentitySources) Specifies up to 5 identity sources that you want the knowledge base to trust for identity-enhanced sessions. An identity source is an AWS IAM Identity Center identity store or an AWS Identity and Access Management (IAM) identity provider.
By default, the knowledge base trusts sessions from an identity store or identity provider in your account. Use this list to also trust identity sources in other accounts. The list applies only when
userContextModeForRetrievalisn'tAPI_INPUT_ONLY.- Parameters:
trustedIdentitySources- Specifies up to 5 identity sources that you want the knowledge base to trust for identity-enhanced sessions. An identity source is an AWS IAM Identity Center identity store or an AWS Identity and Access Management (IAM) identity provider.By default, the knowledge base trusts sessions from an identity store or identity provider in your account. Use this list to also trust identity sources in other accounts. The list applies only when
userContextModeForRetrievalisn'tAPI_INPUT_ONLY.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trustedIdentitySources
CreateKnowledgeBaseRequest.Builder trustedIdentitySources(TrustedIdentitySource... trustedIdentitySources) Specifies up to 5 identity sources that you want the knowledge base to trust for identity-enhanced sessions. An identity source is an AWS IAM Identity Center identity store or an AWS Identity and Access Management (IAM) identity provider.
By default, the knowledge base trusts sessions from an identity store or identity provider in your account. Use this list to also trust identity sources in other accounts. The list applies only when
userContextModeForRetrievalisn'tAPI_INPUT_ONLY.- Parameters:
trustedIdentitySources- Specifies up to 5 identity sources that you want the knowledge base to trust for identity-enhanced sessions. An identity source is an AWS IAM Identity Center identity store or an AWS Identity and Access Management (IAM) identity provider.By default, the knowledge base trusts sessions from an identity store or identity provider in your account. Use this list to also trust identity sources in other accounts. The list applies only when
userContextModeForRetrievalisn'tAPI_INPUT_ONLY.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trustedIdentitySources
CreateKnowledgeBaseRequest.Builder trustedIdentitySources(Consumer<TrustedIdentitySource.Builder>... trustedIdentitySources) Specifies up to 5 identity sources that you want the knowledge base to trust for identity-enhanced sessions. An identity source is an AWS IAM Identity Center identity store or an AWS Identity and Access Management (IAM) identity provider.
By default, the knowledge base trusts sessions from an identity store or identity provider in your account. Use this list to also trust identity sources in other accounts. The list applies only when
This is a convenience method that creates an instance of theuserContextModeForRetrievalisn'tAPI_INPUT_ONLY.TrustedIdentitySource.Builderavoiding the need to create one manually viaTrustedIdentitySource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totrustedIdentitySources(List<TrustedIdentitySource>).- Parameters:
trustedIdentitySources- a consumer that will call methods onTrustedIdentitySource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
Specify the key-value pairs for the tags that you want to attach to your knowledge base in this object.
- Parameters:
tags- Specify the key-value pairs for the tags that you want to attach to your knowledge base in this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateKnowledgeBaseRequest.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
CreateKnowledgeBaseRequest.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.
-