Cluster
Provides a DAX Cluster resource.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var bar = new Aws.Dax.Cluster("bar", new Aws.Dax.ClusterArgs
{
ClusterName = "cluster-example",
IamRoleArn = data.Aws_iam_role.Example.Arn,
NodeType = "dax.r4.large",
ReplicationFactor = 1,
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/dax"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dax.NewCluster(ctx, "bar", &dax.ClusterArgs{
ClusterName: pulumi.String("cluster-example"),
IamRoleArn: pulumi.String(data.Aws_iam_role.Example.Arn),
NodeType: pulumi.String("dax.r4.large"),
ReplicationFactor: pulumi.Int(1),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
bar = aws.dax.Cluster("bar",
cluster_name="cluster-example",
iam_role_arn=data["aws_iam_role"]["example"]["arn"],
node_type="dax.r4.large",
replication_factor=1)import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const bar = new aws.dax.Cluster("bar", {
clusterName: "cluster-example",
iamRoleArn: aws_iam_role_example.arn,
nodeType: "dax.r4.large",
replicationFactor: 1,
});Create a Cluster Resource
new Cluster(name: string, args: ClusterArgs, opts?: CustomResourceOptions);def Cluster(resource_name, opts=None, availability_zones=None, cluster_name=None, description=None, iam_role_arn=None, maintenance_window=None, node_type=None, notification_topic_arn=None, parameter_group_name=None, replication_factor=None, security_group_ids=None, server_side_encryption=None, subnet_group_name=None, tags=None, __props__=None);func NewCluster(ctx *Context, name string, args ClusterArgs, opts ...ResourceOption) (*Cluster, error)public Cluster(string name, ClusterArgs args, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
Cluster Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Cluster resource accepts the following input properties:
- Cluster
Name string Group identifier. DAX converts this name to lowercase
- Iam
Role stringArn A valid Amazon Resource Name (ARN) that identifies an IAM role. At runtime, DAX will assume this role and use the role’s permissions to access DynamoDB on your behalf
- Node
Type string The compute and memory capacity of the nodes. See Nodes for supported node types
- Replication
Factor int The number of nodes in the DAX cluster. A replication factor of 1 will create a single-node cluster, without any read replicas
- Availability
Zones List<string> List of Availability Zones in which the nodes will be created
- Description string
Description for the cluster
- Maintenance
Window string Specifies the weekly time range for when maintenance on the cluster is performed. The format is
ddd:hh24:mi-ddd:hh24:mi(24H Clock UTC). The minimum maintenance window is a 60 minute period. Example:sun:05:00-sun:09:00- Notification
Topic stringArn An Amazon Resource Name (ARN) of an SNS topic to send DAX notifications to. Example:
arn:aws:sns:us-east-1:012345678999:my_sns_topic- Parameter
Group stringName Name of the parameter group to associate with this DAX cluster
- Security
Group List<string>Ids One or more VPC security groups associated with the cluster
- Server
Side ClusterEncryption Server Side Encryption Args Encrypt at rest options
- Subnet
Group stringName Name of the subnet group to be used for the cluster
- Dictionary<string, string>
A map of tags to assign to the resource
- Cluster
Name string Group identifier. DAX converts this name to lowercase
- Iam
Role stringArn A valid Amazon Resource Name (ARN) that identifies an IAM role. At runtime, DAX will assume this role and use the role’s permissions to access DynamoDB on your behalf
- Node
Type string The compute and memory capacity of the nodes. See Nodes for supported node types
- Replication
Factor int The number of nodes in the DAX cluster. A replication factor of 1 will create a single-node cluster, without any read replicas
- Availability
Zones []string List of Availability Zones in which the nodes will be created
- Description string
Description for the cluster
- Maintenance
Window string Specifies the weekly time range for when maintenance on the cluster is performed. The format is
ddd:hh24:mi-ddd:hh24:mi(24H Clock UTC). The minimum maintenance window is a 60 minute period. Example:sun:05:00-sun:09:00- Notification
Topic stringArn An Amazon Resource Name (ARN) of an SNS topic to send DAX notifications to. Example:
arn:aws:sns:us-east-1:012345678999:my_sns_topic- Parameter
Group stringName Name of the parameter group to associate with this DAX cluster
- Security
Group []stringIds One or more VPC security groups associated with the cluster
- Server
Side ClusterEncryption Server Side Encryption Encrypt at rest options
- Subnet
Group stringName Name of the subnet group to be used for the cluster
- map[string]string
A map of tags to assign to the resource
- cluster
Name string Group identifier. DAX converts this name to lowercase
- iam
Role stringArn A valid Amazon Resource Name (ARN) that identifies an IAM role. At runtime, DAX will assume this role and use the role’s permissions to access DynamoDB on your behalf
- node
Type string The compute and memory capacity of the nodes. See Nodes for supported node types
- replication
Factor number The number of nodes in the DAX cluster. A replication factor of 1 will create a single-node cluster, without any read replicas
- availability
Zones string[] List of Availability Zones in which the nodes will be created
- description string
Description for the cluster
- maintenance
Window string Specifies the weekly time range for when maintenance on the cluster is performed. The format is
ddd:hh24:mi-ddd:hh24:mi(24H Clock UTC). The minimum maintenance window is a 60 minute period. Example:sun:05:00-sun:09:00- notification
Topic stringArn An Amazon Resource Name (ARN) of an SNS topic to send DAX notifications to. Example:
arn:aws:sns:us-east-1:012345678999:my_sns_topic- parameter
Group stringName Name of the parameter group to associate with this DAX cluster
- security
Group string[]Ids One or more VPC security groups associated with the cluster
- server
Side ClusterEncryption Server Side Encryption Encrypt at rest options
- subnet
Group stringName Name of the subnet group to be used for the cluster
- {[key: string]: string}
A map of tags to assign to the resource
- cluster_
name str Group identifier. DAX converts this name to lowercase
- iam_
role_ strarn A valid Amazon Resource Name (ARN) that identifies an IAM role. At runtime, DAX will assume this role and use the role’s permissions to access DynamoDB on your behalf
- node_
type str The compute and memory capacity of the nodes. See Nodes for supported node types
- replication_
factor float The number of nodes in the DAX cluster. A replication factor of 1 will create a single-node cluster, without any read replicas
- availability_
zones List[str] List of Availability Zones in which the nodes will be created
- description str
Description for the cluster
- maintenance_
window str Specifies the weekly time range for when maintenance on the cluster is performed. The format is
ddd:hh24:mi-ddd:hh24:mi(24H Clock UTC). The minimum maintenance window is a 60 minute period. Example:sun:05:00-sun:09:00- notification_
topic_ strarn An Amazon Resource Name (ARN) of an SNS topic to send DAX notifications to. Example:
arn:aws:sns:us-east-1:012345678999:my_sns_topic- parameter_
group_ strname Name of the parameter group to associate with this DAX cluster
- security_
group_ List[str]ids One or more VPC security groups associated with the cluster
- server_
side_ Dict[Clusterencryption Server Side Encryption] Encrypt at rest options
- subnet_
group_ strname Name of the subnet group to be used for the cluster
- Dict[str, str]
A map of tags to assign to the resource
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 DAX cluster
- Cluster
Address string The DNS name of the DAX cluster without the port appended
- Configuration
Endpoint string The configuration endpoint for this DAX cluster, consisting of a DNS name and a port number
- Id string
- The provider-assigned unique ID for this managed resource.
- Nodes
List<Cluster
Node> List of node objects including
id,address,portandavailability_zone. Referenceable e.g. as${aws_dax_cluster.test.nodes.0.address}- Port int
The port used by the configuration endpoint
- Arn string
The ARN of the DAX cluster
- Cluster
Address string The DNS name of the DAX cluster without the port appended
- Configuration
Endpoint string The configuration endpoint for this DAX cluster, consisting of a DNS name and a port number
- Id string
- The provider-assigned unique ID for this managed resource.
- Nodes
[]Cluster
Node List of node objects including
id,address,portandavailability_zone. Referenceable e.g. as${aws_dax_cluster.test.nodes.0.address}- Port int
The port used by the configuration endpoint
- arn string
The ARN of the DAX cluster
- cluster
Address string The DNS name of the DAX cluster without the port appended
- configuration
Endpoint string The configuration endpoint for this DAX cluster, consisting of a DNS name and a port number
- id string
- The provider-assigned unique ID for this managed resource.
- nodes
Cluster
Node[] List of node objects including
id,address,portandavailability_zone. Referenceable e.g. as${aws_dax_cluster.test.nodes.0.address}- port number
The port used by the configuration endpoint
- arn str
The ARN of the DAX cluster
- cluster_
address str The DNS name of the DAX cluster without the port appended
- configuration_
endpoint str The configuration endpoint for this DAX cluster, consisting of a DNS name and a port number
- id str
- The provider-assigned unique ID for this managed resource.
- nodes
List[Cluster
Node] List of node objects including
id,address,portandavailability_zone. Referenceable e.g. as${aws_dax_cluster.test.nodes.0.address}- port float
The port used by the configuration endpoint
Look up an 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): Clusterstatic get(resource_name, id, opts=None, arn=None, availability_zones=None, cluster_address=None, cluster_name=None, configuration_endpoint=None, description=None, iam_role_arn=None, maintenance_window=None, node_type=None, nodes=None, notification_topic_arn=None, parameter_group_name=None, port=None, replication_factor=None, security_group_ids=None, server_side_encryption=None, subnet_group_name=None, tags=None, __props__=None);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)- 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.
The following state arguments are supported:
- Arn string
The ARN of the DAX cluster
- Availability
Zones List<string> List of Availability Zones in which the nodes will be created
- Cluster
Address string The DNS name of the DAX cluster without the port appended
- Cluster
Name string Group identifier. DAX converts this name to lowercase
- Configuration
Endpoint string The configuration endpoint for this DAX cluster, consisting of a DNS name and a port number
- Description string
Description for the cluster
- Iam
Role stringArn A valid Amazon Resource Name (ARN) that identifies an IAM role. At runtime, DAX will assume this role and use the role’s permissions to access DynamoDB on your behalf
- Maintenance
Window string Specifies the weekly time range for when maintenance on the cluster is performed. The format is
ddd:hh24:mi-ddd:hh24:mi(24H Clock UTC). The minimum maintenance window is a 60 minute period. Example:sun:05:00-sun:09:00- Node
Type string The compute and memory capacity of the nodes. See Nodes for supported node types
- Nodes
List<Cluster
Node Args> List of node objects including
id,address,portandavailability_zone. Referenceable e.g. as${aws_dax_cluster.test.nodes.0.address}- Notification
Topic stringArn An Amazon Resource Name (ARN) of an SNS topic to send DAX notifications to. Example:
arn:aws:sns:us-east-1:012345678999:my_sns_topic- Parameter
Group stringName Name of the parameter group to associate with this DAX cluster
- Port int
The port used by the configuration endpoint
- Replication
Factor int The number of nodes in the DAX cluster. A replication factor of 1 will create a single-node cluster, without any read replicas
- Security
Group List<string>Ids One or more VPC security groups associated with the cluster
- Server
Side ClusterEncryption Server Side Encryption Args Encrypt at rest options
- Subnet
Group stringName Name of the subnet group to be used for the cluster
- Dictionary<string, string>
A map of tags to assign to the resource
- Arn string
The ARN of the DAX cluster
- Availability
Zones []string List of Availability Zones in which the nodes will be created
- Cluster
Address string The DNS name of the DAX cluster without the port appended
- Cluster
Name string Group identifier. DAX converts this name to lowercase
- Configuration
Endpoint string The configuration endpoint for this DAX cluster, consisting of a DNS name and a port number
- Description string
Description for the cluster
- Iam
Role stringArn A valid Amazon Resource Name (ARN) that identifies an IAM role. At runtime, DAX will assume this role and use the role’s permissions to access DynamoDB on your behalf
- Maintenance
Window string Specifies the weekly time range for when maintenance on the cluster is performed. The format is
ddd:hh24:mi-ddd:hh24:mi(24H Clock UTC). The minimum maintenance window is a 60 minute period. Example:sun:05:00-sun:09:00- Node
Type string The compute and memory capacity of the nodes. See Nodes for supported node types
- Nodes
[]Cluster
Node List of node objects including
id,address,portandavailability_zone. Referenceable e.g. as${aws_dax_cluster.test.nodes.0.address}- Notification
Topic stringArn An Amazon Resource Name (ARN) of an SNS topic to send DAX notifications to. Example:
arn:aws:sns:us-east-1:012345678999:my_sns_topic- Parameter
Group stringName Name of the parameter group to associate with this DAX cluster
- Port int
The port used by the configuration endpoint
- Replication
Factor int The number of nodes in the DAX cluster. A replication factor of 1 will create a single-node cluster, without any read replicas
- Security
Group []stringIds One or more VPC security groups associated with the cluster
- Server
Side ClusterEncryption Server Side Encryption Encrypt at rest options
- Subnet
Group stringName Name of the subnet group to be used for the cluster
- map[string]string
A map of tags to assign to the resource
- arn string
The ARN of the DAX cluster
- availability
Zones string[] List of Availability Zones in which the nodes will be created
- cluster
Address string The DNS name of the DAX cluster without the port appended
- cluster
Name string Group identifier. DAX converts this name to lowercase
- configuration
Endpoint string The configuration endpoint for this DAX cluster, consisting of a DNS name and a port number
- description string
Description for the cluster
- iam
Role stringArn A valid Amazon Resource Name (ARN) that identifies an IAM role. At runtime, DAX will assume this role and use the role’s permissions to access DynamoDB on your behalf
- maintenance
Window string Specifies the weekly time range for when maintenance on the cluster is performed. The format is
ddd:hh24:mi-ddd:hh24:mi(24H Clock UTC). The minimum maintenance window is a 60 minute period. Example:sun:05:00-sun:09:00- node
Type string The compute and memory capacity of the nodes. See Nodes for supported node types
- nodes
Cluster
Node[] List of node objects including
id,address,portandavailability_zone. Referenceable e.g. as${aws_dax_cluster.test.nodes.0.address}- notification
Topic stringArn An Amazon Resource Name (ARN) of an SNS topic to send DAX notifications to. Example:
arn:aws:sns:us-east-1:012345678999:my_sns_topic- parameter
Group stringName Name of the parameter group to associate with this DAX cluster
- port number
The port used by the configuration endpoint
- replication
Factor number The number of nodes in the DAX cluster. A replication factor of 1 will create a single-node cluster, without any read replicas
- security
Group string[]Ids One or more VPC security groups associated with the cluster
- server
Side ClusterEncryption Server Side Encryption Encrypt at rest options
- subnet
Group stringName Name of the subnet group to be used for the cluster
- {[key: string]: string}
A map of tags to assign to the resource
- arn str
The ARN of the DAX cluster
- availability_
zones List[str] List of Availability Zones in which the nodes will be created
- cluster_
address str The DNS name of the DAX cluster without the port appended
- cluster_
name str Group identifier. DAX converts this name to lowercase
- configuration_
endpoint str The configuration endpoint for this DAX cluster, consisting of a DNS name and a port number
- description str
Description for the cluster
- iam_
role_ strarn A valid Amazon Resource Name (ARN) that identifies an IAM role. At runtime, DAX will assume this role and use the role’s permissions to access DynamoDB on your behalf
- maintenance_
window str Specifies the weekly time range for when maintenance on the cluster is performed. The format is
ddd:hh24:mi-ddd:hh24:mi(24H Clock UTC). The minimum maintenance window is a 60 minute period. Example:sun:05:00-sun:09:00- node_
type str The compute and memory capacity of the nodes. See Nodes for supported node types
- nodes
List[Cluster
Node] List of node objects including
id,address,portandavailability_zone. Referenceable e.g. as${aws_dax_cluster.test.nodes.0.address}- notification_
topic_ strarn An Amazon Resource Name (ARN) of an SNS topic to send DAX notifications to. Example:
arn:aws:sns:us-east-1:012345678999:my_sns_topic- parameter_
group_ strname Name of the parameter group to associate with this DAX cluster
- port float
The port used by the configuration endpoint
- replication_
factor float The number of nodes in the DAX cluster. A replication factor of 1 will create a single-node cluster, without any read replicas
- security_
group_ List[str]ids One or more VPC security groups associated with the cluster
- server_
side_ Dict[Clusterencryption Server Side Encryption] Encrypt at rest options
- subnet_
group_ strname Name of the subnet group to be used for the cluster
- Dict[str, str]
A map of tags to assign to the resource
Supporting Types
ClusterNode
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
ClusterServerSideEncryption
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.