@aws-sdk/client-route53-recovery-cluster 3.310.0 → 3.312.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.
|
@@ -6,40 +6,28 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Route53RecoveryClusterServiceException_1 = require("../models/Route53RecoveryClusterServiceException");
|
|
8
8
|
const se_GetRoutingControlStateCommand = async (input, context) => {
|
|
9
|
-
const headers =
|
|
10
|
-
"content-type": "application/x-amz-json-1.0",
|
|
11
|
-
"x-amz-target": "ToggleCustomerAPI.GetRoutingControlState",
|
|
12
|
-
};
|
|
9
|
+
const headers = sharedHeaders("GetRoutingControlState");
|
|
13
10
|
let body;
|
|
14
11
|
body = JSON.stringify(se_GetRoutingControlStateRequest(input, context));
|
|
15
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
13
|
};
|
|
17
14
|
exports.se_GetRoutingControlStateCommand = se_GetRoutingControlStateCommand;
|
|
18
15
|
const se_ListRoutingControlsCommand = async (input, context) => {
|
|
19
|
-
const headers =
|
|
20
|
-
"content-type": "application/x-amz-json-1.0",
|
|
21
|
-
"x-amz-target": "ToggleCustomerAPI.ListRoutingControls",
|
|
22
|
-
};
|
|
16
|
+
const headers = sharedHeaders("ListRoutingControls");
|
|
23
17
|
let body;
|
|
24
18
|
body = JSON.stringify(se_ListRoutingControlsRequest(input, context));
|
|
25
19
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
26
20
|
};
|
|
27
21
|
exports.se_ListRoutingControlsCommand = se_ListRoutingControlsCommand;
|
|
28
22
|
const se_UpdateRoutingControlStateCommand = async (input, context) => {
|
|
29
|
-
const headers =
|
|
30
|
-
"content-type": "application/x-amz-json-1.0",
|
|
31
|
-
"x-amz-target": "ToggleCustomerAPI.UpdateRoutingControlState",
|
|
32
|
-
};
|
|
23
|
+
const headers = sharedHeaders("UpdateRoutingControlState");
|
|
33
24
|
let body;
|
|
34
25
|
body = JSON.stringify(se_UpdateRoutingControlStateRequest(input, context));
|
|
35
26
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
27
|
};
|
|
37
28
|
exports.se_UpdateRoutingControlStateCommand = se_UpdateRoutingControlStateCommand;
|
|
38
29
|
const se_UpdateRoutingControlStatesCommand = async (input, context) => {
|
|
39
|
-
const headers =
|
|
40
|
-
"content-type": "application/x-amz-json-1.0",
|
|
41
|
-
"x-amz-target": "ToggleCustomerAPI.UpdateRoutingControlStates",
|
|
42
|
-
};
|
|
30
|
+
const headers = sharedHeaders("UpdateRoutingControlStates");
|
|
43
31
|
let body;
|
|
44
32
|
body = JSON.stringify(se_UpdateRoutingControlStatesRequest(input, context));
|
|
45
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -512,6 +500,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
512
500
|
}
|
|
513
501
|
return new protocol_http_1.HttpRequest(contents);
|
|
514
502
|
};
|
|
503
|
+
function sharedHeaders(operation) {
|
|
504
|
+
return {
|
|
505
|
+
"content-type": "application/x-amz-json-1.0",
|
|
506
|
+
"x-amz-target": `ToggleCustomerAPI.${operation}`,
|
|
507
|
+
};
|
|
508
|
+
}
|
|
515
509
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
516
510
|
if (encoded.length) {
|
|
517
511
|
return JSON.parse(encoded);
|
|
@@ -3,37 +3,25 @@ import { decorateServiceException as __decorateServiceException, expectInt32 as
|
|
|
3
3
|
import { AccessDeniedException, ConflictException, EndpointTemporarilyUnavailableException, InternalServerException, ResourceNotFoundException, ServiceLimitExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
4
4
|
import { Route53RecoveryClusterServiceException as __BaseException } from "../models/Route53RecoveryClusterServiceException";
|
|
5
5
|
export const se_GetRoutingControlStateCommand = async (input, context) => {
|
|
6
|
-
const headers =
|
|
7
|
-
"content-type": "application/x-amz-json-1.0",
|
|
8
|
-
"x-amz-target": "ToggleCustomerAPI.GetRoutingControlState",
|
|
9
|
-
};
|
|
6
|
+
const headers = sharedHeaders("GetRoutingControlState");
|
|
10
7
|
let body;
|
|
11
8
|
body = JSON.stringify(se_GetRoutingControlStateRequest(input, context));
|
|
12
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
10
|
};
|
|
14
11
|
export const se_ListRoutingControlsCommand = async (input, context) => {
|
|
15
|
-
const headers =
|
|
16
|
-
"content-type": "application/x-amz-json-1.0",
|
|
17
|
-
"x-amz-target": "ToggleCustomerAPI.ListRoutingControls",
|
|
18
|
-
};
|
|
12
|
+
const headers = sharedHeaders("ListRoutingControls");
|
|
19
13
|
let body;
|
|
20
14
|
body = JSON.stringify(se_ListRoutingControlsRequest(input, context));
|
|
21
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
16
|
};
|
|
23
17
|
export const se_UpdateRoutingControlStateCommand = async (input, context) => {
|
|
24
|
-
const headers =
|
|
25
|
-
"content-type": "application/x-amz-json-1.0",
|
|
26
|
-
"x-amz-target": "ToggleCustomerAPI.UpdateRoutingControlState",
|
|
27
|
-
};
|
|
18
|
+
const headers = sharedHeaders("UpdateRoutingControlState");
|
|
28
19
|
let body;
|
|
29
20
|
body = JSON.stringify(se_UpdateRoutingControlStateRequest(input, context));
|
|
30
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
22
|
};
|
|
32
23
|
export const se_UpdateRoutingControlStatesCommand = async (input, context) => {
|
|
33
|
-
const headers =
|
|
34
|
-
"content-type": "application/x-amz-json-1.0",
|
|
35
|
-
"x-amz-target": "ToggleCustomerAPI.UpdateRoutingControlStates",
|
|
36
|
-
};
|
|
24
|
+
const headers = sharedHeaders("UpdateRoutingControlStates");
|
|
37
25
|
let body;
|
|
38
26
|
body = JSON.stringify(se_UpdateRoutingControlStatesRequest(input, context));
|
|
39
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -501,6 +489,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
501
489
|
}
|
|
502
490
|
return new __HttpRequest(contents);
|
|
503
491
|
};
|
|
492
|
+
function sharedHeaders(operation) {
|
|
493
|
+
return {
|
|
494
|
+
"content-type": "application/x-amz-json-1.0",
|
|
495
|
+
"x-amz-target": `ToggleCustomerAPI.${operation}`,
|
|
496
|
+
};
|
|
497
|
+
}
|
|
504
498
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
505
499
|
if (encoded.length) {
|
|
506
500
|
return JSON.parse(encoded);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-route53-recovery-cluster",
|
|
3
3
|
"description": "AWS SDK for JavaScript Route53 Recovery Cluster Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.312.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,7 +21,7 @@
|
|
|
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.
|
|
24
|
+
"@aws-sdk/client-sts": "3.312.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
26
|
"@aws-sdk/credential-provider-node": "3.310.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|