@aws-sdk/client-glacier 3.476.0 → 3.477.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.
@@ -2,355 +2,223 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_GetVaultNotificationsCommand = exports.de_GetVaultLockCommand = exports.de_GetVaultAccessPolicyCommand = exports.de_GetJobOutputCommand = exports.de_GetDataRetrievalPolicyCommand = exports.de_DescribeVaultCommand = exports.de_DescribeJobCommand = exports.de_DeleteVaultNotificationsCommand = exports.de_DeleteVaultAccessPolicyCommand = exports.de_DeleteVaultCommand = exports.de_DeleteArchiveCommand = exports.de_CreateVaultCommand = exports.de_CompleteVaultLockCommand = exports.de_CompleteMultipartUploadCommand = exports.de_AddTagsToVaultCommand = exports.de_AbortVaultLockCommand = exports.de_AbortMultipartUploadCommand = exports.se_UploadMultipartPartCommand = exports.se_UploadArchiveCommand = exports.se_SetVaultNotificationsCommand = exports.se_SetVaultAccessPolicyCommand = exports.se_SetDataRetrievalPolicyCommand = exports.se_RemoveTagsFromVaultCommand = exports.se_PurchaseProvisionedCapacityCommand = exports.se_ListVaultsCommand = exports.se_ListTagsForVaultCommand = exports.se_ListProvisionedCapacityCommand = exports.se_ListPartsCommand = exports.se_ListMultipartUploadsCommand = exports.se_ListJobsCommand = exports.se_InitiateVaultLockCommand = exports.se_InitiateMultipartUploadCommand = exports.se_InitiateJobCommand = exports.se_GetVaultNotificationsCommand = exports.se_GetVaultLockCommand = exports.se_GetVaultAccessPolicyCommand = exports.se_GetJobOutputCommand = exports.se_GetDataRetrievalPolicyCommand = exports.se_DescribeVaultCommand = exports.se_DescribeJobCommand = exports.se_DeleteVaultNotificationsCommand = exports.se_DeleteVaultAccessPolicyCommand = exports.se_DeleteVaultCommand = exports.se_DeleteArchiveCommand = exports.se_CreateVaultCommand = exports.se_CompleteVaultLockCommand = exports.se_CompleteMultipartUploadCommand = exports.se_AddTagsToVaultCommand = exports.se_AbortVaultLockCommand = exports.se_AbortMultipartUploadCommand = void 0;
4
4
  exports.de_UploadMultipartPartCommand = exports.de_UploadArchiveCommand = exports.de_SetVaultNotificationsCommand = exports.de_SetVaultAccessPolicyCommand = exports.de_SetDataRetrievalPolicyCommand = exports.de_RemoveTagsFromVaultCommand = exports.de_PurchaseProvisionedCapacityCommand = exports.de_ListVaultsCommand = exports.de_ListTagsForVaultCommand = exports.de_ListProvisionedCapacityCommand = exports.de_ListPartsCommand = exports.de_ListMultipartUploadsCommand = exports.de_ListJobsCommand = exports.de_InitiateVaultLockCommand = exports.de_InitiateMultipartUploadCommand = exports.de_InitiateJobCommand = void 0;
5
- const protocol_http_1 = require("@smithy/protocol-http");
5
+ const core_1 = require("@smithy/core");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  const GlacierServiceException_1 = require("../models/GlacierServiceException");
8
8
  const models_0_1 = require("../models/models_0");
9
9
  const se_AbortMultipartUploadCommand = async (input, context) => {
10
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
+ const b = (0, core_1.requestBuilder)(input, context);
11
11
  const headers = {};
12
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
13
- "/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}";
14
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
15
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
16
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "uploadId", () => input.uploadId, "{uploadId}", false);
12
+ b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}");
13
+ b.p("accountId", () => input.accountId, "{accountId}", false);
14
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
15
+ b.p("uploadId", () => input.uploadId, "{uploadId}", false);
17
16
  let body;
18
- return new protocol_http_1.HttpRequest({
19
- protocol,
20
- hostname,
21
- port,
22
- method: "DELETE",
23
- headers,
24
- path: resolvedPath,
25
- body,
26
- });
17
+ b.m("DELETE").h(headers).b(body);
18
+ return b.build();
27
19
  };
28
20
  exports.se_AbortMultipartUploadCommand = se_AbortMultipartUploadCommand;
29
21
  const se_AbortVaultLockCommand = async (input, context) => {
30
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
22
+ const b = (0, core_1.requestBuilder)(input, context);
31
23
  const headers = {};
32
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
33
- "/{accountId}/vaults/{vaultName}/lock-policy";
34
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
35
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
24
+ b.bp("/{accountId}/vaults/{vaultName}/lock-policy");
25
+ b.p("accountId", () => input.accountId, "{accountId}", false);
26
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
36
27
  let body;
37
- return new protocol_http_1.HttpRequest({
38
- protocol,
39
- hostname,
40
- port,
41
- method: "DELETE",
42
- headers,
43
- path: resolvedPath,
44
- body,
45
- });
28
+ b.m("DELETE").h(headers).b(body);
29
+ return b.build();
46
30
  };
47
31
  exports.se_AbortVaultLockCommand = se_AbortVaultLockCommand;
48
32
  const se_AddTagsToVaultCommand = async (input, context) => {
49
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
33
+ const b = (0, core_1.requestBuilder)(input, context);
50
34
  const headers = {
51
35
  "content-type": "application/json",
52
36
  };
53
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}/tags";
54
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
55
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
37
+ b.bp("/{accountId}/vaults/{vaultName}/tags");
38
+ b.p("accountId", () => input.accountId, "{accountId}", false);
39
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
56
40
  const query = (0, smithy_client_1.map)({
57
- operation: [, "add"],
41
+ [_o]: [, "add"],
58
42
  });
59
43
  let body;
60
44
  body = JSON.stringify((0, smithy_client_1.take)(input, {
61
45
  Tags: (_) => (0, smithy_client_1._json)(_),
62
46
  }));
63
- return new protocol_http_1.HttpRequest({
64
- protocol,
65
- hostname,
66
- port,
67
- method: "POST",
68
- headers,
69
- path: resolvedPath,
70
- query,
71
- body,
72
- });
47
+ b.m("POST").h(headers).q(query).b(body);
48
+ return b.build();
73
49
  };
74
50
  exports.se_AddTagsToVaultCommand = se_AddTagsToVaultCommand;
75
51
  const se_CompleteMultipartUploadCommand = async (input, context) => {
76
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
52
+ const b = (0, core_1.requestBuilder)(input, context);
77
53
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
78
- "x-amz-archive-size": input.archiveSize,
79
- "x-amz-sha256-tree-hash": input.checksum,
80
- });
81
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
82
- "/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}";
83
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
84
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
85
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "uploadId", () => input.uploadId, "{uploadId}", false);
86
- let body;
87
- return new protocol_http_1.HttpRequest({
88
- protocol,
89
- hostname,
90
- port,
91
- method: "POST",
92
- headers,
93
- path: resolvedPath,
94
- body,
54
+ [_xaas]: input[_aS],
55
+ [_xasth]: input[_c],
95
56
  });
57
+ b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}");
58
+ b.p("accountId", () => input.accountId, "{accountId}", false);
59
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
60
+ b.p("uploadId", () => input.uploadId, "{uploadId}", false);
61
+ let body;
62
+ b.m("POST").h(headers).b(body);
63
+ return b.build();
96
64
  };
97
65
  exports.se_CompleteMultipartUploadCommand = se_CompleteMultipartUploadCommand;
98
66
  const se_CompleteVaultLockCommand = async (input, context) => {
99
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
67
+ const b = (0, core_1.requestBuilder)(input, context);
100
68
  const headers = {};
101
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
102
- "/{accountId}/vaults/{vaultName}/lock-policy/{lockId}";
103
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
104
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
105
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "lockId", () => input.lockId, "{lockId}", false);
69
+ b.bp("/{accountId}/vaults/{vaultName}/lock-policy/{lockId}");
70
+ b.p("accountId", () => input.accountId, "{accountId}", false);
71
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
72
+ b.p("lockId", () => input.lockId, "{lockId}", false);
106
73
  let body;
107
- return new protocol_http_1.HttpRequest({
108
- protocol,
109
- hostname,
110
- port,
111
- method: "POST",
112
- headers,
113
- path: resolvedPath,
114
- body,
115
- });
74
+ b.m("POST").h(headers).b(body);
75
+ return b.build();
116
76
  };
117
77
  exports.se_CompleteVaultLockCommand = se_CompleteVaultLockCommand;
118
78
  const se_CreateVaultCommand = async (input, context) => {
119
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
79
+ const b = (0, core_1.requestBuilder)(input, context);
120
80
  const headers = {};
121
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}";
122
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
123
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
81
+ b.bp("/{accountId}/vaults/{vaultName}");
82
+ b.p("accountId", () => input.accountId, "{accountId}", false);
83
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
124
84
  let body;
125
- return new protocol_http_1.HttpRequest({
126
- protocol,
127
- hostname,
128
- port,
129
- method: "PUT",
130
- headers,
131
- path: resolvedPath,
132
- body,
133
- });
85
+ b.m("PUT").h(headers).b(body);
86
+ return b.build();
134
87
  };
135
88
  exports.se_CreateVaultCommand = se_CreateVaultCommand;
136
89
  const se_DeleteArchiveCommand = async (input, context) => {
137
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
90
+ const b = (0, core_1.requestBuilder)(input, context);
138
91
  const headers = {};
139
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
140
- "/{accountId}/vaults/{vaultName}/archives/{archiveId}";
141
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
142
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
143
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "archiveId", () => input.archiveId, "{archiveId}", false);
92
+ b.bp("/{accountId}/vaults/{vaultName}/archives/{archiveId}");
93
+ b.p("accountId", () => input.accountId, "{accountId}", false);
94
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
95
+ b.p("archiveId", () => input.archiveId, "{archiveId}", false);
144
96
  let body;
145
- return new protocol_http_1.HttpRequest({
146
- protocol,
147
- hostname,
148
- port,
149
- method: "DELETE",
150
- headers,
151
- path: resolvedPath,
152
- body,
153
- });
97
+ b.m("DELETE").h(headers).b(body);
98
+ return b.build();
154
99
  };
155
100
  exports.se_DeleteArchiveCommand = se_DeleteArchiveCommand;
156
101
  const se_DeleteVaultCommand = async (input, context) => {
157
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
102
+ const b = (0, core_1.requestBuilder)(input, context);
158
103
  const headers = {};
159
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}";
160
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
161
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
104
+ b.bp("/{accountId}/vaults/{vaultName}");
105
+ b.p("accountId", () => input.accountId, "{accountId}", false);
106
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
162
107
  let body;
163
- return new protocol_http_1.HttpRequest({
164
- protocol,
165
- hostname,
166
- port,
167
- method: "DELETE",
168
- headers,
169
- path: resolvedPath,
170
- body,
171
- });
108
+ b.m("DELETE").h(headers).b(body);
109
+ return b.build();
172
110
  };
173
111
  exports.se_DeleteVaultCommand = se_DeleteVaultCommand;
174
112
  const se_DeleteVaultAccessPolicyCommand = async (input, context) => {
175
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
113
+ const b = (0, core_1.requestBuilder)(input, context);
176
114
  const headers = {};
177
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
178
- "/{accountId}/vaults/{vaultName}/access-policy";
179
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
180
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
115
+ b.bp("/{accountId}/vaults/{vaultName}/access-policy");
116
+ b.p("accountId", () => input.accountId, "{accountId}", false);
117
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
181
118
  let body;
182
- return new protocol_http_1.HttpRequest({
183
- protocol,
184
- hostname,
185
- port,
186
- method: "DELETE",
187
- headers,
188
- path: resolvedPath,
189
- body,
190
- });
119
+ b.m("DELETE").h(headers).b(body);
120
+ return b.build();
191
121
  };
192
122
  exports.se_DeleteVaultAccessPolicyCommand = se_DeleteVaultAccessPolicyCommand;
193
123
  const se_DeleteVaultNotificationsCommand = async (input, context) => {
194
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
124
+ const b = (0, core_1.requestBuilder)(input, context);
195
125
  const headers = {};
196
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
197
- "/{accountId}/vaults/{vaultName}/notification-configuration";
198
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
199
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
126
+ b.bp("/{accountId}/vaults/{vaultName}/notification-configuration");
127
+ b.p("accountId", () => input.accountId, "{accountId}", false);
128
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
200
129
  let body;
201
- return new protocol_http_1.HttpRequest({
202
- protocol,
203
- hostname,
204
- port,
205
- method: "DELETE",
206
- headers,
207
- path: resolvedPath,
208
- body,
209
- });
130
+ b.m("DELETE").h(headers).b(body);
131
+ return b.build();
210
132
  };
211
133
  exports.se_DeleteVaultNotificationsCommand = se_DeleteVaultNotificationsCommand;
212
134
  const se_DescribeJobCommand = async (input, context) => {
213
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
135
+ const b = (0, core_1.requestBuilder)(input, context);
214
136
  const headers = {};
215
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
216
- "/{accountId}/vaults/{vaultName}/jobs/{jobId}";
217
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
218
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
219
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
137
+ b.bp("/{accountId}/vaults/{vaultName}/jobs/{jobId}");
138
+ b.p("accountId", () => input.accountId, "{accountId}", false);
139
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
140
+ b.p("jobId", () => input.jobId, "{jobId}", false);
220
141
  let body;
221
- return new protocol_http_1.HttpRequest({
222
- protocol,
223
- hostname,
224
- port,
225
- method: "GET",
226
- headers,
227
- path: resolvedPath,
228
- body,
229
- });
142
+ b.m("GET").h(headers).b(body);
143
+ return b.build();
230
144
  };
231
145
  exports.se_DescribeJobCommand = se_DescribeJobCommand;
232
146
  const se_DescribeVaultCommand = async (input, context) => {
233
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
147
+ const b = (0, core_1.requestBuilder)(input, context);
234
148
  const headers = {};
235
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}";
236
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
237
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
149
+ b.bp("/{accountId}/vaults/{vaultName}");
150
+ b.p("accountId", () => input.accountId, "{accountId}", false);
151
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
238
152
  let body;
239
- return new protocol_http_1.HttpRequest({
240
- protocol,
241
- hostname,
242
- port,
243
- method: "GET",
244
- headers,
245
- path: resolvedPath,
246
- body,
247
- });
153
+ b.m("GET").h(headers).b(body);
154
+ return b.build();
248
155
  };
249
156
  exports.se_DescribeVaultCommand = se_DescribeVaultCommand;
250
157
  const se_GetDataRetrievalPolicyCommand = async (input, context) => {
251
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
158
+ const b = (0, core_1.requestBuilder)(input, context);
252
159
  const headers = {};
253
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/policies/data-retrieval";
254
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
160
+ b.bp("/{accountId}/policies/data-retrieval");
161
+ b.p("accountId", () => input.accountId, "{accountId}", false);
255
162
  let body;
256
- return new protocol_http_1.HttpRequest({
257
- protocol,
258
- hostname,
259
- port,
260
- method: "GET",
261
- headers,
262
- path: resolvedPath,
263
- body,
264
- });
163
+ b.m("GET").h(headers).b(body);
164
+ return b.build();
265
165
  };
266
166
  exports.se_GetDataRetrievalPolicyCommand = se_GetDataRetrievalPolicyCommand;
267
167
  const se_GetJobOutputCommand = async (input, context) => {
268
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
168
+ const b = (0, core_1.requestBuilder)(input, context);
269
169
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
270
- range: input.range,
170
+ [_r]: input[_r],
271
171
  });
272
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
273
- "/{accountId}/vaults/{vaultName}/jobs/{jobId}/output";
274
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
275
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
276
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
172
+ b.bp("/{accountId}/vaults/{vaultName}/jobs/{jobId}/output");
173
+ b.p("accountId", () => input.accountId, "{accountId}", false);
174
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
175
+ b.p("jobId", () => input.jobId, "{jobId}", false);
277
176
  let body;
278
- return new protocol_http_1.HttpRequest({
279
- protocol,
280
- hostname,
281
- port,
282
- method: "GET",
283
- headers,
284
- path: resolvedPath,
285
- body,
286
- });
177
+ b.m("GET").h(headers).b(body);
178
+ return b.build();
287
179
  };
288
180
  exports.se_GetJobOutputCommand = se_GetJobOutputCommand;
289
181
  const se_GetVaultAccessPolicyCommand = async (input, context) => {
290
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
182
+ const b = (0, core_1.requestBuilder)(input, context);
291
183
  const headers = {};
292
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
293
- "/{accountId}/vaults/{vaultName}/access-policy";
294
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
295
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
184
+ b.bp("/{accountId}/vaults/{vaultName}/access-policy");
185
+ b.p("accountId", () => input.accountId, "{accountId}", false);
186
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
296
187
  let body;
297
- return new protocol_http_1.HttpRequest({
298
- protocol,
299
- hostname,
300
- port,
301
- method: "GET",
302
- headers,
303
- path: resolvedPath,
304
- body,
305
- });
188
+ b.m("GET").h(headers).b(body);
189
+ return b.build();
306
190
  };
307
191
  exports.se_GetVaultAccessPolicyCommand = se_GetVaultAccessPolicyCommand;
308
192
  const se_GetVaultLockCommand = async (input, context) => {
309
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
193
+ const b = (0, core_1.requestBuilder)(input, context);
310
194
  const headers = {};
311
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
312
- "/{accountId}/vaults/{vaultName}/lock-policy";
313
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
314
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
195
+ b.bp("/{accountId}/vaults/{vaultName}/lock-policy");
196
+ b.p("accountId", () => input.accountId, "{accountId}", false);
197
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
315
198
  let body;
316
- return new protocol_http_1.HttpRequest({
317
- protocol,
318
- hostname,
319
- port,
320
- method: "GET",
321
- headers,
322
- path: resolvedPath,
323
- body,
324
- });
199
+ b.m("GET").h(headers).b(body);
200
+ return b.build();
325
201
  };
326
202
  exports.se_GetVaultLockCommand = se_GetVaultLockCommand;
327
203
  const se_GetVaultNotificationsCommand = async (input, context) => {
328
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
204
+ const b = (0, core_1.requestBuilder)(input, context);
329
205
  const headers = {};
330
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
331
- "/{accountId}/vaults/{vaultName}/notification-configuration";
332
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
333
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
206
+ b.bp("/{accountId}/vaults/{vaultName}/notification-configuration");
207
+ b.p("accountId", () => input.accountId, "{accountId}", false);
208
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
334
209
  let body;
335
- return new protocol_http_1.HttpRequest({
336
- protocol,
337
- hostname,
338
- port,
339
- method: "GET",
340
- headers,
341
- path: resolvedPath,
342
- body,
343
- });
210
+ b.m("GET").h(headers).b(body);
211
+ return b.build();
344
212
  };
345
213
  exports.se_GetVaultNotificationsCommand = se_GetVaultNotificationsCommand;
346
214
  const se_InitiateJobCommand = async (input, context) => {
347
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
215
+ const b = (0, core_1.requestBuilder)(input, context);
348
216
  const headers = {
349
217
  "content-type": "application/json",
350
218
  };
351
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}/jobs";
352
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
353
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
219
+ b.bp("/{accountId}/vaults/{vaultName}/jobs");
220
+ b.p("accountId", () => input.accountId, "{accountId}", false);
221
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
354
222
  let body;
355
223
  if (input.jobParameters !== undefined) {
356
224
  body = (0, smithy_client_1._json)(input.jobParameters);
@@ -359,48 +227,32 @@ const se_InitiateJobCommand = async (input, context) => {
359
227
  body = {};
360
228
  }
361
229
  body = JSON.stringify(body);
362
- return new protocol_http_1.HttpRequest({
363
- protocol,
364
- hostname,
365
- port,
366
- method: "POST",
367
- headers,
368
- path: resolvedPath,
369
- body,
370
- });
230
+ b.m("POST").h(headers).b(body);
231
+ return b.build();
371
232
  };
372
233
  exports.se_InitiateJobCommand = se_InitiateJobCommand;
373
234
  const se_InitiateMultipartUploadCommand = async (input, context) => {
374
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
235
+ const b = (0, core_1.requestBuilder)(input, context);
375
236
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
376
- "x-amz-archive-description": input.archiveDescription,
377
- "x-amz-part-size": input.partSize,
237
+ [_xaad]: input[_aD],
238
+ [_xaps]: input[_pS],
378
239
  });
379
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
380
- "/{accountId}/vaults/{vaultName}/multipart-uploads";
381
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
382
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
240
+ b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads");
241
+ b.p("accountId", () => input.accountId, "{accountId}", false);
242
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
383
243
  let body;
384
- return new protocol_http_1.HttpRequest({
385
- protocol,
386
- hostname,
387
- port,
388
- method: "POST",
389
- headers,
390
- path: resolvedPath,
391
- body,
392
- });
244
+ b.m("POST").h(headers).b(body);
245
+ return b.build();
393
246
  };
394
247
  exports.se_InitiateMultipartUploadCommand = se_InitiateMultipartUploadCommand;
395
248
  const se_InitiateVaultLockCommand = async (input, context) => {
396
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
249
+ const b = (0, core_1.requestBuilder)(input, context);
397
250
  const headers = {
398
251
  "content-type": "application/json",
399
252
  };
400
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
401
- "/{accountId}/vaults/{vaultName}/lock-policy";
402
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
403
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
253
+ b.bp("/{accountId}/vaults/{vaultName}/lock-policy");
254
+ b.p("accountId", () => input.accountId, "{accountId}", false);
255
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
404
256
  let body;
405
257
  if (input.policy !== undefined) {
406
258
  body = (0, smithy_client_1._json)(input.policy);
@@ -409,223 +261,145 @@ const se_InitiateVaultLockCommand = async (input, context) => {
409
261
  body = {};
410
262
  }
411
263
  body = JSON.stringify(body);
412
- return new protocol_http_1.HttpRequest({
413
- protocol,
414
- hostname,
415
- port,
416
- method: "POST",
417
- headers,
418
- path: resolvedPath,
419
- body,
420
- });
264
+ b.m("POST").h(headers).b(body);
265
+ return b.build();
421
266
  };
422
267
  exports.se_InitiateVaultLockCommand = se_InitiateVaultLockCommand;
423
268
  const se_ListJobsCommand = async (input, context) => {
424
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
269
+ const b = (0, core_1.requestBuilder)(input, context);
425
270
  const headers = {};
426
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}/jobs";
427
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
428
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
271
+ b.bp("/{accountId}/vaults/{vaultName}/jobs");
272
+ b.p("accountId", () => input.accountId, "{accountId}", false);
273
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
429
274
  const query = (0, smithy_client_1.map)({
430
- limit: [() => input.limit !== void 0, () => input.limit.toString()],
431
- marker: [, input.marker],
432
- statuscode: [, input.statuscode],
433
- completed: [, input.completed],
275
+ [_l]: [() => input.limit !== void 0, () => input[_l].toString()],
276
+ [_m]: [, input[_m]],
277
+ [_s]: [, input[_s]],
278
+ [_co]: [, input[_co]],
434
279
  });
435
280
  let body;
436
- return new protocol_http_1.HttpRequest({
437
- protocol,
438
- hostname,
439
- port,
440
- method: "GET",
441
- headers,
442
- path: resolvedPath,
443
- query,
444
- body,
445
- });
281
+ b.m("GET").h(headers).q(query).b(body);
282
+ return b.build();
446
283
  };
447
284
  exports.se_ListJobsCommand = se_ListJobsCommand;
448
285
  const se_ListMultipartUploadsCommand = async (input, context) => {
449
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
286
+ const b = (0, core_1.requestBuilder)(input, context);
450
287
  const headers = {};
451
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
452
- "/{accountId}/vaults/{vaultName}/multipart-uploads";
453
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
454
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
288
+ b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads");
289
+ b.p("accountId", () => input.accountId, "{accountId}", false);
290
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
455
291
  const query = (0, smithy_client_1.map)({
456
- limit: [() => input.limit !== void 0, () => input.limit.toString()],
457
- marker: [, input.marker],
292
+ [_l]: [() => input.limit !== void 0, () => input[_l].toString()],
293
+ [_m]: [, input[_m]],
458
294
  });
459
295
  let body;
460
- return new protocol_http_1.HttpRequest({
461
- protocol,
462
- hostname,
463
- port,
464
- method: "GET",
465
- headers,
466
- path: resolvedPath,
467
- query,
468
- body,
469
- });
296
+ b.m("GET").h(headers).q(query).b(body);
297
+ return b.build();
470
298
  };
471
299
  exports.se_ListMultipartUploadsCommand = se_ListMultipartUploadsCommand;
472
300
  const se_ListPartsCommand = async (input, context) => {
473
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
301
+ const b = (0, core_1.requestBuilder)(input, context);
474
302
  const headers = {};
475
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
476
- "/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}";
477
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
478
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
479
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "uploadId", () => input.uploadId, "{uploadId}", false);
303
+ b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}");
304
+ b.p("accountId", () => input.accountId, "{accountId}", false);
305
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
306
+ b.p("uploadId", () => input.uploadId, "{uploadId}", false);
480
307
  const query = (0, smithy_client_1.map)({
481
- marker: [, input.marker],
482
- limit: [() => input.limit !== void 0, () => input.limit.toString()],
308
+ [_m]: [, input[_m]],
309
+ [_l]: [() => input.limit !== void 0, () => input[_l].toString()],
483
310
  });
484
311
  let body;
485
- return new protocol_http_1.HttpRequest({
486
- protocol,
487
- hostname,
488
- port,
489
- method: "GET",
490
- headers,
491
- path: resolvedPath,
492
- query,
493
- body,
494
- });
312
+ b.m("GET").h(headers).q(query).b(body);
313
+ return b.build();
495
314
  };
496
315
  exports.se_ListPartsCommand = se_ListPartsCommand;
497
316
  const se_ListProvisionedCapacityCommand = async (input, context) => {
498
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
317
+ const b = (0, core_1.requestBuilder)(input, context);
499
318
  const headers = {};
500
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/provisioned-capacity";
501
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
319
+ b.bp("/{accountId}/provisioned-capacity");
320
+ b.p("accountId", () => input.accountId, "{accountId}", false);
502
321
  let body;
503
- return new protocol_http_1.HttpRequest({
504
- protocol,
505
- hostname,
506
- port,
507
- method: "GET",
508
- headers,
509
- path: resolvedPath,
510
- body,
511
- });
322
+ b.m("GET").h(headers).b(body);
323
+ return b.build();
512
324
  };
513
325
  exports.se_ListProvisionedCapacityCommand = se_ListProvisionedCapacityCommand;
514
326
  const se_ListTagsForVaultCommand = async (input, context) => {
515
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
327
+ const b = (0, core_1.requestBuilder)(input, context);
516
328
  const headers = {};
517
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}/tags";
518
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
519
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
329
+ b.bp("/{accountId}/vaults/{vaultName}/tags");
330
+ b.p("accountId", () => input.accountId, "{accountId}", false);
331
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
520
332
  let body;
521
- return new protocol_http_1.HttpRequest({
522
- protocol,
523
- hostname,
524
- port,
525
- method: "GET",
526
- headers,
527
- path: resolvedPath,
528
- body,
529
- });
333
+ b.m("GET").h(headers).b(body);
334
+ return b.build();
530
335
  };
531
336
  exports.se_ListTagsForVaultCommand = se_ListTagsForVaultCommand;
532
337
  const se_ListVaultsCommand = async (input, context) => {
533
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
338
+ const b = (0, core_1.requestBuilder)(input, context);
534
339
  const headers = {};
535
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults";
536
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
340
+ b.bp("/{accountId}/vaults");
341
+ b.p("accountId", () => input.accountId, "{accountId}", false);
537
342
  const query = (0, smithy_client_1.map)({
538
- marker: [, input.marker],
539
- limit: [() => input.limit !== void 0, () => input.limit.toString()],
343
+ [_m]: [, input[_m]],
344
+ [_l]: [() => input.limit !== void 0, () => input[_l].toString()],
540
345
  });
541
346
  let body;
542
- return new protocol_http_1.HttpRequest({
543
- protocol,
544
- hostname,
545
- port,
546
- method: "GET",
547
- headers,
548
- path: resolvedPath,
549
- query,
550
- body,
551
- });
347
+ b.m("GET").h(headers).q(query).b(body);
348
+ return b.build();
552
349
  };
553
350
  exports.se_ListVaultsCommand = se_ListVaultsCommand;
554
351
  const se_PurchaseProvisionedCapacityCommand = async (input, context) => {
555
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
352
+ const b = (0, core_1.requestBuilder)(input, context);
556
353
  const headers = {};
557
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/provisioned-capacity";
558
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
354
+ b.bp("/{accountId}/provisioned-capacity");
355
+ b.p("accountId", () => input.accountId, "{accountId}", false);
559
356
  let body;
560
- return new protocol_http_1.HttpRequest({
561
- protocol,
562
- hostname,
563
- port,
564
- method: "POST",
565
- headers,
566
- path: resolvedPath,
567
- body,
568
- });
357
+ b.m("POST").h(headers).b(body);
358
+ return b.build();
569
359
  };
570
360
  exports.se_PurchaseProvisionedCapacityCommand = se_PurchaseProvisionedCapacityCommand;
571
361
  const se_RemoveTagsFromVaultCommand = async (input, context) => {
572
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
362
+ const b = (0, core_1.requestBuilder)(input, context);
573
363
  const headers = {
574
364
  "content-type": "application/json",
575
365
  };
576
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}/tags";
577
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
578
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
366
+ b.bp("/{accountId}/vaults/{vaultName}/tags");
367
+ b.p("accountId", () => input.accountId, "{accountId}", false);
368
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
579
369
  const query = (0, smithy_client_1.map)({
580
- operation: [, "remove"],
370
+ [_o]: [, "remove"],
581
371
  });
582
372
  let body;
583
373
  body = JSON.stringify((0, smithy_client_1.take)(input, {
584
374
  TagKeys: (_) => (0, smithy_client_1._json)(_),
585
375
  }));
586
- return new protocol_http_1.HttpRequest({
587
- protocol,
588
- hostname,
589
- port,
590
- method: "POST",
591
- headers,
592
- path: resolvedPath,
593
- query,
594
- body,
595
- });
376
+ b.m("POST").h(headers).q(query).b(body);
377
+ return b.build();
596
378
  };
597
379
  exports.se_RemoveTagsFromVaultCommand = se_RemoveTagsFromVaultCommand;
598
380
  const se_SetDataRetrievalPolicyCommand = async (input, context) => {
599
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
381
+ const b = (0, core_1.requestBuilder)(input, context);
600
382
  const headers = {
601
383
  "content-type": "application/json",
602
384
  };
603
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/policies/data-retrieval";
604
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
385
+ b.bp("/{accountId}/policies/data-retrieval");
386
+ b.p("accountId", () => input.accountId, "{accountId}", false);
605
387
  let body;
606
388
  body = JSON.stringify((0, smithy_client_1.take)(input, {
607
389
  Policy: (_) => (0, smithy_client_1._json)(_),
608
390
  }));
609
- return new protocol_http_1.HttpRequest({
610
- protocol,
611
- hostname,
612
- port,
613
- method: "PUT",
614
- headers,
615
- path: resolvedPath,
616
- body,
617
- });
391
+ b.m("PUT").h(headers).b(body);
392
+ return b.build();
618
393
  };
619
394
  exports.se_SetDataRetrievalPolicyCommand = se_SetDataRetrievalPolicyCommand;
620
395
  const se_SetVaultAccessPolicyCommand = async (input, context) => {
621
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
396
+ const b = (0, core_1.requestBuilder)(input, context);
622
397
  const headers = {
623
398
  "content-type": "application/json",
624
399
  };
625
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
626
- "/{accountId}/vaults/{vaultName}/access-policy";
627
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
628
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
400
+ b.bp("/{accountId}/vaults/{vaultName}/access-policy");
401
+ b.p("accountId", () => input.accountId, "{accountId}", false);
402
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
629
403
  let body;
630
404
  if (input.policy !== undefined) {
631
405
  body = (0, smithy_client_1._json)(input.policy);
@@ -634,26 +408,18 @@ const se_SetVaultAccessPolicyCommand = async (input, context) => {
634
408
  body = {};
635
409
  }
636
410
  body = JSON.stringify(body);
637
- return new protocol_http_1.HttpRequest({
638
- protocol,
639
- hostname,
640
- port,
641
- method: "PUT",
642
- headers,
643
- path: resolvedPath,
644
- body,
645
- });
411
+ b.m("PUT").h(headers).b(body);
412
+ return b.build();
646
413
  };
647
414
  exports.se_SetVaultAccessPolicyCommand = se_SetVaultAccessPolicyCommand;
648
415
  const se_SetVaultNotificationsCommand = async (input, context) => {
649
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
416
+ const b = (0, core_1.requestBuilder)(input, context);
650
417
  const headers = {
651
418
  "content-type": "application/json",
652
419
  };
653
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
654
- "/{accountId}/vaults/{vaultName}/notification-configuration";
655
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
656
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
420
+ b.bp("/{accountId}/vaults/{vaultName}/notification-configuration");
421
+ b.p("accountId", () => input.accountId, "{accountId}", false);
422
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
657
423
  let body;
658
424
  if (input.vaultNotificationConfig !== undefined) {
659
425
  body = (0, smithy_client_1._json)(input.vaultNotificationConfig);
@@ -662,67 +428,45 @@ const se_SetVaultNotificationsCommand = async (input, context) => {
662
428
  body = {};
663
429
  }
664
430
  body = JSON.stringify(body);
665
- return new protocol_http_1.HttpRequest({
666
- protocol,
667
- hostname,
668
- port,
669
- method: "PUT",
670
- headers,
671
- path: resolvedPath,
672
- body,
673
- });
431
+ b.m("PUT").h(headers).b(body);
432
+ return b.build();
674
433
  };
675
434
  exports.se_SetVaultNotificationsCommand = se_SetVaultNotificationsCommand;
676
435
  const se_UploadArchiveCommand = async (input, context) => {
677
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
436
+ const b = (0, core_1.requestBuilder)(input, context);
678
437
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
679
438
  "content-type": "application/octet-stream",
680
- "x-amz-archive-description": input.archiveDescription,
681
- "x-amz-sha256-tree-hash": input.checksum,
439
+ [_xaad]: input[_aD],
440
+ [_xasth]: input[_c],
682
441
  });
683
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/{accountId}/vaults/{vaultName}/archives";
684
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
685
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
442
+ b.bp("/{accountId}/vaults/{vaultName}/archives");
443
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
444
+ b.p("accountId", () => input.accountId, "{accountId}", false);
686
445
  let body;
687
446
  if (input.body !== undefined) {
688
447
  body = input.body;
689
448
  }
690
- return new protocol_http_1.HttpRequest({
691
- protocol,
692
- hostname,
693
- port,
694
- method: "POST",
695
- headers,
696
- path: resolvedPath,
697
- body,
698
- });
449
+ b.m("POST").h(headers).b(body);
450
+ return b.build();
699
451
  };
700
452
  exports.se_UploadArchiveCommand = se_UploadArchiveCommand;
701
453
  const se_UploadMultipartPartCommand = async (input, context) => {
702
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
454
+ const b = (0, core_1.requestBuilder)(input, context);
703
455
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
704
456
  "content-type": "application/octet-stream",
705
- "x-amz-sha256-tree-hash": input.checksum,
706
- "content-range": input.range,
707
- });
708
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
709
- "/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}";
710
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
711
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vaultName", () => input.vaultName, "{vaultName}", false);
712
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "uploadId", () => input.uploadId, "{uploadId}", false);
457
+ [_xasth]: input[_c],
458
+ [_cr]: input[_r],
459
+ });
460
+ b.bp("/{accountId}/vaults/{vaultName}/multipart-uploads/{uploadId}");
461
+ b.p("accountId", () => input.accountId, "{accountId}", false);
462
+ b.p("vaultName", () => input.vaultName, "{vaultName}", false);
463
+ b.p("uploadId", () => input.uploadId, "{uploadId}", false);
713
464
  let body;
714
465
  if (input.body !== undefined) {
715
466
  body = input.body;
716
467
  }
717
- return new protocol_http_1.HttpRequest({
718
- protocol,
719
- hostname,
720
- port,
721
- method: "PUT",
722
- headers,
723
- path: resolvedPath,
724
- body,
725
- });
468
+ b.m("PUT").h(headers).b(body);
469
+ return b.build();
726
470
  };
727
471
  exports.se_UploadMultipartPartCommand = se_UploadMultipartPartCommand;
728
472
  const de_AbortMultipartUploadCommand = async (output, context) => {
@@ -851,9 +595,9 @@ const de_CompleteMultipartUploadCommand = async (output, context) => {
851
595
  }
852
596
  const contents = (0, smithy_client_1.map)({
853
597
  $metadata: deserializeMetadata(output),
854
- location: [, output.headers["location"]],
855
- checksum: [, output.headers["x-amz-sha256-tree-hash"]],
856
- archiveId: [, output.headers["x-amz-archive-id"]],
598
+ [_lo]: [, output.headers[_lo]],
599
+ [_c]: [, output.headers[_xasth]],
600
+ [_aI]: [, output.headers[_xaai]],
857
601
  });
858
602
  await (0, smithy_client_1.collectBody)(output.body, context);
859
603
  return contents;
@@ -932,7 +676,7 @@ const de_CreateVaultCommand = async (output, context) => {
932
676
  }
933
677
  const contents = (0, smithy_client_1.map)({
934
678
  $metadata: deserializeMetadata(output),
935
- location: [, output.headers["location"]],
679
+ [_lo]: [, output.headers[_lo]],
936
680
  });
937
681
  await (0, smithy_client_1.collectBody)(output.body, context);
938
682
  return contents;
@@ -1279,11 +1023,11 @@ const de_GetJobOutputCommand = async (output, context) => {
1279
1023
  }
1280
1024
  const contents = (0, smithy_client_1.map)({
1281
1025
  $metadata: deserializeMetadata(output),
1282
- checksum: [, output.headers["x-amz-sha256-tree-hash"]],
1283
- contentRange: [, output.headers["content-range"]],
1284
- acceptRanges: [, output.headers["accept-ranges"]],
1285
- contentType: [, output.headers["content-type"]],
1286
- archiveDescription: [, output.headers["x-amz-archive-description"]],
1026
+ [_c]: [, output.headers[_xasth]],
1027
+ [_cR]: [, output.headers[_cr]],
1028
+ [_aR]: [, output.headers[_ar]],
1029
+ [_cT]: [, output.headers[_ct]],
1030
+ [_aD]: [, output.headers[_xaad]],
1287
1031
  });
1288
1032
  const data = output.body;
1289
1033
  context.sdkStreamMixin(data);
@@ -1454,9 +1198,9 @@ const de_InitiateJobCommand = async (output, context) => {
1454
1198
  }
1455
1199
  const contents = (0, smithy_client_1.map)({
1456
1200
  $metadata: deserializeMetadata(output),
1457
- location: [, output.headers["location"]],
1458
- jobId: [, output.headers["x-amz-job-id"]],
1459
- jobOutputPath: [, output.headers["x-amz-job-output-path"]],
1201
+ [_lo]: [, output.headers[_lo]],
1202
+ [_jI]: [, output.headers[_xaji]],
1203
+ [_jOP]: [, output.headers[_xajop]],
1460
1204
  });
1461
1205
  await (0, smithy_client_1.collectBody)(output.body, context);
1462
1206
  return contents;
@@ -1502,8 +1246,8 @@ const de_InitiateMultipartUploadCommand = async (output, context) => {
1502
1246
  }
1503
1247
  const contents = (0, smithy_client_1.map)({
1504
1248
  $metadata: deserializeMetadata(output),
1505
- location: [, output.headers["location"]],
1506
- uploadId: [, output.headers["x-amz-multipart-upload-id"]],
1249
+ [_lo]: [, output.headers[_lo]],
1250
+ [_uI]: [, output.headers[_xamui]],
1507
1251
  });
1508
1252
  await (0, smithy_client_1.collectBody)(output.body, context);
1509
1253
  return contents;
@@ -1543,7 +1287,7 @@ const de_InitiateVaultLockCommand = async (output, context) => {
1543
1287
  }
1544
1288
  const contents = (0, smithy_client_1.map)({
1545
1289
  $metadata: deserializeMetadata(output),
1546
- lockId: [, output.headers["x-amz-lock-id"]],
1290
+ [_lI]: [, output.headers[_xali]],
1547
1291
  });
1548
1292
  await (0, smithy_client_1.collectBody)(output.body, context);
1549
1293
  return contents;
@@ -1847,7 +1591,7 @@ const de_PurchaseProvisionedCapacityCommand = async (output, context) => {
1847
1591
  }
1848
1592
  const contents = (0, smithy_client_1.map)({
1849
1593
  $metadata: deserializeMetadata(output),
1850
- capacityId: [, output.headers["x-amz-capacity-id"]],
1594
+ [_cI]: [, output.headers[_xaci]],
1851
1595
  });
1852
1596
  await (0, smithy_client_1.collectBody)(output.body, context);
1853
1597
  return contents;
@@ -2040,9 +1784,9 @@ const de_UploadArchiveCommand = async (output, context) => {
2040
1784
  }
2041
1785
  const contents = (0, smithy_client_1.map)({
2042
1786
  $metadata: deserializeMetadata(output),
2043
- location: [, output.headers["location"]],
2044
- checksum: [, output.headers["x-amz-sha256-tree-hash"]],
2045
- archiveId: [, output.headers["x-amz-archive-id"]],
1787
+ [_lo]: [, output.headers[_lo]],
1788
+ [_c]: [, output.headers[_xasth]],
1789
+ [_aI]: [, output.headers[_xaai]],
2046
1790
  });
2047
1791
  await (0, smithy_client_1.collectBody)(output.body, context);
2048
1792
  return contents;
@@ -2085,7 +1829,7 @@ const de_UploadMultipartPartCommand = async (output, context) => {
2085
1829
  }
2086
1830
  const contents = (0, smithy_client_1.map)({
2087
1831
  $metadata: deserializeMetadata(output),
2088
- checksum: [, output.headers["x-amz-sha256-tree-hash"]],
1832
+ [_c]: [, output.headers[_xasth]],
2089
1833
  });
2090
1834
  await (0, smithy_client_1.collectBody)(output.body, context);
2091
1835
  return contents;
@@ -2255,6 +1999,39 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
2255
1999
  value !== "" &&
2256
2000
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
2257
2001
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
2002
+ const _aD = "archiveDescription";
2003
+ const _aI = "archiveId";
2004
+ const _aR = "acceptRanges";
2005
+ const _aS = "archiveSize";
2006
+ const _ar = "accept-ranges";
2007
+ const _c = "checksum";
2008
+ const _cI = "capacityId";
2009
+ const _cR = "contentRange";
2010
+ const _cT = "contentType";
2011
+ const _co = "completed";
2012
+ const _cr = "content-range";
2013
+ const _ct = "content-type";
2014
+ const _jI = "jobId";
2015
+ const _jOP = "jobOutputPath";
2016
+ const _l = "limit";
2017
+ const _lI = "lockId";
2018
+ const _lo = "location";
2019
+ const _m = "marker";
2020
+ const _o = "operation";
2021
+ const _pS = "partSize";
2022
+ const _r = "range";
2023
+ const _s = "statuscode";
2024
+ const _uI = "uploadId";
2025
+ const _xaad = "x-amz-archive-description";
2026
+ const _xaai = "x-amz-archive-id";
2027
+ const _xaas = "x-amz-archive-size";
2028
+ const _xaci = "x-amz-capacity-id";
2029
+ const _xaji = "x-amz-job-id";
2030
+ const _xajop = "x-amz-job-output-path";
2031
+ const _xali = "x-amz-lock-id";
2032
+ const _xamui = "x-amz-multipart-upload-id";
2033
+ const _xaps = "x-amz-part-size";
2034
+ const _xasth = "x-amz-sha256-tree-hash";
2258
2035
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2259
2036
  if (encoded.length) {
2260
2037
  return JSON.parse(encoded);