Class: AWSCDK::KinesisFirehose::CfnDeliveryStream::RedshiftRetryOptionsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
kinesis_firehose/cfn_delivery_stream.rb

Overview

Configures retry behavior in case Firehose is unable to deliver documents to Amazon Redshift.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(duration_in_seconds: nil) ⇒ RedshiftRetryOptionsProperty

Returns a new instance of RedshiftRetryOptionsProperty.

Parameters:

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

    The length of time during which Firehose retries delivery after a failure, starting from the initial request and including the first attempt.



4076
4077
4078
4079
# File 'kinesis_firehose/cfn_delivery_stream.rb', line 4076

def initialize(duration_in_seconds: nil)
  @duration_in_seconds = duration_in_seconds
  Jsii::Type.check_type(@duration_in_seconds, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "durationInSeconds") unless @duration_in_seconds.nil?
end

Instance Attribute Details

#duration_in_secondsNumeric? (readonly)

The length of time during which Firehose retries delivery after a failure, starting from the initial request and including the first attempt.

The default value is 3600 seconds (60 minutes). Firehose does not retry if the value of DurationInSeconds is 0 (zero) or if the first delivery attempt takes longer than the current value.



4087
4088
4089
# File 'kinesis_firehose/cfn_delivery_stream.rb', line 4087

def duration_in_seconds
  @duration_in_seconds
end

Class Method Details

.jsii_propertiesObject



4089
4090
4091
4092
4093
# File 'kinesis_firehose/cfn_delivery_stream.rb', line 4089

def self.jsii_properties
  {
    :duration_in_seconds => "durationInSeconds",
  }
end

Instance Method Details

#to_jsiiObject



4095
4096
4097
4098
4099
4100
4101
# File 'kinesis_firehose/cfn_delivery_stream.rb', line 4095

def to_jsii
  result = {}
  result.merge!({
    "durationInSeconds" => @duration_in_seconds,
  })
  result.compact
end