Class ApiKeyCredentialProviderOptions.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.ApiKeyCredentialProviderOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ApiKeyCredentialProviderOptions>
- Enclosing interface:
ApiKeyCredentialProviderOptions
@Stability(Stable)
public static final class ApiKeyCredentialProviderOptions.Builder
extends Object
implements software.amazon.jsii.Builder<ApiKeyCredentialProviderOptions>
A builder for
ApiKeyCredentialProviderOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.credentialLocation(ApiKeyCredentialLocation credentialLocation) Sets the value ofApiKeyCredentialProviderOptions.getCredentialLocation()providerArn(String providerArn) Sets the value ofApiKeyCredentialProviderOptions.getProviderArn()Sets the value ofApiKeyCredentialProviderOptions.getSecretArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
providerArn
Sets the value ofApiKeyCredentialProviderOptions.getProviderArn()- Parameters:
providerArn- The API key credential provider ARN. This parameter is required. This is returned when creating the API key credential provider via Console or API. Format: arn:aws:bedrock-agentcore:region:account:token-vault/id/apikeycredentialprovider/name- Returns:
this
-
secretArn
Sets the value ofApiKeyCredentialProviderOptions.getSecretArn()- Parameters:
secretArn- The ARN of the Secrets Manager secret containing the API key. This parameter is required. This is returned when creating the API key credential provider via Console or API. Format: arn:aws:secretsmanager:region:account:secret:name- Returns:
this
-
credentialLocation
@Stability(Stable) public ApiKeyCredentialProviderOptions.Builder credentialLocation(ApiKeyCredentialLocation credentialLocation) Sets the value ofApiKeyCredentialProviderOptions.getCredentialLocation()- Parameters:
credentialLocation- The location of the API key credential. This field specifies where in the request the API key should be placed.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ApiKeyCredentialProviderOptions>- Returns:
- a new instance of
ApiKeyCredentialProviderOptions - Throws:
NullPointerException- if any required attribute was not provided
-