Class: AWSCDK::QuickSight::CfnDashboard::GeospatialLayerMapConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_dashboard.rb

Overview

The map definition that defines map state, map style, and geospatial layers.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(interactions: nil, legend: nil, map_layers: nil, map_state: nil, map_style: nil) ⇒ GeospatialLayerMapConfigurationProperty

Returns a new instance of GeospatialLayerMapConfigurationProperty.

Parameters:



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

#map_layersAWSCDK::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

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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