Class CfnClusterProps.Builder
java.lang.Object
software.amazon.awscdk.services.memorydb.CfnClusterProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterProps>
- Enclosing interface:
CfnClusterProps
@Stability(Stable)
public static final class CfnClusterProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClusterProps>
A builder for
CfnClusterProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnClusterProps.getAclName()autoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) Sets the value ofCfnClusterProps.getAutoMinorVersionUpgrade()autoMinorVersionUpgrade(IResolvable autoMinorVersionUpgrade) Sets the value ofCfnClusterProps.getAutoMinorVersionUpgrade()build()Builds the configured instance.clusterEndpoint(IResolvable clusterEndpoint) Sets the value ofCfnClusterProps.getClusterEndpoint()clusterEndpoint(CfnCluster.EndpointProperty clusterEndpoint) Sets the value ofCfnClusterProps.getClusterEndpoint()clusterName(String clusterName) Sets the value ofCfnClusterProps.getClusterName()dataTiering(String dataTiering) Sets the value ofCfnClusterProps.getDataTiering()description(String description) Sets the value ofCfnClusterProps.getDescription()Sets the value ofCfnClusterProps.getEngine()engineVersion(String engineVersion) Sets the value ofCfnClusterProps.getEngineVersion()finalSnapshotName(String finalSnapshotName) Sets the value ofCfnClusterProps.getFinalSnapshotName()ipDiscovery(String ipDiscovery) Sets the value ofCfnClusterProps.getIpDiscovery()Sets the value ofCfnClusterProps.getKmsKeyId()maintenanceWindow(String maintenanceWindow) Sets the value ofCfnClusterProps.getMaintenanceWindow()multiRegionClusterName(String multiRegionClusterName) Sets the value ofCfnClusterProps.getMultiRegionClusterName()networkType(String networkType) Sets the value ofCfnClusterProps.getNetworkType()Sets the value ofCfnClusterProps.getNodeType()numReplicasPerShard(Number numReplicasPerShard) Sets the value ofCfnClusterProps.getNumReplicasPerShard()Sets the value ofCfnClusterProps.getNumShards()parameterGroupName(String parameterGroupName) Sets the value ofCfnClusterProps.getParameterGroupName()Sets the value ofCfnClusterProps.getPort()securityGroupIds(List<? extends Object> securityGroupIds) Sets the value ofCfnClusterProps.getSecurityGroupIds()snapshotArns(List<String> snapshotArns) Sets the value ofCfnClusterProps.getSnapshotArns()snapshotName(String snapshotName) Sets the value ofCfnClusterProps.getSnapshotName()snapshotRetentionLimit(Number snapshotRetentionLimit) Sets the value ofCfnClusterProps.getSnapshotRetentionLimit()snapshotWindow(String snapshotWindow) Sets the value ofCfnClusterProps.getSnapshotWindow()snsTopicArn(String snsTopicArn) Sets the value ofCfnClusterProps.getSnsTopicArn()snsTopicStatus(String snsTopicStatus) Sets the value ofCfnClusterProps.getSnsTopicStatus()subnetGroupName(String subnetGroupName) Sets the value ofCfnClusterProps.getSubnetGroupName()Sets the value ofCfnClusterProps.getTags()tlsEnabled(Boolean tlsEnabled) Sets the value ofCfnClusterProps.getTlsEnabled()tlsEnabled(IResolvable tlsEnabled) Sets the value ofCfnClusterProps.getTlsEnabled()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
aclName
Sets the value ofCfnClusterProps.getAclName()- Parameters:
aclName- The name of the Access Control List to associate with the cluster . This parameter is required.- Returns:
this
-
clusterName
Sets the value ofCfnClusterProps.getClusterName()- Parameters:
clusterName- The name of the cluster . This parameter is required.- Returns:
this
-
nodeType
Sets the value ofCfnClusterProps.getNodeType()- Parameters:
nodeType- The cluster 's node type. This parameter is required.- Returns:
this
-
autoMinorVersionUpgrade
@Stability(Stable) public CfnClusterProps.Builder autoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) Sets the value ofCfnClusterProps.getAutoMinorVersionUpgrade()- Parameters:
autoMinorVersionUpgrade- When set to true, the cluster will automatically receive minor engine version upgrades after launch.- Returns:
this
-
autoMinorVersionUpgrade
@Stability(Stable) public CfnClusterProps.Builder autoMinorVersionUpgrade(IResolvable autoMinorVersionUpgrade) Sets the value ofCfnClusterProps.getAutoMinorVersionUpgrade()- Parameters:
autoMinorVersionUpgrade- When set to true, the cluster will automatically receive minor engine version upgrades after launch.- Returns:
this
-
clusterEndpoint
Sets the value ofCfnClusterProps.getClusterEndpoint()- Parameters:
clusterEndpoint- The cluster 's configuration endpoint.- Returns:
this
-
clusterEndpoint
@Stability(Stable) public CfnClusterProps.Builder clusterEndpoint(CfnCluster.EndpointProperty clusterEndpoint) Sets the value ofCfnClusterProps.getClusterEndpoint()- Parameters:
clusterEndpoint- The cluster 's configuration endpoint.- Returns:
this
-
dataTiering
Sets the value ofCfnClusterProps.getDataTiering()- Parameters:
dataTiering- Enables data tiering. Data tiering is only supported for clusters using the r6gd node type. This parameter must be set when using r6gd nodes. For more information, see Data tiering .- Returns:
this
-
description
Sets the value ofCfnClusterProps.getDescription()- Parameters:
description- A description of the cluster .- Returns:
this
-
engine
Sets the value ofCfnClusterProps.getEngine()- Parameters:
engine- The name of the engine used by the cluster.- Returns:
this
-
engineVersion
Sets the value ofCfnClusterProps.getEngineVersion()- Parameters:
engineVersion- The Redis engine version used by the cluster .- Returns:
this
-
finalSnapshotName
Sets the value ofCfnClusterProps.getFinalSnapshotName()- Parameters:
finalSnapshotName- The user-supplied name of a final cluster snapshot. This is the unique name that identifies the snapshot. MemoryDB creates the snapshot, and then deletes the cluster immediately afterward.- Returns:
this
-
ipDiscovery
Sets the value ofCfnClusterProps.getIpDiscovery()- Parameters:
ipDiscovery- The mechanism that the cluster uses to discover IP addresses. Returns 'ipv4' when DNS endpoints resolve to IPv4 addresses, or 'ipv6' when DNS endpoints resolve to IPv6 addresses.- Returns:
this
-
kmsKeyId
Sets the value ofCfnClusterProps.getKmsKeyId()- Parameters:
kmsKeyId- The ID of the KMS key used to encrypt the cluster .- Returns:
this
-
maintenanceWindow
Sets the value ofCfnClusterProps.getMaintenanceWindow()- Parameters:
maintenanceWindow- Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range in the formatddd:hh24:mi-ddd:hh24:mi(24H Clock UTC). The minimum maintenance window is a 60 minute period.Pattern :
ddd:hh24:mi-ddd:hh24:mi- Returns:
this
-
multiRegionClusterName
@Stability(Stable) public CfnClusterProps.Builder multiRegionClusterName(String multiRegionClusterName) Sets the value ofCfnClusterProps.getMultiRegionClusterName()- Parameters:
multiRegionClusterName- The name of the multi-Region cluster that this cluster belongs to.- Returns:
this
-
networkType
Sets the value ofCfnClusterProps.getNetworkType()- Parameters:
networkType- The IP address type for the cluster. Returns 'ipv4' for IPv4 only, 'ipv6' for IPv6 only, or 'dual-stack' if the cluster supports both IPv4 and IPv6 addressing.- Returns:
this
-
numReplicasPerShard
Sets the value ofCfnClusterProps.getNumReplicasPerShard()- Parameters:
numReplicasPerShard- The number of replicas to apply to each shard. Default value :1Maximum value :
5- Returns:
this
-
numShards
Sets the value ofCfnClusterProps.getNumShards()- Parameters:
numShards- The number of shards in the cluster .- Returns:
this
-
parameterGroupName
Sets the value ofCfnClusterProps.getParameterGroupName()- Parameters:
parameterGroupName- The name of the parameter group used by the cluster .- Returns:
this
-
port
Sets the value ofCfnClusterProps.getPort()- Parameters:
port- The port used by the cluster .- Returns:
this
-
securityGroupIds
@Stability(Stable) public CfnClusterProps.Builder securityGroupIds(List<? extends Object> securityGroupIds) Sets the value ofCfnClusterProps.getSecurityGroupIds()- Parameters:
securityGroupIds- A list of security group names to associate with this cluster .- Returns:
this
-
snapshotArns
Sets the value ofCfnClusterProps.getSnapshotArns()- Parameters:
snapshotArns- A list of Amazon Resource Names (ARN) that uniquely identify the RDB snapshot files stored in Amazon S3. The snapshot files are used to populate the new cluster . The Amazon S3 object name in the ARN cannot contain any commas.- Returns:
this
-
snapshotName
Sets the value ofCfnClusterProps.getSnapshotName()- Parameters:
snapshotName- The name of a snapshot from which to restore data into the new cluster . The snapshot status changes to restoring while the new cluster is being created.- Returns:
this
-
snapshotRetentionLimit
@Stability(Stable) public CfnClusterProps.Builder snapshotRetentionLimit(Number snapshotRetentionLimit) Sets the value ofCfnClusterProps.getSnapshotRetentionLimit()- Parameters:
snapshotRetentionLimit- The number of days for which MemoryDB retains automatic snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, a snapshot that was taken today is retained for 5 days before being deleted.- Returns:
this
-
snapshotWindow
Sets the value ofCfnClusterProps.getSnapshotWindow()- Parameters:
snapshotWindow- The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. Example: 05:00-09:00 If you do not specify this parameter, MemoryDB automatically chooses an appropriate time range.- Returns:
this
-
snsTopicArn
Sets the value ofCfnClusterProps.getSnsTopicArn()- Parameters:
snsTopicArn- When you pass the logical ID of this resource to the intrinsicReffunction, Ref returns the ARN of the SNS topic, such asarn:aws:memorydb:us-east-1:123456789012:mySNSTopic.- Returns:
this
-
snsTopicStatus
Sets the value ofCfnClusterProps.getSnsTopicStatus()- Parameters:
snsTopicStatus- The SNS topic must be in Active status to receive notifications.- Returns:
this
-
subnetGroupName
Sets the value ofCfnClusterProps.getSubnetGroupName()- Parameters:
subnetGroupName- The name of the subnet group used by the cluster .- Returns:
this
-
tags
Sets the value ofCfnClusterProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource. For more information, see Tag .- Returns:
this
-
tlsEnabled
Sets the value ofCfnClusterProps.getTlsEnabled()- Parameters:
tlsEnabled- A flag to indicate if In-transit encryption is enabled.- Returns:
this
-
tlsEnabled
Sets the value ofCfnClusterProps.getTlsEnabled()- Parameters:
tlsEnabled- A flag to indicate if In-transit encryption is enabled.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnClusterProps>- Returns:
- a new instance of
CfnClusterProps - Throws:
NullPointerException- if any required attribute was not provided
-