Class: AWSCDK::QuickSight::CfnDashboard::GradientStopProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::GradientStopProperty
- Defined in:
- quick_sight/cfn_dashboard.rb
Overview
Determines the gradient stop configuration.
Instance Attribute Summary collapse
-
#color ⇒ String?
readonly
Determines the color.
-
#data_value ⇒ Numeric?
readonly
Determines the data value.
-
#gradient_offset ⇒ Numeric
readonly
Determines gradient offset value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(gradient_offset:, color: nil, data_value: nil) ⇒ GradientStopProperty
constructor
A new instance of GradientStopProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(gradient_offset:, color: nil, data_value: nil) ⇒ GradientStopProperty
Returns a new instance of GradientStopProperty.
15403 15404 15405 15406 15407 15408 15409 15410 |
# File 'quick_sight/cfn_dashboard.rb', line 15403 def initialize(gradient_offset:, color: nil, data_value: nil) @gradient_offset = gradient_offset Jsii::Type.check_type(@gradient_offset, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "gradientOffset") @color = color Jsii::Type.check_type(@color, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "color") unless @color.nil? @data_value = data_value Jsii::Type.check_type(@data_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "dataValue") unless @data_value.nil? end |
Instance Attribute Details
#color ⇒ String? (readonly)
Determines the color.
15422 15423 15424 |
# File 'quick_sight/cfn_dashboard.rb', line 15422 def color @color end |
#data_value ⇒ Numeric? (readonly)
Determines the data value.
15427 15428 15429 |
# File 'quick_sight/cfn_dashboard.rb', line 15427 def data_value @data_value end |
#gradient_offset ⇒ Numeric (readonly)
Note:
Default: - 0
Determines gradient offset value.
15417 15418 15419 |
# File 'quick_sight/cfn_dashboard.rb', line 15417 def gradient_offset @gradient_offset end |
Class Method Details
.jsii_properties ⇒ Object
15429 15430 15431 15432 15433 15434 15435 |
# File 'quick_sight/cfn_dashboard.rb', line 15429 def self.jsii_properties { :gradient_offset => "gradientOffset", :color => "color", :data_value => "dataValue", } end |
Instance Method Details
#to_jsii ⇒ Object
15437 15438 15439 15440 15441 15442 15443 15444 15445 |
# File 'quick_sight/cfn_dashboard.rb', line 15437 def to_jsii result = {} result.merge!({ "gradientOffset" => @gradient_offset, "color" => @color, "dataValue" => @data_value, }) result.compact end |