Class CfnSecret.ReplicaRegionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.secretsmanager.CfnSecret.ReplicaRegionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSecret.ReplicaRegionProperty>
- Enclosing interface:
- CfnSecret.ReplicaRegionProperty
@Stability(Stable)
public static final class CfnSecret.ReplicaRegionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSecret.ReplicaRegionProperty>
A builder for
CfnSecret.ReplicaRegionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnSecret.ReplicaRegionProperty.getKmsKeyId()Sets the value ofCfnSecret.ReplicaRegionProperty.getRegion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
region
Sets the value ofCfnSecret.ReplicaRegionProperty.getRegion()- Parameters:
region- (Optional) A string that represents aRegion, for example "us-east-1". This parameter is required.- Returns:
this
-
kmsKeyId
Sets the value ofCfnSecret.ReplicaRegionProperty.getKmsKeyId()- Parameters:
kmsKeyId- The ARN, key ID, or alias of the KMS key to encrypt the secret. If you don't include this field, Secrets Manager usesaws/secretsmanager.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSecret.ReplicaRegionProperty>- Returns:
- a new instance of
CfnSecret.ReplicaRegionProperty - Throws:
NullPointerException- if any required attribute was not provided
-