Class: AWSCDK::Bedrock::CfnKnowledgeBase::RedshiftProvisionedAuthConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnKnowledgeBase::RedshiftProvisionedAuthConfigurationProperty
- 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
-
#database_user ⇒ String?
readonly
The database username for authentication to an Amazon Redshift provisioned data warehouse.
-
#type ⇒ String
readonly
The type of authentication to use.
-
#username_password_secret_arn ⇒ String?
readonly
The ARN of an Secrets Manager secret for authentication.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, database_user: nil, username_password_secret_arn: nil) ⇒ RedshiftProvisionedAuthConfigurationProperty
constructor
A new instance of RedshiftProvisionedAuthConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, database_user: nil, username_password_secret_arn: nil) ⇒ RedshiftProvisionedAuthConfigurationProperty
Returns a new instance of RedshiftProvisionedAuthConfigurationProperty.
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_user ⇒ String? (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 |
#type ⇒ String (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_arn ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |