@aws-sdk/client-cloudcontrol 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.
|
@@ -7,80 +7,56 @@ const uuid_1 = require("uuid");
|
|
|
7
7
|
const CloudControlServiceException_1 = require("../models/CloudControlServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const se_CancelResourceRequestCommand = async (input, context) => {
|
|
10
|
-
const headers =
|
|
11
|
-
"content-type": "application/x-amz-json-1.0",
|
|
12
|
-
"x-amz-target": "CloudApiService.CancelResourceRequest",
|
|
13
|
-
};
|
|
10
|
+
const headers = sharedHeaders("CancelResourceRequest");
|
|
14
11
|
let body;
|
|
15
12
|
body = JSON.stringify(se_CancelResourceRequestInput(input, context));
|
|
16
13
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
14
|
};
|
|
18
15
|
exports.se_CancelResourceRequestCommand = se_CancelResourceRequestCommand;
|
|
19
16
|
const se_CreateResourceCommand = async (input, context) => {
|
|
20
|
-
const headers =
|
|
21
|
-
"content-type": "application/x-amz-json-1.0",
|
|
22
|
-
"x-amz-target": "CloudApiService.CreateResource",
|
|
23
|
-
};
|
|
17
|
+
const headers = sharedHeaders("CreateResource");
|
|
24
18
|
let body;
|
|
25
19
|
body = JSON.stringify(se_CreateResourceInput(input, context));
|
|
26
20
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
21
|
};
|
|
28
22
|
exports.se_CreateResourceCommand = se_CreateResourceCommand;
|
|
29
23
|
const se_DeleteResourceCommand = async (input, context) => {
|
|
30
|
-
const headers =
|
|
31
|
-
"content-type": "application/x-amz-json-1.0",
|
|
32
|
-
"x-amz-target": "CloudApiService.DeleteResource",
|
|
33
|
-
};
|
|
24
|
+
const headers = sharedHeaders("DeleteResource");
|
|
34
25
|
let body;
|
|
35
26
|
body = JSON.stringify(se_DeleteResourceInput(input, context));
|
|
36
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
28
|
};
|
|
38
29
|
exports.se_DeleteResourceCommand = se_DeleteResourceCommand;
|
|
39
30
|
const se_GetResourceCommand = async (input, context) => {
|
|
40
|
-
const headers =
|
|
41
|
-
"content-type": "application/x-amz-json-1.0",
|
|
42
|
-
"x-amz-target": "CloudApiService.GetResource",
|
|
43
|
-
};
|
|
31
|
+
const headers = sharedHeaders("GetResource");
|
|
44
32
|
let body;
|
|
45
33
|
body = JSON.stringify(se_GetResourceInput(input, context));
|
|
46
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
35
|
};
|
|
48
36
|
exports.se_GetResourceCommand = se_GetResourceCommand;
|
|
49
37
|
const se_GetResourceRequestStatusCommand = async (input, context) => {
|
|
50
|
-
const headers =
|
|
51
|
-
"content-type": "application/x-amz-json-1.0",
|
|
52
|
-
"x-amz-target": "CloudApiService.GetResourceRequestStatus",
|
|
53
|
-
};
|
|
38
|
+
const headers = sharedHeaders("GetResourceRequestStatus");
|
|
54
39
|
let body;
|
|
55
40
|
body = JSON.stringify(se_GetResourceRequestStatusInput(input, context));
|
|
56
41
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
42
|
};
|
|
58
43
|
exports.se_GetResourceRequestStatusCommand = se_GetResourceRequestStatusCommand;
|
|
59
44
|
const se_ListResourceRequestsCommand = async (input, context) => {
|
|
60
|
-
const headers =
|
|
61
|
-
"content-type": "application/x-amz-json-1.0",
|
|
62
|
-
"x-amz-target": "CloudApiService.ListResourceRequests",
|
|
63
|
-
};
|
|
45
|
+
const headers = sharedHeaders("ListResourceRequests");
|
|
64
46
|
let body;
|
|
65
47
|
body = JSON.stringify(se_ListResourceRequestsInput(input, context));
|
|
66
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
49
|
};
|
|
68
50
|
exports.se_ListResourceRequestsCommand = se_ListResourceRequestsCommand;
|
|
69
51
|
const se_ListResourcesCommand = async (input, context) => {
|
|
70
|
-
const headers =
|
|
71
|
-
"content-type": "application/x-amz-json-1.0",
|
|
72
|
-
"x-amz-target": "CloudApiService.ListResources",
|
|
73
|
-
};
|
|
52
|
+
const headers = sharedHeaders("ListResources");
|
|
74
53
|
let body;
|
|
75
54
|
body = JSON.stringify(se_ListResourcesInput(input, context));
|
|
76
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
56
|
};
|
|
78
57
|
exports.se_ListResourcesCommand = se_ListResourcesCommand;
|
|
79
58
|
const se_UpdateResourceCommand = async (input, context) => {
|
|
80
|
-
const headers =
|
|
81
|
-
"content-type": "application/x-amz-json-1.0",
|
|
82
|
-
"x-amz-target": "CloudApiService.UpdateResource",
|
|
83
|
-
};
|
|
59
|
+
const headers = sharedHeaders("UpdateResource");
|
|
84
60
|
let body;
|
|
85
61
|
body = JSON.stringify(se_UpdateResourceInput(input, context));
|
|
86
62
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -1113,6 +1089,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
1113
1089
|
}
|
|
1114
1090
|
return new protocol_http_1.HttpRequest(contents);
|
|
1115
1091
|
};
|
|
1092
|
+
function sharedHeaders(operation) {
|
|
1093
|
+
return {
|
|
1094
|
+
"content-type": "application/x-amz-json-1.0",
|
|
1095
|
+
"x-amz-target": `CloudApiService.${operation}`,
|
|
1096
|
+
};
|
|
1097
|
+
}
|
|
1116
1098
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1117
1099
|
if (encoded.length) {
|
|
1118
1100
|
return JSON.parse(encoded);
|
|
@@ -4,73 +4,49 @@ import { v4 as generateIdempotencyToken } from "uuid";
|
|
|
4
4
|
import { CloudControlServiceException as __BaseException } from "../models/CloudControlServiceException";
|
|
5
5
|
import { AlreadyExistsException, ClientTokenConflictException, ConcurrentModificationException, ConcurrentOperationException, GeneralServiceException, HandlerFailureException, HandlerInternalFailureException, InvalidCredentialsException, InvalidRequestException, NetworkFailureException, NotStabilizedException, NotUpdatableException, PrivateTypeException, RequestTokenNotFoundException, ResourceConflictException, ResourceNotFoundException, ServiceInternalErrorException, ServiceLimitExceededException, ThrottlingException, TypeNotFoundException, UnsupportedActionException, } from "../models/models_0";
|
|
6
6
|
export const se_CancelResourceRequestCommand = async (input, context) => {
|
|
7
|
-
const headers =
|
|
8
|
-
"content-type": "application/x-amz-json-1.0",
|
|
9
|
-
"x-amz-target": "CloudApiService.CancelResourceRequest",
|
|
10
|
-
};
|
|
7
|
+
const headers = sharedHeaders("CancelResourceRequest");
|
|
11
8
|
let body;
|
|
12
9
|
body = JSON.stringify(se_CancelResourceRequestInput(input, context));
|
|
13
10
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
11
|
};
|
|
15
12
|
export const se_CreateResourceCommand = async (input, context) => {
|
|
16
|
-
const headers =
|
|
17
|
-
"content-type": "application/x-amz-json-1.0",
|
|
18
|
-
"x-amz-target": "CloudApiService.CreateResource",
|
|
19
|
-
};
|
|
13
|
+
const headers = sharedHeaders("CreateResource");
|
|
20
14
|
let body;
|
|
21
15
|
body = JSON.stringify(se_CreateResourceInput(input, context));
|
|
22
16
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
17
|
};
|
|
24
18
|
export const se_DeleteResourceCommand = async (input, context) => {
|
|
25
|
-
const headers =
|
|
26
|
-
"content-type": "application/x-amz-json-1.0",
|
|
27
|
-
"x-amz-target": "CloudApiService.DeleteResource",
|
|
28
|
-
};
|
|
19
|
+
const headers = sharedHeaders("DeleteResource");
|
|
29
20
|
let body;
|
|
30
21
|
body = JSON.stringify(se_DeleteResourceInput(input, context));
|
|
31
22
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
32
23
|
};
|
|
33
24
|
export const se_GetResourceCommand = async (input, context) => {
|
|
34
|
-
const headers =
|
|
35
|
-
"content-type": "application/x-amz-json-1.0",
|
|
36
|
-
"x-amz-target": "CloudApiService.GetResource",
|
|
37
|
-
};
|
|
25
|
+
const headers = sharedHeaders("GetResource");
|
|
38
26
|
let body;
|
|
39
27
|
body = JSON.stringify(se_GetResourceInput(input, context));
|
|
40
28
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
29
|
};
|
|
42
30
|
export const se_GetResourceRequestStatusCommand = async (input, context) => {
|
|
43
|
-
const headers =
|
|
44
|
-
"content-type": "application/x-amz-json-1.0",
|
|
45
|
-
"x-amz-target": "CloudApiService.GetResourceRequestStatus",
|
|
46
|
-
};
|
|
31
|
+
const headers = sharedHeaders("GetResourceRequestStatus");
|
|
47
32
|
let body;
|
|
48
33
|
body = JSON.stringify(se_GetResourceRequestStatusInput(input, context));
|
|
49
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
35
|
};
|
|
51
36
|
export const se_ListResourceRequestsCommand = async (input, context) => {
|
|
52
|
-
const headers =
|
|
53
|
-
"content-type": "application/x-amz-json-1.0",
|
|
54
|
-
"x-amz-target": "CloudApiService.ListResourceRequests",
|
|
55
|
-
};
|
|
37
|
+
const headers = sharedHeaders("ListResourceRequests");
|
|
56
38
|
let body;
|
|
57
39
|
body = JSON.stringify(se_ListResourceRequestsInput(input, context));
|
|
58
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
41
|
};
|
|
60
42
|
export const se_ListResourcesCommand = async (input, context) => {
|
|
61
|
-
const headers =
|
|
62
|
-
"content-type": "application/x-amz-json-1.0",
|
|
63
|
-
"x-amz-target": "CloudApiService.ListResources",
|
|
64
|
-
};
|
|
43
|
+
const headers = sharedHeaders("ListResources");
|
|
65
44
|
let body;
|
|
66
45
|
body = JSON.stringify(se_ListResourcesInput(input, context));
|
|
67
46
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
68
47
|
};
|
|
69
48
|
export const se_UpdateResourceCommand = async (input, context) => {
|
|
70
|
-
const headers =
|
|
71
|
-
"content-type": "application/x-amz-json-1.0",
|
|
72
|
-
"x-amz-target": "CloudApiService.UpdateResource",
|
|
73
|
-
};
|
|
49
|
+
const headers = sharedHeaders("UpdateResource");
|
|
74
50
|
let body;
|
|
75
51
|
body = JSON.stringify(se_UpdateResourceInput(input, context));
|
|
76
52
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -1094,6 +1070,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
1094
1070
|
}
|
|
1095
1071
|
return new __HttpRequest(contents);
|
|
1096
1072
|
};
|
|
1073
|
+
function sharedHeaders(operation) {
|
|
1074
|
+
return {
|
|
1075
|
+
"content-type": "application/x-amz-json-1.0",
|
|
1076
|
+
"x-amz-target": `CloudApiService.${operation}`,
|
|
1077
|
+
};
|
|
1078
|
+
}
|
|
1097
1079
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1098
1080
|
if (encoded.length) {
|
|
1099
1081
|
return JSON.parse(encoded);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudcontrol",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloudcontrol 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",
|