Class: AWSCDK::QuickSight::CfnAnalysis::GeospatialPolygonSymbolStyleProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::GeospatialPolygonSymbolStyleProperty
- Defined in:
- quick_sight/cfn_analysis.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.
14372 14373 14374 14375 14376 14377 14378 14379 |
# File 'quick_sight/cfn_analysis.rb', line 14372 def initialize(fill_color: nil, stroke_color: nil, stroke_width: nil) @fill_color = fill_color.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::GeospatialColorProperty.new(**fill_color.transform_keys(&:to_sym)) : fill_color Jsii::Type.check_type(@fill_color, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkdlb3NwYXRpYWxDb2xvclByb3BlcnR5In1dfX0=")), "fillColor") unless @fill_color.nil? @stroke_color = stroke_color.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::GeospatialColorProperty.new(**stroke_color.transform_keys(&:to_sym)) : stroke_color Jsii::Type.check_type(@stroke_color, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkdlb3NwYXRpYWxDb2xvclByb3BlcnR5In1dfX0=")), "strokeColor") unless @stroke_color.nil? @stroke_width = stroke_width.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::GeospatialLineWidthProperty.new(**stroke_width.transform_keys(&:to_sym)) : stroke_width Jsii::Type.check_type(@stroke_width, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkdlb3NwYXRpYWxMaW5lV2lkdGhQcm9wZXJ0eSJ9XX19")), "strokeWidth") unless @stroke_width.nil? end |
Instance Attribute Details
#fill_color ⇒ AWSCDK::IResolvable, ... (readonly)
The color and opacity values for the fill color.
14385 14386 14387 |
# File 'quick_sight/cfn_analysis.rb', line 14385 def fill_color @fill_color end |
#stroke_color ⇒ AWSCDK::IResolvable, ... (readonly)
The color and opacity values for the stroke color.
14390 14391 14392 |
# File 'quick_sight/cfn_analysis.rb', line 14390 def stroke_color @stroke_color end |
#stroke_width ⇒ AWSCDK::IResolvable, ... (readonly)
The width of the border stroke.
14395 14396 14397 |
# File 'quick_sight/cfn_analysis.rb', line 14395 def stroke_width @stroke_width end |
Class Method Details
.jsii_properties ⇒ Object
14397 14398 14399 14400 14401 14402 14403 |
# File 'quick_sight/cfn_analysis.rb', line 14397 def self.jsii_properties { :fill_color => "fillColor", :stroke_color => "strokeColor", :stroke_width => "strokeWidth", } end |
Instance Method Details
#to_jsii ⇒ Object
14405 14406 14407 14408 14409 14410 14411 14412 14413 |
# File 'quick_sight/cfn_analysis.rb', line 14405 def to_jsii result = {} result.merge!({ "fillColor" => @fill_color, "strokeColor" => @stroke_color, "strokeWidth" => @stroke_width, }) result.compact end |