Class: AWSCDK::QuickSight::CfnTemplate::PercentVisibleRangeProperty

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



18973
18974
18975
18976
18977
18978
# File 'quick_sight/cfn_template.rb', line 18973

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.



18984
18985
18986
# File 'quick_sight/cfn_template.rb', line 18984

def from
  @from
end

#toNumeric? (readonly)

The top bound of the range.



18989
18990
18991
# File 'quick_sight/cfn_template.rb', line 18989

def to
  @to
end

Class Method Details

.jsii_propertiesObject



18991
18992
18993
18994
18995
18996
# File 'quick_sight/cfn_template.rb', line 18991

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

Instance Method Details

#to_jsiiObject



18998
18999
19000
19001
19002
19003
19004
19005
# File 'quick_sight/cfn_template.rb', line 18998

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