Class: AWSCDK::Lambda::DestinationOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lambda::DestinationOptions
- Defined in:
- lambda/destination_options.rb
Overview
Options when binding a destination to a function.
Instance Attribute Summary collapse
-
#type ⇒ AWSCDK::Lambda::DestinationType
readonly
The destination type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:) ⇒ DestinationOptions
constructor
A new instance of DestinationOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:) ⇒ DestinationOptions
Returns a new instance of DestinationOptions.
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
#type ⇒ AWSCDK::Lambda::DestinationType (readonly)
The destination type.
16 17 18 |
# File 'lambda/destination_options.rb', line 16 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
18 19 20 21 22 |
# File 'lambda/destination_options.rb', line 18 def self.jsii_properties { :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
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 |