import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { AcceptAccountLinkInvitationRequest, AcceptAccountLinkInvitationResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link AcceptAccountLinkInvitationCommand}. */ export interface AcceptAccountLinkInvitationCommandInput extends AcceptAccountLinkInvitationRequest { } /** * @public * * The output of {@link AcceptAccountLinkInvitationCommand}. */ export interface AcceptAccountLinkInvitationCommandOutput extends AcceptAccountLinkInvitationResult, __MetadataBearer { } declare const AcceptAccountLinkInvitationCommand_base: { new (input: AcceptAccountLinkInvitationCommandInput): import("@smithy/core/client").CommandImpl; new (input: AcceptAccountLinkInvitationCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Accepts the account link invitation.

* *

There's currently no unlinking capability after you accept the account linking invitation.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { WorkSpacesClient, AcceptAccountLinkInvitationCommand } from "@aws-sdk/client-workspaces"; // ES Modules import * // const { WorkSpacesClient, AcceptAccountLinkInvitationCommand } = 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 = { // AcceptAccountLinkInvitationRequest * LinkId: "STRING_VALUE", // required * ClientToken: "STRING_VALUE", * }; * const command = new AcceptAccountLinkInvitationCommand(input); * const response = await client.send(command); * // { // AcceptAccountLinkInvitationResult * // 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 AcceptAccountLinkInvitationCommandInput - {@link AcceptAccountLinkInvitationCommandInput} * @returns {@link AcceptAccountLinkInvitationCommandOutput} * @see {@link AcceptAccountLinkInvitationCommandInput} for command's `input` shape. * @see {@link AcceptAccountLinkInvitationCommandOutput} 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 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 AcceptAccountLinkInvitationCommand extends AcceptAccountLinkInvitationCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: AcceptAccountLinkInvitationRequest; output: AcceptAccountLinkInvitationResult; }; sdk: { input: AcceptAccountLinkInvitationCommandInput; output: AcceptAccountLinkInvitationCommandOutput; }; }; }