Class: AWSCDK::Bedrock::CfnKnowledgeBase::RedshiftQueryEngineStorageConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock/cfn_knowledge_base.rb

Overview

Contains configurations for Amazon Redshift data storage.

Specify the data storage service to use in the type field and include the corresponding field. For more information, see Build a knowledge base by connecting to a structured data source in the Amazon Bedrock User Guide.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, aws_data_catalog_configuration: nil, redshift_configuration: nil) ⇒ RedshiftQueryEngineStorageConfigurationProperty

Returns a new instance of RedshiftQueryEngineStorageConfigurationProperty.

Parameters:



2305
2306
2307
2308
2309
2310
2311
2312
# File 'bedrock/cfn_knowledge_base.rb', line 2305

def initialize(type:, aws_data_catalog_configuration: nil, redshift_configuration: nil)
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
  @aws_data_catalog_configuration = aws_data_catalog_configuration.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnKnowledgeBase::RedshiftQueryEngineAWSDataCatalogStorageConfigurationProperty.new(**aws_data_catalog_configuration.transform_keys(&:to_sym)) : aws_data_catalog_configuration
  Jsii::Type.check_type(@aws_data_catalog_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbktub3dsZWRnZUJhc2UuUmVkc2hpZnRRdWVyeUVuZ2luZUF3c0RhdGFDYXRhbG9nU3RvcmFnZUNvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "awsDataCatalogConfiguration") unless @aws_data_catalog_configuration.nil?
  @redshift_configuration = redshift_configuration.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnKnowledgeBase::RedshiftQueryEngineRedshiftStorageConfigurationProperty.new(**redshift_configuration.transform_keys(&:to_sym)) : redshift_configuration
  Jsii::Type.check_type(@redshift_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbktub3dsZWRnZUJhc2UuUmVkc2hpZnRRdWVyeUVuZ2luZVJlZHNoaWZ0U3RvcmFnZUNvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "redshiftConfiguration") unless @redshift_configuration.nil?
end

Instance Attribute Details

#aws_data_catalog_configurationAWSCDK::IResolvable, ... (readonly)

Specifies configurations for storage in AWS Glue Data Catalog.



2323
2324
2325
# File 'bedrock/cfn_knowledge_base.rb', line 2323

def aws_data_catalog_configuration
  @aws_data_catalog_configuration
end

#redshift_configurationAWSCDK::IResolvable, ... (readonly)

Specifies configurations for storage in Amazon Redshift.



2328
2329
2330
# File 'bedrock/cfn_knowledge_base.rb', line 2328

def redshift_configuration
  @redshift_configuration
end

#typeString (readonly)

The data storage service to use.



2318
2319
2320
# File 'bedrock/cfn_knowledge_base.rb', line 2318

def type
  @type
end

Class Method Details

.jsii_propertiesObject



2330
2331
2332
2333
2334
2335
2336
# File 'bedrock/cfn_knowledge_base.rb', line 2330

def self.jsii_properties
  {
    :type => "type",
    :aws_data_catalog_configuration => "awsDataCatalogConfiguration",
    :redshift_configuration => "redshiftConfiguration",
  }
end

Instance Method Details

#to_jsiiObject



2338
2339
2340
2341
2342
2343
2344
2345
2346
# File 'bedrock/cfn_knowledge_base.rb', line 2338

def to_jsii
  result = {}
  result.merge!({
    "type" => @type,
    "awsDataCatalogConfiguration" => @aws_data_catalog_configuration,
    "redshiftConfiguration" => @redshift_configuration,
  })
  result.compact
end