@aws-sdk/client-backup 3.39.0 → 3.43.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.
Files changed (89) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist-cjs/endpoints.js +74 -5
  3. package/dist-cjs/models/models_0.js +16 -4
  4. package/dist-cjs/protocols/Aws_restJson1.js +117 -0
  5. package/dist-cjs/runtimeConfig.browser.js +6 -3
  6. package/dist-cjs/runtimeConfig.js +5 -3
  7. package/dist-es/endpoints.js +74 -5
  8. package/dist-es/models/models_0.js +8 -0
  9. package/dist-es/protocols/Aws_restJson1.js +133 -29
  10. package/dist-es/runtimeConfig.browser.js +3 -2
  11. package/dist-es/runtimeConfig.js +3 -3
  12. package/dist-types/Backup.d.ts +6 -40
  13. package/dist-types/BackupClient.d.ts +8 -0
  14. package/dist-types/commands/CreateBackupPlanCommand.d.ts +1 -1
  15. package/dist-types/commands/CreateBackupSelectionCommand.d.ts +3 -41
  16. package/dist-types/commands/CreateBackupVaultCommand.d.ts +1 -1
  17. package/dist-types/commands/CreateFrameworkCommand.d.ts +1 -1
  18. package/dist-types/commands/CreateReportPlanCommand.d.ts +1 -1
  19. package/dist-types/commands/DeleteBackupPlanCommand.d.ts +1 -1
  20. package/dist-types/commands/DeleteBackupSelectionCommand.d.ts +1 -1
  21. package/dist-types/commands/DeleteBackupVaultAccessPolicyCommand.d.ts +1 -1
  22. package/dist-types/commands/DeleteBackupVaultCommand.d.ts +1 -1
  23. package/dist-types/commands/DeleteBackupVaultLockConfigurationCommand.d.ts +1 -1
  24. package/dist-types/commands/DeleteBackupVaultNotificationsCommand.d.ts +1 -1
  25. package/dist-types/commands/DeleteFrameworkCommand.d.ts +1 -1
  26. package/dist-types/commands/DeleteRecoveryPointCommand.d.ts +1 -1
  27. package/dist-types/commands/DeleteReportPlanCommand.d.ts +1 -1
  28. package/dist-types/commands/DescribeBackupJobCommand.d.ts +1 -1
  29. package/dist-types/commands/DescribeBackupVaultCommand.d.ts +1 -1
  30. package/dist-types/commands/DescribeCopyJobCommand.d.ts +1 -1
  31. package/dist-types/commands/DescribeFrameworkCommand.d.ts +1 -1
  32. package/dist-types/commands/DescribeGlobalSettingsCommand.d.ts +1 -1
  33. package/dist-types/commands/DescribeProtectedResourceCommand.d.ts +1 -1
  34. package/dist-types/commands/DescribeRecoveryPointCommand.d.ts +1 -1
  35. package/dist-types/commands/DescribeRegionSettingsCommand.d.ts +1 -1
  36. package/dist-types/commands/DescribeReportJobCommand.d.ts +1 -1
  37. package/dist-types/commands/DescribeReportPlanCommand.d.ts +1 -1
  38. package/dist-types/commands/DescribeRestoreJobCommand.d.ts +1 -1
  39. package/dist-types/commands/DisassociateRecoveryPointCommand.d.ts +1 -1
  40. package/dist-types/commands/ExportBackupPlanTemplateCommand.d.ts +1 -1
  41. package/dist-types/commands/GetBackupPlanCommand.d.ts +1 -1
  42. package/dist-types/commands/GetBackupPlanFromJSONCommand.d.ts +1 -1
  43. package/dist-types/commands/GetBackupPlanFromTemplateCommand.d.ts +1 -1
  44. package/dist-types/commands/GetBackupSelectionCommand.d.ts +1 -1
  45. package/dist-types/commands/GetBackupVaultAccessPolicyCommand.d.ts +1 -1
  46. package/dist-types/commands/GetBackupVaultNotificationsCommand.d.ts +1 -1
  47. package/dist-types/commands/GetRecoveryPointRestoreMetadataCommand.d.ts +1 -1
  48. package/dist-types/commands/GetSupportedResourceTypesCommand.d.ts +1 -1
  49. package/dist-types/commands/ListBackupJobsCommand.d.ts +1 -1
  50. package/dist-types/commands/ListBackupPlanTemplatesCommand.d.ts +1 -1
  51. package/dist-types/commands/ListBackupPlanVersionsCommand.d.ts +1 -1
  52. package/dist-types/commands/ListBackupPlansCommand.d.ts +1 -1
  53. package/dist-types/commands/ListBackupSelectionsCommand.d.ts +1 -1
  54. package/dist-types/commands/ListBackupVaultsCommand.d.ts +1 -1
  55. package/dist-types/commands/ListCopyJobsCommand.d.ts +1 -1
  56. package/dist-types/commands/ListFrameworksCommand.d.ts +1 -1
  57. package/dist-types/commands/ListProtectedResourcesCommand.d.ts +1 -1
  58. package/dist-types/commands/ListRecoveryPointsByBackupVaultCommand.d.ts +1 -1
  59. package/dist-types/commands/ListRecoveryPointsByResourceCommand.d.ts +1 -1
  60. package/dist-types/commands/ListReportJobsCommand.d.ts +1 -1
  61. package/dist-types/commands/ListReportPlansCommand.d.ts +1 -1
  62. package/dist-types/commands/ListRestoreJobsCommand.d.ts +1 -1
  63. package/dist-types/commands/ListTagsCommand.d.ts +1 -1
  64. package/dist-types/commands/PutBackupVaultAccessPolicyCommand.d.ts +1 -1
  65. package/dist-types/commands/PutBackupVaultLockConfigurationCommand.d.ts +5 -1
  66. package/dist-types/commands/PutBackupVaultNotificationsCommand.d.ts +1 -1
  67. package/dist-types/commands/StartBackupJobCommand.d.ts +1 -1
  68. package/dist-types/commands/StartCopyJobCommand.d.ts +1 -1
  69. package/dist-types/commands/StartReportJobCommand.d.ts +1 -1
  70. package/dist-types/commands/StartRestoreJobCommand.d.ts +1 -1
  71. package/dist-types/commands/StopBackupJobCommand.d.ts +1 -1
  72. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  73. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  74. package/dist-types/commands/UpdateBackupPlanCommand.d.ts +1 -1
  75. package/dist-types/commands/UpdateFrameworkCommand.d.ts +1 -1
  76. package/dist-types/commands/UpdateGlobalSettingsCommand.d.ts +1 -1
  77. package/dist-types/commands/UpdateRecoveryPointLifecycleCommand.d.ts +1 -1
  78. package/dist-types/commands/UpdateRegionSettingsCommand.d.ts +1 -1
  79. package/dist-types/commands/UpdateReportPlanCommand.d.ts +1 -1
  80. package/dist-types/models/models_0.d.ts +197 -46
  81. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  82. package/dist-types/runtimeConfig.d.ts +2 -0
  83. package/dist-types/runtimeConfig.native.d.ts +2 -0
  84. package/dist-types/ts3.4/BackupClient.d.ts +4 -0
  85. package/dist-types/ts3.4/models/models_0.d.ts +38 -0
  86. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  87. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  88. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  89. package/package.json +23 -23
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.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
7
+
8
+
9
+ ### Features
10
+
11
+ * **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))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-backup
20
+
21
+
22
+
23
+
24
+
25
+ # [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
26
+
27
+
28
+ ### Features
29
+
30
+ * **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))
31
+
32
+
33
+
34
+
35
+
36
+ # [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
37
+
38
+
39
+ ### Features
40
+
41
+ * **clients:** populate variants in endpoints hashes ([#2974](https://github.com/aws/aws-sdk-js-v3/issues/2974)) ([0dd68ef](https://github.com/aws/aws-sdk-js-v3/commit/0dd68ef8b04ea0e96e43b05a9a10221e433fdf86))
42
+
43
+
44
+
45
+
46
+
6
47
  # [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
7
48
 
8
49
  **Note:** Version bump only for package @aws-sdk/client-backup
@@ -29,27 +29,96 @@ const partitionHash = {
29
29
  "us-west-2",
30
30
  ],
31
31
  regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
32
- hostname: "backup.{region}.amazonaws.com",
32
+ variants: [
33
+ {
34
+ hostname: "backup.{region}.amazonaws.com",
35
+ tags: [],
36
+ },
37
+ {
38
+ hostname: "backup-fips.{region}.amazonaws.com",
39
+ tags: ["fips"],
40
+ },
41
+ {
42
+ hostname: "backup-fips.{region}.api.aws",
43
+ tags: ["dualstack", "fips"],
44
+ },
45
+ {
46
+ hostname: "backup.{region}.api.aws",
47
+ tags: ["dualstack"],
48
+ },
49
+ ],
33
50
  },
34
51
  "aws-cn": {
35
52
  regions: ["cn-north-1", "cn-northwest-1"],
36
53
  regionRegex: "^cn\\-\\w+\\-\\d+$",
37
- hostname: "backup.{region}.amazonaws.com.cn",
54
+ variants: [
55
+ {
56
+ hostname: "backup.{region}.amazonaws.com.cn",
57
+ tags: [],
58
+ },
59
+ {
60
+ hostname: "backup-fips.{region}.amazonaws.com.cn",
61
+ tags: ["fips"],
62
+ },
63
+ {
64
+ hostname: "backup-fips.{region}.api.amazonwebservices.com.cn",
65
+ tags: ["dualstack", "fips"],
66
+ },
67
+ {
68
+ hostname: "backup.{region}.api.amazonwebservices.com.cn",
69
+ tags: ["dualstack"],
70
+ },
71
+ ],
38
72
  },
39
73
  "aws-iso": {
40
74
  regions: ["us-iso-east-1", "us-iso-west-1"],
41
75
  regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
42
- hostname: "backup.{region}.c2s.ic.gov",
76
+ variants: [
77
+ {
78
+ hostname: "backup.{region}.c2s.ic.gov",
79
+ tags: [],
80
+ },
81
+ {
82
+ hostname: "backup-fips.{region}.c2s.ic.gov",
83
+ tags: ["fips"],
84
+ },
85
+ ],
43
86
  },
44
87
  "aws-iso-b": {
45
88
  regions: ["us-isob-east-1"],
46
89
  regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
47
- hostname: "backup.{region}.sc2s.sgov.gov",
90
+ variants: [
91
+ {
92
+ hostname: "backup.{region}.sc2s.sgov.gov",
93
+ tags: [],
94
+ },
95
+ {
96
+ hostname: "backup-fips.{region}.sc2s.sgov.gov",
97
+ tags: ["fips"],
98
+ },
99
+ ],
48
100
  },
49
101
  "aws-us-gov": {
50
102
  regions: ["us-gov-east-1", "us-gov-west-1"],
51
103
  regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
52
- hostname: "backup.{region}.amazonaws.com",
104
+ variants: [
105
+ {
106
+ hostname: "backup.{region}.amazonaws.com",
107
+ tags: [],
108
+ },
109
+ {
110
+ hostname: "backup-fips.{region}.amazonaws.com",
111
+ tags: ["fips"],
112
+ },
113
+ {
114
+ hostname: "backup-fips.{region}.api.aws",
115
+ tags: ["dualstack", "fips"],
116
+ },
117
+ {
118
+ hostname: "backup.{region}.api.aws",
119
+ tags: ["dualstack"],
120
+ },
121
+ ],
53
122
  },
54
123
  };
55
124
  const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeleteBackupVaultLockConfigurationInput = exports.DeleteBackupVaultAccessPolicyInput = 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.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.GetRecoveryPointRestoreMetadataInput = exports.GetBackupVaultNotificationsOutput = 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 = void 0;
5
- exports.TagResourceInput = exports.StopBackupJobInput = 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 = 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 = 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) {
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
+ const config_resolver_1 = require("@aws-sdk/config-resolver");
7
8
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
8
9
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
9
10
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
@@ -13,7 +14,7 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
13
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
14
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
15
16
  const getRuntimeConfig = (config) => {
16
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
17
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
18
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
18
19
  return {
19
20
  ...clientSharedValues,
@@ -30,8 +31,10 @@ const getRuntimeConfig = (config) => {
30
31
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
31
32
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
32
33
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
33
- utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_browser_1.fromUtf8,
34
- utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_browser_1.toUtf8,
34
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
35
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
36
+ utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
37
+ utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
35
38
  };
36
39
  };
37
40
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -17,7 +17,7 @@ const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const getRuntimeConfig = (config) => {
20
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
20
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
21
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
23
  return {
@@ -35,8 +35,10 @@ const getRuntimeConfig = (config) => {
35
35
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
36
36
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
37
37
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
38
- utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_node_1.fromUtf8,
39
- utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_node_1.toUtf8,
38
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
39
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
40
+ utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
41
+ utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
40
42
  };
41
43
  };
42
44
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -27,27 +27,96 @@ var partitionHash = {
27
27
  "us-west-2",
28
28
  ],
29
29
  regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
30
- hostname: "backup.{region}.amazonaws.com",
30
+ variants: [
31
+ {
32
+ hostname: "backup.{region}.amazonaws.com",
33
+ tags: [],
34
+ },
35
+ {
36
+ hostname: "backup-fips.{region}.amazonaws.com",
37
+ tags: ["fips"],
38
+ },
39
+ {
40
+ hostname: "backup-fips.{region}.api.aws",
41
+ tags: ["dualstack", "fips"],
42
+ },
43
+ {
44
+ hostname: "backup.{region}.api.aws",
45
+ tags: ["dualstack"],
46
+ },
47
+ ],
31
48
  },
32
49
  "aws-cn": {
33
50
  regions: ["cn-north-1", "cn-northwest-1"],
34
51
  regionRegex: "^cn\\-\\w+\\-\\d+$",
35
- hostname: "backup.{region}.amazonaws.com.cn",
52
+ variants: [
53
+ {
54
+ hostname: "backup.{region}.amazonaws.com.cn",
55
+ tags: [],
56
+ },
57
+ {
58
+ hostname: "backup-fips.{region}.amazonaws.com.cn",
59
+ tags: ["fips"],
60
+ },
61
+ {
62
+ hostname: "backup-fips.{region}.api.amazonwebservices.com.cn",
63
+ tags: ["dualstack", "fips"],
64
+ },
65
+ {
66
+ hostname: "backup.{region}.api.amazonwebservices.com.cn",
67
+ tags: ["dualstack"],
68
+ },
69
+ ],
36
70
  },
37
71
  "aws-iso": {
38
72
  regions: ["us-iso-east-1", "us-iso-west-1"],
39
73
  regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
40
- hostname: "backup.{region}.c2s.ic.gov",
74
+ variants: [
75
+ {
76
+ hostname: "backup.{region}.c2s.ic.gov",
77
+ tags: [],
78
+ },
79
+ {
80
+ hostname: "backup-fips.{region}.c2s.ic.gov",
81
+ tags: ["fips"],
82
+ },
83
+ ],
41
84
  },
42
85
  "aws-iso-b": {
43
86
  regions: ["us-isob-east-1"],
44
87
  regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
45
- hostname: "backup.{region}.sc2s.sgov.gov",
88
+ variants: [
89
+ {
90
+ hostname: "backup.{region}.sc2s.sgov.gov",
91
+ tags: [],
92
+ },
93
+ {
94
+ hostname: "backup-fips.{region}.sc2s.sgov.gov",
95
+ tags: ["fips"],
96
+ },
97
+ ],
46
98
  },
47
99
  "aws-us-gov": {
48
100
  regions: ["us-gov-east-1", "us-gov-west-1"],
49
101
  regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
50
- hostname: "backup.{region}.amazonaws.com",
102
+ variants: [
103
+ {
104
+ hostname: "backup.{region}.amazonaws.com",
105
+ tags: [],
106
+ },
107
+ {
108
+ hostname: "backup-fips.{region}.amazonaws.com",
109
+ tags: ["fips"],
110
+ },
111
+ {
112
+ hostname: "backup-fips.{region}.api.aws",
113
+ tags: ["dualstack", "fips"],
114
+ },
115
+ {
116
+ hostname: "backup.{region}.api.aws",
117
+ tags: ["dualstack"],
118
+ },
119
+ ],
51
120
  },
52
121
  };
53
122
  export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
@@ -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";