@aws-sdk/client-route53-recovery-control-config 3.428.0 → 3.430.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 +8 -0
- package/dist-cjs/Route53RecoveryControlConfig.js +2 -0
- package/dist-cjs/commands/GetResourcePolicyCommand.js +51 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/protocols/Aws_restJson1.js +55 -1
- package/dist-es/Route53RecoveryControlConfig.js +2 -0
- package/dist-es/commands/GetResourcePolicyCommand.js +47 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +52 -0
- package/dist-types/Route53RecoveryControlConfig.d.ts +7 -0
- package/dist-types/Route53RecoveryControlConfigClient.d.ts +3 -2
- package/dist-types/commands/CreateClusterCommand.d.ts +1 -0
- package/dist-types/commands/CreateControlPanelCommand.d.ts +1 -0
- package/dist-types/commands/CreateRoutingControlCommand.d.ts +1 -0
- package/dist-types/commands/CreateSafetyRuleCommand.d.ts +2 -0
- package/dist-types/commands/DescribeClusterCommand.d.ts +1 -0
- package/dist-types/commands/DescribeControlPanelCommand.d.ts +1 -0
- package/dist-types/commands/DescribeRoutingControlCommand.d.ts +1 -0
- package/dist-types/commands/DescribeSafetyRuleCommand.d.ts +2 -0
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +79 -0
- package/dist-types/commands/ListClustersCommand.d.ts +1 -0
- package/dist-types/commands/ListControlPanelsCommand.d.ts +1 -0
- package/dist-types/commands/ListRoutingControlsCommand.d.ts +1 -0
- package/dist-types/commands/ListSafetyRulesCommand.d.ts +2 -0
- package/dist-types/commands/UpdateControlPanelCommand.d.ts +1 -0
- package/dist-types/commands/UpdateRoutingControlCommand.d.ts +1 -0
- package/dist-types/commands/UpdateSafetyRuleCommand.d.ts +2 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +51 -6
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/Route53RecoveryControlConfig.d.ts +17 -0
- package/dist-types/ts3.4/Route53RecoveryControlConfigClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +17 -6
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -304,6 +304,14 @@ DescribeSafetyRule
|
|
|
304
304
|
|
|
305
305
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-route53-recovery-control-config/classes/describesafetyrulecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-route53-recovery-control-config/interfaces/describesafetyrulecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-route53-recovery-control-config/interfaces/describesafetyrulecommandoutput.html)
|
|
306
306
|
|
|
307
|
+
</details>
|
|
308
|
+
<details>
|
|
309
|
+
<summary>
|
|
310
|
+
GetResourcePolicy
|
|
311
|
+
</summary>
|
|
312
|
+
|
|
313
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-route53-recovery-control-config/classes/getresourcepolicycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-route53-recovery-control-config/interfaces/getresourcepolicycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-route53-recovery-control-config/interfaces/getresourcepolicycommandoutput.html)
|
|
314
|
+
|
|
307
315
|
</details>
|
|
308
316
|
<details>
|
|
309
317
|
<summary>
|
|
@@ -14,6 +14,7 @@ const DescribeClusterCommand_1 = require("./commands/DescribeClusterCommand");
|
|
|
14
14
|
const DescribeControlPanelCommand_1 = require("./commands/DescribeControlPanelCommand");
|
|
15
15
|
const DescribeRoutingControlCommand_1 = require("./commands/DescribeRoutingControlCommand");
|
|
16
16
|
const DescribeSafetyRuleCommand_1 = require("./commands/DescribeSafetyRuleCommand");
|
|
17
|
+
const GetResourcePolicyCommand_1 = require("./commands/GetResourcePolicyCommand");
|
|
17
18
|
const ListAssociatedRoute53HealthChecksCommand_1 = require("./commands/ListAssociatedRoute53HealthChecksCommand");
|
|
18
19
|
const ListClustersCommand_1 = require("./commands/ListClustersCommand");
|
|
19
20
|
const ListControlPanelsCommand_1 = require("./commands/ListControlPanelsCommand");
|
|
@@ -39,6 +40,7 @@ const commands = {
|
|
|
39
40
|
DescribeControlPanelCommand: DescribeControlPanelCommand_1.DescribeControlPanelCommand,
|
|
40
41
|
DescribeRoutingControlCommand: DescribeRoutingControlCommand_1.DescribeRoutingControlCommand,
|
|
41
42
|
DescribeSafetyRuleCommand: DescribeSafetyRuleCommand_1.DescribeSafetyRuleCommand,
|
|
43
|
+
GetResourcePolicyCommand: GetResourcePolicyCommand_1.GetResourcePolicyCommand,
|
|
42
44
|
ListAssociatedRoute53HealthChecksCommand: ListAssociatedRoute53HealthChecksCommand_1.ListAssociatedRoute53HealthChecksCommand,
|
|
43
45
|
ListClustersCommand: ListClustersCommand_1.ListClustersCommand,
|
|
44
46
|
ListControlPanelsCommand: ListControlPanelsCommand_1.ListControlPanelsCommand,
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetResourcePolicyCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class GetResourcePolicyCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetResourcePolicyCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "Route53RecoveryControlConfigClient";
|
|
29
|
+
const commandName = "GetResourcePolicyCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "Route53RecoveryControlConfig",
|
|
38
|
+
operation: "GetResourcePolicy",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_restJson1_1.se_GetResourcePolicyCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_restJson1_1.de_GetResourcePolicyCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.GetResourcePolicyCommand = GetResourcePolicyCommand;
|
|
@@ -13,6 +13,7 @@ tslib_1.__exportStar(require("./DescribeClusterCommand"), exports);
|
|
|
13
13
|
tslib_1.__exportStar(require("./DescribeControlPanelCommand"), exports);
|
|
14
14
|
tslib_1.__exportStar(require("./DescribeRoutingControlCommand"), exports);
|
|
15
15
|
tslib_1.__exportStar(require("./DescribeSafetyRuleCommand"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./GetResourcePolicyCommand"), exports);
|
|
16
17
|
tslib_1.__exportStar(require("./ListAssociatedRoute53HealthChecksCommand"), exports);
|
|
17
18
|
tslib_1.__exportStar(require("./ListClustersCommand"), exports);
|
|
18
19
|
tslib_1.__exportStar(require("./ListControlPanelsCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a = "isSet",
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const t = "required", u = "fn", v = "argv", w = "ref";
|
|
5
|
+
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [t]: false, "type": "String" }, i = { [t]: true, "default": false, "type": "Boolean" }, j = { [w]: "Endpoint" }, k = { [u]: c, [v]: [{ [w]: "UseFIPS" }, true] }, l = { [u]: c, [v]: [{ [w]: "UseDualStack" }, true] }, m = {}, n = { [w]: "Region" }, o = { [u]: "getAttr", [v]: [{ [w]: g }, "supportsFIPS"] }, p = { [u]: c, [v]: [true, { [u]: "getAttr", [v]: [{ [w]: g }, "supportsDualStack"] }] }, q = [k], r = [l], s = [n];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [u]: b, [v]: [j] }], rules: [{ conditions: q, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: r, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }, { conditions: [{ [u]: b, [v]: s }], rules: [{ conditions: [{ [u]: "aws.partition", [v]: s, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [u]: c, [v]: [a, o] }, p], rules: [{ endpoint: { url: "https://route53-recovery-control-config-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: q, rules: [{ conditions: [{ [u]: c, [v]: [o, a] }], rules: [{ endpoint: { url: "https://route53-recovery-control-config-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: r, rules: [{ conditions: [p], rules: [{ endpoint: { url: "https://route53-recovery-control-config.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { conditions: [{ [u]: "stringEquals", [v]: [n, "aws-global"] }], endpoint: { url: "https://route53-recovery-control-config.us-west-2.amazonaws.com", properties: { authSchemes: [{ name: "sigv4", signingName: "route53-recovery-control-config", signingRegion: "us-west-2" }] }, headers: m }, type: e }, { endpoint: { url: "https://route53-recovery-control-config.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateSafetyRuleCommand = exports.de_UpdateRoutingControlCommand = exports.de_UpdateControlPanelCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSafetyRulesCommand = exports.de_ListRoutingControlsCommand = exports.de_ListControlPanelsCommand = exports.de_ListClustersCommand = exports.de_ListAssociatedRoute53HealthChecksCommand = exports.de_DescribeSafetyRuleCommand = exports.de_DescribeRoutingControlCommand = exports.de_DescribeControlPanelCommand = exports.de_DescribeClusterCommand = exports.de_DeleteSafetyRuleCommand = exports.de_DeleteRoutingControlCommand = exports.de_DeleteControlPanelCommand = exports.de_DeleteClusterCommand = exports.de_CreateSafetyRuleCommand = exports.de_CreateRoutingControlCommand = exports.de_CreateControlPanelCommand = exports.de_CreateClusterCommand = exports.se_UpdateSafetyRuleCommand = exports.se_UpdateRoutingControlCommand = exports.se_UpdateControlPanelCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSafetyRulesCommand = exports.se_ListRoutingControlsCommand = exports.se_ListControlPanelsCommand = exports.se_ListClustersCommand = exports.se_ListAssociatedRoute53HealthChecksCommand = exports.se_DescribeSafetyRuleCommand = exports.se_DescribeRoutingControlCommand = exports.se_DescribeControlPanelCommand = exports.se_DescribeClusterCommand = exports.se_DeleteSafetyRuleCommand = exports.se_DeleteRoutingControlCommand = exports.se_DeleteControlPanelCommand = exports.se_DeleteClusterCommand = exports.se_CreateSafetyRuleCommand = exports.se_CreateRoutingControlCommand = exports.se_CreateControlPanelCommand = exports.se_CreateClusterCommand = void 0;
|
|
3
|
+
exports.de_UpdateSafetyRuleCommand = exports.de_UpdateRoutingControlCommand = exports.de_UpdateControlPanelCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSafetyRulesCommand = exports.de_ListRoutingControlsCommand = exports.de_ListControlPanelsCommand = exports.de_ListClustersCommand = exports.de_ListAssociatedRoute53HealthChecksCommand = exports.de_GetResourcePolicyCommand = exports.de_DescribeSafetyRuleCommand = exports.de_DescribeRoutingControlCommand = exports.de_DescribeControlPanelCommand = exports.de_DescribeClusterCommand = exports.de_DeleteSafetyRuleCommand = exports.de_DeleteRoutingControlCommand = exports.de_DeleteControlPanelCommand = exports.de_DeleteClusterCommand = exports.de_CreateSafetyRuleCommand = exports.de_CreateRoutingControlCommand = exports.de_CreateControlPanelCommand = exports.de_CreateClusterCommand = exports.se_UpdateSafetyRuleCommand = exports.se_UpdateRoutingControlCommand = exports.se_UpdateControlPanelCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSafetyRulesCommand = exports.se_ListRoutingControlsCommand = exports.se_ListControlPanelsCommand = exports.se_ListClustersCommand = exports.se_ListAssociatedRoute53HealthChecksCommand = exports.se_GetResourcePolicyCommand = exports.se_DescribeSafetyRuleCommand = exports.se_DescribeRoutingControlCommand = exports.se_DescribeControlPanelCommand = exports.se_DescribeClusterCommand = exports.se_DeleteSafetyRuleCommand = exports.se_DeleteRoutingControlCommand = exports.se_DeleteControlPanelCommand = exports.se_DeleteClusterCommand = exports.se_CreateSafetyRuleCommand = exports.se_CreateRoutingControlCommand = exports.se_CreateControlPanelCommand = exports.se_CreateClusterCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const uuid_1 = require("uuid");
|
|
@@ -237,6 +237,23 @@ const se_DescribeSafetyRuleCommand = async (input, context) => {
|
|
|
237
237
|
});
|
|
238
238
|
};
|
|
239
239
|
exports.se_DescribeSafetyRuleCommand = se_DescribeSafetyRuleCommand;
|
|
240
|
+
const se_GetResourcePolicyCommand = async (input, context) => {
|
|
241
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
242
|
+
const headers = {};
|
|
243
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resourcePolicy/{ResourceArn}";
|
|
244
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
245
|
+
let body;
|
|
246
|
+
return new protocol_http_1.HttpRequest({
|
|
247
|
+
protocol,
|
|
248
|
+
hostname,
|
|
249
|
+
port,
|
|
250
|
+
method: "GET",
|
|
251
|
+
headers,
|
|
252
|
+
path: resolvedPath,
|
|
253
|
+
body,
|
|
254
|
+
});
|
|
255
|
+
};
|
|
256
|
+
exports.se_GetResourcePolicyCommand = se_GetResourcePolicyCommand;
|
|
240
257
|
const se_ListAssociatedRoute53HealthChecksCommand = async (input, context) => {
|
|
241
258
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
242
259
|
const headers = {};
|
|
@@ -1028,6 +1045,43 @@ const de_DescribeSafetyRuleCommandError = async (output, context) => {
|
|
|
1028
1045
|
});
|
|
1029
1046
|
}
|
|
1030
1047
|
};
|
|
1048
|
+
const de_GetResourcePolicyCommand = async (output, context) => {
|
|
1049
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1050
|
+
return de_GetResourcePolicyCommandError(output, context);
|
|
1051
|
+
}
|
|
1052
|
+
const contents = (0, smithy_client_1.map)({
|
|
1053
|
+
$metadata: deserializeMetadata(output),
|
|
1054
|
+
});
|
|
1055
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1056
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1057
|
+
Policy: smithy_client_1.expectString,
|
|
1058
|
+
});
|
|
1059
|
+
Object.assign(contents, doc);
|
|
1060
|
+
return contents;
|
|
1061
|
+
};
|
|
1062
|
+
exports.de_GetResourcePolicyCommand = de_GetResourcePolicyCommand;
|
|
1063
|
+
const de_GetResourcePolicyCommandError = async (output, context) => {
|
|
1064
|
+
const parsedOutput = {
|
|
1065
|
+
...output,
|
|
1066
|
+
body: await parseErrorBody(output.body, context),
|
|
1067
|
+
};
|
|
1068
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1069
|
+
switch (errorCode) {
|
|
1070
|
+
case "InternalServerException":
|
|
1071
|
+
case "com.amazonaws.route53recoverycontrolconfig#InternalServerException":
|
|
1072
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1073
|
+
case "ResourceNotFoundException":
|
|
1074
|
+
case "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException":
|
|
1075
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1076
|
+
default:
|
|
1077
|
+
const parsedBody = parsedOutput.body;
|
|
1078
|
+
return throwDefaultError({
|
|
1079
|
+
output,
|
|
1080
|
+
parsedBody,
|
|
1081
|
+
errorCode,
|
|
1082
|
+
});
|
|
1083
|
+
}
|
|
1084
|
+
};
|
|
1031
1085
|
const de_ListAssociatedRoute53HealthChecksCommand = async (output, context) => {
|
|
1032
1086
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1033
1087
|
return de_ListAssociatedRoute53HealthChecksCommandError(output, context);
|
|
@@ -11,6 +11,7 @@ import { DescribeClusterCommand, } from "./commands/DescribeClusterCommand";
|
|
|
11
11
|
import { DescribeControlPanelCommand, } from "./commands/DescribeControlPanelCommand";
|
|
12
12
|
import { DescribeRoutingControlCommand, } from "./commands/DescribeRoutingControlCommand";
|
|
13
13
|
import { DescribeSafetyRuleCommand, } from "./commands/DescribeSafetyRuleCommand";
|
|
14
|
+
import { GetResourcePolicyCommand, } from "./commands/GetResourcePolicyCommand";
|
|
14
15
|
import { ListAssociatedRoute53HealthChecksCommand, } from "./commands/ListAssociatedRoute53HealthChecksCommand";
|
|
15
16
|
import { ListClustersCommand, } from "./commands/ListClustersCommand";
|
|
16
17
|
import { ListControlPanelsCommand, } from "./commands/ListControlPanelsCommand";
|
|
@@ -36,6 +37,7 @@ const commands = {
|
|
|
36
37
|
DescribeControlPanelCommand,
|
|
37
38
|
DescribeRoutingControlCommand,
|
|
38
39
|
DescribeSafetyRuleCommand,
|
|
40
|
+
GetResourcePolicyCommand,
|
|
39
41
|
ListAssociatedRoute53HealthChecksCommand,
|
|
40
42
|
ListClustersCommand,
|
|
41
43
|
ListControlPanelsCommand,
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_GetResourcePolicyCommand, se_GetResourcePolicyCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GetResourcePolicyCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetResourcePolicyCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "Route53RecoveryControlConfigClient";
|
|
26
|
+
const commandName = "GetResourcePolicyCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "Route53RecoveryControlConfig",
|
|
35
|
+
operation: "GetResourcePolicy",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_GetResourcePolicyCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_GetResourcePolicyCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -10,6 +10,7 @@ export * from "./DescribeClusterCommand";
|
|
|
10
10
|
export * from "./DescribeControlPanelCommand";
|
|
11
11
|
export * from "./DescribeRoutingControlCommand";
|
|
12
12
|
export * from "./DescribeSafetyRuleCommand";
|
|
13
|
+
export * from "./GetResourcePolicyCommand";
|
|
13
14
|
export * from "./ListAssociatedRoute53HealthChecksCommand";
|
|
14
15
|
export * from "./ListClustersCommand";
|
|
15
16
|
export * from "./ListControlPanelsCommand";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a = "isSet",
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const t = "required", u = "fn", v = "argv", w = "ref";
|
|
2
|
+
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [t]: false, "type": "String" }, i = { [t]: true, "default": false, "type": "Boolean" }, j = { [w]: "Endpoint" }, k = { [u]: c, [v]: [{ [w]: "UseFIPS" }, true] }, l = { [u]: c, [v]: [{ [w]: "UseDualStack" }, true] }, m = {}, n = { [w]: "Region" }, o = { [u]: "getAttr", [v]: [{ [w]: g }, "supportsFIPS"] }, p = { [u]: c, [v]: [true, { [u]: "getAttr", [v]: [{ [w]: g }, "supportsDualStack"] }] }, q = [k], r = [l], s = [n];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [u]: b, [v]: [j] }], rules: [{ conditions: q, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: r, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }, { conditions: [{ [u]: b, [v]: s }], rules: [{ conditions: [{ [u]: "aws.partition", [v]: s, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [u]: c, [v]: [a, o] }, p], rules: [{ endpoint: { url: "https://route53-recovery-control-config-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: q, rules: [{ conditions: [{ [u]: c, [v]: [o, a] }], rules: [{ endpoint: { url: "https://route53-recovery-control-config-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: r, rules: [{ conditions: [p], rules: [{ endpoint: { url: "https://route53-recovery-control-config.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { conditions: [{ [u]: "stringEquals", [v]: [n, "aws-global"] }], endpoint: { url: "https://route53-recovery-control-config.us-west-2.amazonaws.com", properties: { authSchemes: [{ name: "sigv4", signingName: "route53-recovery-control-config", signingRegion: "us-west-2" }] }, headers: m }, type: e }, { endpoint: { url: "https://route53-recovery-control-config.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -222,6 +222,22 @@ export const se_DescribeSafetyRuleCommand = async (input, context) => {
|
|
|
222
222
|
body,
|
|
223
223
|
});
|
|
224
224
|
};
|
|
225
|
+
export const se_GetResourcePolicyCommand = async (input, context) => {
|
|
226
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
227
|
+
const headers = {};
|
|
228
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resourcePolicy/{ResourceArn}";
|
|
229
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
230
|
+
let body;
|
|
231
|
+
return new __HttpRequest({
|
|
232
|
+
protocol,
|
|
233
|
+
hostname,
|
|
234
|
+
port,
|
|
235
|
+
method: "GET",
|
|
236
|
+
headers,
|
|
237
|
+
path: resolvedPath,
|
|
238
|
+
body,
|
|
239
|
+
});
|
|
240
|
+
};
|
|
225
241
|
export const se_ListAssociatedRoute53HealthChecksCommand = async (input, context) => {
|
|
226
242
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
227
243
|
const headers = {};
|
|
@@ -990,6 +1006,42 @@ const de_DescribeSafetyRuleCommandError = async (output, context) => {
|
|
|
990
1006
|
});
|
|
991
1007
|
}
|
|
992
1008
|
};
|
|
1009
|
+
export const de_GetResourcePolicyCommand = async (output, context) => {
|
|
1010
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1011
|
+
return de_GetResourcePolicyCommandError(output, context);
|
|
1012
|
+
}
|
|
1013
|
+
const contents = map({
|
|
1014
|
+
$metadata: deserializeMetadata(output),
|
|
1015
|
+
});
|
|
1016
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1017
|
+
const doc = take(data, {
|
|
1018
|
+
Policy: __expectString,
|
|
1019
|
+
});
|
|
1020
|
+
Object.assign(contents, doc);
|
|
1021
|
+
return contents;
|
|
1022
|
+
};
|
|
1023
|
+
const de_GetResourcePolicyCommandError = async (output, context) => {
|
|
1024
|
+
const parsedOutput = {
|
|
1025
|
+
...output,
|
|
1026
|
+
body: await parseErrorBody(output.body, context),
|
|
1027
|
+
};
|
|
1028
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1029
|
+
switch (errorCode) {
|
|
1030
|
+
case "InternalServerException":
|
|
1031
|
+
case "com.amazonaws.route53recoverycontrolconfig#InternalServerException":
|
|
1032
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1033
|
+
case "ResourceNotFoundException":
|
|
1034
|
+
case "com.amazonaws.route53recoverycontrolconfig#ResourceNotFoundException":
|
|
1035
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1036
|
+
default:
|
|
1037
|
+
const parsedBody = parsedOutput.body;
|
|
1038
|
+
return throwDefaultError({
|
|
1039
|
+
output,
|
|
1040
|
+
parsedBody,
|
|
1041
|
+
errorCode,
|
|
1042
|
+
});
|
|
1043
|
+
}
|
|
1044
|
+
};
|
|
993
1045
|
export const de_ListAssociatedRoute53HealthChecksCommand = async (output, context) => {
|
|
994
1046
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
995
1047
|
return de_ListAssociatedRoute53HealthChecksCommandError(output, context);
|
|
@@ -11,6 +11,7 @@ import { DescribeClusterCommandInput, DescribeClusterCommandOutput } from "./com
|
|
|
11
11
|
import { DescribeControlPanelCommandInput, DescribeControlPanelCommandOutput } from "./commands/DescribeControlPanelCommand";
|
|
12
12
|
import { DescribeRoutingControlCommandInput, DescribeRoutingControlCommandOutput } from "./commands/DescribeRoutingControlCommand";
|
|
13
13
|
import { DescribeSafetyRuleCommandInput, DescribeSafetyRuleCommandOutput } from "./commands/DescribeSafetyRuleCommand";
|
|
14
|
+
import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
|
|
14
15
|
import { ListAssociatedRoute53HealthChecksCommandInput, ListAssociatedRoute53HealthChecksCommandOutput } from "./commands/ListAssociatedRoute53HealthChecksCommand";
|
|
15
16
|
import { ListClustersCommandInput, ListClustersCommandOutput } from "./commands/ListClustersCommand";
|
|
16
17
|
import { ListControlPanelsCommandInput, ListControlPanelsCommandOutput } from "./commands/ListControlPanelsCommand";
|
|
@@ -96,6 +97,12 @@ export interface Route53RecoveryControlConfig {
|
|
|
96
97
|
describeSafetyRule(args: DescribeSafetyRuleCommandInput, options?: __HttpHandlerOptions): Promise<DescribeSafetyRuleCommandOutput>;
|
|
97
98
|
describeSafetyRule(args: DescribeSafetyRuleCommandInput, cb: (err: any, data?: DescribeSafetyRuleCommandOutput) => void): void;
|
|
98
99
|
describeSafetyRule(args: DescribeSafetyRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeSafetyRuleCommandOutput) => void): void;
|
|
100
|
+
/**
|
|
101
|
+
* @see {@link GetResourcePolicyCommand}
|
|
102
|
+
*/
|
|
103
|
+
getResourcePolicy(args: GetResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetResourcePolicyCommandOutput>;
|
|
104
|
+
getResourcePolicy(args: GetResourcePolicyCommandInput, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
|
|
105
|
+
getResourcePolicy(args: GetResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
|
|
99
106
|
/**
|
|
100
107
|
* @see {@link ListAssociatedRoute53HealthChecksCommand}
|
|
101
108
|
*/
|
|
@@ -20,6 +20,7 @@ import { DescribeClusterCommandInput, DescribeClusterCommandOutput } from "./com
|
|
|
20
20
|
import { DescribeControlPanelCommandInput, DescribeControlPanelCommandOutput } from "./commands/DescribeControlPanelCommand";
|
|
21
21
|
import { DescribeRoutingControlCommandInput, DescribeRoutingControlCommandOutput } from "./commands/DescribeRoutingControlCommand";
|
|
22
22
|
import { DescribeSafetyRuleCommandInput, DescribeSafetyRuleCommandOutput } from "./commands/DescribeSafetyRuleCommand";
|
|
23
|
+
import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
|
|
23
24
|
import { ListAssociatedRoute53HealthChecksCommandInput, ListAssociatedRoute53HealthChecksCommandOutput } from "./commands/ListAssociatedRoute53HealthChecksCommand";
|
|
24
25
|
import { ListClustersCommandInput, ListClustersCommandOutput } from "./commands/ListClustersCommand";
|
|
25
26
|
import { ListControlPanelsCommandInput, ListControlPanelsCommandOutput } from "./commands/ListControlPanelsCommand";
|
|
@@ -37,11 +38,11 @@ export { __Client };
|
|
|
37
38
|
/**
|
|
38
39
|
* @public
|
|
39
40
|
*/
|
|
40
|
-
export type ServiceInputTypes = CreateClusterCommandInput | CreateControlPanelCommandInput | CreateRoutingControlCommandInput | CreateSafetyRuleCommandInput | DeleteClusterCommandInput | DeleteControlPanelCommandInput | DeleteRoutingControlCommandInput | DeleteSafetyRuleCommandInput | DescribeClusterCommandInput | DescribeControlPanelCommandInput | DescribeRoutingControlCommandInput | DescribeSafetyRuleCommandInput | ListAssociatedRoute53HealthChecksCommandInput | ListClustersCommandInput | ListControlPanelsCommandInput | ListRoutingControlsCommandInput | ListSafetyRulesCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateControlPanelCommandInput | UpdateRoutingControlCommandInput | UpdateSafetyRuleCommandInput;
|
|
41
|
+
export type ServiceInputTypes = CreateClusterCommandInput | CreateControlPanelCommandInput | CreateRoutingControlCommandInput | CreateSafetyRuleCommandInput | DeleteClusterCommandInput | DeleteControlPanelCommandInput | DeleteRoutingControlCommandInput | DeleteSafetyRuleCommandInput | DescribeClusterCommandInput | DescribeControlPanelCommandInput | DescribeRoutingControlCommandInput | DescribeSafetyRuleCommandInput | GetResourcePolicyCommandInput | ListAssociatedRoute53HealthChecksCommandInput | ListClustersCommandInput | ListControlPanelsCommandInput | ListRoutingControlsCommandInput | ListSafetyRulesCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateControlPanelCommandInput | UpdateRoutingControlCommandInput | UpdateSafetyRuleCommandInput;
|
|
41
42
|
/**
|
|
42
43
|
* @public
|
|
43
44
|
*/
|
|
44
|
-
export type ServiceOutputTypes = CreateClusterCommandOutput | CreateControlPanelCommandOutput | CreateRoutingControlCommandOutput | CreateSafetyRuleCommandOutput | DeleteClusterCommandOutput | DeleteControlPanelCommandOutput | DeleteRoutingControlCommandOutput | DeleteSafetyRuleCommandOutput | DescribeClusterCommandOutput | DescribeControlPanelCommandOutput | DescribeRoutingControlCommandOutput | DescribeSafetyRuleCommandOutput | ListAssociatedRoute53HealthChecksCommandOutput | ListClustersCommandOutput | ListControlPanelsCommandOutput | ListRoutingControlsCommandOutput | ListSafetyRulesCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateControlPanelCommandOutput | UpdateRoutingControlCommandOutput | UpdateSafetyRuleCommandOutput;
|
|
45
|
+
export type ServiceOutputTypes = CreateClusterCommandOutput | CreateControlPanelCommandOutput | CreateRoutingControlCommandOutput | CreateSafetyRuleCommandOutput | DeleteClusterCommandOutput | DeleteControlPanelCommandOutput | DeleteRoutingControlCommandOutput | DeleteSafetyRuleCommandOutput | DescribeClusterCommandOutput | DescribeControlPanelCommandOutput | DescribeRoutingControlCommandOutput | DescribeSafetyRuleCommandOutput | GetResourcePolicyCommandOutput | ListAssociatedRoute53HealthChecksCommandOutput | ListClustersCommandOutput | ListControlPanelsCommandOutput | ListRoutingControlsCommandOutput | ListSafetyRulesCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateControlPanelCommandOutput | UpdateRoutingControlCommandOutput | UpdateSafetyRuleCommandOutput;
|
|
45
46
|
/**
|
|
46
47
|
* @public
|
|
47
48
|
*/
|
|
@@ -48,6 +48,7 @@ export interface CreateControlPanelCommandOutput extends CreateControlPanelRespo
|
|
|
48
48
|
* // Name: "STRING_VALUE",
|
|
49
49
|
* // RoutingControlCount: Number("int"),
|
|
50
50
|
* // Status: "PENDING" || "DEPLOYED" || "PENDING_DELETION",
|
|
51
|
+
* // Owner: "STRING_VALUE",
|
|
51
52
|
* // },
|
|
52
53
|
* // };
|
|
53
54
|
*
|
|
@@ -44,6 +44,7 @@ export interface CreateRoutingControlCommandOutput extends CreateRoutingControlR
|
|
|
44
44
|
* // Name: "STRING_VALUE",
|
|
45
45
|
* // RoutingControlArn: "STRING_VALUE",
|
|
46
46
|
* // Status: "PENDING" || "DEPLOYED" || "PENDING_DELETION",
|
|
47
|
+
* // Owner: "STRING_VALUE",
|
|
47
48
|
* // },
|
|
48
49
|
* // };
|
|
49
50
|
*
|
|
@@ -82,6 +82,7 @@ export interface CreateSafetyRuleCommandOutput extends CreateSafetyRuleResponse,
|
|
|
82
82
|
* // SafetyRuleArn: "STRING_VALUE", // required
|
|
83
83
|
* // Status: "PENDING" || "DEPLOYED" || "PENDING_DELETION", // required
|
|
84
84
|
* // WaitPeriodMs: Number("int"), // required
|
|
85
|
+
* // Owner: "STRING_VALUE",
|
|
85
86
|
* // },
|
|
86
87
|
* // GatingRule: { // GatingRule
|
|
87
88
|
* // ControlPanelArn: "STRING_VALUE", // required
|
|
@@ -100,6 +101,7 @@ export interface CreateSafetyRuleCommandOutput extends CreateSafetyRuleResponse,
|
|
|
100
101
|
* // "STRING_VALUE",
|
|
101
102
|
* // ],
|
|
102
103
|
* // WaitPeriodMs: Number("int"), // required
|
|
104
|
+
* // Owner: "STRING_VALUE",
|
|
103
105
|
* // },
|
|
104
106
|
* // };
|
|
105
107
|
*
|
|
@@ -43,6 +43,7 @@ export interface DescribeControlPanelCommandOutput extends DescribeControlPanelR
|
|
|
43
43
|
* // Name: "STRING_VALUE",
|
|
44
44
|
* // RoutingControlCount: Number("int"),
|
|
45
45
|
* // Status: "PENDING" || "DEPLOYED" || "PENDING_DELETION",
|
|
46
|
+
* // Owner: "STRING_VALUE",
|
|
46
47
|
* // },
|
|
47
48
|
* // };
|
|
48
49
|
*
|
|
@@ -41,6 +41,7 @@ export interface DescribeRoutingControlCommandOutput extends DescribeRoutingCont
|
|
|
41
41
|
* // Name: "STRING_VALUE",
|
|
42
42
|
* // RoutingControlArn: "STRING_VALUE",
|
|
43
43
|
* // Status: "PENDING" || "DEPLOYED" || "PENDING_DELETION",
|
|
44
|
+
* // Owner: "STRING_VALUE",
|
|
44
45
|
* // },
|
|
45
46
|
* // };
|
|
46
47
|
*
|
|
@@ -50,6 +50,7 @@ export interface DescribeSafetyRuleCommandOutput extends DescribeSafetyRuleRespo
|
|
|
50
50
|
* // SafetyRuleArn: "STRING_VALUE", // required
|
|
51
51
|
* // Status: "PENDING" || "DEPLOYED" || "PENDING_DELETION", // required
|
|
52
52
|
* // WaitPeriodMs: Number("int"), // required
|
|
53
|
+
* // Owner: "STRING_VALUE",
|
|
53
54
|
* // },
|
|
54
55
|
* // GatingRule: { // GatingRule
|
|
55
56
|
* // ControlPanelArn: "STRING_VALUE", // required
|
|
@@ -68,6 +69,7 @@ export interface DescribeSafetyRuleCommandOutput extends DescribeSafetyRuleRespo
|
|
|
68
69
|
* // "STRING_VALUE",
|
|
69
70
|
* // ],
|
|
70
71
|
* // WaitPeriodMs: Number("int"), // required
|
|
72
|
+
* // Owner: "STRING_VALUE",
|
|
71
73
|
* // },
|
|
72
74
|
* // };
|
|
73
75
|
*
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { GetResourcePolicyRequest, GetResourcePolicyResponse } from "../models/models_0";
|
|
5
|
+
import { Route53RecoveryControlConfigClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Route53RecoveryControlConfigClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetResourcePolicyCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetResourcePolicyCommandInput extends GetResourcePolicyRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetResourcePolicyCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetResourcePolicyCommandOutput extends GetResourcePolicyResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Get information about the resource policy for a cluster.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { Route53RecoveryControlConfigClient, GetResourcePolicyCommand } from "@aws-sdk/client-route53-recovery-control-config"; // ES Modules import
|
|
31
|
+
* // const { Route53RecoveryControlConfigClient, GetResourcePolicyCommand } = require("@aws-sdk/client-route53-recovery-control-config"); // CommonJS import
|
|
32
|
+
* const client = new Route53RecoveryControlConfigClient(config);
|
|
33
|
+
* const input = { // GetResourcePolicyRequest
|
|
34
|
+
* ResourceArn: "STRING_VALUE", // required
|
|
35
|
+
* };
|
|
36
|
+
* const command = new GetResourcePolicyCommand(input);
|
|
37
|
+
* const response = await client.send(command);
|
|
38
|
+
* // { // GetResourcePolicyResponse
|
|
39
|
+
* // Policy: "STRING_VALUE",
|
|
40
|
+
* // };
|
|
41
|
+
*
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* @param GetResourcePolicyCommandInput - {@link GetResourcePolicyCommandInput}
|
|
45
|
+
* @returns {@link GetResourcePolicyCommandOutput}
|
|
46
|
+
* @see {@link GetResourcePolicyCommandInput} for command's `input` shape.
|
|
47
|
+
* @see {@link GetResourcePolicyCommandOutput} for command's `response` shape.
|
|
48
|
+
* @see {@link Route53RecoveryControlConfigClientResolvedConfig | config} for Route53RecoveryControlConfigClient's `config` shape.
|
|
49
|
+
*
|
|
50
|
+
* @throws {@link InternalServerException} (server fault)
|
|
51
|
+
* <p>500 response - InternalServiceError. Temporary service error. Retry the request.</p>
|
|
52
|
+
*
|
|
53
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
54
|
+
* <p>404 response - MalformedQueryString. The query string contains a syntax error or resource not found.</p>
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link Route53RecoveryControlConfigServiceException}
|
|
57
|
+
* <p>Base exception class for all service exceptions from Route53RecoveryControlConfig service.</p>
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
export declare class GetResourcePolicyCommand extends $Command<GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput, Route53RecoveryControlConfigClientResolvedConfig> {
|
|
61
|
+
readonly input: GetResourcePolicyCommandInput;
|
|
62
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
63
|
+
/**
|
|
64
|
+
* @public
|
|
65
|
+
*/
|
|
66
|
+
constructor(input: GetResourcePolicyCommandInput);
|
|
67
|
+
/**
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: Route53RecoveryControlConfigClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput>;
|
|
71
|
+
/**
|
|
72
|
+
* @internal
|
|
73
|
+
*/
|
|
74
|
+
private serialize;
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
*/
|
|
78
|
+
private deserialize;
|
|
79
|
+
}
|
|
@@ -48,6 +48,7 @@ export interface ListClustersCommandOutput extends ListClustersResponse, __Metad
|
|
|
48
48
|
* // ],
|
|
49
49
|
* // Name: "STRING_VALUE",
|
|
50
50
|
* // Status: "PENDING" || "DEPLOYED" || "PENDING_DELETION",
|
|
51
|
+
* // Owner: "STRING_VALUE",
|
|
51
52
|
* // },
|
|
52
53
|
* // ],
|
|
53
54
|
* // NextToken: "STRING_VALUE",
|
|
@@ -46,6 +46,7 @@ export interface ListControlPanelsCommandOutput extends ListControlPanelsRespons
|
|
|
46
46
|
* // Name: "STRING_VALUE",
|
|
47
47
|
* // RoutingControlCount: Number("int"),
|
|
48
48
|
* // Status: "PENDING" || "DEPLOYED" || "PENDING_DELETION",
|
|
49
|
+
* // Owner: "STRING_VALUE",
|
|
49
50
|
* // },
|
|
50
51
|
* // ],
|
|
51
52
|
* // NextToken: "STRING_VALUE",
|
|
@@ -45,6 +45,7 @@ export interface ListRoutingControlsCommandOutput extends ListRoutingControlsRes
|
|
|
45
45
|
* // Name: "STRING_VALUE",
|
|
46
46
|
* // RoutingControlArn: "STRING_VALUE",
|
|
47
47
|
* // Status: "PENDING" || "DEPLOYED" || "PENDING_DELETION",
|
|
48
|
+
* // Owner: "STRING_VALUE",
|
|
48
49
|
* // },
|
|
49
50
|
* // ],
|
|
50
51
|
* // };
|
|
@@ -55,6 +55,7 @@ export interface ListSafetyRulesCommandOutput extends ListSafetyRulesResponse, _
|
|
|
55
55
|
* // SafetyRuleArn: "STRING_VALUE", // required
|
|
56
56
|
* // Status: "PENDING" || "DEPLOYED" || "PENDING_DELETION", // required
|
|
57
57
|
* // WaitPeriodMs: Number("int"), // required
|
|
58
|
+
* // Owner: "STRING_VALUE",
|
|
58
59
|
* // },
|
|
59
60
|
* // GATING: { // GatingRule
|
|
60
61
|
* // ControlPanelArn: "STRING_VALUE", // required
|
|
@@ -73,6 +74,7 @@ export interface ListSafetyRulesCommandOutput extends ListSafetyRulesResponse, _
|
|
|
73
74
|
* // "STRING_VALUE",
|
|
74
75
|
* // ],
|
|
75
76
|
* // WaitPeriodMs: Number("int"), // required
|
|
77
|
+
* // Owner: "STRING_VALUE",
|
|
76
78
|
* // },
|
|
77
79
|
* // },
|
|
78
80
|
* // ],
|
|
@@ -44,6 +44,7 @@ export interface UpdateControlPanelCommandOutput extends UpdateControlPanelRespo
|
|
|
44
44
|
* // Name: "STRING_VALUE",
|
|
45
45
|
* // RoutingControlCount: Number("int"),
|
|
46
46
|
* // Status: "PENDING" || "DEPLOYED" || "PENDING_DELETION",
|
|
47
|
+
* // Owner: "STRING_VALUE",
|
|
47
48
|
* // },
|
|
48
49
|
* // };
|
|
49
50
|
*
|
|
@@ -42,6 +42,7 @@ export interface UpdateRoutingControlCommandOutput extends UpdateRoutingControlR
|
|
|
42
42
|
* // Name: "STRING_VALUE",
|
|
43
43
|
* // RoutingControlArn: "STRING_VALUE",
|
|
44
44
|
* // Status: "PENDING" || "DEPLOYED" || "PENDING_DELETION",
|
|
45
|
+
* // Owner: "STRING_VALUE",
|
|
45
46
|
* // },
|
|
46
47
|
* // };
|
|
47
48
|
*
|
|
@@ -59,6 +59,7 @@ export interface UpdateSafetyRuleCommandOutput extends UpdateSafetyRuleResponse,
|
|
|
59
59
|
* // SafetyRuleArn: "STRING_VALUE", // required
|
|
60
60
|
* // Status: "PENDING" || "DEPLOYED" || "PENDING_DELETION", // required
|
|
61
61
|
* // WaitPeriodMs: Number("int"), // required
|
|
62
|
+
* // Owner: "STRING_VALUE",
|
|
62
63
|
* // },
|
|
63
64
|
* // GatingRule: { // GatingRule
|
|
64
65
|
* // ControlPanelArn: "STRING_VALUE", // required
|
|
@@ -77,6 +78,7 @@ export interface UpdateSafetyRuleCommandOutput extends UpdateSafetyRuleResponse,
|
|
|
77
78
|
* // "STRING_VALUE",
|
|
78
79
|
* // ],
|
|
79
80
|
* // WaitPeriodMs: Number("int"), // required
|
|
81
|
+
* // Owner: "STRING_VALUE",
|
|
80
82
|
* // },
|
|
81
83
|
* // };
|
|
82
84
|
*
|
|
@@ -10,6 +10,7 @@ export * from "./DescribeClusterCommand";
|
|
|
10
10
|
export * from "./DescribeControlPanelCommand";
|
|
11
11
|
export * from "./DescribeRoutingControlCommand";
|
|
12
12
|
export * from "./DescribeSafetyRuleCommand";
|
|
13
|
+
export * from "./GetResourcePolicyCommand";
|
|
13
14
|
export * from "./ListAssociatedRoute53HealthChecksCommand";
|
|
14
15
|
export * from "./ListClustersCommand";
|
|
15
16
|
export * from "./ListControlPanelsCommand";
|
|
@@ -53,7 +53,12 @@ export interface Cluster {
|
|
|
53
53
|
* @public
|
|
54
54
|
* <p>Deployment status of a resource. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.</p>
|
|
55
55
|
*/
|
|
56
|
-
Status?: Status
|
|
56
|
+
Status?: Status;
|
|
57
|
+
/**
|
|
58
|
+
* @public
|
|
59
|
+
* <p>The Amazon Web Services account ID of the cluster owner.</p>
|
|
60
|
+
*/
|
|
61
|
+
Owner?: string;
|
|
57
62
|
}
|
|
58
63
|
/**
|
|
59
64
|
* @public
|
|
@@ -89,7 +94,12 @@ export interface ControlPanel {
|
|
|
89
94
|
* @public
|
|
90
95
|
* <p>The deployment status of control panel. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.</p>
|
|
91
96
|
*/
|
|
92
|
-
Status?: Status
|
|
97
|
+
Status?: Status;
|
|
98
|
+
/**
|
|
99
|
+
* @public
|
|
100
|
+
* <p>The Amazon Web Services account ID of the control panel owner.</p>
|
|
101
|
+
*/
|
|
102
|
+
Owner?: string;
|
|
93
103
|
}
|
|
94
104
|
/**
|
|
95
105
|
* @public
|
|
@@ -115,7 +125,12 @@ export interface RoutingControl {
|
|
|
115
125
|
* @public
|
|
116
126
|
* <p>The deployment status of a routing control. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.</p>
|
|
117
127
|
*/
|
|
118
|
-
Status?: Status
|
|
128
|
+
Status?: Status;
|
|
129
|
+
/**
|
|
130
|
+
* @public
|
|
131
|
+
* <p>The Amazon Web Services account ID of the routing control owner.</p>
|
|
132
|
+
*/
|
|
133
|
+
Owner?: string;
|
|
119
134
|
}
|
|
120
135
|
/**
|
|
121
136
|
* @public
|
|
@@ -149,7 +164,7 @@ export interface RuleConfig {
|
|
|
149
164
|
* @public
|
|
150
165
|
* <p>A rule can be one of the following: ATLEAST, AND, or OR.</p>
|
|
151
166
|
*/
|
|
152
|
-
Type: RuleType |
|
|
167
|
+
Type: RuleType | undefined;
|
|
153
168
|
}
|
|
154
169
|
/**
|
|
155
170
|
* @public
|
|
@@ -185,12 +200,17 @@ export interface AssertionRule {
|
|
|
185
200
|
* @public
|
|
186
201
|
* <p>The deployment status of an assertion rule. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.</p>
|
|
187
202
|
*/
|
|
188
|
-
Status: Status |
|
|
203
|
+
Status: Status | undefined;
|
|
189
204
|
/**
|
|
190
205
|
* @public
|
|
191
206
|
* <p>An evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. This helps prevent "flapping" of state. The wait period is 5000 ms by default, but you can choose a custom value.</p>
|
|
192
207
|
*/
|
|
193
208
|
WaitPeriodMs: number | undefined;
|
|
209
|
+
/**
|
|
210
|
+
* @public
|
|
211
|
+
* <p>The Amazon Web Services account ID of the assertion rule owner.</p>
|
|
212
|
+
*/
|
|
213
|
+
Owner?: string;
|
|
194
214
|
}
|
|
195
215
|
/**
|
|
196
216
|
* @public
|
|
@@ -226,7 +246,7 @@ export interface GatingRule {
|
|
|
226
246
|
* @public
|
|
227
247
|
* <p>The deployment status of a gating rule. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.</p>
|
|
228
248
|
*/
|
|
229
|
-
Status: Status |
|
|
249
|
+
Status: Status | undefined;
|
|
230
250
|
/**
|
|
231
251
|
* @public
|
|
232
252
|
* <p>An array of target routing control Amazon Resource Names (ARNs) for which the states can only be updated if the rule configuration that you specify evaluates to true for the gating routing control. As a simple example, if you have a single gating control, it acts as an overall "on/off" switch for a set of target routing controls. You can use this to manually override automated failover, for example.</p>
|
|
@@ -237,6 +257,11 @@ export interface GatingRule {
|
|
|
237
257
|
* <p>An evaluation period, in milliseconds (ms), during which any request against the target routing controls will fail. This helps prevent "flapping" of state. The wait period is 5000 ms by default, but you can choose a custom value.</p>
|
|
238
258
|
*/
|
|
239
259
|
WaitPeriodMs: number | undefined;
|
|
260
|
+
/**
|
|
261
|
+
* @public
|
|
262
|
+
* <p>The Amazon Web Services account ID of the gating rule owner.</p>
|
|
263
|
+
*/
|
|
264
|
+
Owner?: string;
|
|
240
265
|
}
|
|
241
266
|
/**
|
|
242
267
|
* @public
|
|
@@ -743,6 +768,26 @@ export interface GatingRuleUpdate {
|
|
|
743
768
|
*/
|
|
744
769
|
WaitPeriodMs: number | undefined;
|
|
745
770
|
}
|
|
771
|
+
/**
|
|
772
|
+
* @public
|
|
773
|
+
*/
|
|
774
|
+
export interface GetResourcePolicyRequest {
|
|
775
|
+
/**
|
|
776
|
+
* @public
|
|
777
|
+
* <p>The Amazon Resource Name (ARN) of the resource.</p>
|
|
778
|
+
*/
|
|
779
|
+
ResourceArn: string | undefined;
|
|
780
|
+
}
|
|
781
|
+
/**
|
|
782
|
+
* @public
|
|
783
|
+
*/
|
|
784
|
+
export interface GetResourcePolicyResponse {
|
|
785
|
+
/**
|
|
786
|
+
* @public
|
|
787
|
+
* <p>The resource policy.</p>
|
|
788
|
+
*/
|
|
789
|
+
Policy?: string;
|
|
790
|
+
}
|
|
746
791
|
/**
|
|
747
792
|
* @public
|
|
748
793
|
*/
|
|
@@ -12,6 +12,7 @@ import { DescribeClusterCommandInput, DescribeClusterCommandOutput } from "../co
|
|
|
12
12
|
import { DescribeControlPanelCommandInput, DescribeControlPanelCommandOutput } from "../commands/DescribeControlPanelCommand";
|
|
13
13
|
import { DescribeRoutingControlCommandInput, DescribeRoutingControlCommandOutput } from "../commands/DescribeRoutingControlCommand";
|
|
14
14
|
import { DescribeSafetyRuleCommandInput, DescribeSafetyRuleCommandOutput } from "../commands/DescribeSafetyRuleCommand";
|
|
15
|
+
import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "../commands/GetResourcePolicyCommand";
|
|
15
16
|
import { ListAssociatedRoute53HealthChecksCommandInput, ListAssociatedRoute53HealthChecksCommandOutput } from "../commands/ListAssociatedRoute53HealthChecksCommand";
|
|
16
17
|
import { ListClustersCommandInput, ListClustersCommandOutput } from "../commands/ListClustersCommand";
|
|
17
18
|
import { ListControlPanelsCommandInput, ListControlPanelsCommandOutput } from "../commands/ListControlPanelsCommand";
|
|
@@ -71,6 +72,10 @@ export declare const se_DescribeRoutingControlCommand: (input: DescribeRoutingCo
|
|
|
71
72
|
* serializeAws_restJson1DescribeSafetyRuleCommand
|
|
72
73
|
*/
|
|
73
74
|
export declare const se_DescribeSafetyRuleCommand: (input: DescribeSafetyRuleCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
75
|
+
/**
|
|
76
|
+
* serializeAws_restJson1GetResourcePolicyCommand
|
|
77
|
+
*/
|
|
78
|
+
export declare const se_GetResourcePolicyCommand: (input: GetResourcePolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
74
79
|
/**
|
|
75
80
|
* serializeAws_restJson1ListAssociatedRoute53HealthChecksCommand
|
|
76
81
|
*/
|
|
@@ -163,6 +168,10 @@ export declare const de_DescribeRoutingControlCommand: (output: __HttpResponse,
|
|
|
163
168
|
* deserializeAws_restJson1DescribeSafetyRuleCommand
|
|
164
169
|
*/
|
|
165
170
|
export declare const de_DescribeSafetyRuleCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeSafetyRuleCommandOutput>;
|
|
171
|
+
/**
|
|
172
|
+
* deserializeAws_restJson1GetResourcePolicyCommand
|
|
173
|
+
*/
|
|
174
|
+
export declare const de_GetResourcePolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetResourcePolicyCommandOutput>;
|
|
166
175
|
/**
|
|
167
176
|
* deserializeAws_restJson1ListAssociatedRoute53HealthChecksCommand
|
|
168
177
|
*/
|
|
@@ -47,6 +47,10 @@ import {
|
|
|
47
47
|
DescribeSafetyRuleCommandInput,
|
|
48
48
|
DescribeSafetyRuleCommandOutput,
|
|
49
49
|
} from "./commands/DescribeSafetyRuleCommand";
|
|
50
|
+
import {
|
|
51
|
+
GetResourcePolicyCommandInput,
|
|
52
|
+
GetResourcePolicyCommandOutput,
|
|
53
|
+
} from "./commands/GetResourcePolicyCommand";
|
|
50
54
|
import {
|
|
51
55
|
ListAssociatedRoute53HealthChecksCommandInput,
|
|
52
56
|
ListAssociatedRoute53HealthChecksCommandOutput,
|
|
@@ -249,6 +253,19 @@ export interface Route53RecoveryControlConfig {
|
|
|
249
253
|
options: __HttpHandlerOptions,
|
|
250
254
|
cb: (err: any, data?: DescribeSafetyRuleCommandOutput) => void
|
|
251
255
|
): void;
|
|
256
|
+
getResourcePolicy(
|
|
257
|
+
args: GetResourcePolicyCommandInput,
|
|
258
|
+
options?: __HttpHandlerOptions
|
|
259
|
+
): Promise<GetResourcePolicyCommandOutput>;
|
|
260
|
+
getResourcePolicy(
|
|
261
|
+
args: GetResourcePolicyCommandInput,
|
|
262
|
+
cb: (err: any, data?: GetResourcePolicyCommandOutput) => void
|
|
263
|
+
): void;
|
|
264
|
+
getResourcePolicy(
|
|
265
|
+
args: GetResourcePolicyCommandInput,
|
|
266
|
+
options: __HttpHandlerOptions,
|
|
267
|
+
cb: (err: any, data?: GetResourcePolicyCommandOutput) => void
|
|
268
|
+
): void;
|
|
252
269
|
listAssociatedRoute53HealthChecks(
|
|
253
270
|
args: ListAssociatedRoute53HealthChecksCommandInput,
|
|
254
271
|
options?: __HttpHandlerOptions
|
|
@@ -93,6 +93,10 @@ import {
|
|
|
93
93
|
DescribeSafetyRuleCommandInput,
|
|
94
94
|
DescribeSafetyRuleCommandOutput,
|
|
95
95
|
} from "./commands/DescribeSafetyRuleCommand";
|
|
96
|
+
import {
|
|
97
|
+
GetResourcePolicyCommandInput,
|
|
98
|
+
GetResourcePolicyCommandOutput,
|
|
99
|
+
} from "./commands/GetResourcePolicyCommand";
|
|
96
100
|
import {
|
|
97
101
|
ListAssociatedRoute53HealthChecksCommandInput,
|
|
98
102
|
ListAssociatedRoute53HealthChecksCommandOutput,
|
|
@@ -157,6 +161,7 @@ export type ServiceInputTypes =
|
|
|
157
161
|
| DescribeControlPanelCommandInput
|
|
158
162
|
| DescribeRoutingControlCommandInput
|
|
159
163
|
| DescribeSafetyRuleCommandInput
|
|
164
|
+
| GetResourcePolicyCommandInput
|
|
160
165
|
| ListAssociatedRoute53HealthChecksCommandInput
|
|
161
166
|
| ListClustersCommandInput
|
|
162
167
|
| ListControlPanelsCommandInput
|
|
@@ -181,6 +186,7 @@ export type ServiceOutputTypes =
|
|
|
181
186
|
| DescribeControlPanelCommandOutput
|
|
182
187
|
| DescribeRoutingControlCommandOutput
|
|
183
188
|
| DescribeSafetyRuleCommandOutput
|
|
189
|
+
| GetResourcePolicyCommandOutput
|
|
184
190
|
| ListAssociatedRoute53HealthChecksCommandOutput
|
|
185
191
|
| ListClustersCommandOutput
|
|
186
192
|
| ListControlPanelsCommandOutput
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@smithy/types";
|
|
9
|
+
import {
|
|
10
|
+
GetResourcePolicyRequest,
|
|
11
|
+
GetResourcePolicyResponse,
|
|
12
|
+
} from "../models/models_0";
|
|
13
|
+
import {
|
|
14
|
+
Route53RecoveryControlConfigClientResolvedConfig,
|
|
15
|
+
ServiceInputTypes,
|
|
16
|
+
ServiceOutputTypes,
|
|
17
|
+
} from "../Route53RecoveryControlConfigClient";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
19
|
+
export interface GetResourcePolicyCommandInput
|
|
20
|
+
extends GetResourcePolicyRequest {}
|
|
21
|
+
export interface GetResourcePolicyCommandOutput
|
|
22
|
+
extends GetResourcePolicyResponse,
|
|
23
|
+
__MetadataBearer {}
|
|
24
|
+
export declare class GetResourcePolicyCommand extends $Command<
|
|
25
|
+
GetResourcePolicyCommandInput,
|
|
26
|
+
GetResourcePolicyCommandOutput,
|
|
27
|
+
Route53RecoveryControlConfigClientResolvedConfig
|
|
28
|
+
> {
|
|
29
|
+
readonly input: GetResourcePolicyCommandInput;
|
|
30
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
31
|
+
constructor(input: GetResourcePolicyCommandInput);
|
|
32
|
+
resolveMiddleware(
|
|
33
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
34
|
+
configuration: Route53RecoveryControlConfigClientResolvedConfig,
|
|
35
|
+
options?: __HttpHandlerOptions
|
|
36
|
+
): Handler<GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput>;
|
|
37
|
+
private serialize;
|
|
38
|
+
private deserialize;
|
|
39
|
+
}
|
|
@@ -10,6 +10,7 @@ export * from "./DescribeClusterCommand";
|
|
|
10
10
|
export * from "./DescribeControlPanelCommand";
|
|
11
11
|
export * from "./DescribeRoutingControlCommand";
|
|
12
12
|
export * from "./DescribeSafetyRuleCommand";
|
|
13
|
+
export * from "./GetResourcePolicyCommand";
|
|
13
14
|
export * from "./ListAssociatedRoute53HealthChecksCommand";
|
|
14
15
|
export * from "./ListClustersCommand";
|
|
15
16
|
export * from "./ListControlPanelsCommand";
|
|
@@ -14,7 +14,8 @@ export interface Cluster {
|
|
|
14
14
|
ClusterArn?: string;
|
|
15
15
|
ClusterEndpoints?: ClusterEndpoint[];
|
|
16
16
|
Name?: string;
|
|
17
|
-
Status?: Status
|
|
17
|
+
Status?: Status;
|
|
18
|
+
Owner?: string;
|
|
18
19
|
}
|
|
19
20
|
export interface ControlPanel {
|
|
20
21
|
ClusterArn?: string;
|
|
@@ -22,13 +23,15 @@ export interface ControlPanel {
|
|
|
22
23
|
DefaultControlPanel?: boolean;
|
|
23
24
|
Name?: string;
|
|
24
25
|
RoutingControlCount?: number;
|
|
25
|
-
Status?: Status
|
|
26
|
+
Status?: Status;
|
|
27
|
+
Owner?: string;
|
|
26
28
|
}
|
|
27
29
|
export interface RoutingControl {
|
|
28
30
|
ControlPanelArn?: string;
|
|
29
31
|
Name?: string;
|
|
30
32
|
RoutingControlArn?: string;
|
|
31
|
-
Status?: Status
|
|
33
|
+
Status?: Status;
|
|
34
|
+
Owner?: string;
|
|
32
35
|
}
|
|
33
36
|
export declare const RuleType: {
|
|
34
37
|
readonly AND: "AND";
|
|
@@ -39,7 +42,7 @@ export type RuleType = (typeof RuleType)[keyof typeof RuleType];
|
|
|
39
42
|
export interface RuleConfig {
|
|
40
43
|
Inverted: boolean | undefined;
|
|
41
44
|
Threshold: number | undefined;
|
|
42
|
-
Type: RuleType |
|
|
45
|
+
Type: RuleType | undefined;
|
|
43
46
|
}
|
|
44
47
|
export interface AssertionRule {
|
|
45
48
|
AssertedControls: string[] | undefined;
|
|
@@ -47,8 +50,9 @@ export interface AssertionRule {
|
|
|
47
50
|
Name: string | undefined;
|
|
48
51
|
RuleConfig: RuleConfig | undefined;
|
|
49
52
|
SafetyRuleArn: string | undefined;
|
|
50
|
-
Status: Status |
|
|
53
|
+
Status: Status | undefined;
|
|
51
54
|
WaitPeriodMs: number | undefined;
|
|
55
|
+
Owner?: string;
|
|
52
56
|
}
|
|
53
57
|
export interface GatingRule {
|
|
54
58
|
ControlPanelArn: string | undefined;
|
|
@@ -56,9 +60,10 @@ export interface GatingRule {
|
|
|
56
60
|
Name: string | undefined;
|
|
57
61
|
RuleConfig: RuleConfig | undefined;
|
|
58
62
|
SafetyRuleArn: string | undefined;
|
|
59
|
-
Status: Status |
|
|
63
|
+
Status: Status | undefined;
|
|
60
64
|
TargetControls: string[] | undefined;
|
|
61
65
|
WaitPeriodMs: number | undefined;
|
|
66
|
+
Owner?: string;
|
|
62
67
|
}
|
|
63
68
|
export interface Rule {
|
|
64
69
|
ASSERTION?: AssertionRule;
|
|
@@ -220,6 +225,12 @@ export interface GatingRuleUpdate {
|
|
|
220
225
|
SafetyRuleArn: string | undefined;
|
|
221
226
|
WaitPeriodMs: number | undefined;
|
|
222
227
|
}
|
|
228
|
+
export interface GetResourcePolicyRequest {
|
|
229
|
+
ResourceArn: string | undefined;
|
|
230
|
+
}
|
|
231
|
+
export interface GetResourcePolicyResponse {
|
|
232
|
+
Policy?: string;
|
|
233
|
+
}
|
|
223
234
|
export interface ListAssociatedRoute53HealthChecksRequest {
|
|
224
235
|
MaxResults?: number;
|
|
225
236
|
NextToken?: string;
|
|
@@ -51,6 +51,10 @@ import {
|
|
|
51
51
|
DescribeSafetyRuleCommandInput,
|
|
52
52
|
DescribeSafetyRuleCommandOutput,
|
|
53
53
|
} from "../commands/DescribeSafetyRuleCommand";
|
|
54
|
+
import {
|
|
55
|
+
GetResourcePolicyCommandInput,
|
|
56
|
+
GetResourcePolicyCommandOutput,
|
|
57
|
+
} from "../commands/GetResourcePolicyCommand";
|
|
54
58
|
import {
|
|
55
59
|
ListAssociatedRoute53HealthChecksCommandInput,
|
|
56
60
|
ListAssociatedRoute53HealthChecksCommandOutput,
|
|
@@ -143,6 +147,10 @@ export declare const se_DescribeSafetyRuleCommand: (
|
|
|
143
147
|
input: DescribeSafetyRuleCommandInput,
|
|
144
148
|
context: __SerdeContext
|
|
145
149
|
) => Promise<__HttpRequest>;
|
|
150
|
+
export declare const se_GetResourcePolicyCommand: (
|
|
151
|
+
input: GetResourcePolicyCommandInput,
|
|
152
|
+
context: __SerdeContext
|
|
153
|
+
) => Promise<__HttpRequest>;
|
|
146
154
|
export declare const se_ListAssociatedRoute53HealthChecksCommand: (
|
|
147
155
|
input: ListAssociatedRoute53HealthChecksCommandInput,
|
|
148
156
|
context: __SerdeContext
|
|
@@ -235,6 +243,10 @@ export declare const de_DescribeSafetyRuleCommand: (
|
|
|
235
243
|
output: __HttpResponse,
|
|
236
244
|
context: __SerdeContext
|
|
237
245
|
) => Promise<DescribeSafetyRuleCommandOutput>;
|
|
246
|
+
export declare const de_GetResourcePolicyCommand: (
|
|
247
|
+
output: __HttpResponse,
|
|
248
|
+
context: __SerdeContext
|
|
249
|
+
) => Promise<GetResourcePolicyCommandOutput>;
|
|
238
250
|
export declare const de_ListAssociatedRoute53HealthChecksCommand: (
|
|
239
251
|
output: __HttpResponse,
|
|
240
252
|
context: __SerdeContext
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-route53-recovery-control-config",
|
|
3
3
|
"description": "AWS SDK for JavaScript Route53 Recovery Control Config Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.430.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,28 +21,28 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.430.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.430.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.429.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.428.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.428.0",
|
|
29
29
|
"@aws-sdk/middleware-signing": "3.428.0",
|
|
30
30
|
"@aws-sdk/middleware-user-agent": "3.428.0",
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.430.0",
|
|
32
32
|
"@aws-sdk/types": "3.428.0",
|
|
33
33
|
"@aws-sdk/util-endpoints": "3.428.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.428.0",
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
-
"@smithy/config-resolver": "^2.0.
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.430.0",
|
|
36
|
+
"@smithy/config-resolver": "^2.0.15",
|
|
37
37
|
"@smithy/fetch-http-handler": "^2.2.3",
|
|
38
38
|
"@smithy/hash-node": "^2.0.11",
|
|
39
39
|
"@smithy/invalid-dependency": "^2.0.11",
|
|
40
40
|
"@smithy/middleware-content-length": "^2.0.13",
|
|
41
|
-
"@smithy/middleware-endpoint": "^2.1.
|
|
42
|
-
"@smithy/middleware-retry": "^2.0.
|
|
41
|
+
"@smithy/middleware-endpoint": "^2.1.2",
|
|
42
|
+
"@smithy/middleware-retry": "^2.0.17",
|
|
43
43
|
"@smithy/middleware-serde": "^2.0.11",
|
|
44
44
|
"@smithy/middleware-stack": "^2.0.5",
|
|
45
|
-
"@smithy/node-config-provider": "^2.1.
|
|
45
|
+
"@smithy/node-config-provider": "^2.1.2",
|
|
46
46
|
"@smithy/node-http-handler": "^2.1.7",
|
|
47
47
|
"@smithy/protocol-http": "^3.0.7",
|
|
48
48
|
"@smithy/smithy-client": "^2.1.11",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@smithy/util-body-length-browser": "^2.0.0",
|
|
53
53
|
"@smithy/util-body-length-node": "^2.1.0",
|
|
54
54
|
"@smithy/util-defaults-mode-browser": "^2.0.15",
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^2.0.
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^2.0.20",
|
|
56
56
|
"@smithy/util-retry": "^2.0.4",
|
|
57
57
|
"@smithy/util-utf8": "^2.0.0",
|
|
58
58
|
"@smithy/util-waiter": "^2.0.11",
|