Class: AWSCDK::QuickSight::CfnAnalysis::VisualCustomActionProperty

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

Overview

A custom action defined on a visual.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action_operations:, custom_action_id:, name:, trigger:, status: nil) ⇒ VisualCustomActionProperty

Returns a new instance of VisualCustomActionProperty.

Parameters:



31001
31002
31003
31004
31005
31006
31007
31008
31009
31010
31011
31012
# File 'quick_sight/cfn_analysis.rb', line 31001

def initialize(action_operations:, custom_action_id:, name:, trigger:, status: nil)
  @action_operations = action_operations
  Jsii::Type.check_type(@action_operations, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5BbmFseXNpcy5WaXN1YWxDdXN0b21BY3Rpb25PcGVyYXRpb25Qcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "actionOperations")
  @custom_action_id = custom_action_id
  Jsii::Type.check_type(@custom_action_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "customActionId")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @trigger = trigger
  Jsii::Type.check_type(@trigger, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "trigger")
  @status = status
  Jsii::Type.check_type(@status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "status") unless @status.nil?
end

Instance Attribute Details

#action_operationsAWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::QuickSight::CfnAnalysis::VisualCustomActionOperationProperty> (readonly)

A list of VisualCustomActionOperations .

This is a union type structure. For this structure to be valid, only one of the attributes can be defined.



31020
31021
31022
# File 'quick_sight/cfn_analysis.rb', line 31020

def action_operations
  @action_operations
end

#custom_action_idString (readonly)

The ID of the VisualCustomAction .



31025
31026
31027
# File 'quick_sight/cfn_analysis.rb', line 31025

def custom_action_id
  @custom_action_id
end

#nameString (readonly)

The name of the VisualCustomAction .



31030
31031
31032
# File 'quick_sight/cfn_analysis.rb', line 31030

def name
  @name
end

#statusString? (readonly)

The status of the VisualCustomAction .



31045
31046
31047
# File 'quick_sight/cfn_analysis.rb', line 31045

def status
  @status
end

#triggerString (readonly)

The trigger of the VisualCustomAction .

Valid values are defined as follows:

  • DATA_POINT_CLICK : Initiates a custom action by a left pointer click on a data point.
  • DATA_POINT_MENU : Initiates a custom action by right pointer click from the menu.


31040
31041
31042
# File 'quick_sight/cfn_analysis.rb', line 31040

def trigger
  @trigger
end

Class Method Details

.jsii_propertiesObject



31047
31048
31049
31050
31051
31052
31053
31054
31055
# File 'quick_sight/cfn_analysis.rb', line 31047

def self.jsii_properties
  {
    :action_operations => "actionOperations",
    :custom_action_id => "customActionId",
    :name => "name",
    :trigger => "trigger",
    :status => "status",
  }
end

Instance Method Details

#to_jsiiObject



31057
31058
31059
31060
31061
31062
31063
31064
31065
31066
31067
# File 'quick_sight/cfn_analysis.rb', line 31057

def to_jsii
  result = {}
  result.merge!({
    "actionOperations" => @action_operations,
    "customActionId" => @custom_action_id,
    "name" => @name,
    "trigger" => @trigger,
    "status" => @status,
  })
  result.compact
end