@aws-sdk/client-ec2 3.45.0 → 3.46.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 (59) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +3 -3
  3. package/dist-cjs/EC2.js +15 -0
  4. package/dist-cjs/commands/GetIpamResourceCidrsCommand.js +2 -1
  5. package/dist-cjs/commands/GetLaunchTemplateDataCommand.js +1 -2
  6. package/dist-cjs/commands/ModifyVpcEndpointServicePayerResponsibilityCommand.js +36 -0
  7. package/dist-cjs/commands/index.js +1 -0
  8. package/dist-cjs/models/models_1.js +10 -11
  9. package/dist-cjs/models/models_2.js +16 -12
  10. package/dist-cjs/models/models_3.js +17 -24
  11. package/dist-cjs/models/models_4.js +24 -24
  12. package/dist-cjs/models/models_5.js +36 -36
  13. package/dist-cjs/models/models_6.js +32 -2
  14. package/dist-cjs/protocols/Aws_ec2.js +123 -13
  15. package/dist-cjs/runtimeConfig.js +0 -2
  16. package/dist-es/EC2.js +15 -0
  17. package/dist-es/commands/GetIpamResourceCidrsCommand.js +2 -1
  18. package/dist-es/commands/GetLaunchTemplateDataCommand.js +1 -2
  19. package/dist-es/commands/ModifyVpcEndpointServicePayerResponsibilityCommand.js +39 -0
  20. package/dist-es/commands/index.js +1 -0
  21. package/dist-es/models/models_1.js +5 -4
  22. package/dist-es/models/models_2.js +8 -4
  23. package/dist-es/models/models_3.js +9 -12
  24. package/dist-es/models/models_4.js +12 -12
  25. package/dist-es/models/models_5.js +20 -20
  26. package/dist-es/models/models_6.js +20 -0
  27. package/dist-es/protocols/Aws_ec2.js +112 -0
  28. package/dist-es/runtimeConfig.js +0 -2
  29. package/dist-types/EC2.d.ts +15 -5
  30. package/dist-types/EC2Client.d.ts +6 -5
  31. package/dist-types/commands/DescribeAccountAttributesCommand.d.ts +1 -1
  32. package/dist-types/commands/DescribeStaleSecurityGroupsCommand.d.ts +4 -1
  33. package/dist-types/commands/GetIpamResourceCidrsCommand.d.ts +2 -1
  34. package/dist-types/commands/GetLaunchTemplateDataCommand.d.ts +1 -2
  35. package/dist-types/commands/ModifyVpcEndpointServicePayerResponsibilityCommand.d.ts +35 -0
  36. package/dist-types/commands/index.d.ts +1 -0
  37. package/dist-types/models/models_0.d.ts +16 -0
  38. package/dist-types/models/models_1.d.ts +32 -38
  39. package/dist-types/models/models_2.d.ts +46 -40
  40. package/dist-types/models/models_3.d.ts +86 -88
  41. package/dist-types/models/models_4.d.ts +99 -115
  42. package/dist-types/models/models_5.d.ts +163 -144
  43. package/dist-types/models/models_6.d.ts +149 -8
  44. package/dist-types/protocols/Aws_ec2.d.ts +3 -0
  45. package/dist-types/ts3.4/EC2.d.ts +5 -0
  46. package/dist-types/ts3.4/EC2Client.d.ts +3 -2
  47. package/dist-types/ts3.4/commands/GetIpamResourceCidrsCommand.d.ts +2 -1
  48. package/dist-types/ts3.4/commands/GetLaunchTemplateDataCommand.d.ts +1 -2
  49. package/dist-types/ts3.4/commands/ModifyVpcEndpointServicePayerResponsibilityCommand.d.ts +17 -0
  50. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  51. package/dist-types/ts3.4/models/models_0.d.ts +4 -0
  52. package/dist-types/ts3.4/models/models_1.d.ts +10 -17
  53. package/dist-types/ts3.4/models/models_2.d.ts +23 -19
  54. package/dist-types/ts3.4/models/models_3.d.ts +25 -46
  55. package/dist-types/ts3.4/models/models_4.d.ts +50 -60
  56. package/dist-types/ts3.4/models/models_5.d.ts +86 -64
  57. package/dist-types/ts3.4/models/models_6.d.ts +62 -3
  58. package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +3 -0
  59. package/package.json +38 -45
@@ -1,4 +1,8 @@
1
1
  import { __assign } from "tslib";
2
+ export var ImportVolumeTaskDetails;
3
+ (function (ImportVolumeTaskDetails) {
4
+ ImportVolumeTaskDetails.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
5
+ })(ImportVolumeTaskDetails || (ImportVolumeTaskDetails = {}));
2
6
  export var ConversionTask;
3
7
  (function (ConversionTask) {
4
8
  ConversionTask.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -480,6 +484,11 @@ export var HttpTokensState;
480
484
  HttpTokensState["optional"] = "optional";
481
485
  HttpTokensState["required"] = "required";
482
486
  })(HttpTokensState || (HttpTokensState = {}));
487
+ export var InstanceMetadataTagsState;
488
+ (function (InstanceMetadataTagsState) {
489
+ InstanceMetadataTagsState["disabled"] = "disabled";
490
+ InstanceMetadataTagsState["enabled"] = "enabled";
491
+ })(InstanceMetadataTagsState || (InstanceMetadataTagsState = {}));
483
492
  export var InstanceMetadataOptionsResponse;
484
493
  (function (InstanceMetadataOptionsResponse) {
485
494
  InstanceMetadataOptionsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1050,15 +1059,3 @@ export var ReservedInstancesConfiguration;
1050
1059
  (function (ReservedInstancesConfiguration) {
1051
1060
  ReservedInstancesConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1052
1061
  })(ReservedInstancesConfiguration || (ReservedInstancesConfiguration = {}));
1053
- export var ReservedInstancesModificationResult;
1054
- (function (ReservedInstancesModificationResult) {
1055
- ReservedInstancesModificationResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1056
- })(ReservedInstancesModificationResult || (ReservedInstancesModificationResult = {}));
1057
- export var ReservedInstancesId;
1058
- (function (ReservedInstancesId) {
1059
- ReservedInstancesId.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1060
- })(ReservedInstancesId || (ReservedInstancesId = {}));
1061
- export var ReservedInstancesModification;
1062
- (function (ReservedInstancesModification) {
1063
- ReservedInstancesModification.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1064
- })(ReservedInstancesModification || (ReservedInstancesModification = {}));
@@ -1,4 +1,16 @@
1
1
  import { __assign } from "tslib";
2
+ export var ReservedInstancesModificationResult;
3
+ (function (ReservedInstancesModificationResult) {
4
+ ReservedInstancesModificationResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
5
+ })(ReservedInstancesModificationResult || (ReservedInstancesModificationResult = {}));
6
+ export var ReservedInstancesId;
7
+ (function (ReservedInstancesId) {
8
+ ReservedInstancesId.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
9
+ })(ReservedInstancesId || (ReservedInstancesId = {}));
10
+ export var ReservedInstancesModification;
11
+ (function (ReservedInstancesModification) {
12
+ ReservedInstancesModification.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
13
+ })(ReservedInstancesModification || (ReservedInstancesModification = {}));
2
14
  export var DescribeReservedInstancesModificationsResult;
3
15
  (function (DescribeReservedInstancesModificationsResult) {
4
16
  DescribeReservedInstancesModificationsResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1179,15 +1191,3 @@ export var IpamManagementState;
1179
1191
  IpamManagementState["managed"] = "managed";
1180
1192
  IpamManagementState["unmanaged"] = "unmanaged";
1181
1193
  })(IpamManagementState || (IpamManagementState = {}));
1182
- export var IpamResourceCidr;
1183
- (function (IpamResourceCidr) {
1184
- IpamResourceCidr.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1185
- })(IpamResourceCidr || (IpamResourceCidr = {}));
1186
- export var GetIpamResourceCidrsResult;
1187
- (function (GetIpamResourceCidrsResult) {
1188
- GetIpamResourceCidrsResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1189
- })(GetIpamResourceCidrsResult || (GetIpamResourceCidrsResult = {}));
1190
- export var GetLaunchTemplateDataRequest;
1191
- (function (GetLaunchTemplateDataRequest) {
1192
- GetLaunchTemplateDataRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1193
- })(GetLaunchTemplateDataRequest || (GetLaunchTemplateDataRequest = {}));
@@ -1,5 +1,17 @@
1
1
  import { __assign } from "tslib";
2
2
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
3
+ export var IpamResourceCidr;
4
+ (function (IpamResourceCidr) {
5
+ IpamResourceCidr.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
6
+ })(IpamResourceCidr || (IpamResourceCidr = {}));
7
+ export var GetIpamResourceCidrsResult;
8
+ (function (GetIpamResourceCidrsResult) {
9
+ GetIpamResourceCidrsResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
10
+ })(GetIpamResourceCidrsResult || (GetIpamResourceCidrsResult = {}));
11
+ export var GetLaunchTemplateDataRequest;
12
+ (function (GetLaunchTemplateDataRequest) {
13
+ GetLaunchTemplateDataRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
14
+ })(GetLaunchTemplateDataRequest || (GetLaunchTemplateDataRequest = {}));
3
15
  export var GetLaunchTemplateDataResult;
4
16
  (function (GetLaunchTemplateDataResult) {
5
17
  GetLaunchTemplateDataResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -709,6 +721,14 @@ export var ModifyVpcEndpointServiceConfigurationResult;
709
721
  (function (ModifyVpcEndpointServiceConfigurationResult) {
710
722
  ModifyVpcEndpointServiceConfigurationResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
711
723
  })(ModifyVpcEndpointServiceConfigurationResult || (ModifyVpcEndpointServiceConfigurationResult = {}));
724
+ export var ModifyVpcEndpointServicePayerResponsibilityRequest;
725
+ (function (ModifyVpcEndpointServicePayerResponsibilityRequest) {
726
+ ModifyVpcEndpointServicePayerResponsibilityRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
727
+ })(ModifyVpcEndpointServicePayerResponsibilityRequest || (ModifyVpcEndpointServicePayerResponsibilityRequest = {}));
728
+ export var ModifyVpcEndpointServicePayerResponsibilityResult;
729
+ (function (ModifyVpcEndpointServicePayerResponsibilityResult) {
730
+ ModifyVpcEndpointServicePayerResponsibilityResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
731
+ })(ModifyVpcEndpointServicePayerResponsibilityResult || (ModifyVpcEndpointServicePayerResponsibilityResult = {}));
712
732
  export var ModifyVpcEndpointServicePermissionsRequest;
713
733
  (function (ModifyVpcEndpointServicePermissionsRequest) {
714
734
  ModifyVpcEndpointServicePermissionsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1147,23 +1167,3 @@ export var CpuOptionsRequest;
1147
1167
  (function (CpuOptionsRequest) {
1148
1168
  CpuOptionsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1149
1169
  })(CpuOptionsRequest || (CpuOptionsRequest = {}));
1150
- export var ElasticInferenceAccelerator;
1151
- (function (ElasticInferenceAccelerator) {
1152
- ElasticInferenceAccelerator.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1153
- })(ElasticInferenceAccelerator || (ElasticInferenceAccelerator = {}));
1154
- export var EnclaveOptionsRequest;
1155
- (function (EnclaveOptionsRequest) {
1156
- EnclaveOptionsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1157
- })(EnclaveOptionsRequest || (EnclaveOptionsRequest = {}));
1158
- export var HibernationOptionsRequest;
1159
- (function (HibernationOptionsRequest) {
1160
- HibernationOptionsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1161
- })(HibernationOptionsRequest || (HibernationOptionsRequest = {}));
1162
- export var SpotMarketOptions;
1163
- (function (SpotMarketOptions) {
1164
- SpotMarketOptions.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1165
- })(SpotMarketOptions || (SpotMarketOptions = {}));
1166
- export var InstanceMarketOptionsRequest;
1167
- (function (InstanceMarketOptionsRequest) {
1168
- InstanceMarketOptionsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1169
- })(InstanceMarketOptionsRequest || (InstanceMarketOptionsRequest = {}));
@@ -1,4 +1,24 @@
1
1
  import { __assign } from "tslib";
2
+ export var ElasticInferenceAccelerator;
3
+ (function (ElasticInferenceAccelerator) {
4
+ ElasticInferenceAccelerator.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
5
+ })(ElasticInferenceAccelerator || (ElasticInferenceAccelerator = {}));
6
+ export var EnclaveOptionsRequest;
7
+ (function (EnclaveOptionsRequest) {
8
+ EnclaveOptionsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
9
+ })(EnclaveOptionsRequest || (EnclaveOptionsRequest = {}));
10
+ export var HibernationOptionsRequest;
11
+ (function (HibernationOptionsRequest) {
12
+ HibernationOptionsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
13
+ })(HibernationOptionsRequest || (HibernationOptionsRequest = {}));
14
+ export var SpotMarketOptions;
15
+ (function (SpotMarketOptions) {
16
+ SpotMarketOptions.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
17
+ })(SpotMarketOptions || (SpotMarketOptions = {}));
18
+ export var InstanceMarketOptionsRequest;
19
+ (function (InstanceMarketOptionsRequest) {
20
+ InstanceMarketOptionsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
21
+ })(InstanceMarketOptionsRequest || (InstanceMarketOptionsRequest = {}));
2
22
  export var LaunchTemplateSpecification;
3
23
  (function (LaunchTemplateSpecification) {
4
24
  LaunchTemplateSpecification.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -4444,6 +4444,16 @@ export var serializeAws_ec2ModifyVpcEndpointServiceConfigurationCommand = functi
4444
4444
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
4445
4445
  });
4446
4446
  }); };
4447
+ export var serializeAws_ec2ModifyVpcEndpointServicePayerResponsibilityCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
4448
+ var headers, body;
4449
+ return __generator(this, function (_a) {
4450
+ headers = {
4451
+ "content-type": "application/x-www-form-urlencoded",
4452
+ };
4453
+ body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_ec2ModifyVpcEndpointServicePayerResponsibilityRequest(input, context)), { Action: "ModifyVpcEndpointServicePayerResponsibility", Version: "2016-11-15" }));
4454
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
4455
+ });
4456
+ }); };
4447
4457
  export var serializeAws_ec2ModifyVpcEndpointServicePermissionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
4448
4458
  var headers, body;
4449
4459
  return __generator(this, function (_a) {
@@ -24690,6 +24700,50 @@ var deserializeAws_ec2ModifyVpcEndpointServiceConfigurationCommandError = functi
24690
24700
  }
24691
24701
  });
24692
24702
  }); };
24703
+ export var deserializeAws_ec2ModifyVpcEndpointServicePayerResponsibilityCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
24704
+ var data, contents, response;
24705
+ return __generator(this, function (_a) {
24706
+ switch (_a.label) {
24707
+ case 0:
24708
+ if (output.statusCode >= 300) {
24709
+ return [2, deserializeAws_ec2ModifyVpcEndpointServicePayerResponsibilityCommandError(output, context)];
24710
+ }
24711
+ return [4, parseBody(output.body, context)];
24712
+ case 1:
24713
+ data = _a.sent();
24714
+ contents = {};
24715
+ contents = deserializeAws_ec2ModifyVpcEndpointServicePayerResponsibilityResult(data, context);
24716
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
24717
+ return [2, Promise.resolve(response)];
24718
+ }
24719
+ });
24720
+ }); };
24721
+ var deserializeAws_ec2ModifyVpcEndpointServicePayerResponsibilityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
24722
+ var parsedOutput, _a, response, errorCode, parsedBody, message;
24723
+ var _b;
24724
+ return __generator(this, function (_c) {
24725
+ switch (_c.label) {
24726
+ case 0:
24727
+ _a = [__assign({}, output)];
24728
+ _b = {};
24729
+ return [4, parseBody(output.body, context)];
24730
+ case 1:
24731
+ parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
24732
+ errorCode = "UnknownError";
24733
+ errorCode = loadEc2ErrorCode(output, parsedOutput.body);
24734
+ switch (errorCode) {
24735
+ default:
24736
+ parsedBody = parsedOutput.body;
24737
+ errorCode = parsedBody.Errors.Error.code || parsedBody.Errors.Error.Code || errorCode;
24738
+ response = __assign(__assign({}, parsedBody.Errors.Error), { name: "" + errorCode, message: parsedBody.Errors.Error.message || parsedBody.Errors.Error.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
24739
+ }
24740
+ message = response.message || response.Message || errorCode;
24741
+ response.message = message;
24742
+ delete response.Message;
24743
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
24744
+ }
24745
+ });
24746
+ }); };
24693
24747
  export var deserializeAws_ec2ModifyVpcEndpointServicePermissionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
24694
24748
  var data, contents, response;
24695
24749
  return __generator(this, function (_a) {
@@ -29857,6 +29911,9 @@ var serializeAws_ec2CreateCapacityReservationRequest = function (input, context)
29857
29911
  if (input.OutpostArn !== undefined && input.OutpostArn !== null) {
29858
29912
  entries["OutpostArn"] = input.OutpostArn;
29859
29913
  }
29914
+ if (input.PlacementGroupArn !== undefined && input.PlacementGroupArn !== null) {
29915
+ entries["PlacementGroupArn"] = input.PlacementGroupArn;
29916
+ }
29860
29917
  return entries;
29861
29918
  };
29862
29919
  var serializeAws_ec2CreateCarrierGatewayRequest = function (input, context) {
@@ -39441,6 +39498,9 @@ var serializeAws_ec2InstanceMetadataOptionsRequest = function (input, context) {
39441
39498
  if (input.HttpProtocolIpv6 !== undefined && input.HttpProtocolIpv6 !== null) {
39442
39499
  entries["HttpProtocolIpv6"] = input.HttpProtocolIpv6;
39443
39500
  }
39501
+ if (input.InstanceMetadataTags !== undefined && input.InstanceMetadataTags !== null) {
39502
+ entries["InstanceMetadataTags"] = input.InstanceMetadataTags;
39503
+ }
39444
39504
  return entries;
39445
39505
  };
39446
39506
  var serializeAws_ec2InstanceNetworkInterfaceSpecification = function (input, context) {
@@ -40699,6 +40759,9 @@ var serializeAws_ec2LaunchTemplateInstanceMetadataOptionsRequest = function (inp
40699
40759
  if (input.HttpProtocolIpv6 !== undefined && input.HttpProtocolIpv6 !== null) {
40700
40760
  entries["HttpProtocolIpv6"] = input.HttpProtocolIpv6;
40701
40761
  }
40762
+ if (input.InstanceMetadataTags !== undefined && input.InstanceMetadataTags !== null) {
40763
+ entries["InstanceMetadataTags"] = input.InstanceMetadataTags;
40764
+ }
40702
40765
  return entries;
40703
40766
  };
40704
40767
  var serializeAws_ec2LaunchTemplateInstanceNetworkInterfaceSpecificationRequest = function (input, context) {
@@ -41952,6 +42015,9 @@ var serializeAws_ec2ModifyInstanceMetadataOptionsRequest = function (input, cont
41952
42015
  if (input.HttpProtocolIpv6 !== undefined && input.HttpProtocolIpv6 !== null) {
41953
42016
  entries["HttpProtocolIpv6"] = input.HttpProtocolIpv6;
41954
42017
  }
42018
+ if (input.InstanceMetadataTags !== undefined && input.InstanceMetadataTags !== null) {
42019
+ entries["InstanceMetadataTags"] = input.InstanceMetadataTags;
42020
+ }
41955
42021
  return entries;
41956
42022
  };
41957
42023
  var serializeAws_ec2ModifyInstancePlacementRequest = function (input, context) {
@@ -42849,6 +42915,19 @@ var serializeAws_ec2ModifyVpcEndpointServiceConfigurationRequest = function (inp
42849
42915
  }
42850
42916
  return entries;
42851
42917
  };
42918
+ var serializeAws_ec2ModifyVpcEndpointServicePayerResponsibilityRequest = function (input, context) {
42919
+ var entries = {};
42920
+ if (input.DryRun !== undefined && input.DryRun !== null) {
42921
+ entries["DryRun"] = input.DryRun;
42922
+ }
42923
+ if (input.ServiceId !== undefined && input.ServiceId !== null) {
42924
+ entries["ServiceId"] = input.ServiceId;
42925
+ }
42926
+ if (input.PayerResponsibility !== undefined && input.PayerResponsibility !== null) {
42927
+ entries["PayerResponsibility"] = input.PayerResponsibility;
42928
+ }
42929
+ return entries;
42930
+ };
42852
42931
  var serializeAws_ec2ModifyVpcEndpointServicePermissionsRequest = function (input, context) {
42853
42932
  var entries = {};
42854
42933
  if (input.DryRun !== undefined && input.DryRun !== null) {
@@ -50632,6 +50711,7 @@ var deserializeAws_ec2CapacityReservation = function (output, context) {
50632
50711
  Tags: undefined,
50633
50712
  OutpostArn: undefined,
50634
50713
  CapacityReservationFleetId: undefined,
50714
+ PlacementGroupArn: undefined,
50635
50715
  };
50636
50716
  if (output["capacityReservationId"] !== undefined) {
50637
50717
  contents.CapacityReservationId = __expectString(output["capacityReservationId"]);
@@ -50699,6 +50779,9 @@ var deserializeAws_ec2CapacityReservation = function (output, context) {
50699
50779
  if (output["capacityReservationFleetId"] !== undefined) {
50700
50780
  contents.CapacityReservationFleetId = __expectString(output["capacityReservationFleetId"]);
50701
50781
  }
50782
+ if (output["placementGroupArn"] !== undefined) {
50783
+ contents.PlacementGroupArn = __expectString(output["placementGroupArn"]);
50784
+ }
50702
50785
  return contents;
50703
50786
  };
50704
50787
  var deserializeAws_ec2CapacityReservationFleet = function (output, context) {
@@ -59844,6 +59927,7 @@ var deserializeAws_ec2InstanceMetadataOptionsResponse = function (output, contex
59844
59927
  HttpPutResponseHopLimit: undefined,
59845
59928
  HttpEndpoint: undefined,
59846
59929
  HttpProtocolIpv6: undefined,
59930
+ InstanceMetadataTags: undefined,
59847
59931
  };
59848
59932
  if (output["state"] !== undefined) {
59849
59933
  contents.State = __expectString(output["state"]);
@@ -59860,6 +59944,9 @@ var deserializeAws_ec2InstanceMetadataOptionsResponse = function (output, contex
59860
59944
  if (output["httpProtocolIpv6"] !== undefined) {
59861
59945
  contents.HttpProtocolIpv6 = __expectString(output["httpProtocolIpv6"]);
59862
59946
  }
59947
+ if (output["instanceMetadataTags"] !== undefined) {
59948
+ contents.InstanceMetadataTags = __expectString(output["instanceMetadataTags"]);
59949
+ }
59863
59950
  return contents;
59864
59951
  };
59865
59952
  var deserializeAws_ec2InstanceMonitoring = function (output, context) {
@@ -62029,6 +62116,7 @@ var deserializeAws_ec2LaunchTemplateInstanceMetadataOptions = function (output,
62029
62116
  HttpPutResponseHopLimit: undefined,
62030
62117
  HttpEndpoint: undefined,
62031
62118
  HttpProtocolIpv6: undefined,
62119
+ InstanceMetadataTags: undefined,
62032
62120
  };
62033
62121
  if (output["state"] !== undefined) {
62034
62122
  contents.State = __expectString(output["state"]);
@@ -62045,6 +62133,9 @@ var deserializeAws_ec2LaunchTemplateInstanceMetadataOptions = function (output,
62045
62133
  if (output["httpProtocolIpv6"] !== undefined) {
62046
62134
  contents.HttpProtocolIpv6 = __expectString(output["httpProtocolIpv6"]);
62047
62135
  }
62136
+ if (output["instanceMetadataTags"] !== undefined) {
62137
+ contents.InstanceMetadataTags = __expectString(output["instanceMetadataTags"]);
62138
+ }
62048
62139
  return contents;
62049
62140
  };
62050
62141
  var deserializeAws_ec2LaunchTemplateInstanceNetworkInterfaceSpecification = function (output, context) {
@@ -63256,6 +63347,15 @@ var deserializeAws_ec2ModifyVpcEndpointServiceConfigurationResult = function (ou
63256
63347
  }
63257
63348
  return contents;
63258
63349
  };
63350
+ var deserializeAws_ec2ModifyVpcEndpointServicePayerResponsibilityResult = function (output, context) {
63351
+ var contents = {
63352
+ ReturnValue: undefined,
63353
+ };
63354
+ if (output["return"] !== undefined) {
63355
+ contents.ReturnValue = __parseBoolean(output["return"]);
63356
+ }
63357
+ return contents;
63358
+ };
63259
63359
  var deserializeAws_ec2ModifyVpcEndpointServicePermissionsResult = function (output, context) {
63260
63360
  var contents = {
63261
63361
  ReturnValue: undefined,
@@ -64686,6 +64786,7 @@ var deserializeAws_ec2PlacementGroup = function (output, context) {
64686
64786
  PartitionCount: undefined,
64687
64787
  GroupId: undefined,
64688
64788
  Tags: undefined,
64789
+ GroupArn: undefined,
64689
64790
  };
64690
64791
  if (output["groupName"] !== undefined) {
64691
64792
  contents.GroupName = __expectString(output["groupName"]);
@@ -64708,6 +64809,9 @@ var deserializeAws_ec2PlacementGroup = function (output, context) {
64708
64809
  if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) {
64709
64810
  contents.Tags = deserializeAws_ec2TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context);
64710
64811
  }
64812
+ if (output["groupArn"] !== undefined) {
64813
+ contents.GroupArn = __expectString(output["groupArn"]);
64814
+ }
64711
64815
  return contents;
64712
64816
  };
64713
64817
  var deserializeAws_ec2PlacementGroupInfo = function (output, context) {
@@ -67148,6 +67252,7 @@ var deserializeAws_ec2ServiceConfiguration = function (output, context) {
67148
67252
  BaseEndpointDnsNames: undefined,
67149
67253
  PrivateDnsName: undefined,
67150
67254
  PrivateDnsNameConfiguration: undefined,
67255
+ PayerResponsibility: undefined,
67151
67256
  Tags: undefined,
67152
67257
  };
67153
67258
  if (output.serviceType === "") {
@@ -67201,6 +67306,9 @@ var deserializeAws_ec2ServiceConfiguration = function (output, context) {
67201
67306
  if (output["privateDnsNameConfiguration"] !== undefined) {
67202
67307
  contents.PrivateDnsNameConfiguration = deserializeAws_ec2PrivateDnsNameConfiguration(output["privateDnsNameConfiguration"], context);
67203
67308
  }
67309
+ if (output["payerResponsibility"] !== undefined) {
67310
+ contents.PayerResponsibility = __expectString(output["payerResponsibility"]);
67311
+ }
67204
67312
  if (output.tagSet === "") {
67205
67313
  contents.Tags = [];
67206
67314
  }
@@ -67232,6 +67340,7 @@ var deserializeAws_ec2ServiceDetail = function (output, context) {
67232
67340
  VpcEndpointPolicySupported: undefined,
67233
67341
  AcceptanceRequired: undefined,
67234
67342
  ManagesVpcEndpoints: undefined,
67343
+ PayerResponsibility: undefined,
67235
67344
  Tags: undefined,
67236
67345
  PrivateDnsNameVerificationState: undefined,
67237
67346
  };
@@ -67280,6 +67389,9 @@ var deserializeAws_ec2ServiceDetail = function (output, context) {
67280
67389
  if (output["managesVpcEndpoints"] !== undefined) {
67281
67390
  contents.ManagesVpcEndpoints = __parseBoolean(output["managesVpcEndpoints"]);
67282
67391
  }
67392
+ if (output["payerResponsibility"] !== undefined) {
67393
+ contents.PayerResponsibility = __expectString(output["payerResponsibility"]);
67394
+ }
67283
67395
  if (output.tagSet === "") {
67284
67396
  contents.Tags = [];
67285
67397
  }
@@ -12,10 +12,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
16
15
  export var getRuntimeConfig = function (config) {
17
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
- emitWarningIfUnsupportedVersion(process.version);
19
17
  var clientSharedValues = getSharedRuntimeConfig(config);
20
18
  return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
21
19
  };
@@ -443,6 +443,7 @@ import { ModifyVpcAttributeCommandInput, ModifyVpcAttributeCommandOutput } from
443
443
  import { ModifyVpcEndpointCommandInput, ModifyVpcEndpointCommandOutput } from "./commands/ModifyVpcEndpointCommand";
444
444
  import { ModifyVpcEndpointConnectionNotificationCommandInput, ModifyVpcEndpointConnectionNotificationCommandOutput } from "./commands/ModifyVpcEndpointConnectionNotificationCommand";
445
445
  import { ModifyVpcEndpointServiceConfigurationCommandInput, ModifyVpcEndpointServiceConfigurationCommandOutput } from "./commands/ModifyVpcEndpointServiceConfigurationCommand";
446
+ import { ModifyVpcEndpointServicePayerResponsibilityCommandInput, ModifyVpcEndpointServicePayerResponsibilityCommandOutput } from "./commands/ModifyVpcEndpointServicePayerResponsibilityCommand";
446
447
  import { ModifyVpcEndpointServicePermissionsCommandInput, ModifyVpcEndpointServicePermissionsCommandOutput } from "./commands/ModifyVpcEndpointServicePermissionsCommand";
447
448
  import { ModifyVpcPeeringConnectionOptionsCommandInput, ModifyVpcPeeringConnectionOptionsCommandOutput } from "./commands/ModifyVpcPeeringConnectionOptionsCommand";
448
449
  import { ModifyVpcTenancyCommandInput, ModifyVpcTenancyCommandOutput } from "./commands/ModifyVpcTenancyCommand";
@@ -517,10 +518,10 @@ import { WithdrawByoipCidrCommandInput, WithdrawByoipCidrCommandOutput } from ".
517
518
  import { EC2Client } from "./EC2Client";
518
519
  /**
519
520
  * <fullname>Amazon Elastic Compute Cloud</fullname>
520
- * <p>Amazon Elastic Compute Cloud (Amazon EC2) provides secure and resizable computing capacity in the AWS Cloud.
521
+ * <p>Amazon Elastic Compute Cloud (Amazon EC2) provides secure and resizable computing capacity in the Amazon Web Services Cloud.
521
522
  * Using Amazon EC2 eliminates the need to invest in hardware up front, so you can develop and deploy applications
522
523
  * faster. Amazon Virtual Private Cloud (Amazon VPC) enables you to provision a logically isolated section of the
523
- * AWS Cloud where you can launch AWS resources in a virtual network that you've defined. Amazon Elastic Block Store
524
+ * Amazon Web Services Cloud where you can launch Amazon Web Services resources in a virtual network that you've defined. Amazon Elastic Block Store
524
525
  * (Amazon EBS) provides block level storage volumes for use with EC2 instances. EBS volumes are highly available
525
526
  * and reliable storage volumes that can be attached to any running instance and used like a hard drive.</p>
526
527
  * <p>To learn more, see the following resources:</p>
@@ -538,7 +539,7 @@ import { EC2Client } from "./EC2Client";
538
539
  * </p>
539
540
  * </li>
540
541
  * <li>
541
- * <p>AWS VPN: <a href="http://aws.amazon.com/vpn">AWS VPN product page</a>, <a href="http://aws.amazon.com/documentation/vpn">AWS VPN documentation</a>
542
+ * <p>Amazon Web Services VPN: <a href="http://aws.amazon.com/vpn">Amazon Web Services VPN product page</a>, <a href="http://aws.amazon.com/documentation/vpn">Amazon Web Services VPN documentation</a>
542
543
  * </p>
543
544
  * </li>
544
545
  * </ul>
@@ -2593,7 +2594,7 @@ export declare class EC2 extends EC2Client {
2593
2594
  deregisterTransitGatewayMulticastGroupSources(args: DeregisterTransitGatewayMulticastGroupSourcesCommandInput, cb: (err: any, data?: DeregisterTransitGatewayMulticastGroupSourcesCommandOutput) => void): void;
2594
2595
  deregisterTransitGatewayMulticastGroupSources(args: DeregisterTransitGatewayMulticastGroupSourcesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeregisterTransitGatewayMulticastGroupSourcesCommandOutput) => void): void;
2595
2596
  /**
2596
- * <p>Describes attributes of your AWS account. The following are the supported account attributes:</p>
2597
+ * <p>Describes attributes of your Amazon Web Services account. The following are the supported account attributes:</p>
2597
2598
  * <ul>
2598
2599
  * <li>
2599
2600
  * <p>
@@ -3539,7 +3540,10 @@ export declare class EC2 extends EC2Client {
3539
3540
  describeSpotPriceHistory(args: DescribeSpotPriceHistoryCommandInput, cb: (err: any, data?: DescribeSpotPriceHistoryCommandOutput) => void): void;
3540
3541
  describeSpotPriceHistory(args: DescribeSpotPriceHistoryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeSpotPriceHistoryCommandOutput) => void): void;
3541
3542
  /**
3542
- * <p>[VPC only] Describes the stale security group rules for security groups in a specified VPC. Rules are stale when they reference a deleted security group in a peer VPC, or a security group in a peer VPC for which the VPC peering connection has been deleted.</p>
3543
+ * <p>[VPC only] Describes the stale security group rules for security groups in a specified VPC.
3544
+ * Rules are stale when they reference a deleted security group in the same VPC or in a peer VPC,
3545
+ * or if they reference a security group in a peer VPC for which the VPC peering connection has
3546
+ * been deleted.</p>
3543
3547
  */
3544
3548
  describeStaleSecurityGroups(args: DescribeStaleSecurityGroupsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeStaleSecurityGroupsCommandOutput>;
3545
3549
  describeStaleSecurityGroups(args: DescribeStaleSecurityGroupsCommandInput, cb: (err: any, data?: DescribeStaleSecurityGroupsCommandOutput) => void): void;
@@ -5092,6 +5096,12 @@ export declare class EC2 extends EC2Client {
5092
5096
  modifyVpcEndpointServiceConfiguration(args: ModifyVpcEndpointServiceConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<ModifyVpcEndpointServiceConfigurationCommandOutput>;
5093
5097
  modifyVpcEndpointServiceConfiguration(args: ModifyVpcEndpointServiceConfigurationCommandInput, cb: (err: any, data?: ModifyVpcEndpointServiceConfigurationCommandOutput) => void): void;
5094
5098
  modifyVpcEndpointServiceConfiguration(args: ModifyVpcEndpointServiceConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ModifyVpcEndpointServiceConfigurationCommandOutput) => void): void;
5099
+ /**
5100
+ * <p>Modifies the payer responsibility for your VPC endpoint service.</p>
5101
+ */
5102
+ modifyVpcEndpointServicePayerResponsibility(args: ModifyVpcEndpointServicePayerResponsibilityCommandInput, options?: __HttpHandlerOptions): Promise<ModifyVpcEndpointServicePayerResponsibilityCommandOutput>;
5103
+ modifyVpcEndpointServicePayerResponsibility(args: ModifyVpcEndpointServicePayerResponsibilityCommandInput, cb: (err: any, data?: ModifyVpcEndpointServicePayerResponsibilityCommandOutput) => void): void;
5104
+ modifyVpcEndpointServicePayerResponsibility(args: ModifyVpcEndpointServicePayerResponsibilityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ModifyVpcEndpointServicePayerResponsibilityCommandOutput) => void): void;
5095
5105
  /**
5096
5106
  * <p>Modifies the permissions for your <a href="https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-service.html">VPC endpoint service</a>. You can add or remove permissions for service consumers (IAM users,
5097
5107
  * IAM roles, and Amazon Web Services accounts) to connect to your endpoint service.</p>