@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.
- package/CHANGELOG.md +47 -0
- package/dist-cjs/EBS.js +0 -23
- package/dist-cjs/EBSClient.js +0 -28
- package/dist-cjs/commands/CompleteSnapshotCommand.js +0 -27
- package/dist-cjs/commands/GetSnapshotBlockCommand.js +0 -25
- package/dist-cjs/commands/ListChangedBlocksCommand.js +0 -26
- package/dist-cjs/commands/ListSnapshotBlocksCommand.js +0 -25
- package/dist-cjs/commands/PutSnapshotBlockCommand.js +0 -28
- package/dist-cjs/commands/StartSnapshotCommand.js +0 -28
- package/dist-cjs/commands/index.js +9 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +4 -12
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -70
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListChangedBlocksPaginator.js +0 -11
- package/dist-cjs/pagination/ListSnapshotBlocksPaginator.js +0 -11
- package/dist-cjs/pagination/index.js +6 -0
- package/dist-cjs/protocols/Aws_restJson1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/EBS.js +0 -1
- package/dist-es/EBSClient.js +0 -1
- package/dist-es/commands/CompleteSnapshotCommand.js +0 -1
- package/dist-es/commands/GetSnapshotBlockCommand.js +0 -1
- package/dist-es/commands/ListChangedBlocksCommand.js +0 -1
- package/dist-es/commands/ListSnapshotBlocksCommand.js +0 -1
- package/dist-es/commands/PutSnapshotBlockCommand.js +0 -1
- package/dist-es/commands/StartSnapshotCommand.js +0 -1
- package/dist-es/commands/index.js +6 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +4 -12
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListChangedBlocksPaginator.js +0 -1
- package/dist-es/pagination/ListSnapshotBlocksPaginator.js +0 -1
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/index.d.ts +4 -11
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/EBS.d.ts +7 -49
- package/dist-types/ts3.4/EBSClient.d.ts +24 -108
- package/dist-types/ts3.4/commands/CompleteSnapshotCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/GetSnapshotBlockCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListChangedBlocksCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListSnapshotBlocksCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/PutSnapshotBlockCommand.d.ts +5 -30
- package/dist-types/ts3.4/commands/StartSnapshotCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/index.d.ts +4 -11
- package/dist-types/ts3.4/models/models_0.d.ts +106 -416
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/EBS.js.map +0 -1
- package/dist-cjs/EBSClient.js.map +0 -1
- package/dist-cjs/commands/CompleteSnapshotCommand.js.map +0 -1
- package/dist-cjs/commands/GetSnapshotBlockCommand.js.map +0 -1
- package/dist-cjs/commands/ListChangedBlocksCommand.js.map +0 -1
- package/dist-cjs/commands/ListSnapshotBlocksCommand.js.map +0 -1
- package/dist-cjs/commands/PutSnapshotBlockCommand.js.map +0 -1
- package/dist-cjs/commands/StartSnapshotCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListChangedBlocksPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListSnapshotBlocksPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/EBS.js.map +0 -1
- package/dist-es/EBSClient.js.map +0 -1
- package/dist-es/commands/CompleteSnapshotCommand.js.map +0 -1
- package/dist-es/commands/GetSnapshotBlockCommand.js.map +0 -1
- package/dist-es/commands/ListChangedBlocksCommand.js.map +0 -1
- package/dist-es/commands/ListSnapshotBlocksCommand.js.map +0 -1
- package/dist-es/commands/PutSnapshotBlockCommand.js.map +0 -1
- package/dist-es/commands/StartSnapshotCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListChangedBlocksPaginator.js.map +0 -1
- package/dist-es/pagination/ListSnapshotBlocksPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_restJson1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/EBS.ts +0 -258
- package/src/EBSClient.ts +0 -273
- package/src/commands/CompleteSnapshotCommand.ts +0 -97
- package/src/commands/GetSnapshotBlockCommand.ts +0 -95
- package/src/commands/ListChangedBlocksCommand.ts +0 -96
- package/src/commands/ListSnapshotBlocksCommand.ts +0 -95
- package/src/commands/PutSnapshotBlockCommand.ts +0 -107
- package/src/commands/StartSnapshotCommand.ts +0 -98
- package/src/endpoints.ts +0 -83
- package/src/index.ts +0 -12
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -824
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListChangedBlocksPaginator.ts +0 -59
- package/src/pagination/ListSnapshotBlocksPaginator.ts +0 -59
- package/src/protocols/Aws_restJson1.ts +0 -1238
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { EBSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EBSClient";
|
|
15
|
-
import { GetSnapshotBlockRequest, GetSnapshotBlockResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1GetSnapshotBlockCommand,
|
|
18
|
-
serializeAws_restJson1GetSnapshotBlockCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface GetSnapshotBlockCommandInput extends GetSnapshotBlockRequest {}
|
|
22
|
-
export interface GetSnapshotBlockCommandOutput extends GetSnapshotBlockResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Returns the data in a block in an Amazon Elastic Block Store snapshot.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { EBSClient, GetSnapshotBlockCommand } from "@aws-sdk/client-ebs"; // ES Modules import
|
|
30
|
-
* // const { EBSClient, GetSnapshotBlockCommand } = require("@aws-sdk/client-ebs"); // CommonJS import
|
|
31
|
-
* const client = new EBSClient(config);
|
|
32
|
-
* const command = new GetSnapshotBlockCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link GetSnapshotBlockCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link GetSnapshotBlockCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link EBSClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class GetSnapshotBlockCommand extends $Command<
|
|
42
|
-
GetSnapshotBlockCommandInput,
|
|
43
|
-
GetSnapshotBlockCommandOutput,
|
|
44
|
-
EBSClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: GetSnapshotBlockCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: EBSClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<GetSnapshotBlockCommandInput, GetSnapshotBlockCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "EBSClient";
|
|
69
|
-
const commandName = "GetSnapshotBlockCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: GetSnapshotBlockRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: GetSnapshotBlockResponse.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: GetSnapshotBlockCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1GetSnapshotBlockCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetSnapshotBlockCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1GetSnapshotBlockCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { EBSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EBSClient";
|
|
15
|
-
import { ListChangedBlocksRequest, ListChangedBlocksResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1ListChangedBlocksCommand,
|
|
18
|
-
serializeAws_restJson1ListChangedBlocksCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface ListChangedBlocksCommandInput extends ListChangedBlocksRequest {}
|
|
22
|
-
export interface ListChangedBlocksCommandOutput extends ListChangedBlocksResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Returns information about the blocks that are different between two
|
|
26
|
-
* Amazon Elastic Block Store snapshots of the same volume/snapshot lineage.</p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { EBSClient, ListChangedBlocksCommand } from "@aws-sdk/client-ebs"; // ES Modules import
|
|
31
|
-
* // const { EBSClient, ListChangedBlocksCommand } = require("@aws-sdk/client-ebs"); // CommonJS import
|
|
32
|
-
* const client = new EBSClient(config);
|
|
33
|
-
* const command = new ListChangedBlocksCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link ListChangedBlocksCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link ListChangedBlocksCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link EBSClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class ListChangedBlocksCommand extends $Command<
|
|
43
|
-
ListChangedBlocksCommandInput,
|
|
44
|
-
ListChangedBlocksCommandOutput,
|
|
45
|
-
EBSClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: ListChangedBlocksCommandInput) {
|
|
51
|
-
// Start section: command_constructor
|
|
52
|
-
super();
|
|
53
|
-
// End section: command_constructor
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
*/
|
|
59
|
-
resolveMiddleware(
|
|
60
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
61
|
-
configuration: EBSClientResolvedConfig,
|
|
62
|
-
options?: __HttpHandlerOptions
|
|
63
|
-
): Handler<ListChangedBlocksCommandInput, ListChangedBlocksCommandOutput> {
|
|
64
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
65
|
-
|
|
66
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
67
|
-
|
|
68
|
-
const { logger } = configuration;
|
|
69
|
-
const clientName = "EBSClient";
|
|
70
|
-
const commandName = "ListChangedBlocksCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: ListChangedBlocksRequest.filterSensitiveLog,
|
|
76
|
-
outputFilterSensitiveLog: ListChangedBlocksResponse.filterSensitiveLog,
|
|
77
|
-
};
|
|
78
|
-
const { requestHandler } = configuration;
|
|
79
|
-
return stack.resolve(
|
|
80
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
81
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
82
|
-
handlerExecutionContext
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
private serialize(input: ListChangedBlocksCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
-
return serializeAws_restJson1ListChangedBlocksCommand(input, context);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListChangedBlocksCommandOutput> {
|
|
91
|
-
return deserializeAws_restJson1ListChangedBlocksCommand(output, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Start section: command_body_extra
|
|
95
|
-
// End section: command_body_extra
|
|
96
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { EBSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EBSClient";
|
|
15
|
-
import { ListSnapshotBlocksRequest, ListSnapshotBlocksResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1ListSnapshotBlocksCommand,
|
|
18
|
-
serializeAws_restJson1ListSnapshotBlocksCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface ListSnapshotBlocksCommandInput extends ListSnapshotBlocksRequest {}
|
|
22
|
-
export interface ListSnapshotBlocksCommandOutput extends ListSnapshotBlocksResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Returns information about the blocks in an Amazon Elastic Block Store snapshot.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { EBSClient, ListSnapshotBlocksCommand } from "@aws-sdk/client-ebs"; // ES Modules import
|
|
30
|
-
* // const { EBSClient, ListSnapshotBlocksCommand } = require("@aws-sdk/client-ebs"); // CommonJS import
|
|
31
|
-
* const client = new EBSClient(config);
|
|
32
|
-
* const command = new ListSnapshotBlocksCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link ListSnapshotBlocksCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link ListSnapshotBlocksCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link EBSClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class ListSnapshotBlocksCommand extends $Command<
|
|
42
|
-
ListSnapshotBlocksCommandInput,
|
|
43
|
-
ListSnapshotBlocksCommandOutput,
|
|
44
|
-
EBSClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: ListSnapshotBlocksCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: EBSClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<ListSnapshotBlocksCommandInput, ListSnapshotBlocksCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "EBSClient";
|
|
69
|
-
const commandName = "ListSnapshotBlocksCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: ListSnapshotBlocksRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: ListSnapshotBlocksResponse.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: ListSnapshotBlocksCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1ListSnapshotBlocksCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListSnapshotBlocksCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1ListSnapshotBlocksCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { EBSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EBSClient";
|
|
15
|
-
import { PutSnapshotBlockRequest, PutSnapshotBlockResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1PutSnapshotBlockCommand,
|
|
18
|
-
serializeAws_restJson1PutSnapshotBlockCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
type PutSnapshotBlockCommandInputType = Omit<PutSnapshotBlockRequest, "BlockData"> & {
|
|
22
|
-
/**
|
|
23
|
-
* For *`PutSnapshotBlockRequest["BlockData"]`*, see {@link PutSnapshotBlockRequest.BlockData}.
|
|
24
|
-
*/
|
|
25
|
-
BlockData: PutSnapshotBlockRequest["BlockData"] | string | Uint8Array | Buffer;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* This interface extends from `PutSnapshotBlockRequest` interface. There are more parameters than `BlockData` defined in {@link PutSnapshotBlockRequest}
|
|
29
|
-
*/
|
|
30
|
-
export interface PutSnapshotBlockCommandInput extends PutSnapshotBlockCommandInputType {}
|
|
31
|
-
export interface PutSnapshotBlockCommandOutput extends PutSnapshotBlockResponse, __MetadataBearer {}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* <p>Writes a block of data to a snapshot. If the specified block contains
|
|
35
|
-
* data, the existing data is overwritten. The target snapshot must be in the
|
|
36
|
-
* <code>pending</code> state.</p>
|
|
37
|
-
* <p>Data written to a snapshot must be aligned with 512-KiB sectors.</p>
|
|
38
|
-
* @example
|
|
39
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
40
|
-
* ```javascript
|
|
41
|
-
* import { EBSClient, PutSnapshotBlockCommand } from "@aws-sdk/client-ebs"; // ES Modules import
|
|
42
|
-
* // const { EBSClient, PutSnapshotBlockCommand } = require("@aws-sdk/client-ebs"); // CommonJS import
|
|
43
|
-
* const client = new EBSClient(config);
|
|
44
|
-
* const command = new PutSnapshotBlockCommand(input);
|
|
45
|
-
* const response = await client.send(command);
|
|
46
|
-
* ```
|
|
47
|
-
*
|
|
48
|
-
* @see {@link PutSnapshotBlockCommandInput} for command's `input` shape.
|
|
49
|
-
* @see {@link PutSnapshotBlockCommandOutput} for command's `response` shape.
|
|
50
|
-
* @see {@link EBSClientResolvedConfig | config} for command's `input` shape.
|
|
51
|
-
*
|
|
52
|
-
*/
|
|
53
|
-
export class PutSnapshotBlockCommand extends $Command<
|
|
54
|
-
PutSnapshotBlockCommandInput,
|
|
55
|
-
PutSnapshotBlockCommandOutput,
|
|
56
|
-
EBSClientResolvedConfig
|
|
57
|
-
> {
|
|
58
|
-
// Start section: command_properties
|
|
59
|
-
// End section: command_properties
|
|
60
|
-
|
|
61
|
-
constructor(readonly input: PutSnapshotBlockCommandInput) {
|
|
62
|
-
// Start section: command_constructor
|
|
63
|
-
super();
|
|
64
|
-
// End section: command_constructor
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* @internal
|
|
69
|
-
*/
|
|
70
|
-
resolveMiddleware(
|
|
71
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
72
|
-
configuration: EBSClientResolvedConfig,
|
|
73
|
-
options?: __HttpHandlerOptions
|
|
74
|
-
): Handler<PutSnapshotBlockCommandInput, PutSnapshotBlockCommandOutput> {
|
|
75
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
76
|
-
|
|
77
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
78
|
-
|
|
79
|
-
const { logger } = configuration;
|
|
80
|
-
const clientName = "EBSClient";
|
|
81
|
-
const commandName = "PutSnapshotBlockCommand";
|
|
82
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
83
|
-
logger,
|
|
84
|
-
clientName,
|
|
85
|
-
commandName,
|
|
86
|
-
inputFilterSensitiveLog: PutSnapshotBlockRequest.filterSensitiveLog,
|
|
87
|
-
outputFilterSensitiveLog: PutSnapshotBlockResponse.filterSensitiveLog,
|
|
88
|
-
};
|
|
89
|
-
const { requestHandler } = configuration;
|
|
90
|
-
return stack.resolve(
|
|
91
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
92
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
93
|
-
handlerExecutionContext
|
|
94
|
-
);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
private serialize(input: PutSnapshotBlockCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
98
|
-
return serializeAws_restJson1PutSnapshotBlockCommand(input, context);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PutSnapshotBlockCommandOutput> {
|
|
102
|
-
return deserializeAws_restJson1PutSnapshotBlockCommand(output, context);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
// Start section: command_body_extra
|
|
106
|
-
// End section: command_body_extra
|
|
107
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { EBSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EBSClient";
|
|
15
|
-
import { StartSnapshotRequest, StartSnapshotResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1StartSnapshotCommand,
|
|
18
|
-
serializeAws_restJson1StartSnapshotCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface StartSnapshotCommandInput extends StartSnapshotRequest {}
|
|
22
|
-
export interface StartSnapshotCommandOutput extends StartSnapshotResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Creates a new Amazon EBS snapshot. The new snapshot enters the <code>pending</code> state
|
|
26
|
-
* after the request completes. </p>
|
|
27
|
-
* <p>After creating the snapshot, use <a href="https://docs.aws.amazon.com/ebs/latest/APIReference/API_PutSnapshotBlock.html"> PutSnapshotBlock</a> to
|
|
28
|
-
* write blocks of data to the snapshot.</p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { EBSClient, StartSnapshotCommand } from "@aws-sdk/client-ebs"; // ES Modules import
|
|
33
|
-
* // const { EBSClient, StartSnapshotCommand } = require("@aws-sdk/client-ebs"); // CommonJS import
|
|
34
|
-
* const client = new EBSClient(config);
|
|
35
|
-
* const command = new StartSnapshotCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link StartSnapshotCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link StartSnapshotCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link EBSClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class StartSnapshotCommand extends $Command<
|
|
45
|
-
StartSnapshotCommandInput,
|
|
46
|
-
StartSnapshotCommandOutput,
|
|
47
|
-
EBSClientResolvedConfig
|
|
48
|
-
> {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
|
|
52
|
-
constructor(readonly input: StartSnapshotCommandInput) {
|
|
53
|
-
// Start section: command_constructor
|
|
54
|
-
super();
|
|
55
|
-
// End section: command_constructor
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
*/
|
|
61
|
-
resolveMiddleware(
|
|
62
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
63
|
-
configuration: EBSClientResolvedConfig,
|
|
64
|
-
options?: __HttpHandlerOptions
|
|
65
|
-
): Handler<StartSnapshotCommandInput, StartSnapshotCommandOutput> {
|
|
66
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
67
|
-
|
|
68
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
69
|
-
|
|
70
|
-
const { logger } = configuration;
|
|
71
|
-
const clientName = "EBSClient";
|
|
72
|
-
const commandName = "StartSnapshotCommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: StartSnapshotRequest.filterSensitiveLog,
|
|
78
|
-
outputFilterSensitiveLog: StartSnapshotResponse.filterSensitiveLog,
|
|
79
|
-
};
|
|
80
|
-
const { requestHandler } = configuration;
|
|
81
|
-
return stack.resolve(
|
|
82
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
83
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
84
|
-
handlerExecutionContext
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private serialize(input: StartSnapshotCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
89
|
-
return serializeAws_restJson1StartSnapshotCommand(input, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<StartSnapshotCommandOutput> {
|
|
93
|
-
return deserializeAws_restJson1StartSnapshotCommand(output, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Start section: command_body_extra
|
|
97
|
-
// End section: command_body_extra
|
|
98
|
-
}
|
package/src/endpoints.ts
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
|
|
2
|
-
import { RegionInfoProvider } from "@aws-sdk/types";
|
|
3
|
-
|
|
4
|
-
const regionHash: RegionHash = {
|
|
5
|
-
"fips-ca-central-1": {
|
|
6
|
-
hostname: "ebs-fips.ca-central-1.amazonaws.com",
|
|
7
|
-
signingRegion: "ca-central-1",
|
|
8
|
-
},
|
|
9
|
-
"fips-us-east-1": {
|
|
10
|
-
hostname: "ebs-fips.us-east-1.amazonaws.com",
|
|
11
|
-
signingRegion: "us-east-1",
|
|
12
|
-
},
|
|
13
|
-
"fips-us-east-2": {
|
|
14
|
-
hostname: "ebs-fips.us-east-2.amazonaws.com",
|
|
15
|
-
signingRegion: "us-east-2",
|
|
16
|
-
},
|
|
17
|
-
"fips-us-west-1": {
|
|
18
|
-
hostname: "ebs-fips.us-west-1.amazonaws.com",
|
|
19
|
-
signingRegion: "us-west-1",
|
|
20
|
-
},
|
|
21
|
-
"fips-us-west-2": {
|
|
22
|
-
hostname: "ebs-fips.us-west-2.amazonaws.com",
|
|
23
|
-
signingRegion: "us-west-2",
|
|
24
|
-
},
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
const partitionHash: PartitionHash = {
|
|
28
|
-
aws: {
|
|
29
|
-
regions: [
|
|
30
|
-
"af-south-1",
|
|
31
|
-
"ap-east-1",
|
|
32
|
-
"ap-northeast-1",
|
|
33
|
-
"ap-northeast-2",
|
|
34
|
-
"ap-northeast-3",
|
|
35
|
-
"ap-south-1",
|
|
36
|
-
"ap-southeast-1",
|
|
37
|
-
"ap-southeast-2",
|
|
38
|
-
"ca-central-1",
|
|
39
|
-
"eu-central-1",
|
|
40
|
-
"eu-north-1",
|
|
41
|
-
"eu-south-1",
|
|
42
|
-
"eu-west-1",
|
|
43
|
-
"eu-west-2",
|
|
44
|
-
"eu-west-3",
|
|
45
|
-
"fips-ca-central-1",
|
|
46
|
-
"fips-us-east-1",
|
|
47
|
-
"fips-us-east-2",
|
|
48
|
-
"fips-us-west-1",
|
|
49
|
-
"fips-us-west-2",
|
|
50
|
-
"me-south-1",
|
|
51
|
-
"sa-east-1",
|
|
52
|
-
"us-east-1",
|
|
53
|
-
"us-east-2",
|
|
54
|
-
"us-west-1",
|
|
55
|
-
"us-west-2",
|
|
56
|
-
],
|
|
57
|
-
hostname: "ebs.{region}.amazonaws.com",
|
|
58
|
-
},
|
|
59
|
-
"aws-cn": {
|
|
60
|
-
regions: ["cn-north-1", "cn-northwest-1"],
|
|
61
|
-
hostname: "ebs.{region}.amazonaws.com.cn",
|
|
62
|
-
},
|
|
63
|
-
"aws-iso": {
|
|
64
|
-
regions: ["us-iso-east-1"],
|
|
65
|
-
hostname: "ebs.{region}.c2s.ic.gov",
|
|
66
|
-
},
|
|
67
|
-
"aws-iso-b": {
|
|
68
|
-
regions: ["us-isob-east-1"],
|
|
69
|
-
hostname: "ebs.{region}.sc2s.sgov.gov",
|
|
70
|
-
},
|
|
71
|
-
"aws-us-gov": {
|
|
72
|
-
regions: ["us-gov-east-1", "us-gov-west-1"],
|
|
73
|
-
hostname: "ebs.{region}.amazonaws.com",
|
|
74
|
-
},
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
|
|
78
|
-
getRegionInfo(region, {
|
|
79
|
-
...options,
|
|
80
|
-
signingService: "ebs",
|
|
81
|
-
regionHash,
|
|
82
|
-
partitionHash,
|
|
83
|
-
});
|
package/src/index.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export * from "./EBSClient";
|
|
2
|
-
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";
|
package/src/models/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./models_0";
|