Class CfnTopic
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.CfnTopic
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,ITopicRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.126.0 (build 206d44b)",
date="2026-02-23T18:58:22.760Z")
@Stability(Stable)
public class CfnTopic
extends CfnResource
implements IInspectable, ITopicRef
Resource Type definition for AWS::MSK::Topic.
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.*;
CfnTopic cfnTopic = CfnTopic.Builder.create(this, "MyCfnTopic")
.clusterArn("clusterArn")
.partitionCount(123)
.replicationFactor(123)
.topicName("topicName")
// the properties below are optional
.configs("configs")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested 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.interfaces.msk.ITopicRef
ITopicRef.Jsii$Default, ITopicRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnTopic(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnTopic(software.amazon.jsii.JsiiObjectRef objRef) CfnTopic(software.constructs.Construct scope, String id, CfnTopicProps props) Create a newAWS::MSK::Topic. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForTopic(ITopicRef resource) The Amazon Resource Name (ARN) of the topic.The Amazon Resource Name (ARN) of the MSK cluster.Base64 encoded configuration properties of the topic.The number of partitions for the topic.The replication factor for the topic.The name of the topic.A reference to a Topic resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanisCfnTopic(Object x) Checks whether the given object is a CfnTopic.renderProperties(Map<String, Object> props) voidsetClusterArn(String value) The Amazon Resource Name (ARN) of the MSK cluster.voidsetConfigs(String value) Base64 encoded configuration properties of the topic.voidsetPartitionCount(Number value) The number of partitions for the topic.voidsetReplicationFactor(Number value) The replication factor for the topic.voidsetTopicName(String value) The name of the topic.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, 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, isConstruct, withMethods 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.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods 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
-
CfnTopic
protected CfnTopic(software.amazon.jsii.JsiiObjectRef objRef) -
CfnTopic
protected CfnTopic(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnTopic
@Stability(Stable) public CfnTopic(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnTopicProps props) Create a newAWS::MSK::Topic.- 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
-
arnForTopic
- Parameters:
resource- This parameter is required.
-
isCfnTopic
Checks whether the given object is a CfnTopic.- Parameters:
x- This parameter is required.
-
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.
-
getAttrTopicArn
The Amazon Resource Name (ARN) of the topic. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTopicRef
A reference to a Topic resource.- Specified by:
getTopicRefin interfaceITopicRef
-
getClusterArn
The Amazon Resource Name (ARN) of the MSK cluster. -
setClusterArn
The Amazon Resource Name (ARN) of the MSK cluster. -
getPartitionCount
The number of partitions for the topic. -
setPartitionCount
The number of partitions for the topic. -
getReplicationFactor
The replication factor for the topic. -
setReplicationFactor
The replication factor for the topic. -
getTopicName
The name of the topic. -
setTopicName
The name of the topic. -
getConfigs
Base64 encoded configuration properties of the topic. -
setConfigs
Base64 encoded configuration properties of the topic.
-