Class: AWSCDK::SES::CfnMailManagerTrafficPolicy::PolicyStatementProperty

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

Overview

The structure containing traffic policy conditions and actions.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action:, conditions:) ⇒ PolicyStatementProperty

Returns a new instance of PolicyStatementProperty.

Parameters:



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

#actionString (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

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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