@aws-sdk/client-ec2 3.48.0 → 3.52.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 (71) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist-cjs/EC2.js +30 -0
  3. package/dist-cjs/commands/ListImagesInRecycleBinCommand.js +36 -0
  4. package/dist-cjs/commands/ResetInstanceAttributeCommand.js +2 -2
  5. package/dist-cjs/commands/ResetNetworkInterfaceAttributeCommand.js +2 -2
  6. package/dist-cjs/commands/ResetSnapshotAttributeCommand.js +2 -2
  7. package/dist-cjs/commands/RestoreImageFromRecycleBinCommand.js +36 -0
  8. package/dist-cjs/commands/index.js +2 -0
  9. package/dist-cjs/models/models_5.js +23 -23
  10. package/dist-cjs/models/models_6.js +32 -2
  11. package/dist-cjs/pagination/ListImagesInRecycleBinPaginator.js +35 -0
  12. package/dist-cjs/pagination/index.js +1 -0
  13. package/dist-cjs/protocols/Aws_ec2.js +207 -13
  14. package/dist-es/EC2.js +30 -0
  15. package/dist-es/commands/ListImagesInRecycleBinCommand.js +39 -0
  16. package/dist-es/commands/ResetInstanceAttributeCommand.js +1 -1
  17. package/dist-es/commands/ResetNetworkInterfaceAttributeCommand.js +1 -1
  18. package/dist-es/commands/ResetSnapshotAttributeCommand.js +1 -1
  19. package/dist-es/commands/RestoreImageFromRecycleBinCommand.js +39 -0
  20. package/dist-es/commands/index.js +2 -0
  21. package/dist-es/models/models_5.js +12 -12
  22. package/dist-es/models/models_6.js +20 -0
  23. package/dist-es/pagination/ListImagesInRecycleBinPaginator.js +74 -0
  24. package/dist-es/pagination/index.js +1 -0
  25. package/dist-es/protocols/Aws_ec2.js +199 -0
  26. package/dist-types/EC2.d.ts +47 -12
  27. package/dist-types/EC2Client.d.ts +4 -2
  28. package/dist-types/commands/CreateFleetCommand.d.ts +1 -1
  29. package/dist-types/commands/CreateImageCommand.d.ts +6 -0
  30. package/dist-types/commands/DeleteFleetsCommand.d.ts +1 -1
  31. package/dist-types/commands/DeregisterImageCommand.d.ts +12 -4
  32. package/dist-types/commands/DeregisterInstanceEventNotificationAttributesCommand.d.ts +1 -2
  33. package/dist-types/commands/DescribeFleetInstancesCommand.d.ts +1 -1
  34. package/dist-types/commands/DescribeFleetsCommand.d.ts +1 -1
  35. package/dist-types/commands/DisableFastLaunchCommand.d.ts +3 -0
  36. package/dist-types/commands/EnableFastLaunchCommand.d.ts +3 -0
  37. package/dist-types/commands/ListImagesInRecycleBinCommand.d.ts +37 -0
  38. package/dist-types/commands/MonitorInstancesCommand.d.ts +1 -1
  39. package/dist-types/commands/RegisterInstanceEventNotificationAttributesCommand.d.ts +1 -1
  40. package/dist-types/commands/ResetInstanceAttributeCommand.d.ts +1 -1
  41. package/dist-types/commands/ResetNetworkInterfaceAttributeCommand.d.ts +1 -1
  42. package/dist-types/commands/ResetSnapshotAttributeCommand.d.ts +1 -1
  43. package/dist-types/commands/RestoreImageFromRecycleBinCommand.d.ts +35 -0
  44. package/dist-types/commands/index.d.ts +2 -0
  45. package/dist-types/models/models_0.d.ts +30 -2
  46. package/dist-types/models/models_1.d.ts +16 -14
  47. package/dist-types/models/models_2.d.ts +35 -10
  48. package/dist-types/models/models_3.d.ts +104 -22
  49. package/dist-types/models/models_4.d.ts +6 -20
  50. package/dist-types/models/models_5.d.ts +90 -75
  51. package/dist-types/models/models_6.d.ts +135 -2
  52. package/dist-types/pagination/ListImagesInRecycleBinPaginator.d.ts +4 -0
  53. package/dist-types/pagination/index.d.ts +1 -0
  54. package/dist-types/protocols/Aws_ec2.d.ts +6 -0
  55. package/dist-types/ts3.4/EC2.d.ts +10 -0
  56. package/dist-types/ts3.4/EC2Client.d.ts +4 -2
  57. package/dist-types/ts3.4/commands/ListImagesInRecycleBinCommand.d.ts +17 -0
  58. package/dist-types/ts3.4/commands/ResetInstanceAttributeCommand.d.ts +1 -1
  59. package/dist-types/ts3.4/commands/ResetNetworkInterfaceAttributeCommand.d.ts +1 -1
  60. package/dist-types/ts3.4/commands/ResetSnapshotAttributeCommand.d.ts +1 -1
  61. package/dist-types/ts3.4/commands/RestoreImageFromRecycleBinCommand.d.ts +17 -0
  62. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  63. package/dist-types/ts3.4/models/models_0.d.ts +6 -1
  64. package/dist-types/ts3.4/models/models_1.d.ts +1 -1
  65. package/dist-types/ts3.4/models/models_2.d.ts +5 -0
  66. package/dist-types/ts3.4/models/models_5.d.ts +43 -37
  67. package/dist-types/ts3.4/models/models_6.d.ts +57 -2
  68. package/dist-types/ts3.4/pagination/ListImagesInRecycleBinPaginator.d.ts +4 -0
  69. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  70. package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +6 -0
  71. package/package.json +42 -36
@@ -400,6 +400,7 @@ import { ImportInstanceCommandInput, ImportInstanceCommandOutput } from "../comm
400
400
  import { ImportKeyPairCommandInput, ImportKeyPairCommandOutput } from "../commands/ImportKeyPairCommand";
401
401
  import { ImportSnapshotCommandInput, ImportSnapshotCommandOutput } from "../commands/ImportSnapshotCommand";
402
402
  import { ImportVolumeCommandInput, ImportVolumeCommandOutput } from "../commands/ImportVolumeCommand";
403
+ import { ListImagesInRecycleBinCommandInput, ListImagesInRecycleBinCommandOutput } from "../commands/ListImagesInRecycleBinCommand";
403
404
  import { ListSnapshotsInRecycleBinCommandInput, ListSnapshotsInRecycleBinCommandOutput } from "../commands/ListSnapshotsInRecycleBinCommand";
404
405
  import { ModifyAddressAttributeCommandInput, ModifyAddressAttributeCommandOutput } from "../commands/ModifyAddressAttributeCommand";
405
406
  import { ModifyAvailabilityZoneGroupCommandInput, ModifyAvailabilityZoneGroupCommandOutput } from "../commands/ModifyAvailabilityZoneGroupCommand";
@@ -494,6 +495,7 @@ import { ResetInstanceAttributeCommandInput, ResetInstanceAttributeCommandOutput
494
495
  import { ResetNetworkInterfaceAttributeCommandInput, ResetNetworkInterfaceAttributeCommandOutput } from "../commands/ResetNetworkInterfaceAttributeCommand";
495
496
  import { ResetSnapshotAttributeCommandInput, ResetSnapshotAttributeCommandOutput } from "../commands/ResetSnapshotAttributeCommand";
496
497
  import { RestoreAddressToClassicCommandInput, RestoreAddressToClassicCommandOutput } from "../commands/RestoreAddressToClassicCommand";
498
+ import { RestoreImageFromRecycleBinCommandInput, RestoreImageFromRecycleBinCommandOutput } from "../commands/RestoreImageFromRecycleBinCommand";
497
499
  import { RestoreManagedPrefixListVersionCommandInput, RestoreManagedPrefixListVersionCommandOutput } from "../commands/RestoreManagedPrefixListVersionCommand";
498
500
  import { RestoreSnapshotFromRecycleBinCommandInput, RestoreSnapshotFromRecycleBinCommandOutput } from "../commands/RestoreSnapshotFromRecycleBinCommand";
499
501
  import { RestoreSnapshotTierCommandInput, RestoreSnapshotTierCommandOutput } from "../commands/RestoreSnapshotTierCommand";
@@ -919,6 +921,7 @@ export declare const serializeAws_ec2ImportInstanceCommand: (input: ImportInstan
919
921
  export declare const serializeAws_ec2ImportKeyPairCommand: (input: ImportKeyPairCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
920
922
  export declare const serializeAws_ec2ImportSnapshotCommand: (input: ImportSnapshotCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
921
923
  export declare const serializeAws_ec2ImportVolumeCommand: (input: ImportVolumeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
924
+ export declare const serializeAws_ec2ListImagesInRecycleBinCommand: (input: ListImagesInRecycleBinCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
922
925
  export declare const serializeAws_ec2ListSnapshotsInRecycleBinCommand: (input: ListSnapshotsInRecycleBinCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
923
926
  export declare const serializeAws_ec2ModifyAddressAttributeCommand: (input: ModifyAddressAttributeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
924
927
  export declare const serializeAws_ec2ModifyAvailabilityZoneGroupCommand: (input: ModifyAvailabilityZoneGroupCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -1013,6 +1016,7 @@ export declare const serializeAws_ec2ResetInstanceAttributeCommand: (input: Rese
1013
1016
  export declare const serializeAws_ec2ResetNetworkInterfaceAttributeCommand: (input: ResetNetworkInterfaceAttributeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
1014
1017
  export declare const serializeAws_ec2ResetSnapshotAttributeCommand: (input: ResetSnapshotAttributeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
1015
1018
  export declare const serializeAws_ec2RestoreAddressToClassicCommand: (input: RestoreAddressToClassicCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
1019
+ export declare const serializeAws_ec2RestoreImageFromRecycleBinCommand: (input: RestoreImageFromRecycleBinCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
1016
1020
  export declare const serializeAws_ec2RestoreManagedPrefixListVersionCommand: (input: RestoreManagedPrefixListVersionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
1017
1021
  export declare const serializeAws_ec2RestoreSnapshotFromRecycleBinCommand: (input: RestoreSnapshotFromRecycleBinCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
1018
1022
  export declare const serializeAws_ec2RestoreSnapshotTierCommand: (input: RestoreSnapshotTierCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -1438,6 +1442,7 @@ export declare const deserializeAws_ec2ImportInstanceCommand: (output: __HttpRes
1438
1442
  export declare const deserializeAws_ec2ImportKeyPairCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ImportKeyPairCommandOutput>;
1439
1443
  export declare const deserializeAws_ec2ImportSnapshotCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ImportSnapshotCommandOutput>;
1440
1444
  export declare const deserializeAws_ec2ImportVolumeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ImportVolumeCommandOutput>;
1445
+ export declare const deserializeAws_ec2ListImagesInRecycleBinCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListImagesInRecycleBinCommandOutput>;
1441
1446
  export declare const deserializeAws_ec2ListSnapshotsInRecycleBinCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListSnapshotsInRecycleBinCommandOutput>;
1442
1447
  export declare const deserializeAws_ec2ModifyAddressAttributeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ModifyAddressAttributeCommandOutput>;
1443
1448
  export declare const deserializeAws_ec2ModifyAvailabilityZoneGroupCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ModifyAvailabilityZoneGroupCommandOutput>;
@@ -1532,6 +1537,7 @@ export declare const deserializeAws_ec2ResetInstanceAttributeCommand: (output: _
1532
1537
  export declare const deserializeAws_ec2ResetNetworkInterfaceAttributeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ResetNetworkInterfaceAttributeCommandOutput>;
1533
1538
  export declare const deserializeAws_ec2ResetSnapshotAttributeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ResetSnapshotAttributeCommandOutput>;
1534
1539
  export declare const deserializeAws_ec2RestoreAddressToClassicCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RestoreAddressToClassicCommandOutput>;
1540
+ export declare const deserializeAws_ec2RestoreImageFromRecycleBinCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RestoreImageFromRecycleBinCommandOutput>;
1535
1541
  export declare const deserializeAws_ec2RestoreManagedPrefixListVersionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RestoreManagedPrefixListVersionCommandOutput>;
1536
1542
  export declare const deserializeAws_ec2RestoreSnapshotFromRecycleBinCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RestoreSnapshotFromRecycleBinCommandOutput>;
1537
1543
  export declare const deserializeAws_ec2RestoreSnapshotTierCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RestoreSnapshotTierCommandOutput>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ec2",
3
3
  "description": "AWS SDK for JavaScript Ec2 Client for Node.js, Browser and React Native",
4
- "version": "3.48.0",
4
+ "version": "3.52.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -9,7 +9,7 @@
9
9
  "build:es": "tsc -p tsconfig.es.json",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
- "clean": "rimraf ./dist-*"
12
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo"
13
13
  },
14
14
  "main": "./dist-cjs/index.js",
15
15
  "types": "./dist-types/index.d.ts",
@@ -18,47 +18,53 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.48.0",
22
- "@aws-sdk/config-resolver": "3.47.2",
23
- "@aws-sdk/credential-provider-node": "3.48.0",
24
- "@aws-sdk/fetch-http-handler": "3.47.2",
25
- "@aws-sdk/hash-node": "3.47.2",
26
- "@aws-sdk/invalid-dependency": "3.47.2",
27
- "@aws-sdk/middleware-content-length": "3.47.2",
28
- "@aws-sdk/middleware-host-header": "3.47.2",
29
- "@aws-sdk/middleware-logger": "3.47.2",
30
- "@aws-sdk/middleware-retry": "3.47.2",
31
- "@aws-sdk/middleware-sdk-ec2": "3.47.2",
32
- "@aws-sdk/middleware-serde": "3.47.2",
33
- "@aws-sdk/middleware-signing": "3.47.2",
34
- "@aws-sdk/middleware-stack": "3.47.2",
35
- "@aws-sdk/middleware-user-agent": "3.47.2",
36
- "@aws-sdk/node-config-provider": "3.47.2",
37
- "@aws-sdk/node-http-handler": "3.47.2",
38
- "@aws-sdk/protocol-http": "3.47.2",
39
- "@aws-sdk/smithy-client": "3.47.2",
40
- "@aws-sdk/types": "3.47.1",
41
- "@aws-sdk/url-parser": "3.47.2",
42
- "@aws-sdk/util-base64-browser": "3.47.1",
43
- "@aws-sdk/util-base64-node": "3.47.2",
44
- "@aws-sdk/util-body-length-browser": "3.47.1",
45
- "@aws-sdk/util-body-length-node": "3.47.1",
46
- "@aws-sdk/util-defaults-mode-browser": "3.47.2",
47
- "@aws-sdk/util-defaults-mode-node": "3.47.2",
48
- "@aws-sdk/util-user-agent-browser": "3.47.2",
49
- "@aws-sdk/util-user-agent-node": "3.47.2",
50
- "@aws-sdk/util-utf8-browser": "3.47.1",
51
- "@aws-sdk/util-utf8-node": "3.47.2",
52
- "@aws-sdk/util-waiter": "3.47.2",
21
+ "@aws-sdk/client-sts": "3.52.0",
22
+ "@aws-sdk/config-resolver": "3.52.0",
23
+ "@aws-sdk/credential-provider-node": "3.52.0",
24
+ "@aws-sdk/fetch-http-handler": "3.52.0",
25
+ "@aws-sdk/hash-node": "3.52.0",
26
+ "@aws-sdk/invalid-dependency": "3.52.0",
27
+ "@aws-sdk/middleware-content-length": "3.52.0",
28
+ "@aws-sdk/middleware-host-header": "3.52.0",
29
+ "@aws-sdk/middleware-logger": "3.52.0",
30
+ "@aws-sdk/middleware-retry": "3.52.0",
31
+ "@aws-sdk/middleware-sdk-ec2": "3.52.0",
32
+ "@aws-sdk/middleware-serde": "3.52.0",
33
+ "@aws-sdk/middleware-signing": "3.52.0",
34
+ "@aws-sdk/middleware-stack": "3.52.0",
35
+ "@aws-sdk/middleware-user-agent": "3.52.0",
36
+ "@aws-sdk/node-config-provider": "3.52.0",
37
+ "@aws-sdk/node-http-handler": "3.52.0",
38
+ "@aws-sdk/protocol-http": "3.52.0",
39
+ "@aws-sdk/smithy-client": "3.52.0",
40
+ "@aws-sdk/types": "3.52.0",
41
+ "@aws-sdk/url-parser": "3.52.0",
42
+ "@aws-sdk/util-base64-browser": "3.52.0",
43
+ "@aws-sdk/util-base64-node": "3.52.0",
44
+ "@aws-sdk/util-body-length-browser": "3.52.0",
45
+ "@aws-sdk/util-body-length-node": "3.52.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.52.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.52.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.52.0",
49
+ "@aws-sdk/util-user-agent-node": "3.52.0",
50
+ "@aws-sdk/util-utf8-browser": "3.52.0",
51
+ "@aws-sdk/util-utf8-node": "3.52.0",
52
+ "@aws-sdk/util-waiter": "3.52.0",
53
53
  "entities": "2.2.0",
54
54
  "fast-xml-parser": "3.19.0",
55
55
  "tslib": "^2.3.0",
56
56
  "uuid": "^8.3.2"
57
57
  },
58
58
  "devDependencies": {
59
- "@aws-sdk/service-client-documentation-generator": "3.47.1",
59
+ "@aws-sdk/service-client-documentation-generator": "3.52.0",
60
+ "@tsconfig/recommended": "1.0.1",
60
61
  "@types/node": "^12.7.5",
61
- "@types/uuid": "^8.3.0"
62
+ "@types/uuid": "^8.3.0",
63
+ "concurrently": "7.0.0",
64
+ "downlevel-dts": "0.7.0",
65
+ "rimraf": "3.0.2",
66
+ "typedoc": "0.19.2",
67
+ "typescript": "~4.3.5"
62
68
  },
63
69
  "engines": {
64
70
  "node": ">=12.0.0"