Interface PolicyInformationProviderConfiguration.Builder

  • Method Details

    • credentialProvider

      The credential provider that the policy engine uses to call the provider. It is one of the following:

      • For a third-party provider, the API key credential provider that stores your provider API key.

      • For the built-in BedrockGuardrails provider, IAM. The policy engine calls Amazon Bedrock Guardrails with Amazon Web Services credentials instead of a credential provider.

      Parameters:
      credentialProvider - The credential provider that the policy engine uses to call the provider. It is one of the following:

      • For a third-party provider, the API key credential provider that stores your provider API key.

      • For the built-in BedrockGuardrails provider, IAM. The policy engine calls Amazon Bedrock Guardrails with Amazon Web Services credentials instead of a credential provider.

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

      The credential provider that the policy engine uses to call the provider. It is one of the following:

      • For a third-party provider, the API key credential provider that stores your provider API key.

      • For the built-in BedrockGuardrails provider, IAM. The policy engine calls Amazon Bedrock Guardrails with Amazon Web Services credentials instead of a credential provider.

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

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

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

      The URL through which the policy engine calls the provider. If you didn't specify a URL, the policy engine uses the provider's default URL.

      Parameters:
      url - The URL through which the policy engine calls the provider. If you didn't specify a URL, the policy engine uses the provider's default URL.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • settings

      The provider settings, keyed by setting name, including windowSize. You can't change these settings.

      Parameters:
      settings - The provider settings, keyed by setting name, including windowSize. You can't change these settings.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • providerCapabilities

      The checks that the provider offers, keyed by check name, such as CheckPoint::PromptAttack. Policies call these checks in a guardrails condition block.

      Parameters:
      providerCapabilities - The checks that the provider offers, keyed by check name, such as CheckPoint::PromptAttack. Policies call these checks in a guardrails condition block.
      Returns:
      Returns a reference to this object so that method calls can be chained together.