@aws-sdk/client-ec2 3.498.0 → 3.499.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
@@ -26652,6 +26652,12 @@ var se_CreateNetworkAclRequest = /* @__PURE__ */ __name((input, context) => {
26652
26652
  entries[loc] = value;
26653
26653
  });
26654
26654
  }
26655
+ if (input[_CTl] === void 0) {
26656
+ input[_CTl] = (0, import_uuid.v4)();
26657
+ }
26658
+ if (input[_CTl] != null) {
26659
+ entries[_CTl] = input[_CTl];
26660
+ }
26655
26661
  return entries;
26656
26662
  }, "se_CreateNetworkAclRequest");
26657
26663
  var se_CreateNetworkInsightsAccessScopeRequest = /* @__PURE__ */ __name((input, context) => {
@@ -27087,6 +27093,12 @@ var se_CreateRouteTableRequest = /* @__PURE__ */ __name((input, context) => {
27087
27093
  entries[loc] = value;
27088
27094
  });
27089
27095
  }
27096
+ if (input[_CTl] === void 0) {
27097
+ input[_CTl] = (0, import_uuid.v4)();
27098
+ }
27099
+ if (input[_CTl] != null) {
27100
+ entries[_CTl] = input[_CTl];
27101
+ }
27090
27102
  return entries;
27091
27103
  }, "se_CreateRouteTableRequest");
27092
27104
  var se_CreateSecurityGroupRequest = /* @__PURE__ */ __name((input, context) => {
@@ -49499,6 +49511,9 @@ var de_CreateNetworkAclResult = /* @__PURE__ */ __name((output, context) => {
49499
49511
  if (output[_nA] != null) {
49500
49512
  contents[_NA] = de_NetworkAcl(output[_nA], context);
49501
49513
  }
49514
+ if (output[_cT] != null) {
49515
+ contents[_CTl] = (0, import_smithy_client.expectString)(output[_cT]);
49516
+ }
49502
49517
  return contents;
49503
49518
  }, "de_CreateNetworkAclResult");
49504
49519
  var de_CreateNetworkInsightsAccessScopeResult = /* @__PURE__ */ __name((output, context) => {
@@ -49584,6 +49599,9 @@ var de_CreateRouteTableResult = /* @__PURE__ */ __name((output, context) => {
49584
49599
  if (output[_rTo] != null) {
49585
49600
  contents[_RTo] = de_RouteTable(output[_rTo], context);
49586
49601
  }
49602
+ if (output[_cT] != null) {
49603
+ contents[_CTl] = (0, import_smithy_client.expectString)(output[_cT]);
49604
+ }
49587
49605
  return contents;
49588
49606
  }, "de_CreateRouteTableResult");
49589
49607
  var de_CreateSecurityGroupResult = /* @__PURE__ */ __name((output, context) => {
@@ -73409,7 +73427,8 @@ var HostnameType = {
73409
73427
  };
73410
73428
  var SubnetState = {
73411
73429
  available: "available",
73412
- pending: "pending"
73430
+ pending: "pending",
73431
+ unavailable: "unavailable"
73413
73432
  };
73414
73433
  var Tenancy = {
73415
73434
  dedicated: "dedicated",
@@ -76277,6 +76296,7 @@ var AvailabilityZoneOptInStatus = {
76277
76296
  };
76278
76297
  var AvailabilityZoneState = {
76279
76298
  available: "available",
76299
+ constrained: "constrained",
76280
76300
  impaired: "impaired",
76281
76301
  information: "information",
76282
76302
  unavailable: "unavailable"
@@ -40,6 +40,7 @@ export const HostnameType = {
40
40
  export const SubnetState = {
41
41
  available: "available",
42
42
  pending: "pending",
43
+ unavailable: "unavailable",
43
44
  };
44
45
  export const Tenancy = {
45
46
  dedicated: "dedicated",
@@ -34,6 +34,7 @@ export const AvailabilityZoneOptInStatus = {
34
34
  };
35
35
  export const AvailabilityZoneState = {
36
36
  available: "available",
37
+ constrained: "constrained",
37
38
  impaired: "impaired",
38
39
  information: "information",
39
40
  unavailable: "unavailable",
@@ -25167,6 +25167,12 @@ const se_CreateNetworkAclRequest = (input, context) => {
25167
25167
  entries[loc] = value;
25168
25168
  });
25169
25169
  }
25170
+ if (input[_CTl] === undefined) {
25171
+ input[_CTl] = generateIdempotencyToken();
25172
+ }
25173
+ if (input[_CTl] != null) {
25174
+ entries[_CTl] = input[_CTl];
25175
+ }
25170
25176
  return entries;
25171
25177
  };
25172
25178
  const se_CreateNetworkInsightsAccessScopeRequest = (input, context) => {
@@ -25593,6 +25599,12 @@ const se_CreateRouteTableRequest = (input, context) => {
25593
25599
  entries[loc] = value;
25594
25600
  });
25595
25601
  }
25602
+ if (input[_CTl] === undefined) {
25603
+ input[_CTl] = generateIdempotencyToken();
25604
+ }
25605
+ if (input[_CTl] != null) {
25606
+ entries[_CTl] = input[_CTl];
25607
+ }
25596
25608
  return entries;
25597
25609
  };
25598
25610
  const se_CreateSecurityGroupRequest = (input, context) => {
@@ -47871,6 +47883,9 @@ const de_CreateNetworkAclResult = (output, context) => {
47871
47883
  if (output[_nA] != null) {
47872
47884
  contents[_NA] = de_NetworkAcl(output[_nA], context);
47873
47885
  }
47886
+ if (output[_cT] != null) {
47887
+ contents[_CTl] = __expectString(output[_cT]);
47888
+ }
47874
47889
  return contents;
47875
47890
  };
47876
47891
  const de_CreateNetworkInsightsAccessScopeResult = (output, context) => {
@@ -47957,6 +47972,9 @@ const de_CreateRouteTableResult = (output, context) => {
47957
47972
  if (output[_rTo] != null) {
47958
47973
  contents[_RTo] = de_RouteTable(output[_rTo], context);
47959
47974
  }
47975
+ if (output[_cT] != null) {
47976
+ contents[_CTl] = __expectString(output[_cT]);
47977
+ }
47960
47978
  return contents;
47961
47979
  };
47962
47980
  const de_CreateSecurityGroupResult = (output, context) => {
@@ -54,7 +54,7 @@ declare const CreateDefaultSubnetCommand_base: {
54
54
  * // MapPublicIpOnLaunch: true || false,
55
55
  * // MapCustomerOwnedIpOnLaunch: true || false,
56
56
  * // CustomerOwnedIpv4Pool: "STRING_VALUE",
57
- * // State: "pending" || "available",
57
+ * // State: "pending" || "available" || "unavailable",
58
58
  * // SubnetId: "STRING_VALUE",
59
59
  * // VpcId: "STRING_VALUE",
60
60
  * // OwnerId: "STRING_VALUE",
@@ -49,6 +49,7 @@ declare const CreateNetworkAclCommand_base: {
49
49
  * ],
50
50
  * },
51
51
  * ],
52
+ * ClientToken: "STRING_VALUE",
52
53
  * };
53
54
  * const command = new CreateNetworkAclCommand(input);
54
55
  * const response = await client.send(command);
@@ -90,6 +91,7 @@ declare const CreateNetworkAclCommand_base: {
90
91
  * // VpcId: "STRING_VALUE",
91
92
  * // OwnerId: "STRING_VALUE",
92
93
  * // },
94
+ * // ClientToken: "STRING_VALUE",
93
95
  * // };
94
96
  *
95
97
  * ```
@@ -49,6 +49,7 @@ declare const CreateRouteTableCommand_base: {
49
49
  * ],
50
50
  * },
51
51
  * ],
52
+ * ClientToken: "STRING_VALUE",
52
53
  * };
53
54
  * const command = new CreateRouteTableCommand(input);
54
55
  * const response = await client.send(command);
@@ -102,6 +103,7 @@ declare const CreateRouteTableCommand_base: {
102
103
  * // VpcId: "STRING_VALUE",
103
104
  * // OwnerId: "STRING_VALUE",
104
105
  * // },
106
+ * // ClientToken: "STRING_VALUE",
105
107
  * // };
106
108
  *
107
109
  * ```
@@ -87,7 +87,7 @@ declare const CreateSubnetCommand_base: {
87
87
  * // MapPublicIpOnLaunch: true || false,
88
88
  * // MapCustomerOwnedIpOnLaunch: true || false,
89
89
  * // CustomerOwnedIpv4Pool: "STRING_VALUE",
90
- * // State: "pending" || "available",
90
+ * // State: "pending" || "available" || "unavailable",
91
91
  * // SubnetId: "STRING_VALUE",
92
92
  * // VpcId: "STRING_VALUE",
93
93
  * // OwnerId: "STRING_VALUE",
@@ -61,7 +61,7 @@ declare const DescribeAvailabilityZonesCommand_base: {
61
61
  * // { // DescribeAvailabilityZonesResult
62
62
  * // AvailabilityZones: [ // AvailabilityZoneList
63
63
  * // { // AvailabilityZone
64
- * // State: "available" || "information" || "impaired" || "unavailable",
64
+ * // State: "available" || "information" || "impaired" || "unavailable" || "constrained",
65
65
  * // OptInStatus: "opt-in-not-required" || "opted-in" || "not-opted-in",
66
66
  * // Messages: [ // AvailabilityZoneMessageList
67
67
  * // { // AvailabilityZoneMessage
@@ -66,7 +66,7 @@ declare const DescribeSubnetsCommand_base: {
66
66
  * // MapPublicIpOnLaunch: true || false,
67
67
  * // MapCustomerOwnedIpOnLaunch: true || false,
68
68
  * // CustomerOwnedIpv4Pool: "STRING_VALUE",
69
- * // State: "pending" || "available",
69
+ * // State: "pending" || "available" || "unavailable",
70
70
  * // SubnetId: "STRING_VALUE",
71
71
  * // VpcId: "STRING_VALUE",
72
72
  * // OwnerId: "STRING_VALUE",
@@ -869,6 +869,7 @@ export interface PrivateDnsNameOptionsOnLaunch {
869
869
  export declare const SubnetState: {
870
870
  readonly available: "available";
871
871
  readonly pending: "pending";
872
+ readonly unavailable: "unavailable";
872
873
  };
873
874
  /**
874
875
  * @public
@@ -1217,8 +1218,7 @@ export interface CreateEgressOnlyInternetGatewayRequest {
1217
1218
  /**
1218
1219
  * @public
1219
1220
  * <p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the
1220
- * request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html">How to ensure
1221
- * idempotency</a>.</p>
1221
+ * request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html">Ensuring idempotency</a>.</p>
1222
1222
  */
1223
1223
  ClientToken?: string;
1224
1224
  /**
@@ -8593,8 +8593,7 @@ export interface CreateNatGatewayRequest {
8593
8593
  /**
8594
8594
  * @public
8595
8595
  * <p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the
8596
- * request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">How to ensure
8597
- * idempotency</a>.</p>
8596
+ * request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a>.</p>
8598
8597
  * <p>Constraint: Maximum 64 ASCII characters.</p>
8599
8598
  */
8600
8599
  ClientToken?: string;
@@ -8844,6 +8843,12 @@ export interface CreateNetworkAclRequest {
8844
8843
  * <p>The tags to assign to the network ACL.</p>
8845
8844
  */
8846
8845
  TagSpecifications?: TagSpecification[];
8846
+ /**
8847
+ * @public
8848
+ * <p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the
8849
+ * request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html">Ensuring idempotency</a>.</p>
8850
+ */
8851
+ ClientToken?: string;
8847
8852
  }
8848
8853
  /**
8849
8854
  * @public
@@ -8990,6 +8995,11 @@ export interface CreateNetworkAclResult {
8990
8995
  * <p>Information about the network ACL.</p>
8991
8996
  */
8992
8997
  NetworkAcl?: NetworkAcl;
8998
+ /**
8999
+ * @public
9000
+ * <p>Unique, case-sensitive identifier to ensure the idempotency of the request. Only returned if a client token was provided in the request.</p>
9001
+ */
9002
+ ClientToken?: string;
8993
9003
  }
8994
9004
  /**
8995
9005
  * @public
@@ -929,6 +929,12 @@ export interface CreateRouteTableRequest {
929
929
  * <p>The tags to assign to the route table.</p>
930
930
  */
931
931
  TagSpecifications?: TagSpecification[];
932
+ /**
933
+ * @public
934
+ * <p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the
935
+ * request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html">Ensuring idempotency</a>.</p>
936
+ */
937
+ ClientToken?: string;
932
938
  }
933
939
  /**
934
940
  * @public
@@ -1154,6 +1160,11 @@ export interface CreateRouteTableResult {
1154
1160
  * <p>Information about the route table.</p>
1155
1161
  */
1156
1162
  RouteTable?: RouteTable;
1163
+ /**
1164
+ * @public
1165
+ * <p>Unique, case-sensitive identifier to ensure the idempotency of the request. Only returned if a client token was provided in the request.</p>
1166
+ */
1167
+ ClientToken?: string;
1157
1168
  }
1158
1169
  /**
1159
1170
  * @public
@@ -2122,6 +2122,7 @@ export type AvailabilityZoneOptInStatus = (typeof AvailabilityZoneOptInStatus)[k
2122
2122
  */
2123
2123
  export declare const AvailabilityZoneState: {
2124
2124
  readonly available: "available";
2125
+ readonly constrained: "constrained";
2125
2126
  readonly impaired: "impaired";
2126
2127
  readonly information: "information";
2127
2128
  readonly unavailable: "unavailable";
@@ -231,6 +231,7 @@ export interface PrivateDnsNameOptionsOnLaunch {
231
231
  export declare const SubnetState: {
232
232
  readonly available: "available";
233
233
  readonly pending: "pending";
234
+ readonly unavailable: "unavailable";
234
235
  };
235
236
  export type SubnetState = (typeof SubnetState)[keyof typeof SubnetState];
236
237
  export interface Subnet {
@@ -1846,6 +1847,7 @@ export interface CreateNetworkAclRequest {
1846
1847
  DryRun?: boolean;
1847
1848
  VpcId: string | undefined;
1848
1849
  TagSpecifications?: TagSpecification[];
1850
+ ClientToken?: string;
1849
1851
  }
1850
1852
  export interface NetworkAclAssociation {
1851
1853
  NetworkAclAssociationId?: string;
@@ -1882,6 +1884,7 @@ export interface NetworkAcl {
1882
1884
  }
1883
1885
  export interface CreateNetworkAclResult {
1884
1886
  NetworkAcl?: NetworkAcl;
1887
+ ClientToken?: string;
1885
1888
  }
1886
1889
  export interface CreateNetworkAclEntryRequest {
1887
1890
  CidrBlock?: string;
@@ -275,6 +275,7 @@ export interface CreateRouteTableRequest {
275
275
  DryRun?: boolean;
276
276
  VpcId: string | undefined;
277
277
  TagSpecifications?: TagSpecification[];
278
+ ClientToken?: string;
278
279
  }
279
280
  export interface RouteTableAssociation {
280
281
  Main?: boolean;
@@ -327,6 +328,7 @@ export interface RouteTable {
327
328
  }
328
329
  export interface CreateRouteTableResult {
329
330
  RouteTable?: RouteTable;
331
+ ClientToken?: string;
330
332
  }
331
333
  export interface CreateSecurityGroupRequest {
332
334
  Description: string | undefined;
@@ -595,6 +595,7 @@ export type AvailabilityZoneOptInStatus =
595
595
  (typeof AvailabilityZoneOptInStatus)[keyof typeof AvailabilityZoneOptInStatus];
596
596
  export declare const AvailabilityZoneState: {
597
597
  readonly available: "available";
598
+ readonly constrained: "constrained";
598
599
  readonly impaired: "impaired";
599
600
  readonly information: "information";
600
601
  readonly unavailable: "unavailable";
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.498.0",
4
+ "version": "3.499.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",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.496.0",
23
+ "@aws-sdk/client-sts": "3.499.0",
24
24
  "@aws-sdk/core": "3.496.0",
25
- "@aws-sdk/credential-provider-node": "3.496.0",
25
+ "@aws-sdk/credential-provider-node": "3.499.0",
26
26
  "@aws-sdk/middleware-host-header": "3.496.0",
27
27
  "@aws-sdk/middleware-logger": "3.496.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.496.0",