@aws-sdk/client-application-insights 3.309.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.
- package/dist-cjs/protocols/Aws_json1_1.js +33 -108
- package/dist-es/protocols/Aws_json1_1.js +33 -108
- package/package.json +35 -35
|
@@ -7,270 +7,189 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
7
7
|
const ApplicationInsightsServiceException_1 = require("../models/ApplicationInsightsServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const se_CreateApplicationCommand = async (input, context) => {
|
|
10
|
-
const headers =
|
|
11
|
-
"content-type": "application/x-amz-json-1.1",
|
|
12
|
-
"x-amz-target": "EC2WindowsBarleyService.CreateApplication",
|
|
13
|
-
};
|
|
10
|
+
const headers = sharedHeaders("CreateApplication");
|
|
14
11
|
let body;
|
|
15
12
|
body = JSON.stringify(se_CreateApplicationRequest(input, context));
|
|
16
13
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
14
|
};
|
|
18
15
|
exports.se_CreateApplicationCommand = se_CreateApplicationCommand;
|
|
19
16
|
const se_CreateComponentCommand = async (input, context) => {
|
|
20
|
-
const headers =
|
|
21
|
-
"content-type": "application/x-amz-json-1.1",
|
|
22
|
-
"x-amz-target": "EC2WindowsBarleyService.CreateComponent",
|
|
23
|
-
};
|
|
17
|
+
const headers = sharedHeaders("CreateComponent");
|
|
24
18
|
let body;
|
|
25
19
|
body = JSON.stringify(se_CreateComponentRequest(input, context));
|
|
26
20
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
21
|
};
|
|
28
22
|
exports.se_CreateComponentCommand = se_CreateComponentCommand;
|
|
29
23
|
const se_CreateLogPatternCommand = async (input, context) => {
|
|
30
|
-
const headers =
|
|
31
|
-
"content-type": "application/x-amz-json-1.1",
|
|
32
|
-
"x-amz-target": "EC2WindowsBarleyService.CreateLogPattern",
|
|
33
|
-
};
|
|
24
|
+
const headers = sharedHeaders("CreateLogPattern");
|
|
34
25
|
let body;
|
|
35
26
|
body = JSON.stringify(se_CreateLogPatternRequest(input, context));
|
|
36
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
28
|
};
|
|
38
29
|
exports.se_CreateLogPatternCommand = se_CreateLogPatternCommand;
|
|
39
30
|
const se_DeleteApplicationCommand = async (input, context) => {
|
|
40
|
-
const headers =
|
|
41
|
-
"content-type": "application/x-amz-json-1.1",
|
|
42
|
-
"x-amz-target": "EC2WindowsBarleyService.DeleteApplication",
|
|
43
|
-
};
|
|
31
|
+
const headers = sharedHeaders("DeleteApplication");
|
|
44
32
|
let body;
|
|
45
33
|
body = JSON.stringify(se_DeleteApplicationRequest(input, context));
|
|
46
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
35
|
};
|
|
48
36
|
exports.se_DeleteApplicationCommand = se_DeleteApplicationCommand;
|
|
49
37
|
const se_DeleteComponentCommand = async (input, context) => {
|
|
50
|
-
const headers =
|
|
51
|
-
"content-type": "application/x-amz-json-1.1",
|
|
52
|
-
"x-amz-target": "EC2WindowsBarleyService.DeleteComponent",
|
|
53
|
-
};
|
|
38
|
+
const headers = sharedHeaders("DeleteComponent");
|
|
54
39
|
let body;
|
|
55
40
|
body = JSON.stringify(se_DeleteComponentRequest(input, context));
|
|
56
41
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
42
|
};
|
|
58
43
|
exports.se_DeleteComponentCommand = se_DeleteComponentCommand;
|
|
59
44
|
const se_DeleteLogPatternCommand = async (input, context) => {
|
|
60
|
-
const headers =
|
|
61
|
-
"content-type": "application/x-amz-json-1.1",
|
|
62
|
-
"x-amz-target": "EC2WindowsBarleyService.DeleteLogPattern",
|
|
63
|
-
};
|
|
45
|
+
const headers = sharedHeaders("DeleteLogPattern");
|
|
64
46
|
let body;
|
|
65
47
|
body = JSON.stringify(se_DeleteLogPatternRequest(input, context));
|
|
66
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
49
|
};
|
|
68
50
|
exports.se_DeleteLogPatternCommand = se_DeleteLogPatternCommand;
|
|
69
51
|
const se_DescribeApplicationCommand = async (input, context) => {
|
|
70
|
-
const headers =
|
|
71
|
-
"content-type": "application/x-amz-json-1.1",
|
|
72
|
-
"x-amz-target": "EC2WindowsBarleyService.DescribeApplication",
|
|
73
|
-
};
|
|
52
|
+
const headers = sharedHeaders("DescribeApplication");
|
|
74
53
|
let body;
|
|
75
54
|
body = JSON.stringify(se_DescribeApplicationRequest(input, context));
|
|
76
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
56
|
};
|
|
78
57
|
exports.se_DescribeApplicationCommand = se_DescribeApplicationCommand;
|
|
79
58
|
const se_DescribeComponentCommand = async (input, context) => {
|
|
80
|
-
const headers =
|
|
81
|
-
"content-type": "application/x-amz-json-1.1",
|
|
82
|
-
"x-amz-target": "EC2WindowsBarleyService.DescribeComponent",
|
|
83
|
-
};
|
|
59
|
+
const headers = sharedHeaders("DescribeComponent");
|
|
84
60
|
let body;
|
|
85
61
|
body = JSON.stringify(se_DescribeComponentRequest(input, context));
|
|
86
62
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
63
|
};
|
|
88
64
|
exports.se_DescribeComponentCommand = se_DescribeComponentCommand;
|
|
89
65
|
const se_DescribeComponentConfigurationCommand = async (input, context) => {
|
|
90
|
-
const headers =
|
|
91
|
-
"content-type": "application/x-amz-json-1.1",
|
|
92
|
-
"x-amz-target": "EC2WindowsBarleyService.DescribeComponentConfiguration",
|
|
93
|
-
};
|
|
66
|
+
const headers = sharedHeaders("DescribeComponentConfiguration");
|
|
94
67
|
let body;
|
|
95
68
|
body = JSON.stringify(se_DescribeComponentConfigurationRequest(input, context));
|
|
96
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
70
|
};
|
|
98
71
|
exports.se_DescribeComponentConfigurationCommand = se_DescribeComponentConfigurationCommand;
|
|
99
72
|
const se_DescribeComponentConfigurationRecommendationCommand = async (input, context) => {
|
|
100
|
-
const headers =
|
|
101
|
-
"content-type": "application/x-amz-json-1.1",
|
|
102
|
-
"x-amz-target": "EC2WindowsBarleyService.DescribeComponentConfigurationRecommendation",
|
|
103
|
-
};
|
|
73
|
+
const headers = sharedHeaders("DescribeComponentConfigurationRecommendation");
|
|
104
74
|
let body;
|
|
105
75
|
body = JSON.stringify(se_DescribeComponentConfigurationRecommendationRequest(input, context));
|
|
106
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
77
|
};
|
|
108
78
|
exports.se_DescribeComponentConfigurationRecommendationCommand = se_DescribeComponentConfigurationRecommendationCommand;
|
|
109
79
|
const se_DescribeLogPatternCommand = async (input, context) => {
|
|
110
|
-
const headers =
|
|
111
|
-
"content-type": "application/x-amz-json-1.1",
|
|
112
|
-
"x-amz-target": "EC2WindowsBarleyService.DescribeLogPattern",
|
|
113
|
-
};
|
|
80
|
+
const headers = sharedHeaders("DescribeLogPattern");
|
|
114
81
|
let body;
|
|
115
82
|
body = JSON.stringify(se_DescribeLogPatternRequest(input, context));
|
|
116
83
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
117
84
|
};
|
|
118
85
|
exports.se_DescribeLogPatternCommand = se_DescribeLogPatternCommand;
|
|
119
86
|
const se_DescribeObservationCommand = async (input, context) => {
|
|
120
|
-
const headers =
|
|
121
|
-
"content-type": "application/x-amz-json-1.1",
|
|
122
|
-
"x-amz-target": "EC2WindowsBarleyService.DescribeObservation",
|
|
123
|
-
};
|
|
87
|
+
const headers = sharedHeaders("DescribeObservation");
|
|
124
88
|
let body;
|
|
125
89
|
body = JSON.stringify(se_DescribeObservationRequest(input, context));
|
|
126
90
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
91
|
};
|
|
128
92
|
exports.se_DescribeObservationCommand = se_DescribeObservationCommand;
|
|
129
93
|
const se_DescribeProblemCommand = async (input, context) => {
|
|
130
|
-
const headers =
|
|
131
|
-
"content-type": "application/x-amz-json-1.1",
|
|
132
|
-
"x-amz-target": "EC2WindowsBarleyService.DescribeProblem",
|
|
133
|
-
};
|
|
94
|
+
const headers = sharedHeaders("DescribeProblem");
|
|
134
95
|
let body;
|
|
135
96
|
body = JSON.stringify(se_DescribeProblemRequest(input, context));
|
|
136
97
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
98
|
};
|
|
138
99
|
exports.se_DescribeProblemCommand = se_DescribeProblemCommand;
|
|
139
100
|
const se_DescribeProblemObservationsCommand = async (input, context) => {
|
|
140
|
-
const headers =
|
|
141
|
-
"content-type": "application/x-amz-json-1.1",
|
|
142
|
-
"x-amz-target": "EC2WindowsBarleyService.DescribeProblemObservations",
|
|
143
|
-
};
|
|
101
|
+
const headers = sharedHeaders("DescribeProblemObservations");
|
|
144
102
|
let body;
|
|
145
103
|
body = JSON.stringify(se_DescribeProblemObservationsRequest(input, context));
|
|
146
104
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
105
|
};
|
|
148
106
|
exports.se_DescribeProblemObservationsCommand = se_DescribeProblemObservationsCommand;
|
|
149
107
|
const se_ListApplicationsCommand = async (input, context) => {
|
|
150
|
-
const headers =
|
|
151
|
-
"content-type": "application/x-amz-json-1.1",
|
|
152
|
-
"x-amz-target": "EC2WindowsBarleyService.ListApplications",
|
|
153
|
-
};
|
|
108
|
+
const headers = sharedHeaders("ListApplications");
|
|
154
109
|
let body;
|
|
155
110
|
body = JSON.stringify(se_ListApplicationsRequest(input, context));
|
|
156
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
112
|
};
|
|
158
113
|
exports.se_ListApplicationsCommand = se_ListApplicationsCommand;
|
|
159
114
|
const se_ListComponentsCommand = async (input, context) => {
|
|
160
|
-
const headers =
|
|
161
|
-
"content-type": "application/x-amz-json-1.1",
|
|
162
|
-
"x-amz-target": "EC2WindowsBarleyService.ListComponents",
|
|
163
|
-
};
|
|
115
|
+
const headers = sharedHeaders("ListComponents");
|
|
164
116
|
let body;
|
|
165
117
|
body = JSON.stringify(se_ListComponentsRequest(input, context));
|
|
166
118
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
119
|
};
|
|
168
120
|
exports.se_ListComponentsCommand = se_ListComponentsCommand;
|
|
169
121
|
const se_ListConfigurationHistoryCommand = async (input, context) => {
|
|
170
|
-
const headers =
|
|
171
|
-
"content-type": "application/x-amz-json-1.1",
|
|
172
|
-
"x-amz-target": "EC2WindowsBarleyService.ListConfigurationHistory",
|
|
173
|
-
};
|
|
122
|
+
const headers = sharedHeaders("ListConfigurationHistory");
|
|
174
123
|
let body;
|
|
175
124
|
body = JSON.stringify(se_ListConfigurationHistoryRequest(input, context));
|
|
176
125
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
126
|
};
|
|
178
127
|
exports.se_ListConfigurationHistoryCommand = se_ListConfigurationHistoryCommand;
|
|
179
128
|
const se_ListLogPatternsCommand = async (input, context) => {
|
|
180
|
-
const headers =
|
|
181
|
-
"content-type": "application/x-amz-json-1.1",
|
|
182
|
-
"x-amz-target": "EC2WindowsBarleyService.ListLogPatterns",
|
|
183
|
-
};
|
|
129
|
+
const headers = sharedHeaders("ListLogPatterns");
|
|
184
130
|
let body;
|
|
185
131
|
body = JSON.stringify(se_ListLogPatternsRequest(input, context));
|
|
186
132
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
187
133
|
};
|
|
188
134
|
exports.se_ListLogPatternsCommand = se_ListLogPatternsCommand;
|
|
189
135
|
const se_ListLogPatternSetsCommand = async (input, context) => {
|
|
190
|
-
const headers =
|
|
191
|
-
"content-type": "application/x-amz-json-1.1",
|
|
192
|
-
"x-amz-target": "EC2WindowsBarleyService.ListLogPatternSets",
|
|
193
|
-
};
|
|
136
|
+
const headers = sharedHeaders("ListLogPatternSets");
|
|
194
137
|
let body;
|
|
195
138
|
body = JSON.stringify(se_ListLogPatternSetsRequest(input, context));
|
|
196
139
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
140
|
};
|
|
198
141
|
exports.se_ListLogPatternSetsCommand = se_ListLogPatternSetsCommand;
|
|
199
142
|
const se_ListProblemsCommand = async (input, context) => {
|
|
200
|
-
const headers =
|
|
201
|
-
"content-type": "application/x-amz-json-1.1",
|
|
202
|
-
"x-amz-target": "EC2WindowsBarleyService.ListProblems",
|
|
203
|
-
};
|
|
143
|
+
const headers = sharedHeaders("ListProblems");
|
|
204
144
|
let body;
|
|
205
145
|
body = JSON.stringify(se_ListProblemsRequest(input, context));
|
|
206
146
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
207
147
|
};
|
|
208
148
|
exports.se_ListProblemsCommand = se_ListProblemsCommand;
|
|
209
149
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
210
|
-
const headers =
|
|
211
|
-
"content-type": "application/x-amz-json-1.1",
|
|
212
|
-
"x-amz-target": "EC2WindowsBarleyService.ListTagsForResource",
|
|
213
|
-
};
|
|
150
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
214
151
|
let body;
|
|
215
152
|
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
216
153
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
154
|
};
|
|
218
155
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
219
156
|
const se_TagResourceCommand = async (input, context) => {
|
|
220
|
-
const headers =
|
|
221
|
-
"content-type": "application/x-amz-json-1.1",
|
|
222
|
-
"x-amz-target": "EC2WindowsBarleyService.TagResource",
|
|
223
|
-
};
|
|
157
|
+
const headers = sharedHeaders("TagResource");
|
|
224
158
|
let body;
|
|
225
159
|
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
226
160
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
161
|
};
|
|
228
162
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
229
163
|
const se_UntagResourceCommand = async (input, context) => {
|
|
230
|
-
const headers =
|
|
231
|
-
"content-type": "application/x-amz-json-1.1",
|
|
232
|
-
"x-amz-target": "EC2WindowsBarleyService.UntagResource",
|
|
233
|
-
};
|
|
164
|
+
const headers = sharedHeaders("UntagResource");
|
|
234
165
|
let body;
|
|
235
166
|
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
236
167
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
237
168
|
};
|
|
238
169
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
239
170
|
const se_UpdateApplicationCommand = async (input, context) => {
|
|
240
|
-
const headers =
|
|
241
|
-
"content-type": "application/x-amz-json-1.1",
|
|
242
|
-
"x-amz-target": "EC2WindowsBarleyService.UpdateApplication",
|
|
243
|
-
};
|
|
171
|
+
const headers = sharedHeaders("UpdateApplication");
|
|
244
172
|
let body;
|
|
245
173
|
body = JSON.stringify(se_UpdateApplicationRequest(input, context));
|
|
246
174
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
175
|
};
|
|
248
176
|
exports.se_UpdateApplicationCommand = se_UpdateApplicationCommand;
|
|
249
177
|
const se_UpdateComponentCommand = async (input, context) => {
|
|
250
|
-
const headers =
|
|
251
|
-
"content-type": "application/x-amz-json-1.1",
|
|
252
|
-
"x-amz-target": "EC2WindowsBarleyService.UpdateComponent",
|
|
253
|
-
};
|
|
178
|
+
const headers = sharedHeaders("UpdateComponent");
|
|
254
179
|
let body;
|
|
255
180
|
body = JSON.stringify(se_UpdateComponentRequest(input, context));
|
|
256
181
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
182
|
};
|
|
258
183
|
exports.se_UpdateComponentCommand = se_UpdateComponentCommand;
|
|
259
184
|
const se_UpdateComponentConfigurationCommand = async (input, context) => {
|
|
260
|
-
const headers =
|
|
261
|
-
"content-type": "application/x-amz-json-1.1",
|
|
262
|
-
"x-amz-target": "EC2WindowsBarleyService.UpdateComponentConfiguration",
|
|
263
|
-
};
|
|
185
|
+
const headers = sharedHeaders("UpdateComponentConfiguration");
|
|
264
186
|
let body;
|
|
265
187
|
body = JSON.stringify(se_UpdateComponentConfigurationRequest(input, context));
|
|
266
188
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
267
189
|
};
|
|
268
190
|
exports.se_UpdateComponentConfigurationCommand = se_UpdateComponentConfigurationCommand;
|
|
269
191
|
const se_UpdateLogPatternCommand = async (input, context) => {
|
|
270
|
-
const headers =
|
|
271
|
-
"content-type": "application/x-amz-json-1.1",
|
|
272
|
-
"x-amz-target": "EC2WindowsBarleyService.UpdateLogPattern",
|
|
273
|
-
};
|
|
192
|
+
const headers = sharedHeaders("UpdateLogPattern");
|
|
274
193
|
let body;
|
|
275
194
|
body = JSON.stringify(se_UpdateLogPatternRequest(input, context));
|
|
276
195
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -2120,6 +2039,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
2120
2039
|
}
|
|
2121
2040
|
return new protocol_http_1.HttpRequest(contents);
|
|
2122
2041
|
};
|
|
2042
|
+
function sharedHeaders(operation) {
|
|
2043
|
+
return {
|
|
2044
|
+
"content-type": "application/x-amz-json-1.1",
|
|
2045
|
+
"x-amz-target": `EC2WindowsBarleyService.${operation}`,
|
|
2046
|
+
};
|
|
2047
|
+
}
|
|
2123
2048
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2124
2049
|
if (encoded.length) {
|
|
2125
2050
|
return JSON.parse(encoded);
|
|
@@ -3,244 +3,163 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
|
|
|
3
3
|
import { ApplicationInsightsServiceException as __BaseException } from "../models/ApplicationInsightsServiceException";
|
|
4
4
|
import { AccessDeniedException, BadRequestException, InternalServerException, ResourceInUseException, ResourceNotFoundException, TagsAlreadyExistException, TooManyTagsException, ValidationException, } from "../models/models_0";
|
|
5
5
|
export const se_CreateApplicationCommand = async (input, context) => {
|
|
6
|
-
const headers =
|
|
7
|
-
"content-type": "application/x-amz-json-1.1",
|
|
8
|
-
"x-amz-target": "EC2WindowsBarleyService.CreateApplication",
|
|
9
|
-
};
|
|
6
|
+
const headers = sharedHeaders("CreateApplication");
|
|
10
7
|
let body;
|
|
11
8
|
body = JSON.stringify(se_CreateApplicationRequest(input, context));
|
|
12
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
10
|
};
|
|
14
11
|
export const se_CreateComponentCommand = async (input, context) => {
|
|
15
|
-
const headers =
|
|
16
|
-
"content-type": "application/x-amz-json-1.1",
|
|
17
|
-
"x-amz-target": "EC2WindowsBarleyService.CreateComponent",
|
|
18
|
-
};
|
|
12
|
+
const headers = sharedHeaders("CreateComponent");
|
|
19
13
|
let body;
|
|
20
14
|
body = JSON.stringify(se_CreateComponentRequest(input, context));
|
|
21
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
16
|
};
|
|
23
17
|
export const se_CreateLogPatternCommand = async (input, context) => {
|
|
24
|
-
const headers =
|
|
25
|
-
"content-type": "application/x-amz-json-1.1",
|
|
26
|
-
"x-amz-target": "EC2WindowsBarleyService.CreateLogPattern",
|
|
27
|
-
};
|
|
18
|
+
const headers = sharedHeaders("CreateLogPattern");
|
|
28
19
|
let body;
|
|
29
20
|
body = JSON.stringify(se_CreateLogPatternRequest(input, context));
|
|
30
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
22
|
};
|
|
32
23
|
export const se_DeleteApplicationCommand = async (input, context) => {
|
|
33
|
-
const headers =
|
|
34
|
-
"content-type": "application/x-amz-json-1.1",
|
|
35
|
-
"x-amz-target": "EC2WindowsBarleyService.DeleteApplication",
|
|
36
|
-
};
|
|
24
|
+
const headers = sharedHeaders("DeleteApplication");
|
|
37
25
|
let body;
|
|
38
26
|
body = JSON.stringify(se_DeleteApplicationRequest(input, context));
|
|
39
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
28
|
};
|
|
41
29
|
export const se_DeleteComponentCommand = async (input, context) => {
|
|
42
|
-
const headers =
|
|
43
|
-
"content-type": "application/x-amz-json-1.1",
|
|
44
|
-
"x-amz-target": "EC2WindowsBarleyService.DeleteComponent",
|
|
45
|
-
};
|
|
30
|
+
const headers = sharedHeaders("DeleteComponent");
|
|
46
31
|
let body;
|
|
47
32
|
body = JSON.stringify(se_DeleteComponentRequest(input, context));
|
|
48
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
34
|
};
|
|
50
35
|
export const se_DeleteLogPatternCommand = async (input, context) => {
|
|
51
|
-
const headers =
|
|
52
|
-
"content-type": "application/x-amz-json-1.1",
|
|
53
|
-
"x-amz-target": "EC2WindowsBarleyService.DeleteLogPattern",
|
|
54
|
-
};
|
|
36
|
+
const headers = sharedHeaders("DeleteLogPattern");
|
|
55
37
|
let body;
|
|
56
38
|
body = JSON.stringify(se_DeleteLogPatternRequest(input, context));
|
|
57
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
40
|
};
|
|
59
41
|
export const se_DescribeApplicationCommand = async (input, context) => {
|
|
60
|
-
const headers =
|
|
61
|
-
"content-type": "application/x-amz-json-1.1",
|
|
62
|
-
"x-amz-target": "EC2WindowsBarleyService.DescribeApplication",
|
|
63
|
-
};
|
|
42
|
+
const headers = sharedHeaders("DescribeApplication");
|
|
64
43
|
let body;
|
|
65
44
|
body = JSON.stringify(se_DescribeApplicationRequest(input, context));
|
|
66
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
46
|
};
|
|
68
47
|
export const se_DescribeComponentCommand = async (input, context) => {
|
|
69
|
-
const headers =
|
|
70
|
-
"content-type": "application/x-amz-json-1.1",
|
|
71
|
-
"x-amz-target": "EC2WindowsBarleyService.DescribeComponent",
|
|
72
|
-
};
|
|
48
|
+
const headers = sharedHeaders("DescribeComponent");
|
|
73
49
|
let body;
|
|
74
50
|
body = JSON.stringify(se_DescribeComponentRequest(input, context));
|
|
75
51
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
52
|
};
|
|
77
53
|
export const se_DescribeComponentConfigurationCommand = async (input, context) => {
|
|
78
|
-
const headers =
|
|
79
|
-
"content-type": "application/x-amz-json-1.1",
|
|
80
|
-
"x-amz-target": "EC2WindowsBarleyService.DescribeComponentConfiguration",
|
|
81
|
-
};
|
|
54
|
+
const headers = sharedHeaders("DescribeComponentConfiguration");
|
|
82
55
|
let body;
|
|
83
56
|
body = JSON.stringify(se_DescribeComponentConfigurationRequest(input, context));
|
|
84
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
58
|
};
|
|
86
59
|
export const se_DescribeComponentConfigurationRecommendationCommand = async (input, context) => {
|
|
87
|
-
const headers =
|
|
88
|
-
"content-type": "application/x-amz-json-1.1",
|
|
89
|
-
"x-amz-target": "EC2WindowsBarleyService.DescribeComponentConfigurationRecommendation",
|
|
90
|
-
};
|
|
60
|
+
const headers = sharedHeaders("DescribeComponentConfigurationRecommendation");
|
|
91
61
|
let body;
|
|
92
62
|
body = JSON.stringify(se_DescribeComponentConfigurationRecommendationRequest(input, context));
|
|
93
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
64
|
};
|
|
95
65
|
export const se_DescribeLogPatternCommand = async (input, context) => {
|
|
96
|
-
const headers =
|
|
97
|
-
"content-type": "application/x-amz-json-1.1",
|
|
98
|
-
"x-amz-target": "EC2WindowsBarleyService.DescribeLogPattern",
|
|
99
|
-
};
|
|
66
|
+
const headers = sharedHeaders("DescribeLogPattern");
|
|
100
67
|
let body;
|
|
101
68
|
body = JSON.stringify(se_DescribeLogPatternRequest(input, context));
|
|
102
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
70
|
};
|
|
104
71
|
export const se_DescribeObservationCommand = async (input, context) => {
|
|
105
|
-
const headers =
|
|
106
|
-
"content-type": "application/x-amz-json-1.1",
|
|
107
|
-
"x-amz-target": "EC2WindowsBarleyService.DescribeObservation",
|
|
108
|
-
};
|
|
72
|
+
const headers = sharedHeaders("DescribeObservation");
|
|
109
73
|
let body;
|
|
110
74
|
body = JSON.stringify(se_DescribeObservationRequest(input, context));
|
|
111
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
76
|
};
|
|
113
77
|
export const se_DescribeProblemCommand = async (input, context) => {
|
|
114
|
-
const headers =
|
|
115
|
-
"content-type": "application/x-amz-json-1.1",
|
|
116
|
-
"x-amz-target": "EC2WindowsBarleyService.DescribeProblem",
|
|
117
|
-
};
|
|
78
|
+
const headers = sharedHeaders("DescribeProblem");
|
|
118
79
|
let body;
|
|
119
80
|
body = JSON.stringify(se_DescribeProblemRequest(input, context));
|
|
120
81
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
82
|
};
|
|
122
83
|
export const se_DescribeProblemObservationsCommand = async (input, context) => {
|
|
123
|
-
const headers =
|
|
124
|
-
"content-type": "application/x-amz-json-1.1",
|
|
125
|
-
"x-amz-target": "EC2WindowsBarleyService.DescribeProblemObservations",
|
|
126
|
-
};
|
|
84
|
+
const headers = sharedHeaders("DescribeProblemObservations");
|
|
127
85
|
let body;
|
|
128
86
|
body = JSON.stringify(se_DescribeProblemObservationsRequest(input, context));
|
|
129
87
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
88
|
};
|
|
131
89
|
export const se_ListApplicationsCommand = async (input, context) => {
|
|
132
|
-
const headers =
|
|
133
|
-
"content-type": "application/x-amz-json-1.1",
|
|
134
|
-
"x-amz-target": "EC2WindowsBarleyService.ListApplications",
|
|
135
|
-
};
|
|
90
|
+
const headers = sharedHeaders("ListApplications");
|
|
136
91
|
let body;
|
|
137
92
|
body = JSON.stringify(se_ListApplicationsRequest(input, context));
|
|
138
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
94
|
};
|
|
140
95
|
export const se_ListComponentsCommand = async (input, context) => {
|
|
141
|
-
const headers =
|
|
142
|
-
"content-type": "application/x-amz-json-1.1",
|
|
143
|
-
"x-amz-target": "EC2WindowsBarleyService.ListComponents",
|
|
144
|
-
};
|
|
96
|
+
const headers = sharedHeaders("ListComponents");
|
|
145
97
|
let body;
|
|
146
98
|
body = JSON.stringify(se_ListComponentsRequest(input, context));
|
|
147
99
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
100
|
};
|
|
149
101
|
export const se_ListConfigurationHistoryCommand = async (input, context) => {
|
|
150
|
-
const headers =
|
|
151
|
-
"content-type": "application/x-amz-json-1.1",
|
|
152
|
-
"x-amz-target": "EC2WindowsBarleyService.ListConfigurationHistory",
|
|
153
|
-
};
|
|
102
|
+
const headers = sharedHeaders("ListConfigurationHistory");
|
|
154
103
|
let body;
|
|
155
104
|
body = JSON.stringify(se_ListConfigurationHistoryRequest(input, context));
|
|
156
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
106
|
};
|
|
158
107
|
export const se_ListLogPatternsCommand = async (input, context) => {
|
|
159
|
-
const headers =
|
|
160
|
-
"content-type": "application/x-amz-json-1.1",
|
|
161
|
-
"x-amz-target": "EC2WindowsBarleyService.ListLogPatterns",
|
|
162
|
-
};
|
|
108
|
+
const headers = sharedHeaders("ListLogPatterns");
|
|
163
109
|
let body;
|
|
164
110
|
body = JSON.stringify(se_ListLogPatternsRequest(input, context));
|
|
165
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
112
|
};
|
|
167
113
|
export const se_ListLogPatternSetsCommand = async (input, context) => {
|
|
168
|
-
const headers =
|
|
169
|
-
"content-type": "application/x-amz-json-1.1",
|
|
170
|
-
"x-amz-target": "EC2WindowsBarleyService.ListLogPatternSets",
|
|
171
|
-
};
|
|
114
|
+
const headers = sharedHeaders("ListLogPatternSets");
|
|
172
115
|
let body;
|
|
173
116
|
body = JSON.stringify(se_ListLogPatternSetsRequest(input, context));
|
|
174
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
118
|
};
|
|
176
119
|
export const se_ListProblemsCommand = async (input, context) => {
|
|
177
|
-
const headers =
|
|
178
|
-
"content-type": "application/x-amz-json-1.1",
|
|
179
|
-
"x-amz-target": "EC2WindowsBarleyService.ListProblems",
|
|
180
|
-
};
|
|
120
|
+
const headers = sharedHeaders("ListProblems");
|
|
181
121
|
let body;
|
|
182
122
|
body = JSON.stringify(se_ListProblemsRequest(input, context));
|
|
183
123
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
124
|
};
|
|
185
125
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
186
|
-
const headers =
|
|
187
|
-
"content-type": "application/x-amz-json-1.1",
|
|
188
|
-
"x-amz-target": "EC2WindowsBarleyService.ListTagsForResource",
|
|
189
|
-
};
|
|
126
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
190
127
|
let body;
|
|
191
128
|
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
192
129
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
193
130
|
};
|
|
194
131
|
export const se_TagResourceCommand = async (input, context) => {
|
|
195
|
-
const headers =
|
|
196
|
-
"content-type": "application/x-amz-json-1.1",
|
|
197
|
-
"x-amz-target": "EC2WindowsBarleyService.TagResource",
|
|
198
|
-
};
|
|
132
|
+
const headers = sharedHeaders("TagResource");
|
|
199
133
|
let body;
|
|
200
134
|
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
201
135
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
202
136
|
};
|
|
203
137
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
204
|
-
const headers =
|
|
205
|
-
"content-type": "application/x-amz-json-1.1",
|
|
206
|
-
"x-amz-target": "EC2WindowsBarleyService.UntagResource",
|
|
207
|
-
};
|
|
138
|
+
const headers = sharedHeaders("UntagResource");
|
|
208
139
|
let body;
|
|
209
140
|
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
210
141
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
211
142
|
};
|
|
212
143
|
export const se_UpdateApplicationCommand = async (input, context) => {
|
|
213
|
-
const headers =
|
|
214
|
-
"content-type": "application/x-amz-json-1.1",
|
|
215
|
-
"x-amz-target": "EC2WindowsBarleyService.UpdateApplication",
|
|
216
|
-
};
|
|
144
|
+
const headers = sharedHeaders("UpdateApplication");
|
|
217
145
|
let body;
|
|
218
146
|
body = JSON.stringify(se_UpdateApplicationRequest(input, context));
|
|
219
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
220
148
|
};
|
|
221
149
|
export const se_UpdateComponentCommand = async (input, context) => {
|
|
222
|
-
const headers =
|
|
223
|
-
"content-type": "application/x-amz-json-1.1",
|
|
224
|
-
"x-amz-target": "EC2WindowsBarleyService.UpdateComponent",
|
|
225
|
-
};
|
|
150
|
+
const headers = sharedHeaders("UpdateComponent");
|
|
226
151
|
let body;
|
|
227
152
|
body = JSON.stringify(se_UpdateComponentRequest(input, context));
|
|
228
153
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
229
154
|
};
|
|
230
155
|
export const se_UpdateComponentConfigurationCommand = async (input, context) => {
|
|
231
|
-
const headers =
|
|
232
|
-
"content-type": "application/x-amz-json-1.1",
|
|
233
|
-
"x-amz-target": "EC2WindowsBarleyService.UpdateComponentConfiguration",
|
|
234
|
-
};
|
|
156
|
+
const headers = sharedHeaders("UpdateComponentConfiguration");
|
|
235
157
|
let body;
|
|
236
158
|
body = JSON.stringify(se_UpdateComponentConfigurationRequest(input, context));
|
|
237
159
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
160
|
};
|
|
239
161
|
export const se_UpdateLogPatternCommand = async (input, context) => {
|
|
240
|
-
const headers =
|
|
241
|
-
"content-type": "application/x-amz-json-1.1",
|
|
242
|
-
"x-amz-target": "EC2WindowsBarleyService.UpdateLogPattern",
|
|
243
|
-
};
|
|
162
|
+
const headers = sharedHeaders("UpdateLogPattern");
|
|
244
163
|
let body;
|
|
245
164
|
body = JSON.stringify(se_UpdateLogPatternRequest(input, context));
|
|
246
165
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -2062,6 +1981,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
2062
1981
|
}
|
|
2063
1982
|
return new __HttpRequest(contents);
|
|
2064
1983
|
};
|
|
1984
|
+
function sharedHeaders(operation) {
|
|
1985
|
+
return {
|
|
1986
|
+
"content-type": "application/x-amz-json-1.1",
|
|
1987
|
+
"x-amz-target": `EC2WindowsBarleyService.${operation}`,
|
|
1988
|
+
};
|
|
1989
|
+
}
|
|
2065
1990
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2066
1991
|
if (encoded.length) {
|
|
2067
1992
|
return JSON.parse(encoded);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-application-insights",
|
|
3
3
|
"description": "AWS SDK for JavaScript Application Insights 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,42 +21,42 @@
|
|
|
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/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
42
|
-
"@aws-sdk/protocol-http": "3.
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
44
|
-
"@aws-sdk/types": "3.
|
|
45
|
-
"@aws-sdk/url-parser": "3.
|
|
46
|
-
"@aws-sdk/util-base64": "3.
|
|
47
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
48
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
52
|
-
"@aws-sdk/util-retry": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
55
|
-
"@aws-sdk/util-utf8": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.312.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.310.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.310.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.310.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.310.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.310.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.310.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.310.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.310.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.310.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.310.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.310.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.310.0",
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
|
+
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
+
"@aws-sdk/smithy-client": "3.310.0",
|
|
44
|
+
"@aws-sdk/types": "3.310.0",
|
|
45
|
+
"@aws-sdk/url-parser": "3.310.0",
|
|
46
|
+
"@aws-sdk/util-base64": "3.310.0",
|
|
47
|
+
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
|
+
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.310.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.310.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
|
+
"@aws-sdk/util-retry": "3.310.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-browser": "3.310.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-node": "3.310.0",
|
|
55
|
+
"@aws-sdk/util-utf8": "3.310.0",
|
|
56
56
|
"tslib": "^2.5.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
59
|
+
"@aws-sdk/service-client-documentation-generator": "3.310.0",
|
|
60
60
|
"@tsconfig/node14": "1.0.3",
|
|
61
61
|
"@types/node": "^14.14.31",
|
|
62
62
|
"concurrently": "7.0.0",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
"files": [
|
|
79
|
-
"dist
|
|
79
|
+
"dist-*/**"
|
|
80
80
|
],
|
|
81
81
|
"author": {
|
|
82
82
|
"name": "AWS SDK for JavaScript Team",
|