Class: AWSCDK::SES::CfnReceiptRule::StopActionProperty

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

Overview

When included in a receipt rule, this action terminates the evaluation of the receipt rule set and, optionally, publishes a notification to Amazon Simple Notification Service (Amazon SNS).

For information about setting a stop action in a receipt rule, see the Amazon SES Developer Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(scope:, topic_arn: nil) ⇒ StopActionProperty

Returns a new instance of StopActionProperty.

Parameters:

  • scope (String)

    The scope of the StopAction.

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

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



1133
1134
1135
1136
1137
1138
# File 'ses/cfn_receipt_rule.rb', line 1133

def initialize(scope:, topic_arn: nil)
  @scope = scope
  Jsii::Type.check_type(@scope, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "scope")
  @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

#scopeString (readonly)

The scope of the StopAction.

The only acceptable value is RuleSet .



1146
1147
1148
# File 'ses/cfn_receipt_rule.rb', line 1146

def scope
  @scope
end

#topic_arnString? (readonly)

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

You can find the ARN of a topic by using the ListTopics Amazon SNS operation.

For more information about Amazon SNS topics, see the Amazon SNS Developer Guide .



1155
1156
1157
# File 'ses/cfn_receipt_rule.rb', line 1155

def topic_arn
  @topic_arn
end

Class Method Details

.jsii_propertiesObject



1157
1158
1159
1160
1161
1162
# File 'ses/cfn_receipt_rule.rb', line 1157

def self.jsii_properties
  {
    :scope => "scope",
    :topic_arn => "topicArn",
  }
end

Instance Method Details

#to_jsiiObject



1164
1165
1166
1167
1168
1169
1170
1171
# File 'ses/cfn_receipt_rule.rb', line 1164

def to_jsii
  result = {}
  result.merge!({
    "scope" => @scope,
    "topicArn" => @topic_arn,
  })
  result.compact
end