@Stability(value=Experimental) public static final class ClusterProps.Builder extends Object implements software.amazon.jsii.Builder<ClusterProps>
ClusterProps
Constructor and Description |
---|
Builder() |
@Stability(value=Experimental) public ClusterProps.Builder clusterName(String clusterName)
ClusterProps.getClusterName()
clusterName
- The physical name of the cluster. This parameter is required.this
@Stability(value=Experimental) public ClusterProps.Builder kafkaVersion(KafkaVersion kafkaVersion)
ClusterProps.getKafkaVersion()
kafkaVersion
- The version of Apache Kafka. This parameter is required.this
@Stability(value=Experimental) public ClusterProps.Builder vpc(IVpc vpc)
ClusterProps.getVpc()
vpc
- Defines the virtual networking environment for this cluster. This parameter is required.
Must have at least 2 subnets in two different AZs.this
@Stability(value=Experimental) public ClusterProps.Builder clientAuthentication(ClientAuthentication clientAuthentication)
ClusterProps.getClientAuthentication()
clientAuthentication
- Configuration properties for client authentication.
MSK supports using private TLS certificates or SASL/SCRAM to authenticate the identity of clients.this
@Stability(value=Experimental) public ClusterProps.Builder configurationInfo(ClusterConfigurationInfo configurationInfo)
ClusterProps.getConfigurationInfo()
configurationInfo
- The Amazon MSK configuration to use for the cluster.this
@Stability(value=Experimental) public ClusterProps.Builder ebsStorageInfo(EbsStorageInfo ebsStorageInfo)
ClusterProps.getEbsStorageInfo()
ebsStorageInfo
- Information about storage volumes attached to MSK broker nodes.this
@Stability(value=Experimental) public ClusterProps.Builder encryptionInTransit(EncryptionInTransitConfig encryptionInTransit)
ClusterProps.getEncryptionInTransit()
encryptionInTransit
- Config details for encryption in transit.this
@Stability(value=Experimental) public ClusterProps.Builder instanceType(InstanceType instanceType)
ClusterProps.getInstanceType()
instanceType
- The EC2 instance type that you want Amazon MSK to use when it creates your brokers.this
@Stability(value=Experimental) public ClusterProps.Builder logging(BrokerLogging logging)
ClusterProps.getLogging()
logging
- Configure your MSK cluster to send broker logs to different destination types.this
@Stability(value=Experimental) public ClusterProps.Builder monitoring(MonitoringConfiguration monitoring)
ClusterProps.getMonitoring()
monitoring
- Cluster monitoring configuration.this
@Stability(value=Experimental) public ClusterProps.Builder numberOfBrokerNodes(Number numberOfBrokerNodes)
ClusterProps.getNumberOfBrokerNodes()
numberOfBrokerNodes
- Number of Apache Kafka brokers deployed in each Availability Zone.this
@Stability(value=Experimental) public ClusterProps.Builder removalPolicy(RemovalPolicy removalPolicy)
ClusterProps.getRemovalPolicy()
removalPolicy
- What to do when this resource is deleted from a stack.this
@Stability(value=Experimental) public ClusterProps.Builder securityGroups(List<? extends ISecurityGroup> securityGroups)
ClusterProps.getSecurityGroups()
securityGroups
- The AWS security groups to associate with the elastic network interfaces in order to specify who can connect to and communicate with the Amazon MSK cluster.this
@Stability(value=Experimental) public ClusterProps.Builder vpcSubnets(SubnetSelection vpcSubnets)
ClusterProps.getVpcSubnets()
vpcSubnets
- Where to place the nodes within the VPC.
Amazon MSK distributes the broker nodes evenly across the subnets that you specify.
The subnets that you specify must be in distinct Availability Zones.
Client subnets can't be in Availability Zone us-east-1e.this
@Stability(value=Experimental) public ClusterProps build()
build
in interface software.amazon.jsii.Builder<ClusterProps>
ClusterProps
NullPointerException
- if any required attribute was not providedCopyright © 2023. All rights reserved.