Class: AWSCDK::Pipes::CfnPipe::PipeSourceActiveMQBrokerParametersProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Pipes::CfnPipe::PipeSourceActiveMQBrokerParametersProperty
- Defined in:
- pipes/cfn_pipe.rb
Overview
The parameters for using an Active MQ broker as a source.
Instance Attribute Summary collapse
-
#batch_size ⇒ Numeric?
readonly
The maximum number of records to include in each batch.
-
#credentials ⇒ AWSCDK::IResolvable, AWSCDK::Pipes::CfnPipe::MQBrokerAccessCredentialsProperty
readonly
The credentials needed to access the resource.
-
#maximum_batching_window_in_seconds ⇒ Numeric?
readonly
The maximum length of a time to wait for events.
-
#queue_name ⇒ String
readonly
The name of the destination queue to consume.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(credentials:, queue_name:, batch_size: nil, maximum_batching_window_in_seconds: nil) ⇒ PipeSourceActiveMQBrokerParametersProperty
constructor
A new instance of PipeSourceActiveMQBrokerParametersProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(credentials:, queue_name:, batch_size: nil, maximum_batching_window_in_seconds: nil) ⇒ PipeSourceActiveMQBrokerParametersProperty
Returns a new instance of PipeSourceActiveMQBrokerParametersProperty.
2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 |
# File 'pipes/cfn_pipe.rb', line 2247 def initialize(credentials:, queue_name:, batch_size: nil, maximum_batching_window_in_seconds: nil) @credentials = credentials.is_a?(Hash) ? ::AWSCDK::Pipes::CfnPipe::MQBrokerAccessCredentialsProperty.new(**credentials.transform_keys(&:to_sym)) : credentials Jsii::Type.check_type(@credentials, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19waXBlcy5DZm5QaXBlLk1RQnJva2VyQWNjZXNzQ3JlZGVudGlhbHNQcm9wZXJ0eSJ9XX19")), "credentials") @queue_name = queue_name Jsii::Type.check_type(@queue_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "queueName") @batch_size = batch_size Jsii::Type.check_type(@batch_size, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "batchSize") unless @batch_size.nil? @maximum_batching_window_in_seconds = maximum_batching_window_in_seconds Jsii::Type.check_type(@maximum_batching_window_in_seconds, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maximumBatchingWindowInSeconds") unless @maximum_batching_window_in_seconds.nil? end |
Instance Attribute Details
#batch_size ⇒ Numeric? (readonly)
The maximum number of records to include in each batch.
2272 2273 2274 |
# File 'pipes/cfn_pipe.rb', line 2272 def batch_size @batch_size end |
#credentials ⇒ AWSCDK::IResolvable, AWSCDK::Pipes::CfnPipe::MQBrokerAccessCredentialsProperty (readonly)
The credentials needed to access the resource.
2262 2263 2264 |
# File 'pipes/cfn_pipe.rb', line 2262 def credentials @credentials end |
#maximum_batching_window_in_seconds ⇒ Numeric? (readonly)
The maximum length of a time to wait for events.
2277 2278 2279 |
# File 'pipes/cfn_pipe.rb', line 2277 def maximum_batching_window_in_seconds @maximum_batching_window_in_seconds end |
#queue_name ⇒ String (readonly)
The name of the destination queue to consume.
2267 2268 2269 |
# File 'pipes/cfn_pipe.rb', line 2267 def queue_name @queue_name end |
Class Method Details
.jsii_properties ⇒ Object
2279 2280 2281 2282 2283 2284 2285 2286 |
# File 'pipes/cfn_pipe.rb', line 2279 def self.jsii_properties { :credentials => "credentials", :queue_name => "queueName", :batch_size => "batchSize", :maximum_batching_window_in_seconds => "maximumBatchingWindowInSeconds", } end |
Instance Method Details
#to_jsii ⇒ Object
2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 |
# File 'pipes/cfn_pipe.rb', line 2288 def to_jsii result = {} result.merge!({ "credentials" => @credentials, "queueName" => @queue_name, "batchSize" => @batch_size, "maximumBatchingWindowInSeconds" => @maximum_batching_window_in_seconds, }) result.compact end |