Class: AWSCDK::QuickSight::CfnDashboard::GrowthRateComputationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::GrowthRateComputationProperty
- Defined in:
- quick_sight/cfn_dashboard.rb
Overview
The growth rate computation configuration.
Instance Attribute Summary collapse
-
#computation_id ⇒ String
readonly
The ID for a computation.
-
#name ⇒ String?
readonly
The name of a computation.
-
#period_size ⇒ Numeric?
readonly
The period size setup of a growth rate computation.
-
#time ⇒ AWSCDK::IResolvable, ...
readonly
The time field that is used in a computation.
-
#value ⇒ AWSCDK::IResolvable, ...
readonly
The value field that is used in a computation.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(computation_id:, name: nil, period_size: nil, time: nil, value: nil) ⇒ GrowthRateComputationProperty
constructor
A new instance of GrowthRateComputationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(computation_id:, name: nil, period_size: nil, time: nil, value: nil) ⇒ GrowthRateComputationProperty
Returns a new instance of GrowthRateComputationProperty.
15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 |
# File 'quick_sight/cfn_dashboard.rb', line 15820 def initialize(computation_id:, name: nil, period_size: nil, time: nil, value: nil) @computation_id = computation_id Jsii::Type.check_type(@computation_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "computationId") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @period_size = period_size Jsii::Type.check_type(@period_size, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "periodSize") unless @period_size.nil? @time = time.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::DimensionFieldProperty.new(**time.transform_keys(&:to_sym)) : time Jsii::Type.check_type(@time, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5EaW1lbnNpb25GaWVsZFByb3BlcnR5In1dfX0=")), "time") unless @time.nil? @value = value.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::MeasureFieldProperty.new(**value.transform_keys(&:to_sym)) : value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5NZWFzdXJlRmllbGRQcm9wZXJ0eSJ9XX19")), "value") unless @value.nil? end |
Instance Attribute Details
#computation_id ⇒ String (readonly)
The ID for a computation.
15837 15838 15839 |
# File 'quick_sight/cfn_dashboard.rb', line 15837 def computation_id @computation_id end |
#name ⇒ String? (readonly)
The name of a computation.
15842 15843 15844 |
# File 'quick_sight/cfn_dashboard.rb', line 15842 def name @name end |
#period_size ⇒ Numeric? (readonly)
Note:
Default: - 0
The period size setup of a growth rate computation.
15848 15849 15850 |
# File 'quick_sight/cfn_dashboard.rb', line 15848 def period_size @period_size end |
#time ⇒ AWSCDK::IResolvable, ... (readonly)
The time field that is used in a computation.
15853 15854 15855 |
# File 'quick_sight/cfn_dashboard.rb', line 15853 def time @time end |
#value ⇒ AWSCDK::IResolvable, ... (readonly)
The value field that is used in a computation.
15858 15859 15860 |
# File 'quick_sight/cfn_dashboard.rb', line 15858 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
15860 15861 15862 15863 15864 15865 15866 15867 15868 |
# File 'quick_sight/cfn_dashboard.rb', line 15860 def self.jsii_properties { :computation_id => "computationId", :name => "name", :period_size => "periodSize", :time => "time", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
15870 15871 15872 15873 15874 15875 15876 15877 15878 15879 15880 |
# File 'quick_sight/cfn_dashboard.rb', line 15870 def to_jsii result = {} result.merge!({ "computationId" => @computation_id, "name" => @name, "periodSize" => @period_size, "time" => @time, "value" => @value, }) result.compact end |