@aws-sdk/client-backup 3.200.0 → 3.202.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist-cjs/endpoint/EndpointParameters.js +2 -3
- package/dist-cjs/protocols/Aws_restJson1.js +78 -87
- package/dist-cjs/runtimeConfig.browser.js +16 -16
- package/dist-cjs/runtimeConfig.js +20 -19
- package/dist-cjs/runtimeConfig.native.js +1 -2
- package/dist-cjs/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.202.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.201.0...v3.202.0) (2022-11-02)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-backup
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.201.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.200.0...v3.201.0) (2022-11-01)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* end support for Node.js 12.x ([#4123](https://github.com/aws/aws-sdk-js-v3/issues/4123)) ([83f913e](https://github.com/aws/aws-sdk-js-v3/commit/83f913ec2ac3878d8726c6964f585550dc5caf3e))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [3.200.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.199.0...v3.200.0) (2022-10-31)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @aws-sdk/client-backup
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveClientEndpointParameters = void 0;
|
|
4
4
|
const resolveClientEndpointParameters = (options) => {
|
|
5
|
-
var _a, _b;
|
|
6
5
|
return {
|
|
7
6
|
...options,
|
|
8
|
-
useDualstackEndpoint:
|
|
9
|
-
useFipsEndpoint:
|
|
7
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
8
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
10
9
|
defaultSigningName: "backup",
|
|
11
10
|
};
|
|
12
11
|
};
|
|
@@ -13,7 +13,7 @@ const serializeAws_restJson1CreateBackupPlanCommand = async (input, context) =>
|
|
|
13
13
|
const headers = {
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
|
-
const resolvedPath = `${
|
|
16
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup/plans";
|
|
17
17
|
let body;
|
|
18
18
|
body = JSON.stringify({
|
|
19
19
|
...(input.BackupPlan != null && { BackupPlan: serializeAws_restJson1BackupPlanInput(input.BackupPlan, context) }),
|
|
@@ -36,7 +36,7 @@ const serializeAws_restJson1CreateBackupSelectionCommand = async (input, context
|
|
|
36
36
|
const headers = {
|
|
37
37
|
"content-type": "application/json",
|
|
38
38
|
};
|
|
39
|
-
let resolvedPath = `${
|
|
39
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup/plans/{BackupPlanId}/selections";
|
|
40
40
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupPlanId", () => input.BackupPlanId, "{BackupPlanId}", false);
|
|
41
41
|
let body;
|
|
42
42
|
body = JSON.stringify({
|
|
@@ -61,7 +61,7 @@ const serializeAws_restJson1CreateBackupVaultCommand = async (input, context) =>
|
|
|
61
61
|
const headers = {
|
|
62
62
|
"content-type": "application/json",
|
|
63
63
|
};
|
|
64
|
-
let resolvedPath = `${
|
|
64
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup-vaults/{BackupVaultName}";
|
|
65
65
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
|
|
66
66
|
let body;
|
|
67
67
|
body = JSON.stringify({
|
|
@@ -83,12 +83,11 @@ const serializeAws_restJson1CreateBackupVaultCommand = async (input, context) =>
|
|
|
83
83
|
};
|
|
84
84
|
exports.serializeAws_restJson1CreateBackupVaultCommand = serializeAws_restJson1CreateBackupVaultCommand;
|
|
85
85
|
const serializeAws_restJson1CreateFrameworkCommand = async (input, context) => {
|
|
86
|
-
var _a;
|
|
87
86
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
88
87
|
const headers = {
|
|
89
88
|
"content-type": "application/json",
|
|
90
89
|
};
|
|
91
|
-
const resolvedPath = `${
|
|
90
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/frameworks";
|
|
92
91
|
let body;
|
|
93
92
|
body = JSON.stringify({
|
|
94
93
|
...(input.FrameworkControls != null && {
|
|
@@ -99,7 +98,7 @@ const serializeAws_restJson1CreateFrameworkCommand = async (input, context) => {
|
|
|
99
98
|
...(input.FrameworkTags != null && {
|
|
100
99
|
FrameworkTags: serializeAws_restJson1stringMap(input.FrameworkTags, context),
|
|
101
100
|
}),
|
|
102
|
-
IdempotencyToken:
|
|
101
|
+
IdempotencyToken: input.IdempotencyToken ?? (0, uuid_1.v4)(),
|
|
103
102
|
});
|
|
104
103
|
return new protocol_http_1.HttpRequest({
|
|
105
104
|
protocol,
|
|
@@ -113,15 +112,14 @@ const serializeAws_restJson1CreateFrameworkCommand = async (input, context) => {
|
|
|
113
112
|
};
|
|
114
113
|
exports.serializeAws_restJson1CreateFrameworkCommand = serializeAws_restJson1CreateFrameworkCommand;
|
|
115
114
|
const serializeAws_restJson1CreateReportPlanCommand = async (input, context) => {
|
|
116
|
-
var _a;
|
|
117
115
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
118
116
|
const headers = {
|
|
119
117
|
"content-type": "application/json",
|
|
120
118
|
};
|
|
121
|
-
const resolvedPath = `${
|
|
119
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/report-plans";
|
|
122
120
|
let body;
|
|
123
121
|
body = JSON.stringify({
|
|
124
|
-
IdempotencyToken:
|
|
122
|
+
IdempotencyToken: input.IdempotencyToken ?? (0, uuid_1.v4)(),
|
|
125
123
|
...(input.ReportDeliveryChannel != null && {
|
|
126
124
|
ReportDeliveryChannel: serializeAws_restJson1ReportDeliveryChannel(input.ReportDeliveryChannel, context),
|
|
127
125
|
}),
|
|
@@ -148,7 +146,7 @@ exports.serializeAws_restJson1CreateReportPlanCommand = serializeAws_restJson1Cr
|
|
|
148
146
|
const serializeAws_restJson1DeleteBackupPlanCommand = async (input, context) => {
|
|
149
147
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
150
148
|
const headers = {};
|
|
151
|
-
let resolvedPath = `${
|
|
149
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup/plans/{BackupPlanId}";
|
|
152
150
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupPlanId", () => input.BackupPlanId, "{BackupPlanId}", false);
|
|
153
151
|
let body;
|
|
154
152
|
return new protocol_http_1.HttpRequest({
|
|
@@ -165,7 +163,7 @@ exports.serializeAws_restJson1DeleteBackupPlanCommand = serializeAws_restJson1De
|
|
|
165
163
|
const serializeAws_restJson1DeleteBackupSelectionCommand = async (input, context) => {
|
|
166
164
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
167
165
|
const headers = {};
|
|
168
|
-
let resolvedPath = `${
|
|
166
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
169
167
|
"/backup/plans/{BackupPlanId}/selections/{SelectionId}";
|
|
170
168
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupPlanId", () => input.BackupPlanId, "{BackupPlanId}", false);
|
|
171
169
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SelectionId", () => input.SelectionId, "{SelectionId}", false);
|
|
@@ -184,7 +182,7 @@ exports.serializeAws_restJson1DeleteBackupSelectionCommand = serializeAws_restJs
|
|
|
184
182
|
const serializeAws_restJson1DeleteBackupVaultCommand = async (input, context) => {
|
|
185
183
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
186
184
|
const headers = {};
|
|
187
|
-
let resolvedPath = `${
|
|
185
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup-vaults/{BackupVaultName}";
|
|
188
186
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
|
|
189
187
|
let body;
|
|
190
188
|
return new protocol_http_1.HttpRequest({
|
|
@@ -201,7 +199,7 @@ exports.serializeAws_restJson1DeleteBackupVaultCommand = serializeAws_restJson1D
|
|
|
201
199
|
const serializeAws_restJson1DeleteBackupVaultAccessPolicyCommand = async (input, context) => {
|
|
202
200
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
203
201
|
const headers = {};
|
|
204
|
-
let resolvedPath = `${
|
|
202
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
205
203
|
"/backup-vaults/{BackupVaultName}/access-policy";
|
|
206
204
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
|
|
207
205
|
let body;
|
|
@@ -219,7 +217,7 @@ exports.serializeAws_restJson1DeleteBackupVaultAccessPolicyCommand = serializeAw
|
|
|
219
217
|
const serializeAws_restJson1DeleteBackupVaultLockConfigurationCommand = async (input, context) => {
|
|
220
218
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
221
219
|
const headers = {};
|
|
222
|
-
let resolvedPath = `${
|
|
220
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
223
221
|
"/backup-vaults/{BackupVaultName}/vault-lock";
|
|
224
222
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
|
|
225
223
|
let body;
|
|
@@ -237,7 +235,7 @@ exports.serializeAws_restJson1DeleteBackupVaultLockConfigurationCommand = serial
|
|
|
237
235
|
const serializeAws_restJson1DeleteBackupVaultNotificationsCommand = async (input, context) => {
|
|
238
236
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
239
237
|
const headers = {};
|
|
240
|
-
let resolvedPath = `${
|
|
238
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
241
239
|
"/backup-vaults/{BackupVaultName}/notification-configuration";
|
|
242
240
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
|
|
243
241
|
let body;
|
|
@@ -255,7 +253,7 @@ exports.serializeAws_restJson1DeleteBackupVaultNotificationsCommand = serializeA
|
|
|
255
253
|
const serializeAws_restJson1DeleteFrameworkCommand = async (input, context) => {
|
|
256
254
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
257
255
|
const headers = {};
|
|
258
|
-
let resolvedPath = `${
|
|
256
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/frameworks/{FrameworkName}";
|
|
259
257
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FrameworkName", () => input.FrameworkName, "{FrameworkName}", false);
|
|
260
258
|
let body;
|
|
261
259
|
return new protocol_http_1.HttpRequest({
|
|
@@ -272,7 +270,7 @@ exports.serializeAws_restJson1DeleteFrameworkCommand = serializeAws_restJson1Del
|
|
|
272
270
|
const serializeAws_restJson1DeleteRecoveryPointCommand = async (input, context) => {
|
|
273
271
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
274
272
|
const headers = {};
|
|
275
|
-
let resolvedPath = `${
|
|
273
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
276
274
|
"/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}";
|
|
277
275
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
|
|
278
276
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RecoveryPointArn", () => input.RecoveryPointArn, "{RecoveryPointArn}", false);
|
|
@@ -291,7 +289,7 @@ exports.serializeAws_restJson1DeleteRecoveryPointCommand = serializeAws_restJson
|
|
|
291
289
|
const serializeAws_restJson1DeleteReportPlanCommand = async (input, context) => {
|
|
292
290
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
293
291
|
const headers = {};
|
|
294
|
-
let resolvedPath = `${
|
|
292
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/report-plans/{ReportPlanName}";
|
|
295
293
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ReportPlanName", () => input.ReportPlanName, "{ReportPlanName}", false);
|
|
296
294
|
let body;
|
|
297
295
|
return new protocol_http_1.HttpRequest({
|
|
@@ -308,7 +306,7 @@ exports.serializeAws_restJson1DeleteReportPlanCommand = serializeAws_restJson1De
|
|
|
308
306
|
const serializeAws_restJson1DescribeBackupJobCommand = async (input, context) => {
|
|
309
307
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
310
308
|
const headers = {};
|
|
311
|
-
let resolvedPath = `${
|
|
309
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup-jobs/{BackupJobId}";
|
|
312
310
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupJobId", () => input.BackupJobId, "{BackupJobId}", false);
|
|
313
311
|
let body;
|
|
314
312
|
return new protocol_http_1.HttpRequest({
|
|
@@ -325,7 +323,7 @@ exports.serializeAws_restJson1DescribeBackupJobCommand = serializeAws_restJson1D
|
|
|
325
323
|
const serializeAws_restJson1DescribeBackupVaultCommand = async (input, context) => {
|
|
326
324
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
327
325
|
const headers = {};
|
|
328
|
-
let resolvedPath = `${
|
|
326
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup-vaults/{BackupVaultName}";
|
|
329
327
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
|
|
330
328
|
let body;
|
|
331
329
|
return new protocol_http_1.HttpRequest({
|
|
@@ -342,7 +340,7 @@ exports.serializeAws_restJson1DescribeBackupVaultCommand = serializeAws_restJson
|
|
|
342
340
|
const serializeAws_restJson1DescribeCopyJobCommand = async (input, context) => {
|
|
343
341
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
344
342
|
const headers = {};
|
|
345
|
-
let resolvedPath = `${
|
|
343
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/copy-jobs/{CopyJobId}";
|
|
346
344
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CopyJobId", () => input.CopyJobId, "{CopyJobId}", false);
|
|
347
345
|
let body;
|
|
348
346
|
return new protocol_http_1.HttpRequest({
|
|
@@ -359,7 +357,7 @@ exports.serializeAws_restJson1DescribeCopyJobCommand = serializeAws_restJson1Des
|
|
|
359
357
|
const serializeAws_restJson1DescribeFrameworkCommand = async (input, context) => {
|
|
360
358
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
361
359
|
const headers = {};
|
|
362
|
-
let resolvedPath = `${
|
|
360
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/frameworks/{FrameworkName}";
|
|
363
361
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FrameworkName", () => input.FrameworkName, "{FrameworkName}", false);
|
|
364
362
|
let body;
|
|
365
363
|
return new protocol_http_1.HttpRequest({
|
|
@@ -378,7 +376,7 @@ const serializeAws_restJson1DescribeGlobalSettingsCommand = async (input, contex
|
|
|
378
376
|
const headers = {
|
|
379
377
|
"content-type": "application/json",
|
|
380
378
|
};
|
|
381
|
-
const resolvedPath = `${
|
|
379
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/global-settings";
|
|
382
380
|
let body;
|
|
383
381
|
body = "";
|
|
384
382
|
return new protocol_http_1.HttpRequest({
|
|
@@ -395,7 +393,7 @@ exports.serializeAws_restJson1DescribeGlobalSettingsCommand = serializeAws_restJ
|
|
|
395
393
|
const serializeAws_restJson1DescribeProtectedResourceCommand = async (input, context) => {
|
|
396
394
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
397
395
|
const headers = {};
|
|
398
|
-
let resolvedPath = `${
|
|
396
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resources/{ResourceArn}";
|
|
399
397
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
400
398
|
let body;
|
|
401
399
|
return new protocol_http_1.HttpRequest({
|
|
@@ -412,7 +410,7 @@ exports.serializeAws_restJson1DescribeProtectedResourceCommand = serializeAws_re
|
|
|
412
410
|
const serializeAws_restJson1DescribeRecoveryPointCommand = async (input, context) => {
|
|
413
411
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
414
412
|
const headers = {};
|
|
415
|
-
let resolvedPath = `${
|
|
413
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
416
414
|
"/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}";
|
|
417
415
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
|
|
418
416
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RecoveryPointArn", () => input.RecoveryPointArn, "{RecoveryPointArn}", false);
|
|
@@ -433,7 +431,7 @@ const serializeAws_restJson1DescribeRegionSettingsCommand = async (input, contex
|
|
|
433
431
|
const headers = {
|
|
434
432
|
"content-type": "application/json",
|
|
435
433
|
};
|
|
436
|
-
const resolvedPath = `${
|
|
434
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/account-settings";
|
|
437
435
|
let body;
|
|
438
436
|
body = "";
|
|
439
437
|
return new protocol_http_1.HttpRequest({
|
|
@@ -450,7 +448,7 @@ exports.serializeAws_restJson1DescribeRegionSettingsCommand = serializeAws_restJ
|
|
|
450
448
|
const serializeAws_restJson1DescribeReportJobCommand = async (input, context) => {
|
|
451
449
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
452
450
|
const headers = {};
|
|
453
|
-
let resolvedPath = `${
|
|
451
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/report-jobs/{ReportJobId}";
|
|
454
452
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ReportJobId", () => input.ReportJobId, "{ReportJobId}", false);
|
|
455
453
|
let body;
|
|
456
454
|
return new protocol_http_1.HttpRequest({
|
|
@@ -467,7 +465,7 @@ exports.serializeAws_restJson1DescribeReportJobCommand = serializeAws_restJson1D
|
|
|
467
465
|
const serializeAws_restJson1DescribeReportPlanCommand = async (input, context) => {
|
|
468
466
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
469
467
|
const headers = {};
|
|
470
|
-
let resolvedPath = `${
|
|
468
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/report-plans/{ReportPlanName}";
|
|
471
469
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ReportPlanName", () => input.ReportPlanName, "{ReportPlanName}", false);
|
|
472
470
|
let body;
|
|
473
471
|
return new protocol_http_1.HttpRequest({
|
|
@@ -484,7 +482,7 @@ exports.serializeAws_restJson1DescribeReportPlanCommand = serializeAws_restJson1
|
|
|
484
482
|
const serializeAws_restJson1DescribeRestoreJobCommand = async (input, context) => {
|
|
485
483
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
486
484
|
const headers = {};
|
|
487
|
-
let resolvedPath = `${
|
|
485
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restore-jobs/{RestoreJobId}";
|
|
488
486
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RestoreJobId", () => input.RestoreJobId, "{RestoreJobId}", false);
|
|
489
487
|
let body;
|
|
490
488
|
return new protocol_http_1.HttpRequest({
|
|
@@ -501,7 +499,7 @@ exports.serializeAws_restJson1DescribeRestoreJobCommand = serializeAws_restJson1
|
|
|
501
499
|
const serializeAws_restJson1DisassociateRecoveryPointCommand = async (input, context) => {
|
|
502
500
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
503
501
|
const headers = {};
|
|
504
|
-
let resolvedPath = `${
|
|
502
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
505
503
|
"/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}/disassociate";
|
|
506
504
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
|
|
507
505
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RecoveryPointArn", () => input.RecoveryPointArn, "{RecoveryPointArn}", false);
|
|
@@ -520,7 +518,7 @@ exports.serializeAws_restJson1DisassociateRecoveryPointCommand = serializeAws_re
|
|
|
520
518
|
const serializeAws_restJson1ExportBackupPlanTemplateCommand = async (input, context) => {
|
|
521
519
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
522
520
|
const headers = {};
|
|
523
|
-
let resolvedPath = `${
|
|
521
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup/plans/{BackupPlanId}/toTemplate";
|
|
524
522
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupPlanId", () => input.BackupPlanId, "{BackupPlanId}", false);
|
|
525
523
|
let body;
|
|
526
524
|
return new protocol_http_1.HttpRequest({
|
|
@@ -537,7 +535,7 @@ exports.serializeAws_restJson1ExportBackupPlanTemplateCommand = serializeAws_res
|
|
|
537
535
|
const serializeAws_restJson1GetBackupPlanCommand = async (input, context) => {
|
|
538
536
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
539
537
|
const headers = {};
|
|
540
|
-
let resolvedPath = `${
|
|
538
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup/plans/{BackupPlanId}";
|
|
541
539
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupPlanId", () => input.BackupPlanId, "{BackupPlanId}", false);
|
|
542
540
|
const query = map({
|
|
543
541
|
versionId: [, input.VersionId],
|
|
@@ -560,7 +558,7 @@ const serializeAws_restJson1GetBackupPlanFromJSONCommand = async (input, context
|
|
|
560
558
|
const headers = {
|
|
561
559
|
"content-type": "application/json",
|
|
562
560
|
};
|
|
563
|
-
const resolvedPath = `${
|
|
561
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup/template/json/toPlan";
|
|
564
562
|
let body;
|
|
565
563
|
body = JSON.stringify({
|
|
566
564
|
...(input.BackupPlanTemplateJson != null && { BackupPlanTemplateJson: input.BackupPlanTemplateJson }),
|
|
@@ -579,7 +577,7 @@ exports.serializeAws_restJson1GetBackupPlanFromJSONCommand = serializeAws_restJs
|
|
|
579
577
|
const serializeAws_restJson1GetBackupPlanFromTemplateCommand = async (input, context) => {
|
|
580
578
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
581
579
|
const headers = {};
|
|
582
|
-
let resolvedPath = `${
|
|
580
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
583
581
|
"/backup/template/plans/{BackupPlanTemplateId}/toPlan";
|
|
584
582
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupPlanTemplateId", () => input.BackupPlanTemplateId, "{BackupPlanTemplateId}", false);
|
|
585
583
|
let body;
|
|
@@ -597,7 +595,7 @@ exports.serializeAws_restJson1GetBackupPlanFromTemplateCommand = serializeAws_re
|
|
|
597
595
|
const serializeAws_restJson1GetBackupSelectionCommand = async (input, context) => {
|
|
598
596
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
599
597
|
const headers = {};
|
|
600
|
-
let resolvedPath = `${
|
|
598
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
601
599
|
"/backup/plans/{BackupPlanId}/selections/{SelectionId}";
|
|
602
600
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupPlanId", () => input.BackupPlanId, "{BackupPlanId}", false);
|
|
603
601
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SelectionId", () => input.SelectionId, "{SelectionId}", false);
|
|
@@ -616,7 +614,7 @@ exports.serializeAws_restJson1GetBackupSelectionCommand = serializeAws_restJson1
|
|
|
616
614
|
const serializeAws_restJson1GetBackupVaultAccessPolicyCommand = async (input, context) => {
|
|
617
615
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
618
616
|
const headers = {};
|
|
619
|
-
let resolvedPath = `${
|
|
617
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
620
618
|
"/backup-vaults/{BackupVaultName}/access-policy";
|
|
621
619
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
|
|
622
620
|
let body;
|
|
@@ -634,7 +632,7 @@ exports.serializeAws_restJson1GetBackupVaultAccessPolicyCommand = serializeAws_r
|
|
|
634
632
|
const serializeAws_restJson1GetBackupVaultNotificationsCommand = async (input, context) => {
|
|
635
633
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
636
634
|
const headers = {};
|
|
637
|
-
let resolvedPath = `${
|
|
635
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
638
636
|
"/backup-vaults/{BackupVaultName}/notification-configuration";
|
|
639
637
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
|
|
640
638
|
let body;
|
|
@@ -652,7 +650,7 @@ exports.serializeAws_restJson1GetBackupVaultNotificationsCommand = serializeAws_
|
|
|
652
650
|
const serializeAws_restJson1GetRecoveryPointRestoreMetadataCommand = async (input, context) => {
|
|
653
651
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
654
652
|
const headers = {};
|
|
655
|
-
let resolvedPath = `${
|
|
653
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
656
654
|
"/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}/restore-metadata";
|
|
657
655
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
|
|
658
656
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RecoveryPointArn", () => input.RecoveryPointArn, "{RecoveryPointArn}", false);
|
|
@@ -673,7 +671,7 @@ const serializeAws_restJson1GetSupportedResourceTypesCommand = async (input, con
|
|
|
673
671
|
const headers = {
|
|
674
672
|
"content-type": "application/json",
|
|
675
673
|
};
|
|
676
|
-
const resolvedPath = `${
|
|
674
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/supported-resource-types";
|
|
677
675
|
let body;
|
|
678
676
|
body = "";
|
|
679
677
|
return new protocol_http_1.HttpRequest({
|
|
@@ -690,7 +688,7 @@ exports.serializeAws_restJson1GetSupportedResourceTypesCommand = serializeAws_re
|
|
|
690
688
|
const serializeAws_restJson1ListBackupJobsCommand = async (input, context) => {
|
|
691
689
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
692
690
|
const headers = {};
|
|
693
|
-
const resolvedPath = `${
|
|
691
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup-jobs";
|
|
694
692
|
const query = map({
|
|
695
693
|
nextToken: [, input.NextToken],
|
|
696
694
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
@@ -732,7 +730,7 @@ exports.serializeAws_restJson1ListBackupJobsCommand = serializeAws_restJson1List
|
|
|
732
730
|
const serializeAws_restJson1ListBackupPlansCommand = async (input, context) => {
|
|
733
731
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
734
732
|
const headers = {};
|
|
735
|
-
const resolvedPath = `${
|
|
733
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup/plans";
|
|
736
734
|
const query = map({
|
|
737
735
|
nextToken: [, input.NextToken],
|
|
738
736
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
@@ -754,7 +752,7 @@ exports.serializeAws_restJson1ListBackupPlansCommand = serializeAws_restJson1Lis
|
|
|
754
752
|
const serializeAws_restJson1ListBackupPlanTemplatesCommand = async (input, context) => {
|
|
755
753
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
756
754
|
const headers = {};
|
|
757
|
-
const resolvedPath = `${
|
|
755
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup/template/plans";
|
|
758
756
|
const query = map({
|
|
759
757
|
nextToken: [, input.NextToken],
|
|
760
758
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
@@ -775,7 +773,7 @@ exports.serializeAws_restJson1ListBackupPlanTemplatesCommand = serializeAws_rest
|
|
|
775
773
|
const serializeAws_restJson1ListBackupPlanVersionsCommand = async (input, context) => {
|
|
776
774
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
777
775
|
const headers = {};
|
|
778
|
-
let resolvedPath = `${
|
|
776
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup/plans/{BackupPlanId}/versions";
|
|
779
777
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupPlanId", () => input.BackupPlanId, "{BackupPlanId}", false);
|
|
780
778
|
const query = map({
|
|
781
779
|
nextToken: [, input.NextToken],
|
|
@@ -797,7 +795,7 @@ exports.serializeAws_restJson1ListBackupPlanVersionsCommand = serializeAws_restJ
|
|
|
797
795
|
const serializeAws_restJson1ListBackupSelectionsCommand = async (input, context) => {
|
|
798
796
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
799
797
|
const headers = {};
|
|
800
|
-
let resolvedPath = `${
|
|
798
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup/plans/{BackupPlanId}/selections";
|
|
801
799
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupPlanId", () => input.BackupPlanId, "{BackupPlanId}", false);
|
|
802
800
|
const query = map({
|
|
803
801
|
nextToken: [, input.NextToken],
|
|
@@ -819,7 +817,7 @@ exports.serializeAws_restJson1ListBackupSelectionsCommand = serializeAws_restJso
|
|
|
819
817
|
const serializeAws_restJson1ListBackupVaultsCommand = async (input, context) => {
|
|
820
818
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
821
819
|
const headers = {};
|
|
822
|
-
const resolvedPath = `${
|
|
820
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup-vaults";
|
|
823
821
|
const query = map({
|
|
824
822
|
nextToken: [, input.NextToken],
|
|
825
823
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
@@ -840,7 +838,7 @@ exports.serializeAws_restJson1ListBackupVaultsCommand = serializeAws_restJson1Li
|
|
|
840
838
|
const serializeAws_restJson1ListCopyJobsCommand = async (input, context) => {
|
|
841
839
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
842
840
|
const headers = {};
|
|
843
|
-
const resolvedPath = `${
|
|
841
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/copy-jobs";
|
|
844
842
|
const query = map({
|
|
845
843
|
nextToken: [, input.NextToken],
|
|
846
844
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
@@ -882,7 +880,7 @@ exports.serializeAws_restJson1ListCopyJobsCommand = serializeAws_restJson1ListCo
|
|
|
882
880
|
const serializeAws_restJson1ListFrameworksCommand = async (input, context) => {
|
|
883
881
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
884
882
|
const headers = {};
|
|
885
|
-
const resolvedPath = `${
|
|
883
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/frameworks";
|
|
886
884
|
const query = map({
|
|
887
885
|
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
888
886
|
NextToken: [, input.NextToken],
|
|
@@ -903,7 +901,7 @@ exports.serializeAws_restJson1ListFrameworksCommand = serializeAws_restJson1List
|
|
|
903
901
|
const serializeAws_restJson1ListProtectedResourcesCommand = async (input, context) => {
|
|
904
902
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
905
903
|
const headers = {};
|
|
906
|
-
const resolvedPath = `${
|
|
904
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resources";
|
|
907
905
|
const query = map({
|
|
908
906
|
nextToken: [, input.NextToken],
|
|
909
907
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
@@ -924,7 +922,7 @@ exports.serializeAws_restJson1ListProtectedResourcesCommand = serializeAws_restJ
|
|
|
924
922
|
const serializeAws_restJson1ListRecoveryPointsByBackupVaultCommand = async (input, context) => {
|
|
925
923
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
926
924
|
const headers = {};
|
|
927
|
-
let resolvedPath = `${
|
|
925
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
928
926
|
"/backup-vaults/{BackupVaultName}/recovery-points";
|
|
929
927
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
|
|
930
928
|
const query = map({
|
|
@@ -958,7 +956,7 @@ exports.serializeAws_restJson1ListRecoveryPointsByBackupVaultCommand = serialize
|
|
|
958
956
|
const serializeAws_restJson1ListRecoveryPointsByResourceCommand = async (input, context) => {
|
|
959
957
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
960
958
|
const headers = {};
|
|
961
|
-
let resolvedPath = `${
|
|
959
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resources/{ResourceArn}/recovery-points";
|
|
962
960
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
963
961
|
const query = map({
|
|
964
962
|
nextToken: [, input.NextToken],
|
|
@@ -980,7 +978,7 @@ exports.serializeAws_restJson1ListRecoveryPointsByResourceCommand = serializeAws
|
|
|
980
978
|
const serializeAws_restJson1ListReportJobsCommand = async (input, context) => {
|
|
981
979
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
982
980
|
const headers = {};
|
|
983
|
-
const resolvedPath = `${
|
|
981
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/report-jobs";
|
|
984
982
|
const query = map({
|
|
985
983
|
ReportPlanName: [, input.ByReportPlanName],
|
|
986
984
|
CreationBefore: [
|
|
@@ -1011,7 +1009,7 @@ exports.serializeAws_restJson1ListReportJobsCommand = serializeAws_restJson1List
|
|
|
1011
1009
|
const serializeAws_restJson1ListReportPlansCommand = async (input, context) => {
|
|
1012
1010
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1013
1011
|
const headers = {};
|
|
1014
|
-
const resolvedPath = `${
|
|
1012
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/report-plans";
|
|
1015
1013
|
const query = map({
|
|
1016
1014
|
MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
1017
1015
|
NextToken: [, input.NextToken],
|
|
@@ -1032,7 +1030,7 @@ exports.serializeAws_restJson1ListReportPlansCommand = serializeAws_restJson1Lis
|
|
|
1032
1030
|
const serializeAws_restJson1ListRestoreJobsCommand = async (input, context) => {
|
|
1033
1031
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1034
1032
|
const headers = {};
|
|
1035
|
-
const resolvedPath = `${
|
|
1033
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restore-jobs";
|
|
1036
1034
|
const query = map({
|
|
1037
1035
|
nextToken: [, input.NextToken],
|
|
1038
1036
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
@@ -1071,7 +1069,7 @@ exports.serializeAws_restJson1ListRestoreJobsCommand = serializeAws_restJson1Lis
|
|
|
1071
1069
|
const serializeAws_restJson1ListTagsCommand = async (input, context) => {
|
|
1072
1070
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1073
1071
|
const headers = {};
|
|
1074
|
-
let resolvedPath = `${
|
|
1072
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
1075
1073
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1076
1074
|
const query = map({
|
|
1077
1075
|
nextToken: [, input.NextToken],
|
|
@@ -1095,7 +1093,7 @@ const serializeAws_restJson1PutBackupVaultAccessPolicyCommand = async (input, co
|
|
|
1095
1093
|
const headers = {
|
|
1096
1094
|
"content-type": "application/json",
|
|
1097
1095
|
};
|
|
1098
|
-
let resolvedPath = `${
|
|
1096
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1099
1097
|
"/backup-vaults/{BackupVaultName}/access-policy";
|
|
1100
1098
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
|
|
1101
1099
|
let body;
|
|
@@ -1118,7 +1116,7 @@ const serializeAws_restJson1PutBackupVaultLockConfigurationCommand = async (inpu
|
|
|
1118
1116
|
const headers = {
|
|
1119
1117
|
"content-type": "application/json",
|
|
1120
1118
|
};
|
|
1121
|
-
let resolvedPath = `${
|
|
1119
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1122
1120
|
"/backup-vaults/{BackupVaultName}/vault-lock";
|
|
1123
1121
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
|
|
1124
1122
|
let body;
|
|
@@ -1143,7 +1141,7 @@ const serializeAws_restJson1PutBackupVaultNotificationsCommand = async (input, c
|
|
|
1143
1141
|
const headers = {
|
|
1144
1142
|
"content-type": "application/json",
|
|
1145
1143
|
};
|
|
1146
|
-
let resolvedPath = `${
|
|
1144
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1147
1145
|
"/backup-vaults/{BackupVaultName}/notification-configuration";
|
|
1148
1146
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
|
|
1149
1147
|
let body;
|
|
@@ -1169,7 +1167,7 @@ const serializeAws_restJson1StartBackupJobCommand = async (input, context) => {
|
|
|
1169
1167
|
const headers = {
|
|
1170
1168
|
"content-type": "application/json",
|
|
1171
1169
|
};
|
|
1172
|
-
const resolvedPath = `${
|
|
1170
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup-jobs";
|
|
1173
1171
|
let body;
|
|
1174
1172
|
body = JSON.stringify({
|
|
1175
1173
|
...(input.BackupOptions != null && {
|
|
@@ -1202,7 +1200,7 @@ const serializeAws_restJson1StartCopyJobCommand = async (input, context) => {
|
|
|
1202
1200
|
const headers = {
|
|
1203
1201
|
"content-type": "application/json",
|
|
1204
1202
|
};
|
|
1205
|
-
const resolvedPath = `${
|
|
1203
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/copy-jobs";
|
|
1206
1204
|
let body;
|
|
1207
1205
|
body = JSON.stringify({
|
|
1208
1206
|
...(input.DestinationBackupVaultArn != null && { DestinationBackupVaultArn: input.DestinationBackupVaultArn }),
|
|
@@ -1224,16 +1222,15 @@ const serializeAws_restJson1StartCopyJobCommand = async (input, context) => {
|
|
|
1224
1222
|
};
|
|
1225
1223
|
exports.serializeAws_restJson1StartCopyJobCommand = serializeAws_restJson1StartCopyJobCommand;
|
|
1226
1224
|
const serializeAws_restJson1StartReportJobCommand = async (input, context) => {
|
|
1227
|
-
var _a;
|
|
1228
1225
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1229
1226
|
const headers = {
|
|
1230
1227
|
"content-type": "application/json",
|
|
1231
1228
|
};
|
|
1232
|
-
let resolvedPath = `${
|
|
1229
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/report-jobs/{ReportPlanName}";
|
|
1233
1230
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ReportPlanName", () => input.ReportPlanName, "{ReportPlanName}", false);
|
|
1234
1231
|
let body;
|
|
1235
1232
|
body = JSON.stringify({
|
|
1236
|
-
IdempotencyToken:
|
|
1233
|
+
IdempotencyToken: input.IdempotencyToken ?? (0, uuid_1.v4)(),
|
|
1237
1234
|
});
|
|
1238
1235
|
return new protocol_http_1.HttpRequest({
|
|
1239
1236
|
protocol,
|
|
@@ -1251,7 +1248,7 @@ const serializeAws_restJson1StartRestoreJobCommand = async (input, context) => {
|
|
|
1251
1248
|
const headers = {
|
|
1252
1249
|
"content-type": "application/json",
|
|
1253
1250
|
};
|
|
1254
|
-
const resolvedPath = `${
|
|
1251
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restore-jobs";
|
|
1255
1252
|
let body;
|
|
1256
1253
|
body = JSON.stringify({
|
|
1257
1254
|
...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
|
|
@@ -1274,7 +1271,7 @@ exports.serializeAws_restJson1StartRestoreJobCommand = serializeAws_restJson1Sta
|
|
|
1274
1271
|
const serializeAws_restJson1StopBackupJobCommand = async (input, context) => {
|
|
1275
1272
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1276
1273
|
const headers = {};
|
|
1277
|
-
let resolvedPath = `${
|
|
1274
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup-jobs/{BackupJobId}";
|
|
1278
1275
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupJobId", () => input.BackupJobId, "{BackupJobId}", false);
|
|
1279
1276
|
let body;
|
|
1280
1277
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1293,7 +1290,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1293
1290
|
const headers = {
|
|
1294
1291
|
"content-type": "application/json",
|
|
1295
1292
|
};
|
|
1296
|
-
let resolvedPath = `${
|
|
1293
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
1297
1294
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1298
1295
|
let body;
|
|
1299
1296
|
body = JSON.stringify({
|
|
@@ -1315,7 +1312,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
1315
1312
|
const headers = {
|
|
1316
1313
|
"content-type": "application/json",
|
|
1317
1314
|
};
|
|
1318
|
-
let resolvedPath = `${
|
|
1315
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/untag/{ResourceArn}";
|
|
1319
1316
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1320
1317
|
let body;
|
|
1321
1318
|
body = JSON.stringify({
|
|
@@ -1337,7 +1334,7 @@ const serializeAws_restJson1UpdateBackupPlanCommand = async (input, context) =>
|
|
|
1337
1334
|
const headers = {
|
|
1338
1335
|
"content-type": "application/json",
|
|
1339
1336
|
};
|
|
1340
|
-
let resolvedPath = `${
|
|
1337
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup/plans/{BackupPlanId}";
|
|
1341
1338
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupPlanId", () => input.BackupPlanId, "{BackupPlanId}", false);
|
|
1342
1339
|
let body;
|
|
1343
1340
|
body = JSON.stringify({
|
|
@@ -1355,12 +1352,11 @@ const serializeAws_restJson1UpdateBackupPlanCommand = async (input, context) =>
|
|
|
1355
1352
|
};
|
|
1356
1353
|
exports.serializeAws_restJson1UpdateBackupPlanCommand = serializeAws_restJson1UpdateBackupPlanCommand;
|
|
1357
1354
|
const serializeAws_restJson1UpdateFrameworkCommand = async (input, context) => {
|
|
1358
|
-
var _a;
|
|
1359
1355
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1360
1356
|
const headers = {
|
|
1361
1357
|
"content-type": "application/json",
|
|
1362
1358
|
};
|
|
1363
|
-
let resolvedPath = `${
|
|
1359
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/frameworks/{FrameworkName}";
|
|
1364
1360
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FrameworkName", () => input.FrameworkName, "{FrameworkName}", false);
|
|
1365
1361
|
let body;
|
|
1366
1362
|
body = JSON.stringify({
|
|
@@ -1368,7 +1364,7 @@ const serializeAws_restJson1UpdateFrameworkCommand = async (input, context) => {
|
|
|
1368
1364
|
FrameworkControls: serializeAws_restJson1FrameworkControls(input.FrameworkControls, context),
|
|
1369
1365
|
}),
|
|
1370
1366
|
...(input.FrameworkDescription != null && { FrameworkDescription: input.FrameworkDescription }),
|
|
1371
|
-
IdempotencyToken:
|
|
1367
|
+
IdempotencyToken: input.IdempotencyToken ?? (0, uuid_1.v4)(),
|
|
1372
1368
|
});
|
|
1373
1369
|
return new protocol_http_1.HttpRequest({
|
|
1374
1370
|
protocol,
|
|
@@ -1386,7 +1382,7 @@ const serializeAws_restJson1UpdateGlobalSettingsCommand = async (input, context)
|
|
|
1386
1382
|
const headers = {
|
|
1387
1383
|
"content-type": "application/json",
|
|
1388
1384
|
};
|
|
1389
|
-
const resolvedPath = `${
|
|
1385
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/global-settings";
|
|
1390
1386
|
let body;
|
|
1391
1387
|
body = JSON.stringify({
|
|
1392
1388
|
...(input.GlobalSettings != null && {
|
|
@@ -1409,7 +1405,7 @@ const serializeAws_restJson1UpdateRecoveryPointLifecycleCommand = async (input,
|
|
|
1409
1405
|
const headers = {
|
|
1410
1406
|
"content-type": "application/json",
|
|
1411
1407
|
};
|
|
1412
|
-
let resolvedPath = `${
|
|
1408
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1413
1409
|
"/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}";
|
|
1414
1410
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
|
|
1415
1411
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RecoveryPointArn", () => input.RecoveryPointArn, "{RecoveryPointArn}", false);
|
|
@@ -1433,7 +1429,7 @@ const serializeAws_restJson1UpdateRegionSettingsCommand = async (input, context)
|
|
|
1433
1429
|
const headers = {
|
|
1434
1430
|
"content-type": "application/json",
|
|
1435
1431
|
};
|
|
1436
|
-
const resolvedPath = `${
|
|
1432
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/account-settings";
|
|
1437
1433
|
let body;
|
|
1438
1434
|
body = JSON.stringify({
|
|
1439
1435
|
...(input.ResourceTypeManagementPreference != null && {
|
|
@@ -1455,16 +1451,15 @@ const serializeAws_restJson1UpdateRegionSettingsCommand = async (input, context)
|
|
|
1455
1451
|
};
|
|
1456
1452
|
exports.serializeAws_restJson1UpdateRegionSettingsCommand = serializeAws_restJson1UpdateRegionSettingsCommand;
|
|
1457
1453
|
const serializeAws_restJson1UpdateReportPlanCommand = async (input, context) => {
|
|
1458
|
-
var _a;
|
|
1459
1454
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1460
1455
|
const headers = {
|
|
1461
1456
|
"content-type": "application/json",
|
|
1462
1457
|
};
|
|
1463
|
-
let resolvedPath = `${
|
|
1458
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/report-plans/{ReportPlanName}";
|
|
1464
1459
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ReportPlanName", () => input.ReportPlanName, "{ReportPlanName}", false);
|
|
1465
1460
|
let body;
|
|
1466
1461
|
body = JSON.stringify({
|
|
1467
|
-
IdempotencyToken:
|
|
1462
|
+
IdempotencyToken: input.IdempotencyToken ?? (0, uuid_1.v4)(),
|
|
1468
1463
|
...(input.ReportDeliveryChannel != null && {
|
|
1469
1464
|
ReportDeliveryChannel: serializeAws_restJson1ReportDeliveryChannel(input.ReportDeliveryChannel, context),
|
|
1470
1465
|
}),
|
|
@@ -5963,15 +5958,12 @@ const deserializeAws_restJson1Tags = (output, context) => {
|
|
|
5963
5958
|
};
|
|
5964
5959
|
}, {});
|
|
5965
5960
|
};
|
|
5966
|
-
const deserializeMetadata = (output) => {
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
5973
|
-
});
|
|
5974
|
-
};
|
|
5961
|
+
const deserializeMetadata = (output) => ({
|
|
5962
|
+
httpStatusCode: output.statusCode,
|
|
5963
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
5964
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
5965
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
5966
|
+
});
|
|
5975
5967
|
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
5976
5968
|
if (streamBody instanceof Uint8Array) {
|
|
5977
5969
|
return Promise.resolve(streamBody);
|
|
@@ -5991,9 +5983,8 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
5991
5983
|
return {};
|
|
5992
5984
|
});
|
|
5993
5985
|
const parseErrorBody = async (errorBody, context) => {
|
|
5994
|
-
var _a;
|
|
5995
5986
|
const value = await parseBody(errorBody, context);
|
|
5996
|
-
value.message =
|
|
5987
|
+
value.message = value.message ?? value.Message;
|
|
5997
5988
|
return value;
|
|
5998
5989
|
};
|
|
5999
5990
|
const loadRestJsonErrorCode = (output, data) => {
|
|
@@ -16,7 +16,6 @@ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
|
16
16
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
17
|
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
18
|
const getRuntimeConfig = (config) => {
|
|
19
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
19
|
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
20
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
21
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
@@ -25,21 +24,22 @@ const getRuntimeConfig = (config) => {
|
|
|
25
24
|
...config,
|
|
26
25
|
runtime: "browser",
|
|
27
26
|
defaultsMode,
|
|
28
|
-
base64Decoder:
|
|
29
|
-
base64Encoder:
|
|
30
|
-
bodyLengthChecker:
|
|
31
|
-
credentialDefaultProvider:
|
|
32
|
-
defaultUserAgentProvider:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
27
|
+
base64Decoder: config?.base64Decoder ?? util_base64_browser_1.fromBase64,
|
|
28
|
+
base64Encoder: config?.base64Encoder ?? util_base64_browser_1.toBase64,
|
|
29
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
30
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
31
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
32
|
+
(0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
|
+
maxAttempts: config?.maxAttempts ?? middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
+
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
|
+
requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
|
+
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
38
|
+
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
39
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
40
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
41
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_browser_1.fromUtf8,
|
|
42
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_browser_1.toUtf8,
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -19,7 +19,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
19
19
|
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
20
|
const smithy_client_2 = require("@aws-sdk/smithy-client");
|
|
21
21
|
const getRuntimeConfig = (config) => {
|
|
22
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
23
22
|
(0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
24
23
|
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
25
24
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
@@ -29,24 +28,26 @@ const getRuntimeConfig = (config) => {
|
|
|
29
28
|
...config,
|
|
30
29
|
runtime: "node",
|
|
31
30
|
defaultsMode,
|
|
32
|
-
base64Decoder:
|
|
33
|
-
base64Encoder:
|
|
34
|
-
bodyLengthChecker:
|
|
35
|
-
credentialDefaultProvider:
|
|
36
|
-
defaultUserAgentProvider:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
31
|
+
base64Decoder: config?.base64Decoder ?? util_base64_node_1.fromBase64,
|
|
32
|
+
base64Encoder: config?.base64Encoder ?? util_base64_node_1.toBase64,
|
|
33
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
34
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
35
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
36
|
+
(0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
37
|
+
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
38
|
+
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
39
|
+
requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
40
|
+
retryMode: config?.retryMode ??
|
|
41
|
+
(0, node_config_provider_1.loadConfig)({
|
|
42
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
43
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
44
|
+
}),
|
|
45
|
+
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
46
|
+
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
47
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
48
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
49
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_node_1.fromUtf8,
|
|
50
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_node_1.toUtf8,
|
|
50
51
|
};
|
|
51
52
|
};
|
|
52
53
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -4,13 +4,12 @@ exports.getRuntimeConfig = void 0;
|
|
|
4
4
|
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
|
-
var _a;
|
|
8
7
|
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
8
|
return {
|
|
10
9
|
...browserDefaults,
|
|
11
10
|
...config,
|
|
12
11
|
runtime: "react-native",
|
|
13
|
-
sha256:
|
|
12
|
+
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
|
14
13
|
};
|
|
15
14
|
};
|
|
16
15
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -3,15 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
5
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
6
|
-
const getRuntimeConfig = (config) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
|
|
15
|
-
});
|
|
16
|
-
};
|
|
6
|
+
const getRuntimeConfig = (config) => ({
|
|
7
|
+
apiVersion: "2018-11-15",
|
|
8
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
9
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
10
|
+
logger: config?.logger ?? {},
|
|
11
|
+
serviceId: config?.serviceId ?? "Backup",
|
|
12
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
13
|
+
});
|
|
17
14
|
exports.getRuntimeConfig = getRuntimeConfig;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-backup",
|
|
3
3
|
"description": "AWS SDK for JavaScript Backup Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.202.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,45 +19,45 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
-
"@aws-sdk/config-resolver": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
26
|
-
"@aws-sdk/hash-node": "3.
|
|
27
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
28
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
29
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
30
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
31
|
-
"@aws-sdk/middleware-logger": "3.
|
|
32
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
34
|
-
"@aws-sdk/middleware-serde": "3.
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
36
|
-
"@aws-sdk/middleware-stack": "3.
|
|
37
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
38
|
-
"@aws-sdk/node-config-provider": "3.
|
|
39
|
-
"@aws-sdk/node-http-handler": "3.
|
|
40
|
-
"@aws-sdk/protocol-http": "3.
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
-
"@aws-sdk/types": "3.
|
|
43
|
-
"@aws-sdk/url-parser": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.202.0",
|
|
23
|
+
"@aws-sdk/config-resolver": "3.201.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.202.0",
|
|
25
|
+
"@aws-sdk/fetch-http-handler": "3.201.0",
|
|
26
|
+
"@aws-sdk/hash-node": "3.201.0",
|
|
27
|
+
"@aws-sdk/invalid-dependency": "3.201.0",
|
|
28
|
+
"@aws-sdk/middleware-content-length": "3.201.0",
|
|
29
|
+
"@aws-sdk/middleware-endpoint": "3.201.0",
|
|
30
|
+
"@aws-sdk/middleware-host-header": "3.201.0",
|
|
31
|
+
"@aws-sdk/middleware-logger": "3.201.0",
|
|
32
|
+
"@aws-sdk/middleware-recursion-detection": "3.201.0",
|
|
33
|
+
"@aws-sdk/middleware-retry": "3.201.0",
|
|
34
|
+
"@aws-sdk/middleware-serde": "3.201.0",
|
|
35
|
+
"@aws-sdk/middleware-signing": "3.201.0",
|
|
36
|
+
"@aws-sdk/middleware-stack": "3.201.0",
|
|
37
|
+
"@aws-sdk/middleware-user-agent": "3.201.0",
|
|
38
|
+
"@aws-sdk/node-config-provider": "3.201.0",
|
|
39
|
+
"@aws-sdk/node-http-handler": "3.201.0",
|
|
40
|
+
"@aws-sdk/protocol-http": "3.201.0",
|
|
41
|
+
"@aws-sdk/smithy-client": "3.201.0",
|
|
42
|
+
"@aws-sdk/types": "3.201.0",
|
|
43
|
+
"@aws-sdk/url-parser": "3.201.0",
|
|
44
44
|
"@aws-sdk/util-base64-browser": "3.188.0",
|
|
45
|
-
"@aws-sdk/util-base64-node": "3.
|
|
45
|
+
"@aws-sdk/util-base64-node": "3.201.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
47
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
47
|
+
"@aws-sdk/util-body-length-node": "3.201.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.201.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.201.0",
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.202.0",
|
|
51
|
+
"@aws-sdk/util-user-agent-browser": "3.201.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-node": "3.201.0",
|
|
53
53
|
"@aws-sdk/util-utf8-browser": "3.188.0",
|
|
54
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
54
|
+
"@aws-sdk/util-utf8-node": "3.201.0",
|
|
55
55
|
"tslib": "^2.3.1",
|
|
56
56
|
"uuid": "^8.3.2"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@aws-sdk/service-client-documentation-generator": "3.188.0",
|
|
60
|
-
"@tsconfig/
|
|
60
|
+
"@tsconfig/node14": "1.0.3",
|
|
61
61
|
"@types/node": "^12.7.5",
|
|
62
62
|
"@types/uuid": "^8.3.0",
|
|
63
63
|
"concurrently": "7.0.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
"engines": {
|
|
75
|
-
"node": ">=
|
|
75
|
+
"node": ">=14.0.0"
|
|
76
76
|
},
|
|
77
77
|
"typesVersions": {
|
|
78
78
|
"<4.0": {
|