Class: AWSCDK::QuickSight::CfnAnalysis::SheetImageScalingConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::SheetImageScalingConfigurationProperty
- Defined in:
- quick_sight/cfn_analysis.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.
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_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.
26415 26416 26417 |
# File 'quick_sight/cfn_analysis.rb', line 26415 def scaling_type @scaling_type end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |