Class: AWSCDK::QuickSight::CfnTemplate::SheetImageScalingConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::SheetImageScalingConfigurationProperty
- Defined in:
- quick_sight/cfn_template.rb
Overview
Determines how the image is scaled.
Instance Attribute Summary collapse
-
#scaling_type ⇒ String?
readonly
The scaling option to use when fitting the image inside the container.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(scaling_type: nil) ⇒ SheetImageScalingConfigurationProperty
constructor
A new instance of SheetImageScalingConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(scaling_type: nil) ⇒ SheetImageScalingConfigurationProperty
Returns a new instance of SheetImageScalingConfigurationProperty.
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_type ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |