Cluster Args
Provides a DAX Cluster resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const bar = new aws.dax.Cluster("bar", {
clusterName: "cluster-example",
iamRoleArn: example.arn,
nodeType: "dax.r4.large",
replicationFactor: 1,
});
import pulumi
import pulumi_aws as aws
bar = aws.dax.Cluster("bar",
cluster_name="cluster-example",
iam_role_arn=example["arn"],
node_type="dax.r4.large",
replication_factor=1)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var bar = new Aws.Dax.Cluster("bar", new()
{
ClusterName = "cluster-example",
IamRoleArn = example.Arn,
NodeType = "dax.r4.large",
ReplicationFactor = 1,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/dax"
"github.com/pulumi/pulumi/sdk/v3/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.Any(example.Arn),
NodeType: pulumi.String("dax.r4.large"),
ReplicationFactor: pulumi.Int(1),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.dax.Cluster;
import com.pulumi.aws.dax.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 bar = new Cluster("bar", ClusterArgs.builder()
.clusterName("cluster-example")
.iamRoleArn(example.arn())
.nodeType("dax.r4.large")
.replicationFactor(1)
.build());
}
}
resources:
bar:
type: aws:dax:Cluster
properties:
clusterName: cluster-example
iamRoleArn: ${example.arn}
nodeType: dax.r4.large
replicationFactor: 1
Import
Using pulumi import
, import DAX Clusters using the cluster_name
. For example:
$ pulumi import aws:dax/cluster:Cluster my_cluster my_cluster
Constructors
Properties
List of Availability Zones in which the nodes will be created
The type of encryption the cluster's endpoint should support. Valid values are: NONE
and TLS
. Default value is NONE
.
Group identifier. DAX converts this name to lowercase
Description for the cluster
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
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
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
Name of the parameter group to associate with this DAX cluster
The number of nodes in the DAX cluster. A replication factor of 1 will create a single-node cluster, without any read replicas
One or more VPC security groups associated with the cluster
Encrypt at rest options
Name of the subnet group to be used for the cluster