Class: AWSCDK::SES::CfnMailManagerRuleSet::SendActionProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(role_arn:, action_failure_policy: nil) ⇒ SendActionProperty

Returns a new instance of SendActionProperty.

Parameters:

  • role_arn (String)

    The Amazon Resource Name (ARN) of the role to use for this action.

  • action_failure_policy (String, nil) (defaults to: nil)

    A policy that states what to do in the case of failure.



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_policyString? (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_arnString (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_propertiesObject



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_jsiiObject



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