@aws-sdk/client-ec2 3.259.0 → 3.261.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.
@@ -26613,6 +26613,9 @@ const serializeAws_ec2CreateLocalGatewayRouteRequest = (input, context) => {
26613
26613
  if (input.NetworkInterfaceId != null) {
26614
26614
  entries["NetworkInterfaceId"] = input.NetworkInterfaceId;
26615
26615
  }
26616
+ if (input.DestinationPrefixListId != null) {
26617
+ entries["DestinationPrefixListId"] = input.DestinationPrefixListId;
26618
+ }
26616
26619
  return entries;
26617
26620
  };
26618
26621
  const serializeAws_ec2CreateLocalGatewayRouteTableRequest = (input, context) => {
@@ -28938,6 +28941,9 @@ const serializeAws_ec2DeleteLocalGatewayRouteRequest = (input, context) => {
28938
28941
  if (input.DryRun != null) {
28939
28942
  entries["DryRun"] = input.DryRun;
28940
28943
  }
28944
+ if (input.DestinationPrefixListId != null) {
28945
+ entries["DestinationPrefixListId"] = input.DestinationPrefixListId;
28946
+ }
28941
28947
  return entries;
28942
28948
  };
28943
28949
  const serializeAws_ec2DeleteLocalGatewayRouteTableRequest = (input, context) => {
@@ -39453,6 +39459,9 @@ const serializeAws_ec2ModifyLocalGatewayRouteRequest = (input, context) => {
39453
39459
  if (input.DryRun != null) {
39454
39460
  entries["DryRun"] = input.DryRun;
39455
39461
  }
39462
+ if (input.DestinationPrefixListId != null) {
39463
+ entries["DestinationPrefixListId"] = input.DestinationPrefixListId;
39464
+ }
39456
39465
  return entries;
39457
39466
  };
39458
39467
  const serializeAws_ec2ModifyManagedPrefixListRequest = (input, context) => {
@@ -60310,6 +60319,7 @@ const deserializeAws_ec2LocalGatewayRoute = (output, context) => {
60310
60319
  SubnetId: undefined,
60311
60320
  CoipPoolId: undefined,
60312
60321
  NetworkInterfaceId: undefined,
60322
+ DestinationPrefixListId: undefined,
60313
60323
  };
60314
60324
  if (output["destinationCidrBlock"] !== undefined) {
60315
60325
  contents.DestinationCidrBlock = (0, smithy_client_1.expectString)(output["destinationCidrBlock"]);
@@ -60341,6 +60351,9 @@ const deserializeAws_ec2LocalGatewayRoute = (output, context) => {
60341
60351
  if (output["networkInterfaceId"] !== undefined) {
60342
60352
  contents.NetworkInterfaceId = (0, smithy_client_1.expectString)(output["networkInterfaceId"]);
60343
60353
  }
60354
+ if (output["destinationPrefixListId"] !== undefined) {
60355
+ contents.DestinationPrefixListId = (0, smithy_client_1.expectString)(output["destinationPrefixListId"]);
60356
+ }
60344
60357
  return contents;
60345
60358
  };
60346
60359
  const deserializeAws_ec2LocalGatewayRouteList = (output, context) => {
@@ -70428,7 +70441,7 @@ const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries)
70428
70441
  .map(([key, value]) => (0, smithy_client_1.extendedEncodeURIComponent)(key) + "=" + (0, smithy_client_1.extendedEncodeURIComponent)(value))
70429
70442
  .join("&");
70430
70443
  const loadEc2ErrorCode = (output, data) => {
70431
- if (data.Errors.Error.Code !== undefined) {
70444
+ if (data.Errors.Error?.Code !== undefined) {
70432
70445
  return data.Errors.Error.Code;
70433
70446
  }
70434
70447
  if (output.statusCode == 404) {
@@ -25417,6 +25417,9 @@ const serializeAws_ec2CreateLocalGatewayRouteRequest = (input, context) => {
25417
25417
  if (input.NetworkInterfaceId != null) {
25418
25418
  entries["NetworkInterfaceId"] = input.NetworkInterfaceId;
25419
25419
  }
25420
+ if (input.DestinationPrefixListId != null) {
25421
+ entries["DestinationPrefixListId"] = input.DestinationPrefixListId;
25422
+ }
25420
25423
  return entries;
25421
25424
  };
25422
25425
  const serializeAws_ec2CreateLocalGatewayRouteTableRequest = (input, context) => {
@@ -27742,6 +27745,9 @@ const serializeAws_ec2DeleteLocalGatewayRouteRequest = (input, context) => {
27742
27745
  if (input.DryRun != null) {
27743
27746
  entries["DryRun"] = input.DryRun;
27744
27747
  }
27748
+ if (input.DestinationPrefixListId != null) {
27749
+ entries["DestinationPrefixListId"] = input.DestinationPrefixListId;
27750
+ }
27745
27751
  return entries;
27746
27752
  };
27747
27753
  const serializeAws_ec2DeleteLocalGatewayRouteTableRequest = (input, context) => {
@@ -38257,6 +38263,9 @@ const serializeAws_ec2ModifyLocalGatewayRouteRequest = (input, context) => {
38257
38263
  if (input.DryRun != null) {
38258
38264
  entries["DryRun"] = input.DryRun;
38259
38265
  }
38266
+ if (input.DestinationPrefixListId != null) {
38267
+ entries["DestinationPrefixListId"] = input.DestinationPrefixListId;
38268
+ }
38260
38269
  return entries;
38261
38270
  };
38262
38271
  const serializeAws_ec2ModifyManagedPrefixListRequest = (input, context) => {
@@ -59114,6 +59123,7 @@ const deserializeAws_ec2LocalGatewayRoute = (output, context) => {
59114
59123
  SubnetId: undefined,
59115
59124
  CoipPoolId: undefined,
59116
59125
  NetworkInterfaceId: undefined,
59126
+ DestinationPrefixListId: undefined,
59117
59127
  };
59118
59128
  if (output["destinationCidrBlock"] !== undefined) {
59119
59129
  contents.DestinationCidrBlock = __expectString(output["destinationCidrBlock"]);
@@ -59145,6 +59155,9 @@ const deserializeAws_ec2LocalGatewayRoute = (output, context) => {
59145
59155
  if (output["networkInterfaceId"] !== undefined) {
59146
59156
  contents.NetworkInterfaceId = __expectString(output["networkInterfaceId"]);
59147
59157
  }
59158
+ if (output["destinationPrefixListId"] !== undefined) {
59159
+ contents.DestinationPrefixListId = __expectString(output["destinationPrefixListId"]);
59160
+ }
59148
59161
  return contents;
59149
59162
  };
59150
59163
  const deserializeAws_ec2LocalGatewayRouteList = (output, context) => {
@@ -69232,7 +69245,7 @@ const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries)
69232
69245
  .map(([key, value]) => __extendedEncodeURIComponent(key) + "=" + __extendedEncodeURIComponent(value))
69233
69246
  .join("&");
69234
69247
  const loadEc2ErrorCode = (output, data) => {
69235
- if (data.Errors.Error.Code !== undefined) {
69248
+ if (data.Errors.Error?.Code !== undefined) {
69236
69249
  return data.Errors.Error.Code;
69237
69250
  }
69238
69251
  if (output.statusCode == 404) {
@@ -5408,7 +5408,7 @@ export interface CreateLocalGatewayRouteRequest {
5408
5408
  * <p>The CIDR range used for destination matches. Routing decisions are based on
5409
5409
  * the most specific match.</p>
5410
5410
  */
5411
- DestinationCidrBlock: string | undefined;
5411
+ DestinationCidrBlock?: string;
5412
5412
  /**
5413
5413
  * <p>The ID of the local gateway route table.</p>
5414
5414
  */
@@ -5427,6 +5427,13 @@ export interface CreateLocalGatewayRouteRequest {
5427
5427
  * <p>The ID of the network interface.</p>
5428
5428
  */
5429
5429
  NetworkInterfaceId?: string;
5430
+ /**
5431
+ * <p>
5432
+ * The ID of the prefix list. Use a prefix list in place of <code>DestinationCidrBlock</code>. You
5433
+ * cannot use <code>DestinationPrefixListId</code> and <code>DestinationCidrBlock</code> in the same request.
5434
+ * </p>
5435
+ */
5436
+ DestinationPrefixListId?: string;
5430
5437
  }
5431
5438
  export declare enum LocalGatewayRouteState {
5432
5439
  active = "active",
@@ -5483,6 +5490,12 @@ export interface LocalGatewayRoute {
5483
5490
  * <p>The ID of the network interface.</p>
5484
5491
  */
5485
5492
  NetworkInterfaceId?: string;
5493
+ /**
5494
+ * <p>
5495
+ * The ID of the prefix list.
5496
+ * </p>
5497
+ */
5498
+ DestinationPrefixListId?: string;
5486
5499
  }
5487
5500
  export interface CreateLocalGatewayRouteResult {
5488
5501
  /**
@@ -199,7 +199,7 @@ export interface InstanceSpecification {
199
199
  /**
200
200
  * <p>The instance to specify which volumes should be snapshotted.</p>
201
201
  */
202
- InstanceId?: string;
202
+ InstanceId: string | undefined;
203
203
  /**
204
204
  * <p>Excludes the root volume from being snapshotted.</p>
205
205
  */
@@ -4745,7 +4745,7 @@ export interface DeleteLocalGatewayRouteRequest {
4745
4745
  /**
4746
4746
  * <p>The CIDR range for the route. This must match the CIDR for the route exactly.</p>
4747
4747
  */
4748
- DestinationCidrBlock: string | undefined;
4748
+ DestinationCidrBlock?: string;
4749
4749
  /**
4750
4750
  * <p>The ID of the local gateway route table.</p>
4751
4751
  */
@@ -4756,6 +4756,13 @@ export interface DeleteLocalGatewayRouteRequest {
4756
4756
  * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
4757
4757
  */
4758
4758
  DryRun?: boolean;
4759
+ /**
4760
+ * <p>
4761
+ * Use a prefix list in place of <code>DestinationCidrBlock</code>. You cannot use
4762
+ * <code>DestinationPrefixListId</code> and <code>DestinationCidrBlock</code> in the same request.
4763
+ * </p>
4764
+ */
4765
+ DestinationPrefixListId?: string;
4759
4766
  }
4760
4767
  export interface DeleteLocalGatewayRouteResult {
4761
4768
  /**
@@ -1224,7 +1224,7 @@ export interface ModifyLocalGatewayRouteRequest {
1224
1224
  /**
1225
1225
  * <p>The CIDR block used for destination matches. The value that you provide must match the CIDR of an existing route in the table.</p>
1226
1226
  */
1227
- DestinationCidrBlock: string | undefined;
1227
+ DestinationCidrBlock?: string;
1228
1228
  /**
1229
1229
  * <p>The ID of the local gateway route table.</p>
1230
1230
  */
@@ -1245,6 +1245,13 @@ export interface ModifyLocalGatewayRouteRequest {
1245
1245
  * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
1246
1246
  */
1247
1247
  DryRun?: boolean;
1248
+ /**
1249
+ * <p>
1250
+ * The ID of the prefix list. Use a prefix list in place of <code>DestinationCidrBlock</code>. You
1251
+ * cannot use <code>DestinationPrefixListId</code> and <code>DestinationCidrBlock</code> in the same request.
1252
+ * </p>
1253
+ */
1254
+ DestinationPrefixListId?: string;
1248
1255
  }
1249
1256
  export interface ModifyLocalGatewayRouteResult {
1250
1257
  /**
@@ -5709,6 +5716,10 @@ export interface SearchLocalGatewayRoutesRequest {
5709
5716
  * <ul>
5710
5717
  * <li>
5711
5718
  * <p>
5719
+ * <code>prefix-list-id</code> - The ID of the prefix list.</p>
5720
+ * </li>
5721
+ * <li>
5722
+ * <p>
5712
5723
  * <code>route-search.exact-match</code> - The exact match of the specified filter.</p>
5713
5724
  * </li>
5714
5725
  * <li>
@@ -1337,11 +1337,12 @@ export interface CreateLaunchTemplateVersionResult {
1337
1337
  Warning?: ValidationWarning;
1338
1338
  }
1339
1339
  export interface CreateLocalGatewayRouteRequest {
1340
- DestinationCidrBlock: string | undefined;
1340
+ DestinationCidrBlock?: string;
1341
1341
  LocalGatewayRouteTableId: string | undefined;
1342
1342
  LocalGatewayVirtualInterfaceGroupId?: string;
1343
1343
  DryRun?: boolean;
1344
1344
  NetworkInterfaceId?: string;
1345
+ DestinationPrefixListId?: string;
1345
1346
  }
1346
1347
  export declare enum LocalGatewayRouteState {
1347
1348
  active = "active",
@@ -1365,6 +1366,7 @@ export interface LocalGatewayRoute {
1365
1366
  SubnetId?: string;
1366
1367
  CoipPoolId?: string;
1367
1368
  NetworkInterfaceId?: string;
1369
+ DestinationPrefixListId?: string;
1368
1370
  }
1369
1371
  export interface CreateLocalGatewayRouteResult {
1370
1372
  Route?: LocalGatewayRoute;
@@ -98,7 +98,7 @@ export declare enum CopyTagsFromSource {
98
98
  volume = "volume",
99
99
  }
100
100
  export interface InstanceSpecification {
101
- InstanceId?: string;
101
+ InstanceId: string | undefined;
102
102
  ExcludeBootVolume?: boolean;
103
103
  ExcludeDataVolumeIds?: string[];
104
104
  }
@@ -1487,9 +1487,10 @@ export interface DeleteLaunchTemplateVersionsResult {
1487
1487
  UnsuccessfullyDeletedLaunchTemplateVersions?: DeleteLaunchTemplateVersionsResponseErrorItem[];
1488
1488
  }
1489
1489
  export interface DeleteLocalGatewayRouteRequest {
1490
- DestinationCidrBlock: string | undefined;
1490
+ DestinationCidrBlock?: string;
1491
1491
  LocalGatewayRouteTableId: string | undefined;
1492
1492
  DryRun?: boolean;
1493
+ DestinationPrefixListId?: string;
1493
1494
  }
1494
1495
  export interface DeleteLocalGatewayRouteResult {
1495
1496
  Route?: LocalGatewayRoute;
@@ -463,11 +463,12 @@ export interface ModifyLaunchTemplateResult {
463
463
  LaunchTemplate?: LaunchTemplate;
464
464
  }
465
465
  export interface ModifyLocalGatewayRouteRequest {
466
- DestinationCidrBlock: string | undefined;
466
+ DestinationCidrBlock?: string;
467
467
  LocalGatewayRouteTableId: string | undefined;
468
468
  LocalGatewayVirtualInterfaceGroupId?: string;
469
469
  NetworkInterfaceId?: string;
470
470
  DryRun?: boolean;
471
+ DestinationPrefixListId?: string;
471
472
  }
472
473
  export interface ModifyLocalGatewayRouteResult {
473
474
  Route?: LocalGatewayRoute;
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.259.0",
4
+ "version": "3.261.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",
@@ -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.259.0",
23
+ "@aws-sdk/client-sts": "3.261.0",
24
24
  "@aws-sdk/config-resolver": "3.259.0",
25
- "@aws-sdk/credential-provider-node": "3.259.0",
25
+ "@aws-sdk/credential-provider-node": "3.261.0",
26
26
  "@aws-sdk/fetch-http-handler": "3.257.0",
27
27
  "@aws-sdk/hash-node": "3.257.0",
28
28
  "@aws-sdk/invalid-dependency": "3.257.0",
@@ -40,14 +40,14 @@
40
40
  "@aws-sdk/node-config-provider": "3.259.0",
41
41
  "@aws-sdk/node-http-handler": "3.257.0",
42
42
  "@aws-sdk/protocol-http": "3.257.0",
43
- "@aws-sdk/smithy-client": "3.257.0",
43
+ "@aws-sdk/smithy-client": "3.261.0",
44
44
  "@aws-sdk/types": "3.257.0",
45
45
  "@aws-sdk/url-parser": "3.257.0",
46
46
  "@aws-sdk/util-base64": "3.208.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.188.0",
48
48
  "@aws-sdk/util-body-length-node": "3.208.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.257.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.259.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.261.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.261.0",
51
51
  "@aws-sdk/util-endpoints": "3.257.0",
52
52
  "@aws-sdk/util-retry": "3.257.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.257.0",