- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
AssociateFleetCommand
Associates the specified fleet with the specified stack.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { AppStreamClient, AssociateFleetCommand } from "@aws-sdk/client-appstream"; // ES Modules import
// const { AppStreamClient, AssociateFleetCommand } = require("@aws-sdk/client-appstream"); // CommonJS import
const client = new AppStreamClient(config);
const input = { // AssociateFleetRequest
FleetName: "STRING_VALUE", // required
StackName: "STRING_VALUE", // required
};
const command = new AssociateFleetCommand(input);
const response = await client.send(command);
// {};
AssociateFleetCommand Input
See AssociateFleetCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
FleetName Required | string | undefined | The name of the fleet. |
StackName Required | string | undefined | The name of the stack. |
AssociateFleetCommand Output
See AssociateFleetCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
ConcurrentModificationException | client | An API error occurred. Wait a few minutes and try again. |
IncompatibleImageException | client | The image can't be updated because it's not compatible for updates. |
InvalidAccountStatusException | client | The resource cannot be created because your AWS account is suspended. For assistance, contact AWS Support. |
LimitExceededException | client | The requested limit exceeds the permitted limit for an account. |
OperationNotPermittedException | client | The attempted operation is not permitted. |
ResourceNotFoundException | client | The specified resource was not found. |
AppStreamServiceException | Base exception class for all service exceptions from AppStream service. |