Class: AWSCDK::MSK::CfnTopicProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MSK::CfnTopicProps
- Defined in:
- msk/cfn_topic_props.rb
Overview
Properties for defining a CfnTopic.
Instance Attribute Summary collapse
-
#cluster_arn ⇒ String
readonly
The Amazon Resource Name (ARN) of the MSK cluster.
-
#configs ⇒ String?
readonly
Base64 encoded configuration properties of the topic.
-
#partition_count ⇒ Numeric
readonly
The number of partitions for the topic.
-
#replication_factor ⇒ Numeric
readonly
The replication factor for the topic.
-
#topic_name ⇒ String
readonly
The name of the topic.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cluster_arn:, partition_count:, replication_factor:, topic_name:, configs: nil) ⇒ CfnTopicProps
constructor
A new instance of CfnTopicProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cluster_arn:, partition_count:, replication_factor:, topic_name:, configs: nil) ⇒ CfnTopicProps
Returns a new instance of CfnTopicProps.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'msk/cfn_topic_props.rb', line 14 def initialize(cluster_arn:, partition_count:, replication_factor:, topic_name:, configs: nil) @cluster_arn = cluster_arn Jsii::Type.check_type(@cluster_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clusterArn") @partition_count = partition_count Jsii::Type.check_type(@partition_count, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "partitionCount") @replication_factor = replication_factor Jsii::Type.check_type(@replication_factor, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "replicationFactor") @topic_name = topic_name Jsii::Type.check_type(@topic_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "topicName") @configs = configs Jsii::Type.check_type(@configs, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "configs") unless @configs.nil? end |
Instance Attribute Details
#cluster_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) of the MSK cluster.
31 32 33 |
# File 'msk/cfn_topic_props.rb', line 31 def cluster_arn @cluster_arn end |
#configs ⇒ String? (readonly)
Base64 encoded configuration properties of the topic.
51 52 53 |
# File 'msk/cfn_topic_props.rb', line 51 def configs @configs end |
#partition_count ⇒ Numeric (readonly)
The number of partitions for the topic.
36 37 38 |
# File 'msk/cfn_topic_props.rb', line 36 def partition_count @partition_count end |
#replication_factor ⇒ Numeric (readonly)
The replication factor for the topic.
41 42 43 |
# File 'msk/cfn_topic_props.rb', line 41 def replication_factor @replication_factor end |
#topic_name ⇒ String (readonly)
The name of the topic.
46 47 48 |
# File 'msk/cfn_topic_props.rb', line 46 def topic_name @topic_name end |
Class Method Details
.jsii_properties ⇒ Object
53 54 55 56 57 58 59 60 61 |
# File 'msk/cfn_topic_props.rb', line 53 def self.jsii_properties { :cluster_arn => "clusterArn", :partition_count => "partitionCount", :replication_factor => "replicationFactor", :topic_name => "topicName", :configs => "configs", } end |
Instance Method Details
#to_jsii ⇒ Object
63 64 65 66 67 68 69 70 71 72 73 |
# File 'msk/cfn_topic_props.rb', line 63 def to_jsii result = {} result.merge!({ "clusterArn" => @cluster_arn, "partitionCount" => @partition_count, "replicationFactor" => @replication_factor, "topicName" => @topic_name, "configs" => @configs, }) result.compact end |