Class: AWSCDK::SAM::CfnFunction::DestinationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sam/cfn_function.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(destination:, type: nil) ⇒ DestinationProperty

Returns a new instance of DestinationProperty.

Parameters:

  • destination (String)
  • type (String, nil) (defaults to: nil)


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

#destinationString (readonly)



1524
1525
1526
# File 'sam/cfn_function.rb', line 1524

def destination
  @destination
end

#typeString? (readonly)



1527
1528
1529
# File 'sam/cfn_function.rb', line 1527

def type
  @type
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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