@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:53.508Z") @Stability(value=Experimental) public interface ClusterProps extends software.amazon.jsii.JsiiSerializable
Example:
Vpc vpc;
Cluster cluster = Cluster.Builder.create(this, "cluster")
.clusterName("myCluster")
.kafkaVersion(KafkaVersion.V2_8_1)
.vpc(vpc)
.encryptionInTransit(EncryptionInTransitConfig.builder()
.clientBroker(ClientBrokerEncryption.TLS)
.build())
.clientAuthentication(ClientAuthentication.sasl(SaslAuthProps.builder()
.scram(true)
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
ClusterProps.Builder
A builder for
ClusterProps |
static class |
ClusterProps.Jsii$Proxy
An implementation for
ClusterProps |
| Modifier and Type | Method and Description |
|---|---|
static ClusterProps.Builder |
builder() |
default ClientAuthentication |
getClientAuthentication()
(experimental) Configuration properties for client authentication.
|
String |
getClusterName()
(experimental) The physical name of the cluster.
|
default ClusterConfigurationInfo |
getConfigurationInfo()
(experimental) The Amazon MSK configuration to use for the cluster.
|
default EbsStorageInfo |
getEbsStorageInfo()
(experimental) Information about storage volumes attached to MSK broker nodes.
|
default EncryptionInTransitConfig |
getEncryptionInTransit()
(experimental) Config details for encryption in transit.
|
default InstanceType |
getInstanceType()
(experimental) The EC2 instance type that you want Amazon MSK to use when it creates your brokers.
|
KafkaVersion |
getKafkaVersion()
(experimental) The version of Apache Kafka.
|
default BrokerLogging |
getLogging()
(experimental) Configure your MSK cluster to send broker logs to different destination types.
|
default MonitoringConfiguration |
getMonitoring()
(experimental) Cluster monitoring configuration.
|
default Number |
getNumberOfBrokerNodes()
(experimental) Number of Apache Kafka brokers deployed in each Availability Zone.
|
default RemovalPolicy |
getRemovalPolicy()
(experimental) What to do when this resource is deleted from a stack.
|
default List<ISecurityGroup> |
getSecurityGroups()
(experimental) 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.
|
IVpc |
getVpc()
(experimental) Defines the virtual networking environment for this cluster.
|
default SubnetSelection |
getVpcSubnets()
(experimental) Where to place the nodes within the VPC.
|
@Stability(value=Experimental) @NotNull String getClusterName()
@Stability(value=Experimental) @NotNull KafkaVersion getKafkaVersion()
@Stability(value=Experimental) @NotNull IVpc getVpc()
Must have at least 2 subnets in two different AZs.
@Stability(value=Experimental) @Nullable default ClientAuthentication getClientAuthentication()
MSK supports using private TLS certificates or SASL/SCRAM to authenticate the identity of clients.
Default: - disabled
@Stability(value=Experimental) @Nullable default ClusterConfigurationInfo getConfigurationInfo()
Default: - none
@Stability(value=Experimental) @Nullable default EbsStorageInfo getEbsStorageInfo()
Default: - 1000 GiB EBS volume
@Stability(value=Experimental) @Nullable default EncryptionInTransitConfig getEncryptionInTransit()
Default: - enabled
@Stability(value=Experimental) @Nullable default InstanceType getInstanceType()
Default: kafka.m5.large
@Stability(value=Experimental) @Nullable default BrokerLogging getLogging()
Default: - disabled
@Stability(value=Experimental) @Nullable default MonitoringConfiguration getMonitoring()
Default: - DEFAULT monitoring level
@Stability(value=Experimental) @Nullable default Number getNumberOfBrokerNodes()
Default: 1
@Stability(value=Experimental) @Nullable default RemovalPolicy getRemovalPolicy()
Default: RemovalPolicy.RETAIN
@Stability(value=Experimental) @Nullable default List<ISecurityGroup> getSecurityGroups()
Default: - create new security group
@Stability(value=Experimental) @Nullable default SubnetSelection getVpcSubnets()
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.
Default: - the Vpc default strategy if not specified.
@Stability(value=Experimental) static ClusterProps.Builder builder()
ClusterProps.Builder of ClusterPropsCopyright © 2022. All rights reserved.