@aws-sdk/client-observabilityadmin 3.858.0 → 3.862.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.
Files changed (93) hide show
  1. package/README.md +105 -1
  2. package/dist-cjs/ObservabilityAdmin.js +26 -0
  3. package/dist-cjs/commands/CreateTelemetryRuleCommand.js +26 -0
  4. package/dist-cjs/commands/CreateTelemetryRuleForOrganizationCommand.js +26 -0
  5. package/dist-cjs/commands/DeleteTelemetryRuleCommand.js +26 -0
  6. package/dist-cjs/commands/DeleteTelemetryRuleForOrganizationCommand.js +26 -0
  7. package/dist-cjs/commands/GetTelemetryRuleCommand.js +26 -0
  8. package/dist-cjs/commands/GetTelemetryRuleForOrganizationCommand.js +26 -0
  9. package/dist-cjs/commands/ListTagsForResourceCommand.js +26 -0
  10. package/dist-cjs/commands/ListTelemetryRulesCommand.js +26 -0
  11. package/dist-cjs/commands/ListTelemetryRulesForOrganizationCommand.js +26 -0
  12. package/dist-cjs/commands/TagResourceCommand.js +26 -0
  13. package/dist-cjs/commands/UntagResourceCommand.js +26 -0
  14. package/dist-cjs/commands/UpdateTelemetryRuleCommand.js +26 -0
  15. package/dist-cjs/commands/UpdateTelemetryRuleForOrganizationCommand.js +26 -0
  16. package/dist-cjs/commands/index.js +13 -0
  17. package/dist-cjs/models/models_0.js +83 -18
  18. package/dist-cjs/pagination/ListTelemetryRulesForOrganizationPaginator.js +7 -0
  19. package/dist-cjs/pagination/ListTelemetryRulesPaginator.js +7 -0
  20. package/dist-cjs/pagination/index.js +2 -0
  21. package/dist-cjs/protocols/Aws_restJson1.js +452 -1
  22. package/dist-es/ObservabilityAdmin.js +26 -0
  23. package/dist-es/commands/CreateTelemetryRuleCommand.js +22 -0
  24. package/dist-es/commands/CreateTelemetryRuleForOrganizationCommand.js +22 -0
  25. package/dist-es/commands/DeleteTelemetryRuleCommand.js +22 -0
  26. package/dist-es/commands/DeleteTelemetryRuleForOrganizationCommand.js +22 -0
  27. package/dist-es/commands/GetTelemetryRuleCommand.js +22 -0
  28. package/dist-es/commands/GetTelemetryRuleForOrganizationCommand.js +22 -0
  29. package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
  30. package/dist-es/commands/ListTelemetryRulesCommand.js +22 -0
  31. package/dist-es/commands/ListTelemetryRulesForOrganizationCommand.js +22 -0
  32. package/dist-es/commands/TagResourceCommand.js +22 -0
  33. package/dist-es/commands/UntagResourceCommand.js +22 -0
  34. package/dist-es/commands/UpdateTelemetryRuleCommand.js +22 -0
  35. package/dist-es/commands/UpdateTelemetryRuleForOrganizationCommand.js +22 -0
  36. package/dist-es/commands/index.js +13 -0
  37. package/dist-es/models/models_0.js +78 -17
  38. package/dist-es/pagination/ListTelemetryRulesForOrganizationPaginator.js +4 -0
  39. package/dist-es/pagination/ListTelemetryRulesPaginator.js +4 -0
  40. package/dist-es/pagination/index.js +2 -0
  41. package/dist-es/protocols/Aws_restJson1.js +427 -2
  42. package/dist-types/ObservabilityAdmin.d.ts +94 -1
  43. package/dist-types/ObservabilityAdminClient.d.ts +16 -3
  44. package/dist-types/commands/CreateTelemetryRuleCommand.d.ts +123 -0
  45. package/dist-types/commands/CreateTelemetryRuleForOrganizationCommand.d.ts +123 -0
  46. package/dist-types/commands/DeleteTelemetryRuleCommand.d.ts +97 -0
  47. package/dist-types/commands/DeleteTelemetryRuleForOrganizationCommand.d.ts +97 -0
  48. package/dist-types/commands/GetTelemetryEvaluationStatusCommand.d.ts +6 -1
  49. package/dist-types/commands/GetTelemetryEvaluationStatusForOrganizationCommand.d.ts +7 -2
  50. package/dist-types/commands/GetTelemetryRuleCommand.d.ts +118 -0
  51. package/dist-types/commands/GetTelemetryRuleForOrganizationCommand.d.ts +118 -0
  52. package/dist-types/commands/ListResourceTelemetryCommand.d.ts +7 -2
  53. package/dist-types/commands/ListResourceTelemetryForOrganizationCommand.d.ts +7 -2
  54. package/dist-types/commands/ListTagsForResourceCommand.d.ts +101 -0
  55. package/dist-types/commands/ListTelemetryRulesCommand.d.ts +106 -0
  56. package/dist-types/commands/ListTelemetryRulesForOrganizationCommand.d.ts +112 -0
  57. package/dist-types/commands/StartTelemetryEvaluationCommand.d.ts +7 -2
  58. package/dist-types/commands/StartTelemetryEvaluationForOrganizationCommand.d.ts +6 -1
  59. package/dist-types/commands/StopTelemetryEvaluationCommand.d.ts +7 -2
  60. package/dist-types/commands/StopTelemetryEvaluationForOrganizationCommand.d.ts +7 -2
  61. package/dist-types/commands/TagResourceCommand.d.ts +105 -0
  62. package/dist-types/commands/UntagResourceCommand.d.ts +100 -0
  63. package/dist-types/commands/UpdateTelemetryRuleCommand.d.ts +120 -0
  64. package/dist-types/commands/UpdateTelemetryRuleForOrganizationCommand.d.ts +120 -0
  65. package/dist-types/commands/index.d.ts +13 -0
  66. package/dist-types/index.d.ts +1 -1
  67. package/dist-types/models/models_0.d.ts +707 -39
  68. package/dist-types/pagination/ListTelemetryRulesForOrganizationPaginator.d.ts +7 -0
  69. package/dist-types/pagination/ListTelemetryRulesPaginator.d.ts +7 -0
  70. package/dist-types/pagination/index.d.ts +2 -0
  71. package/dist-types/protocols/Aws_restJson1.d.ts +117 -0
  72. package/dist-types/ts3.4/ObservabilityAdmin.d.ts +247 -0
  73. package/dist-types/ts3.4/ObservabilityAdminClient.d.ts +80 -2
  74. package/dist-types/ts3.4/commands/CreateTelemetryRuleCommand.d.ts +51 -0
  75. package/dist-types/ts3.4/commands/CreateTelemetryRuleForOrganizationCommand.d.ts +51 -0
  76. package/dist-types/ts3.4/commands/DeleteTelemetryRuleCommand.d.ts +46 -0
  77. package/dist-types/ts3.4/commands/DeleteTelemetryRuleForOrganizationCommand.d.ts +47 -0
  78. package/dist-types/ts3.4/commands/GetTelemetryRuleCommand.d.ts +50 -0
  79. package/dist-types/ts3.4/commands/GetTelemetryRuleForOrganizationCommand.d.ts +51 -0
  80. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  81. package/dist-types/ts3.4/commands/ListTelemetryRulesCommand.d.ts +51 -0
  82. package/dist-types/ts3.4/commands/ListTelemetryRulesForOrganizationCommand.d.ts +51 -0
  83. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +45 -0
  84. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +45 -0
  85. package/dist-types/ts3.4/commands/UpdateTelemetryRuleCommand.d.ts +51 -0
  86. package/dist-types/ts3.4/commands/UpdateTelemetryRuleForOrganizationCommand.d.ts +51 -0
  87. package/dist-types/ts3.4/commands/index.d.ts +13 -0
  88. package/dist-types/ts3.4/models/models_0.d.ts +178 -26
  89. package/dist-types/ts3.4/pagination/ListTelemetryRulesForOrganizationPaginator.d.ts +11 -0
  90. package/dist-types/ts3.4/pagination/ListTelemetryRulesPaginator.d.ts +11 -0
  91. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  92. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +156 -0
  93. package/package.json +33 -33
@@ -1,8 +1,64 @@
1
1
  import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
4
- import { AccessDeniedException, InternalServerException, ValidationException, } from "../models/models_0";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
4
+ import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, TooManyRequestsException, ValidationException, } from "../models/models_0";
5
5
  import { ObservabilityAdminServiceException as __BaseException } from "../models/ObservabilityAdminServiceException";
6
+ export const se_CreateTelemetryRuleCommand = async (input, context) => {
7
+ const b = rb(input, context);
8
+ const headers = {
9
+ "content-type": "application/json",
10
+ };
11
+ b.bp("/CreateTelemetryRule");
12
+ let body;
13
+ body = JSON.stringify(take(input, {
14
+ Rule: (_) => _json(_),
15
+ RuleName: [],
16
+ Tags: (_) => _json(_),
17
+ }));
18
+ b.m("POST").h(headers).b(body);
19
+ return b.build();
20
+ };
21
+ export const se_CreateTelemetryRuleForOrganizationCommand = async (input, context) => {
22
+ const b = rb(input, context);
23
+ const headers = {
24
+ "content-type": "application/json",
25
+ };
26
+ b.bp("/CreateTelemetryRuleForOrganization");
27
+ let body;
28
+ body = JSON.stringify(take(input, {
29
+ Rule: (_) => _json(_),
30
+ RuleName: [],
31
+ Tags: (_) => _json(_),
32
+ }));
33
+ b.m("POST").h(headers).b(body);
34
+ return b.build();
35
+ };
36
+ export const se_DeleteTelemetryRuleCommand = async (input, context) => {
37
+ const b = rb(input, context);
38
+ const headers = {
39
+ "content-type": "application/json",
40
+ };
41
+ b.bp("/DeleteTelemetryRule");
42
+ let body;
43
+ body = JSON.stringify(take(input, {
44
+ RuleIdentifier: [],
45
+ }));
46
+ b.m("POST").h(headers).b(body);
47
+ return b.build();
48
+ };
49
+ export const se_DeleteTelemetryRuleForOrganizationCommand = async (input, context) => {
50
+ const b = rb(input, context);
51
+ const headers = {
52
+ "content-type": "application/json",
53
+ };
54
+ b.bp("/DeleteTelemetryRuleForOrganization");
55
+ let body;
56
+ body = JSON.stringify(take(input, {
57
+ RuleIdentifier: [],
58
+ }));
59
+ b.m("POST").h(headers).b(body);
60
+ return b.build();
61
+ };
6
62
  export const se_GetTelemetryEvaluationStatusCommand = async (input, context) => {
7
63
  const b = rb(input, context);
8
64
  const headers = {};
@@ -19,6 +75,32 @@ export const se_GetTelemetryEvaluationStatusForOrganizationCommand = async (inpu
19
75
  b.m("POST").h(headers).b(body);
20
76
  return b.build();
21
77
  };
78
+ export const se_GetTelemetryRuleCommand = async (input, context) => {
79
+ const b = rb(input, context);
80
+ const headers = {
81
+ "content-type": "application/json",
82
+ };
83
+ b.bp("/GetTelemetryRule");
84
+ let body;
85
+ body = JSON.stringify(take(input, {
86
+ RuleIdentifier: [],
87
+ }));
88
+ b.m("POST").h(headers).b(body);
89
+ return b.build();
90
+ };
91
+ export const se_GetTelemetryRuleForOrganizationCommand = async (input, context) => {
92
+ const b = rb(input, context);
93
+ const headers = {
94
+ "content-type": "application/json",
95
+ };
96
+ b.bp("/GetTelemetryRuleForOrganization");
97
+ let body;
98
+ body = JSON.stringify(take(input, {
99
+ RuleIdentifier: [],
100
+ }));
101
+ b.m("POST").h(headers).b(body);
102
+ return b.build();
103
+ };
22
104
  export const se_ListResourceTelemetryCommand = async (input, context) => {
23
105
  const b = rb(input, context);
24
106
  const headers = {
@@ -56,6 +138,51 @@ export const se_ListResourceTelemetryForOrganizationCommand = async (input, cont
56
138
  b.m("POST").h(headers).b(body);
57
139
  return b.build();
58
140
  };
141
+ export const se_ListTagsForResourceCommand = async (input, context) => {
142
+ const b = rb(input, context);
143
+ const headers = {
144
+ "content-type": "application/json",
145
+ };
146
+ b.bp("/ListTagsForResource");
147
+ let body;
148
+ body = JSON.stringify(take(input, {
149
+ ResourceARN: [],
150
+ }));
151
+ b.m("POST").h(headers).b(body);
152
+ return b.build();
153
+ };
154
+ export const se_ListTelemetryRulesCommand = async (input, context) => {
155
+ const b = rb(input, context);
156
+ const headers = {
157
+ "content-type": "application/json",
158
+ };
159
+ b.bp("/ListTelemetryRules");
160
+ let body;
161
+ body = JSON.stringify(take(input, {
162
+ MaxResults: [],
163
+ NextToken: [],
164
+ RuleNamePrefix: [],
165
+ }));
166
+ b.m("POST").h(headers).b(body);
167
+ return b.build();
168
+ };
169
+ export const se_ListTelemetryRulesForOrganizationCommand = async (input, context) => {
170
+ const b = rb(input, context);
171
+ const headers = {
172
+ "content-type": "application/json",
173
+ };
174
+ b.bp("/ListTelemetryRulesForOrganization");
175
+ let body;
176
+ body = JSON.stringify(take(input, {
177
+ MaxResults: [],
178
+ NextToken: [],
179
+ RuleNamePrefix: [],
180
+ SourceAccountIds: (_) => _json(_),
181
+ SourceOrganizationUnitIds: (_) => _json(_),
182
+ }));
183
+ b.m("POST").h(headers).b(body);
184
+ return b.build();
185
+ };
59
186
  export const se_StartTelemetryEvaluationCommand = async (input, context) => {
60
187
  const b = rb(input, context);
61
188
  const headers = {};
@@ -88,6 +215,110 @@ export const se_StopTelemetryEvaluationForOrganizationCommand = async (input, co
88
215
  b.m("POST").h(headers).b(body);
89
216
  return b.build();
90
217
  };
218
+ export const se_TagResourceCommand = async (input, context) => {
219
+ const b = rb(input, context);
220
+ const headers = {
221
+ "content-type": "application/json",
222
+ };
223
+ b.bp("/TagResource");
224
+ let body;
225
+ body = JSON.stringify(take(input, {
226
+ ResourceARN: [],
227
+ Tags: (_) => _json(_),
228
+ }));
229
+ b.m("POST").h(headers).b(body);
230
+ return b.build();
231
+ };
232
+ export const se_UntagResourceCommand = async (input, context) => {
233
+ const b = rb(input, context);
234
+ const headers = {
235
+ "content-type": "application/json",
236
+ };
237
+ b.bp("/UntagResource");
238
+ let body;
239
+ body = JSON.stringify(take(input, {
240
+ ResourceARN: [],
241
+ TagKeys: (_) => _json(_),
242
+ }));
243
+ b.m("POST").h(headers).b(body);
244
+ return b.build();
245
+ };
246
+ export const se_UpdateTelemetryRuleCommand = async (input, context) => {
247
+ const b = rb(input, context);
248
+ const headers = {
249
+ "content-type": "application/json",
250
+ };
251
+ b.bp("/UpdateTelemetryRule");
252
+ let body;
253
+ body = JSON.stringify(take(input, {
254
+ Rule: (_) => _json(_),
255
+ RuleIdentifier: [],
256
+ }));
257
+ b.m("POST").h(headers).b(body);
258
+ return b.build();
259
+ };
260
+ export const se_UpdateTelemetryRuleForOrganizationCommand = async (input, context) => {
261
+ const b = rb(input, context);
262
+ const headers = {
263
+ "content-type": "application/json",
264
+ };
265
+ b.bp("/UpdateTelemetryRuleForOrganization");
266
+ let body;
267
+ body = JSON.stringify(take(input, {
268
+ Rule: (_) => _json(_),
269
+ RuleIdentifier: [],
270
+ }));
271
+ b.m("POST").h(headers).b(body);
272
+ return b.build();
273
+ };
274
+ export const de_CreateTelemetryRuleCommand = async (output, context) => {
275
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
276
+ return de_CommandError(output, context);
277
+ }
278
+ const contents = map({
279
+ $metadata: deserializeMetadata(output),
280
+ });
281
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
282
+ const doc = take(data, {
283
+ RuleArn: __expectString,
284
+ });
285
+ Object.assign(contents, doc);
286
+ return contents;
287
+ };
288
+ export const de_CreateTelemetryRuleForOrganizationCommand = async (output, context) => {
289
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
290
+ return de_CommandError(output, context);
291
+ }
292
+ const contents = map({
293
+ $metadata: deserializeMetadata(output),
294
+ });
295
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
296
+ const doc = take(data, {
297
+ RuleArn: __expectString,
298
+ });
299
+ Object.assign(contents, doc);
300
+ return contents;
301
+ };
302
+ export const de_DeleteTelemetryRuleCommand = async (output, context) => {
303
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
304
+ return de_CommandError(output, context);
305
+ }
306
+ const contents = map({
307
+ $metadata: deserializeMetadata(output),
308
+ });
309
+ await collectBody(output.body, context);
310
+ return contents;
311
+ };
312
+ export const de_DeleteTelemetryRuleForOrganizationCommand = async (output, context) => {
313
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
314
+ return de_CommandError(output, context);
315
+ }
316
+ const contents = map({
317
+ $metadata: deserializeMetadata(output),
318
+ });
319
+ await collectBody(output.body, context);
320
+ return contents;
321
+ };
91
322
  export const de_GetTelemetryEvaluationStatusCommand = async (output, context) => {
92
323
  if (output.statusCode !== 200 && output.statusCode >= 300) {
93
324
  return de_CommandError(output, context);
@@ -118,6 +349,42 @@ export const de_GetTelemetryEvaluationStatusForOrganizationCommand = async (outp
118
349
  Object.assign(contents, doc);
119
350
  return contents;
120
351
  };
352
+ export const de_GetTelemetryRuleCommand = async (output, context) => {
353
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
354
+ return de_CommandError(output, context);
355
+ }
356
+ const contents = map({
357
+ $metadata: deserializeMetadata(output),
358
+ });
359
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
360
+ const doc = take(data, {
361
+ CreatedTimeStamp: __expectLong,
362
+ LastUpdateTimeStamp: __expectLong,
363
+ RuleArn: __expectString,
364
+ RuleName: __expectString,
365
+ TelemetryRule: _json,
366
+ });
367
+ Object.assign(contents, doc);
368
+ return contents;
369
+ };
370
+ export const de_GetTelemetryRuleForOrganizationCommand = async (output, context) => {
371
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
372
+ return de_CommandError(output, context);
373
+ }
374
+ const contents = map({
375
+ $metadata: deserializeMetadata(output),
376
+ });
377
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
378
+ const doc = take(data, {
379
+ CreatedTimeStamp: __expectLong,
380
+ LastUpdateTimeStamp: __expectLong,
381
+ RuleArn: __expectString,
382
+ RuleName: __expectString,
383
+ TelemetryRule: _json,
384
+ });
385
+ Object.assign(contents, doc);
386
+ return contents;
387
+ };
121
388
  export const de_ListResourceTelemetryCommand = async (output, context) => {
122
389
  if (output.statusCode !== 200 && output.statusCode >= 300) {
123
390
  return de_CommandError(output, context);
@@ -148,6 +415,50 @@ export const de_ListResourceTelemetryForOrganizationCommand = async (output, con
148
415
  Object.assign(contents, doc);
149
416
  return contents;
150
417
  };
418
+ export const de_ListTagsForResourceCommand = async (output, context) => {
419
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
420
+ return de_CommandError(output, context);
421
+ }
422
+ const contents = map({
423
+ $metadata: deserializeMetadata(output),
424
+ });
425
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
426
+ const doc = take(data, {
427
+ Tags: _json,
428
+ });
429
+ Object.assign(contents, doc);
430
+ return contents;
431
+ };
432
+ export const de_ListTelemetryRulesCommand = async (output, context) => {
433
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
434
+ return de_CommandError(output, context);
435
+ }
436
+ const contents = map({
437
+ $metadata: deserializeMetadata(output),
438
+ });
439
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
440
+ const doc = take(data, {
441
+ NextToken: __expectString,
442
+ TelemetryRuleSummaries: _json,
443
+ });
444
+ Object.assign(contents, doc);
445
+ return contents;
446
+ };
447
+ export const de_ListTelemetryRulesForOrganizationCommand = async (output, context) => {
448
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
449
+ return de_CommandError(output, context);
450
+ }
451
+ const contents = map({
452
+ $metadata: deserializeMetadata(output),
453
+ });
454
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
455
+ const doc = take(data, {
456
+ NextToken: __expectString,
457
+ TelemetryRuleSummaries: _json,
458
+ });
459
+ Object.assign(contents, doc);
460
+ return contents;
461
+ };
151
462
  export const de_StartTelemetryEvaluationCommand = async (output, context) => {
152
463
  if (output.statusCode !== 200 && output.statusCode >= 300) {
153
464
  return de_CommandError(output, context);
@@ -188,6 +499,54 @@ export const de_StopTelemetryEvaluationForOrganizationCommand = async (output, c
188
499
  await collectBody(output.body, context);
189
500
  return contents;
190
501
  };
502
+ export const de_TagResourceCommand = async (output, context) => {
503
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
504
+ return de_CommandError(output, context);
505
+ }
506
+ const contents = map({
507
+ $metadata: deserializeMetadata(output),
508
+ });
509
+ await collectBody(output.body, context);
510
+ return contents;
511
+ };
512
+ export const de_UntagResourceCommand = async (output, context) => {
513
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
514
+ return de_CommandError(output, context);
515
+ }
516
+ const contents = map({
517
+ $metadata: deserializeMetadata(output),
518
+ });
519
+ await collectBody(output.body, context);
520
+ return contents;
521
+ };
522
+ export const de_UpdateTelemetryRuleCommand = async (output, context) => {
523
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
524
+ return de_CommandError(output, context);
525
+ }
526
+ const contents = map({
527
+ $metadata: deserializeMetadata(output),
528
+ });
529
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
530
+ const doc = take(data, {
531
+ RuleArn: __expectString,
532
+ });
533
+ Object.assign(contents, doc);
534
+ return contents;
535
+ };
536
+ export const de_UpdateTelemetryRuleForOrganizationCommand = async (output, context) => {
537
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
538
+ return de_CommandError(output, context);
539
+ }
540
+ const contents = map({
541
+ $metadata: deserializeMetadata(output),
542
+ });
543
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
544
+ const doc = take(data, {
545
+ RuleArn: __expectString,
546
+ });
547
+ Object.assign(contents, doc);
548
+ return contents;
549
+ };
191
550
  const de_CommandError = async (output, context) => {
192
551
  const parsedOutput = {
193
552
  ...output,
@@ -198,12 +557,24 @@ const de_CommandError = async (output, context) => {
198
557
  case "AccessDeniedException":
199
558
  case "com.amazonaws.observabilityadmin#AccessDeniedException":
200
559
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
560
+ case "ConflictException":
561
+ case "com.amazonaws.observabilityadmin#ConflictException":
562
+ throw await de_ConflictExceptionRes(parsedOutput, context);
201
563
  case "InternalServerException":
202
564
  case "com.amazonaws.observabilityadmin#InternalServerException":
203
565
  throw await de_InternalServerExceptionRes(parsedOutput, context);
566
+ case "ServiceQuotaExceededException":
567
+ case "com.amazonaws.observabilityadmin#ServiceQuotaExceededException":
568
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
569
+ case "TooManyRequestsException":
570
+ case "com.amazonaws.observabilityadmin#TooManyRequestsException":
571
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
204
572
  case "ValidationException":
205
573
  case "com.amazonaws.observabilityadmin#ValidationException":
206
574
  throw await de_ValidationExceptionRes(parsedOutput, context);
575
+ case "ResourceNotFoundException":
576
+ case "com.amazonaws.observabilityadmin#ResourceNotFoundException":
577
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
207
578
  default:
208
579
  const parsedBody = parsedOutput.body;
209
580
  return throwDefaultError({
@@ -229,6 +600,19 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
229
600
  });
230
601
  return __decorateServiceException(exception, parsedOutput.body);
231
602
  };
603
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
604
+ const contents = map({});
605
+ const data = parsedOutput.body;
606
+ const doc = take(data, {
607
+ Message: __expectString,
608
+ });
609
+ Object.assign(contents, doc);
610
+ const exception = new ConflictException({
611
+ $metadata: deserializeMetadata(parsedOutput),
612
+ ...contents,
613
+ });
614
+ return __decorateServiceException(exception, parsedOutput.body);
615
+ };
232
616
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
233
617
  const contents = map({
234
618
  [_aET]: [, parsedOutput.headers[_xae]],
@@ -244,6 +628,47 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
244
628
  });
245
629
  return __decorateServiceException(exception, parsedOutput.body);
246
630
  };
631
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
632
+ const contents = map({});
633
+ const data = parsedOutput.body;
634
+ const doc = take(data, {
635
+ Message: __expectString,
636
+ });
637
+ Object.assign(contents, doc);
638
+ const exception = new ResourceNotFoundException({
639
+ $metadata: deserializeMetadata(parsedOutput),
640
+ ...contents,
641
+ });
642
+ return __decorateServiceException(exception, parsedOutput.body);
643
+ };
644
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
645
+ const contents = map({
646
+ [_aET]: [, parsedOutput.headers[_xae]],
647
+ });
648
+ const data = parsedOutput.body;
649
+ const doc = take(data, {
650
+ Message: __expectString,
651
+ });
652
+ Object.assign(contents, doc);
653
+ const exception = new ServiceQuotaExceededException({
654
+ $metadata: deserializeMetadata(parsedOutput),
655
+ ...contents,
656
+ });
657
+ return __decorateServiceException(exception, parsedOutput.body);
658
+ };
659
+ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
660
+ const contents = map({});
661
+ const data = parsedOutput.body;
662
+ const doc = take(data, {
663
+ Message: __expectString,
664
+ });
665
+ Object.assign(contents, doc);
666
+ const exception = new TooManyRequestsException({
667
+ $metadata: deserializeMetadata(parsedOutput),
668
+ ...contents,
669
+ });
670
+ return __decorateServiceException(exception, parsedOutput.body);
671
+ };
247
672
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
248
673
  const contents = map({});
249
674
  const data = parsedOutput.body;
@@ -1,14 +1,51 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import { CreateTelemetryRuleCommandInput, CreateTelemetryRuleCommandOutput } from "./commands/CreateTelemetryRuleCommand";
3
+ import { CreateTelemetryRuleForOrganizationCommandInput, CreateTelemetryRuleForOrganizationCommandOutput } from "./commands/CreateTelemetryRuleForOrganizationCommand";
4
+ import { DeleteTelemetryRuleCommandInput, DeleteTelemetryRuleCommandOutput } from "./commands/DeleteTelemetryRuleCommand";
5
+ import { DeleteTelemetryRuleForOrganizationCommandInput, DeleteTelemetryRuleForOrganizationCommandOutput } from "./commands/DeleteTelemetryRuleForOrganizationCommand";
2
6
  import { GetTelemetryEvaluationStatusCommandInput, GetTelemetryEvaluationStatusCommandOutput } from "./commands/GetTelemetryEvaluationStatusCommand";
3
7
  import { GetTelemetryEvaluationStatusForOrganizationCommandInput, GetTelemetryEvaluationStatusForOrganizationCommandOutput } from "./commands/GetTelemetryEvaluationStatusForOrganizationCommand";
8
+ import { GetTelemetryRuleCommandInput, GetTelemetryRuleCommandOutput } from "./commands/GetTelemetryRuleCommand";
9
+ import { GetTelemetryRuleForOrganizationCommandInput, GetTelemetryRuleForOrganizationCommandOutput } from "./commands/GetTelemetryRuleForOrganizationCommand";
4
10
  import { ListResourceTelemetryCommandInput, ListResourceTelemetryCommandOutput } from "./commands/ListResourceTelemetryCommand";
5
11
  import { ListResourceTelemetryForOrganizationCommandInput, ListResourceTelemetryForOrganizationCommandOutput } from "./commands/ListResourceTelemetryForOrganizationCommand";
12
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
13
+ import { ListTelemetryRulesCommandInput, ListTelemetryRulesCommandOutput } from "./commands/ListTelemetryRulesCommand";
14
+ import { ListTelemetryRulesForOrganizationCommandInput, ListTelemetryRulesForOrganizationCommandOutput } from "./commands/ListTelemetryRulesForOrganizationCommand";
6
15
  import { StartTelemetryEvaluationCommandInput, StartTelemetryEvaluationCommandOutput } from "./commands/StartTelemetryEvaluationCommand";
7
16
  import { StartTelemetryEvaluationForOrganizationCommandInput, StartTelemetryEvaluationForOrganizationCommandOutput } from "./commands/StartTelemetryEvaluationForOrganizationCommand";
8
17
  import { StopTelemetryEvaluationCommandInput, StopTelemetryEvaluationCommandOutput } from "./commands/StopTelemetryEvaluationCommand";
9
18
  import { StopTelemetryEvaluationForOrganizationCommandInput, StopTelemetryEvaluationForOrganizationCommandOutput } from "./commands/StopTelemetryEvaluationForOrganizationCommand";
19
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
20
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
21
+ import { UpdateTelemetryRuleCommandInput, UpdateTelemetryRuleCommandOutput } from "./commands/UpdateTelemetryRuleCommand";
22
+ import { UpdateTelemetryRuleForOrganizationCommandInput, UpdateTelemetryRuleForOrganizationCommandOutput } from "./commands/UpdateTelemetryRuleForOrganizationCommand";
10
23
  import { ObservabilityAdminClient } from "./ObservabilityAdminClient";
11
24
  export interface ObservabilityAdmin {
25
+ /**
26
+ * @see {@link CreateTelemetryRuleCommand}
27
+ */
28
+ createTelemetryRule(args: CreateTelemetryRuleCommandInput, options?: __HttpHandlerOptions): Promise<CreateTelemetryRuleCommandOutput>;
29
+ createTelemetryRule(args: CreateTelemetryRuleCommandInput, cb: (err: any, data?: CreateTelemetryRuleCommandOutput) => void): void;
30
+ createTelemetryRule(args: CreateTelemetryRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTelemetryRuleCommandOutput) => void): void;
31
+ /**
32
+ * @see {@link CreateTelemetryRuleForOrganizationCommand}
33
+ */
34
+ createTelemetryRuleForOrganization(args: CreateTelemetryRuleForOrganizationCommandInput, options?: __HttpHandlerOptions): Promise<CreateTelemetryRuleForOrganizationCommandOutput>;
35
+ createTelemetryRuleForOrganization(args: CreateTelemetryRuleForOrganizationCommandInput, cb: (err: any, data?: CreateTelemetryRuleForOrganizationCommandOutput) => void): void;
36
+ createTelemetryRuleForOrganization(args: CreateTelemetryRuleForOrganizationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTelemetryRuleForOrganizationCommandOutput) => void): void;
37
+ /**
38
+ * @see {@link DeleteTelemetryRuleCommand}
39
+ */
40
+ deleteTelemetryRule(args: DeleteTelemetryRuleCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTelemetryRuleCommandOutput>;
41
+ deleteTelemetryRule(args: DeleteTelemetryRuleCommandInput, cb: (err: any, data?: DeleteTelemetryRuleCommandOutput) => void): void;
42
+ deleteTelemetryRule(args: DeleteTelemetryRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTelemetryRuleCommandOutput) => void): void;
43
+ /**
44
+ * @see {@link DeleteTelemetryRuleForOrganizationCommand}
45
+ */
46
+ deleteTelemetryRuleForOrganization(args: DeleteTelemetryRuleForOrganizationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTelemetryRuleForOrganizationCommandOutput>;
47
+ deleteTelemetryRuleForOrganization(args: DeleteTelemetryRuleForOrganizationCommandInput, cb: (err: any, data?: DeleteTelemetryRuleForOrganizationCommandOutput) => void): void;
48
+ deleteTelemetryRuleForOrganization(args: DeleteTelemetryRuleForOrganizationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTelemetryRuleForOrganizationCommandOutput) => void): void;
12
49
  /**
13
50
  * @see {@link GetTelemetryEvaluationStatusCommand}
14
51
  */
@@ -23,6 +60,18 @@ export interface ObservabilityAdmin {
23
60
  getTelemetryEvaluationStatusForOrganization(args: GetTelemetryEvaluationStatusForOrganizationCommandInput, options?: __HttpHandlerOptions): Promise<GetTelemetryEvaluationStatusForOrganizationCommandOutput>;
24
61
  getTelemetryEvaluationStatusForOrganization(args: GetTelemetryEvaluationStatusForOrganizationCommandInput, cb: (err: any, data?: GetTelemetryEvaluationStatusForOrganizationCommandOutput) => void): void;
25
62
  getTelemetryEvaluationStatusForOrganization(args: GetTelemetryEvaluationStatusForOrganizationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTelemetryEvaluationStatusForOrganizationCommandOutput) => void): void;
63
+ /**
64
+ * @see {@link GetTelemetryRuleCommand}
65
+ */
66
+ getTelemetryRule(args: GetTelemetryRuleCommandInput, options?: __HttpHandlerOptions): Promise<GetTelemetryRuleCommandOutput>;
67
+ getTelemetryRule(args: GetTelemetryRuleCommandInput, cb: (err: any, data?: GetTelemetryRuleCommandOutput) => void): void;
68
+ getTelemetryRule(args: GetTelemetryRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTelemetryRuleCommandOutput) => void): void;
69
+ /**
70
+ * @see {@link GetTelemetryRuleForOrganizationCommand}
71
+ */
72
+ getTelemetryRuleForOrganization(args: GetTelemetryRuleForOrganizationCommandInput, options?: __HttpHandlerOptions): Promise<GetTelemetryRuleForOrganizationCommandOutput>;
73
+ getTelemetryRuleForOrganization(args: GetTelemetryRuleForOrganizationCommandInput, cb: (err: any, data?: GetTelemetryRuleForOrganizationCommandOutput) => void): void;
74
+ getTelemetryRuleForOrganization(args: GetTelemetryRuleForOrganizationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTelemetryRuleForOrganizationCommandOutput) => void): void;
26
75
  /**
27
76
  * @see {@link ListResourceTelemetryCommand}
28
77
  */
@@ -37,6 +86,26 @@ export interface ObservabilityAdmin {
37
86
  listResourceTelemetryForOrganization(args: ListResourceTelemetryForOrganizationCommandInput, options?: __HttpHandlerOptions): Promise<ListResourceTelemetryForOrganizationCommandOutput>;
38
87
  listResourceTelemetryForOrganization(args: ListResourceTelemetryForOrganizationCommandInput, cb: (err: any, data?: ListResourceTelemetryForOrganizationCommandOutput) => void): void;
39
88
  listResourceTelemetryForOrganization(args: ListResourceTelemetryForOrganizationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListResourceTelemetryForOrganizationCommandOutput) => void): void;
89
+ /**
90
+ * @see {@link ListTagsForResourceCommand}
91
+ */
92
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
93
+ listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
94
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
95
+ /**
96
+ * @see {@link ListTelemetryRulesCommand}
97
+ */
98
+ listTelemetryRules(): Promise<ListTelemetryRulesCommandOutput>;
99
+ listTelemetryRules(args: ListTelemetryRulesCommandInput, options?: __HttpHandlerOptions): Promise<ListTelemetryRulesCommandOutput>;
100
+ listTelemetryRules(args: ListTelemetryRulesCommandInput, cb: (err: any, data?: ListTelemetryRulesCommandOutput) => void): void;
101
+ listTelemetryRules(args: ListTelemetryRulesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTelemetryRulesCommandOutput) => void): void;
102
+ /**
103
+ * @see {@link ListTelemetryRulesForOrganizationCommand}
104
+ */
105
+ listTelemetryRulesForOrganization(): Promise<ListTelemetryRulesForOrganizationCommandOutput>;
106
+ listTelemetryRulesForOrganization(args: ListTelemetryRulesForOrganizationCommandInput, options?: __HttpHandlerOptions): Promise<ListTelemetryRulesForOrganizationCommandOutput>;
107
+ listTelemetryRulesForOrganization(args: ListTelemetryRulesForOrganizationCommandInput, cb: (err: any, data?: ListTelemetryRulesForOrganizationCommandOutput) => void): void;
108
+ listTelemetryRulesForOrganization(args: ListTelemetryRulesForOrganizationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTelemetryRulesForOrganizationCommandOutput) => void): void;
40
109
  /**
41
110
  * @see {@link StartTelemetryEvaluationCommand}
42
111
  */
@@ -65,10 +134,34 @@ export interface ObservabilityAdmin {
65
134
  stopTelemetryEvaluationForOrganization(args: StopTelemetryEvaluationForOrganizationCommandInput, options?: __HttpHandlerOptions): Promise<StopTelemetryEvaluationForOrganizationCommandOutput>;
66
135
  stopTelemetryEvaluationForOrganization(args: StopTelemetryEvaluationForOrganizationCommandInput, cb: (err: any, data?: StopTelemetryEvaluationForOrganizationCommandOutput) => void): void;
67
136
  stopTelemetryEvaluationForOrganization(args: StopTelemetryEvaluationForOrganizationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopTelemetryEvaluationForOrganizationCommandOutput) => void): void;
137
+ /**
138
+ * @see {@link TagResourceCommand}
139
+ */
140
+ tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
141
+ tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
142
+ tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
143
+ /**
144
+ * @see {@link UntagResourceCommand}
145
+ */
146
+ untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
147
+ untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
148
+ untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
149
+ /**
150
+ * @see {@link UpdateTelemetryRuleCommand}
151
+ */
152
+ updateTelemetryRule(args: UpdateTelemetryRuleCommandInput, options?: __HttpHandlerOptions): Promise<UpdateTelemetryRuleCommandOutput>;
153
+ updateTelemetryRule(args: UpdateTelemetryRuleCommandInput, cb: (err: any, data?: UpdateTelemetryRuleCommandOutput) => void): void;
154
+ updateTelemetryRule(args: UpdateTelemetryRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateTelemetryRuleCommandOutput) => void): void;
155
+ /**
156
+ * @see {@link UpdateTelemetryRuleForOrganizationCommand}
157
+ */
158
+ updateTelemetryRuleForOrganization(args: UpdateTelemetryRuleForOrganizationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateTelemetryRuleForOrganizationCommandOutput>;
159
+ updateTelemetryRuleForOrganization(args: UpdateTelemetryRuleForOrganizationCommandInput, cb: (err: any, data?: UpdateTelemetryRuleForOrganizationCommandOutput) => void): void;
160
+ updateTelemetryRuleForOrganization(args: UpdateTelemetryRuleForOrganizationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateTelemetryRuleForOrganizationCommandOutput) => void): void;
68
161
  }
69
162
  /**
70
163
  * <p>
71
- * Amazon CloudWatch Obsersavability Admin to control temletry config for your AWS Organization or account. Telemetry config config to discover and understand the state of telemetry configuration for your AWS resources from a central view in the CloudWatch console. Telemetry config simplifies the process of auditing your telemetry collection configurations across multiple resource types across your AWS Organization or account.
164
+ * You can use Amazon CloudWatch Observability Admin to discover and understand the state of telemetry configuration in CloudWatch for your Amazon Web Services Organization or account. This simplifies the process of auditing your telemetry collection configurations across multiple resource types within your Amazon Web Services Organization or account. By providing a consolidated view, it allows you to easily review and manage telemetry settings, helping you ensure proper monitoring and data collection across your Amazon Web Services environment.
72
165
  * For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/telemetry-config-cloudwatch.html">Auditing CloudWatch telemetry configurations</a> in the CloudWatch User Guide.</p>
73
166
  * <p>For information on the permissions you need to use this API, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/auth-and-access-control-cw.html">Identity and access management for Amazon CloudWatch</a> in the CloudWatch User Guide.</p>
74
167
  * @public