Class: AWSCDK::SES::CfnMailManagerTrafficPolicy::PolicyStatementProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SES::CfnMailManagerTrafficPolicy::PolicyStatementProperty
- Defined in:
- ses/cfn_mail_manager_traffic_policy.rb
Overview
The structure containing traffic policy conditions and actions.
Instance Attribute Summary collapse
-
#action ⇒ String
readonly
The action that informs a traffic policy resource to either allow or block the email if it matches a condition in the policy statement.
-
#conditions ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::SES::CfnMailManagerTrafficPolicy::PolicyConditionProperty>
readonly
The list of conditions to apply to incoming messages for filtering email traffic.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(action:, conditions:) ⇒ PolicyStatementProperty
constructor
A new instance of PolicyStatementProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(action:, conditions:) ⇒ PolicyStatementProperty
Returns a new instance of PolicyStatementProperty.
1213 1214 1215 1216 1217 1218 |
# File 'ses/cfn_mail_manager_traffic_policy.rb', line 1213 def initialize(action:, conditions:) @action = action Jsii::Type.check_type(@action, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "action") @conditions = conditions Jsii::Type.check_type(@conditions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VzLkNmbk1haWxNYW5hZ2VyVHJhZmZpY1BvbGljeS5Qb2xpY3lDb25kaXRpb25Qcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "conditions") end |
Instance Attribute Details
#action ⇒ String (readonly)
The action that informs a traffic policy resource to either allow or block the email if it matches a condition in the policy statement.
1224 1225 1226 |
# File 'ses/cfn_mail_manager_traffic_policy.rb', line 1224 def action @action end |
#conditions ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::SES::CfnMailManagerTrafficPolicy::PolicyConditionProperty> (readonly)
The list of conditions to apply to incoming messages for filtering email traffic.
1229 1230 1231 |
# File 'ses/cfn_mail_manager_traffic_policy.rb', line 1229 def conditions @conditions end |
Class Method Details
.jsii_properties ⇒ Object
1231 1232 1233 1234 1235 1236 |
# File 'ses/cfn_mail_manager_traffic_policy.rb', line 1231 def self.jsii_properties { :action => "action", :conditions => "conditions", } end |
Instance Method Details
#to_jsii ⇒ Object
1238 1239 1240 1241 1242 1243 1244 1245 |
# File 'ses/cfn_mail_manager_traffic_policy.rb', line 1238 def to_jsii result = {} result.merge!({ "action" => @action, "conditions" => @conditions, }) result.compact end |