Class: AWSCDK::Bedrock::CfnKnowledgeBase::RedshiftProvisionedAuthConfigurationProperty

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

Overview

Contains configurations for authentication to an Amazon Redshift provisioned data warehouse.

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:, database_user: nil, username_password_secret_arn: nil) ⇒ RedshiftProvisionedAuthConfigurationProperty

Returns a new instance of RedshiftProvisionedAuthConfigurationProperty.

Parameters:

  • type (String)

    The type of authentication to use.

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

    The database username for authentication to an Amazon Redshift provisioned data warehouse.

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

    The ARN of an Secrets Manager secret for authentication.



2086
2087
2088
2089
2090
2091
2092
2093
# File 'bedrock/cfn_knowledge_base.rb', line 2086

def initialize(type:, database_user: nil, username_password_secret_arn: nil)
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
  @database_user = database_user
  Jsii::Type.check_type(@database_user, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "databaseUser") unless @database_user.nil?
  @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

#database_userString? (readonly)

The database username for authentication to an Amazon Redshift provisioned data warehouse.



2104
2105
2106
# File 'bedrock/cfn_knowledge_base.rb', line 2104

def database_user
  @database_user
end

#typeString (readonly)

The type of authentication to use.



2099
2100
2101
# File 'bedrock/cfn_knowledge_base.rb', line 2099

def type
  @type
end

#username_password_secret_arnString? (readonly)

The ARN of an Secrets Manager secret for authentication.



2109
2110
2111
# File 'bedrock/cfn_knowledge_base.rb', line 2109

def username_password_secret_arn
  @username_password_secret_arn
end

Class Method Details

.jsii_propertiesObject



2111
2112
2113
2114
2115
2116
2117
# File 'bedrock/cfn_knowledge_base.rb', line 2111

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

Instance Method Details

#to_jsiiObject



2119
2120
2121
2122
2123
2124
2125
2126
2127
# File 'bedrock/cfn_knowledge_base.rb', line 2119

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