Class: AWSCDK::QuickSight::CfnDashboard::GeospatialLayerItemProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::GeospatialLayerItemProperty
- Defined in:
- quick_sight/cfn_dashboard.rb
Overview
The properties for a single geospatial layer.
Instance Attribute Summary collapse
-
#actions ⇒ AWSCDK::IResolvable, ...
readonly
A list of custom actions for a layer.
-
#data_source ⇒ AWSCDK::IResolvable, ...
readonly
The data source for the layer.
-
#join_definition ⇒ AWSCDK::IResolvable, ...
readonly
The join definition properties for a layer.
-
#label ⇒ String?
readonly
The label that is displayed for the layer.
-
#layer_definition ⇒ AWSCDK::IResolvable, ...
readonly
The definition properties for a layer.
-
#layer_id ⇒ String
readonly
The ID of the layer.
-
#layer_type ⇒ String?
readonly
The layer type.
- #tooltip ⇒ AWSCDK::IResolvable, ... readonly
-
#visibility ⇒ String?
readonly
The state of visibility for the layer.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(layer_id:, actions: nil, data_source: nil, join_definition: nil, label: nil, layer_definition: nil, layer_type: nil, tooltip: nil, visibility: nil) ⇒ GeospatialLayerItemProperty
constructor
A new instance of GeospatialLayerItemProperty.
- #to_jsii ⇒ Object
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.
14100 14101 14102 14103 14104 14105 14106 14107 14108 14109 14110 14111 14112 14113 14114 14115 14116 14117 14118 14119 |
# File 'quick_sight/cfn_dashboard.rb', line 14100 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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5EYXNoYm9hcmQuTGF5ZXJDdXN0b21BY3Rpb25Qcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "actions") unless @actions.nil? @data_source = data_source.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::GeospatialDataSourceItemProperty.new(**data_source.transform_keys(&:to_sym)) : data_source Jsii::Type.check_type(@data_source, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5HZW9zcGF0aWFsRGF0YVNvdXJjZUl0ZW1Qcm9wZXJ0eSJ9XX19")), "dataSource") unless @data_source.nil? @join_definition = join_definition.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::GeospatialLayerJoinDefinitionProperty.new(**join_definition.transform_keys(&:to_sym)) : join_definition Jsii::Type.check_type(@join_definition, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5HZW9zcGF0aWFsTGF5ZXJKb2luRGVmaW5pdGlvblByb3BlcnR5In1dfX0=")), "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::CfnDashboard::GeospatialLayerDefinitionProperty.new(**layer_definition.transform_keys(&:to_sym)) : layer_definition Jsii::Type.check_type(@layer_definition, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5HZW9zcGF0aWFsTGF5ZXJEZWZpbml0aW9uUHJvcGVydHkifV19fQ==")), "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::CfnDashboard::TooltipOptionsProperty.new(**tooltip.transform_keys(&:to_sym)) : tooltip Jsii::Type.check_type(@tooltip, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5Ub29sdGlwT3B0aW9uc1Byb3BlcnR5In1dfX0=")), "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
#actions ⇒ AWSCDK::IResolvable, ... (readonly)
A list of custom actions for a layer.
14130 14131 14132 |
# File 'quick_sight/cfn_dashboard.rb', line 14130 def actions @actions end |
#data_source ⇒ AWSCDK::IResolvable, ... (readonly)
The data source for the layer.
14135 14136 14137 |
# File 'quick_sight/cfn_dashboard.rb', line 14135 def data_source @data_source end |
#join_definition ⇒ AWSCDK::IResolvable, ... (readonly)
The join definition properties for a layer.
14140 14141 14142 |
# File 'quick_sight/cfn_dashboard.rb', line 14140 def join_definition @join_definition end |
#label ⇒ String? (readonly)
The label that is displayed for the layer.
14145 14146 14147 |
# File 'quick_sight/cfn_dashboard.rb', line 14145 def label @label end |
#layer_definition ⇒ AWSCDK::IResolvable, ... (readonly)
The definition properties for a layer.
14150 14151 14152 |
# File 'quick_sight/cfn_dashboard.rb', line 14150 def layer_definition @layer_definition end |
#layer_id ⇒ String (readonly)
The ID of the layer.
14125 14126 14127 |
# File 'quick_sight/cfn_dashboard.rb', line 14125 def layer_id @layer_id end |
#layer_type ⇒ String? (readonly)
The layer type.
14155 14156 14157 |
# File 'quick_sight/cfn_dashboard.rb', line 14155 def layer_type @layer_type end |
#tooltip ⇒ AWSCDK::IResolvable, ... (readonly)
14158 14159 14160 |
# File 'quick_sight/cfn_dashboard.rb', line 14158 def tooltip @tooltip end |
#visibility ⇒ String? (readonly)
The state of visibility for the layer.
14163 14164 14165 |
# File 'quick_sight/cfn_dashboard.rb', line 14163 def visibility @visibility end |
Class Method Details
.jsii_properties ⇒ Object
14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 |
# File 'quick_sight/cfn_dashboard.rb', line 14165 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_jsii ⇒ Object
14179 14180 14181 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 14193 |
# File 'quick_sight/cfn_dashboard.rb', line 14179 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 |