Class: AWSCDK::QuickSight::CfnDashboard::PercentVisibleRangeProperty

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

Overview

The percent range in the visible range.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(from: nil, to: nil) ⇒ PercentVisibleRangeProperty

Returns a new instance of PercentVisibleRangeProperty.

Parameters:

  • from (Numeric, nil) (defaults to: nil)

    The lower bound of the range.

  • to (Numeric, nil) (defaults to: nil)

    The top bound of the range.



21819
21820
21821
21822
21823
21824
# File 'quick_sight/cfn_dashboard.rb', line 21819

def initialize(from: nil, to: nil)
  @from = from
  Jsii::Type.check_type(@from, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "from") unless @from.nil?
  @to = to
  Jsii::Type.check_type(@to, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "to") unless @to.nil?
end

Instance Attribute Details

#fromNumeric? (readonly)

The lower bound of the range.



21830
21831
21832
# File 'quick_sight/cfn_dashboard.rb', line 21830

def from
  @from
end

#toNumeric? (readonly)

The top bound of the range.



21835
21836
21837
# File 'quick_sight/cfn_dashboard.rb', line 21835

def to
  @to
end

Class Method Details

.jsii_propertiesObject



21837
21838
21839
21840
21841
21842
# File 'quick_sight/cfn_dashboard.rb', line 21837

def self.jsii_properties
  {
    :from => "from",
    :to => "to",
  }
end

Instance Method Details

#to_jsiiObject



21844
21845
21846
21847
21848
21849
21850
21851
# File 'quick_sight/cfn_dashboard.rb', line 21844

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