Interface PolicyInformationProviderConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PolicyInformationProviderConfiguration.Builder,,PolicyInformationProviderConfiguration> SdkBuilder<PolicyInformationProviderConfiguration.Builder,,PolicyInformationProviderConfiguration> SdkPojo
- Enclosing class:
PolicyInformationProviderConfiguration
-
Method Summary
Modifier and TypeMethodDescriptioncredentialProvider(Consumer<PolicyInformationProviderCredentialProvider.Builder> credentialProvider) The credential provider that the policy engine uses to call the provider.credentialProvider(PolicyInformationProviderCredentialProvider credentialProvider) The credential provider that the policy engine uses to call the provider.providerCapabilities(Map<String, PolicyInformationProviderCapability> providerCapabilities) The checks that the provider offers, keyed by check name, such asCheckPoint::PromptAttack.The provider settings, keyed by setting name, includingwindowSize.The URL through which the policy engine calls the provider.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
-
credentialProvider
PolicyInformationProviderConfiguration.Builder credentialProvider(PolicyInformationProviderCredentialProvider 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
BedrockGuardrailsprovider, 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
BedrockGuardrailsprovider, 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
default PolicyInformationProviderConfiguration.Builder credentialProvider(Consumer<PolicyInformationProviderCredentialProvider.Builder> 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
BedrockGuardrailsprovider, IAM. The policy engine calls Amazon Bedrock Guardrails with Amazon Web Services credentials instead of a credential provider.
PolicyInformationProviderCredentialProvider.Builderavoiding the need to create one manually viaPolicyInformationProviderCredentialProvider.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocredentialProvider(PolicyInformationProviderCredentialProvider).- Parameters:
credentialProvider- a consumer that will call methods onPolicyInformationProviderCredentialProvider.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, includingwindowSize. You can't change these settings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
providerCapabilities
PolicyInformationProviderConfiguration.Builder providerCapabilities(Map<String, PolicyInformationProviderCapability> 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 asCheckPoint::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.
-