Skip to content

Commit 69fe645

Browse files
author
awstools
committed
feat(client-ec2): Launch of cost distribution feature for IPAM owners to distribute costs to internal teams.
1 parent 7283ff5 commit 69fe645

21 files changed

+438
-311
lines changed

clients/client-ec2/src/commands/CreateIpamCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export interface CreateIpamCommandOutput extends CreateIpamResult, __MetadataBea
6262
* ClientToken: "STRING_VALUE",
6363
* Tier: "free" || "advanced",
6464
* EnablePrivateGua: true || false,
65+
* MeteredAccount: "ipam-owner" || "resource-owner",
6566
* };
6667
* const command = new CreateIpamCommand(input);
6768
* const response = await client.send(command);
@@ -93,6 +94,7 @@ export interface CreateIpamCommandOutput extends CreateIpamResult, __MetadataBea
9394
* // StateMessage: "STRING_VALUE",
9495
* // Tier: "free" || "advanced",
9596
* // EnablePrivateGua: true || false,
97+
* // MeteredAccount: "ipam-owner" || "resource-owner",
9698
* // },
9799
* // };
98100
*

clients/client-ec2/src/commands/DeleteIpamCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export interface DeleteIpamCommandOutput extends DeleteIpamResult, __MetadataBea
7272
* // StateMessage: "STRING_VALUE",
7373
* // Tier: "free" || "advanced",
7474
* // EnablePrivateGua: true || false,
75+
* // MeteredAccount: "ipam-owner" || "resource-owner",
7576
* // },
7677
* // };
7778
*

clients/client-ec2/src/commands/DescribeCapacityBlockOfferingsCommand.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,7 @@ export interface DescribeCapacityBlockOfferingsCommandOutput
3636
* <p>Describes Capacity Block offerings available for purchase in the Amazon Web Services Region that you're currently using. With Capacity Blocks, you purchase a
3737
* specific instance type for a period of time.</p>
3838
* <p>To search for an available Capacity Block offering, you specify a reservation duration
39-
* and instance count. You must select one of the following options.</p>
40-
* <ul>
41-
* <li>
42-
* <p>For reservation durations<b> 1-day increments
43-
* up 14 days and 7-day increments up to 182 days total</b>
44-
* </p>
45-
* </li>
46-
* <li>
47-
* <p>For instance count<b> 1, 2, 4, 8, 16, 32, or
48-
* 64 instances</b>
49-
* </p>
50-
* </li>
51-
* </ul>
39+
* and instance count.</p>
5240
* @example
5341
* Use a bare-bones client and the command you need to make an API call.
5442
* ```javascript

clients/client-ec2/src/commands/DescribeConversionTasksCommand.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { DescribeConversionTasksRequest } from "../models/models_3";
10-
import { DescribeConversionTasksResult, DescribeConversionTasksResultFilterSensitiveLog } from "../models/models_4";
9+
import {
10+
DescribeConversionTasksRequest,
11+
DescribeConversionTasksResult,
12+
DescribeConversionTasksResultFilterSensitiveLog,
13+
} from "../models/models_4";
1114
import { de_DescribeConversionTasksCommand, se_DescribeConversionTasksCommand } from "../protocols/Aws_ec2";
1215

1316
/**

clients/client-ec2/src/commands/DescribeIpamsCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export interface DescribeIpamsCommandOutput extends DescribeIpamsResult, __Metad
8585
* // StateMessage: "STRING_VALUE",
8686
* // Tier: "free" || "advanced",
8787
* // EnablePrivateGua: true || false,
88+
* // MeteredAccount: "ipam-owner" || "resource-owner",
8889
* // },
8990
* // ],
9091
* // };

clients/client-ec2/src/commands/DescribeManagedPrefixListsCommand.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { DescribeManagedPrefixListsRequest, DescribeManagedPrefixListsResult } from "../models/models_4";
9+
import { DescribeManagedPrefixListsRequest } from "../models/models_4";
10+
import { DescribeManagedPrefixListsResult } from "../models/models_5";
1011
import { de_DescribeManagedPrefixListsCommand, se_DescribeManagedPrefixListsCommand } from "../protocols/Aws_ec2";
1112

1213
/**

clients/client-ec2/src/commands/DisableImageDeregistrationProtectionCommand.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { DisableImageDeregistrationProtectionRequest } from "../models/models_5";
10-
import { DisableImageDeregistrationProtectionResult } from "../models/models_6";
9+
import {
10+
DisableImageDeregistrationProtectionRequest,
11+
DisableImageDeregistrationProtectionResult,
12+
} from "../models/models_6";
1113
import {
1214
de_DisableImageDeregistrationProtectionCommand,
1315
se_DisableImageDeregistrationProtectionCommand,

clients/client-ec2/src/commands/ModifyIpamCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export interface ModifyIpamCommandOutput extends ModifyIpamResult, __MetadataBea
5252
* ],
5353
* Tier: "free" || "advanced",
5454
* EnablePrivateGua: true || false,
55+
* MeteredAccount: "ipam-owner" || "resource-owner",
5556
* };
5657
* const command = new ModifyIpamCommand(input);
5758
* const response = await client.send(command);
@@ -83,6 +84,7 @@ export interface ModifyIpamCommandOutput extends ModifyIpamResult, __MetadataBea
8384
* // StateMessage: "STRING_VALUE",
8485
* // Tier: "free" || "advanced",
8586
* // EnablePrivateGua: true || false,
87+
* // MeteredAccount: "ipam-owner" || "resource-owner",
8688
* // },
8789
* // };
8890
*

clients/client-ec2/src/commands/RestoreAddressToClassicCommand.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { RestoreAddressToClassicRequest, RestoreAddressToClassicResult } from "../models/models_7";
9+
import { RestoreAddressToClassicRequest } from "../models/models_7";
10+
import { RestoreAddressToClassicResult } from "../models/models_8";
1011
import { de_RestoreAddressToClassicCommand, se_RestoreAddressToClassicCommand } from "../protocols/Aws_ec2";
1112

1213
/**

clients/client-ec2/src/commands/StopInstancesCommand.ts

Lines changed: 23 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -31,35 +31,31 @@ export interface StopInstancesCommandOutput extends StopInstancesResult, __Metad
3131
* <p>Stops an Amazon EBS-backed instance. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html">Stop and start
3232
* Amazon EC2 instances</a> in the <i>Amazon EC2 User
3333
* Guide</i>.</p>
34-
* <p>You can use the Stop action to hibernate an instance if the instance is <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/enabling-hibernation.html">enabled
35-
* for hibernation</a> and it meets the <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html">hibernation
36-
* prerequisites</a>. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html">Hibernate your Amazon EC2
34+
* <p>When you stop an instance, we shut it down. You can restart your instance at any
35+
* time.</p>
36+
* <p>You can use the Stop operation together with the Hibernate parameter to hibernate an
37+
* instance if the instance is <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/enabling-hibernation.html">enabled for
38+
* hibernation</a> and meets the <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html">hibernation
39+
* prerequisites</a>. Stopping an instance doesn't preserve data stored in RAM,
40+
* while hibernation does. If hibernation fails, a normal shutdown occurs. For more
41+
* information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html">Hibernate your Amazon EC2
3742
* instance</a> in the <i>Amazon EC2 User Guide</i>.</p>
38-
* <p>We don't charge usage for a stopped instance, or data transfer fees; however, your
39-
* root partition Amazon EBS volume remains and continues to persist your data, and you are
40-
* charged for Amazon EBS volume usage. Every time you start your instance, Amazon EC2
41-
* charges a one-minute minimum for instance usage, and thereafter charges per second for
42-
* instance usage.</p>
43-
* <p>You can't stop or hibernate instance store-backed instances. You can't use the Stop
44-
* action to hibernate Spot Instances, but you can specify that Amazon EC2 should hibernate
45-
* Spot Instances when they are interrupted. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-interruptions.html#hibernate-spot-instances">Hibernating interrupted Spot Instances</a> in the
43+
* <p>If your instance appears stuck in the <code>stopping</code> state, there might be an
44+
* issue with the underlying host computer. You can use the Stop operation together with
45+
* the Force parameter to force stop your instance. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesStopping.html">Troubleshoot
46+
* Amazon EC2 instance stop issues</a> in the
4647
* <i>Amazon EC2 User Guide</i>.</p>
47-
* <p>When you stop or hibernate an instance, we shut it down. You can restart your instance
48-
* at any time. Before stopping or hibernating an instance, make sure it is in a state from
49-
* which it can be restarted. Stopping an instance does not preserve data stored in RAM,
50-
* but hibernating an instance does preserve data stored in RAM. If an instance cannot
51-
* hibernate successfully, a normal shutdown occurs.</p>
52-
* <p>Stopping and hibernating an instance is different to rebooting or terminating it. For
53-
* example, when you stop or hibernate an instance, the root device and any other devices
54-
* attached to the instance persist. When you terminate an instance, the root device and
55-
* any other devices attached during the instance launch are automatically deleted. For
56-
* more information about the differences between rebooting, stopping, hibernating, and
57-
* terminating instances, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html">Instance lifecycle</a>
58-
* in the <i>Amazon EC2 User Guide</i>.</p>
59-
* <p>When you stop an instance, we attempt to shut it down forcibly after a short while. If
60-
* your instance appears stuck in the stopping state after a period of time, there may be
61-
* an issue with the underlying host computer. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesStopping.html">Troubleshoot
62-
* stopping your instance</a> in the <i>Amazon EC2 User Guide</i>.</p>
48+
* <p>Stopping and hibernating an instance differs from rebooting or terminating it. For
49+
* example, a stopped or hibernated instance retains its root volume and any data volumes,
50+
* unlike terminated instances where these volumes are automatically deleted. For more
51+
* information about the differences between stopping, hibernating, rebooting, and
52+
* terminating instances, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html">Amazon EC2
53+
* instance state changes</a> in the <i>Amazon EC2 User Guide</i>.</p>
54+
* <p>We don't charge for instance usage or data transfer fees when an instance is stopped.
55+
* However, the root volume and any data volumes remain and continue to persist your data,
56+
* and you're charged for volume usage. Every time you start your instance, Amazon EC2 charges a one-minute minimum for instance usage, followed by per-second
57+
* billing.</p>
58+
* <p>You can't stop or hibernate instance store-backed instances.</p>
6359
* @example
6460
* Use a bare-bones client and the command you need to make an API call.
6561
* ```javascript

0 commit comments

Comments
 (0)