Class: AWSCDK::Lambda::CfnEventInvokeConfig::OnFailureProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(destination:) ⇒ OnFailureProperty

Returns a new instance of OnFailureProperty.

Parameters:

  • destination (String)

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



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

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



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_jsiiObject



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