Class: AWSCDK::QuickSight::CfnAnalysis::GeospatialLayerItemProperty

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

Overview

The properties for a single geospatial layer.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(layer_id:, actions: nil, data_source: nil, join_definition: nil, label: nil, layer_definition: nil, layer_type: nil, tooltip: nil, visibility: nil) ⇒ GeospatialLayerItemProperty

Returns a new instance of GeospatialLayerItemProperty.

Parameters:



13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
# File 'quick_sight/cfn_analysis.rb', line 13317

def initialize(layer_id:, actions: nil, data_source: nil, join_definition: nil, label: nil, layer_definition: nil, layer_type: nil, tooltip: nil, visibility: nil)
  @layer_id = layer_id
  Jsii::Type.check_type(@layer_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "layerId")
  @actions = actions
  Jsii::Type.check_type(@actions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5BbmFseXNpcy5MYXllckN1c3RvbUFjdGlvblByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "actions") unless @actions.nil?
  @data_source = data_source.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::GeospatialDataSourceItemProperty.new(**data_source.transform_keys(&:to_sym)) : data_source
  Jsii::Type.check_type(@data_source, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkdlb3NwYXRpYWxEYXRhU291cmNlSXRlbVByb3BlcnR5In1dfX0=")), "dataSource") unless @data_source.nil?
  @join_definition = join_definition.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::GeospatialLayerJoinDefinitionProperty.new(**join_definition.transform_keys(&:to_sym)) : join_definition
  Jsii::Type.check_type(@join_definition, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkdlb3NwYXRpYWxMYXllckpvaW5EZWZpbml0aW9uUHJvcGVydHkifV19fQ==")), "joinDefinition") unless @join_definition.nil?
  @label = label
  Jsii::Type.check_type(@label, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "label") unless @label.nil?
  @layer_definition = layer_definition.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::GeospatialLayerDefinitionProperty.new(**layer_definition.transform_keys(&:to_sym)) : layer_definition
  Jsii::Type.check_type(@layer_definition, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkdlb3NwYXRpYWxMYXllckRlZmluaXRpb25Qcm9wZXJ0eSJ9XX19")), "layerDefinition") unless @layer_definition.nil?
  @layer_type = layer_type
  Jsii::Type.check_type(@layer_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "layerType") unless @layer_type.nil?
  @tooltip = tooltip.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::TooltipOptionsProperty.new(**tooltip.transform_keys(&:to_sym)) : tooltip
  Jsii::Type.check_type(@tooltip, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlRvb2x0aXBPcHRpb25zUHJvcGVydHkifV19fQ==")), "tooltip") unless @tooltip.nil?
  @visibility = visibility
  Jsii::Type.check_type(@visibility, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "visibility") unless @visibility.nil?
end

Instance Attribute Details

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

A list of custom actions for a layer.



13347
13348
13349
# File 'quick_sight/cfn_analysis.rb', line 13347

def actions
  @actions
end

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

The data source for the layer.



13352
13353
13354
# File 'quick_sight/cfn_analysis.rb', line 13352

def data_source
  @data_source
end

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

The join definition properties for a layer.



13357
13358
13359
# File 'quick_sight/cfn_analysis.rb', line 13357

def join_definition
  @join_definition
end

#labelString? (readonly)

The label that is displayed for the layer.



13362
13363
13364
# File 'quick_sight/cfn_analysis.rb', line 13362

def label
  @label
end

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

The definition properties for a layer.



13367
13368
13369
# File 'quick_sight/cfn_analysis.rb', line 13367

def layer_definition
  @layer_definition
end

#layer_idString (readonly)

The ID of the layer.



13342
13343
13344
# File 'quick_sight/cfn_analysis.rb', line 13342

def layer_id
  @layer_id
end

#layer_typeString? (readonly)

The layer type.



13372
13373
13374
# File 'quick_sight/cfn_analysis.rb', line 13372

def layer_type
  @layer_type
end

#visibilityString? (readonly)

The state of visibility for the layer.



13380
13381
13382
# File 'quick_sight/cfn_analysis.rb', line 13380

def visibility
  @visibility
end

Class Method Details

.jsii_propertiesObject



13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
# File 'quick_sight/cfn_analysis.rb', line 13382

def self.jsii_properties
  {
    :layer_id => "layerId",
    :actions => "actions",
    :data_source => "dataSource",
    :join_definition => "joinDefinition",
    :label => "label",
    :layer_definition => "layerDefinition",
    :layer_type => "layerType",
    :tooltip => "tooltip",
    :visibility => "visibility",
  }
end

Instance Method Details

#to_jsiiObject



13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
# File 'quick_sight/cfn_analysis.rb', line 13396

def to_jsii
  result = {}
  result.merge!({
    "layerId" => @layer_id,
    "actions" => @actions,
    "dataSource" => @data_source,
    "joinDefinition" => @join_definition,
    "label" => @label,
    "layerDefinition" => @layer_definition,
    "layerType" => @layer_type,
    "tooltip" => @tooltip,
    "visibility" => @visibility,
  })
  result.compact
end