@aws-sdk/client-ebs 3.34.0 → 3.37.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 (157) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/EBS.js +1 -24
  3. package/dist-cjs/EBSClient.js +35 -0
  4. package/{dist/cjs → dist-cjs}/commands/CompleteSnapshotCommand.js +2 -29
  5. package/{dist/cjs → dist-cjs}/commands/GetSnapshotBlockCommand.js +2 -27
  6. package/{dist/cjs → dist-cjs}/commands/ListChangedBlocksCommand.js +2 -28
  7. package/{dist/cjs → dist-cjs}/commands/ListSnapshotBlocksCommand.js +2 -27
  8. package/{dist/cjs → dist-cjs}/commands/PutSnapshotBlockCommand.js +2 -30
  9. package/{dist/cjs → dist-cjs}/commands/StartSnapshotCommand.js +2 -30
  10. package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
  11. package/{dist/cjs → dist-cjs}/index.js +0 -1
  12. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  13. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -70
  14. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  15. package/{dist/cjs → dist-cjs}/pagination/ListChangedBlocksPaginator.js +1 -12
  16. package/{dist/cjs → dist-cjs}/pagination/ListSnapshotBlocksPaginator.js +1 -12
  17. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +1 -7
  18. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  19. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  20. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  21. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  22. package/{dist/es → dist-es}/EBS.js +1 -2
  23. package/{dist/es → dist-es}/EBSClient.js +1 -2
  24. package/{dist/es → dist-es}/commands/CompleteSnapshotCommand.js +2 -3
  25. package/{dist/es → dist-es}/commands/GetSnapshotBlockCommand.js +2 -3
  26. package/{dist/es → dist-es}/commands/ListChangedBlocksCommand.js +2 -3
  27. package/{dist/es → dist-es}/commands/ListSnapshotBlocksCommand.js +2 -3
  28. package/{dist/es → dist-es}/commands/PutSnapshotBlockCommand.js +2 -3
  29. package/{dist/es → dist-es}/commands/StartSnapshotCommand.js +2 -3
  30. package/{dist/es → dist-es}/endpoints.js +1 -2
  31. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  32. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  33. package/{dist/es → dist-es}/models/models_0.js +0 -1
  34. package/dist-es/pagination/Interfaces.js +1 -0
  35. package/{dist/es → dist-es}/pagination/ListChangedBlocksPaginator.js +1 -2
  36. package/{dist/es → dist-es}/pagination/ListSnapshotBlocksPaginator.js +1 -2
  37. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +0 -1
  38. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
  39. package/{dist/es → dist-es}/runtimeConfig.js +1 -2
  40. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
  41. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
  42. package/{dist/types → dist-types}/EBS.d.ts +2 -2
  43. package/{dist/types → dist-types}/EBSClient.d.ts +7 -7
  44. package/{dist/types → dist-types}/commands/CompleteSnapshotCommand.d.ts +2 -2
  45. package/{dist/types → dist-types}/commands/GetSnapshotBlockCommand.d.ts +2 -2
  46. package/{dist/types → dist-types}/commands/ListChangedBlocksCommand.d.ts +2 -2
  47. package/{dist/types → dist-types}/commands/ListSnapshotBlocksCommand.d.ts +2 -2
  48. package/{dist/types → dist-types}/commands/PutSnapshotBlockCommand.d.ts +2 -2
  49. package/{dist/types → dist-types}/commands/StartSnapshotCommand.d.ts +2 -2
  50. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  51. package/{index.ts → dist-types/index.d.ts} +0 -0
  52. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  53. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  54. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  55. package/{dist/types → dist-types}/pagination/ListChangedBlocksPaginator.d.ts +1 -1
  56. package/{dist/types → dist-types}/pagination/ListSnapshotBlocksPaginator.d.ts +1 -1
  57. package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
  58. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  59. package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
  60. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  61. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  62. package/dist-types/ts3.4/EBS.d.ts +35 -0
  63. package/dist-types/ts3.4/EBSClient.d.ts +73 -0
  64. package/dist-types/ts3.4/commands/CompleteSnapshotCommand.d.ts +17 -0
  65. package/{dist/types → dist-types}/ts3.4/commands/GetSnapshotBlockCommand.d.ts +4 -22
  66. package/dist-types/ts3.4/commands/ListChangedBlocksCommand.d.ts +17 -0
  67. package/{dist/types → dist-types}/ts3.4/commands/ListSnapshotBlocksCommand.d.ts +4 -22
  68. package/dist-types/ts3.4/commands/PutSnapshotBlockCommand.d.ts +24 -0
  69. package/dist-types/ts3.4/commands/StartSnapshotCommand.d.ts +17 -0
  70. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  71. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  72. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  73. package/dist-types/ts3.4/models/models_0.d.ts +357 -0
  74. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  75. package/{dist/types → dist-types}/ts3.4/pagination/ListChangedBlocksPaginator.d.ts +1 -1
  76. package/{dist/types → dist-types}/ts3.4/pagination/ListSnapshotBlocksPaginator.d.ts +1 -1
  77. package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  78. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  79. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
  80. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  81. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  82. package/package.json +45 -42
  83. package/EBS.ts +0 -257
  84. package/EBSClient.ts +0 -272
  85. package/commands/CompleteSnapshotCommand.ts +0 -96
  86. package/commands/GetSnapshotBlockCommand.ts +0 -94
  87. package/commands/ListChangedBlocksCommand.ts +0 -95
  88. package/commands/ListSnapshotBlocksCommand.ts +0 -94
  89. package/commands/PutSnapshotBlockCommand.ts +0 -106
  90. package/commands/StartSnapshotCommand.ts +0 -97
  91. package/dist/cjs/EBS.js.map +0 -1
  92. package/dist/cjs/EBSClient.js +0 -63
  93. package/dist/cjs/EBSClient.js.map +0 -1
  94. package/dist/cjs/commands/CompleteSnapshotCommand.js.map +0 -1
  95. package/dist/cjs/commands/GetSnapshotBlockCommand.js.map +0 -1
  96. package/dist/cjs/commands/ListChangedBlocksCommand.js.map +0 -1
  97. package/dist/cjs/commands/ListSnapshotBlocksCommand.js.map +0 -1
  98. package/dist/cjs/commands/PutSnapshotBlockCommand.js.map +0 -1
  99. package/dist/cjs/commands/StartSnapshotCommand.js.map +0 -1
  100. package/dist/cjs/endpoints.js.map +0 -1
  101. package/dist/cjs/index.js.map +0 -1
  102. package/dist/cjs/models/index.js.map +0 -1
  103. package/dist/cjs/models/models_0.js.map +0 -1
  104. package/dist/cjs/package.json +0 -93
  105. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  106. package/dist/cjs/pagination/ListChangedBlocksPaginator.js.map +0 -1
  107. package/dist/cjs/pagination/ListSnapshotBlocksPaginator.js.map +0 -1
  108. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  109. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  110. package/dist/cjs/runtimeConfig.js.map +0 -1
  111. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  112. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  113. package/dist/es/EBS.js.map +0 -1
  114. package/dist/es/EBSClient.js.map +0 -1
  115. package/dist/es/commands/CompleteSnapshotCommand.js.map +0 -1
  116. package/dist/es/commands/GetSnapshotBlockCommand.js.map +0 -1
  117. package/dist/es/commands/ListChangedBlocksCommand.js.map +0 -1
  118. package/dist/es/commands/ListSnapshotBlocksCommand.js.map +0 -1
  119. package/dist/es/commands/PutSnapshotBlockCommand.js.map +0 -1
  120. package/dist/es/commands/StartSnapshotCommand.js.map +0 -1
  121. package/dist/es/endpoints.js.map +0 -1
  122. package/dist/es/index.js +0 -13
  123. package/dist/es/index.js.map +0 -1
  124. package/dist/es/models/index.js +0 -2
  125. package/dist/es/models/index.js.map +0 -1
  126. package/dist/es/models/models_0.js.map +0 -1
  127. package/dist/es/package.json +0 -93
  128. package/dist/es/pagination/Interfaces.js +0 -2
  129. package/dist/es/pagination/Interfaces.js.map +0 -1
  130. package/dist/es/pagination/ListChangedBlocksPaginator.js.map +0 -1
  131. package/dist/es/pagination/ListSnapshotBlocksPaginator.js.map +0 -1
  132. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  133. package/dist/es/runtimeConfig.browser.js.map +0 -1
  134. package/dist/es/runtimeConfig.js.map +0 -1
  135. package/dist/es/runtimeConfig.native.js.map +0 -1
  136. package/dist/es/runtimeConfig.shared.js.map +0 -1
  137. package/dist/types/ts3.4/EBS.d.ts +0 -77
  138. package/dist/types/ts3.4/EBSClient.d.ts +0 -157
  139. package/dist/types/ts3.4/commands/CompleteSnapshotCommand.d.ts +0 -37
  140. package/dist/types/ts3.4/commands/ListChangedBlocksCommand.d.ts +0 -36
  141. package/dist/types/ts3.4/commands/PutSnapshotBlockCommand.d.ts +0 -49
  142. package/dist/types/ts3.4/commands/StartSnapshotCommand.d.ts +0 -38
  143. package/dist/types/ts3.4/models/models_0.d.ts +0 -667
  144. package/endpoints.ts +0 -83
  145. package/jest.config.js +0 -4
  146. package/models/models_0.ts +0 -824
  147. package/pagination/Interfaces.ts +0 -7
  148. package/pagination/ListChangedBlocksPaginator.ts +0 -58
  149. package/pagination/ListSnapshotBlocksPaginator.ts +0 -58
  150. package/protocols/Aws_restJson1.ts +0 -1237
  151. package/runtimeConfig.browser.ts +0 -40
  152. package/runtimeConfig.native.ts +0 -16
  153. package/runtimeConfig.shared.ts +0 -16
  154. package/runtimeConfig.ts +0 -45
  155. package/tsconfig.es.json +0 -10
  156. package/tsconfig.json +0 -31
  157. package/tsconfig.types.json +0 -8
@@ -1,11 +1,11 @@
1
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
2
+ import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
1
3
  import { CompleteSnapshotCommandInput, CompleteSnapshotCommandOutput } from "../commands/CompleteSnapshotCommand";
2
4
  import { GetSnapshotBlockCommandInput, GetSnapshotBlockCommandOutput } from "../commands/GetSnapshotBlockCommand";
3
5
  import { ListChangedBlocksCommandInput, ListChangedBlocksCommandOutput } from "../commands/ListChangedBlocksCommand";
4
6
  import { ListSnapshotBlocksCommandInput, ListSnapshotBlocksCommandOutput } from "../commands/ListSnapshotBlocksCommand";
5
7
  import { PutSnapshotBlockCommandInput, PutSnapshotBlockCommandOutput } from "../commands/PutSnapshotBlockCommand";
6
8
  import { StartSnapshotCommandInput, StartSnapshotCommandOutput } from "../commands/StartSnapshotCommand";
7
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
8
- import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
9
9
  export declare const serializeAws_restJson1CompleteSnapshotCommand: (input: CompleteSnapshotCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
10
10
  export declare const serializeAws_restJson1GetSnapshotBlockCommand: (input: GetSnapshotBlockCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
11
11
  export declare const serializeAws_restJson1ListChangedBlocksCommand: (input: ListChangedBlocksCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -1,8 +1,6 @@
1
1
  import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { EBSClientConfig } from "./EBSClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: EBSClientConfig) => {
7
5
  runtime: string;
8
6
  base64Decoder: import("@aws-sdk/types").Decoder;
@@ -1,14 +1,12 @@
1
1
  import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
2
2
  import { EBSClientConfig } from "./EBSClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: EBSClientConfig) => {
7
5
  runtime: string;
8
6
  base64Decoder: import("@aws-sdk/types").Decoder;
9
7
  base64Encoder: import("@aws-sdk/types").Encoder;
10
8
  bodyLengthChecker: (body: any) => number | undefined;
11
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist/types/defaultStsRoleAssumers").DefaultCredentialProvider;
9
+ credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
12
10
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
11
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
12
  region: string | import("@aws-sdk/types").Provider<string>;
@@ -1,7 +1,5 @@
1
1
  import { EBSClientConfig } from "./EBSClient";
2
- /**
3
- * @internal
4
- */
2
+
5
3
  export declare const getRuntimeConfig: (config: EBSClientConfig) => {
6
4
  runtime: string;
7
5
  sha256: import("@aws-sdk/types").HashConstructor;
@@ -1,8 +1,6 @@
1
1
  import { Logger as __Logger } from "@aws-sdk/types";
2
2
  import { EBSClientConfig } from "./EBSClient";
3
- /**
4
- * @internal
5
- */
3
+
6
4
  export declare const getRuntimeConfig: (config: EBSClientConfig) => {
7
5
  apiVersion: string;
8
6
  disableHostPrefix: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ebs",
3
3
  "description": "AWS SDK for JavaScript Ebs Client for Node.js, Browser and React Native",
4
- "version": "3.34.0",
4
+ "version": "3.37.0",
5
5
  "scripts": {
6
6
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
7
  "build:cjs": "tsc -p tsconfig.json",
@@ -11,55 +11,49 @@
11
11
  "clean": "yarn clean:dist && yarn clean:docs",
12
12
  "clean:dist": "rimraf ./dist",
13
13
  "clean:docs": "rimraf ./docs",
14
- "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4",
14
+ "downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
15
15
  "test": "exit 0"
16
16
  },
17
- "main": "./dist/cjs/index.js",
18
- "types": "./dist/types/index.d.ts",
19
- "module": "./dist/es/index.js",
20
- "browser": {
21
- "./runtimeConfig": "./runtimeConfig.browser"
22
- },
23
- "react-native": {
24
- "./runtimeConfig": "./runtimeConfig.native"
25
- },
17
+ "main": "./dist-cjs/index.js",
18
+ "types": "./dist-types/index.d.ts",
19
+ "module": "./dist-es/index.js",
26
20
  "sideEffects": false,
27
21
  "dependencies": {
28
22
  "@aws-crypto/sha256-browser": "^1.0.0",
29
23
  "@aws-crypto/sha256-js": "^1.0.0",
30
- "@aws-sdk/client-sts": "3.34.0",
31
- "@aws-sdk/config-resolver": "3.34.0",
32
- "@aws-sdk/credential-provider-node": "3.34.0",
33
- "@aws-sdk/fetch-http-handler": "3.34.0",
34
- "@aws-sdk/hash-node": "3.34.0",
35
- "@aws-sdk/invalid-dependency": "3.34.0",
36
- "@aws-sdk/middleware-content-length": "3.34.0",
37
- "@aws-sdk/middleware-host-header": "3.34.0",
38
- "@aws-sdk/middleware-logger": "3.34.0",
39
- "@aws-sdk/middleware-retry": "3.34.0",
40
- "@aws-sdk/middleware-serde": "3.34.0",
41
- "@aws-sdk/middleware-signing": "3.34.0",
42
- "@aws-sdk/middleware-stack": "3.34.0",
43
- "@aws-sdk/middleware-user-agent": "3.34.0",
44
- "@aws-sdk/node-config-provider": "3.34.0",
45
- "@aws-sdk/node-http-handler": "3.34.0",
46
- "@aws-sdk/protocol-http": "3.34.0",
47
- "@aws-sdk/smithy-client": "3.34.0",
48
- "@aws-sdk/types": "3.34.0",
49
- "@aws-sdk/url-parser": "3.34.0",
50
- "@aws-sdk/util-base64-browser": "3.34.0",
51
- "@aws-sdk/util-base64-node": "3.34.0",
52
- "@aws-sdk/util-body-length-browser": "3.34.0",
53
- "@aws-sdk/util-body-length-node": "3.34.0",
54
- "@aws-sdk/util-user-agent-browser": "3.34.0",
55
- "@aws-sdk/util-user-agent-node": "3.34.0",
56
- "@aws-sdk/util-utf8-browser": "3.34.0",
57
- "@aws-sdk/util-utf8-node": "3.34.0",
24
+ "@aws-sdk/client-sts": "3.37.0",
25
+ "@aws-sdk/config-resolver": "3.37.0",
26
+ "@aws-sdk/credential-provider-node": "3.37.0",
27
+ "@aws-sdk/fetch-http-handler": "3.37.0",
28
+ "@aws-sdk/hash-node": "3.37.0",
29
+ "@aws-sdk/invalid-dependency": "3.37.0",
30
+ "@aws-sdk/middleware-content-length": "3.37.0",
31
+ "@aws-sdk/middleware-host-header": "3.37.0",
32
+ "@aws-sdk/middleware-logger": "3.37.0",
33
+ "@aws-sdk/middleware-retry": "3.37.0",
34
+ "@aws-sdk/middleware-serde": "3.37.0",
35
+ "@aws-sdk/middleware-signing": "3.37.0",
36
+ "@aws-sdk/middleware-stack": "3.37.0",
37
+ "@aws-sdk/middleware-user-agent": "3.37.0",
38
+ "@aws-sdk/node-config-provider": "3.37.0",
39
+ "@aws-sdk/node-http-handler": "3.37.0",
40
+ "@aws-sdk/protocol-http": "3.37.0",
41
+ "@aws-sdk/smithy-client": "3.37.0",
42
+ "@aws-sdk/types": "3.37.0",
43
+ "@aws-sdk/url-parser": "3.37.0",
44
+ "@aws-sdk/util-base64-browser": "3.37.0",
45
+ "@aws-sdk/util-base64-node": "3.37.0",
46
+ "@aws-sdk/util-body-length-browser": "3.37.0",
47
+ "@aws-sdk/util-body-length-node": "3.37.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.37.0",
49
+ "@aws-sdk/util-user-agent-node": "3.37.0",
50
+ "@aws-sdk/util-utf8-browser": "3.37.0",
51
+ "@aws-sdk/util-utf8-node": "3.37.0",
58
52
  "tslib": "^2.3.0",
59
53
  "uuid": "^8.3.2"
60
54
  },
61
55
  "devDependencies": {
62
- "@aws-sdk/client-documentation-generator": "3.34.0",
56
+ "@aws-sdk/client-documentation-generator": "3.37.0",
63
57
  "@types/node": "^12.7.5",
64
58
  "@types/uuid": "^8.3.0",
65
59
  "downlevel-dts": "0.7.0",
@@ -74,16 +68,25 @@
74
68
  },
75
69
  "typesVersions": {
76
70
  "<4.0": {
77
- "dist/types/*": [
78
- "dist/types/ts3.4/*"
71
+ "dist-types/*": [
72
+ "dist-types/ts3.4/*"
79
73
  ]
80
74
  }
81
75
  },
76
+ "files": [
77
+ "dist-*"
78
+ ],
82
79
  "author": {
83
80
  "name": "AWS SDK for JavaScript Team",
84
81
  "url": "https://aws.amazon.com/javascript/"
85
82
  },
86
83
  "license": "Apache-2.0",
84
+ "browser": {
85
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
86
+ },
87
+ "react-native": {
88
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
89
+ },
87
90
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ebs",
88
91
  "repository": {
89
92
  "type": "git",
package/EBS.ts DELETED
@@ -1,257 +0,0 @@
1
- import { EBSClient } from "./EBSClient";
2
- import {
3
- CompleteSnapshotCommand,
4
- CompleteSnapshotCommandInput,
5
- CompleteSnapshotCommandOutput,
6
- } from "./commands/CompleteSnapshotCommand";
7
- import {
8
- GetSnapshotBlockCommand,
9
- GetSnapshotBlockCommandInput,
10
- GetSnapshotBlockCommandOutput,
11
- } from "./commands/GetSnapshotBlockCommand";
12
- import {
13
- ListChangedBlocksCommand,
14
- ListChangedBlocksCommandInput,
15
- ListChangedBlocksCommandOutput,
16
- } from "./commands/ListChangedBlocksCommand";
17
- import {
18
- ListSnapshotBlocksCommand,
19
- ListSnapshotBlocksCommandInput,
20
- ListSnapshotBlocksCommandOutput,
21
- } from "./commands/ListSnapshotBlocksCommand";
22
- import {
23
- PutSnapshotBlockCommand,
24
- PutSnapshotBlockCommandInput,
25
- PutSnapshotBlockCommandOutput,
26
- } from "./commands/PutSnapshotBlockCommand";
27
- import {
28
- StartSnapshotCommand,
29
- StartSnapshotCommandInput,
30
- StartSnapshotCommandOutput,
31
- } from "./commands/StartSnapshotCommand";
32
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
33
-
34
- /**
35
- * <p>You can use the Amazon Elastic Block Store (Amazon EBS) direct APIs to create Amazon EBS snapshots, write data directly to
36
- * your snapshots, read data on your snapshots, and identify the differences or changes between
37
- * two snapshots. If you’re an independent software vendor (ISV) who offers backup services for
38
- * Amazon EBS, the EBS direct APIs make it more efficient and cost-effective to track incremental changes on
39
- * your Amazon EBS volumes through snapshots. This can be done without having to create new volumes
40
- * from snapshots, and then use Amazon Elastic Compute Cloud (Amazon EC2) instances to compare the differences.</p>
41
- *
42
- * <p>You can create incremental snapshots directly from data on-premises into volumes and the
43
- * cloud to use for quick disaster recovery. With the ability to write and read snapshots, you can
44
- * write your on-premises data to an snapshot during a disaster. Then after recovery, you can
45
- * restore it back to Amazon Web Services or on-premises from the snapshot. You no longer need to build and
46
- * maintain complex mechanisms to copy data to and from Amazon EBS.</p>
47
- *
48
- *
49
- * <p>This API reference provides detailed information about the actions, data types,
50
- * parameters, and errors of the EBS direct APIs. For more information about the elements that
51
- * make up the EBS direct APIs, and examples of how to use them effectively, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-accessing-snapshot.html">Accessing the Contents of an Amazon EBS Snapshot</a> in the <i>Amazon Elastic Compute Cloud User
52
- * Guide</i>. For more information about the supported Amazon Web Services Regions, endpoints,
53
- * and service quotas for the EBS direct APIs, see <a href="https://docs.aws.amazon.com/general/latest/gr/ebs-service.html">Amazon Elastic Block Store Endpoints and Quotas</a> in
54
- * the <i>Amazon Web Services General Reference</i>.</p>
55
- */
56
- export class EBS extends EBSClient {
57
- /**
58
- * <p>Seals and completes the snapshot after all of the required blocks of data have been
59
- * written to it. Completing the snapshot changes the status to <code>completed</code>. You
60
- * cannot write new blocks to a snapshot after it has been completed.</p>
61
- */
62
- public completeSnapshot(
63
- args: CompleteSnapshotCommandInput,
64
- options?: __HttpHandlerOptions
65
- ): Promise<CompleteSnapshotCommandOutput>;
66
- public completeSnapshot(
67
- args: CompleteSnapshotCommandInput,
68
- cb: (err: any, data?: CompleteSnapshotCommandOutput) => void
69
- ): void;
70
- public completeSnapshot(
71
- args: CompleteSnapshotCommandInput,
72
- options: __HttpHandlerOptions,
73
- cb: (err: any, data?: CompleteSnapshotCommandOutput) => void
74
- ): void;
75
- public completeSnapshot(
76
- args: CompleteSnapshotCommandInput,
77
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CompleteSnapshotCommandOutput) => void),
78
- cb?: (err: any, data?: CompleteSnapshotCommandOutput) => void
79
- ): Promise<CompleteSnapshotCommandOutput> | void {
80
- const command = new CompleteSnapshotCommand(args);
81
- if (typeof optionsOrCb === "function") {
82
- this.send(command, optionsOrCb);
83
- } else if (typeof cb === "function") {
84
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
85
- this.send(command, optionsOrCb || {}, cb);
86
- } else {
87
- return this.send(command, optionsOrCb);
88
- }
89
- }
90
-
91
- /**
92
- * <p>Returns the data in a block in an Amazon Elastic Block Store snapshot.</p>
93
- */
94
- public getSnapshotBlock(
95
- args: GetSnapshotBlockCommandInput,
96
- options?: __HttpHandlerOptions
97
- ): Promise<GetSnapshotBlockCommandOutput>;
98
- public getSnapshotBlock(
99
- args: GetSnapshotBlockCommandInput,
100
- cb: (err: any, data?: GetSnapshotBlockCommandOutput) => void
101
- ): void;
102
- public getSnapshotBlock(
103
- args: GetSnapshotBlockCommandInput,
104
- options: __HttpHandlerOptions,
105
- cb: (err: any, data?: GetSnapshotBlockCommandOutput) => void
106
- ): void;
107
- public getSnapshotBlock(
108
- args: GetSnapshotBlockCommandInput,
109
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetSnapshotBlockCommandOutput) => void),
110
- cb?: (err: any, data?: GetSnapshotBlockCommandOutput) => void
111
- ): Promise<GetSnapshotBlockCommandOutput> | void {
112
- const command = new GetSnapshotBlockCommand(args);
113
- if (typeof optionsOrCb === "function") {
114
- this.send(command, optionsOrCb);
115
- } else if (typeof cb === "function") {
116
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
117
- this.send(command, optionsOrCb || {}, cb);
118
- } else {
119
- return this.send(command, optionsOrCb);
120
- }
121
- }
122
-
123
- /**
124
- * <p>Returns information about the blocks that are different between two
125
- * Amazon Elastic Block Store snapshots of the same volume/snapshot lineage.</p>
126
- */
127
- public listChangedBlocks(
128
- args: ListChangedBlocksCommandInput,
129
- options?: __HttpHandlerOptions
130
- ): Promise<ListChangedBlocksCommandOutput>;
131
- public listChangedBlocks(
132
- args: ListChangedBlocksCommandInput,
133
- cb: (err: any, data?: ListChangedBlocksCommandOutput) => void
134
- ): void;
135
- public listChangedBlocks(
136
- args: ListChangedBlocksCommandInput,
137
- options: __HttpHandlerOptions,
138
- cb: (err: any, data?: ListChangedBlocksCommandOutput) => void
139
- ): void;
140
- public listChangedBlocks(
141
- args: ListChangedBlocksCommandInput,
142
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListChangedBlocksCommandOutput) => void),
143
- cb?: (err: any, data?: ListChangedBlocksCommandOutput) => void
144
- ): Promise<ListChangedBlocksCommandOutput> | void {
145
- const command = new ListChangedBlocksCommand(args);
146
- if (typeof optionsOrCb === "function") {
147
- this.send(command, optionsOrCb);
148
- } else if (typeof cb === "function") {
149
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
150
- this.send(command, optionsOrCb || {}, cb);
151
- } else {
152
- return this.send(command, optionsOrCb);
153
- }
154
- }
155
-
156
- /**
157
- * <p>Returns information about the blocks in an Amazon Elastic Block Store snapshot.</p>
158
- */
159
- public listSnapshotBlocks(
160
- args: ListSnapshotBlocksCommandInput,
161
- options?: __HttpHandlerOptions
162
- ): Promise<ListSnapshotBlocksCommandOutput>;
163
- public listSnapshotBlocks(
164
- args: ListSnapshotBlocksCommandInput,
165
- cb: (err: any, data?: ListSnapshotBlocksCommandOutput) => void
166
- ): void;
167
- public listSnapshotBlocks(
168
- args: ListSnapshotBlocksCommandInput,
169
- options: __HttpHandlerOptions,
170
- cb: (err: any, data?: ListSnapshotBlocksCommandOutput) => void
171
- ): void;
172
- public listSnapshotBlocks(
173
- args: ListSnapshotBlocksCommandInput,
174
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListSnapshotBlocksCommandOutput) => void),
175
- cb?: (err: any, data?: ListSnapshotBlocksCommandOutput) => void
176
- ): Promise<ListSnapshotBlocksCommandOutput> | void {
177
- const command = new ListSnapshotBlocksCommand(args);
178
- if (typeof optionsOrCb === "function") {
179
- this.send(command, optionsOrCb);
180
- } else if (typeof cb === "function") {
181
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
182
- this.send(command, optionsOrCb || {}, cb);
183
- } else {
184
- return this.send(command, optionsOrCb);
185
- }
186
- }
187
-
188
- /**
189
- * <p>Writes a block of data to a snapshot. If the specified block contains
190
- * data, the existing data is overwritten. The target snapshot must be in the
191
- * <code>pending</code> state.</p>
192
- * <p>Data written to a snapshot must be aligned with 512-KiB sectors.</p>
193
- */
194
- public putSnapshotBlock(
195
- args: PutSnapshotBlockCommandInput,
196
- options?: __HttpHandlerOptions
197
- ): Promise<PutSnapshotBlockCommandOutput>;
198
- public putSnapshotBlock(
199
- args: PutSnapshotBlockCommandInput,
200
- cb: (err: any, data?: PutSnapshotBlockCommandOutput) => void
201
- ): void;
202
- public putSnapshotBlock(
203
- args: PutSnapshotBlockCommandInput,
204
- options: __HttpHandlerOptions,
205
- cb: (err: any, data?: PutSnapshotBlockCommandOutput) => void
206
- ): void;
207
- public putSnapshotBlock(
208
- args: PutSnapshotBlockCommandInput,
209
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutSnapshotBlockCommandOutput) => void),
210
- cb?: (err: any, data?: PutSnapshotBlockCommandOutput) => void
211
- ): Promise<PutSnapshotBlockCommandOutput> | void {
212
- const command = new PutSnapshotBlockCommand(args);
213
- if (typeof optionsOrCb === "function") {
214
- this.send(command, optionsOrCb);
215
- } else if (typeof cb === "function") {
216
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
217
- this.send(command, optionsOrCb || {}, cb);
218
- } else {
219
- return this.send(command, optionsOrCb);
220
- }
221
- }
222
-
223
- /**
224
- * <p>Creates a new Amazon EBS snapshot. The new snapshot enters the <code>pending</code> state
225
- * after the request completes. </p>
226
- * <p>After creating the snapshot, use <a href="https://docs.aws.amazon.com/ebs/latest/APIReference/API_PutSnapshotBlock.html"> PutSnapshotBlock</a> to
227
- * write blocks of data to the snapshot.</p>
228
- */
229
- public startSnapshot(
230
- args: StartSnapshotCommandInput,
231
- options?: __HttpHandlerOptions
232
- ): Promise<StartSnapshotCommandOutput>;
233
- public startSnapshot(
234
- args: StartSnapshotCommandInput,
235
- cb: (err: any, data?: StartSnapshotCommandOutput) => void
236
- ): void;
237
- public startSnapshot(
238
- args: StartSnapshotCommandInput,
239
- options: __HttpHandlerOptions,
240
- cb: (err: any, data?: StartSnapshotCommandOutput) => void
241
- ): void;
242
- public startSnapshot(
243
- args: StartSnapshotCommandInput,
244
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StartSnapshotCommandOutput) => void),
245
- cb?: (err: any, data?: StartSnapshotCommandOutput) => void
246
- ): Promise<StartSnapshotCommandOutput> | void {
247
- const command = new StartSnapshotCommand(args);
248
- if (typeof optionsOrCb === "function") {
249
- this.send(command, optionsOrCb);
250
- } else if (typeof cb === "function") {
251
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
252
- this.send(command, optionsOrCb || {}, cb);
253
- } else {
254
- return this.send(command, optionsOrCb);
255
- }
256
- }
257
- }