AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
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.
For .NET Core this operation is only available in asynchronous form. Please refer to GetClusterCredentialsWithIAMAsync.
Namespace: Amazon.Redshift
Assembly: AWSSDK.Redshift.dll
Version: 3.x.y.z
public abstract GetClusterCredentialsWithIAMResponse GetClusterCredentialsWithIAM( GetClusterCredentialsWithIAMRequest request )
Container for the necessary parameters to execute the GetClusterCredentialsWithIAM service method.
Exception | Condition |
---|---|
ClusterNotFoundException | The ClusterIdentifier parameter does not refer to an existing cluster. |
UnsupportedOperationException | The requested operation isn't supported. |
.NET Framework:
Supported in: 4.5 and newer, 3.5