@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:12.464Z") @Stability(value=Stable) public class CfnCluster extends CfnResource implements IInspectable
The AWS::MSK::Cluster resource creates an Amazon MSK cluster. For more information, see What Is Amazon MSK? in the Amazon MSK Developer Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.msk.*;
Object tags;
CfnCluster cfnCluster = CfnCluster.Builder.create(this, "MyCfnCluster")
.brokerNodeGroupInfo(BrokerNodeGroupInfoProperty.builder()
.clientSubnets(List.of("clientSubnets"))
.instanceType("instanceType")
// the properties below are optional
.brokerAzDistribution("brokerAzDistribution")
.connectivityInfo(ConnectivityInfoProperty.builder()
.publicAccess(PublicAccessProperty.builder()
.type("type")
.build())
.build())
.securityGroups(List.of("securityGroups"))
.storageInfo(StorageInfoProperty.builder()
.ebsStorageInfo(EBSStorageInfoProperty.builder()
.volumeSize(123)
.build())
.build())
.build())
.clusterName("clusterName")
.kafkaVersion("kafkaVersion")
.numberOfBrokerNodes(123)
// the properties below are optional
.clientAuthentication(ClientAuthenticationProperty.builder()
.sasl(SaslProperty.builder()
.iam(IamProperty.builder()
.enabled(false)
.build())
.scram(ScramProperty.builder()
.enabled(false)
.build())
.build())
.tls(TlsProperty.builder()
.certificateAuthorityArnList(List.of("certificateAuthorityArnList"))
.enabled(false)
.build())
.unauthenticated(UnauthenticatedProperty.builder()
.enabled(false)
.build())
.build())
.configurationInfo(ConfigurationInfoProperty.builder()
.arn("arn")
.revision(123)
.build())
.encryptionInfo(EncryptionInfoProperty.builder()
.encryptionAtRest(EncryptionAtRestProperty.builder()
.dataVolumeKmsKeyId("dataVolumeKmsKeyId")
.build())
.encryptionInTransit(EncryptionInTransitProperty.builder()
.clientBroker("clientBroker")
.inCluster(false)
.build())
.build())
.enhancedMonitoring("enhancedMonitoring")
.loggingInfo(LoggingInfoProperty.builder()
.brokerLogs(BrokerLogsProperty.builder()
.cloudWatchLogs(CloudWatchLogsProperty.builder()
.enabled(false)
// the properties below are optional
.logGroup("logGroup")
.build())
.firehose(FirehoseProperty.builder()
.enabled(false)
// the properties below are optional
.deliveryStream("deliveryStream")
.build())
.s3(S3Property.builder()
.enabled(false)
// the properties below are optional
.bucket("bucket")
.prefix("prefix")
.build())
.build())
.build())
.openMonitoring(OpenMonitoringProperty.builder()
.prometheus(PrometheusProperty.builder()
.jmxExporter(JmxExporterProperty.builder()
.enabledInBroker(false)
.build())
.nodeExporter(NodeExporterProperty.builder()
.enabledInBroker(false)
.build())
.build())
.build())
.tags(tags)
.build();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnCluster.BrokerLogsProperty
You can configure your MSK cluster to send broker logs to different destination types.
|
static interface |
CfnCluster.BrokerNodeGroupInfoProperty
The setup to be used for brokers in the cluster.
|
static class |
CfnCluster.Builder
A fluent builder for
CfnCluster. |
static interface |
CfnCluster.ClientAuthenticationProperty
Includes information related to client authentication.
|
static interface |
CfnCluster.CloudWatchLogsProperty
Details of the CloudWatch Logs destination for broker logs.
|
static interface |
CfnCluster.ConfigurationInfoProperty
Specifies the Amazon MSK configuration to use for the brokers.
|
static interface |
CfnCluster.ConnectivityInfoProperty
Specifies whether the cluster's brokers are publicly accessible.
|
static interface |
CfnCluster.EBSStorageInfoProperty
Contains information about the EBS storage volumes attached to brokers.
|
static interface |
CfnCluster.EncryptionAtRestProperty
The data volume encryption details.
|
static interface |
CfnCluster.EncryptionInfoProperty
Includes encryption-related information, such as the Amazon KMS key used for encrypting data at rest and whether you want MSK to encrypt your data in transit.
|
static interface |
CfnCluster.EncryptionInTransitProperty
The settings for encrypting data in transit.
|
static interface |
CfnCluster.FirehoseProperty
Details of the Kinesis Data Firehose delivery stream that is the destination for broker logs.
|
static interface |
CfnCluster.IamProperty
Details for IAM access control.
|
static interface |
CfnCluster.JmxExporterProperty
Indicates whether you want to enable or disable the JMX Exporter.
|
static interface |
CfnCluster.LoggingInfoProperty
You can configure your MSK cluster to send broker logs to different destination types.
|
static interface |
CfnCluster.NodeExporterProperty
Indicates whether you want to enable or disable the Node Exporter.
|
static interface |
CfnCluster.OpenMonitoringProperty
JMX and Node monitoring for the MSK cluster.
|
static interface |
CfnCluster.PrometheusProperty
Prometheus settings for open monitoring.
|
static interface |
CfnCluster.PublicAccessProperty
Specifies whether the cluster's brokers are accessible from the internet.
|
static interface |
CfnCluster.S3Property
The details of the Amazon S3 destination for broker logs.
|
static interface |
CfnCluster.SaslProperty
Details for client authentication using SASL.
|
static interface |
CfnCluster.ScramProperty
Details for SASL/SCRAM client authentication.
|
static interface |
CfnCluster.StorageInfoProperty
Contains information about storage volumes attached to MSK broker nodes.
|
static interface |
CfnCluster.TlsProperty
Details for client authentication using TLS.
|
static interface |
CfnCluster.UnauthenticatedProperty
Details for allowing no client authentication.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$ProxyIConstruct.Jsii$Default| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnCluster(Construct scope,
String id,
CfnClusterProps props)
Create a new `AWS::MSK::Cluster`.
|
protected |
CfnCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnCluster(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getBrokerNodeGroupInfo()
The setup to be used for brokers in the cluster.
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getClientAuthentication()
Includes information related to client authentication.
|
String |
getClusterName()
The name of the cluster.
|
Object |
getConfigurationInfo()
The Amazon MSK configuration to use for the cluster.
|
Object |
getEncryptionInfo()
Includes all encryption-related information.
|
String |
getEnhancedMonitoring()
Specifies the level of monitoring for the MSK cluster.
|
String |
getKafkaVersion()
The version of Apache Kafka.
|
Object |
getLoggingInfo()
You can configure your MSK cluster to send broker logs to different destination types.
|
Number |
getNumberOfBrokerNodes()
The number of broker nodes you want in the Amazon MSK cluster.
|
Object |
getOpenMonitoring()
The settings for open monitoring.
|
TagManager |
getTags()
A map of key:value pairs to apply to this resource.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setBrokerNodeGroupInfo(CfnCluster.BrokerNodeGroupInfoProperty value)
The setup to be used for brokers in the cluster.
|
void |
setBrokerNodeGroupInfo(IResolvable value)
The setup to be used for brokers in the cluster.
|
void |
setClientAuthentication(CfnCluster.ClientAuthenticationProperty value)
Includes information related to client authentication.
|
void |
setClientAuthentication(IResolvable value)
Includes information related to client authentication.
|
void |
setClusterName(String value)
The name of the cluster.
|
void |
setConfigurationInfo(CfnCluster.ConfigurationInfoProperty value)
The Amazon MSK configuration to use for the cluster.
|
void |
setConfigurationInfo(IResolvable value)
The Amazon MSK configuration to use for the cluster.
|
void |
setEncryptionInfo(CfnCluster.EncryptionInfoProperty value)
Includes all encryption-related information.
|
void |
setEncryptionInfo(IResolvable value)
Includes all encryption-related information.
|
void |
setEnhancedMonitoring(String value)
Specifies the level of monitoring for the MSK cluster.
|
void |
setKafkaVersion(String value)
The version of Apache Kafka.
|
void |
setLoggingInfo(CfnCluster.LoggingInfoProperty value)
You can configure your MSK cluster to send broker logs to different destination types.
|
void |
setLoggingInfo(IResolvable value)
You can configure your MSK cluster to send broker logs to different destination types.
|
void |
setNumberOfBrokerNodes(Number value)
The number of broker nodes you want in the Amazon MSK cluster.
|
void |
setOpenMonitoring(CfnCluster.OpenMonitoringProperty value)
The settings for open monitoring.
|
void |
setOpenMonitoring(IResolvable value)
The settings for open monitoring.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnCluster(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnCluster(@NotNull
Construct scope,
@NotNull
String id,
@NotNull
CfnClusterProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
Both key and value are of type String.
@Stability(value=Stable) @NotNull public Object getBrokerNodeGroupInfo()
@Stability(value=Stable)
public void setBrokerNodeGroupInfo(@NotNull
CfnCluster.BrokerNodeGroupInfoProperty value)
@Stability(value=Stable)
public void setBrokerNodeGroupInfo(@NotNull
IResolvable value)
@Stability(value=Stable) @NotNull public String getClusterName()
@Stability(value=Stable)
public void setClusterName(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getKafkaVersion()
You can use Amazon MSK to create clusters that use Apache Kafka versions 1.1.1 and 2.2.1.
@Stability(value=Stable)
public void setKafkaVersion(@NotNull
String value)
You can use Amazon MSK to create clusters that use Apache Kafka versions 1.1.1 and 2.2.1.
@Stability(value=Stable) @NotNull public Number getNumberOfBrokerNodes()
You can submit an update to increase the number of broker nodes in a cluster.
@Stability(value=Stable)
public void setNumberOfBrokerNodes(@NotNull
Number value)
You can submit an update to increase the number of broker nodes in a cluster.
@Stability(value=Stable) @Nullable public Object getClientAuthentication()
@Stability(value=Stable)
public void setClientAuthentication(@Nullable
CfnCluster.ClientAuthenticationProperty value)
@Stability(value=Stable)
public void setClientAuthentication(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getConfigurationInfo()
@Stability(value=Stable)
public void setConfigurationInfo(@Nullable
CfnCluster.ConfigurationInfoProperty value)
@Stability(value=Stable)
public void setConfigurationInfo(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getEncryptionInfo()
@Stability(value=Stable)
public void setEncryptionInfo(@Nullable
CfnCluster.EncryptionInfoProperty value)
@Stability(value=Stable)
public void setEncryptionInfo(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getEnhancedMonitoring()
The possible values are DEFAULT , PER_BROKER , and PER_TOPIC_PER_BROKER .
@Stability(value=Stable)
public void setEnhancedMonitoring(@Nullable
String value)
The possible values are DEFAULT , PER_BROKER , and PER_TOPIC_PER_BROKER .
@Stability(value=Stable) @Nullable public Object getLoggingInfo()
This is a container for the configuration details related to broker logs.
@Stability(value=Stable)
public void setLoggingInfo(@Nullable
CfnCluster.LoggingInfoProperty value)
This is a container for the configuration details related to broker logs.
@Stability(value=Stable)
public void setLoggingInfo(@Nullable
IResolvable value)
This is a container for the configuration details related to broker logs.
@Stability(value=Stable) @Nullable public Object getOpenMonitoring()
@Stability(value=Stable)
public void setOpenMonitoring(@Nullable
CfnCluster.OpenMonitoringProperty value)
@Stability(value=Stable)
public void setOpenMonitoring(@Nullable
IResolvable value)
Copyright © 2022. All rights reserved.