Class: AWSCDK::SES::FirehoseDeliveryStreamDestination

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

Overview

An object that defines an Amazon Data Firehose destination for email events.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(delivery_stream:, role: nil) ⇒ FirehoseDeliveryStreamDestination

Returns a new instance of FirehoseDeliveryStreamDestination.

Parameters:

  • delivery_stream (AWSCDK::KinesisFirehose::IDeliveryStream)

    The Amazon Data Firehose stream that the Amazon SES API v2 sends email events to.

  • role (AWSCDK::IAM::IRole, nil) (defaults to: nil)

    The IAM role that the Amazon SES API v2 uses to send email events to the Amazon Data Firehose stream.



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

def initialize(delivery_stream:, role: nil)
  @delivery_stream = delivery_stream
  Jsii::Type.check_type(@delivery_stream, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfa2luZXNpc2ZpcmVob3NlLklEZWxpdmVyeVN0cmVhbSJ9")), "deliveryStream")
  @role = role
  Jsii::Type.check_type(@role, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklSb2xlIn0=")), "role") unless @role.nil?
end

Instance Attribute Details

#delivery_streamAWSCDK::KinesisFirehose::IDeliveryStream (readonly)

The Amazon Data Firehose stream that the Amazon SES API v2 sends email events to.



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

def delivery_stream
  @delivery_stream
end

#roleAWSCDK::IAM::IRole? (readonly)

Note:

Default: - Create IAM Role for Amazon Data Firehose Delivery stream

The IAM role that the Amazon SES API v2 uses to send email events to the Amazon Data Firehose stream.

Returns:



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

def role
  @role
end

Class Method Details

.jsii_propertiesObject



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

def self.jsii_properties
  {
    :delivery_stream => "deliveryStream",
    :role => "role",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "deliveryStream" => @delivery_stream,
    "role" => @role,
  })
  result.compact
end