Class: AWSCDK::Lambda::DestinationOptions

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lambda/destination_options.rb

Overview

Options when binding a destination to a function.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:) ⇒ DestinationOptions

Returns a new instance of DestinationOptions.

Parameters:



8
9
10
11
# File 'lambda/destination_options.rb', line 8

def initialize(type:)
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGFtYmRhLkRlc3RpbmF0aW9uVHlwZSJ9")), "type")
end

Instance Attribute Details

#typeAWSCDK::Lambda::DestinationType (readonly)

The destination type.



16
17
18
# File 'lambda/destination_options.rb', line 16

def type
  @type
end

Class Method Details

.jsii_propertiesObject



18
19
20
21
22
# File 'lambda/destination_options.rb', line 18

def self.jsii_properties
  {
    :type => "type",
  }
end

Instance Method Details

#to_jsiiObject



24
25
26
27
28
29
30
# File 'lambda/destination_options.rb', line 24

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