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 { CreateFleetRequest, CreateFleetResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateFleetCommand}. */ export interface CreateFleetCommandInput extends CreateFleetRequest { } /** * @public * * The output of {@link CreateFleetCommand}. */ export interface CreateFleetCommandOutput extends CreateFleetResult, __MetadataBearer { } declare const CreateFleetCommand_base: { new (input: CreateFleetCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: CreateFleetCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Creates a fleet. A fleet consists of streaming instances that your users access for their applications and desktops.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { AppStreamClient, CreateFleetCommand } from "@aws-sdk/client-appstream"; // ES Modules import * // const { AppStreamClient, CreateFleetCommand } = 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 = { // CreateFleetRequest * Name: "STRING_VALUE", // required * ImageName: "STRING_VALUE", * ImageArn: "STRING_VALUE", * InstanceType: "STRING_VALUE", // required * FleetType: "ALWAYS_ON" || "ON_DEMAND" || "ELASTIC", * ComputeCapacity: { // ComputeCapacity * DesiredInstances: Number("int"), * DesiredSessions: Number("int"), * }, * VpcConfig: { // VpcConfig * SubnetIds: [ // SubnetIdList * "STRING_VALUE", * ], * SecurityGroupIds: [ // SecurityGroupIdList * "STRING_VALUE", * ], * }, * MaxUserDurationInSeconds: Number("int"), * DisconnectTimeoutInSeconds: Number("int"), * Description: "STRING_VALUE", * DisplayName: "STRING_VALUE", * EnableDefaultInternetAccess: true || false, * DomainJoinInfo: { // DomainJoinInfo * DirectoryName: "STRING_VALUE", * OrganizationalUnitDistinguishedName: "STRING_VALUE", * }, * Tags: { // Tags * "": "STRING_VALUE", * }, * IdleDisconnectTimeoutInSeconds: Number("int"), * IamRoleArn: "STRING_VALUE", * StreamView: "APP" || "DESKTOP", * Platform: "WINDOWS" || "WINDOWS_SERVER_2016" || "WINDOWS_SERVER_2019" || "WINDOWS_SERVER_2022" || "WINDOWS_SERVER_2025" || "AMAZON_LINUX2" || "RHEL8" || "ROCKY_LINUX8" || "UBUNTU_PRO_2404", * MaxConcurrentSessions: Number("int"), * UsbDeviceFilterStrings: [ // UsbDeviceFilterStrings * "STRING_VALUE", * ], * SessionScriptS3Location: { // S3Location * S3Bucket: "STRING_VALUE", // required * S3Key: "STRING_VALUE", * }, * MaxSessionsPerInstance: Number("int"), * RootVolumeConfig: { // VolumeConfig * VolumeSizeInGb: Number("int"), * }, * DisableIMDSV1: true || false, * }; * const command = new CreateFleetCommand(input); * const response = await client.send(command); * // { // CreateFleetResult * // Fleet: { // Fleet * // Arn: "STRING_VALUE", // required * // Name: "STRING_VALUE", // required * // DisplayName: "STRING_VALUE", * // Description: "STRING_VALUE", * // ImageName: "STRING_VALUE", * // ImageArn: "STRING_VALUE", * // InstanceType: "STRING_VALUE", // required * // FleetType: "ALWAYS_ON" || "ON_DEMAND" || "ELASTIC", * // ComputeCapacityStatus: { // ComputeCapacityStatus * // Desired: Number("int"), // required * // Running: Number("int"), * // InUse: Number("int"), * // Available: Number("int"), * // DesiredUserSessions: Number("int"), * // AvailableUserSessions: Number("int"), * // ActiveUserSessions: Number("int"), * // ActualUserSessions: Number("int"), * // Draining: Number("int"), * // DrainModeActiveUserSessions: Number("int"), * // DrainModeUnusedUserSessions: Number("int"), * // }, * // MaxUserDurationInSeconds: Number("int"), * // DisconnectTimeoutInSeconds: Number("int"), * // State: "STARTING" || "RUNNING" || "STOPPING" || "STOPPED", // required * // VpcConfig: { // VpcConfig * // SubnetIds: [ // SubnetIdList * // "STRING_VALUE", * // ], * // SecurityGroupIds: [ // SecurityGroupIdList * // "STRING_VALUE", * // ], * // }, * // CreatedTime: new Date("TIMESTAMP"), * // FleetErrors: [ // FleetErrors * // { // FleetError * // ErrorCode: "IAM_SERVICE_ROLE_MISSING_ENI_DESCRIBE_ACTION" || "IAM_SERVICE_ROLE_MISSING_ENI_CREATE_ACTION" || "IAM_SERVICE_ROLE_MISSING_ENI_DELETE_ACTION" || "NETWORK_INTERFACE_LIMIT_EXCEEDED" || "INTERNAL_SERVICE_ERROR" || "IAM_SERVICE_ROLE_IS_MISSING" || "MACHINE_ROLE_IS_MISSING" || "STS_DISABLED_IN_REGION" || "SUBNET_HAS_INSUFFICIENT_IP_ADDRESSES" || "IAM_SERVICE_ROLE_MISSING_DESCRIBE_SUBNET_ACTION" || "SUBNET_NOT_FOUND" || "IMAGE_NOT_FOUND" || "INVALID_SUBNET_CONFIGURATION" || "SECURITY_GROUPS_NOT_FOUND" || "IGW_NOT_ATTACHED" || "IAM_SERVICE_ROLE_MISSING_DESCRIBE_SECURITY_GROUPS_ACTION" || "FLEET_STOPPED" || "FLEET_INSTANCE_PROVISIONING_FAILURE" || "DOMAIN_JOIN_ERROR_FILE_NOT_FOUND" || "DOMAIN_JOIN_ERROR_ACCESS_DENIED" || "DOMAIN_JOIN_ERROR_LOGON_FAILURE" || "DOMAIN_JOIN_ERROR_INVALID_PARAMETER" || "DOMAIN_JOIN_ERROR_MORE_DATA" || "DOMAIN_JOIN_ERROR_NO_SUCH_DOMAIN" || "DOMAIN_JOIN_ERROR_NOT_SUPPORTED" || "DOMAIN_JOIN_NERR_INVALID_WORKGROUP_NAME" || "DOMAIN_JOIN_NERR_WORKSTATION_NOT_STARTED" || "DOMAIN_JOIN_ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED" || "DOMAIN_JOIN_NERR_PASSWORD_EXPIRED" || "DOMAIN_JOIN_INTERNAL_SERVICE_ERROR" || "VALIDATION_ERROR", * // ErrorMessage: "STRING_VALUE", * // }, * // ], * // EnableDefaultInternetAccess: true || false, * // DomainJoinInfo: { // DomainJoinInfo * // DirectoryName: "STRING_VALUE", * // OrganizationalUnitDistinguishedName: "STRING_VALUE", * // }, * // IdleDisconnectTimeoutInSeconds: Number("int"), * // IamRoleArn: "STRING_VALUE", * // StreamView: "APP" || "DESKTOP", * // Platform: "WINDOWS" || "WINDOWS_SERVER_2016" || "WINDOWS_SERVER_2019" || "WINDOWS_SERVER_2022" || "WINDOWS_SERVER_2025" || "AMAZON_LINUX2" || "RHEL8" || "ROCKY_LINUX8" || "UBUNTU_PRO_2404", * // MaxConcurrentSessions: Number("int"), * // UsbDeviceFilterStrings: [ // UsbDeviceFilterStrings * // "STRING_VALUE", * // ], * // SessionScriptS3Location: { // S3Location * // S3Bucket: "STRING_VALUE", // required * // S3Key: "STRING_VALUE", * // }, * // MaxSessionsPerInstance: Number("int"), * // RootVolumeConfig: { // VolumeConfig * // VolumeSizeInGb: Number("int"), * // }, * // DisableIMDSV1: true || false, * // }, * // }; * * ``` * * @param CreateFleetCommandInput - {@link CreateFleetCommandInput} * @returns {@link CreateFleetCommandOutput} * @see {@link CreateFleetCommandInput} for command's `input` shape. * @see {@link CreateFleetCommandOutput} for command's `response` shape. * @see {@link AppStreamClientResolvedConfig | config} for AppStreamClient's `config` shape. * * @throws {@link ConcurrentModificationException} (client fault) *

An API error occurred. Wait a few minutes and try again.

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

The image can't be updated because it's not compatible for updates.

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

The resource cannot be created because your AWS account is suspended. For assistance, contact AWS Support.

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

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

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

The specified role is invalid.

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

The requested limit exceeds the permitted limit for an account.

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

The attempted operation is not permitted.

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

WorkSpaces Applications can’t process the request right now because the Describe calls from your AWS account are being throttled by Amazon EC2. Try again later.

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

The specified resource already exists.

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

The specified resource exists and is not in use, but isn't available.

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

The specified resource was not found.

* * @throws {@link AppStreamServiceException} *

Base exception class for all service exceptions from AppStream service.

* * * @public */ export declare class CreateFleetCommand extends CreateFleetCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateFleetRequest; output: CreateFleetResult; }; sdk: { input: CreateFleetCommandInput; output: CreateFleetCommandOutput; }; }; }