@aws-sdk/client-ec2 3.42.0 → 3.43.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 +11 -0
  2. package/dist-cjs/EC2.js +15 -0
  3. package/dist-cjs/commands/CreateVpcEndpointConnectionNotificationCommand.js +2 -1
  4. package/dist-cjs/commands/DescribeHostReservationsCommand.js +2 -1
  5. package/dist-cjs/commands/DescribeHostsCommand.js +1 -2
  6. package/dist-cjs/commands/DescribeStaleSecurityGroupsCommand.js +2 -1
  7. package/dist-cjs/commands/DescribeStoreImageTasksCommand.js +3 -3
  8. package/dist-cjs/commands/DescribeSubnetsCommand.js +1 -2
  9. package/dist-cjs/commands/ModifyInstanceAttributeCommand.js +2 -2
  10. package/dist-cjs/commands/ModifyInstanceCapacityReservationAttributesCommand.js +3 -3
  11. package/dist-cjs/commands/ModifyPrivateDnsNameOptionsCommand.js +36 -0
  12. package/dist-cjs/commands/index.js +1 -0
  13. package/dist-cjs/models/models_0.js +13 -14
  14. package/dist-cjs/models/models_1.js +29 -26
  15. package/dist-cjs/models/models_2.js +27 -31
  16. package/dist-cjs/models/models_3.js +37 -36
  17. package/dist-cjs/models/models_4.js +36 -36
  18. package/dist-cjs/models/models_5.js +53 -5
  19. package/dist-cjs/protocols/Aws_ec2.js +235 -12
  20. package/dist-es/EC2.js +15 -0
  21. package/dist-es/commands/CreateVpcEndpointConnectionNotificationCommand.js +2 -1
  22. package/dist-es/commands/DescribeHostReservationsCommand.js +2 -1
  23. package/dist-es/commands/DescribeHostsCommand.js +1 -2
  24. package/dist-es/commands/DescribeStaleSecurityGroupsCommand.js +2 -1
  25. package/dist-es/commands/DescribeStoreImageTasksCommand.js +1 -1
  26. package/dist-es/commands/DescribeSubnetsCommand.js +1 -2
  27. package/dist-es/commands/ModifyInstanceAttributeCommand.js +1 -1
  28. package/dist-es/commands/ModifyInstanceCapacityReservationAttributesCommand.js +1 -1
  29. package/dist-es/commands/ModifyPrivateDnsNameOptionsCommand.js +39 -0
  30. package/dist-es/commands/index.js +1 -0
  31. package/dist-es/models/models_0.js +9 -8
  32. package/dist-es/models/models_1.js +16 -17
  33. package/dist-es/models/models_2.js +17 -19
  34. package/dist-es/models/models_3.js +23 -20
  35. package/dist-es/models/models_4.js +20 -20
  36. package/dist-es/models/models_5.js +32 -0
  37. package/dist-es/protocols/Aws_ec2.js +229 -0
  38. package/dist-types/EC2.d.ts +20 -12
  39. package/dist-types/EC2Client.d.ts +3 -2
  40. package/dist-types/commands/AuthorizeSecurityGroupEgressCommand.d.ts +1 -1
  41. package/dist-types/commands/CreateVpcEndpointConnectionNotificationCommand.d.ts +2 -1
  42. package/dist-types/commands/DescribeHostReservationsCommand.d.ts +2 -1
  43. package/dist-types/commands/DescribeHostsCommand.d.ts +1 -2
  44. package/dist-types/commands/DescribeInstanceStatusCommand.d.ts +3 -2
  45. package/dist-types/commands/DescribeStaleSecurityGroupsCommand.d.ts +2 -1
  46. package/dist-types/commands/DescribeStoreImageTasksCommand.d.ts +1 -1
  47. package/dist-types/commands/DescribeSubnetsCommand.d.ts +1 -2
  48. package/dist-types/commands/ModifyInstanceAttributeCommand.d.ts +2 -2
  49. package/dist-types/commands/ModifyInstanceCapacityReservationAttributesCommand.d.ts +1 -1
  50. package/dist-types/commands/ModifyPrivateDnsNameOptionsCommand.d.ts +35 -0
  51. package/dist-types/commands/MonitorInstancesCommand.d.ts +2 -2
  52. package/dist-types/commands/RebootInstancesCommand.d.ts +2 -2
  53. package/dist-types/commands/SendDiagnosticInterruptCommand.d.ts +1 -1
  54. package/dist-types/commands/StartInstancesCommand.d.ts +2 -2
  55. package/dist-types/commands/StopInstancesCommand.d.ts +1 -1
  56. package/dist-types/commands/index.d.ts +1 -0
  57. package/dist-types/models/models_0.d.ts +99 -75
  58. package/dist-types/models/models_1.d.ts +127 -68
  59. package/dist-types/models/models_2.d.ts +120 -189
  60. package/dist-types/models/models_3.d.ts +195 -230
  61. package/dist-types/models/models_4.d.ts +236 -204
  62. package/dist-types/models/models_5.d.ts +310 -14
  63. package/dist-types/protocols/Aws_ec2.d.ts +3 -0
  64. package/dist-types/ts3.4/EC2.d.ts +5 -0
  65. package/dist-types/ts3.4/EC2Client.d.ts +3 -2
  66. package/dist-types/ts3.4/commands/CreateVpcEndpointConnectionNotificationCommand.d.ts +2 -1
  67. package/dist-types/ts3.4/commands/DescribeHostReservationsCommand.d.ts +2 -1
  68. package/dist-types/ts3.4/commands/DescribeHostsCommand.d.ts +1 -2
  69. package/dist-types/ts3.4/commands/DescribeStaleSecurityGroupsCommand.d.ts +2 -1
  70. package/dist-types/ts3.4/commands/DescribeStoreImageTasksCommand.d.ts +1 -1
  71. package/dist-types/ts3.4/commands/DescribeSubnetsCommand.d.ts +1 -2
  72. package/dist-types/ts3.4/commands/ModifyInstanceAttributeCommand.d.ts +1 -1
  73. package/dist-types/ts3.4/commands/ModifyInstanceCapacityReservationAttributesCommand.d.ts +1 -1
  74. package/dist-types/ts3.4/commands/ModifyPrivateDnsNameOptionsCommand.d.ts +17 -0
  75. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  76. package/dist-types/ts3.4/models/models_0.d.ts +23 -22
  77. package/dist-types/ts3.4/models/models_1.d.ts +62 -40
  78. package/dist-types/ts3.4/models/models_2.d.ts +38 -65
  79. package/dist-types/ts3.4/models/models_3.d.ts +84 -75
  80. package/dist-types/ts3.4/models/models_4.d.ts +76 -83
  81. package/dist-types/ts3.4/models/models_5.d.ts +129 -3
  82. package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +3 -0
  83. package/package.json +2 -2
@@ -3924,6 +3924,16 @@ export var serializeAws_ec2ModifyNetworkInterfaceAttributeCommand = function (in
3924
3924
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
3925
3925
  });
3926
3926
  }); };
3927
+ export var serializeAws_ec2ModifyPrivateDnsNameOptionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
3928
+ var headers, body;
3929
+ return __generator(this, function (_a) {
3930
+ headers = {
3931
+ "content-type": "application/x-www-form-urlencoded",
3932
+ };
3933
+ body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_ec2ModifyPrivateDnsNameOptionsRequest(input, context)), { Action: "ModifyPrivateDnsNameOptions", Version: "2016-11-15" }));
3934
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
3935
+ });
3936
+ }); };
3927
3937
  export var serializeAws_ec2ModifyReservedInstancesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
3928
3938
  var headers, body;
3929
3939
  return __generator(this, function (_a) {
@@ -21982,6 +21992,50 @@ var deserializeAws_ec2ModifyNetworkInterfaceAttributeCommandError = function (ou
21982
21992
  }
21983
21993
  });
21984
21994
  }); };
21995
+ export var deserializeAws_ec2ModifyPrivateDnsNameOptionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
21996
+ var data, contents, response;
21997
+ return __generator(this, function (_a) {
21998
+ switch (_a.label) {
21999
+ case 0:
22000
+ if (output.statusCode >= 300) {
22001
+ return [2, deserializeAws_ec2ModifyPrivateDnsNameOptionsCommandError(output, context)];
22002
+ }
22003
+ return [4, parseBody(output.body, context)];
22004
+ case 1:
22005
+ data = _a.sent();
22006
+ contents = {};
22007
+ contents = deserializeAws_ec2ModifyPrivateDnsNameOptionsResult(data, context);
22008
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
22009
+ return [2, Promise.resolve(response)];
22010
+ }
22011
+ });
22012
+ }); };
22013
+ var deserializeAws_ec2ModifyPrivateDnsNameOptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
22014
+ var parsedOutput, _a, response, errorCode, parsedBody, message;
22015
+ var _b;
22016
+ return __generator(this, function (_c) {
22017
+ switch (_c.label) {
22018
+ case 0:
22019
+ _a = [__assign({}, output)];
22020
+ _b = {};
22021
+ return [4, parseBody(output.body, context)];
22022
+ case 1:
22023
+ parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
22024
+ errorCode = "UnknownError";
22025
+ errorCode = loadEc2ErrorCode(output, parsedOutput.body);
22026
+ switch (errorCode) {
22027
+ default:
22028
+ parsedBody = parsedOutput.body;
22029
+ errorCode = parsedBody.Errors.Error.code || parsedBody.Errors.Error.Code || errorCode;
22030
+ response = __assign(__assign({}, parsedBody.Errors.Error), { name: "" + errorCode, message: parsedBody.Errors.Error.message || parsedBody.Errors.Error.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
22031
+ }
22032
+ message = response.message || response.Message || errorCode;
22033
+ response.message = message;
22034
+ delete response.Message;
22035
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
22036
+ }
22037
+ });
22038
+ }); };
21985
22039
  export var deserializeAws_ec2ModifyReservedInstancesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
21986
22040
  var data, contents, response;
21987
22041
  return __generator(this, function (_a) {
@@ -27626,6 +27680,9 @@ var serializeAws_ec2CreateDefaultSubnetRequest = function (input, context) {
27626
27680
  if (input.DryRun !== undefined && input.DryRun !== null) {
27627
27681
  entries["DryRun"] = input.DryRun;
27628
27682
  }
27683
+ if (input.Ipv6Native !== undefined && input.Ipv6Native !== null) {
27684
+ entries["Ipv6Native"] = input.Ipv6Native;
27685
+ }
27629
27686
  return entries;
27630
27687
  };
27631
27688
  var serializeAws_ec2CreateDefaultVpcRequest = function (input, context) {
@@ -28687,6 +28744,9 @@ var serializeAws_ec2CreateSubnetRequest = function (input, context) {
28687
28744
  if (input.DryRun !== undefined && input.DryRun !== null) {
28688
28745
  entries["DryRun"] = input.DryRun;
28689
28746
  }
28747
+ if (input.Ipv6Native !== undefined && input.Ipv6Native !== null) {
28748
+ entries["Ipv6Native"] = input.Ipv6Native;
28749
+ }
28690
28750
  return entries;
28691
28751
  };
28692
28752
  var serializeAws_ec2CreateTagsRequest = function (input, context) {
@@ -37896,6 +37956,19 @@ var serializeAws_ec2LaunchTemplatePlacementRequest = function (input, context) {
37896
37956
  }
37897
37957
  return entries;
37898
37958
  };
37959
+ var serializeAws_ec2LaunchTemplatePrivateDnsNameOptionsRequest = function (input, context) {
37960
+ var entries = {};
37961
+ if (input.HostnameType !== undefined && input.HostnameType !== null) {
37962
+ entries["HostnameType"] = input.HostnameType;
37963
+ }
37964
+ if (input.EnableResourceNameDnsARecord !== undefined && input.EnableResourceNameDnsARecord !== null) {
37965
+ entries["EnableResourceNameDnsARecord"] = input.EnableResourceNameDnsARecord;
37966
+ }
37967
+ if (input.EnableResourceNameDnsAAAARecord !== undefined && input.EnableResourceNameDnsAAAARecord !== null) {
37968
+ entries["EnableResourceNameDnsAAAARecord"] = input.EnableResourceNameDnsAAAARecord;
37969
+ }
37970
+ return entries;
37971
+ };
37899
37972
  var serializeAws_ec2LaunchTemplatesMonitoringRequest = function (input, context) {
37900
37973
  var entries = {};
37901
37974
  if (input.Enabled !== undefined && input.Enabled !== null) {
@@ -38981,6 +39054,25 @@ var serializeAws_ec2ModifyNetworkInterfaceAttributeRequest = function (input, co
38981
39054
  }
38982
39055
  return entries;
38983
39056
  };
39057
+ var serializeAws_ec2ModifyPrivateDnsNameOptionsRequest = function (input, context) {
39058
+ var entries = {};
39059
+ if (input.DryRun !== undefined && input.DryRun !== null) {
39060
+ entries["DryRun"] = input.DryRun;
39061
+ }
39062
+ if (input.InstanceId !== undefined && input.InstanceId !== null) {
39063
+ entries["InstanceId"] = input.InstanceId;
39064
+ }
39065
+ if (input.PrivateDnsHostnameType !== undefined && input.PrivateDnsHostnameType !== null) {
39066
+ entries["PrivateDnsHostnameType"] = input.PrivateDnsHostnameType;
39067
+ }
39068
+ if (input.EnableResourceNameDnsARecord !== undefined && input.EnableResourceNameDnsARecord !== null) {
39069
+ entries["EnableResourceNameDnsARecord"] = input.EnableResourceNameDnsARecord;
39070
+ }
39071
+ if (input.EnableResourceNameDnsAAAARecord !== undefined && input.EnableResourceNameDnsAAAARecord !== null) {
39072
+ entries["EnableResourceNameDnsAAAARecord"] = input.EnableResourceNameDnsAAAARecord;
39073
+ }
39074
+ return entries;
39075
+ };
38984
39076
  var serializeAws_ec2ModifyReservedInstancesRequest = function (input, context) {
38985
39077
  var entries = {};
38986
39078
  if (input.ReservedInstancesIds !== undefined && input.ReservedInstancesIds !== null) {
@@ -39129,6 +39221,26 @@ var serializeAws_ec2ModifySubnetAttributeRequest = function (input, context) {
39129
39221
  entries[loc] = value;
39130
39222
  });
39131
39223
  }
39224
+ if (input.PrivateDnsHostnameTypeOnLaunch !== undefined && input.PrivateDnsHostnameTypeOnLaunch !== null) {
39225
+ entries["PrivateDnsHostnameTypeOnLaunch"] = input.PrivateDnsHostnameTypeOnLaunch;
39226
+ }
39227
+ if (input.EnableResourceNameDnsARecordOnLaunch !== undefined && input.EnableResourceNameDnsARecordOnLaunch !== null) {
39228
+ var memberEntries = serializeAws_ec2AttributeBooleanValue(input.EnableResourceNameDnsARecordOnLaunch, context);
39229
+ Object.entries(memberEntries).forEach(function (_a) {
39230
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
39231
+ var loc = "EnableResourceNameDnsARecordOnLaunch." + key;
39232
+ entries[loc] = value;
39233
+ });
39234
+ }
39235
+ if (input.EnableResourceNameDnsAAAARecordOnLaunch !== undefined &&
39236
+ input.EnableResourceNameDnsAAAARecordOnLaunch !== null) {
39237
+ var memberEntries = serializeAws_ec2AttributeBooleanValue(input.EnableResourceNameDnsAAAARecordOnLaunch, context);
39238
+ Object.entries(memberEntries).forEach(function (_a) {
39239
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
39240
+ var loc = "EnableResourceNameDnsAAAARecordOnLaunch." + key;
39241
+ entries[loc] = value;
39242
+ });
39243
+ }
39132
39244
  return entries;
39133
39245
  };
39134
39246
  var serializeAws_ec2ModifyTrafficMirrorFilterNetworkServicesRequest = function (input, context) {
@@ -40571,6 +40683,19 @@ var serializeAws_ec2PriceScheduleSpecificationList = function (input, context) {
40571
40683
  }
40572
40684
  return entries;
40573
40685
  };
40686
+ var serializeAws_ec2PrivateDnsNameOptionsRequest = function (input, context) {
40687
+ var entries = {};
40688
+ if (input.HostnameType !== undefined && input.HostnameType !== null) {
40689
+ entries["HostnameType"] = input.HostnameType;
40690
+ }
40691
+ if (input.EnableResourceNameDnsARecord !== undefined && input.EnableResourceNameDnsARecord !== null) {
40692
+ entries["EnableResourceNameDnsARecord"] = input.EnableResourceNameDnsARecord;
40693
+ }
40694
+ if (input.EnableResourceNameDnsAAAARecord !== undefined && input.EnableResourceNameDnsAAAARecord !== null) {
40695
+ entries["EnableResourceNameDnsAAAARecord"] = input.EnableResourceNameDnsAAAARecord;
40696
+ }
40697
+ return entries;
40698
+ };
40574
40699
  var serializeAws_ec2PrivateIpAddressConfigSet = function (input, context) {
40575
40700
  var e_129, _a;
40576
40701
  var entries = {};
@@ -41709,6 +41834,14 @@ var serializeAws_ec2RequestLaunchTemplateData = function (input, context) {
41709
41834
  entries[loc] = value;
41710
41835
  });
41711
41836
  }
41837
+ if (input.PrivateDnsNameOptions !== undefined && input.PrivateDnsNameOptions !== null) {
41838
+ var memberEntries = serializeAws_ec2LaunchTemplatePrivateDnsNameOptionsRequest(input.PrivateDnsNameOptions, context);
41839
+ Object.entries(memberEntries).forEach(function (_a) {
41840
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
41841
+ var loc = "PrivateDnsNameOptions." + key;
41842
+ entries[loc] = value;
41843
+ });
41844
+ }
41712
41845
  return entries;
41713
41846
  };
41714
41847
  var serializeAws_ec2RequestSpotFleetRequest = function (input, context) {
@@ -42648,6 +42781,14 @@ var serializeAws_ec2RunInstancesRequest = function (input, context) {
42648
42781
  entries[loc] = value;
42649
42782
  });
42650
42783
  }
42784
+ if (input.PrivateDnsNameOptions !== undefined && input.PrivateDnsNameOptions !== null) {
42785
+ var memberEntries = serializeAws_ec2PrivateDnsNameOptionsRequest(input.PrivateDnsNameOptions, context);
42786
+ Object.entries(memberEntries).forEach(function (_a) {
42787
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
42788
+ var loc = "PrivateDnsNameOptions." + key;
42789
+ entries[loc] = value;
42790
+ });
42791
+ }
42651
42792
  return entries;
42652
42793
  };
42653
42794
  var serializeAws_ec2RunScheduledInstancesRequest = function (input, context) {
@@ -55106,6 +55247,8 @@ var deserializeAws_ec2Instance = function (output, context) {
55106
55247
  PlatformDetails: undefined,
55107
55248
  UsageOperation: undefined,
55108
55249
  UsageOperationUpdateTime: undefined,
55250
+ PrivateDnsNameOptions: undefined,
55251
+ Ipv6Address: undefined,
55109
55252
  };
55110
55253
  if (output["amiLaunchIndex"] !== undefined) {
55111
55254
  contents.AmiLaunchIndex = __strictParseInt32(output["amiLaunchIndex"]);
@@ -55288,6 +55431,12 @@ var deserializeAws_ec2Instance = function (output, context) {
55288
55431
  if (output["usageOperationUpdateTime"] !== undefined) {
55289
55432
  contents.UsageOperationUpdateTime = __expectNonNull(__parseRfc3339DateTime(output["usageOperationUpdateTime"]));
55290
55433
  }
55434
+ if (output["privateDnsNameOptions"] !== undefined) {
55435
+ contents.PrivateDnsNameOptions = deserializeAws_ec2PrivateDnsNameOptionsResponse(output["privateDnsNameOptions"], context);
55436
+ }
55437
+ if (output["ipv6Address"] !== undefined) {
55438
+ contents.Ipv6Address = __expectString(output["ipv6Address"]);
55439
+ }
55291
55440
  return contents;
55292
55441
  };
55293
55442
  var deserializeAws_ec2InstanceAttribute = function (output, context) {
@@ -57623,6 +57772,23 @@ var deserializeAws_ec2LaunchTemplatePlacement = function (output, context) {
57623
57772
  }
57624
57773
  return contents;
57625
57774
  };
57775
+ var deserializeAws_ec2LaunchTemplatePrivateDnsNameOptions = function (output, context) {
57776
+ var contents = {
57777
+ HostnameType: undefined,
57778
+ EnableResourceNameDnsARecord: undefined,
57779
+ EnableResourceNameDnsAAAARecord: undefined,
57780
+ };
57781
+ if (output["hostnameType"] !== undefined) {
57782
+ contents.HostnameType = __expectString(output["hostnameType"]);
57783
+ }
57784
+ if (output["enableResourceNameDnsARecord"] !== undefined) {
57785
+ contents.EnableResourceNameDnsARecord = __parseBoolean(output["enableResourceNameDnsARecord"]);
57786
+ }
57787
+ if (output["enableResourceNameDnsAAAARecord"] !== undefined) {
57788
+ contents.EnableResourceNameDnsAAAARecord = __parseBoolean(output["enableResourceNameDnsAAAARecord"]);
57789
+ }
57790
+ return contents;
57791
+ };
57626
57792
  var deserializeAws_ec2LaunchTemplateSet = function (output, context) {
57627
57793
  return (output || [])
57628
57794
  .filter(function (e) { return e != null; })
@@ -58419,6 +58585,15 @@ var deserializeAws_ec2ModifyManagedPrefixListResult = function (output, context)
58419
58585
  }
58420
58586
  return contents;
58421
58587
  };
58588
+ var deserializeAws_ec2ModifyPrivateDnsNameOptionsResult = function (output, context) {
58589
+ var contents = {
58590
+ Return: undefined,
58591
+ };
58592
+ if (output["return"] !== undefined) {
58593
+ contents.Return = __parseBoolean(output["return"]);
58594
+ }
58595
+ return contents;
58596
+ };
58422
58597
  var deserializeAws_ec2ModifyReservedInstancesResult = function (output, context) {
58423
58598
  var contents = {
58424
58599
  ReservedInstancesModificationId: undefined,
@@ -59138,6 +59313,8 @@ var deserializeAws_ec2NetworkInterface = function (output, context) {
59138
59313
  TagSet: undefined,
59139
59314
  VpcId: undefined,
59140
59315
  DenyAllIgwTraffic: undefined,
59316
+ Ipv6Native: undefined,
59317
+ Ipv6Address: undefined,
59141
59318
  };
59142
59319
  if (output["association"] !== undefined) {
59143
59320
  contents.Association = deserializeAws_ec2NetworkInterfaceAssociation(output["association"], context);
@@ -59229,6 +59406,12 @@ var deserializeAws_ec2NetworkInterface = function (output, context) {
59229
59406
  if (output["denyAllIgwTraffic"] !== undefined) {
59230
59407
  contents.DenyAllIgwTraffic = __parseBoolean(output["denyAllIgwTraffic"]);
59231
59408
  }
59409
+ if (output["ipv6Native"] !== undefined) {
59410
+ contents.Ipv6Native = __parseBoolean(output["ipv6Native"]);
59411
+ }
59412
+ if (output["ipv6Address"] !== undefined) {
59413
+ contents.Ipv6Address = __expectString(output["ipv6Address"]);
59414
+ }
59232
59415
  return contents;
59233
59416
  };
59234
59417
  var deserializeAws_ec2NetworkInterfaceAssociation = function (output, context) {
@@ -60087,6 +60270,40 @@ var deserializeAws_ec2PrivateDnsNameConfiguration = function (output, context) {
60087
60270
  }
60088
60271
  return contents;
60089
60272
  };
60273
+ var deserializeAws_ec2PrivateDnsNameOptionsOnLaunch = function (output, context) {
60274
+ var contents = {
60275
+ HostnameType: undefined,
60276
+ EnableResourceNameDnsARecord: undefined,
60277
+ EnableResourceNameDnsAAAARecord: undefined,
60278
+ };
60279
+ if (output["hostnameType"] !== undefined) {
60280
+ contents.HostnameType = __expectString(output["hostnameType"]);
60281
+ }
60282
+ if (output["enableResourceNameDnsARecord"] !== undefined) {
60283
+ contents.EnableResourceNameDnsARecord = __parseBoolean(output["enableResourceNameDnsARecord"]);
60284
+ }
60285
+ if (output["enableResourceNameDnsAAAARecord"] !== undefined) {
60286
+ contents.EnableResourceNameDnsAAAARecord = __parseBoolean(output["enableResourceNameDnsAAAARecord"]);
60287
+ }
60288
+ return contents;
60289
+ };
60290
+ var deserializeAws_ec2PrivateDnsNameOptionsResponse = function (output, context) {
60291
+ var contents = {
60292
+ HostnameType: undefined,
60293
+ EnableResourceNameDnsARecord: undefined,
60294
+ EnableResourceNameDnsAAAARecord: undefined,
60295
+ };
60296
+ if (output["hostnameType"] !== undefined) {
60297
+ contents.HostnameType = __expectString(output["hostnameType"]);
60298
+ }
60299
+ if (output["enableResourceNameDnsARecord"] !== undefined) {
60300
+ contents.EnableResourceNameDnsARecord = __parseBoolean(output["enableResourceNameDnsARecord"]);
60301
+ }
60302
+ if (output["enableResourceNameDnsAAAARecord"] !== undefined) {
60303
+ contents.EnableResourceNameDnsAAAARecord = __parseBoolean(output["enableResourceNameDnsAAAARecord"]);
60304
+ }
60305
+ return contents;
60306
+ };
60090
60307
  var deserializeAws_ec2PrivateIpAddressSpecification = function (output, context) {
60091
60308
  var contents = {
60092
60309
  Primary: undefined,
@@ -61222,6 +61439,7 @@ var deserializeAws_ec2ResponseLaunchTemplateData = function (output, context) {
61222
61439
  MetadataOptions: undefined,
61223
61440
  EnclaveOptions: undefined,
61224
61441
  InstanceRequirements: undefined,
61442
+ PrivateDnsNameOptions: undefined,
61225
61443
  };
61226
61444
  if (output["kernelId"] !== undefined) {
61227
61445
  contents.KernelId = __expectString(output["kernelId"]);
@@ -61334,6 +61552,9 @@ var deserializeAws_ec2ResponseLaunchTemplateData = function (output, context) {
61334
61552
  if (output["instanceRequirements"] !== undefined) {
61335
61553
  contents.InstanceRequirements = deserializeAws_ec2InstanceRequirements(output["instanceRequirements"], context);
61336
61554
  }
61555
+ if (output["privateDnsNameOptions"] !== undefined) {
61556
+ contents.PrivateDnsNameOptions = deserializeAws_ec2LaunchTemplatePrivateDnsNameOptions(output["privateDnsNameOptions"], context);
61557
+ }
61337
61558
  return contents;
61338
61559
  };
61339
61560
  var deserializeAws_ec2RestoreAddressToClassicResult = function (output, context) {
@@ -63270,6 +63491,8 @@ var deserializeAws_ec2Subnet = function (output, context) {
63270
63491
  SubnetArn: undefined,
63271
63492
  OutpostArn: undefined,
63272
63493
  EnableDns64: undefined,
63494
+ Ipv6Native: undefined,
63495
+ PrivateDnsNameOptionsOnLaunch: undefined,
63273
63496
  };
63274
63497
  if (output["availabilityZone"] !== undefined) {
63275
63498
  contents.AvailabilityZone = __expectString(output["availabilityZone"]);
@@ -63332,6 +63555,12 @@ var deserializeAws_ec2Subnet = function (output, context) {
63332
63555
  if (output["enableDns64"] !== undefined) {
63333
63556
  contents.EnableDns64 = __parseBoolean(output["enableDns64"]);
63334
63557
  }
63558
+ if (output["ipv6Native"] !== undefined) {
63559
+ contents.Ipv6Native = __parseBoolean(output["ipv6Native"]);
63560
+ }
63561
+ if (output["privateDnsNameOptionsOnLaunch"] !== undefined) {
63562
+ contents.PrivateDnsNameOptionsOnLaunch = deserializeAws_ec2PrivateDnsNameOptionsOnLaunch(output["privateDnsNameOptionsOnLaunch"], context);
63563
+ }
63335
63564
  return contents;
63336
63565
  };
63337
63566
  var deserializeAws_ec2SubnetAssociation = function (output, context) {
@@ -391,6 +391,7 @@ import { ModifyInstancePlacementCommandInput, ModifyInstancePlacementCommandOutp
391
391
  import { ModifyLaunchTemplateCommandInput, ModifyLaunchTemplateCommandOutput } from "./commands/ModifyLaunchTemplateCommand";
392
392
  import { ModifyManagedPrefixListCommandInput, ModifyManagedPrefixListCommandOutput } from "./commands/ModifyManagedPrefixListCommand";
393
393
  import { ModifyNetworkInterfaceAttributeCommandInput, ModifyNetworkInterfaceAttributeCommandOutput } from "./commands/ModifyNetworkInterfaceAttributeCommand";
394
+ import { ModifyPrivateDnsNameOptionsCommandInput, ModifyPrivateDnsNameOptionsCommandOutput } from "./commands/ModifyPrivateDnsNameOptionsCommand";
394
395
  import { ModifyReservedInstancesCommandInput, ModifyReservedInstancesCommandOutput } from "./commands/ModifyReservedInstancesCommand";
395
396
  import { ModifySecurityGroupRulesCommandInput, ModifySecurityGroupRulesCommandOutput } from "./commands/ModifySecurityGroupRulesCommand";
396
397
  import { ModifySnapshotAttributeCommandInput, ModifySnapshotAttributeCommandOutput } from "./commands/ModifySnapshotAttributeCommand";
@@ -852,7 +853,7 @@ export declare class EC2 extends EC2Client {
852
853
  /**
853
854
  * <p>[VPC only] Adds the specified outbound (egress) rules to a security group for use with a VPC.</p>
854
855
  * <p>An outbound rule permits instances to send traffic to the specified IPv4 or IPv6 CIDR address
855
- * ranges, or to the instances that are associated with the specified destination security groups.</p>
856
+ * ranges, or to the instances that are associated with the specified source security groups.</p>
856
857
  * <p>You specify a protocol for each rule (for example, TCP).
857
858
  * For the TCP and UDP protocols, you must also specify the destination port or port range.
858
859
  * For the ICMP protocol, you must also specify the ICMP type and code.
@@ -2914,8 +2915,9 @@ export declare class EC2 extends EC2Client {
2914
2915
  * <p>
2915
2916
  * <b>Status checks</b> - Amazon EC2 performs status
2916
2917
  * checks on running EC2 instances to identify hardware and software issues. For
2917
- * more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-system-instance-status-check.html">Status checks for your instances</a> and <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstances.html">Troubleshooting
2918
- * instances with failed status checks</a> in the <i>Amazon EC2 User Guide</i>.</p>
2918
+ * more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-system-instance-status-check.html">Status checks for your instances</a> and <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstances.html">Troubleshoot
2919
+ * instances with failed status checks</a> in the <i>Amazon EC2 User
2920
+ * Guide</i>.</p>
2919
2921
  * </li>
2920
2922
  * <li>
2921
2923
  * <p>
@@ -4485,7 +4487,7 @@ export declare class EC2 extends EC2Client {
4485
4487
  * associated with an ENI attached to an instance that has multiple ENIs, we recommend that
4486
4488
  * you use the <a>ModifyNetworkInterfaceAttribute</a> action.</p>
4487
4489
  * <p>To modify some attributes, the instance must be stopped. For more information, see
4488
- * <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_ChangingAttributesWhileInstanceStopped.html">Modifying attributes of a stopped instance</a> in the <i>Amazon EC2 User Guide</i>.</p>
4490
+ * <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_ChangingAttributesWhileInstanceStopped.html">Modify a stopped instance</a> in the <i>Amazon EC2 User Guide</i>.</p>
4489
4491
  */
4490
4492
  modifyInstanceAttribute(args: ModifyInstanceAttributeCommandInput, options?: __HttpHandlerOptions): Promise<ModifyInstanceAttributeCommandOutput>;
4491
4493
  modifyInstanceAttribute(args: ModifyInstanceAttributeCommandInput, cb: (err: any, data?: ModifyInstanceAttributeCommandOutput) => void): void;
@@ -4596,6 +4598,12 @@ export declare class EC2 extends EC2Client {
4596
4598
  modifyNetworkInterfaceAttribute(args: ModifyNetworkInterfaceAttributeCommandInput, options?: __HttpHandlerOptions): Promise<ModifyNetworkInterfaceAttributeCommandOutput>;
4597
4599
  modifyNetworkInterfaceAttribute(args: ModifyNetworkInterfaceAttributeCommandInput, cb: (err: any, data?: ModifyNetworkInterfaceAttributeCommandOutput) => void): void;
4598
4600
  modifyNetworkInterfaceAttribute(args: ModifyNetworkInterfaceAttributeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ModifyNetworkInterfaceAttributeCommandOutput) => void): void;
4601
+ /**
4602
+ * <p>Modifies the options for instance hostnames for the specified instance.</p>
4603
+ */
4604
+ modifyPrivateDnsNameOptions(args: ModifyPrivateDnsNameOptionsCommandInput, options?: __HttpHandlerOptions): Promise<ModifyPrivateDnsNameOptionsCommandOutput>;
4605
+ modifyPrivateDnsNameOptions(args: ModifyPrivateDnsNameOptionsCommandInput, cb: (err: any, data?: ModifyPrivateDnsNameOptionsCommandOutput) => void): void;
4606
+ modifyPrivateDnsNameOptions(args: ModifyPrivateDnsNameOptionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ModifyPrivateDnsNameOptionsCommandOutput) => void): void;
4599
4607
  /**
4600
4608
  * <p>Modifies the Availability Zone, instance count, instance type, or network platform
4601
4609
  * (EC2-Classic or EC2-VPC) of your Reserved Instances. The Reserved Instances to be
@@ -4892,8 +4900,8 @@ export declare class EC2 extends EC2Client {
4892
4900
  modifyVpnTunnelOptions(args: ModifyVpnTunnelOptionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ModifyVpnTunnelOptionsCommandOutput) => void): void;
4893
4901
  /**
4894
4902
  * <p>Enables detailed monitoring for a running instance. Otherwise, basic monitoring is
4895
- * enabled. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch.html">Monitoring your instances and
4896
- * volumes</a> in the <i>Amazon EC2 User Guide</i>.</p>
4903
+ * enabled. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch.html">Monitor your instances using
4904
+ * CloudWatch</a> in the <i>Amazon EC2 User Guide</i>.</p>
4897
4905
  * <p>To disable detailed monitoring, see .</p>
4898
4906
  */
4899
4907
  monitorInstances(args: MonitorInstancesCommandInput, options?: __HttpHandlerOptions): Promise<MonitorInstancesCommandOutput>;
@@ -4969,8 +4977,8 @@ export declare class EC2 extends EC2Client {
4969
4977
  * ignored.</p>
4970
4978
  * <p>If an instance does not cleanly shut down within a few minutes, Amazon EC2 performs a
4971
4979
  * hard reboot.</p>
4972
- * <p>For more information about troubleshooting, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-console.html">Getting console output and
4973
- * rebooting instances</a> in the <i>Amazon EC2 User Guide</i>.</p>
4980
+ * <p>For more information about troubleshooting, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-console.html">Troubleshoot an unreachable
4981
+ * instance</a> in the <i>Amazon EC2 User Guide</i>.</p>
4974
4982
  */
4975
4983
  rebootInstances(args: RebootInstancesCommandInput, options?: __HttpHandlerOptions): Promise<RebootInstancesCommandOutput>;
4976
4984
  rebootInstances(args: RebootInstancesCommandInput, cb: (err: any, data?: RebootInstancesCommandOutput) => void): void;
@@ -5448,7 +5456,7 @@ export declare class EC2 extends EC2Client {
5448
5456
  * system is configured to perform the required diagnostic tasks.</p>
5449
5457
  *
5450
5458
  * <p>For more information about configuring your operating system to generate a crash dump
5451
- * when a kernel panic or stop error occurs, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/diagnostic-interrupt.html">Send a diagnostic interrupt</a> (Linux instances) or <a href="https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/diagnostic-interrupt.html">Send a Diagnostic Interrupt</a> (Windows instances).</p>
5459
+ * when a kernel panic or stop error occurs, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/diagnostic-interrupt.html">Send a diagnostic interrupt (for advanced users)</a> (Linux instances) or <a href="https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/diagnostic-interrupt.html">Send a diagnostic interrupt (for advanced users)</a> (Windows instances).</p>
5452
5460
  */
5453
5461
  sendDiagnosticInterrupt(args: SendDiagnosticInterruptCommandInput, options?: __HttpHandlerOptions): Promise<SendDiagnosticInterruptCommandOutput>;
5454
5462
  sendDiagnosticInterrupt(args: SendDiagnosticInterruptCommandInput, cb: (err: any, data?: SendDiagnosticInterruptCommandOutput) => void): void;
@@ -5472,8 +5480,8 @@ export declare class EC2 extends EC2Client {
5472
5480
  * supported on Dedicated Hosts. Before you start the instance, either change its CPU credit
5473
5481
  * option to <code>standard</code>, or change its tenancy to <code>default</code> or <code>dedicated</code>.</p>
5474
5482
  *
5475
- * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html">Stopping instances</a> in the
5476
- * <i>Amazon EC2 User Guide</i>.</p>
5483
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html">Stop and start your instance</a>
5484
+ * in the <i>Amazon EC2 User Guide</i>.</p>
5477
5485
  */
5478
5486
  startInstances(args: StartInstancesCommandInput, options?: __HttpHandlerOptions): Promise<StartInstancesCommandOutput>;
5479
5487
  startInstances(args: StartInstancesCommandInput, cb: (err: any, data?: StartInstancesCommandOutput) => void): void;
@@ -5522,7 +5530,7 @@ export declare class EC2 extends EC2Client {
5522
5530
  * in the <i>Amazon EC2 User Guide</i>.</p>
5523
5531
  * <p>When you stop an instance, we attempt to shut it down forcibly after a short while. If
5524
5532
  * your instance appears stuck in the stopping state after a period of time, there may be
5525
- * an issue with the underlying host computer. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesStopping.html">Troubleshooting
5533
+ * an issue with the underlying host computer. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesStopping.html">Troubleshoot
5526
5534
  * stopping your instance</a> in the <i>Amazon EC2 User Guide</i>.</p>
5527
5535
  */
5528
5536
  stopInstances(args: StopInstancesCommandInput, options?: __HttpHandlerOptions): Promise<StopInstancesCommandOutput>;