Class: AWSCDK::Kendra::CfnDataSource::SalesforceStandardObjectAttachmentConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Kendra::CfnDataSource::SalesforceStandardObjectAttachmentConfigurationProperty
- Defined in:
- kendra/cfn_data_source.rb
Overview
Provides the configuration information for processing attachments to Salesforce standard objects.
Instance Attribute Summary collapse
-
#document_title_field_name ⇒ String?
readonly
The name of the field used for the document title.
-
#field_mappings ⇒ AWSCDK::IResolvable, ...
readonly
One or more objects that map fields in attachments to Amazon Kendra index fields.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(document_title_field_name: nil, field_mappings: nil) ⇒ SalesforceStandardObjectAttachmentConfigurationProperty
constructor
A new instance of SalesforceStandardObjectAttachmentConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(document_title_field_name: nil, field_mappings: nil) ⇒ SalesforceStandardObjectAttachmentConfigurationProperty
Returns a new instance of SalesforceStandardObjectAttachmentConfigurationProperty.
3071 3072 3073 3074 3075 3076 |
# File 'kendra/cfn_data_source.rb', line 3071 def initialize(document_title_field_name: nil, field_mappings: nil) @document_title_field_name = document_title_field_name Jsii::Type.check_type(@document_title_field_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "documentTitleFieldName") unless @document_title_field_name.nil? @field_mappings = field_mappings Jsii::Type.check_type(@field_mappings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfa2VuZHJhLkNmbkRhdGFTb3VyY2UuRGF0YVNvdXJjZVRvSW5kZXhGaWVsZE1hcHBpbmdQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "fieldMappings") unless @field_mappings.nil? end |
Instance Attribute Details
#document_title_field_name ⇒ String? (readonly)
The name of the field used for the document title.
3082 3083 3084 |
# File 'kendra/cfn_data_source.rb', line 3082 def document_title_field_name @document_title_field_name end |
#field_mappings ⇒ AWSCDK::IResolvable, ... (readonly)
One or more objects that map fields in attachments to Amazon Kendra index fields.
3087 3088 3089 |
# File 'kendra/cfn_data_source.rb', line 3087 def field_mappings @field_mappings end |
Class Method Details
.jsii_properties ⇒ Object
3089 3090 3091 3092 3093 3094 |
# File 'kendra/cfn_data_source.rb', line 3089 def self.jsii_properties { :document_title_field_name => "documentTitleFieldName", :field_mappings => "fieldMappings", } end |
Instance Method Details
#to_jsii ⇒ Object
3096 3097 3098 3099 3100 3101 3102 3103 |
# File 'kendra/cfn_data_source.rb', line 3096 def to_jsii result = {} result.merge!({ "documentTitleFieldName" => @document_title_field_name, "fieldMappings" => @field_mappings, }) result.compact end |