Class: AWSCDK::SES::DropSpamReceiptRule
- Inherits:
-
Constructs::Construct
- Object
- Constructs::Construct
- AWSCDK::SES::DropSpamReceiptRule
- Defined in:
- ses/drop_spam_receipt_rule.rb
Overview
A rule added at the top of the rule set to drop spam/virus.
Class Method Summary collapse
- .jsii_overridable_methods ⇒ Object
-
.PROPERTY_INJECTION_ID ⇒ String
Uniquely identifies this class.
Instance Method Summary collapse
-
#initialize(scope, id, props) ⇒ DropSpamReceiptRule
constructor
A new instance of DropSpamReceiptRule.
-
#node ⇒ Constructs::Node
The tree node.
- #rule ⇒ AWSCDK::SES::ReceiptRule
-
#to_string ⇒ String
Returns a string representation of this construct.
-
#with(*mixins) ⇒ Constructs::IConstruct
Applies one or more mixins to this construct.
Constructor Details
#initialize(scope, id, props) ⇒ DropSpamReceiptRule
Returns a new instance of DropSpamReceiptRule.
13 14 15 16 17 18 19 |
# File 'ses/drop_spam_receipt_rule.rb', line 13 def initialize(scope, id, props) props = props.is_a?(Hash) ? ::AWSCDK::SES::DropSpamReceiptRuleProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VzLkRyb3BTcGFtUmVjZWlwdFJ1bGVQcm9wcyJ9")), "props") Jsii::Object.instance_method(:initialize).bind(self).call(scope, id, props) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'ses/drop_spam_receipt_rule.rb', line 21 def self.jsii_overridable_methods { :node => { kind: :property, name: "node", is_optional: false }, :rule => { kind: :property, name: "rule", is_optional: false }, :to_string => { kind: :method, name: "toString", is_optional: false }, :with => { kind: :method, name: "with", is_optional: false }, } end |
.PROPERTY_INJECTION_ID ⇒ String
Uniquely identifies this class.
40 41 42 |
# File 'ses/drop_spam_receipt_rule.rb', line 40 def self.PROPERTY_INJECTION_ID() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_ses.DropSpamReceiptRule", "PROPERTY_INJECTION_ID") end |
Instance Method Details
#node ⇒ Constructs::Node
The tree node.
33 34 35 |
# File 'ses/drop_spam_receipt_rule.rb', line 33 def node() jsii_get_property("node") end |
#rule ⇒ AWSCDK::SES::ReceiptRule
45 46 47 |
# File 'ses/drop_spam_receipt_rule.rb', line 45 def rule() jsii_get_property("rule") end |
#to_string ⇒ String
Returns a string representation of this construct.
52 53 54 |
# File 'ses/drop_spam_receipt_rule.rb', line 52 def to_string() jsii_call_method("toString", []) end |
#with(*mixins) ⇒ Constructs::IConstruct
Applies one or more mixins to this construct.
Mixins are applied in order. The list of constructs is captured at the
start of the call, so constructs added by a mixin will not be visited.
Use multiple with() calls if subsequent mixins should apply to added
constructs.
65 66 67 68 69 70 |
# File 'ses/drop_spam_receipt_rule.rb', line 65 def with(*mixins) mixins.each_with_index do |item, index| Jsii::Type.check_type(item, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLklNaXhpbiJ9")), "mixins[#{index}]") end jsii_call_method("with", [*mixins]) end |