@aws-sdk/client-backup 3.54.1 → 3.58.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 +24 -0
- package/dist-cjs/BackupClient.js +13 -13
- package/dist-cjs/commands/CreateBackupPlanCommand.js +3 -3
- package/dist-cjs/commands/CreateBackupSelectionCommand.js +3 -3
- package/dist-cjs/commands/CreateBackupVaultCommand.js +3 -3
- package/dist-cjs/commands/CreateFrameworkCommand.js +3 -3
- package/dist-cjs/commands/CreateReportPlanCommand.js +3 -3
- package/dist-cjs/commands/DeleteBackupPlanCommand.js +3 -3
- package/dist-cjs/commands/DeleteBackupSelectionCommand.js +3 -3
- package/dist-cjs/commands/DeleteBackupVaultAccessPolicyCommand.js +3 -3
- package/dist-cjs/commands/DeleteBackupVaultCommand.js +3 -3
- package/dist-cjs/commands/DeleteBackupVaultLockConfigurationCommand.js +3 -3
- package/dist-cjs/commands/DeleteBackupVaultNotificationsCommand.js +3 -3
- package/dist-cjs/commands/DeleteFrameworkCommand.js +3 -3
- package/dist-cjs/commands/DeleteRecoveryPointCommand.js +3 -3
- package/dist-cjs/commands/DeleteReportPlanCommand.js +3 -3
- package/dist-cjs/commands/DescribeBackupJobCommand.js +3 -3
- package/dist-cjs/commands/DescribeBackupVaultCommand.js +3 -3
- package/dist-cjs/commands/DescribeCopyJobCommand.js +3 -3
- package/dist-cjs/commands/DescribeFrameworkCommand.js +3 -3
- package/dist-cjs/commands/DescribeGlobalSettingsCommand.js +3 -3
- package/dist-cjs/commands/DescribeProtectedResourceCommand.js +3 -3
- package/dist-cjs/commands/DescribeRecoveryPointCommand.js +3 -3
- package/dist-cjs/commands/DescribeRegionSettingsCommand.js +3 -3
- package/dist-cjs/commands/DescribeReportJobCommand.js +3 -3
- package/dist-cjs/commands/DescribeReportPlanCommand.js +3 -3
- package/dist-cjs/commands/DescribeRestoreJobCommand.js +3 -3
- package/dist-cjs/commands/DisassociateRecoveryPointCommand.js +3 -3
- package/dist-cjs/commands/ExportBackupPlanTemplateCommand.js +3 -3
- package/dist-cjs/commands/GetBackupPlanCommand.js +3 -3
- package/dist-cjs/commands/GetBackupPlanFromJSONCommand.js +3 -3
- package/dist-cjs/commands/GetBackupPlanFromTemplateCommand.js +3 -3
- package/dist-cjs/commands/GetBackupSelectionCommand.js +3 -3
- package/dist-cjs/commands/GetBackupVaultAccessPolicyCommand.js +3 -3
- package/dist-cjs/commands/GetBackupVaultNotificationsCommand.js +3 -3
- package/dist-cjs/commands/GetRecoveryPointRestoreMetadataCommand.js +3 -3
- package/dist-cjs/commands/GetSupportedResourceTypesCommand.js +3 -3
- package/dist-cjs/commands/ListBackupJobsCommand.js +3 -3
- package/dist-cjs/commands/ListBackupPlanTemplatesCommand.js +3 -3
- package/dist-cjs/commands/ListBackupPlanVersionsCommand.js +3 -3
- package/dist-cjs/commands/ListBackupPlansCommand.js +3 -3
- package/dist-cjs/commands/ListBackupSelectionsCommand.js +3 -3
- package/dist-cjs/commands/ListBackupVaultsCommand.js +3 -3
- package/dist-cjs/commands/ListCopyJobsCommand.js +3 -3
- package/dist-cjs/commands/ListFrameworksCommand.js +3 -3
- package/dist-cjs/commands/ListProtectedResourcesCommand.js +3 -3
- package/dist-cjs/commands/ListRecoveryPointsByBackupVaultCommand.js +3 -3
- package/dist-cjs/commands/ListRecoveryPointsByResourceCommand.js +3 -3
- package/dist-cjs/commands/ListReportJobsCommand.js +3 -3
- package/dist-cjs/commands/ListReportPlansCommand.js +3 -3
- package/dist-cjs/commands/ListRestoreJobsCommand.js +3 -3
- package/dist-cjs/commands/ListTagsCommand.js +3 -3
- package/dist-cjs/commands/PutBackupVaultAccessPolicyCommand.js +3 -3
- package/dist-cjs/commands/PutBackupVaultLockConfigurationCommand.js +3 -3
- package/dist-cjs/commands/PutBackupVaultNotificationsCommand.js +3 -3
- package/dist-cjs/commands/StartBackupJobCommand.js +3 -3
- package/dist-cjs/commands/StartCopyJobCommand.js +3 -3
- package/dist-cjs/commands/StartReportJobCommand.js +3 -3
- package/dist-cjs/commands/StartRestoreJobCommand.js +3 -3
- package/dist-cjs/commands/StopBackupJobCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/commands/UpdateBackupPlanCommand.js +3 -3
- package/dist-cjs/commands/UpdateFrameworkCommand.js +3 -3
- package/dist-cjs/commands/UpdateGlobalSettingsCommand.js +3 -3
- package/dist-cjs/commands/UpdateRecoveryPointLifecycleCommand.js +3 -3
- package/dist-cjs/commands/UpdateRegionSettingsCommand.js +3 -3
- package/dist-cjs/commands/UpdateReportPlanCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +527 -527
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/Backup.js +66 -66
- package/dist-es/pagination/ListBackupJobsPaginator.js +4 -4
- package/dist-es/pagination/ListBackupPlanTemplatesPaginator.js +4 -4
- package/dist-es/pagination/ListBackupPlanVersionsPaginator.js +4 -4
- package/dist-es/pagination/ListBackupPlansPaginator.js +4 -4
- package/dist-es/pagination/ListBackupSelectionsPaginator.js +4 -4
- package/dist-es/pagination/ListBackupVaultsPaginator.js +4 -4
- package/dist-es/pagination/ListCopyJobsPaginator.js +4 -4
- package/dist-es/pagination/ListFrameworksPaginator.js +4 -4
- package/dist-es/pagination/ListProtectedResourcesPaginator.js +4 -4
- package/dist-es/pagination/ListRecoveryPointsByBackupVaultPaginator.js +4 -4
- package/dist-es/pagination/ListRecoveryPointsByResourcePaginator.js +4 -4
- package/dist-es/pagination/ListReportJobsPaginator.js +4 -4
- package/dist-es/pagination/ListReportPlansPaginator.js +4 -4
- package/dist-es/pagination/ListRestoreJobsPaginator.js +4 -4
- package/dist-es/pagination/ListTagsPaginator.js +4 -4
- package/dist-es/protocols/Aws_restJson1.js +66 -66
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/package.json +34 -34
|
@@ -14,7 +14,7 @@ export var serializeAws_restJson1CreateBackupPlanCommand = function (input, cont
|
|
|
14
14
|
headers = {
|
|
15
15
|
"content-type": "application/json",
|
|
16
16
|
};
|
|
17
|
-
resolvedPath = ""
|
|
17
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/backup/plans";
|
|
18
18
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.BackupPlan !== undefined &&
|
|
19
19
|
input.BackupPlan !== null && { BackupPlan: serializeAws_restJson1BackupPlanInput(input.BackupPlan, context) })), (input.BackupPlanTags !== undefined &&
|
|
20
20
|
input.BackupPlanTags !== null && { BackupPlanTags: serializeAws_restJson1Tags(input.BackupPlanTags, context) })), (input.CreatorRequestId !== undefined &&
|
|
@@ -41,7 +41,7 @@ export var serializeAws_restJson1CreateBackupSelectionCommand = function (input,
|
|
|
41
41
|
headers = {
|
|
42
42
|
"content-type": "application/json",
|
|
43
43
|
};
|
|
44
|
-
resolvedPath = ""
|
|
44
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/backup/plans/{BackupPlanId}/selections";
|
|
45
45
|
if (input.BackupPlanId !== undefined) {
|
|
46
46
|
labelValue = input.BackupPlanId;
|
|
47
47
|
if (labelValue.length <= 0) {
|
|
@@ -79,7 +79,7 @@ export var serializeAws_restJson1CreateBackupVaultCommand = function (input, con
|
|
|
79
79
|
headers = {
|
|
80
80
|
"content-type": "application/json",
|
|
81
81
|
};
|
|
82
|
-
resolvedPath = ""
|
|
82
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/backup-vaults/{BackupVaultName}";
|
|
83
83
|
if (input.BackupVaultName !== undefined) {
|
|
84
84
|
labelValue = input.BackupVaultName;
|
|
85
85
|
if (labelValue.length <= 0) {
|
|
@@ -119,7 +119,7 @@ export var serializeAws_restJson1CreateFrameworkCommand = function (input, conte
|
|
|
119
119
|
headers = {
|
|
120
120
|
"content-type": "application/json",
|
|
121
121
|
};
|
|
122
|
-
resolvedPath = ""
|
|
122
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/frameworks";
|
|
123
123
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.FrameworkControls !== undefined &&
|
|
124
124
|
input.FrameworkControls !== null && {
|
|
125
125
|
FrameworkControls: serializeAws_restJson1FrameworkControls(input.FrameworkControls, context),
|
|
@@ -149,7 +149,7 @@ export var serializeAws_restJson1CreateReportPlanCommand = function (input, cont
|
|
|
149
149
|
headers = {
|
|
150
150
|
"content-type": "application/json",
|
|
151
151
|
};
|
|
152
|
-
resolvedPath = ""
|
|
152
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/report-plans";
|
|
153
153
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({ IdempotencyToken: (_c = input.IdempotencyToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.ReportDeliveryChannel !== undefined &&
|
|
154
154
|
input.ReportDeliveryChannel !== null && {
|
|
155
155
|
ReportDeliveryChannel: serializeAws_restJson1ReportDeliveryChannel(input.ReportDeliveryChannel, context),
|
|
@@ -182,7 +182,7 @@ export var serializeAws_restJson1DeleteBackupPlanCommand = function (input, cont
|
|
|
182
182
|
case 1:
|
|
183
183
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
184
184
|
headers = {};
|
|
185
|
-
resolvedPath = ""
|
|
185
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/backup/plans/{BackupPlanId}";
|
|
186
186
|
if (input.BackupPlanId !== undefined) {
|
|
187
187
|
labelValue = input.BackupPlanId;
|
|
188
188
|
if (labelValue.length <= 0) {
|
|
@@ -213,7 +213,7 @@ export var serializeAws_restJson1DeleteBackupSelectionCommand = function (input,
|
|
|
213
213
|
case 1:
|
|
214
214
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
215
215
|
headers = {};
|
|
216
|
-
resolvedPath = ""
|
|
216
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
217
217
|
"/backup/plans/{BackupPlanId}/selections/{SelectionId}";
|
|
218
218
|
if (input.BackupPlanId !== undefined) {
|
|
219
219
|
labelValue = input.BackupPlanId;
|
|
@@ -255,7 +255,7 @@ export var serializeAws_restJson1DeleteBackupVaultCommand = function (input, con
|
|
|
255
255
|
case 1:
|
|
256
256
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
257
257
|
headers = {};
|
|
258
|
-
resolvedPath = ""
|
|
258
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/backup-vaults/{BackupVaultName}";
|
|
259
259
|
if (input.BackupVaultName !== undefined) {
|
|
260
260
|
labelValue = input.BackupVaultName;
|
|
261
261
|
if (labelValue.length <= 0) {
|
|
@@ -286,7 +286,7 @@ export var serializeAws_restJson1DeleteBackupVaultAccessPolicyCommand = function
|
|
|
286
286
|
case 1:
|
|
287
287
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
288
288
|
headers = {};
|
|
289
|
-
resolvedPath = ""
|
|
289
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
290
290
|
"/backup-vaults/{BackupVaultName}/access-policy";
|
|
291
291
|
if (input.BackupVaultName !== undefined) {
|
|
292
292
|
labelValue = input.BackupVaultName;
|
|
@@ -318,7 +318,7 @@ export var serializeAws_restJson1DeleteBackupVaultLockConfigurationCommand = fun
|
|
|
318
318
|
case 1:
|
|
319
319
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
320
320
|
headers = {};
|
|
321
|
-
resolvedPath = ""
|
|
321
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
322
322
|
"/backup-vaults/{BackupVaultName}/vault-lock";
|
|
323
323
|
if (input.BackupVaultName !== undefined) {
|
|
324
324
|
labelValue = input.BackupVaultName;
|
|
@@ -350,7 +350,7 @@ export var serializeAws_restJson1DeleteBackupVaultNotificationsCommand = functio
|
|
|
350
350
|
case 1:
|
|
351
351
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
352
352
|
headers = {};
|
|
353
|
-
resolvedPath = ""
|
|
353
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
354
354
|
"/backup-vaults/{BackupVaultName}/notification-configuration";
|
|
355
355
|
if (input.BackupVaultName !== undefined) {
|
|
356
356
|
labelValue = input.BackupVaultName;
|
|
@@ -382,7 +382,7 @@ export var serializeAws_restJson1DeleteFrameworkCommand = function (input, conte
|
|
|
382
382
|
case 1:
|
|
383
383
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
384
384
|
headers = {};
|
|
385
|
-
resolvedPath = ""
|
|
385
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/frameworks/{FrameworkName}";
|
|
386
386
|
if (input.FrameworkName !== undefined) {
|
|
387
387
|
labelValue = input.FrameworkName;
|
|
388
388
|
if (labelValue.length <= 0) {
|
|
@@ -413,7 +413,7 @@ export var serializeAws_restJson1DeleteRecoveryPointCommand = function (input, c
|
|
|
413
413
|
case 1:
|
|
414
414
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
415
415
|
headers = {};
|
|
416
|
-
resolvedPath = ""
|
|
416
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
417
417
|
"/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}";
|
|
418
418
|
if (input.BackupVaultName !== undefined) {
|
|
419
419
|
labelValue = input.BackupVaultName;
|
|
@@ -455,7 +455,7 @@ export var serializeAws_restJson1DeleteReportPlanCommand = function (input, cont
|
|
|
455
455
|
case 1:
|
|
456
456
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
457
457
|
headers = {};
|
|
458
|
-
resolvedPath = ""
|
|
458
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/report-plans/{ReportPlanName}";
|
|
459
459
|
if (input.ReportPlanName !== undefined) {
|
|
460
460
|
labelValue = input.ReportPlanName;
|
|
461
461
|
if (labelValue.length <= 0) {
|
|
@@ -486,7 +486,7 @@ export var serializeAws_restJson1DescribeBackupJobCommand = function (input, con
|
|
|
486
486
|
case 1:
|
|
487
487
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
488
488
|
headers = {};
|
|
489
|
-
resolvedPath = ""
|
|
489
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/backup-jobs/{BackupJobId}";
|
|
490
490
|
if (input.BackupJobId !== undefined) {
|
|
491
491
|
labelValue = input.BackupJobId;
|
|
492
492
|
if (labelValue.length <= 0) {
|
|
@@ -517,7 +517,7 @@ export var serializeAws_restJson1DescribeBackupVaultCommand = function (input, c
|
|
|
517
517
|
case 1:
|
|
518
518
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
519
519
|
headers = {};
|
|
520
|
-
resolvedPath = ""
|
|
520
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/backup-vaults/{BackupVaultName}";
|
|
521
521
|
if (input.BackupVaultName !== undefined) {
|
|
522
522
|
labelValue = input.BackupVaultName;
|
|
523
523
|
if (labelValue.length <= 0) {
|
|
@@ -548,7 +548,7 @@ export var serializeAws_restJson1DescribeCopyJobCommand = function (input, conte
|
|
|
548
548
|
case 1:
|
|
549
549
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
550
550
|
headers = {};
|
|
551
|
-
resolvedPath = ""
|
|
551
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/copy-jobs/{CopyJobId}";
|
|
552
552
|
if (input.CopyJobId !== undefined) {
|
|
553
553
|
labelValue = input.CopyJobId;
|
|
554
554
|
if (labelValue.length <= 0) {
|
|
@@ -579,7 +579,7 @@ export var serializeAws_restJson1DescribeFrameworkCommand = function (input, con
|
|
|
579
579
|
case 1:
|
|
580
580
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
581
581
|
headers = {};
|
|
582
|
-
resolvedPath = ""
|
|
582
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/frameworks/{FrameworkName}";
|
|
583
583
|
if (input.FrameworkName !== undefined) {
|
|
584
584
|
labelValue = input.FrameworkName;
|
|
585
585
|
if (labelValue.length <= 0) {
|
|
@@ -612,7 +612,7 @@ export var serializeAws_restJson1DescribeGlobalSettingsCommand = function (input
|
|
|
612
612
|
headers = {
|
|
613
613
|
"content-type": "application/json",
|
|
614
614
|
};
|
|
615
|
-
resolvedPath = ""
|
|
615
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/global-settings";
|
|
616
616
|
body = "";
|
|
617
617
|
return [2, new __HttpRequest({
|
|
618
618
|
protocol: protocol,
|
|
@@ -634,7 +634,7 @@ export var serializeAws_restJson1DescribeProtectedResourceCommand = function (in
|
|
|
634
634
|
case 1:
|
|
635
635
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
636
636
|
headers = {};
|
|
637
|
-
resolvedPath = ""
|
|
637
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/resources/{ResourceArn}";
|
|
638
638
|
if (input.ResourceArn !== undefined) {
|
|
639
639
|
labelValue = input.ResourceArn;
|
|
640
640
|
if (labelValue.length <= 0) {
|
|
@@ -665,7 +665,7 @@ export var serializeAws_restJson1DescribeRecoveryPointCommand = function (input,
|
|
|
665
665
|
case 1:
|
|
666
666
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
667
667
|
headers = {};
|
|
668
|
-
resolvedPath = ""
|
|
668
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
669
669
|
"/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}";
|
|
670
670
|
if (input.BackupVaultName !== undefined) {
|
|
671
671
|
labelValue = input.BackupVaultName;
|
|
@@ -709,7 +709,7 @@ export var serializeAws_restJson1DescribeRegionSettingsCommand = function (input
|
|
|
709
709
|
headers = {
|
|
710
710
|
"content-type": "application/json",
|
|
711
711
|
};
|
|
712
|
-
resolvedPath = ""
|
|
712
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/account-settings";
|
|
713
713
|
body = "";
|
|
714
714
|
return [2, new __HttpRequest({
|
|
715
715
|
protocol: protocol,
|
|
@@ -731,7 +731,7 @@ export var serializeAws_restJson1DescribeReportJobCommand = function (input, con
|
|
|
731
731
|
case 1:
|
|
732
732
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
733
733
|
headers = {};
|
|
734
|
-
resolvedPath = ""
|
|
734
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/report-jobs/{ReportJobId}";
|
|
735
735
|
if (input.ReportJobId !== undefined) {
|
|
736
736
|
labelValue = input.ReportJobId;
|
|
737
737
|
if (labelValue.length <= 0) {
|
|
@@ -762,7 +762,7 @@ export var serializeAws_restJson1DescribeReportPlanCommand = function (input, co
|
|
|
762
762
|
case 1:
|
|
763
763
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
764
764
|
headers = {};
|
|
765
|
-
resolvedPath = ""
|
|
765
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/report-plans/{ReportPlanName}";
|
|
766
766
|
if (input.ReportPlanName !== undefined) {
|
|
767
767
|
labelValue = input.ReportPlanName;
|
|
768
768
|
if (labelValue.length <= 0) {
|
|
@@ -793,7 +793,7 @@ export var serializeAws_restJson1DescribeRestoreJobCommand = function (input, co
|
|
|
793
793
|
case 1:
|
|
794
794
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
795
795
|
headers = {};
|
|
796
|
-
resolvedPath = ""
|
|
796
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restore-jobs/{RestoreJobId}";
|
|
797
797
|
if (input.RestoreJobId !== undefined) {
|
|
798
798
|
labelValue = input.RestoreJobId;
|
|
799
799
|
if (labelValue.length <= 0) {
|
|
@@ -824,7 +824,7 @@ export var serializeAws_restJson1DisassociateRecoveryPointCommand = function (in
|
|
|
824
824
|
case 1:
|
|
825
825
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
826
826
|
headers = {};
|
|
827
|
-
resolvedPath = ""
|
|
827
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
828
828
|
"/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}/disassociate";
|
|
829
829
|
if (input.BackupVaultName !== undefined) {
|
|
830
830
|
labelValue = input.BackupVaultName;
|
|
@@ -866,7 +866,7 @@ export var serializeAws_restJson1ExportBackupPlanTemplateCommand = function (inp
|
|
|
866
866
|
case 1:
|
|
867
867
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
868
868
|
headers = {};
|
|
869
|
-
resolvedPath = ""
|
|
869
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/backup/plans/{BackupPlanId}/toTemplate";
|
|
870
870
|
if (input.BackupPlanId !== undefined) {
|
|
871
871
|
labelValue = input.BackupPlanId;
|
|
872
872
|
if (labelValue.length <= 0) {
|
|
@@ -897,7 +897,7 @@ export var serializeAws_restJson1GetBackupPlanCommand = function (input, context
|
|
|
897
897
|
case 1:
|
|
898
898
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
899
899
|
headers = {};
|
|
900
|
-
resolvedPath = ""
|
|
900
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/backup/plans/{BackupPlanId}";
|
|
901
901
|
if (input.BackupPlanId !== undefined) {
|
|
902
902
|
labelValue = input.BackupPlanId;
|
|
903
903
|
if (labelValue.length <= 0) {
|
|
@@ -932,7 +932,7 @@ export var serializeAws_restJson1GetBackupPlanFromJSONCommand = function (input,
|
|
|
932
932
|
headers = {
|
|
933
933
|
"content-type": "application/json",
|
|
934
934
|
};
|
|
935
|
-
resolvedPath = ""
|
|
935
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/backup/template/json/toPlan";
|
|
936
936
|
body = JSON.stringify(__assign({}, (input.BackupPlanTemplateJson !== undefined &&
|
|
937
937
|
input.BackupPlanTemplateJson !== null && { BackupPlanTemplateJson: input.BackupPlanTemplateJson })));
|
|
938
938
|
return [2, new __HttpRequest({
|
|
@@ -955,7 +955,7 @@ export var serializeAws_restJson1GetBackupPlanFromTemplateCommand = function (in
|
|
|
955
955
|
case 1:
|
|
956
956
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
957
957
|
headers = {};
|
|
958
|
-
resolvedPath = ""
|
|
958
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
959
959
|
"/backup/template/plans/{BackupPlanTemplateId}/toPlan";
|
|
960
960
|
if (input.BackupPlanTemplateId !== undefined) {
|
|
961
961
|
labelValue = input.BackupPlanTemplateId;
|
|
@@ -987,7 +987,7 @@ export var serializeAws_restJson1GetBackupSelectionCommand = function (input, co
|
|
|
987
987
|
case 1:
|
|
988
988
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
989
989
|
headers = {};
|
|
990
|
-
resolvedPath = ""
|
|
990
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
991
991
|
"/backup/plans/{BackupPlanId}/selections/{SelectionId}";
|
|
992
992
|
if (input.BackupPlanId !== undefined) {
|
|
993
993
|
labelValue = input.BackupPlanId;
|
|
@@ -1029,7 +1029,7 @@ export var serializeAws_restJson1GetBackupVaultAccessPolicyCommand = function (i
|
|
|
1029
1029
|
case 1:
|
|
1030
1030
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1031
1031
|
headers = {};
|
|
1032
|
-
resolvedPath = ""
|
|
1032
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1033
1033
|
"/backup-vaults/{BackupVaultName}/access-policy";
|
|
1034
1034
|
if (input.BackupVaultName !== undefined) {
|
|
1035
1035
|
labelValue = input.BackupVaultName;
|
|
@@ -1061,7 +1061,7 @@ export var serializeAws_restJson1GetBackupVaultNotificationsCommand = function (
|
|
|
1061
1061
|
case 1:
|
|
1062
1062
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1063
1063
|
headers = {};
|
|
1064
|
-
resolvedPath = ""
|
|
1064
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1065
1065
|
"/backup-vaults/{BackupVaultName}/notification-configuration";
|
|
1066
1066
|
if (input.BackupVaultName !== undefined) {
|
|
1067
1067
|
labelValue = input.BackupVaultName;
|
|
@@ -1093,7 +1093,7 @@ export var serializeAws_restJson1GetRecoveryPointRestoreMetadataCommand = functi
|
|
|
1093
1093
|
case 1:
|
|
1094
1094
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1095
1095
|
headers = {};
|
|
1096
|
-
resolvedPath = ""
|
|
1096
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1097
1097
|
"/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}/restore-metadata";
|
|
1098
1098
|
if (input.BackupVaultName !== undefined) {
|
|
1099
1099
|
labelValue = input.BackupVaultName;
|
|
@@ -1137,7 +1137,7 @@ export var serializeAws_restJson1GetSupportedResourceTypesCommand = function (in
|
|
|
1137
1137
|
headers = {
|
|
1138
1138
|
"content-type": "application/json",
|
|
1139
1139
|
};
|
|
1140
|
-
resolvedPath = ""
|
|
1140
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/supported-resource-types";
|
|
1141
1141
|
body = "";
|
|
1142
1142
|
return [2, new __HttpRequest({
|
|
1143
1143
|
protocol: protocol,
|
|
@@ -1159,7 +1159,7 @@ export var serializeAws_restJson1ListBackupJobsCommand = function (input, contex
|
|
|
1159
1159
|
case 1:
|
|
1160
1160
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1161
1161
|
headers = {};
|
|
1162
|
-
resolvedPath = ""
|
|
1162
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/backup-jobs";
|
|
1163
1163
|
query = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.ByResourceArn !== undefined && { resourceArn: input.ByResourceArn })), (input.ByState !== undefined && { state: input.ByState })), (input.ByBackupVaultName !== undefined && { backupVaultName: input.ByBackupVaultName })), (input.ByCreatedBefore !== undefined && {
|
|
1164
1164
|
createdBefore: (input.ByCreatedBefore.toISOString().split(".")[0] + "Z").toString(),
|
|
1165
1165
|
})), (input.ByCreatedAfter !== undefined && {
|
|
@@ -1186,7 +1186,7 @@ export var serializeAws_restJson1ListBackupPlansCommand = function (input, conte
|
|
|
1186
1186
|
case 1:
|
|
1187
1187
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1188
1188
|
headers = {};
|
|
1189
|
-
resolvedPath = ""
|
|
1189
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/backup/plans";
|
|
1190
1190
|
query = __assign(__assign(__assign({}, (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.IncludeDeleted !== undefined && { includeDeleted: input.IncludeDeleted.toString() }));
|
|
1191
1191
|
return [2, new __HttpRequest({
|
|
1192
1192
|
protocol: protocol,
|
|
@@ -1209,7 +1209,7 @@ export var serializeAws_restJson1ListBackupPlanTemplatesCommand = function (inpu
|
|
|
1209
1209
|
case 1:
|
|
1210
1210
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1211
1211
|
headers = {};
|
|
1212
|
-
resolvedPath = ""
|
|
1212
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/backup/template/plans";
|
|
1213
1213
|
query = __assign(__assign({}, (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }));
|
|
1214
1214
|
return [2, new __HttpRequest({
|
|
1215
1215
|
protocol: protocol,
|
|
@@ -1232,7 +1232,7 @@ export var serializeAws_restJson1ListBackupPlanVersionsCommand = function (input
|
|
|
1232
1232
|
case 1:
|
|
1233
1233
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1234
1234
|
headers = {};
|
|
1235
|
-
resolvedPath = ""
|
|
1235
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/backup/plans/{BackupPlanId}/versions";
|
|
1236
1236
|
if (input.BackupPlanId !== undefined) {
|
|
1237
1237
|
labelValue = input.BackupPlanId;
|
|
1238
1238
|
if (labelValue.length <= 0) {
|
|
@@ -1265,7 +1265,7 @@ export var serializeAws_restJson1ListBackupSelectionsCommand = function (input,
|
|
|
1265
1265
|
case 1:
|
|
1266
1266
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1267
1267
|
headers = {};
|
|
1268
|
-
resolvedPath = ""
|
|
1268
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/backup/plans/{BackupPlanId}/selections";
|
|
1269
1269
|
if (input.BackupPlanId !== undefined) {
|
|
1270
1270
|
labelValue = input.BackupPlanId;
|
|
1271
1271
|
if (labelValue.length <= 0) {
|
|
@@ -1298,7 +1298,7 @@ export var serializeAws_restJson1ListBackupVaultsCommand = function (input, cont
|
|
|
1298
1298
|
case 1:
|
|
1299
1299
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1300
1300
|
headers = {};
|
|
1301
|
-
resolvedPath = ""
|
|
1301
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/backup-vaults";
|
|
1302
1302
|
query = __assign(__assign({}, (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }));
|
|
1303
1303
|
return [2, new __HttpRequest({
|
|
1304
1304
|
protocol: protocol,
|
|
@@ -1321,7 +1321,7 @@ export var serializeAws_restJson1ListCopyJobsCommand = function (input, context)
|
|
|
1321
1321
|
case 1:
|
|
1322
1322
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1323
1323
|
headers = {};
|
|
1324
|
-
resolvedPath = ""
|
|
1324
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/copy-jobs";
|
|
1325
1325
|
query = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.ByResourceArn !== undefined && { resourceArn: input.ByResourceArn })), (input.ByState !== undefined && { state: input.ByState })), (input.ByCreatedBefore !== undefined && {
|
|
1326
1326
|
createdBefore: (input.ByCreatedBefore.toISOString().split(".")[0] + "Z").toString(),
|
|
1327
1327
|
})), (input.ByCreatedAfter !== undefined && {
|
|
@@ -1348,7 +1348,7 @@ export var serializeAws_restJson1ListFrameworksCommand = function (input, contex
|
|
|
1348
1348
|
case 1:
|
|
1349
1349
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1350
1350
|
headers = {};
|
|
1351
|
-
resolvedPath = ""
|
|
1351
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/frameworks";
|
|
1352
1352
|
query = __assign(__assign({}, (input.MaxResults !== undefined && { MaxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { NextToken: input.NextToken }));
|
|
1353
1353
|
return [2, new __HttpRequest({
|
|
1354
1354
|
protocol: protocol,
|
|
@@ -1371,7 +1371,7 @@ export var serializeAws_restJson1ListProtectedResourcesCommand = function (input
|
|
|
1371
1371
|
case 1:
|
|
1372
1372
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1373
1373
|
headers = {};
|
|
1374
|
-
resolvedPath = ""
|
|
1374
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/resources";
|
|
1375
1375
|
query = __assign(__assign({}, (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }));
|
|
1376
1376
|
return [2, new __HttpRequest({
|
|
1377
1377
|
protocol: protocol,
|
|
@@ -1394,7 +1394,7 @@ export var serializeAws_restJson1ListRecoveryPointsByBackupVaultCommand = functi
|
|
|
1394
1394
|
case 1:
|
|
1395
1395
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1396
1396
|
headers = {};
|
|
1397
|
-
resolvedPath = ""
|
|
1397
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1398
1398
|
"/backup-vaults/{BackupVaultName}/recovery-points";
|
|
1399
1399
|
if (input.BackupVaultName !== undefined) {
|
|
1400
1400
|
labelValue = input.BackupVaultName;
|
|
@@ -1432,7 +1432,7 @@ export var serializeAws_restJson1ListRecoveryPointsByResourceCommand = function
|
|
|
1432
1432
|
case 1:
|
|
1433
1433
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1434
1434
|
headers = {};
|
|
1435
|
-
resolvedPath = ""
|
|
1435
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/resources/{ResourceArn}/recovery-points";
|
|
1436
1436
|
if (input.ResourceArn !== undefined) {
|
|
1437
1437
|
labelValue = input.ResourceArn;
|
|
1438
1438
|
if (labelValue.length <= 0) {
|
|
@@ -1465,7 +1465,7 @@ export var serializeAws_restJson1ListReportJobsCommand = function (input, contex
|
|
|
1465
1465
|
case 1:
|
|
1466
1466
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1467
1467
|
headers = {};
|
|
1468
|
-
resolvedPath = ""
|
|
1468
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/report-jobs";
|
|
1469
1469
|
query = __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ByReportPlanName !== undefined && { ReportPlanName: input.ByReportPlanName })), (input.ByCreationBefore !== undefined && {
|
|
1470
1470
|
CreationBefore: (input.ByCreationBefore.toISOString().split(".")[0] + "Z").toString(),
|
|
1471
1471
|
})), (input.ByCreationAfter !== undefined && {
|
|
@@ -1492,7 +1492,7 @@ export var serializeAws_restJson1ListReportPlansCommand = function (input, conte
|
|
|
1492
1492
|
case 1:
|
|
1493
1493
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1494
1494
|
headers = {};
|
|
1495
|
-
resolvedPath = ""
|
|
1495
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/report-plans";
|
|
1496
1496
|
query = __assign(__assign({}, (input.MaxResults !== undefined && { MaxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { NextToken: input.NextToken }));
|
|
1497
1497
|
return [2, new __HttpRequest({
|
|
1498
1498
|
protocol: protocol,
|
|
@@ -1515,7 +1515,7 @@ export var serializeAws_restJson1ListRestoreJobsCommand = function (input, conte
|
|
|
1515
1515
|
case 1:
|
|
1516
1516
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1517
1517
|
headers = {};
|
|
1518
|
-
resolvedPath = ""
|
|
1518
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restore-jobs";
|
|
1519
1519
|
query = __assign(__assign(__assign(__assign(__assign(__assign({}, (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.ByAccountId !== undefined && { accountId: input.ByAccountId })), (input.ByCreatedBefore !== undefined && {
|
|
1520
1520
|
createdBefore: (input.ByCreatedBefore.toISOString().split(".")[0] + "Z").toString(),
|
|
1521
1521
|
})), (input.ByCreatedAfter !== undefined && {
|
|
@@ -1542,7 +1542,7 @@ export var serializeAws_restJson1ListTagsCommand = function (input, context) { r
|
|
|
1542
1542
|
case 1:
|
|
1543
1543
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1544
1544
|
headers = {};
|
|
1545
|
-
resolvedPath = ""
|
|
1545
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
1546
1546
|
if (input.ResourceArn !== undefined) {
|
|
1547
1547
|
labelValue = input.ResourceArn;
|
|
1548
1548
|
if (labelValue.length <= 0) {
|
|
@@ -1577,7 +1577,7 @@ export var serializeAws_restJson1PutBackupVaultAccessPolicyCommand = function (i
|
|
|
1577
1577
|
headers = {
|
|
1578
1578
|
"content-type": "application/json",
|
|
1579
1579
|
};
|
|
1580
|
-
resolvedPath = ""
|
|
1580
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1581
1581
|
"/backup-vaults/{BackupVaultName}/access-policy";
|
|
1582
1582
|
if (input.BackupVaultName !== undefined) {
|
|
1583
1583
|
labelValue = input.BackupVaultName;
|
|
@@ -1612,7 +1612,7 @@ export var serializeAws_restJson1PutBackupVaultLockConfigurationCommand = functi
|
|
|
1612
1612
|
headers = {
|
|
1613
1613
|
"content-type": "application/json",
|
|
1614
1614
|
};
|
|
1615
|
-
resolvedPath = ""
|
|
1615
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1616
1616
|
"/backup-vaults/{BackupVaultName}/vault-lock";
|
|
1617
1617
|
if (input.BackupVaultName !== undefined) {
|
|
1618
1618
|
labelValue = input.BackupVaultName;
|
|
@@ -1650,7 +1650,7 @@ export var serializeAws_restJson1PutBackupVaultNotificationsCommand = function (
|
|
|
1650
1650
|
headers = {
|
|
1651
1651
|
"content-type": "application/json",
|
|
1652
1652
|
};
|
|
1653
|
-
resolvedPath = ""
|
|
1653
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1654
1654
|
"/backup-vaults/{BackupVaultName}/notification-configuration";
|
|
1655
1655
|
if (input.BackupVaultName !== undefined) {
|
|
1656
1656
|
labelValue = input.BackupVaultName;
|
|
@@ -1688,7 +1688,7 @@ export var serializeAws_restJson1StartBackupJobCommand = function (input, contex
|
|
|
1688
1688
|
headers = {
|
|
1689
1689
|
"content-type": "application/json",
|
|
1690
1690
|
};
|
|
1691
|
-
resolvedPath = ""
|
|
1691
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/backup-jobs";
|
|
1692
1692
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BackupOptions !== undefined &&
|
|
1693
1693
|
input.BackupOptions !== null && {
|
|
1694
1694
|
BackupOptions: serializeAws_restJson1BackupOptions(input.BackupOptions, context),
|
|
@@ -1723,7 +1723,7 @@ export var serializeAws_restJson1StartCopyJobCommand = function (input, context)
|
|
|
1723
1723
|
headers = {
|
|
1724
1724
|
"content-type": "application/json",
|
|
1725
1725
|
};
|
|
1726
|
-
resolvedPath = ""
|
|
1726
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/copy-jobs";
|
|
1727
1727
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DestinationBackupVaultArn !== undefined &&
|
|
1728
1728
|
input.DestinationBackupVaultArn !== null && { DestinationBackupVaultArn: input.DestinationBackupVaultArn })), (input.IamRoleArn !== undefined && input.IamRoleArn !== null && { IamRoleArn: input.IamRoleArn })), (input.IdempotencyToken !== undefined &&
|
|
1729
1729
|
input.IdempotencyToken !== null && { IdempotencyToken: input.IdempotencyToken })), (input.Lifecycle !== undefined &&
|
|
@@ -1753,7 +1753,7 @@ export var serializeAws_restJson1StartReportJobCommand = function (input, contex
|
|
|
1753
1753
|
headers = {
|
|
1754
1754
|
"content-type": "application/json",
|
|
1755
1755
|
};
|
|
1756
|
-
resolvedPath = ""
|
|
1756
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/report-jobs/{ReportPlanName}";
|
|
1757
1757
|
if (input.ReportPlanName !== undefined) {
|
|
1758
1758
|
labelValue = input.ReportPlanName;
|
|
1759
1759
|
if (labelValue.length <= 0) {
|
|
@@ -1789,7 +1789,7 @@ export var serializeAws_restJson1StartRestoreJobCommand = function (input, conte
|
|
|
1789
1789
|
headers = {
|
|
1790
1790
|
"content-type": "application/json",
|
|
1791
1791
|
};
|
|
1792
|
-
resolvedPath = ""
|
|
1792
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restore-jobs";
|
|
1793
1793
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.IamRoleArn !== undefined && input.IamRoleArn !== null && { IamRoleArn: input.IamRoleArn })), (input.IdempotencyToken !== undefined &&
|
|
1794
1794
|
input.IdempotencyToken !== null && { IdempotencyToken: input.IdempotencyToken })), (input.Metadata !== undefined &&
|
|
1795
1795
|
input.Metadata !== null && { Metadata: serializeAws_restJson1Metadata(input.Metadata, context) })), (input.RecoveryPointArn !== undefined &&
|
|
@@ -1814,7 +1814,7 @@ export var serializeAws_restJson1StopBackupJobCommand = function (input, context
|
|
|
1814
1814
|
case 1:
|
|
1815
1815
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1816
1816
|
headers = {};
|
|
1817
|
-
resolvedPath = ""
|
|
1817
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/backup-jobs/{BackupJobId}";
|
|
1818
1818
|
if (input.BackupJobId !== undefined) {
|
|
1819
1819
|
labelValue = input.BackupJobId;
|
|
1820
1820
|
if (labelValue.length <= 0) {
|
|
@@ -1847,7 +1847,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1847
1847
|
headers = {
|
|
1848
1848
|
"content-type": "application/json",
|
|
1849
1849
|
};
|
|
1850
|
-
resolvedPath = ""
|
|
1850
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
1851
1851
|
if (input.ResourceArn !== undefined) {
|
|
1852
1852
|
labelValue = input.ResourceArn;
|
|
1853
1853
|
if (labelValue.length <= 0) {
|
|
@@ -1881,7 +1881,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
1881
1881
|
headers = {
|
|
1882
1882
|
"content-type": "application/json",
|
|
1883
1883
|
};
|
|
1884
|
-
resolvedPath = ""
|
|
1884
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/untag/{ResourceArn}";
|
|
1885
1885
|
if (input.ResourceArn !== undefined) {
|
|
1886
1886
|
labelValue = input.ResourceArn;
|
|
1887
1887
|
if (labelValue.length <= 0) {
|
|
@@ -1916,7 +1916,7 @@ export var serializeAws_restJson1UpdateBackupPlanCommand = function (input, cont
|
|
|
1916
1916
|
headers = {
|
|
1917
1917
|
"content-type": "application/json",
|
|
1918
1918
|
};
|
|
1919
|
-
resolvedPath = ""
|
|
1919
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/backup/plans/{BackupPlanId}";
|
|
1920
1920
|
if (input.BackupPlanId !== undefined) {
|
|
1921
1921
|
labelValue = input.BackupPlanId;
|
|
1922
1922
|
if (labelValue.length <= 0) {
|
|
@@ -1952,7 +1952,7 @@ export var serializeAws_restJson1UpdateFrameworkCommand = function (input, conte
|
|
|
1952
1952
|
headers = {
|
|
1953
1953
|
"content-type": "application/json",
|
|
1954
1954
|
};
|
|
1955
|
-
resolvedPath = ""
|
|
1955
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/frameworks/{FrameworkName}";
|
|
1956
1956
|
if (input.FrameworkName !== undefined) {
|
|
1957
1957
|
labelValue = input.FrameworkName;
|
|
1958
1958
|
if (labelValue.length <= 0) {
|
|
@@ -1990,7 +1990,7 @@ export var serializeAws_restJson1UpdateGlobalSettingsCommand = function (input,
|
|
|
1990
1990
|
headers = {
|
|
1991
1991
|
"content-type": "application/json",
|
|
1992
1992
|
};
|
|
1993
|
-
resolvedPath = ""
|
|
1993
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/global-settings";
|
|
1994
1994
|
body = JSON.stringify(__assign({}, (input.GlobalSettings !== undefined &&
|
|
1995
1995
|
input.GlobalSettings !== null && {
|
|
1996
1996
|
GlobalSettings: serializeAws_restJson1GlobalSettings(input.GlobalSettings, context),
|
|
@@ -2017,7 +2017,7 @@ export var serializeAws_restJson1UpdateRecoveryPointLifecycleCommand = function
|
|
|
2017
2017
|
headers = {
|
|
2018
2018
|
"content-type": "application/json",
|
|
2019
2019
|
};
|
|
2020
|
-
resolvedPath = ""
|
|
2020
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
2021
2021
|
"/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}";
|
|
2022
2022
|
if (input.BackupVaultName !== undefined) {
|
|
2023
2023
|
labelValue = input.BackupVaultName;
|
|
@@ -2063,7 +2063,7 @@ export var serializeAws_restJson1UpdateRegionSettingsCommand = function (input,
|
|
|
2063
2063
|
headers = {
|
|
2064
2064
|
"content-type": "application/json",
|
|
2065
2065
|
};
|
|
2066
|
-
resolvedPath = ""
|
|
2066
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/account-settings";
|
|
2067
2067
|
body = JSON.stringify(__assign(__assign({}, (input.ResourceTypeManagementPreference !== undefined &&
|
|
2068
2068
|
input.ResourceTypeManagementPreference !== null && {
|
|
2069
2069
|
ResourceTypeManagementPreference: serializeAws_restJson1ResourceTypeManagementPreference(input.ResourceTypeManagementPreference, context),
|
|
@@ -2094,7 +2094,7 @@ export var serializeAws_restJson1UpdateReportPlanCommand = function (input, cont
|
|
|
2094
2094
|
headers = {
|
|
2095
2095
|
"content-type": "application/json",
|
|
2096
2096
|
};
|
|
2097
|
-
resolvedPath = ""
|
|
2097
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/report-plans/{ReportPlanName}";
|
|
2098
2098
|
if (input.ReportPlanName !== undefined) {
|
|
2099
2099
|
labelValue = input.ReportPlanName;
|
|
2100
2100
|
if (labelValue.length <= 0) {
|