import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateAccountLinkInvitationRequest, CreateAccountLinkInvitationResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateAccountLinkInvitationCommand}. */ export interface CreateAccountLinkInvitationCommandInput extends CreateAccountLinkInvitationRequest { } /** * @public * * The output of {@link CreateAccountLinkInvitationCommand}. */ export interface CreateAccountLinkInvitationCommandOutput extends CreateAccountLinkInvitationResult, __MetadataBearer { } declare const CreateAccountLinkInvitationCommand_base: { new (input: CreateAccountLinkInvitationCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateAccountLinkInvitationCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates the account link invitation.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { WorkSpacesClient, CreateAccountLinkInvitationCommand } from "@aws-sdk/client-workspaces"; // ES Modules import * // const { WorkSpacesClient, CreateAccountLinkInvitationCommand } = 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 = { // CreateAccountLinkInvitationRequest * TargetAccountId: "STRING_VALUE", // required * ClientToken: "STRING_VALUE", * }; * const command = new CreateAccountLinkInvitationCommand(input); * const response = await client.send(command); * // { // CreateAccountLinkInvitationResult * // 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 CreateAccountLinkInvitationCommandInput - {@link CreateAccountLinkInvitationCommandInput} * @returns {@link CreateAccountLinkInvitationCommandOutput} * @see {@link CreateAccountLinkInvitationCommandInput} for command's `input` shape. * @see {@link CreateAccountLinkInvitationCommandOutput} 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 ConflictException} (client fault) *

The TargetAccountId is already linked or invited.

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

Unexpected server error occured.

* * @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 CreateAccountLinkInvitationCommand extends CreateAccountLinkInvitationCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateAccountLinkInvitationRequest; output: CreateAccountLinkInvitationResult; }; sdk: { input: CreateAccountLinkInvitationCommandInput; output: CreateAccountLinkInvitationCommandOutput; }; }; }