Skip to content

Commit 88ca256

Browse files
author
awstools
committed
feat(client-ec2): This release adds support for assigning the billing of shared Amazon EC2 On-Demand Capacity Reservations.
1 parent f477263 commit 88ca256

File tree

50 files changed

+11924
-9890
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+11924
-9890
lines changed

clients/client-ec2/README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,14 @@ AcceptAddressTransfer
213213

214214
[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/)
215215

216+
</details>
217+
<details>
218+
<summary>
219+
AcceptCapacityReservationBillingOwnership
220+
</summary>
221+
222+
[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/)
223+
216224
</details>
217225
<details>
218226
<summary>
@@ -333,6 +341,14 @@ AssociateAddress
333341

334342
[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/)
335343

344+
</details>
345+
<details>
346+
<summary>
347+
AssociateCapacityReservationBillingOwner
348+
</summary>
349+
350+
[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/)
351+
336352
</details>
337353
<details>
338354
<summary>
@@ -2061,6 +2077,14 @@ DescribeCapacityBlockOfferings
20612077

20622078
[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/)
20632079

2080+
</details>
2081+
<details>
2082+
<summary>
2083+
DescribeCapacityReservationBillingRequests
2084+
</summary>
2085+
2086+
[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/)
2087+
20642088
</details>
20652089
<details>
20662090
<summary>
@@ -3381,6 +3405,14 @@ DisassociateAddress
33813405

33823406
[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/)
33833407

3408+
</details>
3409+
<details>
3410+
<summary>
3411+
DisassociateCapacityReservationBillingOwner
3412+
</summary>
3413+
3414+
[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/)
3415+
33843416
</details>
33853417
<details>
33863418
<summary>
@@ -4797,6 +4829,14 @@ RegisterTransitGatewayMulticastGroupSources
47974829

47984830
[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/)
47994831

4832+
</details>
4833+
<details>
4834+
<summary>
4835+
RejectCapacityReservationBillingOwnership
4836+
</summary>
4837+
4838+
[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/)
4839+
48004840
</details>
48014841
<details>
48024842
<summary>

clients/client-ec2/src/EC2.ts

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ import {
77
AcceptAddressTransferCommandInput,
88
AcceptAddressTransferCommandOutput,
99
} from "./commands/AcceptAddressTransferCommand";
10+
import {
11+
AcceptCapacityReservationBillingOwnershipCommand,
12+
AcceptCapacityReservationBillingOwnershipCommandInput,
13+
AcceptCapacityReservationBillingOwnershipCommandOutput,
14+
} from "./commands/AcceptCapacityReservationBillingOwnershipCommand";
1015
import {
1116
AcceptReservedInstancesExchangeQuoteCommand,
1217
AcceptReservedInstancesExchangeQuoteCommandInput,
@@ -82,6 +87,11 @@ import {
8287
AssociateAddressCommandInput,
8388
AssociateAddressCommandOutput,
8489
} from "./commands/AssociateAddressCommand";
90+
import {
91+
AssociateCapacityReservationBillingOwnerCommand,
92+
AssociateCapacityReservationBillingOwnerCommandInput,
93+
AssociateCapacityReservationBillingOwnerCommandOutput,
94+
} from "./commands/AssociateCapacityReservationBillingOwnerCommand";
8595
import {
8696
AssociateClientVpnTargetNetworkCommand,
8797
AssociateClientVpnTargetNetworkCommandInput,
@@ -1118,6 +1128,11 @@ import {
11181128
DescribeCapacityBlockOfferingsCommandInput,
11191129
DescribeCapacityBlockOfferingsCommandOutput,
11201130
} from "./commands/DescribeCapacityBlockOfferingsCommand";
1131+
import {
1132+
DescribeCapacityReservationBillingRequestsCommand,
1133+
DescribeCapacityReservationBillingRequestsCommandInput,
1134+
DescribeCapacityReservationBillingRequestsCommandOutput,
1135+
} from "./commands/DescribeCapacityReservationBillingRequestsCommand";
11211136
import {
11221137
DescribeCapacityReservationFleetsCommand,
11231138
DescribeCapacityReservationFleetsCommandInput,
@@ -1943,6 +1958,11 @@ import {
19431958
DisassociateAddressCommandInput,
19441959
DisassociateAddressCommandOutput,
19451960
} from "./commands/DisassociateAddressCommand";
1961+
import {
1962+
DisassociateCapacityReservationBillingOwnerCommand,
1963+
DisassociateCapacityReservationBillingOwnerCommandInput,
1964+
DisassociateCapacityReservationBillingOwnerCommandOutput,
1965+
} from "./commands/DisassociateCapacityReservationBillingOwnerCommand";
19461966
import {
19471967
DisassociateClientVpnTargetNetworkCommand,
19481968
DisassociateClientVpnTargetNetworkCommandInput,
@@ -2804,6 +2824,11 @@ import {
28042824
RegisterTransitGatewayMulticastGroupSourcesCommandInput,
28052825
RegisterTransitGatewayMulticastGroupSourcesCommandOutput,
28062826
} from "./commands/RegisterTransitGatewayMulticastGroupSourcesCommand";
2827+
import {
2828+
RejectCapacityReservationBillingOwnershipCommand,
2829+
RejectCapacityReservationBillingOwnershipCommandInput,
2830+
RejectCapacityReservationBillingOwnershipCommandOutput,
2831+
} from "./commands/RejectCapacityReservationBillingOwnershipCommand";
28072832
import {
28082833
RejectTransitGatewayMulticastDomainAssociationsCommand,
28092834
RejectTransitGatewayMulticastDomainAssociationsCommandInput,
@@ -3078,6 +3103,7 @@ import { EC2Client, EC2ClientConfig } from "./EC2Client";
30783103

30793104
const commands = {
30803105
AcceptAddressTransferCommand,
3106+
AcceptCapacityReservationBillingOwnershipCommand,
30813107
AcceptReservedInstancesExchangeQuoteCommand,
30823108
AcceptTransitGatewayMulticastDomainAssociationsCommand,
30833109
AcceptTransitGatewayPeeringAttachmentCommand,
@@ -3093,6 +3119,7 @@ const commands = {
30933119
AssignPrivateIpAddressesCommand,
30943120
AssignPrivateNatGatewayAddressCommand,
30953121
AssociateAddressCommand,
3122+
AssociateCapacityReservationBillingOwnerCommand,
30963123
AssociateClientVpnTargetNetworkCommand,
30973124
AssociateDhcpOptionsCommand,
30983125
AssociateEnclaveCertificateIamRoleCommand,
@@ -3309,6 +3336,7 @@ const commands = {
33093336
DescribeBundleTasksCommand,
33103337
DescribeByoipCidrsCommand,
33113338
DescribeCapacityBlockOfferingsCommand,
3339+
DescribeCapacityReservationBillingRequestsCommand,
33123340
DescribeCapacityReservationFleetsCommand,
33133341
DescribeCapacityReservationsCommand,
33143342
DescribeCarrierGatewaysCommand,
@@ -3474,6 +3502,7 @@ const commands = {
34743502
DisableVpcClassicLinkCommand,
34753503
DisableVpcClassicLinkDnsSupportCommand,
34763504
DisassociateAddressCommand,
3505+
DisassociateCapacityReservationBillingOwnerCommand,
34773506
DisassociateClientVpnTargetNetworkCommand,
34783507
DisassociateEnclaveCertificateIamRoleCommand,
34793508
DisassociateIamInstanceProfileCommand,
@@ -3651,6 +3680,7 @@ const commands = {
36513680
RegisterInstanceEventNotificationAttributesCommand,
36523681
RegisterTransitGatewayMulticastGroupMembersCommand,
36533682
RegisterTransitGatewayMulticastGroupSourcesCommand,
3683+
RejectCapacityReservationBillingOwnershipCommand,
36543684
RejectTransitGatewayMulticastDomainAssociationsCommand,
36553685
RejectTransitGatewayPeeringAttachmentCommand,
36563686
RejectTransitGatewayVpcAttachmentCommand,
@@ -3725,6 +3755,23 @@ export interface EC2 {
37253755
cb: (err: any, data?: AcceptAddressTransferCommandOutput) => void
37263756
): void;
37273757

3758+
/**
3759+
* @see {@link AcceptCapacityReservationBillingOwnershipCommand}
3760+
*/
3761+
acceptCapacityReservationBillingOwnership(
3762+
args: AcceptCapacityReservationBillingOwnershipCommandInput,
3763+
options?: __HttpHandlerOptions
3764+
): Promise<AcceptCapacityReservationBillingOwnershipCommandOutput>;
3765+
acceptCapacityReservationBillingOwnership(
3766+
args: AcceptCapacityReservationBillingOwnershipCommandInput,
3767+
cb: (err: any, data?: AcceptCapacityReservationBillingOwnershipCommandOutput) => void
3768+
): void;
3769+
acceptCapacityReservationBillingOwnership(
3770+
args: AcceptCapacityReservationBillingOwnershipCommandInput,
3771+
options: __HttpHandlerOptions,
3772+
cb: (err: any, data?: AcceptCapacityReservationBillingOwnershipCommandOutput) => void
3773+
): void;
3774+
37283775
/**
37293776
* @see {@link AcceptReservedInstancesExchangeQuoteCommand}
37303777
*/
@@ -3974,6 +4021,23 @@ export interface EC2 {
39744021
cb: (err: any, data?: AssociateAddressCommandOutput) => void
39754022
): void;
39764023

4024+
/**
4025+
* @see {@link AssociateCapacityReservationBillingOwnerCommand}
4026+
*/
4027+
associateCapacityReservationBillingOwner(
4028+
args: AssociateCapacityReservationBillingOwnerCommandInput,
4029+
options?: __HttpHandlerOptions
4030+
): Promise<AssociateCapacityReservationBillingOwnerCommandOutput>;
4031+
associateCapacityReservationBillingOwner(
4032+
args: AssociateCapacityReservationBillingOwnerCommandInput,
4033+
cb: (err: any, data?: AssociateCapacityReservationBillingOwnerCommandOutput) => void
4034+
): void;
4035+
associateCapacityReservationBillingOwner(
4036+
args: AssociateCapacityReservationBillingOwnerCommandInput,
4037+
options: __HttpHandlerOptions,
4038+
cb: (err: any, data?: AssociateCapacityReservationBillingOwnerCommandOutput) => void
4039+
): void;
4040+
39774041
/**
39784042
* @see {@link AssociateClientVpnTargetNetworkCommand}
39794043
*/
@@ -7498,6 +7562,23 @@ export interface EC2 {
74987562
cb: (err: any, data?: DescribeCapacityBlockOfferingsCommandOutput) => void
74997563
): void;
75007564

7565+
/**
7566+
* @see {@link DescribeCapacityReservationBillingRequestsCommand}
7567+
*/
7568+
describeCapacityReservationBillingRequests(
7569+
args: DescribeCapacityReservationBillingRequestsCommandInput,
7570+
options?: __HttpHandlerOptions
7571+
): Promise<DescribeCapacityReservationBillingRequestsCommandOutput>;
7572+
describeCapacityReservationBillingRequests(
7573+
args: DescribeCapacityReservationBillingRequestsCommandInput,
7574+
cb: (err: any, data?: DescribeCapacityReservationBillingRequestsCommandOutput) => void
7575+
): void;
7576+
describeCapacityReservationBillingRequests(
7577+
args: DescribeCapacityReservationBillingRequestsCommandInput,
7578+
options: __HttpHandlerOptions,
7579+
cb: (err: any, data?: DescribeCapacityReservationBillingRequestsCommandOutput) => void
7580+
): void;
7581+
75017582
/**
75027583
* @see {@link DescribeCapacityReservationFleetsCommand}
75037584
*/
@@ -10381,6 +10462,23 @@ export interface EC2 {
1038110462
cb: (err: any, data?: DisassociateAddressCommandOutput) => void
1038210463
): void;
1038310464

10465+
/**
10466+
* @see {@link DisassociateCapacityReservationBillingOwnerCommand}
10467+
*/
10468+
disassociateCapacityReservationBillingOwner(
10469+
args: DisassociateCapacityReservationBillingOwnerCommandInput,
10470+
options?: __HttpHandlerOptions
10471+
): Promise<DisassociateCapacityReservationBillingOwnerCommandOutput>;
10472+
disassociateCapacityReservationBillingOwner(
10473+
args: DisassociateCapacityReservationBillingOwnerCommandInput,
10474+
cb: (err: any, data?: DisassociateCapacityReservationBillingOwnerCommandOutput) => void
10475+
): void;
10476+
disassociateCapacityReservationBillingOwner(
10477+
args: DisassociateCapacityReservationBillingOwnerCommandInput,
10478+
options: __HttpHandlerOptions,
10479+
cb: (err: any, data?: DisassociateCapacityReservationBillingOwnerCommandOutput) => void
10480+
): void;
10481+
1038410482
/**
1038510483
* @see {@link DisassociateClientVpnTargetNetworkCommand}
1038610484
*/
@@ -13319,6 +13417,23 @@ export interface EC2 {
1331913417
cb: (err: any, data?: RegisterTransitGatewayMulticastGroupSourcesCommandOutput) => void
1332013418
): void;
1332113419

13420+
/**
13421+
* @see {@link RejectCapacityReservationBillingOwnershipCommand}
13422+
*/
13423+
rejectCapacityReservationBillingOwnership(
13424+
args: RejectCapacityReservationBillingOwnershipCommandInput,
13425+
options?: __HttpHandlerOptions
13426+
): Promise<RejectCapacityReservationBillingOwnershipCommandOutput>;
13427+
rejectCapacityReservationBillingOwnership(
13428+
args: RejectCapacityReservationBillingOwnershipCommandInput,
13429+
cb: (err: any, data?: RejectCapacityReservationBillingOwnershipCommandOutput) => void
13430+
): void;
13431+
rejectCapacityReservationBillingOwnership(
13432+
args: RejectCapacityReservationBillingOwnershipCommandInput,
13433+
options: __HttpHandlerOptions,
13434+
cb: (err: any, data?: RejectCapacityReservationBillingOwnershipCommandOutput) => void
13435+
): void;
13436+
1332213437
/**
1332313438
* @see {@link RejectTransitGatewayMulticastDomainAssociationsCommand}
1332413439
*/

0 commit comments

Comments
 (0)