Class: AWSCDK::QuickSight::CfnDashboard::GeospatialPolygonSymbolStyleProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::GeospatialPolygonSymbolStyleProperty
- Defined in:
- quick_sight/cfn_dashboard.rb
Overview
The polygon symbol style for a polygon layer.
Instance Attribute Summary collapse
-
#fill_color ⇒ AWSCDK::IResolvable, ...
readonly
The color and opacity values for the fill color.
-
#stroke_color ⇒ AWSCDK::IResolvable, ...
readonly
The color and opacity values for the stroke color.
-
#stroke_width ⇒ AWSCDK::IResolvable, ...
readonly
The width of the border stroke.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(fill_color: nil, stroke_color: nil, stroke_width: nil) ⇒ GeospatialPolygonSymbolStyleProperty
constructor
A new instance of GeospatialPolygonSymbolStyleProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(fill_color: nil, stroke_color: nil, stroke_width: nil) ⇒ GeospatialPolygonSymbolStyleProperty
Returns a new instance of GeospatialPolygonSymbolStyleProperty.
15155 15156 15157 15158 15159 15160 15161 15162 |
# File 'quick_sight/cfn_dashboard.rb', line 15155 def initialize(fill_color: nil, stroke_color: nil, stroke_width: nil) @fill_color = fill_color.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::GeospatialColorProperty.new(**fill_color.transform_keys(&:to_sym)) : fill_color Jsii::Type.check_type(@fill_color, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5HZW9zcGF0aWFsQ29sb3JQcm9wZXJ0eSJ9XX19")), "fillColor") unless @fill_color.nil? @stroke_color = stroke_color.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::GeospatialColorProperty.new(**stroke_color.transform_keys(&:to_sym)) : stroke_color Jsii::Type.check_type(@stroke_color, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5HZW9zcGF0aWFsQ29sb3JQcm9wZXJ0eSJ9XX19")), "strokeColor") unless @stroke_color.nil? @stroke_width = stroke_width.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::GeospatialLineWidthProperty.new(**stroke_width.transform_keys(&:to_sym)) : stroke_width Jsii::Type.check_type(@stroke_width, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5HZW9zcGF0aWFsTGluZVdpZHRoUHJvcGVydHkifV19fQ==")), "strokeWidth") unless @stroke_width.nil? end |
Instance Attribute Details
#fill_color ⇒ AWSCDK::IResolvable, ... (readonly)
The color and opacity values for the fill color.
15168 15169 15170 |
# File 'quick_sight/cfn_dashboard.rb', line 15168 def fill_color @fill_color end |
#stroke_color ⇒ AWSCDK::IResolvable, ... (readonly)
The color and opacity values for the stroke color.
15173 15174 15175 |
# File 'quick_sight/cfn_dashboard.rb', line 15173 def stroke_color @stroke_color end |
#stroke_width ⇒ AWSCDK::IResolvable, ... (readonly)
The width of the border stroke.
15178 15179 15180 |
# File 'quick_sight/cfn_dashboard.rb', line 15178 def stroke_width @stroke_width end |
Class Method Details
.jsii_properties ⇒ Object
15180 15181 15182 15183 15184 15185 15186 |
# File 'quick_sight/cfn_dashboard.rb', line 15180 def self.jsii_properties { :fill_color => "fillColor", :stroke_color => "strokeColor", :stroke_width => "strokeWidth", } end |
Instance Method Details
#to_jsii ⇒ Object
15188 15189 15190 15191 15192 15193 15194 15195 15196 |
# File 'quick_sight/cfn_dashboard.rb', line 15188 def to_jsii result = {} result.merge!({ "fillColor" => @fill_color, "strokeColor" => @stroke_color, "strokeWidth" => @stroke_width, }) result.compact end |