@aws-sdk/client-ebs 3.35.0 → 3.38.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 (129) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/EBS.js +0 -23
  3. package/dist-cjs/EBSClient.js +0 -28
  4. package/dist-cjs/commands/CompleteSnapshotCommand.js +0 -27
  5. package/dist-cjs/commands/GetSnapshotBlockCommand.js +0 -25
  6. package/dist-cjs/commands/ListChangedBlocksCommand.js +0 -26
  7. package/dist-cjs/commands/ListSnapshotBlocksCommand.js +0 -25
  8. package/dist-cjs/commands/PutSnapshotBlockCommand.js +0 -28
  9. package/dist-cjs/commands/StartSnapshotCommand.js +0 -28
  10. package/dist-cjs/commands/index.js +9 -0
  11. package/dist-cjs/endpoints.js +1 -2
  12. package/dist-cjs/index.js +4 -12
  13. package/dist-cjs/models/index.js +0 -1
  14. package/dist-cjs/models/models_0.js +0 -70
  15. package/dist-cjs/pagination/Interfaces.js +0 -1
  16. package/dist-cjs/pagination/ListChangedBlocksPaginator.js +0 -11
  17. package/dist-cjs/pagination/ListSnapshotBlocksPaginator.js +0 -11
  18. package/dist-cjs/pagination/index.js +6 -0
  19. package/dist-cjs/protocols/Aws_restJson1.js +0 -6
  20. package/dist-cjs/runtimeConfig.browser.js +1 -6
  21. package/dist-cjs/runtimeConfig.js +2 -7
  22. package/dist-cjs/runtimeConfig.native.js +0 -4
  23. package/dist-cjs/runtimeConfig.shared.js +0 -4
  24. package/dist-es/EBS.js +0 -1
  25. package/dist-es/EBSClient.js +0 -1
  26. package/dist-es/commands/CompleteSnapshotCommand.js +0 -1
  27. package/dist-es/commands/GetSnapshotBlockCommand.js +0 -1
  28. package/dist-es/commands/ListChangedBlocksCommand.js +0 -1
  29. package/dist-es/commands/ListSnapshotBlocksCommand.js +0 -1
  30. package/dist-es/commands/PutSnapshotBlockCommand.js +0 -1
  31. package/dist-es/commands/StartSnapshotCommand.js +0 -1
  32. package/dist-es/commands/index.js +6 -0
  33. package/dist-es/endpoints.js +1 -2
  34. package/dist-es/index.js +4 -12
  35. package/dist-es/models/index.js +0 -1
  36. package/dist-es/models/models_0.js +0 -1
  37. package/dist-es/pagination/Interfaces.js +0 -1
  38. package/dist-es/pagination/ListChangedBlocksPaginator.js +0 -1
  39. package/dist-es/pagination/ListSnapshotBlocksPaginator.js +0 -1
  40. package/dist-es/pagination/index.js +3 -0
  41. package/dist-es/protocols/Aws_restJson1.js +0 -1
  42. package/dist-es/runtimeConfig.browser.js +1 -2
  43. package/dist-es/runtimeConfig.js +2 -3
  44. package/dist-es/runtimeConfig.native.js +0 -1
  45. package/dist-es/runtimeConfig.shared.js +0 -1
  46. package/dist-types/commands/index.d.ts +6 -0
  47. package/dist-types/index.d.ts +4 -11
  48. package/dist-types/pagination/index.d.ts +3 -0
  49. package/dist-types/ts3.4/EBS.d.ts +7 -49
  50. package/dist-types/ts3.4/EBSClient.d.ts +24 -108
  51. package/dist-types/ts3.4/commands/CompleteSnapshotCommand.d.ts +2 -22
  52. package/dist-types/ts3.4/commands/GetSnapshotBlockCommand.d.ts +2 -20
  53. package/dist-types/ts3.4/commands/ListChangedBlocksCommand.d.ts +2 -21
  54. package/dist-types/ts3.4/commands/ListSnapshotBlocksCommand.d.ts +2 -20
  55. package/dist-types/ts3.4/commands/PutSnapshotBlockCommand.d.ts +5 -30
  56. package/dist-types/ts3.4/commands/StartSnapshotCommand.d.ts +2 -23
  57. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  58. package/dist-types/ts3.4/index.d.ts +4 -11
  59. package/dist-types/ts3.4/models/models_0.d.ts +106 -416
  60. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  61. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  62. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  63. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  64. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  65. package/package.json +33 -30
  66. package/dist-cjs/EBS.js.map +0 -1
  67. package/dist-cjs/EBSClient.js.map +0 -1
  68. package/dist-cjs/commands/CompleteSnapshotCommand.js.map +0 -1
  69. package/dist-cjs/commands/GetSnapshotBlockCommand.js.map +0 -1
  70. package/dist-cjs/commands/ListChangedBlocksCommand.js.map +0 -1
  71. package/dist-cjs/commands/ListSnapshotBlocksCommand.js.map +0 -1
  72. package/dist-cjs/commands/PutSnapshotBlockCommand.js.map +0 -1
  73. package/dist-cjs/commands/StartSnapshotCommand.js.map +0 -1
  74. package/dist-cjs/endpoints.js.map +0 -1
  75. package/dist-cjs/index.js.map +0 -1
  76. package/dist-cjs/models/index.js.map +0 -1
  77. package/dist-cjs/models/models_0.js.map +0 -1
  78. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  79. package/dist-cjs/pagination/ListChangedBlocksPaginator.js.map +0 -1
  80. package/dist-cjs/pagination/ListSnapshotBlocksPaginator.js.map +0 -1
  81. package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
  82. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  83. package/dist-cjs/runtimeConfig.js.map +0 -1
  84. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  85. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  86. package/dist-es/EBS.js.map +0 -1
  87. package/dist-es/EBSClient.js.map +0 -1
  88. package/dist-es/commands/CompleteSnapshotCommand.js.map +0 -1
  89. package/dist-es/commands/GetSnapshotBlockCommand.js.map +0 -1
  90. package/dist-es/commands/ListChangedBlocksCommand.js.map +0 -1
  91. package/dist-es/commands/ListSnapshotBlocksCommand.js.map +0 -1
  92. package/dist-es/commands/PutSnapshotBlockCommand.js.map +0 -1
  93. package/dist-es/commands/StartSnapshotCommand.js.map +0 -1
  94. package/dist-es/endpoints.js.map +0 -1
  95. package/dist-es/index.js.map +0 -1
  96. package/dist-es/models/index.js.map +0 -1
  97. package/dist-es/models/models_0.js.map +0 -1
  98. package/dist-es/pagination/Interfaces.js.map +0 -1
  99. package/dist-es/pagination/ListChangedBlocksPaginator.js.map +0 -1
  100. package/dist-es/pagination/ListSnapshotBlocksPaginator.js.map +0 -1
  101. package/dist-es/protocols/Aws_restJson1.js.map +0 -1
  102. package/dist-es/runtimeConfig.browser.js.map +0 -1
  103. package/dist-es/runtimeConfig.js.map +0 -1
  104. package/dist-es/runtimeConfig.native.js.map +0 -1
  105. package/dist-es/runtimeConfig.shared.js.map +0 -1
  106. package/jest.config.js +0 -4
  107. package/src/EBS.ts +0 -258
  108. package/src/EBSClient.ts +0 -273
  109. package/src/commands/CompleteSnapshotCommand.ts +0 -97
  110. package/src/commands/GetSnapshotBlockCommand.ts +0 -95
  111. package/src/commands/ListChangedBlocksCommand.ts +0 -96
  112. package/src/commands/ListSnapshotBlocksCommand.ts +0 -95
  113. package/src/commands/PutSnapshotBlockCommand.ts +0 -107
  114. package/src/commands/StartSnapshotCommand.ts +0 -98
  115. package/src/endpoints.ts +0 -83
  116. package/src/index.ts +0 -12
  117. package/src/models/index.ts +0 -1
  118. package/src/models/models_0.ts +0 -824
  119. package/src/pagination/Interfaces.ts +0 -8
  120. package/src/pagination/ListChangedBlocksPaginator.ts +0 -59
  121. package/src/pagination/ListSnapshotBlocksPaginator.ts +0 -59
  122. package/src/protocols/Aws_restJson1.ts +0 -1238
  123. package/src/runtimeConfig.browser.ts +0 -41
  124. package/src/runtimeConfig.native.ts +0 -17
  125. package/src/runtimeConfig.shared.ts +0 -17
  126. package/src/runtimeConfig.ts +0 -46
  127. package/tsconfig.es.json +0 -10
  128. package/tsconfig.json +0 -33
  129. package/tsconfig.types.json +0 -9
@@ -15,143 +15,59 @@ import { StartSnapshotCommandInput, StartSnapshotCommandOutput } from "./command
15
15
  export declare type ServiceInputTypes = CompleteSnapshotCommandInput | GetSnapshotBlockCommandInput | ListChangedBlocksCommandInput | ListSnapshotBlocksCommandInput | PutSnapshotBlockCommandInput | StartSnapshotCommandInput;
16
16
  export declare type ServiceOutputTypes = CompleteSnapshotCommandOutput | GetSnapshotBlockCommandOutput | ListChangedBlocksCommandOutput | ListSnapshotBlocksCommandOutput | PutSnapshotBlockCommandOutput | StartSnapshotCommandOutput;
17
17
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
18
- /**
19
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
20
- */
18
+
21
19
  requestHandler?: __HttpHandler;
22
- /**
23
- * A constructor for a class implementing the {@link __Hash} interface
24
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
25
- * @internal
26
- */
20
+
27
21
  sha256?: __HashConstructor;
28
- /**
29
- * The function that will be used to convert strings into HTTP endpoints.
30
- * @internal
31
- */
22
+
32
23
  urlParser?: __UrlParser;
33
- /**
34
- * A function that can calculate the length of a request body.
35
- * @internal
36
- */
24
+
37
25
  bodyLengthChecker?: (body: any) => number | undefined;
38
- /**
39
- * A function that converts a stream into an array of bytes.
40
- * @internal
41
- */
26
+
42
27
  streamCollector?: __StreamCollector;
43
- /**
44
- * The function that will be used to convert a base64-encoded string to a byte array.
45
- * @internal
46
- */
28
+
47
29
  base64Decoder?: __Decoder;
48
- /**
49
- * The function that will be used to convert binary data to a base64-encoded string.
50
- * @internal
51
- */
30
+
52
31
  base64Encoder?: __Encoder;
53
- /**
54
- * The function that will be used to convert a UTF8-encoded string to a byte array.
55
- * @internal
56
- */
32
+
57
33
  utf8Decoder?: __Decoder;
58
- /**
59
- * The function that will be used to convert binary data to a UTF-8 encoded string.
60
- * @internal
61
- */
34
+
62
35
  utf8Encoder?: __Encoder;
63
- /**
64
- * The runtime environment.
65
- * @internal
66
- */
36
+
67
37
  runtime?: string;
68
- /**
69
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
70
- * trait of an operation.
71
- */
38
+
72
39
  disableHostPrefix?: boolean;
73
- /**
74
- * Value for how many times a request will be made at most in case of retry.
75
- */
40
+
76
41
  maxAttempts?: number | __Provider<number>;
77
- /**
78
- * Specifies which retry algorithm to use.
79
- */
42
+
80
43
  retryMode?: string | __Provider<string>;
81
- /**
82
- * Optional logger for logging debug/info/warn/error.
83
- */
44
+
84
45
  logger?: __Logger;
85
- /**
86
- * Unique service identifier.
87
- * @internal
88
- */
46
+
89
47
  serviceId?: string;
90
- /**
91
- * The AWS region to which this client will send requests
92
- */
48
+
93
49
  region?: string | __Provider<string>;
94
- /**
95
- * Default credentials provider; Not available in browser runtime.
96
- * @internal
97
- */
50
+
98
51
  credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
99
- /**
100
- * Fetch related hostname, signing name or signing region with given region.
101
- * @internal
102
- */
52
+
103
53
  regionInfoProvider?: RegionInfoProvider;
104
- /**
105
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
106
- * @internal
107
- */
54
+
108
55
  defaultUserAgentProvider?: Provider<__UserAgent>;
109
56
  }
110
57
  declare type EBSClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
111
- /**
112
- * The configuration interface of EBSClient class constructor that set the region, credentials and other options.
113
- */
58
+
114
59
  export interface EBSClientConfig extends EBSClientConfigType {
115
60
  }
116
61
  declare type EBSClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
117
- /**
118
- * The resolved configuration interface of EBSClient class. This is resolved and normalized from the {@link EBSClientConfig | constructor configuration interface}.
119
- */
62
+
120
63
  export interface EBSClientResolvedConfig extends EBSClientResolvedConfigType {
121
64
  }
122
- /**
123
- * <p>You can use the Amazon Elastic Block Store (Amazon EBS) direct APIs to create Amazon EBS snapshots, write data directly to
124
- * your snapshots, read data on your snapshots, and identify the differences or changes between
125
- * two snapshots. If you’re an independent software vendor (ISV) who offers backup services for
126
- * Amazon EBS, the EBS direct APIs make it more efficient and cost-effective to track incremental changes on
127
- * your Amazon EBS volumes through snapshots. This can be done without having to create new volumes
128
- * from snapshots, and then use Amazon Elastic Compute Cloud (Amazon EC2) instances to compare the differences.</p>
129
- *
130
- * <p>You can create incremental snapshots directly from data on-premises into volumes and the
131
- * cloud to use for quick disaster recovery. With the ability to write and read snapshots, you can
132
- * write your on-premises data to an snapshot during a disaster. Then after recovery, you can
133
- * restore it back to Amazon Web Services or on-premises from the snapshot. You no longer need to build and
134
- * maintain complex mechanisms to copy data to and from Amazon EBS.</p>
135
- *
136
- *
137
- * <p>This API reference provides detailed information about the actions, data types,
138
- * parameters, and errors of the EBS direct APIs. For more information about the elements that
139
- * 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
140
- * Guide</i>. For more information about the supported Amazon Web Services Regions, endpoints,
141
- * 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
142
- * the <i>Amazon Web Services General Reference</i>.</p>
143
- */
65
+
144
66
  export declare class EBSClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, EBSClientResolvedConfig> {
145
- /**
146
- * The resolved configuration of EBSClient class. This is resolved and normalized from the {@link EBSClientConfig | constructor configuration interface}.
147
- */
67
+
148
68
  readonly config: EBSClientResolvedConfig;
149
69
  constructor(configuration: EBSClientConfig);
150
- /**
151
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
152
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
153
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
154
- */
70
+
155
71
  destroy(): void;
156
72
  }
157
73
  export {};
@@ -6,31 +6,11 @@ export interface CompleteSnapshotCommandInput extends CompleteSnapshotRequest {
6
6
  }
7
7
  export interface CompleteSnapshotCommandOutput extends CompleteSnapshotResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Seals and completes the snapshot after all of the required blocks of data have been
11
- * written to it. Completing the snapshot changes the status to <code>completed</code>. You
12
- * cannot write new blocks to a snapshot after it has been completed.</p>
13
- * @example
14
- * Use a bare-bones client and the command you need to make an API call.
15
- * ```javascript
16
- * import { EBSClient, CompleteSnapshotCommand } from "@aws-sdk/client-ebs"; // ES Modules import
17
- * // const { EBSClient, CompleteSnapshotCommand } = require("@aws-sdk/client-ebs"); // CommonJS import
18
- * const client = new EBSClient(config);
19
- * const command = new CompleteSnapshotCommand(input);
20
- * const response = await client.send(command);
21
- * ```
22
- *
23
- * @see {@link CompleteSnapshotCommandInput} for command's `input` shape.
24
- * @see {@link CompleteSnapshotCommandOutput} for command's `response` shape.
25
- * @see {@link EBSClientResolvedConfig | config} for command's `input` shape.
26
- *
27
- */
9
+
28
10
  export declare class CompleteSnapshotCommand extends $Command<CompleteSnapshotCommandInput, CompleteSnapshotCommandOutput, EBSClientResolvedConfig> {
29
11
  readonly input: CompleteSnapshotCommandInput;
30
12
  constructor(input: CompleteSnapshotCommandInput);
31
- /**
32
- * @internal
33
- */
13
+
34
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: EBSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CompleteSnapshotCommandInput, CompleteSnapshotCommandOutput>;
35
15
  private serialize;
36
16
  private deserialize;
@@ -6,29 +6,11 @@ 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;
@@ -6,30 +6,11 @@ export interface ListChangedBlocksCommandInput extends ListChangedBlocksRequest
6
6
  }
7
7
  export interface ListChangedBlocksCommandOutput extends ListChangedBlocksResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Returns information about the blocks that are different between two
11
- * Amazon Elastic Block Store snapshots of the same volume/snapshot lineage.</p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { EBSClient, ListChangedBlocksCommand } from "@aws-sdk/client-ebs"; // ES Modules import
16
- * // const { EBSClient, ListChangedBlocksCommand } = require("@aws-sdk/client-ebs"); // CommonJS import
17
- * const client = new EBSClient(config);
18
- * const command = new ListChangedBlocksCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link ListChangedBlocksCommandInput} for command's `input` shape.
23
- * @see {@link ListChangedBlocksCommandOutput} for command's `response` shape.
24
- * @see {@link EBSClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
9
+
27
10
  export declare class ListChangedBlocksCommand extends $Command<ListChangedBlocksCommandInput, ListChangedBlocksCommandOutput, EBSClientResolvedConfig> {
28
11
  readonly input: ListChangedBlocksCommandInput;
29
12
  constructor(input: ListChangedBlocksCommandInput);
30
- /**
31
- * @internal
32
- */
13
+
33
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: EBSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListChangedBlocksCommandInput, ListChangedBlocksCommandOutput>;
34
15
  private serialize;
35
16
  private deserialize;
@@ -6,29 +6,11 @@ export interface ListSnapshotBlocksCommandInput extends ListSnapshotBlocksReques
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;
@@ -1,47 +1,22 @@
1
- /// <reference types="node" />
1
+
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { EBSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EBSClient";
5
5
  import { PutSnapshotBlockRequest, PutSnapshotBlockResponse } from "../models/models_0";
6
6
  declare type PutSnapshotBlockCommandInputType = Pick<PutSnapshotBlockRequest, Exclude<keyof PutSnapshotBlockRequest, "BlockData">> & {
7
- /**
8
- * For *`PutSnapshotBlockRequest["BlockData"]`*, see {@link PutSnapshotBlockRequest.BlockData}.
9
- */
7
+
10
8
  BlockData: PutSnapshotBlockRequest["BlockData"] | string | Uint8Array | Buffer;
11
9
  };
12
- /**
13
- * This interface extends from `PutSnapshotBlockRequest` interface. There are more parameters than `BlockData` defined in {@link PutSnapshotBlockRequest}
14
- */
10
+
15
11
  export interface PutSnapshotBlockCommandInput extends PutSnapshotBlockCommandInputType {
16
12
  }
17
13
  export interface PutSnapshotBlockCommandOutput extends PutSnapshotBlockResponse, __MetadataBearer {
18
14
  }
19
- /**
20
- * <p>Writes a block of data to a snapshot. If the specified block contains
21
- * data, the existing data is overwritten. The target snapshot must be in the
22
- * <code>pending</code> state.</p>
23
- * <p>Data written to a snapshot must be aligned with 512-KiB sectors.</p>
24
- * @example
25
- * Use a bare-bones client and the command you need to make an API call.
26
- * ```javascript
27
- * import { EBSClient, PutSnapshotBlockCommand } from "@aws-sdk/client-ebs"; // ES Modules import
28
- * // const { EBSClient, PutSnapshotBlockCommand } = require("@aws-sdk/client-ebs"); // CommonJS import
29
- * const client = new EBSClient(config);
30
- * const command = new PutSnapshotBlockCommand(input);
31
- * const response = await client.send(command);
32
- * ```
33
- *
34
- * @see {@link PutSnapshotBlockCommandInput} for command's `input` shape.
35
- * @see {@link PutSnapshotBlockCommandOutput} for command's `response` shape.
36
- * @see {@link EBSClientResolvedConfig | config} for command's `input` shape.
37
- *
38
- */
15
+
39
16
  export declare class PutSnapshotBlockCommand extends $Command<PutSnapshotBlockCommandInput, PutSnapshotBlockCommandOutput, EBSClientResolvedConfig> {
40
17
  readonly input: PutSnapshotBlockCommandInput;
41
18
  constructor(input: PutSnapshotBlockCommandInput);
42
- /**
43
- * @internal
44
- */
19
+
45
20
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: EBSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutSnapshotBlockCommandInput, PutSnapshotBlockCommandOutput>;
46
21
  private serialize;
47
22
  private deserialize;
@@ -6,32 +6,11 @@ export interface StartSnapshotCommandInput extends StartSnapshotRequest {
6
6
  }
7
7
  export interface StartSnapshotCommandOutput extends StartSnapshotResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Creates a new Amazon EBS snapshot. The new snapshot enters the <code>pending</code> state
11
- * after the request completes. </p>
12
- * <p>After creating the snapshot, use <a href="https://docs.aws.amazon.com/ebs/latest/APIReference/API_PutSnapshotBlock.html"> PutSnapshotBlock</a> to
13
- * write blocks of data to the snapshot.</p>
14
- * @example
15
- * Use a bare-bones client and the command you need to make an API call.
16
- * ```javascript
17
- * import { EBSClient, StartSnapshotCommand } from "@aws-sdk/client-ebs"; // ES Modules import
18
- * // const { EBSClient, StartSnapshotCommand } = require("@aws-sdk/client-ebs"); // CommonJS import
19
- * const client = new EBSClient(config);
20
- * const command = new StartSnapshotCommand(input);
21
- * const response = await client.send(command);
22
- * ```
23
- *
24
- * @see {@link StartSnapshotCommandInput} for command's `input` shape.
25
- * @see {@link StartSnapshotCommandOutput} for command's `response` shape.
26
- * @see {@link EBSClientResolvedConfig | config} for command's `input` shape.
27
- *
28
- */
9
+
29
10
  export declare class StartSnapshotCommand extends $Command<StartSnapshotCommandInput, StartSnapshotCommandOutput, EBSClientResolvedConfig> {
30
11
  readonly input: StartSnapshotCommandInput;
31
12
  constructor(input: StartSnapshotCommandInput);
32
- /**
33
- * @internal
34
- */
13
+
35
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: EBSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartSnapshotCommandInput, StartSnapshotCommandOutput>;
36
15
  private serialize;
37
16
  private deserialize;
@@ -0,0 +1,6 @@
1
+ export * from "./CompleteSnapshotCommand";
2
+ export * from "./GetSnapshotBlockCommand";
3
+ export * from "./ListChangedBlocksCommand";
4
+ export * from "./ListSnapshotBlocksCommand";
5
+ export * from "./PutSnapshotBlockCommand";
6
+ export * from "./StartSnapshotCommand";
@@ -1,12 +1,5 @@
1
- export * from "./EBSClient";
2
1
  export * from "./EBS";
3
- export * from "./commands/CompleteSnapshotCommand";
4
- export * from "./commands/GetSnapshotBlockCommand";
5
- export * from "./commands/ListChangedBlocksCommand";
6
- export * from "./pagination/ListChangedBlocksPaginator";
7
- export * from "./commands/ListSnapshotBlocksCommand";
8
- export * from "./pagination/ListSnapshotBlocksPaginator";
9
- export * from "./commands/PutSnapshotBlockCommand";
10
- export * from "./commands/StartSnapshotCommand";
11
- export * from "./pagination/Interfaces";
12
- export * from "./models/index";
2
+ export * from "./EBSClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";