Class: AWSCDK::QuickSight::CfnDashboard::GeospatialLayerMapConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::GeospatialLayerMapConfigurationProperty
- Defined in:
- quick_sight/cfn_dashboard.rb
Overview
The map definition that defines map state, map style, and geospatial layers.
Instance Attribute Summary collapse
- #interactions ⇒ AWSCDK::IResolvable, ... readonly
- #legend ⇒ AWSCDK::IResolvable, ... readonly
-
#map_layers ⇒ AWSCDK::IResolvable, ...
readonly
The geospatial layers to visualize on the map.
-
#map_state ⇒ AWSCDK::IResolvable, ...
readonly
The map state properties for the map.
-
#map_style ⇒ AWSCDK::IResolvable, ...
readonly
The map style properties for the map.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(interactions: nil, legend: nil, map_layers: nil, map_state: nil, map_style: nil) ⇒ GeospatialLayerMapConfigurationProperty
constructor
A new instance of GeospatialLayerMapConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(interactions: nil, legend: nil, map_layers: nil, map_state: nil, map_style: nil) ⇒ GeospatialLayerMapConfigurationProperty
Returns a new instance of GeospatialLayerMapConfigurationProperty.
14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 |
# File 'quick_sight/cfn_dashboard.rb', line 14258 def initialize(interactions: nil, legend: nil, map_layers: nil, map_state: nil, map_style: nil) @interactions = interactions.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::VisualInteractionOptionsProperty.new(**interactions.transform_keys(&:to_sym)) : interactions Jsii::Type.check_type(@interactions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5WaXN1YWxJbnRlcmFjdGlvbk9wdGlvbnNQcm9wZXJ0eSJ9XX19")), "interactions") unless @interactions.nil? @legend = legend.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::LegendOptionsProperty.new(**legend.transform_keys(&:to_sym)) : legend Jsii::Type.check_type(@legend, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5MZWdlbmRPcHRpb25zUHJvcGVydHkifV19fQ==")), "legend") unless @legend.nil? @map_layers = map_layers Jsii::Type.check_type(@map_layers, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5EYXNoYm9hcmQuR2Vvc3BhdGlhbExheWVySXRlbVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "mapLayers") unless @map_layers.nil? @map_state = map_state.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::GeospatialMapStateProperty.new(**map_state.transform_keys(&:to_sym)) : map_state Jsii::Type.check_type(@map_state, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5HZW9zcGF0aWFsTWFwU3RhdGVQcm9wZXJ0eSJ9XX19")), "mapState") unless @map_state.nil? @map_style = map_style.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::GeospatialMapStyleProperty.new(**map_style.transform_keys(&:to_sym)) : map_style Jsii::Type.check_type(@map_style, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5HZW9zcGF0aWFsTWFwU3R5bGVQcm9wZXJ0eSJ9XX19")), "mapStyle") unless @map_style.nil? end |
Instance Attribute Details
#interactions ⇒ AWSCDK::IResolvable, ... (readonly)
14273 14274 14275 |
# File 'quick_sight/cfn_dashboard.rb', line 14273 def interactions @interactions end |
#legend ⇒ AWSCDK::IResolvable, ... (readonly)
14276 14277 14278 |
# File 'quick_sight/cfn_dashboard.rb', line 14276 def legend @legend end |
#map_layers ⇒ AWSCDK::IResolvable, ... (readonly)
The geospatial layers to visualize on the map.
14281 14282 14283 |
# File 'quick_sight/cfn_dashboard.rb', line 14281 def map_layers @map_layers end |
#map_state ⇒ AWSCDK::IResolvable, ... (readonly)
The map state properties for the map.
14286 14287 14288 |
# File 'quick_sight/cfn_dashboard.rb', line 14286 def map_state @map_state end |
#map_style ⇒ AWSCDK::IResolvable, ... (readonly)
The map style properties for the map.
14291 14292 14293 |
# File 'quick_sight/cfn_dashboard.rb', line 14291 def map_style @map_style end |
Class Method Details
.jsii_properties ⇒ Object
14293 14294 14295 14296 14297 14298 14299 14300 14301 |
# File 'quick_sight/cfn_dashboard.rb', line 14293 def self.jsii_properties { :interactions => "interactions", :legend => "legend", :map_layers => "mapLayers", :map_state => "mapState", :map_style => "mapStyle", } end |
Instance Method Details
#to_jsii ⇒ Object
14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 |
# File 'quick_sight/cfn_dashboard.rb', line 14303 def to_jsii result = {} result.merge!({ "interactions" => @interactions, "legend" => @legend, "mapLayers" => @map_layers, "mapState" => @map_state, "mapStyle" => @map_style, }) result.compact end |