Interface CreateKnowledgeBaseRequest.Builder

  • Method Details

    • clientToken

      CreateKnowledgeBaseRequest.Builder clientToken(String 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

      CreateKnowledgeBaseRequest.Builder description(String 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 the KnowledgeBaseConfiguration.Builder avoiding the need to create one manually via KnowledgeBaseConfiguration.builder().

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

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

      CreateKnowledgeBaseRequest.Builder storageConfiguration(StorageConfiguration 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 the StorageConfiguration.Builder avoiding the need to create one manually via StorageConfiguration.builder().

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

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

      CreateKnowledgeBaseRequest.Builder userContextModeForRetrieval(String 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 uses API_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 uses API_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 userContextModeForRetrieval isn't API_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 userContextModeForRetrieval isn't API_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 userContextModeForRetrieval isn't API_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 userContextModeForRetrieval isn't API_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 userContextModeForRetrieval isn't API_INPUT_ONLY.

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

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

      Parameters:
      trustedIdentitySources - a consumer that will call methods on TrustedIdentitySource.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.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.