Class: AWSCDK::SES::CfnReceiptRuleProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SES::CfnReceiptRuleProps
- Defined in:
- ses/cfn_receipt_rule_props.rb
Overview
Properties for defining a CfnReceiptRule.
Instance Attribute Summary collapse
-
#after ⇒ String?
readonly
The name of an existing rule after which the new rule is placed.
-
#rule ⇒ AWSCDK::IResolvable, AWSCDK::SES::CfnReceiptRule::RuleProperty
readonly
A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.
-
#rule_set_name ⇒ String
readonly
The name of the rule set where the receipt rule is added.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(rule:, rule_set_name:, after: nil) ⇒ CfnReceiptRuleProps
constructor
A new instance of CfnReceiptRuleProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(rule:, rule_set_name:, after: nil) ⇒ CfnReceiptRuleProps
Returns a new instance of CfnReceiptRuleProps.
12 13 14 15 16 17 18 19 |
# File 'ses/cfn_receipt_rule_props.rb', line 12 def initialize(rule:, rule_set_name:, after: nil) @rule = rule.is_a?(Hash) ? ::AWSCDK::SES::CfnReceiptRule::RuleProperty.new(**rule.transform_keys(&:to_sym)) : rule Jsii::Type.check_type(@rule, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZXMuQ2ZuUmVjZWlwdFJ1bGUuUnVsZVByb3BlcnR5In1dfX0=")), "rule") @rule_set_name = rule_set_name Jsii::Type.check_type(@rule_set_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ruleSetName") @after = after Jsii::Type.check_type(@after, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "after") unless @after.nil? end |
Instance Attribute Details
#after ⇒ String? (readonly)
The name of an existing rule after which the new rule is placed.
If this parameter is null, the new rule is inserted at the beginning of the rule list.
37 38 39 |
# File 'ses/cfn_receipt_rule_props.rb', line 37 def after @after end |
#rule ⇒ AWSCDK::IResolvable, AWSCDK::SES::CfnReceiptRule::RuleProperty (readonly)
A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.
25 26 27 |
# File 'ses/cfn_receipt_rule_props.rb', line 25 def rule @rule end |
#rule_set_name ⇒ String (readonly)
The name of the rule set where the receipt rule is added.
30 31 32 |
# File 'ses/cfn_receipt_rule_props.rb', line 30 def rule_set_name @rule_set_name end |
Class Method Details
.jsii_properties ⇒ Object
39 40 41 42 43 44 45 |
# File 'ses/cfn_receipt_rule_props.rb', line 39 def self.jsii_properties { :rule => "rule", :rule_set_name => "ruleSetName", :after => "after", } end |
Instance Method Details
#to_jsii ⇒ Object
47 48 49 50 51 52 53 54 55 |
# File 'ses/cfn_receipt_rule_props.rb', line 47 def to_jsii result = {} result.merge!({ "rule" => @rule, "ruleSetName" => @rule_set_name, "after" => @after, }) result.compact end |