Class: AWSCDK::Pipes::CfnPipe::PipeSourceRabbitMQBrokerParametersProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Pipes::CfnPipe::PipeSourceRabbitMQBrokerParametersProperty
- Defined in:
- pipes/cfn_pipe.rb
Overview
The parameters for using a Rabbit 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.
-
#virtual_host ⇒ String?
readonly
The name of the virtual host associated with the source broker.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(credentials:, queue_name:, batch_size: nil, maximum_batching_window_in_seconds: nil, virtual_host: nil) ⇒ PipeSourceRabbitMQBrokerParametersProperty
constructor
A new instance of PipeSourceRabbitMQBrokerParametersProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(credentials:, queue_name:, batch_size: nil, maximum_batching_window_in_seconds: nil, virtual_host: nil) ⇒ PipeSourceRabbitMQBrokerParametersProperty
Returns a new instance of PipeSourceRabbitMQBrokerParametersProperty.
2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 |
# File 'pipes/cfn_pipe.rb', line 2737 def initialize(credentials:, queue_name:, batch_size: nil, maximum_batching_window_in_seconds: nil, virtual_host: 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? @virtual_host = virtual_host Jsii::Type.check_type(@virtual_host, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "virtualHost") unless @virtual_host.nil? end |
Instance Attribute Details
#batch_size ⇒ Numeric? (readonly)
The maximum number of records to include in each batch.
2764 2765 2766 |
# File 'pipes/cfn_pipe.rb', line 2764 def batch_size @batch_size end |
#credentials ⇒ AWSCDK::IResolvable, AWSCDK::Pipes::CfnPipe::MQBrokerAccessCredentialsProperty (readonly)
The credentials needed to access the resource.
2754 2755 2756 |
# File 'pipes/cfn_pipe.rb', line 2754 def credentials @credentials end |
#maximum_batching_window_in_seconds ⇒ Numeric? (readonly)
The maximum length of a time to wait for events.
2769 2770 2771 |
# File 'pipes/cfn_pipe.rb', line 2769 def maximum_batching_window_in_seconds @maximum_batching_window_in_seconds end |
#queue_name ⇒ String (readonly)
The name of the destination queue to consume.
2759 2760 2761 |
# File 'pipes/cfn_pipe.rb', line 2759 def queue_name @queue_name end |
#virtual_host ⇒ String? (readonly)
The name of the virtual host associated with the source broker.
2774 2775 2776 |
# File 'pipes/cfn_pipe.rb', line 2774 def virtual_host @virtual_host end |
Class Method Details
.jsii_properties ⇒ Object
2776 2777 2778 2779 2780 2781 2782 2783 2784 |
# File 'pipes/cfn_pipe.rb', line 2776 def self.jsii_properties { :credentials => "credentials", :queue_name => "queueName", :batch_size => "batchSize", :maximum_batching_window_in_seconds => "maximumBatchingWindowInSeconds", :virtual_host => "virtualHost", } end |
Instance Method Details
#to_jsii ⇒ Object
2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 |
# File 'pipes/cfn_pipe.rb', line 2786 def to_jsii result = {} result.merge!({ "credentials" => @credentials, "queueName" => @queue_name, "batchSize" => @batch_size, "maximumBatchingWindowInSeconds" => @maximum_batching_window_in_seconds, "virtualHost" => @virtual_host, }) result.compact end |