@aws-sdk/client-datasync 3.306.0 → 3.309.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/dist-cjs/commands/CancelTaskExecutionCommand.js +2 -2
- package/dist-cjs/commands/CreateAgentCommand.js +2 -2
- package/dist-cjs/commands/CreateLocationEfsCommand.js +2 -2
- package/dist-cjs/commands/CreateLocationFsxLustreCommand.js +2 -2
- package/dist-cjs/commands/CreateLocationFsxOntapCommand.js +2 -2
- package/dist-cjs/commands/CreateLocationFsxOpenZfsCommand.js +2 -2
- package/dist-cjs/commands/CreateLocationFsxWindowsCommand.js +2 -2
- package/dist-cjs/commands/CreateLocationHdfsCommand.js +2 -2
- package/dist-cjs/commands/CreateLocationNfsCommand.js +2 -2
- package/dist-cjs/commands/CreateLocationObjectStorageCommand.js +2 -2
- package/dist-cjs/commands/CreateLocationS3Command.js +2 -2
- package/dist-cjs/commands/CreateLocationSmbCommand.js +2 -2
- package/dist-cjs/commands/CreateTaskCommand.js +2 -2
- package/dist-cjs/commands/DeleteAgentCommand.js +2 -2
- package/dist-cjs/commands/DeleteLocationCommand.js +2 -2
- package/dist-cjs/commands/DeleteTaskCommand.js +2 -2
- package/dist-cjs/commands/DescribeAgentCommand.js +2 -2
- package/dist-cjs/commands/DescribeLocationEfsCommand.js +2 -2
- package/dist-cjs/commands/DescribeLocationFsxLustreCommand.js +2 -2
- package/dist-cjs/commands/DescribeLocationFsxOntapCommand.js +2 -2
- package/dist-cjs/commands/DescribeLocationFsxOpenZfsCommand.js +2 -2
- package/dist-cjs/commands/DescribeLocationFsxWindowsCommand.js +2 -2
- package/dist-cjs/commands/DescribeLocationHdfsCommand.js +2 -2
- package/dist-cjs/commands/DescribeLocationNfsCommand.js +2 -2
- package/dist-cjs/commands/DescribeLocationObjectStorageCommand.js +2 -2
- package/dist-cjs/commands/DescribeLocationS3Command.js +2 -2
- package/dist-cjs/commands/DescribeLocationSmbCommand.js +2 -2
- package/dist-cjs/commands/DescribeTaskCommand.js +2 -2
- package/dist-cjs/commands/DescribeTaskExecutionCommand.js +2 -2
- package/dist-cjs/commands/ListAgentsCommand.js +2 -2
- package/dist-cjs/commands/ListLocationsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListTaskExecutionsCommand.js +2 -2
- package/dist-cjs/commands/ListTasksCommand.js +2 -2
- package/dist-cjs/commands/StartTaskExecutionCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateAgentCommand.js +2 -2
- package/dist-cjs/commands/UpdateLocationHdfsCommand.js +2 -2
- package/dist-cjs/commands/UpdateLocationNfsCommand.js +2 -2
- package/dist-cjs/commands/UpdateLocationObjectStorageCommand.js +2 -2
- package/dist-cjs/commands/UpdateLocationSmbCommand.js +2 -2
- package/dist-cjs/commands/UpdateTaskCommand.js +2 -2
- package/dist-cjs/commands/UpdateTaskExecutionCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_1.js +713 -749
- package/dist-es/commands/CancelTaskExecutionCommand.js +3 -3
- package/dist-es/commands/CreateAgentCommand.js +3 -3
- package/dist-es/commands/CreateLocationEfsCommand.js +3 -3
- package/dist-es/commands/CreateLocationFsxLustreCommand.js +3 -3
- package/dist-es/commands/CreateLocationFsxOntapCommand.js +3 -3
- package/dist-es/commands/CreateLocationFsxOpenZfsCommand.js +3 -3
- package/dist-es/commands/CreateLocationFsxWindowsCommand.js +3 -3
- package/dist-es/commands/CreateLocationHdfsCommand.js +3 -3
- package/dist-es/commands/CreateLocationNfsCommand.js +3 -3
- package/dist-es/commands/CreateLocationObjectStorageCommand.js +3 -3
- package/dist-es/commands/CreateLocationS3Command.js +3 -3
- package/dist-es/commands/CreateLocationSmbCommand.js +3 -3
- package/dist-es/commands/CreateTaskCommand.js +3 -3
- package/dist-es/commands/DeleteAgentCommand.js +3 -3
- package/dist-es/commands/DeleteLocationCommand.js +3 -3
- package/dist-es/commands/DeleteTaskCommand.js +3 -3
- package/dist-es/commands/DescribeAgentCommand.js +3 -3
- package/dist-es/commands/DescribeLocationEfsCommand.js +3 -3
- package/dist-es/commands/DescribeLocationFsxLustreCommand.js +3 -3
- package/dist-es/commands/DescribeLocationFsxOntapCommand.js +3 -3
- package/dist-es/commands/DescribeLocationFsxOpenZfsCommand.js +3 -3
- package/dist-es/commands/DescribeLocationFsxWindowsCommand.js +3 -3
- package/dist-es/commands/DescribeLocationHdfsCommand.js +3 -3
- package/dist-es/commands/DescribeLocationNfsCommand.js +3 -3
- package/dist-es/commands/DescribeLocationObjectStorageCommand.js +3 -3
- package/dist-es/commands/DescribeLocationS3Command.js +3 -3
- package/dist-es/commands/DescribeLocationSmbCommand.js +3 -3
- package/dist-es/commands/DescribeTaskCommand.js +3 -3
- package/dist-es/commands/DescribeTaskExecutionCommand.js +3 -3
- package/dist-es/commands/ListAgentsCommand.js +3 -3
- package/dist-es/commands/ListLocationsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListTaskExecutionsCommand.js +3 -3
- package/dist-es/commands/ListTasksCommand.js +3 -3
- package/dist-es/commands/StartTaskExecutionCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateAgentCommand.js +3 -3
- package/dist-es/commands/UpdateLocationHdfsCommand.js +3 -3
- package/dist-es/commands/UpdateLocationNfsCommand.js +3 -3
- package/dist-es/commands/UpdateLocationObjectStorageCommand.js +3 -3
- package/dist-es/commands/UpdateLocationSmbCommand.js +3 -3
- package/dist-es/commands/UpdateTaskCommand.js +3 -3
- package/dist-es/commands/UpdateTaskExecutionCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_1.js +623 -659
- package/dist-types/protocols/Aws_json1_1.d.ts +352 -88
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +88 -88
- package/package.json +6 -6
|
@@ -1,466 +1,466 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.de_CreateLocationFsxOpenZfsCommand = exports.de_CreateLocationFsxOntapCommand = exports.de_CreateLocationFsxLustreCommand = exports.de_CreateLocationEfsCommand = exports.de_CreateAgentCommand = exports.de_CancelTaskExecutionCommand = exports.se_UpdateTaskExecutionCommand = exports.se_UpdateTaskCommand = exports.se_UpdateLocationSmbCommand = exports.se_UpdateLocationObjectStorageCommand = exports.se_UpdateLocationNfsCommand = exports.se_UpdateLocationHdfsCommand = exports.se_UpdateAgentCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartTaskExecutionCommand = exports.se_ListTasksCommand = exports.se_ListTaskExecutionsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListLocationsCommand = exports.se_ListAgentsCommand = exports.se_DescribeTaskExecutionCommand = exports.se_DescribeTaskCommand = 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_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_CreateAgentCommand = exports.se_CancelTaskExecutionCommand = void 0;
|
|
4
|
+
exports.de_UpdateTaskExecutionCommand = exports.de_UpdateTaskCommand = exports.de_UpdateLocationSmbCommand = exports.de_UpdateLocationObjectStorageCommand = exports.de_UpdateLocationNfsCommand = exports.de_UpdateLocationHdfsCommand = exports.de_UpdateAgentCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartTaskExecutionCommand = exports.de_ListTasksCommand = exports.de_ListTaskExecutionsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListLocationsCommand = exports.de_ListAgentsCommand = exports.de_DescribeTaskExecutionCommand = exports.de_DescribeTaskCommand = 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_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 = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const DataSyncServiceException_1 = require("../models/DataSyncServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const
|
|
9
|
+
const se_CancelTaskExecutionCommand = async (input, context) => {
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/x-amz-json-1.1",
|
|
12
12
|
"x-amz-target": "FmrsService.CancelTaskExecution",
|
|
13
13
|
};
|
|
14
14
|
let body;
|
|
15
|
-
body = JSON.stringify(
|
|
15
|
+
body = JSON.stringify(se_CancelTaskExecutionRequest(input, context));
|
|
16
16
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
17
|
};
|
|
18
|
-
exports.
|
|
19
|
-
const
|
|
18
|
+
exports.se_CancelTaskExecutionCommand = se_CancelTaskExecutionCommand;
|
|
19
|
+
const se_CreateAgentCommand = async (input, context) => {
|
|
20
20
|
const headers = {
|
|
21
21
|
"content-type": "application/x-amz-json-1.1",
|
|
22
22
|
"x-amz-target": "FmrsService.CreateAgent",
|
|
23
23
|
};
|
|
24
24
|
let body;
|
|
25
|
-
body = JSON.stringify(
|
|
25
|
+
body = JSON.stringify(se_CreateAgentRequest(input, context));
|
|
26
26
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
27
|
};
|
|
28
|
-
exports.
|
|
29
|
-
const
|
|
28
|
+
exports.se_CreateAgentCommand = se_CreateAgentCommand;
|
|
29
|
+
const se_CreateLocationEfsCommand = async (input, context) => {
|
|
30
30
|
const headers = {
|
|
31
31
|
"content-type": "application/x-amz-json-1.1",
|
|
32
32
|
"x-amz-target": "FmrsService.CreateLocationEfs",
|
|
33
33
|
};
|
|
34
34
|
let body;
|
|
35
|
-
body = JSON.stringify(
|
|
35
|
+
body = JSON.stringify(se_CreateLocationEfsRequest(input, context));
|
|
36
36
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
37
|
};
|
|
38
|
-
exports.
|
|
39
|
-
const
|
|
38
|
+
exports.se_CreateLocationEfsCommand = se_CreateLocationEfsCommand;
|
|
39
|
+
const se_CreateLocationFsxLustreCommand = async (input, context) => {
|
|
40
40
|
const headers = {
|
|
41
41
|
"content-type": "application/x-amz-json-1.1",
|
|
42
42
|
"x-amz-target": "FmrsService.CreateLocationFsxLustre",
|
|
43
43
|
};
|
|
44
44
|
let body;
|
|
45
|
-
body = JSON.stringify(
|
|
45
|
+
body = JSON.stringify(se_CreateLocationFsxLustreRequest(input, context));
|
|
46
46
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
47
|
};
|
|
48
|
-
exports.
|
|
49
|
-
const
|
|
48
|
+
exports.se_CreateLocationFsxLustreCommand = se_CreateLocationFsxLustreCommand;
|
|
49
|
+
const se_CreateLocationFsxOntapCommand = async (input, context) => {
|
|
50
50
|
const headers = {
|
|
51
51
|
"content-type": "application/x-amz-json-1.1",
|
|
52
52
|
"x-amz-target": "FmrsService.CreateLocationFsxOntap",
|
|
53
53
|
};
|
|
54
54
|
let body;
|
|
55
|
-
body = JSON.stringify(
|
|
55
|
+
body = JSON.stringify(se_CreateLocationFsxOntapRequest(input, context));
|
|
56
56
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
57
|
};
|
|
58
|
-
exports.
|
|
59
|
-
const
|
|
58
|
+
exports.se_CreateLocationFsxOntapCommand = se_CreateLocationFsxOntapCommand;
|
|
59
|
+
const se_CreateLocationFsxOpenZfsCommand = async (input, context) => {
|
|
60
60
|
const headers = {
|
|
61
61
|
"content-type": "application/x-amz-json-1.1",
|
|
62
62
|
"x-amz-target": "FmrsService.CreateLocationFsxOpenZfs",
|
|
63
63
|
};
|
|
64
64
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
65
|
+
body = JSON.stringify(se_CreateLocationFsxOpenZfsRequest(input, context));
|
|
66
66
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
67
|
};
|
|
68
|
-
exports.
|
|
69
|
-
const
|
|
68
|
+
exports.se_CreateLocationFsxOpenZfsCommand = se_CreateLocationFsxOpenZfsCommand;
|
|
69
|
+
const se_CreateLocationFsxWindowsCommand = async (input, context) => {
|
|
70
70
|
const headers = {
|
|
71
71
|
"content-type": "application/x-amz-json-1.1",
|
|
72
72
|
"x-amz-target": "FmrsService.CreateLocationFsxWindows",
|
|
73
73
|
};
|
|
74
74
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify(se_CreateLocationFsxWindowsRequest(input, context));
|
|
76
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
77
|
};
|
|
78
|
-
exports.
|
|
79
|
-
const
|
|
78
|
+
exports.se_CreateLocationFsxWindowsCommand = se_CreateLocationFsxWindowsCommand;
|
|
79
|
+
const se_CreateLocationHdfsCommand = async (input, context) => {
|
|
80
80
|
const headers = {
|
|
81
81
|
"content-type": "application/x-amz-json-1.1",
|
|
82
82
|
"x-amz-target": "FmrsService.CreateLocationHdfs",
|
|
83
83
|
};
|
|
84
84
|
let body;
|
|
85
|
-
body = JSON.stringify(
|
|
85
|
+
body = JSON.stringify(se_CreateLocationHdfsRequest(input, context));
|
|
86
86
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
87
|
};
|
|
88
|
-
exports.
|
|
89
|
-
const
|
|
88
|
+
exports.se_CreateLocationHdfsCommand = se_CreateLocationHdfsCommand;
|
|
89
|
+
const se_CreateLocationNfsCommand = async (input, context) => {
|
|
90
90
|
const headers = {
|
|
91
91
|
"content-type": "application/x-amz-json-1.1",
|
|
92
92
|
"x-amz-target": "FmrsService.CreateLocationNfs",
|
|
93
93
|
};
|
|
94
94
|
let body;
|
|
95
|
-
body = JSON.stringify(
|
|
95
|
+
body = JSON.stringify(se_CreateLocationNfsRequest(input, context));
|
|
96
96
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
97
|
};
|
|
98
|
-
exports.
|
|
99
|
-
const
|
|
98
|
+
exports.se_CreateLocationNfsCommand = se_CreateLocationNfsCommand;
|
|
99
|
+
const se_CreateLocationObjectStorageCommand = async (input, context) => {
|
|
100
100
|
const headers = {
|
|
101
101
|
"content-type": "application/x-amz-json-1.1",
|
|
102
102
|
"x-amz-target": "FmrsService.CreateLocationObjectStorage",
|
|
103
103
|
};
|
|
104
104
|
let body;
|
|
105
|
-
body = JSON.stringify(
|
|
105
|
+
body = JSON.stringify(se_CreateLocationObjectStorageRequest(input, context));
|
|
106
106
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
107
|
};
|
|
108
|
-
exports.
|
|
109
|
-
const
|
|
108
|
+
exports.se_CreateLocationObjectStorageCommand = se_CreateLocationObjectStorageCommand;
|
|
109
|
+
const se_CreateLocationS3Command = async (input, context) => {
|
|
110
110
|
const headers = {
|
|
111
111
|
"content-type": "application/x-amz-json-1.1",
|
|
112
112
|
"x-amz-target": "FmrsService.CreateLocationS3",
|
|
113
113
|
};
|
|
114
114
|
let body;
|
|
115
|
-
body = JSON.stringify(
|
|
115
|
+
body = JSON.stringify(se_CreateLocationS3Request(input, context));
|
|
116
116
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
117
117
|
};
|
|
118
|
-
exports.
|
|
119
|
-
const
|
|
118
|
+
exports.se_CreateLocationS3Command = se_CreateLocationS3Command;
|
|
119
|
+
const se_CreateLocationSmbCommand = async (input, context) => {
|
|
120
120
|
const headers = {
|
|
121
121
|
"content-type": "application/x-amz-json-1.1",
|
|
122
122
|
"x-amz-target": "FmrsService.CreateLocationSmb",
|
|
123
123
|
};
|
|
124
124
|
let body;
|
|
125
|
-
body = JSON.stringify(
|
|
125
|
+
body = JSON.stringify(se_CreateLocationSmbRequest(input, context));
|
|
126
126
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
127
|
};
|
|
128
|
-
exports.
|
|
129
|
-
const
|
|
128
|
+
exports.se_CreateLocationSmbCommand = se_CreateLocationSmbCommand;
|
|
129
|
+
const se_CreateTaskCommand = async (input, context) => {
|
|
130
130
|
const headers = {
|
|
131
131
|
"content-type": "application/x-amz-json-1.1",
|
|
132
132
|
"x-amz-target": "FmrsService.CreateTask",
|
|
133
133
|
};
|
|
134
134
|
let body;
|
|
135
|
-
body = JSON.stringify(
|
|
135
|
+
body = JSON.stringify(se_CreateTaskRequest(input, context));
|
|
136
136
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
137
|
};
|
|
138
|
-
exports.
|
|
139
|
-
const
|
|
138
|
+
exports.se_CreateTaskCommand = se_CreateTaskCommand;
|
|
139
|
+
const se_DeleteAgentCommand = async (input, context) => {
|
|
140
140
|
const headers = {
|
|
141
141
|
"content-type": "application/x-amz-json-1.1",
|
|
142
142
|
"x-amz-target": "FmrsService.DeleteAgent",
|
|
143
143
|
};
|
|
144
144
|
let body;
|
|
145
|
-
body = JSON.stringify(
|
|
145
|
+
body = JSON.stringify(se_DeleteAgentRequest(input, context));
|
|
146
146
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
147
|
};
|
|
148
|
-
exports.
|
|
149
|
-
const
|
|
148
|
+
exports.se_DeleteAgentCommand = se_DeleteAgentCommand;
|
|
149
|
+
const se_DeleteLocationCommand = async (input, context) => {
|
|
150
150
|
const headers = {
|
|
151
151
|
"content-type": "application/x-amz-json-1.1",
|
|
152
152
|
"x-amz-target": "FmrsService.DeleteLocation",
|
|
153
153
|
};
|
|
154
154
|
let body;
|
|
155
|
-
body = JSON.stringify(
|
|
155
|
+
body = JSON.stringify(se_DeleteLocationRequest(input, context));
|
|
156
156
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
157
|
};
|
|
158
|
-
exports.
|
|
159
|
-
const
|
|
158
|
+
exports.se_DeleteLocationCommand = se_DeleteLocationCommand;
|
|
159
|
+
const se_DeleteTaskCommand = async (input, context) => {
|
|
160
160
|
const headers = {
|
|
161
161
|
"content-type": "application/x-amz-json-1.1",
|
|
162
162
|
"x-amz-target": "FmrsService.DeleteTask",
|
|
163
163
|
};
|
|
164
164
|
let body;
|
|
165
|
-
body = JSON.stringify(
|
|
165
|
+
body = JSON.stringify(se_DeleteTaskRequest(input, context));
|
|
166
166
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
167
|
};
|
|
168
|
-
exports.
|
|
169
|
-
const
|
|
168
|
+
exports.se_DeleteTaskCommand = se_DeleteTaskCommand;
|
|
169
|
+
const se_DescribeAgentCommand = async (input, context) => {
|
|
170
170
|
const headers = {
|
|
171
171
|
"content-type": "application/x-amz-json-1.1",
|
|
172
172
|
"x-amz-target": "FmrsService.DescribeAgent",
|
|
173
173
|
};
|
|
174
174
|
let body;
|
|
175
|
-
body = JSON.stringify(
|
|
175
|
+
body = JSON.stringify(se_DescribeAgentRequest(input, context));
|
|
176
176
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
177
|
};
|
|
178
|
-
exports.
|
|
179
|
-
const
|
|
178
|
+
exports.se_DescribeAgentCommand = se_DescribeAgentCommand;
|
|
179
|
+
const se_DescribeLocationEfsCommand = async (input, context) => {
|
|
180
180
|
const headers = {
|
|
181
181
|
"content-type": "application/x-amz-json-1.1",
|
|
182
182
|
"x-amz-target": "FmrsService.DescribeLocationEfs",
|
|
183
183
|
};
|
|
184
184
|
let body;
|
|
185
|
-
body = JSON.stringify(
|
|
185
|
+
body = JSON.stringify(se_DescribeLocationEfsRequest(input, context));
|
|
186
186
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
187
187
|
};
|
|
188
|
-
exports.
|
|
189
|
-
const
|
|
188
|
+
exports.se_DescribeLocationEfsCommand = se_DescribeLocationEfsCommand;
|
|
189
|
+
const se_DescribeLocationFsxLustreCommand = async (input, context) => {
|
|
190
190
|
const headers = {
|
|
191
191
|
"content-type": "application/x-amz-json-1.1",
|
|
192
192
|
"x-amz-target": "FmrsService.DescribeLocationFsxLustre",
|
|
193
193
|
};
|
|
194
194
|
let body;
|
|
195
|
-
body = JSON.stringify(
|
|
195
|
+
body = JSON.stringify(se_DescribeLocationFsxLustreRequest(input, context));
|
|
196
196
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
197
|
};
|
|
198
|
-
exports.
|
|
199
|
-
const
|
|
198
|
+
exports.se_DescribeLocationFsxLustreCommand = se_DescribeLocationFsxLustreCommand;
|
|
199
|
+
const se_DescribeLocationFsxOntapCommand = async (input, context) => {
|
|
200
200
|
const headers = {
|
|
201
201
|
"content-type": "application/x-amz-json-1.1",
|
|
202
202
|
"x-amz-target": "FmrsService.DescribeLocationFsxOntap",
|
|
203
203
|
};
|
|
204
204
|
let body;
|
|
205
|
-
body = JSON.stringify(
|
|
205
|
+
body = JSON.stringify(se_DescribeLocationFsxOntapRequest(input, context));
|
|
206
206
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
207
207
|
};
|
|
208
|
-
exports.
|
|
209
|
-
const
|
|
208
|
+
exports.se_DescribeLocationFsxOntapCommand = se_DescribeLocationFsxOntapCommand;
|
|
209
|
+
const se_DescribeLocationFsxOpenZfsCommand = async (input, context) => {
|
|
210
210
|
const headers = {
|
|
211
211
|
"content-type": "application/x-amz-json-1.1",
|
|
212
212
|
"x-amz-target": "FmrsService.DescribeLocationFsxOpenZfs",
|
|
213
213
|
};
|
|
214
214
|
let body;
|
|
215
|
-
body = JSON.stringify(
|
|
215
|
+
body = JSON.stringify(se_DescribeLocationFsxOpenZfsRequest(input, context));
|
|
216
216
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
217
|
};
|
|
218
|
-
exports.
|
|
219
|
-
const
|
|
218
|
+
exports.se_DescribeLocationFsxOpenZfsCommand = se_DescribeLocationFsxOpenZfsCommand;
|
|
219
|
+
const se_DescribeLocationFsxWindowsCommand = async (input, context) => {
|
|
220
220
|
const headers = {
|
|
221
221
|
"content-type": "application/x-amz-json-1.1",
|
|
222
222
|
"x-amz-target": "FmrsService.DescribeLocationFsxWindows",
|
|
223
223
|
};
|
|
224
224
|
let body;
|
|
225
|
-
body = JSON.stringify(
|
|
225
|
+
body = JSON.stringify(se_DescribeLocationFsxWindowsRequest(input, context));
|
|
226
226
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
227
|
};
|
|
228
|
-
exports.
|
|
229
|
-
const
|
|
228
|
+
exports.se_DescribeLocationFsxWindowsCommand = se_DescribeLocationFsxWindowsCommand;
|
|
229
|
+
const se_DescribeLocationHdfsCommand = async (input, context) => {
|
|
230
230
|
const headers = {
|
|
231
231
|
"content-type": "application/x-amz-json-1.1",
|
|
232
232
|
"x-amz-target": "FmrsService.DescribeLocationHdfs",
|
|
233
233
|
};
|
|
234
234
|
let body;
|
|
235
|
-
body = JSON.stringify(
|
|
235
|
+
body = JSON.stringify(se_DescribeLocationHdfsRequest(input, context));
|
|
236
236
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
237
237
|
};
|
|
238
|
-
exports.
|
|
239
|
-
const
|
|
238
|
+
exports.se_DescribeLocationHdfsCommand = se_DescribeLocationHdfsCommand;
|
|
239
|
+
const se_DescribeLocationNfsCommand = async (input, context) => {
|
|
240
240
|
const headers = {
|
|
241
241
|
"content-type": "application/x-amz-json-1.1",
|
|
242
242
|
"x-amz-target": "FmrsService.DescribeLocationNfs",
|
|
243
243
|
};
|
|
244
244
|
let body;
|
|
245
|
-
body = JSON.stringify(
|
|
245
|
+
body = JSON.stringify(se_DescribeLocationNfsRequest(input, context));
|
|
246
246
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
247
|
};
|
|
248
|
-
exports.
|
|
249
|
-
const
|
|
248
|
+
exports.se_DescribeLocationNfsCommand = se_DescribeLocationNfsCommand;
|
|
249
|
+
const se_DescribeLocationObjectStorageCommand = async (input, context) => {
|
|
250
250
|
const headers = {
|
|
251
251
|
"content-type": "application/x-amz-json-1.1",
|
|
252
252
|
"x-amz-target": "FmrsService.DescribeLocationObjectStorage",
|
|
253
253
|
};
|
|
254
254
|
let body;
|
|
255
|
-
body = JSON.stringify(
|
|
255
|
+
body = JSON.stringify(se_DescribeLocationObjectStorageRequest(input, context));
|
|
256
256
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
257
|
};
|
|
258
|
-
exports.
|
|
259
|
-
const
|
|
258
|
+
exports.se_DescribeLocationObjectStorageCommand = se_DescribeLocationObjectStorageCommand;
|
|
259
|
+
const se_DescribeLocationS3Command = async (input, context) => {
|
|
260
260
|
const headers = {
|
|
261
261
|
"content-type": "application/x-amz-json-1.1",
|
|
262
262
|
"x-amz-target": "FmrsService.DescribeLocationS3",
|
|
263
263
|
};
|
|
264
264
|
let body;
|
|
265
|
-
body = JSON.stringify(
|
|
265
|
+
body = JSON.stringify(se_DescribeLocationS3Request(input, context));
|
|
266
266
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
267
267
|
};
|
|
268
|
-
exports.
|
|
269
|
-
const
|
|
268
|
+
exports.se_DescribeLocationS3Command = se_DescribeLocationS3Command;
|
|
269
|
+
const se_DescribeLocationSmbCommand = async (input, context) => {
|
|
270
270
|
const headers = {
|
|
271
271
|
"content-type": "application/x-amz-json-1.1",
|
|
272
272
|
"x-amz-target": "FmrsService.DescribeLocationSmb",
|
|
273
273
|
};
|
|
274
274
|
let body;
|
|
275
|
-
body = JSON.stringify(
|
|
275
|
+
body = JSON.stringify(se_DescribeLocationSmbRequest(input, context));
|
|
276
276
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
277
277
|
};
|
|
278
|
-
exports.
|
|
279
|
-
const
|
|
278
|
+
exports.se_DescribeLocationSmbCommand = se_DescribeLocationSmbCommand;
|
|
279
|
+
const se_DescribeTaskCommand = async (input, context) => {
|
|
280
280
|
const headers = {
|
|
281
281
|
"content-type": "application/x-amz-json-1.1",
|
|
282
282
|
"x-amz-target": "FmrsService.DescribeTask",
|
|
283
283
|
};
|
|
284
284
|
let body;
|
|
285
|
-
body = JSON.stringify(
|
|
285
|
+
body = JSON.stringify(se_DescribeTaskRequest(input, context));
|
|
286
286
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
287
|
};
|
|
288
|
-
exports.
|
|
289
|
-
const
|
|
288
|
+
exports.se_DescribeTaskCommand = se_DescribeTaskCommand;
|
|
289
|
+
const se_DescribeTaskExecutionCommand = async (input, context) => {
|
|
290
290
|
const headers = {
|
|
291
291
|
"content-type": "application/x-amz-json-1.1",
|
|
292
292
|
"x-amz-target": "FmrsService.DescribeTaskExecution",
|
|
293
293
|
};
|
|
294
294
|
let body;
|
|
295
|
-
body = JSON.stringify(
|
|
295
|
+
body = JSON.stringify(se_DescribeTaskExecutionRequest(input, context));
|
|
296
296
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
297
297
|
};
|
|
298
|
-
exports.
|
|
299
|
-
const
|
|
298
|
+
exports.se_DescribeTaskExecutionCommand = se_DescribeTaskExecutionCommand;
|
|
299
|
+
const se_ListAgentsCommand = async (input, context) => {
|
|
300
300
|
const headers = {
|
|
301
301
|
"content-type": "application/x-amz-json-1.1",
|
|
302
302
|
"x-amz-target": "FmrsService.ListAgents",
|
|
303
303
|
};
|
|
304
304
|
let body;
|
|
305
|
-
body = JSON.stringify(
|
|
305
|
+
body = JSON.stringify(se_ListAgentsRequest(input, context));
|
|
306
306
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
307
307
|
};
|
|
308
|
-
exports.
|
|
309
|
-
const
|
|
308
|
+
exports.se_ListAgentsCommand = se_ListAgentsCommand;
|
|
309
|
+
const se_ListLocationsCommand = async (input, context) => {
|
|
310
310
|
const headers = {
|
|
311
311
|
"content-type": "application/x-amz-json-1.1",
|
|
312
312
|
"x-amz-target": "FmrsService.ListLocations",
|
|
313
313
|
};
|
|
314
314
|
let body;
|
|
315
|
-
body = JSON.stringify(
|
|
315
|
+
body = JSON.stringify(se_ListLocationsRequest(input, context));
|
|
316
316
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
317
|
};
|
|
318
|
-
exports.
|
|
319
|
-
const
|
|
318
|
+
exports.se_ListLocationsCommand = se_ListLocationsCommand;
|
|
319
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
320
320
|
const headers = {
|
|
321
321
|
"content-type": "application/x-amz-json-1.1",
|
|
322
322
|
"x-amz-target": "FmrsService.ListTagsForResource",
|
|
323
323
|
};
|
|
324
324
|
let body;
|
|
325
|
-
body = JSON.stringify(
|
|
325
|
+
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
326
326
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
327
327
|
};
|
|
328
|
-
exports.
|
|
329
|
-
const
|
|
328
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
329
|
+
const se_ListTaskExecutionsCommand = async (input, context) => {
|
|
330
330
|
const headers = {
|
|
331
331
|
"content-type": "application/x-amz-json-1.1",
|
|
332
332
|
"x-amz-target": "FmrsService.ListTaskExecutions",
|
|
333
333
|
};
|
|
334
334
|
let body;
|
|
335
|
-
body = JSON.stringify(
|
|
335
|
+
body = JSON.stringify(se_ListTaskExecutionsRequest(input, context));
|
|
336
336
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
337
337
|
};
|
|
338
|
-
exports.
|
|
339
|
-
const
|
|
338
|
+
exports.se_ListTaskExecutionsCommand = se_ListTaskExecutionsCommand;
|
|
339
|
+
const se_ListTasksCommand = async (input, context) => {
|
|
340
340
|
const headers = {
|
|
341
341
|
"content-type": "application/x-amz-json-1.1",
|
|
342
342
|
"x-amz-target": "FmrsService.ListTasks",
|
|
343
343
|
};
|
|
344
344
|
let body;
|
|
345
|
-
body = JSON.stringify(
|
|
345
|
+
body = JSON.stringify(se_ListTasksRequest(input, context));
|
|
346
346
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
347
347
|
};
|
|
348
|
-
exports.
|
|
349
|
-
const
|
|
348
|
+
exports.se_ListTasksCommand = se_ListTasksCommand;
|
|
349
|
+
const se_StartTaskExecutionCommand = async (input, context) => {
|
|
350
350
|
const headers = {
|
|
351
351
|
"content-type": "application/x-amz-json-1.1",
|
|
352
352
|
"x-amz-target": "FmrsService.StartTaskExecution",
|
|
353
353
|
};
|
|
354
354
|
let body;
|
|
355
|
-
body = JSON.stringify(
|
|
355
|
+
body = JSON.stringify(se_StartTaskExecutionRequest(input, context));
|
|
356
356
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
357
357
|
};
|
|
358
|
-
exports.
|
|
359
|
-
const
|
|
358
|
+
exports.se_StartTaskExecutionCommand = se_StartTaskExecutionCommand;
|
|
359
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
360
360
|
const headers = {
|
|
361
361
|
"content-type": "application/x-amz-json-1.1",
|
|
362
362
|
"x-amz-target": "FmrsService.TagResource",
|
|
363
363
|
};
|
|
364
364
|
let body;
|
|
365
|
-
body = JSON.stringify(
|
|
365
|
+
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
366
366
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
367
367
|
};
|
|
368
|
-
exports.
|
|
369
|
-
const
|
|
368
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
369
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
370
370
|
const headers = {
|
|
371
371
|
"content-type": "application/x-amz-json-1.1",
|
|
372
372
|
"x-amz-target": "FmrsService.UntagResource",
|
|
373
373
|
};
|
|
374
374
|
let body;
|
|
375
|
-
body = JSON.stringify(
|
|
375
|
+
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
376
376
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
377
377
|
};
|
|
378
|
-
exports.
|
|
379
|
-
const
|
|
378
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
379
|
+
const se_UpdateAgentCommand = async (input, context) => {
|
|
380
380
|
const headers = {
|
|
381
381
|
"content-type": "application/x-amz-json-1.1",
|
|
382
382
|
"x-amz-target": "FmrsService.UpdateAgent",
|
|
383
383
|
};
|
|
384
384
|
let body;
|
|
385
|
-
body = JSON.stringify(
|
|
385
|
+
body = JSON.stringify(se_UpdateAgentRequest(input, context));
|
|
386
386
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
387
387
|
};
|
|
388
|
-
exports.
|
|
389
|
-
const
|
|
388
|
+
exports.se_UpdateAgentCommand = se_UpdateAgentCommand;
|
|
389
|
+
const se_UpdateLocationHdfsCommand = async (input, context) => {
|
|
390
390
|
const headers = {
|
|
391
391
|
"content-type": "application/x-amz-json-1.1",
|
|
392
392
|
"x-amz-target": "FmrsService.UpdateLocationHdfs",
|
|
393
393
|
};
|
|
394
394
|
let body;
|
|
395
|
-
body = JSON.stringify(
|
|
395
|
+
body = JSON.stringify(se_UpdateLocationHdfsRequest(input, context));
|
|
396
396
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
397
397
|
};
|
|
398
|
-
exports.
|
|
399
|
-
const
|
|
398
|
+
exports.se_UpdateLocationHdfsCommand = se_UpdateLocationHdfsCommand;
|
|
399
|
+
const se_UpdateLocationNfsCommand = async (input, context) => {
|
|
400
400
|
const headers = {
|
|
401
401
|
"content-type": "application/x-amz-json-1.1",
|
|
402
402
|
"x-amz-target": "FmrsService.UpdateLocationNfs",
|
|
403
403
|
};
|
|
404
404
|
let body;
|
|
405
|
-
body = JSON.stringify(
|
|
405
|
+
body = JSON.stringify(se_UpdateLocationNfsRequest(input, context));
|
|
406
406
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
407
407
|
};
|
|
408
|
-
exports.
|
|
409
|
-
const
|
|
408
|
+
exports.se_UpdateLocationNfsCommand = se_UpdateLocationNfsCommand;
|
|
409
|
+
const se_UpdateLocationObjectStorageCommand = async (input, context) => {
|
|
410
410
|
const headers = {
|
|
411
411
|
"content-type": "application/x-amz-json-1.1",
|
|
412
412
|
"x-amz-target": "FmrsService.UpdateLocationObjectStorage",
|
|
413
413
|
};
|
|
414
414
|
let body;
|
|
415
|
-
body = JSON.stringify(
|
|
415
|
+
body = JSON.stringify(se_UpdateLocationObjectStorageRequest(input, context));
|
|
416
416
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
417
417
|
};
|
|
418
|
-
exports.
|
|
419
|
-
const
|
|
418
|
+
exports.se_UpdateLocationObjectStorageCommand = se_UpdateLocationObjectStorageCommand;
|
|
419
|
+
const se_UpdateLocationSmbCommand = async (input, context) => {
|
|
420
420
|
const headers = {
|
|
421
421
|
"content-type": "application/x-amz-json-1.1",
|
|
422
422
|
"x-amz-target": "FmrsService.UpdateLocationSmb",
|
|
423
423
|
};
|
|
424
424
|
let body;
|
|
425
|
-
body = JSON.stringify(
|
|
425
|
+
body = JSON.stringify(se_UpdateLocationSmbRequest(input, context));
|
|
426
426
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
427
427
|
};
|
|
428
|
-
exports.
|
|
429
|
-
const
|
|
428
|
+
exports.se_UpdateLocationSmbCommand = se_UpdateLocationSmbCommand;
|
|
429
|
+
const se_UpdateTaskCommand = async (input, context) => {
|
|
430
430
|
const headers = {
|
|
431
431
|
"content-type": "application/x-amz-json-1.1",
|
|
432
432
|
"x-amz-target": "FmrsService.UpdateTask",
|
|
433
433
|
};
|
|
434
434
|
let body;
|
|
435
|
-
body = JSON.stringify(
|
|
435
|
+
body = JSON.stringify(se_UpdateTaskRequest(input, context));
|
|
436
436
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
437
437
|
};
|
|
438
|
-
exports.
|
|
439
|
-
const
|
|
438
|
+
exports.se_UpdateTaskCommand = se_UpdateTaskCommand;
|
|
439
|
+
const se_UpdateTaskExecutionCommand = async (input, context) => {
|
|
440
440
|
const headers = {
|
|
441
441
|
"content-type": "application/x-amz-json-1.1",
|
|
442
442
|
"x-amz-target": "FmrsService.UpdateTaskExecution",
|
|
443
443
|
};
|
|
444
444
|
let body;
|
|
445
|
-
body = JSON.stringify(
|
|
445
|
+
body = JSON.stringify(se_UpdateTaskExecutionRequest(input, context));
|
|
446
446
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
447
447
|
};
|
|
448
|
-
exports.
|
|
449
|
-
const
|
|
448
|
+
exports.se_UpdateTaskExecutionCommand = se_UpdateTaskExecutionCommand;
|
|
449
|
+
const de_CancelTaskExecutionCommand = async (output, context) => {
|
|
450
450
|
if (output.statusCode >= 300) {
|
|
451
|
-
return
|
|
451
|
+
return de_CancelTaskExecutionCommandError(output, context);
|
|
452
452
|
}
|
|
453
453
|
const data = await parseBody(output.body, context);
|
|
454
454
|
let contents = {};
|
|
455
|
-
contents =
|
|
455
|
+
contents = de_CancelTaskExecutionResponse(data, context);
|
|
456
456
|
const response = {
|
|
457
457
|
$metadata: deserializeMetadata(output),
|
|
458
458
|
...contents,
|
|
459
459
|
};
|
|
460
460
|
return Promise.resolve(response);
|
|
461
461
|
};
|
|
462
|
-
exports.
|
|
463
|
-
const
|
|
462
|
+
exports.de_CancelTaskExecutionCommand = de_CancelTaskExecutionCommand;
|
|
463
|
+
const de_CancelTaskExecutionCommandError = async (output, context) => {
|
|
464
464
|
const parsedOutput = {
|
|
465
465
|
...output,
|
|
466
466
|
body: await parseErrorBody(output.body, context),
|
|
@@ -469,10 +469,10 @@ const deserializeAws_json1_1CancelTaskExecutionCommandError = async (output, con
|
|
|
469
469
|
switch (errorCode) {
|
|
470
470
|
case "InternalException":
|
|
471
471
|
case "com.amazonaws.datasync#InternalException":
|
|
472
|
-
throw await
|
|
472
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
473
473
|
case "InvalidRequestException":
|
|
474
474
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
475
|
-
throw await
|
|
475
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
476
476
|
default:
|
|
477
477
|
const parsedBody = parsedOutput.body;
|
|
478
478
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -483,21 +483,21 @@ const deserializeAws_json1_1CancelTaskExecutionCommandError = async (output, con
|
|
|
483
483
|
});
|
|
484
484
|
}
|
|
485
485
|
};
|
|
486
|
-
const
|
|
486
|
+
const de_CreateAgentCommand = async (output, context) => {
|
|
487
487
|
if (output.statusCode >= 300) {
|
|
488
|
-
return
|
|
488
|
+
return de_CreateAgentCommandError(output, context);
|
|
489
489
|
}
|
|
490
490
|
const data = await parseBody(output.body, context);
|
|
491
491
|
let contents = {};
|
|
492
|
-
contents =
|
|
492
|
+
contents = de_CreateAgentResponse(data, context);
|
|
493
493
|
const response = {
|
|
494
494
|
$metadata: deserializeMetadata(output),
|
|
495
495
|
...contents,
|
|
496
496
|
};
|
|
497
497
|
return Promise.resolve(response);
|
|
498
498
|
};
|
|
499
|
-
exports.
|
|
500
|
-
const
|
|
499
|
+
exports.de_CreateAgentCommand = de_CreateAgentCommand;
|
|
500
|
+
const de_CreateAgentCommandError = async (output, context) => {
|
|
501
501
|
const parsedOutput = {
|
|
502
502
|
...output,
|
|
503
503
|
body: await parseErrorBody(output.body, context),
|
|
@@ -506,10 +506,10 @@ const deserializeAws_json1_1CreateAgentCommandError = async (output, context) =>
|
|
|
506
506
|
switch (errorCode) {
|
|
507
507
|
case "InternalException":
|
|
508
508
|
case "com.amazonaws.datasync#InternalException":
|
|
509
|
-
throw await
|
|
509
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
510
510
|
case "InvalidRequestException":
|
|
511
511
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
512
|
-
throw await
|
|
512
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
513
513
|
default:
|
|
514
514
|
const parsedBody = parsedOutput.body;
|
|
515
515
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -520,21 +520,21 @@ const deserializeAws_json1_1CreateAgentCommandError = async (output, context) =>
|
|
|
520
520
|
});
|
|
521
521
|
}
|
|
522
522
|
};
|
|
523
|
-
const
|
|
523
|
+
const de_CreateLocationEfsCommand = async (output, context) => {
|
|
524
524
|
if (output.statusCode >= 300) {
|
|
525
|
-
return
|
|
525
|
+
return de_CreateLocationEfsCommandError(output, context);
|
|
526
526
|
}
|
|
527
527
|
const data = await parseBody(output.body, context);
|
|
528
528
|
let contents = {};
|
|
529
|
-
contents =
|
|
529
|
+
contents = de_CreateLocationEfsResponse(data, context);
|
|
530
530
|
const response = {
|
|
531
531
|
$metadata: deserializeMetadata(output),
|
|
532
532
|
...contents,
|
|
533
533
|
};
|
|
534
534
|
return Promise.resolve(response);
|
|
535
535
|
};
|
|
536
|
-
exports.
|
|
537
|
-
const
|
|
536
|
+
exports.de_CreateLocationEfsCommand = de_CreateLocationEfsCommand;
|
|
537
|
+
const de_CreateLocationEfsCommandError = async (output, context) => {
|
|
538
538
|
const parsedOutput = {
|
|
539
539
|
...output,
|
|
540
540
|
body: await parseErrorBody(output.body, context),
|
|
@@ -543,10 +543,10 @@ const deserializeAws_json1_1CreateLocationEfsCommandError = async (output, conte
|
|
|
543
543
|
switch (errorCode) {
|
|
544
544
|
case "InternalException":
|
|
545
545
|
case "com.amazonaws.datasync#InternalException":
|
|
546
|
-
throw await
|
|
546
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
547
547
|
case "InvalidRequestException":
|
|
548
548
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
549
|
-
throw await
|
|
549
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
550
550
|
default:
|
|
551
551
|
const parsedBody = parsedOutput.body;
|
|
552
552
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -557,21 +557,21 @@ const deserializeAws_json1_1CreateLocationEfsCommandError = async (output, conte
|
|
|
557
557
|
});
|
|
558
558
|
}
|
|
559
559
|
};
|
|
560
|
-
const
|
|
560
|
+
const de_CreateLocationFsxLustreCommand = async (output, context) => {
|
|
561
561
|
if (output.statusCode >= 300) {
|
|
562
|
-
return
|
|
562
|
+
return de_CreateLocationFsxLustreCommandError(output, context);
|
|
563
563
|
}
|
|
564
564
|
const data = await parseBody(output.body, context);
|
|
565
565
|
let contents = {};
|
|
566
|
-
contents =
|
|
566
|
+
contents = de_CreateLocationFsxLustreResponse(data, context);
|
|
567
567
|
const response = {
|
|
568
568
|
$metadata: deserializeMetadata(output),
|
|
569
569
|
...contents,
|
|
570
570
|
};
|
|
571
571
|
return Promise.resolve(response);
|
|
572
572
|
};
|
|
573
|
-
exports.
|
|
574
|
-
const
|
|
573
|
+
exports.de_CreateLocationFsxLustreCommand = de_CreateLocationFsxLustreCommand;
|
|
574
|
+
const de_CreateLocationFsxLustreCommandError = async (output, context) => {
|
|
575
575
|
const parsedOutput = {
|
|
576
576
|
...output,
|
|
577
577
|
body: await parseErrorBody(output.body, context),
|
|
@@ -580,10 +580,10 @@ const deserializeAws_json1_1CreateLocationFsxLustreCommandError = async (output,
|
|
|
580
580
|
switch (errorCode) {
|
|
581
581
|
case "InternalException":
|
|
582
582
|
case "com.amazonaws.datasync#InternalException":
|
|
583
|
-
throw await
|
|
583
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
584
584
|
case "InvalidRequestException":
|
|
585
585
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
586
|
-
throw await
|
|
586
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
587
587
|
default:
|
|
588
588
|
const parsedBody = parsedOutput.body;
|
|
589
589
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -594,21 +594,21 @@ const deserializeAws_json1_1CreateLocationFsxLustreCommandError = async (output,
|
|
|
594
594
|
});
|
|
595
595
|
}
|
|
596
596
|
};
|
|
597
|
-
const
|
|
597
|
+
const de_CreateLocationFsxOntapCommand = async (output, context) => {
|
|
598
598
|
if (output.statusCode >= 300) {
|
|
599
|
-
return
|
|
599
|
+
return de_CreateLocationFsxOntapCommandError(output, context);
|
|
600
600
|
}
|
|
601
601
|
const data = await parseBody(output.body, context);
|
|
602
602
|
let contents = {};
|
|
603
|
-
contents =
|
|
603
|
+
contents = de_CreateLocationFsxOntapResponse(data, context);
|
|
604
604
|
const response = {
|
|
605
605
|
$metadata: deserializeMetadata(output),
|
|
606
606
|
...contents,
|
|
607
607
|
};
|
|
608
608
|
return Promise.resolve(response);
|
|
609
609
|
};
|
|
610
|
-
exports.
|
|
611
|
-
const
|
|
610
|
+
exports.de_CreateLocationFsxOntapCommand = de_CreateLocationFsxOntapCommand;
|
|
611
|
+
const de_CreateLocationFsxOntapCommandError = async (output, context) => {
|
|
612
612
|
const parsedOutput = {
|
|
613
613
|
...output,
|
|
614
614
|
body: await parseErrorBody(output.body, context),
|
|
@@ -617,10 +617,10 @@ const deserializeAws_json1_1CreateLocationFsxOntapCommandError = async (output,
|
|
|
617
617
|
switch (errorCode) {
|
|
618
618
|
case "InternalException":
|
|
619
619
|
case "com.amazonaws.datasync#InternalException":
|
|
620
|
-
throw await
|
|
620
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
621
621
|
case "InvalidRequestException":
|
|
622
622
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
623
|
-
throw await
|
|
623
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
624
624
|
default:
|
|
625
625
|
const parsedBody = parsedOutput.body;
|
|
626
626
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -631,21 +631,21 @@ const deserializeAws_json1_1CreateLocationFsxOntapCommandError = async (output,
|
|
|
631
631
|
});
|
|
632
632
|
}
|
|
633
633
|
};
|
|
634
|
-
const
|
|
634
|
+
const de_CreateLocationFsxOpenZfsCommand = async (output, context) => {
|
|
635
635
|
if (output.statusCode >= 300) {
|
|
636
|
-
return
|
|
636
|
+
return de_CreateLocationFsxOpenZfsCommandError(output, context);
|
|
637
637
|
}
|
|
638
638
|
const data = await parseBody(output.body, context);
|
|
639
639
|
let contents = {};
|
|
640
|
-
contents =
|
|
640
|
+
contents = de_CreateLocationFsxOpenZfsResponse(data, context);
|
|
641
641
|
const response = {
|
|
642
642
|
$metadata: deserializeMetadata(output),
|
|
643
643
|
...contents,
|
|
644
644
|
};
|
|
645
645
|
return Promise.resolve(response);
|
|
646
646
|
};
|
|
647
|
-
exports.
|
|
648
|
-
const
|
|
647
|
+
exports.de_CreateLocationFsxOpenZfsCommand = de_CreateLocationFsxOpenZfsCommand;
|
|
648
|
+
const de_CreateLocationFsxOpenZfsCommandError = async (output, context) => {
|
|
649
649
|
const parsedOutput = {
|
|
650
650
|
...output,
|
|
651
651
|
body: await parseErrorBody(output.body, context),
|
|
@@ -654,10 +654,10 @@ const deserializeAws_json1_1CreateLocationFsxOpenZfsCommandError = async (output
|
|
|
654
654
|
switch (errorCode) {
|
|
655
655
|
case "InternalException":
|
|
656
656
|
case "com.amazonaws.datasync#InternalException":
|
|
657
|
-
throw await
|
|
657
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
658
658
|
case "InvalidRequestException":
|
|
659
659
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
660
|
-
throw await
|
|
660
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
661
661
|
default:
|
|
662
662
|
const parsedBody = parsedOutput.body;
|
|
663
663
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -668,21 +668,21 @@ const deserializeAws_json1_1CreateLocationFsxOpenZfsCommandError = async (output
|
|
|
668
668
|
});
|
|
669
669
|
}
|
|
670
670
|
};
|
|
671
|
-
const
|
|
671
|
+
const de_CreateLocationFsxWindowsCommand = async (output, context) => {
|
|
672
672
|
if (output.statusCode >= 300) {
|
|
673
|
-
return
|
|
673
|
+
return de_CreateLocationFsxWindowsCommandError(output, context);
|
|
674
674
|
}
|
|
675
675
|
const data = await parseBody(output.body, context);
|
|
676
676
|
let contents = {};
|
|
677
|
-
contents =
|
|
677
|
+
contents = de_CreateLocationFsxWindowsResponse(data, context);
|
|
678
678
|
const response = {
|
|
679
679
|
$metadata: deserializeMetadata(output),
|
|
680
680
|
...contents,
|
|
681
681
|
};
|
|
682
682
|
return Promise.resolve(response);
|
|
683
683
|
};
|
|
684
|
-
exports.
|
|
685
|
-
const
|
|
684
|
+
exports.de_CreateLocationFsxWindowsCommand = de_CreateLocationFsxWindowsCommand;
|
|
685
|
+
const de_CreateLocationFsxWindowsCommandError = async (output, context) => {
|
|
686
686
|
const parsedOutput = {
|
|
687
687
|
...output,
|
|
688
688
|
body: await parseErrorBody(output.body, context),
|
|
@@ -691,10 +691,10 @@ const deserializeAws_json1_1CreateLocationFsxWindowsCommandError = async (output
|
|
|
691
691
|
switch (errorCode) {
|
|
692
692
|
case "InternalException":
|
|
693
693
|
case "com.amazonaws.datasync#InternalException":
|
|
694
|
-
throw await
|
|
694
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
695
695
|
case "InvalidRequestException":
|
|
696
696
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
697
|
-
throw await
|
|
697
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
698
698
|
default:
|
|
699
699
|
const parsedBody = parsedOutput.body;
|
|
700
700
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -705,21 +705,21 @@ const deserializeAws_json1_1CreateLocationFsxWindowsCommandError = async (output
|
|
|
705
705
|
});
|
|
706
706
|
}
|
|
707
707
|
};
|
|
708
|
-
const
|
|
708
|
+
const de_CreateLocationHdfsCommand = async (output, context) => {
|
|
709
709
|
if (output.statusCode >= 300) {
|
|
710
|
-
return
|
|
710
|
+
return de_CreateLocationHdfsCommandError(output, context);
|
|
711
711
|
}
|
|
712
712
|
const data = await parseBody(output.body, context);
|
|
713
713
|
let contents = {};
|
|
714
|
-
contents =
|
|
714
|
+
contents = de_CreateLocationHdfsResponse(data, context);
|
|
715
715
|
const response = {
|
|
716
716
|
$metadata: deserializeMetadata(output),
|
|
717
717
|
...contents,
|
|
718
718
|
};
|
|
719
719
|
return Promise.resolve(response);
|
|
720
720
|
};
|
|
721
|
-
exports.
|
|
722
|
-
const
|
|
721
|
+
exports.de_CreateLocationHdfsCommand = de_CreateLocationHdfsCommand;
|
|
722
|
+
const de_CreateLocationHdfsCommandError = async (output, context) => {
|
|
723
723
|
const parsedOutput = {
|
|
724
724
|
...output,
|
|
725
725
|
body: await parseErrorBody(output.body, context),
|
|
@@ -728,10 +728,10 @@ const deserializeAws_json1_1CreateLocationHdfsCommandError = async (output, cont
|
|
|
728
728
|
switch (errorCode) {
|
|
729
729
|
case "InternalException":
|
|
730
730
|
case "com.amazonaws.datasync#InternalException":
|
|
731
|
-
throw await
|
|
731
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
732
732
|
case "InvalidRequestException":
|
|
733
733
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
734
|
-
throw await
|
|
734
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
735
735
|
default:
|
|
736
736
|
const parsedBody = parsedOutput.body;
|
|
737
737
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -742,21 +742,21 @@ const deserializeAws_json1_1CreateLocationHdfsCommandError = async (output, cont
|
|
|
742
742
|
});
|
|
743
743
|
}
|
|
744
744
|
};
|
|
745
|
-
const
|
|
745
|
+
const de_CreateLocationNfsCommand = async (output, context) => {
|
|
746
746
|
if (output.statusCode >= 300) {
|
|
747
|
-
return
|
|
747
|
+
return de_CreateLocationNfsCommandError(output, context);
|
|
748
748
|
}
|
|
749
749
|
const data = await parseBody(output.body, context);
|
|
750
750
|
let contents = {};
|
|
751
|
-
contents =
|
|
751
|
+
contents = de_CreateLocationNfsResponse(data, context);
|
|
752
752
|
const response = {
|
|
753
753
|
$metadata: deserializeMetadata(output),
|
|
754
754
|
...contents,
|
|
755
755
|
};
|
|
756
756
|
return Promise.resolve(response);
|
|
757
757
|
};
|
|
758
|
-
exports.
|
|
759
|
-
const
|
|
758
|
+
exports.de_CreateLocationNfsCommand = de_CreateLocationNfsCommand;
|
|
759
|
+
const de_CreateLocationNfsCommandError = async (output, context) => {
|
|
760
760
|
const parsedOutput = {
|
|
761
761
|
...output,
|
|
762
762
|
body: await parseErrorBody(output.body, context),
|
|
@@ -765,10 +765,10 @@ const deserializeAws_json1_1CreateLocationNfsCommandError = async (output, conte
|
|
|
765
765
|
switch (errorCode) {
|
|
766
766
|
case "InternalException":
|
|
767
767
|
case "com.amazonaws.datasync#InternalException":
|
|
768
|
-
throw await
|
|
768
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
769
769
|
case "InvalidRequestException":
|
|
770
770
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
771
|
-
throw await
|
|
771
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
772
772
|
default:
|
|
773
773
|
const parsedBody = parsedOutput.body;
|
|
774
774
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -779,21 +779,21 @@ const deserializeAws_json1_1CreateLocationNfsCommandError = async (output, conte
|
|
|
779
779
|
});
|
|
780
780
|
}
|
|
781
781
|
};
|
|
782
|
-
const
|
|
782
|
+
const de_CreateLocationObjectStorageCommand = async (output, context) => {
|
|
783
783
|
if (output.statusCode >= 300) {
|
|
784
|
-
return
|
|
784
|
+
return de_CreateLocationObjectStorageCommandError(output, context);
|
|
785
785
|
}
|
|
786
786
|
const data = await parseBody(output.body, context);
|
|
787
787
|
let contents = {};
|
|
788
|
-
contents =
|
|
788
|
+
contents = de_CreateLocationObjectStorageResponse(data, context);
|
|
789
789
|
const response = {
|
|
790
790
|
$metadata: deserializeMetadata(output),
|
|
791
791
|
...contents,
|
|
792
792
|
};
|
|
793
793
|
return Promise.resolve(response);
|
|
794
794
|
};
|
|
795
|
-
exports.
|
|
796
|
-
const
|
|
795
|
+
exports.de_CreateLocationObjectStorageCommand = de_CreateLocationObjectStorageCommand;
|
|
796
|
+
const de_CreateLocationObjectStorageCommandError = async (output, context) => {
|
|
797
797
|
const parsedOutput = {
|
|
798
798
|
...output,
|
|
799
799
|
body: await parseErrorBody(output.body, context),
|
|
@@ -802,10 +802,10 @@ const deserializeAws_json1_1CreateLocationObjectStorageCommandError = async (out
|
|
|
802
802
|
switch (errorCode) {
|
|
803
803
|
case "InternalException":
|
|
804
804
|
case "com.amazonaws.datasync#InternalException":
|
|
805
|
-
throw await
|
|
805
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
806
806
|
case "InvalidRequestException":
|
|
807
807
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
808
|
-
throw await
|
|
808
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
809
809
|
default:
|
|
810
810
|
const parsedBody = parsedOutput.body;
|
|
811
811
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -816,21 +816,21 @@ const deserializeAws_json1_1CreateLocationObjectStorageCommandError = async (out
|
|
|
816
816
|
});
|
|
817
817
|
}
|
|
818
818
|
};
|
|
819
|
-
const
|
|
819
|
+
const de_CreateLocationS3Command = async (output, context) => {
|
|
820
820
|
if (output.statusCode >= 300) {
|
|
821
|
-
return
|
|
821
|
+
return de_CreateLocationS3CommandError(output, context);
|
|
822
822
|
}
|
|
823
823
|
const data = await parseBody(output.body, context);
|
|
824
824
|
let contents = {};
|
|
825
|
-
contents =
|
|
825
|
+
contents = de_CreateLocationS3Response(data, context);
|
|
826
826
|
const response = {
|
|
827
827
|
$metadata: deserializeMetadata(output),
|
|
828
828
|
...contents,
|
|
829
829
|
};
|
|
830
830
|
return Promise.resolve(response);
|
|
831
831
|
};
|
|
832
|
-
exports.
|
|
833
|
-
const
|
|
832
|
+
exports.de_CreateLocationS3Command = de_CreateLocationS3Command;
|
|
833
|
+
const de_CreateLocationS3CommandError = async (output, context) => {
|
|
834
834
|
const parsedOutput = {
|
|
835
835
|
...output,
|
|
836
836
|
body: await parseErrorBody(output.body, context),
|
|
@@ -839,10 +839,10 @@ const deserializeAws_json1_1CreateLocationS3CommandError = async (output, contex
|
|
|
839
839
|
switch (errorCode) {
|
|
840
840
|
case "InternalException":
|
|
841
841
|
case "com.amazonaws.datasync#InternalException":
|
|
842
|
-
throw await
|
|
842
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
843
843
|
case "InvalidRequestException":
|
|
844
844
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
845
|
-
throw await
|
|
845
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
846
846
|
default:
|
|
847
847
|
const parsedBody = parsedOutput.body;
|
|
848
848
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -853,21 +853,21 @@ const deserializeAws_json1_1CreateLocationS3CommandError = async (output, contex
|
|
|
853
853
|
});
|
|
854
854
|
}
|
|
855
855
|
};
|
|
856
|
-
const
|
|
856
|
+
const de_CreateLocationSmbCommand = async (output, context) => {
|
|
857
857
|
if (output.statusCode >= 300) {
|
|
858
|
-
return
|
|
858
|
+
return de_CreateLocationSmbCommandError(output, context);
|
|
859
859
|
}
|
|
860
860
|
const data = await parseBody(output.body, context);
|
|
861
861
|
let contents = {};
|
|
862
|
-
contents =
|
|
862
|
+
contents = de_CreateLocationSmbResponse(data, context);
|
|
863
863
|
const response = {
|
|
864
864
|
$metadata: deserializeMetadata(output),
|
|
865
865
|
...contents,
|
|
866
866
|
};
|
|
867
867
|
return Promise.resolve(response);
|
|
868
868
|
};
|
|
869
|
-
exports.
|
|
870
|
-
const
|
|
869
|
+
exports.de_CreateLocationSmbCommand = de_CreateLocationSmbCommand;
|
|
870
|
+
const de_CreateLocationSmbCommandError = async (output, context) => {
|
|
871
871
|
const parsedOutput = {
|
|
872
872
|
...output,
|
|
873
873
|
body: await parseErrorBody(output.body, context),
|
|
@@ -876,10 +876,10 @@ const deserializeAws_json1_1CreateLocationSmbCommandError = async (output, conte
|
|
|
876
876
|
switch (errorCode) {
|
|
877
877
|
case "InternalException":
|
|
878
878
|
case "com.amazonaws.datasync#InternalException":
|
|
879
|
-
throw await
|
|
879
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
880
880
|
case "InvalidRequestException":
|
|
881
881
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
882
|
-
throw await
|
|
882
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
883
883
|
default:
|
|
884
884
|
const parsedBody = parsedOutput.body;
|
|
885
885
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -890,21 +890,21 @@ const deserializeAws_json1_1CreateLocationSmbCommandError = async (output, conte
|
|
|
890
890
|
});
|
|
891
891
|
}
|
|
892
892
|
};
|
|
893
|
-
const
|
|
893
|
+
const de_CreateTaskCommand = async (output, context) => {
|
|
894
894
|
if (output.statusCode >= 300) {
|
|
895
|
-
return
|
|
895
|
+
return de_CreateTaskCommandError(output, context);
|
|
896
896
|
}
|
|
897
897
|
const data = await parseBody(output.body, context);
|
|
898
898
|
let contents = {};
|
|
899
|
-
contents =
|
|
899
|
+
contents = de_CreateTaskResponse(data, context);
|
|
900
900
|
const response = {
|
|
901
901
|
$metadata: deserializeMetadata(output),
|
|
902
902
|
...contents,
|
|
903
903
|
};
|
|
904
904
|
return Promise.resolve(response);
|
|
905
905
|
};
|
|
906
|
-
exports.
|
|
907
|
-
const
|
|
906
|
+
exports.de_CreateTaskCommand = de_CreateTaskCommand;
|
|
907
|
+
const de_CreateTaskCommandError = async (output, context) => {
|
|
908
908
|
const parsedOutput = {
|
|
909
909
|
...output,
|
|
910
910
|
body: await parseErrorBody(output.body, context),
|
|
@@ -913,10 +913,10 @@ const deserializeAws_json1_1CreateTaskCommandError = async (output, context) =>
|
|
|
913
913
|
switch (errorCode) {
|
|
914
914
|
case "InternalException":
|
|
915
915
|
case "com.amazonaws.datasync#InternalException":
|
|
916
|
-
throw await
|
|
916
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
917
917
|
case "InvalidRequestException":
|
|
918
918
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
919
|
-
throw await
|
|
919
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
920
920
|
default:
|
|
921
921
|
const parsedBody = parsedOutput.body;
|
|
922
922
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -927,21 +927,21 @@ const deserializeAws_json1_1CreateTaskCommandError = async (output, context) =>
|
|
|
927
927
|
});
|
|
928
928
|
}
|
|
929
929
|
};
|
|
930
|
-
const
|
|
930
|
+
const de_DeleteAgentCommand = async (output, context) => {
|
|
931
931
|
if (output.statusCode >= 300) {
|
|
932
|
-
return
|
|
932
|
+
return de_DeleteAgentCommandError(output, context);
|
|
933
933
|
}
|
|
934
934
|
const data = await parseBody(output.body, context);
|
|
935
935
|
let contents = {};
|
|
936
|
-
contents =
|
|
936
|
+
contents = de_DeleteAgentResponse(data, context);
|
|
937
937
|
const response = {
|
|
938
938
|
$metadata: deserializeMetadata(output),
|
|
939
939
|
...contents,
|
|
940
940
|
};
|
|
941
941
|
return Promise.resolve(response);
|
|
942
942
|
};
|
|
943
|
-
exports.
|
|
944
|
-
const
|
|
943
|
+
exports.de_DeleteAgentCommand = de_DeleteAgentCommand;
|
|
944
|
+
const de_DeleteAgentCommandError = async (output, context) => {
|
|
945
945
|
const parsedOutput = {
|
|
946
946
|
...output,
|
|
947
947
|
body: await parseErrorBody(output.body, context),
|
|
@@ -950,10 +950,10 @@ const deserializeAws_json1_1DeleteAgentCommandError = async (output, context) =>
|
|
|
950
950
|
switch (errorCode) {
|
|
951
951
|
case "InternalException":
|
|
952
952
|
case "com.amazonaws.datasync#InternalException":
|
|
953
|
-
throw await
|
|
953
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
954
954
|
case "InvalidRequestException":
|
|
955
955
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
956
|
-
throw await
|
|
956
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
957
957
|
default:
|
|
958
958
|
const parsedBody = parsedOutput.body;
|
|
959
959
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -964,21 +964,21 @@ const deserializeAws_json1_1DeleteAgentCommandError = async (output, context) =>
|
|
|
964
964
|
});
|
|
965
965
|
}
|
|
966
966
|
};
|
|
967
|
-
const
|
|
967
|
+
const de_DeleteLocationCommand = async (output, context) => {
|
|
968
968
|
if (output.statusCode >= 300) {
|
|
969
|
-
return
|
|
969
|
+
return de_DeleteLocationCommandError(output, context);
|
|
970
970
|
}
|
|
971
971
|
const data = await parseBody(output.body, context);
|
|
972
972
|
let contents = {};
|
|
973
|
-
contents =
|
|
973
|
+
contents = de_DeleteLocationResponse(data, context);
|
|
974
974
|
const response = {
|
|
975
975
|
$metadata: deserializeMetadata(output),
|
|
976
976
|
...contents,
|
|
977
977
|
};
|
|
978
978
|
return Promise.resolve(response);
|
|
979
979
|
};
|
|
980
|
-
exports.
|
|
981
|
-
const
|
|
980
|
+
exports.de_DeleteLocationCommand = de_DeleteLocationCommand;
|
|
981
|
+
const de_DeleteLocationCommandError = async (output, context) => {
|
|
982
982
|
const parsedOutput = {
|
|
983
983
|
...output,
|
|
984
984
|
body: await parseErrorBody(output.body, context),
|
|
@@ -987,10 +987,10 @@ const deserializeAws_json1_1DeleteLocationCommandError = async (output, context)
|
|
|
987
987
|
switch (errorCode) {
|
|
988
988
|
case "InternalException":
|
|
989
989
|
case "com.amazonaws.datasync#InternalException":
|
|
990
|
-
throw await
|
|
990
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
991
991
|
case "InvalidRequestException":
|
|
992
992
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
993
|
-
throw await
|
|
993
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
994
994
|
default:
|
|
995
995
|
const parsedBody = parsedOutput.body;
|
|
996
996
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1001,21 +1001,21 @@ const deserializeAws_json1_1DeleteLocationCommandError = async (output, context)
|
|
|
1001
1001
|
});
|
|
1002
1002
|
}
|
|
1003
1003
|
};
|
|
1004
|
-
const
|
|
1004
|
+
const de_DeleteTaskCommand = async (output, context) => {
|
|
1005
1005
|
if (output.statusCode >= 300) {
|
|
1006
|
-
return
|
|
1006
|
+
return de_DeleteTaskCommandError(output, context);
|
|
1007
1007
|
}
|
|
1008
1008
|
const data = await parseBody(output.body, context);
|
|
1009
1009
|
let contents = {};
|
|
1010
|
-
contents =
|
|
1010
|
+
contents = de_DeleteTaskResponse(data, context);
|
|
1011
1011
|
const response = {
|
|
1012
1012
|
$metadata: deserializeMetadata(output),
|
|
1013
1013
|
...contents,
|
|
1014
1014
|
};
|
|
1015
1015
|
return Promise.resolve(response);
|
|
1016
1016
|
};
|
|
1017
|
-
exports.
|
|
1018
|
-
const
|
|
1017
|
+
exports.de_DeleteTaskCommand = de_DeleteTaskCommand;
|
|
1018
|
+
const de_DeleteTaskCommandError = async (output, context) => {
|
|
1019
1019
|
const parsedOutput = {
|
|
1020
1020
|
...output,
|
|
1021
1021
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1024,10 +1024,10 @@ const deserializeAws_json1_1DeleteTaskCommandError = async (output, context) =>
|
|
|
1024
1024
|
switch (errorCode) {
|
|
1025
1025
|
case "InternalException":
|
|
1026
1026
|
case "com.amazonaws.datasync#InternalException":
|
|
1027
|
-
throw await
|
|
1027
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1028
1028
|
case "InvalidRequestException":
|
|
1029
1029
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1030
|
-
throw await
|
|
1030
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1031
1031
|
default:
|
|
1032
1032
|
const parsedBody = parsedOutput.body;
|
|
1033
1033
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1038,21 +1038,21 @@ const deserializeAws_json1_1DeleteTaskCommandError = async (output, context) =>
|
|
|
1038
1038
|
});
|
|
1039
1039
|
}
|
|
1040
1040
|
};
|
|
1041
|
-
const
|
|
1041
|
+
const de_DescribeAgentCommand = async (output, context) => {
|
|
1042
1042
|
if (output.statusCode >= 300) {
|
|
1043
|
-
return
|
|
1043
|
+
return de_DescribeAgentCommandError(output, context);
|
|
1044
1044
|
}
|
|
1045
1045
|
const data = await parseBody(output.body, context);
|
|
1046
1046
|
let contents = {};
|
|
1047
|
-
contents =
|
|
1047
|
+
contents = de_DescribeAgentResponse(data, context);
|
|
1048
1048
|
const response = {
|
|
1049
1049
|
$metadata: deserializeMetadata(output),
|
|
1050
1050
|
...contents,
|
|
1051
1051
|
};
|
|
1052
1052
|
return Promise.resolve(response);
|
|
1053
1053
|
};
|
|
1054
|
-
exports.
|
|
1055
|
-
const
|
|
1054
|
+
exports.de_DescribeAgentCommand = de_DescribeAgentCommand;
|
|
1055
|
+
const de_DescribeAgentCommandError = async (output, context) => {
|
|
1056
1056
|
const parsedOutput = {
|
|
1057
1057
|
...output,
|
|
1058
1058
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1061,10 +1061,10 @@ const deserializeAws_json1_1DescribeAgentCommandError = async (output, context)
|
|
|
1061
1061
|
switch (errorCode) {
|
|
1062
1062
|
case "InternalException":
|
|
1063
1063
|
case "com.amazonaws.datasync#InternalException":
|
|
1064
|
-
throw await
|
|
1064
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1065
1065
|
case "InvalidRequestException":
|
|
1066
1066
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1067
|
-
throw await
|
|
1067
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1068
1068
|
default:
|
|
1069
1069
|
const parsedBody = parsedOutput.body;
|
|
1070
1070
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1075,21 +1075,21 @@ const deserializeAws_json1_1DescribeAgentCommandError = async (output, context)
|
|
|
1075
1075
|
});
|
|
1076
1076
|
}
|
|
1077
1077
|
};
|
|
1078
|
-
const
|
|
1078
|
+
const de_DescribeLocationEfsCommand = async (output, context) => {
|
|
1079
1079
|
if (output.statusCode >= 300) {
|
|
1080
|
-
return
|
|
1080
|
+
return de_DescribeLocationEfsCommandError(output, context);
|
|
1081
1081
|
}
|
|
1082
1082
|
const data = await parseBody(output.body, context);
|
|
1083
1083
|
let contents = {};
|
|
1084
|
-
contents =
|
|
1084
|
+
contents = de_DescribeLocationEfsResponse(data, context);
|
|
1085
1085
|
const response = {
|
|
1086
1086
|
$metadata: deserializeMetadata(output),
|
|
1087
1087
|
...contents,
|
|
1088
1088
|
};
|
|
1089
1089
|
return Promise.resolve(response);
|
|
1090
1090
|
};
|
|
1091
|
-
exports.
|
|
1092
|
-
const
|
|
1091
|
+
exports.de_DescribeLocationEfsCommand = de_DescribeLocationEfsCommand;
|
|
1092
|
+
const de_DescribeLocationEfsCommandError = async (output, context) => {
|
|
1093
1093
|
const parsedOutput = {
|
|
1094
1094
|
...output,
|
|
1095
1095
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1098,10 +1098,10 @@ const deserializeAws_json1_1DescribeLocationEfsCommandError = async (output, con
|
|
|
1098
1098
|
switch (errorCode) {
|
|
1099
1099
|
case "InternalException":
|
|
1100
1100
|
case "com.amazonaws.datasync#InternalException":
|
|
1101
|
-
throw await
|
|
1101
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1102
1102
|
case "InvalidRequestException":
|
|
1103
1103
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1104
|
-
throw await
|
|
1104
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1105
1105
|
default:
|
|
1106
1106
|
const parsedBody = parsedOutput.body;
|
|
1107
1107
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1112,21 +1112,21 @@ const deserializeAws_json1_1DescribeLocationEfsCommandError = async (output, con
|
|
|
1112
1112
|
});
|
|
1113
1113
|
}
|
|
1114
1114
|
};
|
|
1115
|
-
const
|
|
1115
|
+
const de_DescribeLocationFsxLustreCommand = async (output, context) => {
|
|
1116
1116
|
if (output.statusCode >= 300) {
|
|
1117
|
-
return
|
|
1117
|
+
return de_DescribeLocationFsxLustreCommandError(output, context);
|
|
1118
1118
|
}
|
|
1119
1119
|
const data = await parseBody(output.body, context);
|
|
1120
1120
|
let contents = {};
|
|
1121
|
-
contents =
|
|
1121
|
+
contents = de_DescribeLocationFsxLustreResponse(data, context);
|
|
1122
1122
|
const response = {
|
|
1123
1123
|
$metadata: deserializeMetadata(output),
|
|
1124
1124
|
...contents,
|
|
1125
1125
|
};
|
|
1126
1126
|
return Promise.resolve(response);
|
|
1127
1127
|
};
|
|
1128
|
-
exports.
|
|
1129
|
-
const
|
|
1128
|
+
exports.de_DescribeLocationFsxLustreCommand = de_DescribeLocationFsxLustreCommand;
|
|
1129
|
+
const de_DescribeLocationFsxLustreCommandError = async (output, context) => {
|
|
1130
1130
|
const parsedOutput = {
|
|
1131
1131
|
...output,
|
|
1132
1132
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1135,10 +1135,10 @@ const deserializeAws_json1_1DescribeLocationFsxLustreCommandError = async (outpu
|
|
|
1135
1135
|
switch (errorCode) {
|
|
1136
1136
|
case "InternalException":
|
|
1137
1137
|
case "com.amazonaws.datasync#InternalException":
|
|
1138
|
-
throw await
|
|
1138
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1139
1139
|
case "InvalidRequestException":
|
|
1140
1140
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1141
|
-
throw await
|
|
1141
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1142
1142
|
default:
|
|
1143
1143
|
const parsedBody = parsedOutput.body;
|
|
1144
1144
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1149,21 +1149,21 @@ const deserializeAws_json1_1DescribeLocationFsxLustreCommandError = async (outpu
|
|
|
1149
1149
|
});
|
|
1150
1150
|
}
|
|
1151
1151
|
};
|
|
1152
|
-
const
|
|
1152
|
+
const de_DescribeLocationFsxOntapCommand = async (output, context) => {
|
|
1153
1153
|
if (output.statusCode >= 300) {
|
|
1154
|
-
return
|
|
1154
|
+
return de_DescribeLocationFsxOntapCommandError(output, context);
|
|
1155
1155
|
}
|
|
1156
1156
|
const data = await parseBody(output.body, context);
|
|
1157
1157
|
let contents = {};
|
|
1158
|
-
contents =
|
|
1158
|
+
contents = de_DescribeLocationFsxOntapResponse(data, context);
|
|
1159
1159
|
const response = {
|
|
1160
1160
|
$metadata: deserializeMetadata(output),
|
|
1161
1161
|
...contents,
|
|
1162
1162
|
};
|
|
1163
1163
|
return Promise.resolve(response);
|
|
1164
1164
|
};
|
|
1165
|
-
exports.
|
|
1166
|
-
const
|
|
1165
|
+
exports.de_DescribeLocationFsxOntapCommand = de_DescribeLocationFsxOntapCommand;
|
|
1166
|
+
const de_DescribeLocationFsxOntapCommandError = async (output, context) => {
|
|
1167
1167
|
const parsedOutput = {
|
|
1168
1168
|
...output,
|
|
1169
1169
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1172,10 +1172,10 @@ const deserializeAws_json1_1DescribeLocationFsxOntapCommandError = async (output
|
|
|
1172
1172
|
switch (errorCode) {
|
|
1173
1173
|
case "InternalException":
|
|
1174
1174
|
case "com.amazonaws.datasync#InternalException":
|
|
1175
|
-
throw await
|
|
1175
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1176
1176
|
case "InvalidRequestException":
|
|
1177
1177
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1178
|
-
throw await
|
|
1178
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1179
1179
|
default:
|
|
1180
1180
|
const parsedBody = parsedOutput.body;
|
|
1181
1181
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1186,21 +1186,21 @@ const deserializeAws_json1_1DescribeLocationFsxOntapCommandError = async (output
|
|
|
1186
1186
|
});
|
|
1187
1187
|
}
|
|
1188
1188
|
};
|
|
1189
|
-
const
|
|
1189
|
+
const de_DescribeLocationFsxOpenZfsCommand = async (output, context) => {
|
|
1190
1190
|
if (output.statusCode >= 300) {
|
|
1191
|
-
return
|
|
1191
|
+
return de_DescribeLocationFsxOpenZfsCommandError(output, context);
|
|
1192
1192
|
}
|
|
1193
1193
|
const data = await parseBody(output.body, context);
|
|
1194
1194
|
let contents = {};
|
|
1195
|
-
contents =
|
|
1195
|
+
contents = de_DescribeLocationFsxOpenZfsResponse(data, context);
|
|
1196
1196
|
const response = {
|
|
1197
1197
|
$metadata: deserializeMetadata(output),
|
|
1198
1198
|
...contents,
|
|
1199
1199
|
};
|
|
1200
1200
|
return Promise.resolve(response);
|
|
1201
1201
|
};
|
|
1202
|
-
exports.
|
|
1203
|
-
const
|
|
1202
|
+
exports.de_DescribeLocationFsxOpenZfsCommand = de_DescribeLocationFsxOpenZfsCommand;
|
|
1203
|
+
const de_DescribeLocationFsxOpenZfsCommandError = async (output, context) => {
|
|
1204
1204
|
const parsedOutput = {
|
|
1205
1205
|
...output,
|
|
1206
1206
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1209,10 +1209,10 @@ const deserializeAws_json1_1DescribeLocationFsxOpenZfsCommandError = async (outp
|
|
|
1209
1209
|
switch (errorCode) {
|
|
1210
1210
|
case "InternalException":
|
|
1211
1211
|
case "com.amazonaws.datasync#InternalException":
|
|
1212
|
-
throw await
|
|
1212
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1213
1213
|
case "InvalidRequestException":
|
|
1214
1214
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1215
|
-
throw await
|
|
1215
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1216
1216
|
default:
|
|
1217
1217
|
const parsedBody = parsedOutput.body;
|
|
1218
1218
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1223,21 +1223,21 @@ const deserializeAws_json1_1DescribeLocationFsxOpenZfsCommandError = async (outp
|
|
|
1223
1223
|
});
|
|
1224
1224
|
}
|
|
1225
1225
|
};
|
|
1226
|
-
const
|
|
1226
|
+
const de_DescribeLocationFsxWindowsCommand = async (output, context) => {
|
|
1227
1227
|
if (output.statusCode >= 300) {
|
|
1228
|
-
return
|
|
1228
|
+
return de_DescribeLocationFsxWindowsCommandError(output, context);
|
|
1229
1229
|
}
|
|
1230
1230
|
const data = await parseBody(output.body, context);
|
|
1231
1231
|
let contents = {};
|
|
1232
|
-
contents =
|
|
1232
|
+
contents = de_DescribeLocationFsxWindowsResponse(data, context);
|
|
1233
1233
|
const response = {
|
|
1234
1234
|
$metadata: deserializeMetadata(output),
|
|
1235
1235
|
...contents,
|
|
1236
1236
|
};
|
|
1237
1237
|
return Promise.resolve(response);
|
|
1238
1238
|
};
|
|
1239
|
-
exports.
|
|
1240
|
-
const
|
|
1239
|
+
exports.de_DescribeLocationFsxWindowsCommand = de_DescribeLocationFsxWindowsCommand;
|
|
1240
|
+
const de_DescribeLocationFsxWindowsCommandError = async (output, context) => {
|
|
1241
1241
|
const parsedOutput = {
|
|
1242
1242
|
...output,
|
|
1243
1243
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1246,10 +1246,10 @@ const deserializeAws_json1_1DescribeLocationFsxWindowsCommandError = async (outp
|
|
|
1246
1246
|
switch (errorCode) {
|
|
1247
1247
|
case "InternalException":
|
|
1248
1248
|
case "com.amazonaws.datasync#InternalException":
|
|
1249
|
-
throw await
|
|
1249
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1250
1250
|
case "InvalidRequestException":
|
|
1251
1251
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1252
|
-
throw await
|
|
1252
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1253
1253
|
default:
|
|
1254
1254
|
const parsedBody = parsedOutput.body;
|
|
1255
1255
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1260,21 +1260,21 @@ const deserializeAws_json1_1DescribeLocationFsxWindowsCommandError = async (outp
|
|
|
1260
1260
|
});
|
|
1261
1261
|
}
|
|
1262
1262
|
};
|
|
1263
|
-
const
|
|
1263
|
+
const de_DescribeLocationHdfsCommand = async (output, context) => {
|
|
1264
1264
|
if (output.statusCode >= 300) {
|
|
1265
|
-
return
|
|
1265
|
+
return de_DescribeLocationHdfsCommandError(output, context);
|
|
1266
1266
|
}
|
|
1267
1267
|
const data = await parseBody(output.body, context);
|
|
1268
1268
|
let contents = {};
|
|
1269
|
-
contents =
|
|
1269
|
+
contents = de_DescribeLocationHdfsResponse(data, context);
|
|
1270
1270
|
const response = {
|
|
1271
1271
|
$metadata: deserializeMetadata(output),
|
|
1272
1272
|
...contents,
|
|
1273
1273
|
};
|
|
1274
1274
|
return Promise.resolve(response);
|
|
1275
1275
|
};
|
|
1276
|
-
exports.
|
|
1277
|
-
const
|
|
1276
|
+
exports.de_DescribeLocationHdfsCommand = de_DescribeLocationHdfsCommand;
|
|
1277
|
+
const de_DescribeLocationHdfsCommandError = async (output, context) => {
|
|
1278
1278
|
const parsedOutput = {
|
|
1279
1279
|
...output,
|
|
1280
1280
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1283,10 +1283,10 @@ const deserializeAws_json1_1DescribeLocationHdfsCommandError = async (output, co
|
|
|
1283
1283
|
switch (errorCode) {
|
|
1284
1284
|
case "InternalException":
|
|
1285
1285
|
case "com.amazonaws.datasync#InternalException":
|
|
1286
|
-
throw await
|
|
1286
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1287
1287
|
case "InvalidRequestException":
|
|
1288
1288
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1289
|
-
throw await
|
|
1289
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1290
1290
|
default:
|
|
1291
1291
|
const parsedBody = parsedOutput.body;
|
|
1292
1292
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1297,21 +1297,21 @@ const deserializeAws_json1_1DescribeLocationHdfsCommandError = async (output, co
|
|
|
1297
1297
|
});
|
|
1298
1298
|
}
|
|
1299
1299
|
};
|
|
1300
|
-
const
|
|
1300
|
+
const de_DescribeLocationNfsCommand = async (output, context) => {
|
|
1301
1301
|
if (output.statusCode >= 300) {
|
|
1302
|
-
return
|
|
1302
|
+
return de_DescribeLocationNfsCommandError(output, context);
|
|
1303
1303
|
}
|
|
1304
1304
|
const data = await parseBody(output.body, context);
|
|
1305
1305
|
let contents = {};
|
|
1306
|
-
contents =
|
|
1306
|
+
contents = de_DescribeLocationNfsResponse(data, context);
|
|
1307
1307
|
const response = {
|
|
1308
1308
|
$metadata: deserializeMetadata(output),
|
|
1309
1309
|
...contents,
|
|
1310
1310
|
};
|
|
1311
1311
|
return Promise.resolve(response);
|
|
1312
1312
|
};
|
|
1313
|
-
exports.
|
|
1314
|
-
const
|
|
1313
|
+
exports.de_DescribeLocationNfsCommand = de_DescribeLocationNfsCommand;
|
|
1314
|
+
const de_DescribeLocationNfsCommandError = async (output, context) => {
|
|
1315
1315
|
const parsedOutput = {
|
|
1316
1316
|
...output,
|
|
1317
1317
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1320,10 +1320,10 @@ const deserializeAws_json1_1DescribeLocationNfsCommandError = async (output, con
|
|
|
1320
1320
|
switch (errorCode) {
|
|
1321
1321
|
case "InternalException":
|
|
1322
1322
|
case "com.amazonaws.datasync#InternalException":
|
|
1323
|
-
throw await
|
|
1323
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1324
1324
|
case "InvalidRequestException":
|
|
1325
1325
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1326
|
-
throw await
|
|
1326
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1327
1327
|
default:
|
|
1328
1328
|
const parsedBody = parsedOutput.body;
|
|
1329
1329
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1334,21 +1334,21 @@ const deserializeAws_json1_1DescribeLocationNfsCommandError = async (output, con
|
|
|
1334
1334
|
});
|
|
1335
1335
|
}
|
|
1336
1336
|
};
|
|
1337
|
-
const
|
|
1337
|
+
const de_DescribeLocationObjectStorageCommand = async (output, context) => {
|
|
1338
1338
|
if (output.statusCode >= 300) {
|
|
1339
|
-
return
|
|
1339
|
+
return de_DescribeLocationObjectStorageCommandError(output, context);
|
|
1340
1340
|
}
|
|
1341
1341
|
const data = await parseBody(output.body, context);
|
|
1342
1342
|
let contents = {};
|
|
1343
|
-
contents =
|
|
1343
|
+
contents = de_DescribeLocationObjectStorageResponse(data, context);
|
|
1344
1344
|
const response = {
|
|
1345
1345
|
$metadata: deserializeMetadata(output),
|
|
1346
1346
|
...contents,
|
|
1347
1347
|
};
|
|
1348
1348
|
return Promise.resolve(response);
|
|
1349
1349
|
};
|
|
1350
|
-
exports.
|
|
1351
|
-
const
|
|
1350
|
+
exports.de_DescribeLocationObjectStorageCommand = de_DescribeLocationObjectStorageCommand;
|
|
1351
|
+
const de_DescribeLocationObjectStorageCommandError = async (output, context) => {
|
|
1352
1352
|
const parsedOutput = {
|
|
1353
1353
|
...output,
|
|
1354
1354
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1357,10 +1357,10 @@ const deserializeAws_json1_1DescribeLocationObjectStorageCommandError = async (o
|
|
|
1357
1357
|
switch (errorCode) {
|
|
1358
1358
|
case "InternalException":
|
|
1359
1359
|
case "com.amazonaws.datasync#InternalException":
|
|
1360
|
-
throw await
|
|
1360
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1361
1361
|
case "InvalidRequestException":
|
|
1362
1362
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1363
|
-
throw await
|
|
1363
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1364
1364
|
default:
|
|
1365
1365
|
const parsedBody = parsedOutput.body;
|
|
1366
1366
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1371,21 +1371,21 @@ const deserializeAws_json1_1DescribeLocationObjectStorageCommandError = async (o
|
|
|
1371
1371
|
});
|
|
1372
1372
|
}
|
|
1373
1373
|
};
|
|
1374
|
-
const
|
|
1374
|
+
const de_DescribeLocationS3Command = async (output, context) => {
|
|
1375
1375
|
if (output.statusCode >= 300) {
|
|
1376
|
-
return
|
|
1376
|
+
return de_DescribeLocationS3CommandError(output, context);
|
|
1377
1377
|
}
|
|
1378
1378
|
const data = await parseBody(output.body, context);
|
|
1379
1379
|
let contents = {};
|
|
1380
|
-
contents =
|
|
1380
|
+
contents = de_DescribeLocationS3Response(data, context);
|
|
1381
1381
|
const response = {
|
|
1382
1382
|
$metadata: deserializeMetadata(output),
|
|
1383
1383
|
...contents,
|
|
1384
1384
|
};
|
|
1385
1385
|
return Promise.resolve(response);
|
|
1386
1386
|
};
|
|
1387
|
-
exports.
|
|
1388
|
-
const
|
|
1387
|
+
exports.de_DescribeLocationS3Command = de_DescribeLocationS3Command;
|
|
1388
|
+
const de_DescribeLocationS3CommandError = async (output, context) => {
|
|
1389
1389
|
const parsedOutput = {
|
|
1390
1390
|
...output,
|
|
1391
1391
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1394,10 +1394,10 @@ const deserializeAws_json1_1DescribeLocationS3CommandError = async (output, cont
|
|
|
1394
1394
|
switch (errorCode) {
|
|
1395
1395
|
case "InternalException":
|
|
1396
1396
|
case "com.amazonaws.datasync#InternalException":
|
|
1397
|
-
throw await
|
|
1397
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1398
1398
|
case "InvalidRequestException":
|
|
1399
1399
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1400
|
-
throw await
|
|
1400
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1401
1401
|
default:
|
|
1402
1402
|
const parsedBody = parsedOutput.body;
|
|
1403
1403
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1408,21 +1408,21 @@ const deserializeAws_json1_1DescribeLocationS3CommandError = async (output, cont
|
|
|
1408
1408
|
});
|
|
1409
1409
|
}
|
|
1410
1410
|
};
|
|
1411
|
-
const
|
|
1411
|
+
const de_DescribeLocationSmbCommand = async (output, context) => {
|
|
1412
1412
|
if (output.statusCode >= 300) {
|
|
1413
|
-
return
|
|
1413
|
+
return de_DescribeLocationSmbCommandError(output, context);
|
|
1414
1414
|
}
|
|
1415
1415
|
const data = await parseBody(output.body, context);
|
|
1416
1416
|
let contents = {};
|
|
1417
|
-
contents =
|
|
1417
|
+
contents = de_DescribeLocationSmbResponse(data, context);
|
|
1418
1418
|
const response = {
|
|
1419
1419
|
$metadata: deserializeMetadata(output),
|
|
1420
1420
|
...contents,
|
|
1421
1421
|
};
|
|
1422
1422
|
return Promise.resolve(response);
|
|
1423
1423
|
};
|
|
1424
|
-
exports.
|
|
1425
|
-
const
|
|
1424
|
+
exports.de_DescribeLocationSmbCommand = de_DescribeLocationSmbCommand;
|
|
1425
|
+
const de_DescribeLocationSmbCommandError = async (output, context) => {
|
|
1426
1426
|
const parsedOutput = {
|
|
1427
1427
|
...output,
|
|
1428
1428
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1431,10 +1431,10 @@ const deserializeAws_json1_1DescribeLocationSmbCommandError = async (output, con
|
|
|
1431
1431
|
switch (errorCode) {
|
|
1432
1432
|
case "InternalException":
|
|
1433
1433
|
case "com.amazonaws.datasync#InternalException":
|
|
1434
|
-
throw await
|
|
1434
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1435
1435
|
case "InvalidRequestException":
|
|
1436
1436
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1437
|
-
throw await
|
|
1437
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1438
1438
|
default:
|
|
1439
1439
|
const parsedBody = parsedOutput.body;
|
|
1440
1440
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1445,21 +1445,21 @@ const deserializeAws_json1_1DescribeLocationSmbCommandError = async (output, con
|
|
|
1445
1445
|
});
|
|
1446
1446
|
}
|
|
1447
1447
|
};
|
|
1448
|
-
const
|
|
1448
|
+
const de_DescribeTaskCommand = async (output, context) => {
|
|
1449
1449
|
if (output.statusCode >= 300) {
|
|
1450
|
-
return
|
|
1450
|
+
return de_DescribeTaskCommandError(output, context);
|
|
1451
1451
|
}
|
|
1452
1452
|
const data = await parseBody(output.body, context);
|
|
1453
1453
|
let contents = {};
|
|
1454
|
-
contents =
|
|
1454
|
+
contents = de_DescribeTaskResponse(data, context);
|
|
1455
1455
|
const response = {
|
|
1456
1456
|
$metadata: deserializeMetadata(output),
|
|
1457
1457
|
...contents,
|
|
1458
1458
|
};
|
|
1459
1459
|
return Promise.resolve(response);
|
|
1460
1460
|
};
|
|
1461
|
-
exports.
|
|
1462
|
-
const
|
|
1461
|
+
exports.de_DescribeTaskCommand = de_DescribeTaskCommand;
|
|
1462
|
+
const de_DescribeTaskCommandError = async (output, context) => {
|
|
1463
1463
|
const parsedOutput = {
|
|
1464
1464
|
...output,
|
|
1465
1465
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1468,10 +1468,10 @@ const deserializeAws_json1_1DescribeTaskCommandError = async (output, context) =
|
|
|
1468
1468
|
switch (errorCode) {
|
|
1469
1469
|
case "InternalException":
|
|
1470
1470
|
case "com.amazonaws.datasync#InternalException":
|
|
1471
|
-
throw await
|
|
1471
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1472
1472
|
case "InvalidRequestException":
|
|
1473
1473
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1474
|
-
throw await
|
|
1474
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1475
1475
|
default:
|
|
1476
1476
|
const parsedBody = parsedOutput.body;
|
|
1477
1477
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1482,21 +1482,21 @@ const deserializeAws_json1_1DescribeTaskCommandError = async (output, context) =
|
|
|
1482
1482
|
});
|
|
1483
1483
|
}
|
|
1484
1484
|
};
|
|
1485
|
-
const
|
|
1485
|
+
const de_DescribeTaskExecutionCommand = async (output, context) => {
|
|
1486
1486
|
if (output.statusCode >= 300) {
|
|
1487
|
-
return
|
|
1487
|
+
return de_DescribeTaskExecutionCommandError(output, context);
|
|
1488
1488
|
}
|
|
1489
1489
|
const data = await parseBody(output.body, context);
|
|
1490
1490
|
let contents = {};
|
|
1491
|
-
contents =
|
|
1491
|
+
contents = de_DescribeTaskExecutionResponse(data, context);
|
|
1492
1492
|
const response = {
|
|
1493
1493
|
$metadata: deserializeMetadata(output),
|
|
1494
1494
|
...contents,
|
|
1495
1495
|
};
|
|
1496
1496
|
return Promise.resolve(response);
|
|
1497
1497
|
};
|
|
1498
|
-
exports.
|
|
1499
|
-
const
|
|
1498
|
+
exports.de_DescribeTaskExecutionCommand = de_DescribeTaskExecutionCommand;
|
|
1499
|
+
const de_DescribeTaskExecutionCommandError = async (output, context) => {
|
|
1500
1500
|
const parsedOutput = {
|
|
1501
1501
|
...output,
|
|
1502
1502
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1505,10 +1505,10 @@ const deserializeAws_json1_1DescribeTaskExecutionCommandError = async (output, c
|
|
|
1505
1505
|
switch (errorCode) {
|
|
1506
1506
|
case "InternalException":
|
|
1507
1507
|
case "com.amazonaws.datasync#InternalException":
|
|
1508
|
-
throw await
|
|
1508
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1509
1509
|
case "InvalidRequestException":
|
|
1510
1510
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1511
|
-
throw await
|
|
1511
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1512
1512
|
default:
|
|
1513
1513
|
const parsedBody = parsedOutput.body;
|
|
1514
1514
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1519,21 +1519,21 @@ const deserializeAws_json1_1DescribeTaskExecutionCommandError = async (output, c
|
|
|
1519
1519
|
});
|
|
1520
1520
|
}
|
|
1521
1521
|
};
|
|
1522
|
-
const
|
|
1522
|
+
const de_ListAgentsCommand = async (output, context) => {
|
|
1523
1523
|
if (output.statusCode >= 300) {
|
|
1524
|
-
return
|
|
1524
|
+
return de_ListAgentsCommandError(output, context);
|
|
1525
1525
|
}
|
|
1526
1526
|
const data = await parseBody(output.body, context);
|
|
1527
1527
|
let contents = {};
|
|
1528
|
-
contents =
|
|
1528
|
+
contents = de_ListAgentsResponse(data, context);
|
|
1529
1529
|
const response = {
|
|
1530
1530
|
$metadata: deserializeMetadata(output),
|
|
1531
1531
|
...contents,
|
|
1532
1532
|
};
|
|
1533
1533
|
return Promise.resolve(response);
|
|
1534
1534
|
};
|
|
1535
|
-
exports.
|
|
1536
|
-
const
|
|
1535
|
+
exports.de_ListAgentsCommand = de_ListAgentsCommand;
|
|
1536
|
+
const de_ListAgentsCommandError = async (output, context) => {
|
|
1537
1537
|
const parsedOutput = {
|
|
1538
1538
|
...output,
|
|
1539
1539
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1542,10 +1542,10 @@ const deserializeAws_json1_1ListAgentsCommandError = async (output, context) =>
|
|
|
1542
1542
|
switch (errorCode) {
|
|
1543
1543
|
case "InternalException":
|
|
1544
1544
|
case "com.amazonaws.datasync#InternalException":
|
|
1545
|
-
throw await
|
|
1545
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1546
1546
|
case "InvalidRequestException":
|
|
1547
1547
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1548
|
-
throw await
|
|
1548
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1549
1549
|
default:
|
|
1550
1550
|
const parsedBody = parsedOutput.body;
|
|
1551
1551
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1556,21 +1556,21 @@ const deserializeAws_json1_1ListAgentsCommandError = async (output, context) =>
|
|
|
1556
1556
|
});
|
|
1557
1557
|
}
|
|
1558
1558
|
};
|
|
1559
|
-
const
|
|
1559
|
+
const de_ListLocationsCommand = async (output, context) => {
|
|
1560
1560
|
if (output.statusCode >= 300) {
|
|
1561
|
-
return
|
|
1561
|
+
return de_ListLocationsCommandError(output, context);
|
|
1562
1562
|
}
|
|
1563
1563
|
const data = await parseBody(output.body, context);
|
|
1564
1564
|
let contents = {};
|
|
1565
|
-
contents =
|
|
1565
|
+
contents = de_ListLocationsResponse(data, context);
|
|
1566
1566
|
const response = {
|
|
1567
1567
|
$metadata: deserializeMetadata(output),
|
|
1568
1568
|
...contents,
|
|
1569
1569
|
};
|
|
1570
1570
|
return Promise.resolve(response);
|
|
1571
1571
|
};
|
|
1572
|
-
exports.
|
|
1573
|
-
const
|
|
1572
|
+
exports.de_ListLocationsCommand = de_ListLocationsCommand;
|
|
1573
|
+
const de_ListLocationsCommandError = async (output, context) => {
|
|
1574
1574
|
const parsedOutput = {
|
|
1575
1575
|
...output,
|
|
1576
1576
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1579,10 +1579,10 @@ const deserializeAws_json1_1ListLocationsCommandError = async (output, context)
|
|
|
1579
1579
|
switch (errorCode) {
|
|
1580
1580
|
case "InternalException":
|
|
1581
1581
|
case "com.amazonaws.datasync#InternalException":
|
|
1582
|
-
throw await
|
|
1582
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1583
1583
|
case "InvalidRequestException":
|
|
1584
1584
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1585
|
-
throw await
|
|
1585
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1586
1586
|
default:
|
|
1587
1587
|
const parsedBody = parsedOutput.body;
|
|
1588
1588
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1593,21 +1593,21 @@ const deserializeAws_json1_1ListLocationsCommandError = async (output, context)
|
|
|
1593
1593
|
});
|
|
1594
1594
|
}
|
|
1595
1595
|
};
|
|
1596
|
-
const
|
|
1596
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1597
1597
|
if (output.statusCode >= 300) {
|
|
1598
|
-
return
|
|
1598
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1599
1599
|
}
|
|
1600
1600
|
const data = await parseBody(output.body, context);
|
|
1601
1601
|
let contents = {};
|
|
1602
|
-
contents =
|
|
1602
|
+
contents = de_ListTagsForResourceResponse(data, context);
|
|
1603
1603
|
const response = {
|
|
1604
1604
|
$metadata: deserializeMetadata(output),
|
|
1605
1605
|
...contents,
|
|
1606
1606
|
};
|
|
1607
1607
|
return Promise.resolve(response);
|
|
1608
1608
|
};
|
|
1609
|
-
exports.
|
|
1610
|
-
const
|
|
1609
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1610
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1611
1611
|
const parsedOutput = {
|
|
1612
1612
|
...output,
|
|
1613
1613
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1616,10 +1616,10 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1616
1616
|
switch (errorCode) {
|
|
1617
1617
|
case "InternalException":
|
|
1618
1618
|
case "com.amazonaws.datasync#InternalException":
|
|
1619
|
-
throw await
|
|
1619
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1620
1620
|
case "InvalidRequestException":
|
|
1621
1621
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1622
|
-
throw await
|
|
1622
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1623
1623
|
default:
|
|
1624
1624
|
const parsedBody = parsedOutput.body;
|
|
1625
1625
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1630,21 +1630,21 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1630
1630
|
});
|
|
1631
1631
|
}
|
|
1632
1632
|
};
|
|
1633
|
-
const
|
|
1633
|
+
const de_ListTaskExecutionsCommand = async (output, context) => {
|
|
1634
1634
|
if (output.statusCode >= 300) {
|
|
1635
|
-
return
|
|
1635
|
+
return de_ListTaskExecutionsCommandError(output, context);
|
|
1636
1636
|
}
|
|
1637
1637
|
const data = await parseBody(output.body, context);
|
|
1638
1638
|
let contents = {};
|
|
1639
|
-
contents =
|
|
1639
|
+
contents = de_ListTaskExecutionsResponse(data, context);
|
|
1640
1640
|
const response = {
|
|
1641
1641
|
$metadata: deserializeMetadata(output),
|
|
1642
1642
|
...contents,
|
|
1643
1643
|
};
|
|
1644
1644
|
return Promise.resolve(response);
|
|
1645
1645
|
};
|
|
1646
|
-
exports.
|
|
1647
|
-
const
|
|
1646
|
+
exports.de_ListTaskExecutionsCommand = de_ListTaskExecutionsCommand;
|
|
1647
|
+
const de_ListTaskExecutionsCommandError = async (output, context) => {
|
|
1648
1648
|
const parsedOutput = {
|
|
1649
1649
|
...output,
|
|
1650
1650
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1653,10 +1653,10 @@ const deserializeAws_json1_1ListTaskExecutionsCommandError = async (output, cont
|
|
|
1653
1653
|
switch (errorCode) {
|
|
1654
1654
|
case "InternalException":
|
|
1655
1655
|
case "com.amazonaws.datasync#InternalException":
|
|
1656
|
-
throw await
|
|
1656
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1657
1657
|
case "InvalidRequestException":
|
|
1658
1658
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1659
|
-
throw await
|
|
1659
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1660
1660
|
default:
|
|
1661
1661
|
const parsedBody = parsedOutput.body;
|
|
1662
1662
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1667,21 +1667,21 @@ const deserializeAws_json1_1ListTaskExecutionsCommandError = async (output, cont
|
|
|
1667
1667
|
});
|
|
1668
1668
|
}
|
|
1669
1669
|
};
|
|
1670
|
-
const
|
|
1670
|
+
const de_ListTasksCommand = async (output, context) => {
|
|
1671
1671
|
if (output.statusCode >= 300) {
|
|
1672
|
-
return
|
|
1672
|
+
return de_ListTasksCommandError(output, context);
|
|
1673
1673
|
}
|
|
1674
1674
|
const data = await parseBody(output.body, context);
|
|
1675
1675
|
let contents = {};
|
|
1676
|
-
contents =
|
|
1676
|
+
contents = de_ListTasksResponse(data, context);
|
|
1677
1677
|
const response = {
|
|
1678
1678
|
$metadata: deserializeMetadata(output),
|
|
1679
1679
|
...contents,
|
|
1680
1680
|
};
|
|
1681
1681
|
return Promise.resolve(response);
|
|
1682
1682
|
};
|
|
1683
|
-
exports.
|
|
1684
|
-
const
|
|
1683
|
+
exports.de_ListTasksCommand = de_ListTasksCommand;
|
|
1684
|
+
const de_ListTasksCommandError = async (output, context) => {
|
|
1685
1685
|
const parsedOutput = {
|
|
1686
1686
|
...output,
|
|
1687
1687
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1690,10 +1690,10 @@ const deserializeAws_json1_1ListTasksCommandError = async (output, context) => {
|
|
|
1690
1690
|
switch (errorCode) {
|
|
1691
1691
|
case "InternalException":
|
|
1692
1692
|
case "com.amazonaws.datasync#InternalException":
|
|
1693
|
-
throw await
|
|
1693
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1694
1694
|
case "InvalidRequestException":
|
|
1695
1695
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1696
|
-
throw await
|
|
1696
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1697
1697
|
default:
|
|
1698
1698
|
const parsedBody = parsedOutput.body;
|
|
1699
1699
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1704,21 +1704,21 @@ const deserializeAws_json1_1ListTasksCommandError = async (output, context) => {
|
|
|
1704
1704
|
});
|
|
1705
1705
|
}
|
|
1706
1706
|
};
|
|
1707
|
-
const
|
|
1707
|
+
const de_StartTaskExecutionCommand = async (output, context) => {
|
|
1708
1708
|
if (output.statusCode >= 300) {
|
|
1709
|
-
return
|
|
1709
|
+
return de_StartTaskExecutionCommandError(output, context);
|
|
1710
1710
|
}
|
|
1711
1711
|
const data = await parseBody(output.body, context);
|
|
1712
1712
|
let contents = {};
|
|
1713
|
-
contents =
|
|
1713
|
+
contents = de_StartTaskExecutionResponse(data, context);
|
|
1714
1714
|
const response = {
|
|
1715
1715
|
$metadata: deserializeMetadata(output),
|
|
1716
1716
|
...contents,
|
|
1717
1717
|
};
|
|
1718
1718
|
return Promise.resolve(response);
|
|
1719
1719
|
};
|
|
1720
|
-
exports.
|
|
1721
|
-
const
|
|
1720
|
+
exports.de_StartTaskExecutionCommand = de_StartTaskExecutionCommand;
|
|
1721
|
+
const de_StartTaskExecutionCommandError = async (output, context) => {
|
|
1722
1722
|
const parsedOutput = {
|
|
1723
1723
|
...output,
|
|
1724
1724
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1727,10 +1727,10 @@ const deserializeAws_json1_1StartTaskExecutionCommandError = async (output, cont
|
|
|
1727
1727
|
switch (errorCode) {
|
|
1728
1728
|
case "InternalException":
|
|
1729
1729
|
case "com.amazonaws.datasync#InternalException":
|
|
1730
|
-
throw await
|
|
1730
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1731
1731
|
case "InvalidRequestException":
|
|
1732
1732
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1733
|
-
throw await
|
|
1733
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1734
1734
|
default:
|
|
1735
1735
|
const parsedBody = parsedOutput.body;
|
|
1736
1736
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1741,21 +1741,21 @@ const deserializeAws_json1_1StartTaskExecutionCommandError = async (output, cont
|
|
|
1741
1741
|
});
|
|
1742
1742
|
}
|
|
1743
1743
|
};
|
|
1744
|
-
const
|
|
1744
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
1745
1745
|
if (output.statusCode >= 300) {
|
|
1746
|
-
return
|
|
1746
|
+
return de_TagResourceCommandError(output, context);
|
|
1747
1747
|
}
|
|
1748
1748
|
const data = await parseBody(output.body, context);
|
|
1749
1749
|
let contents = {};
|
|
1750
|
-
contents =
|
|
1750
|
+
contents = de_TagResourceResponse(data, context);
|
|
1751
1751
|
const response = {
|
|
1752
1752
|
$metadata: deserializeMetadata(output),
|
|
1753
1753
|
...contents,
|
|
1754
1754
|
};
|
|
1755
1755
|
return Promise.resolve(response);
|
|
1756
1756
|
};
|
|
1757
|
-
exports.
|
|
1758
|
-
const
|
|
1757
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1758
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1759
1759
|
const parsedOutput = {
|
|
1760
1760
|
...output,
|
|
1761
1761
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1764,10 +1764,10 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1764
1764
|
switch (errorCode) {
|
|
1765
1765
|
case "InternalException":
|
|
1766
1766
|
case "com.amazonaws.datasync#InternalException":
|
|
1767
|
-
throw await
|
|
1767
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1768
1768
|
case "InvalidRequestException":
|
|
1769
1769
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1770
|
-
throw await
|
|
1770
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1771
1771
|
default:
|
|
1772
1772
|
const parsedBody = parsedOutput.body;
|
|
1773
1773
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1778,21 +1778,21 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1778
1778
|
});
|
|
1779
1779
|
}
|
|
1780
1780
|
};
|
|
1781
|
-
const
|
|
1781
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
1782
1782
|
if (output.statusCode >= 300) {
|
|
1783
|
-
return
|
|
1783
|
+
return de_UntagResourceCommandError(output, context);
|
|
1784
1784
|
}
|
|
1785
1785
|
const data = await parseBody(output.body, context);
|
|
1786
1786
|
let contents = {};
|
|
1787
|
-
contents =
|
|
1787
|
+
contents = de_UntagResourceResponse(data, context);
|
|
1788
1788
|
const response = {
|
|
1789
1789
|
$metadata: deserializeMetadata(output),
|
|
1790
1790
|
...contents,
|
|
1791
1791
|
};
|
|
1792
1792
|
return Promise.resolve(response);
|
|
1793
1793
|
};
|
|
1794
|
-
exports.
|
|
1795
|
-
const
|
|
1794
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1795
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1796
1796
|
const parsedOutput = {
|
|
1797
1797
|
...output,
|
|
1798
1798
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1801,10 +1801,10 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1801
1801
|
switch (errorCode) {
|
|
1802
1802
|
case "InternalException":
|
|
1803
1803
|
case "com.amazonaws.datasync#InternalException":
|
|
1804
|
-
throw await
|
|
1804
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1805
1805
|
case "InvalidRequestException":
|
|
1806
1806
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1807
|
-
throw await
|
|
1807
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1808
1808
|
default:
|
|
1809
1809
|
const parsedBody = parsedOutput.body;
|
|
1810
1810
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1815,21 +1815,21 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1815
1815
|
});
|
|
1816
1816
|
}
|
|
1817
1817
|
};
|
|
1818
|
-
const
|
|
1818
|
+
const de_UpdateAgentCommand = async (output, context) => {
|
|
1819
1819
|
if (output.statusCode >= 300) {
|
|
1820
|
-
return
|
|
1820
|
+
return de_UpdateAgentCommandError(output, context);
|
|
1821
1821
|
}
|
|
1822
1822
|
const data = await parseBody(output.body, context);
|
|
1823
1823
|
let contents = {};
|
|
1824
|
-
contents =
|
|
1824
|
+
contents = de_UpdateAgentResponse(data, context);
|
|
1825
1825
|
const response = {
|
|
1826
1826
|
$metadata: deserializeMetadata(output),
|
|
1827
1827
|
...contents,
|
|
1828
1828
|
};
|
|
1829
1829
|
return Promise.resolve(response);
|
|
1830
1830
|
};
|
|
1831
|
-
exports.
|
|
1832
|
-
const
|
|
1831
|
+
exports.de_UpdateAgentCommand = de_UpdateAgentCommand;
|
|
1832
|
+
const de_UpdateAgentCommandError = async (output, context) => {
|
|
1833
1833
|
const parsedOutput = {
|
|
1834
1834
|
...output,
|
|
1835
1835
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1838,10 +1838,10 @@ const deserializeAws_json1_1UpdateAgentCommandError = async (output, context) =>
|
|
|
1838
1838
|
switch (errorCode) {
|
|
1839
1839
|
case "InternalException":
|
|
1840
1840
|
case "com.amazonaws.datasync#InternalException":
|
|
1841
|
-
throw await
|
|
1841
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1842
1842
|
case "InvalidRequestException":
|
|
1843
1843
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1844
|
-
throw await
|
|
1844
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1845
1845
|
default:
|
|
1846
1846
|
const parsedBody = parsedOutput.body;
|
|
1847
1847
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1852,21 +1852,21 @@ const deserializeAws_json1_1UpdateAgentCommandError = async (output, context) =>
|
|
|
1852
1852
|
});
|
|
1853
1853
|
}
|
|
1854
1854
|
};
|
|
1855
|
-
const
|
|
1855
|
+
const de_UpdateLocationHdfsCommand = async (output, context) => {
|
|
1856
1856
|
if (output.statusCode >= 300) {
|
|
1857
|
-
return
|
|
1857
|
+
return de_UpdateLocationHdfsCommandError(output, context);
|
|
1858
1858
|
}
|
|
1859
1859
|
const data = await parseBody(output.body, context);
|
|
1860
1860
|
let contents = {};
|
|
1861
|
-
contents =
|
|
1861
|
+
contents = de_UpdateLocationHdfsResponse(data, context);
|
|
1862
1862
|
const response = {
|
|
1863
1863
|
$metadata: deserializeMetadata(output),
|
|
1864
1864
|
...contents,
|
|
1865
1865
|
};
|
|
1866
1866
|
return Promise.resolve(response);
|
|
1867
1867
|
};
|
|
1868
|
-
exports.
|
|
1869
|
-
const
|
|
1868
|
+
exports.de_UpdateLocationHdfsCommand = de_UpdateLocationHdfsCommand;
|
|
1869
|
+
const de_UpdateLocationHdfsCommandError = async (output, context) => {
|
|
1870
1870
|
const parsedOutput = {
|
|
1871
1871
|
...output,
|
|
1872
1872
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1875,10 +1875,10 @@ const deserializeAws_json1_1UpdateLocationHdfsCommandError = async (output, cont
|
|
|
1875
1875
|
switch (errorCode) {
|
|
1876
1876
|
case "InternalException":
|
|
1877
1877
|
case "com.amazonaws.datasync#InternalException":
|
|
1878
|
-
throw await
|
|
1878
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1879
1879
|
case "InvalidRequestException":
|
|
1880
1880
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1881
|
-
throw await
|
|
1881
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1882
1882
|
default:
|
|
1883
1883
|
const parsedBody = parsedOutput.body;
|
|
1884
1884
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1889,21 +1889,21 @@ const deserializeAws_json1_1UpdateLocationHdfsCommandError = async (output, cont
|
|
|
1889
1889
|
});
|
|
1890
1890
|
}
|
|
1891
1891
|
};
|
|
1892
|
-
const
|
|
1892
|
+
const de_UpdateLocationNfsCommand = async (output, context) => {
|
|
1893
1893
|
if (output.statusCode >= 300) {
|
|
1894
|
-
return
|
|
1894
|
+
return de_UpdateLocationNfsCommandError(output, context);
|
|
1895
1895
|
}
|
|
1896
1896
|
const data = await parseBody(output.body, context);
|
|
1897
1897
|
let contents = {};
|
|
1898
|
-
contents =
|
|
1898
|
+
contents = de_UpdateLocationNfsResponse(data, context);
|
|
1899
1899
|
const response = {
|
|
1900
1900
|
$metadata: deserializeMetadata(output),
|
|
1901
1901
|
...contents,
|
|
1902
1902
|
};
|
|
1903
1903
|
return Promise.resolve(response);
|
|
1904
1904
|
};
|
|
1905
|
-
exports.
|
|
1906
|
-
const
|
|
1905
|
+
exports.de_UpdateLocationNfsCommand = de_UpdateLocationNfsCommand;
|
|
1906
|
+
const de_UpdateLocationNfsCommandError = async (output, context) => {
|
|
1907
1907
|
const parsedOutput = {
|
|
1908
1908
|
...output,
|
|
1909
1909
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1912,10 +1912,10 @@ const deserializeAws_json1_1UpdateLocationNfsCommandError = async (output, conte
|
|
|
1912
1912
|
switch (errorCode) {
|
|
1913
1913
|
case "InternalException":
|
|
1914
1914
|
case "com.amazonaws.datasync#InternalException":
|
|
1915
|
-
throw await
|
|
1915
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1916
1916
|
case "InvalidRequestException":
|
|
1917
1917
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1918
|
-
throw await
|
|
1918
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1919
1919
|
default:
|
|
1920
1920
|
const parsedBody = parsedOutput.body;
|
|
1921
1921
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1926,21 +1926,21 @@ const deserializeAws_json1_1UpdateLocationNfsCommandError = async (output, conte
|
|
|
1926
1926
|
});
|
|
1927
1927
|
}
|
|
1928
1928
|
};
|
|
1929
|
-
const
|
|
1929
|
+
const de_UpdateLocationObjectStorageCommand = async (output, context) => {
|
|
1930
1930
|
if (output.statusCode >= 300) {
|
|
1931
|
-
return
|
|
1931
|
+
return de_UpdateLocationObjectStorageCommandError(output, context);
|
|
1932
1932
|
}
|
|
1933
1933
|
const data = await parseBody(output.body, context);
|
|
1934
1934
|
let contents = {};
|
|
1935
|
-
contents =
|
|
1935
|
+
contents = de_UpdateLocationObjectStorageResponse(data, context);
|
|
1936
1936
|
const response = {
|
|
1937
1937
|
$metadata: deserializeMetadata(output),
|
|
1938
1938
|
...contents,
|
|
1939
1939
|
};
|
|
1940
1940
|
return Promise.resolve(response);
|
|
1941
1941
|
};
|
|
1942
|
-
exports.
|
|
1943
|
-
const
|
|
1942
|
+
exports.de_UpdateLocationObjectStorageCommand = de_UpdateLocationObjectStorageCommand;
|
|
1943
|
+
const de_UpdateLocationObjectStorageCommandError = async (output, context) => {
|
|
1944
1944
|
const parsedOutput = {
|
|
1945
1945
|
...output,
|
|
1946
1946
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1949,10 +1949,10 @@ const deserializeAws_json1_1UpdateLocationObjectStorageCommandError = async (out
|
|
|
1949
1949
|
switch (errorCode) {
|
|
1950
1950
|
case "InternalException":
|
|
1951
1951
|
case "com.amazonaws.datasync#InternalException":
|
|
1952
|
-
throw await
|
|
1952
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1953
1953
|
case "InvalidRequestException":
|
|
1954
1954
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1955
|
-
throw await
|
|
1955
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1956
1956
|
default:
|
|
1957
1957
|
const parsedBody = parsedOutput.body;
|
|
1958
1958
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1963,21 +1963,21 @@ const deserializeAws_json1_1UpdateLocationObjectStorageCommandError = async (out
|
|
|
1963
1963
|
});
|
|
1964
1964
|
}
|
|
1965
1965
|
};
|
|
1966
|
-
const
|
|
1966
|
+
const de_UpdateLocationSmbCommand = async (output, context) => {
|
|
1967
1967
|
if (output.statusCode >= 300) {
|
|
1968
|
-
return
|
|
1968
|
+
return de_UpdateLocationSmbCommandError(output, context);
|
|
1969
1969
|
}
|
|
1970
1970
|
const data = await parseBody(output.body, context);
|
|
1971
1971
|
let contents = {};
|
|
1972
|
-
contents =
|
|
1972
|
+
contents = de_UpdateLocationSmbResponse(data, context);
|
|
1973
1973
|
const response = {
|
|
1974
1974
|
$metadata: deserializeMetadata(output),
|
|
1975
1975
|
...contents,
|
|
1976
1976
|
};
|
|
1977
1977
|
return Promise.resolve(response);
|
|
1978
1978
|
};
|
|
1979
|
-
exports.
|
|
1980
|
-
const
|
|
1979
|
+
exports.de_UpdateLocationSmbCommand = de_UpdateLocationSmbCommand;
|
|
1980
|
+
const de_UpdateLocationSmbCommandError = async (output, context) => {
|
|
1981
1981
|
const parsedOutput = {
|
|
1982
1982
|
...output,
|
|
1983
1983
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1986,10 +1986,10 @@ const deserializeAws_json1_1UpdateLocationSmbCommandError = async (output, conte
|
|
|
1986
1986
|
switch (errorCode) {
|
|
1987
1987
|
case "InternalException":
|
|
1988
1988
|
case "com.amazonaws.datasync#InternalException":
|
|
1989
|
-
throw await
|
|
1989
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1990
1990
|
case "InvalidRequestException":
|
|
1991
1991
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1992
|
-
throw await
|
|
1992
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1993
1993
|
default:
|
|
1994
1994
|
const parsedBody = parsedOutput.body;
|
|
1995
1995
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2000,21 +2000,21 @@ const deserializeAws_json1_1UpdateLocationSmbCommandError = async (output, conte
|
|
|
2000
2000
|
});
|
|
2001
2001
|
}
|
|
2002
2002
|
};
|
|
2003
|
-
const
|
|
2003
|
+
const de_UpdateTaskCommand = async (output, context) => {
|
|
2004
2004
|
if (output.statusCode >= 300) {
|
|
2005
|
-
return
|
|
2005
|
+
return de_UpdateTaskCommandError(output, context);
|
|
2006
2006
|
}
|
|
2007
2007
|
const data = await parseBody(output.body, context);
|
|
2008
2008
|
let contents = {};
|
|
2009
|
-
contents =
|
|
2009
|
+
contents = de_UpdateTaskResponse(data, context);
|
|
2010
2010
|
const response = {
|
|
2011
2011
|
$metadata: deserializeMetadata(output),
|
|
2012
2012
|
...contents,
|
|
2013
2013
|
};
|
|
2014
2014
|
return Promise.resolve(response);
|
|
2015
2015
|
};
|
|
2016
|
-
exports.
|
|
2017
|
-
const
|
|
2016
|
+
exports.de_UpdateTaskCommand = de_UpdateTaskCommand;
|
|
2017
|
+
const de_UpdateTaskCommandError = async (output, context) => {
|
|
2018
2018
|
const parsedOutput = {
|
|
2019
2019
|
...output,
|
|
2020
2020
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2023,10 +2023,10 @@ const deserializeAws_json1_1UpdateTaskCommandError = async (output, context) =>
|
|
|
2023
2023
|
switch (errorCode) {
|
|
2024
2024
|
case "InternalException":
|
|
2025
2025
|
case "com.amazonaws.datasync#InternalException":
|
|
2026
|
-
throw await
|
|
2026
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2027
2027
|
case "InvalidRequestException":
|
|
2028
2028
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
2029
|
-
throw await
|
|
2029
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2030
2030
|
default:
|
|
2031
2031
|
const parsedBody = parsedOutput.body;
|
|
2032
2032
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2037,21 +2037,21 @@ const deserializeAws_json1_1UpdateTaskCommandError = async (output, context) =>
|
|
|
2037
2037
|
});
|
|
2038
2038
|
}
|
|
2039
2039
|
};
|
|
2040
|
-
const
|
|
2040
|
+
const de_UpdateTaskExecutionCommand = async (output, context) => {
|
|
2041
2041
|
if (output.statusCode >= 300) {
|
|
2042
|
-
return
|
|
2042
|
+
return de_UpdateTaskExecutionCommandError(output, context);
|
|
2043
2043
|
}
|
|
2044
2044
|
const data = await parseBody(output.body, context);
|
|
2045
2045
|
let contents = {};
|
|
2046
|
-
contents =
|
|
2046
|
+
contents = de_UpdateTaskExecutionResponse(data, context);
|
|
2047
2047
|
const response = {
|
|
2048
2048
|
$metadata: deserializeMetadata(output),
|
|
2049
2049
|
...contents,
|
|
2050
2050
|
};
|
|
2051
2051
|
return Promise.resolve(response);
|
|
2052
2052
|
};
|
|
2053
|
-
exports.
|
|
2054
|
-
const
|
|
2053
|
+
exports.de_UpdateTaskExecutionCommand = de_UpdateTaskExecutionCommand;
|
|
2054
|
+
const de_UpdateTaskExecutionCommandError = async (output, context) => {
|
|
2055
2055
|
const parsedOutput = {
|
|
2056
2056
|
...output,
|
|
2057
2057
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2060,10 +2060,10 @@ const deserializeAws_json1_1UpdateTaskExecutionCommandError = async (output, con
|
|
|
2060
2060
|
switch (errorCode) {
|
|
2061
2061
|
case "InternalException":
|
|
2062
2062
|
case "com.amazonaws.datasync#InternalException":
|
|
2063
|
-
throw await
|
|
2063
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2064
2064
|
case "InvalidRequestException":
|
|
2065
2065
|
case "com.amazonaws.datasync#InvalidRequestException":
|
|
2066
|
-
throw await
|
|
2066
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2067
2067
|
default:
|
|
2068
2068
|
const parsedBody = parsedOutput.body;
|
|
2069
2069
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2074,138 +2074,134 @@ const deserializeAws_json1_1UpdateTaskExecutionCommandError = async (output, con
|
|
|
2074
2074
|
});
|
|
2075
2075
|
}
|
|
2076
2076
|
};
|
|
2077
|
-
const
|
|
2077
|
+
const de_InternalExceptionRes = async (parsedOutput, context) => {
|
|
2078
2078
|
const body = parsedOutput.body;
|
|
2079
|
-
const deserialized =
|
|
2079
|
+
const deserialized = de_InternalException(body, context);
|
|
2080
2080
|
const exception = new models_0_1.InternalException({
|
|
2081
2081
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2082
2082
|
...deserialized,
|
|
2083
2083
|
});
|
|
2084
2084
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2085
2085
|
};
|
|
2086
|
-
const
|
|
2086
|
+
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
2087
2087
|
const body = parsedOutput.body;
|
|
2088
|
-
const deserialized =
|
|
2088
|
+
const deserialized = de_InvalidRequestException(body, context);
|
|
2089
2089
|
const exception = new models_0_1.InvalidRequestException({
|
|
2090
2090
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2091
2091
|
...deserialized,
|
|
2092
2092
|
});
|
|
2093
2093
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2094
2094
|
};
|
|
2095
|
-
const
|
|
2095
|
+
const se_AgentArnList = (input, context) => {
|
|
2096
2096
|
return input
|
|
2097
2097
|
.filter((e) => e != null)
|
|
2098
2098
|
.map((entry) => {
|
|
2099
2099
|
return entry;
|
|
2100
2100
|
});
|
|
2101
2101
|
};
|
|
2102
|
-
const
|
|
2102
|
+
const se_CancelTaskExecutionRequest = (input, context) => {
|
|
2103
2103
|
return {
|
|
2104
2104
|
...(input.TaskExecutionArn != null && { TaskExecutionArn: input.TaskExecutionArn }),
|
|
2105
2105
|
};
|
|
2106
2106
|
};
|
|
2107
|
-
const
|
|
2107
|
+
const se_CreateAgentRequest = (input, context) => {
|
|
2108
2108
|
return {
|
|
2109
2109
|
...(input.ActivationKey != null && { ActivationKey: input.ActivationKey }),
|
|
2110
2110
|
...(input.AgentName != null && { AgentName: input.AgentName }),
|
|
2111
2111
|
...(input.SecurityGroupArns != null && {
|
|
2112
|
-
SecurityGroupArns:
|
|
2112
|
+
SecurityGroupArns: se_PLSecurityGroupArnList(input.SecurityGroupArns, context),
|
|
2113
2113
|
}),
|
|
2114
|
-
...(input.SubnetArns != null && { SubnetArns:
|
|
2115
|
-
...(input.Tags != null && { Tags:
|
|
2114
|
+
...(input.SubnetArns != null && { SubnetArns: se_PLSubnetArnList(input.SubnetArns, context) }),
|
|
2115
|
+
...(input.Tags != null && { Tags: se_InputTagList(input.Tags, context) }),
|
|
2116
2116
|
...(input.VpcEndpointId != null && { VpcEndpointId: input.VpcEndpointId }),
|
|
2117
2117
|
};
|
|
2118
2118
|
};
|
|
2119
|
-
const
|
|
2119
|
+
const se_CreateLocationEfsRequest = (input, context) => {
|
|
2120
2120
|
return {
|
|
2121
2121
|
...(input.AccessPointArn != null && { AccessPointArn: input.AccessPointArn }),
|
|
2122
|
-
...(input.Ec2Config != null && { Ec2Config:
|
|
2122
|
+
...(input.Ec2Config != null && { Ec2Config: se_Ec2Config(input.Ec2Config, context) }),
|
|
2123
2123
|
...(input.EfsFilesystemArn != null && { EfsFilesystemArn: input.EfsFilesystemArn }),
|
|
2124
2124
|
...(input.FileSystemAccessRoleArn != null && { FileSystemAccessRoleArn: input.FileSystemAccessRoleArn }),
|
|
2125
2125
|
...(input.InTransitEncryption != null && { InTransitEncryption: input.InTransitEncryption }),
|
|
2126
2126
|
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2127
|
-
...(input.Tags != null && { Tags:
|
|
2127
|
+
...(input.Tags != null && { Tags: se_InputTagList(input.Tags, context) }),
|
|
2128
2128
|
};
|
|
2129
2129
|
};
|
|
2130
|
-
const
|
|
2130
|
+
const se_CreateLocationFsxLustreRequest = (input, context) => {
|
|
2131
2131
|
return {
|
|
2132
2132
|
...(input.FsxFilesystemArn != null && { FsxFilesystemArn: input.FsxFilesystemArn }),
|
|
2133
2133
|
...(input.SecurityGroupArns != null && {
|
|
2134
|
-
SecurityGroupArns:
|
|
2134
|
+
SecurityGroupArns: se_Ec2SecurityGroupArnList(input.SecurityGroupArns, context),
|
|
2135
2135
|
}),
|
|
2136
2136
|
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2137
|
-
...(input.Tags != null && { Tags:
|
|
2137
|
+
...(input.Tags != null && { Tags: se_InputTagList(input.Tags, context) }),
|
|
2138
2138
|
};
|
|
2139
2139
|
};
|
|
2140
|
-
const
|
|
2140
|
+
const se_CreateLocationFsxOntapRequest = (input, context) => {
|
|
2141
2141
|
return {
|
|
2142
|
-
...(input.Protocol != null && { Protocol:
|
|
2142
|
+
...(input.Protocol != null && { Protocol: se_FsxProtocol(input.Protocol, context) }),
|
|
2143
2143
|
...(input.SecurityGroupArns != null && {
|
|
2144
|
-
SecurityGroupArns:
|
|
2144
|
+
SecurityGroupArns: se_Ec2SecurityGroupArnList(input.SecurityGroupArns, context),
|
|
2145
2145
|
}),
|
|
2146
2146
|
...(input.StorageVirtualMachineArn != null && { StorageVirtualMachineArn: input.StorageVirtualMachineArn }),
|
|
2147
2147
|
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2148
|
-
...(input.Tags != null && { Tags:
|
|
2148
|
+
...(input.Tags != null && { Tags: se_InputTagList(input.Tags, context) }),
|
|
2149
2149
|
};
|
|
2150
2150
|
};
|
|
2151
|
-
const
|
|
2151
|
+
const se_CreateLocationFsxOpenZfsRequest = (input, context) => {
|
|
2152
2152
|
return {
|
|
2153
2153
|
...(input.FsxFilesystemArn != null && { FsxFilesystemArn: input.FsxFilesystemArn }),
|
|
2154
|
-
...(input.Protocol != null && { Protocol:
|
|
2154
|
+
...(input.Protocol != null && { Protocol: se_FsxProtocol(input.Protocol, context) }),
|
|
2155
2155
|
...(input.SecurityGroupArns != null && {
|
|
2156
|
-
SecurityGroupArns:
|
|
2156
|
+
SecurityGroupArns: se_Ec2SecurityGroupArnList(input.SecurityGroupArns, context),
|
|
2157
2157
|
}),
|
|
2158
2158
|
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2159
|
-
...(input.Tags != null && { Tags:
|
|
2159
|
+
...(input.Tags != null && { Tags: se_InputTagList(input.Tags, context) }),
|
|
2160
2160
|
};
|
|
2161
2161
|
};
|
|
2162
|
-
const
|
|
2162
|
+
const se_CreateLocationFsxWindowsRequest = (input, context) => {
|
|
2163
2163
|
return {
|
|
2164
2164
|
...(input.Domain != null && { Domain: input.Domain }),
|
|
2165
2165
|
...(input.FsxFilesystemArn != null && { FsxFilesystemArn: input.FsxFilesystemArn }),
|
|
2166
2166
|
...(input.Password != null && { Password: input.Password }),
|
|
2167
2167
|
...(input.SecurityGroupArns != null && {
|
|
2168
|
-
SecurityGroupArns:
|
|
2168
|
+
SecurityGroupArns: se_Ec2SecurityGroupArnList(input.SecurityGroupArns, context),
|
|
2169
2169
|
}),
|
|
2170
2170
|
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2171
|
-
...(input.Tags != null && { Tags:
|
|
2171
|
+
...(input.Tags != null && { Tags: se_InputTagList(input.Tags, context) }),
|
|
2172
2172
|
...(input.User != null && { User: input.User }),
|
|
2173
2173
|
};
|
|
2174
2174
|
};
|
|
2175
|
-
const
|
|
2175
|
+
const se_CreateLocationHdfsRequest = (input, context) => {
|
|
2176
2176
|
return {
|
|
2177
|
-
...(input.AgentArns != null && { AgentArns:
|
|
2177
|
+
...(input.AgentArns != null && { AgentArns: se_AgentArnList(input.AgentArns, context) }),
|
|
2178
2178
|
...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
|
|
2179
2179
|
...(input.BlockSize != null && { BlockSize: input.BlockSize }),
|
|
2180
2180
|
...(input.KerberosKeytab != null && { KerberosKeytab: context.base64Encoder(input.KerberosKeytab) }),
|
|
2181
2181
|
...(input.KerberosKrb5Conf != null && { KerberosKrb5Conf: context.base64Encoder(input.KerberosKrb5Conf) }),
|
|
2182
2182
|
...(input.KerberosPrincipal != null && { KerberosPrincipal: input.KerberosPrincipal }),
|
|
2183
2183
|
...(input.KmsKeyProviderUri != null && { KmsKeyProviderUri: input.KmsKeyProviderUri }),
|
|
2184
|
-
...(input.NameNodes != null && { NameNodes:
|
|
2185
|
-
...(input.QopConfiguration != null && {
|
|
2186
|
-
QopConfiguration: serializeAws_json1_1QopConfiguration(input.QopConfiguration, context),
|
|
2187
|
-
}),
|
|
2184
|
+
...(input.NameNodes != null && { NameNodes: se_HdfsNameNodeList(input.NameNodes, context) }),
|
|
2185
|
+
...(input.QopConfiguration != null && { QopConfiguration: se_QopConfiguration(input.QopConfiguration, context) }),
|
|
2188
2186
|
...(input.ReplicationFactor != null && { ReplicationFactor: input.ReplicationFactor }),
|
|
2189
2187
|
...(input.SimpleUser != null && { SimpleUser: input.SimpleUser }),
|
|
2190
2188
|
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2191
|
-
...(input.Tags != null && { Tags:
|
|
2189
|
+
...(input.Tags != null && { Tags: se_InputTagList(input.Tags, context) }),
|
|
2192
2190
|
};
|
|
2193
2191
|
};
|
|
2194
|
-
const
|
|
2192
|
+
const se_CreateLocationNfsRequest = (input, context) => {
|
|
2195
2193
|
return {
|
|
2196
|
-
...(input.MountOptions != null && {
|
|
2197
|
-
|
|
2198
|
-
}),
|
|
2199
|
-
...(input.OnPremConfig != null && { OnPremConfig: serializeAws_json1_1OnPremConfig(input.OnPremConfig, context) }),
|
|
2194
|
+
...(input.MountOptions != null && { MountOptions: se_NfsMountOptions(input.MountOptions, context) }),
|
|
2195
|
+
...(input.OnPremConfig != null && { OnPremConfig: se_OnPremConfig(input.OnPremConfig, context) }),
|
|
2200
2196
|
...(input.ServerHostname != null && { ServerHostname: input.ServerHostname }),
|
|
2201
2197
|
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2202
|
-
...(input.Tags != null && { Tags:
|
|
2198
|
+
...(input.Tags != null && { Tags: se_InputTagList(input.Tags, context) }),
|
|
2203
2199
|
};
|
|
2204
2200
|
};
|
|
2205
|
-
const
|
|
2201
|
+
const se_CreateLocationObjectStorageRequest = (input, context) => {
|
|
2206
2202
|
return {
|
|
2207
2203
|
...(input.AccessKey != null && { AccessKey: input.AccessKey }),
|
|
2208
|
-
...(input.AgentArns != null && { AgentArns:
|
|
2204
|
+
...(input.AgentArns != null && { AgentArns: se_AgentArnList(input.AgentArns, context) }),
|
|
2209
2205
|
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
2210
2206
|
...(input.SecretKey != null && { SecretKey: input.SecretKey }),
|
|
2211
2207
|
...(input.ServerCertificate != null && { ServerCertificate: context.base64Encoder(input.ServerCertificate) }),
|
|
@@ -2213,263 +2209,257 @@ const serializeAws_json1_1CreateLocationObjectStorageRequest = (input, context)
|
|
|
2213
2209
|
...(input.ServerPort != null && { ServerPort: input.ServerPort }),
|
|
2214
2210
|
...(input.ServerProtocol != null && { ServerProtocol: input.ServerProtocol }),
|
|
2215
2211
|
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2216
|
-
...(input.Tags != null && { Tags:
|
|
2212
|
+
...(input.Tags != null && { Tags: se_InputTagList(input.Tags, context) }),
|
|
2217
2213
|
};
|
|
2218
2214
|
};
|
|
2219
|
-
const
|
|
2215
|
+
const se_CreateLocationS3Request = (input, context) => {
|
|
2220
2216
|
return {
|
|
2221
|
-
...(input.AgentArns != null && { AgentArns:
|
|
2217
|
+
...(input.AgentArns != null && { AgentArns: se_AgentArnList(input.AgentArns, context) }),
|
|
2222
2218
|
...(input.S3BucketArn != null && { S3BucketArn: input.S3BucketArn }),
|
|
2223
|
-
...(input.S3Config != null && { S3Config:
|
|
2219
|
+
...(input.S3Config != null && { S3Config: se_S3Config(input.S3Config, context) }),
|
|
2224
2220
|
...(input.S3StorageClass != null && { S3StorageClass: input.S3StorageClass }),
|
|
2225
2221
|
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2226
|
-
...(input.Tags != null && { Tags:
|
|
2222
|
+
...(input.Tags != null && { Tags: se_InputTagList(input.Tags, context) }),
|
|
2227
2223
|
};
|
|
2228
2224
|
};
|
|
2229
|
-
const
|
|
2225
|
+
const se_CreateLocationSmbRequest = (input, context) => {
|
|
2230
2226
|
return {
|
|
2231
|
-
...(input.AgentArns != null && { AgentArns:
|
|
2227
|
+
...(input.AgentArns != null && { AgentArns: se_AgentArnList(input.AgentArns, context) }),
|
|
2232
2228
|
...(input.Domain != null && { Domain: input.Domain }),
|
|
2233
|
-
...(input.MountOptions != null && {
|
|
2234
|
-
MountOptions: serializeAws_json1_1SmbMountOptions(input.MountOptions, context),
|
|
2235
|
-
}),
|
|
2229
|
+
...(input.MountOptions != null && { MountOptions: se_SmbMountOptions(input.MountOptions, context) }),
|
|
2236
2230
|
...(input.Password != null && { Password: input.Password }),
|
|
2237
2231
|
...(input.ServerHostname != null && { ServerHostname: input.ServerHostname }),
|
|
2238
2232
|
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2239
|
-
...(input.Tags != null && { Tags:
|
|
2233
|
+
...(input.Tags != null && { Tags: se_InputTagList(input.Tags, context) }),
|
|
2240
2234
|
...(input.User != null && { User: input.User }),
|
|
2241
2235
|
};
|
|
2242
2236
|
};
|
|
2243
|
-
const
|
|
2237
|
+
const se_CreateTaskRequest = (input, context) => {
|
|
2244
2238
|
return {
|
|
2245
2239
|
...(input.CloudWatchLogGroupArn != null && { CloudWatchLogGroupArn: input.CloudWatchLogGroupArn }),
|
|
2246
2240
|
...(input.DestinationLocationArn != null && { DestinationLocationArn: input.DestinationLocationArn }),
|
|
2247
|
-
...(input.Excludes != null && { Excludes:
|
|
2248
|
-
...(input.Includes != null && { Includes:
|
|
2241
|
+
...(input.Excludes != null && { Excludes: se_FilterList(input.Excludes, context) }),
|
|
2242
|
+
...(input.Includes != null && { Includes: se_FilterList(input.Includes, context) }),
|
|
2249
2243
|
...(input.Name != null && { Name: input.Name }),
|
|
2250
|
-
...(input.Options != null && { Options:
|
|
2251
|
-
...(input.Schedule != null && { Schedule:
|
|
2244
|
+
...(input.Options != null && { Options: se_Options(input.Options, context) }),
|
|
2245
|
+
...(input.Schedule != null && { Schedule: se_TaskSchedule(input.Schedule, context) }),
|
|
2252
2246
|
...(input.SourceLocationArn != null && { SourceLocationArn: input.SourceLocationArn }),
|
|
2253
|
-
...(input.Tags != null && { Tags:
|
|
2247
|
+
...(input.Tags != null && { Tags: se_InputTagList(input.Tags, context) }),
|
|
2254
2248
|
};
|
|
2255
2249
|
};
|
|
2256
|
-
const
|
|
2250
|
+
const se_DeleteAgentRequest = (input, context) => {
|
|
2257
2251
|
return {
|
|
2258
2252
|
...(input.AgentArn != null && { AgentArn: input.AgentArn }),
|
|
2259
2253
|
};
|
|
2260
2254
|
};
|
|
2261
|
-
const
|
|
2255
|
+
const se_DeleteLocationRequest = (input, context) => {
|
|
2262
2256
|
return {
|
|
2263
2257
|
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2264
2258
|
};
|
|
2265
2259
|
};
|
|
2266
|
-
const
|
|
2260
|
+
const se_DeleteTaskRequest = (input, context) => {
|
|
2267
2261
|
return {
|
|
2268
2262
|
...(input.TaskArn != null && { TaskArn: input.TaskArn }),
|
|
2269
2263
|
};
|
|
2270
2264
|
};
|
|
2271
|
-
const
|
|
2265
|
+
const se_DescribeAgentRequest = (input, context) => {
|
|
2272
2266
|
return {
|
|
2273
2267
|
...(input.AgentArn != null && { AgentArn: input.AgentArn }),
|
|
2274
2268
|
};
|
|
2275
2269
|
};
|
|
2276
|
-
const
|
|
2270
|
+
const se_DescribeLocationEfsRequest = (input, context) => {
|
|
2277
2271
|
return {
|
|
2278
2272
|
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2279
2273
|
};
|
|
2280
2274
|
};
|
|
2281
|
-
const
|
|
2275
|
+
const se_DescribeLocationFsxLustreRequest = (input, context) => {
|
|
2282
2276
|
return {
|
|
2283
2277
|
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2284
2278
|
};
|
|
2285
2279
|
};
|
|
2286
|
-
const
|
|
2280
|
+
const se_DescribeLocationFsxOntapRequest = (input, context) => {
|
|
2287
2281
|
return {
|
|
2288
2282
|
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2289
2283
|
};
|
|
2290
2284
|
};
|
|
2291
|
-
const
|
|
2285
|
+
const se_DescribeLocationFsxOpenZfsRequest = (input, context) => {
|
|
2292
2286
|
return {
|
|
2293
2287
|
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2294
2288
|
};
|
|
2295
2289
|
};
|
|
2296
|
-
const
|
|
2290
|
+
const se_DescribeLocationFsxWindowsRequest = (input, context) => {
|
|
2297
2291
|
return {
|
|
2298
2292
|
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2299
2293
|
};
|
|
2300
2294
|
};
|
|
2301
|
-
const
|
|
2295
|
+
const se_DescribeLocationHdfsRequest = (input, context) => {
|
|
2302
2296
|
return {
|
|
2303
2297
|
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2304
2298
|
};
|
|
2305
2299
|
};
|
|
2306
|
-
const
|
|
2300
|
+
const se_DescribeLocationNfsRequest = (input, context) => {
|
|
2307
2301
|
return {
|
|
2308
2302
|
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2309
2303
|
};
|
|
2310
2304
|
};
|
|
2311
|
-
const
|
|
2305
|
+
const se_DescribeLocationObjectStorageRequest = (input, context) => {
|
|
2312
2306
|
return {
|
|
2313
2307
|
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2314
2308
|
};
|
|
2315
2309
|
};
|
|
2316
|
-
const
|
|
2310
|
+
const se_DescribeLocationS3Request = (input, context) => {
|
|
2317
2311
|
return {
|
|
2318
2312
|
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2319
2313
|
};
|
|
2320
2314
|
};
|
|
2321
|
-
const
|
|
2315
|
+
const se_DescribeLocationSmbRequest = (input, context) => {
|
|
2322
2316
|
return {
|
|
2323
2317
|
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2324
2318
|
};
|
|
2325
2319
|
};
|
|
2326
|
-
const
|
|
2320
|
+
const se_DescribeTaskExecutionRequest = (input, context) => {
|
|
2327
2321
|
return {
|
|
2328
2322
|
...(input.TaskExecutionArn != null && { TaskExecutionArn: input.TaskExecutionArn }),
|
|
2329
2323
|
};
|
|
2330
2324
|
};
|
|
2331
|
-
const
|
|
2325
|
+
const se_DescribeTaskRequest = (input, context) => {
|
|
2332
2326
|
return {
|
|
2333
2327
|
...(input.TaskArn != null && { TaskArn: input.TaskArn }),
|
|
2334
2328
|
};
|
|
2335
2329
|
};
|
|
2336
|
-
const
|
|
2330
|
+
const se_Ec2Config = (input, context) => {
|
|
2337
2331
|
return {
|
|
2338
2332
|
...(input.SecurityGroupArns != null && {
|
|
2339
|
-
SecurityGroupArns:
|
|
2333
|
+
SecurityGroupArns: se_Ec2SecurityGroupArnList(input.SecurityGroupArns, context),
|
|
2340
2334
|
}),
|
|
2341
2335
|
...(input.SubnetArn != null && { SubnetArn: input.SubnetArn }),
|
|
2342
2336
|
};
|
|
2343
2337
|
};
|
|
2344
|
-
const
|
|
2338
|
+
const se_Ec2SecurityGroupArnList = (input, context) => {
|
|
2345
2339
|
return input
|
|
2346
2340
|
.filter((e) => e != null)
|
|
2347
2341
|
.map((entry) => {
|
|
2348
2342
|
return entry;
|
|
2349
2343
|
});
|
|
2350
2344
|
};
|
|
2351
|
-
const
|
|
2345
|
+
const se_FilterList = (input, context) => {
|
|
2352
2346
|
return input
|
|
2353
2347
|
.filter((e) => e != null)
|
|
2354
2348
|
.map((entry) => {
|
|
2355
|
-
return
|
|
2349
|
+
return se_FilterRule(entry, context);
|
|
2356
2350
|
});
|
|
2357
2351
|
};
|
|
2358
|
-
const
|
|
2352
|
+
const se_FilterRule = (input, context) => {
|
|
2359
2353
|
return {
|
|
2360
2354
|
...(input.FilterType != null && { FilterType: input.FilterType }),
|
|
2361
2355
|
...(input.Value != null && { Value: input.Value }),
|
|
2362
2356
|
};
|
|
2363
2357
|
};
|
|
2364
|
-
const
|
|
2358
|
+
const se_FilterValues = (input, context) => {
|
|
2365
2359
|
return input
|
|
2366
2360
|
.filter((e) => e != null)
|
|
2367
2361
|
.map((entry) => {
|
|
2368
2362
|
return entry;
|
|
2369
2363
|
});
|
|
2370
2364
|
};
|
|
2371
|
-
const
|
|
2365
|
+
const se_FsxProtocol = (input, context) => {
|
|
2372
2366
|
return {
|
|
2373
|
-
...(input.NFS != null && { NFS:
|
|
2374
|
-
...(input.SMB != null && { SMB:
|
|
2367
|
+
...(input.NFS != null && { NFS: se_FsxProtocolNfs(input.NFS, context) }),
|
|
2368
|
+
...(input.SMB != null && { SMB: se_FsxProtocolSmb(input.SMB, context) }),
|
|
2375
2369
|
};
|
|
2376
2370
|
};
|
|
2377
|
-
const
|
|
2371
|
+
const se_FsxProtocolNfs = (input, context) => {
|
|
2378
2372
|
return {
|
|
2379
|
-
...(input.MountOptions != null && {
|
|
2380
|
-
MountOptions: serializeAws_json1_1NfsMountOptions(input.MountOptions, context),
|
|
2381
|
-
}),
|
|
2373
|
+
...(input.MountOptions != null && { MountOptions: se_NfsMountOptions(input.MountOptions, context) }),
|
|
2382
2374
|
};
|
|
2383
2375
|
};
|
|
2384
|
-
const
|
|
2376
|
+
const se_FsxProtocolSmb = (input, context) => {
|
|
2385
2377
|
return {
|
|
2386
2378
|
...(input.Domain != null && { Domain: input.Domain }),
|
|
2387
|
-
...(input.MountOptions != null && {
|
|
2388
|
-
MountOptions: serializeAws_json1_1SmbMountOptions(input.MountOptions, context),
|
|
2389
|
-
}),
|
|
2379
|
+
...(input.MountOptions != null && { MountOptions: se_SmbMountOptions(input.MountOptions, context) }),
|
|
2390
2380
|
...(input.Password != null && { Password: input.Password }),
|
|
2391
2381
|
...(input.User != null && { User: input.User }),
|
|
2392
2382
|
};
|
|
2393
2383
|
};
|
|
2394
|
-
const
|
|
2384
|
+
const se_HdfsNameNode = (input, context) => {
|
|
2395
2385
|
return {
|
|
2396
2386
|
...(input.Hostname != null && { Hostname: input.Hostname }),
|
|
2397
2387
|
...(input.Port != null && { Port: input.Port }),
|
|
2398
2388
|
};
|
|
2399
2389
|
};
|
|
2400
|
-
const
|
|
2390
|
+
const se_HdfsNameNodeList = (input, context) => {
|
|
2401
2391
|
return input
|
|
2402
2392
|
.filter((e) => e != null)
|
|
2403
2393
|
.map((entry) => {
|
|
2404
|
-
return
|
|
2394
|
+
return se_HdfsNameNode(entry, context);
|
|
2405
2395
|
});
|
|
2406
2396
|
};
|
|
2407
|
-
const
|
|
2397
|
+
const se_InputTagList = (input, context) => {
|
|
2408
2398
|
return input
|
|
2409
2399
|
.filter((e) => e != null)
|
|
2410
2400
|
.map((entry) => {
|
|
2411
|
-
return
|
|
2401
|
+
return se_TagListEntry(entry, context);
|
|
2412
2402
|
});
|
|
2413
2403
|
};
|
|
2414
|
-
const
|
|
2404
|
+
const se_ListAgentsRequest = (input, context) => {
|
|
2415
2405
|
return {
|
|
2416
2406
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2417
2407
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2418
2408
|
};
|
|
2419
2409
|
};
|
|
2420
|
-
const
|
|
2410
|
+
const se_ListLocationsRequest = (input, context) => {
|
|
2421
2411
|
return {
|
|
2422
|
-
...(input.Filters != null && { Filters:
|
|
2412
|
+
...(input.Filters != null && { Filters: se_LocationFilters(input.Filters, context) }),
|
|
2423
2413
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2424
2414
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2425
2415
|
};
|
|
2426
2416
|
};
|
|
2427
|
-
const
|
|
2417
|
+
const se_ListTagsForResourceRequest = (input, context) => {
|
|
2428
2418
|
return {
|
|
2429
2419
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2430
2420
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2431
2421
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2432
2422
|
};
|
|
2433
2423
|
};
|
|
2434
|
-
const
|
|
2424
|
+
const se_ListTaskExecutionsRequest = (input, context) => {
|
|
2435
2425
|
return {
|
|
2436
2426
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2437
2427
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2438
2428
|
...(input.TaskArn != null && { TaskArn: input.TaskArn }),
|
|
2439
2429
|
};
|
|
2440
2430
|
};
|
|
2441
|
-
const
|
|
2431
|
+
const se_ListTasksRequest = (input, context) => {
|
|
2442
2432
|
return {
|
|
2443
|
-
...(input.Filters != null && { Filters:
|
|
2433
|
+
...(input.Filters != null && { Filters: se_TaskFilters(input.Filters, context) }),
|
|
2444
2434
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2445
2435
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2446
2436
|
};
|
|
2447
2437
|
};
|
|
2448
|
-
const
|
|
2438
|
+
const se_LocationFilter = (input, context) => {
|
|
2449
2439
|
return {
|
|
2450
2440
|
...(input.Name != null && { Name: input.Name }),
|
|
2451
2441
|
...(input.Operator != null && { Operator: input.Operator }),
|
|
2452
|
-
...(input.Values != null && { Values:
|
|
2442
|
+
...(input.Values != null && { Values: se_FilterValues(input.Values, context) }),
|
|
2453
2443
|
};
|
|
2454
2444
|
};
|
|
2455
|
-
const
|
|
2445
|
+
const se_LocationFilters = (input, context) => {
|
|
2456
2446
|
return input
|
|
2457
2447
|
.filter((e) => e != null)
|
|
2458
2448
|
.map((entry) => {
|
|
2459
|
-
return
|
|
2449
|
+
return se_LocationFilter(entry, context);
|
|
2460
2450
|
});
|
|
2461
2451
|
};
|
|
2462
|
-
const
|
|
2452
|
+
const se_NfsMountOptions = (input, context) => {
|
|
2463
2453
|
return {
|
|
2464
2454
|
...(input.Version != null && { Version: input.Version }),
|
|
2465
2455
|
};
|
|
2466
2456
|
};
|
|
2467
|
-
const
|
|
2457
|
+
const se_OnPremConfig = (input, context) => {
|
|
2468
2458
|
return {
|
|
2469
|
-
...(input.AgentArns != null && { AgentArns:
|
|
2459
|
+
...(input.AgentArns != null && { AgentArns: se_AgentArnList(input.AgentArns, context) }),
|
|
2470
2460
|
};
|
|
2471
2461
|
};
|
|
2472
|
-
const
|
|
2462
|
+
const se_Options = (input, context) => {
|
|
2473
2463
|
return {
|
|
2474
2464
|
...(input.Atime != null && { Atime: input.Atime }),
|
|
2475
2465
|
...(input.BytesPerSecond != null && { BytesPerSecond: input.BytesPerSecond }),
|
|
@@ -2490,100 +2480,98 @@ const serializeAws_json1_1Options = (input, context) => {
|
|
|
2490
2480
|
...(input.VerifyMode != null && { VerifyMode: input.VerifyMode }),
|
|
2491
2481
|
};
|
|
2492
2482
|
};
|
|
2493
|
-
const
|
|
2483
|
+
const se_PLSecurityGroupArnList = (input, context) => {
|
|
2494
2484
|
return input
|
|
2495
2485
|
.filter((e) => e != null)
|
|
2496
2486
|
.map((entry) => {
|
|
2497
2487
|
return entry;
|
|
2498
2488
|
});
|
|
2499
2489
|
};
|
|
2500
|
-
const
|
|
2490
|
+
const se_PLSubnetArnList = (input, context) => {
|
|
2501
2491
|
return input
|
|
2502
2492
|
.filter((e) => e != null)
|
|
2503
2493
|
.map((entry) => {
|
|
2504
2494
|
return entry;
|
|
2505
2495
|
});
|
|
2506
2496
|
};
|
|
2507
|
-
const
|
|
2497
|
+
const se_QopConfiguration = (input, context) => {
|
|
2508
2498
|
return {
|
|
2509
2499
|
...(input.DataTransferProtection != null && { DataTransferProtection: input.DataTransferProtection }),
|
|
2510
2500
|
...(input.RpcProtection != null && { RpcProtection: input.RpcProtection }),
|
|
2511
2501
|
};
|
|
2512
2502
|
};
|
|
2513
|
-
const
|
|
2503
|
+
const se_S3Config = (input, context) => {
|
|
2514
2504
|
return {
|
|
2515
2505
|
...(input.BucketAccessRoleArn != null && { BucketAccessRoleArn: input.BucketAccessRoleArn }),
|
|
2516
2506
|
};
|
|
2517
2507
|
};
|
|
2518
|
-
const
|
|
2508
|
+
const se_SmbMountOptions = (input, context) => {
|
|
2519
2509
|
return {
|
|
2520
2510
|
...(input.Version != null && { Version: input.Version }),
|
|
2521
2511
|
};
|
|
2522
2512
|
};
|
|
2523
|
-
const
|
|
2513
|
+
const se_StartTaskExecutionRequest = (input, context) => {
|
|
2524
2514
|
return {
|
|
2525
|
-
...(input.Excludes != null && { Excludes:
|
|
2526
|
-
...(input.Includes != null && { Includes:
|
|
2527
|
-
...(input.OverrideOptions != null && {
|
|
2528
|
-
|
|
2529
|
-
}),
|
|
2530
|
-
...(input.Tags != null && { Tags: serializeAws_json1_1InputTagList(input.Tags, context) }),
|
|
2515
|
+
...(input.Excludes != null && { Excludes: se_FilterList(input.Excludes, context) }),
|
|
2516
|
+
...(input.Includes != null && { Includes: se_FilterList(input.Includes, context) }),
|
|
2517
|
+
...(input.OverrideOptions != null && { OverrideOptions: se_Options(input.OverrideOptions, context) }),
|
|
2518
|
+
...(input.Tags != null && { Tags: se_InputTagList(input.Tags, context) }),
|
|
2531
2519
|
...(input.TaskArn != null && { TaskArn: input.TaskArn }),
|
|
2532
2520
|
};
|
|
2533
2521
|
};
|
|
2534
|
-
const
|
|
2522
|
+
const se_TagKeyList = (input, context) => {
|
|
2535
2523
|
return input
|
|
2536
2524
|
.filter((e) => e != null)
|
|
2537
2525
|
.map((entry) => {
|
|
2538
2526
|
return entry;
|
|
2539
2527
|
});
|
|
2540
2528
|
};
|
|
2541
|
-
const
|
|
2529
|
+
const se_TagListEntry = (input, context) => {
|
|
2542
2530
|
return {
|
|
2543
2531
|
...(input.Key != null && { Key: input.Key }),
|
|
2544
2532
|
...(input.Value != null && { Value: input.Value }),
|
|
2545
2533
|
};
|
|
2546
2534
|
};
|
|
2547
|
-
const
|
|
2535
|
+
const se_TagResourceRequest = (input, context) => {
|
|
2548
2536
|
return {
|
|
2549
2537
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2550
|
-
...(input.Tags != null && { Tags:
|
|
2538
|
+
...(input.Tags != null && { Tags: se_InputTagList(input.Tags, context) }),
|
|
2551
2539
|
};
|
|
2552
2540
|
};
|
|
2553
|
-
const
|
|
2541
|
+
const se_TaskFilter = (input, context) => {
|
|
2554
2542
|
return {
|
|
2555
2543
|
...(input.Name != null && { Name: input.Name }),
|
|
2556
2544
|
...(input.Operator != null && { Operator: input.Operator }),
|
|
2557
|
-
...(input.Values != null && { Values:
|
|
2545
|
+
...(input.Values != null && { Values: se_FilterValues(input.Values, context) }),
|
|
2558
2546
|
};
|
|
2559
2547
|
};
|
|
2560
|
-
const
|
|
2548
|
+
const se_TaskFilters = (input, context) => {
|
|
2561
2549
|
return input
|
|
2562
2550
|
.filter((e) => e != null)
|
|
2563
2551
|
.map((entry) => {
|
|
2564
|
-
return
|
|
2552
|
+
return se_TaskFilter(entry, context);
|
|
2565
2553
|
});
|
|
2566
2554
|
};
|
|
2567
|
-
const
|
|
2555
|
+
const se_TaskSchedule = (input, context) => {
|
|
2568
2556
|
return {
|
|
2569
2557
|
...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }),
|
|
2570
2558
|
};
|
|
2571
2559
|
};
|
|
2572
|
-
const
|
|
2560
|
+
const se_UntagResourceRequest = (input, context) => {
|
|
2573
2561
|
return {
|
|
2574
|
-
...(input.Keys != null && { Keys:
|
|
2562
|
+
...(input.Keys != null && { Keys: se_TagKeyList(input.Keys, context) }),
|
|
2575
2563
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2576
2564
|
};
|
|
2577
2565
|
};
|
|
2578
|
-
const
|
|
2566
|
+
const se_UpdateAgentRequest = (input, context) => {
|
|
2579
2567
|
return {
|
|
2580
2568
|
...(input.AgentArn != null && { AgentArn: input.AgentArn }),
|
|
2581
2569
|
...(input.Name != null && { Name: input.Name }),
|
|
2582
2570
|
};
|
|
2583
2571
|
};
|
|
2584
|
-
const
|
|
2572
|
+
const se_UpdateLocationHdfsRequest = (input, context) => {
|
|
2585
2573
|
return {
|
|
2586
|
-
...(input.AgentArns != null && { AgentArns:
|
|
2574
|
+
...(input.AgentArns != null && { AgentArns: se_AgentArnList(input.AgentArns, context) }),
|
|
2587
2575
|
...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
|
|
2588
2576
|
...(input.BlockSize != null && { BlockSize: input.BlockSize }),
|
|
2589
2577
|
...(input.KerberosKeytab != null && { KerberosKeytab: context.base64Encoder(input.KerberosKeytab) }),
|
|
@@ -2591,29 +2579,25 @@ const serializeAws_json1_1UpdateLocationHdfsRequest = (input, context) => {
|
|
|
2591
2579
|
...(input.KerberosPrincipal != null && { KerberosPrincipal: input.KerberosPrincipal }),
|
|
2592
2580
|
...(input.KmsKeyProviderUri != null && { KmsKeyProviderUri: input.KmsKeyProviderUri }),
|
|
2593
2581
|
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2594
|
-
...(input.NameNodes != null && { NameNodes:
|
|
2595
|
-
...(input.QopConfiguration != null && {
|
|
2596
|
-
QopConfiguration: serializeAws_json1_1QopConfiguration(input.QopConfiguration, context),
|
|
2597
|
-
}),
|
|
2582
|
+
...(input.NameNodes != null && { NameNodes: se_HdfsNameNodeList(input.NameNodes, context) }),
|
|
2583
|
+
...(input.QopConfiguration != null && { QopConfiguration: se_QopConfiguration(input.QopConfiguration, context) }),
|
|
2598
2584
|
...(input.ReplicationFactor != null && { ReplicationFactor: input.ReplicationFactor }),
|
|
2599
2585
|
...(input.SimpleUser != null && { SimpleUser: input.SimpleUser }),
|
|
2600
2586
|
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2601
2587
|
};
|
|
2602
2588
|
};
|
|
2603
|
-
const
|
|
2589
|
+
const se_UpdateLocationNfsRequest = (input, context) => {
|
|
2604
2590
|
return {
|
|
2605
2591
|
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2606
|
-
...(input.MountOptions != null && {
|
|
2607
|
-
|
|
2608
|
-
}),
|
|
2609
|
-
...(input.OnPremConfig != null && { OnPremConfig: serializeAws_json1_1OnPremConfig(input.OnPremConfig, context) }),
|
|
2592
|
+
...(input.MountOptions != null && { MountOptions: se_NfsMountOptions(input.MountOptions, context) }),
|
|
2593
|
+
...(input.OnPremConfig != null && { OnPremConfig: se_OnPremConfig(input.OnPremConfig, context) }),
|
|
2610
2594
|
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2611
2595
|
};
|
|
2612
2596
|
};
|
|
2613
|
-
const
|
|
2597
|
+
const se_UpdateLocationObjectStorageRequest = (input, context) => {
|
|
2614
2598
|
return {
|
|
2615
2599
|
...(input.AccessKey != null && { AccessKey: input.AccessKey }),
|
|
2616
|
-
...(input.AgentArns != null && { AgentArns:
|
|
2600
|
+
...(input.AgentArns != null && { AgentArns: se_AgentArnList(input.AgentArns, context) }),
|
|
2617
2601
|
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2618
2602
|
...(input.SecretKey != null && { SecretKey: input.SecretKey }),
|
|
2619
2603
|
...(input.ServerCertificate != null && { ServerCertificate: context.base64Encoder(input.ServerCertificate) }),
|
|
@@ -2622,37 +2606,35 @@ const serializeAws_json1_1UpdateLocationObjectStorageRequest = (input, context)
|
|
|
2622
2606
|
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2623
2607
|
};
|
|
2624
2608
|
};
|
|
2625
|
-
const
|
|
2609
|
+
const se_UpdateLocationSmbRequest = (input, context) => {
|
|
2626
2610
|
return {
|
|
2627
|
-
...(input.AgentArns != null && { AgentArns:
|
|
2611
|
+
...(input.AgentArns != null && { AgentArns: se_AgentArnList(input.AgentArns, context) }),
|
|
2628
2612
|
...(input.Domain != null && { Domain: input.Domain }),
|
|
2629
2613
|
...(input.LocationArn != null && { LocationArn: input.LocationArn }),
|
|
2630
|
-
...(input.MountOptions != null && {
|
|
2631
|
-
MountOptions: serializeAws_json1_1SmbMountOptions(input.MountOptions, context),
|
|
2632
|
-
}),
|
|
2614
|
+
...(input.MountOptions != null && { MountOptions: se_SmbMountOptions(input.MountOptions, context) }),
|
|
2633
2615
|
...(input.Password != null && { Password: input.Password }),
|
|
2634
2616
|
...(input.Subdirectory != null && { Subdirectory: input.Subdirectory }),
|
|
2635
2617
|
...(input.User != null && { User: input.User }),
|
|
2636
2618
|
};
|
|
2637
2619
|
};
|
|
2638
|
-
const
|
|
2620
|
+
const se_UpdateTaskExecutionRequest = (input, context) => {
|
|
2639
2621
|
return {
|
|
2640
|
-
...(input.Options != null && { Options:
|
|
2622
|
+
...(input.Options != null && { Options: se_Options(input.Options, context) }),
|
|
2641
2623
|
...(input.TaskExecutionArn != null && { TaskExecutionArn: input.TaskExecutionArn }),
|
|
2642
2624
|
};
|
|
2643
2625
|
};
|
|
2644
|
-
const
|
|
2626
|
+
const se_UpdateTaskRequest = (input, context) => {
|
|
2645
2627
|
return {
|
|
2646
2628
|
...(input.CloudWatchLogGroupArn != null && { CloudWatchLogGroupArn: input.CloudWatchLogGroupArn }),
|
|
2647
|
-
...(input.Excludes != null && { Excludes:
|
|
2648
|
-
...(input.Includes != null && { Includes:
|
|
2629
|
+
...(input.Excludes != null && { Excludes: se_FilterList(input.Excludes, context) }),
|
|
2630
|
+
...(input.Includes != null && { Includes: se_FilterList(input.Includes, context) }),
|
|
2649
2631
|
...(input.Name != null && { Name: input.Name }),
|
|
2650
|
-
...(input.Options != null && { Options:
|
|
2651
|
-
...(input.Schedule != null && { Schedule:
|
|
2632
|
+
...(input.Options != null && { Options: se_Options(input.Options, context) }),
|
|
2633
|
+
...(input.Schedule != null && { Schedule: se_TaskSchedule(input.Schedule, context) }),
|
|
2652
2634
|
...(input.TaskArn != null && { TaskArn: input.TaskArn }),
|
|
2653
2635
|
};
|
|
2654
2636
|
};
|
|
2655
|
-
const
|
|
2637
|
+
const de_AgentArnList = (output, context) => {
|
|
2656
2638
|
const retVal = (output || [])
|
|
2657
2639
|
.filter((e) => e != null)
|
|
2658
2640
|
.map((entry) => {
|
|
@@ -2663,97 +2645,97 @@ const deserializeAws_json1_1AgentArnList = (output, context) => {
|
|
|
2663
2645
|
});
|
|
2664
2646
|
return retVal;
|
|
2665
2647
|
};
|
|
2666
|
-
const
|
|
2648
|
+
const de_AgentList = (output, context) => {
|
|
2667
2649
|
const retVal = (output || [])
|
|
2668
2650
|
.filter((e) => e != null)
|
|
2669
2651
|
.map((entry) => {
|
|
2670
2652
|
if (entry === null) {
|
|
2671
2653
|
return null;
|
|
2672
2654
|
}
|
|
2673
|
-
return
|
|
2655
|
+
return de_AgentListEntry(entry, context);
|
|
2674
2656
|
});
|
|
2675
2657
|
return retVal;
|
|
2676
2658
|
};
|
|
2677
|
-
const
|
|
2659
|
+
const de_AgentListEntry = (output, context) => {
|
|
2678
2660
|
return {
|
|
2679
2661
|
AgentArn: (0, smithy_client_1.expectString)(output.AgentArn),
|
|
2680
2662
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2681
2663
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2682
2664
|
};
|
|
2683
2665
|
};
|
|
2684
|
-
const
|
|
2666
|
+
const de_CancelTaskExecutionResponse = (output, context) => {
|
|
2685
2667
|
return {};
|
|
2686
2668
|
};
|
|
2687
|
-
const
|
|
2669
|
+
const de_CreateAgentResponse = (output, context) => {
|
|
2688
2670
|
return {
|
|
2689
2671
|
AgentArn: (0, smithy_client_1.expectString)(output.AgentArn),
|
|
2690
2672
|
};
|
|
2691
2673
|
};
|
|
2692
|
-
const
|
|
2674
|
+
const de_CreateLocationEfsResponse = (output, context) => {
|
|
2693
2675
|
return {
|
|
2694
2676
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2695
2677
|
};
|
|
2696
2678
|
};
|
|
2697
|
-
const
|
|
2679
|
+
const de_CreateLocationFsxLustreResponse = (output, context) => {
|
|
2698
2680
|
return {
|
|
2699
2681
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2700
2682
|
};
|
|
2701
2683
|
};
|
|
2702
|
-
const
|
|
2684
|
+
const de_CreateLocationFsxOntapResponse = (output, context) => {
|
|
2703
2685
|
return {
|
|
2704
2686
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2705
2687
|
};
|
|
2706
2688
|
};
|
|
2707
|
-
const
|
|
2689
|
+
const de_CreateLocationFsxOpenZfsResponse = (output, context) => {
|
|
2708
2690
|
return {
|
|
2709
2691
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2710
2692
|
};
|
|
2711
2693
|
};
|
|
2712
|
-
const
|
|
2694
|
+
const de_CreateLocationFsxWindowsResponse = (output, context) => {
|
|
2713
2695
|
return {
|
|
2714
2696
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2715
2697
|
};
|
|
2716
2698
|
};
|
|
2717
|
-
const
|
|
2699
|
+
const de_CreateLocationHdfsResponse = (output, context) => {
|
|
2718
2700
|
return {
|
|
2719
2701
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2720
2702
|
};
|
|
2721
2703
|
};
|
|
2722
|
-
const
|
|
2704
|
+
const de_CreateLocationNfsResponse = (output, context) => {
|
|
2723
2705
|
return {
|
|
2724
2706
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2725
2707
|
};
|
|
2726
2708
|
};
|
|
2727
|
-
const
|
|
2709
|
+
const de_CreateLocationObjectStorageResponse = (output, context) => {
|
|
2728
2710
|
return {
|
|
2729
2711
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2730
2712
|
};
|
|
2731
2713
|
};
|
|
2732
|
-
const
|
|
2714
|
+
const de_CreateLocationS3Response = (output, context) => {
|
|
2733
2715
|
return {
|
|
2734
2716
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2735
2717
|
};
|
|
2736
2718
|
};
|
|
2737
|
-
const
|
|
2719
|
+
const de_CreateLocationSmbResponse = (output, context) => {
|
|
2738
2720
|
return {
|
|
2739
2721
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2740
2722
|
};
|
|
2741
2723
|
};
|
|
2742
|
-
const
|
|
2724
|
+
const de_CreateTaskResponse = (output, context) => {
|
|
2743
2725
|
return {
|
|
2744
2726
|
TaskArn: (0, smithy_client_1.expectString)(output.TaskArn),
|
|
2745
2727
|
};
|
|
2746
2728
|
};
|
|
2747
|
-
const
|
|
2729
|
+
const de_DeleteAgentResponse = (output, context) => {
|
|
2748
2730
|
return {};
|
|
2749
2731
|
};
|
|
2750
|
-
const
|
|
2732
|
+
const de_DeleteLocationResponse = (output, context) => {
|
|
2751
2733
|
return {};
|
|
2752
2734
|
};
|
|
2753
|
-
const
|
|
2735
|
+
const de_DeleteTaskResponse = (output, context) => {
|
|
2754
2736
|
return {};
|
|
2755
2737
|
};
|
|
2756
|
-
const
|
|
2738
|
+
const de_DescribeAgentResponse = (output, context) => {
|
|
2757
2739
|
return {
|
|
2758
2740
|
AgentArn: (0, smithy_client_1.expectString)(output.AgentArn),
|
|
2759
2741
|
CreationTime: output.CreationTime != null
|
|
@@ -2764,38 +2746,34 @@ const deserializeAws_json1_1DescribeAgentResponse = (output, context) => {
|
|
|
2764
2746
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastConnectionTime)))
|
|
2765
2747
|
: undefined,
|
|
2766
2748
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2767
|
-
PrivateLinkConfig: output.PrivateLinkConfig != null
|
|
2768
|
-
? deserializeAws_json1_1PrivateLinkConfig(output.PrivateLinkConfig, context)
|
|
2769
|
-
: undefined,
|
|
2749
|
+
PrivateLinkConfig: output.PrivateLinkConfig != null ? de_PrivateLinkConfig(output.PrivateLinkConfig, context) : undefined,
|
|
2770
2750
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2771
2751
|
};
|
|
2772
2752
|
};
|
|
2773
|
-
const
|
|
2753
|
+
const de_DescribeLocationEfsResponse = (output, context) => {
|
|
2774
2754
|
return {
|
|
2775
2755
|
AccessPointArn: (0, smithy_client_1.expectString)(output.AccessPointArn),
|
|
2776
2756
|
CreationTime: output.CreationTime != null
|
|
2777
2757
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
2778
2758
|
: undefined,
|
|
2779
|
-
Ec2Config: output.Ec2Config != null ?
|
|
2759
|
+
Ec2Config: output.Ec2Config != null ? de_Ec2Config(output.Ec2Config, context) : undefined,
|
|
2780
2760
|
FileSystemAccessRoleArn: (0, smithy_client_1.expectString)(output.FileSystemAccessRoleArn),
|
|
2781
2761
|
InTransitEncryption: (0, smithy_client_1.expectString)(output.InTransitEncryption),
|
|
2782
2762
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2783
2763
|
LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
|
|
2784
2764
|
};
|
|
2785
2765
|
};
|
|
2786
|
-
const
|
|
2766
|
+
const de_DescribeLocationFsxLustreResponse = (output, context) => {
|
|
2787
2767
|
return {
|
|
2788
2768
|
CreationTime: output.CreationTime != null
|
|
2789
2769
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
2790
2770
|
: undefined,
|
|
2791
2771
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2792
2772
|
LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
|
|
2793
|
-
SecurityGroupArns: output.SecurityGroupArns != null
|
|
2794
|
-
? deserializeAws_json1_1Ec2SecurityGroupArnList(output.SecurityGroupArns, context)
|
|
2795
|
-
: undefined,
|
|
2773
|
+
SecurityGroupArns: output.SecurityGroupArns != null ? de_Ec2SecurityGroupArnList(output.SecurityGroupArns, context) : undefined,
|
|
2796
2774
|
};
|
|
2797
2775
|
};
|
|
2798
|
-
const
|
|
2776
|
+
const de_DescribeLocationFsxOntapResponse = (output, context) => {
|
|
2799
2777
|
return {
|
|
2800
2778
|
CreationTime: output.CreationTime != null
|
|
2801
2779
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
@@ -2803,27 +2781,23 @@ const deserializeAws_json1_1DescribeLocationFsxOntapResponse = (output, context)
|
|
|
2803
2781
|
FsxFilesystemArn: (0, smithy_client_1.expectString)(output.FsxFilesystemArn),
|
|
2804
2782
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2805
2783
|
LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
|
|
2806
|
-
Protocol: output.Protocol != null ?
|
|
2807
|
-
SecurityGroupArns: output.SecurityGroupArns != null
|
|
2808
|
-
? deserializeAws_json1_1Ec2SecurityGroupArnList(output.SecurityGroupArns, context)
|
|
2809
|
-
: undefined,
|
|
2784
|
+
Protocol: output.Protocol != null ? de_FsxProtocol(output.Protocol, context) : undefined,
|
|
2785
|
+
SecurityGroupArns: output.SecurityGroupArns != null ? de_Ec2SecurityGroupArnList(output.SecurityGroupArns, context) : undefined,
|
|
2810
2786
|
StorageVirtualMachineArn: (0, smithy_client_1.expectString)(output.StorageVirtualMachineArn),
|
|
2811
2787
|
};
|
|
2812
2788
|
};
|
|
2813
|
-
const
|
|
2789
|
+
const de_DescribeLocationFsxOpenZfsResponse = (output, context) => {
|
|
2814
2790
|
return {
|
|
2815
2791
|
CreationTime: output.CreationTime != null
|
|
2816
2792
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
2817
2793
|
: undefined,
|
|
2818
2794
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2819
2795
|
LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
|
|
2820
|
-
Protocol: output.Protocol != null ?
|
|
2821
|
-
SecurityGroupArns: output.SecurityGroupArns != null
|
|
2822
|
-
? deserializeAws_json1_1Ec2SecurityGroupArnList(output.SecurityGroupArns, context)
|
|
2823
|
-
: undefined,
|
|
2796
|
+
Protocol: output.Protocol != null ? de_FsxProtocol(output.Protocol, context) : undefined,
|
|
2797
|
+
SecurityGroupArns: output.SecurityGroupArns != null ? de_Ec2SecurityGroupArnList(output.SecurityGroupArns, context) : undefined,
|
|
2824
2798
|
};
|
|
2825
2799
|
};
|
|
2826
|
-
const
|
|
2800
|
+
const de_DescribeLocationFsxWindowsResponse = (output, context) => {
|
|
2827
2801
|
return {
|
|
2828
2802
|
CreationTime: output.CreationTime != null
|
|
2829
2803
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
@@ -2831,15 +2805,13 @@ const deserializeAws_json1_1DescribeLocationFsxWindowsResponse = (output, contex
|
|
|
2831
2805
|
Domain: (0, smithy_client_1.expectString)(output.Domain),
|
|
2832
2806
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2833
2807
|
LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
|
|
2834
|
-
SecurityGroupArns: output.SecurityGroupArns != null
|
|
2835
|
-
? deserializeAws_json1_1Ec2SecurityGroupArnList(output.SecurityGroupArns, context)
|
|
2836
|
-
: undefined,
|
|
2808
|
+
SecurityGroupArns: output.SecurityGroupArns != null ? de_Ec2SecurityGroupArnList(output.SecurityGroupArns, context) : undefined,
|
|
2837
2809
|
User: (0, smithy_client_1.expectString)(output.User),
|
|
2838
2810
|
};
|
|
2839
2811
|
};
|
|
2840
|
-
const
|
|
2812
|
+
const de_DescribeLocationHdfsResponse = (output, context) => {
|
|
2841
2813
|
return {
|
|
2842
|
-
AgentArns: output.AgentArns != null ?
|
|
2814
|
+
AgentArns: output.AgentArns != null ? de_AgentArnList(output.AgentArns, context) : undefined,
|
|
2843
2815
|
AuthenticationType: (0, smithy_client_1.expectString)(output.AuthenticationType),
|
|
2844
2816
|
BlockSize: (0, smithy_client_1.expectInt32)(output.BlockSize),
|
|
2845
2817
|
CreationTime: output.CreationTime != null
|
|
@@ -2849,29 +2821,27 @@ const deserializeAws_json1_1DescribeLocationHdfsResponse = (output, context) =>
|
|
|
2849
2821
|
KmsKeyProviderUri: (0, smithy_client_1.expectString)(output.KmsKeyProviderUri),
|
|
2850
2822
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2851
2823
|
LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
|
|
2852
|
-
NameNodes: output.NameNodes != null ?
|
|
2853
|
-
QopConfiguration: output.QopConfiguration != null
|
|
2854
|
-
? deserializeAws_json1_1QopConfiguration(output.QopConfiguration, context)
|
|
2855
|
-
: undefined,
|
|
2824
|
+
NameNodes: output.NameNodes != null ? de_HdfsNameNodeList(output.NameNodes, context) : undefined,
|
|
2825
|
+
QopConfiguration: output.QopConfiguration != null ? de_QopConfiguration(output.QopConfiguration, context) : undefined,
|
|
2856
2826
|
ReplicationFactor: (0, smithy_client_1.expectInt32)(output.ReplicationFactor),
|
|
2857
2827
|
SimpleUser: (0, smithy_client_1.expectString)(output.SimpleUser),
|
|
2858
2828
|
};
|
|
2859
2829
|
};
|
|
2860
|
-
const
|
|
2830
|
+
const de_DescribeLocationNfsResponse = (output, context) => {
|
|
2861
2831
|
return {
|
|
2862
2832
|
CreationTime: output.CreationTime != null
|
|
2863
2833
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
2864
2834
|
: undefined,
|
|
2865
2835
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2866
2836
|
LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
|
|
2867
|
-
MountOptions: output.MountOptions != null ?
|
|
2868
|
-
OnPremConfig: output.OnPremConfig != null ?
|
|
2837
|
+
MountOptions: output.MountOptions != null ? de_NfsMountOptions(output.MountOptions, context) : undefined,
|
|
2838
|
+
OnPremConfig: output.OnPremConfig != null ? de_OnPremConfig(output.OnPremConfig, context) : undefined,
|
|
2869
2839
|
};
|
|
2870
2840
|
};
|
|
2871
|
-
const
|
|
2841
|
+
const de_DescribeLocationObjectStorageResponse = (output, context) => {
|
|
2872
2842
|
return {
|
|
2873
2843
|
AccessKey: (0, smithy_client_1.expectString)(output.AccessKey),
|
|
2874
|
-
AgentArns: output.AgentArns != null ?
|
|
2844
|
+
AgentArns: output.AgentArns != null ? de_AgentArnList(output.AgentArns, context) : undefined,
|
|
2875
2845
|
CreationTime: output.CreationTime != null
|
|
2876
2846
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
2877
2847
|
: undefined,
|
|
@@ -2882,49 +2852,49 @@ const deserializeAws_json1_1DescribeLocationObjectStorageResponse = (output, con
|
|
|
2882
2852
|
ServerProtocol: (0, smithy_client_1.expectString)(output.ServerProtocol),
|
|
2883
2853
|
};
|
|
2884
2854
|
};
|
|
2885
|
-
const
|
|
2855
|
+
const de_DescribeLocationS3Response = (output, context) => {
|
|
2886
2856
|
return {
|
|
2887
|
-
AgentArns: output.AgentArns != null ?
|
|
2857
|
+
AgentArns: output.AgentArns != null ? de_AgentArnList(output.AgentArns, context) : undefined,
|
|
2888
2858
|
CreationTime: output.CreationTime != null
|
|
2889
2859
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
2890
2860
|
: undefined,
|
|
2891
2861
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2892
2862
|
LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
|
|
2893
|
-
S3Config: output.S3Config != null ?
|
|
2863
|
+
S3Config: output.S3Config != null ? de_S3Config(output.S3Config, context) : undefined,
|
|
2894
2864
|
S3StorageClass: (0, smithy_client_1.expectString)(output.S3StorageClass),
|
|
2895
2865
|
};
|
|
2896
2866
|
};
|
|
2897
|
-
const
|
|
2867
|
+
const de_DescribeLocationSmbResponse = (output, context) => {
|
|
2898
2868
|
return {
|
|
2899
|
-
AgentArns: output.AgentArns != null ?
|
|
2869
|
+
AgentArns: output.AgentArns != null ? de_AgentArnList(output.AgentArns, context) : undefined,
|
|
2900
2870
|
CreationTime: output.CreationTime != null
|
|
2901
2871
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
2902
2872
|
: undefined,
|
|
2903
2873
|
Domain: (0, smithy_client_1.expectString)(output.Domain),
|
|
2904
2874
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
2905
2875
|
LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
|
|
2906
|
-
MountOptions: output.MountOptions != null ?
|
|
2876
|
+
MountOptions: output.MountOptions != null ? de_SmbMountOptions(output.MountOptions, context) : undefined,
|
|
2907
2877
|
User: (0, smithy_client_1.expectString)(output.User),
|
|
2908
2878
|
};
|
|
2909
2879
|
};
|
|
2910
|
-
const
|
|
2880
|
+
const de_DescribeTaskExecutionResponse = (output, context) => {
|
|
2911
2881
|
return {
|
|
2912
2882
|
BytesCompressed: (0, smithy_client_1.expectLong)(output.BytesCompressed),
|
|
2913
2883
|
BytesTransferred: (0, smithy_client_1.expectLong)(output.BytesTransferred),
|
|
2914
2884
|
BytesWritten: (0, smithy_client_1.expectLong)(output.BytesWritten),
|
|
2915
2885
|
EstimatedBytesToTransfer: (0, smithy_client_1.expectLong)(output.EstimatedBytesToTransfer),
|
|
2916
2886
|
EstimatedFilesToTransfer: (0, smithy_client_1.expectLong)(output.EstimatedFilesToTransfer),
|
|
2917
|
-
Excludes: output.Excludes != null ?
|
|
2887
|
+
Excludes: output.Excludes != null ? de_FilterList(output.Excludes, context) : undefined,
|
|
2918
2888
|
FilesTransferred: (0, smithy_client_1.expectLong)(output.FilesTransferred),
|
|
2919
|
-
Includes: output.Includes != null ?
|
|
2920
|
-
Options: output.Options != null ?
|
|
2921
|
-
Result: output.Result != null ?
|
|
2889
|
+
Includes: output.Includes != null ? de_FilterList(output.Includes, context) : undefined,
|
|
2890
|
+
Options: output.Options != null ? de_Options(output.Options, context) : undefined,
|
|
2891
|
+
Result: output.Result != null ? de_TaskExecutionResultDetail(output.Result, context) : undefined,
|
|
2922
2892
|
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
2923
2893
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2924
2894
|
TaskExecutionArn: (0, smithy_client_1.expectString)(output.TaskExecutionArn),
|
|
2925
2895
|
};
|
|
2926
2896
|
};
|
|
2927
|
-
const
|
|
2897
|
+
const de_DescribeTaskResponse = (output, context) => {
|
|
2928
2898
|
return {
|
|
2929
2899
|
CloudWatchLogGroupArn: (0, smithy_client_1.expectString)(output.CloudWatchLogGroupArn),
|
|
2930
2900
|
CreationTime: output.CreationTime != null
|
|
@@ -2933,24 +2903,24 @@ const deserializeAws_json1_1DescribeTaskResponse = (output, context) => {
|
|
|
2933
2903
|
CurrentTaskExecutionArn: (0, smithy_client_1.expectString)(output.CurrentTaskExecutionArn),
|
|
2934
2904
|
DestinationLocationArn: (0, smithy_client_1.expectString)(output.DestinationLocationArn),
|
|
2935
2905
|
DestinationNetworkInterfaceArns: output.DestinationNetworkInterfaceArns != null
|
|
2936
|
-
?
|
|
2906
|
+
? de_DestinationNetworkInterfaceArns(output.DestinationNetworkInterfaceArns, context)
|
|
2937
2907
|
: undefined,
|
|
2938
2908
|
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
2939
2909
|
ErrorDetail: (0, smithy_client_1.expectString)(output.ErrorDetail),
|
|
2940
|
-
Excludes: output.Excludes != null ?
|
|
2941
|
-
Includes: output.Includes != null ?
|
|
2910
|
+
Excludes: output.Excludes != null ? de_FilterList(output.Excludes, context) : undefined,
|
|
2911
|
+
Includes: output.Includes != null ? de_FilterList(output.Includes, context) : undefined,
|
|
2942
2912
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2943
|
-
Options: output.Options != null ?
|
|
2944
|
-
Schedule: output.Schedule != null ?
|
|
2913
|
+
Options: output.Options != null ? de_Options(output.Options, context) : undefined,
|
|
2914
|
+
Schedule: output.Schedule != null ? de_TaskSchedule(output.Schedule, context) : undefined,
|
|
2945
2915
|
SourceLocationArn: (0, smithy_client_1.expectString)(output.SourceLocationArn),
|
|
2946
2916
|
SourceNetworkInterfaceArns: output.SourceNetworkInterfaceArns != null
|
|
2947
|
-
?
|
|
2917
|
+
? de_SourceNetworkInterfaceArns(output.SourceNetworkInterfaceArns, context)
|
|
2948
2918
|
: undefined,
|
|
2949
2919
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2950
2920
|
TaskArn: (0, smithy_client_1.expectString)(output.TaskArn),
|
|
2951
2921
|
};
|
|
2952
2922
|
};
|
|
2953
|
-
const
|
|
2923
|
+
const de_DestinationNetworkInterfaceArns = (output, context) => {
|
|
2954
2924
|
const retVal = (output || [])
|
|
2955
2925
|
.filter((e) => e != null)
|
|
2956
2926
|
.map((entry) => {
|
|
@@ -2961,15 +2931,13 @@ const deserializeAws_json1_1DestinationNetworkInterfaceArns = (output, context)
|
|
|
2961
2931
|
});
|
|
2962
2932
|
return retVal;
|
|
2963
2933
|
};
|
|
2964
|
-
const
|
|
2934
|
+
const de_Ec2Config = (output, context) => {
|
|
2965
2935
|
return {
|
|
2966
|
-
SecurityGroupArns: output.SecurityGroupArns != null
|
|
2967
|
-
? deserializeAws_json1_1Ec2SecurityGroupArnList(output.SecurityGroupArns, context)
|
|
2968
|
-
: undefined,
|
|
2936
|
+
SecurityGroupArns: output.SecurityGroupArns != null ? de_Ec2SecurityGroupArnList(output.SecurityGroupArns, context) : undefined,
|
|
2969
2937
|
SubnetArn: (0, smithy_client_1.expectString)(output.SubnetArn),
|
|
2970
2938
|
};
|
|
2971
2939
|
};
|
|
2972
|
-
const
|
|
2940
|
+
const de_Ec2SecurityGroupArnList = (output, context) => {
|
|
2973
2941
|
const retVal = (output || [])
|
|
2974
2942
|
.filter((e) => e != null)
|
|
2975
2943
|
.map((entry) => {
|
|
@@ -2980,132 +2948,130 @@ const deserializeAws_json1_1Ec2SecurityGroupArnList = (output, context) => {
|
|
|
2980
2948
|
});
|
|
2981
2949
|
return retVal;
|
|
2982
2950
|
};
|
|
2983
|
-
const
|
|
2951
|
+
const de_FilterList = (output, context) => {
|
|
2984
2952
|
const retVal = (output || [])
|
|
2985
2953
|
.filter((e) => e != null)
|
|
2986
2954
|
.map((entry) => {
|
|
2987
2955
|
if (entry === null) {
|
|
2988
2956
|
return null;
|
|
2989
2957
|
}
|
|
2990
|
-
return
|
|
2958
|
+
return de_FilterRule(entry, context);
|
|
2991
2959
|
});
|
|
2992
2960
|
return retVal;
|
|
2993
2961
|
};
|
|
2994
|
-
const
|
|
2962
|
+
const de_FilterRule = (output, context) => {
|
|
2995
2963
|
return {
|
|
2996
2964
|
FilterType: (0, smithy_client_1.expectString)(output.FilterType),
|
|
2997
2965
|
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
2998
2966
|
};
|
|
2999
2967
|
};
|
|
3000
|
-
const
|
|
2968
|
+
const de_FsxProtocol = (output, context) => {
|
|
3001
2969
|
return {
|
|
3002
|
-
NFS: output.NFS != null ?
|
|
3003
|
-
SMB: output.SMB != null ?
|
|
2970
|
+
NFS: output.NFS != null ? de_FsxProtocolNfs(output.NFS, context) : undefined,
|
|
2971
|
+
SMB: output.SMB != null ? de_FsxProtocolSmb(output.SMB, context) : undefined,
|
|
3004
2972
|
};
|
|
3005
2973
|
};
|
|
3006
|
-
const
|
|
2974
|
+
const de_FsxProtocolNfs = (output, context) => {
|
|
3007
2975
|
return {
|
|
3008
|
-
MountOptions: output.MountOptions != null ?
|
|
2976
|
+
MountOptions: output.MountOptions != null ? de_NfsMountOptions(output.MountOptions, context) : undefined,
|
|
3009
2977
|
};
|
|
3010
2978
|
};
|
|
3011
|
-
const
|
|
2979
|
+
const de_FsxProtocolSmb = (output, context) => {
|
|
3012
2980
|
return {
|
|
3013
2981
|
Domain: (0, smithy_client_1.expectString)(output.Domain),
|
|
3014
|
-
MountOptions: output.MountOptions != null ?
|
|
2982
|
+
MountOptions: output.MountOptions != null ? de_SmbMountOptions(output.MountOptions, context) : undefined,
|
|
3015
2983
|
Password: (0, smithy_client_1.expectString)(output.Password),
|
|
3016
2984
|
User: (0, smithy_client_1.expectString)(output.User),
|
|
3017
2985
|
};
|
|
3018
2986
|
};
|
|
3019
|
-
const
|
|
2987
|
+
const de_HdfsNameNode = (output, context) => {
|
|
3020
2988
|
return {
|
|
3021
2989
|
Hostname: (0, smithy_client_1.expectString)(output.Hostname),
|
|
3022
2990
|
Port: (0, smithy_client_1.expectInt32)(output.Port),
|
|
3023
2991
|
};
|
|
3024
2992
|
};
|
|
3025
|
-
const
|
|
2993
|
+
const de_HdfsNameNodeList = (output, context) => {
|
|
3026
2994
|
const retVal = (output || [])
|
|
3027
2995
|
.filter((e) => e != null)
|
|
3028
2996
|
.map((entry) => {
|
|
3029
2997
|
if (entry === null) {
|
|
3030
2998
|
return null;
|
|
3031
2999
|
}
|
|
3032
|
-
return
|
|
3000
|
+
return de_HdfsNameNode(entry, context);
|
|
3033
3001
|
});
|
|
3034
3002
|
return retVal;
|
|
3035
3003
|
};
|
|
3036
|
-
const
|
|
3004
|
+
const de_InternalException = (output, context) => {
|
|
3037
3005
|
return {
|
|
3038
3006
|
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
3039
3007
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
3040
3008
|
};
|
|
3041
3009
|
};
|
|
3042
|
-
const
|
|
3010
|
+
const de_InvalidRequestException = (output, context) => {
|
|
3043
3011
|
return {
|
|
3044
3012
|
datasyncErrorCode: (0, smithy_client_1.expectString)(output.datasyncErrorCode),
|
|
3045
3013
|
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
3046
3014
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
3047
3015
|
};
|
|
3048
3016
|
};
|
|
3049
|
-
const
|
|
3017
|
+
const de_ListAgentsResponse = (output, context) => {
|
|
3050
3018
|
return {
|
|
3051
|
-
Agents: output.Agents != null ?
|
|
3019
|
+
Agents: output.Agents != null ? de_AgentList(output.Agents, context) : undefined,
|
|
3052
3020
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3053
3021
|
};
|
|
3054
3022
|
};
|
|
3055
|
-
const
|
|
3023
|
+
const de_ListLocationsResponse = (output, context) => {
|
|
3056
3024
|
return {
|
|
3057
|
-
Locations: output.Locations != null ?
|
|
3025
|
+
Locations: output.Locations != null ? de_LocationList(output.Locations, context) : undefined,
|
|
3058
3026
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3059
3027
|
};
|
|
3060
3028
|
};
|
|
3061
|
-
const
|
|
3029
|
+
const de_ListTagsForResourceResponse = (output, context) => {
|
|
3062
3030
|
return {
|
|
3063
3031
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3064
|
-
Tags: output.Tags != null ?
|
|
3032
|
+
Tags: output.Tags != null ? de_OutputTagList(output.Tags, context) : undefined,
|
|
3065
3033
|
};
|
|
3066
3034
|
};
|
|
3067
|
-
const
|
|
3035
|
+
const de_ListTaskExecutionsResponse = (output, context) => {
|
|
3068
3036
|
return {
|
|
3069
3037
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3070
|
-
TaskExecutions: output.TaskExecutions != null
|
|
3071
|
-
? deserializeAws_json1_1TaskExecutionList(output.TaskExecutions, context)
|
|
3072
|
-
: undefined,
|
|
3038
|
+
TaskExecutions: output.TaskExecutions != null ? de_TaskExecutionList(output.TaskExecutions, context) : undefined,
|
|
3073
3039
|
};
|
|
3074
3040
|
};
|
|
3075
|
-
const
|
|
3041
|
+
const de_ListTasksResponse = (output, context) => {
|
|
3076
3042
|
return {
|
|
3077
3043
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3078
|
-
Tasks: output.Tasks != null ?
|
|
3044
|
+
Tasks: output.Tasks != null ? de_TaskList(output.Tasks, context) : undefined,
|
|
3079
3045
|
};
|
|
3080
3046
|
};
|
|
3081
|
-
const
|
|
3047
|
+
const de_LocationList = (output, context) => {
|
|
3082
3048
|
const retVal = (output || [])
|
|
3083
3049
|
.filter((e) => e != null)
|
|
3084
3050
|
.map((entry) => {
|
|
3085
3051
|
if (entry === null) {
|
|
3086
3052
|
return null;
|
|
3087
3053
|
}
|
|
3088
|
-
return
|
|
3054
|
+
return de_LocationListEntry(entry, context);
|
|
3089
3055
|
});
|
|
3090
3056
|
return retVal;
|
|
3091
3057
|
};
|
|
3092
|
-
const
|
|
3058
|
+
const de_LocationListEntry = (output, context) => {
|
|
3093
3059
|
return {
|
|
3094
3060
|
LocationArn: (0, smithy_client_1.expectString)(output.LocationArn),
|
|
3095
3061
|
LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
|
|
3096
3062
|
};
|
|
3097
3063
|
};
|
|
3098
|
-
const
|
|
3064
|
+
const de_NfsMountOptions = (output, context) => {
|
|
3099
3065
|
return {
|
|
3100
3066
|
Version: (0, smithy_client_1.expectString)(output.Version),
|
|
3101
3067
|
};
|
|
3102
3068
|
};
|
|
3103
|
-
const
|
|
3069
|
+
const de_OnPremConfig = (output, context) => {
|
|
3104
3070
|
return {
|
|
3105
|
-
AgentArns: output.AgentArns != null ?
|
|
3071
|
+
AgentArns: output.AgentArns != null ? de_AgentArnList(output.AgentArns, context) : undefined,
|
|
3106
3072
|
};
|
|
3107
3073
|
};
|
|
3108
|
-
const
|
|
3074
|
+
const de_Options = (output, context) => {
|
|
3109
3075
|
return {
|
|
3110
3076
|
Atime: (0, smithy_client_1.expectString)(output.Atime),
|
|
3111
3077
|
BytesPerSecond: (0, smithy_client_1.expectLong)(output.BytesPerSecond),
|
|
@@ -3124,18 +3090,18 @@ const deserializeAws_json1_1Options = (output, context) => {
|
|
|
3124
3090
|
VerifyMode: (0, smithy_client_1.expectString)(output.VerifyMode),
|
|
3125
3091
|
};
|
|
3126
3092
|
};
|
|
3127
|
-
const
|
|
3093
|
+
const de_OutputTagList = (output, context) => {
|
|
3128
3094
|
const retVal = (output || [])
|
|
3129
3095
|
.filter((e) => e != null)
|
|
3130
3096
|
.map((entry) => {
|
|
3131
3097
|
if (entry === null) {
|
|
3132
3098
|
return null;
|
|
3133
3099
|
}
|
|
3134
|
-
return
|
|
3100
|
+
return de_TagListEntry(entry, context);
|
|
3135
3101
|
});
|
|
3136
3102
|
return retVal;
|
|
3137
3103
|
};
|
|
3138
|
-
const
|
|
3104
|
+
const de_PLSecurityGroupArnList = (output, context) => {
|
|
3139
3105
|
const retVal = (output || [])
|
|
3140
3106
|
.filter((e) => e != null)
|
|
3141
3107
|
.map((entry) => {
|
|
@@ -3146,7 +3112,7 @@ const deserializeAws_json1_1PLSecurityGroupArnList = (output, context) => {
|
|
|
3146
3112
|
});
|
|
3147
3113
|
return retVal;
|
|
3148
3114
|
};
|
|
3149
|
-
const
|
|
3115
|
+
const de_PLSubnetArnList = (output, context) => {
|
|
3150
3116
|
const retVal = (output || [])
|
|
3151
3117
|
.filter((e) => e != null)
|
|
3152
3118
|
.map((entry) => {
|
|
@@ -3157,33 +3123,31 @@ const deserializeAws_json1_1PLSubnetArnList = (output, context) => {
|
|
|
3157
3123
|
});
|
|
3158
3124
|
return retVal;
|
|
3159
3125
|
};
|
|
3160
|
-
const
|
|
3126
|
+
const de_PrivateLinkConfig = (output, context) => {
|
|
3161
3127
|
return {
|
|
3162
3128
|
PrivateLinkEndpoint: (0, smithy_client_1.expectString)(output.PrivateLinkEndpoint),
|
|
3163
|
-
SecurityGroupArns: output.SecurityGroupArns != null
|
|
3164
|
-
|
|
3165
|
-
: undefined,
|
|
3166
|
-
SubnetArns: output.SubnetArns != null ? deserializeAws_json1_1PLSubnetArnList(output.SubnetArns, context) : undefined,
|
|
3129
|
+
SecurityGroupArns: output.SecurityGroupArns != null ? de_PLSecurityGroupArnList(output.SecurityGroupArns, context) : undefined,
|
|
3130
|
+
SubnetArns: output.SubnetArns != null ? de_PLSubnetArnList(output.SubnetArns, context) : undefined,
|
|
3167
3131
|
VpcEndpointId: (0, smithy_client_1.expectString)(output.VpcEndpointId),
|
|
3168
3132
|
};
|
|
3169
3133
|
};
|
|
3170
|
-
const
|
|
3134
|
+
const de_QopConfiguration = (output, context) => {
|
|
3171
3135
|
return {
|
|
3172
3136
|
DataTransferProtection: (0, smithy_client_1.expectString)(output.DataTransferProtection),
|
|
3173
3137
|
RpcProtection: (0, smithy_client_1.expectString)(output.RpcProtection),
|
|
3174
3138
|
};
|
|
3175
3139
|
};
|
|
3176
|
-
const
|
|
3140
|
+
const de_S3Config = (output, context) => {
|
|
3177
3141
|
return {
|
|
3178
3142
|
BucketAccessRoleArn: (0, smithy_client_1.expectString)(output.BucketAccessRoleArn),
|
|
3179
3143
|
};
|
|
3180
3144
|
};
|
|
3181
|
-
const
|
|
3145
|
+
const de_SmbMountOptions = (output, context) => {
|
|
3182
3146
|
return {
|
|
3183
3147
|
Version: (0, smithy_client_1.expectString)(output.Version),
|
|
3184
3148
|
};
|
|
3185
3149
|
};
|
|
3186
|
-
const
|
|
3150
|
+
const de_SourceNetworkInterfaceArns = (output, context) => {
|
|
3187
3151
|
const retVal = (output || [])
|
|
3188
3152
|
.filter((e) => e != null)
|
|
3189
3153
|
.map((entry) => {
|
|
@@ -3194,38 +3158,38 @@ const deserializeAws_json1_1SourceNetworkInterfaceArns = (output, context) => {
|
|
|
3194
3158
|
});
|
|
3195
3159
|
return retVal;
|
|
3196
3160
|
};
|
|
3197
|
-
const
|
|
3161
|
+
const de_StartTaskExecutionResponse = (output, context) => {
|
|
3198
3162
|
return {
|
|
3199
3163
|
TaskExecutionArn: (0, smithy_client_1.expectString)(output.TaskExecutionArn),
|
|
3200
3164
|
};
|
|
3201
3165
|
};
|
|
3202
|
-
const
|
|
3166
|
+
const de_TagListEntry = (output, context) => {
|
|
3203
3167
|
return {
|
|
3204
3168
|
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
3205
3169
|
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
3206
3170
|
};
|
|
3207
3171
|
};
|
|
3208
|
-
const
|
|
3172
|
+
const de_TagResourceResponse = (output, context) => {
|
|
3209
3173
|
return {};
|
|
3210
3174
|
};
|
|
3211
|
-
const
|
|
3175
|
+
const de_TaskExecutionList = (output, context) => {
|
|
3212
3176
|
const retVal = (output || [])
|
|
3213
3177
|
.filter((e) => e != null)
|
|
3214
3178
|
.map((entry) => {
|
|
3215
3179
|
if (entry === null) {
|
|
3216
3180
|
return null;
|
|
3217
3181
|
}
|
|
3218
|
-
return
|
|
3182
|
+
return de_TaskExecutionListEntry(entry, context);
|
|
3219
3183
|
});
|
|
3220
3184
|
return retVal;
|
|
3221
3185
|
};
|
|
3222
|
-
const
|
|
3186
|
+
const de_TaskExecutionListEntry = (output, context) => {
|
|
3223
3187
|
return {
|
|
3224
3188
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3225
3189
|
TaskExecutionArn: (0, smithy_client_1.expectString)(output.TaskExecutionArn),
|
|
3226
3190
|
};
|
|
3227
3191
|
};
|
|
3228
|
-
const
|
|
3192
|
+
const de_TaskExecutionResultDetail = (output, context) => {
|
|
3229
3193
|
return {
|
|
3230
3194
|
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
3231
3195
|
ErrorDetail: (0, smithy_client_1.expectString)(output.ErrorDetail),
|
|
@@ -3238,51 +3202,51 @@ const deserializeAws_json1_1TaskExecutionResultDetail = (output, context) => {
|
|
|
3238
3202
|
VerifyStatus: (0, smithy_client_1.expectString)(output.VerifyStatus),
|
|
3239
3203
|
};
|
|
3240
3204
|
};
|
|
3241
|
-
const
|
|
3205
|
+
const de_TaskList = (output, context) => {
|
|
3242
3206
|
const retVal = (output || [])
|
|
3243
3207
|
.filter((e) => e != null)
|
|
3244
3208
|
.map((entry) => {
|
|
3245
3209
|
if (entry === null) {
|
|
3246
3210
|
return null;
|
|
3247
3211
|
}
|
|
3248
|
-
return
|
|
3212
|
+
return de_TaskListEntry(entry, context);
|
|
3249
3213
|
});
|
|
3250
3214
|
return retVal;
|
|
3251
3215
|
};
|
|
3252
|
-
const
|
|
3216
|
+
const de_TaskListEntry = (output, context) => {
|
|
3253
3217
|
return {
|
|
3254
3218
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3255
3219
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3256
3220
|
TaskArn: (0, smithy_client_1.expectString)(output.TaskArn),
|
|
3257
3221
|
};
|
|
3258
3222
|
};
|
|
3259
|
-
const
|
|
3223
|
+
const de_TaskSchedule = (output, context) => {
|
|
3260
3224
|
return {
|
|
3261
3225
|
ScheduleExpression: (0, smithy_client_1.expectString)(output.ScheduleExpression),
|
|
3262
3226
|
};
|
|
3263
3227
|
};
|
|
3264
|
-
const
|
|
3228
|
+
const de_UntagResourceResponse = (output, context) => {
|
|
3265
3229
|
return {};
|
|
3266
3230
|
};
|
|
3267
|
-
const
|
|
3231
|
+
const de_UpdateAgentResponse = (output, context) => {
|
|
3268
3232
|
return {};
|
|
3269
3233
|
};
|
|
3270
|
-
const
|
|
3234
|
+
const de_UpdateLocationHdfsResponse = (output, context) => {
|
|
3271
3235
|
return {};
|
|
3272
3236
|
};
|
|
3273
|
-
const
|
|
3237
|
+
const de_UpdateLocationNfsResponse = (output, context) => {
|
|
3274
3238
|
return {};
|
|
3275
3239
|
};
|
|
3276
|
-
const
|
|
3240
|
+
const de_UpdateLocationObjectStorageResponse = (output, context) => {
|
|
3277
3241
|
return {};
|
|
3278
3242
|
};
|
|
3279
|
-
const
|
|
3243
|
+
const de_UpdateLocationSmbResponse = (output, context) => {
|
|
3280
3244
|
return {};
|
|
3281
3245
|
};
|
|
3282
|
-
const
|
|
3246
|
+
const de_UpdateTaskExecutionResponse = (output, context) => {
|
|
3283
3247
|
return {};
|
|
3284
3248
|
};
|
|
3285
|
-
const
|
|
3249
|
+
const de_UpdateTaskResponse = (output, context) => {
|
|
3286
3250
|
return {};
|
|
3287
3251
|
};
|
|
3288
3252
|
const deserializeMetadata = (output) => ({
|