import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { AppStreamClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppStreamClient"; import type { BatchAssociateUserStackRequest, BatchAssociateUserStackResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link BatchAssociateUserStackCommand}. */ export interface BatchAssociateUserStackCommandInput extends BatchAssociateUserStackRequest { } /** * @public * * The output of {@link BatchAssociateUserStackCommand}. */ export interface BatchAssociateUserStackCommandOutput extends BatchAssociateUserStackResult, __MetadataBearer { } declare const BatchAssociateUserStackCommand_base: { new (input: BatchAssociateUserStackCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: BatchAssociateUserStackCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Associates the specified users with the specified stacks. Users in a user pool cannot be assigned to stacks with fleets that are joined to an Active Directory domain.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { AppStreamClient, BatchAssociateUserStackCommand } from "@aws-sdk/client-appstream"; // ES Modules import * // const { AppStreamClient, BatchAssociateUserStackCommand } = require("@aws-sdk/client-appstream"); // CommonJS import * // import type { AppStreamClientConfig } from "@aws-sdk/client-appstream"; * const config = {}; // type is AppStreamClientConfig * const client = new AppStreamClient(config); * const input = { // BatchAssociateUserStackRequest * UserStackAssociations: [ // UserStackAssociationList // required * { // UserStackAssociation * StackName: "STRING_VALUE", // required * UserName: "STRING_VALUE", // required * AuthenticationType: "API" || "SAML" || "USERPOOL" || "AWS_AD", // required * SendEmailNotification: true || false, * }, * ], * }; * const command = new BatchAssociateUserStackCommand(input); * const response = await client.send(command); * // { // BatchAssociateUserStackResult * // errors: [ // UserStackAssociationErrorList * // { // UserStackAssociationError * // UserStackAssociation: { // UserStackAssociation * // StackName: "STRING_VALUE", // required * // UserName: "STRING_VALUE", // required * // AuthenticationType: "API" || "SAML" || "USERPOOL" || "AWS_AD", // required * // SendEmailNotification: true || false, * // }, * // ErrorCode: "STACK_NOT_FOUND" || "USER_NAME_NOT_FOUND" || "DIRECTORY_NOT_FOUND" || "INTERNAL_ERROR", * // ErrorMessage: "STRING_VALUE", * // }, * // ], * // }; * * ``` * * @param BatchAssociateUserStackCommandInput - {@link BatchAssociateUserStackCommandInput} * @returns {@link BatchAssociateUserStackCommandOutput} * @see {@link BatchAssociateUserStackCommandInput} for command's `input` shape. * @see {@link BatchAssociateUserStackCommandOutput} for command's `response` shape. * @see {@link AppStreamClientResolvedConfig | config} for AppStreamClient's `config` shape. * * @throws {@link InvalidParameterCombinationException} (client fault) *

Indicates an incorrect combination of parameters, or a missing parameter.

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

The attempted operation is not permitted.

* * @throws {@link AppStreamServiceException} *

Base exception class for all service exceptions from AppStream service.

* * * @public */ export declare class BatchAssociateUserStackCommand extends BatchAssociateUserStackCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: BatchAssociateUserStackRequest; output: BatchAssociateUserStackResult; }; sdk: { input: BatchAssociateUserStackCommandInput; output: BatchAssociateUserStackCommandOutput; }; }; }