#[non_exhaustive]pub struct GetClusterCredentialsOutput {
pub db_user: Option<String>,
pub db_password: Option<String>,
pub expiration: Option<DateTime>,
/* private fields */
}
Expand description
Temporary credentials with authorization to log on to an Amazon Redshift 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.db_user: Option<String>
A database user name that is authorized to log on to the database DbName
using the password DbPassword
. If the specified DbUser exists in the database, the new user name has the same database permissions as the the user named in DbUser. By default, the user is added to PUBLIC. If the DbGroups
parameter is specifed, DbUser
is added to the listed groups for any sessions created using these credentials.
db_password: Option<String>
A temporary password that authorizes the user name returned by DbUser
to log on to the database DbName
.
expiration: Option<DateTime>
The date and time the password in DbPassword
expires.
Implementations§
source§impl GetClusterCredentialsOutput
impl GetClusterCredentialsOutput
sourcepub fn db_user(&self) -> Option<&str>
pub fn db_user(&self) -> Option<&str>
A database user name that is authorized to log on to the database DbName
using the password DbPassword
. If the specified DbUser exists in the database, the new user name has the same database permissions as the the user named in DbUser. By default, the user is added to PUBLIC. If the DbGroups
parameter is specifed, DbUser
is added to the listed groups for any sessions created using these credentials.
sourcepub fn db_password(&self) -> Option<&str>
pub fn db_password(&self) -> Option<&str>
A temporary password that authorizes the user name returned by DbUser
to log on to the database DbName
.
sourcepub fn expiration(&self) -> Option<&DateTime>
pub fn expiration(&self) -> Option<&DateTime>
The date and time the password in DbPassword
expires.
source§impl GetClusterCredentialsOutput
impl GetClusterCredentialsOutput
sourcepub fn builder() -> GetClusterCredentialsOutputBuilder
pub fn builder() -> GetClusterCredentialsOutputBuilder
Creates a new builder-style object to manufacture GetClusterCredentialsOutput
.
Trait Implementations§
source§impl Clone for GetClusterCredentialsOutput
impl Clone for GetClusterCredentialsOutput
source§fn clone(&self) -> GetClusterCredentialsOutput
fn clone(&self) -> GetClusterCredentialsOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetClusterCredentialsOutput
impl Debug for GetClusterCredentialsOutput
source§impl PartialEq for GetClusterCredentialsOutput
impl PartialEq for GetClusterCredentialsOutput
source§fn eq(&self, other: &GetClusterCredentialsOutput) -> bool
fn eq(&self, other: &GetClusterCredentialsOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for GetClusterCredentialsOutput
impl RequestId for GetClusterCredentialsOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.