@Stability(value=Stable) public static final class CfnCluster.Builder extends Object implements software.amazon.jsii.Builder<CfnCluster>
CfnCluster.| Modifier and Type | Method and Description |
|---|---|
CfnCluster.Builder |
aclName(String aclName)
The name of the Access Control List to associate with the cluster .
|
CfnCluster.Builder |
autoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade)
When set to true, the cluster will automatically receive minor engine version upgrades after launch.
|
CfnCluster.Builder |
autoMinorVersionUpgrade(IResolvable autoMinorVersionUpgrade)
When set to true, the cluster will automatically receive minor engine version upgrades after launch.
|
CfnCluster |
build() |
CfnCluster.Builder |
clusterEndpoint(CfnCluster.EndpointProperty clusterEndpoint)
The cluster 's configuration endpoint.
|
CfnCluster.Builder |
clusterEndpoint(IResolvable clusterEndpoint)
The cluster 's configuration endpoint.
|
CfnCluster.Builder |
clusterName(String clusterName)
The name of the cluster .
|
static CfnCluster.Builder |
create(Construct scope,
String id) |
CfnCluster.Builder |
dataTiering(String dataTiering)
Enables data tiering.
|
CfnCluster.Builder |
description(String description)
A description of the cluster .
|
CfnCluster.Builder |
engineVersion(String engineVersion)
The Redis engine version used by the cluster .
|
CfnCluster.Builder |
finalSnapshotName(String finalSnapshotName)
The user-supplied name of a final cluster snapshot.
|
CfnCluster.Builder |
kmsKeyId(String kmsKeyId)
The ID of the KMS key used to encrypt the cluster .
|
CfnCluster.Builder |
maintenanceWindow(String maintenanceWindow)
Specifies the weekly time range during which maintenance on the cluster is performed.
|
CfnCluster.Builder |
nodeType(String nodeType)
The cluster 's node type.
|
CfnCluster.Builder |
numReplicasPerShard(Number numReplicasPerShard)
The number of replicas to apply to each shard.
|
CfnCluster.Builder |
numShards(Number numShards)
The number of shards in the cluster .
|
CfnCluster.Builder |
parameterGroupName(String parameterGroupName)
The name of the parameter group used by the cluster .
|
CfnCluster.Builder |
port(Number port)
The port used by the cluster .
|
CfnCluster.Builder |
securityGroupIds(List<String> securityGroupIds)
A list of security group names to associate with this cluster .
|
CfnCluster.Builder |
snapshotArns(List<String> snapshotArns)
A list of Amazon Resource Names (ARN) that uniquely identify the RDB snapshot files stored in Amazon S3.
|
CfnCluster.Builder |
snapshotName(String snapshotName)
The name of a snapshot from which to restore data into the new cluster .
|
CfnCluster.Builder |
snapshotRetentionLimit(Number snapshotRetentionLimit)
The number of days for which MemoryDB retains automatic snapshots before deleting them.
|
CfnCluster.Builder |
snapshotWindow(String snapshotWindow)
The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard.
|
CfnCluster.Builder |
snsTopicArn(String snsTopicArn)
When you pass the logical ID of this resource to the intrinsic `Ref` function, Ref returns the ARN of the SNS topic, such as `arn:aws:memorydb:us-east-1:123456789012:mySNSTopic`.
|
CfnCluster.Builder |
snsTopicStatus(String snsTopicStatus)
The SNS topic must be in Active status to receive notifications.
|
CfnCluster.Builder |
subnetGroupName(String subnetGroupName)
The name of the subnet group used by the cluster .
|
CfnCluster.Builder |
tags(List<? extends CfnTag> tags)
An array of key-value pairs to apply to this resource.
|
CfnCluster.Builder |
tlsEnabled(Boolean tlsEnabled)
A flag to indicate if In-transit encryption is enabled.
|
CfnCluster.Builder |
tlsEnabled(IResolvable tlsEnabled)
A flag to indicate if In-transit encryption is enabled.
|
@Stability(value=Stable) public static CfnCluster.Builder create(Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnCluster.EndpointProperty.Builder.@Stability(value=Stable) public CfnCluster.Builder aclName(String aclName)
aclName - The name of the Access Control List to associate with the cluster . This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder clusterName(String clusterName)
clusterName - The name of the cluster . This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder nodeType(String nodeType)
nodeType - The cluster 's node type. This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder autoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade)
autoMinorVersionUpgrade - When set to true, the cluster will automatically receive minor engine version upgrades after launch. This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder autoMinorVersionUpgrade(IResolvable autoMinorVersionUpgrade)
autoMinorVersionUpgrade - When set to true, the cluster will automatically receive minor engine version upgrades after launch. This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder clusterEndpoint(IResolvable clusterEndpoint)
clusterEndpoint - The cluster 's configuration endpoint. This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder clusterEndpoint(CfnCluster.EndpointProperty clusterEndpoint)
clusterEndpoint - The cluster 's configuration endpoint. This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder dataTiering(String dataTiering)
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 .
dataTiering - Enables data tiering. This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder description(String description)
description - A description of the cluster . This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder engineVersion(String engineVersion)
engineVersion - The Redis engine version used by the cluster . This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder finalSnapshotName(String finalSnapshotName)
This is the unique name that identifies the snapshot. MemoryDB creates the snapshot, and then deletes the cluster immediately afterward.
finalSnapshotName - The user-supplied name of a final cluster snapshot. This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder kmsKeyId(String kmsKeyId)
kmsKeyId - The ID of the KMS key used to encrypt the cluster . This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder maintenanceWindow(String maintenanceWindow)
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
maintenanceWindow - Specifies the weekly time range during which maintenance on the cluster is performed. This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder numReplicasPerShard(Number numReplicasPerShard)
Default value : 1
Maximum value : 5
numReplicasPerShard - The number of replicas to apply to each shard. This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder numShards(Number numShards)
numShards - The number of shards in the cluster . This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder parameterGroupName(String parameterGroupName)
parameterGroupName - The name of the parameter group used by the cluster . This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder port(Number port)
port - The port used by the cluster . This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder securityGroupIds(List<String> securityGroupIds)
securityGroupIds - A list of security group names to associate with this cluster . This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder snapshotArns(List<String> snapshotArns)
The snapshot files are used to populate the new cluster . The Amazon S3 object name in the ARN cannot contain any commas.
snapshotArns - A list of Amazon Resource Names (ARN) that uniquely identify the RDB snapshot files stored in Amazon S3. This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder snapshotName(String snapshotName)
The snapshot status changes to restoring while the new cluster is being created.
snapshotName - The name of a snapshot from which to restore data into the new cluster . This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder snapshotRetentionLimit(Number snapshotRetentionLimit)
For example, if you set SnapshotRetentionLimit to 5, a snapshot that was taken today is retained for 5 days before being deleted.
snapshotRetentionLimit - The number of days for which MemoryDB retains automatic snapshots before deleting them. This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder snapshotWindow(String snapshotWindow)
Example: 05:00-09:00 If you do not specify this parameter, MemoryDB automatically chooses an appropriate time range.
snapshotWindow - The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder snsTopicArn(String snsTopicArn)
snsTopicArn - When you pass the logical ID of this resource to the intrinsic `Ref` function, Ref returns the ARN of the SNS topic, such as `arn:aws:memorydb:us-east-1:123456789012:mySNSTopic`. This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder snsTopicStatus(String snsTopicStatus)
snsTopicStatus - The SNS topic must be in Active status to receive notifications. This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder subnetGroupName(String subnetGroupName)
subnetGroupName - The name of the subnet group used by the cluster . This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder tags(List<? extends CfnTag> tags)
For more information, see Tag .
tags - An array of key-value pairs to apply to this resource. This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder tlsEnabled(Boolean tlsEnabled)
tlsEnabled - A flag to indicate if In-transit encryption is enabled. This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder tlsEnabled(IResolvable tlsEnabled)
tlsEnabled - A flag to indicate if In-transit encryption is enabled. This parameter is required.this@Stability(value=Stable) public CfnCluster build()
build in interface software.amazon.jsii.Builder<CfnCluster>Copyright © 2023. All rights reserved.