@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
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: EBSClientConfig) => {
8
8
  base64Decoder: import("@aws-sdk/types").Decoder;
9
9
  base64Encoder: import("@aws-sdk/types").Encoder;
10
10
  bodyLengthChecker: (body: any) => number | undefined;
11
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist/types/defaultStsRoleAssumers").DefaultCredentialProvider;
11
+ credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
12
12
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
13
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
14
  region: string | import("@aws-sdk/types").Provider<string>;
@@ -0,0 +1,35 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
+ import { CompleteSnapshotCommandInput, CompleteSnapshotCommandOutput } from "./commands/CompleteSnapshotCommand";
3
+ import { GetSnapshotBlockCommandInput, GetSnapshotBlockCommandOutput } from "./commands/GetSnapshotBlockCommand";
4
+ import { ListChangedBlocksCommandInput, ListChangedBlocksCommandOutput } from "./commands/ListChangedBlocksCommand";
5
+ import { ListSnapshotBlocksCommandInput, ListSnapshotBlocksCommandOutput } from "./commands/ListSnapshotBlocksCommand";
6
+ import { PutSnapshotBlockCommandInput, PutSnapshotBlockCommandOutput } from "./commands/PutSnapshotBlockCommand";
7
+ import { StartSnapshotCommandInput, StartSnapshotCommandOutput } from "./commands/StartSnapshotCommand";
8
+ import { EBSClient } from "./EBSClient";
9
+
10
+ export declare class EBS extends EBSClient {
11
+
12
+ completeSnapshot(args: CompleteSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<CompleteSnapshotCommandOutput>;
13
+ completeSnapshot(args: CompleteSnapshotCommandInput, cb: (err: any, data?: CompleteSnapshotCommandOutput) => void): void;
14
+ completeSnapshot(args: CompleteSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CompleteSnapshotCommandOutput) => void): void;
15
+
16
+ getSnapshotBlock(args: GetSnapshotBlockCommandInput, options?: __HttpHandlerOptions): Promise<GetSnapshotBlockCommandOutput>;
17
+ getSnapshotBlock(args: GetSnapshotBlockCommandInput, cb: (err: any, data?: GetSnapshotBlockCommandOutput) => void): void;
18
+ getSnapshotBlock(args: GetSnapshotBlockCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSnapshotBlockCommandOutput) => void): void;
19
+
20
+ listChangedBlocks(args: ListChangedBlocksCommandInput, options?: __HttpHandlerOptions): Promise<ListChangedBlocksCommandOutput>;
21
+ listChangedBlocks(args: ListChangedBlocksCommandInput, cb: (err: any, data?: ListChangedBlocksCommandOutput) => void): void;
22
+ listChangedBlocks(args: ListChangedBlocksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListChangedBlocksCommandOutput) => void): void;
23
+
24
+ listSnapshotBlocks(args: ListSnapshotBlocksCommandInput, options?: __HttpHandlerOptions): Promise<ListSnapshotBlocksCommandOutput>;
25
+ listSnapshotBlocks(args: ListSnapshotBlocksCommandInput, cb: (err: any, data?: ListSnapshotBlocksCommandOutput) => void): void;
26
+ listSnapshotBlocks(args: ListSnapshotBlocksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSnapshotBlocksCommandOutput) => void): void;
27
+
28
+ putSnapshotBlock(args: PutSnapshotBlockCommandInput, options?: __HttpHandlerOptions): Promise<PutSnapshotBlockCommandOutput>;
29
+ putSnapshotBlock(args: PutSnapshotBlockCommandInput, cb: (err: any, data?: PutSnapshotBlockCommandOutput) => void): void;
30
+ putSnapshotBlock(args: PutSnapshotBlockCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutSnapshotBlockCommandOutput) => void): void;
31
+
32
+ startSnapshot(args: StartSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<StartSnapshotCommandOutput>;
33
+ startSnapshot(args: StartSnapshotCommandInput, cb: (err: any, data?: StartSnapshotCommandOutput) => void): void;
34
+ startSnapshot(args: StartSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartSnapshotCommandOutput) => void): void;
35
+ }
@@ -0,0 +1,73 @@
1
+ import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
2
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
3
+ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
4
+ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
+ import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
+ import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
+ import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
+ import { CompleteSnapshotCommandInput, CompleteSnapshotCommandOutput } from "./commands/CompleteSnapshotCommand";
10
+ import { GetSnapshotBlockCommandInput, GetSnapshotBlockCommandOutput } from "./commands/GetSnapshotBlockCommand";
11
+ import { ListChangedBlocksCommandInput, ListChangedBlocksCommandOutput } from "./commands/ListChangedBlocksCommand";
12
+ import { ListSnapshotBlocksCommandInput, ListSnapshotBlocksCommandOutput } from "./commands/ListSnapshotBlocksCommand";
13
+ import { PutSnapshotBlockCommandInput, PutSnapshotBlockCommandOutput } from "./commands/PutSnapshotBlockCommand";
14
+ import { StartSnapshotCommandInput, StartSnapshotCommandOutput } from "./commands/StartSnapshotCommand";
15
+ export declare type ServiceInputTypes = CompleteSnapshotCommandInput | GetSnapshotBlockCommandInput | ListChangedBlocksCommandInput | ListSnapshotBlocksCommandInput | PutSnapshotBlockCommandInput | StartSnapshotCommandInput;
16
+ export declare type ServiceOutputTypes = CompleteSnapshotCommandOutput | GetSnapshotBlockCommandOutput | ListChangedBlocksCommandOutput | ListSnapshotBlocksCommandOutput | PutSnapshotBlockCommandOutput | StartSnapshotCommandOutput;
17
+ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
18
+
19
+ requestHandler?: __HttpHandler;
20
+
21
+ sha256?: __HashConstructor;
22
+
23
+ urlParser?: __UrlParser;
24
+
25
+ bodyLengthChecker?: (body: any) => number | undefined;
26
+
27
+ streamCollector?: __StreamCollector;
28
+
29
+ base64Decoder?: __Decoder;
30
+
31
+ base64Encoder?: __Encoder;
32
+
33
+ utf8Decoder?: __Decoder;
34
+
35
+ utf8Encoder?: __Encoder;
36
+
37
+ runtime?: string;
38
+
39
+ disableHostPrefix?: boolean;
40
+
41
+ maxAttempts?: number | __Provider<number>;
42
+
43
+ retryMode?: string | __Provider<string>;
44
+
45
+ logger?: __Logger;
46
+
47
+ serviceId?: string;
48
+
49
+ region?: string | __Provider<string>;
50
+
51
+ credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
52
+
53
+ regionInfoProvider?: RegionInfoProvider;
54
+
55
+ defaultUserAgentProvider?: Provider<__UserAgent>;
56
+ }
57
+ declare type EBSClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
58
+
59
+ export interface EBSClientConfig extends EBSClientConfigType {
60
+ }
61
+ declare type EBSClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
62
+
63
+ export interface EBSClientResolvedConfig extends EBSClientResolvedConfigType {
64
+ }
65
+
66
+ export declare class EBSClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, EBSClientResolvedConfig> {
67
+
68
+ readonly config: EBSClientResolvedConfig;
69
+ constructor(configuration: EBSClientConfig);
70
+
71
+ destroy(): void;
72
+ }
73
+ export {};
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { EBSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EBSClient";
4
+ import { CompleteSnapshotRequest, CompleteSnapshotResponse } from "../models/models_0";
5
+ export interface CompleteSnapshotCommandInput extends CompleteSnapshotRequest {
6
+ }
7
+ export interface CompleteSnapshotCommandOutput extends CompleteSnapshotResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class CompleteSnapshotCommand extends $Command<CompleteSnapshotCommandInput, CompleteSnapshotCommandOutput, EBSClientResolvedConfig> {
11
+ readonly input: CompleteSnapshotCommandInput;
12
+ constructor(input: CompleteSnapshotCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: EBSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CompleteSnapshotCommandInput, CompleteSnapshotCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -1,34 +1,16 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
1
3
  import { EBSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EBSClient";
2
4
  import { GetSnapshotBlockRequest, GetSnapshotBlockResponse } from "../models/models_0";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
5
5
  export interface GetSnapshotBlockCommandInput extends GetSnapshotBlockRequest {
6
6
  }
7
7
  export interface GetSnapshotBlockCommandOutput extends GetSnapshotBlockResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Returns the data in a block in an Amazon Elastic Block Store snapshot.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { EBSClient, GetSnapshotBlockCommand } from "@aws-sdk/client-ebs"; // ES Modules import
15
- * // const { EBSClient, GetSnapshotBlockCommand } = require("@aws-sdk/client-ebs"); // CommonJS import
16
- * const client = new EBSClient(config);
17
- * const command = new GetSnapshotBlockCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link GetSnapshotBlockCommandInput} for command's `input` shape.
22
- * @see {@link GetSnapshotBlockCommandOutput} for command's `response` shape.
23
- * @see {@link EBSClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
9
+
26
10
  export declare class GetSnapshotBlockCommand extends $Command<GetSnapshotBlockCommandInput, GetSnapshotBlockCommandOutput, EBSClientResolvedConfig> {
27
11
  readonly input: GetSnapshotBlockCommandInput;
28
12
  constructor(input: GetSnapshotBlockCommandInput);
29
- /**
30
- * @internal
31
- */
13
+
32
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: EBSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetSnapshotBlockCommandInput, GetSnapshotBlockCommandOutput>;
33
15
  private serialize;
34
16
  private deserialize;
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { EBSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EBSClient";
4
+ import { ListChangedBlocksRequest, ListChangedBlocksResponse } from "../models/models_0";
5
+ export interface ListChangedBlocksCommandInput extends ListChangedBlocksRequest {
6
+ }
7
+ export interface ListChangedBlocksCommandOutput extends ListChangedBlocksResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class ListChangedBlocksCommand extends $Command<ListChangedBlocksCommandInput, ListChangedBlocksCommandOutput, EBSClientResolvedConfig> {
11
+ readonly input: ListChangedBlocksCommandInput;
12
+ constructor(input: ListChangedBlocksCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: EBSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListChangedBlocksCommandInput, ListChangedBlocksCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -1,34 +1,16 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
1
3
  import { EBSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EBSClient";
2
4
  import { ListSnapshotBlocksRequest, ListSnapshotBlocksResponse } from "../models/models_0";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
5
5
  export interface ListSnapshotBlocksCommandInput extends ListSnapshotBlocksRequest {
6
6
  }
7
7
  export interface ListSnapshotBlocksCommandOutput extends ListSnapshotBlocksResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Returns information about the blocks in an Amazon Elastic Block Store snapshot.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { EBSClient, ListSnapshotBlocksCommand } from "@aws-sdk/client-ebs"; // ES Modules import
15
- * // const { EBSClient, ListSnapshotBlocksCommand } = require("@aws-sdk/client-ebs"); // CommonJS import
16
- * const client = new EBSClient(config);
17
- * const command = new ListSnapshotBlocksCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link ListSnapshotBlocksCommandInput} for command's `input` shape.
22
- * @see {@link ListSnapshotBlocksCommandOutput} for command's `response` shape.
23
- * @see {@link EBSClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
9
+
26
10
  export declare class ListSnapshotBlocksCommand extends $Command<ListSnapshotBlocksCommandInput, ListSnapshotBlocksCommandOutput, EBSClientResolvedConfig> {
27
11
  readonly input: ListSnapshotBlocksCommandInput;
28
12
  constructor(input: ListSnapshotBlocksCommandInput);
29
- /**
30
- * @internal
31
- */
13
+
32
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: EBSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListSnapshotBlocksCommandInput, ListSnapshotBlocksCommandOutput>;
33
15
  private serialize;
34
16
  private deserialize;
@@ -0,0 +1,24 @@
1
+
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { EBSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EBSClient";
5
+ import { PutSnapshotBlockRequest, PutSnapshotBlockResponse } from "../models/models_0";
6
+ declare type PutSnapshotBlockCommandInputType = Pick<PutSnapshotBlockRequest, Exclude<keyof PutSnapshotBlockRequest, "BlockData">> & {
7
+
8
+ BlockData: PutSnapshotBlockRequest["BlockData"] | string | Uint8Array | Buffer;
9
+ };
10
+
11
+ export interface PutSnapshotBlockCommandInput extends PutSnapshotBlockCommandInputType {
12
+ }
13
+ export interface PutSnapshotBlockCommandOutput extends PutSnapshotBlockResponse, __MetadataBearer {
14
+ }
15
+
16
+ export declare class PutSnapshotBlockCommand extends $Command<PutSnapshotBlockCommandInput, PutSnapshotBlockCommandOutput, EBSClientResolvedConfig> {
17
+ readonly input: PutSnapshotBlockCommandInput;
18
+ constructor(input: PutSnapshotBlockCommandInput);
19
+
20
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: EBSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutSnapshotBlockCommandInput, PutSnapshotBlockCommandOutput>;
21
+ private serialize;
22
+ private deserialize;
23
+ }
24
+ export {};
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { EBSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EBSClient";
4
+ import { StartSnapshotRequest, StartSnapshotResponse } from "../models/models_0";
5
+ export interface StartSnapshotCommandInput extends StartSnapshotRequest {
6
+ }
7
+ export interface StartSnapshotCommandOutput extends StartSnapshotResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class StartSnapshotCommand extends $Command<StartSnapshotCommandInput, StartSnapshotCommandOutput, EBSClientResolvedConfig> {
11
+ readonly input: StartSnapshotCommandInput;
12
+ constructor(input: StartSnapshotCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: EBSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartSnapshotCommandInput, StartSnapshotCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
File without changes
File without changes
@@ -0,0 +1,357 @@
1
+
2
+ import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
3
+ import { Readable } from "stream";
4
+ export declare enum AccessDeniedExceptionReason {
5
+ DEPENDENCY_ACCESS_DENIED = "DEPENDENCY_ACCESS_DENIED",
6
+ UNAUTHORIZED_ACCOUNT = "UNAUTHORIZED_ACCOUNT"
7
+ }
8
+
9
+ export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
10
+ name: "AccessDeniedException";
11
+ $fault: "client";
12
+ Message?: string;
13
+
14
+ Reason: AccessDeniedExceptionReason | string | undefined;
15
+ }
16
+ export declare namespace AccessDeniedException {
17
+
18
+ const filterSensitiveLog: (obj: AccessDeniedException) => any;
19
+ }
20
+
21
+ export interface Block {
22
+
23
+ BlockIndex?: number;
24
+
25
+ BlockToken?: string;
26
+ }
27
+ export declare namespace Block {
28
+
29
+ const filterSensitiveLog: (obj: Block) => any;
30
+ }
31
+
32
+ export interface ChangedBlock {
33
+
34
+ BlockIndex?: number;
35
+
36
+ FirstBlockToken?: string;
37
+
38
+ SecondBlockToken?: string;
39
+ }
40
+ export declare namespace ChangedBlock {
41
+
42
+ const filterSensitiveLog: (obj: ChangedBlock) => any;
43
+ }
44
+ export declare enum ChecksumAggregationMethod {
45
+ CHECKSUM_AGGREGATION_LINEAR = "LINEAR"
46
+ }
47
+ export declare enum ChecksumAlgorithm {
48
+ CHECKSUM_ALGORITHM_SHA256 = "SHA256"
49
+ }
50
+ export interface CompleteSnapshotRequest {
51
+
52
+ SnapshotId: string | undefined;
53
+
54
+ ChangedBlocksCount: number | undefined;
55
+
56
+ Checksum?: string;
57
+
58
+ ChecksumAlgorithm?: ChecksumAlgorithm | string;
59
+
60
+ ChecksumAggregationMethod?: ChecksumAggregationMethod | string;
61
+ }
62
+ export declare namespace CompleteSnapshotRequest {
63
+
64
+ const filterSensitiveLog: (obj: CompleteSnapshotRequest) => any;
65
+ }
66
+ export declare enum Status {
67
+ COMPLETED = "completed",
68
+ ERROR = "error",
69
+ PENDING = "pending"
70
+ }
71
+ export interface CompleteSnapshotResponse {
72
+
73
+ Status?: Status | string;
74
+ }
75
+ export declare namespace CompleteSnapshotResponse {
76
+
77
+ const filterSensitiveLog: (obj: CompleteSnapshotResponse) => any;
78
+ }
79
+
80
+ export interface InternalServerException extends __SmithyException, $MetadataBearer {
81
+ name: "InternalServerException";
82
+ $fault: "server";
83
+ Message?: string;
84
+ }
85
+ export declare namespace InternalServerException {
86
+
87
+ const filterSensitiveLog: (obj: InternalServerException) => any;
88
+ }
89
+ export declare enum RequestThrottledExceptionReason {
90
+ ACCOUNT_THROTTLED = "ACCOUNT_THROTTLED",
91
+ DEPENDENCY_REQUEST_THROTTLED = "DEPENDENCY_REQUEST_THROTTLED"
92
+ }
93
+
94
+ export interface RequestThrottledException extends __SmithyException, $MetadataBearer {
95
+ name: "RequestThrottledException";
96
+ $fault: "client";
97
+ Message?: string;
98
+
99
+ Reason?: RequestThrottledExceptionReason | string;
100
+ }
101
+ export declare namespace RequestThrottledException {
102
+
103
+ const filterSensitiveLog: (obj: RequestThrottledException) => any;
104
+ }
105
+ export declare enum ResourceNotFoundExceptionReason {
106
+ DEPENDENCY_RESOURCE_NOT_FOUND = "DEPENDENCY_RESOURCE_NOT_FOUND",
107
+ SNAPSHOT_NOT_FOUND = "SNAPSHOT_NOT_FOUND"
108
+ }
109
+
110
+ export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
111
+ name: "ResourceNotFoundException";
112
+ $fault: "client";
113
+ Message?: string;
114
+
115
+ Reason?: ResourceNotFoundExceptionReason | string;
116
+ }
117
+ export declare namespace ResourceNotFoundException {
118
+
119
+ const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
120
+ }
121
+ export declare enum ServiceQuotaExceededExceptionReason {
122
+ DEPENDENCY_SERVICE_QUOTA_EXCEEDED = "DEPENDENCY_SERVICE_QUOTA_EXCEEDED"
123
+ }
124
+
125
+ export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
126
+ name: "ServiceQuotaExceededException";
127
+ $fault: "client";
128
+ Message?: string;
129
+
130
+ Reason?: ServiceQuotaExceededExceptionReason | string;
131
+ }
132
+ export declare namespace ServiceQuotaExceededException {
133
+
134
+ const filterSensitiveLog: (obj: ServiceQuotaExceededException) => any;
135
+ }
136
+ export declare enum ValidationExceptionReason {
137
+ INVALID_BLOCK = "INVALID_BLOCK",
138
+ INVALID_BLOCK_TOKEN = "INVALID_BLOCK_TOKEN",
139
+ INVALID_CONTENT_ENCODING = "INVALID_CONTENT_ENCODING",
140
+ INVALID_CUSTOMER_KEY = "INVALID_CUSTOMER_KEY",
141
+ INVALID_DEPENDENCY_REQUEST = "INVALID_DEPENDENCY_REQUEST",
142
+ INVALID_PAGE_TOKEN = "INVALID_PAGE_TOKEN",
143
+ INVALID_PARAMETER_VALUE = "INVALID_PARAMETER_VALUE",
144
+ INVALID_SNAPSHOT_ID = "INVALID_SNAPSHOT_ID",
145
+ INVALID_TAG = "INVALID_TAG",
146
+ INVALID_VOLUME_SIZE = "INVALID_VOLUME_SIZE",
147
+ UNRELATED_SNAPSHOTS = "UNRELATED_SNAPSHOTS"
148
+ }
149
+
150
+ export interface ValidationException extends __SmithyException, $MetadataBearer {
151
+ name: "ValidationException";
152
+ $fault: "client";
153
+ Message?: string;
154
+
155
+ Reason?: ValidationExceptionReason | string;
156
+ }
157
+ export declare namespace ValidationException {
158
+
159
+ const filterSensitiveLog: (obj: ValidationException) => any;
160
+ }
161
+
162
+ export interface ConcurrentLimitExceededException extends __SmithyException, $MetadataBearer {
163
+ name: "ConcurrentLimitExceededException";
164
+ $fault: "client";
165
+ Message?: string;
166
+ }
167
+ export declare namespace ConcurrentLimitExceededException {
168
+
169
+ const filterSensitiveLog: (obj: ConcurrentLimitExceededException) => any;
170
+ }
171
+
172
+ export interface ConflictException extends __SmithyException, $MetadataBearer {
173
+ name: "ConflictException";
174
+ $fault: "server";
175
+ Message?: string;
176
+ }
177
+ export declare namespace ConflictException {
178
+
179
+ const filterSensitiveLog: (obj: ConflictException) => any;
180
+ }
181
+ export interface GetSnapshotBlockRequest {
182
+
183
+ SnapshotId: string | undefined;
184
+
185
+ BlockIndex: number | undefined;
186
+
187
+ BlockToken: string | undefined;
188
+ }
189
+ export declare namespace GetSnapshotBlockRequest {
190
+
191
+ const filterSensitiveLog: (obj: GetSnapshotBlockRequest) => any;
192
+ }
193
+ export interface GetSnapshotBlockResponse {
194
+
195
+ DataLength?: number;
196
+
197
+ BlockData?: Readable | ReadableStream | Blob;
198
+
199
+ Checksum?: string;
200
+
201
+ ChecksumAlgorithm?: ChecksumAlgorithm | string;
202
+ }
203
+ export declare namespace GetSnapshotBlockResponse {
204
+
205
+ const filterSensitiveLog: (obj: GetSnapshotBlockResponse) => any;
206
+ }
207
+ export interface ListChangedBlocksRequest {
208
+
209
+ FirstSnapshotId?: string;
210
+
211
+ SecondSnapshotId: string | undefined;
212
+
213
+ NextToken?: string;
214
+
215
+ MaxResults?: number;
216
+
217
+ StartingBlockIndex?: number;
218
+ }
219
+ export declare namespace ListChangedBlocksRequest {
220
+
221
+ const filterSensitiveLog: (obj: ListChangedBlocksRequest) => any;
222
+ }
223
+ export interface ListChangedBlocksResponse {
224
+
225
+ ChangedBlocks?: ChangedBlock[];
226
+
227
+ ExpiryTime?: Date;
228
+
229
+ VolumeSize?: number;
230
+
231
+ BlockSize?: number;
232
+
233
+ NextToken?: string;
234
+ }
235
+ export declare namespace ListChangedBlocksResponse {
236
+
237
+ const filterSensitiveLog: (obj: ListChangedBlocksResponse) => any;
238
+ }
239
+ export interface ListSnapshotBlocksRequest {
240
+
241
+ SnapshotId: string | undefined;
242
+
243
+ NextToken?: string;
244
+
245
+ MaxResults?: number;
246
+
247
+ StartingBlockIndex?: number;
248
+ }
249
+ export declare namespace ListSnapshotBlocksRequest {
250
+
251
+ const filterSensitiveLog: (obj: ListSnapshotBlocksRequest) => any;
252
+ }
253
+ export interface ListSnapshotBlocksResponse {
254
+
255
+ Blocks?: Block[];
256
+
257
+ ExpiryTime?: Date;
258
+
259
+ VolumeSize?: number;
260
+
261
+ BlockSize?: number;
262
+
263
+ NextToken?: string;
264
+ }
265
+ export declare namespace ListSnapshotBlocksResponse {
266
+
267
+ const filterSensitiveLog: (obj: ListSnapshotBlocksResponse) => any;
268
+ }
269
+ export interface PutSnapshotBlockRequest {
270
+
271
+ SnapshotId: string | undefined;
272
+
273
+ BlockIndex: number | undefined;
274
+
275
+ BlockData: Readable | ReadableStream | Blob | undefined;
276
+
277
+ DataLength: number | undefined;
278
+
279
+ Progress?: number;
280
+
281
+ Checksum: string | undefined;
282
+
283
+ ChecksumAlgorithm: ChecksumAlgorithm | string | undefined;
284
+ }
285
+ export declare namespace PutSnapshotBlockRequest {
286
+
287
+ const filterSensitiveLog: (obj: PutSnapshotBlockRequest) => any;
288
+ }
289
+ export interface PutSnapshotBlockResponse {
290
+
291
+ Checksum?: string;
292
+
293
+ ChecksumAlgorithm?: ChecksumAlgorithm | string;
294
+ }
295
+ export declare namespace PutSnapshotBlockResponse {
296
+
297
+ const filterSensitiveLog: (obj: PutSnapshotBlockResponse) => any;
298
+ }
299
+
300
+ export interface Tag {
301
+
302
+ Key?: string;
303
+
304
+ Value?: string;
305
+ }
306
+ export declare namespace Tag {
307
+
308
+ const filterSensitiveLog: (obj: Tag) => any;
309
+ }
310
+ export interface StartSnapshotRequest {
311
+
312
+ VolumeSize: number | undefined;
313
+
314
+ ParentSnapshotId?: string;
315
+
316
+ Tags?: Tag[];
317
+
318
+ Description?: string;
319
+
320
+ ClientToken?: string;
321
+
322
+ Encrypted?: boolean;
323
+
324
+ KmsKeyArn?: string;
325
+
326
+ Timeout?: number;
327
+ }
328
+ export declare namespace StartSnapshotRequest {
329
+
330
+ const filterSensitiveLog: (obj: StartSnapshotRequest) => any;
331
+ }
332
+ export interface StartSnapshotResponse {
333
+
334
+ Description?: string;
335
+
336
+ SnapshotId?: string;
337
+
338
+ OwnerId?: string;
339
+
340
+ Status?: Status | string;
341
+
342
+ StartTime?: Date;
343
+
344
+ VolumeSize?: number;
345
+
346
+ BlockSize?: number;
347
+
348
+ Tags?: Tag[];
349
+
350
+ ParentSnapshotId?: string;
351
+
352
+ KmsKeyArn?: string;
353
+ }
354
+ export declare namespace StartSnapshotResponse {
355
+
356
+ const filterSensitiveLog: (obj: StartSnapshotResponse) => any;
357
+ }
@@ -1,6 +1,6 @@
1
+ import { PaginationConfiguration } from "@aws-sdk/types";
1
2
  import { EBS } from "../EBS";
2
3
  import { EBSClient } from "../EBSClient";
3
- import { PaginationConfiguration } from "@aws-sdk/types";
4
4
  export interface EBSPaginationConfiguration extends PaginationConfiguration {
5
5
  client: EBS | EBSClient;
6
6
  }
@@ -1,4 +1,4 @@
1
+ import { Paginator } from "@aws-sdk/types";
1
2
  import { ListChangedBlocksCommandInput, ListChangedBlocksCommandOutput } from "../commands/ListChangedBlocksCommand";
2
3
  import { EBSPaginationConfiguration } from "./Interfaces";
3
- import { Paginator } from "@aws-sdk/types";
4
4
  export declare function paginateListChangedBlocks(config: EBSPaginationConfiguration, input: ListChangedBlocksCommandInput, ...additionalArguments: any): Paginator<ListChangedBlocksCommandOutput>;
@@ -1,4 +1,4 @@
1
+ import { Paginator } from "@aws-sdk/types";
1
2
  import { ListSnapshotBlocksCommandInput, ListSnapshotBlocksCommandOutput } from "../commands/ListSnapshotBlocksCommand";
2
3
  import { EBSPaginationConfiguration } from "./Interfaces";
3
- import { Paginator } from "@aws-sdk/types";
4
4
  export declare function paginateListSnapshotBlocks(config: EBSPaginationConfiguration, input: ListSnapshotBlocksCommandInput, ...additionalArguments: any): Paginator<ListSnapshotBlocksCommandOutput>;