Class CfnCluster.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster>
- Enclosing class:
- CfnCluster
CfnCluster
.-
Method Summary
Modifier and TypeMethodDescriptionThe name of the Access Control List to associate with the cluster .autoMinorVersionUpgrade
(Boolean autoMinorVersionUpgrade) When set to true, the cluster will automatically receive minor engine version upgrades after launch.autoMinorVersionUpgrade
(IResolvable autoMinorVersionUpgrade) When set to true, the cluster will automatically receive minor engine version upgrades after launch.build()
clusterEndpoint
(IResolvable clusterEndpoint) The cluster 's configuration endpoint.clusterEndpoint
(CfnCluster.EndpointProperty clusterEndpoint) The cluster 's configuration endpoint.clusterName
(String clusterName) The name of the cluster .static CfnCluster.Builder
dataTiering
(String dataTiering) Enables data tiering.description
(String description) A description of the cluster .engineVersion
(String engineVersion) The Redis engine version used by the cluster .finalSnapshotName
(String finalSnapshotName) The user-supplied name of a final cluster snapshot.The ID of the KMS key used to encrypt the cluster .maintenanceWindow
(String maintenanceWindow) Specifies the weekly time range during which maintenance on the cluster is performed.The cluster 's node type.numReplicasPerShard
(Number numReplicasPerShard) The number of replicas to apply to each shard.The number of shards in the cluster .parameterGroupName
(String parameterGroupName) The name of the parameter group used by the cluster .The port used by the cluster .securityGroupIds
(List<String> securityGroupIds) A list of security group names to associate with this cluster .snapshotArns
(List<String> snapshotArns) A list of Amazon Resource Names (ARN) that uniquely identify the RDB snapshot files stored in Amazon S3.snapshotName
(String snapshotName) The name of a snapshot from which to restore data into the new cluster .snapshotRetentionLimit
(Number snapshotRetentionLimit) The number of days for which MemoryDB retains automatic snapshots before deleting them.snapshotWindow
(String snapshotWindow) The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard.snsTopicArn
(String snsTopicArn) When you pass the logical ID of this resource to the intrinsicRef
function, Ref returns the ARN of the SNS topic, such asarn:aws:memorydb:us-east-1:123456789012:mySNSTopic
.snsTopicStatus
(String snsTopicStatus) The SNS topic must be in Active status to receive notifications.subnetGroupName
(String subnetGroupName) The name of the subnet group used by the cluster .An array of key-value pairs to apply to this resource.tlsEnabled
(Boolean tlsEnabled) A flag to indicate if In-transit encryption is enabled.tlsEnabled
(IResolvable tlsEnabled) A flag to indicate if In-transit encryption is enabled.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnCluster.Builder
.
-
aclName
The name of the Access Control List to associate with the cluster .- Parameters:
aclName
- The name of the Access Control List to associate with the cluster . This parameter is required.- Returns:
this
-
clusterName
The name of the cluster .- Parameters:
clusterName
- The name of the cluster . This parameter is required.- Returns:
this
-
nodeType
The cluster 's node type.- Parameters:
nodeType
- The cluster 's node type. This parameter is required.- Returns:
this
-
autoMinorVersionUpgrade
@Stability(Stable) public CfnCluster.Builder autoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) When set to true, the cluster will automatically receive minor engine version upgrades after launch.- Parameters:
autoMinorVersionUpgrade
- When set to true, the cluster will automatically receive minor engine version upgrades after launch. This parameter is required.- Returns:
this
-
autoMinorVersionUpgrade
@Stability(Stable) public CfnCluster.Builder autoMinorVersionUpgrade(IResolvable autoMinorVersionUpgrade) When set to true, the cluster will automatically receive minor engine version upgrades after launch.- Parameters:
autoMinorVersionUpgrade
- When set to true, the cluster will automatically receive minor engine version upgrades after launch. This parameter is required.- Returns:
this
-
clusterEndpoint
The cluster 's configuration endpoint.- Parameters:
clusterEndpoint
- The cluster 's configuration endpoint. This parameter is required.- Returns:
this
-
clusterEndpoint
@Stability(Stable) public CfnCluster.Builder clusterEndpoint(CfnCluster.EndpointProperty clusterEndpoint) The cluster 's configuration endpoint.- Parameters:
clusterEndpoint
- The cluster 's configuration endpoint. This parameter is required.- Returns:
this
-
dataTiering
Enables data tiering.Data tiering is only supported for replication groups using the r6gd node type. This parameter must be set to true when using r6gd nodes. For more information, see Data tiering .
- Parameters:
dataTiering
- Enables data tiering. This parameter is required.- Returns:
this
-
description
A description of the cluster .- Parameters:
description
- A description of the cluster . This parameter is required.- Returns:
this
-
engineVersion
The Redis engine version used by the cluster .- Parameters:
engineVersion
- The Redis engine version used by the cluster . This parameter is required.- Returns:
this
-
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.
- Parameters:
finalSnapshotName
- The user-supplied name of a final cluster snapshot. This parameter is required.- Returns:
this
-
kmsKeyId
The ID of the KMS key used to encrypt the cluster .- Parameters:
kmsKeyId
- The ID of the KMS key used to encrypt the cluster . This parameter is required.- Returns:
this
-
maintenanceWindow
Specifies the weekly time range during which maintenance on the cluster is performed.It is specified as a range in the format
ddd:hh24:mi-ddd:hh24:mi
(24H Clock UTC). The minimum maintenance window is a 60 minute period.Pattern :
ddd:hh24:mi-ddd:hh24:mi
- Parameters:
maintenanceWindow
- Specifies the weekly time range during which maintenance on the cluster is performed. This parameter is required.- Returns:
this
-
numReplicasPerShard
The number of replicas to apply to each shard.Default value :
1
Maximum value :
5
- Parameters:
numReplicasPerShard
- The number of replicas to apply to each shard. This parameter is required.- Returns:
this
-
numShards
The number of shards in the cluster .- Parameters:
numShards
- The number of shards in the cluster . This parameter is required.- Returns:
this
-
parameterGroupName
The name of the parameter group used by the cluster .- Parameters:
parameterGroupName
- The name of the parameter group used by the cluster . This parameter is required.- Returns:
this
-
port
The port used by the cluster .- Parameters:
port
- The port used by the cluster . This parameter is required.- Returns:
this
-
securityGroupIds
A list of security group names to associate with this cluster .- Parameters:
securityGroupIds
- A list of security group names to associate with this cluster . This parameter is required.- Returns:
this
-
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.
- Parameters:
snapshotArns
- A list of Amazon Resource Names (ARN) that uniquely identify the RDB snapshot files stored in Amazon S3. This parameter is required.- Returns:
this
-
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.
- Parameters:
snapshotName
- The name of a snapshot from which to restore data into the new cluster . This parameter is required.- Returns:
this
-
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.
- Parameters:
snapshotRetentionLimit
- The number of days for which MemoryDB retains automatic snapshots before deleting them. This parameter is required.- Returns:
this
-
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.
- Parameters:
snapshotWindow
- The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. This parameter is required.- Returns:
this
-
snsTopicArn
When you pass the logical ID of this resource to the intrinsicRef
function, Ref returns the ARN of the SNS topic, such asarn:aws:memorydb:us-east-1:123456789012:mySNSTopic
.- Parameters:
snsTopicArn
- When you pass the logical ID of this resource to the intrinsicRef
function, Ref returns the ARN of the SNS topic, such asarn:aws:memorydb:us-east-1:123456789012:mySNSTopic
. This parameter is required.- Returns:
this
-
snsTopicStatus
The SNS topic must be in Active status to receive notifications.- Parameters:
snsTopicStatus
- The SNS topic must be in Active status to receive notifications. This parameter is required.- Returns:
this
-
subnetGroupName
The name of the subnet group used by the cluster .- Parameters:
subnetGroupName
- The name of the subnet group used by the cluster . This parameter is required.- Returns:
this
-
tags
An array of key-value pairs to apply to this resource.For more information, see Tag .
- Parameters:
tags
- An array of key-value pairs to apply to this resource. This parameter is required.- Returns:
this
-
tlsEnabled
A flag to indicate if In-transit encryption is enabled.- Parameters:
tlsEnabled
- A flag to indicate if In-transit encryption is enabled. This parameter is required.- Returns:
this
-
tlsEnabled
A flag to indicate if In-transit encryption is enabled.- Parameters:
tlsEnabled
- A flag to indicate if In-transit encryption is enabled. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCluster>
- Returns:
- a newly built instance of
CfnCluster
.
-