Class: AWSCDK::Lambda::CfnEventInvokeConfig::OnFailureProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lambda::CfnEventInvokeConfig::OnFailureProperty
- Defined in:
- lambda/cfn_event_invoke_config.rb
Overview
A destination for events that failed processing.
For more information, see Adding a destination .
Instance Attribute Summary collapse
-
#destination ⇒ String
readonly
The Amazon Resource Name (ARN) of the destination resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(destination:) ⇒ OnFailureProperty
constructor
A new instance of OnFailureProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(destination:) ⇒ OnFailureProperty
Returns a new instance of OnFailureProperty.
598 599 600 601 |
# File 'lambda/cfn_event_invoke_config.rb', line 598 def initialize(destination:) @destination = destination Jsii::Type.check_type(@destination, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "destination") end |
Instance Attribute Details
#destination ⇒ String (readonly)
The Amazon Resource Name (ARN) of the destination resource.
To retain records of failed invocations from Kinesis , DynamoDB , self-managed Apache Kafka , or Amazon MSK , you can configure an Amazon SNS topic, Amazon SQS queue, Amazon S3 bucket, or Kafka topic as the destination.
Amazon SNS destinations have a message size limit of 256 KB. If the combined size of the function request and response payload exceeds the limit, Lambda will drop the payload when sending
OnFailureevent to the destination. For details on this behavior, refer to Retaining records of asynchronous invocations .
To retain records of failed invocations from Kinesis , DynamoDB , self-managed Kafka or Amazon MSK , you can configure an Amazon SNS topic, Amazon SQS queue, or Amazon S3 bucket as the destination.
613 614 615 |
# File 'lambda/cfn_event_invoke_config.rb', line 613 def destination @destination end |
Class Method Details
.jsii_properties ⇒ Object
615 616 617 618 619 |
# File 'lambda/cfn_event_invoke_config.rb', line 615 def self.jsii_properties { :destination => "destination", } end |
Instance Method Details
#to_jsii ⇒ Object
621 622 623 624 625 626 627 |
# File 'lambda/cfn_event_invoke_config.rb', line 621 def to_jsii result = {} result.merge!({ "destination" => @destination, }) result.compact end |