@aws-sdk/client-backup 3.40.0 → 3.45.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 +41 -0
- package/dist-cjs/endpoints.js +9 -0
- package/dist-cjs/models/models_0.js +16 -4
- package/dist-cjs/protocols/Aws_restJson1.js +117 -0
- package/dist-es/endpoints.js +9 -0
- package/dist-es/models/models_0.js +8 -0
- package/dist-es/protocols/Aws_restJson1.js +133 -29
- package/dist-types/Backup.d.ts +6 -40
- package/dist-types/commands/CreateBackupPlanCommand.d.ts +1 -1
- package/dist-types/commands/CreateBackupSelectionCommand.d.ts +3 -41
- package/dist-types/commands/CreateBackupVaultCommand.d.ts +1 -1
- package/dist-types/commands/CreateFrameworkCommand.d.ts +1 -1
- package/dist-types/commands/CreateReportPlanCommand.d.ts +1 -1
- package/dist-types/commands/DeleteBackupPlanCommand.d.ts +1 -1
- package/dist-types/commands/DeleteBackupSelectionCommand.d.ts +1 -1
- package/dist-types/commands/DeleteBackupVaultAccessPolicyCommand.d.ts +1 -1
- package/dist-types/commands/DeleteBackupVaultCommand.d.ts +1 -1
- package/dist-types/commands/DeleteBackupVaultLockConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/DeleteBackupVaultNotificationsCommand.d.ts +1 -1
- package/dist-types/commands/DeleteFrameworkCommand.d.ts +1 -1
- package/dist-types/commands/DeleteRecoveryPointCommand.d.ts +1 -1
- package/dist-types/commands/DeleteReportPlanCommand.d.ts +1 -1
- package/dist-types/commands/DescribeBackupJobCommand.d.ts +1 -1
- package/dist-types/commands/DescribeBackupVaultCommand.d.ts +1 -1
- package/dist-types/commands/DescribeCopyJobCommand.d.ts +1 -1
- package/dist-types/commands/DescribeFrameworkCommand.d.ts +1 -1
- package/dist-types/commands/DescribeGlobalSettingsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeProtectedResourceCommand.d.ts +1 -1
- package/dist-types/commands/DescribeRecoveryPointCommand.d.ts +1 -1
- package/dist-types/commands/DescribeRegionSettingsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeReportJobCommand.d.ts +1 -1
- package/dist-types/commands/DescribeReportPlanCommand.d.ts +1 -1
- package/dist-types/commands/DescribeRestoreJobCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateRecoveryPointCommand.d.ts +1 -1
- package/dist-types/commands/ExportBackupPlanTemplateCommand.d.ts +1 -1
- package/dist-types/commands/GetBackupPlanCommand.d.ts +1 -1
- package/dist-types/commands/GetBackupPlanFromJSONCommand.d.ts +1 -1
- package/dist-types/commands/GetBackupPlanFromTemplateCommand.d.ts +1 -1
- package/dist-types/commands/GetBackupSelectionCommand.d.ts +1 -1
- package/dist-types/commands/GetBackupVaultAccessPolicyCommand.d.ts +1 -1
- package/dist-types/commands/GetBackupVaultNotificationsCommand.d.ts +1 -1
- package/dist-types/commands/GetRecoveryPointRestoreMetadataCommand.d.ts +1 -1
- package/dist-types/commands/GetSupportedResourceTypesCommand.d.ts +1 -1
- package/dist-types/commands/ListBackupJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListBackupPlanTemplatesCommand.d.ts +1 -1
- package/dist-types/commands/ListBackupPlanVersionsCommand.d.ts +1 -1
- package/dist-types/commands/ListBackupPlansCommand.d.ts +1 -1
- package/dist-types/commands/ListBackupSelectionsCommand.d.ts +1 -1
- package/dist-types/commands/ListBackupVaultsCommand.d.ts +1 -1
- package/dist-types/commands/ListCopyJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListFrameworksCommand.d.ts +1 -1
- package/dist-types/commands/ListProtectedResourcesCommand.d.ts +1 -1
- package/dist-types/commands/ListRecoveryPointsByBackupVaultCommand.d.ts +1 -1
- package/dist-types/commands/ListRecoveryPointsByResourceCommand.d.ts +1 -1
- package/dist-types/commands/ListReportJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListReportPlansCommand.d.ts +1 -1
- package/dist-types/commands/ListRestoreJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsCommand.d.ts +1 -1
- package/dist-types/commands/PutBackupVaultAccessPolicyCommand.d.ts +1 -1
- package/dist-types/commands/PutBackupVaultLockConfigurationCommand.d.ts +5 -1
- package/dist-types/commands/PutBackupVaultNotificationsCommand.d.ts +1 -1
- package/dist-types/commands/StartBackupJobCommand.d.ts +1 -1
- package/dist-types/commands/StartCopyJobCommand.d.ts +1 -1
- package/dist-types/commands/StartReportJobCommand.d.ts +1 -1
- package/dist-types/commands/StartRestoreJobCommand.d.ts +1 -1
- package/dist-types/commands/StopBackupJobCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateBackupPlanCommand.d.ts +1 -1
- package/dist-types/commands/UpdateFrameworkCommand.d.ts +1 -1
- package/dist-types/commands/UpdateGlobalSettingsCommand.d.ts +1 -1
- package/dist-types/commands/UpdateRecoveryPointLifecycleCommand.d.ts +1 -1
- package/dist-types/commands/UpdateRegionSettingsCommand.d.ts +1 -1
- package/dist-types/commands/UpdateReportPlanCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +197 -46
- package/dist-types/ts3.4/models/models_0.d.ts +38 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,47 @@
|
|
|
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.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **clients:** update clients as of 11/28/2021 ([#3072](https://github.com/aws/aws-sdk-js-v3/issues/3072)) ([2ad1622](https://github.com/aws/aws-sdk-js-v3/commit/2ad1622ba8586b926fe508055211803bb29e3976))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
|
|
29
|
+
|
|
30
|
+
**Note:** Version bump only for package @aws-sdk/client-backup
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Features
|
|
40
|
+
|
|
41
|
+
* **clients:** update clients as of 2021/11/11 ([#3015](https://github.com/aws/aws-sdk-js-v3/issues/3015)) ([3d82c4e](https://github.com/aws/aws-sdk-js-v3/commit/3d82c4e3c4d174533f46ce35495cf5cffabdb35a))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
6
47
|
# [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
|
|
7
48
|
|
|
8
49
|
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -14,6 +14,7 @@ const partitionHash = {
|
|
|
14
14
|
"ap-south-1",
|
|
15
15
|
"ap-southeast-1",
|
|
16
16
|
"ap-southeast-2",
|
|
17
|
+
"ap-southeast-3",
|
|
17
18
|
"ca-central-1",
|
|
18
19
|
"eu-central-1",
|
|
19
20
|
"eu-north-1",
|
|
@@ -78,6 +79,10 @@ const partitionHash = {
|
|
|
78
79
|
hostname: "backup.{region}.c2s.ic.gov",
|
|
79
80
|
tags: [],
|
|
80
81
|
},
|
|
82
|
+
{
|
|
83
|
+
hostname: "backup-fips.{region}.c2s.ic.gov",
|
|
84
|
+
tags: ["fips"],
|
|
85
|
+
},
|
|
81
86
|
],
|
|
82
87
|
},
|
|
83
88
|
"aws-iso-b": {
|
|
@@ -88,6 +93,10 @@ const partitionHash = {
|
|
|
88
93
|
hostname: "backup.{region}.sc2s.sgov.gov",
|
|
89
94
|
tags: [],
|
|
90
95
|
},
|
|
96
|
+
{
|
|
97
|
+
hostname: "backup-fips.{region}.sc2s.sgov.gov",
|
|
98
|
+
tags: ["fips"],
|
|
99
|
+
},
|
|
91
100
|
],
|
|
92
101
|
},
|
|
93
102
|
"aws-us-gov": {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.UpdateReportPlanOutput = exports.UpdateReportPlanInput = exports.UpdateRegionSettingsInput = exports.UpdateRecoveryPointLifecycleOutput = exports.UpdateRecoveryPointLifecycleInput = exports.UpdateGlobalSettingsInput = exports.UpdateFrameworkOutput = exports.UpdateFrameworkInput = exports.UpdateBackupPlanOutput = exports.UpdateBackupPlanInput = exports.UntagResourceInput = void 0;
|
|
3
|
+
exports.DeleteBackupVaultInput = exports.DeleteBackupSelectionInput = exports.ResourceNotFoundException = exports.InvalidRequestException = exports.DeleteBackupPlanOutput = exports.DeleteBackupPlanInput = exports.CreateReportPlanOutput = exports.CreateReportPlanInput = exports.ReportSetting = exports.ReportDeliveryChannel = exports.CreateFrameworkOutput = exports.CreateFrameworkInput = exports.FrameworkControl = exports.CreateBackupVaultOutput = exports.CreateBackupVaultInput = exports.CreateBackupSelectionOutput = exports.CreateBackupSelectionInput = exports.ServiceUnavailableException = exports.MissingParameterValueException = exports.LimitExceededException = exports.InvalidParameterValueException = exports.CreateBackupPlanOutput = exports.CreateBackupPlanInput = exports.CopyJob = exports.CopyJobState = exports.ControlScope = exports.ControlInputParameter = exports.ConflictException = exports.CalculatedLifecycle = exports.BackupVaultListMember = exports.BackupVaultEvent = exports.BackupSelectionsListMember = exports.BackupSelection = exports.Condition = exports.ConditionType = exports.Conditions = exports.ConditionParameter = exports.BackupPlanTemplatesListMember = exports.BackupPlansListMember = exports.BackupPlanInput = exports.BackupRuleInput = exports.BackupPlan = exports.BackupRule = exports.CopyAction = exports.Lifecycle = exports.BackupJob = exports.BackupJobState = exports.RecoveryPointCreator = exports.AlreadyExistsException = exports.AdvancedBackupSetting = void 0;
|
|
4
|
+
exports.GetBackupVaultNotificationsInput = exports.GetBackupVaultAccessPolicyOutput = exports.GetBackupVaultAccessPolicyInput = exports.GetBackupSelectionOutput = exports.GetBackupSelectionInput = exports.GetBackupPlanFromTemplateOutput = exports.GetBackupPlanFromTemplateInput = exports.GetBackupPlanFromJSONOutput = exports.GetBackupPlanFromJSONInput = exports.GetBackupPlanOutput = exports.GetBackupPlanInput = exports.ExportBackupPlanTemplateOutput = exports.ExportBackupPlanTemplateInput = exports.DisassociateRecoveryPointInput = exports.DescribeRestoreJobOutput = exports.RestoreJobStatus = exports.DescribeRestoreJobInput = exports.DescribeReportPlanOutput = exports.ReportPlan = exports.DescribeReportPlanInput = exports.DescribeReportJobOutput = exports.ReportJob = exports.ReportDestination = exports.DescribeReportJobInput = exports.DescribeRegionSettingsOutput = exports.DescribeRegionSettingsInput = exports.DescribeRecoveryPointOutput = exports.StorageClass = exports.RecoveryPointStatus = exports.DescribeRecoveryPointInput = exports.DescribeProtectedResourceOutput = exports.DescribeProtectedResourceInput = exports.DescribeGlobalSettingsOutput = exports.DescribeGlobalSettingsInput = exports.DescribeFrameworkOutput = exports.DescribeFrameworkInput = exports.DescribeCopyJobOutput = exports.DescribeCopyJobInput = exports.DescribeBackupVaultOutput = exports.DescribeBackupVaultInput = exports.DescribeBackupJobOutput = exports.DescribeBackupJobInput = exports.DependencyFailureException = exports.DeleteReportPlanInput = exports.InvalidResourceStateException = exports.DeleteRecoveryPointInput = exports.DeleteFrameworkInput = exports.DeleteBackupVaultNotificationsInput = exports.DeleteBackupVaultLockConfigurationInput = exports.DeleteBackupVaultAccessPolicyInput = void 0;
|
|
5
|
+
exports.StartRestoreJobOutput = exports.StartRestoreJobInput = exports.StartReportJobOutput = exports.StartReportJobInput = exports.StartCopyJobOutput = exports.StartCopyJobInput = exports.StartBackupJobOutput = exports.StartBackupJobInput = exports.PutBackupVaultNotificationsInput = exports.PutBackupVaultLockConfigurationInput = exports.PutBackupVaultAccessPolicyInput = exports.ListTagsOutput = exports.ListTagsInput = exports.ListRestoreJobsOutput = exports.RestoreJobsListMember = exports.ListRestoreJobsInput = exports.ListReportPlansOutput = exports.ListReportPlansInput = exports.ListReportJobsOutput = exports.ListReportJobsInput = exports.ListRecoveryPointsByResourceOutput = exports.RecoveryPointByResource = exports.ListRecoveryPointsByResourceInput = exports.ListRecoveryPointsByBackupVaultOutput = exports.RecoveryPointByBackupVault = exports.ListRecoveryPointsByBackupVaultInput = exports.ListProtectedResourcesOutput = exports.ProtectedResource = exports.ListProtectedResourcesInput = exports.ListFrameworksOutput = exports.Framework = exports.ListFrameworksInput = exports.ListCopyJobsOutput = exports.ListCopyJobsInput = exports.ListBackupVaultsOutput = exports.ListBackupVaultsInput = exports.ListBackupSelectionsOutput = exports.ListBackupSelectionsInput = exports.ListBackupPlanVersionsOutput = exports.ListBackupPlanVersionsInput = exports.ListBackupPlanTemplatesOutput = exports.ListBackupPlanTemplatesInput = exports.ListBackupPlansOutput = exports.ListBackupPlansInput = exports.ListBackupJobsOutput = exports.ListBackupJobsInput = exports.GetSupportedResourceTypesOutput = exports.GetRecoveryPointRestoreMetadataOutput = exports.GetRecoveryPointRestoreMetadataInput = exports.GetBackupVaultNotificationsOutput = void 0;
|
|
6
|
+
exports.UpdateReportPlanOutput = exports.UpdateReportPlanInput = exports.UpdateRegionSettingsInput = exports.UpdateRecoveryPointLifecycleOutput = exports.UpdateRecoveryPointLifecycleInput = exports.UpdateGlobalSettingsInput = exports.UpdateFrameworkOutput = exports.UpdateFrameworkInput = exports.UpdateBackupPlanOutput = exports.UpdateBackupPlanInput = exports.UntagResourceInput = exports.TagResourceInput = exports.StopBackupJobInput = void 0;
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
var AdvancedBackupSetting;
|
|
9
9
|
(function (AdvancedBackupSetting) {
|
|
@@ -92,6 +92,18 @@ var BackupPlanTemplatesListMember;
|
|
|
92
92
|
...obj,
|
|
93
93
|
});
|
|
94
94
|
})(BackupPlanTemplatesListMember = exports.BackupPlanTemplatesListMember || (exports.BackupPlanTemplatesListMember = {}));
|
|
95
|
+
var ConditionParameter;
|
|
96
|
+
(function (ConditionParameter) {
|
|
97
|
+
ConditionParameter.filterSensitiveLog = (obj) => ({
|
|
98
|
+
...obj,
|
|
99
|
+
});
|
|
100
|
+
})(ConditionParameter = exports.ConditionParameter || (exports.ConditionParameter = {}));
|
|
101
|
+
var Conditions;
|
|
102
|
+
(function (Conditions) {
|
|
103
|
+
Conditions.filterSensitiveLog = (obj) => ({
|
|
104
|
+
...obj,
|
|
105
|
+
});
|
|
106
|
+
})(Conditions = exports.Conditions || (exports.Conditions = {}));
|
|
95
107
|
var ConditionType;
|
|
96
108
|
(function (ConditionType) {
|
|
97
109
|
ConditionType["STRINGEQUALS"] = "STRINGEQUALS";
|
|
@@ -1890,6 +1890,10 @@ const serializeAws_restJson1UpdateRegionSettingsCommand = async (input, context)
|
|
|
1890
1890
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/account-settings";
|
|
1891
1891
|
let body;
|
|
1892
1892
|
body = JSON.stringify({
|
|
1893
|
+
...(input.ResourceTypeManagementPreference !== undefined &&
|
|
1894
|
+
input.ResourceTypeManagementPreference !== null && {
|
|
1895
|
+
ResourceTypeManagementPreference: serializeAws_restJson1ResourceTypeManagementPreference(input.ResourceTypeManagementPreference, context),
|
|
1896
|
+
}),
|
|
1893
1897
|
...(input.ResourceTypeOptInPreference !== undefined &&
|
|
1894
1898
|
input.ResourceTypeOptInPreference !== null && {
|
|
1895
1899
|
ResourceTypeOptInPreference: serializeAws_restJson1ResourceTypeOptInPreference(input.ResourceTypeOptInPreference, context),
|
|
@@ -3802,9 +3806,13 @@ const deserializeAws_restJson1DescribeRegionSettingsCommand = async (output, con
|
|
|
3802
3806
|
}
|
|
3803
3807
|
const contents = {
|
|
3804
3808
|
$metadata: deserializeMetadata(output),
|
|
3809
|
+
ResourceTypeManagementPreference: undefined,
|
|
3805
3810
|
ResourceTypeOptInPreference: undefined,
|
|
3806
3811
|
};
|
|
3807
3812
|
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3813
|
+
if (data.ResourceTypeManagementPreference !== undefined && data.ResourceTypeManagementPreference !== null) {
|
|
3814
|
+
contents.ResourceTypeManagementPreference = deserializeAws_restJson1ResourceTypeManagementPreference(data.ResourceTypeManagementPreference, context);
|
|
3815
|
+
}
|
|
3808
3816
|
if (data.ResourceTypeOptInPreference !== undefined && data.ResourceTypeOptInPreference !== null) {
|
|
3809
3817
|
contents.ResourceTypeOptInPreference = deserializeAws_restJson1ResourceTypeOptInPreference(data.ResourceTypeOptInPreference, context);
|
|
3810
3818
|
}
|
|
@@ -7012,6 +7020,14 @@ const deserializeAws_restJson1UpdateRecoveryPointLifecycleCommandError = async (
|
|
|
7012
7020
|
$metadata: deserializeMetadata(output),
|
|
7013
7021
|
};
|
|
7014
7022
|
break;
|
|
7023
|
+
case "InvalidRequestException":
|
|
7024
|
+
case "com.amazonaws.backup#InvalidRequestException":
|
|
7025
|
+
response = {
|
|
7026
|
+
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
7027
|
+
name: errorCode,
|
|
7028
|
+
$metadata: deserializeMetadata(output),
|
|
7029
|
+
};
|
|
7030
|
+
break;
|
|
7015
7031
|
case "MissingParameterValueException":
|
|
7016
7032
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
7017
7033
|
response = {
|
|
@@ -7535,9 +7551,13 @@ const serializeAws_restJson1BackupRulesInput = (input, context) => {
|
|
|
7535
7551
|
};
|
|
7536
7552
|
const serializeAws_restJson1BackupSelection = (input, context) => {
|
|
7537
7553
|
return {
|
|
7554
|
+
...(input.Conditions !== undefined &&
|
|
7555
|
+
input.Conditions !== null && { Conditions: serializeAws_restJson1Conditions(input.Conditions, context) }),
|
|
7538
7556
|
...(input.IamRoleArn !== undefined && input.IamRoleArn !== null && { IamRoleArn: input.IamRoleArn }),
|
|
7539
7557
|
...(input.ListOfTags !== undefined &&
|
|
7540
7558
|
input.ListOfTags !== null && { ListOfTags: serializeAws_restJson1ListOfTags(input.ListOfTags, context) }),
|
|
7559
|
+
...(input.NotResources !== undefined &&
|
|
7560
|
+
input.NotResources !== null && { NotResources: serializeAws_restJson1ResourceArns(input.NotResources, context) }),
|
|
7541
7561
|
...(input.Resources !== undefined &&
|
|
7542
7562
|
input.Resources !== null && { Resources: serializeAws_restJson1ResourceArns(input.Resources, context) }),
|
|
7543
7563
|
...(input.SelectionName !== undefined && input.SelectionName !== null && { SelectionName: input.SelectionName }),
|
|
@@ -7571,6 +7591,43 @@ const serializeAws_restJson1Condition = (input, context) => {
|
|
|
7571
7591
|
input.ConditionValue !== null && { ConditionValue: input.ConditionValue }),
|
|
7572
7592
|
};
|
|
7573
7593
|
};
|
|
7594
|
+
const serializeAws_restJson1ConditionParameter = (input, context) => {
|
|
7595
|
+
return {
|
|
7596
|
+
...(input.ConditionKey !== undefined && input.ConditionKey !== null && { ConditionKey: input.ConditionKey }),
|
|
7597
|
+
...(input.ConditionValue !== undefined &&
|
|
7598
|
+
input.ConditionValue !== null && { ConditionValue: input.ConditionValue }),
|
|
7599
|
+
};
|
|
7600
|
+
};
|
|
7601
|
+
const serializeAws_restJson1ConditionParameters = (input, context) => {
|
|
7602
|
+
return input
|
|
7603
|
+
.filter((e) => e != null)
|
|
7604
|
+
.map((entry) => {
|
|
7605
|
+
if (entry === null) {
|
|
7606
|
+
return null;
|
|
7607
|
+
}
|
|
7608
|
+
return serializeAws_restJson1ConditionParameter(entry, context);
|
|
7609
|
+
});
|
|
7610
|
+
};
|
|
7611
|
+
const serializeAws_restJson1Conditions = (input, context) => {
|
|
7612
|
+
return {
|
|
7613
|
+
...(input.StringEquals !== undefined &&
|
|
7614
|
+
input.StringEquals !== null && {
|
|
7615
|
+
StringEquals: serializeAws_restJson1ConditionParameters(input.StringEquals, context),
|
|
7616
|
+
}),
|
|
7617
|
+
...(input.StringLike !== undefined &&
|
|
7618
|
+
input.StringLike !== null && {
|
|
7619
|
+
StringLike: serializeAws_restJson1ConditionParameters(input.StringLike, context),
|
|
7620
|
+
}),
|
|
7621
|
+
...(input.StringNotEquals !== undefined &&
|
|
7622
|
+
input.StringNotEquals !== null && {
|
|
7623
|
+
StringNotEquals: serializeAws_restJson1ConditionParameters(input.StringNotEquals, context),
|
|
7624
|
+
}),
|
|
7625
|
+
...(input.StringNotLike !== undefined &&
|
|
7626
|
+
input.StringNotLike !== null && {
|
|
7627
|
+
StringNotLike: serializeAws_restJson1ConditionParameters(input.StringNotLike, context),
|
|
7628
|
+
}),
|
|
7629
|
+
};
|
|
7630
|
+
};
|
|
7574
7631
|
const serializeAws_restJson1ControlInputParameter = (input, context) => {
|
|
7575
7632
|
return {
|
|
7576
7633
|
...(input.ParameterName !== undefined && input.ParameterName !== null && { ParameterName: input.ParameterName }),
|
|
@@ -7731,6 +7788,17 @@ const serializeAws_restJson1ResourceTypeList = (input, context) => {
|
|
|
7731
7788
|
return entry;
|
|
7732
7789
|
});
|
|
7733
7790
|
};
|
|
7791
|
+
const serializeAws_restJson1ResourceTypeManagementPreference = (input, context) => {
|
|
7792
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
7793
|
+
if (value === null) {
|
|
7794
|
+
return acc;
|
|
7795
|
+
}
|
|
7796
|
+
return {
|
|
7797
|
+
...acc,
|
|
7798
|
+
[key]: value,
|
|
7799
|
+
};
|
|
7800
|
+
}, {});
|
|
7801
|
+
};
|
|
7734
7802
|
const serializeAws_restJson1ResourceTypeOptInPreference = (input, context) => {
|
|
7735
7803
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
7736
7804
|
if (value === null) {
|
|
@@ -7959,10 +8027,16 @@ const deserializeAws_restJson1BackupRules = (output, context) => {
|
|
|
7959
8027
|
};
|
|
7960
8028
|
const deserializeAws_restJson1BackupSelection = (output, context) => {
|
|
7961
8029
|
return {
|
|
8030
|
+
Conditions: output.Conditions !== undefined && output.Conditions !== null
|
|
8031
|
+
? deserializeAws_restJson1Conditions(output.Conditions, context)
|
|
8032
|
+
: undefined,
|
|
7962
8033
|
IamRoleArn: smithy_client_1.expectString(output.IamRoleArn),
|
|
7963
8034
|
ListOfTags: output.ListOfTags !== undefined && output.ListOfTags !== null
|
|
7964
8035
|
? deserializeAws_restJson1ListOfTags(output.ListOfTags, context)
|
|
7965
8036
|
: undefined,
|
|
8037
|
+
NotResources: output.NotResources !== undefined && output.NotResources !== null
|
|
8038
|
+
? deserializeAws_restJson1ResourceArns(output.NotResources, context)
|
|
8039
|
+
: undefined,
|
|
7966
8040
|
Resources: output.Resources !== undefined && output.Resources !== null
|
|
7967
8041
|
? deserializeAws_restJson1ResourceArns(output.Resources, context)
|
|
7968
8042
|
: undefined,
|
|
@@ -8056,6 +8130,38 @@ const deserializeAws_restJson1Condition = (output, context) => {
|
|
|
8056
8130
|
ConditionValue: smithy_client_1.expectString(output.ConditionValue),
|
|
8057
8131
|
};
|
|
8058
8132
|
};
|
|
8133
|
+
const deserializeAws_restJson1ConditionParameter = (output, context) => {
|
|
8134
|
+
return {
|
|
8135
|
+
ConditionKey: smithy_client_1.expectString(output.ConditionKey),
|
|
8136
|
+
ConditionValue: smithy_client_1.expectString(output.ConditionValue),
|
|
8137
|
+
};
|
|
8138
|
+
};
|
|
8139
|
+
const deserializeAws_restJson1ConditionParameters = (output, context) => {
|
|
8140
|
+
return (output || [])
|
|
8141
|
+
.filter((e) => e != null)
|
|
8142
|
+
.map((entry) => {
|
|
8143
|
+
if (entry === null) {
|
|
8144
|
+
return null;
|
|
8145
|
+
}
|
|
8146
|
+
return deserializeAws_restJson1ConditionParameter(entry, context);
|
|
8147
|
+
});
|
|
8148
|
+
};
|
|
8149
|
+
const deserializeAws_restJson1Conditions = (output, context) => {
|
|
8150
|
+
return {
|
|
8151
|
+
StringEquals: output.StringEquals !== undefined && output.StringEquals !== null
|
|
8152
|
+
? deserializeAws_restJson1ConditionParameters(output.StringEquals, context)
|
|
8153
|
+
: undefined,
|
|
8154
|
+
StringLike: output.StringLike !== undefined && output.StringLike !== null
|
|
8155
|
+
? deserializeAws_restJson1ConditionParameters(output.StringLike, context)
|
|
8156
|
+
: undefined,
|
|
8157
|
+
StringNotEquals: output.StringNotEquals !== undefined && output.StringNotEquals !== null
|
|
8158
|
+
? deserializeAws_restJson1ConditionParameters(output.StringNotEquals, context)
|
|
8159
|
+
: undefined,
|
|
8160
|
+
StringNotLike: output.StringNotLike !== undefined && output.StringNotLike !== null
|
|
8161
|
+
? deserializeAws_restJson1ConditionParameters(output.StringNotLike, context)
|
|
8162
|
+
: undefined,
|
|
8163
|
+
};
|
|
8164
|
+
};
|
|
8059
8165
|
const deserializeAws_restJson1ControlInputParameter = (output, context) => {
|
|
8060
8166
|
return {
|
|
8061
8167
|
ParameterName: smithy_client_1.expectString(output.ParameterName),
|
|
@@ -8430,6 +8536,17 @@ const deserializeAws_restJson1ResourceTypeList = (output, context) => {
|
|
|
8430
8536
|
return smithy_client_1.expectString(entry);
|
|
8431
8537
|
});
|
|
8432
8538
|
};
|
|
8539
|
+
const deserializeAws_restJson1ResourceTypeManagementPreference = (output, context) => {
|
|
8540
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
8541
|
+
if (value === null) {
|
|
8542
|
+
return acc;
|
|
8543
|
+
}
|
|
8544
|
+
return {
|
|
8545
|
+
...acc,
|
|
8546
|
+
[key]: smithy_client_1.expectBoolean(value),
|
|
8547
|
+
};
|
|
8548
|
+
}, {});
|
|
8549
|
+
};
|
|
8433
8550
|
const deserializeAws_restJson1ResourceTypeOptInPreference = (output, context) => {
|
|
8434
8551
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
8435
8552
|
if (value === null) {
|
package/dist-es/endpoints.js
CHANGED
|
@@ -12,6 +12,7 @@ var partitionHash = {
|
|
|
12
12
|
"ap-south-1",
|
|
13
13
|
"ap-southeast-1",
|
|
14
14
|
"ap-southeast-2",
|
|
15
|
+
"ap-southeast-3",
|
|
15
16
|
"ca-central-1",
|
|
16
17
|
"eu-central-1",
|
|
17
18
|
"eu-north-1",
|
|
@@ -76,6 +77,10 @@ var partitionHash = {
|
|
|
76
77
|
hostname: "backup.{region}.c2s.ic.gov",
|
|
77
78
|
tags: [],
|
|
78
79
|
},
|
|
80
|
+
{
|
|
81
|
+
hostname: "backup-fips.{region}.c2s.ic.gov",
|
|
82
|
+
tags: ["fips"],
|
|
83
|
+
},
|
|
79
84
|
],
|
|
80
85
|
},
|
|
81
86
|
"aws-iso-b": {
|
|
@@ -86,6 +91,10 @@ var partitionHash = {
|
|
|
86
91
|
hostname: "backup.{region}.sc2s.sgov.gov",
|
|
87
92
|
tags: [],
|
|
88
93
|
},
|
|
94
|
+
{
|
|
95
|
+
hostname: "backup-fips.{region}.sc2s.sgov.gov",
|
|
96
|
+
tags: ["fips"],
|
|
97
|
+
},
|
|
89
98
|
],
|
|
90
99
|
},
|
|
91
100
|
"aws-us-gov": {
|
|
@@ -59,6 +59,14 @@ export var BackupPlanTemplatesListMember;
|
|
|
59
59
|
(function (BackupPlanTemplatesListMember) {
|
|
60
60
|
BackupPlanTemplatesListMember.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
61
61
|
})(BackupPlanTemplatesListMember || (BackupPlanTemplatesListMember = {}));
|
|
62
|
+
export var ConditionParameter;
|
|
63
|
+
(function (ConditionParameter) {
|
|
64
|
+
ConditionParameter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
65
|
+
})(ConditionParameter || (ConditionParameter = {}));
|
|
66
|
+
export var Conditions;
|
|
67
|
+
(function (Conditions) {
|
|
68
|
+
Conditions.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
69
|
+
})(Conditions || (Conditions = {}));
|
|
62
70
|
export var ConditionType;
|
|
63
71
|
(function (ConditionType) {
|
|
64
72
|
ConditionType["STRINGEQUALS"] = "STRINGEQUALS";
|
|
@@ -2062,7 +2062,10 @@ export var serializeAws_restJson1UpdateRegionSettingsCommand = function (input,
|
|
|
2062
2062
|
"content-type": "application/json",
|
|
2063
2063
|
};
|
|
2064
2064
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/account-settings";
|
|
2065
|
-
body = JSON.stringify(__assign({}, (input.
|
|
2065
|
+
body = JSON.stringify(__assign(__assign({}, (input.ResourceTypeManagementPreference !== undefined &&
|
|
2066
|
+
input.ResourceTypeManagementPreference !== null && {
|
|
2067
|
+
ResourceTypeManagementPreference: serializeAws_restJson1ResourceTypeManagementPreference(input.ResourceTypeManagementPreference, context),
|
|
2068
|
+
})), (input.ResourceTypeOptInPreference !== undefined &&
|
|
2066
2069
|
input.ResourceTypeOptInPreference !== null && {
|
|
2067
2070
|
ResourceTypeOptInPreference: serializeAws_restJson1ResourceTypeOptInPreference(input.ResourceTypeOptInPreference, context),
|
|
2068
2071
|
})));
|
|
@@ -4256,6 +4259,7 @@ export var deserializeAws_restJson1DescribeRegionSettingsCommand = function (out
|
|
|
4256
4259
|
}
|
|
4257
4260
|
contents = {
|
|
4258
4261
|
$metadata: deserializeMetadata(output),
|
|
4262
|
+
ResourceTypeManagementPreference: undefined,
|
|
4259
4263
|
ResourceTypeOptInPreference: undefined,
|
|
4260
4264
|
};
|
|
4261
4265
|
_a = __expectNonNull;
|
|
@@ -4263,6 +4267,9 @@ export var deserializeAws_restJson1DescribeRegionSettingsCommand = function (out
|
|
|
4263
4267
|
return [4, parseBody(output.body, context)];
|
|
4264
4268
|
case 1:
|
|
4265
4269
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4270
|
+
if (data.ResourceTypeManagementPreference !== undefined && data.ResourceTypeManagementPreference !== null) {
|
|
4271
|
+
contents.ResourceTypeManagementPreference = deserializeAws_restJson1ResourceTypeManagementPreference(data.ResourceTypeManagementPreference, context);
|
|
4272
|
+
}
|
|
4266
4273
|
if (data.ResourceTypeOptInPreference !== undefined && data.ResourceTypeOptInPreference !== null) {
|
|
4267
4274
|
contents.ResourceTypeOptInPreference = deserializeAws_restJson1ResourceTypeOptInPreference(data.ResourceTypeOptInPreference, context);
|
|
4268
4275
|
}
|
|
@@ -8027,60 +8034,68 @@ export var deserializeAws_restJson1UpdateRecoveryPointLifecycleCommand = functio
|
|
|
8027
8034
|
});
|
|
8028
8035
|
}); };
|
|
8029
8036
|
var deserializeAws_restJson1UpdateRecoveryPointLifecycleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8030
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
8031
|
-
var
|
|
8032
|
-
return __generator(this, function (
|
|
8033
|
-
switch (
|
|
8037
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
8038
|
+
var _h;
|
|
8039
|
+
return __generator(this, function (_j) {
|
|
8040
|
+
switch (_j.label) {
|
|
8034
8041
|
case 0:
|
|
8035
8042
|
_a = [__assign({}, output)];
|
|
8036
|
-
|
|
8043
|
+
_h = {};
|
|
8037
8044
|
return [4, parseBody(output.body, context)];
|
|
8038
8045
|
case 1:
|
|
8039
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
8046
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
8040
8047
|
errorCode = "UnknownError";
|
|
8041
8048
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8042
8049
|
_b = errorCode;
|
|
8043
8050
|
switch (_b) {
|
|
8044
8051
|
case "InvalidParameterValueException": return [3, 2];
|
|
8045
8052
|
case "com.amazonaws.backup#InvalidParameterValueException": return [3, 2];
|
|
8046
|
-
case "
|
|
8047
|
-
case "com.amazonaws.backup#
|
|
8048
|
-
case "
|
|
8049
|
-
case "com.amazonaws.backup#
|
|
8050
|
-
case "
|
|
8051
|
-
case "com.amazonaws.backup#
|
|
8053
|
+
case "InvalidRequestException": return [3, 4];
|
|
8054
|
+
case "com.amazonaws.backup#InvalidRequestException": return [3, 4];
|
|
8055
|
+
case "MissingParameterValueException": return [3, 6];
|
|
8056
|
+
case "com.amazonaws.backup#MissingParameterValueException": return [3, 6];
|
|
8057
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
8058
|
+
case "com.amazonaws.backup#ResourceNotFoundException": return [3, 8];
|
|
8059
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
8060
|
+
case "com.amazonaws.backup#ServiceUnavailableException": return [3, 10];
|
|
8052
8061
|
}
|
|
8053
|
-
return [3,
|
|
8062
|
+
return [3, 12];
|
|
8054
8063
|
case 2:
|
|
8055
8064
|
_c = [{}];
|
|
8056
8065
|
return [4, deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
8057
8066
|
case 3:
|
|
8058
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
8059
|
-
return [3,
|
|
8067
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
8068
|
+
return [3, 13];
|
|
8060
8069
|
case 4:
|
|
8061
8070
|
_d = [{}];
|
|
8062
|
-
return [4,
|
|
8071
|
+
return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
8063
8072
|
case 5:
|
|
8064
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
8065
|
-
return [3,
|
|
8073
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
8074
|
+
return [3, 13];
|
|
8066
8075
|
case 6:
|
|
8067
8076
|
_e = [{}];
|
|
8068
|
-
return [4,
|
|
8077
|
+
return [4, deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)];
|
|
8069
8078
|
case 7:
|
|
8070
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
8071
|
-
return [3,
|
|
8079
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
8080
|
+
return [3, 13];
|
|
8072
8081
|
case 8:
|
|
8073
8082
|
_f = [{}];
|
|
8074
|
-
return [4,
|
|
8083
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
8075
8084
|
case 9:
|
|
8076
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(
|
|
8077
|
-
return [3,
|
|
8085
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
8086
|
+
return [3, 13];
|
|
8078
8087
|
case 10:
|
|
8088
|
+
_g = [{}];
|
|
8089
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
8090
|
+
case 11:
|
|
8091
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
8092
|
+
return [3, 13];
|
|
8093
|
+
case 12:
|
|
8079
8094
|
parsedBody = parsedOutput.body;
|
|
8080
8095
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
8081
8096
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
8082
|
-
|
|
8083
|
-
case
|
|
8097
|
+
_j.label = 13;
|
|
8098
|
+
case 13:
|
|
8084
8099
|
message = response.message || response.Message || errorCode;
|
|
8085
8100
|
response.message = message;
|
|
8086
8101
|
delete response.Message;
|
|
@@ -8608,8 +8623,10 @@ var serializeAws_restJson1BackupRulesInput = function (input, context) {
|
|
|
8608
8623
|
});
|
|
8609
8624
|
};
|
|
8610
8625
|
var serializeAws_restJson1BackupSelection = function (input, context) {
|
|
8611
|
-
return __assign(__assign(__assign(__assign(
|
|
8612
|
-
input.
|
|
8626
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Conditions !== undefined &&
|
|
8627
|
+
input.Conditions !== null && { Conditions: serializeAws_restJson1Conditions(input.Conditions, context) })), (input.IamRoleArn !== undefined && input.IamRoleArn !== null && { IamRoleArn: input.IamRoleArn })), (input.ListOfTags !== undefined &&
|
|
8628
|
+
input.ListOfTags !== null && { ListOfTags: serializeAws_restJson1ListOfTags(input.ListOfTags, context) })), (input.NotResources !== undefined &&
|
|
8629
|
+
input.NotResources !== null && { NotResources: serializeAws_restJson1ResourceArns(input.NotResources, context) })), (input.Resources !== undefined &&
|
|
8613
8630
|
input.Resources !== null && { Resources: serializeAws_restJson1ResourceArns(input.Resources, context) })), (input.SelectionName !== undefined && input.SelectionName !== null && { SelectionName: input.SelectionName }));
|
|
8614
8631
|
};
|
|
8615
8632
|
var serializeAws_restJson1BackupVaultEvents = function (input, context) {
|
|
@@ -8636,6 +8653,35 @@ var serializeAws_restJson1Condition = function (input, context) {
|
|
|
8636
8653
|
return __assign(__assign(__assign({}, (input.ConditionKey !== undefined && input.ConditionKey !== null && { ConditionKey: input.ConditionKey })), (input.ConditionType !== undefined && input.ConditionType !== null && { ConditionType: input.ConditionType })), (input.ConditionValue !== undefined &&
|
|
8637
8654
|
input.ConditionValue !== null && { ConditionValue: input.ConditionValue }));
|
|
8638
8655
|
};
|
|
8656
|
+
var serializeAws_restJson1ConditionParameter = function (input, context) {
|
|
8657
|
+
return __assign(__assign({}, (input.ConditionKey !== undefined && input.ConditionKey !== null && { ConditionKey: input.ConditionKey })), (input.ConditionValue !== undefined &&
|
|
8658
|
+
input.ConditionValue !== null && { ConditionValue: input.ConditionValue }));
|
|
8659
|
+
};
|
|
8660
|
+
var serializeAws_restJson1ConditionParameters = function (input, context) {
|
|
8661
|
+
return input
|
|
8662
|
+
.filter(function (e) { return e != null; })
|
|
8663
|
+
.map(function (entry) {
|
|
8664
|
+
if (entry === null) {
|
|
8665
|
+
return null;
|
|
8666
|
+
}
|
|
8667
|
+
return serializeAws_restJson1ConditionParameter(entry, context);
|
|
8668
|
+
});
|
|
8669
|
+
};
|
|
8670
|
+
var serializeAws_restJson1Conditions = function (input, context) {
|
|
8671
|
+
return __assign(__assign(__assign(__assign({}, (input.StringEquals !== undefined &&
|
|
8672
|
+
input.StringEquals !== null && {
|
|
8673
|
+
StringEquals: serializeAws_restJson1ConditionParameters(input.StringEquals, context),
|
|
8674
|
+
})), (input.StringLike !== undefined &&
|
|
8675
|
+
input.StringLike !== null && {
|
|
8676
|
+
StringLike: serializeAws_restJson1ConditionParameters(input.StringLike, context),
|
|
8677
|
+
})), (input.StringNotEquals !== undefined &&
|
|
8678
|
+
input.StringNotEquals !== null && {
|
|
8679
|
+
StringNotEquals: serializeAws_restJson1ConditionParameters(input.StringNotEquals, context),
|
|
8680
|
+
})), (input.StringNotLike !== undefined &&
|
|
8681
|
+
input.StringNotLike !== null && {
|
|
8682
|
+
StringNotLike: serializeAws_restJson1ConditionParameters(input.StringNotLike, context),
|
|
8683
|
+
}));
|
|
8684
|
+
};
|
|
8639
8685
|
var serializeAws_restJson1ControlInputParameter = function (input, context) {
|
|
8640
8686
|
return __assign(__assign({}, (input.ParameterName !== undefined && input.ParameterName !== null && { ParameterName: input.ParameterName })), (input.ParameterValue !== undefined &&
|
|
8641
8687
|
input.ParameterValue !== null && { ParameterValue: input.ParameterValue }));
|
|
@@ -8769,6 +8815,16 @@ var serializeAws_restJson1ResourceTypeList = function (input, context) {
|
|
|
8769
8815
|
return entry;
|
|
8770
8816
|
});
|
|
8771
8817
|
};
|
|
8818
|
+
var serializeAws_restJson1ResourceTypeManagementPreference = function (input, context) {
|
|
8819
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
8820
|
+
var _b;
|
|
8821
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
8822
|
+
if (value === null) {
|
|
8823
|
+
return acc;
|
|
8824
|
+
}
|
|
8825
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
8826
|
+
}, {});
|
|
8827
|
+
};
|
|
8772
8828
|
var serializeAws_restJson1ResourceTypeOptInPreference = function (input, context) {
|
|
8773
8829
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
8774
8830
|
var _b;
|
|
@@ -8993,10 +9049,16 @@ var deserializeAws_restJson1BackupRules = function (output, context) {
|
|
|
8993
9049
|
};
|
|
8994
9050
|
var deserializeAws_restJson1BackupSelection = function (output, context) {
|
|
8995
9051
|
return {
|
|
9052
|
+
Conditions: output.Conditions !== undefined && output.Conditions !== null
|
|
9053
|
+
? deserializeAws_restJson1Conditions(output.Conditions, context)
|
|
9054
|
+
: undefined,
|
|
8996
9055
|
IamRoleArn: __expectString(output.IamRoleArn),
|
|
8997
9056
|
ListOfTags: output.ListOfTags !== undefined && output.ListOfTags !== null
|
|
8998
9057
|
? deserializeAws_restJson1ListOfTags(output.ListOfTags, context)
|
|
8999
9058
|
: undefined,
|
|
9059
|
+
NotResources: output.NotResources !== undefined && output.NotResources !== null
|
|
9060
|
+
? deserializeAws_restJson1ResourceArns(output.NotResources, context)
|
|
9061
|
+
: undefined,
|
|
9000
9062
|
Resources: output.Resources !== undefined && output.Resources !== null
|
|
9001
9063
|
? deserializeAws_restJson1ResourceArns(output.Resources, context)
|
|
9002
9064
|
: undefined,
|
|
@@ -9090,6 +9152,38 @@ var deserializeAws_restJson1Condition = function (output, context) {
|
|
|
9090
9152
|
ConditionValue: __expectString(output.ConditionValue),
|
|
9091
9153
|
};
|
|
9092
9154
|
};
|
|
9155
|
+
var deserializeAws_restJson1ConditionParameter = function (output, context) {
|
|
9156
|
+
return {
|
|
9157
|
+
ConditionKey: __expectString(output.ConditionKey),
|
|
9158
|
+
ConditionValue: __expectString(output.ConditionValue),
|
|
9159
|
+
};
|
|
9160
|
+
};
|
|
9161
|
+
var deserializeAws_restJson1ConditionParameters = function (output, context) {
|
|
9162
|
+
return (output || [])
|
|
9163
|
+
.filter(function (e) { return e != null; })
|
|
9164
|
+
.map(function (entry) {
|
|
9165
|
+
if (entry === null) {
|
|
9166
|
+
return null;
|
|
9167
|
+
}
|
|
9168
|
+
return deserializeAws_restJson1ConditionParameter(entry, context);
|
|
9169
|
+
});
|
|
9170
|
+
};
|
|
9171
|
+
var deserializeAws_restJson1Conditions = function (output, context) {
|
|
9172
|
+
return {
|
|
9173
|
+
StringEquals: output.StringEquals !== undefined && output.StringEquals !== null
|
|
9174
|
+
? deserializeAws_restJson1ConditionParameters(output.StringEquals, context)
|
|
9175
|
+
: undefined,
|
|
9176
|
+
StringLike: output.StringLike !== undefined && output.StringLike !== null
|
|
9177
|
+
? deserializeAws_restJson1ConditionParameters(output.StringLike, context)
|
|
9178
|
+
: undefined,
|
|
9179
|
+
StringNotEquals: output.StringNotEquals !== undefined && output.StringNotEquals !== null
|
|
9180
|
+
? deserializeAws_restJson1ConditionParameters(output.StringNotEquals, context)
|
|
9181
|
+
: undefined,
|
|
9182
|
+
StringNotLike: output.StringNotLike !== undefined && output.StringNotLike !== null
|
|
9183
|
+
? deserializeAws_restJson1ConditionParameters(output.StringNotLike, context)
|
|
9184
|
+
: undefined,
|
|
9185
|
+
};
|
|
9186
|
+
};
|
|
9093
9187
|
var deserializeAws_restJson1ControlInputParameter = function (output, context) {
|
|
9094
9188
|
return {
|
|
9095
9189
|
ParameterName: __expectString(output.ParameterName),
|
|
@@ -9462,6 +9556,16 @@ var deserializeAws_restJson1ResourceTypeList = function (output, context) {
|
|
|
9462
9556
|
return __expectString(entry);
|
|
9463
9557
|
});
|
|
9464
9558
|
};
|
|
9559
|
+
var deserializeAws_restJson1ResourceTypeManagementPreference = function (output, context) {
|
|
9560
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
9561
|
+
var _b;
|
|
9562
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
9563
|
+
if (value === null) {
|
|
9564
|
+
return acc;
|
|
9565
|
+
}
|
|
9566
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectBoolean(value), _b));
|
|
9567
|
+
}, {});
|
|
9568
|
+
};
|
|
9465
9569
|
var deserializeAws_restJson1ResourceTypeOptInPreference = function (output, context) {
|
|
9466
9570
|
return Object.entries(output).reduce(function (acc, _a) {
|
|
9467
9571
|
var _b;
|