Class: AWSCDK::Pipes::CfnPipe::PipeSourceSQSQueueParametersProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pipes/cfn_pipe.rb

Overview

The parameters for using a Amazon SQS stream as a source.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(batch_size: nil, maximum_batching_window_in_seconds: nil) ⇒ PipeSourceSQSQueueParametersProperty

Returns a new instance of PipeSourceSQSQueueParametersProperty.

Parameters:

  • batch_size (Numeric, nil) (defaults to: nil)

    The maximum number of records to include in each batch.

  • maximum_batching_window_in_seconds (Numeric, nil) (defaults to: nil)

    The maximum length of a time to wait for events.



2922
2923
2924
2925
2926
2927
# File 'pipes/cfn_pipe.rb', line 2922

def initialize(batch_size: nil, maximum_batching_window_in_seconds: nil)
  @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_sizeNumeric? (readonly)

The maximum number of records to include in each batch.



2933
2934
2935
# File 'pipes/cfn_pipe.rb', line 2933

def batch_size
  @batch_size
end

#maximum_batching_window_in_secondsNumeric? (readonly)

The maximum length of a time to wait for events.



2938
2939
2940
# File 'pipes/cfn_pipe.rb', line 2938

def maximum_batching_window_in_seconds
  @maximum_batching_window_in_seconds
end

Class Method Details

.jsii_propertiesObject



2940
2941
2942
2943
2944
2945
# File 'pipes/cfn_pipe.rb', line 2940

def self.jsii_properties
  {
    :batch_size => "batchSize",
    :maximum_batching_window_in_seconds => "maximumBatchingWindowInSeconds",
  }
end

Instance Method Details

#to_jsiiObject



2947
2948
2949
2950
2951
2952
2953
2954
# File 'pipes/cfn_pipe.rb', line 2947

def to_jsii
  result = {}
  result.merge!({
    "batchSize" => @batch_size,
    "maximumBatchingWindowInSeconds" => @maximum_batching_window_in_seconds,
  })
  result.compact
end