Class: AWSCDK::Lambda::CfnEventInvokeConfig::OnSuccessProperty

Inherits:
Jsii::Struct
  • Object
show all
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.

OnSuccess is not supported in CreateEventSourceMapping or UpdateEventSourceMapping requests.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(destination:) ⇒ OnSuccessProperty

Returns a new instance of OnSuccessProperty.

Parameters:

  • destination (String)

    The Amazon Resource Name (ARN) of the destination resource.



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

#destinationString (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 OnFailure event 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_propertiesObject



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_jsiiObject



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