@aws-sdk/client-ec2 3.199.0 → 3.201.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 (134) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +7 -7
  3. package/dist-cjs/EC2.js +60 -0
  4. package/dist-cjs/commands/AcceptAddressTransferCommand.js +46 -0
  5. package/dist-cjs/commands/CreateDefaultVpcCommand.js +1 -2
  6. package/dist-cjs/commands/DeregisterTransitGatewayMulticastGroupSourcesCommand.js +2 -1
  7. package/dist-cjs/commands/DescribeAccountAttributesCommand.js +3 -3
  8. package/dist-cjs/commands/DescribeAddressTransfersCommand.js +46 -0
  9. package/dist-cjs/commands/DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand.js +3 -3
  10. package/dist-cjs/commands/DescribeLocalGatewayRouteTableVpcAssociationsCommand.js +3 -3
  11. package/dist-cjs/commands/DescribeLocalGatewayRouteTablesCommand.js +3 -3
  12. package/dist-cjs/commands/DisableAddressTransferCommand.js +46 -0
  13. package/dist-cjs/commands/DisassociateVpcCidrBlockCommand.js +2 -1
  14. package/dist-cjs/commands/EnableAddressTransferCommand.js +46 -0
  15. package/dist-cjs/commands/EnableEbsEncryptionByDefaultCommand.js +3 -3
  16. package/dist-cjs/commands/EnableFastLaunchCommand.js +3 -3
  17. package/dist-cjs/commands/EnableFastSnapshotRestoresCommand.js +1 -2
  18. package/dist-cjs/commands/ModifyVpcTenancyCommand.js +3 -3
  19. package/dist-cjs/commands/ModifyVpnConnectionCommand.js +3 -3
  20. package/dist-cjs/commands/ModifyVpnConnectionOptionsCommand.js +3 -3
  21. package/dist-cjs/commands/ModifyVpnTunnelCertificateCommand.js +3 -3
  22. package/dist-cjs/commands/ModifyVpnTunnelOptionsCommand.js +1 -2
  23. package/dist-cjs/commands/index.js +4 -0
  24. package/dist-cjs/endpoint/EndpointParameters.js +2 -3
  25. package/dist-cjs/models/models_0.js +112 -113
  26. package/dist-cjs/models/models_1.js +25 -24
  27. package/dist-cjs/models/models_2.js +24 -22
  28. package/dist-cjs/models/models_3.js +29 -29
  29. package/dist-cjs/models/models_4.js +38 -38
  30. package/dist-cjs/models/models_5.js +46 -46
  31. package/dist-cjs/models/models_6.js +44 -4
  32. package/dist-cjs/pagination/DescribeAddressTransfersPaginator.js +36 -0
  33. package/dist-cjs/pagination/index.js +2 -1
  34. package/dist-cjs/protocols/Aws_ec2.js +332 -33
  35. package/dist-cjs/runtimeConfig.browser.js +16 -16
  36. package/dist-cjs/runtimeConfig.js +20 -19
  37. package/dist-cjs/runtimeConfig.native.js +1 -2
  38. package/dist-cjs/runtimeConfig.shared.js +8 -11
  39. package/dist-es/EC2.js +60 -0
  40. package/dist-es/commands/AcceptAddressTransferCommand.js +42 -0
  41. package/dist-es/commands/CreateDefaultVpcCommand.js +1 -2
  42. package/dist-es/commands/DeregisterTransitGatewayMulticastGroupSourcesCommand.js +2 -1
  43. package/dist-es/commands/DescribeAccountAttributesCommand.js +1 -1
  44. package/dist-es/commands/DescribeAddressTransfersCommand.js +42 -0
  45. package/dist-es/commands/DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand.js +1 -1
  46. package/dist-es/commands/DescribeLocalGatewayRouteTableVpcAssociationsCommand.js +1 -1
  47. package/dist-es/commands/DescribeLocalGatewayRouteTablesCommand.js +1 -1
  48. package/dist-es/commands/DisableAddressTransferCommand.js +42 -0
  49. package/dist-es/commands/DisassociateVpcCidrBlockCommand.js +2 -1
  50. package/dist-es/commands/EnableAddressTransferCommand.js +42 -0
  51. package/dist-es/commands/EnableEbsEncryptionByDefaultCommand.js +1 -1
  52. package/dist-es/commands/EnableFastLaunchCommand.js +1 -1
  53. package/dist-es/commands/EnableFastSnapshotRestoresCommand.js +1 -2
  54. package/dist-es/commands/ModifyVpcTenancyCommand.js +1 -1
  55. package/dist-es/commands/ModifyVpnConnectionCommand.js +1 -1
  56. package/dist-es/commands/ModifyVpnConnectionOptionsCommand.js +1 -1
  57. package/dist-es/commands/ModifyVpnTunnelCertificateCommand.js +1 -1
  58. package/dist-es/commands/ModifyVpnTunnelOptionsCommand.js +1 -2
  59. package/dist-es/commands/index.js +4 -0
  60. package/dist-es/models/models_0.js +101 -103
  61. package/dist-es/models/models_1.js +17 -16
  62. package/dist-es/models/models_2.js +16 -12
  63. package/dist-es/models/models_3.js +18 -18
  64. package/dist-es/models/models_4.js +24 -24
  65. package/dist-es/models/models_5.js +30 -30
  66. package/dist-es/models/models_6.js +30 -0
  67. package/dist-es/pagination/DescribeAddressTransfersPaginator.js +32 -0
  68. package/dist-es/pagination/index.js +2 -1
  69. package/dist-es/protocols/Aws_ec2.js +295 -0
  70. package/dist-types/EC2.d.ts +28 -0
  71. package/dist-types/EC2Client.d.ts +6 -2
  72. package/dist-types/commands/AcceptAddressTransferCommand.d.ts +37 -0
  73. package/dist-types/commands/CreateDefaultVpcCommand.d.ts +1 -2
  74. package/dist-types/commands/DeregisterTransitGatewayMulticastGroupSourcesCommand.d.ts +2 -1
  75. package/dist-types/commands/DescribeAccountAttributesCommand.d.ts +1 -1
  76. package/dist-types/commands/DescribeAddressTransfersCommand.d.ts +37 -0
  77. package/dist-types/commands/DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand.d.ts +1 -1
  78. package/dist-types/commands/DescribeLocalGatewayRouteTableVpcAssociationsCommand.d.ts +1 -1
  79. package/dist-types/commands/DescribeLocalGatewayRouteTablesCommand.d.ts +1 -1
  80. package/dist-types/commands/DisableAddressTransferCommand.d.ts +37 -0
  81. package/dist-types/commands/DisassociateVpcCidrBlockCommand.d.ts +2 -1
  82. package/dist-types/commands/EnableAddressTransferCommand.d.ts +37 -0
  83. package/dist-types/commands/EnableEbsEncryptionByDefaultCommand.d.ts +1 -1
  84. package/dist-types/commands/EnableFastLaunchCommand.d.ts +1 -1
  85. package/dist-types/commands/EnableFastSnapshotRestoresCommand.d.ts +1 -2
  86. package/dist-types/commands/ModifyVpcTenancyCommand.d.ts +1 -1
  87. package/dist-types/commands/ModifyVpnConnectionCommand.d.ts +1 -1
  88. package/dist-types/commands/ModifyVpnConnectionOptionsCommand.d.ts +1 -1
  89. package/dist-types/commands/ModifyVpnTunnelCertificateCommand.d.ts +1 -1
  90. package/dist-types/commands/ModifyVpnTunnelOptionsCommand.d.ts +1 -2
  91. package/dist-types/commands/index.d.ts +4 -0
  92. package/dist-types/models/models_0.d.ts +194 -192
  93. package/dist-types/models/models_1.d.ts +67 -75
  94. package/dist-types/models/models_2.d.ts +78 -57
  95. package/dist-types/models/models_3.d.ts +97 -222
  96. package/dist-types/models/models_4.d.ts +244 -178
  97. package/dist-types/models/models_5.d.ts +214 -374
  98. package/dist-types/models/models_6.d.ts +374 -5
  99. package/dist-types/pagination/DescribeAddressTransfersPaginator.d.ts +4 -0
  100. package/dist-types/pagination/index.d.ts +2 -1
  101. package/dist-types/protocols/Aws_ec2.d.ts +12 -0
  102. package/dist-types/ts3.4/EC2.d.ts +68 -0
  103. package/dist-types/ts3.4/EC2Client.d.ts +24 -0
  104. package/dist-types/ts3.4/commands/AcceptAddressTransferCommand.d.ts +41 -0
  105. package/dist-types/ts3.4/commands/CreateDefaultVpcCommand.d.ts +4 -2
  106. package/dist-types/ts3.4/commands/DeregisterTransitGatewayMulticastGroupSourcesCommand.d.ts +2 -4
  107. package/dist-types/ts3.4/commands/DescribeAccountAttributesCommand.d.ts +1 -1
  108. package/dist-types/ts3.4/commands/DescribeAddressTransfersCommand.d.ts +41 -0
  109. package/dist-types/ts3.4/commands/DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsCommand.d.ts +1 -1
  110. package/dist-types/ts3.4/commands/DescribeLocalGatewayRouteTableVpcAssociationsCommand.d.ts +1 -1
  111. package/dist-types/ts3.4/commands/DescribeLocalGatewayRouteTablesCommand.d.ts +1 -1
  112. package/dist-types/ts3.4/commands/DisableAddressTransferCommand.d.ts +41 -0
  113. package/dist-types/ts3.4/commands/DisassociateVpcCidrBlockCommand.d.ts +2 -4
  114. package/dist-types/ts3.4/commands/EnableAddressTransferCommand.d.ts +41 -0
  115. package/dist-types/ts3.4/commands/EnableEbsEncryptionByDefaultCommand.d.ts +1 -1
  116. package/dist-types/ts3.4/commands/EnableFastLaunchCommand.d.ts +1 -1
  117. package/dist-types/ts3.4/commands/EnableFastSnapshotRestoresCommand.d.ts +4 -2
  118. package/dist-types/ts3.4/commands/ModifyVpcTenancyCommand.d.ts +1 -1
  119. package/dist-types/ts3.4/commands/ModifyVpnConnectionCommand.d.ts +1 -1
  120. package/dist-types/ts3.4/commands/ModifyVpnConnectionOptionsCommand.d.ts +1 -1
  121. package/dist-types/ts3.4/commands/ModifyVpnTunnelCertificateCommand.d.ts +1 -1
  122. package/dist-types/ts3.4/commands/ModifyVpnTunnelOptionsCommand.d.ts +4 -2
  123. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  124. package/dist-types/ts3.4/models/models_0.d.ts +121 -119
  125. package/dist-types/ts3.4/models/models_1.d.ts +30 -33
  126. package/dist-types/ts3.4/models/models_2.d.ts +33 -34
  127. package/dist-types/ts3.4/models/models_3.d.ts +46 -54
  128. package/dist-types/ts3.4/models/models_4.d.ts +70 -71
  129. package/dist-types/ts3.4/models/models_5.d.ts +91 -106
  130. package/dist-types/ts3.4/models/models_6.d.ts +107 -1
  131. package/dist-types/ts3.4/pagination/DescribeAddressTransfersPaginator.d.ts +11 -0
  132. package/dist-types/ts3.4/pagination/index.d.ts +2 -1
  133. package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +48 -0
  134. package/package.json +35 -35
@@ -3,6 +3,18 @@ import { expectNonNull as __expectNonNull, expectString as __expectString, exten
3
3
  import { XMLParser } from "fast-xml-parser";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
5
  import { EC2ServiceException as __BaseException } from "../models/EC2ServiceException";
6
+ export const serializeAws_ec2AcceptAddressTransferCommand = async (input, context) => {
7
+ const headers = {
8
+ "content-type": "application/x-www-form-urlencoded",
9
+ };
10
+ let body;
11
+ body = buildFormUrlencodedString({
12
+ ...serializeAws_ec2AcceptAddressTransferRequest(input, context),
13
+ Action: "AcceptAddressTransfer",
14
+ Version: "2016-11-15",
15
+ });
16
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
17
+ };
6
18
  export const serializeAws_ec2AcceptReservedInstancesExchangeQuoteCommand = async (input, context) => {
7
19
  const headers = {
8
20
  "content-type": "application/x-www-form-urlencoded",
@@ -2427,6 +2439,18 @@ export const serializeAws_ec2DescribeAddressesAttributeCommand = async (input, c
2427
2439
  });
2428
2440
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
2429
2441
  };
2442
+ export const serializeAws_ec2DescribeAddressTransfersCommand = async (input, context) => {
2443
+ const headers = {
2444
+ "content-type": "application/x-www-form-urlencoded",
2445
+ };
2446
+ let body;
2447
+ body = buildFormUrlencodedString({
2448
+ ...serializeAws_ec2DescribeAddressTransfersRequest(input, context),
2449
+ Action: "DescribeAddressTransfers",
2450
+ Version: "2016-11-15",
2451
+ });
2452
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
2453
+ };
2430
2454
  export const serializeAws_ec2DescribeAggregateIdFormatCommand = async (input, context) => {
2431
2455
  const headers = {
2432
2456
  "content-type": "application/x-www-form-urlencoded",
@@ -4071,6 +4095,18 @@ export const serializeAws_ec2DetachVpnGatewayCommand = async (input, context) =>
4071
4095
  });
4072
4096
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
4073
4097
  };
4098
+ export const serializeAws_ec2DisableAddressTransferCommand = async (input, context) => {
4099
+ const headers = {
4100
+ "content-type": "application/x-www-form-urlencoded",
4101
+ };
4102
+ let body;
4103
+ body = buildFormUrlencodedString({
4104
+ ...serializeAws_ec2DisableAddressTransferRequest(input, context),
4105
+ Action: "DisableAddressTransfer",
4106
+ Version: "2016-11-15",
4107
+ });
4108
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
4109
+ };
4074
4110
  export const serializeAws_ec2DisableEbsEncryptionByDefaultCommand = async (input, context) => {
4075
4111
  const headers = {
4076
4112
  "content-type": "application/x-www-form-urlencoded",
@@ -4335,6 +4371,18 @@ export const serializeAws_ec2DisassociateVpcCidrBlockCommand = async (input, con
4335
4371
  });
4336
4372
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
4337
4373
  };
4374
+ export const serializeAws_ec2EnableAddressTransferCommand = async (input, context) => {
4375
+ const headers = {
4376
+ "content-type": "application/x-www-form-urlencoded",
4377
+ };
4378
+ let body;
4379
+ body = buildFormUrlencodedString({
4380
+ ...serializeAws_ec2EnableAddressTransferRequest(input, context),
4381
+ Action: "EnableAddressTransfer",
4382
+ Version: "2016-11-15",
4383
+ });
4384
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
4385
+ };
4338
4386
  export const serializeAws_ec2EnableEbsEncryptionByDefaultCommand = async (input, context) => {
4339
4387
  const headers = {
4340
4388
  "content-type": "application/x-www-form-urlencoded",
@@ -6507,6 +6555,33 @@ export const serializeAws_ec2WithdrawByoipCidrCommand = async (input, context) =
6507
6555
  });
6508
6556
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
6509
6557
  };
6558
+ export const deserializeAws_ec2AcceptAddressTransferCommand = async (output, context) => {
6559
+ if (output.statusCode >= 300) {
6560
+ return deserializeAws_ec2AcceptAddressTransferCommandError(output, context);
6561
+ }
6562
+ const data = await parseBody(output.body, context);
6563
+ let contents = {};
6564
+ contents = deserializeAws_ec2AcceptAddressTransferResult(data, context);
6565
+ const response = {
6566
+ $metadata: deserializeMetadata(output),
6567
+ ...contents,
6568
+ };
6569
+ return Promise.resolve(response);
6570
+ };
6571
+ const deserializeAws_ec2AcceptAddressTransferCommandError = async (output, context) => {
6572
+ const parsedOutput = {
6573
+ ...output,
6574
+ body: await parseErrorBody(output.body, context),
6575
+ };
6576
+ const errorCode = loadEc2ErrorCode(output, parsedOutput.body);
6577
+ const parsedBody = parsedOutput.body;
6578
+ throwDefaultError({
6579
+ output,
6580
+ parsedBody: parsedBody.Errors.Error,
6581
+ exceptionCtor: __BaseException,
6582
+ errorCode,
6583
+ });
6584
+ };
6510
6585
  export const deserializeAws_ec2AcceptReservedInstancesExchangeQuoteCommand = async (output, context) => {
6511
6586
  if (output.statusCode >= 300) {
6512
6587
  return deserializeAws_ec2AcceptReservedInstancesExchangeQuoteCommandError(output, context);
@@ -11877,6 +11952,33 @@ const deserializeAws_ec2DescribeAddressesAttributeCommandError = async (output,
11877
11952
  errorCode,
11878
11953
  });
11879
11954
  };
11955
+ export const deserializeAws_ec2DescribeAddressTransfersCommand = async (output, context) => {
11956
+ if (output.statusCode >= 300) {
11957
+ return deserializeAws_ec2DescribeAddressTransfersCommandError(output, context);
11958
+ }
11959
+ const data = await parseBody(output.body, context);
11960
+ let contents = {};
11961
+ contents = deserializeAws_ec2DescribeAddressTransfersResult(data, context);
11962
+ const response = {
11963
+ $metadata: deserializeMetadata(output),
11964
+ ...contents,
11965
+ };
11966
+ return Promise.resolve(response);
11967
+ };
11968
+ const deserializeAws_ec2DescribeAddressTransfersCommandError = async (output, context) => {
11969
+ const parsedOutput = {
11970
+ ...output,
11971
+ body: await parseErrorBody(output.body, context),
11972
+ };
11973
+ const errorCode = loadEc2ErrorCode(output, parsedOutput.body);
11974
+ const parsedBody = parsedOutput.body;
11975
+ throwDefaultError({
11976
+ output,
11977
+ parsedBody: parsedBody.Errors.Error,
11978
+ exceptionCtor: __BaseException,
11979
+ errorCode,
11980
+ });
11981
+ };
11880
11982
  export const deserializeAws_ec2DescribeAggregateIdFormatCommand = async (output, context) => {
11881
11983
  if (output.statusCode >= 300) {
11882
11984
  return deserializeAws_ec2DescribeAggregateIdFormatCommandError(output, context);
@@ -15567,6 +15669,33 @@ const deserializeAws_ec2DetachVpnGatewayCommandError = async (output, context) =
15567
15669
  errorCode,
15568
15670
  });
15569
15671
  };
15672
+ export const deserializeAws_ec2DisableAddressTransferCommand = async (output, context) => {
15673
+ if (output.statusCode >= 300) {
15674
+ return deserializeAws_ec2DisableAddressTransferCommandError(output, context);
15675
+ }
15676
+ const data = await parseBody(output.body, context);
15677
+ let contents = {};
15678
+ contents = deserializeAws_ec2DisableAddressTransferResult(data, context);
15679
+ const response = {
15680
+ $metadata: deserializeMetadata(output),
15681
+ ...contents,
15682
+ };
15683
+ return Promise.resolve(response);
15684
+ };
15685
+ const deserializeAws_ec2DisableAddressTransferCommandError = async (output, context) => {
15686
+ const parsedOutput = {
15687
+ ...output,
15688
+ body: await parseErrorBody(output.body, context),
15689
+ };
15690
+ const errorCode = loadEc2ErrorCode(output, parsedOutput.body);
15691
+ const parsedBody = parsedOutput.body;
15692
+ throwDefaultError({
15693
+ output,
15694
+ parsedBody: parsedBody.Errors.Error,
15695
+ exceptionCtor: __BaseException,
15696
+ errorCode,
15697
+ });
15698
+ };
15570
15699
  export const deserializeAws_ec2DisableEbsEncryptionByDefaultCommand = async (output, context) => {
15571
15700
  if (output.statusCode >= 300) {
15572
15701
  return deserializeAws_ec2DisableEbsEncryptionByDefaultCommandError(output, context);
@@ -16152,6 +16281,33 @@ const deserializeAws_ec2DisassociateVpcCidrBlockCommandError = async (output, co
16152
16281
  errorCode,
16153
16282
  });
16154
16283
  };
16284
+ export const deserializeAws_ec2EnableAddressTransferCommand = async (output, context) => {
16285
+ if (output.statusCode >= 300) {
16286
+ return deserializeAws_ec2EnableAddressTransferCommandError(output, context);
16287
+ }
16288
+ const data = await parseBody(output.body, context);
16289
+ let contents = {};
16290
+ contents = deserializeAws_ec2EnableAddressTransferResult(data, context);
16291
+ const response = {
16292
+ $metadata: deserializeMetadata(output),
16293
+ ...contents,
16294
+ };
16295
+ return Promise.resolve(response);
16296
+ };
16297
+ const deserializeAws_ec2EnableAddressTransferCommandError = async (output, context) => {
16298
+ const parsedOutput = {
16299
+ ...output,
16300
+ body: await parseErrorBody(output.body, context),
16301
+ };
16302
+ const errorCode = loadEc2ErrorCode(output, parsedOutput.body);
16303
+ const parsedBody = parsedOutput.body;
16304
+ throwDefaultError({
16305
+ output,
16306
+ parsedBody: parsedBody.Errors.Error,
16307
+ exceptionCtor: __BaseException,
16308
+ errorCode,
16309
+ });
16310
+ };
16155
16311
  export const deserializeAws_ec2EnableEbsEncryptionByDefaultCommand = async (output, context) => {
16156
16312
  if (output.statusCode >= 300) {
16157
16313
  return deserializeAws_ec2EnableEbsEncryptionByDefaultCommandError(output, context);
@@ -21049,6 +21205,23 @@ const serializeAws_ec2AcceleratorTypeSet = (input, context) => {
21049
21205
  }
21050
21206
  return entries;
21051
21207
  };
21208
+ const serializeAws_ec2AcceptAddressTransferRequest = (input, context) => {
21209
+ const entries = {};
21210
+ if (input.Address != null) {
21211
+ entries["Address"] = input.Address;
21212
+ }
21213
+ if (input.TagSpecifications != null) {
21214
+ const memberEntries = serializeAws_ec2TagSpecificationList(input.TagSpecifications, context);
21215
+ Object.entries(memberEntries).forEach(([key, value]) => {
21216
+ const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
21217
+ entries[loc] = value;
21218
+ });
21219
+ }
21220
+ if (input.DryRun != null) {
21221
+ entries["DryRun"] = input.DryRun;
21222
+ }
21223
+ return entries;
21224
+ };
21052
21225
  const serializeAws_ec2AcceptReservedInstancesExchangeQuoteRequest = (input, context) => {
21053
21226
  const entries = {};
21054
21227
  if (input.DryRun != null) {
@@ -25980,6 +26153,26 @@ const serializeAws_ec2DescribeAddressesRequest = (input, context) => {
25980
26153
  }
25981
26154
  return entries;
25982
26155
  };
26156
+ const serializeAws_ec2DescribeAddressTransfersRequest = (input, context) => {
26157
+ const entries = {};
26158
+ if (input.AllocationIds != null) {
26159
+ const memberEntries = serializeAws_ec2AllocationIdList(input.AllocationIds, context);
26160
+ Object.entries(memberEntries).forEach(([key, value]) => {
26161
+ const loc = `AllocationId.${key.substring(key.indexOf(".") + 1)}`;
26162
+ entries[loc] = value;
26163
+ });
26164
+ }
26165
+ if (input.NextToken != null) {
26166
+ entries["NextToken"] = input.NextToken;
26167
+ }
26168
+ if (input.MaxResults != null) {
26169
+ entries["MaxResults"] = input.MaxResults;
26170
+ }
26171
+ if (input.DryRun != null) {
26172
+ entries["DryRun"] = input.DryRun;
26173
+ }
26174
+ return entries;
26175
+ };
25983
26176
  const serializeAws_ec2DescribeAggregateIdFormatRequest = (input, context) => {
25984
26177
  const entries = {};
25985
26178
  if (input.DryRun != null) {
@@ -29383,6 +29576,16 @@ const serializeAws_ec2DirectoryServiceAuthenticationRequest = (input, context) =
29383
29576
  }
29384
29577
  return entries;
29385
29578
  };
29579
+ const serializeAws_ec2DisableAddressTransferRequest = (input, context) => {
29580
+ const entries = {};
29581
+ if (input.AllocationId != null) {
29582
+ entries["AllocationId"] = input.AllocationId;
29583
+ }
29584
+ if (input.DryRun != null) {
29585
+ entries["DryRun"] = input.DryRun;
29586
+ }
29587
+ return entries;
29588
+ };
29386
29589
  const serializeAws_ec2DisableEbsEncryptionByDefaultRequest = (input, context) => {
29387
29590
  const entries = {};
29388
29591
  if (input.DryRun != null) {
@@ -29843,6 +30046,19 @@ const serializeAws_ec2ElasticInferenceAccelerators = (input, context) => {
29843
30046
  }
29844
30047
  return entries;
29845
30048
  };
30049
+ const serializeAws_ec2EnableAddressTransferRequest = (input, context) => {
30050
+ const entries = {};
30051
+ if (input.AllocationId != null) {
30052
+ entries["AllocationId"] = input.AllocationId;
30053
+ }
30054
+ if (input.TransferAccountId != null) {
30055
+ entries["TransferAccountId"] = input.TransferAccountId;
30056
+ }
30057
+ if (input.DryRun != null) {
30058
+ entries["DryRun"] = input.DryRun;
30059
+ }
30060
+ return entries;
30061
+ };
29846
30062
  const serializeAws_ec2EnableEbsEncryptionByDefaultRequest = (input, context) => {
29847
30063
  const entries = {};
29848
30064
  if (input.DryRun != null) {
@@ -39766,6 +39982,15 @@ const deserializeAws_ec2AcceleratorTypeSet = (output, context) => {
39766
39982
  return __expectString(entry);
39767
39983
  });
39768
39984
  };
39985
+ const deserializeAws_ec2AcceptAddressTransferResult = (output, context) => {
39986
+ const contents = {
39987
+ AddressTransfer: undefined,
39988
+ };
39989
+ if (output["addressTransfer"] !== undefined) {
39990
+ contents.AddressTransfer = deserializeAws_ec2AddressTransfer(output["addressTransfer"], context);
39991
+ }
39992
+ return contents;
39993
+ };
39769
39994
  const deserializeAws_ec2AcceptReservedInstancesExchangeQuoteResult = (output, context) => {
39770
39995
  const contents = {
39771
39996
  ExchangeId: undefined,
@@ -40095,6 +40320,42 @@ const deserializeAws_ec2AddressSet = (output, context) => {
40095
40320
  return deserializeAws_ec2AddressAttribute(entry, context);
40096
40321
  });
40097
40322
  };
40323
+ const deserializeAws_ec2AddressTransfer = (output, context) => {
40324
+ const contents = {
40325
+ PublicIp: undefined,
40326
+ AllocationId: undefined,
40327
+ TransferAccountId: undefined,
40328
+ TransferOfferExpirationTimestamp: undefined,
40329
+ TransferOfferAcceptedTimestamp: undefined,
40330
+ AddressTransferStatus: undefined,
40331
+ };
40332
+ if (output["publicIp"] !== undefined) {
40333
+ contents.PublicIp = __expectString(output["publicIp"]);
40334
+ }
40335
+ if (output["allocationId"] !== undefined) {
40336
+ contents.AllocationId = __expectString(output["allocationId"]);
40337
+ }
40338
+ if (output["transferAccountId"] !== undefined) {
40339
+ contents.TransferAccountId = __expectString(output["transferAccountId"]);
40340
+ }
40341
+ if (output["transferOfferExpirationTimestamp"] !== undefined) {
40342
+ contents.TransferOfferExpirationTimestamp = __expectNonNull(__parseRfc3339DateTime(output["transferOfferExpirationTimestamp"]));
40343
+ }
40344
+ if (output["transferOfferAcceptedTimestamp"] !== undefined) {
40345
+ contents.TransferOfferAcceptedTimestamp = __expectNonNull(__parseRfc3339DateTime(output["transferOfferAcceptedTimestamp"]));
40346
+ }
40347
+ if (output["addressTransferStatus"] !== undefined) {
40348
+ contents.AddressTransferStatus = __expectString(output["addressTransferStatus"]);
40349
+ }
40350
+ return contents;
40351
+ };
40352
+ const deserializeAws_ec2AddressTransferList = (output, context) => {
40353
+ return (output || [])
40354
+ .filter((e) => e != null)
40355
+ .map((entry) => {
40356
+ return deserializeAws_ec2AddressTransfer(entry, context);
40357
+ });
40358
+ };
40098
40359
  const deserializeAws_ec2AdvertiseByoipCidrResult = (output, context) => {
40099
40360
  const contents = {
40100
40361
  ByoipCidr: undefined,
@@ -43969,6 +44230,22 @@ const deserializeAws_ec2DescribeAddressesResult = (output, context) => {
43969
44230
  }
43970
44231
  return contents;
43971
44232
  };
44233
+ const deserializeAws_ec2DescribeAddressTransfersResult = (output, context) => {
44234
+ const contents = {
44235
+ AddressTransfers: undefined,
44236
+ NextToken: undefined,
44237
+ };
44238
+ if (output.addressTransferSet === "") {
44239
+ contents.AddressTransfers = [];
44240
+ }
44241
+ else if (output["addressTransferSet"] !== undefined && output["addressTransferSet"]["item"] !== undefined) {
44242
+ contents.AddressTransfers = deserializeAws_ec2AddressTransferList(__getArrayIfSingleItem(output["addressTransferSet"]["item"]), context);
44243
+ }
44244
+ if (output["nextToken"] !== undefined) {
44245
+ contents.NextToken = __expectString(output["nextToken"]);
44246
+ }
44247
+ return contents;
44248
+ };
43972
44249
  const deserializeAws_ec2DescribeAggregateIdFormatResult = (output, context) => {
43973
44250
  const contents = {
43974
44251
  UseLongIdsAggregated: undefined,
@@ -46344,6 +46621,15 @@ const deserializeAws_ec2DirectoryServiceAuthentication = (output, context) => {
46344
46621
  }
46345
46622
  return contents;
46346
46623
  };
46624
+ const deserializeAws_ec2DisableAddressTransferResult = (output, context) => {
46625
+ const contents = {
46626
+ AddressTransfer: undefined,
46627
+ };
46628
+ if (output["addressTransfer"] !== undefined) {
46629
+ contents.AddressTransfer = deserializeAws_ec2AddressTransfer(output["addressTransfer"], context);
46630
+ }
46631
+ return contents;
46632
+ };
46347
46633
  const deserializeAws_ec2DisableEbsEncryptionByDefaultResult = (output, context) => {
46348
46634
  const contents = {
46349
46635
  EbsEncryptionByDefault: undefined,
@@ -47052,6 +47338,15 @@ const deserializeAws_ec2ElasticInferenceAcceleratorAssociationList = (output, co
47052
47338
  return deserializeAws_ec2ElasticInferenceAcceleratorAssociation(entry, context);
47053
47339
  });
47054
47340
  };
47341
+ const deserializeAws_ec2EnableAddressTransferResult = (output, context) => {
47342
+ const contents = {
47343
+ AddressTransfer: undefined,
47344
+ };
47345
+ if (output["addressTransfer"] !== undefined) {
47346
+ contents.AddressTransfer = deserializeAws_ec2AddressTransfer(output["addressTransfer"], context);
47347
+ }
47348
+ return contents;
47349
+ };
47055
47350
  const deserializeAws_ec2EnableEbsEncryptionByDefaultResult = (output, context) => {
47056
47351
  const contents = {
47057
47352
  EbsEncryptionByDefault: undefined,
@@ -1,4 +1,5 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
+ import { AcceptAddressTransferCommandInput, AcceptAddressTransferCommandOutput } from "./commands/AcceptAddressTransferCommand";
2
3
  import { AcceptReservedInstancesExchangeQuoteCommandInput, AcceptReservedInstancesExchangeQuoteCommandOutput } from "./commands/AcceptReservedInstancesExchangeQuoteCommand";
3
4
  import { AcceptTransitGatewayMulticastDomainAssociationsCommandInput, AcceptTransitGatewayMulticastDomainAssociationsCommandOutput } from "./commands/AcceptTransitGatewayMulticastDomainAssociationsCommand";
4
5
  import { AcceptTransitGatewayPeeringAttachmentCommandInput, AcceptTransitGatewayPeeringAttachmentCommandOutput } from "./commands/AcceptTransitGatewayPeeringAttachmentCommand";
@@ -201,6 +202,7 @@ import { DeregisterTransitGatewayMulticastGroupSourcesCommandInput, DeregisterTr
201
202
  import { DescribeAccountAttributesCommandInput, DescribeAccountAttributesCommandOutput } from "./commands/DescribeAccountAttributesCommand";
202
203
  import { DescribeAddressesAttributeCommandInput, DescribeAddressesAttributeCommandOutput } from "./commands/DescribeAddressesAttributeCommand";
203
204
  import { DescribeAddressesCommandInput, DescribeAddressesCommandOutput } from "./commands/DescribeAddressesCommand";
205
+ import { DescribeAddressTransfersCommandInput, DescribeAddressTransfersCommandOutput } from "./commands/DescribeAddressTransfersCommand";
204
206
  import { DescribeAggregateIdFormatCommandInput, DescribeAggregateIdFormatCommandOutput } from "./commands/DescribeAggregateIdFormatCommand";
205
207
  import { DescribeAvailabilityZonesCommandInput, DescribeAvailabilityZonesCommandOutput } from "./commands/DescribeAvailabilityZonesCommand";
206
208
  import { DescribeBundleTasksCommandInput, DescribeBundleTasksCommandOutput } from "./commands/DescribeBundleTasksCommand";
@@ -338,6 +340,7 @@ import { DetachInternetGatewayCommandInput, DetachInternetGatewayCommandOutput }
338
340
  import { DetachNetworkInterfaceCommandInput, DetachNetworkInterfaceCommandOutput } from "./commands/DetachNetworkInterfaceCommand";
339
341
  import { DetachVolumeCommandInput, DetachVolumeCommandOutput } from "./commands/DetachVolumeCommand";
340
342
  import { DetachVpnGatewayCommandInput, DetachVpnGatewayCommandOutput } from "./commands/DetachVpnGatewayCommand";
343
+ import { DisableAddressTransferCommandInput, DisableAddressTransferCommandOutput } from "./commands/DisableAddressTransferCommand";
341
344
  import { DisableEbsEncryptionByDefaultCommandInput, DisableEbsEncryptionByDefaultCommandOutput } from "./commands/DisableEbsEncryptionByDefaultCommand";
342
345
  import { DisableFastLaunchCommandInput, DisableFastLaunchCommandOutput } from "./commands/DisableFastLaunchCommand";
343
346
  import { DisableFastSnapshotRestoresCommandInput, DisableFastSnapshotRestoresCommandOutput } from "./commands/DisableFastSnapshotRestoresCommand";
@@ -360,6 +363,7 @@ import { DisassociateTransitGatewayPolicyTableCommandInput, DisassociateTransitG
360
363
  import { DisassociateTransitGatewayRouteTableCommandInput, DisassociateTransitGatewayRouteTableCommandOutput } from "./commands/DisassociateTransitGatewayRouteTableCommand";
361
364
  import { DisassociateTrunkInterfaceCommandInput, DisassociateTrunkInterfaceCommandOutput } from "./commands/DisassociateTrunkInterfaceCommand";
362
365
  import { DisassociateVpcCidrBlockCommandInput, DisassociateVpcCidrBlockCommandOutput } from "./commands/DisassociateVpcCidrBlockCommand";
366
+ import { EnableAddressTransferCommandInput, EnableAddressTransferCommandOutput } from "./commands/EnableAddressTransferCommand";
363
367
  import { EnableEbsEncryptionByDefaultCommandInput, EnableEbsEncryptionByDefaultCommandOutput } from "./commands/EnableEbsEncryptionByDefaultCommand";
364
368
  import { EnableFastLaunchCommandInput, EnableFastLaunchCommandOutput } from "./commands/EnableFastLaunchCommand";
365
369
  import { EnableFastSnapshotRestoresCommandInput, EnableFastSnapshotRestoresCommandOutput } from "./commands/EnableFastSnapshotRestoresCommand";
@@ -571,6 +575,12 @@ import { EC2Client } from "./EC2Client";
571
575
  * </ul>
572
576
  */
573
577
  export declare class EC2 extends EC2Client {
578
+ /**
579
+ * <p>Accepts an Elastic IP address transfer. For more information, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/vpc-eips.html#using-instance-addressing-eips-transfer-accept">Accept a transferred Elastic IP address</a> in the <i>Amazon Virtual Private Cloud User Guide</i>.</p>
580
+ */
581
+ acceptAddressTransfer(args: AcceptAddressTransferCommandInput, options?: __HttpHandlerOptions): Promise<AcceptAddressTransferCommandOutput>;
582
+ acceptAddressTransfer(args: AcceptAddressTransferCommandInput, cb: (err: any, data?: AcceptAddressTransferCommandOutput) => void): void;
583
+ acceptAddressTransfer(args: AcceptAddressTransferCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AcceptAddressTransferCommandOutput) => void): void;
574
584
  /**
575
585
  * <p>Accepts the Convertible Reserved Instance exchange quote described in the <a>GetReservedInstancesExchangeQuote</a> call.</p>
576
586
  */
@@ -2802,6 +2812,12 @@ export declare class EC2 extends EC2Client {
2802
2812
  describeAddressesAttribute(args: DescribeAddressesAttributeCommandInput, options?: __HttpHandlerOptions): Promise<DescribeAddressesAttributeCommandOutput>;
2803
2813
  describeAddressesAttribute(args: DescribeAddressesAttributeCommandInput, cb: (err: any, data?: DescribeAddressesAttributeCommandOutput) => void): void;
2804
2814
  describeAddressesAttribute(args: DescribeAddressesAttributeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeAddressesAttributeCommandOutput) => void): void;
2815
+ /**
2816
+ * <p>Describes an Elastic IP address transfer. For more information, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/vpc-eips.html#transfer-EIPs-intro">Transfer Elastic IP addresses</a> in the <i>Amazon Virtual Private Cloud User Guide</i>.</p>
2817
+ */
2818
+ describeAddressTransfers(args: DescribeAddressTransfersCommandInput, options?: __HttpHandlerOptions): Promise<DescribeAddressTransfersCommandOutput>;
2819
+ describeAddressTransfers(args: DescribeAddressTransfersCommandInput, cb: (err: any, data?: DescribeAddressTransfersCommandOutput) => void): void;
2820
+ describeAddressTransfers(args: DescribeAddressTransfersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeAddressTransfersCommandOutput) => void): void;
2805
2821
  /**
2806
2822
  * <p>Describes the longer ID format settings for all resource types in a specific
2807
2823
  * Region. This request is useful for performing a quick audit to determine whether a
@@ -4066,6 +4082,12 @@ export declare class EC2 extends EC2Client {
4066
4082
  detachVpnGateway(args: DetachVpnGatewayCommandInput, options?: __HttpHandlerOptions): Promise<DetachVpnGatewayCommandOutput>;
4067
4083
  detachVpnGateway(args: DetachVpnGatewayCommandInput, cb: (err: any, data?: DetachVpnGatewayCommandOutput) => void): void;
4068
4084
  detachVpnGateway(args: DetachVpnGatewayCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DetachVpnGatewayCommandOutput) => void): void;
4085
+ /**
4086
+ * <p>Disables Elastic IP address transfer. For more information, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/vpc-eips.html#transfer-EIPs-intro">Transfer Elastic IP addresses</a> in the <i>Amazon Virtual Private Cloud User Guide</i>.</p>
4087
+ */
4088
+ disableAddressTransfer(args: DisableAddressTransferCommandInput, options?: __HttpHandlerOptions): Promise<DisableAddressTransferCommandOutput>;
4089
+ disableAddressTransfer(args: DisableAddressTransferCommandInput, cb: (err: any, data?: DisableAddressTransferCommandOutput) => void): void;
4090
+ disableAddressTransfer(args: DisableAddressTransferCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisableAddressTransferCommandOutput) => void): void;
4069
4091
  /**
4070
4092
  * <p>Disables EBS encryption by default for your account in the current Region.</p>
4071
4093
  * <p>After you disable encryption by default, you can still create encrypted volumes by
@@ -4273,6 +4295,12 @@ export declare class EC2 extends EC2Client {
4273
4295
  disassociateVpcCidrBlock(args: DisassociateVpcCidrBlockCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateVpcCidrBlockCommandOutput>;
4274
4296
  disassociateVpcCidrBlock(args: DisassociateVpcCidrBlockCommandInput, cb: (err: any, data?: DisassociateVpcCidrBlockCommandOutput) => void): void;
4275
4297
  disassociateVpcCidrBlock(args: DisassociateVpcCidrBlockCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateVpcCidrBlockCommandOutput) => void): void;
4298
+ /**
4299
+ * <p>Enables Elastic IP address transfer. For more information, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/vpc-eips.html#transfer-EIPs-intro">Transfer Elastic IP addresses</a> in the <i>Amazon Virtual Private Cloud User Guide</i>.</p>
4300
+ */
4301
+ enableAddressTransfer(args: EnableAddressTransferCommandInput, options?: __HttpHandlerOptions): Promise<EnableAddressTransferCommandOutput>;
4302
+ enableAddressTransfer(args: EnableAddressTransferCommandInput, cb: (err: any, data?: EnableAddressTransferCommandOutput) => void): void;
4303
+ enableAddressTransfer(args: EnableAddressTransferCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: EnableAddressTransferCommandOutput) => void): void;
4276
4304
  /**
4277
4305
  * <p>Enables EBS encryption by default for your account in the current Region.</p>
4278
4306
  * <p>After you enable encryption by default, the EBS volumes that you create are