Class: AWSCDK::Kendra::CfnDataSource::DocumentAttributeValueProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
kendra/cfn_data_source.rb

Overview

The value of a document attribute.

You can only provide one value for a document attribute.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(date_value: nil, long_value: nil, string_list_value: nil, string_value: nil) ⇒ DocumentAttributeValueProperty

Returns a new instance of DocumentAttributeValueProperty.

Parameters:

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

    A date expressed as an ISO 8601 string.

  • long_value (Numeric, nil) (defaults to: nil)

    A long integer value.

  • string_list_value (Array<String>, nil) (defaults to: nil)

    A list of strings.

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

    A string, such as "department".



1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
# File 'kendra/cfn_data_source.rb', line 1993

def initialize(date_value: nil, long_value: nil, string_list_value: nil, string_value: nil)
  @date_value = date_value
  Jsii::Type.check_type(@date_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dateValue") unless @date_value.nil?
  @long_value = long_value
  Jsii::Type.check_type(@long_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "longValue") unless @long_value.nil?
  @string_list_value = string_list_value
  Jsii::Type.check_type(@string_list_value, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "stringListValue") unless @string_list_value.nil?
  @string_value = string_value
  Jsii::Type.check_type(@string_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "stringValue") unless @string_value.nil?
end

Instance Attribute Details

#date_valueString? (readonly)

A date expressed as an ISO 8601 string.

It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.



2010
2011
2012
# File 'kendra/cfn_data_source.rb', line 2010

def date_value
  @date_value
end

#long_valueNumeric? (readonly)

A long integer value.



2015
2016
2017
# File 'kendra/cfn_data_source.rb', line 2015

def long_value
  @long_value
end

#string_list_valueArray<String>? (readonly)

A list of strings.

The default maximum length or number of strings is 10.



2022
2023
2024
# File 'kendra/cfn_data_source.rb', line 2022

def string_list_value
  @string_list_value
end

#string_valueString? (readonly)

A string, such as "department".



2027
2028
2029
# File 'kendra/cfn_data_source.rb', line 2027

def string_value
  @string_value
end

Class Method Details

.jsii_propertiesObject



2029
2030
2031
2032
2033
2034
2035
2036
# File 'kendra/cfn_data_source.rb', line 2029

def self.jsii_properties
  {
    :date_value => "dateValue",
    :long_value => "longValue",
    :string_list_value => "stringListValue",
    :string_value => "stringValue",
  }
end

Instance Method Details

#to_jsiiObject



2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
# File 'kendra/cfn_data_source.rb', line 2038

def to_jsii
  result = {}
  result.merge!({
    "dateValue" => @date_value,
    "longValue" => @long_value,
    "stringListValue" => @string_list_value,
    "stringValue" => @string_value,
  })
  result.compact
end