Class CfnOAuth2CredentialProvider.SecretReferenceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.CfnOAuth2CredentialProvider.SecretReferenceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnOAuth2CredentialProvider.SecretReferenceProperty>
- Enclosing interface:
CfnOAuth2CredentialProvider.SecretReferenceProperty
@Stability(Stable)
public static final class CfnOAuth2CredentialProvider.SecretReferenceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnOAuth2CredentialProvider.SecretReferenceProperty>
A builder for
CfnOAuth2CredentialProvider.SecretReferenceProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnOAuth2CredentialProvider.SecretReferenceProperty.getJsonKey()Sets the value ofCfnOAuth2CredentialProvider.SecretReferenceProperty.getSecretId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
jsonKey
@Stability(Stable) public CfnOAuth2CredentialProvider.SecretReferenceProperty.Builder jsonKey(String jsonKey) Sets the value ofCfnOAuth2CredentialProvider.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 CfnOAuth2CredentialProvider.SecretReferenceProperty.Builder secretId(String secretId) Sets the value ofCfnOAuth2CredentialProvider.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<CfnOAuth2CredentialProvider.SecretReferenceProperty>- Returns:
- a new instance of
CfnOAuth2CredentialProvider.SecretReferenceProperty - Throws:
NullPointerException- if any required attribute was not provided
-