Class: AWSCDK::Bedrock::CfnKnowledgeBase::RedshiftServerlessAuthConfigurationProperty

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

Overview

Specifies configurations for authentication to a Redshift Serverless.

Specify the type of authentication to use in the type field and include the corresponding field. If you specify IAM authentication, you don't need to include another field.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, username_password_secret_arn: nil) ⇒ RedshiftServerlessAuthConfigurationProperty

Returns a new instance of RedshiftServerlessAuthConfigurationProperty.

Parameters:

  • type (String)

    The type of authentication to use.

  • username_password_secret_arn (String, nil) (defaults to: nil)

    The ARN of an Secrets Manager secret for authentication.



2359
2360
2361
2362
2363
2364
# File 'bedrock/cfn_knowledge_base.rb', line 2359

def initialize(type:, username_password_secret_arn: nil)
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
  @username_password_secret_arn = username_password_secret_arn
  Jsii::Type.check_type(@username_password_secret_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "usernamePasswordSecretArn") unless @username_password_secret_arn.nil?
end

Instance Attribute Details

#typeString (readonly)

The type of authentication to use.



2370
2371
2372
# File 'bedrock/cfn_knowledge_base.rb', line 2370

def type
  @type
end

#username_password_secret_arnString? (readonly)

The ARN of an Secrets Manager secret for authentication.



2375
2376
2377
# File 'bedrock/cfn_knowledge_base.rb', line 2375

def username_password_secret_arn
  @username_password_secret_arn
end

Class Method Details

.jsii_propertiesObject



2377
2378
2379
2380
2381
2382
# File 'bedrock/cfn_knowledge_base.rb', line 2377

def self.jsii_properties
  {
    :type => "type",
    :username_password_secret_arn => "usernamePasswordSecretArn",
  }
end

Instance Method Details

#to_jsiiObject



2384
2385
2386
2387
2388
2389
2390
2391
# File 'bedrock/cfn_knowledge_base.rb', line 2384

def to_jsii
  result = {}
  result.merge!({
    "type" => @type,
    "usernamePasswordSecretArn" => @username_password_secret_arn,
  })
  result.compact
end