Class: AWSCDK::Lambda::CfnFunction::DeadLetterConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lambda/cfn_function.rb

Overview

The dead-letter queue for failed asynchronous invocations.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(target_arn: nil) ⇒ DeadLetterConfigProperty

Returns a new instance of DeadLetterConfigProperty.

Parameters:

  • target_arn (String, nil) (defaults to: nil)

    The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic.



1115
1116
1117
1118
# File 'lambda/cfn_function.rb', line 1115

def initialize(target_arn: nil)
  @target_arn = target_arn
  Jsii::Type.check_type(@target_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "targetArn") unless @target_arn.nil?
end

Instance Attribute Details

#target_arnString? (readonly)

The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic.



1124
1125
1126
# File 'lambda/cfn_function.rb', line 1124

def target_arn
  @target_arn
end

Class Method Details

.jsii_propertiesObject



1126
1127
1128
1129
1130
# File 'lambda/cfn_function.rb', line 1126

def self.jsii_properties
  {
    :target_arn => "targetArn",
  }
end

Instance Method Details

#to_jsiiObject



1132
1133
1134
1135
1136
1137
1138
# File 'lambda/cfn_function.rb', line 1132

def to_jsii
  result = {}
  result.merge!({
    "targetArn" => @target_arn,
  })
  result.compact
end