@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.960Z") @Stability(value=Stable) public class CfnCluster extends CfnResource implements IInspectable
Specifies a cluster . All nodes in the cluster run the same protocol-compliant engine software.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.memorydb.*;
CfnCluster cfnCluster = CfnCluster.Builder.create(this, "MyCfnCluster")
.aclName("aclName")
.clusterName("clusterName")
.nodeType("nodeType")
// the properties below are optional
.autoMinorVersionUpgrade(false)
.description("description")
.engineVersion("engineVersion")
.finalSnapshotName("finalSnapshotName")
.kmsKeyId("kmsKeyId")
.maintenanceWindow("maintenanceWindow")
.numReplicasPerShard(123)
.numShards(123)
.parameterGroupName("parameterGroupName")
.port(123)
.securityGroupIds(List.of("securityGroupIds"))
.snapshotArns(List.of("snapshotArns"))
.snapshotName("snapshotName")
.snapshotRetentionLimit(123)
.snapshotWindow("snapshotWindow")
.snsTopicArn("snsTopicArn")
.snsTopicStatus("snsTopicStatus")
.subnetGroupName("subnetGroupName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.tlsEnabled(false)
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnCluster.Builder
A fluent builder for
CfnCluster. |
static interface |
CfnCluster.EndpointProperty
Represents the information required for client programs to connect to the cluster and its nodes.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnCluster(software.constructs.Construct scope,
String id,
CfnClusterProps props)
Create a new `AWS::MemoryDB::Cluster`.
|
protected |
CfnCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnCluster(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAclName()
The name of the Access Control List to associate with the cluster .
|
String |
getAttrArn()
When you pass the logical ID of this resource to the intrinsic `Ref` function, Ref returns the ARN of the cluster , such as `arn:aws:memorydb:us-east-1:123456789012:cluster/my-cluster`.
|
String |
getAttrClusterEndpointAddress()
The address of the cluster 's configuration endpoint.
|
Number |
getAttrClusterEndpointPort()
The port used by the cluster configuration endpoint.
|
String |
getAttrParameterGroupStatus()
The status of the parameter group used by the cluster , for example `active` or `applying` .
|
String |
getAttrStatus()
The status of the cluster.
|
Object |
getAutoMinorVersionUpgrade()
When set to true, the cluster will automatically receive minor engine version upgrades after launch.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getClusterName()
The name of the cluster .
|
String |
getDescription()
A description of the cluster .
|
String |
getEngineVersion()
The Redis engine version used by the cluster .
|
String |
getFinalSnapshotName()
The user-supplied name of a final cluster snapshot.
|
String |
getKmsKeyId()
The ID of the KMS key used to encrypt the cluster .
|
String |
getMaintenanceWindow()
Specifies the weekly time range during which maintenance on the cluster is performed.
|
String |
getNodeType()
The cluster 's node type.
|
Number |
getNumReplicasPerShard()
The number of replicas to apply to each shard.
|
Number |
getNumShards()
The number of shards in the cluster .
|
String |
getParameterGroupName()
The name of the parameter group used by the cluster .
|
Number |
getPort()
The port used by the cluster .
|
List<String> |
getSecurityGroupIds()
A list of security group names to associate with this cluster .
|
List<String> |
getSnapshotArns()
A list of Amazon Resource Names (ARN) that uniquely identify the RDB snapshot files stored in Amazon S3.
|
String |
getSnapshotName()
The name of a snapshot from which to restore data into the new cluster .
|
Number |
getSnapshotRetentionLimit()
The number of days for which MemoryDB retains automatic snapshots before deleting them.
|
String |
getSnapshotWindow()
The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard.
|
String |
getSnsTopicArn()
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`.
|
String |
getSnsTopicStatus()
The SNS topic must be in Active status to receive notifications.
|
String |
getSubnetGroupName()
The name of the subnet group used by the cluster .
|
TagManager |
getTags()
An array of key-value pairs to apply to this resource.
|
Object |
getTlsEnabled()
A flag to indicate if In-transit encryption is enabled.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAclName(String value)
The name of the Access Control List to associate with the cluster .
|
void |
setAutoMinorVersionUpgrade(Boolean value)
When set to true, the cluster will automatically receive minor engine version upgrades after launch.
|
void |
setAutoMinorVersionUpgrade(IResolvable value)
When set to true, the cluster will automatically receive minor engine version upgrades after launch.
|
void |
setClusterName(String value)
The name of the cluster .
|
void |
setDescription(String value)
A description of the cluster .
|
void |
setEngineVersion(String value)
The Redis engine version used by the cluster .
|
void |
setFinalSnapshotName(String value)
The user-supplied name of a final cluster snapshot.
|
void |
setKmsKeyId(String value)
The ID of the KMS key used to encrypt the cluster .
|
void |
setMaintenanceWindow(String value)
Specifies the weekly time range during which maintenance on the cluster is performed.
|
void |
setNodeType(String value)
The cluster 's node type.
|
void |
setNumReplicasPerShard(Number value)
The number of replicas to apply to each shard.
|
void |
setNumShards(Number value)
The number of shards in the cluster .
|
void |
setParameterGroupName(String value)
The name of the parameter group used by the cluster .
|
void |
setPort(Number value)
The port used by the cluster .
|
void |
setSecurityGroupIds(List<String> value)
A list of security group names to associate with this cluster .
|
void |
setSnapshotArns(List<String> value)
A list of Amazon Resource Names (ARN) that uniquely identify the RDB snapshot files stored in Amazon S3.
|
void |
setSnapshotName(String value)
The name of a snapshot from which to restore data into the new cluster .
|
void |
setSnapshotRetentionLimit(Number value)
The number of days for which MemoryDB retains automatic snapshots before deleting them.
|
void |
setSnapshotWindow(String value)
The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard.
|
void |
setSnsTopicArn(String value)
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`.
|
void |
setSnsTopicStatus(String value)
The SNS topic must be in Active status to receive notifications.
|
void |
setSubnetGroupName(String value)
The name of the subnet group used by the cluster .
|
void |
setTlsEnabled(Boolean value)
A flag to indicate if In-transit encryption is enabled.
|
void |
setTlsEnabled(IResolvable value)
A flag to indicate if In-transit encryption is enabled.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnCluster(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnCluster(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnClusterProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull public String getAttrClusterEndpointAddress()
@Stability(value=Stable) @NotNull public Number getAttrClusterEndpointPort()
@Stability(value=Stable) @NotNull public String getAttrParameterGroupStatus()
@Stability(value=Stable) @NotNull public String getAttrStatus()
For example, 'available', 'updating' or 'creating'.
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
For more information, see Tag .
@Stability(value=Stable) @NotNull public String getAclName()
@Stability(value=Stable)
public void setAclName(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getClusterName()
@Stability(value=Stable)
public void setClusterName(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getNodeType()
@Stability(value=Stable)
public void setNodeType(@NotNull
String value)
@Stability(value=Stable) @Nullable public Object getAutoMinorVersionUpgrade()
@Stability(value=Stable)
public void setAutoMinorVersionUpgrade(@Nullable
Boolean value)
@Stability(value=Stable)
public void setAutoMinorVersionUpgrade(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getEngineVersion()
@Stability(value=Stable)
public void setEngineVersion(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getFinalSnapshotName()
This is the unique name that identifies the snapshot. MemoryDB creates the snapshot, and then deletes the cluster immediately afterward.
@Stability(value=Stable)
public void setFinalSnapshotName(@Nullable
String value)
This is the unique name that identifies the snapshot. MemoryDB creates the snapshot, and then deletes the cluster immediately afterward.
@Stability(value=Stable) @Nullable public String getKmsKeyId()
@Stability(value=Stable)
public void setKmsKeyId(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getMaintenanceWindow()
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
@Stability(value=Stable)
public void setMaintenanceWindow(@Nullable
String value)
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
@Stability(value=Stable) @Nullable public Number getNumReplicasPerShard()
Default value : 1
Maximum value : 5
@Stability(value=Stable)
public void setNumReplicasPerShard(@Nullable
Number value)
Default value : 1
Maximum value : 5
@Stability(value=Stable) @Nullable public Number getNumShards()
@Stability(value=Stable)
public void setNumShards(@Nullable
Number value)
@Stability(value=Stable) @Nullable public String getParameterGroupName()
@Stability(value=Stable)
public void setParameterGroupName(@Nullable
String value)
@Stability(value=Stable) @Nullable public Number getPort()
@Stability(value=Stable)
public void setPort(@Nullable
Number value)
@Stability(value=Stable) @Nullable public List<String> getSecurityGroupIds()
@Stability(value=Stable)
public void setSecurityGroupIds(@Nullable
List<String> value)
@Stability(value=Stable) @Nullable public List<String> getSnapshotArns()
The snapshot files are used to populate the new cluster . The Amazon S3 object name in the ARN cannot contain any commas.
@Stability(value=Stable)
public void setSnapshotArns(@Nullable
List<String> value)
The snapshot files are used to populate the new cluster . The Amazon S3 object name in the ARN cannot contain any commas.
@Stability(value=Stable) @Nullable public String getSnapshotName()
The snapshot status changes to restoring while the new cluster is being created.
@Stability(value=Stable)
public void setSnapshotName(@Nullable
String value)
The snapshot status changes to restoring while the new cluster is being created.
@Stability(value=Stable) @Nullable public Number getSnapshotRetentionLimit()
For example, if you set SnapshotRetentionLimit to 5, a snapshot that was taken today is retained for 5 days before being deleted.
@Stability(value=Stable)
public void setSnapshotRetentionLimit(@Nullable
Number value)
For example, if you set SnapshotRetentionLimit to 5, a snapshot that was taken today is retained for 5 days before being deleted.
@Stability(value=Stable) @Nullable public String getSnapshotWindow()
Example: 05:00-09:00 If you do not specify this parameter, MemoryDB automatically chooses an appropriate time range.
@Stability(value=Stable)
public void setSnapshotWindow(@Nullable
String value)
Example: 05:00-09:00 If you do not specify this parameter, MemoryDB automatically chooses an appropriate time range.
@Stability(value=Stable) @Nullable public String getSnsTopicArn()
@Stability(value=Stable)
public void setSnsTopicArn(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getSnsTopicStatus()
@Stability(value=Stable)
public void setSnsTopicStatus(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getSubnetGroupName()
@Stability(value=Stable)
public void setSubnetGroupName(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getTlsEnabled()
@Stability(value=Stable)
public void setTlsEnabled(@Nullable
Boolean value)
@Stability(value=Stable)
public void setTlsEnabled(@Nullable
IResolvable value)
Copyright © 2022. All rights reserved.