Class CfnCluster
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.msk.CfnCluster
- All Implemented Interfaces:
IInspectable,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-21T06:34:11.271Z")
@Stability(Stable)
public class CfnCluster
extends CfnResource
implements IInspectable, ITaggable
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-msk-cluster.html.
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.*;
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())
.vpcConnectivity(VpcConnectivityProperty.builder()
.clientAuthentication(VpcConnectivityClientAuthenticationProperty.builder()
.sasl(VpcConnectivitySaslProperty.builder()
.iam(VpcConnectivityIamProperty.builder()
.enabled(false)
.build())
.scram(VpcConnectivityScramProperty.builder()
.enabled(false)
.build())
.build())
.tls(VpcConnectivityTlsProperty.builder()
.enabled(false)
.build())
.build())
.build())
.build())
.securityGroups(List.of("securityGroups"))
.storageInfo(StorageInfoProperty.builder()
.ebsStorageInfo(EBSStorageInfoProperty.builder()
.provisionedThroughput(ProvisionedThroughputProperty.builder()
.enabled(false)
.volumeThroughput(123)
.build())
.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())
.currentVersion("currentVersion")
.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())
.storageMode("storageMode")
.tags(Map.of(
"tagsKey", "tags"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceExample:static interfaceExample:static final classA fluent builder forCfnCluster.static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnCluster(software.amazon.jsii.JsiiObjectRef objRef) CfnCluster(software.constructs.Construct scope, String id, CfnClusterProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe current version of the MSK cluster.getTags()Tag Manager which manages the tags for this resource.A key-value pair to associate with a resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidvoidvoidvoidvoidsetClusterName(String value) voidsetConfigurationInfo(IResolvable value) voidvoidsetCurrentVersion(String value) The current version of the MSK cluster.voidsetEncryptionInfo(IResolvable value) voidvoidsetEnhancedMonitoring(String value) voidsetKafkaVersion(String value) voidsetLoggingInfo(IResolvable value) voidvoidsetNumberOfBrokerNodes(Number value) voidsetOpenMonitoring(IResolvable value) voidvoidsetStorageMode(String value) voidsetTagsRaw(Map<String, String> value) A key-value pair to associate with a resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnCluster
protected CfnCluster(software.amazon.jsii.JsiiObjectRef objRef) -
CfnCluster
protected CfnCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnCluster
@Stability(Stable) public CfnCluster(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnClusterProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getBrokerNodeGroupInfo
-
setBrokerNodeGroupInfo
-
setBrokerNodeGroupInfo
@Stability(Stable) public void setBrokerNodeGroupInfo(@NotNull CfnCluster.BrokerNodeGroupInfoProperty value) -
getClusterName
-
setClusterName
-
getKafkaVersion
-
setKafkaVersion
-
getNumberOfBrokerNodes
-
setNumberOfBrokerNodes
-
getClientAuthentication
-
setClientAuthentication
-
setClientAuthentication
@Stability(Stable) public void setClientAuthentication(@Nullable CfnCluster.ClientAuthenticationProperty value) -
getConfigurationInfo
-
setConfigurationInfo
-
setConfigurationInfo
@Stability(Stable) public void setConfigurationInfo(@Nullable CfnCluster.ConfigurationInfoProperty value) -
getCurrentVersion
The current version of the MSK cluster. -
setCurrentVersion
The current version of the MSK cluster. -
getEncryptionInfo
-
setEncryptionInfo
-
setEncryptionInfo
-
getEnhancedMonitoring
-
setEnhancedMonitoring
-
getLoggingInfo
-
setLoggingInfo
-
setLoggingInfo
-
getOpenMonitoring
-
setOpenMonitoring
-
setOpenMonitoring
-
getStorageMode
-
setStorageMode
-
getTagsRaw
A key-value pair to associate with a resource. -
setTagsRaw
A key-value pair to associate with a resource.
-