Class: AWSCDK::QuickSight::CfnDashboard::AnchorDateConfigurationProperty

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

Overview

The date configuration of the filter.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(anchor_option: nil, parameter_name: nil) ⇒ AnchorDateConfigurationProperty

Returns a new instance of AnchorDateConfigurationProperty.

Parameters:

  • anchor_option (String, nil) (defaults to: nil)

    The options for the date configuration. Choose one of the options below:.

  • parameter_name (String, nil) (defaults to: nil)

    The name of the parameter that is used for the anchor date configuration.



991
992
993
994
995
996
# File 'quick_sight/cfn_dashboard.rb', line 991

def initialize(anchor_option: nil, parameter_name: nil)
  @anchor_option = anchor_option
  Jsii::Type.check_type(@anchor_option, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "anchorOption") unless @anchor_option.nil?
  @parameter_name = parameter_name
  Jsii::Type.check_type(@parameter_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "parameterName") unless @parameter_name.nil?
end

Instance Attribute Details

#anchor_optionString? (readonly)

The options for the date configuration. Choose one of the options below:.

  • NOW


1004
1005
1006
# File 'quick_sight/cfn_dashboard.rb', line 1004

def anchor_option
  @anchor_option
end

#parameter_nameString? (readonly)

The name of the parameter that is used for the anchor date configuration.



1009
1010
1011
# File 'quick_sight/cfn_dashboard.rb', line 1009

def parameter_name
  @parameter_name
end

Class Method Details

.jsii_propertiesObject



1011
1012
1013
1014
1015
1016
# File 'quick_sight/cfn_dashboard.rb', line 1011

def self.jsii_properties
  {
    :anchor_option => "anchorOption",
    :parameter_name => "parameterName",
  }
end

Instance Method Details

#to_jsiiObject



1018
1019
1020
1021
1022
1023
1024
1025
# File 'quick_sight/cfn_dashboard.rb', line 1018

def to_jsii
  result = {}
  result.merge!({
    "anchorOption" => @anchor_option,
    "parameterName" => @parameter_name,
  })
  result.compact
end