import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { AssociateConnectionAliasRequest, AssociateConnectionAliasResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link AssociateConnectionAliasCommand}. */ export interface AssociateConnectionAliasCommandInput extends AssociateConnectionAliasRequest { } /** * @public * * The output of {@link AssociateConnectionAliasCommand}. */ export interface AssociateConnectionAliasCommandOutput extends AssociateConnectionAliasResult, __MetadataBearer { } declare const AssociateConnectionAliasCommand_base: { new (input: AssociateConnectionAliasCommandInput): import("@smithy/core/client").CommandImpl; new (input: AssociateConnectionAliasCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Associates the specified connection alias with the specified directory to enable * cross-Region redirection. For more information, see Cross-Region * Redirection for Amazon WorkSpaces.

* *

Before performing this operation, call * DescribeConnectionAliases to make sure that the current state of the * connection alias is CREATED.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { WorkSpacesClient, AssociateConnectionAliasCommand } from "@aws-sdk/client-workspaces"; // ES Modules import * // const { WorkSpacesClient, AssociateConnectionAliasCommand } = 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 = { // AssociateConnectionAliasRequest * AliasId: "STRING_VALUE", // required * ResourceId: "STRING_VALUE", // required * }; * const command = new AssociateConnectionAliasCommand(input); * const response = await client.send(command); * // { // AssociateConnectionAliasResult * // ConnectionIdentifier: "STRING_VALUE", * // }; * * ``` * * @param AssociateConnectionAliasCommandInput - {@link AssociateConnectionAliasCommandInput} * @returns {@link AssociateConnectionAliasCommandOutput} * @see {@link AssociateConnectionAliasCommandInput} for command's `input` shape. * @see {@link AssociateConnectionAliasCommandOutput} 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 InvalidParameterValuesException} (client fault) *

One or more parameter values are not valid.

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

The state of the resource is not valid for this operation.

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

This operation is not supported.

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

The resource is associated with a directory.

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

The resource could not be found.

* * @throws {@link WorkSpacesServiceException} *

Base exception class for all service exceptions from WorkSpaces service.

* * * @public */ export declare class AssociateConnectionAliasCommand extends AssociateConnectionAliasCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: AssociateConnectionAliasRequest; output: AssociateConnectionAliasResult; }; sdk: { input: AssociateConnectionAliasCommandInput; output: AssociateConnectionAliasCommandOutput; }; }; }