Class: AWSCDK::ElementalInference::CfnFeed::AspectRatioProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
elemental_inference/cfn_feed.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(height:, width:) ⇒ AspectRatioProperty

Returns a new instance of AspectRatioProperty.

Parameters:

  • height (Numeric)
  • width (Numeric)


545
546
547
548
549
550
# File 'elemental_inference/cfn_feed.rb', line 545

def initialize(height:, width:)
  @height = height
  Jsii::Type.check_type(@height, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "height")
  @width = width
  Jsii::Type.check_type(@width, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "width")
end

Instance Attribute Details

#heightNumeric (readonly)



554
555
556
# File 'elemental_inference/cfn_feed.rb', line 554

def height
  @height
end

#widthNumeric (readonly)



557
558
559
# File 'elemental_inference/cfn_feed.rb', line 557

def width
  @width
end

Class Method Details

.jsii_propertiesObject



559
560
561
562
563
564
# File 'elemental_inference/cfn_feed.rb', line 559

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

Instance Method Details

#to_jsiiObject



566
567
568
569
570
571
572
573
# File 'elemental_inference/cfn_feed.rb', line 566

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