Class: AWSCDK::KinesisFirehose::CfnDeliveryStream::ElasticsearchRetryOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::KinesisFirehose::CfnDeliveryStream::ElasticsearchRetryOptionsProperty
- Defined in:
- kinesis_firehose/cfn_delivery_stream.rb
Overview
The ElasticsearchRetryOptions property type configures the retry behavior for when Amazon Kinesis Data Firehose (Kinesis Data Firehose) can't deliver data to Amazon Elasticsearch Service (Amazon ES).
Instance Attribute Summary collapse
-
#duration_in_seconds ⇒ Numeric?
readonly
After an initial failure to deliver to Amazon ES, the total amount of time during which Kinesis Data Firehose re-attempts delivery (including the first attempt).
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(duration_in_seconds: nil) ⇒ ElasticsearchRetryOptionsProperty
constructor
A new instance of ElasticsearchRetryOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(duration_in_seconds: nil) ⇒ ElasticsearchRetryOptionsProperty
Returns a new instance of ElasticsearchRetryOptionsProperty.
2457 2458 2459 2460 |
# File 'kinesis_firehose/cfn_delivery_stream.rb', line 2457 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_seconds ⇒ Numeric? (readonly)
After an initial failure to deliver to Amazon ES, the total amount of time during which Kinesis Data Firehose re-attempts delivery (including the first attempt).
If Kinesis Data Firehose can't deliver the data within the specified time, it writes the data to the backup S3 bucket. For valid values, see the DurationInSeconds content for the ElasticsearchRetryOptions data type in the Amazon Kinesis Data Firehose API Reference .
2468 2469 2470 |
# File 'kinesis_firehose/cfn_delivery_stream.rb', line 2468 def duration_in_seconds @duration_in_seconds end |
Class Method Details
.jsii_properties ⇒ Object
2470 2471 2472 2473 2474 |
# File 'kinesis_firehose/cfn_delivery_stream.rb', line 2470 def self.jsii_properties { :duration_in_seconds => "durationInSeconds", } end |
Instance Method Details
#to_jsii ⇒ Object
2476 2477 2478 2479 2480 2481 2482 |
# File 'kinesis_firehose/cfn_delivery_stream.rb', line 2476 def to_jsii result = {} result.merge!({ "durationInSeconds" => @duration_in_seconds, }) result.compact end |