Class: AWSCDK::QuickSight::CfnDashboard::ImageCustomActionOperationProperty

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

Overview

The operation that is defined by the custom action.

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(navigation_operation: nil, set_parameters_operation: nil, url_operation: nil) ⇒ ImageCustomActionOperationProperty

Returns a new instance of ImageCustomActionOperationProperty.



16639
16640
16641
16642
16643
16644
16645
16646
# File 'quick_sight/cfn_dashboard.rb', line 16639

def initialize(navigation_operation: nil, set_parameters_operation: nil, url_operation: nil)
  @navigation_operation = navigation_operation.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::CustomActionNavigationOperationProperty.new(**navigation_operation.transform_keys(&:to_sym)) : navigation_operation
  Jsii::Type.check_type(@navigation_operation, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5DdXN0b21BY3Rpb25OYXZpZ2F0aW9uT3BlcmF0aW9uUHJvcGVydHkifV19fQ==")), "navigationOperation") unless @navigation_operation.nil?
  @set_parameters_operation = set_parameters_operation.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::CustomActionSetParametersOperationProperty.new(**set_parameters_operation.transform_keys(&:to_sym)) : set_parameters_operation
  Jsii::Type.check_type(@set_parameters_operation, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5DdXN0b21BY3Rpb25TZXRQYXJhbWV0ZXJzT3BlcmF0aW9uUHJvcGVydHkifV19fQ==")), "setParametersOperation") unless @set_parameters_operation.nil?
  @url_operation = url_operation.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::CustomActionURLOperationProperty.new(**url_operation.transform_keys(&:to_sym)) : url_operation
  Jsii::Type.check_type(@url_operation, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5DdXN0b21BY3Rpb25VUkxPcGVyYXRpb25Qcm9wZXJ0eSJ9XX19")), "urlOperation") unless @url_operation.nil?
end

Instance Attribute Details

Class Method Details

.jsii_propertiesObject



16658
16659
16660
16661
16662
16663
16664
# File 'quick_sight/cfn_dashboard.rb', line 16658

def self.jsii_properties
  {
    :navigation_operation => "navigationOperation",
    :set_parameters_operation => "setParametersOperation",
    :url_operation => "urlOperation",
  }
end

Instance Method Details

#to_jsiiObject



16666
16667
16668
16669
16670
16671
16672
16673
16674
# File 'quick_sight/cfn_dashboard.rb', line 16666

def to_jsii
  result = {}
  result.merge!({
    "navigationOperation" => @navigation_operation,
    "setParametersOperation" => @set_parameters_operation,
    "urlOperation" => @url_operation,
  })
  result.compact
end