Class: AWSCDK::Lambda::CfnEventInvokeConfig::OnSuccessProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lambda::CfnEventInvokeConfig::OnSuccessProperty
- Defined in:
- lambda/cfn_event_invoke_config.rb
Overview
A destination for events that were processed successfully.
To retain records of successful asynchronous invocations , you can configure an Amazon SNS topic, Amazon SQS queue, Lambda function, or Amazon EventBridge event bus as the destination.
OnSuccessis not supported inCreateEventSourceMappingorUpdateEventSourceMappingrequests.
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:) ⇒ OnSuccessProperty
constructor
A new instance of OnSuccessProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(destination:) ⇒ OnSuccessProperty
Returns a new instance of OnSuccessProperty.
641 642 643 644 |
# File 'lambda/cfn_event_invoke_config.rb', line 641 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.
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 .
652 653 654 |
# File 'lambda/cfn_event_invoke_config.rb', line 652 def destination @destination end |
Class Method Details
.jsii_properties ⇒ Object
654 655 656 657 658 |
# File 'lambda/cfn_event_invoke_config.rb', line 654 def self.jsii_properties { :destination => "destination", } end |
Instance Method Details
#to_jsii ⇒ Object
660 661 662 663 664 665 666 |
# File 'lambda/cfn_event_invoke_config.rb', line 660 def to_jsii result = {} result.merge!({ "destination" => @destination, }) result.compact end |