Class CfnApiKeyCredentialProviderProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.CfnApiKeyCredentialProviderProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApiKeyCredentialProviderProps>
- Enclosing interface:
CfnApiKeyCredentialProviderProps
@Stability(Stable)
public static final class CfnApiKeyCredentialProviderProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApiKeyCredentialProviderProps>
A builder for
CfnApiKeyCredentialProviderProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnApiKeyCredentialProviderProps.getApiKey()apiKeySecretConfig(IResolvable apiKeySecretConfig) Sets the value ofCfnApiKeyCredentialProviderProps.getApiKeySecretConfig()apiKeySecretConfig(CfnApiKeyCredentialProvider.SecretReferenceProperty apiKeySecretConfig) Sets the value ofCfnApiKeyCredentialProviderProps.getApiKeySecretConfig()apiKeySecretSource(String apiKeySecretSource) Sets the value ofCfnApiKeyCredentialProviderProps.getApiKeySecretSource()build()Builds the configured instance.Sets the value ofCfnApiKeyCredentialProviderProps.getName()Sets the value ofCfnApiKeyCredentialProviderProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnApiKeyCredentialProviderProps.getName()- Parameters:
name- The name of the API key credential provider. This parameter is required.- Returns:
this
-
apiKey
Sets the value ofCfnApiKeyCredentialProviderProps.getApiKey()- Parameters:
apiKey- The API key to use for authentication.- Returns:
this
-
apiKeySecretConfig
@Stability(Stable) public CfnApiKeyCredentialProviderProps.Builder apiKeySecretConfig(IResolvable apiKeySecretConfig) Sets the value ofCfnApiKeyCredentialProviderProps.getApiKeySecretConfig()- Parameters:
apiKeySecretConfig- A reference to a customer-provided secret stored in AWS Secrets Manager.- Returns:
this
-
apiKeySecretConfig
@Stability(Stable) public CfnApiKeyCredentialProviderProps.Builder apiKeySecretConfig(CfnApiKeyCredentialProvider.SecretReferenceProperty apiKeySecretConfig) Sets the value ofCfnApiKeyCredentialProviderProps.getApiKeySecretConfig()- Parameters:
apiKeySecretConfig- A reference to a customer-provided secret stored in AWS Secrets Manager.- Returns:
this
-
apiKeySecretSource
@Stability(Stable) public CfnApiKeyCredentialProviderProps.Builder apiKeySecretSource(String apiKeySecretSource) Sets the value ofCfnApiKeyCredentialProviderProps.getApiKeySecretSource()- Parameters:
apiKeySecretSource- The source of the API key secret. Use MANAGED for service-managed secrets or EXTERNAL for customer-provided secrets.- Returns:
this
-
tags
@Stability(Stable) public CfnApiKeyCredentialProviderProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnApiKeyCredentialProviderProps.getTags()- Parameters:
tags- Tags to assign to the API key credential provider.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnApiKeyCredentialProviderProps>- Returns:
- a new instance of
CfnApiKeyCredentialProviderProps - Throws:
NullPointerException- if any required attribute was not provided
-