@aws-sdk/client-health 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,128 +6,89 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
6
6
|
const HealthServiceException_1 = require("../models/HealthServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const se_DescribeAffectedAccountsForOrganizationCommand = async (input, context) => {
|
|
9
|
-
const headers =
|
|
10
|
-
"content-type": "application/x-amz-json-1.1",
|
|
11
|
-
"x-amz-target": "AWSHealth_20160804.DescribeAffectedAccountsForOrganization",
|
|
12
|
-
};
|
|
9
|
+
const headers = sharedHeaders("DescribeAffectedAccountsForOrganization");
|
|
13
10
|
let body;
|
|
14
11
|
body = JSON.stringify(se_DescribeAffectedAccountsForOrganizationRequest(input, context));
|
|
15
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
13
|
};
|
|
17
14
|
exports.se_DescribeAffectedAccountsForOrganizationCommand = se_DescribeAffectedAccountsForOrganizationCommand;
|
|
18
15
|
const se_DescribeAffectedEntitiesCommand = async (input, context) => {
|
|
19
|
-
const headers =
|
|
20
|
-
"content-type": "application/x-amz-json-1.1",
|
|
21
|
-
"x-amz-target": "AWSHealth_20160804.DescribeAffectedEntities",
|
|
22
|
-
};
|
|
16
|
+
const headers = sharedHeaders("DescribeAffectedEntities");
|
|
23
17
|
let body;
|
|
24
18
|
body = JSON.stringify(se_DescribeAffectedEntitiesRequest(input, context));
|
|
25
19
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
26
20
|
};
|
|
27
21
|
exports.se_DescribeAffectedEntitiesCommand = se_DescribeAffectedEntitiesCommand;
|
|
28
22
|
const se_DescribeAffectedEntitiesForOrganizationCommand = async (input, context) => {
|
|
29
|
-
const headers =
|
|
30
|
-
"content-type": "application/x-amz-json-1.1",
|
|
31
|
-
"x-amz-target": "AWSHealth_20160804.DescribeAffectedEntitiesForOrganization",
|
|
32
|
-
};
|
|
23
|
+
const headers = sharedHeaders("DescribeAffectedEntitiesForOrganization");
|
|
33
24
|
let body;
|
|
34
25
|
body = JSON.stringify(se_DescribeAffectedEntitiesForOrganizationRequest(input, context));
|
|
35
26
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
27
|
};
|
|
37
28
|
exports.se_DescribeAffectedEntitiesForOrganizationCommand = se_DescribeAffectedEntitiesForOrganizationCommand;
|
|
38
29
|
const se_DescribeEntityAggregatesCommand = async (input, context) => {
|
|
39
|
-
const headers =
|
|
40
|
-
"content-type": "application/x-amz-json-1.1",
|
|
41
|
-
"x-amz-target": "AWSHealth_20160804.DescribeEntityAggregates",
|
|
42
|
-
};
|
|
30
|
+
const headers = sharedHeaders("DescribeEntityAggregates");
|
|
43
31
|
let body;
|
|
44
32
|
body = JSON.stringify(se_DescribeEntityAggregatesRequest(input, context));
|
|
45
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
34
|
};
|
|
47
35
|
exports.se_DescribeEntityAggregatesCommand = se_DescribeEntityAggregatesCommand;
|
|
48
36
|
const se_DescribeEventAggregatesCommand = async (input, context) => {
|
|
49
|
-
const headers =
|
|
50
|
-
"content-type": "application/x-amz-json-1.1",
|
|
51
|
-
"x-amz-target": "AWSHealth_20160804.DescribeEventAggregates",
|
|
52
|
-
};
|
|
37
|
+
const headers = sharedHeaders("DescribeEventAggregates");
|
|
53
38
|
let body;
|
|
54
39
|
body = JSON.stringify(se_DescribeEventAggregatesRequest(input, context));
|
|
55
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
41
|
};
|
|
57
42
|
exports.se_DescribeEventAggregatesCommand = se_DescribeEventAggregatesCommand;
|
|
58
43
|
const se_DescribeEventDetailsCommand = async (input, context) => {
|
|
59
|
-
const headers =
|
|
60
|
-
"content-type": "application/x-amz-json-1.1",
|
|
61
|
-
"x-amz-target": "AWSHealth_20160804.DescribeEventDetails",
|
|
62
|
-
};
|
|
44
|
+
const headers = sharedHeaders("DescribeEventDetails");
|
|
63
45
|
let body;
|
|
64
46
|
body = JSON.stringify(se_DescribeEventDetailsRequest(input, context));
|
|
65
47
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
48
|
};
|
|
67
49
|
exports.se_DescribeEventDetailsCommand = se_DescribeEventDetailsCommand;
|
|
68
50
|
const se_DescribeEventDetailsForOrganizationCommand = async (input, context) => {
|
|
69
|
-
const headers =
|
|
70
|
-
"content-type": "application/x-amz-json-1.1",
|
|
71
|
-
"x-amz-target": "AWSHealth_20160804.DescribeEventDetailsForOrganization",
|
|
72
|
-
};
|
|
51
|
+
const headers = sharedHeaders("DescribeEventDetailsForOrganization");
|
|
73
52
|
let body;
|
|
74
53
|
body = JSON.stringify(se_DescribeEventDetailsForOrganizationRequest(input, context));
|
|
75
54
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
55
|
};
|
|
77
56
|
exports.se_DescribeEventDetailsForOrganizationCommand = se_DescribeEventDetailsForOrganizationCommand;
|
|
78
57
|
const se_DescribeEventsCommand = async (input, context) => {
|
|
79
|
-
const headers =
|
|
80
|
-
"content-type": "application/x-amz-json-1.1",
|
|
81
|
-
"x-amz-target": "AWSHealth_20160804.DescribeEvents",
|
|
82
|
-
};
|
|
58
|
+
const headers = sharedHeaders("DescribeEvents");
|
|
83
59
|
let body;
|
|
84
60
|
body = JSON.stringify(se_DescribeEventsRequest(input, context));
|
|
85
61
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
62
|
};
|
|
87
63
|
exports.se_DescribeEventsCommand = se_DescribeEventsCommand;
|
|
88
64
|
const se_DescribeEventsForOrganizationCommand = async (input, context) => {
|
|
89
|
-
const headers =
|
|
90
|
-
"content-type": "application/x-amz-json-1.1",
|
|
91
|
-
"x-amz-target": "AWSHealth_20160804.DescribeEventsForOrganization",
|
|
92
|
-
};
|
|
65
|
+
const headers = sharedHeaders("DescribeEventsForOrganization");
|
|
93
66
|
let body;
|
|
94
67
|
body = JSON.stringify(se_DescribeEventsForOrganizationRequest(input, context));
|
|
95
68
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
69
|
};
|
|
97
70
|
exports.se_DescribeEventsForOrganizationCommand = se_DescribeEventsForOrganizationCommand;
|
|
98
71
|
const se_DescribeEventTypesCommand = async (input, context) => {
|
|
99
|
-
const headers =
|
|
100
|
-
"content-type": "application/x-amz-json-1.1",
|
|
101
|
-
"x-amz-target": "AWSHealth_20160804.DescribeEventTypes",
|
|
102
|
-
};
|
|
72
|
+
const headers = sharedHeaders("DescribeEventTypes");
|
|
103
73
|
let body;
|
|
104
74
|
body = JSON.stringify(se_DescribeEventTypesRequest(input, context));
|
|
105
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
76
|
};
|
|
107
77
|
exports.se_DescribeEventTypesCommand = se_DescribeEventTypesCommand;
|
|
108
78
|
const se_DescribeHealthServiceStatusForOrganizationCommand = async (input, context) => {
|
|
109
|
-
const headers =
|
|
110
|
-
"content-type": "application/x-amz-json-1.1",
|
|
111
|
-
"x-amz-target": "AWSHealth_20160804.DescribeHealthServiceStatusForOrganization",
|
|
112
|
-
};
|
|
79
|
+
const headers = sharedHeaders("DescribeHealthServiceStatusForOrganization");
|
|
113
80
|
const body = "{}";
|
|
114
81
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
115
82
|
};
|
|
116
83
|
exports.se_DescribeHealthServiceStatusForOrganizationCommand = se_DescribeHealthServiceStatusForOrganizationCommand;
|
|
117
84
|
const se_DisableHealthServiceAccessForOrganizationCommand = async (input, context) => {
|
|
118
|
-
const headers =
|
|
119
|
-
"content-type": "application/x-amz-json-1.1",
|
|
120
|
-
"x-amz-target": "AWSHealth_20160804.DisableHealthServiceAccessForOrganization",
|
|
121
|
-
};
|
|
85
|
+
const headers = sharedHeaders("DisableHealthServiceAccessForOrganization");
|
|
122
86
|
const body = "{}";
|
|
123
87
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
124
88
|
};
|
|
125
89
|
exports.se_DisableHealthServiceAccessForOrganizationCommand = se_DisableHealthServiceAccessForOrganizationCommand;
|
|
126
90
|
const se_EnableHealthServiceAccessForOrganizationCommand = async (input, context) => {
|
|
127
|
-
const headers =
|
|
128
|
-
"content-type": "application/x-amz-json-1.1",
|
|
129
|
-
"x-amz-target": "AWSHealth_20160804.EnableHealthServiceAccessForOrganization",
|
|
130
|
-
};
|
|
91
|
+
const headers = sharedHeaders("EnableHealthServiceAccessForOrganization");
|
|
131
92
|
const body = "{}";
|
|
132
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
133
94
|
};
|
|
@@ -1257,6 +1218,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
1257
1218
|
}
|
|
1258
1219
|
return new protocol_http_1.HttpRequest(contents);
|
|
1259
1220
|
};
|
|
1221
|
+
function sharedHeaders(operation) {
|
|
1222
|
+
return {
|
|
1223
|
+
"content-type": "application/x-amz-json-1.1",
|
|
1224
|
+
"x-amz-target": `AWSHealth_20160804.${operation}`,
|
|
1225
|
+
};
|
|
1226
|
+
}
|
|
1260
1227
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1261
1228
|
if (encoded.length) {
|
|
1262
1229
|
return JSON.parse(encoded);
|
|
@@ -3,116 +3,77 @@ import { decorateServiceException as __decorateServiceException, expectInt32 as
|
|
|
3
3
|
import { HealthServiceException as __BaseException } from "../models/HealthServiceException";
|
|
4
4
|
import { ConcurrentModificationException, InvalidPaginationToken, UnsupportedLocale, } from "../models/models_0";
|
|
5
5
|
export const se_DescribeAffectedAccountsForOrganizationCommand = async (input, context) => {
|
|
6
|
-
const headers =
|
|
7
|
-
"content-type": "application/x-amz-json-1.1",
|
|
8
|
-
"x-amz-target": "AWSHealth_20160804.DescribeAffectedAccountsForOrganization",
|
|
9
|
-
};
|
|
6
|
+
const headers = sharedHeaders("DescribeAffectedAccountsForOrganization");
|
|
10
7
|
let body;
|
|
11
8
|
body = JSON.stringify(se_DescribeAffectedAccountsForOrganizationRequest(input, context));
|
|
12
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
10
|
};
|
|
14
11
|
export const se_DescribeAffectedEntitiesCommand = async (input, context) => {
|
|
15
|
-
const headers =
|
|
16
|
-
"content-type": "application/x-amz-json-1.1",
|
|
17
|
-
"x-amz-target": "AWSHealth_20160804.DescribeAffectedEntities",
|
|
18
|
-
};
|
|
12
|
+
const headers = sharedHeaders("DescribeAffectedEntities");
|
|
19
13
|
let body;
|
|
20
14
|
body = JSON.stringify(se_DescribeAffectedEntitiesRequest(input, context));
|
|
21
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
16
|
};
|
|
23
17
|
export const se_DescribeAffectedEntitiesForOrganizationCommand = async (input, context) => {
|
|
24
|
-
const headers =
|
|
25
|
-
"content-type": "application/x-amz-json-1.1",
|
|
26
|
-
"x-amz-target": "AWSHealth_20160804.DescribeAffectedEntitiesForOrganization",
|
|
27
|
-
};
|
|
18
|
+
const headers = sharedHeaders("DescribeAffectedEntitiesForOrganization");
|
|
28
19
|
let body;
|
|
29
20
|
body = JSON.stringify(se_DescribeAffectedEntitiesForOrganizationRequest(input, context));
|
|
30
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
22
|
};
|
|
32
23
|
export const se_DescribeEntityAggregatesCommand = async (input, context) => {
|
|
33
|
-
const headers =
|
|
34
|
-
"content-type": "application/x-amz-json-1.1",
|
|
35
|
-
"x-amz-target": "AWSHealth_20160804.DescribeEntityAggregates",
|
|
36
|
-
};
|
|
24
|
+
const headers = sharedHeaders("DescribeEntityAggregates");
|
|
37
25
|
let body;
|
|
38
26
|
body = JSON.stringify(se_DescribeEntityAggregatesRequest(input, context));
|
|
39
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
28
|
};
|
|
41
29
|
export const se_DescribeEventAggregatesCommand = async (input, context) => {
|
|
42
|
-
const headers =
|
|
43
|
-
"content-type": "application/x-amz-json-1.1",
|
|
44
|
-
"x-amz-target": "AWSHealth_20160804.DescribeEventAggregates",
|
|
45
|
-
};
|
|
30
|
+
const headers = sharedHeaders("DescribeEventAggregates");
|
|
46
31
|
let body;
|
|
47
32
|
body = JSON.stringify(se_DescribeEventAggregatesRequest(input, context));
|
|
48
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
34
|
};
|
|
50
35
|
export const se_DescribeEventDetailsCommand = async (input, context) => {
|
|
51
|
-
const headers =
|
|
52
|
-
"content-type": "application/x-amz-json-1.1",
|
|
53
|
-
"x-amz-target": "AWSHealth_20160804.DescribeEventDetails",
|
|
54
|
-
};
|
|
36
|
+
const headers = sharedHeaders("DescribeEventDetails");
|
|
55
37
|
let body;
|
|
56
38
|
body = JSON.stringify(se_DescribeEventDetailsRequest(input, context));
|
|
57
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
40
|
};
|
|
59
41
|
export const se_DescribeEventDetailsForOrganizationCommand = async (input, context) => {
|
|
60
|
-
const headers =
|
|
61
|
-
"content-type": "application/x-amz-json-1.1",
|
|
62
|
-
"x-amz-target": "AWSHealth_20160804.DescribeEventDetailsForOrganization",
|
|
63
|
-
};
|
|
42
|
+
const headers = sharedHeaders("DescribeEventDetailsForOrganization");
|
|
64
43
|
let body;
|
|
65
44
|
body = JSON.stringify(se_DescribeEventDetailsForOrganizationRequest(input, context));
|
|
66
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
46
|
};
|
|
68
47
|
export const se_DescribeEventsCommand = async (input, context) => {
|
|
69
|
-
const headers =
|
|
70
|
-
"content-type": "application/x-amz-json-1.1",
|
|
71
|
-
"x-amz-target": "AWSHealth_20160804.DescribeEvents",
|
|
72
|
-
};
|
|
48
|
+
const headers = sharedHeaders("DescribeEvents");
|
|
73
49
|
let body;
|
|
74
50
|
body = JSON.stringify(se_DescribeEventsRequest(input, context));
|
|
75
51
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
52
|
};
|
|
77
53
|
export const se_DescribeEventsForOrganizationCommand = async (input, context) => {
|
|
78
|
-
const headers =
|
|
79
|
-
"content-type": "application/x-amz-json-1.1",
|
|
80
|
-
"x-amz-target": "AWSHealth_20160804.DescribeEventsForOrganization",
|
|
81
|
-
};
|
|
54
|
+
const headers = sharedHeaders("DescribeEventsForOrganization");
|
|
82
55
|
let body;
|
|
83
56
|
body = JSON.stringify(se_DescribeEventsForOrganizationRequest(input, context));
|
|
84
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
58
|
};
|
|
86
59
|
export const se_DescribeEventTypesCommand = async (input, context) => {
|
|
87
|
-
const headers =
|
|
88
|
-
"content-type": "application/x-amz-json-1.1",
|
|
89
|
-
"x-amz-target": "AWSHealth_20160804.DescribeEventTypes",
|
|
90
|
-
};
|
|
60
|
+
const headers = sharedHeaders("DescribeEventTypes");
|
|
91
61
|
let body;
|
|
92
62
|
body = JSON.stringify(se_DescribeEventTypesRequest(input, context));
|
|
93
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
64
|
};
|
|
95
65
|
export const se_DescribeHealthServiceStatusForOrganizationCommand = async (input, context) => {
|
|
96
|
-
const headers =
|
|
97
|
-
"content-type": "application/x-amz-json-1.1",
|
|
98
|
-
"x-amz-target": "AWSHealth_20160804.DescribeHealthServiceStatusForOrganization",
|
|
99
|
-
};
|
|
66
|
+
const headers = sharedHeaders("DescribeHealthServiceStatusForOrganization");
|
|
100
67
|
const body = "{}";
|
|
101
68
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
102
69
|
};
|
|
103
70
|
export const se_DisableHealthServiceAccessForOrganizationCommand = async (input, context) => {
|
|
104
|
-
const headers =
|
|
105
|
-
"content-type": "application/x-amz-json-1.1",
|
|
106
|
-
"x-amz-target": "AWSHealth_20160804.DisableHealthServiceAccessForOrganization",
|
|
107
|
-
};
|
|
71
|
+
const headers = sharedHeaders("DisableHealthServiceAccessForOrganization");
|
|
108
72
|
const body = "{}";
|
|
109
73
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
110
74
|
};
|
|
111
75
|
export const se_EnableHealthServiceAccessForOrganizationCommand = async (input, context) => {
|
|
112
|
-
const headers =
|
|
113
|
-
"content-type": "application/x-amz-json-1.1",
|
|
114
|
-
"x-amz-target": "AWSHealth_20160804.EnableHealthServiceAccessForOrganization",
|
|
115
|
-
};
|
|
76
|
+
const headers = sharedHeaders("EnableHealthServiceAccessForOrganization");
|
|
116
77
|
const body = "{}";
|
|
117
78
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
79
|
};
|
|
@@ -1228,6 +1189,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
1228
1189
|
}
|
|
1229
1190
|
return new __HttpRequest(contents);
|
|
1230
1191
|
};
|
|
1192
|
+
function sharedHeaders(operation) {
|
|
1193
|
+
return {
|
|
1194
|
+
"content-type": "application/x-amz-json-1.1",
|
|
1195
|
+
"x-amz-target": `AWSHealth_20160804.${operation}`,
|
|
1196
|
+
};
|
|
1197
|
+
}
|
|
1231
1198
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1232
1199
|
if (encoded.length) {
|
|
1233
1200
|
return JSON.parse(encoded);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-health",
|
|
3
3
|
"description": "AWS SDK for JavaScript Health 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",
|