Interface PolicyInformationProviderCredentialProvider.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PolicyInformationProviderCredentialProvider.Builder,,PolicyInformationProviderCredentialProvider> SdkBuilder<PolicyInformationProviderCredentialProvider.Builder,,PolicyInformationProviderCredentialProvider> SdkPojo
- Enclosing class:
PolicyInformationProviderCredentialProvider
-
Method Summary
Modifier and TypeMethodDescriptionAn API key credential provider in AgentCore Identity that stores your provider API key.An API key credential provider in AgentCore Identity that stores your provider API key.The policy engine calls the provider with Amazon Web Services credentials instead of a credential provider.The policy engine calls the provider with Amazon Web Services credentials instead of a credential 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
-
apiKey
PolicyInformationProviderCredentialProvider.Builder apiKey(PolicyInformationProviderApiKeyCredentialProvider apiKey) An API key credential provider in AgentCore Identity that stores your provider API key. Use it for every third-party provider.
- Parameters:
apiKey- An API key credential provider in AgentCore Identity that stores your provider API key. Use it for every third-party provider.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
apiKey
default PolicyInformationProviderCredentialProvider.Builder apiKey(Consumer<PolicyInformationProviderApiKeyCredentialProvider.Builder> apiKey) An API key credential provider in AgentCore Identity that stores your provider API key. Use it for every third-party provider.
This is a convenience method that creates an instance of thePolicyInformationProviderApiKeyCredentialProvider.Builderavoiding the need to create one manually viaPolicyInformationProviderApiKeyCredentialProvider.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toapiKey(PolicyInformationProviderApiKeyCredentialProvider).- Parameters:
apiKey- a consumer that will call methods onPolicyInformationProviderApiKeyCredentialProvider.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
iam
PolicyInformationProviderCredentialProvider.Builder iam(PolicyInformationProviderIamCredentials iam) The policy engine calls the provider with Amazon Web Services credentials instead of a credential provider. Only the built-in
BedrockGuardrailsprovider reports this value, and you can't specify it in a request.- Parameters:
iam- The policy engine calls the provider with Amazon Web Services credentials instead of a credential provider. Only the built-inBedrockGuardrailsprovider reports this value, and you can't specify it in a request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iam
default PolicyInformationProviderCredentialProvider.Builder iam(Consumer<PolicyInformationProviderIamCredentials.Builder> iam) The policy engine calls the provider with Amazon Web Services credentials instead of a credential provider. Only the built-in
This is a convenience method that creates an instance of theBedrockGuardrailsprovider reports this value, and you can't specify it in a request.PolicyInformationProviderIamCredentials.Builderavoiding the need to create one manually viaPolicyInformationProviderIamCredentials.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toiam(PolicyInformationProviderIamCredentials).- Parameters:
iam- a consumer that will call methods onPolicyInformationProviderIamCredentials.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-