Create Cluster
| memorydb_create_cluster | R Documentation |
Creates a cluster¶
Description¶
Creates a cluster. All nodes in the cluster run the same protocol-compliant engine software.
Usage¶
memorydb_create_cluster(ClusterName, NodeType, ParameterGroupName,
Description, NumShards, NumReplicasPerShard, SubnetGroupName,
SecurityGroupIds, MaintenanceWindow, Port, SnsTopicArn, TLSEnabled,
KmsKeyId, SnapshotArns, SnapshotName, SnapshotRetentionLimit, Tags,
SnapshotWindow, ACLName, EngineVersion, AutoMinorVersionUpgrade,
DataTiering)
Arguments¶
ClusterName[required] The name of the cluster. This value must be unique as it also serves as the cluster identifier.
NodeType[required] The compute and memory capacity of the nodes in the cluster.
ParameterGroupNameThe name of the parameter group associated with the cluster.
DescriptionAn optional description of the cluster.
NumShardsThe number of shards the cluster will contain. The default value is 1.
NumReplicasPerShardThe number of replicas to apply to each shard. The default value is 1. The maximum is 5.
SubnetGroupNameThe name of the subnet group to be used for the cluster.
SecurityGroupIdsA list of security group names to associate with this cluster.
MaintenanceWindowSpecifies 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.
Valid values for
dddare:sunmontuewedthufrisat
Example:
sun:23:00-mon:01:30PortThe port number on which each of the nodes accepts connections.
SnsTopicArnThe Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which notifications are sent.
TLSEnabledA flag to enable in-transit encryption on the cluster.
KmsKeyIdThe ID of the KMS key used to encrypt the cluster.
SnapshotArnsA 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.
SnapshotNameThe 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.
SnapshotRetentionLimitThe 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.
TagsA list of tags to be added to this resource. Tags are comma-separated key,value pairs (e.g. Key=myKey, Value=myKeyValue. You can include multiple tags as shown following: Key=myKey, Value=myKeyValue Key=mySecondKey, Value=mySecondKeyValue.
SnapshotWindowThe 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.
ACLName[required] The name of the Access Control List to associate with the cluster.
EngineVersionThe version number of the Redis OSS engine to be used for the cluster.
AutoMinorVersionUpgradeWhen set to true, the cluster will automatically receive minor engine version upgrades after launch.
DataTieringEnables 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.
Value¶
A list with the following syntax:
list(
Cluster = list(
Name = "string",
Description = "string",
Status = "string",
PendingUpdates = list(
Resharding = list(
SlotMigration = list(
ProgressPercentage = 123.0
)
),
ACLs = list(
ACLToApply = "string"
),
ServiceUpdates = list(
list(
ServiceUpdateName = "string",
Status = "available"|"in-progress"|"complete"|"scheduled"
)
)
),
NumberOfShards = 123,
Shards = list(
list(
Name = "string",
Status = "string",
Slots = "string",
Nodes = list(
list(
Name = "string",
Status = "string",
AvailabilityZone = "string",
CreateTime = as.POSIXct(
"2015-01-01"
),
Endpoint = list(
Address = "string",
Port = 123
)
)
),
NumberOfNodes = 123
)
),
AvailabilityMode = "singleaz"|"multiaz",
ClusterEndpoint = list(
Address = "string",
Port = 123
),
NodeType = "string",
EngineVersion = "string",
EnginePatchVersion = "string",
ParameterGroupName = "string",
ParameterGroupStatus = "string",
SecurityGroups = list(
list(
SecurityGroupId = "string",
Status = "string"
)
),
SubnetGroupName = "string",
TLSEnabled = TRUE|FALSE,
KmsKeyId = "string",
ARN = "string",
SnsTopicArn = "string",
SnsTopicStatus = "string",
SnapshotRetentionLimit = 123,
MaintenanceWindow = "string",
SnapshotWindow = "string",
ACLName = "string",
AutoMinorVersionUpgrade = TRUE|FALSE,
DataTiering = "true"|"false"
)
)
Request syntax¶
svc$create_cluster(
ClusterName = "string",
NodeType = "string",
ParameterGroupName = "string",
Description = "string",
NumShards = 123,
NumReplicasPerShard = 123,
SubnetGroupName = "string",
SecurityGroupIds = list(
"string"
),
MaintenanceWindow = "string",
Port = 123,
SnsTopicArn = "string",
TLSEnabled = TRUE|FALSE,
KmsKeyId = "string",
SnapshotArns = list(
"string"
),
SnapshotName = "string",
SnapshotRetentionLimit = 123,
Tags = list(
list(
Key = "string",
Value = "string"
)
),
SnapshotWindow = "string",
ACLName = "string",
EngineVersion = "string",
AutoMinorVersionUpgrade = TRUE|FALSE,
DataTiering = TRUE|FALSE
)