Class CfnDBInstance.MasterUserSecretProperty.Builder
java.lang.Object
software.amazon.awscdk.services.rds.CfnDBInstance.MasterUserSecretProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDBInstance.MasterUserSecretProperty>
- Enclosing interface:
CfnDBInstance.MasterUserSecretProperty
@Stability(Stable)
public static final class CfnDBInstance.MasterUserSecretProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDBInstance.MasterUserSecretProperty>
A builder for
CfnDBInstance.MasterUserSecretProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnDBInstance.MasterUserSecretProperty.getKmsKeyId()
Sets the value ofCfnDBInstance.MasterUserSecretProperty.getSecretArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
kmsKeyId
Sets the value ofCfnDBInstance.MasterUserSecretProperty.getKmsKeyId()
- Parameters:
kmsKeyId
- The AWS KMS key identifier that is used to encrypt the secret.- Returns:
this
-
secretArn
@Stability(Stable) public CfnDBInstance.MasterUserSecretProperty.Builder secretArn(String secretArn) Sets the value ofCfnDBInstance.MasterUserSecretProperty.getSecretArn()
- Parameters:
secretArn
- The Amazon Resource Name (ARN) of the secret. This parameter is a return value that you can retrieve using theFn::GetAtt
intrinsic function. For more information, see Return values .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDBInstance.MasterUserSecretProperty>
- Returns:
- a new instance of
CfnDBInstance.MasterUserSecretProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-