@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-22T10:27:18.596Z") @Stability(value=Stable) public class CfnCluster extends CfnResource implements IInspectable
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();
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| 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(software.constructs.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()
`AWS::MSK::Cluster.BrokerNodeGroupInfo`.
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getClientAuthentication()
`AWS::MSK::Cluster.ClientAuthentication`.
|
String |
getClusterName()
`AWS::MSK::Cluster.ClusterName`.
|
Object |
getConfigurationInfo()
`AWS::MSK::Cluster.ConfigurationInfo`.
|
Object |
getEncryptionInfo()
`AWS::MSK::Cluster.EncryptionInfo`.
|
String |
getEnhancedMonitoring()
`AWS::MSK::Cluster.EnhancedMonitoring`.
|
String |
getKafkaVersion()
`AWS::MSK::Cluster.KafkaVersion`.
|
Object |
getLoggingInfo()
`AWS::MSK::Cluster.LoggingInfo`.
|
Number |
getNumberOfBrokerNodes()
`AWS::MSK::Cluster.NumberOfBrokerNodes`.
|
Object |
getOpenMonitoring()
`AWS::MSK::Cluster.OpenMonitoring`.
|
TagManager |
getTags()
`AWS::MSK::Cluster.Tags`.
|
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)
`AWS::MSK::Cluster.BrokerNodeGroupInfo`.
|
void |
setBrokerNodeGroupInfo(IResolvable value)
`AWS::MSK::Cluster.BrokerNodeGroupInfo`.
|
void |
setClientAuthentication(CfnCluster.ClientAuthenticationProperty value)
`AWS::MSK::Cluster.ClientAuthentication`.
|
void |
setClientAuthentication(IResolvable value)
`AWS::MSK::Cluster.ClientAuthentication`.
|
void |
setClusterName(String value)
`AWS::MSK::Cluster.ClusterName`.
|
void |
setConfigurationInfo(CfnCluster.ConfigurationInfoProperty value)
`AWS::MSK::Cluster.ConfigurationInfo`.
|
void |
setConfigurationInfo(IResolvable value)
`AWS::MSK::Cluster.ConfigurationInfo`.
|
void |
setEncryptionInfo(CfnCluster.EncryptionInfoProperty value)
`AWS::MSK::Cluster.EncryptionInfo`.
|
void |
setEncryptionInfo(IResolvable value)
`AWS::MSK::Cluster.EncryptionInfo`.
|
void |
setEnhancedMonitoring(String value)
`AWS::MSK::Cluster.EnhancedMonitoring`.
|
void |
setKafkaVersion(String value)
`AWS::MSK::Cluster.KafkaVersion`.
|
void |
setLoggingInfo(CfnCluster.LoggingInfoProperty value)
`AWS::MSK::Cluster.LoggingInfo`.
|
void |
setLoggingInfo(IResolvable value)
`AWS::MSK::Cluster.LoggingInfo`.
|
void |
setNumberOfBrokerNodes(Number value)
`AWS::MSK::Cluster.NumberOfBrokerNodes`.
|
void |
setOpenMonitoring(CfnCluster.OpenMonitoringProperty value)
`AWS::MSK::Cluster.OpenMonitoring`.
|
void |
setOpenMonitoring(IResolvable value)
`AWS::MSK::Cluster.OpenMonitoring`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, 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
software.constructs.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 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 protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@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) @NotNull public String getClusterName()
@Stability(value=Stable)
public void setClusterName(@NotNull
String 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()
@Stability(value=Stable)
public void setEnhancedMonitoring(@Nullable
String value)
@Stability(value=Stable) @NotNull public String getKafkaVersion()
@Stability(value=Stable)
public void setKafkaVersion(@NotNull
String value)
@Stability(value=Stable) @Nullable public Object getLoggingInfo()
@Stability(value=Stable)
public void setLoggingInfo(@Nullable
CfnCluster.LoggingInfoProperty value)
@Stability(value=Stable)
public void setLoggingInfo(@Nullable
IResolvable value)
@Stability(value=Stable) @NotNull public Number getNumberOfBrokerNodes()
@Stability(value=Stable)
public void setNumberOfBrokerNodes(@NotNull
Number value)
@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)
@Stability(value=Stable) @NotNull public TagManager getTags()
Copyright © 2021. All rights reserved.