- 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.
StopFleetCommand
Stops the specified fleet.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { AppStreamClient, StopFleetCommand } from "@aws-sdk/client-appstream"; // ES Modules import
// const { AppStreamClient, StopFleetCommand } = require("@aws-sdk/client-appstream"); // CommonJS import
const client = new AppStreamClient(config);
const input = { // StopFleetRequest
Name: "STRING_VALUE", // required
};
const command = new StopFleetCommand(input);
const response = await client.send(command);
// {};
StopFleetCommand Input
See StopFleetCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
Name Required | string | undefined | The name of the fleet. |
StopFleetCommand Output
See StopFleetCommandOutput 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. |
ResourceNotFoundException | client | The specified resource was not found. |
AppStreamServiceException | Base exception class for all service exceptions from AppStream service. |