@aws-sdk/client-amp 3.812.0 → 3.816.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 (59) hide show
  1. package/README.md +33 -18
  2. package/dist-cjs/index.js +216 -0
  3. package/dist-es/Amp.js +8 -0
  4. package/dist-es/commands/CreateQueryLoggingConfigurationCommand.js +22 -0
  5. package/dist-es/commands/DeleteQueryLoggingConfigurationCommand.js +22 -0
  6. package/dist-es/commands/DescribeQueryLoggingConfigurationCommand.js +22 -0
  7. package/dist-es/commands/UpdateQueryLoggingConfigurationCommand.js +22 -0
  8. package/dist-es/commands/index.js +4 -0
  9. package/dist-es/models/models_0.js +8 -0
  10. package/dist-es/protocols/Aws_restJson1.js +112 -0
  11. package/dist-types/Amp.d.ts +29 -18
  12. package/dist-types/AmpClient.d.ts +7 -20
  13. package/dist-types/commands/CreateAlertManagerDefinitionCommand.d.ts +2 -6
  14. package/dist-types/commands/CreateLoggingConfigurationCommand.d.ts +2 -5
  15. package/dist-types/commands/CreateQueryLoggingConfigurationCommand.d.ts +98 -0
  16. package/dist-types/commands/CreateRuleGroupsNamespaceCommand.d.ts +2 -7
  17. package/dist-types/commands/CreateScraperCommand.d.ts +2 -20
  18. package/dist-types/commands/CreateWorkspaceCommand.d.ts +2 -5
  19. package/dist-types/commands/DeleteAlertManagerDefinitionCommand.d.ts +1 -2
  20. package/dist-types/commands/DeleteLoggingConfigurationCommand.d.ts +2 -3
  21. package/dist-types/commands/DeleteQueryLoggingConfigurationCommand.d.ts +86 -0
  22. package/dist-types/commands/DeleteRuleGroupsNamespaceCommand.d.ts +1 -2
  23. package/dist-types/commands/DeleteScraperCommand.d.ts +2 -4
  24. package/dist-types/commands/DeleteWorkspaceCommand.d.ts +2 -7
  25. package/dist-types/commands/DescribeAlertManagerDefinitionCommand.d.ts +2 -4
  26. package/dist-types/commands/DescribeLoggingConfigurationCommand.d.ts +2 -4
  27. package/dist-types/commands/DescribeQueryLoggingConfigurationCommand.d.ts +102 -0
  28. package/dist-types/commands/DescribeRuleGroupsNamespaceCommand.d.ts +2 -4
  29. package/dist-types/commands/DescribeScraperCommand.d.ts +2 -4
  30. package/dist-types/commands/DescribeWorkspaceCommand.d.ts +1 -2
  31. package/dist-types/commands/DescribeWorkspaceConfigurationCommand.d.ts +2 -4
  32. package/dist-types/commands/GetDefaultScraperConfigurationCommand.d.ts +1 -2
  33. package/dist-types/commands/ListRuleGroupsNamespacesCommand.d.ts +1 -2
  34. package/dist-types/commands/ListScrapersCommand.d.ts +2 -5
  35. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -5
  36. package/dist-types/commands/ListWorkspacesCommand.d.ts +2 -4
  37. package/dist-types/commands/PutAlertManagerDefinitionCommand.d.ts +2 -5
  38. package/dist-types/commands/PutRuleGroupsNamespaceCommand.d.ts +2 -9
  39. package/dist-types/commands/TagResourceCommand.d.ts +2 -9
  40. package/dist-types/commands/UntagResourceCommand.d.ts +2 -4
  41. package/dist-types/commands/UpdateLoggingConfigurationCommand.d.ts +2 -4
  42. package/dist-types/commands/UpdateQueryLoggingConfigurationCommand.d.ts +101 -0
  43. package/dist-types/commands/UpdateScraperCommand.d.ts +2 -6
  44. package/dist-types/commands/UpdateWorkspaceAliasCommand.d.ts +1 -2
  45. package/dist-types/commands/UpdateWorkspaceConfigurationCommand.d.ts +2 -5
  46. package/dist-types/commands/index.d.ts +4 -0
  47. package/dist-types/index.d.ts +1 -18
  48. package/dist-types/models/models_0.d.ts +294 -207
  49. package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
  50. package/dist-types/ts3.4/Amp.d.ts +74 -0
  51. package/dist-types/ts3.4/AmpClient.d.ts +24 -0
  52. package/dist-types/ts3.4/commands/CreateQueryLoggingConfigurationCommand.d.ts +51 -0
  53. package/dist-types/ts3.4/commands/DeleteQueryLoggingConfigurationCommand.d.ts +47 -0
  54. package/dist-types/ts3.4/commands/DescribeQueryLoggingConfigurationCommand.d.ts +51 -0
  55. package/dist-types/ts3.4/commands/UpdateQueryLoggingConfigurationCommand.d.ts +51 -0
  56. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  57. package/dist-types/ts3.4/models/models_0.d.ts +57 -0
  58. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
  59. package/package.json +5 -5
@@ -175,6 +175,14 @@ export const LoggingConfigurationStatusCode = {
175
175
  UPDATE_FAILED: "UPDATE_FAILED",
176
176
  UPDATING: "UPDATING",
177
177
  };
178
+ export const QueryLoggingConfigurationStatusCode = {
179
+ ACTIVE: "ACTIVE",
180
+ CREATING: "CREATING",
181
+ CREATION_FAILED: "CREATION_FAILED",
182
+ DELETING: "DELETING",
183
+ UPDATE_FAILED: "UPDATE_FAILED",
184
+ UPDATING: "UPDATING",
185
+ };
178
186
  export const RuleGroupsNamespaceStatusCode = {
179
187
  ACTIVE: "ACTIVE",
180
188
  CREATING: "CREATING",
@@ -34,6 +34,21 @@ export const se_CreateLoggingConfigurationCommand = async (input, context) => {
34
34
  b.m("POST").h(headers).b(body);
35
35
  return b.build();
36
36
  };
37
+ export const se_CreateQueryLoggingConfigurationCommand = async (input, context) => {
38
+ const b = rb(input, context);
39
+ const headers = {
40
+ "content-type": "application/json",
41
+ };
42
+ b.bp("/workspaces/{workspaceId}/logging/query");
43
+ b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
44
+ let body;
45
+ body = JSON.stringify(take(input, {
46
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
47
+ destinations: (_) => _json(_),
48
+ }));
49
+ b.m("POST").h(headers).b(body);
50
+ return b.build();
51
+ };
37
52
  export const se_CreateRuleGroupsNamespaceCommand = async (input, context) => {
38
53
  const b = rb(input, context);
39
54
  const headers = {
@@ -110,6 +125,18 @@ export const se_DeleteLoggingConfigurationCommand = async (input, context) => {
110
125
  b.m("DELETE").h(headers).q(query).b(body);
111
126
  return b.build();
112
127
  };
128
+ export const se_DeleteQueryLoggingConfigurationCommand = async (input, context) => {
129
+ const b = rb(input, context);
130
+ const headers = {};
131
+ b.bp("/workspaces/{workspaceId}/logging/query");
132
+ b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
133
+ const query = map({
134
+ [_cT]: [, input[_cT] ?? generateIdempotencyToken()],
135
+ });
136
+ let body;
137
+ b.m("DELETE").h(headers).q(query).b(body);
138
+ return b.build();
139
+ };
113
140
  export const se_DeleteRuleGroupsNamespaceCommand = async (input, context) => {
114
141
  const b = rb(input, context);
115
142
  const headers = {};
@@ -165,6 +192,15 @@ export const se_DescribeLoggingConfigurationCommand = async (input, context) =>
165
192
  b.m("GET").h(headers).b(body);
166
193
  return b.build();
167
194
  };
195
+ export const se_DescribeQueryLoggingConfigurationCommand = async (input, context) => {
196
+ const b = rb(input, context);
197
+ const headers = {};
198
+ b.bp("/workspaces/{workspaceId}/logging/query");
199
+ b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
200
+ let body;
201
+ b.m("GET").h(headers).b(body);
202
+ return b.build();
203
+ };
168
204
  export const se_DescribeRuleGroupsNamespaceCommand = async (input, context) => {
169
205
  const b = rb(input, context);
170
206
  const headers = {};
@@ -331,6 +367,21 @@ export const se_UpdateLoggingConfigurationCommand = async (input, context) => {
331
367
  b.m("PUT").h(headers).b(body);
332
368
  return b.build();
333
369
  };
370
+ export const se_UpdateQueryLoggingConfigurationCommand = async (input, context) => {
371
+ const b = rb(input, context);
372
+ const headers = {
373
+ "content-type": "application/json",
374
+ };
375
+ b.bp("/workspaces/{workspaceId}/logging/query");
376
+ b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
377
+ let body;
378
+ body = JSON.stringify(take(input, {
379
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
380
+ destinations: (_) => _json(_),
381
+ }));
382
+ b.m("PUT").h(headers).b(body);
383
+ return b.build();
384
+ };
334
385
  export const se_UpdateScraperCommand = async (input, context) => {
335
386
  const b = rb(input, context);
336
387
  const headers = {
@@ -408,6 +459,20 @@ export const de_CreateLoggingConfigurationCommand = async (output, context) => {
408
459
  Object.assign(contents, doc);
409
460
  return contents;
410
461
  };
462
+ export const de_CreateQueryLoggingConfigurationCommand = async (output, context) => {
463
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
464
+ return de_CommandError(output, context);
465
+ }
466
+ const contents = map({
467
+ $metadata: deserializeMetadata(output),
468
+ });
469
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
470
+ const doc = take(data, {
471
+ status: _json,
472
+ });
473
+ Object.assign(contents, doc);
474
+ return contents;
475
+ };
411
476
  export const de_CreateRuleGroupsNamespaceCommand = async (output, context) => {
412
477
  if (output.statusCode !== 202 && output.statusCode >= 300) {
413
478
  return de_CommandError(output, context);
@@ -480,6 +545,16 @@ export const de_DeleteLoggingConfigurationCommand = async (output, context) => {
480
545
  await collectBody(output.body, context);
481
546
  return contents;
482
547
  };
548
+ export const de_DeleteQueryLoggingConfigurationCommand = async (output, context) => {
549
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
550
+ return de_CommandError(output, context);
551
+ }
552
+ const contents = map({
553
+ $metadata: deserializeMetadata(output),
554
+ });
555
+ await collectBody(output.body, context);
556
+ return contents;
557
+ };
483
558
  export const de_DeleteRuleGroupsNamespaceCommand = async (output, context) => {
484
559
  if (output.statusCode !== 202 && output.statusCode >= 300) {
485
560
  return de_CommandError(output, context);
@@ -543,6 +618,20 @@ export const de_DescribeLoggingConfigurationCommand = async (output, context) =>
543
618
  Object.assign(contents, doc);
544
619
  return contents;
545
620
  };
621
+ export const de_DescribeQueryLoggingConfigurationCommand = async (output, context) => {
622
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
623
+ return de_CommandError(output, context);
624
+ }
625
+ const contents = map({
626
+ $metadata: deserializeMetadata(output),
627
+ });
628
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
629
+ const doc = take(data, {
630
+ queryLoggingConfiguration: (_) => de_QueryLoggingConfigurationMetadata(_, context),
631
+ });
632
+ Object.assign(contents, doc);
633
+ return contents;
634
+ };
546
635
  export const de_DescribeRuleGroupsNamespaceCommand = async (output, context) => {
547
636
  if (output.statusCode !== 200 && output.statusCode >= 300) {
548
637
  return de_CommandError(output, context);
@@ -737,6 +826,20 @@ export const de_UpdateLoggingConfigurationCommand = async (output, context) => {
737
826
  Object.assign(contents, doc);
738
827
  return contents;
739
828
  };
829
+ export const de_UpdateQueryLoggingConfigurationCommand = async (output, context) => {
830
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
831
+ return de_CommandError(output, context);
832
+ }
833
+ const contents = map({
834
+ $metadata: deserializeMetadata(output),
835
+ });
836
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
837
+ const doc = take(data, {
838
+ status: _json,
839
+ });
840
+ Object.assign(contents, doc);
841
+ return contents;
842
+ };
740
843
  export const de_UpdateScraperCommand = async (output, context) => {
741
844
  if (output.statusCode !== 202 && output.statusCode >= 300) {
742
845
  return de_CommandError(output, context);
@@ -946,6 +1049,15 @@ const de_LoggingConfigurationMetadata = (output, context) => {
946
1049
  workspace: __expectString,
947
1050
  });
948
1051
  };
1052
+ const de_QueryLoggingConfigurationMetadata = (output, context) => {
1053
+ return take(output, {
1054
+ createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1055
+ destinations: _json,
1056
+ modifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1057
+ status: _json,
1058
+ workspace: __expectString,
1059
+ });
1060
+ };
949
1061
  const de_RuleGroupsNamespaceDescription = (output, context) => {
950
1062
  return take(output, {
951
1063
  arn: __expectString,
@@ -2,16 +2,19 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
2
  import { AmpClient } from "./AmpClient";
3
3
  import { CreateAlertManagerDefinitionCommandInput, CreateAlertManagerDefinitionCommandOutput } from "./commands/CreateAlertManagerDefinitionCommand";
4
4
  import { CreateLoggingConfigurationCommandInput, CreateLoggingConfigurationCommandOutput } from "./commands/CreateLoggingConfigurationCommand";
5
+ import { CreateQueryLoggingConfigurationCommandInput, CreateQueryLoggingConfigurationCommandOutput } from "./commands/CreateQueryLoggingConfigurationCommand";
5
6
  import { CreateRuleGroupsNamespaceCommandInput, CreateRuleGroupsNamespaceCommandOutput } from "./commands/CreateRuleGroupsNamespaceCommand";
6
7
  import { CreateScraperCommandInput, CreateScraperCommandOutput } from "./commands/CreateScraperCommand";
7
8
  import { CreateWorkspaceCommandInput, CreateWorkspaceCommandOutput } from "./commands/CreateWorkspaceCommand";
8
9
  import { DeleteAlertManagerDefinitionCommandInput, DeleteAlertManagerDefinitionCommandOutput } from "./commands/DeleteAlertManagerDefinitionCommand";
9
10
  import { DeleteLoggingConfigurationCommandInput, DeleteLoggingConfigurationCommandOutput } from "./commands/DeleteLoggingConfigurationCommand";
11
+ import { DeleteQueryLoggingConfigurationCommandInput, DeleteQueryLoggingConfigurationCommandOutput } from "./commands/DeleteQueryLoggingConfigurationCommand";
10
12
  import { DeleteRuleGroupsNamespaceCommandInput, DeleteRuleGroupsNamespaceCommandOutput } from "./commands/DeleteRuleGroupsNamespaceCommand";
11
13
  import { DeleteScraperCommandInput, DeleteScraperCommandOutput } from "./commands/DeleteScraperCommand";
12
14
  import { DeleteWorkspaceCommandInput, DeleteWorkspaceCommandOutput } from "./commands/DeleteWorkspaceCommand";
13
15
  import { DescribeAlertManagerDefinitionCommandInput, DescribeAlertManagerDefinitionCommandOutput } from "./commands/DescribeAlertManagerDefinitionCommand";
14
16
  import { DescribeLoggingConfigurationCommandInput, DescribeLoggingConfigurationCommandOutput } from "./commands/DescribeLoggingConfigurationCommand";
17
+ import { DescribeQueryLoggingConfigurationCommandInput, DescribeQueryLoggingConfigurationCommandOutput } from "./commands/DescribeQueryLoggingConfigurationCommand";
15
18
  import { DescribeRuleGroupsNamespaceCommandInput, DescribeRuleGroupsNamespaceCommandOutput } from "./commands/DescribeRuleGroupsNamespaceCommand";
16
19
  import { DescribeScraperCommandInput, DescribeScraperCommandOutput } from "./commands/DescribeScraperCommand";
17
20
  import { DescribeWorkspaceCommandInput, DescribeWorkspaceCommandOutput } from "./commands/DescribeWorkspaceCommand";
@@ -26,6 +29,7 @@ import { PutRuleGroupsNamespaceCommandInput, PutRuleGroupsNamespaceCommandOutput
26
29
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
27
30
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
28
31
  import { UpdateLoggingConfigurationCommandInput, UpdateLoggingConfigurationCommandOutput } from "./commands/UpdateLoggingConfigurationCommand";
32
+ import { UpdateQueryLoggingConfigurationCommandInput, UpdateQueryLoggingConfigurationCommandOutput } from "./commands/UpdateQueryLoggingConfigurationCommand";
29
33
  import { UpdateScraperCommandInput, UpdateScraperCommandOutput } from "./commands/UpdateScraperCommand";
30
34
  import { UpdateWorkspaceAliasCommandInput, UpdateWorkspaceAliasCommandOutput } from "./commands/UpdateWorkspaceAliasCommand";
31
35
  import { UpdateWorkspaceConfigurationCommandInput, UpdateWorkspaceConfigurationCommandOutput } from "./commands/UpdateWorkspaceConfigurationCommand";
@@ -42,6 +46,12 @@ export interface Amp {
42
46
  createLoggingConfiguration(args: CreateLoggingConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<CreateLoggingConfigurationCommandOutput>;
43
47
  createLoggingConfiguration(args: CreateLoggingConfigurationCommandInput, cb: (err: any, data?: CreateLoggingConfigurationCommandOutput) => void): void;
44
48
  createLoggingConfiguration(args: CreateLoggingConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateLoggingConfigurationCommandOutput) => void): void;
49
+ /**
50
+ * @see {@link CreateQueryLoggingConfigurationCommand}
51
+ */
52
+ createQueryLoggingConfiguration(args: CreateQueryLoggingConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<CreateQueryLoggingConfigurationCommandOutput>;
53
+ createQueryLoggingConfiguration(args: CreateQueryLoggingConfigurationCommandInput, cb: (err: any, data?: CreateQueryLoggingConfigurationCommandOutput) => void): void;
54
+ createQueryLoggingConfiguration(args: CreateQueryLoggingConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateQueryLoggingConfigurationCommandOutput) => void): void;
45
55
  /**
46
56
  * @see {@link CreateRuleGroupsNamespaceCommand}
47
57
  */
@@ -73,6 +83,12 @@ export interface Amp {
73
83
  deleteLoggingConfiguration(args: DeleteLoggingConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteLoggingConfigurationCommandOutput>;
74
84
  deleteLoggingConfiguration(args: DeleteLoggingConfigurationCommandInput, cb: (err: any, data?: DeleteLoggingConfigurationCommandOutput) => void): void;
75
85
  deleteLoggingConfiguration(args: DeleteLoggingConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteLoggingConfigurationCommandOutput) => void): void;
86
+ /**
87
+ * @see {@link DeleteQueryLoggingConfigurationCommand}
88
+ */
89
+ deleteQueryLoggingConfiguration(args: DeleteQueryLoggingConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteQueryLoggingConfigurationCommandOutput>;
90
+ deleteQueryLoggingConfiguration(args: DeleteQueryLoggingConfigurationCommandInput, cb: (err: any, data?: DeleteQueryLoggingConfigurationCommandOutput) => void): void;
91
+ deleteQueryLoggingConfiguration(args: DeleteQueryLoggingConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteQueryLoggingConfigurationCommandOutput) => void): void;
76
92
  /**
77
93
  * @see {@link DeleteRuleGroupsNamespaceCommand}
78
94
  */
@@ -103,6 +119,12 @@ export interface Amp {
103
119
  describeLoggingConfiguration(args: DescribeLoggingConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DescribeLoggingConfigurationCommandOutput>;
104
120
  describeLoggingConfiguration(args: DescribeLoggingConfigurationCommandInput, cb: (err: any, data?: DescribeLoggingConfigurationCommandOutput) => void): void;
105
121
  describeLoggingConfiguration(args: DescribeLoggingConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeLoggingConfigurationCommandOutput) => void): void;
122
+ /**
123
+ * @see {@link DescribeQueryLoggingConfigurationCommand}
124
+ */
125
+ describeQueryLoggingConfiguration(args: DescribeQueryLoggingConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DescribeQueryLoggingConfigurationCommandOutput>;
126
+ describeQueryLoggingConfiguration(args: DescribeQueryLoggingConfigurationCommandInput, cb: (err: any, data?: DescribeQueryLoggingConfigurationCommandOutput) => void): void;
127
+ describeQueryLoggingConfiguration(args: DescribeQueryLoggingConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeQueryLoggingConfigurationCommandOutput) => void): void;
106
128
  /**
107
129
  * @see {@link DescribeRuleGroupsNamespaceCommand}
108
130
  */
@@ -190,6 +212,12 @@ export interface Amp {
190
212
  updateLoggingConfiguration(args: UpdateLoggingConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateLoggingConfigurationCommandOutput>;
191
213
  updateLoggingConfiguration(args: UpdateLoggingConfigurationCommandInput, cb: (err: any, data?: UpdateLoggingConfigurationCommandOutput) => void): void;
192
214
  updateLoggingConfiguration(args: UpdateLoggingConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateLoggingConfigurationCommandOutput) => void): void;
215
+ /**
216
+ * @see {@link UpdateQueryLoggingConfigurationCommand}
217
+ */
218
+ updateQueryLoggingConfiguration(args: UpdateQueryLoggingConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateQueryLoggingConfigurationCommandOutput>;
219
+ updateQueryLoggingConfiguration(args: UpdateQueryLoggingConfigurationCommandInput, cb: (err: any, data?: UpdateQueryLoggingConfigurationCommandOutput) => void): void;
220
+ updateQueryLoggingConfiguration(args: UpdateQueryLoggingConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateQueryLoggingConfigurationCommandOutput) => void): void;
193
221
  /**
194
222
  * @see {@link UpdateScraperCommand}
195
223
  */
@@ -210,24 +238,7 @@ export interface Amp {
210
238
  updateWorkspaceConfiguration(args: UpdateWorkspaceConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateWorkspaceConfigurationCommandOutput) => void): void;
211
239
  }
212
240
  /**
213
- * <p>Amazon Managed Service for Prometheus is a serverless, Prometheus-compatible monitoring service for
214
- * container metrics that makes it easier to securely monitor container environments at
215
- * scale. With Amazon Managed Service for Prometheus, you can use the same open-source Prometheus data
216
- * model and query language that you use today to monitor the performance of your
217
- * containerized workloads, and also enjoy improved scalability, availability, and security
218
- * without having to manage the underlying infrastructure.</p>
219
- * <p>For more information about Amazon Managed Service for Prometheus, see the <a href="https://docs.aws.amazon.com/prometheus/latest/userguide/what-is-Amazon-Managed-Service-Prometheus.html">Amazon Managed Service for Prometheus</a> User Guide.</p>
220
- * <p>Amazon Managed Service for Prometheus includes two APIs.</p>
221
- * <ul>
222
- * <li>
223
- * <p>Use the Amazon Web Services API described in this guide to manage Amazon Managed Service for Prometheus resources, such as workspaces, rule groups, and alert
224
- * managers.</p>
225
- * </li>
226
- * <li>
227
- * <p>Use the <a href="https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-APIReference.html#AMP-APIReference-Prometheus-Compatible-Apis">Prometheus-compatible API</a> to work within your Prometheus
228
- * workspace.</p>
229
- * </li>
230
- * </ul>
241
+ * <p>Amazon Managed Service for Prometheus is a serverless, Prometheus-compatible monitoring service for container metrics that makes it easier to securely monitor container environments at scale. With Amazon Managed Service for Prometheus, you can use the same open-source Prometheus data model and query language that you use today to monitor the performance of your containerized workloads, and also enjoy improved scalability, availability, and security without having to manage the underlying infrastructure.</p> <p>For more information about Amazon Managed Service for Prometheus, see the <a href="https://docs.aws.amazon.com/prometheus/latest/userguide/what-is-Amazon-Managed-Service-Prometheus.html">Amazon Managed Service for Prometheus</a> User Guide.</p> <p>Amazon Managed Service for Prometheus includes two APIs.</p> <ul> <li> <p>Use the Amazon Web Services API described in this guide to manage Amazon Managed Service for Prometheus resources, such as workspaces, rule groups, and alert managers.</p> </li> <li> <p>Use the <a href="https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-APIReference.html#AMP-APIReference-Prometheus-Compatible-Apis">Prometheus-compatible API</a> to work within your Prometheus workspace.</p> </li> </ul>
231
242
  * @public
232
243
  */
233
244
  export declare class Amp extends AmpClient implements Amp {
@@ -9,16 +9,19 @@ import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalc
9
9
  import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
10
  import { CreateAlertManagerDefinitionCommandInput, CreateAlertManagerDefinitionCommandOutput } from "./commands/CreateAlertManagerDefinitionCommand";
11
11
  import { CreateLoggingConfigurationCommandInput, CreateLoggingConfigurationCommandOutput } from "./commands/CreateLoggingConfigurationCommand";
12
+ import { CreateQueryLoggingConfigurationCommandInput, CreateQueryLoggingConfigurationCommandOutput } from "./commands/CreateQueryLoggingConfigurationCommand";
12
13
  import { CreateRuleGroupsNamespaceCommandInput, CreateRuleGroupsNamespaceCommandOutput } from "./commands/CreateRuleGroupsNamespaceCommand";
13
14
  import { CreateScraperCommandInput, CreateScraperCommandOutput } from "./commands/CreateScraperCommand";
14
15
  import { CreateWorkspaceCommandInput, CreateWorkspaceCommandOutput } from "./commands/CreateWorkspaceCommand";
15
16
  import { DeleteAlertManagerDefinitionCommandInput, DeleteAlertManagerDefinitionCommandOutput } from "./commands/DeleteAlertManagerDefinitionCommand";
16
17
  import { DeleteLoggingConfigurationCommandInput, DeleteLoggingConfigurationCommandOutput } from "./commands/DeleteLoggingConfigurationCommand";
18
+ import { DeleteQueryLoggingConfigurationCommandInput, DeleteQueryLoggingConfigurationCommandOutput } from "./commands/DeleteQueryLoggingConfigurationCommand";
17
19
  import { DeleteRuleGroupsNamespaceCommandInput, DeleteRuleGroupsNamespaceCommandOutput } from "./commands/DeleteRuleGroupsNamespaceCommand";
18
20
  import { DeleteScraperCommandInput, DeleteScraperCommandOutput } from "./commands/DeleteScraperCommand";
19
21
  import { DeleteWorkspaceCommandInput, DeleteWorkspaceCommandOutput } from "./commands/DeleteWorkspaceCommand";
20
22
  import { DescribeAlertManagerDefinitionCommandInput, DescribeAlertManagerDefinitionCommandOutput } from "./commands/DescribeAlertManagerDefinitionCommand";
21
23
  import { DescribeLoggingConfigurationCommandInput, DescribeLoggingConfigurationCommandOutput } from "./commands/DescribeLoggingConfigurationCommand";
24
+ import { DescribeQueryLoggingConfigurationCommandInput, DescribeQueryLoggingConfigurationCommandOutput } from "./commands/DescribeQueryLoggingConfigurationCommand";
22
25
  import { DescribeRuleGroupsNamespaceCommandInput, DescribeRuleGroupsNamespaceCommandOutput } from "./commands/DescribeRuleGroupsNamespaceCommand";
23
26
  import { DescribeScraperCommandInput, DescribeScraperCommandOutput } from "./commands/DescribeScraperCommand";
24
27
  import { DescribeWorkspaceCommandInput, DescribeWorkspaceCommandOutput } from "./commands/DescribeWorkspaceCommand";
@@ -33,6 +36,7 @@ import { PutRuleGroupsNamespaceCommandInput, PutRuleGroupsNamespaceCommandOutput
33
36
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
34
37
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
35
38
  import { UpdateLoggingConfigurationCommandInput, UpdateLoggingConfigurationCommandOutput } from "./commands/UpdateLoggingConfigurationCommand";
39
+ import { UpdateQueryLoggingConfigurationCommandInput, UpdateQueryLoggingConfigurationCommandOutput } from "./commands/UpdateQueryLoggingConfigurationCommand";
36
40
  import { UpdateScraperCommandInput, UpdateScraperCommandOutput } from "./commands/UpdateScraperCommand";
37
41
  import { UpdateWorkspaceAliasCommandInput, UpdateWorkspaceAliasCommandOutput } from "./commands/UpdateWorkspaceAliasCommand";
38
42
  import { UpdateWorkspaceConfigurationCommandInput, UpdateWorkspaceConfigurationCommandOutput } from "./commands/UpdateWorkspaceConfigurationCommand";
@@ -42,11 +46,11 @@ export { __Client };
42
46
  /**
43
47
  * @public
44
48
  */
45
- export type ServiceInputTypes = CreateAlertManagerDefinitionCommandInput | CreateLoggingConfigurationCommandInput | CreateRuleGroupsNamespaceCommandInput | CreateScraperCommandInput | CreateWorkspaceCommandInput | DeleteAlertManagerDefinitionCommandInput | DeleteLoggingConfigurationCommandInput | DeleteRuleGroupsNamespaceCommandInput | DeleteScraperCommandInput | DeleteWorkspaceCommandInput | DescribeAlertManagerDefinitionCommandInput | DescribeLoggingConfigurationCommandInput | DescribeRuleGroupsNamespaceCommandInput | DescribeScraperCommandInput | DescribeWorkspaceCommandInput | DescribeWorkspaceConfigurationCommandInput | GetDefaultScraperConfigurationCommandInput | ListRuleGroupsNamespacesCommandInput | ListScrapersCommandInput | ListTagsForResourceCommandInput | ListWorkspacesCommandInput | PutAlertManagerDefinitionCommandInput | PutRuleGroupsNamespaceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateLoggingConfigurationCommandInput | UpdateScraperCommandInput | UpdateWorkspaceAliasCommandInput | UpdateWorkspaceConfigurationCommandInput;
49
+ export type ServiceInputTypes = CreateAlertManagerDefinitionCommandInput | CreateLoggingConfigurationCommandInput | CreateQueryLoggingConfigurationCommandInput | CreateRuleGroupsNamespaceCommandInput | CreateScraperCommandInput | CreateWorkspaceCommandInput | DeleteAlertManagerDefinitionCommandInput | DeleteLoggingConfigurationCommandInput | DeleteQueryLoggingConfigurationCommandInput | DeleteRuleGroupsNamespaceCommandInput | DeleteScraperCommandInput | DeleteWorkspaceCommandInput | DescribeAlertManagerDefinitionCommandInput | DescribeLoggingConfigurationCommandInput | DescribeQueryLoggingConfigurationCommandInput | DescribeRuleGroupsNamespaceCommandInput | DescribeScraperCommandInput | DescribeWorkspaceCommandInput | DescribeWorkspaceConfigurationCommandInput | GetDefaultScraperConfigurationCommandInput | ListRuleGroupsNamespacesCommandInput | ListScrapersCommandInput | ListTagsForResourceCommandInput | ListWorkspacesCommandInput | PutAlertManagerDefinitionCommandInput | PutRuleGroupsNamespaceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateLoggingConfigurationCommandInput | UpdateQueryLoggingConfigurationCommandInput | UpdateScraperCommandInput | UpdateWorkspaceAliasCommandInput | UpdateWorkspaceConfigurationCommandInput;
46
50
  /**
47
51
  * @public
48
52
  */
49
- export type ServiceOutputTypes = CreateAlertManagerDefinitionCommandOutput | CreateLoggingConfigurationCommandOutput | CreateRuleGroupsNamespaceCommandOutput | CreateScraperCommandOutput | CreateWorkspaceCommandOutput | DeleteAlertManagerDefinitionCommandOutput | DeleteLoggingConfigurationCommandOutput | DeleteRuleGroupsNamespaceCommandOutput | DeleteScraperCommandOutput | DeleteWorkspaceCommandOutput | DescribeAlertManagerDefinitionCommandOutput | DescribeLoggingConfigurationCommandOutput | DescribeRuleGroupsNamespaceCommandOutput | DescribeScraperCommandOutput | DescribeWorkspaceCommandOutput | DescribeWorkspaceConfigurationCommandOutput | GetDefaultScraperConfigurationCommandOutput | ListRuleGroupsNamespacesCommandOutput | ListScrapersCommandOutput | ListTagsForResourceCommandOutput | ListWorkspacesCommandOutput | PutAlertManagerDefinitionCommandOutput | PutRuleGroupsNamespaceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateLoggingConfigurationCommandOutput | UpdateScraperCommandOutput | UpdateWorkspaceAliasCommandOutput | UpdateWorkspaceConfigurationCommandOutput;
53
+ export type ServiceOutputTypes = CreateAlertManagerDefinitionCommandOutput | CreateLoggingConfigurationCommandOutput | CreateQueryLoggingConfigurationCommandOutput | CreateRuleGroupsNamespaceCommandOutput | CreateScraperCommandOutput | CreateWorkspaceCommandOutput | DeleteAlertManagerDefinitionCommandOutput | DeleteLoggingConfigurationCommandOutput | DeleteQueryLoggingConfigurationCommandOutput | DeleteRuleGroupsNamespaceCommandOutput | DeleteScraperCommandOutput | DeleteWorkspaceCommandOutput | DescribeAlertManagerDefinitionCommandOutput | DescribeLoggingConfigurationCommandOutput | DescribeQueryLoggingConfigurationCommandOutput | DescribeRuleGroupsNamespaceCommandOutput | DescribeScraperCommandOutput | DescribeWorkspaceCommandOutput | DescribeWorkspaceConfigurationCommandOutput | GetDefaultScraperConfigurationCommandOutput | ListRuleGroupsNamespacesCommandOutput | ListScrapersCommandOutput | ListTagsForResourceCommandOutput | ListWorkspacesCommandOutput | PutAlertManagerDefinitionCommandOutput | PutRuleGroupsNamespaceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateLoggingConfigurationCommandOutput | UpdateQueryLoggingConfigurationCommandOutput | UpdateScraperCommandOutput | UpdateWorkspaceAliasCommandOutput | UpdateWorkspaceConfigurationCommandOutput;
50
54
  /**
51
55
  * @public
52
56
  */
@@ -198,24 +202,7 @@ export type AmpClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHa
198
202
  export interface AmpClientResolvedConfig extends AmpClientResolvedConfigType {
199
203
  }
200
204
  /**
201
- * <p>Amazon Managed Service for Prometheus is a serverless, Prometheus-compatible monitoring service for
202
- * container metrics that makes it easier to securely monitor container environments at
203
- * scale. With Amazon Managed Service for Prometheus, you can use the same open-source Prometheus data
204
- * model and query language that you use today to monitor the performance of your
205
- * containerized workloads, and also enjoy improved scalability, availability, and security
206
- * without having to manage the underlying infrastructure.</p>
207
- * <p>For more information about Amazon Managed Service for Prometheus, see the <a href="https://docs.aws.amazon.com/prometheus/latest/userguide/what-is-Amazon-Managed-Service-Prometheus.html">Amazon Managed Service for Prometheus</a> User Guide.</p>
208
- * <p>Amazon Managed Service for Prometheus includes two APIs.</p>
209
- * <ul>
210
- * <li>
211
- * <p>Use the Amazon Web Services API described in this guide to manage Amazon Managed Service for Prometheus resources, such as workspaces, rule groups, and alert
212
- * managers.</p>
213
- * </li>
214
- * <li>
215
- * <p>Use the <a href="https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-APIReference.html#AMP-APIReference-Prometheus-Compatible-Apis">Prometheus-compatible API</a> to work within your Prometheus
216
- * workspace.</p>
217
- * </li>
218
- * </ul>
205
+ * <p>Amazon Managed Service for Prometheus is a serverless, Prometheus-compatible monitoring service for container metrics that makes it easier to securely monitor container environments at scale. With Amazon Managed Service for Prometheus, you can use the same open-source Prometheus data model and query language that you use today to monitor the performance of your containerized workloads, and also enjoy improved scalability, availability, and security without having to manage the underlying infrastructure.</p> <p>For more information about Amazon Managed Service for Prometheus, see the <a href="https://docs.aws.amazon.com/prometheus/latest/userguide/what-is-Amazon-Managed-Service-Prometheus.html">Amazon Managed Service for Prometheus</a> User Guide.</p> <p>Amazon Managed Service for Prometheus includes two APIs.</p> <ul> <li> <p>Use the Amazon Web Services API described in this guide to manage Amazon Managed Service for Prometheus resources, such as workspaces, rule groups, and alert managers.</p> </li> <li> <p>Use the <a href="https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-APIReference.html#AMP-APIReference-Prometheus-Compatible-Apis">Prometheus-compatible API</a> to work within your Prometheus workspace.</p> </li> </ul>
219
206
  * @public
220
207
  */
221
208
  export declare class AmpClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, AmpClientResolvedConfig> {
@@ -27,10 +27,7 @@ declare const CreateAlertManagerDefinitionCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>The <code>CreateAlertManagerDefinition</code> operation creates the alert manager
31
- * definition in a workspace. If a workspace already has an alert manager definition, don't
32
- * use this operation to update it. Instead, use
33
- * <code>PutAlertManagerDefinition</code>.</p>
30
+ * <p>The <code>CreateAlertManagerDefinition</code> operation creates the alert manager definition in a workspace. If a workspace already has an alert manager definition, don't use this operation to update it. Instead, use <code>PutAlertManagerDefinition</code>.</p>
34
31
  * @example
35
32
  * Use a bare-bones client and the command you need to make an API call.
36
33
  * ```javascript
@@ -78,8 +75,7 @@ declare const CreateAlertManagerDefinitionCommand_base: {
78
75
  * <p>The request was denied due to request throttling.</p>
79
76
  *
80
77
  * @throws {@link ValidationException} (client fault)
81
- * <p>The input fails to satisfy the constraints specified by an Amazon Web Services
82
- * service.</p>
78
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
83
79
  *
84
80
  * @throws {@link AmpServiceException}
85
81
  * <p>Base exception class for all service exceptions from Amp service.</p>
@@ -27,9 +27,7 @@ declare const CreateLoggingConfigurationCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>The <code>CreateLoggingConfiguration</code> operation creates a logging configuration
31
- * for the workspace. Use this operation to set the CloudWatch log group to which
32
- * the logs will be published to.</p>
30
+ * <p>The <code>CreateLoggingConfiguration</code> operation creates rules and alerting logging configuration for the workspace. Use this operation to set the CloudWatch log group to which the logs will be published to.</p> <note> <p>These logging configurations are only for rules and alerting logs.</p> </note>
33
31
  * @example
34
32
  * Use a bare-bones client and the command you need to make an API call.
35
33
  * ```javascript
@@ -68,8 +66,7 @@ declare const CreateLoggingConfigurationCommand_base: {
68
66
  * <p>The request references a resources that doesn't exist.</p>
69
67
  *
70
68
  * @throws {@link ValidationException} (client fault)
71
- * <p>The input fails to satisfy the constraints specified by an Amazon Web Services
72
- * service.</p>
69
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
73
70
  *
74
71
  * @throws {@link AmpServiceException}
75
72
  * <p>Base exception class for all service exceptions from Amp service.</p>
@@ -0,0 +1,98 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
4
+ import { CreateQueryLoggingConfigurationRequest, CreateQueryLoggingConfigurationResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateQueryLoggingConfigurationCommand}.
14
+ */
15
+ export interface CreateQueryLoggingConfigurationCommandInput extends CreateQueryLoggingConfigurationRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateQueryLoggingConfigurationCommand}.
21
+ */
22
+ export interface CreateQueryLoggingConfigurationCommandOutput extends CreateQueryLoggingConfigurationResponse, __MetadataBearer {
23
+ }
24
+ declare const CreateQueryLoggingConfigurationCommand_base: {
25
+ new (input: CreateQueryLoggingConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<CreateQueryLoggingConfigurationCommandInput, CreateQueryLoggingConfigurationCommandOutput, AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: CreateQueryLoggingConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<CreateQueryLoggingConfigurationCommandInput, CreateQueryLoggingConfigurationCommandOutput, AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Creates a query logging configuration for the specified workspace. This operation enables logging of queries that exceed the specified QSP threshold.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { AmpClient, CreateQueryLoggingConfigurationCommand } from "@aws-sdk/client-amp"; // ES Modules import
35
+ * // const { AmpClient, CreateQueryLoggingConfigurationCommand } = require("@aws-sdk/client-amp"); // CommonJS import
36
+ * const client = new AmpClient(config);
37
+ * const input = { // CreateQueryLoggingConfigurationRequest
38
+ * workspaceId: "STRING_VALUE", // required
39
+ * destinations: [ // LoggingDestinations // required
40
+ * { // LoggingDestination
41
+ * cloudWatchLogs: { // CloudWatchLogDestination
42
+ * logGroupArn: "STRING_VALUE", // required
43
+ * },
44
+ * filters: { // LoggingFilter
45
+ * qspThreshold: Number("long"), // required
46
+ * },
47
+ * },
48
+ * ],
49
+ * clientToken: "STRING_VALUE",
50
+ * };
51
+ * const command = new CreateQueryLoggingConfigurationCommand(input);
52
+ * const response = await client.send(command);
53
+ * // { // CreateQueryLoggingConfigurationResponse
54
+ * // status: { // QueryLoggingConfigurationStatus
55
+ * // statusCode: "STRING_VALUE", // required
56
+ * // statusReason: "STRING_VALUE",
57
+ * // },
58
+ * // };
59
+ *
60
+ * ```
61
+ *
62
+ * @param CreateQueryLoggingConfigurationCommandInput - {@link CreateQueryLoggingConfigurationCommandInput}
63
+ * @returns {@link CreateQueryLoggingConfigurationCommandOutput}
64
+ * @see {@link CreateQueryLoggingConfigurationCommandInput} for command's `input` shape.
65
+ * @see {@link CreateQueryLoggingConfigurationCommandOutput} for command's `response` shape.
66
+ * @see {@link AmpClientResolvedConfig | config} for AmpClient's `config` shape.
67
+ *
68
+ * @throws {@link AccessDeniedException} (client fault)
69
+ * <p>You do not have sufficient access to perform this action.</p>
70
+ *
71
+ * @throws {@link InternalServerException} (server fault)
72
+ * <p>An unexpected error occurred during the processing of the request.</p>
73
+ *
74
+ * @throws {@link ResourceNotFoundException} (client fault)
75
+ * <p>The request references a resources that doesn't exist.</p>
76
+ *
77
+ * @throws {@link ValidationException} (client fault)
78
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
79
+ *
80
+ * @throws {@link AmpServiceException}
81
+ * <p>Base exception class for all service exceptions from Amp service.</p>
82
+ *
83
+ *
84
+ * @public
85
+ */
86
+ export declare class CreateQueryLoggingConfigurationCommand extends CreateQueryLoggingConfigurationCommand_base {
87
+ /** @internal type navigation helper, not in runtime. */
88
+ protected static __types: {
89
+ api: {
90
+ input: CreateQueryLoggingConfigurationRequest;
91
+ output: CreateQueryLoggingConfigurationResponse;
92
+ };
93
+ sdk: {
94
+ input: CreateQueryLoggingConfigurationCommandInput;
95
+ output: CreateQueryLoggingConfigurationCommandOutput;
96
+ };
97
+ };
98
+ }
@@ -27,11 +27,7 @@ declare const CreateRuleGroupsNamespaceCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>The <code>CreateRuleGroupsNamespace</code> operation creates a rule groups namespace
31
- * within a workspace. A rule groups namespace is associated with exactly one rules file. A
32
- * workspace can have multiple rule groups namespaces.</p>
33
- * <p>Use this operation only to create new rule groups namespaces. To update an existing
34
- * rule groups namespace, use <code>PutRuleGroupsNamespace</code>.</p>
30
+ * <p>The <code>CreateRuleGroupsNamespace</code> operation creates a rule groups namespace within a workspace. A rule groups namespace is associated with exactly one rules file. A workspace can have multiple rule groups namespaces.</p> <p>Use this operation only to create new rule groups namespaces. To update an existing rule groups namespace, use <code>PutRuleGroupsNamespace</code>.</p>
35
31
  * @example
36
32
  * Use a bare-bones client and the command you need to make an API call.
37
33
  * ```javascript
@@ -88,8 +84,7 @@ declare const CreateRuleGroupsNamespaceCommand_base: {
88
84
  * <p>The request was denied due to request throttling.</p>
89
85
  *
90
86
  * @throws {@link ValidationException} (client fault)
91
- * <p>The input fails to satisfy the constraints specified by an Amazon Web Services
92
- * service.</p>
87
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
93
88
  *
94
89
  * @throws {@link AmpServiceException}
95
90
  * <p>Base exception class for all service exceptions from Amp service.</p>
@@ -27,24 +27,7 @@ declare const CreateScraperCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>The <code>CreateScraper</code> operation creates a scraper to collect metrics. A
31
- * scraper pulls metrics from Prometheus-compatible sources within an Amazon EKS
32
- * cluster, and sends them to your Amazon Managed Service for Prometheus workspace. Scrapers are
33
- * flexible, and can be configured to control what metrics are collected, the
34
- * frequency of collection, what transformations are applied to the metrics, and more.</p>
35
- * <p>An IAM role will be created for you that Amazon Managed Service for Prometheus uses
36
- * to access the metrics in your cluster. You must configure this role with a policy that
37
- * allows it to scrape metrics from your cluster. For more information, see
38
- * <a href="https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html#AMP-collector-eks-setup">Configuring your Amazon EKS cluster</a> in the <i>Amazon Managed Service for Prometheus User Guide</i>.</p>
39
- * <p>The <code>scrapeConfiguration</code> parameter contains the base-64 encoded YAML
40
- * configuration for the scraper.</p>
41
- * <note>
42
- * <p>For more information about collectors, including what metrics are collected, and
43
- * how to configure the scraper, see <a href="https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html">Using an
44
- * Amazon Web Services managed
45
- * collector</a> in the <i>Amazon Managed Service for Prometheus User
46
- * Guide</i>.</p>
47
- * </note>
30
+ * <p>The <code>CreateScraper</code> operation creates a scraper to collect metrics. A scraper pulls metrics from Prometheus-compatible sources within an Amazon EKS cluster, and sends them to your Amazon Managed Service for Prometheus workspace. Scrapers are flexible, and can be configured to control what metrics are collected, the frequency of collection, what transformations are applied to the metrics, and more.</p> <p>An IAM role will be created for you that Amazon Managed Service for Prometheus uses to access the metrics in your cluster. You must configure this role with a policy that allows it to scrape metrics from your cluster. For more information, see <a href="https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html#AMP-collector-eks-setup">Configuring your Amazon EKS cluster</a> in the <i>Amazon Managed Service for Prometheus User Guide</i>.</p> <p>The <code>scrapeConfiguration</code> parameter contains the base-64 encoded YAML configuration for the scraper.</p> <p>When creating a scraper, the service creates a <code>Network Interface</code> in each <b>Availability Zone</b> that are passed into <code>CreateScraper</code> through subnets. These network interfaces are used to connect to the Amazon EKS cluster within the VPC for scraping metrics.</p> <note> <p>For more information about collectors, including what metrics are collected, and how to configure the scraper, see <a href="https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html">Using an Amazon Web Services managed collector</a> in the <i>Amazon Managed Service for Prometheus User Guide</i>.</p> </note>
48
31
  * @example
49
32
  * Use a bare-bones client and the command you need to make an API call.
50
33
  * ```javascript
@@ -121,8 +104,7 @@ declare const CreateScraperCommand_base: {
121
104
  * <p>The request was denied due to request throttling.</p>
122
105
  *
123
106
  * @throws {@link ValidationException} (client fault)
124
- * <p>The input fails to satisfy the constraints specified by an Amazon Web Services
125
- * service.</p>
107
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
126
108
  *
127
109
  * @throws {@link AmpServiceException}
128
110
  * <p>Base exception class for all service exceptions from Amp service.</p>
@@ -27,9 +27,7 @@ declare const CreateWorkspaceCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Creates a Prometheus workspace. A workspace is a logical space dedicated to the
31
- * storage and querying of Prometheus metrics. You can have one or more workspaces in each
32
- * Region in your account.</p>
30
+ * <p>Creates a Prometheus workspace. A workspace is a logical space dedicated to the storage and querying of Prometheus metrics. You can have one or more workspaces in each Region in your account.</p>
33
31
  * @example
34
32
  * Use a bare-bones client and the command you need to make an API call.
35
33
  * ```javascript
@@ -82,8 +80,7 @@ declare const CreateWorkspaceCommand_base: {
82
80
  * <p>The request was denied due to request throttling.</p>
83
81
  *
84
82
  * @throws {@link ValidationException} (client fault)
85
- * <p>The input fails to satisfy the constraints specified by an Amazon Web Services
86
- * service.</p>
83
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
87
84
  *
88
85
  * @throws {@link AmpServiceException}
89
86
  * <p>Base exception class for all service exceptions from Amp service.</p>
@@ -66,8 +66,7 @@ declare const DeleteAlertManagerDefinitionCommand_base: {
66
66
  * <p>The request was denied due to request throttling.</p>
67
67
  *
68
68
  * @throws {@link ValidationException} (client fault)
69
- * <p>The input fails to satisfy the constraints specified by an Amazon Web Services
70
- * service.</p>
69
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
71
70
  *
72
71
  * @throws {@link AmpServiceException}
73
72
  * <p>Base exception class for all service exceptions from Amp service.</p>
@@ -27,7 +27,7 @@ declare const DeleteLoggingConfigurationCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Deletes the logging configuration for a workspace.</p>
30
+ * <p>Deletes the rules and alerting logging configuration for a workspace.</p> <note> <p>These logging configurations are only for rules and alerting logs.</p> </note>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -63,8 +63,7 @@ declare const DeleteLoggingConfigurationCommand_base: {
63
63
  * <p>The request references a resources that doesn't exist.</p>
64
64
  *
65
65
  * @throws {@link ValidationException} (client fault)
66
- * <p>The input fails to satisfy the constraints specified by an Amazon Web Services
67
- * service.</p>
66
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
68
67
  *
69
68
  * @throws {@link AmpServiceException}
70
69
  * <p>Base exception class for all service exceptions from Amp service.</p>