Class: AWSCDK::SES::LambdaActionConfig

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ses/lambda_action_config.rb

Overview

LambdaAction configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(function_arn:, invocation_type: nil, topic_arn: nil) ⇒ LambdaActionConfig

Returns a new instance of LambdaActionConfig.

Parameters:

  • function_arn (String)

    The Amazon Resource Name (ARN) of the AWS Lambda function.

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

    The invocation type of the AWS Lambda function.

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

    The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the Lambda action is executed.



10
11
12
13
14
15
16
17
# File 'ses/lambda_action_config.rb', line 10

def initialize(function_arn:, invocation_type: nil, topic_arn: nil)
  @function_arn = function_arn
  Jsii::Type.check_type(@function_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "functionArn")
  @invocation_type = invocation_type
  Jsii::Type.check_type(@invocation_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "invocationType") unless @invocation_type.nil?
  @topic_arn = topic_arn
  Jsii::Type.check_type(@topic_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "topicArn") unless @topic_arn.nil?
end

Instance Attribute Details

#function_arnString (readonly)

The Amazon Resource Name (ARN) of the AWS Lambda function.

Returns:

  • (String)


22
23
24
# File 'ses/lambda_action_config.rb', line 22

def function_arn
  @function_arn
end

#invocation_typeString? (readonly)

Note:

Default: 'Event'

The invocation type of the AWS Lambda function.

Returns:

  • (String, nil)


27
28
29
# File 'ses/lambda_action_config.rb', line 27

def invocation_type
  @invocation_type
end

#topic_arnString? (readonly)

Note:

Default: - No notification is sent to SNS.

The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the Lambda action is executed.

Returns:

  • (String, nil)


32
33
34
# File 'ses/lambda_action_config.rb', line 32

def topic_arn
  @topic_arn
end

Class Method Details

.jsii_propertiesObject



34
35
36
37
38
39
40
# File 'ses/lambda_action_config.rb', line 34

def self.jsii_properties
  {
    :function_arn => "functionArn",
    :invocation_type => "invocationType",
    :topic_arn => "topicArn",
  }
end

Instance Method Details

#to_jsiiObject



42
43
44
45
46
47
48
49
50
# File 'ses/lambda_action_config.rb', line 42

def to_jsii
  result = {}
  result.merge!({
    "functionArn" => @function_arn,
    "invocationType" => @invocation_type,
    "topicArn" => @topic_arn,
  })
  result.compact
end