Class CfnClusterMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.dax.CfnClusterMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterMixinProps>
- Enclosing interface:
CfnClusterMixinProps
@Stability(Stable)
public static final class CfnClusterMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClusterMixinProps>
A builder for
CfnClusterMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavailabilityZones(List<String> availabilityZones) Sets the value ofCfnClusterMixinProps.getAvailabilityZones()build()Builds the configured instance.clusterEndpointEncryptionType(String clusterEndpointEncryptionType) Sets the value ofCfnClusterMixinProps.getClusterEndpointEncryptionType()clusterName(String clusterName) Sets the value ofCfnClusterMixinProps.getClusterName()description(String description) Sets the value ofCfnClusterMixinProps.getDescription()iamRoleArn(String iamRoleArn) Sets the value ofCfnClusterMixinProps.getIamRoleArn()networkType(String networkType) Sets the value ofCfnClusterMixinProps.getNetworkType()Sets the value ofCfnClusterMixinProps.getNodeType()notificationTopicArn(String notificationTopicArn) Sets the value ofCfnClusterMixinProps.getNotificationTopicArn()parameterGroupName(String parameterGroupName) Sets the value ofCfnClusterMixinProps.getParameterGroupName()preferredMaintenanceWindow(String preferredMaintenanceWindow) Sets the value ofCfnClusterMixinProps.getPreferredMaintenanceWindow()replicationFactor(Number replicationFactor) Sets the value ofCfnClusterMixinProps.getReplicationFactor()securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnClusterMixinProps.getSecurityGroupIds()sseSpecification(CfnClusterPropsMixin.SSESpecificationProperty sseSpecification) Sets the value ofCfnClusterMixinProps.getSseSpecification()sseSpecification(IResolvable sseSpecification) Sets the value ofCfnClusterMixinProps.getSseSpecification()subnetGroupName(String subnetGroupName) Sets the value ofCfnClusterMixinProps.getSubnetGroupName()Sets the value ofCfnClusterMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
availabilityZones
@Stability(Stable) public CfnClusterMixinProps.Builder availabilityZones(List<String> availabilityZones) Sets the value ofCfnClusterMixinProps.getAvailabilityZones()- Parameters:
availabilityZones- The Availability Zones (AZs) in which the cluster nodes will reside after the cluster has been created or updated. If provided, the length of this list must equal theReplicationFactorparameter. If you omit this parameter, DAX will spread the nodes across Availability Zones for the highest availability.- Returns:
this
-
clusterEndpointEncryptionType
@Stability(Stable) public CfnClusterMixinProps.Builder clusterEndpointEncryptionType(String clusterEndpointEncryptionType) Sets the value ofCfnClusterMixinProps.getClusterEndpointEncryptionType()- Parameters:
clusterEndpointEncryptionType- The encryption type of the cluster's endpoint. Available values are:.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.- Returns:
this
-
clusterName
Sets the value ofCfnClusterMixinProps.getClusterName()- Parameters:
clusterName- The name of the DAX cluster.- Returns:
this
-
description
Sets the value ofCfnClusterMixinProps.getDescription()- Parameters:
description- The description of the cluster.- Returns:
this
-
iamRoleArn
Sets the value ofCfnClusterMixinProps.getIamRoleArn()- Parameters:
iamRoleArn- 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.- Returns:
this
-
networkType
Sets the value ofCfnClusterMixinProps.getNetworkType()- Parameters:
networkType- The IP address type of the cluster. Values are:.ipv4- IPv4 addresses onlyipv6- IPv6 addresses onlydual_stack- Both IPv4 and IPv6 addresses
- Returns:
this
-
nodeType
Sets the value ofCfnClusterMixinProps.getNodeType()- Parameters:
nodeType- The node type for the nodes in the cluster. (All nodes in a DAX cluster are of the same type.)- Returns:
this
-
notificationTopicArn
@Stability(Stable) public CfnClusterMixinProps.Builder notificationTopicArn(String notificationTopicArn) Sets the value ofCfnClusterMixinProps.getNotificationTopicArn()- Parameters:
notificationTopicArn- The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications will be sent.The Amazon SNS topic owner must be same as the DAX cluster owner.
- Returns:
this
-
parameterGroupName
@Stability(Stable) public CfnClusterMixinProps.Builder parameterGroupName(String parameterGroupName) Sets the value ofCfnClusterMixinProps.getParameterGroupName()- Parameters:
parameterGroupName- The parameter group to be associated with the DAX cluster.- Returns:
this
-
preferredMaintenanceWindow
@Stability(Stable) public CfnClusterMixinProps.Builder preferredMaintenanceWindow(String preferredMaintenanceWindow) Sets the value ofCfnClusterMixinProps.getPreferredMaintenanceWindow()- Parameters:
preferredMaintenanceWindow- A range of time when maintenance of DAX cluster software will be performed. For example:sun:01:00-sun:09:00. Cluster maintenance normally takes less than 30 minutes, and is performed automatically within the maintenance window.- Returns:
this
-
replicationFactor
Sets the value ofCfnClusterMixinProps.getReplicationFactor()- Parameters:
replicationFactor- The number of nodes in the DAX cluster. 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, setReplicationFactorto a number between 3 (one primary and two read replicas) and 10 (one primary and nine read replicas).If the AvailabilityZonesparameter is provided, its length must equal theReplicationFactor.AWS recommends that you have at least two read replicas per cluster.
- Returns:
this
-
securityGroupIds
@Stability(Stable) public CfnClusterMixinProps.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnClusterMixinProps.getSecurityGroupIds()- Parameters:
securityGroupIds- A list of security group IDs to be assigned to each node in the DAX cluster. (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.
- Returns:
this
-
sseSpecification
@Stability(Stable) public CfnClusterMixinProps.Builder sseSpecification(IResolvable sseSpecification) Sets the value ofCfnClusterMixinProps.getSseSpecification()- Parameters:
sseSpecification- Represents the settings used to enable server-side encryption on the cluster.- Returns:
this
-
sseSpecification
@Stability(Stable) public CfnClusterMixinProps.Builder sseSpecification(CfnClusterPropsMixin.SSESpecificationProperty sseSpecification) Sets the value ofCfnClusterMixinProps.getSseSpecification()- Parameters:
sseSpecification- Represents the settings used to enable server-side encryption on the cluster.- Returns:
this
-
subnetGroupName
Sets the value ofCfnClusterMixinProps.getSubnetGroupName()- Parameters:
subnetGroupName- The name of the subnet group to be used for the replication group.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.
- Returns:
this
-
tags
Sets the value ofCfnClusterMixinProps.getTags()- Parameters:
tags- A set of tags to associate with the DAX cluster.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnClusterMixinProps>- Returns:
- a new instance of
CfnClusterMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-