@aws-sdk/client-backup 3.386.0 → 3.388.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/README.md +16 -0
- package/dist-cjs/Backup.js +4 -0
- package/dist-cjs/BackupClient.js +2 -2
- package/dist-cjs/commands/CreateLogicallyAirGappedBackupVaultCommand.js +47 -0
- package/dist-cjs/commands/ListProtectedResourcesByBackupVaultCommand.js +46 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +15 -1
- package/dist-cjs/pagination/ListProtectedResourcesByBackupVaultPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +162 -3
- package/dist-es/Backup.js +4 -0
- package/dist-es/BackupClient.js +2 -2
- package/dist-es/commands/CreateLogicallyAirGappedBackupVaultCommand.js +43 -0
- package/dist-es/commands/ListProtectedResourcesByBackupVaultCommand.js +42 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +13 -0
- package/dist-es/pagination/ListProtectedResourcesByBackupVaultPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +155 -0
- package/dist-types/Backup.d.ts +14 -0
- package/dist-types/BackupClient.d.ts +6 -4
- package/dist-types/commands/CreateLogicallyAirGappedBackupVaultCommand.d.ts +109 -0
- package/dist-types/commands/DescribeBackupVaultCommand.d.ts +2 -0
- package/dist-types/commands/DescribeRecoveryPointCommand.d.ts +1 -0
- package/dist-types/commands/GetRecoveryPointRestoreMetadataCommand.d.ts +1 -0
- package/dist-types/commands/ListBackupVaultsCommand.d.ts +2 -0
- package/dist-types/commands/ListProtectedResourcesByBackupVaultCommand.d.ts +94 -0
- package/dist-types/commands/ListRecoveryPointsByBackupVaultCommand.d.ts +1 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +219 -27
- package/dist-types/pagination/ListProtectedResourcesByBackupVaultPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/ts3.4/Backup.d.ts +46 -0
- package/dist-types/ts3.4/BackupClient.d.ts +16 -1
- package/dist-types/ts3.4/commands/CreateLogicallyAirGappedBackupVaultCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListProtectedResourcesByBackupVaultCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +55 -11
- package/dist-types/ts3.4/pagination/ListProtectedResourcesByBackupVaultPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
- package/package.json +28 -28
package/README.md
CHANGED
|
@@ -255,6 +255,14 @@ CreateLegalHold
|
|
|
255
255
|
|
|
256
256
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-backup/classes/createlegalholdcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-backup/interfaces/createlegalholdcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-backup/interfaces/createlegalholdcommandoutput.html)
|
|
257
257
|
|
|
258
|
+
</details>
|
|
259
|
+
<details>
|
|
260
|
+
<summary>
|
|
261
|
+
CreateLogicallyAirGappedBackupVault
|
|
262
|
+
</summary>
|
|
263
|
+
|
|
264
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-backup/classes/createlogicallyairgappedbackupvaultcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-backup/interfaces/createlogicallyairgappedbackupvaultcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-backup/interfaces/createlogicallyairgappedbackupvaultcommandoutput.html)
|
|
265
|
+
|
|
258
266
|
</details>
|
|
259
267
|
<details>
|
|
260
268
|
<summary>
|
|
@@ -599,6 +607,14 @@ ListProtectedResources
|
|
|
599
607
|
|
|
600
608
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-backup/classes/listprotectedresourcescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-backup/interfaces/listprotectedresourcescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-backup/interfaces/listprotectedresourcescommandoutput.html)
|
|
601
609
|
|
|
610
|
+
</details>
|
|
611
|
+
<details>
|
|
612
|
+
<summary>
|
|
613
|
+
ListProtectedResourcesByBackupVault
|
|
614
|
+
</summary>
|
|
615
|
+
|
|
616
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-backup/classes/listprotectedresourcesbybackupvaultcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-backup/interfaces/listprotectedresourcesbybackupvaultcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-backup/interfaces/listprotectedresourcesbybackupvaultcommandoutput.html)
|
|
617
|
+
|
|
602
618
|
</details>
|
|
603
619
|
<details>
|
|
604
620
|
<summary>
|
package/dist-cjs/Backup.js
CHANGED
|
@@ -9,6 +9,7 @@ const CreateBackupSelectionCommand_1 = require("./commands/CreateBackupSelection
|
|
|
9
9
|
const CreateBackupVaultCommand_1 = require("./commands/CreateBackupVaultCommand");
|
|
10
10
|
const CreateFrameworkCommand_1 = require("./commands/CreateFrameworkCommand");
|
|
11
11
|
const CreateLegalHoldCommand_1 = require("./commands/CreateLegalHoldCommand");
|
|
12
|
+
const CreateLogicallyAirGappedBackupVaultCommand_1 = require("./commands/CreateLogicallyAirGappedBackupVaultCommand");
|
|
12
13
|
const CreateReportPlanCommand_1 = require("./commands/CreateReportPlanCommand");
|
|
13
14
|
const DeleteBackupPlanCommand_1 = require("./commands/DeleteBackupPlanCommand");
|
|
14
15
|
const DeleteBackupSelectionCommand_1 = require("./commands/DeleteBackupSelectionCommand");
|
|
@@ -51,6 +52,7 @@ const ListBackupVaultsCommand_1 = require("./commands/ListBackupVaultsCommand");
|
|
|
51
52
|
const ListCopyJobsCommand_1 = require("./commands/ListCopyJobsCommand");
|
|
52
53
|
const ListFrameworksCommand_1 = require("./commands/ListFrameworksCommand");
|
|
53
54
|
const ListLegalHoldsCommand_1 = require("./commands/ListLegalHoldsCommand");
|
|
55
|
+
const ListProtectedResourcesByBackupVaultCommand_1 = require("./commands/ListProtectedResourcesByBackupVaultCommand");
|
|
54
56
|
const ListProtectedResourcesCommand_1 = require("./commands/ListProtectedResourcesCommand");
|
|
55
57
|
const ListRecoveryPointsByBackupVaultCommand_1 = require("./commands/ListRecoveryPointsByBackupVaultCommand");
|
|
56
58
|
const ListRecoveryPointsByLegalHoldCommand_1 = require("./commands/ListRecoveryPointsByLegalHoldCommand");
|
|
@@ -82,6 +84,7 @@ const commands = {
|
|
|
82
84
|
CreateBackupVaultCommand: CreateBackupVaultCommand_1.CreateBackupVaultCommand,
|
|
83
85
|
CreateFrameworkCommand: CreateFrameworkCommand_1.CreateFrameworkCommand,
|
|
84
86
|
CreateLegalHoldCommand: CreateLegalHoldCommand_1.CreateLegalHoldCommand,
|
|
87
|
+
CreateLogicallyAirGappedBackupVaultCommand: CreateLogicallyAirGappedBackupVaultCommand_1.CreateLogicallyAirGappedBackupVaultCommand,
|
|
85
88
|
CreateReportPlanCommand: CreateReportPlanCommand_1.CreateReportPlanCommand,
|
|
86
89
|
DeleteBackupPlanCommand: DeleteBackupPlanCommand_1.DeleteBackupPlanCommand,
|
|
87
90
|
DeleteBackupSelectionCommand: DeleteBackupSelectionCommand_1.DeleteBackupSelectionCommand,
|
|
@@ -125,6 +128,7 @@ const commands = {
|
|
|
125
128
|
ListFrameworksCommand: ListFrameworksCommand_1.ListFrameworksCommand,
|
|
126
129
|
ListLegalHoldsCommand: ListLegalHoldsCommand_1.ListLegalHoldsCommand,
|
|
127
130
|
ListProtectedResourcesCommand: ListProtectedResourcesCommand_1.ListProtectedResourcesCommand,
|
|
131
|
+
ListProtectedResourcesByBackupVaultCommand: ListProtectedResourcesByBackupVaultCommand_1.ListProtectedResourcesByBackupVaultCommand,
|
|
128
132
|
ListRecoveryPointsByBackupVaultCommand: ListRecoveryPointsByBackupVaultCommand_1.ListRecoveryPointsByBackupVaultCommand,
|
|
129
133
|
ListRecoveryPointsByLegalHoldCommand: ListRecoveryPointsByLegalHoldCommand_1.ListRecoveryPointsByLegalHoldCommand,
|
|
130
134
|
ListRecoveryPointsByResourceCommand: ListRecoveryPointsByResourceCommand_1.ListRecoveryPointsByResourceCommand,
|
package/dist-cjs/BackupClient.js
CHANGED
|
@@ -15,8 +15,8 @@ Object.defineProperty(exports, "__Client", { enumerable: true, get: function ()
|
|
|
15
15
|
const EndpointParameters_1 = require("./endpoint/EndpointParameters");
|
|
16
16
|
const runtimeConfig_1 = require("./runtimeConfig");
|
|
17
17
|
class BackupClient extends smithy_client_1.Client {
|
|
18
|
-
constructor(configuration) {
|
|
19
|
-
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration);
|
|
18
|
+
constructor(...[configuration]) {
|
|
19
|
+
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
|
|
20
20
|
const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
|
|
21
21
|
const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1);
|
|
22
22
|
const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateLogicallyAirGappedBackupVaultCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class CreateLogicallyAirGappedBackupVaultCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateLogicallyAirGappedBackupVaultCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "BackupClient";
|
|
29
|
+
const commandName = "CreateLogicallyAirGappedBackupVaultCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: models_0_1.CreateLogicallyAirGappedBackupVaultInputFilterSensitiveLog,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
};
|
|
37
|
+
const { requestHandler } = configuration;
|
|
38
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
39
|
+
}
|
|
40
|
+
serialize(input, context) {
|
|
41
|
+
return (0, Aws_restJson1_1.se_CreateLogicallyAirGappedBackupVaultCommand)(input, context);
|
|
42
|
+
}
|
|
43
|
+
deserialize(output, context) {
|
|
44
|
+
return (0, Aws_restJson1_1.de_CreateLogicallyAirGappedBackupVaultCommand)(output, context);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.CreateLogicallyAirGappedBackupVaultCommand = CreateLogicallyAirGappedBackupVaultCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListProtectedResourcesByBackupVaultCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class ListProtectedResourcesByBackupVaultCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListProtectedResourcesByBackupVaultCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "BackupClient";
|
|
28
|
+
const commandName = "ListProtectedResourcesByBackupVaultCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.se_ListProtectedResourcesByBackupVaultCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.de_ListProtectedResourcesByBackupVaultCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ListProtectedResourcesByBackupVaultCommand = ListProtectedResourcesByBackupVaultCommand;
|
|
@@ -7,6 +7,7 @@ tslib_1.__exportStar(require("./CreateBackupSelectionCommand"), exports);
|
|
|
7
7
|
tslib_1.__exportStar(require("./CreateBackupVaultCommand"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./CreateFrameworkCommand"), exports);
|
|
9
9
|
tslib_1.__exportStar(require("./CreateLegalHoldCommand"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./CreateLogicallyAirGappedBackupVaultCommand"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./CreateReportPlanCommand"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./DeleteBackupPlanCommand"), exports);
|
|
12
13
|
tslib_1.__exportStar(require("./DeleteBackupSelectionCommand"), exports);
|
|
@@ -49,6 +50,7 @@ tslib_1.__exportStar(require("./ListBackupVaultsCommand"), exports);
|
|
|
49
50
|
tslib_1.__exportStar(require("./ListCopyJobsCommand"), exports);
|
|
50
51
|
tslib_1.__exportStar(require("./ListFrameworksCommand"), exports);
|
|
51
52
|
tslib_1.__exportStar(require("./ListLegalHoldsCommand"), exports);
|
|
53
|
+
tslib_1.__exportStar(require("./ListProtectedResourcesByBackupVaultCommand"), exports);
|
|
52
54
|
tslib_1.__exportStar(require("./ListProtectedResourcesCommand"), exports);
|
|
53
55
|
tslib_1.__exportStar(require("./ListRecoveryPointsByBackupVaultCommand"), exports);
|
|
54
56
|
tslib_1.__exportStar(require("./ListRecoveryPointsByLegalHoldCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateBackupPlanInputFilterSensitiveLog = exports.UntagResourceInputFilterSensitiveLog = exports.TagResourceInputFilterSensitiveLog = exports.StartRestoreJobInputFilterSensitiveLog = exports.StartBackupJobInputFilterSensitiveLog = exports.ListTagsOutputFilterSensitiveLog = exports.GetRecoveryPointRestoreMetadataOutputFilterSensitiveLog = exports.GetBackupPlanFromTemplateOutputFilterSensitiveLog = exports.GetBackupPlanFromJSONOutputFilterSensitiveLog = exports.GetBackupPlanOutputFilterSensitiveLog = exports.CreateLegalHoldInputFilterSensitiveLog = exports.CreateBackupVaultInputFilterSensitiveLog = exports.CreateBackupPlanInputFilterSensitiveLog = exports.BackupPlanInputFilterSensitiveLog = exports.BackupRuleInputFilterSensitiveLog = exports.BackupPlanFilterSensitiveLog = exports.BackupRuleFilterSensitiveLog = exports.RestoreJobStatus = exports.StorageClass = exports.RecoveryPointStatus = exports.DependencyFailureException = exports.InvalidRequestException = exports.LegalHoldStatus = exports.LimitExceededException = exports.CopyJobState = exports.ConflictException = exports.ServiceUnavailableException = exports.ResourceNotFoundException = exports.MissingParameterValueException = exports.InvalidResourceStateException = exports.InvalidParameterValueException = exports.BackupVaultEvent = exports.ConditionType = exports.BackupJobState = exports.AlreadyExistsException = void 0;
|
|
3
|
+
exports.UpdateBackupPlanInputFilterSensitiveLog = exports.UntagResourceInputFilterSensitiveLog = exports.TagResourceInputFilterSensitiveLog = exports.StartRestoreJobInputFilterSensitiveLog = exports.StartBackupJobInputFilterSensitiveLog = exports.ListTagsOutputFilterSensitiveLog = exports.GetRecoveryPointRestoreMetadataOutputFilterSensitiveLog = exports.GetBackupPlanFromTemplateOutputFilterSensitiveLog = exports.GetBackupPlanFromJSONOutputFilterSensitiveLog = exports.GetBackupPlanOutputFilterSensitiveLog = exports.CreateLogicallyAirGappedBackupVaultInputFilterSensitiveLog = exports.CreateLegalHoldInputFilterSensitiveLog = exports.CreateBackupVaultInputFilterSensitiveLog = exports.CreateBackupPlanInputFilterSensitiveLog = exports.BackupPlanInputFilterSensitiveLog = exports.BackupRuleInputFilterSensitiveLog = exports.BackupPlanFilterSensitiveLog = exports.BackupRuleFilterSensitiveLog = exports.RestoreJobStatus = exports.StorageClass = exports.RecoveryPointStatus = exports.VaultType = exports.DependencyFailureException = exports.InvalidRequestException = exports.VaultState = exports.LegalHoldStatus = exports.LimitExceededException = exports.CopyJobState = exports.ConflictException = exports.ServiceUnavailableException = exports.ResourceNotFoundException = exports.MissingParameterValueException = exports.InvalidResourceStateException = exports.InvalidParameterValueException = exports.BackupVaultEvent = exports.ConditionType = exports.BackupJobState = exports.AlreadyExistsException = void 0;
|
|
4
4
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
5
|
const BackupServiceException_1 = require("./BackupServiceException");
|
|
6
6
|
class AlreadyExistsException extends BackupServiceException_1.BackupServiceException {
|
|
@@ -187,6 +187,11 @@ exports.LegalHoldStatus = {
|
|
|
187
187
|
CANCELING: "CANCELING",
|
|
188
188
|
CREATING: "CREATING",
|
|
189
189
|
};
|
|
190
|
+
exports.VaultState = {
|
|
191
|
+
AVAILABLE: "AVAILABLE",
|
|
192
|
+
CREATING: "CREATING",
|
|
193
|
+
FAILED: "FAILED",
|
|
194
|
+
};
|
|
190
195
|
class InvalidRequestException extends BackupServiceException_1.BackupServiceException {
|
|
191
196
|
constructor(opts) {
|
|
192
197
|
super({
|
|
@@ -221,6 +226,10 @@ class DependencyFailureException extends BackupServiceException_1.BackupServiceE
|
|
|
221
226
|
}
|
|
222
227
|
}
|
|
223
228
|
exports.DependencyFailureException = DependencyFailureException;
|
|
229
|
+
exports.VaultType = {
|
|
230
|
+
BACKUP_VAULT: "BACKUP_VAULT",
|
|
231
|
+
LOGICALLY_AIR_GAPPED_BACKUP_VAULT: "LOGICALLY_AIR_GAPPED_BACKUP_VAULT",
|
|
232
|
+
};
|
|
224
233
|
exports.RecoveryPointStatus = {
|
|
225
234
|
COMPLETED: "COMPLETED",
|
|
226
235
|
DELETING: "DELETING",
|
|
@@ -275,6 +284,11 @@ const CreateLegalHoldInputFilterSensitiveLog = (obj) => ({
|
|
|
275
284
|
...(obj.Tags && { Tags: smithy_client_1.SENSITIVE_STRING }),
|
|
276
285
|
});
|
|
277
286
|
exports.CreateLegalHoldInputFilterSensitiveLog = CreateLegalHoldInputFilterSensitiveLog;
|
|
287
|
+
const CreateLogicallyAirGappedBackupVaultInputFilterSensitiveLog = (obj) => ({
|
|
288
|
+
...obj,
|
|
289
|
+
...(obj.BackupVaultTags && { BackupVaultTags: smithy_client_1.SENSITIVE_STRING }),
|
|
290
|
+
});
|
|
291
|
+
exports.CreateLogicallyAirGappedBackupVaultInputFilterSensitiveLog = CreateLogicallyAirGappedBackupVaultInputFilterSensitiveLog;
|
|
278
292
|
const GetBackupPlanOutputFilterSensitiveLog = (obj) => ({
|
|
279
293
|
...obj,
|
|
280
294
|
...(obj.BackupPlan && { BackupPlan: (0, exports.BackupPlanFilterSensitiveLog)(obj.BackupPlan) }),
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListProtectedResourcesByBackupVault = void 0;
|
|
4
|
+
const BackupClient_1 = require("../BackupClient");
|
|
5
|
+
const ListProtectedResourcesByBackupVaultCommand_1 = require("../commands/ListProtectedResourcesByBackupVaultCommand");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListProtectedResourcesByBackupVaultCommand_1.ListProtectedResourcesByBackupVaultCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListProtectedResourcesByBackupVault(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.NextToken = token;
|
|
15
|
+
input["MaxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof BackupClient_1.BackupClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected Backup | BackupClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.NextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListProtectedResourcesByBackupVault = paginateListProtectedResourcesByBackupVault;
|
|
@@ -11,6 +11,7 @@ tslib_1.__exportStar(require("./ListBackupVaultsPaginator"), exports);
|
|
|
11
11
|
tslib_1.__exportStar(require("./ListCopyJobsPaginator"), exports);
|
|
12
12
|
tslib_1.__exportStar(require("./ListFrameworksPaginator"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./ListLegalHoldsPaginator"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./ListProtectedResourcesByBackupVaultPaginator"), exports);
|
|
14
15
|
tslib_1.__exportStar(require("./ListProtectedResourcesPaginator"), exports);
|
|
15
16
|
tslib_1.__exportStar(require("./ListRecoveryPointsByBackupVaultPaginator"), exports);
|
|
16
17
|
tslib_1.__exportStar(require("./ListRecoveryPointsByLegalHoldPaginator"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.de_UpdateReportPlanCommand = exports.de_UpdateRegionSettingsCommand = exports.de_UpdateRecoveryPointLifecycleCommand = exports.de_UpdateGlobalSettingsCommand = exports.de_UpdateFrameworkCommand = exports.de_UpdateBackupPlanCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopBackupJobCommand = exports.de_StartRestoreJobCommand = exports.de_StartReportJobCommand = exports.de_StartCopyJobCommand = exports.de_StartBackupJobCommand = exports.de_PutBackupVaultNotificationsCommand = exports.de_PutBackupVaultLockConfigurationCommand = exports.de_PutBackupVaultAccessPolicyCommand = exports.de_ListTagsCommand = exports.de_ListRestoreJobsCommand = exports.de_ListReportPlansCommand = exports.de_ListReportJobsCommand = exports.de_ListRecoveryPointsByResourceCommand = exports.de_ListRecoveryPointsByLegalHoldCommand = exports.de_ListRecoveryPointsByBackupVaultCommand = exports.de_ListProtectedResourcesCommand = exports.de_ListLegalHoldsCommand = exports.de_ListFrameworksCommand = exports.de_ListCopyJobsCommand = exports.de_ListBackupVaultsCommand = exports.de_ListBackupSelectionsCommand = exports.de_ListBackupPlanVersionsCommand = exports.de_ListBackupPlanTemplatesCommand = exports.de_ListBackupPlansCommand = exports.de_ListBackupJobsCommand = exports.de_GetSupportedResourceTypesCommand = exports.de_GetRecoveryPointRestoreMetadataCommand = exports.de_GetLegalHoldCommand = exports.de_GetBackupVaultNotificationsCommand = exports.de_GetBackupVaultAccessPolicyCommand = exports.de_GetBackupSelectionCommand = exports.de_GetBackupPlanFromTemplateCommand = exports.de_GetBackupPlanFromJSONCommand = exports.de_GetBackupPlanCommand = exports.de_ExportBackupPlanTemplateCommand = exports.de_DisassociateRecoveryPointFromParentCommand = void 0;
|
|
3
|
+
exports.se_ListProtectedResourcesCommand = exports.se_ListLegalHoldsCommand = exports.se_ListFrameworksCommand = exports.se_ListCopyJobsCommand = exports.se_ListBackupVaultsCommand = exports.se_ListBackupSelectionsCommand = exports.se_ListBackupPlanVersionsCommand = exports.se_ListBackupPlanTemplatesCommand = exports.se_ListBackupPlansCommand = exports.se_ListBackupJobsCommand = exports.se_GetSupportedResourceTypesCommand = exports.se_GetRecoveryPointRestoreMetadataCommand = exports.se_GetLegalHoldCommand = exports.se_GetBackupVaultNotificationsCommand = exports.se_GetBackupVaultAccessPolicyCommand = exports.se_GetBackupSelectionCommand = exports.se_GetBackupPlanFromTemplateCommand = exports.se_GetBackupPlanFromJSONCommand = exports.se_GetBackupPlanCommand = exports.se_ExportBackupPlanTemplateCommand = exports.se_DisassociateRecoveryPointFromParentCommand = exports.se_DisassociateRecoveryPointCommand = exports.se_DescribeRestoreJobCommand = exports.se_DescribeReportPlanCommand = exports.se_DescribeReportJobCommand = exports.se_DescribeRegionSettingsCommand = exports.se_DescribeRecoveryPointCommand = exports.se_DescribeProtectedResourceCommand = exports.se_DescribeGlobalSettingsCommand = exports.se_DescribeFrameworkCommand = exports.se_DescribeCopyJobCommand = exports.se_DescribeBackupVaultCommand = exports.se_DescribeBackupJobCommand = exports.se_DeleteReportPlanCommand = exports.se_DeleteRecoveryPointCommand = exports.se_DeleteFrameworkCommand = exports.se_DeleteBackupVaultNotificationsCommand = exports.se_DeleteBackupVaultLockConfigurationCommand = exports.se_DeleteBackupVaultAccessPolicyCommand = exports.se_DeleteBackupVaultCommand = exports.se_DeleteBackupSelectionCommand = exports.se_DeleteBackupPlanCommand = exports.se_CreateReportPlanCommand = exports.se_CreateLogicallyAirGappedBackupVaultCommand = exports.se_CreateLegalHoldCommand = exports.se_CreateFrameworkCommand = exports.se_CreateBackupVaultCommand = exports.se_CreateBackupSelectionCommand = exports.se_CreateBackupPlanCommand = exports.se_CancelLegalHoldCommand = void 0;
|
|
4
|
+
exports.de_DescribeReportJobCommand = exports.de_DescribeRegionSettingsCommand = exports.de_DescribeRecoveryPointCommand = exports.de_DescribeProtectedResourceCommand = exports.de_DescribeGlobalSettingsCommand = exports.de_DescribeFrameworkCommand = exports.de_DescribeCopyJobCommand = exports.de_DescribeBackupVaultCommand = exports.de_DescribeBackupJobCommand = exports.de_DeleteReportPlanCommand = exports.de_DeleteRecoveryPointCommand = exports.de_DeleteFrameworkCommand = exports.de_DeleteBackupVaultNotificationsCommand = exports.de_DeleteBackupVaultLockConfigurationCommand = exports.de_DeleteBackupVaultAccessPolicyCommand = exports.de_DeleteBackupVaultCommand = exports.de_DeleteBackupSelectionCommand = exports.de_DeleteBackupPlanCommand = exports.de_CreateReportPlanCommand = exports.de_CreateLogicallyAirGappedBackupVaultCommand = exports.de_CreateLegalHoldCommand = exports.de_CreateFrameworkCommand = exports.de_CreateBackupVaultCommand = exports.de_CreateBackupSelectionCommand = exports.de_CreateBackupPlanCommand = exports.de_CancelLegalHoldCommand = exports.se_UpdateReportPlanCommand = exports.se_UpdateRegionSettingsCommand = exports.se_UpdateRecoveryPointLifecycleCommand = exports.se_UpdateGlobalSettingsCommand = exports.se_UpdateFrameworkCommand = exports.se_UpdateBackupPlanCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopBackupJobCommand = exports.se_StartRestoreJobCommand = exports.se_StartReportJobCommand = exports.se_StartCopyJobCommand = exports.se_StartBackupJobCommand = exports.se_PutBackupVaultNotificationsCommand = exports.se_PutBackupVaultLockConfigurationCommand = exports.se_PutBackupVaultAccessPolicyCommand = exports.se_ListTagsCommand = exports.se_ListRestoreJobsCommand = exports.se_ListReportPlansCommand = exports.se_ListReportJobsCommand = exports.se_ListRecoveryPointsByResourceCommand = exports.se_ListRecoveryPointsByLegalHoldCommand = exports.se_ListRecoveryPointsByBackupVaultCommand = exports.se_ListProtectedResourcesByBackupVaultCommand = void 0;
|
|
5
|
+
exports.de_UpdateReportPlanCommand = exports.de_UpdateRegionSettingsCommand = exports.de_UpdateRecoveryPointLifecycleCommand = exports.de_UpdateGlobalSettingsCommand = exports.de_UpdateFrameworkCommand = exports.de_UpdateBackupPlanCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopBackupJobCommand = exports.de_StartRestoreJobCommand = exports.de_StartReportJobCommand = exports.de_StartCopyJobCommand = exports.de_StartBackupJobCommand = exports.de_PutBackupVaultNotificationsCommand = exports.de_PutBackupVaultLockConfigurationCommand = exports.de_PutBackupVaultAccessPolicyCommand = exports.de_ListTagsCommand = exports.de_ListRestoreJobsCommand = exports.de_ListReportPlansCommand = exports.de_ListReportJobsCommand = exports.de_ListRecoveryPointsByResourceCommand = exports.de_ListRecoveryPointsByLegalHoldCommand = exports.de_ListRecoveryPointsByBackupVaultCommand = exports.de_ListProtectedResourcesByBackupVaultCommand = exports.de_ListProtectedResourcesCommand = exports.de_ListLegalHoldsCommand = exports.de_ListFrameworksCommand = exports.de_ListCopyJobsCommand = exports.de_ListBackupVaultsCommand = exports.de_ListBackupSelectionsCommand = exports.de_ListBackupPlanVersionsCommand = exports.de_ListBackupPlanTemplatesCommand = exports.de_ListBackupPlansCommand = exports.de_ListBackupJobsCommand = exports.de_GetSupportedResourceTypesCommand = exports.de_GetRecoveryPointRestoreMetadataCommand = exports.de_GetLegalHoldCommand = exports.de_GetBackupVaultNotificationsCommand = exports.de_GetBackupVaultAccessPolicyCommand = exports.de_GetBackupSelectionCommand = exports.de_GetBackupPlanFromTemplateCommand = exports.de_GetBackupPlanFromJSONCommand = exports.de_GetBackupPlanCommand = exports.de_ExportBackupPlanTemplateCommand = exports.de_DisassociateRecoveryPointFromParentCommand = exports.de_DisassociateRecoveryPointCommand = exports.de_DescribeRestoreJobCommand = exports.de_DescribeReportPlanCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
@@ -150,6 +150,32 @@ const se_CreateLegalHoldCommand = async (input, context) => {
|
|
|
150
150
|
});
|
|
151
151
|
};
|
|
152
152
|
exports.se_CreateLegalHoldCommand = se_CreateLegalHoldCommand;
|
|
153
|
+
const se_CreateLogicallyAirGappedBackupVaultCommand = async (input, context) => {
|
|
154
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
155
|
+
const headers = {
|
|
156
|
+
"content-type": "application/json",
|
|
157
|
+
};
|
|
158
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
159
|
+
"/logically-air-gapped-backup-vaults/{BackupVaultName}";
|
|
160
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
|
|
161
|
+
let body;
|
|
162
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
163
|
+
BackupVaultTags: (_) => (0, smithy_client_1._json)(_),
|
|
164
|
+
CreatorRequestId: [],
|
|
165
|
+
MaxRetentionDays: [],
|
|
166
|
+
MinRetentionDays: [],
|
|
167
|
+
}));
|
|
168
|
+
return new protocol_http_1.HttpRequest({
|
|
169
|
+
protocol,
|
|
170
|
+
hostname,
|
|
171
|
+
port,
|
|
172
|
+
method: "PUT",
|
|
173
|
+
headers,
|
|
174
|
+
path: resolvedPath,
|
|
175
|
+
body,
|
|
176
|
+
});
|
|
177
|
+
};
|
|
178
|
+
exports.se_CreateLogicallyAirGappedBackupVaultCommand = se_CreateLogicallyAirGappedBackupVaultCommand;
|
|
153
179
|
const se_CreateReportPlanCommand = async (input, context) => {
|
|
154
180
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
155
181
|
const headers = {
|
|
@@ -358,6 +384,9 @@ const se_DescribeBackupVaultCommand = async (input, context) => {
|
|
|
358
384
|
const headers = {};
|
|
359
385
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup-vaults/{BackupVaultName}";
|
|
360
386
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
|
|
387
|
+
const query = (0, smithy_client_1.map)({
|
|
388
|
+
backupVaultAccountId: [, input.BackupVaultAccountId],
|
|
389
|
+
});
|
|
361
390
|
let body;
|
|
362
391
|
return new protocol_http_1.HttpRequest({
|
|
363
392
|
protocol,
|
|
@@ -366,6 +395,7 @@ const se_DescribeBackupVaultCommand = async (input, context) => {
|
|
|
366
395
|
method: "GET",
|
|
367
396
|
headers,
|
|
368
397
|
path: resolvedPath,
|
|
398
|
+
query,
|
|
369
399
|
body,
|
|
370
400
|
});
|
|
371
401
|
};
|
|
@@ -447,6 +477,9 @@ const se_DescribeRecoveryPointCommand = async (input, context) => {
|
|
|
447
477
|
"/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}";
|
|
448
478
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
|
|
449
479
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RecoveryPointArn", () => input.RecoveryPointArn, "{RecoveryPointArn}", false);
|
|
480
|
+
const query = (0, smithy_client_1.map)({
|
|
481
|
+
backupVaultAccountId: [, input.BackupVaultAccountId],
|
|
482
|
+
});
|
|
450
483
|
let body;
|
|
451
484
|
return new protocol_http_1.HttpRequest({
|
|
452
485
|
protocol,
|
|
@@ -455,6 +488,7 @@ const se_DescribeRecoveryPointCommand = async (input, context) => {
|
|
|
455
488
|
method: "GET",
|
|
456
489
|
headers,
|
|
457
490
|
path: resolvedPath,
|
|
491
|
+
query,
|
|
458
492
|
body,
|
|
459
493
|
});
|
|
460
494
|
};
|
|
@@ -723,6 +757,9 @@ const se_GetRecoveryPointRestoreMetadataCommand = async (input, context) => {
|
|
|
723
757
|
"/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}/restore-metadata";
|
|
724
758
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
|
|
725
759
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RecoveryPointArn", () => input.RecoveryPointArn, "{RecoveryPointArn}", false);
|
|
760
|
+
const query = (0, smithy_client_1.map)({
|
|
761
|
+
backupVaultAccountId: [, input.BackupVaultAccountId],
|
|
762
|
+
});
|
|
726
763
|
let body;
|
|
727
764
|
return new protocol_http_1.HttpRequest({
|
|
728
765
|
protocol,
|
|
@@ -731,6 +768,7 @@ const se_GetRecoveryPointRestoreMetadataCommand = async (input, context) => {
|
|
|
731
768
|
method: "GET",
|
|
732
769
|
headers,
|
|
733
770
|
path: resolvedPath,
|
|
771
|
+
query,
|
|
734
772
|
body,
|
|
735
773
|
});
|
|
736
774
|
};
|
|
@@ -889,6 +927,8 @@ const se_ListBackupVaultsCommand = async (input, context) => {
|
|
|
889
927
|
const headers = {};
|
|
890
928
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/backup-vaults";
|
|
891
929
|
const query = (0, smithy_client_1.map)({
|
|
930
|
+
vaultType: [, input.ByVaultType],
|
|
931
|
+
shared: [() => input.ByShared !== void 0, () => input.ByShared.toString()],
|
|
892
932
|
nextToken: [, input.NextToken],
|
|
893
933
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
894
934
|
});
|
|
@@ -1011,6 +1051,30 @@ const se_ListProtectedResourcesCommand = async (input, context) => {
|
|
|
1011
1051
|
});
|
|
1012
1052
|
};
|
|
1013
1053
|
exports.se_ListProtectedResourcesCommand = se_ListProtectedResourcesCommand;
|
|
1054
|
+
const se_ListProtectedResourcesByBackupVaultCommand = async (input, context) => {
|
|
1055
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1056
|
+
const headers = {};
|
|
1057
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1058
|
+
"/backup-vaults/{BackupVaultName}/resources";
|
|
1059
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
|
|
1060
|
+
const query = (0, smithy_client_1.map)({
|
|
1061
|
+
backupVaultAccountId: [, input.BackupVaultAccountId],
|
|
1062
|
+
nextToken: [, input.NextToken],
|
|
1063
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
1064
|
+
});
|
|
1065
|
+
let body;
|
|
1066
|
+
return new protocol_http_1.HttpRequest({
|
|
1067
|
+
protocol,
|
|
1068
|
+
hostname,
|
|
1069
|
+
port,
|
|
1070
|
+
method: "GET",
|
|
1071
|
+
headers,
|
|
1072
|
+
path: resolvedPath,
|
|
1073
|
+
query,
|
|
1074
|
+
body,
|
|
1075
|
+
});
|
|
1076
|
+
};
|
|
1077
|
+
exports.se_ListProtectedResourcesByBackupVaultCommand = se_ListProtectedResourcesByBackupVaultCommand;
|
|
1014
1078
|
const se_ListRecoveryPointsByBackupVaultCommand = async (input, context) => {
|
|
1015
1079
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1016
1080
|
const headers = {};
|
|
@@ -1018,6 +1082,7 @@ const se_ListRecoveryPointsByBackupVaultCommand = async (input, context) => {
|
|
|
1018
1082
|
"/backup-vaults/{BackupVaultName}/recovery-points";
|
|
1019
1083
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
|
|
1020
1084
|
const query = (0, smithy_client_1.map)({
|
|
1085
|
+
backupVaultAccountId: [, input.BackupVaultAccountId],
|
|
1021
1086
|
nextToken: [, input.NextToken],
|
|
1022
1087
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
1023
1088
|
resourceArn: [, input.ByResourceArn],
|
|
@@ -1862,6 +1927,58 @@ const de_CreateLegalHoldCommandError = async (output, context) => {
|
|
|
1862
1927
|
});
|
|
1863
1928
|
}
|
|
1864
1929
|
};
|
|
1930
|
+
const de_CreateLogicallyAirGappedBackupVaultCommand = async (output, context) => {
|
|
1931
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1932
|
+
return de_CreateLogicallyAirGappedBackupVaultCommandError(output, context);
|
|
1933
|
+
}
|
|
1934
|
+
const contents = (0, smithy_client_1.map)({
|
|
1935
|
+
$metadata: deserializeMetadata(output),
|
|
1936
|
+
});
|
|
1937
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1938
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1939
|
+
BackupVaultArn: smithy_client_1.expectString,
|
|
1940
|
+
BackupVaultName: smithy_client_1.expectString,
|
|
1941
|
+
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1942
|
+
VaultState: smithy_client_1.expectString,
|
|
1943
|
+
});
|
|
1944
|
+
Object.assign(contents, doc);
|
|
1945
|
+
return contents;
|
|
1946
|
+
};
|
|
1947
|
+
exports.de_CreateLogicallyAirGappedBackupVaultCommand = de_CreateLogicallyAirGappedBackupVaultCommand;
|
|
1948
|
+
const de_CreateLogicallyAirGappedBackupVaultCommandError = async (output, context) => {
|
|
1949
|
+
const parsedOutput = {
|
|
1950
|
+
...output,
|
|
1951
|
+
body: await parseErrorBody(output.body, context),
|
|
1952
|
+
};
|
|
1953
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1954
|
+
switch (errorCode) {
|
|
1955
|
+
case "AlreadyExistsException":
|
|
1956
|
+
case "com.amazonaws.backup#AlreadyExistsException":
|
|
1957
|
+
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
1958
|
+
case "InvalidParameterValueException":
|
|
1959
|
+
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
1960
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1961
|
+
case "InvalidRequestException":
|
|
1962
|
+
case "com.amazonaws.backup#InvalidRequestException":
|
|
1963
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1964
|
+
case "LimitExceededException":
|
|
1965
|
+
case "com.amazonaws.backup#LimitExceededException":
|
|
1966
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1967
|
+
case "MissingParameterValueException":
|
|
1968
|
+
case "com.amazonaws.backup#MissingParameterValueException":
|
|
1969
|
+
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
1970
|
+
case "ServiceUnavailableException":
|
|
1971
|
+
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
1972
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1973
|
+
default:
|
|
1974
|
+
const parsedBody = parsedOutput.body;
|
|
1975
|
+
return throwDefaultError({
|
|
1976
|
+
output,
|
|
1977
|
+
parsedBody,
|
|
1978
|
+
errorCode,
|
|
1979
|
+
});
|
|
1980
|
+
}
|
|
1981
|
+
};
|
|
1865
1982
|
const de_CreateReportPlanCommand = async (output, context) => {
|
|
1866
1983
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1867
1984
|
return de_CreateReportPlanCommandError(output, context);
|
|
@@ -2378,6 +2495,7 @@ const de_DescribeBackupVaultCommand = async (output, context) => {
|
|
|
2378
2495
|
MaxRetentionDays: smithy_client_1.expectLong,
|
|
2379
2496
|
MinRetentionDays: smithy_client_1.expectLong,
|
|
2380
2497
|
NumberOfRecoveryPoints: smithy_client_1.expectLong,
|
|
2498
|
+
VaultType: smithy_client_1.expectString,
|
|
2381
2499
|
});
|
|
2382
2500
|
Object.assign(contents, doc);
|
|
2383
2501
|
return contents;
|
|
@@ -3778,6 +3896,47 @@ const de_ListProtectedResourcesCommandError = async (output, context) => {
|
|
|
3778
3896
|
});
|
|
3779
3897
|
}
|
|
3780
3898
|
};
|
|
3899
|
+
const de_ListProtectedResourcesByBackupVaultCommand = async (output, context) => {
|
|
3900
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3901
|
+
return de_ListProtectedResourcesByBackupVaultCommandError(output, context);
|
|
3902
|
+
}
|
|
3903
|
+
const contents = (0, smithy_client_1.map)({
|
|
3904
|
+
$metadata: deserializeMetadata(output),
|
|
3905
|
+
});
|
|
3906
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3907
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3908
|
+
NextToken: smithy_client_1.expectString,
|
|
3909
|
+
Results: (_) => de_ProtectedResourcesList(_, context),
|
|
3910
|
+
});
|
|
3911
|
+
Object.assign(contents, doc);
|
|
3912
|
+
return contents;
|
|
3913
|
+
};
|
|
3914
|
+
exports.de_ListProtectedResourcesByBackupVaultCommand = de_ListProtectedResourcesByBackupVaultCommand;
|
|
3915
|
+
const de_ListProtectedResourcesByBackupVaultCommandError = async (output, context) => {
|
|
3916
|
+
const parsedOutput = {
|
|
3917
|
+
...output,
|
|
3918
|
+
body: await parseErrorBody(output.body, context),
|
|
3919
|
+
};
|
|
3920
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3921
|
+
switch (errorCode) {
|
|
3922
|
+
case "InvalidParameterValueException":
|
|
3923
|
+
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
3924
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3925
|
+
case "ResourceNotFoundException":
|
|
3926
|
+
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
3927
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3928
|
+
case "ServiceUnavailableException":
|
|
3929
|
+
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3930
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3931
|
+
default:
|
|
3932
|
+
const parsedBody = parsedOutput.body;
|
|
3933
|
+
return throwDefaultError({
|
|
3934
|
+
output,
|
|
3935
|
+
parsedBody,
|
|
3936
|
+
errorCode,
|
|
3937
|
+
});
|
|
3938
|
+
}
|
|
3939
|
+
};
|
|
3781
3940
|
const de_ListRecoveryPointsByBackupVaultCommand = async (output, context) => {
|
|
3782
3941
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3783
3942
|
return de_ListRecoveryPointsByBackupVaultCommandError(output, context);
|
package/dist-es/Backup.js
CHANGED
|
@@ -6,6 +6,7 @@ import { CreateBackupSelectionCommand, } from "./commands/CreateBackupSelectionC
|
|
|
6
6
|
import { CreateBackupVaultCommand, } from "./commands/CreateBackupVaultCommand";
|
|
7
7
|
import { CreateFrameworkCommand, } from "./commands/CreateFrameworkCommand";
|
|
8
8
|
import { CreateLegalHoldCommand, } from "./commands/CreateLegalHoldCommand";
|
|
9
|
+
import { CreateLogicallyAirGappedBackupVaultCommand, } from "./commands/CreateLogicallyAirGappedBackupVaultCommand";
|
|
9
10
|
import { CreateReportPlanCommand, } from "./commands/CreateReportPlanCommand";
|
|
10
11
|
import { DeleteBackupPlanCommand, } from "./commands/DeleteBackupPlanCommand";
|
|
11
12
|
import { DeleteBackupSelectionCommand, } from "./commands/DeleteBackupSelectionCommand";
|
|
@@ -48,6 +49,7 @@ import { ListBackupVaultsCommand, } from "./commands/ListBackupVaultsCommand";
|
|
|
48
49
|
import { ListCopyJobsCommand, } from "./commands/ListCopyJobsCommand";
|
|
49
50
|
import { ListFrameworksCommand, } from "./commands/ListFrameworksCommand";
|
|
50
51
|
import { ListLegalHoldsCommand, } from "./commands/ListLegalHoldsCommand";
|
|
52
|
+
import { ListProtectedResourcesByBackupVaultCommand, } from "./commands/ListProtectedResourcesByBackupVaultCommand";
|
|
51
53
|
import { ListProtectedResourcesCommand, } from "./commands/ListProtectedResourcesCommand";
|
|
52
54
|
import { ListRecoveryPointsByBackupVaultCommand, } from "./commands/ListRecoveryPointsByBackupVaultCommand";
|
|
53
55
|
import { ListRecoveryPointsByLegalHoldCommand, } from "./commands/ListRecoveryPointsByLegalHoldCommand";
|
|
@@ -79,6 +81,7 @@ const commands = {
|
|
|
79
81
|
CreateBackupVaultCommand,
|
|
80
82
|
CreateFrameworkCommand,
|
|
81
83
|
CreateLegalHoldCommand,
|
|
84
|
+
CreateLogicallyAirGappedBackupVaultCommand,
|
|
82
85
|
CreateReportPlanCommand,
|
|
83
86
|
DeleteBackupPlanCommand,
|
|
84
87
|
DeleteBackupSelectionCommand,
|
|
@@ -122,6 +125,7 @@ const commands = {
|
|
|
122
125
|
ListFrameworksCommand,
|
|
123
126
|
ListLegalHoldsCommand,
|
|
124
127
|
ListProtectedResourcesCommand,
|
|
128
|
+
ListProtectedResourcesByBackupVaultCommand,
|
|
125
129
|
ListRecoveryPointsByBackupVaultCommand,
|
|
126
130
|
ListRecoveryPointsByLegalHoldCommand,
|
|
127
131
|
ListRecoveryPointsByResourceCommand,
|
package/dist-es/BackupClient.js
CHANGED
|
@@ -12,8 +12,8 @@ import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters"
|
|
|
12
12
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
13
13
|
export { __Client };
|
|
14
14
|
export class BackupClient extends __Client {
|
|
15
|
-
constructor(configuration) {
|
|
16
|
-
const _config_0 = __getRuntimeConfig(configuration);
|
|
15
|
+
constructor(...[configuration]) {
|
|
16
|
+
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
17
17
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
18
18
|
const _config_2 = resolveRegionConfig(_config_1);
|
|
19
19
|
const _config_3 = resolveEndpointConfig(_config_2);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { CreateLogicallyAirGappedBackupVaultInputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { de_CreateLogicallyAirGappedBackupVaultCommand, se_CreateLogicallyAirGappedBackupVaultCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class CreateLogicallyAirGappedBackupVaultCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateLogicallyAirGappedBackupVaultCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "BackupClient";
|
|
26
|
+
const commandName = "CreateLogicallyAirGappedBackupVaultCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: CreateLogicallyAirGappedBackupVaultInputFilterSensitiveLog,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
};
|
|
34
|
+
const { requestHandler } = configuration;
|
|
35
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
36
|
+
}
|
|
37
|
+
serialize(input, context) {
|
|
38
|
+
return se_CreateLogicallyAirGappedBackupVaultCommand(input, context);
|
|
39
|
+
}
|
|
40
|
+
deserialize(output, context) {
|
|
41
|
+
return de_CreateLogicallyAirGappedBackupVaultCommand(output, context);
|
|
42
|
+
}
|
|
43
|
+
}
|