Class: AWSCDK::Bedrock::CfnKnowledgeBase::SupplementalDataStorageLocationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnKnowledgeBase::SupplementalDataStorageLocationProperty
- Defined in:
- bedrock/cfn_knowledge_base.rb
Overview
Contains information about a storage location for multimedia content (images, audio, and video) extracted from multimodal documents in your data source.
Instance Attribute Summary collapse
-
#s3_location ⇒ AWSCDK::IResolvable, ...
readonly
Contains information about the Amazon S3 location for the extracted multimedia content.
-
#supplemental_data_storage_location_type ⇒ String
readonly
Supplemental data storage location type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(supplemental_data_storage_location_type:, s3_location: nil) ⇒ SupplementalDataStorageLocationProperty
constructor
A new instance of SupplementalDataStorageLocationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(supplemental_data_storage_location_type:, s3_location: nil) ⇒ SupplementalDataStorageLocationProperty
Returns a new instance of SupplementalDataStorageLocationProperty.
2728 2729 2730 2731 2732 2733 |
# File 'bedrock/cfn_knowledge_base.rb', line 2728 def initialize(supplemental_data_storage_location_type:, s3_location: nil) @supplemental_data_storage_location_type = supplemental_data_storage_location_type Jsii::Type.check_type(@supplemental_data_storage_location_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "supplementalDataStorageLocationType") @s3_location = s3_location.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnKnowledgeBase::S3LocationProperty.new(**s3_location.transform_keys(&:to_sym)) : s3_location Jsii::Type.check_type(@s3_location, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbktub3dsZWRnZUJhc2UuUzNMb2NhdGlvblByb3BlcnR5In1dfX0=")), "s3Location") unless @s3_location.nil? end |
Instance Attribute Details
#s3_location ⇒ AWSCDK::IResolvable, ... (readonly)
Contains information about the Amazon S3 location for the extracted multimedia content.
2744 2745 2746 |
# File 'bedrock/cfn_knowledge_base.rb', line 2744 def s3_location @s3_location end |
#supplemental_data_storage_location_type ⇒ String (readonly)
Supplemental data storage location type.
2739 2740 2741 |
# File 'bedrock/cfn_knowledge_base.rb', line 2739 def supplemental_data_storage_location_type @supplemental_data_storage_location_type end |
Class Method Details
.jsii_properties ⇒ Object
2746 2747 2748 2749 2750 2751 |
# File 'bedrock/cfn_knowledge_base.rb', line 2746 def self.jsii_properties { :supplemental_data_storage_location_type => "supplementalDataStorageLocationType", :s3_location => "s3Location", } end |
Instance Method Details
#to_jsii ⇒ Object
2753 2754 2755 2756 2757 2758 2759 2760 |
# File 'bedrock/cfn_knowledge_base.rb', line 2753 def to_jsii result = {} result.merge!({ "supplementalDataStorageLocationType" => @supplemental_data_storage_location_type, "s3Location" => @s3_location, }) result.compact end |