@aws-sdk/client-datasync 3.370.0 → 3.378.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/README.md +24 -0
- package/dist-cjs/DataSync.js +6 -0
- package/dist-cjs/commands/CreateLocationAzureBlobCommand.js +47 -0
- package/dist-cjs/commands/DescribeLocationAzureBlobCommand.js +46 -0
- package/dist-cjs/commands/UpdateLocationAzureBlobCommand.js +47 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +28 -2
- package/dist-cjs/protocols/Aws_json1_1.js +143 -3
- package/dist-es/DataSync.js +6 -0
- package/dist-es/commands/CreateLocationAzureBlobCommand.js +43 -0
- package/dist-es/commands/DescribeLocationAzureBlobCommand.js +42 -0
- package/dist-es/commands/UpdateLocationAzureBlobCommand.js +43 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +23 -0
- package/dist-es/protocols/Aws_json1_1.js +134 -0
- package/dist-types/DataSync.d.ts +21 -0
- package/dist-types/DataSyncClient.d.ts +5 -2
- package/dist-types/commands/CreateLocationAzureBlobCommand.d.ts +98 -0
- package/dist-types/commands/CreateLocationNfsCommand.d.ts +2 -2
- package/dist-types/commands/CreateLocationSmbCommand.d.ts +3 -1
- package/dist-types/commands/DescribeLocationAzureBlobCommand.d.ts +88 -0
- package/dist-types/commands/DescribeTaskCommand.d.ts +1 -1
- package/dist-types/commands/DescribeTaskExecutionCommand.d.ts +2 -1
- package/dist-types/commands/UpdateLocationAzureBlobCommand.d.ts +88 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +240 -45
- package/dist-types/protocols/Aws_json1_1.d.ts +27 -0
- package/dist-types/ts3.4/DataSync.d.ts +51 -0
- package/dist-types/ts3.4/DataSyncClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/CreateLocationAzureBlobCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribeLocationAzureBlobCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateLocationAzureBlobCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +63 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
- package/package.json +35 -35
package/README.md
CHANGED
|
@@ -235,6 +235,14 @@ CreateAgent
|
|
|
235
235
|
|
|
236
236
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-datasync/classes/createagentcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-datasync/interfaces/createagentcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-datasync/interfaces/createagentcommandoutput.html)
|
|
237
237
|
|
|
238
|
+
</details>
|
|
239
|
+
<details>
|
|
240
|
+
<summary>
|
|
241
|
+
CreateLocationAzureBlob
|
|
242
|
+
</summary>
|
|
243
|
+
|
|
244
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-datasync/classes/createlocationazureblobcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-datasync/interfaces/createlocationazureblobcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-datasync/interfaces/createlocationazureblobcommandoutput.html)
|
|
245
|
+
|
|
238
246
|
</details>
|
|
239
247
|
<details>
|
|
240
248
|
<summary>
|
|
@@ -363,6 +371,14 @@ DescribeDiscoveryJob
|
|
|
363
371
|
|
|
364
372
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-datasync/classes/describediscoveryjobcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-datasync/interfaces/describediscoveryjobcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-datasync/interfaces/describediscoveryjobcommandoutput.html)
|
|
365
373
|
|
|
374
|
+
</details>
|
|
375
|
+
<details>
|
|
376
|
+
<summary>
|
|
377
|
+
DescribeLocationAzureBlob
|
|
378
|
+
</summary>
|
|
379
|
+
|
|
380
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-datasync/classes/describelocationazureblobcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-datasync/interfaces/describelocationazureblobcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-datasync/interfaces/describelocationazureblobcommandoutput.html)
|
|
381
|
+
|
|
366
382
|
</details>
|
|
367
383
|
<details>
|
|
368
384
|
<summary>
|
|
@@ -611,6 +627,14 @@ UpdateDiscoveryJob
|
|
|
611
627
|
|
|
612
628
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-datasync/classes/updatediscoveryjobcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-datasync/interfaces/updatediscoveryjobcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-datasync/interfaces/updatediscoveryjobcommandoutput.html)
|
|
613
629
|
|
|
630
|
+
</details>
|
|
631
|
+
<details>
|
|
632
|
+
<summary>
|
|
633
|
+
UpdateLocationAzureBlob
|
|
634
|
+
</summary>
|
|
635
|
+
|
|
636
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-datasync/classes/updatelocationazureblobcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-datasync/interfaces/updatelocationazureblobcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-datasync/interfaces/updatelocationazureblobcommandoutput.html)
|
|
637
|
+
|
|
614
638
|
</details>
|
|
615
639
|
<details>
|
|
616
640
|
<summary>
|
package/dist-cjs/DataSync.js
CHANGED
|
@@ -5,6 +5,7 @@ const smithy_client_1 = require("@smithy/smithy-client");
|
|
|
5
5
|
const AddStorageSystemCommand_1 = require("./commands/AddStorageSystemCommand");
|
|
6
6
|
const CancelTaskExecutionCommand_1 = require("./commands/CancelTaskExecutionCommand");
|
|
7
7
|
const CreateAgentCommand_1 = require("./commands/CreateAgentCommand");
|
|
8
|
+
const CreateLocationAzureBlobCommand_1 = require("./commands/CreateLocationAzureBlobCommand");
|
|
8
9
|
const CreateLocationEfsCommand_1 = require("./commands/CreateLocationEfsCommand");
|
|
9
10
|
const CreateLocationFsxLustreCommand_1 = require("./commands/CreateLocationFsxLustreCommand");
|
|
10
11
|
const CreateLocationFsxOntapCommand_1 = require("./commands/CreateLocationFsxOntapCommand");
|
|
@@ -21,6 +22,7 @@ const DeleteLocationCommand_1 = require("./commands/DeleteLocationCommand");
|
|
|
21
22
|
const DeleteTaskCommand_1 = require("./commands/DeleteTaskCommand");
|
|
22
23
|
const DescribeAgentCommand_1 = require("./commands/DescribeAgentCommand");
|
|
23
24
|
const DescribeDiscoveryJobCommand_1 = require("./commands/DescribeDiscoveryJobCommand");
|
|
25
|
+
const DescribeLocationAzureBlobCommand_1 = require("./commands/DescribeLocationAzureBlobCommand");
|
|
24
26
|
const DescribeLocationEfsCommand_1 = require("./commands/DescribeLocationEfsCommand");
|
|
25
27
|
const DescribeLocationFsxLustreCommand_1 = require("./commands/DescribeLocationFsxLustreCommand");
|
|
26
28
|
const DescribeLocationFsxOntapCommand_1 = require("./commands/DescribeLocationFsxOntapCommand");
|
|
@@ -52,6 +54,7 @@ const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
|
52
54
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
53
55
|
const UpdateAgentCommand_1 = require("./commands/UpdateAgentCommand");
|
|
54
56
|
const UpdateDiscoveryJobCommand_1 = require("./commands/UpdateDiscoveryJobCommand");
|
|
57
|
+
const UpdateLocationAzureBlobCommand_1 = require("./commands/UpdateLocationAzureBlobCommand");
|
|
55
58
|
const UpdateLocationHdfsCommand_1 = require("./commands/UpdateLocationHdfsCommand");
|
|
56
59
|
const UpdateLocationNfsCommand_1 = require("./commands/UpdateLocationNfsCommand");
|
|
57
60
|
const UpdateLocationObjectStorageCommand_1 = require("./commands/UpdateLocationObjectStorageCommand");
|
|
@@ -64,6 +67,7 @@ const commands = {
|
|
|
64
67
|
AddStorageSystemCommand: AddStorageSystemCommand_1.AddStorageSystemCommand,
|
|
65
68
|
CancelTaskExecutionCommand: CancelTaskExecutionCommand_1.CancelTaskExecutionCommand,
|
|
66
69
|
CreateAgentCommand: CreateAgentCommand_1.CreateAgentCommand,
|
|
70
|
+
CreateLocationAzureBlobCommand: CreateLocationAzureBlobCommand_1.CreateLocationAzureBlobCommand,
|
|
67
71
|
CreateLocationEfsCommand: CreateLocationEfsCommand_1.CreateLocationEfsCommand,
|
|
68
72
|
CreateLocationFsxLustreCommand: CreateLocationFsxLustreCommand_1.CreateLocationFsxLustreCommand,
|
|
69
73
|
CreateLocationFsxOntapCommand: CreateLocationFsxOntapCommand_1.CreateLocationFsxOntapCommand,
|
|
@@ -80,6 +84,7 @@ const commands = {
|
|
|
80
84
|
DeleteTaskCommand: DeleteTaskCommand_1.DeleteTaskCommand,
|
|
81
85
|
DescribeAgentCommand: DescribeAgentCommand_1.DescribeAgentCommand,
|
|
82
86
|
DescribeDiscoveryJobCommand: DescribeDiscoveryJobCommand_1.DescribeDiscoveryJobCommand,
|
|
87
|
+
DescribeLocationAzureBlobCommand: DescribeLocationAzureBlobCommand_1.DescribeLocationAzureBlobCommand,
|
|
83
88
|
DescribeLocationEfsCommand: DescribeLocationEfsCommand_1.DescribeLocationEfsCommand,
|
|
84
89
|
DescribeLocationFsxLustreCommand: DescribeLocationFsxLustreCommand_1.DescribeLocationFsxLustreCommand,
|
|
85
90
|
DescribeLocationFsxOntapCommand: DescribeLocationFsxOntapCommand_1.DescribeLocationFsxOntapCommand,
|
|
@@ -111,6 +116,7 @@ const commands = {
|
|
|
111
116
|
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
112
117
|
UpdateAgentCommand: UpdateAgentCommand_1.UpdateAgentCommand,
|
|
113
118
|
UpdateDiscoveryJobCommand: UpdateDiscoveryJobCommand_1.UpdateDiscoveryJobCommand,
|
|
119
|
+
UpdateLocationAzureBlobCommand: UpdateLocationAzureBlobCommand_1.UpdateLocationAzureBlobCommand,
|
|
114
120
|
UpdateLocationHdfsCommand: UpdateLocationHdfsCommand_1.UpdateLocationHdfsCommand,
|
|
115
121
|
UpdateLocationNfsCommand: UpdateLocationNfsCommand_1.UpdateLocationNfsCommand,
|
|
116
122
|
UpdateLocationObjectStorageCommand: UpdateLocationObjectStorageCommand_1.UpdateLocationObjectStorageCommand,
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateLocationAzureBlobCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
9
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
10
|
+
class CreateLocationAzureBlobCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateLocationAzureBlobCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "DataSyncClient";
|
|
29
|
+
const commandName = "CreateLocationAzureBlobCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: models_0_1.CreateLocationAzureBlobRequestFilterSensitiveLog,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
};
|
|
37
|
+
const { requestHandler } = configuration;
|
|
38
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
39
|
+
}
|
|
40
|
+
serialize(input, context) {
|
|
41
|
+
return (0, Aws_json1_1_1.se_CreateLocationAzureBlobCommand)(input, context);
|
|
42
|
+
}
|
|
43
|
+
deserialize(output, context) {
|
|
44
|
+
return (0, Aws_json1_1_1.de_CreateLocationAzureBlobCommand)(output, context);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.CreateLocationAzureBlobCommand = CreateLocationAzureBlobCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeLocationAzureBlobCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class DescribeLocationAzureBlobCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeLocationAzureBlobCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "DataSyncClient";
|
|
28
|
+
const commandName = "DescribeLocationAzureBlobCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.se_DescribeLocationAzureBlobCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.de_DescribeLocationAzureBlobCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DescribeLocationAzureBlobCommand = DescribeLocationAzureBlobCommand;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateLocationAzureBlobCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
9
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
10
|
+
class UpdateLocationAzureBlobCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateLocationAzureBlobCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "DataSyncClient";
|
|
29
|
+
const commandName = "UpdateLocationAzureBlobCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: models_0_1.UpdateLocationAzureBlobRequestFilterSensitiveLog,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
};
|
|
37
|
+
const { requestHandler } = configuration;
|
|
38
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
39
|
+
}
|
|
40
|
+
serialize(input, context) {
|
|
41
|
+
return (0, Aws_json1_1_1.se_UpdateLocationAzureBlobCommand)(input, context);
|
|
42
|
+
}
|
|
43
|
+
deserialize(output, context) {
|
|
44
|
+
return (0, Aws_json1_1_1.de_UpdateLocationAzureBlobCommand)(output, context);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.UpdateLocationAzureBlobCommand = UpdateLocationAzureBlobCommand;
|
|
@@ -4,6 +4,7 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
tslib_1.__exportStar(require("./AddStorageSystemCommand"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./CancelTaskExecutionCommand"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./CreateAgentCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./CreateLocationAzureBlobCommand"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./CreateLocationEfsCommand"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./CreateLocationFsxLustreCommand"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./CreateLocationFsxOntapCommand"), exports);
|
|
@@ -20,6 +21,7 @@ tslib_1.__exportStar(require("./DeleteLocationCommand"), exports);
|
|
|
20
21
|
tslib_1.__exportStar(require("./DeleteTaskCommand"), exports);
|
|
21
22
|
tslib_1.__exportStar(require("./DescribeAgentCommand"), exports);
|
|
22
23
|
tslib_1.__exportStar(require("./DescribeDiscoveryJobCommand"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./DescribeLocationAzureBlobCommand"), exports);
|
|
23
25
|
tslib_1.__exportStar(require("./DescribeLocationEfsCommand"), exports);
|
|
24
26
|
tslib_1.__exportStar(require("./DescribeLocationFsxLustreCommand"), exports);
|
|
25
27
|
tslib_1.__exportStar(require("./DescribeLocationFsxOntapCommand"), exports);
|
|
@@ -51,6 +53,7 @@ tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
|
51
53
|
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
52
54
|
tslib_1.__exportStar(require("./UpdateAgentCommand"), exports);
|
|
53
55
|
tslib_1.__exportStar(require("./UpdateDiscoveryJobCommand"), exports);
|
|
56
|
+
tslib_1.__exportStar(require("./UpdateLocationAzureBlobCommand"), exports);
|
|
54
57
|
tslib_1.__exportStar(require("./UpdateLocationHdfsCommand"), exports);
|
|
55
58
|
tslib_1.__exportStar(require("./UpdateLocationNfsCommand"), exports);
|
|
56
59
|
tslib_1.__exportStar(require("./UpdateLocationObjectStorageCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.UpdateStorageSystemRequestFilterSensitiveLog = exports.UpdateLocationSmbRequestFilterSensitiveLog = exports.UpdateLocationObjectStorageRequestFilterSensitiveLog = void 0;
|
|
3
|
+
exports.CreateLocationFsxOpenZfsRequestFilterSensitiveLog = exports.CreateLocationFsxOntapRequestFilterSensitiveLog = exports.FsxProtocolFilterSensitiveLog = exports.FsxProtocolSmbFilterSensitiveLog = exports.CreateLocationAzureBlobRequestFilterSensitiveLog = exports.AzureBlobSasConfigurationFilterSensitiveLog = exports.AddStorageSystemRequestFilterSensitiveLog = exports.CredentialsFilterSensitiveLog = exports.TaskFilterName = exports.Operator = exports.LocationFilterName = exports.TaskExecutionStatus = exports.PhaseStatus = exports.TaskStatus = exports.RecommendationStatus = exports.DiscoveryResourceFilter = exports.DiscoveryResourceType = exports.StorageSystemConnectivityStatus = exports.DiscoveryJobStatus = exports.EndpointType = exports.VerifyMode = exports.Uid = exports.TransferMode = exports.TaskQueueing = exports.SmbSecurityDescriptorCopyFlags = exports.PreserveDevices = exports.PreserveDeletedFiles = exports.PosixPermissions = exports.OverwriteMode = exports.ObjectTags = exports.Mtime = exports.LogLevel = exports.Gid = exports.FilterType = exports.S3StorageClass = exports.ObjectStorageServerProtocol = exports.HdfsRpcProtection = exports.HdfsDataTransferProtection = exports.HdfsAuthenticationType = exports.SmbVersion = exports.NfsVersion = exports.EfsInTransitEncryption = exports.AzureBlobType = exports.AzureBlobAuthenticationType = exports.AzureAccessTier = exports.Atime = exports.AgentStatus = exports.InvalidRequestException = exports.InternalException = exports.DiscoverySystemType = void 0;
|
|
4
|
+
exports.UpdateStorageSystemRequestFilterSensitiveLog = exports.UpdateLocationSmbRequestFilterSensitiveLog = exports.UpdateLocationObjectStorageRequestFilterSensitiveLog = exports.UpdateLocationAzureBlobRequestFilterSensitiveLog = exports.DescribeLocationFsxOpenZfsResponseFilterSensitiveLog = exports.DescribeLocationFsxOntapResponseFilterSensitiveLog = exports.CreateLocationSmbRequestFilterSensitiveLog = exports.CreateLocationObjectStorageRequestFilterSensitiveLog = exports.CreateLocationFsxWindowsRequestFilterSensitiveLog = void 0;
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const DataSyncServiceException_1 = require("./DataSyncServiceException");
|
|
7
7
|
exports.DiscoverySystemType = {
|
|
@@ -44,6 +44,17 @@ exports.Atime = {
|
|
|
44
44
|
BEST_EFFORT: "BEST_EFFORT",
|
|
45
45
|
NONE: "NONE",
|
|
46
46
|
};
|
|
47
|
+
exports.AzureAccessTier = {
|
|
48
|
+
ARCHIVE: "ARCHIVE",
|
|
49
|
+
COOL: "COOL",
|
|
50
|
+
HOT: "HOT",
|
|
51
|
+
};
|
|
52
|
+
exports.AzureBlobAuthenticationType = {
|
|
53
|
+
SAS: "SAS",
|
|
54
|
+
};
|
|
55
|
+
exports.AzureBlobType = {
|
|
56
|
+
BLOCK: "BLOCK",
|
|
57
|
+
};
|
|
47
58
|
exports.EfsInTransitEncryption = {
|
|
48
59
|
NONE: "NONE",
|
|
49
60
|
TLS1_2: "TLS1_2",
|
|
@@ -239,6 +250,16 @@ const AddStorageSystemRequestFilterSensitiveLog = (obj) => ({
|
|
|
239
250
|
...(obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) }),
|
|
240
251
|
});
|
|
241
252
|
exports.AddStorageSystemRequestFilterSensitiveLog = AddStorageSystemRequestFilterSensitiveLog;
|
|
253
|
+
const AzureBlobSasConfigurationFilterSensitiveLog = (obj) => ({
|
|
254
|
+
...obj,
|
|
255
|
+
...(obj.Token && { Token: smithy_client_1.SENSITIVE_STRING }),
|
|
256
|
+
});
|
|
257
|
+
exports.AzureBlobSasConfigurationFilterSensitiveLog = AzureBlobSasConfigurationFilterSensitiveLog;
|
|
258
|
+
const CreateLocationAzureBlobRequestFilterSensitiveLog = (obj) => ({
|
|
259
|
+
...obj,
|
|
260
|
+
...(obj.SasConfiguration && { SasConfiguration: (0, exports.AzureBlobSasConfigurationFilterSensitiveLog)(obj.SasConfiguration) }),
|
|
261
|
+
});
|
|
262
|
+
exports.CreateLocationAzureBlobRequestFilterSensitiveLog = CreateLocationAzureBlobRequestFilterSensitiveLog;
|
|
242
263
|
const FsxProtocolSmbFilterSensitiveLog = (obj) => ({
|
|
243
264
|
...obj,
|
|
244
265
|
...(obj.Password && { Password: smithy_client_1.SENSITIVE_STRING }),
|
|
@@ -284,6 +305,11 @@ const DescribeLocationFsxOpenZfsResponseFilterSensitiveLog = (obj) => ({
|
|
|
284
305
|
...(obj.Protocol && { Protocol: (0, exports.FsxProtocolFilterSensitiveLog)(obj.Protocol) }),
|
|
285
306
|
});
|
|
286
307
|
exports.DescribeLocationFsxOpenZfsResponseFilterSensitiveLog = DescribeLocationFsxOpenZfsResponseFilterSensitiveLog;
|
|
308
|
+
const UpdateLocationAzureBlobRequestFilterSensitiveLog = (obj) => ({
|
|
309
|
+
...obj,
|
|
310
|
+
...(obj.SasConfiguration && { SasConfiguration: (0, exports.AzureBlobSasConfigurationFilterSensitiveLog)(obj.SasConfiguration) }),
|
|
311
|
+
});
|
|
312
|
+
exports.UpdateLocationAzureBlobRequestFilterSensitiveLog = UpdateLocationAzureBlobRequestFilterSensitiveLog;
|
|
287
313
|
const UpdateLocationObjectStorageRequestFilterSensitiveLog = (obj) => ({
|
|
288
314
|
...obj,
|
|
289
315
|
...(obj.SecretKey && { SecretKey: smithy_client_1.SENSITIVE_STRING }),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.de_UpdateTaskExecutionCommand = exports.de_UpdateTaskCommand = exports.de_UpdateStorageSystemCommand = exports.de_UpdateLocationSmbCommand = exports.de_UpdateLocationObjectStorageCommand = exports.de_UpdateLocationNfsCommand = exports.de_UpdateLocationHdfsCommand = exports.de_UpdateDiscoveryJobCommand = exports.de_UpdateAgentCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopDiscoveryJobCommand = exports.de_StartTaskExecutionCommand = exports.de_StartDiscoveryJobCommand = void 0;
|
|
3
|
+
exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopDiscoveryJobCommand = exports.se_StartTaskExecutionCommand = exports.se_StartDiscoveryJobCommand = exports.se_RemoveStorageSystemCommand = exports.se_ListTasksCommand = exports.se_ListTaskExecutionsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListStorageSystemsCommand = exports.se_ListLocationsCommand = exports.se_ListDiscoveryJobsCommand = exports.se_ListAgentsCommand = exports.se_GenerateRecommendationsCommand = exports.se_DescribeTaskExecutionCommand = exports.se_DescribeTaskCommand = exports.se_DescribeStorageSystemResourcesCommand = exports.se_DescribeStorageSystemResourceMetricsCommand = exports.se_DescribeStorageSystemCommand = exports.se_DescribeLocationSmbCommand = exports.se_DescribeLocationS3Command = exports.se_DescribeLocationObjectStorageCommand = exports.se_DescribeLocationNfsCommand = exports.se_DescribeLocationHdfsCommand = exports.se_DescribeLocationFsxWindowsCommand = exports.se_DescribeLocationFsxOpenZfsCommand = exports.se_DescribeLocationFsxOntapCommand = exports.se_DescribeLocationFsxLustreCommand = exports.se_DescribeLocationEfsCommand = exports.se_DescribeLocationAzureBlobCommand = exports.se_DescribeDiscoveryJobCommand = exports.se_DescribeAgentCommand = exports.se_DeleteTaskCommand = exports.se_DeleteLocationCommand = exports.se_DeleteAgentCommand = exports.se_CreateTaskCommand = exports.se_CreateLocationSmbCommand = exports.se_CreateLocationS3Command = exports.se_CreateLocationObjectStorageCommand = exports.se_CreateLocationNfsCommand = exports.se_CreateLocationHdfsCommand = exports.se_CreateLocationFsxWindowsCommand = exports.se_CreateLocationFsxOpenZfsCommand = exports.se_CreateLocationFsxOntapCommand = exports.se_CreateLocationFsxLustreCommand = exports.se_CreateLocationEfsCommand = exports.se_CreateLocationAzureBlobCommand = exports.se_CreateAgentCommand = exports.se_CancelTaskExecutionCommand = exports.se_AddStorageSystemCommand = void 0;
|
|
4
|
+
exports.de_ListLocationsCommand = exports.de_ListDiscoveryJobsCommand = exports.de_ListAgentsCommand = exports.de_GenerateRecommendationsCommand = exports.de_DescribeTaskExecutionCommand = exports.de_DescribeTaskCommand = exports.de_DescribeStorageSystemResourcesCommand = exports.de_DescribeStorageSystemResourceMetricsCommand = exports.de_DescribeStorageSystemCommand = exports.de_DescribeLocationSmbCommand = exports.de_DescribeLocationS3Command = exports.de_DescribeLocationObjectStorageCommand = exports.de_DescribeLocationNfsCommand = exports.de_DescribeLocationHdfsCommand = exports.de_DescribeLocationFsxWindowsCommand = exports.de_DescribeLocationFsxOpenZfsCommand = exports.de_DescribeLocationFsxOntapCommand = exports.de_DescribeLocationFsxLustreCommand = exports.de_DescribeLocationEfsCommand = exports.de_DescribeLocationAzureBlobCommand = exports.de_DescribeDiscoveryJobCommand = exports.de_DescribeAgentCommand = exports.de_DeleteTaskCommand = exports.de_DeleteLocationCommand = exports.de_DeleteAgentCommand = exports.de_CreateTaskCommand = exports.de_CreateLocationSmbCommand = exports.de_CreateLocationS3Command = exports.de_CreateLocationObjectStorageCommand = exports.de_CreateLocationNfsCommand = exports.de_CreateLocationHdfsCommand = exports.de_CreateLocationFsxWindowsCommand = exports.de_CreateLocationFsxOpenZfsCommand = exports.de_CreateLocationFsxOntapCommand = exports.de_CreateLocationFsxLustreCommand = exports.de_CreateLocationEfsCommand = exports.de_CreateLocationAzureBlobCommand = exports.de_CreateAgentCommand = exports.de_CancelTaskExecutionCommand = exports.de_AddStorageSystemCommand = exports.se_UpdateTaskExecutionCommand = exports.se_UpdateTaskCommand = exports.se_UpdateStorageSystemCommand = exports.se_UpdateLocationSmbCommand = exports.se_UpdateLocationObjectStorageCommand = exports.se_UpdateLocationNfsCommand = exports.se_UpdateLocationHdfsCommand = exports.se_UpdateLocationAzureBlobCommand = exports.se_UpdateDiscoveryJobCommand = exports.se_UpdateAgentCommand = void 0;
|
|
5
|
+
exports.de_UpdateTaskExecutionCommand = exports.de_UpdateTaskCommand = exports.de_UpdateStorageSystemCommand = exports.de_UpdateLocationSmbCommand = exports.de_UpdateLocationObjectStorageCommand = exports.de_UpdateLocationNfsCommand = exports.de_UpdateLocationHdfsCommand = exports.de_UpdateLocationAzureBlobCommand = exports.de_UpdateDiscoveryJobCommand = exports.de_UpdateAgentCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopDiscoveryJobCommand = exports.de_StartTaskExecutionCommand = exports.de_StartDiscoveryJobCommand = exports.de_RemoveStorageSystemCommand = exports.de_ListTasksCommand = exports.de_ListTaskExecutionsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListStorageSystemsCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
@@ -36,6 +36,13 @@ const se_CreateAgentCommand = async (input, context) => {
|
|
|
36
36
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
37
|
};
|
|
38
38
|
exports.se_CreateAgentCommand = se_CreateAgentCommand;
|
|
39
|
+
const se_CreateLocationAzureBlobCommand = async (input, context) => {
|
|
40
|
+
const headers = sharedHeaders("CreateLocationAzureBlob");
|
|
41
|
+
let body;
|
|
42
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
43
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
44
|
+
};
|
|
45
|
+
exports.se_CreateLocationAzureBlobCommand = se_CreateLocationAzureBlobCommand;
|
|
39
46
|
const se_CreateLocationEfsCommand = async (input, context) => {
|
|
40
47
|
const headers = sharedHeaders("CreateLocationEfs");
|
|
41
48
|
let body;
|
|
@@ -155,6 +162,13 @@ const se_DescribeDiscoveryJobCommand = async (input, context) => {
|
|
|
155
162
|
return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
|
|
156
163
|
};
|
|
157
164
|
exports.se_DescribeDiscoveryJobCommand = se_DescribeDiscoveryJobCommand;
|
|
165
|
+
const se_DescribeLocationAzureBlobCommand = async (input, context) => {
|
|
166
|
+
const headers = sharedHeaders("DescribeLocationAzureBlob");
|
|
167
|
+
let body;
|
|
168
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
169
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
170
|
+
};
|
|
171
|
+
exports.se_DescribeLocationAzureBlobCommand = se_DescribeLocationAzureBlobCommand;
|
|
158
172
|
const se_DescribeLocationEfsCommand = async (input, context) => {
|
|
159
173
|
const headers = sharedHeaders("DescribeLocationEfs");
|
|
160
174
|
let body;
|
|
@@ -442,6 +456,13 @@ const se_UpdateDiscoveryJobCommand = async (input, context) => {
|
|
|
442
456
|
return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
|
|
443
457
|
};
|
|
444
458
|
exports.se_UpdateDiscoveryJobCommand = se_UpdateDiscoveryJobCommand;
|
|
459
|
+
const se_UpdateLocationAzureBlobCommand = async (input, context) => {
|
|
460
|
+
const headers = sharedHeaders("UpdateLocationAzureBlob");
|
|
461
|
+
let body;
|
|
462
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
463
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
464
|
+
};
|
|
465
|
+
exports.se_UpdateLocationAzureBlobCommand = se_UpdateLocationAzureBlobCommand;
|
|
445
466
|
const se_UpdateLocationHdfsCommand = async (input, context) => {
|
|
446
467
|
const headers = sharedHeaders("UpdateLocationHdfs");
|
|
447
468
|
let body;
|
|
@@ -606,6 +627,42 @@ const de_CreateAgentCommandError = async (output, context) => {
|
|
|
606
627
|
});
|
|
607
628
|
}
|
|
608
629
|
};
|
|
630
|
+
const de_CreateLocationAzureBlobCommand = async (output, context) => {
|
|
631
|
+
if (output.statusCode >= 300) {
|
|
632
|
+
return de_CreateLocationAzureBlobCommandError(output, context);
|
|
633
|
+
}
|
|
634
|
+
const data = await parseBody(output.body, context);
|
|
635
|
+
let contents = {};
|
|
636
|
+
contents = (0, smithy_client_1._json)(data);
|
|
637
|
+
const response = {
|
|
638
|
+
$metadata: deserializeMetadata(output),
|
|
639
|
+
...contents,
|
|
640
|
+
};
|
|
641
|
+
return response;
|
|
642
|
+
};
|
|
643
|
+
exports.de_CreateLocationAzureBlobCommand = de_CreateLocationAzureBlobCommand;
|
|
644
|
+
const de_CreateLocationAzureBlobCommandError = async (output, context) => {
|
|
645
|
+
const parsedOutput = {
|
|
646
|
+
...output,
|
|
647
|
+
body: await parseErrorBody(output.body, context),
|
|
648
|
+
};
|
|
649
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
650
|
+
switch (errorCode) {
|
|
651
|
+
case "InternalException":
|
|
652
|
+
case "com.amazonaws.datasync#InternalException":
|
|
653
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
654
|
+
case "InvalidRequestException":
|
|
655
|
+
case "com.amazonaws.datasync#InvalidRequestException":
|
|
656
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
657
|
+
default:
|
|
658
|
+
const parsedBody = parsedOutput.body;
|
|
659
|
+
return throwDefaultError({
|
|
660
|
+
output,
|
|
661
|
+
parsedBody,
|
|
662
|
+
errorCode,
|
|
663
|
+
});
|
|
664
|
+
}
|
|
665
|
+
};
|
|
609
666
|
const de_CreateLocationEfsCommand = async (output, context) => {
|
|
610
667
|
if (output.statusCode >= 300) {
|
|
611
668
|
return de_CreateLocationEfsCommandError(output, context);
|
|
@@ -1182,6 +1239,42 @@ const de_DescribeDiscoveryJobCommandError = async (output, context) => {
|
|
|
1182
1239
|
});
|
|
1183
1240
|
}
|
|
1184
1241
|
};
|
|
1242
|
+
const de_DescribeLocationAzureBlobCommand = async (output, context) => {
|
|
1243
|
+
if (output.statusCode >= 300) {
|
|
1244
|
+
return de_DescribeLocationAzureBlobCommandError(output, context);
|
|
1245
|
+
}
|
|
1246
|
+
const data = await parseBody(output.body, context);
|
|
1247
|
+
let contents = {};
|
|
1248
|
+
contents = de_DescribeLocationAzureBlobResponse(data, context);
|
|
1249
|
+
const response = {
|
|
1250
|
+
$metadata: deserializeMetadata(output),
|
|
1251
|
+
...contents,
|
|
1252
|
+
};
|
|
1253
|
+
return response;
|
|
1254
|
+
};
|
|
1255
|
+
exports.de_DescribeLocationAzureBlobCommand = de_DescribeLocationAzureBlobCommand;
|
|
1256
|
+
const de_DescribeLocationAzureBlobCommandError = async (output, context) => {
|
|
1257
|
+
const parsedOutput = {
|
|
1258
|
+
...output,
|
|
1259
|
+
body: await parseErrorBody(output.body, context),
|
|
1260
|
+
};
|
|
1261
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1262
|
+
switch (errorCode) {
|
|
1263
|
+
case "InternalException":
|
|
1264
|
+
case "com.amazonaws.datasync#InternalException":
|
|
1265
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1266
|
+
case "InvalidRequestException":
|
|
1267
|
+
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1268
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1269
|
+
default:
|
|
1270
|
+
const parsedBody = parsedOutput.body;
|
|
1271
|
+
return throwDefaultError({
|
|
1272
|
+
output,
|
|
1273
|
+
parsedBody,
|
|
1274
|
+
errorCode,
|
|
1275
|
+
});
|
|
1276
|
+
}
|
|
1277
|
+
};
|
|
1185
1278
|
const de_DescribeLocationEfsCommand = async (output, context) => {
|
|
1186
1279
|
if (output.statusCode >= 300) {
|
|
1187
1280
|
return de_DescribeLocationEfsCommandError(output, context);
|
|
@@ -2298,6 +2391,42 @@ const de_UpdateDiscoveryJobCommandError = async (output, context) => {
|
|
|
2298
2391
|
});
|
|
2299
2392
|
}
|
|
2300
2393
|
};
|
|
2394
|
+
const de_UpdateLocationAzureBlobCommand = async (output, context) => {
|
|
2395
|
+
if (output.statusCode >= 300) {
|
|
2396
|
+
return de_UpdateLocationAzureBlobCommandError(output, context);
|
|
2397
|
+
}
|
|
2398
|
+
const data = await parseBody(output.body, context);
|
|
2399
|
+
let contents = {};
|
|
2400
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2401
|
+
const response = {
|
|
2402
|
+
$metadata: deserializeMetadata(output),
|
|
2403
|
+
...contents,
|
|
2404
|
+
};
|
|
2405
|
+
return response;
|
|
2406
|
+
};
|
|
2407
|
+
exports.de_UpdateLocationAzureBlobCommand = de_UpdateLocationAzureBlobCommand;
|
|
2408
|
+
const de_UpdateLocationAzureBlobCommandError = async (output, context) => {
|
|
2409
|
+
const parsedOutput = {
|
|
2410
|
+
...output,
|
|
2411
|
+
body: await parseErrorBody(output.body, context),
|
|
2412
|
+
};
|
|
2413
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2414
|
+
switch (errorCode) {
|
|
2415
|
+
case "InternalException":
|
|
2416
|
+
case "com.amazonaws.datasync#InternalException":
|
|
2417
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2418
|
+
case "InvalidRequestException":
|
|
2419
|
+
case "com.amazonaws.datasync#InvalidRequestException":
|
|
2420
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2421
|
+
default:
|
|
2422
|
+
const parsedBody = parsedOutput.body;
|
|
2423
|
+
return throwDefaultError({
|
|
2424
|
+
output,
|
|
2425
|
+
parsedBody,
|
|
2426
|
+
errorCode,
|
|
2427
|
+
});
|
|
2428
|
+
}
|
|
2429
|
+
};
|
|
2301
2430
|
const de_UpdateLocationHdfsCommand = async (output, context) => {
|
|
2302
2431
|
if (output.statusCode >= 300) {
|
|
2303
2432
|
return de_UpdateLocationHdfsCommandError(output, context);
|
|
@@ -2680,6 +2809,17 @@ const de_DescribeDiscoveryJobResponse = (output, context) => {
|
|
|
2680
2809
|
StorageSystemArn: smithy_client_1.expectString,
|
|
2681
2810
|
});
|
|
2682
2811
|
};
|
|
2812
|
+
const de_DescribeLocationAzureBlobResponse = (output, context) => {
|
|
2813
|
+
return (0, smithy_client_1.take)(output, {
|
|
2814
|
+
AccessTier: smithy_client_1.expectString,
|
|
2815
|
+
AgentArns: smithy_client_1._json,
|
|
2816
|
+
AuthenticationType: smithy_client_1.expectString,
|
|
2817
|
+
BlobType: smithy_client_1.expectString,
|
|
2818
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2819
|
+
LocationArn: smithy_client_1.expectString,
|
|
2820
|
+
LocationUri: smithy_client_1.expectString,
|
|
2821
|
+
});
|
|
2822
|
+
};
|
|
2683
2823
|
const de_DescribeLocationEfsResponse = (output, context) => {
|
|
2684
2824
|
return (0, smithy_client_1.take)(output, {
|
|
2685
2825
|
AccessPointArn: smithy_client_1.expectString,
|
package/dist-es/DataSync.js
CHANGED
|
@@ -2,6 +2,7 @@ import { createAggregatedClient } from "@smithy/smithy-client";
|
|
|
2
2
|
import { AddStorageSystemCommand, } from "./commands/AddStorageSystemCommand";
|
|
3
3
|
import { CancelTaskExecutionCommand, } from "./commands/CancelTaskExecutionCommand";
|
|
4
4
|
import { CreateAgentCommand } from "./commands/CreateAgentCommand";
|
|
5
|
+
import { CreateLocationAzureBlobCommand, } from "./commands/CreateLocationAzureBlobCommand";
|
|
5
6
|
import { CreateLocationEfsCommand, } from "./commands/CreateLocationEfsCommand";
|
|
6
7
|
import { CreateLocationFsxLustreCommand, } from "./commands/CreateLocationFsxLustreCommand";
|
|
7
8
|
import { CreateLocationFsxOntapCommand, } from "./commands/CreateLocationFsxOntapCommand";
|
|
@@ -18,6 +19,7 @@ import { DeleteLocationCommand, } from "./commands/DeleteLocationCommand";
|
|
|
18
19
|
import { DeleteTaskCommand } from "./commands/DeleteTaskCommand";
|
|
19
20
|
import { DescribeAgentCommand, } from "./commands/DescribeAgentCommand";
|
|
20
21
|
import { DescribeDiscoveryJobCommand, } from "./commands/DescribeDiscoveryJobCommand";
|
|
22
|
+
import { DescribeLocationAzureBlobCommand, } from "./commands/DescribeLocationAzureBlobCommand";
|
|
21
23
|
import { DescribeLocationEfsCommand, } from "./commands/DescribeLocationEfsCommand";
|
|
22
24
|
import { DescribeLocationFsxLustreCommand, } from "./commands/DescribeLocationFsxLustreCommand";
|
|
23
25
|
import { DescribeLocationFsxOntapCommand, } from "./commands/DescribeLocationFsxOntapCommand";
|
|
@@ -49,6 +51,7 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
|
49
51
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
50
52
|
import { UpdateAgentCommand } from "./commands/UpdateAgentCommand";
|
|
51
53
|
import { UpdateDiscoveryJobCommand, } from "./commands/UpdateDiscoveryJobCommand";
|
|
54
|
+
import { UpdateLocationAzureBlobCommand, } from "./commands/UpdateLocationAzureBlobCommand";
|
|
52
55
|
import { UpdateLocationHdfsCommand, } from "./commands/UpdateLocationHdfsCommand";
|
|
53
56
|
import { UpdateLocationNfsCommand, } from "./commands/UpdateLocationNfsCommand";
|
|
54
57
|
import { UpdateLocationObjectStorageCommand, } from "./commands/UpdateLocationObjectStorageCommand";
|
|
@@ -61,6 +64,7 @@ const commands = {
|
|
|
61
64
|
AddStorageSystemCommand,
|
|
62
65
|
CancelTaskExecutionCommand,
|
|
63
66
|
CreateAgentCommand,
|
|
67
|
+
CreateLocationAzureBlobCommand,
|
|
64
68
|
CreateLocationEfsCommand,
|
|
65
69
|
CreateLocationFsxLustreCommand,
|
|
66
70
|
CreateLocationFsxOntapCommand,
|
|
@@ -77,6 +81,7 @@ const commands = {
|
|
|
77
81
|
DeleteTaskCommand,
|
|
78
82
|
DescribeAgentCommand,
|
|
79
83
|
DescribeDiscoveryJobCommand,
|
|
84
|
+
DescribeLocationAzureBlobCommand,
|
|
80
85
|
DescribeLocationEfsCommand,
|
|
81
86
|
DescribeLocationFsxLustreCommand,
|
|
82
87
|
DescribeLocationFsxOntapCommand,
|
|
@@ -108,6 +113,7 @@ const commands = {
|
|
|
108
113
|
UntagResourceCommand,
|
|
109
114
|
UpdateAgentCommand,
|
|
110
115
|
UpdateDiscoveryJobCommand,
|
|
116
|
+
UpdateLocationAzureBlobCommand,
|
|
111
117
|
UpdateLocationHdfsCommand,
|
|
112
118
|
UpdateLocationNfsCommand,
|
|
113
119
|
UpdateLocationObjectStorageCommand,
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { CreateLocationAzureBlobRequestFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { de_CreateLocationAzureBlobCommand, se_CreateLocationAzureBlobCommand } from "../protocols/Aws_json1_1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class CreateLocationAzureBlobCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateLocationAzureBlobCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "DataSyncClient";
|
|
26
|
+
const commandName = "CreateLocationAzureBlobCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: CreateLocationAzureBlobRequestFilterSensitiveLog,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
};
|
|
34
|
+
const { requestHandler } = configuration;
|
|
35
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
36
|
+
}
|
|
37
|
+
serialize(input, context) {
|
|
38
|
+
return se_CreateLocationAzureBlobCommand(input, context);
|
|
39
|
+
}
|
|
40
|
+
deserialize(output, context) {
|
|
41
|
+
return de_CreateLocationAzureBlobCommand(output, context);
|
|
42
|
+
}
|
|
43
|
+
}
|