Class CfnCluster.Builder
java.lang.Object
software.amazon.awscdk.services.msk.CfnCluster.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster>
- Enclosing class:
CfnCluster
@Stability(Stable)
public static final class CfnCluster.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster>
A fluent builder for
CfnCluster
.-
Method Summary
Modifier and TypeMethodDescriptionbrokerNodeGroupInfo
(IResolvable brokerNodeGroupInfo) Information about the broker nodes in the cluster.brokerNodeGroupInfo
(CfnCluster.BrokerNodeGroupInfoProperty brokerNodeGroupInfo) Information about the broker nodes in the cluster.build()
clientAuthentication
(IResolvable clientAuthentication) Includes all client authentication related information.clientAuthentication
(CfnCluster.ClientAuthenticationProperty clientAuthentication) Includes all client authentication related information.clusterName
(String clusterName) The name of the cluster.configurationInfo
(IResolvable configurationInfo) Represents the configuration that you want MSK to use for the cluster.configurationInfo
(CfnCluster.ConfigurationInfoProperty configurationInfo) Represents the configuration that you want MSK to use for the cluster.static CfnCluster.Builder
currentVersion
(String currentVersion) The version of the cluster that you want to update.encryptionInfo
(IResolvable encryptionInfo) Includes all encryption-related information.encryptionInfo
(CfnCluster.EncryptionInfoProperty encryptionInfo) Includes all encryption-related information.enhancedMonitoring
(String enhancedMonitoring) Specifies the level of monitoring for the MSK cluster.kafkaVersion
(String kafkaVersion) The version of Apache Kafka.loggingInfo
(IResolvable loggingInfo) Logging Info details.loggingInfo
(CfnCluster.LoggingInfoProperty loggingInfo) Logging Info details.numberOfBrokerNodes
(Number numberOfBrokerNodes) The number of broker nodes in the cluster.openMonitoring
(IResolvable openMonitoring) The settings for open monitoring.openMonitoring
(CfnCluster.OpenMonitoringProperty openMonitoring) The settings for open monitoring.storageMode
(String storageMode) This controls storage mode for supported storage tiers.Create tags when creating the cluster.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnCluster.Builder
.
-
brokerNodeGroupInfo
@Stability(Stable) public CfnCluster.Builder brokerNodeGroupInfo(CfnCluster.BrokerNodeGroupInfoProperty brokerNodeGroupInfo) Information about the broker nodes in the cluster.- Parameters:
brokerNodeGroupInfo
- Information about the broker nodes in the cluster. This parameter is required.- Returns:
this
-
brokerNodeGroupInfo
Information about the broker nodes in the cluster.- Parameters:
brokerNodeGroupInfo
- Information about the broker nodes in the cluster. This parameter is required.- Returns:
this
-
clusterName
The name of the cluster.- Parameters:
clusterName
- The name of the cluster. This parameter is required.- Returns:
this
-
kafkaVersion
The version of Apache Kafka.You can use Amazon MSK to create clusters that use Apache Kafka versions 1.1.1 and 2.2.1.
- Parameters:
kafkaVersion
- The version of Apache Kafka. This parameter is required.- Returns:
this
-
numberOfBrokerNodes
The number of broker nodes in the cluster.- Parameters:
numberOfBrokerNodes
- The number of broker nodes in the cluster. This parameter is required.- Returns:
this
-
clientAuthentication
Includes all client authentication related information.- Parameters:
clientAuthentication
- Includes all client authentication related information. This parameter is required.- Returns:
this
-
clientAuthentication
@Stability(Stable) public CfnCluster.Builder clientAuthentication(CfnCluster.ClientAuthenticationProperty clientAuthentication) Includes all client authentication related information.- Parameters:
clientAuthentication
- Includes all client authentication related information. This parameter is required.- Returns:
this
-
configurationInfo
Represents the configuration that you want MSK to use for the cluster.- Parameters:
configurationInfo
- Represents the configuration that you want MSK to use for the cluster. This parameter is required.- Returns:
this
-
configurationInfo
@Stability(Stable) public CfnCluster.Builder configurationInfo(CfnCluster.ConfigurationInfoProperty configurationInfo) Represents the configuration that you want MSK to use for the cluster.- Parameters:
configurationInfo
- Represents the configuration that you want MSK to use for the cluster. This parameter is required.- Returns:
this
-
currentVersion
The version of the cluster that you want to update.- Parameters:
currentVersion
- The version of the cluster that you want to update. This parameter is required.- Returns:
this
-
encryptionInfo
Includes all encryption-related information.- Parameters:
encryptionInfo
- Includes all encryption-related information. This parameter is required.- Returns:
this
-
encryptionInfo
@Stability(Stable) public CfnCluster.Builder encryptionInfo(CfnCluster.EncryptionInfoProperty encryptionInfo) Includes all encryption-related information.- Parameters:
encryptionInfo
- Includes all encryption-related information. This parameter is required.- Returns:
this
-
enhancedMonitoring
Specifies the level of monitoring for the MSK cluster.The possible values are
DEFAULT
,PER_BROKER
, andPER_TOPIC_PER_BROKER
.- Parameters:
enhancedMonitoring
- Specifies the level of monitoring for the MSK cluster. This parameter is required.- Returns:
this
-
loggingInfo
Logging Info details.- Parameters:
loggingInfo
- Logging Info details. This parameter is required.- Returns:
this
-
loggingInfo
@Stability(Stable) public CfnCluster.Builder loggingInfo(CfnCluster.LoggingInfoProperty loggingInfo) Logging Info details.- Parameters:
loggingInfo
- Logging Info details. This parameter is required.- Returns:
this
-
openMonitoring
The settings for open monitoring.- Parameters:
openMonitoring
- The settings for open monitoring. This parameter is required.- Returns:
this
-
openMonitoring
@Stability(Stable) public CfnCluster.Builder openMonitoring(CfnCluster.OpenMonitoringProperty openMonitoring) The settings for open monitoring.- Parameters:
openMonitoring
- The settings for open monitoring. This parameter is required.- Returns:
this
-
storageMode
This controls storage mode for supported storage tiers.- Parameters:
storageMode
- This controls storage mode for supported storage tiers. This parameter is required.- Returns:
this
-
tags
Create tags when creating the cluster.- Parameters:
tags
- Create tags when creating the cluster. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCluster>
- Returns:
- a newly built instance of
CfnCluster
.
-