Class: AWSCDK::QuickSight::CfnDashboard::SheetImageScalingConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_dashboard.rb

Overview

Determines how the image is scaled.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(scaling_type: nil) ⇒ SheetImageScalingConfigurationProperty

Returns a new instance of SheetImageScalingConfigurationProperty.

Parameters:

  • scaling_type (String, nil) (defaults to: nil)

    The scaling option to use when fitting the image inside the container.



27404
27405
27406
27407
# File 'quick_sight/cfn_dashboard.rb', line 27404

def initialize(scaling_type: nil)
  @scaling_type = scaling_type
  Jsii::Type.check_type(@scaling_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "scalingType") unless @scaling_type.nil?
end

Instance Attribute Details

#scaling_typeString? (readonly)

The scaling option to use when fitting the image inside the container.

Valid values are defined as follows:

  • SCALE_TO_WIDTH : The image takes up the entire width of the container. The image aspect ratio is preserved.
  • SCALE_TO_HEIGHT : The image takes up the entire height of the container. The image aspect ratio is preserved.
  • SCALE_TO_CONTAINER : The image takes up the entire width and height of the container. The image aspect ratio is not preserved.
  • SCALE_NONE : The image is displayed in its original size and is not scaled to the container.


27420
27421
27422
# File 'quick_sight/cfn_dashboard.rb', line 27420

def scaling_type
  @scaling_type
end

Class Method Details

.jsii_propertiesObject



27422
27423
27424
27425
27426
# File 'quick_sight/cfn_dashboard.rb', line 27422

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

Instance Method Details

#to_jsiiObject



27428
27429
27430
27431
27432
27433
27434
# File 'quick_sight/cfn_dashboard.rb', line 27428

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