@aws-sdk/client-resiliencehub 3.569.0 → 3.571.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/index.js +64 -3
  3. package/dist-es/Resiliencehub.js +2 -0
  4. package/dist-es/commands/ListAppAssessmentResourceDriftsCommand.js +24 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/models/models_0.js +3 -0
  7. package/dist-es/pagination/ListAppAssessmentResourceDriftsPaginator.js +4 -0
  8. package/dist-es/pagination/index.js +1 -0
  9. package/dist-es/protocols/Aws_restJson1.js +31 -1
  10. package/dist-types/Resiliencehub.d.ts +8 -0
  11. package/dist-types/ResiliencehubClient.d.ts +3 -2
  12. package/dist-types/commands/CreateAppCommand.d.ts +3 -4
  13. package/dist-types/commands/ListAppAssessmentResourceDriftsCommand.d.ts +94 -0
  14. package/dist-types/commands/ListRecommendationTemplatesCommand.d.ts +2 -2
  15. package/dist-types/commands/index.d.ts +1 -0
  16. package/dist-types/models/models_0.d.ts +182 -173
  17. package/dist-types/pagination/ListAppAssessmentResourceDriftsPaginator.d.ts +7 -0
  18. package/dist-types/pagination/index.d.ts +1 -0
  19. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  20. package/dist-types/ts3.4/Resiliencehub.d.ts +18 -0
  21. package/dist-types/ts3.4/ResiliencehubClient.d.ts +6 -0
  22. package/dist-types/ts3.4/commands/ListAppAssessmentResourceDriftsCommand.d.ts +39 -0
  23. package/dist-types/ts3.4/commands/ListRecommendationTemplatesCommand.d.ts +1 -1
  24. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  25. package/dist-types/ts3.4/models/models_0.d.ts +24 -1
  26. package/dist-types/ts3.4/pagination/ListAppAssessmentResourceDriftsPaginator.d.ts +11 -0
  27. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  28. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  29. package/package.json +1 -1
package/README.md CHANGED
@@ -414,6 +414,14 @@ ListAppAssessmentComplianceDrifts
414
414
 
415
415
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resiliencehub/command/ListAppAssessmentComplianceDriftsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resiliencehub/Interface/ListAppAssessmentComplianceDriftsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resiliencehub/Interface/ListAppAssessmentComplianceDriftsCommandOutput/)
416
416
 
417
+ </details>
418
+ <details>
419
+ <summary>
420
+ ListAppAssessmentResourceDrifts
421
+ </summary>
422
+
423
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resiliencehub/command/ListAppAssessmentResourceDriftsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resiliencehub/Interface/ListAppAssessmentResourceDriftsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resiliencehub/Interface/ListAppAssessmentResourceDriftsCommandOutput/)
424
+
417
425
  </details>
418
426
  <details>
419
427
  <summary>
package/dist-cjs/index.js CHANGED
@@ -80,6 +80,7 @@ __export(src_exports, {
80
80
  InternalServerException: () => InternalServerException,
81
81
  ListAlarmRecommendationsCommand: () => ListAlarmRecommendationsCommand,
82
82
  ListAppAssessmentComplianceDriftsCommand: () => ListAppAssessmentComplianceDriftsCommand,
83
+ ListAppAssessmentResourceDriftsCommand: () => ListAppAssessmentResourceDriftsCommand,
83
84
  ListAppAssessmentsCommand: () => ListAppAssessmentsCommand,
84
85
  ListAppComponentCompliancesCommand: () => ListAppComponentCompliancesCommand,
85
86
  ListAppComponentRecommendationsCommand: () => ListAppComponentRecommendationsCommand,
@@ -147,6 +148,7 @@ __export(src_exports, {
147
148
  __Client: () => import_smithy_client.Client,
148
149
  paginateListAlarmRecommendations: () => paginateListAlarmRecommendations,
149
150
  paginateListAppAssessmentComplianceDrifts: () => paginateListAppAssessmentComplianceDrifts,
151
+ paginateListAppAssessmentResourceDrifts: () => paginateListAppAssessmentResourceDrifts,
150
152
  paginateListAppAssessments: () => paginateListAppAssessments,
151
153
  paginateListAppComponentCompliances: () => paginateListAppComponentCompliances,
152
154
  paginateListAppComponentRecommendations: () => paginateListAppComponentRecommendations,
@@ -614,10 +616,13 @@ var ResourceImportStrategyType = {
614
616
  REPLACE_ALL: "ReplaceAll"
615
617
  };
616
618
  var DifferenceType = {
617
- NOT_EQUAL: "NotEqual"
619
+ ADDED: "Added",
620
+ NOT_EQUAL: "NotEqual",
621
+ REMOVED: "Removed"
618
622
  };
619
623
  var DriftType = {
620
- APPLICATION_COMPLIANCE: "ApplicationCompliance"
624
+ APPLICATION_COMPLIANCE: "ApplicationCompliance",
625
+ APP_COMPONENT_RESILIENCY_COMPLIANCE_STATUS: "AppComponentResiliencyComplianceStatus"
621
626
  };
622
627
  var HaArchitecture = {
623
628
  BACKUP_AND_RESTORE: "BackupAndRestore",
@@ -1219,6 +1224,23 @@ var se_ListAppAssessmentComplianceDriftsCommand = /* @__PURE__ */ __name(async (
1219
1224
  b.m("POST").h(headers).b(body);
1220
1225
  return b.build();
1221
1226
  }, "se_ListAppAssessmentComplianceDriftsCommand");
1227
+ var se_ListAppAssessmentResourceDriftsCommand = /* @__PURE__ */ __name(async (input, context) => {
1228
+ const b = (0, import_core.requestBuilder)(input, context);
1229
+ const headers = {
1230
+ "content-type": "application/json"
1231
+ };
1232
+ b.bp("/list-app-assessment-resource-drifts");
1233
+ let body;
1234
+ body = JSON.stringify(
1235
+ (0, import_smithy_client.take)(input, {
1236
+ assessmentArn: [],
1237
+ maxResults: [],
1238
+ nextToken: []
1239
+ })
1240
+ );
1241
+ b.m("POST").h(headers).b(body);
1242
+ return b.build();
1243
+ }, "se_ListAppAssessmentResourceDriftsCommand");
1222
1244
  var se_ListAppAssessmentsCommand = /* @__PURE__ */ __name(async (input, context) => {
1223
1245
  const b = (0, import_core.requestBuilder)(input, context);
1224
1246
  const headers = {};
@@ -1391,7 +1413,7 @@ var se_ListRecommendationTemplatesCommand = /* @__PURE__ */ __name(async (input,
1391
1413
  const headers = {};
1392
1414
  b.bp("/list-recommendation-templates");
1393
1415
  const query = (0, import_smithy_client.map)({
1394
- [_aAs]: [, (0, import_smithy_client.expectNonNull)(input[_aAs], `assessmentArn`)],
1416
+ [_aAs]: [, input[_aAs]],
1395
1417
  [_rO]: [() => input.reverseOrder !== void 0, () => input[_rO].toString()],
1396
1418
  [_s]: [() => input.status !== void 0, () => (input[_s] || []).map((_entry) => _entry)],
1397
1419
  [_rTA]: [, input[_rTA]],
@@ -2111,6 +2133,21 @@ var de_ListAppAssessmentComplianceDriftsCommand = /* @__PURE__ */ __name(async (
2111
2133
  Object.assign(contents, doc);
2112
2134
  return contents;
2113
2135
  }, "de_ListAppAssessmentComplianceDriftsCommand");
2136
+ var de_ListAppAssessmentResourceDriftsCommand = /* @__PURE__ */ __name(async (output, context) => {
2137
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2138
+ return de_CommandError(output, context);
2139
+ }
2140
+ const contents = (0, import_smithy_client.map)({
2141
+ $metadata: deserializeMetadata(output)
2142
+ });
2143
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
2144
+ const doc = (0, import_smithy_client.take)(data, {
2145
+ nextToken: import_smithy_client.expectString,
2146
+ resourceDrifts: import_smithy_client._json
2147
+ });
2148
+ Object.assign(contents, doc);
2149
+ return contents;
2150
+ }, "de_ListAppAssessmentResourceDriftsCommand");
2114
2151
  var de_ListAppAssessmentsCommand = /* @__PURE__ */ __name(async (output, context) => {
2115
2152
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2116
2153
  return de_CommandError(output, context);
@@ -3362,6 +3399,23 @@ var _ListAppAssessmentComplianceDriftsCommand = class _ListAppAssessmentComplian
3362
3399
  __name(_ListAppAssessmentComplianceDriftsCommand, "ListAppAssessmentComplianceDriftsCommand");
3363
3400
  var ListAppAssessmentComplianceDriftsCommand = _ListAppAssessmentComplianceDriftsCommand;
3364
3401
 
3402
+ // src/commands/ListAppAssessmentResourceDriftsCommand.ts
3403
+
3404
+
3405
+
3406
+
3407
+ var _ListAppAssessmentResourceDriftsCommand = class _ListAppAssessmentResourceDriftsCommand extends import_smithy_client.Command.classBuilder().ep({
3408
+ ...commonParams
3409
+ }).m(function(Command, cs, config, o) {
3410
+ return [
3411
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3412
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3413
+ ];
3414
+ }).s("AwsResilienceHub", "ListAppAssessmentResourceDrifts", {}).n("ResiliencehubClient", "ListAppAssessmentResourceDriftsCommand").f(void 0, void 0).ser(se_ListAppAssessmentResourceDriftsCommand).de(de_ListAppAssessmentResourceDriftsCommand).build() {
3415
+ };
3416
+ __name(_ListAppAssessmentResourceDriftsCommand, "ListAppAssessmentResourceDriftsCommand");
3417
+ var ListAppAssessmentResourceDriftsCommand = _ListAppAssessmentResourceDriftsCommand;
3418
+
3365
3419
  // src/commands/ListAppAssessmentsCommand.ts
3366
3420
 
3367
3421
 
@@ -3866,6 +3920,7 @@ var commands = {
3866
3920
  ImportResourcesToDraftAppVersionCommand,
3867
3921
  ListAlarmRecommendationsCommand,
3868
3922
  ListAppAssessmentComplianceDriftsCommand,
3923
+ ListAppAssessmentResourceDriftsCommand,
3869
3924
  ListAppAssessmentsCommand,
3870
3925
  ListAppComponentCompliancesCommand,
3871
3926
  ListAppComponentRecommendationsCommand,
@@ -3909,6 +3964,10 @@ var paginateListAlarmRecommendations = (0, import_core.createPaginator)(Resilien
3909
3964
 
3910
3965
  var paginateListAppAssessmentComplianceDrifts = (0, import_core.createPaginator)(ResiliencehubClient, ListAppAssessmentComplianceDriftsCommand, "nextToken", "nextToken", "maxResults");
3911
3966
 
3967
+ // src/pagination/ListAppAssessmentResourceDriftsPaginator.ts
3968
+
3969
+ var paginateListAppAssessmentResourceDrifts = (0, import_core.createPaginator)(ResiliencehubClient, ListAppAssessmentResourceDriftsCommand, "nextToken", "nextToken", "maxResults");
3970
+
3912
3971
  // src/pagination/ListAppAssessmentsPaginator.ts
3913
3972
 
3914
3973
  var paginateListAppAssessments = (0, import_core.createPaginator)(ResiliencehubClient, ListAppAssessmentsCommand, "nextToken", "nextToken", "maxResults");
@@ -4002,6 +4061,7 @@ var paginateListUnsupportedAppVersionResources = (0, import_core.createPaginator
4002
4061
  ImportResourcesToDraftAppVersionCommand,
4003
4062
  ListAlarmRecommendationsCommand,
4004
4063
  ListAppAssessmentComplianceDriftsCommand,
4064
+ ListAppAssessmentResourceDriftsCommand,
4005
4065
  ListAppAssessmentsCommand,
4006
4066
  ListAppComponentCompliancesCommand,
4007
4067
  ListAppComponentRecommendationsCommand,
@@ -4032,6 +4092,7 @@ var paginateListUnsupportedAppVersionResources = (0, import_core.createPaginator
4032
4092
  UpdateResiliencyPolicyCommand,
4033
4093
  paginateListAlarmRecommendations,
4034
4094
  paginateListAppAssessmentComplianceDrifts,
4095
+ paginateListAppAssessmentResourceDrifts,
4035
4096
  paginateListAppAssessments,
4036
4097
  paginateListAppComponentCompliances,
4037
4098
  paginateListAppComponentRecommendations,
@@ -25,6 +25,7 @@ import { DescribeResiliencyPolicyCommand, } from "./commands/DescribeResiliencyP
25
25
  import { ImportResourcesToDraftAppVersionCommand, } from "./commands/ImportResourcesToDraftAppVersionCommand";
26
26
  import { ListAlarmRecommendationsCommand, } from "./commands/ListAlarmRecommendationsCommand";
27
27
  import { ListAppAssessmentComplianceDriftsCommand, } from "./commands/ListAppAssessmentComplianceDriftsCommand";
28
+ import { ListAppAssessmentResourceDriftsCommand, } from "./commands/ListAppAssessmentResourceDriftsCommand";
28
29
  import { ListAppAssessmentsCommand, } from "./commands/ListAppAssessmentsCommand";
29
30
  import { ListAppComponentCompliancesCommand, } from "./commands/ListAppComponentCompliancesCommand";
30
31
  import { ListAppComponentRecommendationsCommand, } from "./commands/ListAppComponentRecommendationsCommand";
@@ -81,6 +82,7 @@ const commands = {
81
82
  ImportResourcesToDraftAppVersionCommand,
82
83
  ListAlarmRecommendationsCommand,
83
84
  ListAppAssessmentComplianceDriftsCommand,
85
+ ListAppAssessmentResourceDriftsCommand,
84
86
  ListAppAssessmentsCommand,
85
87
  ListAppComponentCompliancesCommand,
86
88
  ListAppComponentRecommendationsCommand,
@@ -0,0 +1,24 @@
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 { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListAppAssessmentResourceDriftsCommand, se_ListAppAssessmentResourceDriftsCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListAppAssessmentResourceDriftsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AwsResilienceHub", "ListAppAssessmentResourceDrifts", {})
19
+ .n("ResiliencehubClient", "ListAppAssessmentResourceDriftsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListAppAssessmentResourceDriftsCommand)
22
+ .de(de_ListAppAssessmentResourceDriftsCommand)
23
+ .build() {
24
+ }
@@ -24,6 +24,7 @@ export * from "./DescribeResiliencyPolicyCommand";
24
24
  export * from "./ImportResourcesToDraftAppVersionCommand";
25
25
  export * from "./ListAlarmRecommendationsCommand";
26
26
  export * from "./ListAppAssessmentComplianceDriftsCommand";
27
+ export * from "./ListAppAssessmentResourceDriftsCommand";
27
28
  export * from "./ListAppAssessmentsCommand";
28
29
  export * from "./ListAppComponentCompliancesCommand";
29
30
  export * from "./ListAppComponentRecommendationsCommand";
@@ -238,10 +238,13 @@ export const ResourceImportStrategyType = {
238
238
  REPLACE_ALL: "ReplaceAll",
239
239
  };
240
240
  export const DifferenceType = {
241
+ ADDED: "Added",
241
242
  NOT_EQUAL: "NotEqual",
243
+ REMOVED: "Removed",
242
244
  };
243
245
  export const DriftType = {
244
246
  APPLICATION_COMPLIANCE: "ApplicationCompliance",
247
+ APP_COMPONENT_RESILIENCY_COMPLIANCE_STATUS: "AppComponentResiliencyComplianceStatus",
245
248
  };
246
249
  export const HaArchitecture = {
247
250
  BACKUP_AND_RESTORE: "BackupAndRestore",
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListAppAssessmentResourceDriftsCommand, } from "../commands/ListAppAssessmentResourceDriftsCommand";
3
+ import { ResiliencehubClient } from "../ResiliencehubClient";
4
+ export const paginateListAppAssessmentResourceDrifts = createPaginator(ResiliencehubClient, ListAppAssessmentResourceDriftsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,6 +1,7 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListAlarmRecommendationsPaginator";
3
3
  export * from "./ListAppAssessmentComplianceDriftsPaginator";
4
+ export * from "./ListAppAssessmentResourceDriftsPaginator";
4
5
  export * from "./ListAppAssessmentsPaginator";
5
6
  export * from "./ListAppComponentCompliancesPaginator";
6
7
  export * from "./ListAppComponentRecommendationsPaginator";
@@ -415,6 +415,21 @@ export const se_ListAppAssessmentComplianceDriftsCommand = async (input, context
415
415
  b.m("POST").h(headers).b(body);
416
416
  return b.build();
417
417
  };
418
+ export const se_ListAppAssessmentResourceDriftsCommand = async (input, context) => {
419
+ const b = rb(input, context);
420
+ const headers = {
421
+ "content-type": "application/json",
422
+ };
423
+ b.bp("/list-app-assessment-resource-drifts");
424
+ let body;
425
+ body = JSON.stringify(take(input, {
426
+ assessmentArn: [],
427
+ maxResults: [],
428
+ nextToken: [],
429
+ }));
430
+ b.m("POST").h(headers).b(body);
431
+ return b.build();
432
+ };
418
433
  export const se_ListAppAssessmentsCommand = async (input, context) => {
419
434
  const b = rb(input, context);
420
435
  const headers = {};
@@ -573,7 +588,7 @@ export const se_ListRecommendationTemplatesCommand = async (input, context) => {
573
588
  const headers = {};
574
589
  b.bp("/list-recommendation-templates");
575
590
  const query = map({
576
- [_aAs]: [, __expectNonNull(input[_aAs], `assessmentArn`)],
591
+ [_aAs]: [, input[_aAs]],
577
592
  [_rO]: [() => input.reverseOrder !== void 0, () => input[_rO].toString()],
578
593
  [_s]: [() => input.status !== void 0, () => (input[_s] || []).map((_entry) => _entry)],
579
594
  [_rTA]: [, input[_rTA]],
@@ -1265,6 +1280,21 @@ export const de_ListAppAssessmentComplianceDriftsCommand = async (output, contex
1265
1280
  Object.assign(contents, doc);
1266
1281
  return contents;
1267
1282
  };
1283
+ export const de_ListAppAssessmentResourceDriftsCommand = async (output, context) => {
1284
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1285
+ return de_CommandError(output, context);
1286
+ }
1287
+ const contents = map({
1288
+ $metadata: deserializeMetadata(output),
1289
+ });
1290
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1291
+ const doc = take(data, {
1292
+ nextToken: __expectString,
1293
+ resourceDrifts: _json,
1294
+ });
1295
+ Object.assign(contents, doc);
1296
+ return contents;
1297
+ };
1268
1298
  export const de_ListAppAssessmentsCommand = async (output, context) => {
1269
1299
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1270
1300
  return de_CommandError(output, context);
@@ -25,6 +25,7 @@ import { DescribeResiliencyPolicyCommandInput, DescribeResiliencyPolicyCommandOu
25
25
  import { ImportResourcesToDraftAppVersionCommandInput, ImportResourcesToDraftAppVersionCommandOutput } from "./commands/ImportResourcesToDraftAppVersionCommand";
26
26
  import { ListAlarmRecommendationsCommandInput, ListAlarmRecommendationsCommandOutput } from "./commands/ListAlarmRecommendationsCommand";
27
27
  import { ListAppAssessmentComplianceDriftsCommandInput, ListAppAssessmentComplianceDriftsCommandOutput } from "./commands/ListAppAssessmentComplianceDriftsCommand";
28
+ import { ListAppAssessmentResourceDriftsCommandInput, ListAppAssessmentResourceDriftsCommandOutput } from "./commands/ListAppAssessmentResourceDriftsCommand";
28
29
  import { ListAppAssessmentsCommandInput, ListAppAssessmentsCommandOutput } from "./commands/ListAppAssessmentsCommand";
29
30
  import { ListAppComponentCompliancesCommandInput, ListAppComponentCompliancesCommandOutput } from "./commands/ListAppComponentCompliancesCommand";
30
31
  import { ListAppComponentRecommendationsCommandInput, ListAppComponentRecommendationsCommandOutput } from "./commands/ListAppComponentRecommendationsCommand";
@@ -211,6 +212,12 @@ export interface Resiliencehub {
211
212
  listAppAssessmentComplianceDrifts(args: ListAppAssessmentComplianceDriftsCommandInput, options?: __HttpHandlerOptions): Promise<ListAppAssessmentComplianceDriftsCommandOutput>;
212
213
  listAppAssessmentComplianceDrifts(args: ListAppAssessmentComplianceDriftsCommandInput, cb: (err: any, data?: ListAppAssessmentComplianceDriftsCommandOutput) => void): void;
213
214
  listAppAssessmentComplianceDrifts(args: ListAppAssessmentComplianceDriftsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAppAssessmentComplianceDriftsCommandOutput) => void): void;
215
+ /**
216
+ * @see {@link ListAppAssessmentResourceDriftsCommand}
217
+ */
218
+ listAppAssessmentResourceDrifts(args: ListAppAssessmentResourceDriftsCommandInput, options?: __HttpHandlerOptions): Promise<ListAppAssessmentResourceDriftsCommandOutput>;
219
+ listAppAssessmentResourceDrifts(args: ListAppAssessmentResourceDriftsCommandInput, cb: (err: any, data?: ListAppAssessmentResourceDriftsCommandOutput) => void): void;
220
+ listAppAssessmentResourceDrifts(args: ListAppAssessmentResourceDriftsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAppAssessmentResourceDriftsCommandOutput) => void): void;
214
221
  /**
215
222
  * @see {@link ListAppAssessmentsCommand}
216
223
  */
@@ -270,6 +277,7 @@ export interface Resiliencehub {
270
277
  /**
271
278
  * @see {@link ListRecommendationTemplatesCommand}
272
279
  */
280
+ listRecommendationTemplates(): Promise<ListRecommendationTemplatesCommandOutput>;
273
281
  listRecommendationTemplates(args: ListRecommendationTemplatesCommandInput, options?: __HttpHandlerOptions): Promise<ListRecommendationTemplatesCommandOutput>;
274
282
  listRecommendationTemplates(args: ListRecommendationTemplatesCommandInput, cb: (err: any, data?: ListRecommendationTemplatesCommandOutput) => void): void;
275
283
  listRecommendationTemplates(args: ListRecommendationTemplatesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRecommendationTemplatesCommandOutput) => void): void;
@@ -33,6 +33,7 @@ import { DescribeResiliencyPolicyCommandInput, DescribeResiliencyPolicyCommandOu
33
33
  import { ImportResourcesToDraftAppVersionCommandInput, ImportResourcesToDraftAppVersionCommandOutput } from "./commands/ImportResourcesToDraftAppVersionCommand";
34
34
  import { ListAlarmRecommendationsCommandInput, ListAlarmRecommendationsCommandOutput } from "./commands/ListAlarmRecommendationsCommand";
35
35
  import { ListAppAssessmentComplianceDriftsCommandInput, ListAppAssessmentComplianceDriftsCommandOutput } from "./commands/ListAppAssessmentComplianceDriftsCommand";
36
+ import { ListAppAssessmentResourceDriftsCommandInput, ListAppAssessmentResourceDriftsCommandOutput } from "./commands/ListAppAssessmentResourceDriftsCommand";
36
37
  import { ListAppAssessmentsCommandInput, ListAppAssessmentsCommandOutput } from "./commands/ListAppAssessmentsCommand";
37
38
  import { ListAppComponentCompliancesCommandInput, ListAppComponentCompliancesCommandOutput } from "./commands/ListAppComponentCompliancesCommand";
38
39
  import { ListAppComponentRecommendationsCommandInput, ListAppComponentRecommendationsCommandOutput } from "./commands/ListAppComponentRecommendationsCommand";
@@ -67,11 +68,11 @@ export { __Client };
67
68
  /**
68
69
  * @public
69
70
  */
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;
71
+ 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 | ListAppAssessmentResourceDriftsCommandInput | 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;
71
72
  /**
72
73
  * @public
73
74
  */
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;
75
+ 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 | ListAppAssessmentResourceDriftsCommandOutput | 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;
75
76
  /**
76
77
  * @public
77
78
  */
@@ -27,10 +27,9 @@ declare const CreateAppCommand_base: {
27
27
  };
28
28
  /**
29
29
  * <p>Creates an Resilience Hub application. An Resilience Hub application is a
30
- * collection of Amazon Web Services resources structured to prevent and recover Amazon Web Services application disruptions. To describe a Resilience Hub application, you provide an
31
- * application name, resources from one or more CloudFormation stacks, Resource Groups, Terraform state files, AppRegistry applications, and an appropriate
32
- * resiliency policy. In addition, you can also add resources that are located on Amazon Elastic Kubernetes Service (Amazon EKS) clusters as optional resources. For more information
33
- * about the number of resources supported per application, see <a href="https://docs.aws.amazon.com/general/latest/gr/resiliencehub.html#limits_resiliencehub">Service
30
+ * collection of Amazon Web Services resources structured to prevent and recover Amazon Web Services application disruptions. To describe a Resilience Hub application,
31
+ * you provide an application name, resources from one or more CloudFormation stacks, Resource Groups, Terraform state files, AppRegistry applications, and an appropriate
32
+ * resiliency policy. In addition, you can also add resources that are located on Amazon Elastic Kubernetes Service (Amazon EKS) clusters as optional resources. For more information about the number of resources supported per application, see <a href="https://docs.aws.amazon.com/general/latest/gr/resiliencehub.html#limits_resiliencehub">Service
34
33
  * quotas</a>.</p>
35
34
  * <p>After you create an Resilience Hub application, you publish it so that you can run a resiliency
36
35
  * assessment on it. You can then use recommendations from the assessment to improve resiliency
@@ -0,0 +1,94 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ListAppAssessmentResourceDriftsRequest, ListAppAssessmentResourceDriftsResponse } from "../models/models_0";
4
+ import { ResiliencehubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ResiliencehubClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link ListAppAssessmentResourceDriftsCommand}.
13
+ */
14
+ export interface ListAppAssessmentResourceDriftsCommandInput extends ListAppAssessmentResourceDriftsRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link ListAppAssessmentResourceDriftsCommand}.
20
+ */
21
+ export interface ListAppAssessmentResourceDriftsCommandOutput extends ListAppAssessmentResourceDriftsResponse, __MetadataBearer {
22
+ }
23
+ declare const ListAppAssessmentResourceDriftsCommand_base: {
24
+ new (input: ListAppAssessmentResourceDriftsCommandInput): import("@smithy/smithy-client").CommandImpl<ListAppAssessmentResourceDriftsCommandInput, ListAppAssessmentResourceDriftsCommandOutput, ResiliencehubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: ListAppAssessmentResourceDriftsCommandInput): import("@smithy/smithy-client").CommandImpl<ListAppAssessmentResourceDriftsCommandInput, ListAppAssessmentResourceDriftsCommandOutput, ResiliencehubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Indicates the list of resource drifts that were detected while running an assessment.</p>
30
+ * @example
31
+ * Use a bare-bones client and the command you need to make an API call.
32
+ * ```javascript
33
+ * import { ResiliencehubClient, ListAppAssessmentResourceDriftsCommand } from "@aws-sdk/client-resiliencehub"; // ES Modules import
34
+ * // const { ResiliencehubClient, ListAppAssessmentResourceDriftsCommand } = require("@aws-sdk/client-resiliencehub"); // CommonJS import
35
+ * const client = new ResiliencehubClient(config);
36
+ * const input = { // ListAppAssessmentResourceDriftsRequest
37
+ * assessmentArn: "STRING_VALUE", // required
38
+ * nextToken: "STRING_VALUE",
39
+ * maxResults: Number("int"),
40
+ * };
41
+ * const command = new ListAppAssessmentResourceDriftsCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // ListAppAssessmentResourceDriftsResponse
44
+ * // resourceDrifts: [ // ResourceDriftList // required
45
+ * // { // ResourceDrift
46
+ * // appArn: "STRING_VALUE",
47
+ * // appVersion: "STRING_VALUE",
48
+ * // referenceId: "STRING_VALUE",
49
+ * // resourceIdentifier: { // ResourceIdentifier
50
+ * // logicalResourceId: { // LogicalResourceId
51
+ * // identifier: "STRING_VALUE", // required
52
+ * // logicalStackName: "STRING_VALUE",
53
+ * // resourceGroupName: "STRING_VALUE",
54
+ * // terraformSourceName: "STRING_VALUE",
55
+ * // eksSourceName: "STRING_VALUE",
56
+ * // },
57
+ * // resourceType: "STRING_VALUE",
58
+ * // },
59
+ * // diffType: "STRING_VALUE",
60
+ * // },
61
+ * // ],
62
+ * // nextToken: "STRING_VALUE",
63
+ * // };
64
+ *
65
+ * ```
66
+ *
67
+ * @param ListAppAssessmentResourceDriftsCommandInput - {@link ListAppAssessmentResourceDriftsCommandInput}
68
+ * @returns {@link ListAppAssessmentResourceDriftsCommandOutput}
69
+ * @see {@link ListAppAssessmentResourceDriftsCommandInput} for command's `input` shape.
70
+ * @see {@link ListAppAssessmentResourceDriftsCommandOutput} for command's `response` shape.
71
+ * @see {@link ResiliencehubClientResolvedConfig | config} for ResiliencehubClient's `config` shape.
72
+ *
73
+ * @throws {@link AccessDeniedException} (client fault)
74
+ * <p>You don't have permissions to perform the requested operation. The user or role that is
75
+ * making the request must have at least one IAM permissions policy attached that grants the
76
+ * required permissions.</p>
77
+ *
78
+ * @throws {@link InternalServerException} (server fault)
79
+ * <p>This exception occurs when there is an internal failure in the Resilience Hub
80
+ * service.</p>
81
+ *
82
+ * @throws {@link ThrottlingException} (client fault)
83
+ * <p>This exception occurs when you have exceeded the limit on the number of requests per second.</p>
84
+ *
85
+ * @throws {@link ValidationException} (client fault)
86
+ * <p>This exception occurs when a request is not valid.</p>
87
+ *
88
+ * @throws {@link ResiliencehubServiceException}
89
+ * <p>Base exception class for all service exceptions from Resiliencehub service.</p>
90
+ *
91
+ * @public
92
+ */
93
+ export declare class ListAppAssessmentResourceDriftsCommand extends ListAppAssessmentResourceDriftsCommand_base {
94
+ }
@@ -22,7 +22,7 @@ export interface ListRecommendationTemplatesCommandOutput extends ListRecommenda
22
22
  }
23
23
  declare const ListRecommendationTemplatesCommand_base: {
24
24
  new (input: ListRecommendationTemplatesCommandInput): import("@smithy/smithy-client").CommandImpl<ListRecommendationTemplatesCommandInput, ListRecommendationTemplatesCommandOutput, ResiliencehubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
- new (__0_0: ListRecommendationTemplatesCommandInput): import("@smithy/smithy-client").CommandImpl<ListRecommendationTemplatesCommandInput, ListRecommendationTemplatesCommandOutput, ResiliencehubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (...[input]: [] | [ListRecommendationTemplatesCommandInput]): import("@smithy/smithy-client").CommandImpl<ListRecommendationTemplatesCommandInput, ListRecommendationTemplatesCommandOutput, ResiliencehubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
27
  };
28
28
  /**
@@ -34,7 +34,7 @@ declare const ListRecommendationTemplatesCommand_base: {
34
34
  * // const { ResiliencehubClient, ListRecommendationTemplatesCommand } = require("@aws-sdk/client-resiliencehub"); // CommonJS import
35
35
  * const client = new ResiliencehubClient(config);
36
36
  * const input = { // ListRecommendationTemplatesRequest
37
- * assessmentArn: "STRING_VALUE", // required
37
+ * assessmentArn: "STRING_VALUE",
38
38
  * reverseOrder: true || false,
39
39
  * status: [ // RecommendationTemplateStatusList
40
40
  * "STRING_VALUE",
@@ -24,6 +24,7 @@ export * from "./DescribeResiliencyPolicyCommand";
24
24
  export * from "./ImportResourcesToDraftAppVersionCommand";
25
25
  export * from "./ListAlarmRecommendationsCommand";
26
26
  export * from "./ListAppAssessmentComplianceDriftsCommand";
27
+ export * from "./ListAppAssessmentResourceDriftsCommand";
27
28
  export * from "./ListAppAssessmentsCommand";
28
29
  export * from "./ListAppComponentCompliancesCommand";
29
30
  export * from "./ListAppComponentRecommendationsCommand";