Class: AWSCDK::QuickSight::CfnAnalysis::SheetImageScalingConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_analysis.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.



26399
26400
26401
26402
# File 'quick_sight/cfn_analysis.rb', line 26399

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.


26415
26416
26417
# File 'quick_sight/cfn_analysis.rb', line 26415

def scaling_type
  @scaling_type
end

Class Method Details

.jsii_propertiesObject



26417
26418
26419
26420
26421
# File 'quick_sight/cfn_analysis.rb', line 26417

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

Instance Method Details

#to_jsiiObject



26423
26424
26425
26426
26427
26428
26429
# File 'quick_sight/cfn_analysis.rb', line 26423

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