Class: AWSCDK::SES::LambdaActionConfig
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SES::LambdaActionConfig
- Defined in:
- ses/lambda_action_config.rb
Overview
LambdaAction configuration.
Instance Attribute Summary collapse
-
#function_arn ⇒ String
readonly
The Amazon Resource Name (ARN) of the AWS Lambda function.
-
#invocation_type ⇒ String?
readonly
The invocation type of the AWS Lambda function.
-
#topic_arn ⇒ String?
readonly
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the Lambda action is executed.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(function_arn:, invocation_type: nil, topic_arn: nil) ⇒ LambdaActionConfig
constructor
A new instance of LambdaActionConfig.
- #to_jsii ⇒ Object
Constructor Details
#initialize(function_arn:, invocation_type: nil, topic_arn: nil) ⇒ LambdaActionConfig
Returns a new instance of LambdaActionConfig.
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_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) of the AWS Lambda function.
22 23 24 |
# File 'ses/lambda_action_config.rb', line 22 def function_arn @function_arn end |
#invocation_type ⇒ String? (readonly)
Note:
Default: 'Event'
The invocation type of the AWS Lambda function.
27 28 29 |
# File 'ses/lambda_action_config.rb', line 27 def invocation_type @invocation_type end |
#topic_arn ⇒ String? (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.
32 33 34 |
# File 'ses/lambda_action_config.rb', line 32 def topic_arn @topic_arn end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |