@aws-sdk/client-observabilityadmin 3.893.0 → 3.895.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/index.js +1836 -10
- package/package.json +7 -7
- package/dist-cjs/ObservabilityAdmin.js +0 -63
- package/dist-cjs/ObservabilityAdminClient.js +0 -52
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
- package/dist-cjs/commands/CreateCentralizationRuleForOrganizationCommand.js +0 -26
- package/dist-cjs/commands/CreateTelemetryRuleCommand.js +0 -26
- package/dist-cjs/commands/CreateTelemetryRuleForOrganizationCommand.js +0 -26
- package/dist-cjs/commands/DeleteCentralizationRuleForOrganizationCommand.js +0 -26
- package/dist-cjs/commands/DeleteTelemetryRuleCommand.js +0 -26
- package/dist-cjs/commands/DeleteTelemetryRuleForOrganizationCommand.js +0 -26
- package/dist-cjs/commands/GetCentralizationRuleForOrganizationCommand.js +0 -26
- package/dist-cjs/commands/GetTelemetryEvaluationStatusCommand.js +0 -26
- package/dist-cjs/commands/GetTelemetryEvaluationStatusForOrganizationCommand.js +0 -26
- package/dist-cjs/commands/GetTelemetryRuleCommand.js +0 -26
- package/dist-cjs/commands/GetTelemetryRuleForOrganizationCommand.js +0 -26
- package/dist-cjs/commands/ListCentralizationRulesForOrganizationCommand.js +0 -26
- package/dist-cjs/commands/ListResourceTelemetryCommand.js +0 -26
- package/dist-cjs/commands/ListResourceTelemetryForOrganizationCommand.js +0 -26
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -26
- package/dist-cjs/commands/ListTelemetryRulesCommand.js +0 -26
- package/dist-cjs/commands/ListTelemetryRulesForOrganizationCommand.js +0 -26
- package/dist-cjs/commands/StartTelemetryEvaluationCommand.js +0 -26
- package/dist-cjs/commands/StartTelemetryEvaluationForOrganizationCommand.js +0 -26
- package/dist-cjs/commands/StopTelemetryEvaluationCommand.js +0 -26
- package/dist-cjs/commands/StopTelemetryEvaluationForOrganizationCommand.js +0 -26
- package/dist-cjs/commands/TagResourceCommand.js +0 -26
- package/dist-cjs/commands/UntagResourceCommand.js +0 -26
- package/dist-cjs/commands/UpdateCentralizationRuleForOrganizationCommand.js +0 -26
- package/dist-cjs/commands/UpdateTelemetryRuleCommand.js +0 -26
- package/dist-cjs/commands/UpdateTelemetryRuleForOrganizationCommand.js +0 -26
- package/dist-cjs/commands/index.js +0 -29
- package/dist-cjs/endpoint/EndpointParameters.js +0 -17
- package/dist-cjs/extensionConfiguration.js +0 -2
- package/dist-cjs/models/ObservabilityAdminServiceException.js +0 -12
- package/dist-cjs/models/index.js +0 -4
- package/dist-cjs/models/models_0.js +0 -164
- package/dist-cjs/pagination/Interfaces.js +0 -2
- package/dist-cjs/pagination/ListCentralizationRulesForOrganizationPaginator.js +0 -7
- package/dist-cjs/pagination/ListResourceTelemetryForOrganizationPaginator.js +0 -7
- package/dist-cjs/pagination/ListResourceTelemetryPaginator.js +0 -7
- package/dist-cjs/pagination/ListTelemetryRulesForOrganizationPaginator.js +0 -7
- package/dist-cjs/pagination/ListTelemetryRulesPaginator.js +0 -7
- package/dist-cjs/pagination/index.js +0 -9
- package/dist-cjs/protocols/Aws_restJson1.js +0 -895
- package/dist-cjs/runtimeExtensions.js +0 -13
|
@@ -1,895 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateCentralizationRuleForOrganizationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopTelemetryEvaluationForOrganizationCommand = exports.de_StopTelemetryEvaluationCommand = exports.de_StartTelemetryEvaluationForOrganizationCommand = exports.de_StartTelemetryEvaluationCommand = exports.de_ListTelemetryRulesForOrganizationCommand = exports.de_ListTelemetryRulesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListResourceTelemetryForOrganizationCommand = exports.de_ListResourceTelemetryCommand = exports.de_ListCentralizationRulesForOrganizationCommand = exports.de_GetTelemetryRuleForOrganizationCommand = exports.de_GetTelemetryRuleCommand = exports.de_GetTelemetryEvaluationStatusForOrganizationCommand = exports.de_GetTelemetryEvaluationStatusCommand = exports.de_GetCentralizationRuleForOrganizationCommand = exports.de_DeleteTelemetryRuleForOrganizationCommand = exports.de_DeleteTelemetryRuleCommand = exports.de_DeleteCentralizationRuleForOrganizationCommand = exports.de_CreateTelemetryRuleForOrganizationCommand = exports.de_CreateTelemetryRuleCommand = exports.de_CreateCentralizationRuleForOrganizationCommand = exports.se_UpdateTelemetryRuleForOrganizationCommand = exports.se_UpdateTelemetryRuleCommand = exports.se_UpdateCentralizationRuleForOrganizationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopTelemetryEvaluationForOrganizationCommand = exports.se_StopTelemetryEvaluationCommand = exports.se_StartTelemetryEvaluationForOrganizationCommand = exports.se_StartTelemetryEvaluationCommand = exports.se_ListTelemetryRulesForOrganizationCommand = exports.se_ListTelemetryRulesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListResourceTelemetryForOrganizationCommand = exports.se_ListResourceTelemetryCommand = exports.se_ListCentralizationRulesForOrganizationCommand = exports.se_GetTelemetryRuleForOrganizationCommand = exports.se_GetTelemetryRuleCommand = exports.se_GetTelemetryEvaluationStatusForOrganizationCommand = exports.se_GetTelemetryEvaluationStatusCommand = exports.se_GetCentralizationRuleForOrganizationCommand = exports.se_DeleteTelemetryRuleForOrganizationCommand = exports.se_DeleteTelemetryRuleCommand = exports.se_DeleteCentralizationRuleForOrganizationCommand = exports.se_CreateTelemetryRuleForOrganizationCommand = exports.se_CreateTelemetryRuleCommand = exports.se_CreateCentralizationRuleForOrganizationCommand = void 0;
|
|
4
|
-
exports.de_UpdateTelemetryRuleForOrganizationCommand = exports.de_UpdateTelemetryRuleCommand = void 0;
|
|
5
|
-
const core_1 = require("@aws-sdk/core");
|
|
6
|
-
const core_2 = require("@smithy/core");
|
|
7
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
|
-
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const ObservabilityAdminServiceException_1 = require("../models/ObservabilityAdminServiceException");
|
|
10
|
-
const se_CreateCentralizationRuleForOrganizationCommand = async (input, context) => {
|
|
11
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
12
|
-
const headers = {
|
|
13
|
-
"content-type": "application/json",
|
|
14
|
-
};
|
|
15
|
-
b.bp("/CreateCentralizationRuleForOrganization");
|
|
16
|
-
let body;
|
|
17
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
|
-
Rule: (_) => (0, smithy_client_1._json)(_),
|
|
19
|
-
RuleName: [],
|
|
20
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
21
|
-
}));
|
|
22
|
-
b.m("POST").h(headers).b(body);
|
|
23
|
-
return b.build();
|
|
24
|
-
};
|
|
25
|
-
exports.se_CreateCentralizationRuleForOrganizationCommand = se_CreateCentralizationRuleForOrganizationCommand;
|
|
26
|
-
const se_CreateTelemetryRuleCommand = async (input, context) => {
|
|
27
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
28
|
-
const headers = {
|
|
29
|
-
"content-type": "application/json",
|
|
30
|
-
};
|
|
31
|
-
b.bp("/CreateTelemetryRule");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
34
|
-
Rule: (_) => (0, smithy_client_1._json)(_),
|
|
35
|
-
RuleName: [],
|
|
36
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
37
|
-
}));
|
|
38
|
-
b.m("POST").h(headers).b(body);
|
|
39
|
-
return b.build();
|
|
40
|
-
};
|
|
41
|
-
exports.se_CreateTelemetryRuleCommand = se_CreateTelemetryRuleCommand;
|
|
42
|
-
const se_CreateTelemetryRuleForOrganizationCommand = async (input, context) => {
|
|
43
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
44
|
-
const headers = {
|
|
45
|
-
"content-type": "application/json",
|
|
46
|
-
};
|
|
47
|
-
b.bp("/CreateTelemetryRuleForOrganization");
|
|
48
|
-
let body;
|
|
49
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
50
|
-
Rule: (_) => (0, smithy_client_1._json)(_),
|
|
51
|
-
RuleName: [],
|
|
52
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
53
|
-
}));
|
|
54
|
-
b.m("POST").h(headers).b(body);
|
|
55
|
-
return b.build();
|
|
56
|
-
};
|
|
57
|
-
exports.se_CreateTelemetryRuleForOrganizationCommand = se_CreateTelemetryRuleForOrganizationCommand;
|
|
58
|
-
const se_DeleteCentralizationRuleForOrganizationCommand = async (input, context) => {
|
|
59
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
60
|
-
const headers = {
|
|
61
|
-
"content-type": "application/json",
|
|
62
|
-
};
|
|
63
|
-
b.bp("/DeleteCentralizationRuleForOrganization");
|
|
64
|
-
let body;
|
|
65
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
66
|
-
RuleIdentifier: [],
|
|
67
|
-
}));
|
|
68
|
-
b.m("POST").h(headers).b(body);
|
|
69
|
-
return b.build();
|
|
70
|
-
};
|
|
71
|
-
exports.se_DeleteCentralizationRuleForOrganizationCommand = se_DeleteCentralizationRuleForOrganizationCommand;
|
|
72
|
-
const se_DeleteTelemetryRuleCommand = async (input, context) => {
|
|
73
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
74
|
-
const headers = {
|
|
75
|
-
"content-type": "application/json",
|
|
76
|
-
};
|
|
77
|
-
b.bp("/DeleteTelemetryRule");
|
|
78
|
-
let body;
|
|
79
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
80
|
-
RuleIdentifier: [],
|
|
81
|
-
}));
|
|
82
|
-
b.m("POST").h(headers).b(body);
|
|
83
|
-
return b.build();
|
|
84
|
-
};
|
|
85
|
-
exports.se_DeleteTelemetryRuleCommand = se_DeleteTelemetryRuleCommand;
|
|
86
|
-
const se_DeleteTelemetryRuleForOrganizationCommand = async (input, context) => {
|
|
87
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
88
|
-
const headers = {
|
|
89
|
-
"content-type": "application/json",
|
|
90
|
-
};
|
|
91
|
-
b.bp("/DeleteTelemetryRuleForOrganization");
|
|
92
|
-
let body;
|
|
93
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
94
|
-
RuleIdentifier: [],
|
|
95
|
-
}));
|
|
96
|
-
b.m("POST").h(headers).b(body);
|
|
97
|
-
return b.build();
|
|
98
|
-
};
|
|
99
|
-
exports.se_DeleteTelemetryRuleForOrganizationCommand = se_DeleteTelemetryRuleForOrganizationCommand;
|
|
100
|
-
const se_GetCentralizationRuleForOrganizationCommand = async (input, context) => {
|
|
101
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
102
|
-
const headers = {
|
|
103
|
-
"content-type": "application/json",
|
|
104
|
-
};
|
|
105
|
-
b.bp("/GetCentralizationRuleForOrganization");
|
|
106
|
-
let body;
|
|
107
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
108
|
-
RuleIdentifier: [],
|
|
109
|
-
}));
|
|
110
|
-
b.m("POST").h(headers).b(body);
|
|
111
|
-
return b.build();
|
|
112
|
-
};
|
|
113
|
-
exports.se_GetCentralizationRuleForOrganizationCommand = se_GetCentralizationRuleForOrganizationCommand;
|
|
114
|
-
const se_GetTelemetryEvaluationStatusCommand = async (input, context) => {
|
|
115
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
116
|
-
const headers = {};
|
|
117
|
-
b.bp("/GetTelemetryEvaluationStatus");
|
|
118
|
-
let body;
|
|
119
|
-
b.m("POST").h(headers).b(body);
|
|
120
|
-
return b.build();
|
|
121
|
-
};
|
|
122
|
-
exports.se_GetTelemetryEvaluationStatusCommand = se_GetTelemetryEvaluationStatusCommand;
|
|
123
|
-
const se_GetTelemetryEvaluationStatusForOrganizationCommand = async (input, context) => {
|
|
124
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
125
|
-
const headers = {};
|
|
126
|
-
b.bp("/GetTelemetryEvaluationStatusForOrganization");
|
|
127
|
-
let body;
|
|
128
|
-
b.m("POST").h(headers).b(body);
|
|
129
|
-
return b.build();
|
|
130
|
-
};
|
|
131
|
-
exports.se_GetTelemetryEvaluationStatusForOrganizationCommand = se_GetTelemetryEvaluationStatusForOrganizationCommand;
|
|
132
|
-
const se_GetTelemetryRuleCommand = async (input, context) => {
|
|
133
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
134
|
-
const headers = {
|
|
135
|
-
"content-type": "application/json",
|
|
136
|
-
};
|
|
137
|
-
b.bp("/GetTelemetryRule");
|
|
138
|
-
let body;
|
|
139
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
140
|
-
RuleIdentifier: [],
|
|
141
|
-
}));
|
|
142
|
-
b.m("POST").h(headers).b(body);
|
|
143
|
-
return b.build();
|
|
144
|
-
};
|
|
145
|
-
exports.se_GetTelemetryRuleCommand = se_GetTelemetryRuleCommand;
|
|
146
|
-
const se_GetTelemetryRuleForOrganizationCommand = async (input, context) => {
|
|
147
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
148
|
-
const headers = {
|
|
149
|
-
"content-type": "application/json",
|
|
150
|
-
};
|
|
151
|
-
b.bp("/GetTelemetryRuleForOrganization");
|
|
152
|
-
let body;
|
|
153
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
154
|
-
RuleIdentifier: [],
|
|
155
|
-
}));
|
|
156
|
-
b.m("POST").h(headers).b(body);
|
|
157
|
-
return b.build();
|
|
158
|
-
};
|
|
159
|
-
exports.se_GetTelemetryRuleForOrganizationCommand = se_GetTelemetryRuleForOrganizationCommand;
|
|
160
|
-
const se_ListCentralizationRulesForOrganizationCommand = async (input, context) => {
|
|
161
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
162
|
-
const headers = {
|
|
163
|
-
"content-type": "application/json",
|
|
164
|
-
};
|
|
165
|
-
b.bp("/ListCentralizationRulesForOrganization");
|
|
166
|
-
let body;
|
|
167
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
168
|
-
AllRegions: [],
|
|
169
|
-
MaxResults: [],
|
|
170
|
-
NextToken: [],
|
|
171
|
-
RuleNamePrefix: [],
|
|
172
|
-
}));
|
|
173
|
-
b.m("POST").h(headers).b(body);
|
|
174
|
-
return b.build();
|
|
175
|
-
};
|
|
176
|
-
exports.se_ListCentralizationRulesForOrganizationCommand = se_ListCentralizationRulesForOrganizationCommand;
|
|
177
|
-
const se_ListResourceTelemetryCommand = async (input, context) => {
|
|
178
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
179
|
-
const headers = {
|
|
180
|
-
"content-type": "application/json",
|
|
181
|
-
};
|
|
182
|
-
b.bp("/ListResourceTelemetry");
|
|
183
|
-
let body;
|
|
184
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
185
|
-
MaxResults: [],
|
|
186
|
-
NextToken: [],
|
|
187
|
-
ResourceIdentifierPrefix: [],
|
|
188
|
-
ResourceTags: (_) => (0, smithy_client_1._json)(_),
|
|
189
|
-
ResourceTypes: (_) => (0, smithy_client_1._json)(_),
|
|
190
|
-
TelemetryConfigurationState: (_) => (0, smithy_client_1._json)(_),
|
|
191
|
-
}));
|
|
192
|
-
b.m("POST").h(headers).b(body);
|
|
193
|
-
return b.build();
|
|
194
|
-
};
|
|
195
|
-
exports.se_ListResourceTelemetryCommand = se_ListResourceTelemetryCommand;
|
|
196
|
-
const se_ListResourceTelemetryForOrganizationCommand = async (input, context) => {
|
|
197
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
198
|
-
const headers = {
|
|
199
|
-
"content-type": "application/json",
|
|
200
|
-
};
|
|
201
|
-
b.bp("/ListResourceTelemetryForOrganization");
|
|
202
|
-
let body;
|
|
203
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
204
|
-
AccountIdentifiers: (_) => (0, smithy_client_1._json)(_),
|
|
205
|
-
MaxResults: [],
|
|
206
|
-
NextToken: [],
|
|
207
|
-
ResourceIdentifierPrefix: [],
|
|
208
|
-
ResourceTags: (_) => (0, smithy_client_1._json)(_),
|
|
209
|
-
ResourceTypes: (_) => (0, smithy_client_1._json)(_),
|
|
210
|
-
TelemetryConfigurationState: (_) => (0, smithy_client_1._json)(_),
|
|
211
|
-
}));
|
|
212
|
-
b.m("POST").h(headers).b(body);
|
|
213
|
-
return b.build();
|
|
214
|
-
};
|
|
215
|
-
exports.se_ListResourceTelemetryForOrganizationCommand = se_ListResourceTelemetryForOrganizationCommand;
|
|
216
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
217
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
218
|
-
const headers = {
|
|
219
|
-
"content-type": "application/json",
|
|
220
|
-
};
|
|
221
|
-
b.bp("/ListTagsForResource");
|
|
222
|
-
let body;
|
|
223
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
224
|
-
ResourceARN: [],
|
|
225
|
-
}));
|
|
226
|
-
b.m("POST").h(headers).b(body);
|
|
227
|
-
return b.build();
|
|
228
|
-
};
|
|
229
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
230
|
-
const se_ListTelemetryRulesCommand = async (input, context) => {
|
|
231
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
232
|
-
const headers = {
|
|
233
|
-
"content-type": "application/json",
|
|
234
|
-
};
|
|
235
|
-
b.bp("/ListTelemetryRules");
|
|
236
|
-
let body;
|
|
237
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
238
|
-
MaxResults: [],
|
|
239
|
-
NextToken: [],
|
|
240
|
-
RuleNamePrefix: [],
|
|
241
|
-
}));
|
|
242
|
-
b.m("POST").h(headers).b(body);
|
|
243
|
-
return b.build();
|
|
244
|
-
};
|
|
245
|
-
exports.se_ListTelemetryRulesCommand = se_ListTelemetryRulesCommand;
|
|
246
|
-
const se_ListTelemetryRulesForOrganizationCommand = async (input, context) => {
|
|
247
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
248
|
-
const headers = {
|
|
249
|
-
"content-type": "application/json",
|
|
250
|
-
};
|
|
251
|
-
b.bp("/ListTelemetryRulesForOrganization");
|
|
252
|
-
let body;
|
|
253
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
254
|
-
MaxResults: [],
|
|
255
|
-
NextToken: [],
|
|
256
|
-
RuleNamePrefix: [],
|
|
257
|
-
SourceAccountIds: (_) => (0, smithy_client_1._json)(_),
|
|
258
|
-
SourceOrganizationUnitIds: (_) => (0, smithy_client_1._json)(_),
|
|
259
|
-
}));
|
|
260
|
-
b.m("POST").h(headers).b(body);
|
|
261
|
-
return b.build();
|
|
262
|
-
};
|
|
263
|
-
exports.se_ListTelemetryRulesForOrganizationCommand = se_ListTelemetryRulesForOrganizationCommand;
|
|
264
|
-
const se_StartTelemetryEvaluationCommand = async (input, context) => {
|
|
265
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
266
|
-
const headers = {};
|
|
267
|
-
b.bp("/StartTelemetryEvaluation");
|
|
268
|
-
let body;
|
|
269
|
-
b.m("POST").h(headers).b(body);
|
|
270
|
-
return b.build();
|
|
271
|
-
};
|
|
272
|
-
exports.se_StartTelemetryEvaluationCommand = se_StartTelemetryEvaluationCommand;
|
|
273
|
-
const se_StartTelemetryEvaluationForOrganizationCommand = async (input, context) => {
|
|
274
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
275
|
-
const headers = {};
|
|
276
|
-
b.bp("/StartTelemetryEvaluationForOrganization");
|
|
277
|
-
let body;
|
|
278
|
-
b.m("POST").h(headers).b(body);
|
|
279
|
-
return b.build();
|
|
280
|
-
};
|
|
281
|
-
exports.se_StartTelemetryEvaluationForOrganizationCommand = se_StartTelemetryEvaluationForOrganizationCommand;
|
|
282
|
-
const se_StopTelemetryEvaluationCommand = async (input, context) => {
|
|
283
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
284
|
-
const headers = {};
|
|
285
|
-
b.bp("/StopTelemetryEvaluation");
|
|
286
|
-
let body;
|
|
287
|
-
b.m("POST").h(headers).b(body);
|
|
288
|
-
return b.build();
|
|
289
|
-
};
|
|
290
|
-
exports.se_StopTelemetryEvaluationCommand = se_StopTelemetryEvaluationCommand;
|
|
291
|
-
const se_StopTelemetryEvaluationForOrganizationCommand = async (input, context) => {
|
|
292
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
293
|
-
const headers = {};
|
|
294
|
-
b.bp("/StopTelemetryEvaluationForOrganization");
|
|
295
|
-
let body;
|
|
296
|
-
b.m("POST").h(headers).b(body);
|
|
297
|
-
return b.build();
|
|
298
|
-
};
|
|
299
|
-
exports.se_StopTelemetryEvaluationForOrganizationCommand = se_StopTelemetryEvaluationForOrganizationCommand;
|
|
300
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
301
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
302
|
-
const headers = {
|
|
303
|
-
"content-type": "application/json",
|
|
304
|
-
};
|
|
305
|
-
b.bp("/TagResource");
|
|
306
|
-
let body;
|
|
307
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
308
|
-
ResourceARN: [],
|
|
309
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
310
|
-
}));
|
|
311
|
-
b.m("POST").h(headers).b(body);
|
|
312
|
-
return b.build();
|
|
313
|
-
};
|
|
314
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
315
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
316
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
317
|
-
const headers = {
|
|
318
|
-
"content-type": "application/json",
|
|
319
|
-
};
|
|
320
|
-
b.bp("/UntagResource");
|
|
321
|
-
let body;
|
|
322
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
323
|
-
ResourceARN: [],
|
|
324
|
-
TagKeys: (_) => (0, smithy_client_1._json)(_),
|
|
325
|
-
}));
|
|
326
|
-
b.m("POST").h(headers).b(body);
|
|
327
|
-
return b.build();
|
|
328
|
-
};
|
|
329
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
330
|
-
const se_UpdateCentralizationRuleForOrganizationCommand = async (input, context) => {
|
|
331
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
332
|
-
const headers = {
|
|
333
|
-
"content-type": "application/json",
|
|
334
|
-
};
|
|
335
|
-
b.bp("/UpdateCentralizationRuleForOrganization");
|
|
336
|
-
let body;
|
|
337
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
338
|
-
Rule: (_) => (0, smithy_client_1._json)(_),
|
|
339
|
-
RuleIdentifier: [],
|
|
340
|
-
}));
|
|
341
|
-
b.m("POST").h(headers).b(body);
|
|
342
|
-
return b.build();
|
|
343
|
-
};
|
|
344
|
-
exports.se_UpdateCentralizationRuleForOrganizationCommand = se_UpdateCentralizationRuleForOrganizationCommand;
|
|
345
|
-
const se_UpdateTelemetryRuleCommand = async (input, context) => {
|
|
346
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
347
|
-
const headers = {
|
|
348
|
-
"content-type": "application/json",
|
|
349
|
-
};
|
|
350
|
-
b.bp("/UpdateTelemetryRule");
|
|
351
|
-
let body;
|
|
352
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
353
|
-
Rule: (_) => (0, smithy_client_1._json)(_),
|
|
354
|
-
RuleIdentifier: [],
|
|
355
|
-
}));
|
|
356
|
-
b.m("POST").h(headers).b(body);
|
|
357
|
-
return b.build();
|
|
358
|
-
};
|
|
359
|
-
exports.se_UpdateTelemetryRuleCommand = se_UpdateTelemetryRuleCommand;
|
|
360
|
-
const se_UpdateTelemetryRuleForOrganizationCommand = async (input, context) => {
|
|
361
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
362
|
-
const headers = {
|
|
363
|
-
"content-type": "application/json",
|
|
364
|
-
};
|
|
365
|
-
b.bp("/UpdateTelemetryRuleForOrganization");
|
|
366
|
-
let body;
|
|
367
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
368
|
-
Rule: (_) => (0, smithy_client_1._json)(_),
|
|
369
|
-
RuleIdentifier: [],
|
|
370
|
-
}));
|
|
371
|
-
b.m("POST").h(headers).b(body);
|
|
372
|
-
return b.build();
|
|
373
|
-
};
|
|
374
|
-
exports.se_UpdateTelemetryRuleForOrganizationCommand = se_UpdateTelemetryRuleForOrganizationCommand;
|
|
375
|
-
const de_CreateCentralizationRuleForOrganizationCommand = async (output, context) => {
|
|
376
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
377
|
-
return de_CommandError(output, context);
|
|
378
|
-
}
|
|
379
|
-
const contents = (0, smithy_client_1.map)({
|
|
380
|
-
$metadata: deserializeMetadata(output),
|
|
381
|
-
});
|
|
382
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
383
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
384
|
-
RuleArn: smithy_client_1.expectString,
|
|
385
|
-
});
|
|
386
|
-
Object.assign(contents, doc);
|
|
387
|
-
return contents;
|
|
388
|
-
};
|
|
389
|
-
exports.de_CreateCentralizationRuleForOrganizationCommand = de_CreateCentralizationRuleForOrganizationCommand;
|
|
390
|
-
const de_CreateTelemetryRuleCommand = async (output, context) => {
|
|
391
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
392
|
-
return de_CommandError(output, context);
|
|
393
|
-
}
|
|
394
|
-
const contents = (0, smithy_client_1.map)({
|
|
395
|
-
$metadata: deserializeMetadata(output),
|
|
396
|
-
});
|
|
397
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
398
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
399
|
-
RuleArn: smithy_client_1.expectString,
|
|
400
|
-
});
|
|
401
|
-
Object.assign(contents, doc);
|
|
402
|
-
return contents;
|
|
403
|
-
};
|
|
404
|
-
exports.de_CreateTelemetryRuleCommand = de_CreateTelemetryRuleCommand;
|
|
405
|
-
const de_CreateTelemetryRuleForOrganizationCommand = async (output, context) => {
|
|
406
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
407
|
-
return de_CommandError(output, context);
|
|
408
|
-
}
|
|
409
|
-
const contents = (0, smithy_client_1.map)({
|
|
410
|
-
$metadata: deserializeMetadata(output),
|
|
411
|
-
});
|
|
412
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
413
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
414
|
-
RuleArn: smithy_client_1.expectString,
|
|
415
|
-
});
|
|
416
|
-
Object.assign(contents, doc);
|
|
417
|
-
return contents;
|
|
418
|
-
};
|
|
419
|
-
exports.de_CreateTelemetryRuleForOrganizationCommand = de_CreateTelemetryRuleForOrganizationCommand;
|
|
420
|
-
const de_DeleteCentralizationRuleForOrganizationCommand = async (output, context) => {
|
|
421
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
422
|
-
return de_CommandError(output, context);
|
|
423
|
-
}
|
|
424
|
-
const contents = (0, smithy_client_1.map)({
|
|
425
|
-
$metadata: deserializeMetadata(output),
|
|
426
|
-
});
|
|
427
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
428
|
-
return contents;
|
|
429
|
-
};
|
|
430
|
-
exports.de_DeleteCentralizationRuleForOrganizationCommand = de_DeleteCentralizationRuleForOrganizationCommand;
|
|
431
|
-
const de_DeleteTelemetryRuleCommand = async (output, context) => {
|
|
432
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
433
|
-
return de_CommandError(output, context);
|
|
434
|
-
}
|
|
435
|
-
const contents = (0, smithy_client_1.map)({
|
|
436
|
-
$metadata: deserializeMetadata(output),
|
|
437
|
-
});
|
|
438
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
439
|
-
return contents;
|
|
440
|
-
};
|
|
441
|
-
exports.de_DeleteTelemetryRuleCommand = de_DeleteTelemetryRuleCommand;
|
|
442
|
-
const de_DeleteTelemetryRuleForOrganizationCommand = async (output, context) => {
|
|
443
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
444
|
-
return de_CommandError(output, context);
|
|
445
|
-
}
|
|
446
|
-
const contents = (0, smithy_client_1.map)({
|
|
447
|
-
$metadata: deserializeMetadata(output),
|
|
448
|
-
});
|
|
449
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
450
|
-
return contents;
|
|
451
|
-
};
|
|
452
|
-
exports.de_DeleteTelemetryRuleForOrganizationCommand = de_DeleteTelemetryRuleForOrganizationCommand;
|
|
453
|
-
const de_GetCentralizationRuleForOrganizationCommand = async (output, context) => {
|
|
454
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
455
|
-
return de_CommandError(output, context);
|
|
456
|
-
}
|
|
457
|
-
const contents = (0, smithy_client_1.map)({
|
|
458
|
-
$metadata: deserializeMetadata(output),
|
|
459
|
-
});
|
|
460
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
461
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
462
|
-
CentralizationRule: smithy_client_1._json,
|
|
463
|
-
CreatedRegion: smithy_client_1.expectString,
|
|
464
|
-
CreatedTimeStamp: smithy_client_1.expectLong,
|
|
465
|
-
CreatorAccountId: smithy_client_1.expectString,
|
|
466
|
-
FailureReason: smithy_client_1.expectString,
|
|
467
|
-
LastUpdateTimeStamp: smithy_client_1.expectLong,
|
|
468
|
-
RuleArn: smithy_client_1.expectString,
|
|
469
|
-
RuleHealth: smithy_client_1.expectString,
|
|
470
|
-
RuleName: smithy_client_1.expectString,
|
|
471
|
-
});
|
|
472
|
-
Object.assign(contents, doc);
|
|
473
|
-
return contents;
|
|
474
|
-
};
|
|
475
|
-
exports.de_GetCentralizationRuleForOrganizationCommand = de_GetCentralizationRuleForOrganizationCommand;
|
|
476
|
-
const de_GetTelemetryEvaluationStatusCommand = async (output, context) => {
|
|
477
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
478
|
-
return de_CommandError(output, context);
|
|
479
|
-
}
|
|
480
|
-
const contents = (0, smithy_client_1.map)({
|
|
481
|
-
$metadata: deserializeMetadata(output),
|
|
482
|
-
});
|
|
483
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
484
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
485
|
-
FailureReason: smithy_client_1.expectString,
|
|
486
|
-
Status: smithy_client_1.expectString,
|
|
487
|
-
});
|
|
488
|
-
Object.assign(contents, doc);
|
|
489
|
-
return contents;
|
|
490
|
-
};
|
|
491
|
-
exports.de_GetTelemetryEvaluationStatusCommand = de_GetTelemetryEvaluationStatusCommand;
|
|
492
|
-
const de_GetTelemetryEvaluationStatusForOrganizationCommand = async (output, context) => {
|
|
493
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
494
|
-
return de_CommandError(output, context);
|
|
495
|
-
}
|
|
496
|
-
const contents = (0, smithy_client_1.map)({
|
|
497
|
-
$metadata: deserializeMetadata(output),
|
|
498
|
-
});
|
|
499
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
500
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
501
|
-
FailureReason: smithy_client_1.expectString,
|
|
502
|
-
Status: smithy_client_1.expectString,
|
|
503
|
-
});
|
|
504
|
-
Object.assign(contents, doc);
|
|
505
|
-
return contents;
|
|
506
|
-
};
|
|
507
|
-
exports.de_GetTelemetryEvaluationStatusForOrganizationCommand = de_GetTelemetryEvaluationStatusForOrganizationCommand;
|
|
508
|
-
const de_GetTelemetryRuleCommand = async (output, context) => {
|
|
509
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
510
|
-
return de_CommandError(output, context);
|
|
511
|
-
}
|
|
512
|
-
const contents = (0, smithy_client_1.map)({
|
|
513
|
-
$metadata: deserializeMetadata(output),
|
|
514
|
-
});
|
|
515
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
516
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
517
|
-
CreatedTimeStamp: smithy_client_1.expectLong,
|
|
518
|
-
LastUpdateTimeStamp: smithy_client_1.expectLong,
|
|
519
|
-
RuleArn: smithy_client_1.expectString,
|
|
520
|
-
RuleName: smithy_client_1.expectString,
|
|
521
|
-
TelemetryRule: smithy_client_1._json,
|
|
522
|
-
});
|
|
523
|
-
Object.assign(contents, doc);
|
|
524
|
-
return contents;
|
|
525
|
-
};
|
|
526
|
-
exports.de_GetTelemetryRuleCommand = de_GetTelemetryRuleCommand;
|
|
527
|
-
const de_GetTelemetryRuleForOrganizationCommand = async (output, context) => {
|
|
528
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
529
|
-
return de_CommandError(output, context);
|
|
530
|
-
}
|
|
531
|
-
const contents = (0, smithy_client_1.map)({
|
|
532
|
-
$metadata: deserializeMetadata(output),
|
|
533
|
-
});
|
|
534
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
535
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
536
|
-
CreatedTimeStamp: smithy_client_1.expectLong,
|
|
537
|
-
LastUpdateTimeStamp: smithy_client_1.expectLong,
|
|
538
|
-
RuleArn: smithy_client_1.expectString,
|
|
539
|
-
RuleName: smithy_client_1.expectString,
|
|
540
|
-
TelemetryRule: smithy_client_1._json,
|
|
541
|
-
});
|
|
542
|
-
Object.assign(contents, doc);
|
|
543
|
-
return contents;
|
|
544
|
-
};
|
|
545
|
-
exports.de_GetTelemetryRuleForOrganizationCommand = de_GetTelemetryRuleForOrganizationCommand;
|
|
546
|
-
const de_ListCentralizationRulesForOrganizationCommand = async (output, context) => {
|
|
547
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
548
|
-
return de_CommandError(output, context);
|
|
549
|
-
}
|
|
550
|
-
const contents = (0, smithy_client_1.map)({
|
|
551
|
-
$metadata: deserializeMetadata(output),
|
|
552
|
-
});
|
|
553
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
554
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
555
|
-
CentralizationRuleSummaries: smithy_client_1._json,
|
|
556
|
-
NextToken: smithy_client_1.expectString,
|
|
557
|
-
});
|
|
558
|
-
Object.assign(contents, doc);
|
|
559
|
-
return contents;
|
|
560
|
-
};
|
|
561
|
-
exports.de_ListCentralizationRulesForOrganizationCommand = de_ListCentralizationRulesForOrganizationCommand;
|
|
562
|
-
const de_ListResourceTelemetryCommand = async (output, context) => {
|
|
563
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
564
|
-
return de_CommandError(output, context);
|
|
565
|
-
}
|
|
566
|
-
const contents = (0, smithy_client_1.map)({
|
|
567
|
-
$metadata: deserializeMetadata(output),
|
|
568
|
-
});
|
|
569
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
570
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
571
|
-
NextToken: smithy_client_1.expectString,
|
|
572
|
-
TelemetryConfigurations: smithy_client_1._json,
|
|
573
|
-
});
|
|
574
|
-
Object.assign(contents, doc);
|
|
575
|
-
return contents;
|
|
576
|
-
};
|
|
577
|
-
exports.de_ListResourceTelemetryCommand = de_ListResourceTelemetryCommand;
|
|
578
|
-
const de_ListResourceTelemetryForOrganizationCommand = async (output, context) => {
|
|
579
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
580
|
-
return de_CommandError(output, context);
|
|
581
|
-
}
|
|
582
|
-
const contents = (0, smithy_client_1.map)({
|
|
583
|
-
$metadata: deserializeMetadata(output),
|
|
584
|
-
});
|
|
585
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
586
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
587
|
-
NextToken: smithy_client_1.expectString,
|
|
588
|
-
TelemetryConfigurations: smithy_client_1._json,
|
|
589
|
-
});
|
|
590
|
-
Object.assign(contents, doc);
|
|
591
|
-
return contents;
|
|
592
|
-
};
|
|
593
|
-
exports.de_ListResourceTelemetryForOrganizationCommand = de_ListResourceTelemetryForOrganizationCommand;
|
|
594
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
595
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
596
|
-
return de_CommandError(output, context);
|
|
597
|
-
}
|
|
598
|
-
const contents = (0, smithy_client_1.map)({
|
|
599
|
-
$metadata: deserializeMetadata(output),
|
|
600
|
-
});
|
|
601
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
602
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
603
|
-
Tags: smithy_client_1._json,
|
|
604
|
-
});
|
|
605
|
-
Object.assign(contents, doc);
|
|
606
|
-
return contents;
|
|
607
|
-
};
|
|
608
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
609
|
-
const de_ListTelemetryRulesCommand = async (output, context) => {
|
|
610
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
611
|
-
return de_CommandError(output, context);
|
|
612
|
-
}
|
|
613
|
-
const contents = (0, smithy_client_1.map)({
|
|
614
|
-
$metadata: deserializeMetadata(output),
|
|
615
|
-
});
|
|
616
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
617
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
618
|
-
NextToken: smithy_client_1.expectString,
|
|
619
|
-
TelemetryRuleSummaries: smithy_client_1._json,
|
|
620
|
-
});
|
|
621
|
-
Object.assign(contents, doc);
|
|
622
|
-
return contents;
|
|
623
|
-
};
|
|
624
|
-
exports.de_ListTelemetryRulesCommand = de_ListTelemetryRulesCommand;
|
|
625
|
-
const de_ListTelemetryRulesForOrganizationCommand = async (output, context) => {
|
|
626
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
627
|
-
return de_CommandError(output, context);
|
|
628
|
-
}
|
|
629
|
-
const contents = (0, smithy_client_1.map)({
|
|
630
|
-
$metadata: deserializeMetadata(output),
|
|
631
|
-
});
|
|
632
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
633
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
634
|
-
NextToken: smithy_client_1.expectString,
|
|
635
|
-
TelemetryRuleSummaries: smithy_client_1._json,
|
|
636
|
-
});
|
|
637
|
-
Object.assign(contents, doc);
|
|
638
|
-
return contents;
|
|
639
|
-
};
|
|
640
|
-
exports.de_ListTelemetryRulesForOrganizationCommand = de_ListTelemetryRulesForOrganizationCommand;
|
|
641
|
-
const de_StartTelemetryEvaluationCommand = async (output, context) => {
|
|
642
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
643
|
-
return de_CommandError(output, context);
|
|
644
|
-
}
|
|
645
|
-
const contents = (0, smithy_client_1.map)({
|
|
646
|
-
$metadata: deserializeMetadata(output),
|
|
647
|
-
});
|
|
648
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
649
|
-
return contents;
|
|
650
|
-
};
|
|
651
|
-
exports.de_StartTelemetryEvaluationCommand = de_StartTelemetryEvaluationCommand;
|
|
652
|
-
const de_StartTelemetryEvaluationForOrganizationCommand = async (output, context) => {
|
|
653
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
654
|
-
return de_CommandError(output, context);
|
|
655
|
-
}
|
|
656
|
-
const contents = (0, smithy_client_1.map)({
|
|
657
|
-
$metadata: deserializeMetadata(output),
|
|
658
|
-
});
|
|
659
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
660
|
-
return contents;
|
|
661
|
-
};
|
|
662
|
-
exports.de_StartTelemetryEvaluationForOrganizationCommand = de_StartTelemetryEvaluationForOrganizationCommand;
|
|
663
|
-
const de_StopTelemetryEvaluationCommand = async (output, context) => {
|
|
664
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
665
|
-
return de_CommandError(output, context);
|
|
666
|
-
}
|
|
667
|
-
const contents = (0, smithy_client_1.map)({
|
|
668
|
-
$metadata: deserializeMetadata(output),
|
|
669
|
-
});
|
|
670
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
671
|
-
return contents;
|
|
672
|
-
};
|
|
673
|
-
exports.de_StopTelemetryEvaluationCommand = de_StopTelemetryEvaluationCommand;
|
|
674
|
-
const de_StopTelemetryEvaluationForOrganizationCommand = async (output, context) => {
|
|
675
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
676
|
-
return de_CommandError(output, context);
|
|
677
|
-
}
|
|
678
|
-
const contents = (0, smithy_client_1.map)({
|
|
679
|
-
$metadata: deserializeMetadata(output),
|
|
680
|
-
});
|
|
681
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
682
|
-
return contents;
|
|
683
|
-
};
|
|
684
|
-
exports.de_StopTelemetryEvaluationForOrganizationCommand = de_StopTelemetryEvaluationForOrganizationCommand;
|
|
685
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
686
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
687
|
-
return de_CommandError(output, context);
|
|
688
|
-
}
|
|
689
|
-
const contents = (0, smithy_client_1.map)({
|
|
690
|
-
$metadata: deserializeMetadata(output),
|
|
691
|
-
});
|
|
692
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
693
|
-
return contents;
|
|
694
|
-
};
|
|
695
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
696
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
697
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
698
|
-
return de_CommandError(output, context);
|
|
699
|
-
}
|
|
700
|
-
const contents = (0, smithy_client_1.map)({
|
|
701
|
-
$metadata: deserializeMetadata(output),
|
|
702
|
-
});
|
|
703
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
704
|
-
return contents;
|
|
705
|
-
};
|
|
706
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
707
|
-
const de_UpdateCentralizationRuleForOrganizationCommand = async (output, context) => {
|
|
708
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
709
|
-
return de_CommandError(output, context);
|
|
710
|
-
}
|
|
711
|
-
const contents = (0, smithy_client_1.map)({
|
|
712
|
-
$metadata: deserializeMetadata(output),
|
|
713
|
-
});
|
|
714
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
715
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
716
|
-
RuleArn: smithy_client_1.expectString,
|
|
717
|
-
});
|
|
718
|
-
Object.assign(contents, doc);
|
|
719
|
-
return contents;
|
|
720
|
-
};
|
|
721
|
-
exports.de_UpdateCentralizationRuleForOrganizationCommand = de_UpdateCentralizationRuleForOrganizationCommand;
|
|
722
|
-
const de_UpdateTelemetryRuleCommand = async (output, context) => {
|
|
723
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
724
|
-
return de_CommandError(output, context);
|
|
725
|
-
}
|
|
726
|
-
const contents = (0, smithy_client_1.map)({
|
|
727
|
-
$metadata: deserializeMetadata(output),
|
|
728
|
-
});
|
|
729
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
730
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
731
|
-
RuleArn: smithy_client_1.expectString,
|
|
732
|
-
});
|
|
733
|
-
Object.assign(contents, doc);
|
|
734
|
-
return contents;
|
|
735
|
-
};
|
|
736
|
-
exports.de_UpdateTelemetryRuleCommand = de_UpdateTelemetryRuleCommand;
|
|
737
|
-
const de_UpdateTelemetryRuleForOrganizationCommand = async (output, context) => {
|
|
738
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
739
|
-
return de_CommandError(output, context);
|
|
740
|
-
}
|
|
741
|
-
const contents = (0, smithy_client_1.map)({
|
|
742
|
-
$metadata: deserializeMetadata(output),
|
|
743
|
-
});
|
|
744
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
745
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
746
|
-
RuleArn: smithy_client_1.expectString,
|
|
747
|
-
});
|
|
748
|
-
Object.assign(contents, doc);
|
|
749
|
-
return contents;
|
|
750
|
-
};
|
|
751
|
-
exports.de_UpdateTelemetryRuleForOrganizationCommand = de_UpdateTelemetryRuleForOrganizationCommand;
|
|
752
|
-
const de_CommandError = async (output, context) => {
|
|
753
|
-
const parsedOutput = {
|
|
754
|
-
...output,
|
|
755
|
-
body: await (0, core_1.parseJsonErrorBody)(output.body, context),
|
|
756
|
-
};
|
|
757
|
-
const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
758
|
-
switch (errorCode) {
|
|
759
|
-
case "AccessDeniedException":
|
|
760
|
-
case "com.amazonaws.observabilityadmin#AccessDeniedException":
|
|
761
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
762
|
-
case "ConflictException":
|
|
763
|
-
case "com.amazonaws.observabilityadmin#ConflictException":
|
|
764
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
765
|
-
case "InternalServerException":
|
|
766
|
-
case "com.amazonaws.observabilityadmin#InternalServerException":
|
|
767
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
768
|
-
case "ServiceQuotaExceededException":
|
|
769
|
-
case "com.amazonaws.observabilityadmin#ServiceQuotaExceededException":
|
|
770
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
771
|
-
case "TooManyRequestsException":
|
|
772
|
-
case "com.amazonaws.observabilityadmin#TooManyRequestsException":
|
|
773
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
774
|
-
case "ValidationException":
|
|
775
|
-
case "com.amazonaws.observabilityadmin#ValidationException":
|
|
776
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
777
|
-
case "ResourceNotFoundException":
|
|
778
|
-
case "com.amazonaws.observabilityadmin#ResourceNotFoundException":
|
|
779
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
780
|
-
default:
|
|
781
|
-
const parsedBody = parsedOutput.body;
|
|
782
|
-
return throwDefaultError({
|
|
783
|
-
output,
|
|
784
|
-
parsedBody,
|
|
785
|
-
errorCode,
|
|
786
|
-
});
|
|
787
|
-
}
|
|
788
|
-
};
|
|
789
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(ObservabilityAdminServiceException_1.ObservabilityAdminServiceException);
|
|
790
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
791
|
-
const contents = (0, smithy_client_1.map)({
|
|
792
|
-
[_aET]: [, parsedOutput.headers[_xae]],
|
|
793
|
-
});
|
|
794
|
-
const data = parsedOutput.body;
|
|
795
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
796
|
-
Message: smithy_client_1.expectString,
|
|
797
|
-
});
|
|
798
|
-
Object.assign(contents, doc);
|
|
799
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
800
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
801
|
-
...contents,
|
|
802
|
-
});
|
|
803
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
804
|
-
};
|
|
805
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
806
|
-
const contents = (0, smithy_client_1.map)({});
|
|
807
|
-
const data = parsedOutput.body;
|
|
808
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
809
|
-
Message: smithy_client_1.expectString,
|
|
810
|
-
});
|
|
811
|
-
Object.assign(contents, doc);
|
|
812
|
-
const exception = new models_0_1.ConflictException({
|
|
813
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
814
|
-
...contents,
|
|
815
|
-
});
|
|
816
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
817
|
-
};
|
|
818
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
819
|
-
const contents = (0, smithy_client_1.map)({
|
|
820
|
-
[_aET]: [, parsedOutput.headers[_xae]],
|
|
821
|
-
});
|
|
822
|
-
const data = parsedOutput.body;
|
|
823
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
824
|
-
Message: smithy_client_1.expectString,
|
|
825
|
-
});
|
|
826
|
-
Object.assign(contents, doc);
|
|
827
|
-
const exception = new models_0_1.InternalServerException({
|
|
828
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
829
|
-
...contents,
|
|
830
|
-
});
|
|
831
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
832
|
-
};
|
|
833
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
834
|
-
const contents = (0, smithy_client_1.map)({});
|
|
835
|
-
const data = parsedOutput.body;
|
|
836
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
837
|
-
Message: smithy_client_1.expectString,
|
|
838
|
-
});
|
|
839
|
-
Object.assign(contents, doc);
|
|
840
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
841
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
842
|
-
...contents,
|
|
843
|
-
});
|
|
844
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
845
|
-
};
|
|
846
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
847
|
-
const contents = (0, smithy_client_1.map)({
|
|
848
|
-
[_aET]: [, parsedOutput.headers[_xae]],
|
|
849
|
-
});
|
|
850
|
-
const data = parsedOutput.body;
|
|
851
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
852
|
-
Message: smithy_client_1.expectString,
|
|
853
|
-
});
|
|
854
|
-
Object.assign(contents, doc);
|
|
855
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
856
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
857
|
-
...contents,
|
|
858
|
-
});
|
|
859
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
860
|
-
};
|
|
861
|
-
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
862
|
-
const contents = (0, smithy_client_1.map)({});
|
|
863
|
-
const data = parsedOutput.body;
|
|
864
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
865
|
-
Message: smithy_client_1.expectString,
|
|
866
|
-
});
|
|
867
|
-
Object.assign(contents, doc);
|
|
868
|
-
const exception = new models_0_1.TooManyRequestsException({
|
|
869
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
870
|
-
...contents,
|
|
871
|
-
});
|
|
872
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
873
|
-
};
|
|
874
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
875
|
-
const contents = (0, smithy_client_1.map)({});
|
|
876
|
-
const data = parsedOutput.body;
|
|
877
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
878
|
-
Message: smithy_client_1.expectString,
|
|
879
|
-
});
|
|
880
|
-
Object.assign(contents, doc);
|
|
881
|
-
const exception = new models_0_1.ValidationException({
|
|
882
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
883
|
-
...contents,
|
|
884
|
-
});
|
|
885
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
886
|
-
};
|
|
887
|
-
const deserializeMetadata = (output) => ({
|
|
888
|
-
httpStatusCode: output.statusCode,
|
|
889
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
890
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
891
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
892
|
-
});
|
|
893
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
894
|
-
const _aET = "amznErrorType";
|
|
895
|
-
const _xae = "x-amzn-errortype";
|