public static final class CfnCluster.Builder
extends java.lang.Object
CfnCluster
.Modifier and Type | Method and Description |
---|---|
CfnCluster.Builder |
availabilityZones(java.util.List<java.lang.String> availabilityZones)
The Availability Zones (AZs) in which the cluster nodes will reside after the cluster has been created or updated.
|
CfnCluster |
build() |
CfnCluster.Builder |
clusterEndpointEncryptionType(java.lang.String clusterEndpointEncryptionType)
The encryption type of the cluster's endpoint.
|
CfnCluster.Builder |
clusterName(java.lang.String clusterName)
The name of the DAX cluster.
|
static CfnCluster.Builder |
create(Construct scope,
java.lang.String id) |
CfnCluster.Builder |
description(java.lang.String description)
The description of the cluster.
|
CfnCluster.Builder |
iamRoleArn(java.lang.String iamRoleArn)
A valid Amazon Resource Name (ARN) that identifies an IAM role.
|
CfnCluster.Builder |
nodeType(java.lang.String nodeType)
The node type for the nodes in the cluster.
|
CfnCluster.Builder |
notificationTopicArn(java.lang.String notificationTopicArn)
The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications will be sent.
|
CfnCluster.Builder |
parameterGroupName(java.lang.String parameterGroupName)
The parameter group to be associated with the DAX cluster.
|
CfnCluster.Builder |
preferredMaintenanceWindow(java.lang.String preferredMaintenanceWindow)
A range of time when maintenance of DAX cluster software will be performed.
|
CfnCluster.Builder |
replicationFactor(java.lang.Number replicationFactor)
The number of nodes in the DAX cluster.
|
CfnCluster.Builder |
securityGroupIds(java.util.List<java.lang.String> securityGroupIds)
A list of security group IDs to be assigned to each node in the DAX cluster.
|
CfnCluster.Builder |
sseSpecification(CfnCluster.SSESpecificationProperty sseSpecification)
Represents the settings used to enable server-side encryption on the cluster.
|
CfnCluster.Builder |
sseSpecification(IResolvable sseSpecification)
Represents the settings used to enable server-side encryption on the cluster.
|
CfnCluster.Builder |
subnetGroupName(java.lang.String subnetGroupName)
The name of the subnet group to be used for the replication group.
|
CfnCluster.Builder |
tags(java.lang.Object tags)
A set of tags to associate with the DAX cluster.
|
public static CfnCluster.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnCluster.SSESpecificationProperty.Builder
.public CfnCluster.Builder iamRoleArn(java.lang.String iamRoleArn)
At runtime, DAX will assume this role and use the role's permissions to access DynamoDB on your behalf.
iamRoleArn
- A valid Amazon Resource Name (ARN) that identifies an IAM role. This parameter is required.this
public CfnCluster.Builder nodeType(java.lang.String nodeType)
(All nodes in a DAX cluster are of the same type.)
nodeType
- The node type for the nodes in the cluster. This parameter is required.this
public CfnCluster.Builder replicationFactor(java.lang.Number replicationFactor)
A replication factor of 1 will create a single-node cluster, without any read replicas. For additional fault tolerance, you can create a multiple node cluster with one or more read replicas. To do this, set ReplicationFactor
to a number between 3 (one primary and two read replicas) and 10 (one primary and nine read replicas). If the AvailabilityZones
parameter is provided, its length must equal the ReplicationFactor
.
AWS recommends that you have at least two read replicas per cluster.
replicationFactor
- The number of nodes in the DAX cluster. This parameter is required.this
public CfnCluster.Builder availabilityZones(java.util.List<java.lang.String> availabilityZones)
If provided, the length of this list must equal the ReplicationFactor
parameter. If you omit this parameter, DAX will spread the nodes across Availability Zones for the highest availability.
availabilityZones
- The Availability Zones (AZs) in which the cluster nodes will reside after the cluster has been created or updated. This parameter is required.this
public CfnCluster.Builder clusterEndpointEncryptionType(java.lang.String clusterEndpointEncryptionType)
NONE
- The cluster's endpoint will be unencrypted.TLS
- The cluster's endpoint will be encrypted with Transport Layer Security, and will provide an x509 certificate for authentication.
The default value is NONE
.
clusterEndpointEncryptionType
- The encryption type of the cluster's endpoint. Available values are:. This parameter is required.this
public CfnCluster.Builder clusterName(java.lang.String clusterName)
clusterName
- The name of the DAX cluster. This parameter is required.this
public CfnCluster.Builder description(java.lang.String description)
description
- The description of the cluster. This parameter is required.this
public CfnCluster.Builder notificationTopicArn(java.lang.String notificationTopicArn)
The Amazon SNS topic owner must be same as the DAX cluster owner.
notificationTopicArn
- The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications will be sent. This parameter is required.this
public CfnCluster.Builder parameterGroupName(java.lang.String parameterGroupName)
parameterGroupName
- The parameter group to be associated with the DAX cluster. This parameter is required.this
public CfnCluster.Builder preferredMaintenanceWindow(java.lang.String preferredMaintenanceWindow)
For example: sun:01:00-sun:09:00
. Cluster maintenance normally takes less than 30 minutes, and is performed automatically within the maintenance window.
preferredMaintenanceWindow
- A range of time when maintenance of DAX cluster software will be performed. This parameter is required.this
public CfnCluster.Builder securityGroupIds(java.util.List<java.lang.String> securityGroupIds)
(Each of the security group ID is system-generated.)
If this parameter is not specified, DAX assigns the default VPC security group to each node.
securityGroupIds
- A list of security group IDs to be assigned to each node in the DAX cluster. This parameter is required.this
public CfnCluster.Builder sseSpecification(CfnCluster.SSESpecificationProperty sseSpecification)
sseSpecification
- Represents the settings used to enable server-side encryption on the cluster. This parameter is required.this
public CfnCluster.Builder sseSpecification(IResolvable sseSpecification)
sseSpecification
- Represents the settings used to enable server-side encryption on the cluster. This parameter is required.this
public CfnCluster.Builder subnetGroupName(java.lang.String subnetGroupName)
DAX clusters can only run in an Amazon VPC environment. All of the subnets that you specify in a subnet group must exist in the same VPC.
subnetGroupName
- The name of the subnet group to be used for the replication group. This parameter is required.this
public CfnCluster.Builder tags(java.lang.Object tags)
tags
- A set of tags to associate with the DAX cluster. This parameter is required.this
public CfnCluster build()