Class ApiKeyCredentialProviderProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.ApiKeyCredentialProviderProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ApiKeyCredentialProviderProps>
- Enclosing interface:
ApiKeyCredentialProviderProps
@Stability(Stable)
public static final class ApiKeyCredentialProviderProps.Builder
extends Object
implements software.amazon.jsii.Builder<ApiKeyCredentialProviderProps>
A builder for
ApiKeyCredentialProviderProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiKey(SecretValue apiKey) Sets the value ofApiKeyCredentialProviderProps.getApiKey()apiKeyCredentialProviderName(String apiKeyCredentialProviderName) Sets the value ofApiKeyCredentialProviderProps.getApiKeyCredentialProviderName()build()Builds the configured instance.Sets the value ofApiKeyCredentialProviderProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiKey
Sets the value ofApiKeyCredentialProviderProps.getApiKey()- Parameters:
apiKey- The API key value. NOTE: The API key will be included in the CloudFormation template as part of synthesis. The service stores the key in Secrets Manager after creation, but the value is visible in the template and deployment history. UseSecretValue.unsafePlainText()to explicitly acknowledge plaintext, or pass a reference from another construct to avoid embedding the literal value.If omitted, you can supply the key through another mechanism supported by the service.
- Returns:
this
-
apiKeyCredentialProviderName
@Stability(Stable) public ApiKeyCredentialProviderProps.Builder apiKeyCredentialProviderName(String apiKeyCredentialProviderName) Sets the value ofApiKeyCredentialProviderProps.getApiKeyCredentialProviderName()- Parameters:
apiKeyCredentialProviderName- Name of the credential provider.- Returns:
this
-
tags
Sets the value ofApiKeyCredentialProviderProps.getTags()- Parameters:
tags- Tags for this credential provider.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ApiKeyCredentialProviderProps>- Returns:
- a new instance of
ApiKeyCredentialProviderProps - Throws:
NullPointerException- if any required attribute was not provided
-