@aws-sdk/client-resiliencehub 3.382.0 → 3.385.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/Resiliencehub.js +4 -0
- package/dist-cjs/commands/BatchUpdateRecommendationStatusCommand.js +46 -0
- package/dist-cjs/commands/ListAppAssessmentComplianceDriftsCommand.js +46 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +32 -2
- package/dist-cjs/pagination/ListAppAssessmentComplianceDriftsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +178 -4
- package/dist-es/Resiliencehub.js +4 -0
- package/dist-es/commands/BatchUpdateRecommendationStatusCommand.js +42 -0
- package/dist-es/commands/ListAppAssessmentComplianceDriftsCommand.js +42 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +30 -0
- package/dist-es/pagination/ListAppAssessmentComplianceDriftsPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +172 -2
- package/dist-types/Resiliencehub.d.ts +14 -0
- package/dist-types/ResiliencehubClient.d.ts +4 -2
- package/dist-types/commands/AddDraftAppVersionResourceMappingsCommand.d.ts +2 -1
- package/dist-types/commands/BatchUpdateRecommendationStatusCommand.d.ts +123 -0
- package/dist-types/commands/CreateAppCommand.d.ts +35 -4
- package/dist-types/commands/DescribeAppAssessmentCommand.d.ts +2 -0
- package/dist-types/commands/DescribeAppCommand.d.ts +16 -0
- package/dist-types/commands/ImportResourcesToDraftAppVersionCommand.d.ts +4 -0
- package/dist-types/commands/ListAlarmRecommendationsCommand.d.ts +5 -0
- package/dist-types/commands/ListAppAssessmentComplianceDriftsCommand.d.ts +130 -0
- package/dist-types/commands/ListAppAssessmentsCommand.d.ts +2 -0
- package/dist-types/commands/ListAppVersionsCommand.d.ts +5 -0
- package/dist-types/commands/ListAppsCommand.d.ts +1 -0
- package/dist-types/commands/ListSopRecommendationsCommand.d.ts +2 -0
- package/dist-types/commands/ListTestRecommendationsCommand.d.ts +2 -0
- package/dist-types/commands/PublishAppVersionCommand.d.ts +3 -0
- package/dist-types/commands/StartAppAssessmentCommand.d.ts +2 -0
- package/dist-types/commands/UpdateAppCommand.d.ts +30 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +1058 -350
- package/dist-types/pagination/ListAppAssessmentComplianceDriftsPaginator.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/Resiliencehub.d.ts +40 -0
- package/dist-types/ts3.4/ResiliencehubClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/BatchUpdateRecommendationStatusCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListAppAssessmentComplianceDriftsCommand.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 +130 -0
- package/dist-types/ts3.4/pagination/ListAppAssessmentComplianceDriftsPaginator.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 +3 -3
package/README.md
CHANGED
|
@@ -214,6 +214,14 @@ AddDraftAppVersionResourceMappings
|
|
|
214
214
|
|
|
215
215
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resiliencehub/classes/adddraftappversionresourcemappingscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resiliencehub/interfaces/adddraftappversionresourcemappingscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resiliencehub/interfaces/adddraftappversionresourcemappingscommandoutput.html)
|
|
216
216
|
|
|
217
|
+
</details>
|
|
218
|
+
<details>
|
|
219
|
+
<summary>
|
|
220
|
+
BatchUpdateRecommendationStatus
|
|
221
|
+
</summary>
|
|
222
|
+
|
|
223
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resiliencehub/classes/batchupdaterecommendationstatuscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resiliencehub/interfaces/batchupdaterecommendationstatuscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resiliencehub/interfaces/batchupdaterecommendationstatuscommandoutput.html)
|
|
224
|
+
|
|
217
225
|
</details>
|
|
218
226
|
<details>
|
|
219
227
|
<summary>
|
|
@@ -398,6 +406,14 @@ ListAlarmRecommendations
|
|
|
398
406
|
|
|
399
407
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resiliencehub/classes/listalarmrecommendationscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resiliencehub/interfaces/listalarmrecommendationscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resiliencehub/interfaces/listalarmrecommendationscommandoutput.html)
|
|
400
408
|
|
|
409
|
+
</details>
|
|
410
|
+
<details>
|
|
411
|
+
<summary>
|
|
412
|
+
ListAppAssessmentComplianceDrifts
|
|
413
|
+
</summary>
|
|
414
|
+
|
|
415
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resiliencehub/classes/listappassessmentcompliancedriftscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resiliencehub/interfaces/listappassessmentcompliancedriftscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-resiliencehub/interfaces/listappassessmentcompliancedriftscommandoutput.html)
|
|
416
|
+
|
|
401
417
|
</details>
|
|
402
418
|
<details>
|
|
403
419
|
<summary>
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Resiliencehub = void 0;
|
|
4
4
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
5
|
const AddDraftAppVersionResourceMappingsCommand_1 = require("./commands/AddDraftAppVersionResourceMappingsCommand");
|
|
6
|
+
const BatchUpdateRecommendationStatusCommand_1 = require("./commands/BatchUpdateRecommendationStatusCommand");
|
|
6
7
|
const CreateAppCommand_1 = require("./commands/CreateAppCommand");
|
|
7
8
|
const CreateAppVersionAppComponentCommand_1 = require("./commands/CreateAppVersionAppComponentCommand");
|
|
8
9
|
const CreateAppVersionResourceCommand_1 = require("./commands/CreateAppVersionResourceCommand");
|
|
@@ -26,6 +27,7 @@ const DescribeDraftAppVersionResourcesImportStatusCommand_1 = require("./command
|
|
|
26
27
|
const DescribeResiliencyPolicyCommand_1 = require("./commands/DescribeResiliencyPolicyCommand");
|
|
27
28
|
const ImportResourcesToDraftAppVersionCommand_1 = require("./commands/ImportResourcesToDraftAppVersionCommand");
|
|
28
29
|
const ListAlarmRecommendationsCommand_1 = require("./commands/ListAlarmRecommendationsCommand");
|
|
30
|
+
const ListAppAssessmentComplianceDriftsCommand_1 = require("./commands/ListAppAssessmentComplianceDriftsCommand");
|
|
29
31
|
const ListAppAssessmentsCommand_1 = require("./commands/ListAppAssessmentsCommand");
|
|
30
32
|
const ListAppComponentCompliancesCommand_1 = require("./commands/ListAppComponentCompliancesCommand");
|
|
31
33
|
const ListAppComponentRecommendationsCommand_1 = require("./commands/ListAppComponentRecommendationsCommand");
|
|
@@ -57,6 +59,7 @@ const UpdateResiliencyPolicyCommand_1 = require("./commands/UpdateResiliencyPoli
|
|
|
57
59
|
const ResiliencehubClient_1 = require("./ResiliencehubClient");
|
|
58
60
|
const commands = {
|
|
59
61
|
AddDraftAppVersionResourceMappingsCommand: AddDraftAppVersionResourceMappingsCommand_1.AddDraftAppVersionResourceMappingsCommand,
|
|
62
|
+
BatchUpdateRecommendationStatusCommand: BatchUpdateRecommendationStatusCommand_1.BatchUpdateRecommendationStatusCommand,
|
|
60
63
|
CreateAppCommand: CreateAppCommand_1.CreateAppCommand,
|
|
61
64
|
CreateAppVersionAppComponentCommand: CreateAppVersionAppComponentCommand_1.CreateAppVersionAppComponentCommand,
|
|
62
65
|
CreateAppVersionResourceCommand: CreateAppVersionResourceCommand_1.CreateAppVersionResourceCommand,
|
|
@@ -80,6 +83,7 @@ const commands = {
|
|
|
80
83
|
DescribeResiliencyPolicyCommand: DescribeResiliencyPolicyCommand_1.DescribeResiliencyPolicyCommand,
|
|
81
84
|
ImportResourcesToDraftAppVersionCommand: ImportResourcesToDraftAppVersionCommand_1.ImportResourcesToDraftAppVersionCommand,
|
|
82
85
|
ListAlarmRecommendationsCommand: ListAlarmRecommendationsCommand_1.ListAlarmRecommendationsCommand,
|
|
86
|
+
ListAppAssessmentComplianceDriftsCommand: ListAppAssessmentComplianceDriftsCommand_1.ListAppAssessmentComplianceDriftsCommand,
|
|
83
87
|
ListAppAssessmentsCommand: ListAppAssessmentsCommand_1.ListAppAssessmentsCommand,
|
|
84
88
|
ListAppComponentCompliancesCommand: ListAppComponentCompliancesCommand_1.ListAppComponentCompliancesCommand,
|
|
85
89
|
ListAppComponentRecommendationsCommand: ListAppComponentRecommendationsCommand_1.ListAppComponentRecommendationsCommand,
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BatchUpdateRecommendationStatusCommand = 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 BatchUpdateRecommendationStatusCommand 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, BatchUpdateRecommendationStatusCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ResiliencehubClient";
|
|
28
|
+
const commandName = "BatchUpdateRecommendationStatusCommand";
|
|
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_BatchUpdateRecommendationStatusCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.de_BatchUpdateRecommendationStatusCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.BatchUpdateRecommendationStatusCommand = BatchUpdateRecommendationStatusCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListAppAssessmentComplianceDriftsCommand = 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 ListAppAssessmentComplianceDriftsCommand 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, ListAppAssessmentComplianceDriftsCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ResiliencehubClient";
|
|
28
|
+
const commandName = "ListAppAssessmentComplianceDriftsCommand";
|
|
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_ListAppAssessmentComplianceDriftsCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.de_ListAppAssessmentComplianceDriftsCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ListAppAssessmentComplianceDriftsCommand = ListAppAssessmentComplianceDriftsCommand;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./AddDraftAppVersionResourceMappingsCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./BatchUpdateRecommendationStatusCommand"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./CreateAppCommand"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./CreateAppVersionAppComponentCommand"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./CreateAppVersionResourceCommand"), exports);
|
|
@@ -25,6 +26,7 @@ tslib_1.__exportStar(require("./DescribeDraftAppVersionResourcesImportStatusComm
|
|
|
25
26
|
tslib_1.__exportStar(require("./DescribeResiliencyPolicyCommand"), exports);
|
|
26
27
|
tslib_1.__exportStar(require("./ImportResourcesToDraftAppVersionCommand"), exports);
|
|
27
28
|
tslib_1.__exportStar(require("./ListAlarmRecommendationsCommand"), exports);
|
|
29
|
+
tslib_1.__exportStar(require("./ListAppAssessmentComplianceDriftsCommand"), exports);
|
|
28
30
|
tslib_1.__exportStar(require("./ListAppAssessmentsCommand"), exports);
|
|
29
31
|
tslib_1.__exportStar(require("./ListAppComponentCompliancesCommand"), exports);
|
|
30
32
|
tslib_1.__exportStar(require("./ListAppComponentRecommendationsCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.UpdateResiliencyPolicyResponseFilterSensitiveLog = exports.UpdateAppResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.StartAppAssessmentResponseFilterSensitiveLog = exports.StartAppAssessmentRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = void 0;
|
|
3
|
+
exports.CreateResiliencyPolicyRequestFilterSensitiveLog = exports.CreateRecommendationTemplateResponseFilterSensitiveLog = exports.RecommendationTemplateFilterSensitiveLog = exports.CreateRecommendationTemplateRequestFilterSensitiveLog = exports.CreateAppResponseFilterSensitiveLog = exports.CreateAppRequestFilterSensitiveLog = exports.AppAssessmentFilterSensitiveLog = exports.ResiliencyPolicyFilterSensitiveLog = exports.AppFilterSensitiveLog = exports.TestType = exports.TestRisk = exports.SopServiceType = exports.RecommendationComplianceStatus = exports.ConfigRecommendationOptimizationType = exports.HaArchitecture = exports.DriftType = exports.DifferenceType = exports.ResourceImportStrategyType = exports.ResourceImportStatusType = exports.ResourceResolutionStatusType = exports.RecommendationTemplateStatus = exports.RenderRecommendationType = exports.TemplateFormat = exports.ResourceSourceType = exports.ServiceQuotaExceededException = exports.ResiliencyPolicyTier = exports.EstimatedCostTier = exports.DataLocationConstraint = exports.AssessmentInvoker = exports.DriftStatus = exports.CostFrequency = exports.ComplianceStatus = exports.DisruptionType = exports.AssessmentStatus = exports.AppStatusType = exports.PermissionModelType = exports.EventType = exports.AppDriftStatusType = exports.AppComplianceStatusType = exports.AppAssessmentScheduleType = exports.AlarmType = exports.ExcludeRecommendationReason = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.PhysicalIdentifierType = exports.ResourceMappingType = exports.AccessDeniedException = void 0;
|
|
4
|
+
exports.UpdateResiliencyPolicyResponseFilterSensitiveLog = exports.UpdateAppResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.StartAppAssessmentResponseFilterSensitiveLog = exports.StartAppAssessmentRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListSuggestedResiliencyPoliciesResponseFilterSensitiveLog = exports.ListResiliencyPoliciesResponseFilterSensitiveLog = exports.ListRecommendationTemplatesResponseFilterSensitiveLog = exports.DescribeResiliencyPolicyResponseFilterSensitiveLog = exports.DescribeAppAssessmentResponseFilterSensitiveLog = exports.DescribeAppResponseFilterSensitiveLog = exports.CreateResiliencyPolicyResponseFilterSensitiveLog = void 0;
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const ResiliencehubServiceException_1 = require("./ResiliencehubServiceException");
|
|
7
7
|
class AccessDeniedException extends ResiliencehubServiceException_1.ResiliencehubServiceException {
|
|
@@ -99,6 +99,11 @@ class ValidationException extends ResiliencehubServiceException_1.ResiliencehubS
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
exports.ValidationException = ValidationException;
|
|
102
|
+
exports.ExcludeRecommendationReason = {
|
|
103
|
+
ALREADY_IMPLEMENTED: "AlreadyImplemented",
|
|
104
|
+
COMPLEXITY_OF_IMPLEMENTATION: "ComplexityOfImplementation",
|
|
105
|
+
NOT_RELEVANT: "NotRelevant",
|
|
106
|
+
};
|
|
102
107
|
exports.AlarmType = {
|
|
103
108
|
CANARY: "Canary",
|
|
104
109
|
COMPOSITE: "Composite",
|
|
@@ -116,6 +121,19 @@ exports.AppComplianceStatusType = {
|
|
|
116
121
|
POLICY_BREACHED: "PolicyBreached",
|
|
117
122
|
POLICY_MET: "PolicyMet",
|
|
118
123
|
};
|
|
124
|
+
exports.AppDriftStatusType = {
|
|
125
|
+
DETECTED: "Detected",
|
|
126
|
+
NOT_CHECKED: "NotChecked",
|
|
127
|
+
NOT_DETECTED: "NotDetected",
|
|
128
|
+
};
|
|
129
|
+
exports.EventType = {
|
|
130
|
+
DRIFT_DETECTED: "DriftDetected",
|
|
131
|
+
SCHEDULED_ASSESSMENT_FAILURE: "ScheduledAssessmentFailure",
|
|
132
|
+
};
|
|
133
|
+
exports.PermissionModelType = {
|
|
134
|
+
LEGACY_IAM_USER: "LegacyIAMUser",
|
|
135
|
+
ROLE_BASED: "RoleBased",
|
|
136
|
+
};
|
|
119
137
|
exports.AppStatusType = {
|
|
120
138
|
ACTIVE: "Active",
|
|
121
139
|
DELETING: "Deleting",
|
|
@@ -142,6 +160,11 @@ exports.CostFrequency = {
|
|
|
142
160
|
MONTHLY: "Monthly",
|
|
143
161
|
YEARLY: "Yearly",
|
|
144
162
|
};
|
|
163
|
+
exports.DriftStatus = {
|
|
164
|
+
DETECTED: "Detected",
|
|
165
|
+
NOT_CHECKED: "NotChecked",
|
|
166
|
+
NOT_DETECTED: "NotDetected",
|
|
167
|
+
};
|
|
145
168
|
exports.AssessmentInvoker = {
|
|
146
169
|
SYSTEM: "System",
|
|
147
170
|
USER: "User",
|
|
@@ -163,6 +186,7 @@ exports.ResiliencyPolicyTier = {
|
|
|
163
186
|
IMPORTANT: "Important",
|
|
164
187
|
MISSION_CRITICAL: "MissionCritical",
|
|
165
188
|
NON_CRITICAL: "NonCritical",
|
|
189
|
+
NOT_APPLICABLE: "NotApplicable",
|
|
166
190
|
};
|
|
167
191
|
class ServiceQuotaExceededException extends ResiliencehubServiceException_1.ResiliencehubServiceException {
|
|
168
192
|
constructor(opts) {
|
|
@@ -212,6 +236,12 @@ exports.ResourceImportStrategyType = {
|
|
|
212
236
|
ADD_ONLY: "AddOnly",
|
|
213
237
|
REPLACE_ALL: "ReplaceAll",
|
|
214
238
|
};
|
|
239
|
+
exports.DifferenceType = {
|
|
240
|
+
NOT_EQUAL: "NotEqual",
|
|
241
|
+
};
|
|
242
|
+
exports.DriftType = {
|
|
243
|
+
APPLICATION_COMPLIANCE: "ApplicationCompliance",
|
|
244
|
+
};
|
|
215
245
|
exports.HaArchitecture = {
|
|
216
246
|
BACKUP_AND_RESTORE: "BackupAndRestore",
|
|
217
247
|
MULTI_SITE: "MultiSite",
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListAppAssessmentComplianceDrifts = void 0;
|
|
4
|
+
const ListAppAssessmentComplianceDriftsCommand_1 = require("../commands/ListAppAssessmentComplianceDriftsCommand");
|
|
5
|
+
const ResiliencehubClient_1 = require("../ResiliencehubClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListAppAssessmentComplianceDriftsCommand_1.ListAppAssessmentComplianceDriftsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListAppAssessmentComplianceDrifts(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 ResiliencehubClient_1.ResiliencehubClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
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.paginateListAppAssessmentComplianceDrifts = paginateListAppAssessmentComplianceDrifts;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./ListAlarmRecommendationsPaginator"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./ListAppAssessmentComplianceDriftsPaginator"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./ListAppAssessmentsPaginator"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./ListAppComponentCompliancesPaginator"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./ListAppComponentRecommendationsPaginator"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.de_UpdateResiliencyPolicyCommand = exports.de_UpdateAppVersionResourceCommand = exports.de_UpdateAppVersionAppComponentCommand = exports.de_UpdateAppVersionCommand = void 0;
|
|
3
|
+
exports.se_UpdateAppCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartAppAssessmentCommand = exports.se_ResolveAppVersionResourcesCommand = exports.se_RemoveDraftAppVersionResourceMappingsCommand = exports.se_PutDraftAppVersionTemplateCommand = exports.se_PublishAppVersionCommand = exports.se_ListUnsupportedAppVersionResourcesCommand = exports.se_ListTestRecommendationsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSuggestedResiliencyPoliciesCommand = exports.se_ListSopRecommendationsCommand = exports.se_ListResiliencyPoliciesCommand = exports.se_ListRecommendationTemplatesCommand = exports.se_ListAppVersionsCommand = exports.se_ListAppVersionResourcesCommand = exports.se_ListAppVersionResourceMappingsCommand = exports.se_ListAppVersionAppComponentsCommand = exports.se_ListAppsCommand = exports.se_ListAppInputSourcesCommand = exports.se_ListAppComponentRecommendationsCommand = exports.se_ListAppComponentCompliancesCommand = exports.se_ListAppAssessmentsCommand = exports.se_ListAppAssessmentComplianceDriftsCommand = exports.se_ListAlarmRecommendationsCommand = exports.se_ImportResourcesToDraftAppVersionCommand = exports.se_DescribeResiliencyPolicyCommand = exports.se_DescribeDraftAppVersionResourcesImportStatusCommand = exports.se_DescribeAppVersionTemplateCommand = exports.se_DescribeAppVersionResourcesResolutionStatusCommand = exports.se_DescribeAppVersionResourceCommand = exports.se_DescribeAppVersionAppComponentCommand = exports.se_DescribeAppVersionCommand = exports.se_DescribeAppAssessmentCommand = exports.se_DescribeAppCommand = exports.se_DeleteResiliencyPolicyCommand = exports.se_DeleteRecommendationTemplateCommand = exports.se_DeleteAppVersionResourceCommand = exports.se_DeleteAppVersionAppComponentCommand = exports.se_DeleteAppInputSourceCommand = exports.se_DeleteAppAssessmentCommand = exports.se_DeleteAppCommand = exports.se_CreateResiliencyPolicyCommand = exports.se_CreateRecommendationTemplateCommand = exports.se_CreateAppVersionResourceCommand = exports.se_CreateAppVersionAppComponentCommand = exports.se_CreateAppCommand = exports.se_BatchUpdateRecommendationStatusCommand = exports.se_AddDraftAppVersionResourceMappingsCommand = void 0;
|
|
4
|
+
exports.de_ResolveAppVersionResourcesCommand = exports.de_RemoveDraftAppVersionResourceMappingsCommand = exports.de_PutDraftAppVersionTemplateCommand = exports.de_PublishAppVersionCommand = exports.de_ListUnsupportedAppVersionResourcesCommand = exports.de_ListTestRecommendationsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSuggestedResiliencyPoliciesCommand = exports.de_ListSopRecommendationsCommand = exports.de_ListResiliencyPoliciesCommand = exports.de_ListRecommendationTemplatesCommand = exports.de_ListAppVersionsCommand = exports.de_ListAppVersionResourcesCommand = exports.de_ListAppVersionResourceMappingsCommand = exports.de_ListAppVersionAppComponentsCommand = exports.de_ListAppsCommand = exports.de_ListAppInputSourcesCommand = exports.de_ListAppComponentRecommendationsCommand = exports.de_ListAppComponentCompliancesCommand = exports.de_ListAppAssessmentsCommand = exports.de_ListAppAssessmentComplianceDriftsCommand = exports.de_ListAlarmRecommendationsCommand = exports.de_ImportResourcesToDraftAppVersionCommand = exports.de_DescribeResiliencyPolicyCommand = exports.de_DescribeDraftAppVersionResourcesImportStatusCommand = exports.de_DescribeAppVersionTemplateCommand = exports.de_DescribeAppVersionResourcesResolutionStatusCommand = exports.de_DescribeAppVersionResourceCommand = exports.de_DescribeAppVersionAppComponentCommand = exports.de_DescribeAppVersionCommand = exports.de_DescribeAppAssessmentCommand = exports.de_DescribeAppCommand = exports.de_DeleteResiliencyPolicyCommand = exports.de_DeleteRecommendationTemplateCommand = exports.de_DeleteAppVersionResourceCommand = exports.de_DeleteAppVersionAppComponentCommand = exports.de_DeleteAppInputSourceCommand = exports.de_DeleteAppAssessmentCommand = exports.de_DeleteAppCommand = exports.de_CreateResiliencyPolicyCommand = exports.de_CreateRecommendationTemplateCommand = exports.de_CreateAppVersionResourceCommand = exports.de_CreateAppVersionAppComponentCommand = exports.de_CreateAppCommand = exports.de_BatchUpdateRecommendationStatusCommand = exports.de_AddDraftAppVersionResourceMappingsCommand = exports.se_UpdateResiliencyPolicyCommand = exports.se_UpdateAppVersionResourceCommand = exports.se_UpdateAppVersionAppComponentCommand = exports.se_UpdateAppVersionCommand = void 0;
|
|
5
|
+
exports.de_UpdateResiliencyPolicyCommand = exports.de_UpdateAppVersionResourceCommand = exports.de_UpdateAppVersionAppComponentCommand = exports.de_UpdateAppVersionCommand = exports.de_UpdateAppCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartAppAssessmentCommand = 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");
|
|
@@ -30,6 +30,28 @@ const se_AddDraftAppVersionResourceMappingsCommand = async (input, context) => {
|
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
32
|
exports.se_AddDraftAppVersionResourceMappingsCommand = se_AddDraftAppVersionResourceMappingsCommand;
|
|
33
|
+
const se_BatchUpdateRecommendationStatusCommand = async (input, context) => {
|
|
34
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
35
|
+
const headers = {
|
|
36
|
+
"content-type": "application/json",
|
|
37
|
+
};
|
|
38
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/batch-update-recommendation-status";
|
|
39
|
+
let body;
|
|
40
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
41
|
+
appArn: [],
|
|
42
|
+
requestEntries: (_) => (0, smithy_client_1._json)(_),
|
|
43
|
+
}));
|
|
44
|
+
return new protocol_http_1.HttpRequest({
|
|
45
|
+
protocol,
|
|
46
|
+
hostname,
|
|
47
|
+
port,
|
|
48
|
+
method: "POST",
|
|
49
|
+
headers,
|
|
50
|
+
path: resolvedPath,
|
|
51
|
+
body,
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
exports.se_BatchUpdateRecommendationStatusCommand = se_BatchUpdateRecommendationStatusCommand;
|
|
33
55
|
const se_CreateAppCommand = async (input, context) => {
|
|
34
56
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
35
57
|
const headers = {
|
|
@@ -41,7 +63,9 @@ const se_CreateAppCommand = async (input, context) => {
|
|
|
41
63
|
assessmentSchedule: [],
|
|
42
64
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
43
65
|
description: [],
|
|
66
|
+
eventSubscriptions: (_) => (0, smithy_client_1._json)(_),
|
|
44
67
|
name: [],
|
|
68
|
+
permissionModel: (_) => (0, smithy_client_1._json)(_),
|
|
45
69
|
policyArn: [],
|
|
46
70
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
47
71
|
}));
|
|
@@ -582,6 +606,29 @@ const se_ListAlarmRecommendationsCommand = async (input, context) => {
|
|
|
582
606
|
});
|
|
583
607
|
};
|
|
584
608
|
exports.se_ListAlarmRecommendationsCommand = se_ListAlarmRecommendationsCommand;
|
|
609
|
+
const se_ListAppAssessmentComplianceDriftsCommand = async (input, context) => {
|
|
610
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
611
|
+
const headers = {
|
|
612
|
+
"content-type": "application/json",
|
|
613
|
+
};
|
|
614
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-assessment-compliance-drifts";
|
|
615
|
+
let body;
|
|
616
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
617
|
+
assessmentArn: [],
|
|
618
|
+
maxResults: [],
|
|
619
|
+
nextToken: [],
|
|
620
|
+
}));
|
|
621
|
+
return new protocol_http_1.HttpRequest({
|
|
622
|
+
protocol,
|
|
623
|
+
hostname,
|
|
624
|
+
port,
|
|
625
|
+
method: "POST",
|
|
626
|
+
headers,
|
|
627
|
+
path: resolvedPath,
|
|
628
|
+
body,
|
|
629
|
+
});
|
|
630
|
+
};
|
|
631
|
+
exports.se_ListAppAssessmentComplianceDriftsCommand = se_ListAppAssessmentComplianceDriftsCommand;
|
|
585
632
|
const se_ListAppAssessmentsCommand = async (input, context) => {
|
|
586
633
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
587
634
|
const headers = {};
|
|
@@ -787,8 +834,10 @@ const se_ListAppVersionsCommand = async (input, context) => {
|
|
|
787
834
|
let body;
|
|
788
835
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
789
836
|
appArn: [],
|
|
837
|
+
endTime: (_) => Math.round(_.getTime() / 1000),
|
|
790
838
|
maxResults: [],
|
|
791
839
|
nextToken: [],
|
|
840
|
+
startTime: (_) => Math.round(_.getTime() / 1000),
|
|
792
841
|
}));
|
|
793
842
|
return new protocol_http_1.HttpRequest({
|
|
794
843
|
protocol,
|
|
@@ -967,6 +1016,7 @@ const se_PublishAppVersionCommand = async (input, context) => {
|
|
|
967
1016
|
let body;
|
|
968
1017
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
969
1018
|
appArn: [],
|
|
1019
|
+
versionName: [],
|
|
970
1020
|
}));
|
|
971
1021
|
return new protocol_http_1.HttpRequest({
|
|
972
1022
|
protocol,
|
|
@@ -1134,6 +1184,8 @@ const se_UpdateAppCommand = async (input, context) => {
|
|
|
1134
1184
|
assessmentSchedule: [],
|
|
1135
1185
|
clearResiliencyPolicyArn: [],
|
|
1136
1186
|
description: [],
|
|
1187
|
+
eventSubscriptions: (_) => (0, smithy_client_1._json)(_),
|
|
1188
|
+
permissionModel: (_) => (0, smithy_client_1._json)(_),
|
|
1137
1189
|
policyArn: [],
|
|
1138
1190
|
}));
|
|
1139
1191
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1301,6 +1353,54 @@ const de_AddDraftAppVersionResourceMappingsCommandError = async (output, context
|
|
|
1301
1353
|
});
|
|
1302
1354
|
}
|
|
1303
1355
|
};
|
|
1356
|
+
const de_BatchUpdateRecommendationStatusCommand = async (output, context) => {
|
|
1357
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1358
|
+
return de_BatchUpdateRecommendationStatusCommandError(output, context);
|
|
1359
|
+
}
|
|
1360
|
+
const contents = (0, smithy_client_1.map)({
|
|
1361
|
+
$metadata: deserializeMetadata(output),
|
|
1362
|
+
});
|
|
1363
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1364
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1365
|
+
appArn: smithy_client_1.expectString,
|
|
1366
|
+
failedEntries: smithy_client_1._json,
|
|
1367
|
+
successfulEntries: smithy_client_1._json,
|
|
1368
|
+
});
|
|
1369
|
+
Object.assign(contents, doc);
|
|
1370
|
+
return contents;
|
|
1371
|
+
};
|
|
1372
|
+
exports.de_BatchUpdateRecommendationStatusCommand = de_BatchUpdateRecommendationStatusCommand;
|
|
1373
|
+
const de_BatchUpdateRecommendationStatusCommandError = async (output, context) => {
|
|
1374
|
+
const parsedOutput = {
|
|
1375
|
+
...output,
|
|
1376
|
+
body: await parseErrorBody(output.body, context),
|
|
1377
|
+
};
|
|
1378
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1379
|
+
switch (errorCode) {
|
|
1380
|
+
case "AccessDeniedException":
|
|
1381
|
+
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1382
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1383
|
+
case "InternalServerException":
|
|
1384
|
+
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1385
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1386
|
+
case "ResourceNotFoundException":
|
|
1387
|
+
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1388
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1389
|
+
case "ThrottlingException":
|
|
1390
|
+
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1391
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1392
|
+
case "ValidationException":
|
|
1393
|
+
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1394
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1395
|
+
default:
|
|
1396
|
+
const parsedBody = parsedOutput.body;
|
|
1397
|
+
return throwDefaultError({
|
|
1398
|
+
output,
|
|
1399
|
+
parsedBody,
|
|
1400
|
+
errorCode,
|
|
1401
|
+
});
|
|
1402
|
+
}
|
|
1403
|
+
};
|
|
1304
1404
|
const de_CreateAppCommand = async (output, context) => {
|
|
1305
1405
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1306
1406
|
return de_CreateAppCommandError(output, context);
|
|
@@ -2381,6 +2481,9 @@ const de_ImportResourcesToDraftAppVersionCommandError = async (output, context)
|
|
|
2381
2481
|
case "ResourceNotFoundException":
|
|
2382
2482
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2383
2483
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2484
|
+
case "ServiceQuotaExceededException":
|
|
2485
|
+
case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
|
|
2486
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2384
2487
|
case "ThrottlingException":
|
|
2385
2488
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2386
2489
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -2443,6 +2546,50 @@ const de_ListAlarmRecommendationsCommandError = async (output, context) => {
|
|
|
2443
2546
|
});
|
|
2444
2547
|
}
|
|
2445
2548
|
};
|
|
2549
|
+
const de_ListAppAssessmentComplianceDriftsCommand = async (output, context) => {
|
|
2550
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2551
|
+
return de_ListAppAssessmentComplianceDriftsCommandError(output, context);
|
|
2552
|
+
}
|
|
2553
|
+
const contents = (0, smithy_client_1.map)({
|
|
2554
|
+
$metadata: deserializeMetadata(output),
|
|
2555
|
+
});
|
|
2556
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2557
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2558
|
+
complianceDrifts: smithy_client_1._json,
|
|
2559
|
+
nextToken: smithy_client_1.expectString,
|
|
2560
|
+
});
|
|
2561
|
+
Object.assign(contents, doc);
|
|
2562
|
+
return contents;
|
|
2563
|
+
};
|
|
2564
|
+
exports.de_ListAppAssessmentComplianceDriftsCommand = de_ListAppAssessmentComplianceDriftsCommand;
|
|
2565
|
+
const de_ListAppAssessmentComplianceDriftsCommandError = async (output, context) => {
|
|
2566
|
+
const parsedOutput = {
|
|
2567
|
+
...output,
|
|
2568
|
+
body: await parseErrorBody(output.body, context),
|
|
2569
|
+
};
|
|
2570
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2571
|
+
switch (errorCode) {
|
|
2572
|
+
case "AccessDeniedException":
|
|
2573
|
+
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2574
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2575
|
+
case "InternalServerException":
|
|
2576
|
+
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2577
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2578
|
+
case "ThrottlingException":
|
|
2579
|
+
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2580
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2581
|
+
case "ValidationException":
|
|
2582
|
+
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2583
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2584
|
+
default:
|
|
2585
|
+
const parsedBody = parsedOutput.body;
|
|
2586
|
+
return throwDefaultError({
|
|
2587
|
+
output,
|
|
2588
|
+
parsedBody,
|
|
2589
|
+
errorCode,
|
|
2590
|
+
});
|
|
2591
|
+
}
|
|
2592
|
+
};
|
|
2446
2593
|
const de_ListAppAssessmentsCommand = async (output, context) => {
|
|
2447
2594
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2448
2595
|
return de_ListAppAssessmentsCommandError(output, context);
|
|
@@ -2834,7 +2981,7 @@ const de_ListAppVersionsCommand = async (output, context) => {
|
|
|
2834
2981
|
});
|
|
2835
2982
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2836
2983
|
const doc = (0, smithy_client_1.take)(data, {
|
|
2837
|
-
appVersions:
|
|
2984
|
+
appVersions: (_) => de_AppVersionList(_, context),
|
|
2838
2985
|
nextToken: smithy_client_1.expectString,
|
|
2839
2986
|
});
|
|
2840
2987
|
Object.assign(contents, doc);
|
|
@@ -3215,6 +3362,8 @@ const de_PublishAppVersionCommand = async (output, context) => {
|
|
|
3215
3362
|
const doc = (0, smithy_client_1.take)(data, {
|
|
3216
3363
|
appArn: smithy_client_1.expectString,
|
|
3217
3364
|
appVersion: smithy_client_1.expectString,
|
|
3365
|
+
identifier: smithy_client_1.expectLong,
|
|
3366
|
+
versionName: smithy_client_1.expectString,
|
|
3218
3367
|
});
|
|
3219
3368
|
Object.assign(contents, doc);
|
|
3220
3369
|
return contents;
|
|
@@ -3900,9 +4049,13 @@ const de_App = (output, context) => {
|
|
|
3900
4049
|
complianceStatus: smithy_client_1.expectString,
|
|
3901
4050
|
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3902
4051
|
description: smithy_client_1.expectString,
|
|
4052
|
+
driftStatus: smithy_client_1.expectString,
|
|
4053
|
+
eventSubscriptions: smithy_client_1._json,
|
|
3903
4054
|
lastAppComplianceEvaluationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4055
|
+
lastDriftEvaluationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3904
4056
|
lastResiliencyScoreEvaluationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3905
4057
|
name: smithy_client_1.expectString,
|
|
4058
|
+
permissionModel: smithy_client_1._json,
|
|
3906
4059
|
policyArn: smithy_client_1.expectString,
|
|
3907
4060
|
resiliencyScore: smithy_client_1.limitedParseDouble,
|
|
3908
4061
|
status: smithy_client_1.expectString,
|
|
@@ -3919,6 +4072,7 @@ const de_AppAssessment = (output, context) => {
|
|
|
3919
4072
|
compliance: smithy_client_1._json,
|
|
3920
4073
|
complianceStatus: smithy_client_1.expectString,
|
|
3921
4074
|
cost: (_) => de_Cost(_, context),
|
|
4075
|
+
driftStatus: smithy_client_1.expectString,
|
|
3922
4076
|
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3923
4077
|
invoker: smithy_client_1.expectString,
|
|
3924
4078
|
message: smithy_client_1.expectString,
|
|
@@ -3927,6 +4081,7 @@ const de_AppAssessment = (output, context) => {
|
|
|
3927
4081
|
resourceErrorsDetails: smithy_client_1._json,
|
|
3928
4082
|
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3929
4083
|
tags: smithy_client_1._json,
|
|
4084
|
+
versionName: smithy_client_1.expectString,
|
|
3930
4085
|
});
|
|
3931
4086
|
};
|
|
3932
4087
|
const de_AppAssessmentSummary = (output, context) => {
|
|
@@ -3938,11 +4093,13 @@ const de_AppAssessmentSummary = (output, context) => {
|
|
|
3938
4093
|
assessmentStatus: smithy_client_1.expectString,
|
|
3939
4094
|
complianceStatus: smithy_client_1.expectString,
|
|
3940
4095
|
cost: (_) => de_Cost(_, context),
|
|
4096
|
+
driftStatus: smithy_client_1.expectString,
|
|
3941
4097
|
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3942
4098
|
invoker: smithy_client_1.expectString,
|
|
3943
4099
|
message: smithy_client_1.expectString,
|
|
3944
4100
|
resiliencyScore: smithy_client_1.limitedParseDouble,
|
|
3945
4101
|
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4102
|
+
versionName: smithy_client_1.expectString,
|
|
3946
4103
|
});
|
|
3947
4104
|
};
|
|
3948
4105
|
const de_AppAssessmentSummaryList = (output, context) => {
|
|
@@ -3970,6 +4127,7 @@ const de_AppSummary = (output, context) => {
|
|
|
3970
4127
|
complianceStatus: smithy_client_1.expectString,
|
|
3971
4128
|
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3972
4129
|
description: smithy_client_1.expectString,
|
|
4130
|
+
driftStatus: smithy_client_1.expectString,
|
|
3973
4131
|
name: smithy_client_1.expectString,
|
|
3974
4132
|
resiliencyScore: smithy_client_1.limitedParseDouble,
|
|
3975
4133
|
status: smithy_client_1.expectString,
|
|
@@ -3983,6 +4141,22 @@ const de_AppSummaryList = (output, context) => {
|
|
|
3983
4141
|
});
|
|
3984
4142
|
return retVal;
|
|
3985
4143
|
};
|
|
4144
|
+
const de_AppVersionList = (output, context) => {
|
|
4145
|
+
const retVal = (output || [])
|
|
4146
|
+
.filter((e) => e != null)
|
|
4147
|
+
.map((entry) => {
|
|
4148
|
+
return de_AppVersionSummary(entry, context);
|
|
4149
|
+
});
|
|
4150
|
+
return retVal;
|
|
4151
|
+
};
|
|
4152
|
+
const de_AppVersionSummary = (output, context) => {
|
|
4153
|
+
return (0, smithy_client_1.take)(output, {
|
|
4154
|
+
appVersion: smithy_client_1.expectString,
|
|
4155
|
+
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4156
|
+
identifier: smithy_client_1.expectLong,
|
|
4157
|
+
versionName: smithy_client_1.expectString,
|
|
4158
|
+
});
|
|
4159
|
+
};
|
|
3986
4160
|
const de_ComponentCompliancesList = (output, context) => {
|
|
3987
4161
|
const retVal = (output || [])
|
|
3988
4162
|
.filter((e) => e != null)
|