Struct aws_sdk_kendra::types::ConnectionConfiguration
source · #[non_exhaustive]pub struct ConnectionConfiguration {
pub database_host: String,
pub database_port: i32,
pub database_name: String,
pub table_name: String,
pub secret_arn: String,
}Expand description
Provides the configuration information that's required to connect to a database.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.database_host: StringThe name of the host for the database. Can be either a string (host.subdomain.domain.tld) or an IPv4 or IPv6 address.
database_port: i32The port that the database uses for connections.
database_name: StringThe name of the database containing the document data.
table_name: StringThe name of the table that contains the document data.
secret_arn: StringThe Amazon Resource Name (ARN) of credentials stored in Secrets Manager. The credentials should be a user/password pair. For more information, see Using a Database Data Source. For more information about Secrets Manager, see What Is Secrets Manager in the Secrets Manager user guide.
Implementations§
source§impl ConnectionConfiguration
impl ConnectionConfiguration
sourcepub fn database_host(&self) -> &str
pub fn database_host(&self) -> &str
The name of the host for the database. Can be either a string (host.subdomain.domain.tld) or an IPv4 or IPv6 address.
sourcepub fn database_port(&self) -> i32
pub fn database_port(&self) -> i32
The port that the database uses for connections.
sourcepub fn database_name(&self) -> &str
pub fn database_name(&self) -> &str
The name of the database containing the document data.
sourcepub fn table_name(&self) -> &str
pub fn table_name(&self) -> &str
The name of the table that contains the document data.
sourcepub fn secret_arn(&self) -> &str
pub fn secret_arn(&self) -> &str
The Amazon Resource Name (ARN) of credentials stored in Secrets Manager. The credentials should be a user/password pair. For more information, see Using a Database Data Source. For more information about Secrets Manager, see What Is Secrets Manager in the Secrets Manager user guide.
source§impl ConnectionConfiguration
impl ConnectionConfiguration
sourcepub fn builder() -> ConnectionConfigurationBuilder
pub fn builder() -> ConnectionConfigurationBuilder
Creates a new builder-style object to manufacture ConnectionConfiguration.
Trait Implementations§
source§impl Clone for ConnectionConfiguration
impl Clone for ConnectionConfiguration
source§fn clone(&self) -> ConnectionConfiguration
fn clone(&self) -> ConnectionConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ConnectionConfiguration
impl Debug for ConnectionConfiguration
source§impl PartialEq for ConnectionConfiguration
impl PartialEq for ConnectionConfiguration
source§fn eq(&self, other: &ConnectionConfiguration) -> bool
fn eq(&self, other: &ConnectionConfiguration) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ConnectionConfiguration
Auto Trait Implementations§
impl Freeze for ConnectionConfiguration
impl RefUnwindSafe for ConnectionConfiguration
impl Send for ConnectionConfiguration
impl Sync for ConnectionConfiguration
impl Unpin for ConnectionConfiguration
impl UnwindSafe for ConnectionConfiguration
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more