Class: AWSCDK::IoT::CfnTopicRule::BatchConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnTopicRule::BatchConfigProperty
- Defined in:
- io_t/cfn_topic_rule.rb
Overview
Instance Attribute Summary collapse
- #batch_across_topics ⇒ Boolean, ... readonly
- #max_batch_open_ms ⇒ Numeric? readonly
- #max_batch_size ⇒ Numeric? readonly
- #max_batch_size_bytes ⇒ Numeric? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(batch_across_topics: nil, max_batch_open_ms: nil, max_batch_size: nil, max_batch_size_bytes: nil) ⇒ BatchConfigProperty
constructor
A new instance of BatchConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(batch_across_topics: nil, max_batch_open_ms: nil, max_batch_size: nil, max_batch_size_bytes: nil) ⇒ BatchConfigProperty
Returns a new instance of BatchConfigProperty.
993 994 995 996 997 998 999 1000 1001 1002 |
# File 'io_t/cfn_topic_rule.rb', line 993 def initialize(batch_across_topics: nil, max_batch_open_ms: nil, max_batch_size: nil, max_batch_size_bytes: nil) @batch_across_topics = batch_across_topics Jsii::Type.check_type(@batch_across_topics, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "batchAcrossTopics") unless @batch_across_topics.nil? @max_batch_open_ms = max_batch_open_ms Jsii::Type.check_type(@max_batch_open_ms, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxBatchOpenMs") unless @max_batch_open_ms.nil? @max_batch_size = max_batch_size Jsii::Type.check_type(@max_batch_size, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxBatchSize") unless @max_batch_size.nil? @max_batch_size_bytes = max_batch_size_bytes Jsii::Type.check_type(@max_batch_size_bytes, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxBatchSizeBytes") unless @max_batch_size_bytes.nil? end |
Instance Attribute Details
#batch_across_topics ⇒ Boolean, ... (readonly)
1006 1007 1008 |
# File 'io_t/cfn_topic_rule.rb', line 1006 def batch_across_topics @batch_across_topics end |
#max_batch_open_ms ⇒ Numeric? (readonly)
1009 1010 1011 |
# File 'io_t/cfn_topic_rule.rb', line 1009 def max_batch_open_ms @max_batch_open_ms end |
#max_batch_size ⇒ Numeric? (readonly)
1012 1013 1014 |
# File 'io_t/cfn_topic_rule.rb', line 1012 def max_batch_size @max_batch_size end |
#max_batch_size_bytes ⇒ Numeric? (readonly)
1015 1016 1017 |
# File 'io_t/cfn_topic_rule.rb', line 1015 def max_batch_size_bytes @max_batch_size_bytes end |
Class Method Details
.jsii_properties ⇒ Object
1017 1018 1019 1020 1021 1022 1023 1024 |
# File 'io_t/cfn_topic_rule.rb', line 1017 def self.jsii_properties { :batch_across_topics => "batchAcrossTopics", :max_batch_open_ms => "maxBatchOpenMs", :max_batch_size => "maxBatchSize", :max_batch_size_bytes => "maxBatchSizeBytes", } end |
Instance Method Details
#to_jsii ⇒ Object
1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 |
# File 'io_t/cfn_topic_rule.rb', line 1026 def to_jsii result = {} result.merge!({ "batchAcrossTopics" => @batch_across_topics, "maxBatchOpenMs" => @max_batch_open_ms, "maxBatchSize" => @max_batch_size, "maxBatchSizeBytes" => @max_batch_size_bytes, }) result.compact end |