Class: AWSCDK::SAM::CfnFunction::DestinationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SAM::CfnFunction::DestinationProperty
- Defined in:
- sam/cfn_function.rb
Overview
Instance Attribute Summary collapse
- #destination ⇒ String readonly
- #type ⇒ String? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(destination:, type: nil) ⇒ DestinationProperty
constructor
A new instance of DestinationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(destination:, type: nil) ⇒ DestinationProperty
Returns a new instance of DestinationProperty.
1515 1516 1517 1518 1519 1520 |
# File 'sam/cfn_function.rb', line 1515 def initialize(destination:, type: nil) @destination = destination Jsii::Type.check_type(@destination, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "destination") @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil? end |
Instance Attribute Details
#destination ⇒ String (readonly)
1524 1525 1526 |
# File 'sam/cfn_function.rb', line 1524 def destination @destination end |
#type ⇒ String? (readonly)
1527 1528 1529 |
# File 'sam/cfn_function.rb', line 1527 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
1529 1530 1531 1532 1533 1534 |
# File 'sam/cfn_function.rb', line 1529 def self.jsii_properties { :destination => "destination", :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
1536 1537 1538 1539 1540 1541 1542 1543 |
# File 'sam/cfn_function.rb', line 1536 def to_jsii result = {} result.merge!({ "destination" => @destination, "type" => @type, }) result.compact end |