aws.memorydb.Cluster
Explore with Pulumi AI
Provides a MemoryDB Cluster.
More information about MemoryDB can be found in the Developer Guide.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.memorydb.Cluster("example", {
aclName: "open-access",
name: "my-cluster",
nodeType: "db.t4g.small",
numShards: 2,
securityGroupIds: [exampleAwsSecurityGroup.id],
snapshotRetentionLimit: 7,
subnetGroupName: exampleAwsMemorydbSubnetGroup.id,
});
import pulumi
import pulumi_aws as aws
example = aws.memorydb.Cluster("example",
acl_name="open-access",
name="my-cluster",
node_type="db.t4g.small",
num_shards=2,
security_group_ids=[example_aws_security_group["id"]],
snapshot_retention_limit=7,
subnet_group_name=example_aws_memorydb_subnet_group["id"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/memorydb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := memorydb.NewCluster(ctx, "example", &memorydb.ClusterArgs{
AclName: pulumi.String("open-access"),
Name: pulumi.String("my-cluster"),
NodeType: pulumi.String("db.t4g.small"),
NumShards: pulumi.Int(2),
SecurityGroupIds: pulumi.StringArray{
exampleAwsSecurityGroup.Id,
},
SnapshotRetentionLimit: pulumi.Int(7),
SubnetGroupName: pulumi.Any(exampleAwsMemorydbSubnetGroup.Id),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.MemoryDb.Cluster("example", new()
{
AclName = "open-access",
Name = "my-cluster",
NodeType = "db.t4g.small",
NumShards = 2,
SecurityGroupIds = new[]
{
exampleAwsSecurityGroup.Id,
},
SnapshotRetentionLimit = 7,
SubnetGroupName = exampleAwsMemorydbSubnetGroup.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.memorydb.Cluster;
import com.pulumi.aws.memorydb.ClusterArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Cluster("example", ClusterArgs.builder()
.aclName("open-access")
.name("my-cluster")
.nodeType("db.t4g.small")
.numShards(2)
.securityGroupIds(exampleAwsSecurityGroup.id())
.snapshotRetentionLimit(7)
.subnetGroupName(exampleAwsMemorydbSubnetGroup.id())
.build());
}
}
resources:
example:
type: aws:memorydb:Cluster
properties:
aclName: open-access
name: my-cluster
nodeType: db.t4g.small
numShards: 2
securityGroupIds:
- ${exampleAwsSecurityGroup.id}
snapshotRetentionLimit: 7
subnetGroupName: ${exampleAwsMemorydbSubnetGroup.id}
Create Cluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Cluster(name: string, args: ClusterArgs, opts?: CustomResourceOptions);
@overload
def Cluster(resource_name: str,
args: ClusterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Cluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
node_type: Optional[str] = None,
acl_name: Optional[str] = None,
num_shards: Optional[int] = None,
engine_version: Optional[str] = None,
parameter_group_name: Optional[str] = None,
final_snapshot_name: Optional[str] = None,
kms_key_arn: Optional[str] = None,
maintenance_window: Optional[str] = None,
name: Optional[str] = None,
name_prefix: Optional[str] = None,
port: Optional[int] = None,
num_replicas_per_shard: Optional[int] = None,
tls_enabled: Optional[bool] = None,
description: Optional[str] = None,
data_tiering: Optional[bool] = None,
security_group_ids: Optional[Sequence[str]] = None,
snapshot_arns: Optional[Sequence[str]] = None,
snapshot_name: Optional[str] = None,
snapshot_retention_limit: Optional[int] = None,
snapshot_window: Optional[str] = None,
sns_topic_arn: Optional[str] = None,
subnet_group_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
auto_minor_version_upgrade: Optional[bool] = None)
func NewCluster(ctx *Context, name string, args ClusterArgs, opts ...ResourceOption) (*Cluster, error)
public Cluster(string name, ClusterArgs args, CustomResourceOptions? opts = null)
public Cluster(String name, ClusterArgs args)
public Cluster(String name, ClusterArgs args, CustomResourceOptions options)
type: aws:memorydb:Cluster
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleclusterResourceResourceFromMemorydbcluster = new Aws.MemoryDb.Cluster("exampleclusterResourceResourceFromMemorydbcluster", new()
{
NodeType = "string",
AclName = "string",
NumShards = 0,
EngineVersion = "string",
ParameterGroupName = "string",
FinalSnapshotName = "string",
KmsKeyArn = "string",
MaintenanceWindow = "string",
Name = "string",
NamePrefix = "string",
Port = 0,
NumReplicasPerShard = 0,
TlsEnabled = false,
Description = "string",
DataTiering = false,
SecurityGroupIds = new[]
{
"string",
},
SnapshotArns = new[]
{
"string",
},
SnapshotName = "string",
SnapshotRetentionLimit = 0,
SnapshotWindow = "string",
SnsTopicArn = "string",
SubnetGroupName = "string",
Tags =
{
{ "string", "string" },
},
AutoMinorVersionUpgrade = false,
});
example, err := memorydb.NewCluster(ctx, "exampleclusterResourceResourceFromMemorydbcluster", &memorydb.ClusterArgs{
NodeType: pulumi.String("string"),
AclName: pulumi.String("string"),
NumShards: pulumi.Int(0),
EngineVersion: pulumi.String("string"),
ParameterGroupName: pulumi.String("string"),
FinalSnapshotName: pulumi.String("string"),
KmsKeyArn: pulumi.String("string"),
MaintenanceWindow: pulumi.String("string"),
Name: pulumi.String("string"),
NamePrefix: pulumi.String("string"),
Port: pulumi.Int(0),
NumReplicasPerShard: pulumi.Int(0),
TlsEnabled: pulumi.Bool(false),
Description: pulumi.String("string"),
DataTiering: pulumi.Bool(false),
SecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
SnapshotArns: pulumi.StringArray{
pulumi.String("string"),
},
SnapshotName: pulumi.String("string"),
SnapshotRetentionLimit: pulumi.Int(0),
SnapshotWindow: pulumi.String("string"),
SnsTopicArn: pulumi.String("string"),
SubnetGroupName: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
AutoMinorVersionUpgrade: pulumi.Bool(false),
})
var exampleclusterResourceResourceFromMemorydbcluster = new Cluster("exampleclusterResourceResourceFromMemorydbcluster", ClusterArgs.builder()
.nodeType("string")
.aclName("string")
.numShards(0)
.engineVersion("string")
.parameterGroupName("string")
.finalSnapshotName("string")
.kmsKeyArn("string")
.maintenanceWindow("string")
.name("string")
.namePrefix("string")
.port(0)
.numReplicasPerShard(0)
.tlsEnabled(false)
.description("string")
.dataTiering(false)
.securityGroupIds("string")
.snapshotArns("string")
.snapshotName("string")
.snapshotRetentionLimit(0)
.snapshotWindow("string")
.snsTopicArn("string")
.subnetGroupName("string")
.tags(Map.of("string", "string"))
.autoMinorVersionUpgrade(false)
.build());
examplecluster_resource_resource_from_memorydbcluster = aws.memorydb.Cluster("exampleclusterResourceResourceFromMemorydbcluster",
node_type="string",
acl_name="string",
num_shards=0,
engine_version="string",
parameter_group_name="string",
final_snapshot_name="string",
kms_key_arn="string",
maintenance_window="string",
name="string",
name_prefix="string",
port=0,
num_replicas_per_shard=0,
tls_enabled=False,
description="string",
data_tiering=False,
security_group_ids=["string"],
snapshot_arns=["string"],
snapshot_name="string",
snapshot_retention_limit=0,
snapshot_window="string",
sns_topic_arn="string",
subnet_group_name="string",
tags={
"string": "string",
},
auto_minor_version_upgrade=False)
const exampleclusterResourceResourceFromMemorydbcluster = new aws.memorydb.Cluster("exampleclusterResourceResourceFromMemorydbcluster", {
nodeType: "string",
aclName: "string",
numShards: 0,
engineVersion: "string",
parameterGroupName: "string",
finalSnapshotName: "string",
kmsKeyArn: "string",
maintenanceWindow: "string",
name: "string",
namePrefix: "string",
port: 0,
numReplicasPerShard: 0,
tlsEnabled: false,
description: "string",
dataTiering: false,
securityGroupIds: ["string"],
snapshotArns: ["string"],
snapshotName: "string",
snapshotRetentionLimit: 0,
snapshotWindow: "string",
snsTopicArn: "string",
subnetGroupName: "string",
tags: {
string: "string",
},
autoMinorVersionUpgrade: false,
});
type: aws:memorydb:Cluster
properties:
aclName: string
autoMinorVersionUpgrade: false
dataTiering: false
description: string
engineVersion: string
finalSnapshotName: string
kmsKeyArn: string
maintenanceWindow: string
name: string
namePrefix: string
nodeType: string
numReplicasPerShard: 0
numShards: 0
parameterGroupName: string
port: 0
securityGroupIds:
- string
snapshotArns:
- string
snapshotName: string
snapshotRetentionLimit: 0
snapshotWindow: string
snsTopicArn: string
subnetGroupName: string
tags:
string: string
tlsEnabled: false
Cluster Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Cluster resource accepts the following input properties:
- Acl
Name string - The name of the Access Control List to associate with the cluster.
- Node
Type string The compute and memory capacity of the nodes in the cluster. See AWS documentation on supported node types as well as vertical scaling.
The following arguments are optional:
- Auto
Minor boolVersion Upgrade - When set to
true
, the cluster will automatically receive minor engine version upgrades after launch. Defaults totrue
. - Data
Tiering bool - Enables data tiering. This option is not supported by all instance types. For more information, see Data tiering.
- Description string
- Description for the cluster.
- Engine
Version string - Version number of the Redis engine to be used for the cluster. Downgrades are not supported.
- Final
Snapshot stringName - Name of the final cluster snapshot to be created when this resource is deleted. If omitted, no final snapshot will be made.
- Kms
Key stringArn - ARN of the KMS key used to encrypt the cluster at rest.
- Maintenance
Window string - Specifies the weekly time range during which maintenance on the cluster is performed. Specify as a range in the format
ddd:hh24:mi-ddd:hh24:mi
(24H Clock UTC). The minimum maintenance window is a 60 minute period. Example:sun:23:00-mon:01:30
. - Name string
- Name of the cluster. If omitted, the provider will assign a random, unique name. Conflicts with
name_prefix
. - Name
Prefix string - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - Num
Replicas intPer Shard - The number of replicas to apply to each shard, up to a maximum of 5. Defaults to
1
(i.e. 2 nodes per shard). - Num
Shards int - The number of shards in the cluster. Defaults to
1
. - Parameter
Group stringName - The name of the parameter group associated with the cluster.
- Port int
- The port number on which each of the nodes accepts connections. Defaults to
6379
. - Security
Group List<string>Ids - Set of VPC Security Group ID-s to associate with this cluster.
- Snapshot
Arns List<string> - List of ARN-s that uniquely identify RDB snapshot files stored in S3. The snapshot files will be used to populate the new cluster. Object names in the ARN-s cannot contain any commas.
- Snapshot
Name string - The name of a snapshot from which to restore data into the new cluster.
- Snapshot
Retention intLimit - The number of days for which MemoryDB retains automatic snapshots before deleting them. When set to
0
, automatic backups are disabled. Defaults to0
. - Snapshot
Window string - The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. Example:
05:00-09:00
. - Sns
Topic stringArn - ARN of the SNS topic to which cluster notifications are sent.
- Subnet
Group stringName - The name of the subnet group to be used for the cluster. Defaults to a subnet group consisting of default VPC subnets.
- Dictionary<string, string>
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Tls
Enabled bool - A flag to enable in-transit encryption on the cluster. When set to
false
, theacl_name
must beopen-access
. Defaults totrue
.
- Acl
Name string - The name of the Access Control List to associate with the cluster.
- Node
Type string The compute and memory capacity of the nodes in the cluster. See AWS documentation on supported node types as well as vertical scaling.
The following arguments are optional:
- Auto
Minor boolVersion Upgrade - When set to
true
, the cluster will automatically receive minor engine version upgrades after launch. Defaults totrue
. - Data
Tiering bool - Enables data tiering. This option is not supported by all instance types. For more information, see Data tiering.
- Description string
- Description for the cluster.
- Engine
Version string - Version number of the Redis engine to be used for the cluster. Downgrades are not supported.
- Final
Snapshot stringName - Name of the final cluster snapshot to be created when this resource is deleted. If omitted, no final snapshot will be made.
- Kms
Key stringArn - ARN of the KMS key used to encrypt the cluster at rest.
- Maintenance
Window string - Specifies the weekly time range during which maintenance on the cluster is performed. Specify as a range in the format
ddd:hh24:mi-ddd:hh24:mi
(24H Clock UTC). The minimum maintenance window is a 60 minute period. Example:sun:23:00-mon:01:30
. - Name string
- Name of the cluster. If omitted, the provider will assign a random, unique name. Conflicts with
name_prefix
. - Name
Prefix string - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - Num
Replicas intPer Shard - The number of replicas to apply to each shard, up to a maximum of 5. Defaults to
1
(i.e. 2 nodes per shard). - Num
Shards int - The number of shards in the cluster. Defaults to
1
. - Parameter
Group stringName - The name of the parameter group associated with the cluster.
- Port int
- The port number on which each of the nodes accepts connections. Defaults to
6379
. - Security
Group []stringIds - Set of VPC Security Group ID-s to associate with this cluster.
- Snapshot
Arns []string - List of ARN-s that uniquely identify RDB snapshot files stored in S3. The snapshot files will be used to populate the new cluster. Object names in the ARN-s cannot contain any commas.
- Snapshot
Name string - The name of a snapshot from which to restore data into the new cluster.
- Snapshot
Retention intLimit - The number of days for which MemoryDB retains automatic snapshots before deleting them. When set to
0
, automatic backups are disabled. Defaults to0
. - Snapshot
Window string - The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. Example:
05:00-09:00
. - Sns
Topic stringArn - ARN of the SNS topic to which cluster notifications are sent.
- Subnet
Group stringName - The name of the subnet group to be used for the cluster. Defaults to a subnet group consisting of default VPC subnets.
- map[string]string
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Tls
Enabled bool - A flag to enable in-transit encryption on the cluster. When set to
false
, theacl_name
must beopen-access
. Defaults totrue
.
- acl
Name String - The name of the Access Control List to associate with the cluster.
- node
Type String The compute and memory capacity of the nodes in the cluster. See AWS documentation on supported node types as well as vertical scaling.
The following arguments are optional:
- auto
Minor BooleanVersion Upgrade - When set to
true
, the cluster will automatically receive minor engine version upgrades after launch. Defaults totrue
. - data
Tiering Boolean - Enables data tiering. This option is not supported by all instance types. For more information, see Data tiering.
- description String
- Description for the cluster.
- engine
Version String - Version number of the Redis engine to be used for the cluster. Downgrades are not supported.
- final
Snapshot StringName - Name of the final cluster snapshot to be created when this resource is deleted. If omitted, no final snapshot will be made.
- kms
Key StringArn - ARN of the KMS key used to encrypt the cluster at rest.
- maintenance
Window String - Specifies the weekly time range during which maintenance on the cluster is performed. Specify as a range in the format
ddd:hh24:mi-ddd:hh24:mi
(24H Clock UTC). The minimum maintenance window is a 60 minute period. Example:sun:23:00-mon:01:30
. - name String
- Name of the cluster. If omitted, the provider will assign a random, unique name. Conflicts with
name_prefix
. - name
Prefix String - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - num
Replicas IntegerPer Shard - The number of replicas to apply to each shard, up to a maximum of 5. Defaults to
1
(i.e. 2 nodes per shard). - num
Shards Integer - The number of shards in the cluster. Defaults to
1
. - parameter
Group StringName - The name of the parameter group associated with the cluster.
- port Integer
- The port number on which each of the nodes accepts connections. Defaults to
6379
. - security
Group List<String>Ids - Set of VPC Security Group ID-s to associate with this cluster.
- snapshot
Arns List<String> - List of ARN-s that uniquely identify RDB snapshot files stored in S3. The snapshot files will be used to populate the new cluster. Object names in the ARN-s cannot contain any commas.
- snapshot
Name String - The name of a snapshot from which to restore data into the new cluster.
- snapshot
Retention IntegerLimit - The number of days for which MemoryDB retains automatic snapshots before deleting them. When set to
0
, automatic backups are disabled. Defaults to0
. - snapshot
Window String - The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. Example:
05:00-09:00
. - sns
Topic StringArn - ARN of the SNS topic to which cluster notifications are sent.
- subnet
Group StringName - The name of the subnet group to be used for the cluster. Defaults to a subnet group consisting of default VPC subnets.
- Map<String,String>
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - tls
Enabled Boolean - A flag to enable in-transit encryption on the cluster. When set to
false
, theacl_name
must beopen-access
. Defaults totrue
.
- acl
Name string - The name of the Access Control List to associate with the cluster.
- node
Type string The compute and memory capacity of the nodes in the cluster. See AWS documentation on supported node types as well as vertical scaling.
The following arguments are optional:
- auto
Minor booleanVersion Upgrade - When set to
true
, the cluster will automatically receive minor engine version upgrades after launch. Defaults totrue
. - data
Tiering boolean - Enables data tiering. This option is not supported by all instance types. For more information, see Data tiering.
- description string
- Description for the cluster.
- engine
Version string - Version number of the Redis engine to be used for the cluster. Downgrades are not supported.
- final
Snapshot stringName - Name of the final cluster snapshot to be created when this resource is deleted. If omitted, no final snapshot will be made.
- kms
Key stringArn - ARN of the KMS key used to encrypt the cluster at rest.
- maintenance
Window string - Specifies the weekly time range during which maintenance on the cluster is performed. Specify as a range in the format
ddd:hh24:mi-ddd:hh24:mi
(24H Clock UTC). The minimum maintenance window is a 60 minute period. Example:sun:23:00-mon:01:30
. - name string
- Name of the cluster. If omitted, the provider will assign a random, unique name. Conflicts with
name_prefix
. - name
Prefix string - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - num
Replicas numberPer Shard - The number of replicas to apply to each shard, up to a maximum of 5. Defaults to
1
(i.e. 2 nodes per shard). - num
Shards number - The number of shards in the cluster. Defaults to
1
. - parameter
Group stringName - The name of the parameter group associated with the cluster.
- port number
- The port number on which each of the nodes accepts connections. Defaults to
6379
. - security
Group string[]Ids - Set of VPC Security Group ID-s to associate with this cluster.
- snapshot
Arns string[] - List of ARN-s that uniquely identify RDB snapshot files stored in S3. The snapshot files will be used to populate the new cluster. Object names in the ARN-s cannot contain any commas.
- snapshot
Name string - The name of a snapshot from which to restore data into the new cluster.
- snapshot
Retention numberLimit - The number of days for which MemoryDB retains automatic snapshots before deleting them. When set to
0
, automatic backups are disabled. Defaults to0
. - snapshot
Window string - The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. Example:
05:00-09:00
. - sns
Topic stringArn - ARN of the SNS topic to which cluster notifications are sent.
- subnet
Group stringName - The name of the subnet group to be used for the cluster. Defaults to a subnet group consisting of default VPC subnets.
- {[key: string]: string}
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - tls
Enabled boolean - A flag to enable in-transit encryption on the cluster. When set to
false
, theacl_name
must beopen-access
. Defaults totrue
.
- acl_
name str - The name of the Access Control List to associate with the cluster.
- node_
type str The compute and memory capacity of the nodes in the cluster. See AWS documentation on supported node types as well as vertical scaling.
The following arguments are optional:
- auto_
minor_ boolversion_ upgrade - When set to
true
, the cluster will automatically receive minor engine version upgrades after launch. Defaults totrue
. - data_
tiering bool - Enables data tiering. This option is not supported by all instance types. For more information, see Data tiering.
- description str
- Description for the cluster.
- engine_
version str - Version number of the Redis engine to be used for the cluster. Downgrades are not supported.
- final_
snapshot_ strname - Name of the final cluster snapshot to be created when this resource is deleted. If omitted, no final snapshot will be made.
- kms_
key_ strarn - ARN of the KMS key used to encrypt the cluster at rest.
- maintenance_
window str - Specifies the weekly time range during which maintenance on the cluster is performed. Specify as a range in the format
ddd:hh24:mi-ddd:hh24:mi
(24H Clock UTC). The minimum maintenance window is a 60 minute period. Example:sun:23:00-mon:01:30
. - name str
- Name of the cluster. If omitted, the provider will assign a random, unique name. Conflicts with
name_prefix
. - name_
prefix str - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - num_
replicas_ intper_ shard - The number of replicas to apply to each shard, up to a maximum of 5. Defaults to
1
(i.e. 2 nodes per shard). - num_
shards int - The number of shards in the cluster. Defaults to
1
. - parameter_
group_ strname - The name of the parameter group associated with the cluster.
- port int
- The port number on which each of the nodes accepts connections. Defaults to
6379
. - security_
group_ Sequence[str]ids - Set of VPC Security Group ID-s to associate with this cluster.
- snapshot_
arns Sequence[str] - List of ARN-s that uniquely identify RDB snapshot files stored in S3. The snapshot files will be used to populate the new cluster. Object names in the ARN-s cannot contain any commas.
- snapshot_
name str - The name of a snapshot from which to restore data into the new cluster.
- snapshot_
retention_ intlimit - The number of days for which MemoryDB retains automatic snapshots before deleting them. When set to
0
, automatic backups are disabled. Defaults to0
. - snapshot_
window str - The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. Example:
05:00-09:00
. - sns_
topic_ strarn - ARN of the SNS topic to which cluster notifications are sent.
- subnet_
group_ strname - The name of the subnet group to be used for the cluster. Defaults to a subnet group consisting of default VPC subnets.
- Mapping[str, str]
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - tls_
enabled bool - A flag to enable in-transit encryption on the cluster. When set to
false
, theacl_name
must beopen-access
. Defaults totrue
.
- acl
Name String - The name of the Access Control List to associate with the cluster.
- node
Type String The compute and memory capacity of the nodes in the cluster. See AWS documentation on supported node types as well as vertical scaling.
The following arguments are optional:
- auto
Minor BooleanVersion Upgrade - When set to
true
, the cluster will automatically receive minor engine version upgrades after launch. Defaults totrue
. - data
Tiering Boolean - Enables data tiering. This option is not supported by all instance types. For more information, see Data tiering.
- description String
- Description for the cluster.
- engine
Version String - Version number of the Redis engine to be used for the cluster. Downgrades are not supported.
- final
Snapshot StringName - Name of the final cluster snapshot to be created when this resource is deleted. If omitted, no final snapshot will be made.
- kms
Key StringArn - ARN of the KMS key used to encrypt the cluster at rest.
- maintenance
Window String - Specifies the weekly time range during which maintenance on the cluster is performed. Specify as a range in the format
ddd:hh24:mi-ddd:hh24:mi
(24H Clock UTC). The minimum maintenance window is a 60 minute period. Example:sun:23:00-mon:01:30
. - name String
- Name of the cluster. If omitted, the provider will assign a random, unique name. Conflicts with
name_prefix
. - name
Prefix String - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - num
Replicas NumberPer Shard - The number of replicas to apply to each shard, up to a maximum of 5. Defaults to
1
(i.e. 2 nodes per shard). - num
Shards Number - The number of shards in the cluster. Defaults to
1
. - parameter
Group StringName - The name of the parameter group associated with the cluster.
- port Number
- The port number on which each of the nodes accepts connections. Defaults to
6379
. - security
Group List<String>Ids - Set of VPC Security Group ID-s to associate with this cluster.
- snapshot
Arns List<String> - List of ARN-s that uniquely identify RDB snapshot files stored in S3. The snapshot files will be used to populate the new cluster. Object names in the ARN-s cannot contain any commas.
- snapshot
Name String - The name of a snapshot from which to restore data into the new cluster.
- snapshot
Retention NumberLimit - The number of days for which MemoryDB retains automatic snapshots before deleting them. When set to
0
, automatic backups are disabled. Defaults to0
. - snapshot
Window String - The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. Example:
05:00-09:00
. - sns
Topic StringArn - ARN of the SNS topic to which cluster notifications are sent.
- subnet
Group StringName - The name of the subnet group to be used for the cluster. Defaults to a subnet group consisting of default VPC subnets.
- Map<String>
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - tls
Enabled Boolean - A flag to enable in-transit encryption on the cluster. When set to
false
, theacl_name
must beopen-access
. Defaults totrue
.
Outputs
All input properties are implicitly available as output properties. Additionally, the Cluster resource produces the following output properties:
- Arn string
- The ARN of the cluster.
- Cluster
Endpoints List<ClusterCluster Endpoint> - Engine
Patch stringVersion - Patch version number of the Redis engine used by the cluster.
- Id string
- The provider-assigned unique ID for this managed resource.
- List<Cluster
Shard> - Set of shards in this cluster.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- The ARN of the cluster.
- Cluster
Endpoints []ClusterCluster Endpoint - Engine
Patch stringVersion - Patch version number of the Redis engine used by the cluster.
- Id string
- The provider-assigned unique ID for this managed resource.
- []Cluster
Shard - Set of shards in this cluster.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- The ARN of the cluster.
- cluster
Endpoints List<ClusterCluster Endpoint> - engine
Patch StringVersion - Patch version number of the Redis engine used by the cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- List<Cluster
Shard> - Set of shards in this cluster.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- The ARN of the cluster.
- cluster
Endpoints ClusterCluster Endpoint[] - engine
Patch stringVersion - Patch version number of the Redis engine used by the cluster.
- id string
- The provider-assigned unique ID for this managed resource.
- Cluster
Shard[] - Set of shards in this cluster.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- The ARN of the cluster.
- cluster_
endpoints Sequence[ClusterCluster Endpoint] - engine_
patch_ strversion - Patch version number of the Redis engine used by the cluster.
- id str
- The provider-assigned unique ID for this managed resource.
- Sequence[Cluster
Shard] - Set of shards in this cluster.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- The ARN of the cluster.
- cluster
Endpoints List<Property Map> - engine
Patch StringVersion - Patch version number of the Redis engine used by the cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- List<Property Map>
- Set of shards in this cluster.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Look up Existing Cluster Resource
Get an existing Cluster resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ClusterState, opts?: CustomResourceOptions): Cluster
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
acl_name: Optional[str] = None,
arn: Optional[str] = None,
auto_minor_version_upgrade: Optional[bool] = None,
cluster_endpoints: Optional[Sequence[ClusterClusterEndpointArgs]] = None,
data_tiering: Optional[bool] = None,
description: Optional[str] = None,
engine_patch_version: Optional[str] = None,
engine_version: Optional[str] = None,
final_snapshot_name: Optional[str] = None,
kms_key_arn: Optional[str] = None,
maintenance_window: Optional[str] = None,
name: Optional[str] = None,
name_prefix: Optional[str] = None,
node_type: Optional[str] = None,
num_replicas_per_shard: Optional[int] = None,
num_shards: Optional[int] = None,
parameter_group_name: Optional[str] = None,
port: Optional[int] = None,
security_group_ids: Optional[Sequence[str]] = None,
shards: Optional[Sequence[ClusterShardArgs]] = None,
snapshot_arns: Optional[Sequence[str]] = None,
snapshot_name: Optional[str] = None,
snapshot_retention_limit: Optional[int] = None,
snapshot_window: Optional[str] = None,
sns_topic_arn: Optional[str] = None,
subnet_group_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
tls_enabled: Optional[bool] = None) -> Cluster
func GetCluster(ctx *Context, name string, id IDInput, state *ClusterState, opts ...ResourceOption) (*Cluster, error)
public static Cluster Get(string name, Input<string> id, ClusterState? state, CustomResourceOptions? opts = null)
public static Cluster get(String name, Output<String> id, ClusterState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Acl
Name string - The name of the Access Control List to associate with the cluster.
- Arn string
- The ARN of the cluster.
- Auto
Minor boolVersion Upgrade - When set to
true
, the cluster will automatically receive minor engine version upgrades after launch. Defaults totrue
. - Cluster
Endpoints List<ClusterCluster Endpoint> - Data
Tiering bool - Enables data tiering. This option is not supported by all instance types. For more information, see Data tiering.
- Description string
- Description for the cluster.
- Engine
Patch stringVersion - Patch version number of the Redis engine used by the cluster.
- Engine
Version string - Version number of the Redis engine to be used for the cluster. Downgrades are not supported.
- Final
Snapshot stringName - Name of the final cluster snapshot to be created when this resource is deleted. If omitted, no final snapshot will be made.
- Kms
Key stringArn - ARN of the KMS key used to encrypt the cluster at rest.
- Maintenance
Window string - Specifies the weekly time range during which maintenance on the cluster is performed. Specify as a range in the format
ddd:hh24:mi-ddd:hh24:mi
(24H Clock UTC). The minimum maintenance window is a 60 minute period. Example:sun:23:00-mon:01:30
. - Name string
- Name of the cluster. If omitted, the provider will assign a random, unique name. Conflicts with
name_prefix
. - Name
Prefix string - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - Node
Type string The compute and memory capacity of the nodes in the cluster. See AWS documentation on supported node types as well as vertical scaling.
The following arguments are optional:
- Num
Replicas intPer Shard - The number of replicas to apply to each shard, up to a maximum of 5. Defaults to
1
(i.e. 2 nodes per shard). - Num
Shards int - The number of shards in the cluster. Defaults to
1
. - Parameter
Group stringName - The name of the parameter group associated with the cluster.
- Port int
- The port number on which each of the nodes accepts connections. Defaults to
6379
. - Security
Group List<string>Ids - Set of VPC Security Group ID-s to associate with this cluster.
- Shards
List<Cluster
Shard> - Set of shards in this cluster.
- Snapshot
Arns List<string> - List of ARN-s that uniquely identify RDB snapshot files stored in S3. The snapshot files will be used to populate the new cluster. Object names in the ARN-s cannot contain any commas.
- Snapshot
Name string - The name of a snapshot from which to restore data into the new cluster.
- Snapshot
Retention intLimit - The number of days for which MemoryDB retains automatic snapshots before deleting them. When set to
0
, automatic backups are disabled. Defaults to0
. - Snapshot
Window string - The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. Example:
05:00-09:00
. - Sns
Topic stringArn - ARN of the SNS topic to which cluster notifications are sent.
- Subnet
Group stringName - The name of the subnet group to be used for the cluster. Defaults to a subnet group consisting of default VPC subnets.
- Dictionary<string, string>
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Tls
Enabled bool - A flag to enable in-transit encryption on the cluster. When set to
false
, theacl_name
must beopen-access
. Defaults totrue
.
- Acl
Name string - The name of the Access Control List to associate with the cluster.
- Arn string
- The ARN of the cluster.
- Auto
Minor boolVersion Upgrade - When set to
true
, the cluster will automatically receive minor engine version upgrades after launch. Defaults totrue
. - Cluster
Endpoints []ClusterCluster Endpoint Args - Data
Tiering bool - Enables data tiering. This option is not supported by all instance types. For more information, see Data tiering.
- Description string
- Description for the cluster.
- Engine
Patch stringVersion - Patch version number of the Redis engine used by the cluster.
- Engine
Version string - Version number of the Redis engine to be used for the cluster. Downgrades are not supported.
- Final
Snapshot stringName - Name of the final cluster snapshot to be created when this resource is deleted. If omitted, no final snapshot will be made.
- Kms
Key stringArn - ARN of the KMS key used to encrypt the cluster at rest.
- Maintenance
Window string - Specifies the weekly time range during which maintenance on the cluster is performed. Specify as a range in the format
ddd:hh24:mi-ddd:hh24:mi
(24H Clock UTC). The minimum maintenance window is a 60 minute period. Example:sun:23:00-mon:01:30
. - Name string
- Name of the cluster. If omitted, the provider will assign a random, unique name. Conflicts with
name_prefix
. - Name
Prefix string - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - Node
Type string The compute and memory capacity of the nodes in the cluster. See AWS documentation on supported node types as well as vertical scaling.
The following arguments are optional:
- Num
Replicas intPer Shard - The number of replicas to apply to each shard, up to a maximum of 5. Defaults to
1
(i.e. 2 nodes per shard). - Num
Shards int - The number of shards in the cluster. Defaults to
1
. - Parameter
Group stringName - The name of the parameter group associated with the cluster.
- Port int
- The port number on which each of the nodes accepts connections. Defaults to
6379
. - Security
Group []stringIds - Set of VPC Security Group ID-s to associate with this cluster.
- Shards
[]Cluster
Shard Args - Set of shards in this cluster.
- Snapshot
Arns []string - List of ARN-s that uniquely identify RDB snapshot files stored in S3. The snapshot files will be used to populate the new cluster. Object names in the ARN-s cannot contain any commas.
- Snapshot
Name string - The name of a snapshot from which to restore data into the new cluster.
- Snapshot
Retention intLimit - The number of days for which MemoryDB retains automatic snapshots before deleting them. When set to
0
, automatic backups are disabled. Defaults to0
. - Snapshot
Window string - The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. Example:
05:00-09:00
. - Sns
Topic stringArn - ARN of the SNS topic to which cluster notifications are sent.
- Subnet
Group stringName - The name of the subnet group to be used for the cluster. Defaults to a subnet group consisting of default VPC subnets.
- map[string]string
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Tls
Enabled bool - A flag to enable in-transit encryption on the cluster. When set to
false
, theacl_name
must beopen-access
. Defaults totrue
.
- acl
Name String - The name of the Access Control List to associate with the cluster.
- arn String
- The ARN of the cluster.
- auto
Minor BooleanVersion Upgrade - When set to
true
, the cluster will automatically receive minor engine version upgrades after launch. Defaults totrue
. - cluster
Endpoints List<ClusterCluster Endpoint> - data
Tiering Boolean - Enables data tiering. This option is not supported by all instance types. For more information, see Data tiering.
- description String
- Description for the cluster.
- engine
Patch StringVersion - Patch version number of the Redis engine used by the cluster.
- engine
Version String - Version number of the Redis engine to be used for the cluster. Downgrades are not supported.
- final
Snapshot StringName - Name of the final cluster snapshot to be created when this resource is deleted. If omitted, no final snapshot will be made.
- kms
Key StringArn - ARN of the KMS key used to encrypt the cluster at rest.
- maintenance
Window String - Specifies the weekly time range during which maintenance on the cluster is performed. Specify as a range in the format
ddd:hh24:mi-ddd:hh24:mi
(24H Clock UTC). The minimum maintenance window is a 60 minute period. Example:sun:23:00-mon:01:30
. - name String
- Name of the cluster. If omitted, the provider will assign a random, unique name. Conflicts with
name_prefix
. - name
Prefix String - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - node
Type String The compute and memory capacity of the nodes in the cluster. See AWS documentation on supported node types as well as vertical scaling.
The following arguments are optional:
- num
Replicas IntegerPer Shard - The number of replicas to apply to each shard, up to a maximum of 5. Defaults to
1
(i.e. 2 nodes per shard). - num
Shards Integer - The number of shards in the cluster. Defaults to
1
. - parameter
Group StringName - The name of the parameter group associated with the cluster.
- port Integer
- The port number on which each of the nodes accepts connections. Defaults to
6379
. - security
Group List<String>Ids - Set of VPC Security Group ID-s to associate with this cluster.
- shards
List<Cluster
Shard> - Set of shards in this cluster.
- snapshot
Arns List<String> - List of ARN-s that uniquely identify RDB snapshot files stored in S3. The snapshot files will be used to populate the new cluster. Object names in the ARN-s cannot contain any commas.
- snapshot
Name String - The name of a snapshot from which to restore data into the new cluster.
- snapshot
Retention IntegerLimit - The number of days for which MemoryDB retains automatic snapshots before deleting them. When set to
0
, automatic backups are disabled. Defaults to0
. - snapshot
Window String - The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. Example:
05:00-09:00
. - sns
Topic StringArn - ARN of the SNS topic to which cluster notifications are sent.
- subnet
Group StringName - The name of the subnet group to be used for the cluster. Defaults to a subnet group consisting of default VPC subnets.
- Map<String,String>
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - tls
Enabled Boolean - A flag to enable in-transit encryption on the cluster. When set to
false
, theacl_name
must beopen-access
. Defaults totrue
.
- acl
Name string - The name of the Access Control List to associate with the cluster.
- arn string
- The ARN of the cluster.
- auto
Minor booleanVersion Upgrade - When set to
true
, the cluster will automatically receive minor engine version upgrades after launch. Defaults totrue
. - cluster
Endpoints ClusterCluster Endpoint[] - data
Tiering boolean - Enables data tiering. This option is not supported by all instance types. For more information, see Data tiering.
- description string
- Description for the cluster.
- engine
Patch stringVersion - Patch version number of the Redis engine used by the cluster.
- engine
Version string - Version number of the Redis engine to be used for the cluster. Downgrades are not supported.
- final
Snapshot stringName - Name of the final cluster snapshot to be created when this resource is deleted. If omitted, no final snapshot will be made.
- kms
Key stringArn - ARN of the KMS key used to encrypt the cluster at rest.
- maintenance
Window string - Specifies the weekly time range during which maintenance on the cluster is performed. Specify as a range in the format
ddd:hh24:mi-ddd:hh24:mi
(24H Clock UTC). The minimum maintenance window is a 60 minute period. Example:sun:23:00-mon:01:30
. - name string
- Name of the cluster. If omitted, the provider will assign a random, unique name. Conflicts with
name_prefix
. - name
Prefix string - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - node
Type string The compute and memory capacity of the nodes in the cluster. See AWS documentation on supported node types as well as vertical scaling.
The following arguments are optional:
- num
Replicas numberPer Shard - The number of replicas to apply to each shard, up to a maximum of 5. Defaults to
1
(i.e. 2 nodes per shard). - num
Shards number - The number of shards in the cluster. Defaults to
1
. - parameter
Group stringName - The name of the parameter group associated with the cluster.
- port number
- The port number on which each of the nodes accepts connections. Defaults to
6379
. - security
Group string[]Ids - Set of VPC Security Group ID-s to associate with this cluster.
- shards
Cluster
Shard[] - Set of shards in this cluster.
- snapshot
Arns string[] - List of ARN-s that uniquely identify RDB snapshot files stored in S3. The snapshot files will be used to populate the new cluster. Object names in the ARN-s cannot contain any commas.
- snapshot
Name string - The name of a snapshot from which to restore data into the new cluster.
- snapshot
Retention numberLimit - The number of days for which MemoryDB retains automatic snapshots before deleting them. When set to
0
, automatic backups are disabled. Defaults to0
. - snapshot
Window string - The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. Example:
05:00-09:00
. - sns
Topic stringArn - ARN of the SNS topic to which cluster notifications are sent.
- subnet
Group stringName - The name of the subnet group to be used for the cluster. Defaults to a subnet group consisting of default VPC subnets.
- {[key: string]: string}
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - tls
Enabled boolean - A flag to enable in-transit encryption on the cluster. When set to
false
, theacl_name
must beopen-access
. Defaults totrue
.
- acl_
name str - The name of the Access Control List to associate with the cluster.
- arn str
- The ARN of the cluster.
- auto_
minor_ boolversion_ upgrade - When set to
true
, the cluster will automatically receive minor engine version upgrades after launch. Defaults totrue
. - cluster_
endpoints Sequence[ClusterCluster Endpoint Args] - data_
tiering bool - Enables data tiering. This option is not supported by all instance types. For more information, see Data tiering.
- description str
- Description for the cluster.
- engine_
patch_ strversion - Patch version number of the Redis engine used by the cluster.
- engine_
version str - Version number of the Redis engine to be used for the cluster. Downgrades are not supported.
- final_
snapshot_ strname - Name of the final cluster snapshot to be created when this resource is deleted. If omitted, no final snapshot will be made.
- kms_
key_ strarn - ARN of the KMS key used to encrypt the cluster at rest.
- maintenance_
window str - Specifies the weekly time range during which maintenance on the cluster is performed. Specify as a range in the format
ddd:hh24:mi-ddd:hh24:mi
(24H Clock UTC). The minimum maintenance window is a 60 minute period. Example:sun:23:00-mon:01:30
. - name str
- Name of the cluster. If omitted, the provider will assign a random, unique name. Conflicts with
name_prefix
. - name_
prefix str - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - node_
type str The compute and memory capacity of the nodes in the cluster. See AWS documentation on supported node types as well as vertical scaling.
The following arguments are optional:
- num_
replicas_ intper_ shard - The number of replicas to apply to each shard, up to a maximum of 5. Defaults to
1
(i.e. 2 nodes per shard). - num_
shards int - The number of shards in the cluster. Defaults to
1
. - parameter_
group_ strname - The name of the parameter group associated with the cluster.
- port int
- The port number on which each of the nodes accepts connections. Defaults to
6379
. - security_
group_ Sequence[str]ids - Set of VPC Security Group ID-s to associate with this cluster.
- shards
Sequence[Cluster
Shard Args] - Set of shards in this cluster.
- snapshot_
arns Sequence[str] - List of ARN-s that uniquely identify RDB snapshot files stored in S3. The snapshot files will be used to populate the new cluster. Object names in the ARN-s cannot contain any commas.
- snapshot_
name str - The name of a snapshot from which to restore data into the new cluster.
- snapshot_
retention_ intlimit - The number of days for which MemoryDB retains automatic snapshots before deleting them. When set to
0
, automatic backups are disabled. Defaults to0
. - snapshot_
window str - The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. Example:
05:00-09:00
. - sns_
topic_ strarn - ARN of the SNS topic to which cluster notifications are sent.
- subnet_
group_ strname - The name of the subnet group to be used for the cluster. Defaults to a subnet group consisting of default VPC subnets.
- Mapping[str, str]
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - tls_
enabled bool - A flag to enable in-transit encryption on the cluster. When set to
false
, theacl_name
must beopen-access
. Defaults totrue
.
- acl
Name String - The name of the Access Control List to associate with the cluster.
- arn String
- The ARN of the cluster.
- auto
Minor BooleanVersion Upgrade - When set to
true
, the cluster will automatically receive minor engine version upgrades after launch. Defaults totrue
. - cluster
Endpoints List<Property Map> - data
Tiering Boolean - Enables data tiering. This option is not supported by all instance types. For more information, see Data tiering.
- description String
- Description for the cluster.
- engine
Patch StringVersion - Patch version number of the Redis engine used by the cluster.
- engine
Version String - Version number of the Redis engine to be used for the cluster. Downgrades are not supported.
- final
Snapshot StringName - Name of the final cluster snapshot to be created when this resource is deleted. If omitted, no final snapshot will be made.
- kms
Key StringArn - ARN of the KMS key used to encrypt the cluster at rest.
- maintenance
Window String - Specifies the weekly time range during which maintenance on the cluster is performed. Specify as a range in the format
ddd:hh24:mi-ddd:hh24:mi
(24H Clock UTC). The minimum maintenance window is a 60 minute period. Example:sun:23:00-mon:01:30
. - name String
- Name of the cluster. If omitted, the provider will assign a random, unique name. Conflicts with
name_prefix
. - name
Prefix String - Creates a unique name beginning with the specified prefix. Conflicts with
name
. - node
Type String The compute and memory capacity of the nodes in the cluster. See AWS documentation on supported node types as well as vertical scaling.
The following arguments are optional:
- num
Replicas NumberPer Shard - The number of replicas to apply to each shard, up to a maximum of 5. Defaults to
1
(i.e. 2 nodes per shard). - num
Shards Number - The number of shards in the cluster. Defaults to
1
. - parameter
Group StringName - The name of the parameter group associated with the cluster.
- port Number
- The port number on which each of the nodes accepts connections. Defaults to
6379
. - security
Group List<String>Ids - Set of VPC Security Group ID-s to associate with this cluster.
- shards List<Property Map>
- Set of shards in this cluster.
- snapshot
Arns List<String> - List of ARN-s that uniquely identify RDB snapshot files stored in S3. The snapshot files will be used to populate the new cluster. Object names in the ARN-s cannot contain any commas.
- snapshot
Name String - The name of a snapshot from which to restore data into the new cluster.
- snapshot
Retention NumberLimit - The number of days for which MemoryDB retains automatic snapshots before deleting them. When set to
0
, automatic backups are disabled. Defaults to0
. - snapshot
Window String - The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. Example:
05:00-09:00
. - sns
Topic StringArn - ARN of the SNS topic to which cluster notifications are sent.
- subnet
Group StringName - The name of the subnet group to be used for the cluster. Defaults to a subnet group consisting of default VPC subnets.
- Map<String>
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - tls
Enabled Boolean - A flag to enable in-transit encryption on the cluster. When set to
false
, theacl_name
must beopen-access
. Defaults totrue
.
Supporting Types
ClusterClusterEndpoint, ClusterClusterEndpointArgs
ClusterShard, ClusterShardArgs
- Name string
- Name of the cluster. If omitted, the provider will assign a random, unique name. Conflicts with
name_prefix
. - Nodes
List<Cluster
Shard Node> - Set of nodes in this shard.
- Num
Nodes int - Number of individual nodes in this shard.
- Slots string
- Keyspace for this shard. Example:
0-16383
.
- Name string
- Name of the cluster. If omitted, the provider will assign a random, unique name. Conflicts with
name_prefix
. - Nodes
[]Cluster
Shard Node - Set of nodes in this shard.
- Num
Nodes int - Number of individual nodes in this shard.
- Slots string
- Keyspace for this shard. Example:
0-16383
.
- name String
- Name of the cluster. If omitted, the provider will assign a random, unique name. Conflicts with
name_prefix
. - nodes
List<Cluster
Shard Node> - Set of nodes in this shard.
- num
Nodes Integer - Number of individual nodes in this shard.
- slots String
- Keyspace for this shard. Example:
0-16383
.
- name string
- Name of the cluster. If omitted, the provider will assign a random, unique name. Conflicts with
name_prefix
. - nodes
Cluster
Shard Node[] - Set of nodes in this shard.
- num
Nodes number - Number of individual nodes in this shard.
- slots string
- Keyspace for this shard. Example:
0-16383
.
- name str
- Name of the cluster. If omitted, the provider will assign a random, unique name. Conflicts with
name_prefix
. - nodes
Sequence[Cluster
Shard Node] - Set of nodes in this shard.
- num_
nodes int - Number of individual nodes in this shard.
- slots str
- Keyspace for this shard. Example:
0-16383
.
- name String
- Name of the cluster. If omitted, the provider will assign a random, unique name. Conflicts with
name_prefix
. - nodes List<Property Map>
- Set of nodes in this shard.
- num
Nodes Number - Number of individual nodes in this shard.
- slots String
- Keyspace for this shard. Example:
0-16383
.
ClusterShardNode, ClusterShardNodeArgs
- Availability
Zone string - The Availability Zone in which the node resides.
- Create
Time string - The date and time when the node was created. Example:
2022-01-01T21:00:00Z
. - Endpoints
List<Cluster
Shard Node Endpoint> - Name string
- Name of the cluster. If omitted, the provider will assign a random, unique name. Conflicts with
name_prefix
.
- Availability
Zone string - The Availability Zone in which the node resides.
- Create
Time string - The date and time when the node was created. Example:
2022-01-01T21:00:00Z
. - Endpoints
[]Cluster
Shard Node Endpoint - Name string
- Name of the cluster. If omitted, the provider will assign a random, unique name. Conflicts with
name_prefix
.
- availability
Zone String - The Availability Zone in which the node resides.
- create
Time String - The date and time when the node was created. Example:
2022-01-01T21:00:00Z
. - endpoints
List<Cluster
Shard Node Endpoint> - name String
- Name of the cluster. If omitted, the provider will assign a random, unique name. Conflicts with
name_prefix
.
- availability
Zone string - The Availability Zone in which the node resides.
- create
Time string - The date and time when the node was created. Example:
2022-01-01T21:00:00Z
. - endpoints
Cluster
Shard Node Endpoint[] - name string
- Name of the cluster. If omitted, the provider will assign a random, unique name. Conflicts with
name_prefix
.
- availability_
zone str - The Availability Zone in which the node resides.
- create_
time str - The date and time when the node was created. Example:
2022-01-01T21:00:00Z
. - endpoints
Sequence[Cluster
Shard Node Endpoint] - name str
- Name of the cluster. If omitted, the provider will assign a random, unique name. Conflicts with
name_prefix
.
- availability
Zone String - The Availability Zone in which the node resides.
- create
Time String - The date and time when the node was created. Example:
2022-01-01T21:00:00Z
. - endpoints List<Property Map>
- name String
- Name of the cluster. If omitted, the provider will assign a random, unique name. Conflicts with
name_prefix
.
ClusterShardNodeEndpoint, ClusterShardNodeEndpointArgs
Import
Using pulumi import
, import a cluster using the name
. For example:
$ pulumi import aws:memorydb/cluster:Cluster example my-cluster
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.