Skip to content

Commit

Permalink
feat(client-ec2): This release adds support for assigning the billing…
Browse files Browse the repository at this point in the history
… of shared Amazon EC2 On-Demand Capacity Reservations.
  • Loading branch information
awstools committed Oct 10, 2024
1 parent f477263 commit 88ca256
Show file tree
Hide file tree
Showing 50 changed files with 11,924 additions and 9,890 deletions.
40 changes: 40 additions & 0 deletions clients/client-ec2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,14 @@ AcceptAddressTransfer

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2/command/AcceptAddressTransferCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/AcceptAddressTransferCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/AcceptAddressTransferCommandOutput/)

</details>
<details>
<summary>
AcceptCapacityReservationBillingOwnership
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2/command/AcceptCapacityReservationBillingOwnershipCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/AcceptCapacityReservationBillingOwnershipCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/AcceptCapacityReservationBillingOwnershipCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -333,6 +341,14 @@ AssociateAddress

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2/command/AssociateAddressCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/AssociateAddressCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/AssociateAddressCommandOutput/)

</details>
<details>
<summary>
AssociateCapacityReservationBillingOwner
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2/command/AssociateCapacityReservationBillingOwnerCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/AssociateCapacityReservationBillingOwnerCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/AssociateCapacityReservationBillingOwnerCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -2061,6 +2077,14 @@ DescribeCapacityBlockOfferings

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2/command/DescribeCapacityBlockOfferingsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/DescribeCapacityBlockOfferingsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/DescribeCapacityBlockOfferingsCommandOutput/)

</details>
<details>
<summary>
DescribeCapacityReservationBillingRequests
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2/command/DescribeCapacityReservationBillingRequestsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/DescribeCapacityReservationBillingRequestsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/DescribeCapacityReservationBillingRequestsCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -3381,6 +3405,14 @@ DisassociateAddress

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2/command/DisassociateAddressCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/DisassociateAddressCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/DisassociateAddressCommandOutput/)

</details>
<details>
<summary>
DisassociateCapacityReservationBillingOwner
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2/command/DisassociateCapacityReservationBillingOwnerCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/DisassociateCapacityReservationBillingOwnerCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/DisassociateCapacityReservationBillingOwnerCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -4797,6 +4829,14 @@ RegisterTransitGatewayMulticastGroupSources

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2/command/RegisterTransitGatewayMulticastGroupSourcesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/RegisterTransitGatewayMulticastGroupSourcesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/RegisterTransitGatewayMulticastGroupSourcesCommandOutput/)

</details>
<details>
<summary>
RejectCapacityReservationBillingOwnership
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2/command/RejectCapacityReservationBillingOwnershipCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/RejectCapacityReservationBillingOwnershipCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/RejectCapacityReservationBillingOwnershipCommandOutput/)

</details>
<details>
<summary>
Expand Down
115 changes: 115 additions & 0 deletions clients/client-ec2/src/EC2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import {
AcceptAddressTransferCommandInput,
AcceptAddressTransferCommandOutput,
} from "./commands/AcceptAddressTransferCommand";
import {
AcceptCapacityReservationBillingOwnershipCommand,
AcceptCapacityReservationBillingOwnershipCommandInput,
AcceptCapacityReservationBillingOwnershipCommandOutput,
} from "./commands/AcceptCapacityReservationBillingOwnershipCommand";
import {
AcceptReservedInstancesExchangeQuoteCommand,
AcceptReservedInstancesExchangeQuoteCommandInput,
Expand Down Expand Up @@ -82,6 +87,11 @@ import {
AssociateAddressCommandInput,
AssociateAddressCommandOutput,
} from "./commands/AssociateAddressCommand";
import {
AssociateCapacityReservationBillingOwnerCommand,
AssociateCapacityReservationBillingOwnerCommandInput,
AssociateCapacityReservationBillingOwnerCommandOutput,
} from "./commands/AssociateCapacityReservationBillingOwnerCommand";
import {
AssociateClientVpnTargetNetworkCommand,
AssociateClientVpnTargetNetworkCommandInput,
Expand Down Expand Up @@ -1118,6 +1128,11 @@ import {
DescribeCapacityBlockOfferingsCommandInput,
DescribeCapacityBlockOfferingsCommandOutput,
} from "./commands/DescribeCapacityBlockOfferingsCommand";
import {
DescribeCapacityReservationBillingRequestsCommand,
DescribeCapacityReservationBillingRequestsCommandInput,
DescribeCapacityReservationBillingRequestsCommandOutput,
} from "./commands/DescribeCapacityReservationBillingRequestsCommand";
import {
DescribeCapacityReservationFleetsCommand,
DescribeCapacityReservationFleetsCommandInput,
Expand Down Expand Up @@ -1943,6 +1958,11 @@ import {
DisassociateAddressCommandInput,
DisassociateAddressCommandOutput,
} from "./commands/DisassociateAddressCommand";
import {
DisassociateCapacityReservationBillingOwnerCommand,
DisassociateCapacityReservationBillingOwnerCommandInput,
DisassociateCapacityReservationBillingOwnerCommandOutput,
} from "./commands/DisassociateCapacityReservationBillingOwnerCommand";
import {
DisassociateClientVpnTargetNetworkCommand,
DisassociateClientVpnTargetNetworkCommandInput,
Expand Down Expand Up @@ -2804,6 +2824,11 @@ import {
RegisterTransitGatewayMulticastGroupSourcesCommandInput,
RegisterTransitGatewayMulticastGroupSourcesCommandOutput,
} from "./commands/RegisterTransitGatewayMulticastGroupSourcesCommand";
import {
RejectCapacityReservationBillingOwnershipCommand,
RejectCapacityReservationBillingOwnershipCommandInput,
RejectCapacityReservationBillingOwnershipCommandOutput,
} from "./commands/RejectCapacityReservationBillingOwnershipCommand";
import {
RejectTransitGatewayMulticastDomainAssociationsCommand,
RejectTransitGatewayMulticastDomainAssociationsCommandInput,
Expand Down Expand Up @@ -3078,6 +3103,7 @@ import { EC2Client, EC2ClientConfig } from "./EC2Client";

const commands = {
AcceptAddressTransferCommand,
AcceptCapacityReservationBillingOwnershipCommand,
AcceptReservedInstancesExchangeQuoteCommand,
AcceptTransitGatewayMulticastDomainAssociationsCommand,
AcceptTransitGatewayPeeringAttachmentCommand,
Expand All @@ -3093,6 +3119,7 @@ const commands = {
AssignPrivateIpAddressesCommand,
AssignPrivateNatGatewayAddressCommand,
AssociateAddressCommand,
AssociateCapacityReservationBillingOwnerCommand,
AssociateClientVpnTargetNetworkCommand,
AssociateDhcpOptionsCommand,
AssociateEnclaveCertificateIamRoleCommand,
Expand Down Expand Up @@ -3309,6 +3336,7 @@ const commands = {
DescribeBundleTasksCommand,
DescribeByoipCidrsCommand,
DescribeCapacityBlockOfferingsCommand,
DescribeCapacityReservationBillingRequestsCommand,
DescribeCapacityReservationFleetsCommand,
DescribeCapacityReservationsCommand,
DescribeCarrierGatewaysCommand,
Expand Down Expand Up @@ -3474,6 +3502,7 @@ const commands = {
DisableVpcClassicLinkCommand,
DisableVpcClassicLinkDnsSupportCommand,
DisassociateAddressCommand,
DisassociateCapacityReservationBillingOwnerCommand,
DisassociateClientVpnTargetNetworkCommand,
DisassociateEnclaveCertificateIamRoleCommand,
DisassociateIamInstanceProfileCommand,
Expand Down Expand Up @@ -3651,6 +3680,7 @@ const commands = {
RegisterInstanceEventNotificationAttributesCommand,
RegisterTransitGatewayMulticastGroupMembersCommand,
RegisterTransitGatewayMulticastGroupSourcesCommand,
RejectCapacityReservationBillingOwnershipCommand,
RejectTransitGatewayMulticastDomainAssociationsCommand,
RejectTransitGatewayPeeringAttachmentCommand,
RejectTransitGatewayVpcAttachmentCommand,
Expand Down Expand Up @@ -3725,6 +3755,23 @@ export interface EC2 {
cb: (err: any, data?: AcceptAddressTransferCommandOutput) => void
): void;

/**
* @see {@link AcceptCapacityReservationBillingOwnershipCommand}
*/
acceptCapacityReservationBillingOwnership(
args: AcceptCapacityReservationBillingOwnershipCommandInput,
options?: __HttpHandlerOptions
): Promise<AcceptCapacityReservationBillingOwnershipCommandOutput>;
acceptCapacityReservationBillingOwnership(
args: AcceptCapacityReservationBillingOwnershipCommandInput,
cb: (err: any, data?: AcceptCapacityReservationBillingOwnershipCommandOutput) => void
): void;
acceptCapacityReservationBillingOwnership(
args: AcceptCapacityReservationBillingOwnershipCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: AcceptCapacityReservationBillingOwnershipCommandOutput) => void
): void;

/**
* @see {@link AcceptReservedInstancesExchangeQuoteCommand}
*/
Expand Down Expand Up @@ -3974,6 +4021,23 @@ export interface EC2 {
cb: (err: any, data?: AssociateAddressCommandOutput) => void
): void;

/**
* @see {@link AssociateCapacityReservationBillingOwnerCommand}
*/
associateCapacityReservationBillingOwner(
args: AssociateCapacityReservationBillingOwnerCommandInput,
options?: __HttpHandlerOptions
): Promise<AssociateCapacityReservationBillingOwnerCommandOutput>;
associateCapacityReservationBillingOwner(
args: AssociateCapacityReservationBillingOwnerCommandInput,
cb: (err: any, data?: AssociateCapacityReservationBillingOwnerCommandOutput) => void
): void;
associateCapacityReservationBillingOwner(
args: AssociateCapacityReservationBillingOwnerCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: AssociateCapacityReservationBillingOwnerCommandOutput) => void
): void;

/**
* @see {@link AssociateClientVpnTargetNetworkCommand}
*/
Expand Down Expand Up @@ -7498,6 +7562,23 @@ export interface EC2 {
cb: (err: any, data?: DescribeCapacityBlockOfferingsCommandOutput) => void
): void;

/**
* @see {@link DescribeCapacityReservationBillingRequestsCommand}
*/
describeCapacityReservationBillingRequests(
args: DescribeCapacityReservationBillingRequestsCommandInput,
options?: __HttpHandlerOptions
): Promise<DescribeCapacityReservationBillingRequestsCommandOutput>;
describeCapacityReservationBillingRequests(
args: DescribeCapacityReservationBillingRequestsCommandInput,
cb: (err: any, data?: DescribeCapacityReservationBillingRequestsCommandOutput) => void
): void;
describeCapacityReservationBillingRequests(
args: DescribeCapacityReservationBillingRequestsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DescribeCapacityReservationBillingRequestsCommandOutput) => void
): void;

/**
* @see {@link DescribeCapacityReservationFleetsCommand}
*/
Expand Down Expand Up @@ -10381,6 +10462,23 @@ export interface EC2 {
cb: (err: any, data?: DisassociateAddressCommandOutput) => void
): void;

/**
* @see {@link DisassociateCapacityReservationBillingOwnerCommand}
*/
disassociateCapacityReservationBillingOwner(
args: DisassociateCapacityReservationBillingOwnerCommandInput,
options?: __HttpHandlerOptions
): Promise<DisassociateCapacityReservationBillingOwnerCommandOutput>;
disassociateCapacityReservationBillingOwner(
args: DisassociateCapacityReservationBillingOwnerCommandInput,
cb: (err: any, data?: DisassociateCapacityReservationBillingOwnerCommandOutput) => void
): void;
disassociateCapacityReservationBillingOwner(
args: DisassociateCapacityReservationBillingOwnerCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DisassociateCapacityReservationBillingOwnerCommandOutput) => void
): void;

/**
* @see {@link DisassociateClientVpnTargetNetworkCommand}
*/
Expand Down Expand Up @@ -13319,6 +13417,23 @@ export interface EC2 {
cb: (err: any, data?: RegisterTransitGatewayMulticastGroupSourcesCommandOutput) => void
): void;

/**
* @see {@link RejectCapacityReservationBillingOwnershipCommand}
*/
rejectCapacityReservationBillingOwnership(
args: RejectCapacityReservationBillingOwnershipCommandInput,
options?: __HttpHandlerOptions
): Promise<RejectCapacityReservationBillingOwnershipCommandOutput>;
rejectCapacityReservationBillingOwnership(
args: RejectCapacityReservationBillingOwnershipCommandInput,
cb: (err: any, data?: RejectCapacityReservationBillingOwnershipCommandOutput) => void
): void;
rejectCapacityReservationBillingOwnership(
args: RejectCapacityReservationBillingOwnershipCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: RejectCapacityReservationBillingOwnershipCommandOutput) => void
): void;

/**
* @see {@link RejectTransitGatewayMulticastDomainAssociationsCommand}
*/
Expand Down
Loading

0 comments on commit 88ca256

Please sign in to comment.