Class CfnDataSource.ConnectionConfigurationProperty
Provides the configuration information that's required to connect to a database.
Inheritance
Namespace: Amazon.CDK.AWS.Kendra
Assembly: Amazon.CDK.AWS.Kendra.dll
Syntax (csharp)
public class ConnectionConfigurationProperty : Object, CfnDataSource.IConnectionConfigurationProperty
Syntax (vb)
Public Class ConnectionConfigurationProperty
Inherits Object
Implements CfnDataSource.IConnectionConfigurationProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Kendra;
var connectionConfigurationProperty = new ConnectionConfigurationProperty {
DatabaseHost = "databaseHost",
DatabaseName = "databaseName",
DatabasePort = 123,
SecretArn = "secretArn",
TableName = "tableName"
};
Synopsis
Constructors
ConnectionConfigurationProperty() |
Properties
DatabaseHost | The name of the host for the database. |
DatabaseName | The name of the database containing the document data. |
DatabasePort | The port that the database uses for connections. |
SecretArn | The Amazon Resource Name (ARN) of credentials stored in AWS Secrets Manager . |
TableName | The name of the table that contains the document data. |
Constructors
ConnectionConfigurationProperty()
public ConnectionConfigurationProperty()
Properties
DatabaseHost
The name of the host for the database.
public string DatabaseHost { get; set; }
Property Value
System.String
Remarks
Can be either a string (host.subdomain.domain.tld) or an IPv4 or IPv6 address.
DatabaseName
The name of the database containing the document data.
public string DatabaseName { get; set; }
Property Value
System.String
Remarks
DatabasePort
The port that the database uses for connections.
public double DatabasePort { get; set; }
Property Value
System.Double
Remarks
SecretArn
The Amazon Resource Name (ARN) of credentials stored in AWS Secrets Manager .
public string SecretArn { get; set; }
Property Value
System.String
Remarks
The credentials should be a user/password pair. For more information, see Using a Database Data Source . For more information about AWS Secrets Manager , see What Is AWS Secrets Manager in the AWS Secrets Manager user guide.
TableName
The name of the table that contains the document data.
public string TableName { get; set; }
Property Value
System.String