import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetAccountLinkRequest, GetAccountLinkResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link GetAccountLinkCommand}. */ export interface GetAccountLinkCommandInput extends GetAccountLinkRequest { } /** * @public * * The output of {@link GetAccountLinkCommand}. */ export interface GetAccountLinkCommandOutput extends GetAccountLinkResult, __MetadataBearer { } declare const GetAccountLinkCommand_base: { new (input: GetAccountLinkCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [GetAccountLinkCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Retrieves account link information.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { WorkSpacesClient, GetAccountLinkCommand } from "@aws-sdk/client-workspaces"; // ES Modules import * // const { WorkSpacesClient, GetAccountLinkCommand } = require("@aws-sdk/client-workspaces"); // CommonJS import * // import type { WorkSpacesClientConfig } from "@aws-sdk/client-workspaces"; * const config = {}; // type is WorkSpacesClientConfig * const client = new WorkSpacesClient(config); * const input = { // GetAccountLinkRequest * LinkId: "STRING_VALUE", * LinkedAccountId: "STRING_VALUE", * }; * const command = new GetAccountLinkCommand(input); * const response = await client.send(command); * // { // GetAccountLinkResult * // AccountLink: { // AccountLink * // AccountLinkId: "STRING_VALUE", * // AccountLinkStatus: "LINKED" || "LINKING_FAILED" || "LINK_NOT_FOUND" || "PENDING_ACCEPTANCE_BY_TARGET_ACCOUNT" || "REJECTED", * // SourceAccountId: "STRING_VALUE", * // TargetAccountId: "STRING_VALUE", * // }, * // }; * * ``` * * @param GetAccountLinkCommandInput - {@link GetAccountLinkCommandInput} * @returns {@link GetAccountLinkCommandOutput} * @see {@link GetAccountLinkCommandInput} for command's `input` shape. * @see {@link GetAccountLinkCommandOutput} for command's `response` shape. * @see {@link WorkSpacesClientResolvedConfig | config} for WorkSpacesClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

The user is not authorized to access a resource.

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

Unexpected server error occured.

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

The resource could not be found.

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

You either haven't provided a TargetAccountId or * are using the same value for TargetAccountId and SourceAccountId.

* * @throws {@link WorkSpacesServiceException} *

Base exception class for all service exceptions from WorkSpaces service.

* * * @public */ export declare class GetAccountLinkCommand extends GetAccountLinkCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetAccountLinkRequest; output: GetAccountLinkResult; }; sdk: { input: GetAccountLinkCommandInput; output: GetAccountLinkCommandOutput; }; }; }