Struct aws_sdk_redshiftdata::client::fluent_builders::ListDatabases
source · pub struct ListDatabases { /* private fields */ }Expand description
Fluent builder constructing a request to ListDatabases.
List the databases in a cluster. A token is returned to page through the database list. Depending on the authorization method, use one of the following combinations of request parameters:
-
Secrets Manager - when connecting to a cluster, specify the Amazon Resource Name (ARN) of the secret, the database name, and the cluster identifier that matches the cluster in the secret. When connecting to a serverless workgroup, specify the Amazon Resource Name (ARN) of the secret and the database name.
-
Temporary credentials - when connecting to a cluster, specify the cluster identifier, the database name, and the database user name. Also, permission to call the
redshift:GetClusterCredentialsoperation is required. When connecting to a serverless workgroup, specify the workgroup name and database name. Also, permission to call theredshift-serverless:GetCredentialsoperation is required.
For more information about the Amazon Redshift Data API and CLI usage examples, see Using the Amazon Redshift Data API in the Amazon Redshift Management Guide.
Implementations§
source§impl ListDatabases
impl ListDatabases
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<ListDatabases, AwsResponseRetryClassifier>, SdkError<ListDatabasesError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<ListDatabases, AwsResponseRetryClassifier>, SdkError<ListDatabasesError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<ListDatabasesOutput, SdkError<ListDatabasesError>>
pub async fn send(
self
) -> Result<ListDatabasesOutput, SdkError<ListDatabasesError>>
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 into_paginator(self) -> ListDatabasesPaginator
pub fn into_paginator(self) -> ListDatabasesPaginator
Create a paginator for this request
Paginators are used by calling send().await which returns a Stream.
sourcepub fn cluster_identifier(self, input: impl Into<String>) -> Self
pub fn cluster_identifier(self, input: impl Into<String>) -> Self
The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials.
sourcepub fn set_cluster_identifier(self, input: Option<String>) -> Self
pub fn set_cluster_identifier(self, input: Option<String>) -> Self
The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials.
sourcepub fn database(self, input: impl Into<String>) -> Self
pub fn database(self, input: impl Into<String>) -> Self
The name of the database. This parameter is required when authenticating using either Secrets Manager or temporary credentials.
sourcepub fn set_database(self, input: Option<String>) -> Self
pub fn set_database(self, input: Option<String>) -> Self
The name of the database. This parameter is required when authenticating using either Secrets Manager or temporary credentials.
sourcepub fn secret_arn(self, input: impl Into<String>) -> Self
pub fn secret_arn(self, input: impl Into<String>) -> Self
The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager.
sourcepub fn set_secret_arn(self, input: Option<String>) -> Self
pub fn set_secret_arn(self, input: Option<String>) -> Self
The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager.
sourcepub fn db_user(self, input: impl Into<String>) -> Self
pub fn db_user(self, input: impl Into<String>) -> Self
The database user name. This parameter is required when connecting to a cluster and authenticating using temporary credentials.
sourcepub fn set_db_user(self, input: Option<String>) -> Self
pub fn set_db_user(self, input: Option<String>) -> Self
The database user name. This parameter is required when connecting to a cluster and authenticating using temporary credentials.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of databases to return in the response. If more databases exist than fit in one response, then NextToken is returned to page through the results.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of databases to return in the response. If more databases exist than fit in one response, then NextToken is returned to page through the results.
sourcepub fn workgroup_name(self, input: impl Into<String>) -> Self
pub fn workgroup_name(self, input: impl Into<String>) -> Self
The serverless workgroup name. This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.
sourcepub fn set_workgroup_name(self, input: Option<String>) -> Self
pub fn set_workgroup_name(self, input: Option<String>) -> Self
The serverless workgroup name. This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.
Trait Implementations§
source§impl Clone for ListDatabases
impl Clone for ListDatabases
source§fn clone(&self) -> ListDatabases
fn clone(&self) -> ListDatabases
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more