@aws-sdk/client-ec2 3.171.0 → 3.174.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.
Files changed (68) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist-cjs/commands/CreateTrafficMirrorFilterRuleCommand.js +3 -3
  3. package/dist-cjs/commands/DescribeAddressesAttributeCommand.js +3 -3
  4. package/dist-cjs/commands/DescribeAggregateIdFormatCommand.js +1 -2
  5. package/dist-cjs/commands/DescribeLocalGatewayVirtualInterfaceGroupsCommand.js +2 -1
  6. package/dist-cjs/commands/DescribeLocalGatewayVirtualInterfacesCommand.js +1 -2
  7. package/dist-cjs/commands/MonitorInstancesCommand.js +3 -3
  8. package/dist-cjs/models/models_0.js +978 -27
  9. package/dist-cjs/models/models_1.js +250 -18
  10. package/dist-cjs/models/models_2.js +152 -18
  11. package/dist-cjs/models/models_3.js +279 -18
  12. package/dist-cjs/models/models_4.js +106 -18
  13. package/dist-cjs/models/models_5.js +62 -18
  14. package/dist-cjs/models/models_6.js +46 -3
  15. package/dist-cjs/protocols/Aws_ec2.js +88 -0
  16. package/dist-es/commands/CreateTrafficMirrorFilterRuleCommand.js +1 -1
  17. package/dist-es/commands/DescribeAddressesAttributeCommand.js +1 -1
  18. package/dist-es/commands/DescribeAggregateIdFormatCommand.js +1 -2
  19. package/dist-es/commands/DescribeLocalGatewayVirtualInterfaceGroupsCommand.js +2 -1
  20. package/dist-es/commands/DescribeLocalGatewayVirtualInterfacesCommand.js +1 -2
  21. package/dist-es/commands/MonitorInstancesCommand.js +1 -1
  22. package/dist-es/models/models_0.js +966 -12
  23. package/dist-es/models/models_1.js +235 -3
  24. package/dist-es/models/models_2.js +137 -3
  25. package/dist-es/models/models_3.js +264 -3
  26. package/dist-es/models/models_4.js +91 -3
  27. package/dist-es/models/models_5.js +47 -3
  28. package/dist-es/models/models_6.js +33 -0
  29. package/dist-es/protocols/Aws_ec2.js +88 -0
  30. package/dist-types/EC2.d.ts +13 -30
  31. package/dist-types/commands/CreateTrafficMirrorFilterRuleCommand.d.ts +1 -1
  32. package/dist-types/commands/DescribeAddressesAttributeCommand.d.ts +1 -1
  33. package/dist-types/commands/DescribeAggregateIdFormatCommand.d.ts +1 -2
  34. package/dist-types/commands/DescribeInstancesCommand.d.ts +0 -3
  35. package/dist-types/commands/DescribeLocalGatewayVirtualInterfaceGroupsCommand.d.ts +2 -1
  36. package/dist-types/commands/DescribeLocalGatewayVirtualInterfacesCommand.d.ts +1 -2
  37. package/dist-types/commands/DescribeReservedInstancesCommand.d.ts +0 -3
  38. package/dist-types/commands/DescribeReservedInstancesModificationsCommand.d.ts +0 -3
  39. package/dist-types/commands/DescribeReservedInstancesOfferingsCommand.d.ts +0 -3
  40. package/dist-types/commands/DescribeScheduledInstanceAvailabilityCommand.d.ts +0 -4
  41. package/dist-types/commands/DescribeScheduledInstancesCommand.d.ts +0 -4
  42. package/dist-types/commands/ModifyReservedInstancesCommand.d.ts +4 -6
  43. package/dist-types/commands/MonitorInstancesCommand.d.ts +1 -1
  44. package/dist-types/commands/PurchaseReservedInstancesOfferingCommand.d.ts +3 -0
  45. package/dist-types/commands/PurchaseScheduledInstancesCommand.d.ts +4 -1
  46. package/dist-types/commands/RequestSpotInstancesCommand.d.ts +1 -1
  47. package/dist-types/commands/RunInstancesCommand.d.ts +1 -2
  48. package/dist-types/models/models_0.d.ts +975 -108
  49. package/dist-types/models/models_1.d.ts +288 -143
  50. package/dist-types/models/models_2.d.ts +202 -79
  51. package/dist-types/models/models_3.d.ts +291 -161
  52. package/dist-types/models/models_4.d.ts +221 -103
  53. package/dist-types/models/models_5.d.ts +102 -61
  54. package/dist-types/models/models_6.d.ts +78 -14
  55. package/dist-types/ts3.4/commands/CreateTrafficMirrorFilterRuleCommand.d.ts +1 -1
  56. package/dist-types/ts3.4/commands/DescribeAddressesAttributeCommand.d.ts +1 -1
  57. package/dist-types/ts3.4/commands/DescribeAggregateIdFormatCommand.d.ts +4 -2
  58. package/dist-types/ts3.4/commands/DescribeLocalGatewayVirtualInterfaceGroupsCommand.d.ts +2 -4
  59. package/dist-types/ts3.4/commands/DescribeLocalGatewayVirtualInterfacesCommand.d.ts +4 -2
  60. package/dist-types/ts3.4/commands/MonitorInstancesCommand.d.ts +1 -1
  61. package/dist-types/ts3.4/models/models_0.d.ts +935 -846
  62. package/dist-types/ts3.4/models/models_1.d.ts +216 -154
  63. package/dist-types/ts3.4/models/models_2.d.ts +145 -83
  64. package/dist-types/ts3.4/models/models_3.d.ts +248 -171
  65. package/dist-types/ts3.4/models/models_4.d.ts +104 -72
  66. package/dist-types/ts3.4/models/models_5.d.ts +61 -47
  67. package/dist-types/ts3.4/models/models_6.d.ts +47 -19
  68. package/package.json +1 -1
@@ -41038,6 +41038,34 @@ const deserializeAws_ec2ActiveInstanceSet = (output, context) => {
41038
41038
  return deserializeAws_ec2ActiveInstance(entry, context);
41039
41039
  });
41040
41040
  };
41041
+ const deserializeAws_ec2AddedPrincipal = (output, context) => {
41042
+ const contents = {
41043
+ PrincipalType: undefined,
41044
+ Principal: undefined,
41045
+ ServicePermissionId: undefined,
41046
+ ServiceId: undefined,
41047
+ };
41048
+ if (output["principalType"] !== undefined) {
41049
+ contents.PrincipalType = (0, smithy_client_1.expectString)(output["principalType"]);
41050
+ }
41051
+ if (output["principal"] !== undefined) {
41052
+ contents.Principal = (0, smithy_client_1.expectString)(output["principal"]);
41053
+ }
41054
+ if (output["servicePermissionId"] !== undefined) {
41055
+ contents.ServicePermissionId = (0, smithy_client_1.expectString)(output["servicePermissionId"]);
41056
+ }
41057
+ if (output["serviceId"] !== undefined) {
41058
+ contents.ServiceId = (0, smithy_client_1.expectString)(output["serviceId"]);
41059
+ }
41060
+ return contents;
41061
+ };
41062
+ const deserializeAws_ec2AddedPrincipalSet = (output, context) => {
41063
+ return (output || [])
41064
+ .filter((e) => e != null)
41065
+ .map((entry) => {
41066
+ return deserializeAws_ec2AddedPrincipal(entry, context);
41067
+ });
41068
+ };
41041
41069
  const deserializeAws_ec2AdditionalDetail = (output, context) => {
41042
41070
  const contents = {
41043
41071
  AdditionalDetailType: undefined,
@@ -41228,6 +41256,9 @@ const deserializeAws_ec2AllowedPrincipal = (output, context) => {
41228
41256
  const contents = {
41229
41257
  PrincipalType: undefined,
41230
41258
  Principal: undefined,
41259
+ ServicePermissionId: undefined,
41260
+ Tags: undefined,
41261
+ ServiceId: undefined,
41231
41262
  };
41232
41263
  if (output["principalType"] !== undefined) {
41233
41264
  contents.PrincipalType = (0, smithy_client_1.expectString)(output["principalType"]);
@@ -41235,6 +41266,18 @@ const deserializeAws_ec2AllowedPrincipal = (output, context) => {
41235
41266
  if (output["principal"] !== undefined) {
41236
41267
  contents.Principal = (0, smithy_client_1.expectString)(output["principal"]);
41237
41268
  }
41269
+ if (output["servicePermissionId"] !== undefined) {
41270
+ contents.ServicePermissionId = (0, smithy_client_1.expectString)(output["servicePermissionId"]);
41271
+ }
41272
+ if (output.tagSet === "") {
41273
+ contents.Tags = [];
41274
+ }
41275
+ else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) {
41276
+ contents.Tags = deserializeAws_ec2TagList((0, smithy_client_1.getArrayIfSingleItem)(output["tagSet"]["item"]), context);
41277
+ }
41278
+ if (output["serviceId"] !== undefined) {
41279
+ contents.ServiceId = (0, smithy_client_1.expectString)(output["serviceId"]);
41280
+ }
41238
41281
  return contents;
41239
41282
  };
41240
41283
  const deserializeAws_ec2AllowedPrincipalSet = (output, context) => {
@@ -42312,6 +42355,26 @@ const deserializeAws_ec2CancelSpotInstanceRequestsResult = (output, context) =>
42312
42355
  }
42313
42356
  return contents;
42314
42357
  };
42358
+ const deserializeAws_ec2CapacityAllocation = (output, context) => {
42359
+ const contents = {
42360
+ AllocationType: undefined,
42361
+ Count: undefined,
42362
+ };
42363
+ if (output["allocationType"] !== undefined) {
42364
+ contents.AllocationType = (0, smithy_client_1.expectString)(output["allocationType"]);
42365
+ }
42366
+ if (output["count"] !== undefined) {
42367
+ contents.Count = (0, smithy_client_1.strictParseInt32)(output["count"]);
42368
+ }
42369
+ return contents;
42370
+ };
42371
+ const deserializeAws_ec2CapacityAllocations = (output, context) => {
42372
+ return (output || [])
42373
+ .filter((e) => e != null)
42374
+ .map((entry) => {
42375
+ return deserializeAws_ec2CapacityAllocation(entry, context);
42376
+ });
42377
+ };
42315
42378
  const deserializeAws_ec2CapacityReservation = (output, context) => {
42316
42379
  const contents = {
42317
42380
  CapacityReservationId: undefined,
@@ -42336,6 +42399,7 @@ const deserializeAws_ec2CapacityReservation = (output, context) => {
42336
42399
  OutpostArn: undefined,
42337
42400
  CapacityReservationFleetId: undefined,
42338
42401
  PlacementGroupArn: undefined,
42402
+ CapacityAllocations: undefined,
42339
42403
  };
42340
42404
  if (output["capacityReservationId"] !== undefined) {
42341
42405
  contents.CapacityReservationId = (0, smithy_client_1.expectString)(output["capacityReservationId"]);
@@ -42406,6 +42470,12 @@ const deserializeAws_ec2CapacityReservation = (output, context) => {
42406
42470
  if (output["placementGroupArn"] !== undefined) {
42407
42471
  contents.PlacementGroupArn = (0, smithy_client_1.expectString)(output["placementGroupArn"]);
42408
42472
  }
42473
+ if (output.capacityAllocationSet === "") {
42474
+ contents.CapacityAllocations = [];
42475
+ }
42476
+ else if (output["capacityAllocationSet"] !== undefined && output["capacityAllocationSet"]["item"] !== undefined) {
42477
+ contents.CapacityAllocations = deserializeAws_ec2CapacityAllocations((0, smithy_client_1.getArrayIfSingleItem)(output["capacityAllocationSet"]["item"]), context);
42478
+ }
42409
42479
  return contents;
42410
42480
  };
42411
42481
  const deserializeAws_ec2CapacityReservationFleet = (output, context) => {
@@ -55126,8 +55196,15 @@ const deserializeAws_ec2ModifyVpcEndpointServicePayerResponsibilityResult = (out
55126
55196
  };
55127
55197
  const deserializeAws_ec2ModifyVpcEndpointServicePermissionsResult = (output, context) => {
55128
55198
  const contents = {
55199
+ AddedPrincipals: undefined,
55129
55200
  ReturnValue: undefined,
55130
55201
  };
55202
+ if (output.addedPrincipalSet === "") {
55203
+ contents.AddedPrincipals = [];
55204
+ }
55205
+ else if (output["addedPrincipalSet"] !== undefined && output["addedPrincipalSet"]["item"] !== undefined) {
55206
+ contents.AddedPrincipals = deserializeAws_ec2AddedPrincipalSet((0, smithy_client_1.getArrayIfSingleItem)(output["addedPrincipalSet"]["item"]), context);
55207
+ }
55131
55208
  if (output["return"] !== undefined) {
55132
55209
  contents.ReturnValue = (0, smithy_client_1.parseBoolean)(output["return"]);
55133
55210
  }
@@ -63235,6 +63312,8 @@ const deserializeAws_ec2VpcEndpointConnection = (output, context) => {
63235
63312
  NetworkLoadBalancerArns: undefined,
63236
63313
  GatewayLoadBalancerArns: undefined,
63237
63314
  IpAddressType: undefined,
63315
+ VpcEndpointConnectionId: undefined,
63316
+ Tags: undefined,
63238
63317
  };
63239
63318
  if (output["serviceId"] !== undefined) {
63240
63319
  contents.ServiceId = (0, smithy_client_1.expectString)(output["serviceId"]);
@@ -63274,6 +63353,15 @@ const deserializeAws_ec2VpcEndpointConnection = (output, context) => {
63274
63353
  if (output["ipAddressType"] !== undefined) {
63275
63354
  contents.IpAddressType = (0, smithy_client_1.expectString)(output["ipAddressType"]);
63276
63355
  }
63356
+ if (output["vpcEndpointConnectionId"] !== undefined) {
63357
+ contents.VpcEndpointConnectionId = (0, smithy_client_1.expectString)(output["vpcEndpointConnectionId"]);
63358
+ }
63359
+ if (output.tagSet === "") {
63360
+ contents.Tags = [];
63361
+ }
63362
+ else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) {
63363
+ contents.Tags = deserializeAws_ec2TagList((0, smithy_client_1.getArrayIfSingleItem)(output["tagSet"]["item"]), context);
63364
+ }
63277
63365
  return contents;
63278
63366
  };
63279
63367
  const deserializeAws_ec2VpcEndpointConnectionSet = (output, context) => {
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { CreateTrafficMirrorFilterRuleRequestFilterSensitiveLog, CreateTrafficMirrorFilterRuleResultFilterSensitiveLog, } from "../models/models_1";
4
+ import { CreateTrafficMirrorFilterRuleRequestFilterSensitiveLog, CreateTrafficMirrorFilterRuleResultFilterSensitiveLog, } from "../models/models_2";
5
5
  import { deserializeAws_ec2CreateTrafficMirrorFilterRuleCommand, serializeAws_ec2CreateTrafficMirrorFilterRuleCommand, } from "../protocols/Aws_ec2";
6
6
  var CreateTrafficMirrorFilterRuleCommand = (function (_super) {
7
7
  __extends(CreateTrafficMirrorFilterRuleCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeAddressesAttributeRequestFilterSensitiveLog, DescribeAddressesAttributeResultFilterSensitiveLog, } from "../models/models_2";
4
+ import { DescribeAddressesAttributeRequestFilterSensitiveLog, DescribeAddressesAttributeResultFilterSensitiveLog, } from "../models/models_3";
5
5
  import { deserializeAws_ec2DescribeAddressesAttributeCommand, serializeAws_ec2DescribeAddressesAttributeCommand, } from "../protocols/Aws_ec2";
6
6
  var DescribeAddressesAttributeCommand = (function (_super) {
7
7
  __extends(DescribeAddressesAttributeCommand, _super);
@@ -1,8 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeAggregateIdFormatRequestFilterSensitiveLog, } from "../models/models_2";
5
- import { DescribeAggregateIdFormatResultFilterSensitiveLog } from "../models/models_3";
4
+ import { DescribeAggregateIdFormatRequestFilterSensitiveLog, DescribeAggregateIdFormatResultFilterSensitiveLog, } from "../models/models_3";
6
5
  import { deserializeAws_ec2DescribeAggregateIdFormatCommand, serializeAws_ec2DescribeAggregateIdFormatCommand, } from "../protocols/Aws_ec2";
7
6
  var DescribeAggregateIdFormatCommand = (function (_super) {
8
7
  __extends(DescribeAggregateIdFormatCommand, _super);
@@ -1,7 +1,8 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeLocalGatewayVirtualInterfaceGroupsRequestFilterSensitiveLog, DescribeLocalGatewayVirtualInterfaceGroupsResultFilterSensitiveLog, } from "../models/models_3";
4
+ import { DescribeLocalGatewayVirtualInterfaceGroupsRequestFilterSensitiveLog, } from "../models/models_3";
5
+ import { DescribeLocalGatewayVirtualInterfaceGroupsResultFilterSensitiveLog, } from "../models/models_4";
5
6
  import { deserializeAws_ec2DescribeLocalGatewayVirtualInterfaceGroupsCommand, serializeAws_ec2DescribeLocalGatewayVirtualInterfaceGroupsCommand, } from "../protocols/Aws_ec2";
6
7
  var DescribeLocalGatewayVirtualInterfaceGroupsCommand = (function (_super) {
7
8
  __extends(DescribeLocalGatewayVirtualInterfaceGroupsCommand, _super);
@@ -1,8 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeLocalGatewayVirtualInterfacesRequestFilterSensitiveLog, } from "../models/models_3";
5
- import { DescribeLocalGatewayVirtualInterfacesResultFilterSensitiveLog, } from "../models/models_4";
4
+ import { DescribeLocalGatewayVirtualInterfacesRequestFilterSensitiveLog, DescribeLocalGatewayVirtualInterfacesResultFilterSensitiveLog, } from "../models/models_4";
6
5
  import { deserializeAws_ec2DescribeLocalGatewayVirtualInterfacesCommand, serializeAws_ec2DescribeLocalGatewayVirtualInterfacesCommand, } from "../protocols/Aws_ec2";
7
6
  var DescribeLocalGatewayVirtualInterfacesCommand = (function (_super) {
8
7
  __extends(DescribeLocalGatewayVirtualInterfacesCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { MonitorInstancesRequestFilterSensitiveLog, MonitorInstancesResultFilterSensitiveLog, } from "../models/models_5";
4
+ import { MonitorInstancesRequestFilterSensitiveLog, MonitorInstancesResultFilterSensitiveLog, } from "../models/models_6";
5
5
  import { deserializeAws_ec2MonitorInstancesCommand, serializeAws_ec2MonitorInstancesCommand, } from "../protocols/Aws_ec2";
6
6
  var MonitorInstancesCommand = (function (_super) {
7
7
  __extends(MonitorInstancesCommand, _super);