@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/dist-es/Resiliencehub.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
2
|
import { AddDraftAppVersionResourceMappingsCommand, } from "./commands/AddDraftAppVersionResourceMappingsCommand";
|
|
3
|
+
import { BatchUpdateRecommendationStatusCommand, } from "./commands/BatchUpdateRecommendationStatusCommand";
|
|
3
4
|
import { CreateAppCommand } from "./commands/CreateAppCommand";
|
|
4
5
|
import { CreateAppVersionAppComponentCommand, } from "./commands/CreateAppVersionAppComponentCommand";
|
|
5
6
|
import { CreateAppVersionResourceCommand, } from "./commands/CreateAppVersionResourceCommand";
|
|
@@ -23,6 +24,7 @@ import { DescribeDraftAppVersionResourcesImportStatusCommand, } from "./commands
|
|
|
23
24
|
import { DescribeResiliencyPolicyCommand, } from "./commands/DescribeResiliencyPolicyCommand";
|
|
24
25
|
import { ImportResourcesToDraftAppVersionCommand, } from "./commands/ImportResourcesToDraftAppVersionCommand";
|
|
25
26
|
import { ListAlarmRecommendationsCommand, } from "./commands/ListAlarmRecommendationsCommand";
|
|
27
|
+
import { ListAppAssessmentComplianceDriftsCommand, } from "./commands/ListAppAssessmentComplianceDriftsCommand";
|
|
26
28
|
import { ListAppAssessmentsCommand, } from "./commands/ListAppAssessmentsCommand";
|
|
27
29
|
import { ListAppComponentCompliancesCommand, } from "./commands/ListAppComponentCompliancesCommand";
|
|
28
30
|
import { ListAppComponentRecommendationsCommand, } from "./commands/ListAppComponentRecommendationsCommand";
|
|
@@ -54,6 +56,7 @@ import { UpdateResiliencyPolicyCommand, } from "./commands/UpdateResiliencyPolic
|
|
|
54
56
|
import { ResiliencehubClient } from "./ResiliencehubClient";
|
|
55
57
|
const commands = {
|
|
56
58
|
AddDraftAppVersionResourceMappingsCommand,
|
|
59
|
+
BatchUpdateRecommendationStatusCommand,
|
|
57
60
|
CreateAppCommand,
|
|
58
61
|
CreateAppVersionAppComponentCommand,
|
|
59
62
|
CreateAppVersionResourceCommand,
|
|
@@ -77,6 +80,7 @@ const commands = {
|
|
|
77
80
|
DescribeResiliencyPolicyCommand,
|
|
78
81
|
ImportResourcesToDraftAppVersionCommand,
|
|
79
82
|
ListAlarmRecommendationsCommand,
|
|
83
|
+
ListAppAssessmentComplianceDriftsCommand,
|
|
80
84
|
ListAppAssessmentsCommand,
|
|
81
85
|
ListAppComponentCompliancesCommand,
|
|
82
86
|
ListAppComponentRecommendationsCommand,
|
|
@@ -0,0 +1,42 @@
|
|
|
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 { de_BatchUpdateRecommendationStatusCommand, se_BatchUpdateRecommendationStatusCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class BatchUpdateRecommendationStatusCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, BatchUpdateRecommendationStatusCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ResiliencehubClient";
|
|
25
|
+
const commandName = "BatchUpdateRecommendationStatusCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_BatchUpdateRecommendationStatusCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_BatchUpdateRecommendationStatusCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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 { de_ListAppAssessmentComplianceDriftsCommand, se_ListAppAssessmentComplianceDriftsCommand, } from "../protocols/Aws_restJson1";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ListAppAssessmentComplianceDriftsCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListAppAssessmentComplianceDriftsCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ResiliencehubClient";
|
|
25
|
+
const commandName = "ListAppAssessmentComplianceDriftsCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_ListAppAssessmentComplianceDriftsCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_ListAppAssessmentComplianceDriftsCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./AddDraftAppVersionResourceMappingsCommand";
|
|
2
|
+
export * from "./BatchUpdateRecommendationStatusCommand";
|
|
2
3
|
export * from "./CreateAppCommand";
|
|
3
4
|
export * from "./CreateAppVersionAppComponentCommand";
|
|
4
5
|
export * from "./CreateAppVersionResourceCommand";
|
|
@@ -22,6 +23,7 @@ export * from "./DescribeDraftAppVersionResourcesImportStatusCommand";
|
|
|
22
23
|
export * from "./DescribeResiliencyPolicyCommand";
|
|
23
24
|
export * from "./ImportResourcesToDraftAppVersionCommand";
|
|
24
25
|
export * from "./ListAlarmRecommendationsCommand";
|
|
26
|
+
export * from "./ListAppAssessmentComplianceDriftsCommand";
|
|
25
27
|
export * from "./ListAppAssessmentsCommand";
|
|
26
28
|
export * from "./ListAppComponentCompliancesCommand";
|
|
27
29
|
export * from "./ListAppComponentRecommendationsCommand";
|
|
@@ -89,6 +89,11 @@ export class ValidationException extends __BaseException {
|
|
|
89
89
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
+
export const ExcludeRecommendationReason = {
|
|
93
|
+
ALREADY_IMPLEMENTED: "AlreadyImplemented",
|
|
94
|
+
COMPLEXITY_OF_IMPLEMENTATION: "ComplexityOfImplementation",
|
|
95
|
+
NOT_RELEVANT: "NotRelevant",
|
|
96
|
+
};
|
|
92
97
|
export const AlarmType = {
|
|
93
98
|
CANARY: "Canary",
|
|
94
99
|
COMPOSITE: "Composite",
|
|
@@ -106,6 +111,19 @@ export const AppComplianceStatusType = {
|
|
|
106
111
|
POLICY_BREACHED: "PolicyBreached",
|
|
107
112
|
POLICY_MET: "PolicyMet",
|
|
108
113
|
};
|
|
114
|
+
export const AppDriftStatusType = {
|
|
115
|
+
DETECTED: "Detected",
|
|
116
|
+
NOT_CHECKED: "NotChecked",
|
|
117
|
+
NOT_DETECTED: "NotDetected",
|
|
118
|
+
};
|
|
119
|
+
export const EventType = {
|
|
120
|
+
DRIFT_DETECTED: "DriftDetected",
|
|
121
|
+
SCHEDULED_ASSESSMENT_FAILURE: "ScheduledAssessmentFailure",
|
|
122
|
+
};
|
|
123
|
+
export const PermissionModelType = {
|
|
124
|
+
LEGACY_IAM_USER: "LegacyIAMUser",
|
|
125
|
+
ROLE_BASED: "RoleBased",
|
|
126
|
+
};
|
|
109
127
|
export const AppStatusType = {
|
|
110
128
|
ACTIVE: "Active",
|
|
111
129
|
DELETING: "Deleting",
|
|
@@ -132,6 +150,11 @@ export const CostFrequency = {
|
|
|
132
150
|
MONTHLY: "Monthly",
|
|
133
151
|
YEARLY: "Yearly",
|
|
134
152
|
};
|
|
153
|
+
export const DriftStatus = {
|
|
154
|
+
DETECTED: "Detected",
|
|
155
|
+
NOT_CHECKED: "NotChecked",
|
|
156
|
+
NOT_DETECTED: "NotDetected",
|
|
157
|
+
};
|
|
135
158
|
export const AssessmentInvoker = {
|
|
136
159
|
SYSTEM: "System",
|
|
137
160
|
USER: "User",
|
|
@@ -153,6 +176,7 @@ export const ResiliencyPolicyTier = {
|
|
|
153
176
|
IMPORTANT: "Important",
|
|
154
177
|
MISSION_CRITICAL: "MissionCritical",
|
|
155
178
|
NON_CRITICAL: "NonCritical",
|
|
179
|
+
NOT_APPLICABLE: "NotApplicable",
|
|
156
180
|
};
|
|
157
181
|
export class ServiceQuotaExceededException extends __BaseException {
|
|
158
182
|
constructor(opts) {
|
|
@@ -201,6 +225,12 @@ export const ResourceImportStrategyType = {
|
|
|
201
225
|
ADD_ONLY: "AddOnly",
|
|
202
226
|
REPLACE_ALL: "ReplaceAll",
|
|
203
227
|
};
|
|
228
|
+
export const DifferenceType = {
|
|
229
|
+
NOT_EQUAL: "NotEqual",
|
|
230
|
+
};
|
|
231
|
+
export const DriftType = {
|
|
232
|
+
APPLICATION_COMPLIANCE: "ApplicationCompliance",
|
|
233
|
+
};
|
|
204
234
|
export const HaArchitecture = {
|
|
205
235
|
BACKUP_AND_RESTORE: "BackupAndRestore",
|
|
206
236
|
MULTI_SITE: "MultiSite",
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListAppAssessmentComplianceDriftsCommand, } from "../commands/ListAppAssessmentComplianceDriftsCommand";
|
|
2
|
+
import { ResiliencehubClient } from "../ResiliencehubClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListAppAssessmentComplianceDriftsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListAppAssessmentComplianceDrifts(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof ResiliencehubClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./Interfaces";
|
|
2
2
|
export * from "./ListAlarmRecommendationsPaginator";
|
|
3
|
+
export * from "./ListAppAssessmentComplianceDriftsPaginator";
|
|
3
4
|
export * from "./ListAppAssessmentsPaginator";
|
|
4
5
|
export * from "./ListAppComponentCompliancesPaginator";
|
|
5
6
|
export * from "./ListAppComponentRecommendationsPaginator";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
|
|
2
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
5
|
import { ResiliencehubServiceException as __BaseException } from "../models/ResiliencehubServiceException";
|
|
@@ -24,6 +24,27 @@ export const se_AddDraftAppVersionResourceMappingsCommand = async (input, contex
|
|
|
24
24
|
body,
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
|
+
export const se_BatchUpdateRecommendationStatusCommand = async (input, context) => {
|
|
28
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
29
|
+
const headers = {
|
|
30
|
+
"content-type": "application/json",
|
|
31
|
+
};
|
|
32
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/batch-update-recommendation-status";
|
|
33
|
+
let body;
|
|
34
|
+
body = JSON.stringify(take(input, {
|
|
35
|
+
appArn: [],
|
|
36
|
+
requestEntries: (_) => _json(_),
|
|
37
|
+
}));
|
|
38
|
+
return new __HttpRequest({
|
|
39
|
+
protocol,
|
|
40
|
+
hostname,
|
|
41
|
+
port,
|
|
42
|
+
method: "POST",
|
|
43
|
+
headers,
|
|
44
|
+
path: resolvedPath,
|
|
45
|
+
body,
|
|
46
|
+
});
|
|
47
|
+
};
|
|
27
48
|
export const se_CreateAppCommand = async (input, context) => {
|
|
28
49
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
29
50
|
const headers = {
|
|
@@ -35,7 +56,9 @@ export const se_CreateAppCommand = async (input, context) => {
|
|
|
35
56
|
assessmentSchedule: [],
|
|
36
57
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
37
58
|
description: [],
|
|
59
|
+
eventSubscriptions: (_) => _json(_),
|
|
38
60
|
name: [],
|
|
61
|
+
permissionModel: (_) => _json(_),
|
|
39
62
|
policyArn: [],
|
|
40
63
|
tags: (_) => _json(_),
|
|
41
64
|
}));
|
|
@@ -553,6 +576,28 @@ export const se_ListAlarmRecommendationsCommand = async (input, context) => {
|
|
|
553
576
|
body,
|
|
554
577
|
});
|
|
555
578
|
};
|
|
579
|
+
export const se_ListAppAssessmentComplianceDriftsCommand = async (input, context) => {
|
|
580
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
581
|
+
const headers = {
|
|
582
|
+
"content-type": "application/json",
|
|
583
|
+
};
|
|
584
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-app-assessment-compliance-drifts";
|
|
585
|
+
let body;
|
|
586
|
+
body = JSON.stringify(take(input, {
|
|
587
|
+
assessmentArn: [],
|
|
588
|
+
maxResults: [],
|
|
589
|
+
nextToken: [],
|
|
590
|
+
}));
|
|
591
|
+
return new __HttpRequest({
|
|
592
|
+
protocol,
|
|
593
|
+
hostname,
|
|
594
|
+
port,
|
|
595
|
+
method: "POST",
|
|
596
|
+
headers,
|
|
597
|
+
path: resolvedPath,
|
|
598
|
+
body,
|
|
599
|
+
});
|
|
600
|
+
};
|
|
556
601
|
export const se_ListAppAssessmentsCommand = async (input, context) => {
|
|
557
602
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
558
603
|
const headers = {};
|
|
@@ -750,8 +795,10 @@ export const se_ListAppVersionsCommand = async (input, context) => {
|
|
|
750
795
|
let body;
|
|
751
796
|
body = JSON.stringify(take(input, {
|
|
752
797
|
appArn: [],
|
|
798
|
+
endTime: (_) => Math.round(_.getTime() / 1000),
|
|
753
799
|
maxResults: [],
|
|
754
800
|
nextToken: [],
|
|
801
|
+
startTime: (_) => Math.round(_.getTime() / 1000),
|
|
755
802
|
}));
|
|
756
803
|
return new __HttpRequest({
|
|
757
804
|
protocol,
|
|
@@ -922,6 +969,7 @@ export const se_PublishAppVersionCommand = async (input, context) => {
|
|
|
922
969
|
let body;
|
|
923
970
|
body = JSON.stringify(take(input, {
|
|
924
971
|
appArn: [],
|
|
972
|
+
versionName: [],
|
|
925
973
|
}));
|
|
926
974
|
return new __HttpRequest({
|
|
927
975
|
protocol,
|
|
@@ -1082,6 +1130,8 @@ export const se_UpdateAppCommand = async (input, context) => {
|
|
|
1082
1130
|
assessmentSchedule: [],
|
|
1083
1131
|
clearResiliencyPolicyArn: [],
|
|
1084
1132
|
description: [],
|
|
1133
|
+
eventSubscriptions: (_) => _json(_),
|
|
1134
|
+
permissionModel: (_) => _json(_),
|
|
1085
1135
|
policyArn: [],
|
|
1086
1136
|
}));
|
|
1087
1137
|
return new __HttpRequest({
|
|
@@ -1243,6 +1293,53 @@ const de_AddDraftAppVersionResourceMappingsCommandError = async (output, context
|
|
|
1243
1293
|
});
|
|
1244
1294
|
}
|
|
1245
1295
|
};
|
|
1296
|
+
export const de_BatchUpdateRecommendationStatusCommand = async (output, context) => {
|
|
1297
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1298
|
+
return de_BatchUpdateRecommendationStatusCommandError(output, context);
|
|
1299
|
+
}
|
|
1300
|
+
const contents = map({
|
|
1301
|
+
$metadata: deserializeMetadata(output),
|
|
1302
|
+
});
|
|
1303
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1304
|
+
const doc = take(data, {
|
|
1305
|
+
appArn: __expectString,
|
|
1306
|
+
failedEntries: _json,
|
|
1307
|
+
successfulEntries: _json,
|
|
1308
|
+
});
|
|
1309
|
+
Object.assign(contents, doc);
|
|
1310
|
+
return contents;
|
|
1311
|
+
};
|
|
1312
|
+
const de_BatchUpdateRecommendationStatusCommandError = async (output, context) => {
|
|
1313
|
+
const parsedOutput = {
|
|
1314
|
+
...output,
|
|
1315
|
+
body: await parseErrorBody(output.body, context),
|
|
1316
|
+
};
|
|
1317
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1318
|
+
switch (errorCode) {
|
|
1319
|
+
case "AccessDeniedException":
|
|
1320
|
+
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
1321
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1322
|
+
case "InternalServerException":
|
|
1323
|
+
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
1324
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1325
|
+
case "ResourceNotFoundException":
|
|
1326
|
+
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
1327
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1328
|
+
case "ThrottlingException":
|
|
1329
|
+
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
1330
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1331
|
+
case "ValidationException":
|
|
1332
|
+
case "com.amazonaws.resiliencehub#ValidationException":
|
|
1333
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1334
|
+
default:
|
|
1335
|
+
const parsedBody = parsedOutput.body;
|
|
1336
|
+
return throwDefaultError({
|
|
1337
|
+
output,
|
|
1338
|
+
parsedBody,
|
|
1339
|
+
errorCode,
|
|
1340
|
+
});
|
|
1341
|
+
}
|
|
1342
|
+
};
|
|
1246
1343
|
export const de_CreateAppCommand = async (output, context) => {
|
|
1247
1344
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1248
1345
|
return de_CreateAppCommandError(output, context);
|
|
@@ -2301,6 +2398,9 @@ const de_ImportResourcesToDraftAppVersionCommandError = async (output, context)
|
|
|
2301
2398
|
case "ResourceNotFoundException":
|
|
2302
2399
|
case "com.amazonaws.resiliencehub#ResourceNotFoundException":
|
|
2303
2400
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2401
|
+
case "ServiceQuotaExceededException":
|
|
2402
|
+
case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
|
|
2403
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2304
2404
|
case "ThrottlingException":
|
|
2305
2405
|
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2306
2406
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -2362,6 +2462,49 @@ const de_ListAlarmRecommendationsCommandError = async (output, context) => {
|
|
|
2362
2462
|
});
|
|
2363
2463
|
}
|
|
2364
2464
|
};
|
|
2465
|
+
export const de_ListAppAssessmentComplianceDriftsCommand = async (output, context) => {
|
|
2466
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2467
|
+
return de_ListAppAssessmentComplianceDriftsCommandError(output, context);
|
|
2468
|
+
}
|
|
2469
|
+
const contents = map({
|
|
2470
|
+
$metadata: deserializeMetadata(output),
|
|
2471
|
+
});
|
|
2472
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2473
|
+
const doc = take(data, {
|
|
2474
|
+
complianceDrifts: _json,
|
|
2475
|
+
nextToken: __expectString,
|
|
2476
|
+
});
|
|
2477
|
+
Object.assign(contents, doc);
|
|
2478
|
+
return contents;
|
|
2479
|
+
};
|
|
2480
|
+
const de_ListAppAssessmentComplianceDriftsCommandError = async (output, context) => {
|
|
2481
|
+
const parsedOutput = {
|
|
2482
|
+
...output,
|
|
2483
|
+
body: await parseErrorBody(output.body, context),
|
|
2484
|
+
};
|
|
2485
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2486
|
+
switch (errorCode) {
|
|
2487
|
+
case "AccessDeniedException":
|
|
2488
|
+
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
2489
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2490
|
+
case "InternalServerException":
|
|
2491
|
+
case "com.amazonaws.resiliencehub#InternalServerException":
|
|
2492
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2493
|
+
case "ThrottlingException":
|
|
2494
|
+
case "com.amazonaws.resiliencehub#ThrottlingException":
|
|
2495
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2496
|
+
case "ValidationException":
|
|
2497
|
+
case "com.amazonaws.resiliencehub#ValidationException":
|
|
2498
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2499
|
+
default:
|
|
2500
|
+
const parsedBody = parsedOutput.body;
|
|
2501
|
+
return throwDefaultError({
|
|
2502
|
+
output,
|
|
2503
|
+
parsedBody,
|
|
2504
|
+
errorCode,
|
|
2505
|
+
});
|
|
2506
|
+
}
|
|
2507
|
+
};
|
|
2365
2508
|
export const de_ListAppAssessmentsCommand = async (output, context) => {
|
|
2366
2509
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2367
2510
|
return de_ListAppAssessmentsCommandError(output, context);
|
|
@@ -2745,7 +2888,7 @@ export const de_ListAppVersionsCommand = async (output, context) => {
|
|
|
2745
2888
|
});
|
|
2746
2889
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2747
2890
|
const doc = take(data, {
|
|
2748
|
-
appVersions:
|
|
2891
|
+
appVersions: (_) => de_AppVersionList(_, context),
|
|
2749
2892
|
nextToken: __expectString,
|
|
2750
2893
|
});
|
|
2751
2894
|
Object.assign(contents, doc);
|
|
@@ -3118,6 +3261,8 @@ export const de_PublishAppVersionCommand = async (output, context) => {
|
|
|
3118
3261
|
const doc = take(data, {
|
|
3119
3262
|
appArn: __expectString,
|
|
3120
3263
|
appVersion: __expectString,
|
|
3264
|
+
identifier: __expectLong,
|
|
3265
|
+
versionName: __expectString,
|
|
3121
3266
|
});
|
|
3122
3267
|
Object.assign(contents, doc);
|
|
3123
3268
|
return contents;
|
|
@@ -3791,9 +3936,13 @@ const de_App = (output, context) => {
|
|
|
3791
3936
|
complianceStatus: __expectString,
|
|
3792
3937
|
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3793
3938
|
description: __expectString,
|
|
3939
|
+
driftStatus: __expectString,
|
|
3940
|
+
eventSubscriptions: _json,
|
|
3794
3941
|
lastAppComplianceEvaluationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3942
|
+
lastDriftEvaluationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3795
3943
|
lastResiliencyScoreEvaluationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3796
3944
|
name: __expectString,
|
|
3945
|
+
permissionModel: _json,
|
|
3797
3946
|
policyArn: __expectString,
|
|
3798
3947
|
resiliencyScore: __limitedParseDouble,
|
|
3799
3948
|
status: __expectString,
|
|
@@ -3810,6 +3959,7 @@ const de_AppAssessment = (output, context) => {
|
|
|
3810
3959
|
compliance: _json,
|
|
3811
3960
|
complianceStatus: __expectString,
|
|
3812
3961
|
cost: (_) => de_Cost(_, context),
|
|
3962
|
+
driftStatus: __expectString,
|
|
3813
3963
|
endTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3814
3964
|
invoker: __expectString,
|
|
3815
3965
|
message: __expectString,
|
|
@@ -3818,6 +3968,7 @@ const de_AppAssessment = (output, context) => {
|
|
|
3818
3968
|
resourceErrorsDetails: _json,
|
|
3819
3969
|
startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3820
3970
|
tags: _json,
|
|
3971
|
+
versionName: __expectString,
|
|
3821
3972
|
});
|
|
3822
3973
|
};
|
|
3823
3974
|
const de_AppAssessmentSummary = (output, context) => {
|
|
@@ -3829,11 +3980,13 @@ const de_AppAssessmentSummary = (output, context) => {
|
|
|
3829
3980
|
assessmentStatus: __expectString,
|
|
3830
3981
|
complianceStatus: __expectString,
|
|
3831
3982
|
cost: (_) => de_Cost(_, context),
|
|
3983
|
+
driftStatus: __expectString,
|
|
3832
3984
|
endTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3833
3985
|
invoker: __expectString,
|
|
3834
3986
|
message: __expectString,
|
|
3835
3987
|
resiliencyScore: __limitedParseDouble,
|
|
3836
3988
|
startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3989
|
+
versionName: __expectString,
|
|
3837
3990
|
});
|
|
3838
3991
|
};
|
|
3839
3992
|
const de_AppAssessmentSummaryList = (output, context) => {
|
|
@@ -3861,6 +4014,7 @@ const de_AppSummary = (output, context) => {
|
|
|
3861
4014
|
complianceStatus: __expectString,
|
|
3862
4015
|
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3863
4016
|
description: __expectString,
|
|
4017
|
+
driftStatus: __expectString,
|
|
3864
4018
|
name: __expectString,
|
|
3865
4019
|
resiliencyScore: __limitedParseDouble,
|
|
3866
4020
|
status: __expectString,
|
|
@@ -3874,6 +4028,22 @@ const de_AppSummaryList = (output, context) => {
|
|
|
3874
4028
|
});
|
|
3875
4029
|
return retVal;
|
|
3876
4030
|
};
|
|
4031
|
+
const de_AppVersionList = (output, context) => {
|
|
4032
|
+
const retVal = (output || [])
|
|
4033
|
+
.filter((e) => e != null)
|
|
4034
|
+
.map((entry) => {
|
|
4035
|
+
return de_AppVersionSummary(entry, context);
|
|
4036
|
+
});
|
|
4037
|
+
return retVal;
|
|
4038
|
+
};
|
|
4039
|
+
const de_AppVersionSummary = (output, context) => {
|
|
4040
|
+
return take(output, {
|
|
4041
|
+
appVersion: __expectString,
|
|
4042
|
+
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4043
|
+
identifier: __expectLong,
|
|
4044
|
+
versionName: __expectString,
|
|
4045
|
+
});
|
|
4046
|
+
};
|
|
3877
4047
|
const de_ComponentCompliancesList = (output, context) => {
|
|
3878
4048
|
const retVal = (output || [])
|
|
3879
4049
|
.filter((e) => e != null)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
2
|
import { AddDraftAppVersionResourceMappingsCommandInput, AddDraftAppVersionResourceMappingsCommandOutput } from "./commands/AddDraftAppVersionResourceMappingsCommand";
|
|
3
|
+
import { BatchUpdateRecommendationStatusCommandInput, BatchUpdateRecommendationStatusCommandOutput } from "./commands/BatchUpdateRecommendationStatusCommand";
|
|
3
4
|
import { CreateAppCommandInput, CreateAppCommandOutput } from "./commands/CreateAppCommand";
|
|
4
5
|
import { CreateAppVersionAppComponentCommandInput, CreateAppVersionAppComponentCommandOutput } from "./commands/CreateAppVersionAppComponentCommand";
|
|
5
6
|
import { CreateAppVersionResourceCommandInput, CreateAppVersionResourceCommandOutput } from "./commands/CreateAppVersionResourceCommand";
|
|
@@ -23,6 +24,7 @@ import { DescribeDraftAppVersionResourcesImportStatusCommandInput, DescribeDraft
|
|
|
23
24
|
import { DescribeResiliencyPolicyCommandInput, DescribeResiliencyPolicyCommandOutput } from "./commands/DescribeResiliencyPolicyCommand";
|
|
24
25
|
import { ImportResourcesToDraftAppVersionCommandInput, ImportResourcesToDraftAppVersionCommandOutput } from "./commands/ImportResourcesToDraftAppVersionCommand";
|
|
25
26
|
import { ListAlarmRecommendationsCommandInput, ListAlarmRecommendationsCommandOutput } from "./commands/ListAlarmRecommendationsCommand";
|
|
27
|
+
import { ListAppAssessmentComplianceDriftsCommandInput, ListAppAssessmentComplianceDriftsCommandOutput } from "./commands/ListAppAssessmentComplianceDriftsCommand";
|
|
26
28
|
import { ListAppAssessmentsCommandInput, ListAppAssessmentsCommandOutput } from "./commands/ListAppAssessmentsCommand";
|
|
27
29
|
import { ListAppComponentCompliancesCommandInput, ListAppComponentCompliancesCommandOutput } from "./commands/ListAppComponentCompliancesCommand";
|
|
28
30
|
import { ListAppComponentRecommendationsCommandInput, ListAppComponentRecommendationsCommandOutput } from "./commands/ListAppComponentRecommendationsCommand";
|
|
@@ -59,6 +61,12 @@ export interface Resiliencehub {
|
|
|
59
61
|
addDraftAppVersionResourceMappings(args: AddDraftAppVersionResourceMappingsCommandInput, options?: __HttpHandlerOptions): Promise<AddDraftAppVersionResourceMappingsCommandOutput>;
|
|
60
62
|
addDraftAppVersionResourceMappings(args: AddDraftAppVersionResourceMappingsCommandInput, cb: (err: any, data?: AddDraftAppVersionResourceMappingsCommandOutput) => void): void;
|
|
61
63
|
addDraftAppVersionResourceMappings(args: AddDraftAppVersionResourceMappingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AddDraftAppVersionResourceMappingsCommandOutput) => void): void;
|
|
64
|
+
/**
|
|
65
|
+
* @see {@link BatchUpdateRecommendationStatusCommand}
|
|
66
|
+
*/
|
|
67
|
+
batchUpdateRecommendationStatus(args: BatchUpdateRecommendationStatusCommandInput, options?: __HttpHandlerOptions): Promise<BatchUpdateRecommendationStatusCommandOutput>;
|
|
68
|
+
batchUpdateRecommendationStatus(args: BatchUpdateRecommendationStatusCommandInput, cb: (err: any, data?: BatchUpdateRecommendationStatusCommandOutput) => void): void;
|
|
69
|
+
batchUpdateRecommendationStatus(args: BatchUpdateRecommendationStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchUpdateRecommendationStatusCommandOutput) => void): void;
|
|
62
70
|
/**
|
|
63
71
|
* @see {@link CreateAppCommand}
|
|
64
72
|
*/
|
|
@@ -197,6 +205,12 @@ export interface Resiliencehub {
|
|
|
197
205
|
listAlarmRecommendations(args: ListAlarmRecommendationsCommandInput, options?: __HttpHandlerOptions): Promise<ListAlarmRecommendationsCommandOutput>;
|
|
198
206
|
listAlarmRecommendations(args: ListAlarmRecommendationsCommandInput, cb: (err: any, data?: ListAlarmRecommendationsCommandOutput) => void): void;
|
|
199
207
|
listAlarmRecommendations(args: ListAlarmRecommendationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAlarmRecommendationsCommandOutput) => void): void;
|
|
208
|
+
/**
|
|
209
|
+
* @see {@link ListAppAssessmentComplianceDriftsCommand}
|
|
210
|
+
*/
|
|
211
|
+
listAppAssessmentComplianceDrifts(args: ListAppAssessmentComplianceDriftsCommandInput, options?: __HttpHandlerOptions): Promise<ListAppAssessmentComplianceDriftsCommandOutput>;
|
|
212
|
+
listAppAssessmentComplianceDrifts(args: ListAppAssessmentComplianceDriftsCommandInput, cb: (err: any, data?: ListAppAssessmentComplianceDriftsCommandOutput) => void): void;
|
|
213
|
+
listAppAssessmentComplianceDrifts(args: ListAppAssessmentComplianceDriftsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAppAssessmentComplianceDriftsCommandOutput) => void): void;
|
|
200
214
|
/**
|
|
201
215
|
* @see {@link ListAppAssessmentsCommand}
|
|
202
216
|
*/
|
|
@@ -9,6 +9,7 @@ import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
|
|
|
9
9
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
10
10
|
import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
11
11
|
import { AddDraftAppVersionResourceMappingsCommandInput, AddDraftAppVersionResourceMappingsCommandOutput } from "./commands/AddDraftAppVersionResourceMappingsCommand";
|
|
12
|
+
import { BatchUpdateRecommendationStatusCommandInput, BatchUpdateRecommendationStatusCommandOutput } from "./commands/BatchUpdateRecommendationStatusCommand";
|
|
12
13
|
import { CreateAppCommandInput, CreateAppCommandOutput } from "./commands/CreateAppCommand";
|
|
13
14
|
import { CreateAppVersionAppComponentCommandInput, CreateAppVersionAppComponentCommandOutput } from "./commands/CreateAppVersionAppComponentCommand";
|
|
14
15
|
import { CreateAppVersionResourceCommandInput, CreateAppVersionResourceCommandOutput } from "./commands/CreateAppVersionResourceCommand";
|
|
@@ -32,6 +33,7 @@ import { DescribeDraftAppVersionResourcesImportStatusCommandInput, DescribeDraft
|
|
|
32
33
|
import { DescribeResiliencyPolicyCommandInput, DescribeResiliencyPolicyCommandOutput } from "./commands/DescribeResiliencyPolicyCommand";
|
|
33
34
|
import { ImportResourcesToDraftAppVersionCommandInput, ImportResourcesToDraftAppVersionCommandOutput } from "./commands/ImportResourcesToDraftAppVersionCommand";
|
|
34
35
|
import { ListAlarmRecommendationsCommandInput, ListAlarmRecommendationsCommandOutput } from "./commands/ListAlarmRecommendationsCommand";
|
|
36
|
+
import { ListAppAssessmentComplianceDriftsCommandInput, ListAppAssessmentComplianceDriftsCommandOutput } from "./commands/ListAppAssessmentComplianceDriftsCommand";
|
|
35
37
|
import { ListAppAssessmentsCommandInput, ListAppAssessmentsCommandOutput } from "./commands/ListAppAssessmentsCommand";
|
|
36
38
|
import { ListAppComponentCompliancesCommandInput, ListAppComponentCompliancesCommandOutput } from "./commands/ListAppComponentCompliancesCommand";
|
|
37
39
|
import { ListAppComponentRecommendationsCommandInput, ListAppComponentRecommendationsCommandOutput } from "./commands/ListAppComponentRecommendationsCommand";
|
|
@@ -65,11 +67,11 @@ export { __Client };
|
|
|
65
67
|
/**
|
|
66
68
|
* @public
|
|
67
69
|
*/
|
|
68
|
-
export type ServiceInputTypes = AddDraftAppVersionResourceMappingsCommandInput | CreateAppCommandInput | CreateAppVersionAppComponentCommandInput | CreateAppVersionResourceCommandInput | CreateRecommendationTemplateCommandInput | CreateResiliencyPolicyCommandInput | DeleteAppAssessmentCommandInput | DeleteAppCommandInput | DeleteAppInputSourceCommandInput | DeleteAppVersionAppComponentCommandInput | DeleteAppVersionResourceCommandInput | DeleteRecommendationTemplateCommandInput | DeleteResiliencyPolicyCommandInput | DescribeAppAssessmentCommandInput | DescribeAppCommandInput | DescribeAppVersionAppComponentCommandInput | DescribeAppVersionCommandInput | DescribeAppVersionResourceCommandInput | DescribeAppVersionResourcesResolutionStatusCommandInput | DescribeAppVersionTemplateCommandInput | DescribeDraftAppVersionResourcesImportStatusCommandInput | DescribeResiliencyPolicyCommandInput | ImportResourcesToDraftAppVersionCommandInput | ListAlarmRecommendationsCommandInput | ListAppAssessmentsCommandInput | ListAppComponentCompliancesCommandInput | ListAppComponentRecommendationsCommandInput | ListAppInputSourcesCommandInput | ListAppVersionAppComponentsCommandInput | ListAppVersionResourceMappingsCommandInput | ListAppVersionResourcesCommandInput | ListAppVersionsCommandInput | ListAppsCommandInput | ListRecommendationTemplatesCommandInput | ListResiliencyPoliciesCommandInput | ListSopRecommendationsCommandInput | ListSuggestedResiliencyPoliciesCommandInput | ListTagsForResourceCommandInput | ListTestRecommendationsCommandInput | ListUnsupportedAppVersionResourcesCommandInput | PublishAppVersionCommandInput | PutDraftAppVersionTemplateCommandInput | RemoveDraftAppVersionResourceMappingsCommandInput | ResolveAppVersionResourcesCommandInput | StartAppAssessmentCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAppCommandInput | UpdateAppVersionAppComponentCommandInput | UpdateAppVersionCommandInput | UpdateAppVersionResourceCommandInput | UpdateResiliencyPolicyCommandInput;
|
|
70
|
+
export type ServiceInputTypes = AddDraftAppVersionResourceMappingsCommandInput | BatchUpdateRecommendationStatusCommandInput | CreateAppCommandInput | CreateAppVersionAppComponentCommandInput | CreateAppVersionResourceCommandInput | CreateRecommendationTemplateCommandInput | CreateResiliencyPolicyCommandInput | DeleteAppAssessmentCommandInput | DeleteAppCommandInput | DeleteAppInputSourceCommandInput | DeleteAppVersionAppComponentCommandInput | DeleteAppVersionResourceCommandInput | DeleteRecommendationTemplateCommandInput | DeleteResiliencyPolicyCommandInput | DescribeAppAssessmentCommandInput | DescribeAppCommandInput | DescribeAppVersionAppComponentCommandInput | DescribeAppVersionCommandInput | DescribeAppVersionResourceCommandInput | DescribeAppVersionResourcesResolutionStatusCommandInput | DescribeAppVersionTemplateCommandInput | DescribeDraftAppVersionResourcesImportStatusCommandInput | DescribeResiliencyPolicyCommandInput | ImportResourcesToDraftAppVersionCommandInput | ListAlarmRecommendationsCommandInput | ListAppAssessmentComplianceDriftsCommandInput | ListAppAssessmentsCommandInput | ListAppComponentCompliancesCommandInput | ListAppComponentRecommendationsCommandInput | ListAppInputSourcesCommandInput | ListAppVersionAppComponentsCommandInput | ListAppVersionResourceMappingsCommandInput | ListAppVersionResourcesCommandInput | ListAppVersionsCommandInput | ListAppsCommandInput | ListRecommendationTemplatesCommandInput | ListResiliencyPoliciesCommandInput | ListSopRecommendationsCommandInput | ListSuggestedResiliencyPoliciesCommandInput | ListTagsForResourceCommandInput | ListTestRecommendationsCommandInput | ListUnsupportedAppVersionResourcesCommandInput | PublishAppVersionCommandInput | PutDraftAppVersionTemplateCommandInput | RemoveDraftAppVersionResourceMappingsCommandInput | ResolveAppVersionResourcesCommandInput | StartAppAssessmentCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAppCommandInput | UpdateAppVersionAppComponentCommandInput | UpdateAppVersionCommandInput | UpdateAppVersionResourceCommandInput | UpdateResiliencyPolicyCommandInput;
|
|
69
71
|
/**
|
|
70
72
|
* @public
|
|
71
73
|
*/
|
|
72
|
-
export type ServiceOutputTypes = AddDraftAppVersionResourceMappingsCommandOutput | CreateAppCommandOutput | CreateAppVersionAppComponentCommandOutput | CreateAppVersionResourceCommandOutput | CreateRecommendationTemplateCommandOutput | CreateResiliencyPolicyCommandOutput | DeleteAppAssessmentCommandOutput | DeleteAppCommandOutput | DeleteAppInputSourceCommandOutput | DeleteAppVersionAppComponentCommandOutput | DeleteAppVersionResourceCommandOutput | DeleteRecommendationTemplateCommandOutput | DeleteResiliencyPolicyCommandOutput | DescribeAppAssessmentCommandOutput | DescribeAppCommandOutput | DescribeAppVersionAppComponentCommandOutput | DescribeAppVersionCommandOutput | DescribeAppVersionResourceCommandOutput | DescribeAppVersionResourcesResolutionStatusCommandOutput | DescribeAppVersionTemplateCommandOutput | DescribeDraftAppVersionResourcesImportStatusCommandOutput | DescribeResiliencyPolicyCommandOutput | ImportResourcesToDraftAppVersionCommandOutput | ListAlarmRecommendationsCommandOutput | ListAppAssessmentsCommandOutput | ListAppComponentCompliancesCommandOutput | ListAppComponentRecommendationsCommandOutput | ListAppInputSourcesCommandOutput | ListAppVersionAppComponentsCommandOutput | ListAppVersionResourceMappingsCommandOutput | ListAppVersionResourcesCommandOutput | ListAppVersionsCommandOutput | ListAppsCommandOutput | ListRecommendationTemplatesCommandOutput | ListResiliencyPoliciesCommandOutput | ListSopRecommendationsCommandOutput | ListSuggestedResiliencyPoliciesCommandOutput | ListTagsForResourceCommandOutput | ListTestRecommendationsCommandOutput | ListUnsupportedAppVersionResourcesCommandOutput | PublishAppVersionCommandOutput | PutDraftAppVersionTemplateCommandOutput | RemoveDraftAppVersionResourceMappingsCommandOutput | ResolveAppVersionResourcesCommandOutput | StartAppAssessmentCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAppCommandOutput | UpdateAppVersionAppComponentCommandOutput | UpdateAppVersionCommandOutput | UpdateAppVersionResourceCommandOutput | UpdateResiliencyPolicyCommandOutput;
|
|
74
|
+
export type ServiceOutputTypes = AddDraftAppVersionResourceMappingsCommandOutput | BatchUpdateRecommendationStatusCommandOutput | CreateAppCommandOutput | CreateAppVersionAppComponentCommandOutput | CreateAppVersionResourceCommandOutput | CreateRecommendationTemplateCommandOutput | CreateResiliencyPolicyCommandOutput | DeleteAppAssessmentCommandOutput | DeleteAppCommandOutput | DeleteAppInputSourceCommandOutput | DeleteAppVersionAppComponentCommandOutput | DeleteAppVersionResourceCommandOutput | DeleteRecommendationTemplateCommandOutput | DeleteResiliencyPolicyCommandOutput | DescribeAppAssessmentCommandOutput | DescribeAppCommandOutput | DescribeAppVersionAppComponentCommandOutput | DescribeAppVersionCommandOutput | DescribeAppVersionResourceCommandOutput | DescribeAppVersionResourcesResolutionStatusCommandOutput | DescribeAppVersionTemplateCommandOutput | DescribeDraftAppVersionResourcesImportStatusCommandOutput | DescribeResiliencyPolicyCommandOutput | ImportResourcesToDraftAppVersionCommandOutput | ListAlarmRecommendationsCommandOutput | ListAppAssessmentComplianceDriftsCommandOutput | ListAppAssessmentsCommandOutput | ListAppComponentCompliancesCommandOutput | ListAppComponentRecommendationsCommandOutput | ListAppInputSourcesCommandOutput | ListAppVersionAppComponentsCommandOutput | ListAppVersionResourceMappingsCommandOutput | ListAppVersionResourcesCommandOutput | ListAppVersionsCommandOutput | ListAppsCommandOutput | ListRecommendationTemplatesCommandOutput | ListResiliencyPoliciesCommandOutput | ListSopRecommendationsCommandOutput | ListSuggestedResiliencyPoliciesCommandOutput | ListTagsForResourceCommandOutput | ListTestRecommendationsCommandOutput | ListUnsupportedAppVersionResourcesCommandOutput | PublishAppVersionCommandOutput | PutDraftAppVersionTemplateCommandOutput | RemoveDraftAppVersionResourceMappingsCommandOutput | ResolveAppVersionResourcesCommandOutput | StartAppAssessmentCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAppCommandOutput | UpdateAppVersionAppComponentCommandOutput | UpdateAppVersionCommandOutput | UpdateAppVersionResourceCommandOutput | UpdateResiliencyPolicyCommandOutput;
|
|
73
75
|
/**
|
|
74
76
|
* @public
|
|
75
77
|
*/
|
|
@@ -23,7 +23,8 @@ export interface AddDraftAppVersionResourceMappingsCommandOutput extends AddDraf
|
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
|
-
* <p>Adds the resource mapping for the draft application version. You can also update an
|
|
26
|
+
* <p>Adds the resource mapping for the draft application version. You can also update an
|
|
27
|
+
* existing resource mapping to a new physical resource.</p>
|
|
27
28
|
* @example
|
|
28
29
|
* Use a bare-bones client and the command you need to make an API call.
|
|
29
30
|
* ```javascript
|