Class: AWSCDK::QuickSight::CfnTemplate::SheetImageScalingConfigurationProperty

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



24525
24526
24527
24528
# File 'quick_sight/cfn_template.rb', line 24525

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.


24541
24542
24543
# File 'quick_sight/cfn_template.rb', line 24541

def scaling_type
  @scaling_type
end

Class Method Details

.jsii_propertiesObject



24543
24544
24545
24546
24547
# File 'quick_sight/cfn_template.rb', line 24543

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

Instance Method Details

#to_jsiiObject



24549
24550
24551
24552
24553
24554
24555
# File 'quick_sight/cfn_template.rb', line 24549

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