Class: AWSCDK::Kendra::CfnDataSource::DocumentAttributeValueProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Kendra::CfnDataSource::DocumentAttributeValueProperty
- 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
-
#date_value ⇒ String?
readonly
A date expressed as an ISO 8601 string.
-
#long_value ⇒ Numeric?
readonly
A long integer value.
-
#string_list_value ⇒ Array<String>?
readonly
A list of strings.
-
#string_value ⇒ String?
readonly
A string, such as "department".
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(date_value: nil, long_value: nil, string_list_value: nil, string_value: nil) ⇒ DocumentAttributeValueProperty
constructor
A new instance of DocumentAttributeValueProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(date_value: nil, long_value: nil, string_list_value: nil, string_value: nil) ⇒ DocumentAttributeValueProperty
Returns a new instance of DocumentAttributeValueProperty.
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_value ⇒ String? (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_value ⇒ Numeric? (readonly)
A long integer value.
2015 2016 2017 |
# File 'kendra/cfn_data_source.rb', line 2015 def long_value @long_value end |
#string_list_value ⇒ Array<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_value ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |