@aws-sdk/client-resiliencehub 3.437.0 → 3.439.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/dist-cjs/endpoint/endpointResolver.js +1 -1
- package/dist-cjs/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +14 -0
- package/dist-es/endpoint/endpointResolver.js +1 -1
- package/dist-es/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +14 -0
- package/dist-types/commands/AddDraftAppVersionResourceMappingsCommand.d.ts +1 -2
- package/dist-types/commands/CreateAppCommand.d.ts +5 -4
- package/dist-types/commands/CreateResiliencyPolicyCommand.d.ts +7 -0
- package/dist-types/commands/DescribeAppCommand.d.ts +2 -0
- package/dist-types/commands/DescribeResiliencyPolicyCommand.d.ts +3 -3
- package/dist-types/commands/ListAppsCommand.d.ts +6 -0
- package/dist-types/commands/UpdateAppCommand.d.ts +2 -0
- package/dist-types/commands/UpdateResiliencyPolicyCommand.d.ts +9 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +150 -102
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +8 -0
- package/package.json +6 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defaultEndpointResolver = void 0;
|
|
4
|
-
const util_endpoints_1 = require("@
|
|
4
|
+
const util_endpoints_1 = require("@smithy/util-endpoints");
|
|
5
5
|
const ruleset_1 = require("./ruleset");
|
|
6
6
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
7
7
|
return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
|
package/dist-cjs/index.js
CHANGED
|
@@ -7,5 +7,6 @@ tslib_1.__exportStar(require("./Resiliencehub"), exports);
|
|
|
7
7
|
tslib_1.__exportStar(require("./commands"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./pagination"), exports);
|
|
9
9
|
tslib_1.__exportStar(require("./models"), exports);
|
|
10
|
+
require("@aws-sdk/util-endpoints");
|
|
10
11
|
var ResiliencehubServiceException_1 = require("./models/ResiliencehubServiceException");
|
|
11
12
|
Object.defineProperty(exports, "ResiliencehubServiceException", { enumerable: true, get: function () { return ResiliencehubServiceException_1.ResiliencehubServiceException; } });
|
|
@@ -738,6 +738,15 @@ const se_ListAppsCommand = async (input, context) => {
|
|
|
738
738
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
739
739
|
name: [, input.name],
|
|
740
740
|
appArn: [, input.appArn],
|
|
741
|
+
fromLastAssessmentTime: [
|
|
742
|
+
() => input.fromLastAssessmentTime !== void 0,
|
|
743
|
+
() => (input.fromLastAssessmentTime.toISOString().split(".")[0] + "Z").toString(),
|
|
744
|
+
],
|
|
745
|
+
toLastAssessmentTime: [
|
|
746
|
+
() => input.toLastAssessmentTime !== void 0,
|
|
747
|
+
() => (input.toLastAssessmentTime.toISOString().split(".")[0] + "Z").toString(),
|
|
748
|
+
],
|
|
749
|
+
reverseOrder: [() => input.reverseOrder !== void 0, () => input.reverseOrder.toString()],
|
|
741
750
|
});
|
|
742
751
|
let body;
|
|
743
752
|
return new protocol_http_1.HttpRequest({
|
|
@@ -4058,6 +4067,8 @@ const de_App = (output, context) => {
|
|
|
4058
4067
|
permissionModel: smithy_client_1._json,
|
|
4059
4068
|
policyArn: smithy_client_1.expectString,
|
|
4060
4069
|
resiliencyScore: smithy_client_1.limitedParseDouble,
|
|
4070
|
+
rpoInSecs: smithy_client_1.expectInt32,
|
|
4071
|
+
rtoInSecs: smithy_client_1.expectInt32,
|
|
4061
4072
|
status: smithy_client_1.expectString,
|
|
4062
4073
|
tags: smithy_client_1._json,
|
|
4063
4074
|
});
|
|
@@ -4128,8 +4139,11 @@ const de_AppSummary = (output, context) => {
|
|
|
4128
4139
|
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4129
4140
|
description: smithy_client_1.expectString,
|
|
4130
4141
|
driftStatus: smithy_client_1.expectString,
|
|
4142
|
+
lastAppComplianceEvaluationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4131
4143
|
name: smithy_client_1.expectString,
|
|
4132
4144
|
resiliencyScore: smithy_client_1.limitedParseDouble,
|
|
4145
|
+
rpoInSecs: smithy_client_1.expectInt32,
|
|
4146
|
+
rtoInSecs: smithy_client_1.expectInt32,
|
|
4133
4147
|
status: smithy_client_1.expectString,
|
|
4134
4148
|
});
|
|
4135
4149
|
};
|
package/dist-es/index.js
CHANGED
|
@@ -703,6 +703,15 @@ export const se_ListAppsCommand = async (input, context) => {
|
|
|
703
703
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
704
704
|
name: [, input.name],
|
|
705
705
|
appArn: [, input.appArn],
|
|
706
|
+
fromLastAssessmentTime: [
|
|
707
|
+
() => input.fromLastAssessmentTime !== void 0,
|
|
708
|
+
() => (input.fromLastAssessmentTime.toISOString().split(".")[0] + "Z").toString(),
|
|
709
|
+
],
|
|
710
|
+
toLastAssessmentTime: [
|
|
711
|
+
() => input.toLastAssessmentTime !== void 0,
|
|
712
|
+
() => (input.toLastAssessmentTime.toISOString().split(".")[0] + "Z").toString(),
|
|
713
|
+
],
|
|
714
|
+
reverseOrder: [() => input.reverseOrder !== void 0, () => input.reverseOrder.toString()],
|
|
706
715
|
});
|
|
707
716
|
let body;
|
|
708
717
|
return new __HttpRequest({
|
|
@@ -3945,6 +3954,8 @@ const de_App = (output, context) => {
|
|
|
3945
3954
|
permissionModel: _json,
|
|
3946
3955
|
policyArn: __expectString,
|
|
3947
3956
|
resiliencyScore: __limitedParseDouble,
|
|
3957
|
+
rpoInSecs: __expectInt32,
|
|
3958
|
+
rtoInSecs: __expectInt32,
|
|
3948
3959
|
status: __expectString,
|
|
3949
3960
|
tags: _json,
|
|
3950
3961
|
});
|
|
@@ -4015,8 +4026,11 @@ const de_AppSummary = (output, context) => {
|
|
|
4015
4026
|
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4016
4027
|
description: __expectString,
|
|
4017
4028
|
driftStatus: __expectString,
|
|
4029
|
+
lastAppComplianceEvaluationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4018
4030
|
name: __expectString,
|
|
4019
4031
|
resiliencyScore: __limitedParseDouble,
|
|
4032
|
+
rpoInSecs: __expectInt32,
|
|
4033
|
+
rtoInSecs: __expectInt32,
|
|
4020
4034
|
status: __expectString,
|
|
4021
4035
|
});
|
|
4022
4036
|
};
|
|
@@ -23,8 +23,7 @@ export interface AddDraftAppVersionResourceMappingsCommandOutput extends AddDraf
|
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
|
-
* <p>Adds the resource
|
|
27
|
-
* existing resource mapping to a new physical resource.</p>
|
|
26
|
+
* <p>Adds the source of resource-maps to the draft version of an application. During assessment, Resilience Hub will use these resource-maps to resolve the latest physical ID for each resource in the application template. For more information about different types of resources suported by Resilience Hub and how to add them in your application, see <a href="https://docs.aws.amazon.com/resilience-hub/latest/userguide/how-app-manage.html">Step 2: How is your application managed?</a> in the Resilience Hub User Guide.</p>
|
|
28
27
|
* @example
|
|
29
28
|
* Use a bare-bones client and the command you need to make an API call.
|
|
30
29
|
* ```javascript
|
|
@@ -24,10 +24,9 @@ export interface CreateAppCommandOutput extends CreateAppResponse, __MetadataBea
|
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Creates an Resilience Hub application. An Resilience Hub application is a
|
|
27
|
-
* collection of Amazon Web Services resources structured to prevent and recover Amazon Web Services application disruptions. To describe a Resilience Hub application,
|
|
28
|
-
* application name, resources from one or more CloudFormation stacks, Resource Groups, Terraform state files, AppRegistry applications, and an appropriate
|
|
29
|
-
* 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
|
|
30
|
-
* about the number of resources supported per application, see <a href="https://docs.aws.amazon.com/general/latest/gr/resiliencehub.html#limits_resiliencehub">Service
|
|
27
|
+
* collection of Amazon Web Services resources structured to prevent and recover Amazon Web Services application disruptions. To describe a Resilience Hub application,
|
|
28
|
+
* you provide an application name, resources from one or more CloudFormation stacks, Resource Groups, Terraform state files, AppRegistry applications, and an appropriate
|
|
29
|
+
* 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
|
|
31
30
|
* quotas</a>.</p>
|
|
32
31
|
* <p>After you create an Resilience Hub application, you publish it so that you can run a resiliency
|
|
33
32
|
* assessment on it. You can then use recommendations from the assessment to improve resiliency
|
|
@@ -98,6 +97,8 @@ export interface CreateAppCommandOutput extends CreateAppResponse, __MetadataBea
|
|
|
98
97
|
* // ],
|
|
99
98
|
* // driftStatus: "STRING_VALUE",
|
|
100
99
|
* // lastDriftEvaluationTime: new Date("TIMESTAMP"),
|
|
100
|
+
* // rtoInSecs: Number("int"),
|
|
101
|
+
* // rpoInSecs: Number("int"),
|
|
101
102
|
* // },
|
|
102
103
|
* // };
|
|
103
104
|
*
|
|
@@ -24,6 +24,13 @@ export interface CreateResiliencyPolicyCommandOutput extends CreateResiliencyPol
|
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Creates a resiliency policy for an application.</p>
|
|
27
|
+
* <note>
|
|
28
|
+
* <p>Resilience Hub allows you to provide a value of zero for <code>rtoInSecs</code> and
|
|
29
|
+
* <code>rpoInSecs</code> of your resiliency policy. But, while assessing your application, the lowest possible assessment result is near zero. Hence, if you provide value
|
|
30
|
+
* zero for <code>rtoInSecs</code> and <code>rpoInSecs</code>, the estimated workload RTO and estimated workload RPO result will be near zero and the <b>Compliance
|
|
31
|
+
* status</b> for your application will be set to <b>Policy
|
|
32
|
+
* breached</b>.</p>
|
|
33
|
+
* </note>
|
|
27
34
|
* @example
|
|
28
35
|
* Use a bare-bones client and the command you need to make an API call.
|
|
29
36
|
* ```javascript
|
|
@@ -67,6 +67,8 @@ export interface DescribeAppCommandOutput extends DescribeAppResponse, __Metadat
|
|
|
67
67
|
* // ],
|
|
68
68
|
* // driftStatus: "STRING_VALUE",
|
|
69
69
|
* // lastDriftEvaluationTime: new Date("TIMESTAMP"),
|
|
70
|
+
* // rtoInSecs: Number("int"),
|
|
71
|
+
* // rpoInSecs: Number("int"),
|
|
70
72
|
* // },
|
|
71
73
|
* // };
|
|
72
74
|
*
|
|
@@ -23,9 +23,9 @@ export interface DescribeResiliencyPolicyCommandOutput extends DescribeResilienc
|
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
|
-
* <p>Describes a specified resiliency policy for an Resilience Hub application. The
|
|
27
|
-
* policy object includes creation time, data location constraints, the Amazon Resource
|
|
28
|
-
* (ARN) for the policy, tags, tier, and more.</p>
|
|
26
|
+
* <p>Describes a specified resiliency policy for an Resilience Hub application. The
|
|
27
|
+
* returned policy object includes creation time, data location constraints, the Amazon Resource
|
|
28
|
+
* Name (ARN) for the policy, tags, tier, and more.</p>
|
|
29
29
|
* @example
|
|
30
30
|
* Use a bare-bones client and the command you need to make an API call.
|
|
31
31
|
* ```javascript
|
|
@@ -44,6 +44,9 @@ export interface ListAppsCommandOutput extends ListAppsResponse, __MetadataBeare
|
|
|
44
44
|
* maxResults: Number("int"),
|
|
45
45
|
* name: "STRING_VALUE",
|
|
46
46
|
* appArn: "STRING_VALUE",
|
|
47
|
+
* fromLastAssessmentTime: new Date("TIMESTAMP"),
|
|
48
|
+
* toLastAssessmentTime: new Date("TIMESTAMP"),
|
|
49
|
+
* reverseOrder: true || false,
|
|
47
50
|
* };
|
|
48
51
|
* const command = new ListAppsCommand(input);
|
|
49
52
|
* const response = await client.send(command);
|
|
@@ -59,6 +62,9 @@ export interface ListAppsCommandOutput extends ListAppsResponse, __MetadataBeare
|
|
|
59
62
|
* // assessmentSchedule: "STRING_VALUE",
|
|
60
63
|
* // status: "STRING_VALUE",
|
|
61
64
|
* // driftStatus: "STRING_VALUE",
|
|
65
|
+
* // lastAppComplianceEvaluationTime: new Date("TIMESTAMP"),
|
|
66
|
+
* // rtoInSecs: Number("int"),
|
|
67
|
+
* // rpoInSecs: Number("int"),
|
|
62
68
|
* // },
|
|
63
69
|
* // ],
|
|
64
70
|
* // nextToken: "STRING_VALUE",
|
|
@@ -85,6 +85,8 @@ export interface UpdateAppCommandOutput extends UpdateAppResponse, __MetadataBea
|
|
|
85
85
|
* // ],
|
|
86
86
|
* // driftStatus: "STRING_VALUE",
|
|
87
87
|
* // lastDriftEvaluationTime: new Date("TIMESTAMP"),
|
|
88
|
+
* // rtoInSecs: Number("int"),
|
|
89
|
+
* // rpoInSecs: Number("int"),
|
|
88
90
|
* // },
|
|
89
91
|
* // };
|
|
90
92
|
*
|
|
@@ -24,6 +24,15 @@ export interface UpdateResiliencyPolicyCommandOutput extends UpdateResiliencyPol
|
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Updates a resiliency policy.</p>
|
|
27
|
+
* <note>
|
|
28
|
+
* <p>Resilience Hub allows you to provide a value of zero for <code>rtoInSecs</code> and
|
|
29
|
+
* <code>rpoInSecs</code> of your resiliency policy. But, while assessing your application,
|
|
30
|
+
* the lowest possible assessment result is near zero. Hence, if you provide value
|
|
31
|
+
* zero for <code>rtoInSecs</code> and <code>rpoInSecs</code>, the estimated workload RTO and
|
|
32
|
+
* estimated workload RPO result will be near zero and the <b>Compliance
|
|
33
|
+
* status</b> for your application will be set to <b>Policy
|
|
34
|
+
* breached</b>.</p>
|
|
35
|
+
* </note>
|
|
27
36
|
* @example
|
|
28
37
|
* Use a bare-bones client and the command you need to make an API call.
|
|
29
38
|
* ```javascript
|
package/dist-types/index.d.ts
CHANGED
|
@@ -13,4 +13,5 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
|
13
13
|
export * from "./commands";
|
|
14
14
|
export * from "./pagination";
|
|
15
15
|
export * from "./models";
|
|
16
|
+
import "@aws-sdk/util-endpoints";
|
|
16
17
|
export { ResiliencehubServiceException } from "./models/ResiliencehubServiceException";
|