Class: AWSCDK::SES::CfnMailManagerRuleSet::SendActionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SES::CfnMailManagerRuleSet::SendActionProperty
- Defined in:
- ses/cfn_mail_manager_rule_set.rb
Overview
Sends the email to the internet using the ses:SendRawEmail API.
Instance Attribute Summary collapse
-
#action_failure_policy ⇒ String?
readonly
A policy that states what to do in the case of failure.
-
#role_arn ⇒ String
readonly
The Amazon Resource Name (ARN) of the role to use for this action.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(role_arn:, action_failure_policy: nil) ⇒ SendActionProperty
constructor
A new instance of SendActionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(role_arn:, action_failure_policy: nil) ⇒ SendActionProperty
Returns a new instance of SendActionProperty.
2019 2020 2021 2022 2023 2024 |
# File 'ses/cfn_mail_manager_rule_set.rb', line 2019 def initialize(role_arn:, action_failure_policy: nil) @role_arn = role_arn Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn") @action_failure_policy = action_failure_policy Jsii::Type.check_type(@action_failure_policy, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "actionFailurePolicy") unless @action_failure_policy.nil? end |
Instance Attribute Details
#action_failure_policy ⇒ String? (readonly)
A policy that states what to do in the case of failure.
The action will fail if there are configuration errors. For example, the caller does not have the permissions to call the sendRawEmail API.
2039 2040 2041 |
# File 'ses/cfn_mail_manager_rule_set.rb', line 2039 def action_failure_policy @action_failure_policy end |
#role_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) of the role to use for this action.
This role must have access to the ses:SendRawEmail API.
2032 2033 2034 |
# File 'ses/cfn_mail_manager_rule_set.rb', line 2032 def role_arn @role_arn end |
Class Method Details
.jsii_properties ⇒ Object
2041 2042 2043 2044 2045 2046 |
# File 'ses/cfn_mail_manager_rule_set.rb', line 2041 def self.jsii_properties { :role_arn => "roleArn", :action_failure_policy => "actionFailurePolicy", } end |
Instance Method Details
#to_jsii ⇒ Object
2048 2049 2050 2051 2052 2053 2054 2055 |
# File 'ses/cfn_mail_manager_rule_set.rb', line 2048 def to_jsii result = {} result.merge!({ "roleArn" => @role_arn, "actionFailurePolicy" => @action_failure_policy, }) result.compact end |