Class: AWSCDK::Bedrock::CfnKnowledgeBase::RedshiftServerlessConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnKnowledgeBase::RedshiftServerlessConfigurationProperty
- Defined in:
- bedrock/cfn_knowledge_base.rb
Overview
Contains configurations for authentication to Amazon Redshift Serverless.
Instance Attribute Summary collapse
-
#auth_configuration ⇒ AWSCDK::IResolvable, AWSCDK::Bedrock::CfnKnowledgeBase::RedshiftServerlessAuthConfigurationProperty
readonly
Specifies configurations for authentication to an Amazon Redshift provisioned data warehouse.
-
#workgroup_arn ⇒ String
readonly
The ARN of the Amazon Redshift workgroup.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(auth_configuration:, workgroup_arn:) ⇒ RedshiftServerlessConfigurationProperty
constructor
A new instance of RedshiftServerlessConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(auth_configuration:, workgroup_arn:) ⇒ RedshiftServerlessConfigurationProperty
Returns a new instance of RedshiftServerlessConfigurationProperty.
2402 2403 2404 2405 2406 2407 |
# File 'bedrock/cfn_knowledge_base.rb', line 2402 def initialize(auth_configuration:, workgroup_arn:) @auth_configuration = auth_configuration.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnKnowledgeBase::RedshiftServerlessAuthConfigurationProperty.new(**auth_configuration.transform_keys(&:to_sym)) : auth_configuration Jsii::Type.check_type(@auth_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbktub3dsZWRnZUJhc2UuUmVkc2hpZnRTZXJ2ZXJsZXNzQXV0aENvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "authConfiguration") @workgroup_arn = workgroup_arn Jsii::Type.check_type(@workgroup_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "workgroupArn") end |
Instance Attribute Details
#auth_configuration ⇒ AWSCDK::IResolvable, AWSCDK::Bedrock::CfnKnowledgeBase::RedshiftServerlessAuthConfigurationProperty (readonly)
Specifies configurations for authentication to an Amazon Redshift provisioned data warehouse.
2413 2414 2415 |
# File 'bedrock/cfn_knowledge_base.rb', line 2413 def auth_configuration @auth_configuration end |
#workgroup_arn ⇒ String (readonly)
The ARN of the Amazon Redshift workgroup.
2418 2419 2420 |
# File 'bedrock/cfn_knowledge_base.rb', line 2418 def workgroup_arn @workgroup_arn end |
Class Method Details
.jsii_properties ⇒ Object
2420 2421 2422 2423 2424 2425 |
# File 'bedrock/cfn_knowledge_base.rb', line 2420 def self.jsii_properties { :auth_configuration => "authConfiguration", :workgroup_arn => "workgroupArn", } end |
Instance Method Details
#to_jsii ⇒ Object
2427 2428 2429 2430 2431 2432 2433 2434 |
# File 'bedrock/cfn_knowledge_base.rb', line 2427 def to_jsii result = {} result.merge!({ "authConfiguration" => @auth_configuration, "workgroupArn" => @workgroup_arn, }) result.compact end |