Class: AWSCDK::QuickSight::CfnTemplate::ImageCustomActionProperty

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

Overview

A custom action defined on an image.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ImageCustomActionProperty.

Parameters:



14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
# File 'quick_sight/cfn_template.rb', line 14242

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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5UZW1wbGF0ZS5JbWFnZUN1c3RvbUFjdGlvbk9wZXJhdGlvblByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "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::CfnTemplate::ImageCustomActionOperationProperty> (readonly)

A list of ImageCustomActionOperations .

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



14261
14262
14263
# File 'quick_sight/cfn_template.rb', line 14261

def action_operations
  @action_operations
end

#custom_action_idString (readonly)

The ID of the custom action.



14266
14267
14268
# File 'quick_sight/cfn_template.rb', line 14266

def custom_action_id
  @custom_action_id
end

#nameString (readonly)

The name of the custom action.



14271
14272
14273
# File 'quick_sight/cfn_template.rb', line 14271

def name
  @name
end

#statusString? (readonly)

The status of the custom action.



14286
14287
14288
# File 'quick_sight/cfn_template.rb', line 14286

def status
  @status
end

#triggerString (readonly)

The trigger of the VisualCustomAction .

Valid values are defined as follows:

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


14281
14282
14283
# File 'quick_sight/cfn_template.rb', line 14281

def trigger
  @trigger
end

Class Method Details

.jsii_propertiesObject



14288
14289
14290
14291
14292
14293
14294
14295
14296
# File 'quick_sight/cfn_template.rb', line 14288

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

Instance Method Details

#to_jsiiObject



14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
# File 'quick_sight/cfn_template.rb', line 14298

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