@aws-sdk/client-datasync 3.927.0 → 3.928.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/index.js +1537 -1851
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/DataSyncClient.js +2 -0
- package/dist-es/commands/CancelTaskExecutionCommand.js +3 -9
- package/dist-es/commands/CreateAgentCommand.js +3 -9
- package/dist-es/commands/CreateLocationAzureBlobCommand.js +3 -10
- package/dist-es/commands/CreateLocationEfsCommand.js +3 -9
- package/dist-es/commands/CreateLocationFsxLustreCommand.js +3 -9
- package/dist-es/commands/CreateLocationFsxOntapCommand.js +3 -10
- package/dist-es/commands/CreateLocationFsxOpenZfsCommand.js +3 -10
- package/dist-es/commands/CreateLocationFsxWindowsCommand.js +3 -10
- package/dist-es/commands/CreateLocationHdfsCommand.js +3 -9
- package/dist-es/commands/CreateLocationNfsCommand.js +3 -9
- package/dist-es/commands/CreateLocationObjectStorageCommand.js +3 -10
- package/dist-es/commands/CreateLocationS3Command.js +3 -9
- package/dist-es/commands/CreateLocationSmbCommand.js +3 -10
- package/dist-es/commands/CreateTaskCommand.js +3 -9
- package/dist-es/commands/DeleteAgentCommand.js +3 -9
- package/dist-es/commands/DeleteLocationCommand.js +3 -9
- package/dist-es/commands/DeleteTaskCommand.js +3 -9
- package/dist-es/commands/DescribeAgentCommand.js +3 -9
- package/dist-es/commands/DescribeLocationAzureBlobCommand.js +3 -9
- package/dist-es/commands/DescribeLocationEfsCommand.js +3 -9
- package/dist-es/commands/DescribeLocationFsxLustreCommand.js +3 -9
- package/dist-es/commands/DescribeLocationFsxOntapCommand.js +3 -10
- package/dist-es/commands/DescribeLocationFsxOpenZfsCommand.js +3 -10
- package/dist-es/commands/DescribeLocationFsxWindowsCommand.js +3 -9
- package/dist-es/commands/DescribeLocationHdfsCommand.js +3 -9
- package/dist-es/commands/DescribeLocationNfsCommand.js +3 -9
- package/dist-es/commands/DescribeLocationObjectStorageCommand.js +3 -9
- package/dist-es/commands/DescribeLocationS3Command.js +3 -9
- package/dist-es/commands/DescribeLocationSmbCommand.js +3 -9
- package/dist-es/commands/DescribeTaskCommand.js +3 -9
- package/dist-es/commands/DescribeTaskExecutionCommand.js +3 -9
- package/dist-es/commands/ListAgentsCommand.js +3 -9
- package/dist-es/commands/ListLocationsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ListTaskExecutionsCommand.js +3 -9
- package/dist-es/commands/ListTasksCommand.js +3 -9
- package/dist-es/commands/StartTaskExecutionCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateAgentCommand.js +3 -9
- package/dist-es/commands/UpdateLocationAzureBlobCommand.js +3 -10
- package/dist-es/commands/UpdateLocationEfsCommand.js +3 -9
- package/dist-es/commands/UpdateLocationFsxLustreCommand.js +3 -9
- package/dist-es/commands/UpdateLocationFsxOntapCommand.js +3 -10
- package/dist-es/commands/UpdateLocationFsxOpenZfsCommand.js +3 -10
- package/dist-es/commands/UpdateLocationFsxWindowsCommand.js +3 -10
- package/dist-es/commands/UpdateLocationHdfsCommand.js +3 -9
- package/dist-es/commands/UpdateLocationNfsCommand.js +3 -9
- package/dist-es/commands/UpdateLocationObjectStorageCommand.js +3 -10
- package/dist-es/commands/UpdateLocationS3Command.js +3 -9
- package/dist-es/commands/UpdateLocationSmbCommand.js +3 -10
- package/dist-es/commands/UpdateTaskCommand.js +3 -9
- package/dist-es/commands/UpdateTaskExecutionCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -77
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +1433 -0
- package/dist-types/DataSyncClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -76
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +227 -0
- package/dist-types/ts3.4/DataSyncClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -55
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +233 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_1.js +0 -1383
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -479
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -641
|
@@ -1,1383 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { DataSyncServiceException as __BaseException } from "../models/DataSyncServiceException";
|
|
5
|
-
import { InternalException, InvalidRequestException, } from "../models/models_0";
|
|
6
|
-
export const se_CancelTaskExecutionCommand = async (input, context) => {
|
|
7
|
-
const headers = sharedHeaders("CancelTaskExecution");
|
|
8
|
-
let body;
|
|
9
|
-
body = JSON.stringify(_json(input));
|
|
10
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
11
|
-
};
|
|
12
|
-
export const se_CreateAgentCommand = async (input, context) => {
|
|
13
|
-
const headers = sharedHeaders("CreateAgent");
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(_json(input));
|
|
16
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
|
-
};
|
|
18
|
-
export const se_CreateLocationAzureBlobCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("CreateLocationAzureBlob");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify(_json(input));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
export const se_CreateLocationEfsCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("CreateLocationEfs");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify(_json(input));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
export const se_CreateLocationFsxLustreCommand = async (input, context) => {
|
|
31
|
-
const headers = sharedHeaders("CreateLocationFsxLustre");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify(_json(input));
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
export const se_CreateLocationFsxOntapCommand = async (input, context) => {
|
|
37
|
-
const headers = sharedHeaders("CreateLocationFsxOntap");
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify(_json(input));
|
|
40
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
-
};
|
|
42
|
-
export const se_CreateLocationFsxOpenZfsCommand = async (input, context) => {
|
|
43
|
-
const headers = sharedHeaders("CreateLocationFsxOpenZfs");
|
|
44
|
-
let body;
|
|
45
|
-
body = JSON.stringify(_json(input));
|
|
46
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
|
-
};
|
|
48
|
-
export const se_CreateLocationFsxWindowsCommand = async (input, context) => {
|
|
49
|
-
const headers = sharedHeaders("CreateLocationFsxWindows");
|
|
50
|
-
let body;
|
|
51
|
-
body = JSON.stringify(_json(input));
|
|
52
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
|
-
};
|
|
54
|
-
export const se_CreateLocationHdfsCommand = async (input, context) => {
|
|
55
|
-
const headers = sharedHeaders("CreateLocationHdfs");
|
|
56
|
-
let body;
|
|
57
|
-
body = JSON.stringify(se_CreateLocationHdfsRequest(input, context));
|
|
58
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
-
};
|
|
60
|
-
export const se_CreateLocationNfsCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("CreateLocationNfs");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify(_json(input));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
export const se_CreateLocationObjectStorageCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("CreateLocationObjectStorage");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify(se_CreateLocationObjectStorageRequest(input, context));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
export const se_CreateLocationS3Command = async (input, context) => {
|
|
73
|
-
const headers = sharedHeaders("CreateLocationS3");
|
|
74
|
-
let body;
|
|
75
|
-
body = JSON.stringify(_json(input));
|
|
76
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
-
};
|
|
78
|
-
export const se_CreateLocationSmbCommand = async (input, context) => {
|
|
79
|
-
const headers = sharedHeaders("CreateLocationSmb");
|
|
80
|
-
let body;
|
|
81
|
-
body = JSON.stringify(se_CreateLocationSmbRequest(input, context));
|
|
82
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
|
-
};
|
|
84
|
-
export const se_CreateTaskCommand = async (input, context) => {
|
|
85
|
-
const headers = sharedHeaders("CreateTask");
|
|
86
|
-
let body;
|
|
87
|
-
body = JSON.stringify(_json(input));
|
|
88
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
|
-
};
|
|
90
|
-
export const se_DeleteAgentCommand = async (input, context) => {
|
|
91
|
-
const headers = sharedHeaders("DeleteAgent");
|
|
92
|
-
let body;
|
|
93
|
-
body = JSON.stringify(_json(input));
|
|
94
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
|
-
};
|
|
96
|
-
export const se_DeleteLocationCommand = async (input, context) => {
|
|
97
|
-
const headers = sharedHeaders("DeleteLocation");
|
|
98
|
-
let body;
|
|
99
|
-
body = JSON.stringify(_json(input));
|
|
100
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
|
-
};
|
|
102
|
-
export const se_DeleteTaskCommand = async (input, context) => {
|
|
103
|
-
const headers = sharedHeaders("DeleteTask");
|
|
104
|
-
let body;
|
|
105
|
-
body = JSON.stringify(_json(input));
|
|
106
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
-
};
|
|
108
|
-
export const se_DescribeAgentCommand = async (input, context) => {
|
|
109
|
-
const headers = sharedHeaders("DescribeAgent");
|
|
110
|
-
let body;
|
|
111
|
-
body = JSON.stringify(_json(input));
|
|
112
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
-
};
|
|
114
|
-
export const se_DescribeLocationAzureBlobCommand = async (input, context) => {
|
|
115
|
-
const headers = sharedHeaders("DescribeLocationAzureBlob");
|
|
116
|
-
let body;
|
|
117
|
-
body = JSON.stringify(_json(input));
|
|
118
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
|
-
};
|
|
120
|
-
export const se_DescribeLocationEfsCommand = async (input, context) => {
|
|
121
|
-
const headers = sharedHeaders("DescribeLocationEfs");
|
|
122
|
-
let body;
|
|
123
|
-
body = JSON.stringify(_json(input));
|
|
124
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
|
-
};
|
|
126
|
-
export const se_DescribeLocationFsxLustreCommand = async (input, context) => {
|
|
127
|
-
const headers = sharedHeaders("DescribeLocationFsxLustre");
|
|
128
|
-
let body;
|
|
129
|
-
body = JSON.stringify(_json(input));
|
|
130
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
|
-
};
|
|
132
|
-
export const se_DescribeLocationFsxOntapCommand = async (input, context) => {
|
|
133
|
-
const headers = sharedHeaders("DescribeLocationFsxOntap");
|
|
134
|
-
let body;
|
|
135
|
-
body = JSON.stringify(_json(input));
|
|
136
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
|
-
};
|
|
138
|
-
export const se_DescribeLocationFsxOpenZfsCommand = async (input, context) => {
|
|
139
|
-
const headers = sharedHeaders("DescribeLocationFsxOpenZfs");
|
|
140
|
-
let body;
|
|
141
|
-
body = JSON.stringify(_json(input));
|
|
142
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
143
|
-
};
|
|
144
|
-
export const se_DescribeLocationFsxWindowsCommand = async (input, context) => {
|
|
145
|
-
const headers = sharedHeaders("DescribeLocationFsxWindows");
|
|
146
|
-
let body;
|
|
147
|
-
body = JSON.stringify(_json(input));
|
|
148
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
|
-
};
|
|
150
|
-
export const se_DescribeLocationHdfsCommand = async (input, context) => {
|
|
151
|
-
const headers = sharedHeaders("DescribeLocationHdfs");
|
|
152
|
-
let body;
|
|
153
|
-
body = JSON.stringify(_json(input));
|
|
154
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
|
-
};
|
|
156
|
-
export const se_DescribeLocationNfsCommand = async (input, context) => {
|
|
157
|
-
const headers = sharedHeaders("DescribeLocationNfs");
|
|
158
|
-
let body;
|
|
159
|
-
body = JSON.stringify(_json(input));
|
|
160
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
161
|
-
};
|
|
162
|
-
export const se_DescribeLocationObjectStorageCommand = async (input, context) => {
|
|
163
|
-
const headers = sharedHeaders("DescribeLocationObjectStorage");
|
|
164
|
-
let body;
|
|
165
|
-
body = JSON.stringify(_json(input));
|
|
166
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
|
-
};
|
|
168
|
-
export const se_DescribeLocationS3Command = async (input, context) => {
|
|
169
|
-
const headers = sharedHeaders("DescribeLocationS3");
|
|
170
|
-
let body;
|
|
171
|
-
body = JSON.stringify(_json(input));
|
|
172
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
173
|
-
};
|
|
174
|
-
export const se_DescribeLocationSmbCommand = async (input, context) => {
|
|
175
|
-
const headers = sharedHeaders("DescribeLocationSmb");
|
|
176
|
-
let body;
|
|
177
|
-
body = JSON.stringify(_json(input));
|
|
178
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
179
|
-
};
|
|
180
|
-
export const se_DescribeTaskCommand = async (input, context) => {
|
|
181
|
-
const headers = sharedHeaders("DescribeTask");
|
|
182
|
-
let body;
|
|
183
|
-
body = JSON.stringify(_json(input));
|
|
184
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
|
-
};
|
|
186
|
-
export const se_DescribeTaskExecutionCommand = async (input, context) => {
|
|
187
|
-
const headers = sharedHeaders("DescribeTaskExecution");
|
|
188
|
-
let body;
|
|
189
|
-
body = JSON.stringify(_json(input));
|
|
190
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
191
|
-
};
|
|
192
|
-
export const se_ListAgentsCommand = async (input, context) => {
|
|
193
|
-
const headers = sharedHeaders("ListAgents");
|
|
194
|
-
let body;
|
|
195
|
-
body = JSON.stringify(_json(input));
|
|
196
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
|
-
};
|
|
198
|
-
export const se_ListLocationsCommand = async (input, context) => {
|
|
199
|
-
const headers = sharedHeaders("ListLocations");
|
|
200
|
-
let body;
|
|
201
|
-
body = JSON.stringify(_json(input));
|
|
202
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
|
-
};
|
|
204
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
205
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
206
|
-
let body;
|
|
207
|
-
body = JSON.stringify(_json(input));
|
|
208
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
209
|
-
};
|
|
210
|
-
export const se_ListTaskExecutionsCommand = async (input, context) => {
|
|
211
|
-
const headers = sharedHeaders("ListTaskExecutions");
|
|
212
|
-
let body;
|
|
213
|
-
body = JSON.stringify(_json(input));
|
|
214
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
215
|
-
};
|
|
216
|
-
export const se_ListTasksCommand = async (input, context) => {
|
|
217
|
-
const headers = sharedHeaders("ListTasks");
|
|
218
|
-
let body;
|
|
219
|
-
body = JSON.stringify(_json(input));
|
|
220
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
221
|
-
};
|
|
222
|
-
export const se_StartTaskExecutionCommand = async (input, context) => {
|
|
223
|
-
const headers = sharedHeaders("StartTaskExecution");
|
|
224
|
-
let body;
|
|
225
|
-
body = JSON.stringify(_json(input));
|
|
226
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
|
-
};
|
|
228
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
229
|
-
const headers = sharedHeaders("TagResource");
|
|
230
|
-
let body;
|
|
231
|
-
body = JSON.stringify(_json(input));
|
|
232
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
233
|
-
};
|
|
234
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
235
|
-
const headers = sharedHeaders("UntagResource");
|
|
236
|
-
let body;
|
|
237
|
-
body = JSON.stringify(_json(input));
|
|
238
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
239
|
-
};
|
|
240
|
-
export const se_UpdateAgentCommand = async (input, context) => {
|
|
241
|
-
const headers = sharedHeaders("UpdateAgent");
|
|
242
|
-
let body;
|
|
243
|
-
body = JSON.stringify(_json(input));
|
|
244
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
245
|
-
};
|
|
246
|
-
export const se_UpdateLocationAzureBlobCommand = async (input, context) => {
|
|
247
|
-
const headers = sharedHeaders("UpdateLocationAzureBlob");
|
|
248
|
-
let body;
|
|
249
|
-
body = JSON.stringify(_json(input));
|
|
250
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
251
|
-
};
|
|
252
|
-
export const se_UpdateLocationEfsCommand = async (input, context) => {
|
|
253
|
-
const headers = sharedHeaders("UpdateLocationEfs");
|
|
254
|
-
let body;
|
|
255
|
-
body = JSON.stringify(_json(input));
|
|
256
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
|
-
};
|
|
258
|
-
export const se_UpdateLocationFsxLustreCommand = async (input, context) => {
|
|
259
|
-
const headers = sharedHeaders("UpdateLocationFsxLustre");
|
|
260
|
-
let body;
|
|
261
|
-
body = JSON.stringify(_json(input));
|
|
262
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
263
|
-
};
|
|
264
|
-
export const se_UpdateLocationFsxOntapCommand = async (input, context) => {
|
|
265
|
-
const headers = sharedHeaders("UpdateLocationFsxOntap");
|
|
266
|
-
let body;
|
|
267
|
-
body = JSON.stringify(_json(input));
|
|
268
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
269
|
-
};
|
|
270
|
-
export const se_UpdateLocationFsxOpenZfsCommand = async (input, context) => {
|
|
271
|
-
const headers = sharedHeaders("UpdateLocationFsxOpenZfs");
|
|
272
|
-
let body;
|
|
273
|
-
body = JSON.stringify(_json(input));
|
|
274
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
275
|
-
};
|
|
276
|
-
export const se_UpdateLocationFsxWindowsCommand = async (input, context) => {
|
|
277
|
-
const headers = sharedHeaders("UpdateLocationFsxWindows");
|
|
278
|
-
let body;
|
|
279
|
-
body = JSON.stringify(_json(input));
|
|
280
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
281
|
-
};
|
|
282
|
-
export const se_UpdateLocationHdfsCommand = async (input, context) => {
|
|
283
|
-
const headers = sharedHeaders("UpdateLocationHdfs");
|
|
284
|
-
let body;
|
|
285
|
-
body = JSON.stringify(se_UpdateLocationHdfsRequest(input, context));
|
|
286
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
|
-
};
|
|
288
|
-
export const se_UpdateLocationNfsCommand = async (input, context) => {
|
|
289
|
-
const headers = sharedHeaders("UpdateLocationNfs");
|
|
290
|
-
let body;
|
|
291
|
-
body = JSON.stringify(_json(input));
|
|
292
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
293
|
-
};
|
|
294
|
-
export const se_UpdateLocationObjectStorageCommand = async (input, context) => {
|
|
295
|
-
const headers = sharedHeaders("UpdateLocationObjectStorage");
|
|
296
|
-
let body;
|
|
297
|
-
body = JSON.stringify(se_UpdateLocationObjectStorageRequest(input, context));
|
|
298
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
299
|
-
};
|
|
300
|
-
export const se_UpdateLocationS3Command = async (input, context) => {
|
|
301
|
-
const headers = sharedHeaders("UpdateLocationS3");
|
|
302
|
-
let body;
|
|
303
|
-
body = JSON.stringify(_json(input));
|
|
304
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
305
|
-
};
|
|
306
|
-
export const se_UpdateLocationSmbCommand = async (input, context) => {
|
|
307
|
-
const headers = sharedHeaders("UpdateLocationSmb");
|
|
308
|
-
let body;
|
|
309
|
-
body = JSON.stringify(se_UpdateLocationSmbRequest(input, context));
|
|
310
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
311
|
-
};
|
|
312
|
-
export const se_UpdateTaskCommand = async (input, context) => {
|
|
313
|
-
const headers = sharedHeaders("UpdateTask");
|
|
314
|
-
let body;
|
|
315
|
-
body = JSON.stringify(_json(input));
|
|
316
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
|
-
};
|
|
318
|
-
export const se_UpdateTaskExecutionCommand = async (input, context) => {
|
|
319
|
-
const headers = sharedHeaders("UpdateTaskExecution");
|
|
320
|
-
let body;
|
|
321
|
-
body = JSON.stringify(_json(input));
|
|
322
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
323
|
-
};
|
|
324
|
-
export const de_CancelTaskExecutionCommand = async (output, context) => {
|
|
325
|
-
if (output.statusCode >= 300) {
|
|
326
|
-
return de_CommandError(output, context);
|
|
327
|
-
}
|
|
328
|
-
const data = await parseBody(output.body, context);
|
|
329
|
-
let contents = {};
|
|
330
|
-
contents = _json(data);
|
|
331
|
-
const response = {
|
|
332
|
-
$metadata: deserializeMetadata(output),
|
|
333
|
-
...contents,
|
|
334
|
-
};
|
|
335
|
-
return response;
|
|
336
|
-
};
|
|
337
|
-
export const de_CreateAgentCommand = async (output, context) => {
|
|
338
|
-
if (output.statusCode >= 300) {
|
|
339
|
-
return de_CommandError(output, context);
|
|
340
|
-
}
|
|
341
|
-
const data = await parseBody(output.body, context);
|
|
342
|
-
let contents = {};
|
|
343
|
-
contents = _json(data);
|
|
344
|
-
const response = {
|
|
345
|
-
$metadata: deserializeMetadata(output),
|
|
346
|
-
...contents,
|
|
347
|
-
};
|
|
348
|
-
return response;
|
|
349
|
-
};
|
|
350
|
-
export const de_CreateLocationAzureBlobCommand = async (output, context) => {
|
|
351
|
-
if (output.statusCode >= 300) {
|
|
352
|
-
return de_CommandError(output, context);
|
|
353
|
-
}
|
|
354
|
-
const data = await parseBody(output.body, context);
|
|
355
|
-
let contents = {};
|
|
356
|
-
contents = _json(data);
|
|
357
|
-
const response = {
|
|
358
|
-
$metadata: deserializeMetadata(output),
|
|
359
|
-
...contents,
|
|
360
|
-
};
|
|
361
|
-
return response;
|
|
362
|
-
};
|
|
363
|
-
export const de_CreateLocationEfsCommand = async (output, context) => {
|
|
364
|
-
if (output.statusCode >= 300) {
|
|
365
|
-
return de_CommandError(output, context);
|
|
366
|
-
}
|
|
367
|
-
const data = await parseBody(output.body, context);
|
|
368
|
-
let contents = {};
|
|
369
|
-
contents = _json(data);
|
|
370
|
-
const response = {
|
|
371
|
-
$metadata: deserializeMetadata(output),
|
|
372
|
-
...contents,
|
|
373
|
-
};
|
|
374
|
-
return response;
|
|
375
|
-
};
|
|
376
|
-
export const de_CreateLocationFsxLustreCommand = async (output, context) => {
|
|
377
|
-
if (output.statusCode >= 300) {
|
|
378
|
-
return de_CommandError(output, context);
|
|
379
|
-
}
|
|
380
|
-
const data = await parseBody(output.body, context);
|
|
381
|
-
let contents = {};
|
|
382
|
-
contents = _json(data);
|
|
383
|
-
const response = {
|
|
384
|
-
$metadata: deserializeMetadata(output),
|
|
385
|
-
...contents,
|
|
386
|
-
};
|
|
387
|
-
return response;
|
|
388
|
-
};
|
|
389
|
-
export const de_CreateLocationFsxOntapCommand = async (output, context) => {
|
|
390
|
-
if (output.statusCode >= 300) {
|
|
391
|
-
return de_CommandError(output, context);
|
|
392
|
-
}
|
|
393
|
-
const data = await parseBody(output.body, context);
|
|
394
|
-
let contents = {};
|
|
395
|
-
contents = _json(data);
|
|
396
|
-
const response = {
|
|
397
|
-
$metadata: deserializeMetadata(output),
|
|
398
|
-
...contents,
|
|
399
|
-
};
|
|
400
|
-
return response;
|
|
401
|
-
};
|
|
402
|
-
export const de_CreateLocationFsxOpenZfsCommand = async (output, context) => {
|
|
403
|
-
if (output.statusCode >= 300) {
|
|
404
|
-
return de_CommandError(output, context);
|
|
405
|
-
}
|
|
406
|
-
const data = await parseBody(output.body, context);
|
|
407
|
-
let contents = {};
|
|
408
|
-
contents = _json(data);
|
|
409
|
-
const response = {
|
|
410
|
-
$metadata: deserializeMetadata(output),
|
|
411
|
-
...contents,
|
|
412
|
-
};
|
|
413
|
-
return response;
|
|
414
|
-
};
|
|
415
|
-
export const de_CreateLocationFsxWindowsCommand = async (output, context) => {
|
|
416
|
-
if (output.statusCode >= 300) {
|
|
417
|
-
return de_CommandError(output, context);
|
|
418
|
-
}
|
|
419
|
-
const data = await parseBody(output.body, context);
|
|
420
|
-
let contents = {};
|
|
421
|
-
contents = _json(data);
|
|
422
|
-
const response = {
|
|
423
|
-
$metadata: deserializeMetadata(output),
|
|
424
|
-
...contents,
|
|
425
|
-
};
|
|
426
|
-
return response;
|
|
427
|
-
};
|
|
428
|
-
export const de_CreateLocationHdfsCommand = async (output, context) => {
|
|
429
|
-
if (output.statusCode >= 300) {
|
|
430
|
-
return de_CommandError(output, context);
|
|
431
|
-
}
|
|
432
|
-
const data = await parseBody(output.body, context);
|
|
433
|
-
let contents = {};
|
|
434
|
-
contents = _json(data);
|
|
435
|
-
const response = {
|
|
436
|
-
$metadata: deserializeMetadata(output),
|
|
437
|
-
...contents,
|
|
438
|
-
};
|
|
439
|
-
return response;
|
|
440
|
-
};
|
|
441
|
-
export const de_CreateLocationNfsCommand = async (output, context) => {
|
|
442
|
-
if (output.statusCode >= 300) {
|
|
443
|
-
return de_CommandError(output, context);
|
|
444
|
-
}
|
|
445
|
-
const data = await parseBody(output.body, context);
|
|
446
|
-
let contents = {};
|
|
447
|
-
contents = _json(data);
|
|
448
|
-
const response = {
|
|
449
|
-
$metadata: deserializeMetadata(output),
|
|
450
|
-
...contents,
|
|
451
|
-
};
|
|
452
|
-
return response;
|
|
453
|
-
};
|
|
454
|
-
export const de_CreateLocationObjectStorageCommand = async (output, context) => {
|
|
455
|
-
if (output.statusCode >= 300) {
|
|
456
|
-
return de_CommandError(output, context);
|
|
457
|
-
}
|
|
458
|
-
const data = await parseBody(output.body, context);
|
|
459
|
-
let contents = {};
|
|
460
|
-
contents = _json(data);
|
|
461
|
-
const response = {
|
|
462
|
-
$metadata: deserializeMetadata(output),
|
|
463
|
-
...contents,
|
|
464
|
-
};
|
|
465
|
-
return response;
|
|
466
|
-
};
|
|
467
|
-
export const de_CreateLocationS3Command = async (output, context) => {
|
|
468
|
-
if (output.statusCode >= 300) {
|
|
469
|
-
return de_CommandError(output, context);
|
|
470
|
-
}
|
|
471
|
-
const data = await parseBody(output.body, context);
|
|
472
|
-
let contents = {};
|
|
473
|
-
contents = _json(data);
|
|
474
|
-
const response = {
|
|
475
|
-
$metadata: deserializeMetadata(output),
|
|
476
|
-
...contents,
|
|
477
|
-
};
|
|
478
|
-
return response;
|
|
479
|
-
};
|
|
480
|
-
export const de_CreateLocationSmbCommand = async (output, context) => {
|
|
481
|
-
if (output.statusCode >= 300) {
|
|
482
|
-
return de_CommandError(output, context);
|
|
483
|
-
}
|
|
484
|
-
const data = await parseBody(output.body, context);
|
|
485
|
-
let contents = {};
|
|
486
|
-
contents = _json(data);
|
|
487
|
-
const response = {
|
|
488
|
-
$metadata: deserializeMetadata(output),
|
|
489
|
-
...contents,
|
|
490
|
-
};
|
|
491
|
-
return response;
|
|
492
|
-
};
|
|
493
|
-
export const de_CreateTaskCommand = async (output, context) => {
|
|
494
|
-
if (output.statusCode >= 300) {
|
|
495
|
-
return de_CommandError(output, context);
|
|
496
|
-
}
|
|
497
|
-
const data = await parseBody(output.body, context);
|
|
498
|
-
let contents = {};
|
|
499
|
-
contents = _json(data);
|
|
500
|
-
const response = {
|
|
501
|
-
$metadata: deserializeMetadata(output),
|
|
502
|
-
...contents,
|
|
503
|
-
};
|
|
504
|
-
return response;
|
|
505
|
-
};
|
|
506
|
-
export const de_DeleteAgentCommand = async (output, context) => {
|
|
507
|
-
if (output.statusCode >= 300) {
|
|
508
|
-
return de_CommandError(output, context);
|
|
509
|
-
}
|
|
510
|
-
const data = await parseBody(output.body, context);
|
|
511
|
-
let contents = {};
|
|
512
|
-
contents = _json(data);
|
|
513
|
-
const response = {
|
|
514
|
-
$metadata: deserializeMetadata(output),
|
|
515
|
-
...contents,
|
|
516
|
-
};
|
|
517
|
-
return response;
|
|
518
|
-
};
|
|
519
|
-
export const de_DeleteLocationCommand = async (output, context) => {
|
|
520
|
-
if (output.statusCode >= 300) {
|
|
521
|
-
return de_CommandError(output, context);
|
|
522
|
-
}
|
|
523
|
-
const data = await parseBody(output.body, context);
|
|
524
|
-
let contents = {};
|
|
525
|
-
contents = _json(data);
|
|
526
|
-
const response = {
|
|
527
|
-
$metadata: deserializeMetadata(output),
|
|
528
|
-
...contents,
|
|
529
|
-
};
|
|
530
|
-
return response;
|
|
531
|
-
};
|
|
532
|
-
export const de_DeleteTaskCommand = async (output, context) => {
|
|
533
|
-
if (output.statusCode >= 300) {
|
|
534
|
-
return de_CommandError(output, context);
|
|
535
|
-
}
|
|
536
|
-
const data = await parseBody(output.body, context);
|
|
537
|
-
let contents = {};
|
|
538
|
-
contents = _json(data);
|
|
539
|
-
const response = {
|
|
540
|
-
$metadata: deserializeMetadata(output),
|
|
541
|
-
...contents,
|
|
542
|
-
};
|
|
543
|
-
return response;
|
|
544
|
-
};
|
|
545
|
-
export const de_DescribeAgentCommand = async (output, context) => {
|
|
546
|
-
if (output.statusCode >= 300) {
|
|
547
|
-
return de_CommandError(output, context);
|
|
548
|
-
}
|
|
549
|
-
const data = await parseBody(output.body, context);
|
|
550
|
-
let contents = {};
|
|
551
|
-
contents = de_DescribeAgentResponse(data, context);
|
|
552
|
-
const response = {
|
|
553
|
-
$metadata: deserializeMetadata(output),
|
|
554
|
-
...contents,
|
|
555
|
-
};
|
|
556
|
-
return response;
|
|
557
|
-
};
|
|
558
|
-
export const de_DescribeLocationAzureBlobCommand = async (output, context) => {
|
|
559
|
-
if (output.statusCode >= 300) {
|
|
560
|
-
return de_CommandError(output, context);
|
|
561
|
-
}
|
|
562
|
-
const data = await parseBody(output.body, context);
|
|
563
|
-
let contents = {};
|
|
564
|
-
contents = de_DescribeLocationAzureBlobResponse(data, context);
|
|
565
|
-
const response = {
|
|
566
|
-
$metadata: deserializeMetadata(output),
|
|
567
|
-
...contents,
|
|
568
|
-
};
|
|
569
|
-
return response;
|
|
570
|
-
};
|
|
571
|
-
export const de_DescribeLocationEfsCommand = async (output, context) => {
|
|
572
|
-
if (output.statusCode >= 300) {
|
|
573
|
-
return de_CommandError(output, context);
|
|
574
|
-
}
|
|
575
|
-
const data = await parseBody(output.body, context);
|
|
576
|
-
let contents = {};
|
|
577
|
-
contents = de_DescribeLocationEfsResponse(data, context);
|
|
578
|
-
const response = {
|
|
579
|
-
$metadata: deserializeMetadata(output),
|
|
580
|
-
...contents,
|
|
581
|
-
};
|
|
582
|
-
return response;
|
|
583
|
-
};
|
|
584
|
-
export const de_DescribeLocationFsxLustreCommand = async (output, context) => {
|
|
585
|
-
if (output.statusCode >= 300) {
|
|
586
|
-
return de_CommandError(output, context);
|
|
587
|
-
}
|
|
588
|
-
const data = await parseBody(output.body, context);
|
|
589
|
-
let contents = {};
|
|
590
|
-
contents = de_DescribeLocationFsxLustreResponse(data, context);
|
|
591
|
-
const response = {
|
|
592
|
-
$metadata: deserializeMetadata(output),
|
|
593
|
-
...contents,
|
|
594
|
-
};
|
|
595
|
-
return response;
|
|
596
|
-
};
|
|
597
|
-
export const de_DescribeLocationFsxOntapCommand = async (output, context) => {
|
|
598
|
-
if (output.statusCode >= 300) {
|
|
599
|
-
return de_CommandError(output, context);
|
|
600
|
-
}
|
|
601
|
-
const data = await parseBody(output.body, context);
|
|
602
|
-
let contents = {};
|
|
603
|
-
contents = de_DescribeLocationFsxOntapResponse(data, context);
|
|
604
|
-
const response = {
|
|
605
|
-
$metadata: deserializeMetadata(output),
|
|
606
|
-
...contents,
|
|
607
|
-
};
|
|
608
|
-
return response;
|
|
609
|
-
};
|
|
610
|
-
export const de_DescribeLocationFsxOpenZfsCommand = async (output, context) => {
|
|
611
|
-
if (output.statusCode >= 300) {
|
|
612
|
-
return de_CommandError(output, context);
|
|
613
|
-
}
|
|
614
|
-
const data = await parseBody(output.body, context);
|
|
615
|
-
let contents = {};
|
|
616
|
-
contents = de_DescribeLocationFsxOpenZfsResponse(data, context);
|
|
617
|
-
const response = {
|
|
618
|
-
$metadata: deserializeMetadata(output),
|
|
619
|
-
...contents,
|
|
620
|
-
};
|
|
621
|
-
return response;
|
|
622
|
-
};
|
|
623
|
-
export const de_DescribeLocationFsxWindowsCommand = async (output, context) => {
|
|
624
|
-
if (output.statusCode >= 300) {
|
|
625
|
-
return de_CommandError(output, context);
|
|
626
|
-
}
|
|
627
|
-
const data = await parseBody(output.body, context);
|
|
628
|
-
let contents = {};
|
|
629
|
-
contents = de_DescribeLocationFsxWindowsResponse(data, context);
|
|
630
|
-
const response = {
|
|
631
|
-
$metadata: deserializeMetadata(output),
|
|
632
|
-
...contents,
|
|
633
|
-
};
|
|
634
|
-
return response;
|
|
635
|
-
};
|
|
636
|
-
export const de_DescribeLocationHdfsCommand = async (output, context) => {
|
|
637
|
-
if (output.statusCode >= 300) {
|
|
638
|
-
return de_CommandError(output, context);
|
|
639
|
-
}
|
|
640
|
-
const data = await parseBody(output.body, context);
|
|
641
|
-
let contents = {};
|
|
642
|
-
contents = de_DescribeLocationHdfsResponse(data, context);
|
|
643
|
-
const response = {
|
|
644
|
-
$metadata: deserializeMetadata(output),
|
|
645
|
-
...contents,
|
|
646
|
-
};
|
|
647
|
-
return response;
|
|
648
|
-
};
|
|
649
|
-
export const de_DescribeLocationNfsCommand = async (output, context) => {
|
|
650
|
-
if (output.statusCode >= 300) {
|
|
651
|
-
return de_CommandError(output, context);
|
|
652
|
-
}
|
|
653
|
-
const data = await parseBody(output.body, context);
|
|
654
|
-
let contents = {};
|
|
655
|
-
contents = de_DescribeLocationNfsResponse(data, context);
|
|
656
|
-
const response = {
|
|
657
|
-
$metadata: deserializeMetadata(output),
|
|
658
|
-
...contents,
|
|
659
|
-
};
|
|
660
|
-
return response;
|
|
661
|
-
};
|
|
662
|
-
export const de_DescribeLocationObjectStorageCommand = async (output, context) => {
|
|
663
|
-
if (output.statusCode >= 300) {
|
|
664
|
-
return de_CommandError(output, context);
|
|
665
|
-
}
|
|
666
|
-
const data = await parseBody(output.body, context);
|
|
667
|
-
let contents = {};
|
|
668
|
-
contents = de_DescribeLocationObjectStorageResponse(data, context);
|
|
669
|
-
const response = {
|
|
670
|
-
$metadata: deserializeMetadata(output),
|
|
671
|
-
...contents,
|
|
672
|
-
};
|
|
673
|
-
return response;
|
|
674
|
-
};
|
|
675
|
-
export const de_DescribeLocationS3Command = async (output, context) => {
|
|
676
|
-
if (output.statusCode >= 300) {
|
|
677
|
-
return de_CommandError(output, context);
|
|
678
|
-
}
|
|
679
|
-
const data = await parseBody(output.body, context);
|
|
680
|
-
let contents = {};
|
|
681
|
-
contents = de_DescribeLocationS3Response(data, context);
|
|
682
|
-
const response = {
|
|
683
|
-
$metadata: deserializeMetadata(output),
|
|
684
|
-
...contents,
|
|
685
|
-
};
|
|
686
|
-
return response;
|
|
687
|
-
};
|
|
688
|
-
export const de_DescribeLocationSmbCommand = async (output, context) => {
|
|
689
|
-
if (output.statusCode >= 300) {
|
|
690
|
-
return de_CommandError(output, context);
|
|
691
|
-
}
|
|
692
|
-
const data = await parseBody(output.body, context);
|
|
693
|
-
let contents = {};
|
|
694
|
-
contents = de_DescribeLocationSmbResponse(data, context);
|
|
695
|
-
const response = {
|
|
696
|
-
$metadata: deserializeMetadata(output),
|
|
697
|
-
...contents,
|
|
698
|
-
};
|
|
699
|
-
return response;
|
|
700
|
-
};
|
|
701
|
-
export const de_DescribeTaskCommand = async (output, context) => {
|
|
702
|
-
if (output.statusCode >= 300) {
|
|
703
|
-
return de_CommandError(output, context);
|
|
704
|
-
}
|
|
705
|
-
const data = await parseBody(output.body, context);
|
|
706
|
-
let contents = {};
|
|
707
|
-
contents = de_DescribeTaskResponse(data, context);
|
|
708
|
-
const response = {
|
|
709
|
-
$metadata: deserializeMetadata(output),
|
|
710
|
-
...contents,
|
|
711
|
-
};
|
|
712
|
-
return response;
|
|
713
|
-
};
|
|
714
|
-
export const de_DescribeTaskExecutionCommand = async (output, context) => {
|
|
715
|
-
if (output.statusCode >= 300) {
|
|
716
|
-
return de_CommandError(output, context);
|
|
717
|
-
}
|
|
718
|
-
const data = await parseBody(output.body, context);
|
|
719
|
-
let contents = {};
|
|
720
|
-
contents = de_DescribeTaskExecutionResponse(data, context);
|
|
721
|
-
const response = {
|
|
722
|
-
$metadata: deserializeMetadata(output),
|
|
723
|
-
...contents,
|
|
724
|
-
};
|
|
725
|
-
return response;
|
|
726
|
-
};
|
|
727
|
-
export const de_ListAgentsCommand = async (output, context) => {
|
|
728
|
-
if (output.statusCode >= 300) {
|
|
729
|
-
return de_CommandError(output, context);
|
|
730
|
-
}
|
|
731
|
-
const data = await parseBody(output.body, context);
|
|
732
|
-
let contents = {};
|
|
733
|
-
contents = _json(data);
|
|
734
|
-
const response = {
|
|
735
|
-
$metadata: deserializeMetadata(output),
|
|
736
|
-
...contents,
|
|
737
|
-
};
|
|
738
|
-
return response;
|
|
739
|
-
};
|
|
740
|
-
export const de_ListLocationsCommand = async (output, context) => {
|
|
741
|
-
if (output.statusCode >= 300) {
|
|
742
|
-
return de_CommandError(output, context);
|
|
743
|
-
}
|
|
744
|
-
const data = await parseBody(output.body, context);
|
|
745
|
-
let contents = {};
|
|
746
|
-
contents = _json(data);
|
|
747
|
-
const response = {
|
|
748
|
-
$metadata: deserializeMetadata(output),
|
|
749
|
-
...contents,
|
|
750
|
-
};
|
|
751
|
-
return response;
|
|
752
|
-
};
|
|
753
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
754
|
-
if (output.statusCode >= 300) {
|
|
755
|
-
return de_CommandError(output, context);
|
|
756
|
-
}
|
|
757
|
-
const data = await parseBody(output.body, context);
|
|
758
|
-
let contents = {};
|
|
759
|
-
contents = _json(data);
|
|
760
|
-
const response = {
|
|
761
|
-
$metadata: deserializeMetadata(output),
|
|
762
|
-
...contents,
|
|
763
|
-
};
|
|
764
|
-
return response;
|
|
765
|
-
};
|
|
766
|
-
export const de_ListTaskExecutionsCommand = async (output, context) => {
|
|
767
|
-
if (output.statusCode >= 300) {
|
|
768
|
-
return de_CommandError(output, context);
|
|
769
|
-
}
|
|
770
|
-
const data = await parseBody(output.body, context);
|
|
771
|
-
let contents = {};
|
|
772
|
-
contents = _json(data);
|
|
773
|
-
const response = {
|
|
774
|
-
$metadata: deserializeMetadata(output),
|
|
775
|
-
...contents,
|
|
776
|
-
};
|
|
777
|
-
return response;
|
|
778
|
-
};
|
|
779
|
-
export const de_ListTasksCommand = async (output, context) => {
|
|
780
|
-
if (output.statusCode >= 300) {
|
|
781
|
-
return de_CommandError(output, context);
|
|
782
|
-
}
|
|
783
|
-
const data = await parseBody(output.body, context);
|
|
784
|
-
let contents = {};
|
|
785
|
-
contents = _json(data);
|
|
786
|
-
const response = {
|
|
787
|
-
$metadata: deserializeMetadata(output),
|
|
788
|
-
...contents,
|
|
789
|
-
};
|
|
790
|
-
return response;
|
|
791
|
-
};
|
|
792
|
-
export const de_StartTaskExecutionCommand = async (output, context) => {
|
|
793
|
-
if (output.statusCode >= 300) {
|
|
794
|
-
return de_CommandError(output, context);
|
|
795
|
-
}
|
|
796
|
-
const data = await parseBody(output.body, context);
|
|
797
|
-
let contents = {};
|
|
798
|
-
contents = _json(data);
|
|
799
|
-
const response = {
|
|
800
|
-
$metadata: deserializeMetadata(output),
|
|
801
|
-
...contents,
|
|
802
|
-
};
|
|
803
|
-
return response;
|
|
804
|
-
};
|
|
805
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
806
|
-
if (output.statusCode >= 300) {
|
|
807
|
-
return de_CommandError(output, context);
|
|
808
|
-
}
|
|
809
|
-
const data = await parseBody(output.body, context);
|
|
810
|
-
let contents = {};
|
|
811
|
-
contents = _json(data);
|
|
812
|
-
const response = {
|
|
813
|
-
$metadata: deserializeMetadata(output),
|
|
814
|
-
...contents,
|
|
815
|
-
};
|
|
816
|
-
return response;
|
|
817
|
-
};
|
|
818
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
819
|
-
if (output.statusCode >= 300) {
|
|
820
|
-
return de_CommandError(output, context);
|
|
821
|
-
}
|
|
822
|
-
const data = await parseBody(output.body, context);
|
|
823
|
-
let contents = {};
|
|
824
|
-
contents = _json(data);
|
|
825
|
-
const response = {
|
|
826
|
-
$metadata: deserializeMetadata(output),
|
|
827
|
-
...contents,
|
|
828
|
-
};
|
|
829
|
-
return response;
|
|
830
|
-
};
|
|
831
|
-
export const de_UpdateAgentCommand = async (output, context) => {
|
|
832
|
-
if (output.statusCode >= 300) {
|
|
833
|
-
return de_CommandError(output, context);
|
|
834
|
-
}
|
|
835
|
-
const data = await parseBody(output.body, context);
|
|
836
|
-
let contents = {};
|
|
837
|
-
contents = _json(data);
|
|
838
|
-
const response = {
|
|
839
|
-
$metadata: deserializeMetadata(output),
|
|
840
|
-
...contents,
|
|
841
|
-
};
|
|
842
|
-
return response;
|
|
843
|
-
};
|
|
844
|
-
export const de_UpdateLocationAzureBlobCommand = async (output, context) => {
|
|
845
|
-
if (output.statusCode >= 300) {
|
|
846
|
-
return de_CommandError(output, context);
|
|
847
|
-
}
|
|
848
|
-
const data = await parseBody(output.body, context);
|
|
849
|
-
let contents = {};
|
|
850
|
-
contents = _json(data);
|
|
851
|
-
const response = {
|
|
852
|
-
$metadata: deserializeMetadata(output),
|
|
853
|
-
...contents,
|
|
854
|
-
};
|
|
855
|
-
return response;
|
|
856
|
-
};
|
|
857
|
-
export const de_UpdateLocationEfsCommand = async (output, context) => {
|
|
858
|
-
if (output.statusCode >= 300) {
|
|
859
|
-
return de_CommandError(output, context);
|
|
860
|
-
}
|
|
861
|
-
const data = await parseBody(output.body, context);
|
|
862
|
-
let contents = {};
|
|
863
|
-
contents = _json(data);
|
|
864
|
-
const response = {
|
|
865
|
-
$metadata: deserializeMetadata(output),
|
|
866
|
-
...contents,
|
|
867
|
-
};
|
|
868
|
-
return response;
|
|
869
|
-
};
|
|
870
|
-
export const de_UpdateLocationFsxLustreCommand = async (output, context) => {
|
|
871
|
-
if (output.statusCode >= 300) {
|
|
872
|
-
return de_CommandError(output, context);
|
|
873
|
-
}
|
|
874
|
-
const data = await parseBody(output.body, context);
|
|
875
|
-
let contents = {};
|
|
876
|
-
contents = _json(data);
|
|
877
|
-
const response = {
|
|
878
|
-
$metadata: deserializeMetadata(output),
|
|
879
|
-
...contents,
|
|
880
|
-
};
|
|
881
|
-
return response;
|
|
882
|
-
};
|
|
883
|
-
export const de_UpdateLocationFsxOntapCommand = async (output, context) => {
|
|
884
|
-
if (output.statusCode >= 300) {
|
|
885
|
-
return de_CommandError(output, context);
|
|
886
|
-
}
|
|
887
|
-
const data = await parseBody(output.body, context);
|
|
888
|
-
let contents = {};
|
|
889
|
-
contents = _json(data);
|
|
890
|
-
const response = {
|
|
891
|
-
$metadata: deserializeMetadata(output),
|
|
892
|
-
...contents,
|
|
893
|
-
};
|
|
894
|
-
return response;
|
|
895
|
-
};
|
|
896
|
-
export const de_UpdateLocationFsxOpenZfsCommand = async (output, context) => {
|
|
897
|
-
if (output.statusCode >= 300) {
|
|
898
|
-
return de_CommandError(output, context);
|
|
899
|
-
}
|
|
900
|
-
const data = await parseBody(output.body, context);
|
|
901
|
-
let contents = {};
|
|
902
|
-
contents = _json(data);
|
|
903
|
-
const response = {
|
|
904
|
-
$metadata: deserializeMetadata(output),
|
|
905
|
-
...contents,
|
|
906
|
-
};
|
|
907
|
-
return response;
|
|
908
|
-
};
|
|
909
|
-
export const de_UpdateLocationFsxWindowsCommand = async (output, context) => {
|
|
910
|
-
if (output.statusCode >= 300) {
|
|
911
|
-
return de_CommandError(output, context);
|
|
912
|
-
}
|
|
913
|
-
const data = await parseBody(output.body, context);
|
|
914
|
-
let contents = {};
|
|
915
|
-
contents = _json(data);
|
|
916
|
-
const response = {
|
|
917
|
-
$metadata: deserializeMetadata(output),
|
|
918
|
-
...contents,
|
|
919
|
-
};
|
|
920
|
-
return response;
|
|
921
|
-
};
|
|
922
|
-
export const de_UpdateLocationHdfsCommand = async (output, context) => {
|
|
923
|
-
if (output.statusCode >= 300) {
|
|
924
|
-
return de_CommandError(output, context);
|
|
925
|
-
}
|
|
926
|
-
const data = await parseBody(output.body, context);
|
|
927
|
-
let contents = {};
|
|
928
|
-
contents = _json(data);
|
|
929
|
-
const response = {
|
|
930
|
-
$metadata: deserializeMetadata(output),
|
|
931
|
-
...contents,
|
|
932
|
-
};
|
|
933
|
-
return response;
|
|
934
|
-
};
|
|
935
|
-
export const de_UpdateLocationNfsCommand = async (output, context) => {
|
|
936
|
-
if (output.statusCode >= 300) {
|
|
937
|
-
return de_CommandError(output, context);
|
|
938
|
-
}
|
|
939
|
-
const data = await parseBody(output.body, context);
|
|
940
|
-
let contents = {};
|
|
941
|
-
contents = _json(data);
|
|
942
|
-
const response = {
|
|
943
|
-
$metadata: deserializeMetadata(output),
|
|
944
|
-
...contents,
|
|
945
|
-
};
|
|
946
|
-
return response;
|
|
947
|
-
};
|
|
948
|
-
export const de_UpdateLocationObjectStorageCommand = async (output, context) => {
|
|
949
|
-
if (output.statusCode >= 300) {
|
|
950
|
-
return de_CommandError(output, context);
|
|
951
|
-
}
|
|
952
|
-
const data = await parseBody(output.body, context);
|
|
953
|
-
let contents = {};
|
|
954
|
-
contents = _json(data);
|
|
955
|
-
const response = {
|
|
956
|
-
$metadata: deserializeMetadata(output),
|
|
957
|
-
...contents,
|
|
958
|
-
};
|
|
959
|
-
return response;
|
|
960
|
-
};
|
|
961
|
-
export const de_UpdateLocationS3Command = async (output, context) => {
|
|
962
|
-
if (output.statusCode >= 300) {
|
|
963
|
-
return de_CommandError(output, context);
|
|
964
|
-
}
|
|
965
|
-
const data = await parseBody(output.body, context);
|
|
966
|
-
let contents = {};
|
|
967
|
-
contents = _json(data);
|
|
968
|
-
const response = {
|
|
969
|
-
$metadata: deserializeMetadata(output),
|
|
970
|
-
...contents,
|
|
971
|
-
};
|
|
972
|
-
return response;
|
|
973
|
-
};
|
|
974
|
-
export const de_UpdateLocationSmbCommand = async (output, context) => {
|
|
975
|
-
if (output.statusCode >= 300) {
|
|
976
|
-
return de_CommandError(output, context);
|
|
977
|
-
}
|
|
978
|
-
const data = await parseBody(output.body, context);
|
|
979
|
-
let contents = {};
|
|
980
|
-
contents = _json(data);
|
|
981
|
-
const response = {
|
|
982
|
-
$metadata: deserializeMetadata(output),
|
|
983
|
-
...contents,
|
|
984
|
-
};
|
|
985
|
-
return response;
|
|
986
|
-
};
|
|
987
|
-
export const de_UpdateTaskCommand = async (output, context) => {
|
|
988
|
-
if (output.statusCode >= 300) {
|
|
989
|
-
return de_CommandError(output, context);
|
|
990
|
-
}
|
|
991
|
-
const data = await parseBody(output.body, context);
|
|
992
|
-
let contents = {};
|
|
993
|
-
contents = _json(data);
|
|
994
|
-
const response = {
|
|
995
|
-
$metadata: deserializeMetadata(output),
|
|
996
|
-
...contents,
|
|
997
|
-
};
|
|
998
|
-
return response;
|
|
999
|
-
};
|
|
1000
|
-
export const de_UpdateTaskExecutionCommand = async (output, context) => {
|
|
1001
|
-
if (output.statusCode >= 300) {
|
|
1002
|
-
return de_CommandError(output, context);
|
|
1003
|
-
}
|
|
1004
|
-
const data = await parseBody(output.body, context);
|
|
1005
|
-
let contents = {};
|
|
1006
|
-
contents = _json(data);
|
|
1007
|
-
const response = {
|
|
1008
|
-
$metadata: deserializeMetadata(output),
|
|
1009
|
-
...contents,
|
|
1010
|
-
};
|
|
1011
|
-
return response;
|
|
1012
|
-
};
|
|
1013
|
-
const de_CommandError = async (output, context) => {
|
|
1014
|
-
const parsedOutput = {
|
|
1015
|
-
...output,
|
|
1016
|
-
body: await parseErrorBody(output.body, context),
|
|
1017
|
-
};
|
|
1018
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1019
|
-
switch (errorCode) {
|
|
1020
|
-
case "InternalException":
|
|
1021
|
-
case "com.amazonaws.datasync#InternalException":
|
|
1022
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1023
|
-
case "InvalidRequestException":
|
|
1024
|
-
case "com.amazonaws.datasync#InvalidRequestException":
|
|
1025
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1026
|
-
default:
|
|
1027
|
-
const parsedBody = parsedOutput.body;
|
|
1028
|
-
return throwDefaultError({
|
|
1029
|
-
output,
|
|
1030
|
-
parsedBody,
|
|
1031
|
-
errorCode,
|
|
1032
|
-
});
|
|
1033
|
-
}
|
|
1034
|
-
};
|
|
1035
|
-
const de_InternalExceptionRes = async (parsedOutput, context) => {
|
|
1036
|
-
const body = parsedOutput.body;
|
|
1037
|
-
const deserialized = _json(body);
|
|
1038
|
-
const exception = new InternalException({
|
|
1039
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1040
|
-
...deserialized,
|
|
1041
|
-
});
|
|
1042
|
-
return __decorateServiceException(exception, body);
|
|
1043
|
-
};
|
|
1044
|
-
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
1045
|
-
const body = parsedOutput.body;
|
|
1046
|
-
const deserialized = _json(body);
|
|
1047
|
-
const exception = new InvalidRequestException({
|
|
1048
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1049
|
-
...deserialized,
|
|
1050
|
-
});
|
|
1051
|
-
return __decorateServiceException(exception, body);
|
|
1052
|
-
};
|
|
1053
|
-
const se_CreateLocationHdfsRequest = (input, context) => {
|
|
1054
|
-
return take(input, {
|
|
1055
|
-
AgentArns: _json,
|
|
1056
|
-
AuthenticationType: [],
|
|
1057
|
-
BlockSize: [],
|
|
1058
|
-
KerberosKeytab: context.base64Encoder,
|
|
1059
|
-
KerberosKrb5Conf: context.base64Encoder,
|
|
1060
|
-
KerberosPrincipal: [],
|
|
1061
|
-
KmsKeyProviderUri: [],
|
|
1062
|
-
NameNodes: _json,
|
|
1063
|
-
QopConfiguration: _json,
|
|
1064
|
-
ReplicationFactor: [],
|
|
1065
|
-
SimpleUser: [],
|
|
1066
|
-
Subdirectory: [],
|
|
1067
|
-
Tags: _json,
|
|
1068
|
-
});
|
|
1069
|
-
};
|
|
1070
|
-
const se_CreateLocationObjectStorageRequest = (input, context) => {
|
|
1071
|
-
return take(input, {
|
|
1072
|
-
AccessKey: [],
|
|
1073
|
-
AgentArns: _json,
|
|
1074
|
-
BucketName: [],
|
|
1075
|
-
CmkSecretConfig: _json,
|
|
1076
|
-
CustomSecretConfig: _json,
|
|
1077
|
-
SecretKey: [],
|
|
1078
|
-
ServerCertificate: context.base64Encoder,
|
|
1079
|
-
ServerHostname: [],
|
|
1080
|
-
ServerPort: [],
|
|
1081
|
-
ServerProtocol: [],
|
|
1082
|
-
Subdirectory: [],
|
|
1083
|
-
Tags: _json,
|
|
1084
|
-
});
|
|
1085
|
-
};
|
|
1086
|
-
const se_CreateLocationSmbRequest = (input, context) => {
|
|
1087
|
-
return take(input, {
|
|
1088
|
-
AgentArns: _json,
|
|
1089
|
-
AuthenticationType: [],
|
|
1090
|
-
DnsIpAddresses: _json,
|
|
1091
|
-
Domain: [],
|
|
1092
|
-
KerberosKeytab: context.base64Encoder,
|
|
1093
|
-
KerberosKrb5Conf: context.base64Encoder,
|
|
1094
|
-
KerberosPrincipal: [],
|
|
1095
|
-
MountOptions: _json,
|
|
1096
|
-
Password: [],
|
|
1097
|
-
ServerHostname: [],
|
|
1098
|
-
Subdirectory: [],
|
|
1099
|
-
Tags: _json,
|
|
1100
|
-
User: [],
|
|
1101
|
-
});
|
|
1102
|
-
};
|
|
1103
|
-
const se_UpdateLocationHdfsRequest = (input, context) => {
|
|
1104
|
-
return take(input, {
|
|
1105
|
-
AgentArns: _json,
|
|
1106
|
-
AuthenticationType: [],
|
|
1107
|
-
BlockSize: [],
|
|
1108
|
-
KerberosKeytab: context.base64Encoder,
|
|
1109
|
-
KerberosKrb5Conf: context.base64Encoder,
|
|
1110
|
-
KerberosPrincipal: [],
|
|
1111
|
-
KmsKeyProviderUri: [],
|
|
1112
|
-
LocationArn: [],
|
|
1113
|
-
NameNodes: _json,
|
|
1114
|
-
QopConfiguration: _json,
|
|
1115
|
-
ReplicationFactor: [],
|
|
1116
|
-
SimpleUser: [],
|
|
1117
|
-
Subdirectory: [],
|
|
1118
|
-
});
|
|
1119
|
-
};
|
|
1120
|
-
const se_UpdateLocationObjectStorageRequest = (input, context) => {
|
|
1121
|
-
return take(input, {
|
|
1122
|
-
AccessKey: [],
|
|
1123
|
-
AgentArns: _json,
|
|
1124
|
-
CmkSecretConfig: _json,
|
|
1125
|
-
CustomSecretConfig: _json,
|
|
1126
|
-
LocationArn: [],
|
|
1127
|
-
SecretKey: [],
|
|
1128
|
-
ServerCertificate: context.base64Encoder,
|
|
1129
|
-
ServerHostname: [],
|
|
1130
|
-
ServerPort: [],
|
|
1131
|
-
ServerProtocol: [],
|
|
1132
|
-
Subdirectory: [],
|
|
1133
|
-
});
|
|
1134
|
-
};
|
|
1135
|
-
const se_UpdateLocationSmbRequest = (input, context) => {
|
|
1136
|
-
return take(input, {
|
|
1137
|
-
AgentArns: _json,
|
|
1138
|
-
AuthenticationType: [],
|
|
1139
|
-
DnsIpAddresses: _json,
|
|
1140
|
-
Domain: [],
|
|
1141
|
-
KerberosKeytab: context.base64Encoder,
|
|
1142
|
-
KerberosKrb5Conf: context.base64Encoder,
|
|
1143
|
-
KerberosPrincipal: [],
|
|
1144
|
-
LocationArn: [],
|
|
1145
|
-
MountOptions: _json,
|
|
1146
|
-
Password: [],
|
|
1147
|
-
ServerHostname: [],
|
|
1148
|
-
Subdirectory: [],
|
|
1149
|
-
User: [],
|
|
1150
|
-
});
|
|
1151
|
-
};
|
|
1152
|
-
const de_DescribeAgentResponse = (output, context) => {
|
|
1153
|
-
return take(output, {
|
|
1154
|
-
AgentArn: __expectString,
|
|
1155
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1156
|
-
EndpointType: __expectString,
|
|
1157
|
-
LastConnectionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1158
|
-
Name: __expectString,
|
|
1159
|
-
Platform: _json,
|
|
1160
|
-
PrivateLinkConfig: _json,
|
|
1161
|
-
Status: __expectString,
|
|
1162
|
-
});
|
|
1163
|
-
};
|
|
1164
|
-
const de_DescribeLocationAzureBlobResponse = (output, context) => {
|
|
1165
|
-
return take(output, {
|
|
1166
|
-
AccessTier: __expectString,
|
|
1167
|
-
AgentArns: _json,
|
|
1168
|
-
AuthenticationType: __expectString,
|
|
1169
|
-
BlobType: __expectString,
|
|
1170
|
-
CmkSecretConfig: _json,
|
|
1171
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1172
|
-
CustomSecretConfig: _json,
|
|
1173
|
-
LocationArn: __expectString,
|
|
1174
|
-
LocationUri: __expectString,
|
|
1175
|
-
ManagedSecretConfig: _json,
|
|
1176
|
-
});
|
|
1177
|
-
};
|
|
1178
|
-
const de_DescribeLocationEfsResponse = (output, context) => {
|
|
1179
|
-
return take(output, {
|
|
1180
|
-
AccessPointArn: __expectString,
|
|
1181
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1182
|
-
Ec2Config: _json,
|
|
1183
|
-
FileSystemAccessRoleArn: __expectString,
|
|
1184
|
-
InTransitEncryption: __expectString,
|
|
1185
|
-
LocationArn: __expectString,
|
|
1186
|
-
LocationUri: __expectString,
|
|
1187
|
-
});
|
|
1188
|
-
};
|
|
1189
|
-
const de_DescribeLocationFsxLustreResponse = (output, context) => {
|
|
1190
|
-
return take(output, {
|
|
1191
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1192
|
-
LocationArn: __expectString,
|
|
1193
|
-
LocationUri: __expectString,
|
|
1194
|
-
SecurityGroupArns: _json,
|
|
1195
|
-
});
|
|
1196
|
-
};
|
|
1197
|
-
const de_DescribeLocationFsxOntapResponse = (output, context) => {
|
|
1198
|
-
return take(output, {
|
|
1199
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1200
|
-
FsxFilesystemArn: __expectString,
|
|
1201
|
-
LocationArn: __expectString,
|
|
1202
|
-
LocationUri: __expectString,
|
|
1203
|
-
Protocol: _json,
|
|
1204
|
-
SecurityGroupArns: _json,
|
|
1205
|
-
StorageVirtualMachineArn: __expectString,
|
|
1206
|
-
});
|
|
1207
|
-
};
|
|
1208
|
-
const de_DescribeLocationFsxOpenZfsResponse = (output, context) => {
|
|
1209
|
-
return take(output, {
|
|
1210
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1211
|
-
LocationArn: __expectString,
|
|
1212
|
-
LocationUri: __expectString,
|
|
1213
|
-
Protocol: _json,
|
|
1214
|
-
SecurityGroupArns: _json,
|
|
1215
|
-
});
|
|
1216
|
-
};
|
|
1217
|
-
const de_DescribeLocationFsxWindowsResponse = (output, context) => {
|
|
1218
|
-
return take(output, {
|
|
1219
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1220
|
-
Domain: __expectString,
|
|
1221
|
-
LocationArn: __expectString,
|
|
1222
|
-
LocationUri: __expectString,
|
|
1223
|
-
SecurityGroupArns: _json,
|
|
1224
|
-
User: __expectString,
|
|
1225
|
-
});
|
|
1226
|
-
};
|
|
1227
|
-
const de_DescribeLocationHdfsResponse = (output, context) => {
|
|
1228
|
-
return take(output, {
|
|
1229
|
-
AgentArns: _json,
|
|
1230
|
-
AuthenticationType: __expectString,
|
|
1231
|
-
BlockSize: __expectInt32,
|
|
1232
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1233
|
-
KerberosPrincipal: __expectString,
|
|
1234
|
-
KmsKeyProviderUri: __expectString,
|
|
1235
|
-
LocationArn: __expectString,
|
|
1236
|
-
LocationUri: __expectString,
|
|
1237
|
-
NameNodes: _json,
|
|
1238
|
-
QopConfiguration: _json,
|
|
1239
|
-
ReplicationFactor: __expectInt32,
|
|
1240
|
-
SimpleUser: __expectString,
|
|
1241
|
-
});
|
|
1242
|
-
};
|
|
1243
|
-
const de_DescribeLocationNfsResponse = (output, context) => {
|
|
1244
|
-
return take(output, {
|
|
1245
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1246
|
-
LocationArn: __expectString,
|
|
1247
|
-
LocationUri: __expectString,
|
|
1248
|
-
MountOptions: _json,
|
|
1249
|
-
OnPremConfig: _json,
|
|
1250
|
-
});
|
|
1251
|
-
};
|
|
1252
|
-
const de_DescribeLocationObjectStorageResponse = (output, context) => {
|
|
1253
|
-
return take(output, {
|
|
1254
|
-
AccessKey: __expectString,
|
|
1255
|
-
AgentArns: _json,
|
|
1256
|
-
CmkSecretConfig: _json,
|
|
1257
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1258
|
-
CustomSecretConfig: _json,
|
|
1259
|
-
LocationArn: __expectString,
|
|
1260
|
-
LocationUri: __expectString,
|
|
1261
|
-
ManagedSecretConfig: _json,
|
|
1262
|
-
ServerCertificate: context.base64Decoder,
|
|
1263
|
-
ServerPort: __expectInt32,
|
|
1264
|
-
ServerProtocol: __expectString,
|
|
1265
|
-
});
|
|
1266
|
-
};
|
|
1267
|
-
const de_DescribeLocationS3Response = (output, context) => {
|
|
1268
|
-
return take(output, {
|
|
1269
|
-
AgentArns: _json,
|
|
1270
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1271
|
-
LocationArn: __expectString,
|
|
1272
|
-
LocationUri: __expectString,
|
|
1273
|
-
S3Config: _json,
|
|
1274
|
-
S3StorageClass: __expectString,
|
|
1275
|
-
});
|
|
1276
|
-
};
|
|
1277
|
-
const de_DescribeLocationSmbResponse = (output, context) => {
|
|
1278
|
-
return take(output, {
|
|
1279
|
-
AgentArns: _json,
|
|
1280
|
-
AuthenticationType: __expectString,
|
|
1281
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1282
|
-
DnsIpAddresses: _json,
|
|
1283
|
-
Domain: __expectString,
|
|
1284
|
-
KerberosPrincipal: __expectString,
|
|
1285
|
-
LocationArn: __expectString,
|
|
1286
|
-
LocationUri: __expectString,
|
|
1287
|
-
MountOptions: _json,
|
|
1288
|
-
User: __expectString,
|
|
1289
|
-
});
|
|
1290
|
-
};
|
|
1291
|
-
const de_DescribeTaskExecutionResponse = (output, context) => {
|
|
1292
|
-
return take(output, {
|
|
1293
|
-
BytesCompressed: __expectLong,
|
|
1294
|
-
BytesTransferred: __expectLong,
|
|
1295
|
-
BytesWritten: __expectLong,
|
|
1296
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1297
|
-
EstimatedBytesToTransfer: __expectLong,
|
|
1298
|
-
EstimatedFilesToDelete: __expectLong,
|
|
1299
|
-
EstimatedFilesToTransfer: __expectLong,
|
|
1300
|
-
Excludes: _json,
|
|
1301
|
-
FilesDeleted: __expectLong,
|
|
1302
|
-
FilesFailed: _json,
|
|
1303
|
-
FilesListed: _json,
|
|
1304
|
-
FilesPrepared: __expectLong,
|
|
1305
|
-
FilesSkipped: __expectLong,
|
|
1306
|
-
FilesTransferred: __expectLong,
|
|
1307
|
-
FilesVerified: __expectLong,
|
|
1308
|
-
Includes: _json,
|
|
1309
|
-
LaunchTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1310
|
-
ManifestConfig: _json,
|
|
1311
|
-
Options: _json,
|
|
1312
|
-
ReportResult: _json,
|
|
1313
|
-
Result: _json,
|
|
1314
|
-
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1315
|
-
Status: __expectString,
|
|
1316
|
-
TaskExecutionArn: __expectString,
|
|
1317
|
-
TaskMode: __expectString,
|
|
1318
|
-
TaskReportConfig: _json,
|
|
1319
|
-
});
|
|
1320
|
-
};
|
|
1321
|
-
const de_DescribeTaskResponse = (output, context) => {
|
|
1322
|
-
return take(output, {
|
|
1323
|
-
CloudWatchLogGroupArn: __expectString,
|
|
1324
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1325
|
-
CurrentTaskExecutionArn: __expectString,
|
|
1326
|
-
DestinationLocationArn: __expectString,
|
|
1327
|
-
DestinationNetworkInterfaceArns: _json,
|
|
1328
|
-
ErrorCode: __expectString,
|
|
1329
|
-
ErrorDetail: __expectString,
|
|
1330
|
-
Excludes: _json,
|
|
1331
|
-
Includes: _json,
|
|
1332
|
-
ManifestConfig: _json,
|
|
1333
|
-
Name: __expectString,
|
|
1334
|
-
Options: _json,
|
|
1335
|
-
Schedule: _json,
|
|
1336
|
-
ScheduleDetails: (_) => de_TaskScheduleDetails(_, context),
|
|
1337
|
-
SourceLocationArn: __expectString,
|
|
1338
|
-
SourceNetworkInterfaceArns: _json,
|
|
1339
|
-
Status: __expectString,
|
|
1340
|
-
TaskArn: __expectString,
|
|
1341
|
-
TaskMode: __expectString,
|
|
1342
|
-
TaskReportConfig: _json,
|
|
1343
|
-
});
|
|
1344
|
-
};
|
|
1345
|
-
const de_TaskScheduleDetails = (output, context) => {
|
|
1346
|
-
return take(output, {
|
|
1347
|
-
DisabledBy: __expectString,
|
|
1348
|
-
DisabledReason: __expectString,
|
|
1349
|
-
StatusUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1350
|
-
});
|
|
1351
|
-
};
|
|
1352
|
-
const deserializeMetadata = (output) => ({
|
|
1353
|
-
httpStatusCode: output.statusCode,
|
|
1354
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1355
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1356
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1357
|
-
});
|
|
1358
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1359
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
1360
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1361
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1362
|
-
const contents = {
|
|
1363
|
-
protocol,
|
|
1364
|
-
hostname,
|
|
1365
|
-
port,
|
|
1366
|
-
method: "POST",
|
|
1367
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1368
|
-
headers,
|
|
1369
|
-
};
|
|
1370
|
-
if (resolvedHostname !== undefined) {
|
|
1371
|
-
contents.hostname = resolvedHostname;
|
|
1372
|
-
}
|
|
1373
|
-
if (body !== undefined) {
|
|
1374
|
-
contents.body = body;
|
|
1375
|
-
}
|
|
1376
|
-
return new __HttpRequest(contents);
|
|
1377
|
-
};
|
|
1378
|
-
function sharedHeaders(operation) {
|
|
1379
|
-
return {
|
|
1380
|
-
"content-type": "application/x-amz-json-1.1",
|
|
1381
|
-
"x-amz-target": `FmrsService.${operation}`,
|
|
1382
|
-
};
|
|
1383
|
-
}
|