Class: AWSCDK::SES::WorkmailActionConfig

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

Overview

WorkmailAction configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(organization_arn:, topic_arn: nil) ⇒ WorkmailActionConfig

Returns a new instance of WorkmailActionConfig.

Parameters:

  • organization_arn (String)

    The Amazon Resource Name (ARN) of the Amazon WorkMail organization.

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

    The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the WorkMail action is called.



9
10
11
12
13
14
# File 'ses/workmail_action_config.rb', line 9

def initialize(organization_arn:, topic_arn: nil)
  @organization_arn = organization_arn
  Jsii::Type.check_type(@organization_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "organizationArn")
  @topic_arn = topic_arn
  Jsii::Type.check_type(@topic_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "topicArn") unless @topic_arn.nil?
end

Instance Attribute Details

#organization_arnString (readonly)

The Amazon Resource Name (ARN) of the Amazon WorkMail organization.

Returns:

  • (String)


19
20
21
# File 'ses/workmail_action_config.rb', line 19

def organization_arn
  @organization_arn
end

#topic_arnString? (readonly)

Note:

Default: - No notification is sent to SNS.

The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the WorkMail action is called.

Returns:

  • (String, nil)


24
25
26
# File 'ses/workmail_action_config.rb', line 24

def topic_arn
  @topic_arn
end

Class Method Details

.jsii_propertiesObject



26
27
28
29
30
31
# File 'ses/workmail_action_config.rb', line 26

def self.jsii_properties
  {
    :organization_arn => "organizationArn",
    :topic_arn => "topicArn",
  }
end

Instance Method Details

#to_jsiiObject



33
34
35
36
37
38
39
40
# File 'ses/workmail_action_config.rb', line 33

def to_jsii
  result = {}
  result.merge!({
    "organizationArn" => @organization_arn,
    "topicArn" => @topic_arn,
  })
  result.compact
end