@aws-sdk/client-ec2 3.764.0 → 3.767.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.
package/dist-cjs/index.js CHANGED
@@ -19,8 +19,8 @@ var __copyProps = (to, from, except, desc) => {
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
20
 
21
21
  // src/index.ts
22
- var src_exports = {};
23
- __export(src_exports, {
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
24
  AcceleratorManufacturer: () => AcceleratorManufacturer,
25
25
  AcceleratorName: () => AcceleratorName,
26
26
  AcceleratorType: () => AcceleratorType,
@@ -1353,7 +1353,7 @@ __export(src_exports, {
1353
1353
  waitUntilVpnConnectionAvailable: () => waitUntilVpnConnectionAvailable,
1354
1354
  waitUntilVpnConnectionDeleted: () => waitUntilVpnConnectionDeleted
1355
1355
  });
1356
- module.exports = __toCommonJS(src_exports);
1356
+ module.exports = __toCommonJS(index_exports);
1357
1357
 
1358
1358
  // src/EC2Client.ts
1359
1359
  var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
@@ -1480,9 +1480,9 @@ var EC2Client = class extends import_smithy_client.Client {
1480
1480
  this.middlewareStack.use(
1481
1481
  (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
1482
1482
  httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultEC2HttpAuthSchemeParametersProvider,
1483
- identityProviderConfigProvider: async (config) => new import_core.DefaultIdentityProviderConfig({
1483
+ identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
1484
1484
  "aws.auth#sigv4": config.credentials
1485
- })
1485
+ }), "identityProviderConfigProvider")
1486
1486
  })
1487
1487
  );
1488
1488
  this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
@@ -19396,6 +19396,9 @@ var se_CreateLaunchTemplateRequest = /* @__PURE__ */ __name((input, context) =>
19396
19396
  if (input[_DRr] != null) {
19397
19397
  entries[_DRr] = input[_DRr];
19398
19398
  }
19399
+ if (input[_CTl] === void 0) {
19400
+ input[_CTl] = (0, import_uuid.v4)();
19401
+ }
19399
19402
  if (input[_CTl] != null) {
19400
19403
  entries[_CTl] = input[_CTl];
19401
19404
  }
@@ -19433,6 +19436,9 @@ var se_CreateLaunchTemplateVersionRequest = /* @__PURE__ */ __name((input, conte
19433
19436
  if (input[_DRr] != null) {
19434
19437
  entries[_DRr] = input[_DRr];
19435
19438
  }
19439
+ if (input[_CTl] === void 0) {
19440
+ input[_CTl] = (0, import_uuid.v4)();
19441
+ }
19436
19442
  if (input[_CTl] != null) {
19437
19443
  entries[_CTl] = input[_CTl];
19438
19444
  }
@@ -32469,6 +32475,9 @@ var se_ModifyLaunchTemplateRequest = /* @__PURE__ */ __name((input, context) =>
32469
32475
  if (input[_DRr] != null) {
32470
32476
  entries[_DRr] = input[_DRr];
32471
32477
  }
32478
+ if (input[_CTl] === void 0) {
32479
+ input[_CTl] = (0, import_uuid.v4)();
32480
+ }
32472
32481
  if (input[_CTl] != null) {
32473
32482
  entries[_CTl] = input[_CTl];
32474
32483
  }
@@ -40243,6 +40252,9 @@ var de_AvailabilityZone = /* @__PURE__ */ __name((output, context) => {
40243
40252
  if (output[_pZI] != null) {
40244
40253
  contents[_PZI] = (0, import_smithy_client.expectString)(output[_pZI]);
40245
40254
  }
40255
+ if (output[_gLN] != null) {
40256
+ contents[_GLN] = (0, import_smithy_client.expectString)(output[_gLN]);
40257
+ }
40246
40258
  if (output[_zS] != null) {
40247
40259
  contents[_Stat] = (0, import_smithy_client.expectString)(output[_zS]);
40248
40260
  }
@@ -61771,6 +61783,7 @@ var _GIro = "GroupIds";
61771
61783
  var _GK = "GreKey";
61772
61784
  var _GLBA = "GatewayLoadBalancerArns";
61773
61785
  var _GLBEI = "GatewayLoadBalancerEndpointId";
61786
+ var _GLN = "GroupLongName";
61774
61787
  var _GLTD = "GetLaunchTemplateData";
61775
61788
  var _GM = "GroupMember";
61776
61789
  var _GMPLA = "GetManagedPrefixListAssociations";
@@ -63901,6 +63914,7 @@ var _gIr = "groupId";
63901
63914
  var _gK = "greKey";
63902
63915
  var _gLBAS = "gatewayLoadBalancerArnSet";
63903
63916
  var _gLBEI = "gatewayLoadBalancerEndpointId";
63917
+ var _gLN = "groupLongName";
63904
63918
  var _gM = "groupMember";
63905
63919
  var _gN = "groupName";
63906
63920
  var _gOI = "groupOwnerId";
@@ -17872,6 +17872,9 @@ const se_CreateLaunchTemplateRequest = (input, context) => {
17872
17872
  if (input[_DRr] != null) {
17873
17873
  entries[_DRr] = input[_DRr];
17874
17874
  }
17875
+ if (input[_CTl] === undefined) {
17876
+ input[_CTl] = generateIdempotencyToken();
17877
+ }
17875
17878
  if (input[_CTl] != null) {
17876
17879
  entries[_CTl] = input[_CTl];
17877
17880
  }
@@ -17909,6 +17912,9 @@ const se_CreateLaunchTemplateVersionRequest = (input, context) => {
17909
17912
  if (input[_DRr] != null) {
17910
17913
  entries[_DRr] = input[_DRr];
17911
17914
  }
17915
+ if (input[_CTl] === undefined) {
17916
+ input[_CTl] = generateIdempotencyToken();
17917
+ }
17912
17918
  if (input[_CTl] != null) {
17913
17919
  entries[_CTl] = input[_CTl];
17914
17920
  }
@@ -30945,6 +30951,9 @@ const se_ModifyLaunchTemplateRequest = (input, context) => {
30945
30951
  if (input[_DRr] != null) {
30946
30952
  entries[_DRr] = input[_DRr];
30947
30953
  }
30954
+ if (input[_CTl] === undefined) {
30955
+ input[_CTl] = generateIdempotencyToken();
30956
+ }
30948
30957
  if (input[_CTl] != null) {
30949
30958
  entries[_CTl] = input[_CTl];
30950
30959
  }
@@ -38795,6 +38804,9 @@ const de_AvailabilityZone = (output, context) => {
38795
38804
  if (output[_pZI] != null) {
38796
38805
  contents[_PZI] = __expectString(output[_pZI]);
38797
38806
  }
38807
+ if (output[_gLN] != null) {
38808
+ contents[_GLN] = __expectString(output[_gLN]);
38809
+ }
38798
38810
  if (output[_zS] != null) {
38799
38811
  contents[_Stat] = __expectString(output[_zS]);
38800
38812
  }
@@ -61707,6 +61719,7 @@ const _GIro = "GroupIds";
61707
61719
  const _GK = "GreKey";
61708
61720
  const _GLBA = "GatewayLoadBalancerArns";
61709
61721
  const _GLBEI = "GatewayLoadBalancerEndpointId";
61722
+ const _GLN = "GroupLongName";
61710
61723
  const _GLTD = "GetLaunchTemplateData";
61711
61724
  const _GM = "GroupMember";
61712
61725
  const _GMPLA = "GetManagedPrefixListAssociations";
@@ -63837,6 +63850,7 @@ const _gIr = "groupId";
63837
63850
  const _gK = "greKey";
63838
63851
  const _gLBAS = "gatewayLoadBalancerArnSet";
63839
63852
  const _gLBEI = "gatewayLoadBalancerEndpointId";
63853
+ const _gLN = "groupLongName";
63840
63854
  const _gM = "groupMember";
63841
63855
  const _gN = "groupName";
63842
63856
  const _gOI = "groupOwnerId";
@@ -28,8 +28,7 @@ declare const DescribeAvailabilityZonesCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <p>Describes the Availability Zones, Local Zones, and Wavelength Zones that are available to
31
- * you. If there is an event impacting a zone, you can use this request to view the state and any
32
- * provided messages for that zone.</p>
31
+ * you.</p>
33
32
  * <p>For more information about Availability Zones, Local Zones, and Wavelength Zones, see
34
33
  * <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html">Regions and zones</a>
35
34
  * in the <i>Amazon EC2 User Guide</i>.</p>
@@ -81,6 +80,7 @@ declare const DescribeAvailabilityZonesCommand_base: {
81
80
  * // ZoneType: "STRING_VALUE",
82
81
  * // ParentZoneName: "STRING_VALUE",
83
82
  * // ParentZoneId: "STRING_VALUE",
83
+ * // GroupLongName: "STRING_VALUE",
84
84
  * // State: "available" || "information" || "impaired" || "unavailable" || "constrained",
85
85
  * // },
86
86
  * // ],
@@ -9872,7 +9872,8 @@ export interface CreateLaunchTemplateRequest {
9872
9872
  DryRun?: boolean | undefined;
9873
9873
  /**
9874
9874
  * <p>Unique, case-sensitive identifier you provide to ensure the idempotency of the
9875
- * request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring
9875
+ * request. If a client token isn't specified, a randomly generated token is used in the request to ensure idempotency.</p>
9876
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring
9876
9877
  * idempotency</a>.</p>
9877
9878
  * <p>Constraint: Maximum 128 ASCII characters.</p>
9878
9879
  * @public
@@ -10035,7 +10036,8 @@ export interface CreateLaunchTemplateVersionRequest {
10035
10036
  DryRun?: boolean | undefined;
10036
10037
  /**
10037
10038
  * <p>Unique, case-sensitive identifier you provide to ensure the idempotency of the
10038
- * request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring
10039
+ * request. If a client token isn't specified, a randomly generated token is used in the request to ensure idempotency.</p>
10040
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring
10039
10041
  * idempotency</a>.</p>
10040
10042
  * <p>Constraint: Maximum 128 ASCII characters.</p>
10041
10043
  * @public
@@ -3344,6 +3344,12 @@ export interface DescribeAvailabilityZonesRequest {
3344
3344
  * <ul>
3345
3345
  * <li>
3346
3346
  * <p>
3347
+ * <code>group-long-name</code> - The long name of the zone group for the Availability Zone (for
3348
+ * example, <code>US West (Oregon) 1</code>), the Local Zone (for example, for Zone group <code>us-west-2-lax-1</code>, it is <code>US West (Los Angeles)</code>,
3349
+ * or the Wavelength Zone (for example, for Zone group <code>us-east-1-wl1</code>, it is <code>US East (Verizon)</code>.</p>
3350
+ * </li>
3351
+ * <li>
3352
+ * <p>
3347
3353
  * <code>group-name</code> - The name of the zone group for the Availability Zone (for
3348
3354
  * example, <code>us-east-1-zg-1</code>), the Local Zone (for example, <code>us-west-2-lax-1</code>),
3349
3355
  * or the Wavelength Zone (for example, <code>us-east-1-wl1</code>).</p>
@@ -3447,7 +3453,7 @@ export interface AvailabilityZone {
3447
3453
  * <p>For Availability Zones, this parameter always has the value of
3448
3454
  * <code>opt-in-not-required</code>.</p>
3449
3455
  * <p>For Local Zones and Wavelength Zones, this parameter is the opt-in status. The possible
3450
- * values are <code>opted-in</code>, and <code>not-opted-in</code>.</p>
3456
+ * values are <code>opted-in</code> and <code>not-opted-in</code>.</p>
3451
3457
  * @public
3452
3458
  */
3453
3459
  OptInStatus?: AvailabilityZoneOptInStatus | undefined;
@@ -3496,8 +3502,10 @@ export interface AvailabilityZone {
3496
3502
  */
3497
3503
  NetworkBorderGroup?: string | undefined;
3498
3504
  /**
3499
- * <p>The type of zone. The valid values are <code>availability-zone</code>,
3500
- * <code>local-zone</code>, and <code>wavelength-zone</code>.</p>
3505
+ * <p>The type of zone.</p>
3506
+ * <p>Valid values: <code>availability-zone</code> | <code>local-zone</code> |
3507
+ * <code>wavelength-zone</code>
3508
+ * </p>
3501
3509
  * @public
3502
3510
  */
3503
3511
  ZoneType?: string | undefined;
@@ -3514,8 +3522,14 @@ export interface AvailabilityZone {
3514
3522
  */
3515
3523
  ParentZoneId?: string | undefined;
3516
3524
  /**
3517
- * <p>The state of the Availability Zone, Local Zone, or Wavelength Zone. This value is always
3518
- * <code>available</code>.</p>
3525
+ * <p>The long name of the Availability Zone group, Local Zone group, or Wavelength Zone
3526
+ * group.</p>
3527
+ * @public
3528
+ */
3529
+ GroupLongName?: string | undefined;
3530
+ /**
3531
+ * <p>The state of the Availability Zone, Local Zone, or Wavelength Zone. The possible values are
3532
+ * <code>available</code>, <code>unavailable</code>, and <code>constrained</code>.</p>
3519
3533
  * @public
3520
3534
  */
3521
3535
  State?: AvailabilityZoneState | undefined;
@@ -1015,8 +1015,9 @@ export interface ModifyLaunchTemplateRequest {
1015
1015
  DryRun?: boolean | undefined;
1016
1016
  /**
1017
1017
  * <p>Unique, case-sensitive identifier you provide to ensure the idempotency of the
1018
- * request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency
1019
- * in Amazon EC2 API requests</a>.</p>
1018
+ * request. If a client token isn't specified, a randomly generated token is used in the request to ensure idempotency.</p>
1019
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring
1020
+ * idempotency</a>.</p>
1020
1021
  * <p>Constraint: Maximum 128 ASCII characters.</p>
1021
1022
  * @public
1022
1023
  */
@@ -948,6 +948,7 @@ export interface AvailabilityZone {
948
948
  ZoneType?: string | undefined;
949
949
  ParentZoneName?: string | undefined;
950
950
  ParentZoneId?: string | undefined;
951
+ GroupLongName?: string | undefined;
951
952
  State?: AvailabilityZoneState | undefined;
952
953
  }
953
954
  export interface DescribeAvailabilityZonesResult {
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.764.0",
4
+ "version": "3.767.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-ec2",