@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,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TelemetryState = exports.TelemetryType = exports.ResourceType = exports.ValidationException = exports.InternalServerException = exports.Status = exports.AccessDeniedException = void 0;
3
+ exports.TelemetryState = exports.Status = exports.ResourceNotFoundException = exports.ValidationException = exports.TooManyRequestsException = exports.ServiceQuotaExceededException = exports.InternalServerException = exports.TelemetryType = exports.ResourceType = exports.DestinationType = exports.ConflictException = exports.AccessDeniedException = void 0;
4
4
  const ObservabilityAdminServiceException_1 = require("./ObservabilityAdminServiceException");
5
5
  class AccessDeniedException extends ObservabilityAdminServiceException_1.ObservabilityAdminServiceException {
6
6
  name = "AccessDeniedException";
@@ -19,14 +19,33 @@ class AccessDeniedException extends ObservabilityAdminServiceException_1.Observa
19
19
  }
20
20
  }
21
21
  exports.AccessDeniedException = AccessDeniedException;
22
- exports.Status = {
23
- FAILED_START: "FAILED_START",
24
- FAILED_STOP: "FAILED_STOP",
25
- NOT_STARTED: "NOT_STARTED",
26
- RUNNING: "RUNNING",
27
- STARTING: "STARTING",
28
- STOPPED: "STOPPED",
29
- STOPPING: "STOPPING",
22
+ class ConflictException extends ObservabilityAdminServiceException_1.ObservabilityAdminServiceException {
23
+ name = "ConflictException";
24
+ $fault = "client";
25
+ Message;
26
+ constructor(opts) {
27
+ super({
28
+ name: "ConflictException",
29
+ $fault: "client",
30
+ ...opts,
31
+ });
32
+ Object.setPrototypeOf(this, ConflictException.prototype);
33
+ this.Message = opts.Message;
34
+ }
35
+ }
36
+ exports.ConflictException = ConflictException;
37
+ exports.DestinationType = {
38
+ CLOUDWATCH_LOGS: "cloud-watch-logs",
39
+ };
40
+ exports.ResourceType = {
41
+ AWS_EC2_INSTANCE: "AWS::EC2::Instance",
42
+ AWS_EC2_VPC: "AWS::EC2::VPC",
43
+ AWS_LAMDBA_FUNCTION: "AWS::Lambda::Function",
44
+ };
45
+ exports.TelemetryType = {
46
+ LOGS: "Logs",
47
+ METRICS: "Metrics",
48
+ TRACES: "Traces",
30
49
  };
31
50
  class InternalServerException extends ObservabilityAdminServiceException_1.ObservabilityAdminServiceException {
32
51
  name = "InternalServerException";
@@ -45,6 +64,38 @@ class InternalServerException extends ObservabilityAdminServiceException_1.Obser
45
64
  }
46
65
  }
47
66
  exports.InternalServerException = InternalServerException;
67
+ class ServiceQuotaExceededException extends ObservabilityAdminServiceException_1.ObservabilityAdminServiceException {
68
+ name = "ServiceQuotaExceededException";
69
+ $fault = "client";
70
+ Message;
71
+ amznErrorType;
72
+ constructor(opts) {
73
+ super({
74
+ name: "ServiceQuotaExceededException",
75
+ $fault: "client",
76
+ ...opts,
77
+ });
78
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
79
+ this.Message = opts.Message;
80
+ this.amznErrorType = opts.amznErrorType;
81
+ }
82
+ }
83
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
84
+ class TooManyRequestsException extends ObservabilityAdminServiceException_1.ObservabilityAdminServiceException {
85
+ name = "TooManyRequestsException";
86
+ $fault = "client";
87
+ Message;
88
+ constructor(opts) {
89
+ super({
90
+ name: "TooManyRequestsException",
91
+ $fault: "client",
92
+ ...opts,
93
+ });
94
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
95
+ this.Message = opts.Message;
96
+ }
97
+ }
98
+ exports.TooManyRequestsException = TooManyRequestsException;
48
99
  class ValidationException extends ObservabilityAdminServiceException_1.ObservabilityAdminServiceException {
49
100
  name = "ValidationException";
50
101
  $fault = "client";
@@ -60,15 +111,29 @@ class ValidationException extends ObservabilityAdminServiceException_1.Observabi
60
111
  }
61
112
  }
62
113
  exports.ValidationException = ValidationException;
63
- exports.ResourceType = {
64
- AWS_EC2_INSTANCE: "AWS::EC2::Instance",
65
- AWS_EC2_VPC: "AWS::EC2::VPC",
66
- AWS_LAMDBA_FUNCTION: "AWS::Lambda::Function",
67
- };
68
- exports.TelemetryType = {
69
- LOGS: "Logs",
70
- METRICS: "Metrics",
71
- TRACES: "Traces",
114
+ class ResourceNotFoundException extends ObservabilityAdminServiceException_1.ObservabilityAdminServiceException {
115
+ name = "ResourceNotFoundException";
116
+ $fault = "client";
117
+ Message;
118
+ constructor(opts) {
119
+ super({
120
+ name: "ResourceNotFoundException",
121
+ $fault: "client",
122
+ ...opts,
123
+ });
124
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
125
+ this.Message = opts.Message;
126
+ }
127
+ }
128
+ exports.ResourceNotFoundException = ResourceNotFoundException;
129
+ exports.Status = {
130
+ FAILED_START: "FAILED_START",
131
+ FAILED_STOP: "FAILED_STOP",
132
+ NOT_STARTED: "NOT_STARTED",
133
+ RUNNING: "RUNNING",
134
+ STARTING: "STARTING",
135
+ STOPPED: "STOPPED",
136
+ STOPPING: "STOPPING",
72
137
  };
73
138
  exports.TelemetryState = {
74
139
  DISABLED: "Disabled",
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListTelemetryRulesForOrganization = void 0;
4
+ const core_1 = require("@smithy/core");
5
+ const ListTelemetryRulesForOrganizationCommand_1 = require("../commands/ListTelemetryRulesForOrganizationCommand");
6
+ const ObservabilityAdminClient_1 = require("../ObservabilityAdminClient");
7
+ exports.paginateListTelemetryRulesForOrganization = (0, core_1.createPaginator)(ObservabilityAdminClient_1.ObservabilityAdminClient, ListTelemetryRulesForOrganizationCommand_1.ListTelemetryRulesForOrganizationCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListTelemetryRules = void 0;
4
+ const core_1 = require("@smithy/core");
5
+ const ListTelemetryRulesCommand_1 = require("../commands/ListTelemetryRulesCommand");
6
+ const ObservabilityAdminClient_1 = require("../ObservabilityAdminClient");
7
+ exports.paginateListTelemetryRules = (0, core_1.createPaginator)(ObservabilityAdminClient_1.ObservabilityAdminClient, ListTelemetryRulesCommand_1.ListTelemetryRulesCommand, "NextToken", "NextToken", "MaxResults");
@@ -4,3 +4,5 @@ const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./Interfaces"), exports);
5
5
  tslib_1.__exportStar(require("./ListResourceTelemetryForOrganizationPaginator"), exports);
6
6
  tslib_1.__exportStar(require("./ListResourceTelemetryPaginator"), exports);
7
+ tslib_1.__exportStar(require("./ListTelemetryRulesForOrganizationPaginator"), exports);
8
+ tslib_1.__exportStar(require("./ListTelemetryRulesPaginator"), exports);
@@ -1,11 +1,71 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_StopTelemetryEvaluationForOrganizationCommand = exports.de_StopTelemetryEvaluationCommand = exports.de_StartTelemetryEvaluationForOrganizationCommand = exports.de_StartTelemetryEvaluationCommand = exports.de_ListResourceTelemetryForOrganizationCommand = exports.de_ListResourceTelemetryCommand = exports.de_GetTelemetryEvaluationStatusForOrganizationCommand = exports.de_GetTelemetryEvaluationStatusCommand = exports.se_StopTelemetryEvaluationForOrganizationCommand = exports.se_StopTelemetryEvaluationCommand = exports.se_StartTelemetryEvaluationForOrganizationCommand = exports.se_StartTelemetryEvaluationCommand = exports.se_ListResourceTelemetryForOrganizationCommand = exports.se_ListResourceTelemetryCommand = exports.se_GetTelemetryEvaluationStatusForOrganizationCommand = exports.se_GetTelemetryEvaluationStatusCommand = void 0;
3
+ exports.de_UpdateTelemetryRuleForOrganizationCommand = exports.de_UpdateTelemetryRuleCommand = 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_GetTelemetryRuleForOrganizationCommand = exports.de_GetTelemetryRuleCommand = exports.de_GetTelemetryEvaluationStatusForOrganizationCommand = exports.de_GetTelemetryEvaluationStatusCommand = exports.de_DeleteTelemetryRuleForOrganizationCommand = exports.de_DeleteTelemetryRuleCommand = exports.de_CreateTelemetryRuleForOrganizationCommand = exports.de_CreateTelemetryRuleCommand = exports.se_UpdateTelemetryRuleForOrganizationCommand = exports.se_UpdateTelemetryRuleCommand = 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_GetTelemetryRuleForOrganizationCommand = exports.se_GetTelemetryRuleCommand = exports.se_GetTelemetryEvaluationStatusForOrganizationCommand = exports.se_GetTelemetryEvaluationStatusCommand = exports.se_DeleteTelemetryRuleForOrganizationCommand = exports.se_DeleteTelemetryRuleCommand = exports.se_CreateTelemetryRuleForOrganizationCommand = exports.se_CreateTelemetryRuleCommand = void 0;
4
4
  const core_1 = require("@aws-sdk/core");
5
5
  const core_2 = require("@smithy/core");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const ObservabilityAdminServiceException_1 = require("../models/ObservabilityAdminServiceException");
9
+ const se_CreateTelemetryRuleCommand = async (input, context) => {
10
+ const b = (0, core_2.requestBuilder)(input, context);
11
+ const headers = {
12
+ "content-type": "application/json",
13
+ };
14
+ b.bp("/CreateTelemetryRule");
15
+ let body;
16
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
17
+ Rule: (_) => (0, smithy_client_1._json)(_),
18
+ RuleName: [],
19
+ Tags: (_) => (0, smithy_client_1._json)(_),
20
+ }));
21
+ b.m("POST").h(headers).b(body);
22
+ return b.build();
23
+ };
24
+ exports.se_CreateTelemetryRuleCommand = se_CreateTelemetryRuleCommand;
25
+ const se_CreateTelemetryRuleForOrganizationCommand = async (input, context) => {
26
+ const b = (0, core_2.requestBuilder)(input, context);
27
+ const headers = {
28
+ "content-type": "application/json",
29
+ };
30
+ b.bp("/CreateTelemetryRuleForOrganization");
31
+ let body;
32
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
33
+ Rule: (_) => (0, smithy_client_1._json)(_),
34
+ RuleName: [],
35
+ Tags: (_) => (0, smithy_client_1._json)(_),
36
+ }));
37
+ b.m("POST").h(headers).b(body);
38
+ return b.build();
39
+ };
40
+ exports.se_CreateTelemetryRuleForOrganizationCommand = se_CreateTelemetryRuleForOrganizationCommand;
41
+ const se_DeleteTelemetryRuleCommand = async (input, context) => {
42
+ const b = (0, core_2.requestBuilder)(input, context);
43
+ const headers = {
44
+ "content-type": "application/json",
45
+ };
46
+ b.bp("/DeleteTelemetryRule");
47
+ let body;
48
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
49
+ RuleIdentifier: [],
50
+ }));
51
+ b.m("POST").h(headers).b(body);
52
+ return b.build();
53
+ };
54
+ exports.se_DeleteTelemetryRuleCommand = se_DeleteTelemetryRuleCommand;
55
+ const se_DeleteTelemetryRuleForOrganizationCommand = async (input, context) => {
56
+ const b = (0, core_2.requestBuilder)(input, context);
57
+ const headers = {
58
+ "content-type": "application/json",
59
+ };
60
+ b.bp("/DeleteTelemetryRuleForOrganization");
61
+ let body;
62
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
63
+ RuleIdentifier: [],
64
+ }));
65
+ b.m("POST").h(headers).b(body);
66
+ return b.build();
67
+ };
68
+ exports.se_DeleteTelemetryRuleForOrganizationCommand = se_DeleteTelemetryRuleForOrganizationCommand;
9
69
  const se_GetTelemetryEvaluationStatusCommand = async (input, context) => {
10
70
  const b = (0, core_2.requestBuilder)(input, context);
11
71
  const headers = {};
@@ -24,6 +84,34 @@ const se_GetTelemetryEvaluationStatusForOrganizationCommand = async (input, cont
24
84
  return b.build();
25
85
  };
26
86
  exports.se_GetTelemetryEvaluationStatusForOrganizationCommand = se_GetTelemetryEvaluationStatusForOrganizationCommand;
87
+ const se_GetTelemetryRuleCommand = async (input, context) => {
88
+ const b = (0, core_2.requestBuilder)(input, context);
89
+ const headers = {
90
+ "content-type": "application/json",
91
+ };
92
+ b.bp("/GetTelemetryRule");
93
+ let body;
94
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
95
+ RuleIdentifier: [],
96
+ }));
97
+ b.m("POST").h(headers).b(body);
98
+ return b.build();
99
+ };
100
+ exports.se_GetTelemetryRuleCommand = se_GetTelemetryRuleCommand;
101
+ const se_GetTelemetryRuleForOrganizationCommand = async (input, context) => {
102
+ const b = (0, core_2.requestBuilder)(input, context);
103
+ const headers = {
104
+ "content-type": "application/json",
105
+ };
106
+ b.bp("/GetTelemetryRuleForOrganization");
107
+ let body;
108
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
109
+ RuleIdentifier: [],
110
+ }));
111
+ b.m("POST").h(headers).b(body);
112
+ return b.build();
113
+ };
114
+ exports.se_GetTelemetryRuleForOrganizationCommand = se_GetTelemetryRuleForOrganizationCommand;
27
115
  const se_ListResourceTelemetryCommand = async (input, context) => {
28
116
  const b = (0, core_2.requestBuilder)(input, context);
29
117
  const headers = {
@@ -63,6 +151,54 @@ const se_ListResourceTelemetryForOrganizationCommand = async (input, context) =>
63
151
  return b.build();
64
152
  };
65
153
  exports.se_ListResourceTelemetryForOrganizationCommand = se_ListResourceTelemetryForOrganizationCommand;
154
+ const se_ListTagsForResourceCommand = async (input, context) => {
155
+ const b = (0, core_2.requestBuilder)(input, context);
156
+ const headers = {
157
+ "content-type": "application/json",
158
+ };
159
+ b.bp("/ListTagsForResource");
160
+ let body;
161
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
162
+ ResourceARN: [],
163
+ }));
164
+ b.m("POST").h(headers).b(body);
165
+ return b.build();
166
+ };
167
+ exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
168
+ const se_ListTelemetryRulesCommand = async (input, context) => {
169
+ const b = (0, core_2.requestBuilder)(input, context);
170
+ const headers = {
171
+ "content-type": "application/json",
172
+ };
173
+ b.bp("/ListTelemetryRules");
174
+ let body;
175
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
176
+ MaxResults: [],
177
+ NextToken: [],
178
+ RuleNamePrefix: [],
179
+ }));
180
+ b.m("POST").h(headers).b(body);
181
+ return b.build();
182
+ };
183
+ exports.se_ListTelemetryRulesCommand = se_ListTelemetryRulesCommand;
184
+ const se_ListTelemetryRulesForOrganizationCommand = async (input, context) => {
185
+ const b = (0, core_2.requestBuilder)(input, context);
186
+ const headers = {
187
+ "content-type": "application/json",
188
+ };
189
+ b.bp("/ListTelemetryRulesForOrganization");
190
+ let body;
191
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
192
+ MaxResults: [],
193
+ NextToken: [],
194
+ RuleNamePrefix: [],
195
+ SourceAccountIds: (_) => (0, smithy_client_1._json)(_),
196
+ SourceOrganizationUnitIds: (_) => (0, smithy_client_1._json)(_),
197
+ }));
198
+ b.m("POST").h(headers).b(body);
199
+ return b.build();
200
+ };
201
+ exports.se_ListTelemetryRulesForOrganizationCommand = se_ListTelemetryRulesForOrganizationCommand;
66
202
  const se_StartTelemetryEvaluationCommand = async (input, context) => {
67
203
  const b = (0, core_2.requestBuilder)(input, context);
68
204
  const headers = {};
@@ -99,6 +235,118 @@ const se_StopTelemetryEvaluationForOrganizationCommand = async (input, context)
99
235
  return b.build();
100
236
  };
101
237
  exports.se_StopTelemetryEvaluationForOrganizationCommand = se_StopTelemetryEvaluationForOrganizationCommand;
238
+ const se_TagResourceCommand = async (input, context) => {
239
+ const b = (0, core_2.requestBuilder)(input, context);
240
+ const headers = {
241
+ "content-type": "application/json",
242
+ };
243
+ b.bp("/TagResource");
244
+ let body;
245
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
246
+ ResourceARN: [],
247
+ Tags: (_) => (0, smithy_client_1._json)(_),
248
+ }));
249
+ b.m("POST").h(headers).b(body);
250
+ return b.build();
251
+ };
252
+ exports.se_TagResourceCommand = se_TagResourceCommand;
253
+ const se_UntagResourceCommand = async (input, context) => {
254
+ const b = (0, core_2.requestBuilder)(input, context);
255
+ const headers = {
256
+ "content-type": "application/json",
257
+ };
258
+ b.bp("/UntagResource");
259
+ let body;
260
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
261
+ ResourceARN: [],
262
+ TagKeys: (_) => (0, smithy_client_1._json)(_),
263
+ }));
264
+ b.m("POST").h(headers).b(body);
265
+ return b.build();
266
+ };
267
+ exports.se_UntagResourceCommand = se_UntagResourceCommand;
268
+ const se_UpdateTelemetryRuleCommand = async (input, context) => {
269
+ const b = (0, core_2.requestBuilder)(input, context);
270
+ const headers = {
271
+ "content-type": "application/json",
272
+ };
273
+ b.bp("/UpdateTelemetryRule");
274
+ let body;
275
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
276
+ Rule: (_) => (0, smithy_client_1._json)(_),
277
+ RuleIdentifier: [],
278
+ }));
279
+ b.m("POST").h(headers).b(body);
280
+ return b.build();
281
+ };
282
+ exports.se_UpdateTelemetryRuleCommand = se_UpdateTelemetryRuleCommand;
283
+ const se_UpdateTelemetryRuleForOrganizationCommand = async (input, context) => {
284
+ const b = (0, core_2.requestBuilder)(input, context);
285
+ const headers = {
286
+ "content-type": "application/json",
287
+ };
288
+ b.bp("/UpdateTelemetryRuleForOrganization");
289
+ let body;
290
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
291
+ Rule: (_) => (0, smithy_client_1._json)(_),
292
+ RuleIdentifier: [],
293
+ }));
294
+ b.m("POST").h(headers).b(body);
295
+ return b.build();
296
+ };
297
+ exports.se_UpdateTelemetryRuleForOrganizationCommand = se_UpdateTelemetryRuleForOrganizationCommand;
298
+ const de_CreateTelemetryRuleCommand = async (output, context) => {
299
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
300
+ return de_CommandError(output, context);
301
+ }
302
+ const contents = (0, smithy_client_1.map)({
303
+ $metadata: deserializeMetadata(output),
304
+ });
305
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
306
+ const doc = (0, smithy_client_1.take)(data, {
307
+ RuleArn: smithy_client_1.expectString,
308
+ });
309
+ Object.assign(contents, doc);
310
+ return contents;
311
+ };
312
+ exports.de_CreateTelemetryRuleCommand = de_CreateTelemetryRuleCommand;
313
+ const de_CreateTelemetryRuleForOrganizationCommand = async (output, context) => {
314
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
315
+ return de_CommandError(output, context);
316
+ }
317
+ const contents = (0, smithy_client_1.map)({
318
+ $metadata: deserializeMetadata(output),
319
+ });
320
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
321
+ const doc = (0, smithy_client_1.take)(data, {
322
+ RuleArn: smithy_client_1.expectString,
323
+ });
324
+ Object.assign(contents, doc);
325
+ return contents;
326
+ };
327
+ exports.de_CreateTelemetryRuleForOrganizationCommand = de_CreateTelemetryRuleForOrganizationCommand;
328
+ const de_DeleteTelemetryRuleCommand = async (output, context) => {
329
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
330
+ return de_CommandError(output, context);
331
+ }
332
+ const contents = (0, smithy_client_1.map)({
333
+ $metadata: deserializeMetadata(output),
334
+ });
335
+ await (0, smithy_client_1.collectBody)(output.body, context);
336
+ return contents;
337
+ };
338
+ exports.de_DeleteTelemetryRuleCommand = de_DeleteTelemetryRuleCommand;
339
+ const de_DeleteTelemetryRuleForOrganizationCommand = async (output, context) => {
340
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
341
+ return de_CommandError(output, context);
342
+ }
343
+ const contents = (0, smithy_client_1.map)({
344
+ $metadata: deserializeMetadata(output),
345
+ });
346
+ await (0, smithy_client_1.collectBody)(output.body, context);
347
+ return contents;
348
+ };
349
+ exports.de_DeleteTelemetryRuleForOrganizationCommand = de_DeleteTelemetryRuleForOrganizationCommand;
102
350
  const de_GetTelemetryEvaluationStatusCommand = async (output, context) => {
103
351
  if (output.statusCode !== 200 && output.statusCode >= 300) {
104
352
  return de_CommandError(output, context);
@@ -131,6 +379,44 @@ const de_GetTelemetryEvaluationStatusForOrganizationCommand = async (output, con
131
379
  return contents;
132
380
  };
133
381
  exports.de_GetTelemetryEvaluationStatusForOrganizationCommand = de_GetTelemetryEvaluationStatusForOrganizationCommand;
382
+ const de_GetTelemetryRuleCommand = async (output, context) => {
383
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
384
+ return de_CommandError(output, context);
385
+ }
386
+ const contents = (0, smithy_client_1.map)({
387
+ $metadata: deserializeMetadata(output),
388
+ });
389
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
390
+ const doc = (0, smithy_client_1.take)(data, {
391
+ CreatedTimeStamp: smithy_client_1.expectLong,
392
+ LastUpdateTimeStamp: smithy_client_1.expectLong,
393
+ RuleArn: smithy_client_1.expectString,
394
+ RuleName: smithy_client_1.expectString,
395
+ TelemetryRule: smithy_client_1._json,
396
+ });
397
+ Object.assign(contents, doc);
398
+ return contents;
399
+ };
400
+ exports.de_GetTelemetryRuleCommand = de_GetTelemetryRuleCommand;
401
+ const de_GetTelemetryRuleForOrganizationCommand = async (output, context) => {
402
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
403
+ return de_CommandError(output, context);
404
+ }
405
+ const contents = (0, smithy_client_1.map)({
406
+ $metadata: deserializeMetadata(output),
407
+ });
408
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
409
+ const doc = (0, smithy_client_1.take)(data, {
410
+ CreatedTimeStamp: smithy_client_1.expectLong,
411
+ LastUpdateTimeStamp: smithy_client_1.expectLong,
412
+ RuleArn: smithy_client_1.expectString,
413
+ RuleName: smithy_client_1.expectString,
414
+ TelemetryRule: smithy_client_1._json,
415
+ });
416
+ Object.assign(contents, doc);
417
+ return contents;
418
+ };
419
+ exports.de_GetTelemetryRuleForOrganizationCommand = de_GetTelemetryRuleForOrganizationCommand;
134
420
  const de_ListResourceTelemetryCommand = async (output, context) => {
135
421
  if (output.statusCode !== 200 && output.statusCode >= 300) {
136
422
  return de_CommandError(output, context);
@@ -163,6 +449,53 @@ const de_ListResourceTelemetryForOrganizationCommand = async (output, context) =
163
449
  return contents;
164
450
  };
165
451
  exports.de_ListResourceTelemetryForOrganizationCommand = de_ListResourceTelemetryForOrganizationCommand;
452
+ const de_ListTagsForResourceCommand = async (output, context) => {
453
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
454
+ return de_CommandError(output, context);
455
+ }
456
+ const contents = (0, smithy_client_1.map)({
457
+ $metadata: deserializeMetadata(output),
458
+ });
459
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
460
+ const doc = (0, smithy_client_1.take)(data, {
461
+ Tags: smithy_client_1._json,
462
+ });
463
+ Object.assign(contents, doc);
464
+ return contents;
465
+ };
466
+ exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
467
+ const de_ListTelemetryRulesCommand = async (output, context) => {
468
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
469
+ return de_CommandError(output, context);
470
+ }
471
+ const contents = (0, smithy_client_1.map)({
472
+ $metadata: deserializeMetadata(output),
473
+ });
474
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
475
+ const doc = (0, smithy_client_1.take)(data, {
476
+ NextToken: smithy_client_1.expectString,
477
+ TelemetryRuleSummaries: smithy_client_1._json,
478
+ });
479
+ Object.assign(contents, doc);
480
+ return contents;
481
+ };
482
+ exports.de_ListTelemetryRulesCommand = de_ListTelemetryRulesCommand;
483
+ const de_ListTelemetryRulesForOrganizationCommand = async (output, context) => {
484
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
485
+ return de_CommandError(output, context);
486
+ }
487
+ const contents = (0, smithy_client_1.map)({
488
+ $metadata: deserializeMetadata(output),
489
+ });
490
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
491
+ const doc = (0, smithy_client_1.take)(data, {
492
+ NextToken: smithy_client_1.expectString,
493
+ TelemetryRuleSummaries: smithy_client_1._json,
494
+ });
495
+ Object.assign(contents, doc);
496
+ return contents;
497
+ };
498
+ exports.de_ListTelemetryRulesForOrganizationCommand = de_ListTelemetryRulesForOrganizationCommand;
166
499
  const de_StartTelemetryEvaluationCommand = async (output, context) => {
167
500
  if (output.statusCode !== 200 && output.statusCode >= 300) {
168
501
  return de_CommandError(output, context);
@@ -207,6 +540,58 @@ const de_StopTelemetryEvaluationForOrganizationCommand = async (output, context)
207
540
  return contents;
208
541
  };
209
542
  exports.de_StopTelemetryEvaluationForOrganizationCommand = de_StopTelemetryEvaluationForOrganizationCommand;
543
+ const de_TagResourceCommand = async (output, context) => {
544
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
545
+ return de_CommandError(output, context);
546
+ }
547
+ const contents = (0, smithy_client_1.map)({
548
+ $metadata: deserializeMetadata(output),
549
+ });
550
+ await (0, smithy_client_1.collectBody)(output.body, context);
551
+ return contents;
552
+ };
553
+ exports.de_TagResourceCommand = de_TagResourceCommand;
554
+ const de_UntagResourceCommand = async (output, context) => {
555
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
556
+ return de_CommandError(output, context);
557
+ }
558
+ const contents = (0, smithy_client_1.map)({
559
+ $metadata: deserializeMetadata(output),
560
+ });
561
+ await (0, smithy_client_1.collectBody)(output.body, context);
562
+ return contents;
563
+ };
564
+ exports.de_UntagResourceCommand = de_UntagResourceCommand;
565
+ const de_UpdateTelemetryRuleCommand = async (output, context) => {
566
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
567
+ return de_CommandError(output, context);
568
+ }
569
+ const contents = (0, smithy_client_1.map)({
570
+ $metadata: deserializeMetadata(output),
571
+ });
572
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
573
+ const doc = (0, smithy_client_1.take)(data, {
574
+ RuleArn: smithy_client_1.expectString,
575
+ });
576
+ Object.assign(contents, doc);
577
+ return contents;
578
+ };
579
+ exports.de_UpdateTelemetryRuleCommand = de_UpdateTelemetryRuleCommand;
580
+ const de_UpdateTelemetryRuleForOrganizationCommand = async (output, context) => {
581
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
582
+ return de_CommandError(output, context);
583
+ }
584
+ const contents = (0, smithy_client_1.map)({
585
+ $metadata: deserializeMetadata(output),
586
+ });
587
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
588
+ const doc = (0, smithy_client_1.take)(data, {
589
+ RuleArn: smithy_client_1.expectString,
590
+ });
591
+ Object.assign(contents, doc);
592
+ return contents;
593
+ };
594
+ exports.de_UpdateTelemetryRuleForOrganizationCommand = de_UpdateTelemetryRuleForOrganizationCommand;
210
595
  const de_CommandError = async (output, context) => {
211
596
  const parsedOutput = {
212
597
  ...output,
@@ -217,12 +602,24 @@ const de_CommandError = async (output, context) => {
217
602
  case "AccessDeniedException":
218
603
  case "com.amazonaws.observabilityadmin#AccessDeniedException":
219
604
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
605
+ case "ConflictException":
606
+ case "com.amazonaws.observabilityadmin#ConflictException":
607
+ throw await de_ConflictExceptionRes(parsedOutput, context);
220
608
  case "InternalServerException":
221
609
  case "com.amazonaws.observabilityadmin#InternalServerException":
222
610
  throw await de_InternalServerExceptionRes(parsedOutput, context);
611
+ case "ServiceQuotaExceededException":
612
+ case "com.amazonaws.observabilityadmin#ServiceQuotaExceededException":
613
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
614
+ case "TooManyRequestsException":
615
+ case "com.amazonaws.observabilityadmin#TooManyRequestsException":
616
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
223
617
  case "ValidationException":
224
618
  case "com.amazonaws.observabilityadmin#ValidationException":
225
619
  throw await de_ValidationExceptionRes(parsedOutput, context);
620
+ case "ResourceNotFoundException":
621
+ case "com.amazonaws.observabilityadmin#ResourceNotFoundException":
622
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
226
623
  default:
227
624
  const parsedBody = parsedOutput.body;
228
625
  return throwDefaultError({
@@ -248,6 +645,19 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
248
645
  });
249
646
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
250
647
  };
648
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
649
+ const contents = (0, smithy_client_1.map)({});
650
+ const data = parsedOutput.body;
651
+ const doc = (0, smithy_client_1.take)(data, {
652
+ Message: smithy_client_1.expectString,
653
+ });
654
+ Object.assign(contents, doc);
655
+ const exception = new models_0_1.ConflictException({
656
+ $metadata: deserializeMetadata(parsedOutput),
657
+ ...contents,
658
+ });
659
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
660
+ };
251
661
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
252
662
  const contents = (0, smithy_client_1.map)({
253
663
  [_aET]: [, parsedOutput.headers[_xae]],
@@ -263,6 +673,47 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
263
673
  });
264
674
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
265
675
  };
676
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
677
+ const contents = (0, smithy_client_1.map)({});
678
+ const data = parsedOutput.body;
679
+ const doc = (0, smithy_client_1.take)(data, {
680
+ Message: smithy_client_1.expectString,
681
+ });
682
+ Object.assign(contents, doc);
683
+ const exception = new models_0_1.ResourceNotFoundException({
684
+ $metadata: deserializeMetadata(parsedOutput),
685
+ ...contents,
686
+ });
687
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
688
+ };
689
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
690
+ const contents = (0, smithy_client_1.map)({
691
+ [_aET]: [, parsedOutput.headers[_xae]],
692
+ });
693
+ const data = parsedOutput.body;
694
+ const doc = (0, smithy_client_1.take)(data, {
695
+ Message: smithy_client_1.expectString,
696
+ });
697
+ Object.assign(contents, doc);
698
+ const exception = new models_0_1.ServiceQuotaExceededException({
699
+ $metadata: deserializeMetadata(parsedOutput),
700
+ ...contents,
701
+ });
702
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
703
+ };
704
+ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
705
+ const contents = (0, smithy_client_1.map)({});
706
+ const data = parsedOutput.body;
707
+ const doc = (0, smithy_client_1.take)(data, {
708
+ Message: smithy_client_1.expectString,
709
+ });
710
+ Object.assign(contents, doc);
711
+ const exception = new models_0_1.TooManyRequestsException({
712
+ $metadata: deserializeMetadata(parsedOutput),
713
+ ...contents,
714
+ });
715
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
716
+ };
266
717
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
267
718
  const contents = (0, smithy_client_1.map)({});
268
719
  const data = parsedOutput.body;