-
Notifications
You must be signed in to change notification settings - Fork 585
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client-outposts): This release updates StartCapacityTask to allo…
…w an active Outpost to be modified. It also adds a new API to list all running EC2 instances on the Outpost.
- Loading branch information
awstools
committed
Nov 11, 2024
1 parent
5eded70
commit c02da55
Showing
17 changed files
with
1,448 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
128 changes: 128 additions & 0 deletions
128
clients/client-outposts/src/commands/ListAssetInstancesCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
// smithy-typescript generated code | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
import { Command as $Command } from "@smithy/smithy-client"; | ||
import { MetadataBearer as __MetadataBearer } from "@smithy/types"; | ||
|
||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { ListAssetInstancesInput, ListAssetInstancesOutput } from "../models/models_0"; | ||
import { OutpostsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OutpostsClient"; | ||
import { de_ListAssetInstancesCommand, se_ListAssetInstancesCommand } from "../protocols/Aws_restJson1"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export type { __MetadataBearer }; | ||
export { $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link ListAssetInstancesCommand}. | ||
*/ | ||
export interface ListAssetInstancesCommandInput extends ListAssetInstancesInput {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link ListAssetInstancesCommand}. | ||
*/ | ||
export interface ListAssetInstancesCommandOutput extends ListAssetInstancesOutput, __MetadataBearer {} | ||
|
||
/** | ||
* <p>A list of Amazon EC2 instances, belonging to all accounts, running on the specified Outpost. | ||
* Does not include Amazon EBS or Amazon S3 instances.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { OutpostsClient, ListAssetInstancesCommand } from "@aws-sdk/client-outposts"; // ES Modules import | ||
* // const { OutpostsClient, ListAssetInstancesCommand } = require("@aws-sdk/client-outposts"); // CommonJS import | ||
* const client = new OutpostsClient(config); | ||
* const input = { // ListAssetInstancesInput | ||
* OutpostIdentifier: "STRING_VALUE", // required | ||
* AssetIdFilter: [ // AssetIdList | ||
* "STRING_VALUE", | ||
* ], | ||
* InstanceTypeFilter: [ // OutpostInstanceTypeList | ||
* "STRING_VALUE", | ||
* ], | ||
* AccountIdFilter: [ // AccountIdList | ||
* "STRING_VALUE", | ||
* ], | ||
* AwsServiceFilter: [ // AWSServiceNameList | ||
* "AWS" || "EC2" || "ELASTICACHE" || "ELB" || "RDS" || "ROUTE53", | ||
* ], | ||
* MaxResults: Number("int"), | ||
* NextToken: "STRING_VALUE", | ||
* }; | ||
* const command = new ListAssetInstancesCommand(input); | ||
* const response = await client.send(command); | ||
* // { // ListAssetInstancesOutput | ||
* // AssetInstances: [ // AssetInstanceList | ||
* // { // AssetInstance | ||
* // InstanceId: "STRING_VALUE", | ||
* // InstanceType: "STRING_VALUE", | ||
* // AssetId: "STRING_VALUE", | ||
* // AccountId: "STRING_VALUE", | ||
* // AwsServiceName: "AWS" || "EC2" || "ELASTICACHE" || "ELB" || "RDS" || "ROUTE53", | ||
* // }, | ||
* // ], | ||
* // NextToken: "STRING_VALUE", | ||
* // }; | ||
* | ||
* ``` | ||
* | ||
* @param ListAssetInstancesCommandInput - {@link ListAssetInstancesCommandInput} | ||
* @returns {@link ListAssetInstancesCommandOutput} | ||
* @see {@link ListAssetInstancesCommandInput} for command's `input` shape. | ||
* @see {@link ListAssetInstancesCommandOutput} for command's `response` shape. | ||
* @see {@link OutpostsClientResolvedConfig | config} for OutpostsClient's `config` shape. | ||
* | ||
* @throws {@link AccessDeniedException} (client fault) | ||
* <p>You do not have permission to perform this operation.</p> | ||
* | ||
* @throws {@link InternalServerException} (server fault) | ||
* <p>An internal error has occurred.</p> | ||
* | ||
* @throws {@link NotFoundException} (client fault) | ||
* <p>The specified request is not valid.</p> | ||
* | ||
* @throws {@link ValidationException} (client fault) | ||
* <p>A parameter is not valid.</p> | ||
* | ||
* @throws {@link OutpostsServiceException} | ||
* <p>Base exception class for all service exceptions from Outposts service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class ListAssetInstancesCommand extends $Command | ||
.classBuilder< | ||
ListAssetInstancesCommandInput, | ||
ListAssetInstancesCommandOutput, | ||
OutpostsClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep(commonParams) | ||
.m(function (this: any, Command: any, cs: any, config: OutpostsClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("OutpostsOlafService", "ListAssetInstances", {}) | ||
.n("OutpostsClient", "ListAssetInstancesCommand") | ||
.f(void 0, void 0) | ||
.ser(se_ListAssetInstancesCommand) | ||
.de(de_ListAssetInstancesCommand) | ||
.build() { | ||
/** @internal type navigation helper, not in runtime. */ | ||
protected declare static __types: { | ||
api: { | ||
input: ListAssetInstancesInput; | ||
output: ListAssetInstancesOutput; | ||
}; | ||
sdk: { | ||
input: ListAssetInstancesCommandInput; | ||
output: ListAssetInstancesCommandOutput; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.