pub struct GetClusterCredentialsWithIAM { /* private fields */ }
Expand description
Fluent builder constructing a request to GetClusterCredentialsWithIAM
.
Returns a database user name and temporary password with temporary authorization to log in to an Amazon Redshift database. The database user is mapped 1:1 to the source Identity and Access Management (IAM) identity. For more information about IAM identities, see IAM Identities (users, user groups, and roles) in the Amazon Web Services Identity and Access Management User Guide.
The Identity and Access Management (IAM) identity that runs this operation must have an IAM policy attached that allows access to all necessary actions and resources. For more information about permissions, see Using identity-based policies (IAM policies) in the Amazon Redshift Cluster Management Guide.
Implementations
sourceimpl GetClusterCredentialsWithIAM
impl GetClusterCredentialsWithIAM
sourcepub async fn send(
self
) -> Result<GetClusterCredentialsWithIamOutput, SdkError<GetClusterCredentialsWithIAMError>>
pub async fn send(
self
) -> Result<GetClusterCredentialsWithIamOutput, SdkError<GetClusterCredentialsWithIAMError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn db_name(self, input: impl Into<String>) -> Self
pub fn db_name(self, input: impl Into<String>) -> Self
The name of the database for which you are requesting credentials. If the database name is specified, the IAM policy must allow access to the resource dbname
for the specified database name. If the database name is not specified, access to all databases is allowed.
sourcepub fn set_db_name(self, input: Option<String>) -> Self
pub fn set_db_name(self, input: Option<String>) -> Self
The name of the database for which you are requesting credentials. If the database name is specified, the IAM policy must allow access to the resource dbname
for the specified database name. If the database name is not specified, access to all databases is allowed.
sourcepub fn cluster_identifier(self, input: impl Into<String>) -> Self
pub fn cluster_identifier(self, input: impl Into<String>) -> Self
The unique identifier of the cluster that contains the database for which you are requesting credentials.
sourcepub fn set_cluster_identifier(self, input: Option<String>) -> Self
pub fn set_cluster_identifier(self, input: Option<String>) -> Self
The unique identifier of the cluster that contains the database for which you are requesting credentials.
sourcepub fn duration_seconds(self, input: i32) -> Self
pub fn duration_seconds(self, input: i32) -> Self
The number of seconds until the returned temporary password expires.
Range: 900-3600. Default: 900.
sourcepub fn set_duration_seconds(self, input: Option<i32>) -> Self
pub fn set_duration_seconds(self, input: Option<i32>) -> Self
The number of seconds until the returned temporary password expires.
Range: 900-3600. Default: 900.
Trait Implementations
sourceimpl Clone for GetClusterCredentialsWithIAM
impl Clone for GetClusterCredentialsWithIAM
sourcefn clone(&self) -> GetClusterCredentialsWithIAM
fn clone(&self) -> GetClusterCredentialsWithIAM
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for GetClusterCredentialsWithIAM
impl Send for GetClusterCredentialsWithIAM
impl Sync for GetClusterCredentialsWithIAM
impl Unpin for GetClusterCredentialsWithIAM
impl !UnwindSafe for GetClusterCredentialsWithIAM
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more