Class CfnApiKeyCredentialProvider.SecretReferenceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.CfnApiKeyCredentialProvider.SecretReferenceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApiKeyCredentialProvider.SecretReferenceProperty>
- Enclosing interface:
CfnApiKeyCredentialProvider.SecretReferenceProperty
@Stability(Stable)
public static final class CfnApiKeyCredentialProvider.SecretReferenceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApiKeyCredentialProvider.SecretReferenceProperty>
A builder for
CfnApiKeyCredentialProvider.SecretReferenceProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnApiKeyCredentialProvider.SecretReferenceProperty.getJsonKey()Sets the value ofCfnApiKeyCredentialProvider.SecretReferenceProperty.getSecretId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
jsonKey
@Stability(Stable) public CfnApiKeyCredentialProvider.SecretReferenceProperty.Builder jsonKey(String jsonKey) Sets the value ofCfnApiKeyCredentialProvider.SecretReferenceProperty.getJsonKey()- Parameters:
jsonKey- The JSON key within the secret that contains the credential value. This parameter is required.- Returns:
this
-
secretId
@Stability(Stable) public CfnApiKeyCredentialProvider.SecretReferenceProperty.Builder secretId(String secretId) Sets the value ofCfnApiKeyCredentialProvider.SecretReferenceProperty.getSecretId()- Parameters:
secretId- The ID or ARN of the secret in AWS Secrets Manager. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnApiKeyCredentialProvider.SecretReferenceProperty>- Returns:
- a new instance of
CfnApiKeyCredentialProvider.SecretReferenceProperty - Throws:
NullPointerException- if any required attribute was not provided
-