Class: AWSCDK::QuickSight::CfnAnalysis::GeospatialLayerMapConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_analysis.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:



13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
# File 'quick_sight/cfn_analysis.rb', line 13475

def initialize(interactions: nil, legend: nil, map_layers: nil, map_state: nil, map_style: nil)
  @interactions = interactions.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::VisualInteractionOptionsProperty.new(**interactions.transform_keys(&:to_sym)) : interactions
  Jsii::Type.check_type(@interactions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlZpc3VhbEludGVyYWN0aW9uT3B0aW9uc1Byb3BlcnR5In1dfX0=")), "interactions") unless @interactions.nil?
  @legend = legend.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::LegendOptionsProperty.new(**legend.transform_keys(&:to_sym)) : legend
  Jsii::Type.check_type(@legend, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkxlZ2VuZE9wdGlvbnNQcm9wZXJ0eSJ9XX19")), "legend") unless @legend.nil?
  @map_layers = map_layers
  Jsii::Type.check_type(@map_layers, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5BbmFseXNpcy5HZW9zcGF0aWFsTGF5ZXJJdGVtUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "mapLayers") unless @map_layers.nil?
  @map_state = map_state.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::GeospatialMapStateProperty.new(**map_state.transform_keys(&:to_sym)) : map_state
  Jsii::Type.check_type(@map_state, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkdlb3NwYXRpYWxNYXBTdGF0ZVByb3BlcnR5In1dfX0=")), "mapState") unless @map_state.nil?
  @map_style = map_style.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::GeospatialMapStyleProperty.new(**map_style.transform_keys(&:to_sym)) : map_style
  Jsii::Type.check_type(@map_style, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkdlb3NwYXRpYWxNYXBTdHlsZVByb3BlcnR5In1dfX0=")), "mapStyle") unless @map_style.nil?
end

Instance Attribute Details

#map_layersAWSCDK::IResolvable, ... (readonly)

The geospatial layers to visualize on the map.



13498
13499
13500
# File 'quick_sight/cfn_analysis.rb', line 13498

def map_layers
  @map_layers
end

#map_stateAWSCDK::IResolvable, ... (readonly)

The map state properties for the map.



13503
13504
13505
# File 'quick_sight/cfn_analysis.rb', line 13503

def map_state
  @map_state
end

#map_styleAWSCDK::IResolvable, ... (readonly)

The map style properties for the map.



13508
13509
13510
# File 'quick_sight/cfn_analysis.rb', line 13508

def map_style
  @map_style
end

Class Method Details

.jsii_propertiesObject



13510
13511
13512
13513
13514
13515
13516
13517
13518
# File 'quick_sight/cfn_analysis.rb', line 13510

def self.jsii_properties
  {
    :interactions => "interactions",
    :legend => "legend",
    :map_layers => "mapLayers",
    :map_state => "mapState",
    :map_style => "mapStyle",
  }
end

Instance Method Details

#to_jsiiObject



13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
# File 'quick_sight/cfn_analysis.rb', line 13520

def to_jsii
  result = {}
  result.merge!({
    "interactions" => @interactions,
    "legend" => @legend,
    "mapLayers" => @map_layers,
    "mapState" => @map_state,
    "mapStyle" => @map_style,
  })
  result.compact
end