Skip to content

Commit db91280

Browse files
author
awstools
committed
feat(client-ec2): This release adds a new optional parameter "privateIpAddress" for the CreateNatGateway API. PrivateIPAddress will allow customers to select a custom Private IPv4 address instead of having it be auto-assigned.
1 parent 55ce77a commit db91280

File tree

5 files changed

+147
-140
lines changed

5 files changed

+147
-140
lines changed

clients/client-ec2/src/models/models_1.ts

Lines changed: 39 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1276,48 +1276,28 @@ export interface SpotOptionsRequest {
12761276
* <p>The strategy that determines how to allocate the target Spot Instance capacity across the Spot Instance
12771277
* pools specified by the EC2 Fleet launch configuration. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-allocation-strategy.html">Allocation strategies for Spot Instances</a> in the
12781278
* <i>Amazon EC2 User Guide</i>.</p>
1279-
*
1280-
* <dl>
1281-
* <dt>price-capacity-optimized (recommended)</dt>
1282-
* <dd>
1283-
* <p>EC2 Fleet identifies the pools with
1284-
* the highest capacity availability for the number of instances that are launching. This means
1285-
* that we will request Spot Instances from the pools that we believe have the lowest chance of interruption
1286-
* in the near term. EC2 Fleet then requests Spot Instances from the lowest priced of these pools.</p>
1287-
* </dd>
1288-
* <dt>capacity-optimized</dt>
1289-
* <dd>
1290-
* <p>EC2 Fleet identifies the pools with
1291-
* the highest capacity availability for the number of instances that are launching. This means
1292-
* that we will request Spot Instances from the pools that we believe have the lowest chance of interruption
1293-
* in the near term. To give certain
1294-
* instance types a higher chance of launching first, use
1295-
* <code>capacity-optimized-prioritized</code>. Set a priority for each instance type by
1296-
* using the <code>Priority</code> parameter for <code>LaunchTemplateOverrides</code>. You can
1297-
* assign the same priority to different <code>LaunchTemplateOverrides</code>. EC2 implements
1298-
* the priorities on a best-effort basis, but optimizes for capacity first.
1299-
* <code>capacity-optimized-prioritized</code> is supported only if your EC2 Fleet uses a
1300-
* launch template. Note that if the On-Demand <code>AllocationStrategy</code> is set to
1301-
* <code>prioritized</code>, the same priority is applied when fulfilling On-Demand
1302-
* capacity.</p>
1303-
* </dd>
1304-
* <dt>diversified</dt>
1305-
* <dd>
1306-
* <p>EC2 Fleet requests instances from all of the Spot Instance pools that you
1307-
* specify.</p>
1308-
* </dd>
1309-
* <dt>lowest-price</dt>
1310-
* <dd>
1311-
* <p>EC2 Fleet requests instances from the lowest priced Spot Instance pool that
1312-
* has available capacity. If the lowest priced pool doesn't have available capacity, the Spot Instances
1313-
* come from the next lowest priced pool that has available capacity. If a pool runs out of
1314-
* capacity before fulfilling your desired capacity, EC2 Fleet will continue to fulfill your
1315-
* request by drawing from the next lowest priced pool. To ensure that your desired capacity is
1316-
* met, you might receive Spot Instances from several pools. Because this strategy only considers instance
1317-
* price and not capacity availability, it might lead to high interruption rates.</p>
1318-
* </dd>
1319-
* </dl>
1320-
*
1279+
* <p>
1280+
* <code>lowest-price</code> - EC2 Fleet launches instances from the lowest-price Spot Instance pool that
1281+
* has available capacity. If the cheapest pool doesn't have available capacity, the Spot Instances
1282+
* come from the next cheapest pool that has available capacity. If a pool runs out of
1283+
* capacity before fulfilling your desired capacity, EC2 Fleet will continue to fulfill your
1284+
* request by drawing from the next cheapest pool. To ensure that your desired capacity is
1285+
* met, you might receive Spot Instances from several pools.</p>
1286+
* <p>
1287+
* <code>diversified</code> - EC2 Fleet launches instances from all
1288+
* of the Spot Instance pools that you specify.</p>
1289+
* <p>
1290+
* <code>capacity-optimized</code> (recommended) - EC2 Fleet
1291+
* launches instances from Spot Instance pools with optimal capacity for the number of instances that
1292+
* are launching. To give certain instance types a higher chance of launching first, use
1293+
* <code>capacity-optimized-prioritized</code>. Set a priority for each instance type by
1294+
* using the <code>Priority</code> parameter for <code>LaunchTemplateOverrides</code>. You can
1295+
* assign the same priority to different <code>LaunchTemplateOverrides</code>. EC2 implements
1296+
* the priorities on a best-effort basis, but optimizes for capacity first.
1297+
* <code>capacity-optimized-prioritized</code> is supported only if your fleet uses a
1298+
* launch template. Note that if the On-Demand <code>AllocationStrategy</code> is set to
1299+
* <code>prioritized</code>, the same priority is applied when fulfilling On-Demand
1300+
* capacity.</p>
13211301
* <p>Default: <code>lowest-price</code>
13221302
* </p>
13231303
*/
@@ -2337,7 +2317,8 @@ export interface CreateFlowLogsRequest {
23372317
/**
23382318
* <p>The IDs of the resources to monitor. For example, if the resource type is
23392319
* <code>VPC</code>, specify the IDs of the VPCs.</p>
2340-
* <p>Constraints: Maximum of 1000 resources</p>
2320+
* <p>Constraints: Maximum of 25 for transit gateway resource types. Maximum of 1000 for the
2321+
* other resource types.</p>
23412322
*/
23422323
ResourceIds: string[] | undefined;
23432324

@@ -2347,8 +2328,9 @@ export interface CreateFlowLogsRequest {
23472328
ResourceType: FlowLogsResourceType | string | undefined;
23482329

23492330
/**
2350-
* <p>The type of traffic to monitor (accepted traffic, rejected traffic, or all
2351-
* traffic).</p>
2331+
* <p>The type of traffic to monitor (accepted traffic, rejected traffic, or all traffic).
2332+
* This parameter is not supported for transit gateway resource types. It is required for
2333+
* the other resource types.</p>
23522334
*/
23532335
TrafficType?: TrafficType | string;
23542336

@@ -2384,10 +2366,11 @@ export interface CreateFlowLogsRequest {
23842366

23852367
/**
23862368
* <p>The fields to include in the flow log record. List the fields in the order in which
2387-
* they should appear. For more information about the available fields, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs.html#flow-log-records">Flow log
2388-
* records</a>. If you omit this parameter, the flow log is created using the
2369+
* they should appear. If you omit this parameter, the flow log is created using the
23892370
* default format. If you specify this parameter, you must include at least one
2390-
* field.</p>
2371+
* field. For more information about the available fields, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs.html#flow-log-records">Flow log
2372+
* records</a> in the <i>Amazon VPC User Guide</i> or <a href="https://docs.aws.amazon.com/vpc/latest/tgw/tgw-flow-logs.html#flow-log-records">Transit Gateway Flow Log
2373+
* records</a> in the <i>Amazon Web Services Transit Gateway Guide</i>.</p>
23912374
* <p>Specify the fields using the <code>${field-id}</code> format, separated by spaces. For
23922375
* the CLI, surround this parameter value with single quotes on Linux or
23932376
* double quotes on Windows.</p>
@@ -2400,7 +2383,9 @@ export interface CreateFlowLogsRequest {
24002383
TagSpecifications?: TagSpecification[];
24012384

24022385
/**
2403-
* <p>The maximum interval of time during which a flow of packets is captured and aggregated into a flow log record. You can specify 60 seconds (1 minute) or 600 seconds (10 minutes).</p>
2386+
* <p>The maximum interval of time during which a flow of packets is captured and aggregated into a flow log record.
2387+
* The possible values are 60 seconds (1 minute) or 600 seconds (10 minutes).
2388+
* This parameter must be 60 seconds for transit gateway resource types.</p>
24042389
* <p>When a network interface is attached to a <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances">Nitro-based
24052390
* instance</a>, the aggregation interval is always 60 seconds or less, regardless
24062391
* of the value that you specify.</p>
@@ -6247,6 +6232,11 @@ export interface CreateNatGatewayRequest {
62476232
* The default is public connectivity.</p>
62486233
*/
62496234
ConnectivityType?: ConnectivityType | string;
6235+
6236+
/**
6237+
* <p>The private IPv4 address to assign to the NAT gateway. If you don't provide an address, a private IPv4 address will be automatically assigned.</p>
6238+
*/
6239+
PrivateIpAddress?: string;
62506240
}
62516241

62526242
/**

clients/client-ec2/src/models/models_3.ts

Lines changed: 22 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -3598,48 +3598,28 @@ export interface SpotOptions {
35983598
* <p>The strategy that determines how to allocate the target Spot Instance capacity across the Spot Instance
35993599
* pools specified by the EC2 Fleet launch configuration. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-allocation-strategy.html">Allocation strategies for Spot Instances</a> in the
36003600
* <i>Amazon EC2 User Guide</i>.</p>
3601-
*
3602-
* <dl>
3603-
* <dt>price-capacity-optimized (recommended)</dt>
3604-
* <dd>
3605-
* <p>EC2 Fleet identifies the pools with
3606-
* the highest capacity availability for the number of instances that are launching. This means
3607-
* that we will request Spot Instances from the pools that we believe have the lowest chance of interruption
3608-
* in the near term. EC2 Fleet then requests Spot Instances from the lowest priced of these pools.</p>
3609-
* </dd>
3610-
* <dt>capacity-optimized</dt>
3611-
* <dd>
3612-
* <p>EC2 Fleet identifies the pools with
3613-
* the highest capacity availability for the number of instances that are launching. This means
3614-
* that we will request Spot Instances from the pools that we believe have the lowest chance of interruption
3615-
* in the near term. To give certain
3616-
* instance types a higher chance of launching first, use
3617-
* <code>capacity-optimized-prioritized</code>. Set a priority for each instance type by
3618-
* using the <code>Priority</code> parameter for <code>LaunchTemplateOverrides</code>. You can
3619-
* assign the same priority to different <code>LaunchTemplateOverrides</code>. EC2 implements
3620-
* the priorities on a best-effort basis, but optimizes for capacity first.
3621-
* <code>capacity-optimized-prioritized</code> is supported only if your EC2 Fleet uses a
3622-
* launch template. Note that if the On-Demand <code>AllocationStrategy</code> is set to
3623-
* <code>prioritized</code>, the same priority is applied when fulfilling On-Demand
3624-
* capacity.</p>
3625-
* </dd>
3626-
* <dt>diversified</dt>
3627-
* <dd>
3628-
* <p>EC2 Fleet requests instances from all of the Spot Instance pools that you
3629-
* specify.</p>
3630-
* </dd>
3631-
* <dt>lowest-price</dt>
3632-
* <dd>
3633-
* <p>EC2 Fleet requests instances from the lowest priced Spot Instance pool that
3634-
* has available capacity. If the lowest priced pool doesn't have available capacity, the Spot Instances
3635-
* come from the next lowest priced pool that has available capacity. If a pool runs out of
3636-
* capacity before fulfilling your desired capacity, EC2 Fleet will continue to fulfill your
3637-
* request by drawing from the next lowest priced pool. To ensure that your desired capacity is
3638-
* met, you might receive Spot Instances from several pools. Because this strategy only considers instance
3639-
* price and not capacity availability, it might lead to high interruption rates.</p>
3640-
* </dd>
3641-
* </dl>
3642-
*
3601+
* <p>
3602+
* <code>lowest-price</code> - EC2 Fleet launches instances from the lowest-price Spot Instance pool that
3603+
* has available capacity. If the cheapest pool doesn't have available capacity, the Spot Instances
3604+
* come from the next cheapest pool that has available capacity. If a pool runs out of
3605+
* capacity before fulfilling your desired capacity, EC2 Fleet will continue to fulfill your
3606+
* request by drawing from the next cheapest pool. To ensure that your desired capacity is
3607+
* met, you might receive Spot Instances from several pools.</p>
3608+
* <p>
3609+
* <code>diversified</code> - EC2 Fleet launches instances from all of the Spot Instance pools that you
3610+
* specify.</p>
3611+
* <p>
3612+
* <code>capacity-optimized</code> (recommended) - EC2 Fleet launches instances from Spot Instance pools
3613+
* with optimal capacity for the number of instances that are launching. To give certain
3614+
* instance types a higher chance of launching first, use
3615+
* <code>capacity-optimized-prioritized</code>. Set a priority for each instance type by
3616+
* using the <code>Priority</code> parameter for <code>LaunchTemplateOverrides</code>. You can
3617+
* assign the same priority to different <code>LaunchTemplateOverrides</code>. EC2 implements
3618+
* the priorities on a best-effort basis, but optimizes for capacity first.
3619+
* <code>capacity-optimized-prioritized</code> is supported only if your fleet uses a
3620+
* launch template. Note that if the On-Demand <code>AllocationStrategy</code> is set to
3621+
* <code>prioritized</code>, the same priority is applied when fulfilling On-Demand
3622+
* capacity.</p>
36433623
* <p>Default: <code>lowest-price</code>
36443624
* </p>
36453625
*/

clients/client-ec2/src/models/models_4.ts

Lines changed: 22 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -5041,48 +5041,28 @@ export interface SpotFleetRequestConfigData {
50415041
* <p>The strategy that determines how to allocate the target Spot Instance capacity across the Spot Instance
50425042
* pools specified by the Spot Fleet launch configuration. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-allocation-strategy.html">Allocation
50435043
* strategies for Spot Instances</a> in the <i>Amazon EC2 User Guide</i>.</p>
5044-
*
5045-
* <dl>
5046-
* <dt>priceCapacityOptimized (recommended)</dt>
5047-
* <dd>
5048-
* <p>Spot Fleet identifies the pools with
5049-
* the highest capacity availability for the number of instances that are launching. This means
5050-
* that we will request Spot Instances from the pools that we believe have the lowest chance of interruption
5051-
* in the near term. Spot Fleet then requests Spot Instances from the lowest priced of these pools.</p>
5052-
* </dd>
5053-
* <dt>capacityOptimized</dt>
5054-
* <dd>
5055-
* <p>Spot Fleet identifies the pools with
5056-
* the highest capacity availability for the number of instances that are launching. This means
5057-
* that we will request Spot Instances from the pools that we believe have the lowest chance of interruption
5058-
* in the near term. To give certain
5059-
* instance types a higher chance of launching first, use
5060-
* <code>capacityOptimizedPrioritized</code>. Set a priority for each instance type by
5061-
* using the <code>Priority</code> parameter for <code>LaunchTemplateOverrides</code>. You can
5062-
* assign the same priority to different <code>LaunchTemplateOverrides</code>. EC2 implements
5063-
* the priorities on a best-effort basis, but optimizes for capacity first.
5064-
* <code>capacityOptimizedPrioritized</code> is supported only if your Spot Fleet uses a
5065-
* launch template. Note that if the <code>OnDemandAllocationStrategy</code> is set to
5066-
* <code>prioritized</code>, the same priority is applied when fulfilling On-Demand
5067-
* capacity.</p>
5068-
* </dd>
5069-
* <dt>diversified</dt>
5070-
* <dd>
5071-
* <p>Spot Fleet requests instances from all of the Spot Instance pools that you
5072-
* specify.</p>
5073-
* </dd>
5074-
* <dt>lowestPrice</dt>
5075-
* <dd>
5076-
* <p>Spot Fleet requests instances from the lowest priced Spot Instance pool that
5077-
* has available capacity. If the lowest priced pool doesn't have available capacity, the Spot Instances
5078-
* come from the next lowest priced pool that has available capacity. If a pool runs out of
5079-
* capacity before fulfilling your desired capacity, Spot Fleet will continue to fulfill your
5080-
* request by drawing from the next lowest priced pool. To ensure that your desired capacity is
5081-
* met, you might receive Spot Instances from several pools. Because this strategy only considers instance
5082-
* price and not capacity availability, it might lead to high interruption rates.</p>
5083-
* </dd>
5084-
* </dl>
5085-
*
5044+
* <p>
5045+
* <code>lowestPrice</code> - Spot Fleet launches instances from the lowest-price Spot Instance pool
5046+
* that has available capacity. If the cheapest pool doesn't have available capacity, the
5047+
* Spot Instances come from the next cheapest pool that has available capacity. If a pool runs out
5048+
* of capacity before fulfilling your desired capacity, Spot Fleet will continue to fulfill your
5049+
* request by drawing from the next cheapest pool. To ensure that your desired capacity is
5050+
* met, you might receive Spot Instances from several pools.</p>
5051+
* <p>
5052+
* <code>diversified</code> - Spot Fleet launches instances from all of the Spot Instance pools that you
5053+
* specify.</p>
5054+
* <p>
5055+
* <code>capacityOptimized</code> (recommended) - Spot Fleet launches instances from Spot Instance pools
5056+
* with optimal capacity for the number of instances that are launching. To give certain
5057+
* instance types a higher chance of launching first, use
5058+
* <code>capacityOptimizedPrioritized</code>. Set a priority for each instance type by
5059+
* using the <code>Priority</code> parameter for <code>LaunchTemplateOverrides</code>. You can
5060+
* assign the same priority to different <code>LaunchTemplateOverrides</code>. EC2 implements
5061+
* the priorities on a best-effort basis, but optimizes for capacity first.
5062+
* <code>capacityOptimizedPrioritized</code> is supported only if your Spot Fleet uses a
5063+
* launch template. Note that if the <code>OnDemandAllocationStrategy</code> is set to
5064+
* <code>prioritized</code>, the same priority is applied when fulfilling On-Demand
5065+
* capacity.</p>
50865066
* <p>Default: <code>lowestPrice</code>
50875067
* </p>
50885068
*/

clients/client-ec2/src/protocols/Aws_ec2.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34451,6 +34451,9 @@ const serializeAws_ec2CreateNatGatewayRequest = (input: CreateNatGatewayRequest,
3445134451
if (input.ConnectivityType != null) {
3445234452
entries["ConnectivityType"] = input.ConnectivityType;
3445334453
}
34454+
if (input.PrivateIpAddress != null) {
34455+
entries["PrivateIpAddress"] = input.PrivateIpAddress;
34456+
}
3445434457
return entries;
3445534458
};
3445634459

0 commit comments

Comments
 (0)