@aws-sdk/client-ec2 3.87.0 → 3.90.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 (83) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist-cjs/EC2.js +15 -0
  3. package/dist-cjs/commands/DescribeClientVpnRoutesCommand.js +2 -1
  4. package/dist-cjs/commands/DescribeClientVpnTargetNetworksCommand.js +3 -3
  5. package/dist-cjs/commands/DescribePublicIpv4PoolsCommand.js +3 -3
  6. package/dist-cjs/commands/DescribeRegionsCommand.js +1 -2
  7. package/dist-cjs/commands/GetEbsEncryptionByDefaultCommand.js +3 -3
  8. package/dist-cjs/commands/GetFlowLogsIntegrationTemplateCommand.js +1 -2
  9. package/dist-cjs/commands/GetInstanceUefiDataCommand.js +36 -0
  10. package/dist-cjs/commands/ReplaceTransitGatewayRouteCommand.js +2 -1
  11. package/dist-cjs/commands/ReportInstanceStatusCommand.js +2 -2
  12. package/dist-cjs/commands/RequestSpotFleetCommand.js +3 -3
  13. package/dist-cjs/commands/RequestSpotInstancesCommand.js +1 -2
  14. package/dist-cjs/commands/index.js +1 -0
  15. package/dist-cjs/models/models_2.js +36 -36
  16. package/dist-cjs/models/models_3.js +40 -42
  17. package/dist-cjs/models/models_4.js +42 -43
  18. package/dist-cjs/models/models_5.js +55 -42
  19. package/dist-cjs/models/models_6.js +38 -2
  20. package/dist-cjs/protocols/Aws_ec2.js +212 -21
  21. package/dist-es/EC2.js +15 -0
  22. package/dist-es/commands/DescribeClientVpnRoutesCommand.js +2 -1
  23. package/dist-es/commands/DescribeClientVpnTargetNetworksCommand.js +1 -1
  24. package/dist-es/commands/DescribePublicIpv4PoolsCommand.js +1 -1
  25. package/dist-es/commands/DescribeRegionsCommand.js +1 -2
  26. package/dist-es/commands/GetEbsEncryptionByDefaultCommand.js +1 -1
  27. package/dist-es/commands/GetFlowLogsIntegrationTemplateCommand.js +1 -2
  28. package/dist-es/commands/GetInstanceUefiDataCommand.js +39 -0
  29. package/dist-es/commands/ReplaceTransitGatewayRouteCommand.js +2 -1
  30. package/dist-es/commands/ReportInstanceStatusCommand.js +1 -1
  31. package/dist-es/commands/RequestSpotFleetCommand.js +1 -1
  32. package/dist-es/commands/RequestSpotInstancesCommand.js +1 -2
  33. package/dist-es/commands/index.js +1 -0
  34. package/dist-es/models/models_2.js +26 -20
  35. package/dist-es/models/models_3.js +24 -24
  36. package/dist-es/models/models_4.js +24 -27
  37. package/dist-es/models/models_5.js +35 -24
  38. package/dist-es/models/models_6.js +24 -0
  39. package/dist-es/protocols/Aws_ec2.js +213 -8
  40. package/dist-types/EC2.d.ts +17 -1
  41. package/dist-types/EC2Client.d.ts +3 -2
  42. package/dist-types/commands/CreateTrafficMirrorTargetCommand.d.ts +1 -1
  43. package/dist-types/commands/DescribeClientVpnRoutesCommand.d.ts +2 -1
  44. package/dist-types/commands/DescribeClientVpnTargetNetworksCommand.d.ts +1 -1
  45. package/dist-types/commands/DescribePublicIpv4PoolsCommand.d.ts +1 -1
  46. package/dist-types/commands/DescribeRegionsCommand.d.ts +1 -2
  47. package/dist-types/commands/GetEbsEncryptionByDefaultCommand.d.ts +1 -1
  48. package/dist-types/commands/GetFlowLogsIntegrationTemplateCommand.d.ts +1 -2
  49. package/dist-types/commands/GetInstanceUefiDataCommand.d.ts +44 -0
  50. package/dist-types/commands/ReplaceTransitGatewayRouteCommand.d.ts +2 -1
  51. package/dist-types/commands/ReportInstanceStatusCommand.d.ts +1 -1
  52. package/dist-types/commands/RequestSpotFleetCommand.d.ts +1 -1
  53. package/dist-types/commands/RequestSpotInstancesCommand.d.ts +1 -2
  54. package/dist-types/commands/index.d.ts +1 -0
  55. package/dist-types/models/models_1.d.ts +13 -5
  56. package/dist-types/models/models_2.d.ts +78 -164
  57. package/dist-types/models/models_3.d.ts +184 -187
  58. package/dist-types/models/models_4.d.ts +211 -102
  59. package/dist-types/models/models_5.d.ts +167 -328
  60. package/dist-types/models/models_6.d.ts +325 -1
  61. package/dist-types/protocols/Aws_ec2.d.ts +3 -0
  62. package/dist-types/ts3.4/EC2.d.ts +5 -0
  63. package/dist-types/ts3.4/EC2Client.d.ts +3 -2
  64. package/dist-types/ts3.4/commands/DescribeClientVpnRoutesCommand.d.ts +2 -1
  65. package/dist-types/ts3.4/commands/DescribeClientVpnTargetNetworksCommand.d.ts +1 -1
  66. package/dist-types/ts3.4/commands/DescribePublicIpv4PoolsCommand.d.ts +1 -1
  67. package/dist-types/ts3.4/commands/DescribeRegionsCommand.d.ts +1 -2
  68. package/dist-types/ts3.4/commands/GetEbsEncryptionByDefaultCommand.d.ts +1 -1
  69. package/dist-types/ts3.4/commands/GetFlowLogsIntegrationTemplateCommand.d.ts +1 -2
  70. package/dist-types/ts3.4/commands/GetInstanceUefiDataCommand.d.ts +17 -0
  71. package/dist-types/ts3.4/commands/ReplaceTransitGatewayRouteCommand.d.ts +2 -1
  72. package/dist-types/ts3.4/commands/ReportInstanceStatusCommand.d.ts +1 -1
  73. package/dist-types/ts3.4/commands/RequestSpotFleetCommand.d.ts +1 -1
  74. package/dist-types/ts3.4/commands/RequestSpotInstancesCommand.d.ts +1 -2
  75. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  76. package/dist-types/ts3.4/models/models_1.d.ts +7 -3
  77. package/dist-types/ts3.4/models/models_2.d.ts +46 -79
  78. package/dist-types/ts3.4/models/models_3.d.ts +91 -89
  79. package/dist-types/ts3.4/models/models_4.d.ts +93 -62
  80. package/dist-types/ts3.4/models/models_5.d.ts +96 -126
  81. package/dist-types/ts3.4/models/models_6.d.ts +123 -1
  82. package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +3 -0
  83. package/package.json +1 -1
@@ -3735,6 +3735,16 @@ export var serializeAws_ec2GetInstanceTypesFromInstanceRequirementsCommand = fun
3735
3735
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
3736
3736
  });
3737
3737
  }); };
3738
+ export var serializeAws_ec2GetInstanceUefiDataCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
3739
+ var headers, body;
3740
+ return __generator(this, function (_a) {
3741
+ headers = {
3742
+ "content-type": "application/x-www-form-urlencoded",
3743
+ };
3744
+ body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_ec2GetInstanceUefiDataRequest(input, context)), { Action: "GetInstanceUefiData", Version: "2016-11-15" }));
3745
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
3746
+ });
3747
+ }); };
3738
3748
  export var serializeAws_ec2GetIpamAddressHistoryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
3739
3749
  var headers, body;
3740
3750
  return __generator(this, function (_a) {
@@ -22010,6 +22020,51 @@ var deserializeAws_ec2GetInstanceTypesFromInstanceRequirementsCommandError = fun
22010
22020
  }
22011
22021
  });
22012
22022
  }); };
22023
+ export var deserializeAws_ec2GetInstanceUefiDataCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
22024
+ var data, contents, response;
22025
+ return __generator(this, function (_a) {
22026
+ switch (_a.label) {
22027
+ case 0:
22028
+ if (output.statusCode >= 300) {
22029
+ return [2, deserializeAws_ec2GetInstanceUefiDataCommandError(output, context)];
22030
+ }
22031
+ return [4, parseBody(output.body, context)];
22032
+ case 1:
22033
+ data = _a.sent();
22034
+ contents = {};
22035
+ contents = deserializeAws_ec2GetInstanceUefiDataResult(data, context);
22036
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
22037
+ return [2, Promise.resolve(response)];
22038
+ }
22039
+ });
22040
+ }); };
22041
+ var deserializeAws_ec2GetInstanceUefiDataCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
22042
+ var parsedOutput, _a, response, errorCode, parsedBody;
22043
+ var _b;
22044
+ return __generator(this, function (_c) {
22045
+ switch (_c.label) {
22046
+ case 0:
22047
+ _a = [__assign({}, output)];
22048
+ _b = {};
22049
+ return [4, parseBody(output.body, context)];
22050
+ case 1:
22051
+ parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
22052
+ errorCode = "UnknownError";
22053
+ errorCode = loadEc2ErrorCode(output, parsedOutput.body);
22054
+ switch (errorCode) {
22055
+ default:
22056
+ parsedBody = parsedOutput.body;
22057
+ response = new __BaseException({
22058
+ name: parsedBody.Errors.Error.code || parsedBody.Errors.Error.Code || errorCode,
22059
+ $fault: "client",
22060
+ $metadata: deserializeMetadata(output),
22061
+ });
22062
+ throw __decorateServiceException(response, parsedBody.Errors.Error);
22063
+ }
22064
+ return [2];
22065
+ }
22066
+ });
22067
+ }); };
22013
22068
  export var deserializeAws_ec2GetIpamAddressHistoryCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
22014
22069
  var data, contents, response;
22015
22070
  return __generator(this, function (_a) {
@@ -32143,14 +32198,6 @@ var serializeAws_ec2CreateStoreImageTaskRequest = function (input, context) {
32143
32198
  };
32144
32199
  var serializeAws_ec2CreateSubnetCidrReservationRequest = function (input, context) {
32145
32200
  var entries = {};
32146
- if (input.TagSpecifications !== undefined && input.TagSpecifications !== null) {
32147
- var memberEntries = serializeAws_ec2TagSpecificationList(input.TagSpecifications, context);
32148
- Object.entries(memberEntries).forEach(function (_a) {
32149
- var _b = __read(_a, 2), key = _b[0], value = _b[1];
32150
- var loc = "TagSpecification.".concat(key.substring(key.indexOf(".") + 1));
32151
- entries[loc] = value;
32152
- });
32153
- }
32154
32201
  if (input.SubnetId !== undefined && input.SubnetId !== null) {
32155
32202
  entries["SubnetId"] = input.SubnetId;
32156
32203
  }
@@ -32166,6 +32213,14 @@ var serializeAws_ec2CreateSubnetCidrReservationRequest = function (input, contex
32166
32213
  if (input.DryRun !== undefined && input.DryRun !== null) {
32167
32214
  entries["DryRun"] = input.DryRun;
32168
32215
  }
32216
+ if (input.TagSpecifications !== undefined && input.TagSpecifications !== null) {
32217
+ var memberEntries = serializeAws_ec2TagSpecificationList(input.TagSpecifications, context);
32218
+ Object.entries(memberEntries).forEach(function (_a) {
32219
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
32220
+ var loc = "TagSpecification.".concat(key.substring(key.indexOf(".") + 1));
32221
+ entries[loc] = value;
32222
+ });
32223
+ }
32169
32224
  return entries;
32170
32225
  };
32171
32226
  var serializeAws_ec2CreateSubnetRequest = function (input, context) {
@@ -32374,6 +32429,9 @@ var serializeAws_ec2CreateTrafficMirrorTargetRequest = function (input, context)
32374
32429
  if (input.ClientToken !== undefined && input.ClientToken !== null) {
32375
32430
  entries["ClientToken"] = input.ClientToken;
32376
32431
  }
32432
+ if (input.GatewayLoadBalancerEndpointId !== undefined && input.GatewayLoadBalancerEndpointId !== null) {
32433
+ entries["GatewayLoadBalancerEndpointId"] = input.GatewayLoadBalancerEndpointId;
32434
+ }
32377
32435
  return entries;
32378
32436
  };
32379
32437
  var serializeAws_ec2CreateTransitGatewayConnectPeerRequest = function (input, context) {
@@ -32823,6 +32881,17 @@ var serializeAws_ec2CreateVpcEndpointRequest = function (input, context) {
32823
32881
  entries[loc] = value;
32824
32882
  });
32825
32883
  }
32884
+ if (input.IpAddressType !== undefined && input.IpAddressType !== null) {
32885
+ entries["IpAddressType"] = input.IpAddressType;
32886
+ }
32887
+ if (input.DnsOptions !== undefined && input.DnsOptions !== null) {
32888
+ var memberEntries = serializeAws_ec2DnsOptionsSpecification(input.DnsOptions, context);
32889
+ Object.entries(memberEntries).forEach(function (_a) {
32890
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
32891
+ var loc = "DnsOptions.".concat(key);
32892
+ entries[loc] = value;
32893
+ });
32894
+ }
32826
32895
  if (input.ClientToken !== undefined && input.ClientToken !== null) {
32827
32896
  entries["ClientToken"] = input.ClientToken;
32828
32897
  }
@@ -32866,6 +32935,14 @@ var serializeAws_ec2CreateVpcEndpointServiceConfigurationRequest = function (inp
32866
32935
  entries[loc] = value;
32867
32936
  });
32868
32937
  }
32938
+ if (input.SupportedIpAddressTypes !== undefined && input.SupportedIpAddressTypes !== null) {
32939
+ var memberEntries = serializeAws_ec2ValueStringList(input.SupportedIpAddressTypes, context);
32940
+ Object.entries(memberEntries).forEach(function (_a) {
32941
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
32942
+ var loc = "SupportedIpAddressType.".concat(key.substring(key.indexOf(".") + 1));
32943
+ entries[loc] = value;
32944
+ });
32945
+ }
32869
32946
  if (input.ClientToken !== undefined && input.ClientToken !== null) {
32870
32947
  entries["ClientToken"] = input.ClientToken;
32871
32948
  }
@@ -37905,6 +37982,13 @@ var serializeAws_ec2DiskImageList = function (input, context) {
37905
37982
  }
37906
37983
  return entries;
37907
37984
  };
37985
+ var serializeAws_ec2DnsOptionsSpecification = function (input, context) {
37986
+ var entries = {};
37987
+ if (input.DnsRecordIpType !== undefined && input.DnsRecordIpType !== null) {
37988
+ entries["DnsRecordIpType"] = input.DnsRecordIpType;
37989
+ }
37990
+ return entries;
37991
+ };
37908
37992
  var serializeAws_ec2DnsServersOptionsModifyStructure = function (input, context) {
37909
37993
  var entries = {};
37910
37994
  if (input.CustomDnsServers !== undefined && input.CustomDnsServers !== null) {
@@ -39009,6 +39093,16 @@ var serializeAws_ec2GetInstanceTypesFromInstanceRequirementsRequest = function (
39009
39093
  }
39010
39094
  return entries;
39011
39095
  };
39096
+ var serializeAws_ec2GetInstanceUefiDataRequest = function (input, context) {
39097
+ var entries = {};
39098
+ if (input.InstanceId !== undefined && input.InstanceId !== null) {
39099
+ entries["InstanceId"] = input.InstanceId;
39100
+ }
39101
+ if (input.DryRun !== undefined && input.DryRun !== null) {
39102
+ entries["DryRun"] = input.DryRun;
39103
+ }
39104
+ return entries;
39105
+ };
39012
39106
  var serializeAws_ec2GetIpamAddressHistoryRequest = function (input, context) {
39013
39107
  var entries = {};
39014
39108
  if (input.DryRun !== undefined && input.DryRun !== null) {
@@ -43915,6 +44009,17 @@ var serializeAws_ec2ModifyVpcEndpointRequest = function (input, context) {
43915
44009
  entries[loc] = value;
43916
44010
  });
43917
44011
  }
44012
+ if (input.IpAddressType !== undefined && input.IpAddressType !== null) {
44013
+ entries["IpAddressType"] = input.IpAddressType;
44014
+ }
44015
+ if (input.DnsOptions !== undefined && input.DnsOptions !== null) {
44016
+ var memberEntries = serializeAws_ec2DnsOptionsSpecification(input.DnsOptions, context);
44017
+ Object.entries(memberEntries).forEach(function (_a) {
44018
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
44019
+ var loc = "DnsOptions.".concat(key);
44020
+ entries[loc] = value;
44021
+ });
44022
+ }
43918
44023
  if (input.PrivateDnsEnabled !== undefined && input.PrivateDnsEnabled !== null) {
43919
44024
  entries["PrivateDnsEnabled"] = input.PrivateDnsEnabled;
43920
44025
  }
@@ -43969,6 +44074,22 @@ var serializeAws_ec2ModifyVpcEndpointServiceConfigurationRequest = function (inp
43969
44074
  entries[loc] = value;
43970
44075
  });
43971
44076
  }
44077
+ if (input.AddSupportedIpAddressTypes !== undefined && input.AddSupportedIpAddressTypes !== null) {
44078
+ var memberEntries = serializeAws_ec2ValueStringList(input.AddSupportedIpAddressTypes, context);
44079
+ Object.entries(memberEntries).forEach(function (_a) {
44080
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
44081
+ var loc = "AddSupportedIpAddressType.".concat(key.substring(key.indexOf(".") + 1));
44082
+ entries[loc] = value;
44083
+ });
44084
+ }
44085
+ if (input.RemoveSupportedIpAddressTypes !== undefined && input.RemoveSupportedIpAddressTypes !== null) {
44086
+ var memberEntries = serializeAws_ec2ValueStringList(input.RemoveSupportedIpAddressTypes, context);
44087
+ Object.entries(memberEntries).forEach(function (_a) {
44088
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
44089
+ var loc = "RemoveSupportedIpAddressType.".concat(key.substring(key.indexOf(".") + 1));
44090
+ entries[loc] = value;
44091
+ });
44092
+ }
43972
44093
  return entries;
43973
44094
  };
43974
44095
  var serializeAws_ec2ModifyVpcEndpointServicePayerResponsibilityRequest = function (input, context) {
@@ -45655,6 +45776,12 @@ var serializeAws_ec2RegisterImageRequest = function (input, context) {
45655
45776
  if (input.BootMode !== undefined && input.BootMode !== null) {
45656
45777
  entries["BootMode"] = input.BootMode;
45657
45778
  }
45779
+ if (input.TpmSupport !== undefined && input.TpmSupport !== null) {
45780
+ entries["TpmSupport"] = input.TpmSupport;
45781
+ }
45782
+ if (input.UefiData !== undefined && input.UefiData !== null) {
45783
+ entries["UefiData"] = input.UefiData;
45784
+ }
45658
45785
  return entries;
45659
45786
  };
45660
45787
  var serializeAws_ec2RegisterInstanceEventNotificationAttributesRequest = function (input, context) {
@@ -57178,6 +57305,15 @@ var deserializeAws_ec2DnsEntrySet = function (output, context) {
57178
57305
  return deserializeAws_ec2DnsEntry(entry, context);
57179
57306
  });
57180
57307
  };
57308
+ var deserializeAws_ec2DnsOptions = function (output, context) {
57309
+ var contents = {
57310
+ DnsRecordIpType: undefined,
57311
+ };
57312
+ if (output["dnsRecordIpType"] !== undefined) {
57313
+ contents.DnsRecordIpType = __expectString(output["dnsRecordIpType"]);
57314
+ }
57315
+ return contents;
57316
+ };
57181
57317
  var deserializeAws_ec2EbsBlockDevice = function (output, context) {
57182
57318
  var contents = {
57183
57319
  DeleteOnTermination: undefined,
@@ -59044,6 +59180,19 @@ var deserializeAws_ec2GetInstanceTypesFromInstanceRequirementsResult = function
59044
59180
  }
59045
59181
  return contents;
59046
59182
  };
59183
+ var deserializeAws_ec2GetInstanceUefiDataResult = function (output, context) {
59184
+ var contents = {
59185
+ InstanceId: undefined,
59186
+ UefiData: undefined,
59187
+ };
59188
+ if (output["instanceId"] !== undefined) {
59189
+ contents.InstanceId = __expectString(output["instanceId"]);
59190
+ }
59191
+ if (output["uefiData"] !== undefined) {
59192
+ contents.UefiData = __expectString(output["uefiData"]);
59193
+ }
59194
+ return contents;
59195
+ };
59047
59196
  var deserializeAws_ec2GetIpamAddressHistoryResult = function (output, context) {
59048
59197
  var contents = {
59049
59198
  HistoryRecords: undefined,
@@ -59983,6 +60132,7 @@ var deserializeAws_ec2Image = function (output, context) {
59983
60132
  Tags: undefined,
59984
60133
  VirtualizationType: undefined,
59985
60134
  BootMode: undefined,
60135
+ TpmSupport: undefined,
59986
60136
  DeprecationTime: undefined,
59987
60137
  };
59988
60138
  if (output["architecture"] !== undefined) {
@@ -60075,6 +60225,9 @@ var deserializeAws_ec2Image = function (output, context) {
60075
60225
  if (output["bootMode"] !== undefined) {
60076
60226
  contents.BootMode = __expectString(output["bootMode"]);
60077
60227
  }
60228
+ if (output["tpmSupport"] !== undefined) {
60229
+ contents.TpmSupport = __expectString(output["tpmSupport"]);
60230
+ }
60078
60231
  if (output["deprecationTime"] !== undefined) {
60079
60232
  contents.DeprecationTime = __expectString(output["deprecationTime"]);
60080
60233
  }
@@ -60091,6 +60244,8 @@ var deserializeAws_ec2ImageAttribute = function (output, context) {
60091
60244
  RamdiskId: undefined,
60092
60245
  SriovNetSupport: undefined,
60093
60246
  BootMode: undefined,
60247
+ TpmSupport: undefined,
60248
+ UefiData: undefined,
60094
60249
  LastLaunchedTime: undefined,
60095
60250
  };
60096
60251
  if (output.blockDeviceMapping === "") {
@@ -60129,6 +60284,12 @@ var deserializeAws_ec2ImageAttribute = function (output, context) {
60129
60284
  if (output["bootMode"] !== undefined) {
60130
60285
  contents.BootMode = deserializeAws_ec2AttributeValue(output["bootMode"], context);
60131
60286
  }
60287
+ if (output["tpmSupport"] !== undefined) {
60288
+ contents.TpmSupport = deserializeAws_ec2AttributeValue(output["tpmSupport"], context);
60289
+ }
60290
+ if (output["uefiData"] !== undefined) {
60291
+ contents.UefiData = deserializeAws_ec2AttributeValue(output["uefiData"], context);
60292
+ }
60132
60293
  if (output["lastLaunchedTime"] !== undefined) {
60133
60294
  contents.LastLaunchedTime = deserializeAws_ec2AttributeValue(output["lastLaunchedTime"], context);
60134
60295
  }
@@ -60674,6 +60835,7 @@ var deserializeAws_ec2Instance = function (output, context) {
60674
60835
  UsageOperationUpdateTime: undefined,
60675
60836
  PrivateDnsNameOptions: undefined,
60676
60837
  Ipv6Address: undefined,
60838
+ TpmSupport: undefined,
60677
60839
  MaintenanceOptions: undefined,
60678
60840
  };
60679
60841
  if (output["amiLaunchIndex"] !== undefined) {
@@ -60863,6 +61025,9 @@ var deserializeAws_ec2Instance = function (output, context) {
60863
61025
  if (output["ipv6Address"] !== undefined) {
60864
61026
  contents.Ipv6Address = __expectString(output["ipv6Address"]);
60865
61027
  }
61028
+ if (output["tpmSupport"] !== undefined) {
61029
+ contents.TpmSupport = __expectString(output["tpmSupport"]);
61030
+ }
60866
61031
  if (output["maintenanceOptions"] !== undefined) {
60867
61032
  contents.MaintenanceOptions = deserializeAws_ec2InstanceMaintenanceOptions(output["maintenanceOptions"], context);
60868
61033
  }
@@ -68696,6 +68861,7 @@ var deserializeAws_ec2ServiceConfiguration = function (output, context) {
68696
68861
  ManagesVpcEndpoints: undefined,
68697
68862
  NetworkLoadBalancerArns: undefined,
68698
68863
  GatewayLoadBalancerArns: undefined,
68864
+ SupportedIpAddressTypes: undefined,
68699
68865
  BaseEndpointDnsNames: undefined,
68700
68866
  PrivateDnsName: undefined,
68701
68867
  PrivateDnsNameConfiguration: undefined,
@@ -68741,6 +68907,12 @@ var deserializeAws_ec2ServiceConfiguration = function (output, context) {
68741
68907
  if (output["gatewayLoadBalancerArnSet"] !== undefined && output["gatewayLoadBalancerArnSet"]["item"] !== undefined) {
68742
68908
  contents.GatewayLoadBalancerArns = deserializeAws_ec2ValueStringList(__getArrayIfSingleItem(output["gatewayLoadBalancerArnSet"]["item"]), context);
68743
68909
  }
68910
+ if (output.supportedIpAddressTypeSet === "") {
68911
+ contents.SupportedIpAddressTypes = [];
68912
+ }
68913
+ if (output["supportedIpAddressTypeSet"] !== undefined && output["supportedIpAddressTypeSet"]["item"] !== undefined) {
68914
+ contents.SupportedIpAddressTypes = deserializeAws_ec2SupportedIpAddressTypes(__getArrayIfSingleItem(output["supportedIpAddressTypeSet"]["item"]), context);
68915
+ }
68744
68916
  if (output.baseEndpointDnsNameSet === "") {
68745
68917
  contents.BaseEndpointDnsNames = [];
68746
68918
  }
@@ -68790,6 +68962,7 @@ var deserializeAws_ec2ServiceDetail = function (output, context) {
68790
68962
  PayerResponsibility: undefined,
68791
68963
  Tags: undefined,
68792
68964
  PrivateDnsNameVerificationState: undefined,
68965
+ SupportedIpAddressTypes: undefined,
68793
68966
  };
68794
68967
  if (output["serviceName"] !== undefined) {
68795
68968
  contents.ServiceName = __expectString(output["serviceName"]);
@@ -68848,6 +69021,12 @@ var deserializeAws_ec2ServiceDetail = function (output, context) {
68848
69021
  if (output["privateDnsNameVerificationState"] !== undefined) {
68849
69022
  contents.PrivateDnsNameVerificationState = __expectString(output["privateDnsNameVerificationState"]);
68850
69023
  }
69024
+ if (output.supportedIpAddressTypeSet === "") {
69025
+ contents.SupportedIpAddressTypes = [];
69026
+ }
69027
+ if (output["supportedIpAddressTypeSet"] !== undefined && output["supportedIpAddressTypeSet"]["item"] !== undefined) {
69028
+ contents.SupportedIpAddressTypes = deserializeAws_ec2SupportedIpAddressTypes(__getArrayIfSingleItem(output["supportedIpAddressTypeSet"]["item"]), context);
69029
+ }
68851
69030
  return contents;
68852
69031
  };
68853
69032
  var deserializeAws_ec2ServiceDetailSet = function (output, context) {
@@ -70279,6 +70458,16 @@ var deserializeAws_ec2SuccessfulQueuedPurchaseDeletionSet = function (output, co
70279
70458
  return deserializeAws_ec2SuccessfulQueuedPurchaseDeletion(entry, context);
70280
70459
  });
70281
70460
  };
70461
+ var deserializeAws_ec2SupportedIpAddressTypes = function (output, context) {
70462
+ return (output || [])
70463
+ .filter(function (e) { return e != null; })
70464
+ .map(function (entry) {
70465
+ if (entry === null) {
70466
+ return null;
70467
+ }
70468
+ return __expectString(entry);
70469
+ });
70470
+ };
70282
70471
  var deserializeAws_ec2Tag = function (output, context) {
70283
70472
  var contents = {
70284
70473
  Key: undefined,
@@ -70794,6 +70983,7 @@ var deserializeAws_ec2TrafficMirrorTarget = function (output, context) {
70794
70983
  Description: undefined,
70795
70984
  OwnerId: undefined,
70796
70985
  Tags: undefined,
70986
+ GatewayLoadBalancerEndpointId: undefined,
70797
70987
  };
70798
70988
  if (output["trafficMirrorTargetId"] !== undefined) {
70799
70989
  contents.TrafficMirrorTargetId = __expectString(output["trafficMirrorTargetId"]);
@@ -70819,6 +71009,9 @@ var deserializeAws_ec2TrafficMirrorTarget = function (output, context) {
70819
71009
  if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) {
70820
71010
  contents.Tags = deserializeAws_ec2TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context);
70821
71011
  }
71012
+ if (output["gatewayLoadBalancerEndpointId"] !== undefined) {
71013
+ contents.GatewayLoadBalancerEndpointId = __expectString(output["gatewayLoadBalancerEndpointId"]);
71014
+ }
70822
71015
  return contents;
70823
71016
  };
70824
71017
  var deserializeAws_ec2TrafficMirrorTargetSet = function (output, context) {
@@ -72942,6 +73135,8 @@ var deserializeAws_ec2VpcEndpoint = function (output, context) {
72942
73135
  RouteTableIds: undefined,
72943
73136
  SubnetIds: undefined,
72944
73137
  Groups: undefined,
73138
+ IpAddressType: undefined,
73139
+ DnsOptions: undefined,
72945
73140
  PrivateDnsEnabled: undefined,
72946
73141
  RequesterManaged: undefined,
72947
73142
  NetworkInterfaceIds: undefined,
@@ -72987,6 +73182,12 @@ var deserializeAws_ec2VpcEndpoint = function (output, context) {
72987
73182
  if (output["groupSet"] !== undefined && output["groupSet"]["item"] !== undefined) {
72988
73183
  contents.Groups = deserializeAws_ec2GroupIdentifierSet(__getArrayIfSingleItem(output["groupSet"]["item"]), context);
72989
73184
  }
73185
+ if (output["ipAddressType"] !== undefined) {
73186
+ contents.IpAddressType = __expectString(output["ipAddressType"]);
73187
+ }
73188
+ if (output["dnsOptions"] !== undefined) {
73189
+ contents.DnsOptions = deserializeAws_ec2DnsOptions(output["dnsOptions"], context);
73190
+ }
72990
73191
  if (output["privateDnsEnabled"] !== undefined) {
72991
73192
  contents.PrivateDnsEnabled = __parseBoolean(output["privateDnsEnabled"]);
72992
73193
  }
@@ -73032,6 +73233,7 @@ var deserializeAws_ec2VpcEndpointConnection = function (output, context) {
73032
73233
  DnsEntries: undefined,
73033
73234
  NetworkLoadBalancerArns: undefined,
73034
73235
  GatewayLoadBalancerArns: undefined,
73236
+ IpAddressType: undefined,
73035
73237
  };
73036
73238
  if (output["serviceId"] !== undefined) {
73037
73239
  contents.ServiceId = __expectString(output["serviceId"]);
@@ -73066,6 +73268,9 @@ var deserializeAws_ec2VpcEndpointConnection = function (output, context) {
73066
73268
  if (output["gatewayLoadBalancerArnSet"] !== undefined && output["gatewayLoadBalancerArnSet"]["item"] !== undefined) {
73067
73269
  contents.GatewayLoadBalancerArns = deserializeAws_ec2ValueStringList(__getArrayIfSingleItem(output["gatewayLoadBalancerArnSet"]["item"]), context);
73068
73270
  }
73271
+ if (output["ipAddressType"] !== undefined) {
73272
+ contents.IpAddressType = __expectString(output["ipAddressType"]);
73273
+ }
73069
73274
  return contents;
73070
73275
  };
73071
73276
  var deserializeAws_ec2VpcEndpointConnectionSet = function (output, context) {
@@ -372,6 +372,7 @@ import { GetFlowLogsIntegrationTemplateCommandInput, GetFlowLogsIntegrationTempl
372
372
  import { GetGroupsForCapacityReservationCommandInput, GetGroupsForCapacityReservationCommandOutput } from "./commands/GetGroupsForCapacityReservationCommand";
373
373
  import { GetHostReservationPurchasePreviewCommandInput, GetHostReservationPurchasePreviewCommandOutput } from "./commands/GetHostReservationPurchasePreviewCommand";
374
374
  import { GetInstanceTypesFromInstanceRequirementsCommandInput, GetInstanceTypesFromInstanceRequirementsCommandOutput } from "./commands/GetInstanceTypesFromInstanceRequirementsCommand";
375
+ import { GetInstanceUefiDataCommandInput, GetInstanceUefiDataCommandOutput } from "./commands/GetInstanceUefiDataCommand";
375
376
  import { GetIpamAddressHistoryCommandInput, GetIpamAddressHistoryCommandOutput } from "./commands/GetIpamAddressHistoryCommand";
376
377
  import { GetIpamPoolAllocationsCommandInput, GetIpamPoolAllocationsCommandOutput } from "./commands/GetIpamPoolAllocationsCommand";
377
378
  import { GetIpamPoolCidrsCommandInput, GetIpamPoolCidrsCommandOutput } from "./commands/GetIpamPoolCidrsCommand";
@@ -1799,7 +1800,7 @@ export declare class EC2 extends EC2Client {
1799
1800
  * <p>A Traffic Mirror target is the destination for mirrored traffic. The Traffic Mirror source and
1800
1801
  * the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in
1801
1802
  * different VPCs connected via VPC peering or a transit gateway.</p>
1802
- * <p>A Traffic Mirror target can be a network interface, or a Network Load Balancer.</p>
1803
+ * <p>A Traffic Mirror target can be a network interface, a Network Load Balancer, or a Gateway Load Balancer endpoint.</p>
1803
1804
  * <p>To use the target in a Traffic Mirror session, use <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTrafficMirrorSession.htm">CreateTrafficMirrorSession</a>.</p>
1804
1805
  */
1805
1806
  createTrafficMirrorTarget(args: CreateTrafficMirrorTargetCommandInput, options?: __HttpHandlerOptions): Promise<CreateTrafficMirrorTargetCommandOutput>;
@@ -4343,6 +4344,21 @@ export declare class EC2 extends EC2Client {
4343
4344
  getInstanceTypesFromInstanceRequirements(args: GetInstanceTypesFromInstanceRequirementsCommandInput, options?: __HttpHandlerOptions): Promise<GetInstanceTypesFromInstanceRequirementsCommandOutput>;
4344
4345
  getInstanceTypesFromInstanceRequirements(args: GetInstanceTypesFromInstanceRequirementsCommandInput, cb: (err: any, data?: GetInstanceTypesFromInstanceRequirementsCommandOutput) => void): void;
4345
4346
  getInstanceTypesFromInstanceRequirements(args: GetInstanceTypesFromInstanceRequirementsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetInstanceTypesFromInstanceRequirementsCommandOutput) => void): void;
4347
+ /**
4348
+ * <p>A binary representation of the UEFI variable store. Only non-volatile variables are
4349
+ * stored. This is a base64 encoded and zlib compressed binary value that must be properly
4350
+ * encoded.</p>
4351
+ * <p>When you use <a href="https://docs.aws.amazon.com/cli/latest/reference/ec2/register-image.html">register-image</a>
4352
+ * to create an AMI, you can create an exact copy of your variable store by passing the UEFI data in the <code>UefiData</code>
4353
+ * parameter. You can modify the UEFI data by using the <a href="https://github.com/awslabs/python-uefivars">python-uefivars tool</a>
4354
+ * on GitHub. You can use the tool to convert the UEFI data into a human-readable format (JSON), which you can
4355
+ * inspect and modify, and then convert back into the binary format to use with register-image.</p>
4356
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/uefi-secure-boot.html">UEFI Secure Boot</a> in the
4357
+ * <i>Amazon EC2 User Guide</i>.</p>
4358
+ */
4359
+ getInstanceUefiData(args: GetInstanceUefiDataCommandInput, options?: __HttpHandlerOptions): Promise<GetInstanceUefiDataCommandOutput>;
4360
+ getInstanceUefiData(args: GetInstanceUefiDataCommandInput, cb: (err: any, data?: GetInstanceUefiDataCommandOutput) => void): void;
4361
+ getInstanceUefiData(args: GetInstanceUefiDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetInstanceUefiDataCommandOutput) => void): void;
4346
4362
  /**
4347
4363
  * <p>Retrieve historical information about a CIDR within an IPAM scope. For more information, see <a href="/vpc/latest/ipam/view-history-cidr-ipam.html">View the history of IP addresses</a> in the <i>Amazon VPC IPAM User Guide</i>.</p>
4348
4364
  */