Skip to content

Commit

Permalink
feat(client-outposts): This release adds the Asset state information …
Browse files Browse the repository at this point in the history
…to the ListAssets response. The ListAssets request supports filtering on Asset state.
  • Loading branch information
awstools committed Oct 5, 2022
1 parent caa6cba commit 435b5de
Show file tree
Hide file tree
Showing 20 changed files with 847 additions and 776 deletions.
84 changes: 32 additions & 52 deletions clients/client-outposts/src/Outposts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ import { OutpostsClient } from "./OutpostsClient";
*/
export class Outposts extends OutpostsClient {
/**
* <p>
* Cancels an order for an Outpost.
* </p>
* <p>Cancels the specified order for an Outpost.</p>
*/
public cancelOrder(args: CancelOrderCommandInput, options?: __HttpHandlerOptions): Promise<CancelOrderCommandOutput>;
public cancelOrder(args: CancelOrderCommandInput, cb: (err: any, data?: CancelOrderCommandOutput) => void): void;
Expand Down Expand Up @@ -149,7 +147,7 @@ export class Outposts extends OutpostsClient {

/**
* <p>Creates an Outpost.</p>
* <p>You can specify <code>AvailabilityZone</code> or <code>AvailabilityZoneId</code>.</p>
* <p>You can specify either an Availability one or an AZ ID.</p>
*/
public createOutpost(
args: CreateOutpostCommandInput,
Expand Down Expand Up @@ -209,7 +207,7 @@ export class Outposts extends OutpostsClient {
}

/**
* <p>Deletes the Outpost.</p>
* <p>Deletes the specified Outpost.</p>
*/
public deleteOutpost(
args: DeleteOutpostCommandInput,
Expand Down Expand Up @@ -241,7 +239,7 @@ export class Outposts extends OutpostsClient {
}

/**
* <p>Deletes the site.</p>
* <p>Deletes the specified site.</p>
*/
public deleteSite(args: DeleteSiteCommandInput, options?: __HttpHandlerOptions): Promise<DeleteSiteCommandOutput>;
public deleteSite(args: DeleteSiteCommandInput, cb: (err: any, data?: DeleteSiteCommandOutput) => void): void;
Expand All @@ -267,7 +265,7 @@ export class Outposts extends OutpostsClient {
}

/**
* <p>Gets information about a catalog item.</p>
* <p>Gets information about the specified catalog item.</p>
*/
public getCatalogItem(
args: GetCatalogItemCommandInput,
Expand Down Expand Up @@ -304,7 +302,7 @@ export class Outposts extends OutpostsClient {
* Amazon Web Services uses this action to install Outpost servers.</p>
* </note>
* <p>
* Gets information about a specified connection.
* Gets information about the specified connection.
* </p>
* <p>
* Use CloudTrail to monitor this action or Amazon Web Services managed policy for Amazon Web Services Outposts to secure it. For
Expand Down Expand Up @@ -343,7 +341,7 @@ export class Outposts extends OutpostsClient {
}

/**
* <p>Gets an order.</p>
* <p>Gets information about the specified order.</p>
*/
public getOrder(args: GetOrderCommandInput, options?: __HttpHandlerOptions): Promise<GetOrderCommandOutput>;
public getOrder(args: GetOrderCommandInput, cb: (err: any, data?: GetOrderCommandOutput) => void): void;
Expand Down Expand Up @@ -427,9 +425,7 @@ export class Outposts extends OutpostsClient {
}

/**
* <p>
* Gets information about the specified Outpost site.
* </p>
* <p>Gets information about the specified Outpost site.</p>
*/
public getSite(args: GetSiteCommandInput, options?: __HttpHandlerOptions): Promise<GetSiteCommandOutput>;
public getSite(args: GetSiteCommandInput, cb: (err: any, data?: GetSiteCommandOutput) => void): void;
Expand All @@ -456,7 +452,7 @@ export class Outposts extends OutpostsClient {

/**
* <p>
* Gets the site address.
* Gets the site address of the specified site.
* </p>
*/
public getSiteAddress(
Expand Down Expand Up @@ -489,11 +485,10 @@ export class Outposts extends OutpostsClient {
}

/**
* <p>
* Lists the hardware assets in an Outpost. If you are using Dedicated Hosts on
* Amazon Web Services Outposts, you can filter your request by host ID to return a list of hardware
* assets that allocate resources for Dedicated Hosts.
* </p>
* <p>Lists the hardware assets for the specified Outpost.</p>
* <p>Use filters to return specific results. If you specify multiple filters, the results include only the resources that match
* all of the specified filters. For a filter where you can specify multiple values, the results include
* items that match any of the values that you specify for the filter.</p>
*/
public listAssets(args: ListAssetsCommandInput, options?: __HttpHandlerOptions): Promise<ListAssetsCommandOutput>;
public listAssets(args: ListAssetsCommandInput, cb: (err: any, data?: ListAssetsCommandOutput) => void): void;
Expand All @@ -519,11 +514,10 @@ export class Outposts extends OutpostsClient {
}

/**
* <p>Lists the items in the catalog. Add filters to your request to return a
* more specific list of results. Use filters to match an item class, storage
* option, or EC2 family. </p>
* <p>If you specify multiple filters, the filters are joined with an <code>AND</code>, and
* the request returns only results that match all of the specified filters.</p>
* <p>Lists the items in the catalog.</p>
* <p>Use filters to return specific results. If you specify multiple filters, the results include only the resources that match
* all of the specified filters. For a filter where you can specify multiple values, the results include
* items that match any of the values that you specify for the filter.</p>
*/
public listCatalogItems(
args: ListCatalogItemsCommandInput,
Expand Down Expand Up @@ -555,8 +549,7 @@ export class Outposts extends OutpostsClient {
}

/**
* <p>Lists the Outpost orders for your Amazon Web Services account. You can filter your request by Outpost to
* return a more specific list of results. </p>
* <p>Lists the Outpost orders for your Amazon Web Services account.</p>
*/
public listOrders(args: ListOrdersCommandInput, options?: __HttpHandlerOptions): Promise<ListOrdersCommandOutput>;
public listOrders(args: ListOrdersCommandInput, cb: (err: any, data?: ListOrdersCommandOutput) => void): void;
Expand All @@ -582,12 +575,10 @@ export class Outposts extends OutpostsClient {
}

/**
* <p>Lists the Outposts for your Amazon Web Services account. Add filters to your request to return
* a more specific list of results. Use filters to match an Outpost lifecycle status,
* Availability Zone (<code>us-east-1a</code>), and AZ ID (<code>use1-az1</code>). </p>
*
* <p>If you specify multiple filters, the filters are joined with an <code>AND</code>, and the request returns only
* results that match all of the specified filters.</p>
* <p>Lists the Outposts for your Amazon Web Services account.</p>
* <p>Use filters to return specific results. If you specify multiple filters, the results include only the resources that match
* all of the specified filters. For a filter where you can specify multiple values, the results include
* items that match any of the values that you specify for the filter.</p>
*/
public listOutposts(
args: ListOutpostsCommandInput,
Expand Down Expand Up @@ -616,12 +607,10 @@ export class Outposts extends OutpostsClient {
}

/**
* <p>Lists the Outpost sites for your Amazon Web Services account. Add operating address filters to your request to
* return a more specific list of results. Use filters to match site city, country code, or state/region of the
* operating address. </p>
*
* <p>If you specify multiple filters, the filters are joined with an <code>AND</code>, and the request returns only
* results that match all of the specified filters.</p>
* <p>Lists the Outpost sites for your Amazon Web Services account. Use filters to return specific results.</p>
* <p>Use filters to return specific results. If you specify multiple filters, the results include only the resources that match
* all of the specified filters. For a filter where you can specify multiple values, the results include
* items that match any of the values that you specify for the filter.</p>
*/
public listSites(args: ListSitesCommandInput, options?: __HttpHandlerOptions): Promise<ListSitesCommandOutput>;
public listSites(args: ListSitesCommandInput, cb: (err: any, data?: ListSitesCommandOutput) => void): void;
Expand Down Expand Up @@ -815,9 +804,7 @@ export class Outposts extends OutpostsClient {
}

/**
* <p>
* Updates the site.
* </p>
* <p>Updates the specified site.</p>
*/
public updateSite(args: UpdateSiteCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSiteCommandOutput>;
public updateSite(args: UpdateSiteCommandInput, cb: (err: any, data?: UpdateSiteCommandOutput) => void): void;
Expand All @@ -843,18 +830,11 @@ export class Outposts extends OutpostsClient {
}

/**
* <p>
* Updates the site address.
* </p>
* <p>
* To update a site address
* with an order <code>IN_PROGRESS</code>, you must wait for the order
* to complete or cancel the order.
* </p>
* <p>You
* can update the operating address before you place an order at the
* site, or after all Outposts that belong to the site have been deactivated.
* </p>
* <p>Updates the address of the specified site.</p>
* <p>You can't update a site address if there is an order in progress. You must wait for the order
* to complete or cancel the order.</p>
* <p>You can update the operating address before you place an order at the
* site, or after all Outposts that belong to the site have been deactivated.</p>
*/
public updateSiteAddress(
args: UpdateSiteAddressCommandInput,
Expand Down
4 changes: 1 addition & 3 deletions clients/client-outposts/src/commands/CancelOrderCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ export interface CancelOrderCommandInput extends CancelOrderInput {}
export interface CancelOrderCommandOutput extends CancelOrderOutput, __MetadataBearer {}

/**
* <p>
* Cancels an order for an Outpost.
* </p>
* <p>Cancels the specified order for an Outpost.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export interface CreateOutpostCommandOutput extends CreateOutpostOutput, __Metad

/**
* <p>Creates an Outpost.</p>
* <p>You can specify <code>AvailabilityZone</code> or <code>AvailabilityZoneId</code>.</p>
* <p>You can specify either an Availability one or an AZ ID.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface DeleteOutpostCommandInput extends DeleteOutpostInput {}
export interface DeleteOutpostCommandOutput extends DeleteOutpostOutput, __MetadataBearer {}

/**
* <p>Deletes the Outpost.</p>
* <p>Deletes the specified Outpost.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
2 changes: 1 addition & 1 deletion clients/client-outposts/src/commands/DeleteSiteCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface DeleteSiteCommandInput extends DeleteSiteInput {}
export interface DeleteSiteCommandOutput extends DeleteSiteOutput, __MetadataBearer {}

/**
* <p>Deletes the site.</p>
* <p>Deletes the specified site.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface GetCatalogItemCommandInput extends GetCatalogItemInput {}
export interface GetCatalogItemCommandOutput extends GetCatalogItemOutput, __MetadataBearer {}

/**
* <p>Gets information about a catalog item.</p>
* <p>Gets information about the specified catalog item.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export interface GetConnectionCommandOutput extends GetConnectionResponse, __Met
* Amazon Web Services uses this action to install Outpost servers.</p>
* </note>
* <p>
* Gets information about a specified connection.
* Gets information about the specified connection.
* </p>
* <p>
* Use CloudTrail to monitor this action or Amazon Web Services managed policy for Amazon Web Services Outposts to secure it. For
Expand Down
2 changes: 1 addition & 1 deletion clients/client-outposts/src/commands/GetOrderCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface GetOrderCommandInput extends GetOrderInput {}
export interface GetOrderCommandOutput extends GetOrderOutput, __MetadataBearer {}

/**
* <p>Gets an order.</p>
* <p>Gets information about the specified order.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export interface GetSiteAddressCommandOutput extends GetSiteAddressOutput, __Met

/**
* <p>
* Gets the site address.
* Gets the site address of the specified site.
* </p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
4 changes: 1 addition & 3 deletions clients/client-outposts/src/commands/GetSiteCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ export interface GetSiteCommandInput extends GetSiteInput {}
export interface GetSiteCommandOutput extends GetSiteOutput, __MetadataBearer {}

/**
* <p>
* Gets information about the specified Outpost site.
* </p>
* <p>Gets information about the specified Outpost site.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
9 changes: 4 additions & 5 deletions clients/client-outposts/src/commands/ListAssetsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@ export interface ListAssetsCommandInput extends ListAssetsInput {}
export interface ListAssetsCommandOutput extends ListAssetsOutput, __MetadataBearer {}

/**
* <p>
* Lists the hardware assets in an Outpost. If you are using Dedicated Hosts on
* Amazon Web Services Outposts, you can filter your request by host ID to return a list of hardware
* assets that allocate resources for Dedicated Hosts.
* </p>
* <p>Lists the hardware assets for the specified Outpost.</p>
* <p>Use filters to return specific results. If you specify multiple filters, the results include only the resources that match
* all of the specified filters. For a filter where you can specify multiple values, the results include
* items that match any of the values that you specify for the filter.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@ export interface ListCatalogItemsCommandInput extends ListCatalogItemsInput {}
export interface ListCatalogItemsCommandOutput extends ListCatalogItemsOutput, __MetadataBearer {}

/**
* <p>Lists the items in the catalog. Add filters to your request to return a
* more specific list of results. Use filters to match an item class, storage
* option, or EC2 family. </p>
* <p>If you specify multiple filters, the filters are joined with an <code>AND</code>, and
* the request returns only results that match all of the specified filters.</p>
* <p>Lists the items in the catalog.</p>
* <p>Use filters to return specific results. If you specify multiple filters, the results include only the resources that match
* all of the specified filters. For a filter where you can specify multiple values, the results include
* items that match any of the values that you specify for the filter.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
3 changes: 1 addition & 2 deletions clients/client-outposts/src/commands/ListOrdersCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ export interface ListOrdersCommandInput extends ListOrdersInput {}
export interface ListOrdersCommandOutput extends ListOrdersOutput, __MetadataBearer {}

/**
* <p>Lists the Outpost orders for your Amazon Web Services account. You can filter your request by Outpost to
* return a more specific list of results. </p>
* <p>Lists the Outpost orders for your Amazon Web Services account.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
10 changes: 4 additions & 6 deletions clients/client-outposts/src/commands/ListOutpostsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,10 @@ export interface ListOutpostsCommandInput extends ListOutpostsInput {}
export interface ListOutpostsCommandOutput extends ListOutpostsOutput, __MetadataBearer {}

/**
* <p>Lists the Outposts for your Amazon Web Services account. Add filters to your request to return
* a more specific list of results. Use filters to match an Outpost lifecycle status,
* Availability Zone (<code>us-east-1a</code>), and AZ ID (<code>use1-az1</code>). </p>
*
* <p>If you specify multiple filters, the filters are joined with an <code>AND</code>, and the request returns only
* results that match all of the specified filters.</p>
* <p>Lists the Outposts for your Amazon Web Services account.</p>
* <p>Use filters to return specific results. If you specify multiple filters, the results include only the resources that match
* all of the specified filters. For a filter where you can specify multiple values, the results include
* items that match any of the values that you specify for the filter.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
10 changes: 4 additions & 6 deletions clients/client-outposts/src/commands/ListSitesCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,10 @@ export interface ListSitesCommandInput extends ListSitesInput {}
export interface ListSitesCommandOutput extends ListSitesOutput, __MetadataBearer {}

/**
* <p>Lists the Outpost sites for your Amazon Web Services account. Add operating address filters to your request to
* return a more specific list of results. Use filters to match site city, country code, or state/region of the
* operating address. </p>
*
* <p>If you specify multiple filters, the filters are joined with an <code>AND</code>, and the request returns only
* results that match all of the specified filters.</p>
* <p>Lists the Outpost sites for your Amazon Web Services account. Use filters to return specific results.</p>
* <p>Use filters to return specific results. If you specify multiple filters, the results include only the resources that match
* all of the specified filters. For a filter where you can specify multiple values, the results include
* items that match any of the values that you specify for the filter.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
17 changes: 5 additions & 12 deletions clients/client-outposts/src/commands/UpdateSiteAddressCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,11 @@ export interface UpdateSiteAddressCommandInput extends UpdateSiteAddressInput {}
export interface UpdateSiteAddressCommandOutput extends UpdateSiteAddressOutput, __MetadataBearer {}

/**
* <p>
* Updates the site address.
* </p>
* <p>
* To update a site address
* with an order <code>IN_PROGRESS</code>, you must wait for the order
* to complete or cancel the order.
* </p>
* <p>You
* can update the operating address before you place an order at the
* site, or after all Outposts that belong to the site have been deactivated.
* </p>
* <p>Updates the address of the specified site.</p>
* <p>You can't update a site address if there is an order in progress. You must wait for the order
* to complete or cancel the order.</p>
* <p>You can update the operating address before you place an order at the
* site, or after all Outposts that belong to the site have been deactivated.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
4 changes: 1 addition & 3 deletions clients/client-outposts/src/commands/UpdateSiteCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ export interface UpdateSiteCommandInput extends UpdateSiteInput {}
export interface UpdateSiteCommandOutput extends UpdateSiteOutput, __MetadataBearer {}

/**
* <p>
* Updates the site.
* </p>
* <p>Updates the specified site.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Loading

0 comments on commit 435b5de

Please sign in to comment.