Class: AWSCDK::Bedrock::CfnKnowledgeBase::SupplementalDataStorageLocationProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(supplemental_data_storage_location_type:, s3_location: nil) ⇒ SupplementalDataStorageLocationProperty

Returns a new instance of SupplementalDataStorageLocationProperty.

Parameters:



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_locationAWSCDK::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_typeString (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_propertiesObject



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_jsiiObject



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