import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ClusterExtendedCredentials, GetClusterCredentialsWithIAMMessage } from "../models/models_0"; import type { RedshiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetClusterCredentialsWithIAMCommand}. */ export interface GetClusterCredentialsWithIAMCommandInput extends GetClusterCredentialsWithIAMMessage { } /** * @public * * The output of {@link GetClusterCredentialsWithIAMCommand}. */ export interface GetClusterCredentialsWithIAMCommandOutput extends ClusterExtendedCredentials, __MetadataBearer { } declare const GetClusterCredentialsWithIAMCommand_base: { new (input: GetClusterCredentialsWithIAMCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [GetClusterCredentialsWithIAMCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

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.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RedshiftClient, GetClusterCredentialsWithIAMCommand } from "@aws-sdk/client-redshift"; // ES Modules import * // const { RedshiftClient, GetClusterCredentialsWithIAMCommand } = require("@aws-sdk/client-redshift"); // CommonJS import * // import type { RedshiftClientConfig } from "@aws-sdk/client-redshift"; * const config = {}; // type is RedshiftClientConfig * const client = new RedshiftClient(config); * const input = { // GetClusterCredentialsWithIAMMessage * DbName: "STRING_VALUE", * ClusterIdentifier: "STRING_VALUE", * DurationSeconds: Number("int"), * CustomDomainName: "STRING_VALUE", * }; * const command = new GetClusterCredentialsWithIAMCommand(input); * const response = await client.send(command); * // { // ClusterExtendedCredentials * // DbUser: "STRING_VALUE", * // DbPassword: "STRING_VALUE", * // Expiration: new Date("TIMESTAMP"), * // NextRefreshTime: new Date("TIMESTAMP"), * // }; * * ``` * * @param GetClusterCredentialsWithIAMCommandInput - {@link GetClusterCredentialsWithIAMCommandInput} * @returns {@link GetClusterCredentialsWithIAMCommandOutput} * @see {@link GetClusterCredentialsWithIAMCommandInput} for command's `input` shape. * @see {@link GetClusterCredentialsWithIAMCommandOutput} for command's `response` shape. * @see {@link RedshiftClientResolvedConfig | config} for RedshiftClient's `config` shape. * * @throws {@link ClusterNotFoundFault} (client fault) *

The ClusterIdentifier parameter does not refer to an existing cluster. *

* * @throws {@link UnsupportedOperationFault} (client fault) *

The requested operation isn't supported.

* * @throws {@link RedshiftServiceException} *

Base exception class for all service exceptions from Redshift service.

* * * @public */ export declare class GetClusterCredentialsWithIAMCommand extends GetClusterCredentialsWithIAMCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetClusterCredentialsWithIAMMessage; output: ClusterExtendedCredentials; }; sdk: { input: GetClusterCredentialsWithIAMCommandInput; output: GetClusterCredentialsWithIAMCommandOutput; }; }; }