Class: AWSCDK::QuickSight::CfnTopic::TopicRangeFilterConstantProperty

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

Overview

A constant value that is used in a range filter to specify the endpoints of the range.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(constant_type: nil, range_constant: nil) ⇒ TopicRangeFilterConstantProperty

Returns a new instance of TopicRangeFilterConstantProperty.

Parameters:



2413
2414
2415
2416
2417
2418
# File 'quick_sight/cfn_topic.rb', line 2413

def initialize(constant_type: nil, range_constant: nil)
  @constant_type = constant_type
  Jsii::Type.check_type(@constant_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "constantType") unless @constant_type.nil?
  @range_constant = range_constant.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTopic::RangeConstantProperty.new(**range_constant.transform_keys(&:to_sym)) : range_constant
  Jsii::Type.check_type(@range_constant, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRvcGljLlJhbmdlQ29uc3RhbnRQcm9wZXJ0eSJ9XX19")), "rangeConstant") unless @range_constant.nil?
end

Instance Attribute Details

#constant_typeString? (readonly)

The data type of the constant value that is used in a range filter.

Valid values for this structure are RANGE .



2426
2427
2428
# File 'quick_sight/cfn_topic.rb', line 2426

def constant_type
  @constant_type
end

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

The value of the constant that is used to specify the endpoints of a range filter.



2431
2432
2433
# File 'quick_sight/cfn_topic.rb', line 2431

def range_constant
  @range_constant
end

Class Method Details

.jsii_propertiesObject



2433
2434
2435
2436
2437
2438
# File 'quick_sight/cfn_topic.rb', line 2433

def self.jsii_properties
  {
    :constant_type => "constantType",
    :range_constant => "rangeConstant",
  }
end

Instance Method Details

#to_jsiiObject



2440
2441
2442
2443
2444
2445
2446
2447
# File 'quick_sight/cfn_topic.rb', line 2440

def to_jsii
  result = {}
  result.merge!({
    "constantType" => @constant_type,
    "rangeConstant" => @range_constant,
  })
  result.compact
end