Class: AWSCDK::Bedrock::CfnKnowledgeBase::RedshiftQueryEngineConfigurationProperty

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

Overview

Contains configurations for an Amazon Redshift query engine.

Specify the type of query engine in type 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:, provisioned_configuration: nil, serverless_configuration: nil) ⇒ RedshiftQueryEngineConfigurationProperty

Returns a new instance of RedshiftQueryEngineConfigurationProperty.

Parameters:



2217
2218
2219
2220
2221
2222
2223
2224
# File 'bedrock/cfn_knowledge_base.rb', line 2217

def initialize(type:, provisioned_configuration: nil, serverless_configuration: nil)
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
  @provisioned_configuration = provisioned_configuration.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnKnowledgeBase::RedshiftProvisionedConfigurationProperty.new(**provisioned_configuration.transform_keys(&:to_sym)) : provisioned_configuration
  Jsii::Type.check_type(@provisioned_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbktub3dsZWRnZUJhc2UuUmVkc2hpZnRQcm92aXNpb25lZENvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "provisionedConfiguration") unless @provisioned_configuration.nil?
  @serverless_configuration = serverless_configuration.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnKnowledgeBase::RedshiftServerlessConfigurationProperty.new(**serverless_configuration.transform_keys(&:to_sym)) : serverless_configuration
  Jsii::Type.check_type(@serverless_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbktub3dsZWRnZUJhc2UuUmVkc2hpZnRTZXJ2ZXJsZXNzQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "serverlessConfiguration") unless @serverless_configuration.nil?
end

Instance Attribute Details

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

Specifies configurations for a provisioned Amazon Redshift query engine.



2235
2236
2237
# File 'bedrock/cfn_knowledge_base.rb', line 2235

def provisioned_configuration
  @provisioned_configuration
end

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

Specifies configurations for a serverless Amazon Redshift query engine.



2240
2241
2242
# File 'bedrock/cfn_knowledge_base.rb', line 2240

def serverless_configuration
  @serverless_configuration
end

#typeString (readonly)

The type of query engine.



2230
2231
2232
# File 'bedrock/cfn_knowledge_base.rb', line 2230

def type
  @type
end

Class Method Details

.jsii_propertiesObject



2242
2243
2244
2245
2246
2247
2248
# File 'bedrock/cfn_knowledge_base.rb', line 2242

def self.jsii_properties
  {
    :type => "type",
    :provisioned_configuration => "provisionedConfiguration",
    :serverless_configuration => "serverlessConfiguration",
  }
end

Instance Method Details

#to_jsiiObject



2250
2251
2252
2253
2254
2255
2256
2257
2258
# File 'bedrock/cfn_knowledge_base.rb', line 2250

def to_jsii
  result = {}
  result.merge!({
    "type" => @type,
    "provisionedConfiguration" => @provisioned_configuration,
    "serverlessConfiguration" => @serverless_configuration,
  })
  result.compact
end