@aws-sdk/client-ec2 3.212.0 → 3.214.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ exports.ruleSet = {
6
6
  parameters: {
7
7
  Region: {
8
8
  builtIn: "AWS::Region",
9
- required: false,
9
+ required: true,
10
10
  documentation: "The AWS region used to dispatch the request.",
11
11
  type: "String",
12
12
  },
@@ -23960,6 +23960,9 @@ const serializeAws_ec2CopyImageRequest = (input, context) => {
23960
23960
  if (input.DryRun != null) {
23961
23961
  entries["DryRun"] = input.DryRun;
23962
23962
  }
23963
+ if (input.CopyImageTags != null) {
23964
+ entries["CopyImageTags"] = input.CopyImageTags;
23965
+ }
23963
23966
  return entries;
23964
23967
  };
23965
23968
  const serializeAws_ec2CopySnapshotRequest = (input, context) => {
@@ -25096,6 +25099,9 @@ const serializeAws_ec2CreateNatGatewayRequest = (input, context) => {
25096
25099
  if (input.ConnectivityType != null) {
25097
25100
  entries["ConnectivityType"] = input.ConnectivityType;
25098
25101
  }
25102
+ if (input.PrivateIpAddress != null) {
25103
+ entries["PrivateIpAddress"] = input.PrivateIpAddress;
25104
+ }
25099
25105
  return entries;
25100
25106
  };
25101
25107
  const serializeAws_ec2CreateNetworkAclEntryRequest = (input, context) => {
@@ -3,7 +3,7 @@ export const ruleSet = {
3
3
  parameters: {
4
4
  Region: {
5
5
  builtIn: "AWS::Region",
6
- required: false,
6
+ required: true,
7
7
  documentation: "The AWS region used to dispatch the request.",
8
8
  type: "String",
9
9
  },
@@ -22842,6 +22842,9 @@ const serializeAws_ec2CopyImageRequest = (input, context) => {
22842
22842
  if (input.DryRun != null) {
22843
22843
  entries["DryRun"] = input.DryRun;
22844
22844
  }
22845
+ if (input.CopyImageTags != null) {
22846
+ entries["CopyImageTags"] = input.CopyImageTags;
22847
+ }
22845
22848
  return entries;
22846
22849
  };
22847
22850
  const serializeAws_ec2CopySnapshotRequest = (input, context) => {
@@ -23978,6 +23981,9 @@ const serializeAws_ec2CreateNatGatewayRequest = (input, context) => {
23978
23981
  if (input.ConnectivityType != null) {
23979
23982
  entries["ConnectivityType"] = input.ConnectivityType;
23980
23983
  }
23984
+ if (input.PrivateIpAddress != null) {
23985
+ entries["PrivateIpAddress"] = input.PrivateIpAddress;
23986
+ }
23981
23987
  return entries;
23982
23988
  };
23983
23989
  const serializeAws_ec2CreateNetworkAclEntryRequest = (input, context) => {
@@ -1055,7 +1055,7 @@ export declare class EC2 extends EC2Client {
1055
1055
  cancelExportTask(args: CancelExportTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelExportTaskCommandOutput) => void): void;
1056
1056
  /**
1057
1057
  * <p>Removes your Amazon Web Services account from the launch permissions for the specified AMI. For more
1058
- * information, see <a href="https://docs.aws.amazon.com/">Cancel sharing an AMI with your Amazon Web Services account</a>
1058
+ * information, see <a href="https://docs.aws.amazon.com/">Cancel having an AMI shared with your Amazon Web Services account</a>
1059
1059
  * in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
1060
1060
  */
1061
1061
  cancelImageLaunchPermission(args: CancelImageLaunchPermissionCommandInput, options?: __HttpHandlerOptions): Promise<CancelImageLaunchPermissionCommandOutput>;
@@ -1133,8 +1133,8 @@ export declare class EC2 extends EC2Client {
1133
1133
  * snapshots. For more information, <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html#ami">
1134
1134
  * Amazon EBS local snapshots on Outposts</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
1135
1135
  *
1136
- * <p>For more information about the prerequisites and limits when copying an AMI, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/CopyingAMIs.html">Copying an AMI</a>
1137
- * in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
1136
+ * <p>For more information about the prerequisites and limits when copying an AMI, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/CopyingAMIs.html">Copy an AMI</a> in the
1137
+ * <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
1138
1138
  */
1139
1139
  copyImage(args: CopyImageCommandInput, options?: __HttpHandlerOptions): Promise<CopyImageCommandOutput>;
1140
1140
  copyImage(args: CopyImageCommandInput, cb: (err: any, data?: CopyImageCommandOutput) => void): void;
@@ -1405,8 +1405,8 @@ export declare class EC2 extends EC2Client {
1405
1405
  * <p>If you customized your instance with instance store volumes or Amazon EBS volumes in addition to the root device volume, the
1406
1406
  * new AMI contains block device mapping information for those volumes. When you launch an instance from this new AMI,
1407
1407
  * the instance automatically launches with those additional volumes.</p>
1408
- * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html">Creating Amazon EBS-Backed Linux AMIs</a>
1409
- * in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
1408
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html">Create an Amazon EBS-backed Linux
1409
+ * AMI</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
1410
1410
  */
1411
1411
  createImage(args: CreateImageCommandInput, options?: __HttpHandlerOptions): Promise<CreateImageCommandOutput>;
1412
1412
  createImage(args: CreateImageCommandInput, cb: (err: any, data?: CreateImageCommandOutput) => void): void;
@@ -2727,10 +2727,9 @@ export declare class EC2 extends EC2Client {
2727
2727
  * launch new instances.</p>
2728
2728
  *
2729
2729
  *
2730
- * <p>If you deregister an AMI that matches a Recycle Bin retention rule, the AMI is
2731
- * retained in the Recycle Bin for the specified retention period. For more information,
2732
- * see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin.html">Recycle
2733
- * Bin</a> in the Amazon Elastic Compute Cloud User Guide.</p>
2730
+ * <p>If you deregister an AMI that matches a Recycle Bin retention rule, the AMI is retained
2731
+ * in the Recycle Bin for the specified retention period. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin.html">Recycle Bin</a> in
2732
+ * the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
2734
2733
  *
2735
2734
  * <p>When you deregister an AMI, it doesn't affect any instances that you've already
2736
2735
  * launched from the AMI. You'll continue to incur usage costs for those instances until
@@ -5683,8 +5682,8 @@ export declare class EC2 extends EC2Client {
5683
5682
  /**
5684
5683
  * <p>Registers an AMI. When you're creating an AMI, this is the final step you must complete
5685
5684
  * before you can launch an instance from the AMI. For more information about creating AMIs, see
5686
- * <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami.html">Creating your
5687
- * own AMIs</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
5685
+ * <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami.html">Create your
5686
+ * own AMI</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
5688
5687
  * <note>
5689
5688
  * <p>For Amazon EBS-backed instances, <a>CreateImage</a> creates and registers the AMI
5690
5689
  * in a single request, so you don't have to register the AMI yourself. We recommend that you
@@ -5731,8 +5730,8 @@ export declare class EC2 extends EC2Client {
5731
5730
  * from an AMI with a billing product code, make sure that the Reserved Instance has the matching
5732
5731
  * billing product code. If you purchase a Reserved Instance without the matching billing product
5733
5732
  * code, the Reserved Instance will not be applied to the On-Demand Instance. For information
5734
- * about how to obtain the platform details and billing information of an AMI, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-billing-info.html">Understanding AMI
5735
- * billing</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
5733
+ * about how to obtain the platform details and billing information of an AMI, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-billing-info.html">Understand AMI
5734
+ * billing information</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
5736
5735
  */
5737
5736
  registerImage(args: RegisterImageCommandInput, options?: __HttpHandlerOptions): Promise<RegisterImageCommandOutput>;
5738
5737
  registerImage(args: RegisterImageCommandInput, cb: (err: any, data?: RegisterImageCommandOutput) => void): void;
@@ -9,7 +9,7 @@ export interface CancelImageLaunchPermissionCommandOutput extends CancelImageLau
9
9
  }
10
10
  /**
11
11
  * <p>Removes your Amazon Web Services account from the launch permissions for the specified AMI. For more
12
- * information, see <a href="https://docs.aws.amazon.com/">Cancel sharing an AMI with your Amazon Web Services account</a>
12
+ * information, see <a href="https://docs.aws.amazon.com/">Cancel having an AMI shared with your Amazon Web Services account</a>
13
13
  * in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
14
14
  * @example
15
15
  * Use a bare-bones client and the command you need to make an API call.
@@ -28,8 +28,8 @@ export interface CopyImageCommandOutput extends CopyImageResult, __MetadataBeare
28
28
  * snapshots. For more information, <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html#ami">
29
29
  * Amazon EBS local snapshots on Outposts</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
30
30
  *
31
- * <p>For more information about the prerequisites and limits when copying an AMI, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/CopyingAMIs.html">Copying an AMI</a>
32
- * in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
31
+ * <p>For more information about the prerequisites and limits when copying an AMI, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/CopyingAMIs.html">Copy an AMI</a> in the
32
+ * <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
33
33
  * @example
34
34
  * Use a bare-bones client and the command you need to make an API call.
35
35
  * ```javascript
@@ -27,8 +27,8 @@ export interface CreateImageCommandOutput extends CreateImageResult, __MetadataB
27
27
  * <p>If you customized your instance with instance store volumes or Amazon EBS volumes in addition to the root device volume, the
28
28
  * new AMI contains block device mapping information for those volumes. When you launch an instance from this new AMI,
29
29
  * the instance automatically launches with those additional volumes.</p>
30
- * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html">Creating Amazon EBS-Backed Linux AMIs</a>
31
- * in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
30
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html">Create an Amazon EBS-backed Linux
31
+ * AMI</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
32
32
  * @example
33
33
  * Use a bare-bones client and the command you need to make an API call.
34
34
  * ```javascript
@@ -12,10 +12,9 @@ export interface DeregisterImageCommandOutput extends __MetadataBearer {
12
12
  * launch new instances.</p>
13
13
  *
14
14
  *
15
- * <p>If you deregister an AMI that matches a Recycle Bin retention rule, the AMI is
16
- * retained in the Recycle Bin for the specified retention period. For more information,
17
- * see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin.html">Recycle
18
- * Bin</a> in the Amazon Elastic Compute Cloud User Guide.</p>
15
+ * <p>If you deregister an AMI that matches a Recycle Bin retention rule, the AMI is retained
16
+ * in the Recycle Bin for the specified retention period. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin.html">Recycle Bin</a> in
17
+ * the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
19
18
  *
20
19
  * <p>When you deregister an AMI, it doesn't affect any instances that you've already
21
20
  * launched from the AMI. You'll continue to incur usage costs for those instances until
@@ -10,8 +10,8 @@ export interface RegisterImageCommandOutput extends RegisterImageResult, __Metad
10
10
  /**
11
11
  * <p>Registers an AMI. When you're creating an AMI, this is the final step you must complete
12
12
  * before you can launch an instance from the AMI. For more information about creating AMIs, see
13
- * <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami.html">Creating your
14
- * own AMIs</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
13
+ * <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami.html">Create your
14
+ * own AMI</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
15
15
  * <note>
16
16
  * <p>For Amazon EBS-backed instances, <a>CreateImage</a> creates and registers the AMI
17
17
  * in a single request, so you don't have to register the AMI yourself. We recommend that you
@@ -58,8 +58,8 @@ export interface RegisterImageCommandOutput extends RegisterImageResult, __Metad
58
58
  * from an AMI with a billing product code, make sure that the Reserved Instance has the matching
59
59
  * billing product code. If you purchase a Reserved Instance without the matching billing product
60
60
  * code, the Reserved Instance will not be applied to the On-Demand Instance. For information
61
- * about how to obtain the platform details and billing information of an AMI, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-billing-info.html">Understanding AMI
62
- * billing</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
61
+ * about how to obtain the platform details and billing information of an AMI, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-billing-info.html">Understand AMI
62
+ * billing information</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
63
63
  * @example
64
64
  * Use a bare-bones client and the command you need to make an API call.
65
65
  * ```javascript
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
12
12
  defaultSigningName: string;
13
13
  };
14
14
  export interface EndpointParameters extends __EndpointParameters {
15
- Region?: string;
15
+ Region: string;
16
16
  UseDualStack?: boolean;
17
17
  UseFIPS?: boolean;
18
18
  Endpoint?: string;
@@ -3688,8 +3688,9 @@ export interface AuthorizeSecurityGroupIngressResult {
3688
3688
  */
3689
3689
  export interface S3Storage {
3690
3690
  /**
3691
- * <p>The access key ID of the owner of the bucket. Before you specify a value for your access key ID, review and follow the guidance
3692
- * in <a href="https://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html">Best Practices for Managing Amazon Web Services Access Keys</a>.</p>
3691
+ * <p>The access key ID of the owner of the bucket. Before you specify a value for your access
3692
+ * key ID, review and follow the guidance in <a href="https://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html">Best practices for managing
3693
+ * Amazon Web Services access keys</a>.</p>
3693
3694
  */
3694
3695
  AWSAccessKeyId?: string;
3695
3696
  /**
@@ -4322,10 +4323,11 @@ export interface CopyImageRequest {
4322
4323
  */
4323
4324
  Description?: string;
4324
4325
  /**
4325
- * <p>Specifies whether the destination snapshots of the copied image should be encrypted.
4326
- * You can encrypt a copy of an unencrypted snapshot, but you cannot create an unencrypted
4327
- * copy of an encrypted snapshot. The default KMS key for Amazon EBS is used unless you specify a non-default
4328
- * Key Management Service (KMS) KMS key using <code>KmsKeyId</code>. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html">Amazon EBS Encryption</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
4326
+ * <p>Specifies whether the destination snapshots of the copied image should be encrypted. You
4327
+ * can encrypt a copy of an unencrypted snapshot, but you cannot create an unencrypted copy of an
4328
+ * encrypted snapshot. The default KMS key for Amazon EBS is used unless you specify a non-default
4329
+ * Key Management Service (KMS) KMS key using <code>KmsKeyId</code>. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html">Amazon EBS encryption</a> in the
4330
+ * <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
4329
4331
  */
4330
4332
  Encrypted?: boolean;
4331
4333
  /**
@@ -4371,10 +4373,8 @@ export interface CopyImageRequest {
4371
4373
  * The AMI must be in the Region of the destination Outpost. You cannot copy an
4372
4374
  * AMI from an Outpost to a Region, from one Outpost to another, or within the same
4373
4375
  * Outpost.</p>
4374
- *
4375
- * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html#copy-amis">
4376
- * Copying AMIs from an Amazon Web Services Region to an Outpost</a> in the
4377
- * <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
4376
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html#copy-amis"> Copy AMIs from an Amazon Web Services
4377
+ * Region to an Outpost</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
4378
4378
  */
4379
4379
  DestinationOutpostArn?: string;
4380
4380
  /**
@@ -4383,6 +4383,21 @@ export interface CopyImageRequest {
4383
4383
  * <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
4384
4384
  */
4385
4385
  DryRun?: boolean;
4386
+ /**
4387
+ * <p>Indicates whether to include your user-defined AMI tags when copying the AMI.</p>
4388
+ * <p>The following tags will not be copied:</p>
4389
+ * <ul>
4390
+ * <li>
4391
+ * <p>System tags (prefixed with <code>aws:</code>)</p>
4392
+ * </li>
4393
+ * <li>
4394
+ * <p>For public and shared AMIs, user-defined tags that are attached by other Amazon Web Services
4395
+ * accounts</p>
4396
+ * </li>
4397
+ * </ul>
4398
+ * <p>Default: Your user-defined AMI tags are not copied.</p>
4399
+ */
4400
+ CopyImageTags?: boolean;
4386
4401
  }
4387
4402
  /**
4388
4403
  * <p>Contains the output of CopyImage.</p>
@@ -1097,48 +1097,28 @@ export interface SpotOptionsRequest {
1097
1097
  * <p>The strategy that determines how to allocate the target Spot Instance capacity across the Spot Instance
1098
1098
  * 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
1099
1099
  * <i>Amazon EC2 User Guide</i>.</p>
1100
- *
1101
- * <dl>
1102
- * <dt>price-capacity-optimized (recommended)</dt>
1103
- * <dd>
1104
- * <p>EC2 Fleet identifies the pools with
1105
- * the highest capacity availability for the number of instances that are launching. This means
1106
- * that we will request Spot Instances from the pools that we believe have the lowest chance of interruption
1107
- * in the near term. EC2 Fleet then requests Spot Instances from the lowest priced of these pools.</p>
1108
- * </dd>
1109
- * <dt>capacity-optimized</dt>
1110
- * <dd>
1111
- * <p>EC2 Fleet identifies the pools with
1112
- * the highest capacity availability for the number of instances that are launching. This means
1113
- * that we will request Spot Instances from the pools that we believe have the lowest chance of interruption
1114
- * in the near term. To give certain
1115
- * instance types a higher chance of launching first, use
1116
- * <code>capacity-optimized-prioritized</code>. Set a priority for each instance type by
1117
- * using the <code>Priority</code> parameter for <code>LaunchTemplateOverrides</code>. You can
1118
- * assign the same priority to different <code>LaunchTemplateOverrides</code>. EC2 implements
1119
- * the priorities on a best-effort basis, but optimizes for capacity first.
1120
- * <code>capacity-optimized-prioritized</code> is supported only if your EC2 Fleet uses a
1121
- * launch template. Note that if the On-Demand <code>AllocationStrategy</code> is set to
1122
- * <code>prioritized</code>, the same priority is applied when fulfilling On-Demand
1123
- * capacity.</p>
1124
- * </dd>
1125
- * <dt>diversified</dt>
1126
- * <dd>
1127
- * <p>EC2 Fleet requests instances from all of the Spot Instance pools that you
1128
- * specify.</p>
1129
- * </dd>
1130
- * <dt>lowest-price</dt>
1131
- * <dd>
1132
- * <p>EC2 Fleet requests instances from the lowest priced Spot Instance pool that
1133
- * has available capacity. If the lowest priced pool doesn't have available capacity, the Spot Instances
1134
- * come from the next lowest priced pool that has available capacity. If a pool runs out of
1135
- * capacity before fulfilling your desired capacity, EC2 Fleet will continue to fulfill your
1136
- * request by drawing from the next lowest priced pool. To ensure that your desired capacity is
1137
- * met, you might receive Spot Instances from several pools. Because this strategy only considers instance
1138
- * price and not capacity availability, it might lead to high interruption rates.</p>
1139
- * </dd>
1140
- * </dl>
1141
- *
1100
+ * <p>
1101
+ * <code>lowest-price</code> - EC2 Fleet launches instances from the lowest-price Spot Instance pool that
1102
+ * has available capacity. If the cheapest pool doesn't have available capacity, the Spot Instances
1103
+ * come from the next cheapest pool that has available capacity. If a pool runs out of
1104
+ * capacity before fulfilling your desired capacity, EC2 Fleet will continue to fulfill your
1105
+ * request by drawing from the next cheapest pool. To ensure that your desired capacity is
1106
+ * met, you might receive Spot Instances from several pools.</p>
1107
+ * <p>
1108
+ * <code>diversified</code> - EC2 Fleet launches instances from all
1109
+ * of the Spot Instance pools that you specify.</p>
1110
+ * <p>
1111
+ * <code>capacity-optimized</code> (recommended) - EC2 Fleet
1112
+ * launches instances from Spot Instance pools with optimal capacity for the number of instances that
1113
+ * are launching. To give certain instance types a higher chance of launching first, use
1114
+ * <code>capacity-optimized-prioritized</code>. Set a priority for each instance type by
1115
+ * using the <code>Priority</code> parameter for <code>LaunchTemplateOverrides</code>. You can
1116
+ * assign the same priority to different <code>LaunchTemplateOverrides</code>. EC2 implements
1117
+ * the priorities on a best-effort basis, but optimizes for capacity first.
1118
+ * <code>capacity-optimized-prioritized</code> is supported only if your fleet uses a
1119
+ * launch template. Note that if the On-Demand <code>AllocationStrategy</code> is set to
1120
+ * <code>prioritized</code>, the same priority is applied when fulfilling On-Demand
1121
+ * capacity.</p>
1142
1122
  * <p>Default: <code>lowest-price</code>
1143
1123
  * </p>
1144
1124
  */
@@ -2050,7 +2030,8 @@ export interface CreateFlowLogsRequest {
2050
2030
  /**
2051
2031
  * <p>The IDs of the resources to monitor. For example, if the resource type is
2052
2032
  * <code>VPC</code>, specify the IDs of the VPCs.</p>
2053
- * <p>Constraints: Maximum of 1000 resources</p>
2033
+ * <p>Constraints: Maximum of 25 for transit gateway resource types. Maximum of 1000 for the
2034
+ * other resource types.</p>
2054
2035
  */
2055
2036
  ResourceIds: string[] | undefined;
2056
2037
  /**
@@ -2058,8 +2039,9 @@ export interface CreateFlowLogsRequest {
2058
2039
  */
2059
2040
  ResourceType: FlowLogsResourceType | string | undefined;
2060
2041
  /**
2061
- * <p>The type of traffic to monitor (accepted traffic, rejected traffic, or all
2062
- * traffic).</p>
2042
+ * <p>The type of traffic to monitor (accepted traffic, rejected traffic, or all traffic).
2043
+ * This parameter is not supported for transit gateway resource types. It is required for
2044
+ * the other resource types.</p>
2063
2045
  */
2064
2046
  TrafficType?: TrafficType | string;
2065
2047
  /**
@@ -2092,10 +2074,11 @@ export interface CreateFlowLogsRequest {
2092
2074
  LogDestination?: string;
2093
2075
  /**
2094
2076
  * <p>The fields to include in the flow log record. List the fields in the order in which
2095
- * 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
2096
- * records</a>. If you omit this parameter, the flow log is created using the
2077
+ * they should appear. If you omit this parameter, the flow log is created using the
2097
2078
  * default format. If you specify this parameter, you must include at least one
2098
- * field.</p>
2079
+ * 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
2080
+ * 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
2081
+ * records</a> in the <i>Amazon Web Services Transit Gateway Guide</i>.</p>
2099
2082
  * <p>Specify the fields using the <code>${field-id}</code> format, separated by spaces. For
2100
2083
  * the CLI, surround this parameter value with single quotes on Linux or
2101
2084
  * double quotes on Windows.</p>
@@ -2106,7 +2089,9 @@ export interface CreateFlowLogsRequest {
2106
2089
  */
2107
2090
  TagSpecifications?: TagSpecification[];
2108
2091
  /**
2109
- * <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>
2092
+ * <p>The maximum interval of time during which a flow of packets is captured and aggregated into a flow log record.
2093
+ * The possible values are 60 seconds (1 minute) or 600 seconds (10 minutes).
2094
+ * This parameter must be 60 seconds for transit gateway resource types.</p>
2110
2095
  * <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
2111
2096
  * instance</a>, the aggregation interval is always 60 seconds or less, regardless
2112
2097
  * of the value that you specify.</p>
@@ -5426,6 +5411,10 @@ export interface CreateNatGatewayRequest {
5426
5411
  * The default is public connectivity.</p>
5427
5412
  */
5428
5413
  ConnectivityType?: ConnectivityType | string;
5414
+ /**
5415
+ * <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>
5416
+ */
5417
+ PrivateIpAddress?: string;
5429
5418
  }
5430
5419
  /**
5431
5420
  * <p>Describes the IP addresses and network interface associated with a NAT gateway.</p>
@@ -3099,48 +3099,28 @@ export interface SpotOptions {
3099
3099
  * <p>The strategy that determines how to allocate the target Spot Instance capacity across the Spot Instance
3100
3100
  * 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
3101
3101
  * <i>Amazon EC2 User Guide</i>.</p>
3102
- *
3103
- * <dl>
3104
- * <dt>price-capacity-optimized (recommended)</dt>
3105
- * <dd>
3106
- * <p>EC2 Fleet identifies the pools with
3107
- * the highest capacity availability for the number of instances that are launching. This means
3108
- * that we will request Spot Instances from the pools that we believe have the lowest chance of interruption
3109
- * in the near term. EC2 Fleet then requests Spot Instances from the lowest priced of these pools.</p>
3110
- * </dd>
3111
- * <dt>capacity-optimized</dt>
3112
- * <dd>
3113
- * <p>EC2 Fleet identifies the pools with
3114
- * the highest capacity availability for the number of instances that are launching. This means
3115
- * that we will request Spot Instances from the pools that we believe have the lowest chance of interruption
3116
- * in the near term. To give certain
3117
- * instance types a higher chance of launching first, use
3118
- * <code>capacity-optimized-prioritized</code>. Set a priority for each instance type by
3119
- * using the <code>Priority</code> parameter for <code>LaunchTemplateOverrides</code>. You can
3120
- * assign the same priority to different <code>LaunchTemplateOverrides</code>. EC2 implements
3121
- * the priorities on a best-effort basis, but optimizes for capacity first.
3122
- * <code>capacity-optimized-prioritized</code> is supported only if your EC2 Fleet uses a
3123
- * launch template. Note that if the On-Demand <code>AllocationStrategy</code> is set to
3124
- * <code>prioritized</code>, the same priority is applied when fulfilling On-Demand
3125
- * capacity.</p>
3126
- * </dd>
3127
- * <dt>diversified</dt>
3128
- * <dd>
3129
- * <p>EC2 Fleet requests instances from all of the Spot Instance pools that you
3130
- * specify.</p>
3131
- * </dd>
3132
- * <dt>lowest-price</dt>
3133
- * <dd>
3134
- * <p>EC2 Fleet requests instances from the lowest priced Spot Instance pool that
3135
- * has available capacity. If the lowest priced pool doesn't have available capacity, the Spot Instances
3136
- * come from the next lowest priced pool that has available capacity. If a pool runs out of
3137
- * capacity before fulfilling your desired capacity, EC2 Fleet will continue to fulfill your
3138
- * request by drawing from the next lowest priced pool. To ensure that your desired capacity is
3139
- * met, you might receive Spot Instances from several pools. Because this strategy only considers instance
3140
- * price and not capacity availability, it might lead to high interruption rates.</p>
3141
- * </dd>
3142
- * </dl>
3143
- *
3102
+ * <p>
3103
+ * <code>lowest-price</code> - EC2 Fleet launches instances from the lowest-price Spot Instance pool that
3104
+ * has available capacity. If the cheapest pool doesn't have available capacity, the Spot Instances
3105
+ * come from the next cheapest pool that has available capacity. If a pool runs out of
3106
+ * capacity before fulfilling your desired capacity, EC2 Fleet will continue to fulfill your
3107
+ * request by drawing from the next cheapest pool. To ensure that your desired capacity is
3108
+ * met, you might receive Spot Instances from several pools.</p>
3109
+ * <p>
3110
+ * <code>diversified</code> - EC2 Fleet launches instances from all of the Spot Instance pools that you
3111
+ * specify.</p>
3112
+ * <p>
3113
+ * <code>capacity-optimized</code> (recommended) - EC2 Fleet launches instances from Spot Instance pools
3114
+ * with optimal capacity for the number of instances that are launching. To give certain
3115
+ * instance types a higher chance of launching first, use
3116
+ * <code>capacity-optimized-prioritized</code>. Set a priority for each instance type by
3117
+ * using the <code>Priority</code> parameter for <code>LaunchTemplateOverrides</code>. You can
3118
+ * assign the same priority to different <code>LaunchTemplateOverrides</code>. EC2 implements
3119
+ * the priorities on a best-effort basis, but optimizes for capacity first.
3120
+ * <code>capacity-optimized-prioritized</code> is supported only if your fleet uses a
3121
+ * launch template. Note that if the On-Demand <code>AllocationStrategy</code> is set to
3122
+ * <code>prioritized</code>, the same priority is applied when fulfilling On-Demand
3123
+ * capacity.</p>
3144
3124
  * <p>Default: <code>lowest-price</code>
3145
3125
  * </p>
3146
3126
  */
@@ -4631,8 +4611,7 @@ export interface DescribeImagesRequest {
4631
4611
  * </li>
4632
4612
  * <li>
4633
4613
  * <p>
4634
- * <code>platform</code> - The platform. To only list Windows-based AMIs, use
4635
- * <code>windows</code>.</p>
4614
+ * <code>platform</code> - The platform. The only supported value is <code>windows</code>.</p>
4636
4615
  * </li>
4637
4616
  * <li>
4638
4617
  * <p>
@@ -4805,8 +4784,8 @@ export interface Image {
4805
4784
  Platform?: PlatformValues | string;
4806
4785
  /**
4807
4786
  * <p>The platform details associated with the billing code of the AMI. For more information,
4808
- * see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-billing-info.html">Understanding
4809
- * AMI billing</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
4787
+ * see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-billing-info.html">Understand
4788
+ * AMI billing information</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
4810
4789
  */
4811
4790
  PlatformDetails?: string;
4812
4791
  /**
@@ -4364,48 +4364,28 @@ export interface SpotFleetRequestConfigData {
4364
4364
  * <p>The strategy that determines how to allocate the target Spot Instance capacity across the Spot Instance
4365
4365
  * 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
4366
4366
  * strategies for Spot Instances</a> in the <i>Amazon EC2 User Guide</i>.</p>
4367
- *
4368
- * <dl>
4369
- * <dt>priceCapacityOptimized (recommended)</dt>
4370
- * <dd>
4371
- * <p>Spot Fleet identifies the pools with
4372
- * the highest capacity availability for the number of instances that are launching. This means
4373
- * that we will request Spot Instances from the pools that we believe have the lowest chance of interruption
4374
- * in the near term. Spot Fleet then requests Spot Instances from the lowest priced of these pools.</p>
4375
- * </dd>
4376
- * <dt>capacityOptimized</dt>
4377
- * <dd>
4378
- * <p>Spot Fleet identifies the pools with
4379
- * the highest capacity availability for the number of instances that are launching. This means
4380
- * that we will request Spot Instances from the pools that we believe have the lowest chance of interruption
4381
- * in the near term. To give certain
4382
- * instance types a higher chance of launching first, use
4383
- * <code>capacityOptimizedPrioritized</code>. Set a priority for each instance type by
4384
- * using the <code>Priority</code> parameter for <code>LaunchTemplateOverrides</code>. You can
4385
- * assign the same priority to different <code>LaunchTemplateOverrides</code>. EC2 implements
4386
- * the priorities on a best-effort basis, but optimizes for capacity first.
4387
- * <code>capacityOptimizedPrioritized</code> is supported only if your Spot Fleet uses a
4388
- * launch template. Note that if the <code>OnDemandAllocationStrategy</code> is set to
4389
- * <code>prioritized</code>, the same priority is applied when fulfilling On-Demand
4390
- * capacity.</p>
4391
- * </dd>
4392
- * <dt>diversified</dt>
4393
- * <dd>
4394
- * <p>Spot Fleet requests instances from all of the Spot Instance pools that you
4395
- * specify.</p>
4396
- * </dd>
4397
- * <dt>lowestPrice</dt>
4398
- * <dd>
4399
- * <p>Spot Fleet requests instances from the lowest priced Spot Instance pool that
4400
- * has available capacity. If the lowest priced pool doesn't have available capacity, the Spot Instances
4401
- * come from the next lowest priced pool that has available capacity. If a pool runs out of
4402
- * capacity before fulfilling your desired capacity, Spot Fleet will continue to fulfill your
4403
- * request by drawing from the next lowest priced pool. To ensure that your desired capacity is
4404
- * met, you might receive Spot Instances from several pools. Because this strategy only considers instance
4405
- * price and not capacity availability, it might lead to high interruption rates.</p>
4406
- * </dd>
4407
- * </dl>
4408
- *
4367
+ * <p>
4368
+ * <code>lowestPrice</code> - Spot Fleet launches instances from the lowest-price Spot Instance pool
4369
+ * that has available capacity. If the cheapest pool doesn't have available capacity, the
4370
+ * Spot Instances come from the next cheapest pool that has available capacity. If a pool runs out
4371
+ * of capacity before fulfilling your desired capacity, Spot Fleet will continue to fulfill your
4372
+ * request by drawing from the next cheapest pool. To ensure that your desired capacity is
4373
+ * met, you might receive Spot Instances from several pools.</p>
4374
+ * <p>
4375
+ * <code>diversified</code> - Spot Fleet launches instances from all of the Spot Instance pools that you
4376
+ * specify.</p>
4377
+ * <p>
4378
+ * <code>capacityOptimized</code> (recommended) - Spot Fleet launches instances from Spot Instance pools
4379
+ * with optimal capacity for the number of instances that are launching. To give certain
4380
+ * instance types a higher chance of launching first, use
4381
+ * <code>capacityOptimizedPrioritized</code>. Set a priority for each instance type by
4382
+ * using the <code>Priority</code> parameter for <code>LaunchTemplateOverrides</code>. You can
4383
+ * assign the same priority to different <code>LaunchTemplateOverrides</code>. EC2 implements
4384
+ * the priorities on a best-effort basis, but optimizes for capacity first.
4385
+ * <code>capacityOptimizedPrioritized</code> is supported only if your Spot Fleet uses a
4386
+ * launch template. Note that if the <code>OnDemandAllocationStrategy</code> is set to
4387
+ * <code>prioritized</code>, the same priority is applied when fulfilling On-Demand
4388
+ * capacity.</p>
4409
4389
  * <p>Default: <code>lowestPrice</code>
4410
4390
  * </p>
4411
4391
  */
@@ -27,7 +27,7 @@ export declare const resolveClientEndpointParameters: <T>(
27
27
  defaultSigningName: string;
28
28
  };
29
29
  export interface EndpointParameters extends __EndpointParameters {
30
- Region?: string;
30
+ Region: string;
31
31
  UseDualStack?: boolean;
32
32
  UseFIPS?: boolean;
33
33
  Endpoint?: string;
@@ -1492,6 +1492,7 @@ export interface CopyImageRequest {
1492
1492
  SourceRegion: string | undefined;
1493
1493
  DestinationOutpostArn?: string;
1494
1494
  DryRun?: boolean;
1495
+ CopyImageTags?: boolean;
1495
1496
  }
1496
1497
  export interface CopyImageResult {
1497
1498
  ImageId?: string;
@@ -1357,6 +1357,7 @@ export interface CreateNatGatewayRequest {
1357
1357
  SubnetId: string | undefined;
1358
1358
  TagSpecifications?: TagSpecification[];
1359
1359
  ConnectivityType?: ConnectivityType | string;
1360
+ PrivateIpAddress?: string;
1360
1361
  }
1361
1362
  export interface NatGatewayAddress {
1362
1363
  AllocationId?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ec2",
3
3
  "description": "AWS SDK for JavaScript Ec2 Client for Node.js, Browser and React Native",
4
- "version": "3.212.0",
4
+ "version": "3.214.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,7 +19,7 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.212.0",
22
+ "@aws-sdk/client-sts": "3.213.0",
23
23
  "@aws-sdk/config-resolver": "3.212.0",
24
24
  "@aws-sdk/credential-provider-node": "3.212.0",
25
25
  "@aws-sdk/fetch-http-handler": "3.212.0",