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