AWS SDK Version 3 for .NET
API Reference

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.

Note:

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

Syntax

C#
public abstract GetClusterCredentialsWithIAMResponse GetClusterCredentialsWithIAM(
         GetClusterCredentialsWithIAMRequest request
)

Parameters

request
Type: Amazon.Redshift.Model.GetClusterCredentialsWithIAMRequest

Container for the necessary parameters to execute the GetClusterCredentialsWithIAM service method.

Return Value


The response from the GetClusterCredentialsWithIAM service method, as returned by Redshift.

Exceptions

ExceptionCondition
ClusterNotFoundException The ClusterIdentifier parameter does not refer to an existing cluster.
UnsupportedOperationException The requested operation isn't supported.

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also