@aws-sdk/client-internetmonitor 3.451.0 → 3.458.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 (44) hide show
  1. package/README.md +42 -10
  2. package/dist-cjs/InternetMonitor.js +8 -0
  3. package/dist-cjs/commands/GetQueryResultsCommand.js +51 -0
  4. package/dist-cjs/commands/GetQueryStatusCommand.js +51 -0
  5. package/dist-cjs/commands/StartQueryCommand.js +51 -0
  6. package/dist-cjs/commands/StopQueryCommand.js +51 -0
  7. package/dist-cjs/commands/index.js +4 -0
  8. package/dist-cjs/models/models_0.js +17 -1
  9. package/dist-cjs/pagination/GetQueryResultsPaginator.js +29 -0
  10. package/dist-cjs/pagination/index.js +1 -0
  11. package/dist-cjs/protocols/Aws_restJson1.js +270 -1
  12. package/dist-es/InternetMonitor.js +8 -0
  13. package/dist-es/commands/GetQueryResultsCommand.js +47 -0
  14. package/dist-es/commands/GetQueryStatusCommand.js +47 -0
  15. package/dist-es/commands/StartQueryCommand.js +47 -0
  16. package/dist-es/commands/StopQueryCommand.js +47 -0
  17. package/dist-es/commands/index.js +4 -0
  18. package/dist-es/models/models_0.js +16 -0
  19. package/dist-es/pagination/GetQueryResultsPaginator.js +25 -0
  20. package/dist-es/pagination/index.js +1 -0
  21. package/dist-es/protocols/Aws_restJson1.js +261 -0
  22. package/dist-types/InternetMonitor.d.ts +28 -0
  23. package/dist-types/InternetMonitorClient.d.ts +6 -2
  24. package/dist-types/commands/GetQueryResultsCommand.d.ts +106 -0
  25. package/dist-types/commands/GetQueryStatusCommand.d.ts +112 -0
  26. package/dist-types/commands/StartQueryCommand.d.ts +105 -0
  27. package/dist-types/commands/StopQueryCommand.d.ts +87 -0
  28. package/dist-types/commands/index.d.ts +4 -0
  29. package/dist-types/models/models_0.d.ts +255 -3
  30. package/dist-types/pagination/GetQueryResultsPaginator.d.ts +7 -0
  31. package/dist-types/pagination/index.d.ts +1 -0
  32. package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
  33. package/dist-types/ts3.4/InternetMonitor.d.ts +68 -0
  34. package/dist-types/ts3.4/InternetMonitorClient.d.ts +24 -0
  35. package/dist-types/ts3.4/commands/GetQueryResultsCommand.d.ts +38 -0
  36. package/dist-types/ts3.4/commands/GetQueryStatusCommand.d.ts +35 -0
  37. package/dist-types/ts3.4/commands/StartQueryCommand.d.ts +35 -0
  38. package/dist-types/ts3.4/commands/StopQueryCommand.d.ts +35 -0
  39. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  40. package/dist-types/ts3.4/models/models_0.d.ts +61 -0
  41. package/dist-types/ts3.4/pagination/GetQueryResultsPaginator.d.ts +11 -0
  42. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  43. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
  44. package/package.json +3 -3
@@ -80,6 +80,47 @@ export const se_GetMonitorCommand = async (input, context) => {
80
80
  body,
81
81
  });
82
82
  };
83
+ export const se_GetQueryResultsCommand = async (input, context) => {
84
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
85
+ const headers = {};
86
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
87
+ "/v20210603/Monitors/{MonitorName}/Queries/{QueryId}/Results";
88
+ resolvedPath = __resolvedPath(resolvedPath, input, "MonitorName", () => input.MonitorName, "{MonitorName}", false);
89
+ resolvedPath = __resolvedPath(resolvedPath, input, "QueryId", () => input.QueryId, "{QueryId}", false);
90
+ const query = map({
91
+ NextToken: [, input.NextToken],
92
+ MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
93
+ });
94
+ let body;
95
+ return new __HttpRequest({
96
+ protocol,
97
+ hostname,
98
+ port,
99
+ method: "GET",
100
+ headers,
101
+ path: resolvedPath,
102
+ query,
103
+ body,
104
+ });
105
+ };
106
+ export const se_GetQueryStatusCommand = async (input, context) => {
107
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
108
+ const headers = {};
109
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
110
+ "/v20210603/Monitors/{MonitorName}/Queries/{QueryId}/Status";
111
+ resolvedPath = __resolvedPath(resolvedPath, input, "MonitorName", () => input.MonitorName, "{MonitorName}", false);
112
+ resolvedPath = __resolvedPath(resolvedPath, input, "QueryId", () => input.QueryId, "{QueryId}", false);
113
+ let body;
114
+ return new __HttpRequest({
115
+ protocol,
116
+ hostname,
117
+ port,
118
+ method: "GET",
119
+ headers,
120
+ path: resolvedPath,
121
+ body,
122
+ });
123
+ };
83
124
  export const se_ListHealthEventsCommand = async (input, context) => {
84
125
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
85
126
  const headers = {};
@@ -145,6 +186,48 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
145
186
  body,
146
187
  });
147
188
  };
189
+ export const se_StartQueryCommand = async (input, context) => {
190
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
191
+ const headers = {
192
+ "content-type": "application/json",
193
+ };
194
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20210603/Monitors/{MonitorName}/Queries";
195
+ resolvedPath = __resolvedPath(resolvedPath, input, "MonitorName", () => input.MonitorName, "{MonitorName}", false);
196
+ let body;
197
+ body = JSON.stringify(take(input, {
198
+ EndTime: (_) => _.toISOString().split(".")[0] + "Z",
199
+ FilterParameters: (_) => _json(_),
200
+ QueryType: [],
201
+ StartTime: (_) => _.toISOString().split(".")[0] + "Z",
202
+ }));
203
+ return new __HttpRequest({
204
+ protocol,
205
+ hostname,
206
+ port,
207
+ method: "POST",
208
+ headers,
209
+ path: resolvedPath,
210
+ body,
211
+ });
212
+ };
213
+ export const se_StopQueryCommand = async (input, context) => {
214
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
215
+ const headers = {};
216
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
217
+ "/v20210603/Monitors/{MonitorName}/Queries/{QueryId}";
218
+ resolvedPath = __resolvedPath(resolvedPath, input, "MonitorName", () => input.MonitorName, "{MonitorName}", false);
219
+ resolvedPath = __resolvedPath(resolvedPath, input, "QueryId", () => input.QueryId, "{QueryId}", false);
220
+ let body;
221
+ return new __HttpRequest({
222
+ protocol,
223
+ hostname,
224
+ port,
225
+ method: "DELETE",
226
+ headers,
227
+ path: resolvedPath,
228
+ body,
229
+ });
230
+ };
148
231
  export const se_TagResourceCommand = async (input, context) => {
149
232
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
150
233
  const headers = {
@@ -410,6 +493,98 @@ const de_GetMonitorCommandError = async (output, context) => {
410
493
  });
411
494
  }
412
495
  };
496
+ export const de_GetQueryResultsCommand = async (output, context) => {
497
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
498
+ return de_GetQueryResultsCommandError(output, context);
499
+ }
500
+ const contents = map({
501
+ $metadata: deserializeMetadata(output),
502
+ });
503
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
504
+ const doc = take(data, {
505
+ Data: _json,
506
+ Fields: _json,
507
+ NextToken: __expectString,
508
+ });
509
+ Object.assign(contents, doc);
510
+ return contents;
511
+ };
512
+ const de_GetQueryResultsCommandError = async (output, context) => {
513
+ const parsedOutput = {
514
+ ...output,
515
+ body: await parseErrorBody(output.body, context),
516
+ };
517
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
518
+ switch (errorCode) {
519
+ case "AccessDeniedException":
520
+ case "com.amazonaws.internetmonitor#AccessDeniedException":
521
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
522
+ case "InternalServerException":
523
+ case "com.amazonaws.internetmonitor#InternalServerException":
524
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
525
+ case "LimitExceededException":
526
+ case "com.amazonaws.internetmonitor#LimitExceededException":
527
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
528
+ case "ThrottlingException":
529
+ case "com.amazonaws.internetmonitor#ThrottlingException":
530
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
531
+ case "ValidationException":
532
+ case "com.amazonaws.internetmonitor#ValidationException":
533
+ throw await de_ValidationExceptionRes(parsedOutput, context);
534
+ default:
535
+ const parsedBody = parsedOutput.body;
536
+ return throwDefaultError({
537
+ output,
538
+ parsedBody,
539
+ errorCode,
540
+ });
541
+ }
542
+ };
543
+ export const de_GetQueryStatusCommand = async (output, context) => {
544
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
545
+ return de_GetQueryStatusCommandError(output, context);
546
+ }
547
+ const contents = map({
548
+ $metadata: deserializeMetadata(output),
549
+ });
550
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
551
+ const doc = take(data, {
552
+ Status: __expectString,
553
+ });
554
+ Object.assign(contents, doc);
555
+ return contents;
556
+ };
557
+ const de_GetQueryStatusCommandError = async (output, context) => {
558
+ const parsedOutput = {
559
+ ...output,
560
+ body: await parseErrorBody(output.body, context),
561
+ };
562
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
563
+ switch (errorCode) {
564
+ case "AccessDeniedException":
565
+ case "com.amazonaws.internetmonitor#AccessDeniedException":
566
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
567
+ case "InternalServerException":
568
+ case "com.amazonaws.internetmonitor#InternalServerException":
569
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
570
+ case "LimitExceededException":
571
+ case "com.amazonaws.internetmonitor#LimitExceededException":
572
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
573
+ case "ThrottlingException":
574
+ case "com.amazonaws.internetmonitor#ThrottlingException":
575
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
576
+ case "ValidationException":
577
+ case "com.amazonaws.internetmonitor#ValidationException":
578
+ throw await de_ValidationExceptionRes(parsedOutput, context);
579
+ default:
580
+ const parsedBody = parsedOutput.body;
581
+ return throwDefaultError({
582
+ output,
583
+ parsedBody,
584
+ errorCode,
585
+ });
586
+ }
587
+ };
413
588
  export const de_ListHealthEventsCommand = async (output, context) => {
414
589
  if (output.statusCode !== 200 && output.statusCode >= 300) {
415
590
  return de_ListHealthEventsCommandError(output, context);
@@ -541,6 +716,92 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
541
716
  });
542
717
  }
543
718
  };
719
+ export const de_StartQueryCommand = async (output, context) => {
720
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
721
+ return de_StartQueryCommandError(output, context);
722
+ }
723
+ const contents = map({
724
+ $metadata: deserializeMetadata(output),
725
+ });
726
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
727
+ const doc = take(data, {
728
+ QueryId: __expectString,
729
+ });
730
+ Object.assign(contents, doc);
731
+ return contents;
732
+ };
733
+ const de_StartQueryCommandError = async (output, context) => {
734
+ const parsedOutput = {
735
+ ...output,
736
+ body: await parseErrorBody(output.body, context),
737
+ };
738
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
739
+ switch (errorCode) {
740
+ case "AccessDeniedException":
741
+ case "com.amazonaws.internetmonitor#AccessDeniedException":
742
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
743
+ case "InternalServerException":
744
+ case "com.amazonaws.internetmonitor#InternalServerException":
745
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
746
+ case "LimitExceededException":
747
+ case "com.amazonaws.internetmonitor#LimitExceededException":
748
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
749
+ case "ThrottlingException":
750
+ case "com.amazonaws.internetmonitor#ThrottlingException":
751
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
752
+ case "ValidationException":
753
+ case "com.amazonaws.internetmonitor#ValidationException":
754
+ throw await de_ValidationExceptionRes(parsedOutput, context);
755
+ default:
756
+ const parsedBody = parsedOutput.body;
757
+ return throwDefaultError({
758
+ output,
759
+ parsedBody,
760
+ errorCode,
761
+ });
762
+ }
763
+ };
764
+ export const de_StopQueryCommand = async (output, context) => {
765
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
766
+ return de_StopQueryCommandError(output, context);
767
+ }
768
+ const contents = map({
769
+ $metadata: deserializeMetadata(output),
770
+ });
771
+ await collectBody(output.body, context);
772
+ return contents;
773
+ };
774
+ const de_StopQueryCommandError = async (output, context) => {
775
+ const parsedOutput = {
776
+ ...output,
777
+ body: await parseErrorBody(output.body, context),
778
+ };
779
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
780
+ switch (errorCode) {
781
+ case "AccessDeniedException":
782
+ case "com.amazonaws.internetmonitor#AccessDeniedException":
783
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
784
+ case "InternalServerException":
785
+ case "com.amazonaws.internetmonitor#InternalServerException":
786
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
787
+ case "LimitExceededException":
788
+ case "com.amazonaws.internetmonitor#LimitExceededException":
789
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
790
+ case "ThrottlingException":
791
+ case "com.amazonaws.internetmonitor#ThrottlingException":
792
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
793
+ case "ValidationException":
794
+ case "com.amazonaws.internetmonitor#ValidationException":
795
+ throw await de_ValidationExceptionRes(parsedOutput, context);
796
+ default:
797
+ const parsedBody = parsedOutput.body;
798
+ return throwDefaultError({
799
+ output,
800
+ parsedBody,
801
+ errorCode,
802
+ });
803
+ }
804
+ };
544
805
  export const de_TagResourceCommand = async (output, context) => {
545
806
  if (output.statusCode !== 204 && output.statusCode >= 300) {
546
807
  return de_TagResourceCommandError(output, context);
@@ -3,9 +3,13 @@ import { CreateMonitorCommandInput, CreateMonitorCommandOutput } from "./command
3
3
  import { DeleteMonitorCommandInput, DeleteMonitorCommandOutput } from "./commands/DeleteMonitorCommand";
4
4
  import { GetHealthEventCommandInput, GetHealthEventCommandOutput } from "./commands/GetHealthEventCommand";
5
5
  import { GetMonitorCommandInput, GetMonitorCommandOutput } from "./commands/GetMonitorCommand";
6
+ import { GetQueryResultsCommandInput, GetQueryResultsCommandOutput } from "./commands/GetQueryResultsCommand";
7
+ import { GetQueryStatusCommandInput, GetQueryStatusCommandOutput } from "./commands/GetQueryStatusCommand";
6
8
  import { ListHealthEventsCommandInput, ListHealthEventsCommandOutput } from "./commands/ListHealthEventsCommand";
7
9
  import { ListMonitorsCommandInput, ListMonitorsCommandOutput } from "./commands/ListMonitorsCommand";
8
10
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
11
+ import { StartQueryCommandInput, StartQueryCommandOutput } from "./commands/StartQueryCommand";
12
+ import { StopQueryCommandInput, StopQueryCommandOutput } from "./commands/StopQueryCommand";
9
13
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
10
14
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
11
15
  import { UpdateMonitorCommandInput, UpdateMonitorCommandOutput } from "./commands/UpdateMonitorCommand";
@@ -35,6 +39,18 @@ export interface InternetMonitor {
35
39
  getMonitor(args: GetMonitorCommandInput, options?: __HttpHandlerOptions): Promise<GetMonitorCommandOutput>;
36
40
  getMonitor(args: GetMonitorCommandInput, cb: (err: any, data?: GetMonitorCommandOutput) => void): void;
37
41
  getMonitor(args: GetMonitorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMonitorCommandOutput) => void): void;
42
+ /**
43
+ * @see {@link GetQueryResultsCommand}
44
+ */
45
+ getQueryResults(args: GetQueryResultsCommandInput, options?: __HttpHandlerOptions): Promise<GetQueryResultsCommandOutput>;
46
+ getQueryResults(args: GetQueryResultsCommandInput, cb: (err: any, data?: GetQueryResultsCommandOutput) => void): void;
47
+ getQueryResults(args: GetQueryResultsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetQueryResultsCommandOutput) => void): void;
48
+ /**
49
+ * @see {@link GetQueryStatusCommand}
50
+ */
51
+ getQueryStatus(args: GetQueryStatusCommandInput, options?: __HttpHandlerOptions): Promise<GetQueryStatusCommandOutput>;
52
+ getQueryStatus(args: GetQueryStatusCommandInput, cb: (err: any, data?: GetQueryStatusCommandOutput) => void): void;
53
+ getQueryStatus(args: GetQueryStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetQueryStatusCommandOutput) => void): void;
38
54
  /**
39
55
  * @see {@link ListHealthEventsCommand}
40
56
  */
@@ -53,6 +69,18 @@ export interface InternetMonitor {
53
69
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
54
70
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
55
71
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
72
+ /**
73
+ * @see {@link StartQueryCommand}
74
+ */
75
+ startQuery(args: StartQueryCommandInput, options?: __HttpHandlerOptions): Promise<StartQueryCommandOutput>;
76
+ startQuery(args: StartQueryCommandInput, cb: (err: any, data?: StartQueryCommandOutput) => void): void;
77
+ startQuery(args: StartQueryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartQueryCommandOutput) => void): void;
78
+ /**
79
+ * @see {@link StopQueryCommand}
80
+ */
81
+ stopQuery(args: StopQueryCommandInput, options?: __HttpHandlerOptions): Promise<StopQueryCommandOutput>;
82
+ stopQuery(args: StopQueryCommandInput, cb: (err: any, data?: StopQueryCommandOutput) => void): void;
83
+ stopQuery(args: StopQueryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopQueryCommandOutput) => void): void;
56
84
  /**
57
85
  * @see {@link TagResourceCommand}
58
86
  */
@@ -12,9 +12,13 @@ import { CreateMonitorCommandInput, CreateMonitorCommandOutput } from "./command
12
12
  import { DeleteMonitorCommandInput, DeleteMonitorCommandOutput } from "./commands/DeleteMonitorCommand";
13
13
  import { GetHealthEventCommandInput, GetHealthEventCommandOutput } from "./commands/GetHealthEventCommand";
14
14
  import { GetMonitorCommandInput, GetMonitorCommandOutput } from "./commands/GetMonitorCommand";
15
+ import { GetQueryResultsCommandInput, GetQueryResultsCommandOutput } from "./commands/GetQueryResultsCommand";
16
+ import { GetQueryStatusCommandInput, GetQueryStatusCommandOutput } from "./commands/GetQueryStatusCommand";
15
17
  import { ListHealthEventsCommandInput, ListHealthEventsCommandOutput } from "./commands/ListHealthEventsCommand";
16
18
  import { ListMonitorsCommandInput, ListMonitorsCommandOutput } from "./commands/ListMonitorsCommand";
17
19
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
20
+ import { StartQueryCommandInput, StartQueryCommandOutput } from "./commands/StartQueryCommand";
21
+ import { StopQueryCommandInput, StopQueryCommandOutput } from "./commands/StopQueryCommand";
18
22
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
19
23
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
20
24
  import { UpdateMonitorCommandInput, UpdateMonitorCommandOutput } from "./commands/UpdateMonitorCommand";
@@ -24,11 +28,11 @@ export { __Client };
24
28
  /**
25
29
  * @public
26
30
  */
27
- export type ServiceInputTypes = CreateMonitorCommandInput | DeleteMonitorCommandInput | GetHealthEventCommandInput | GetMonitorCommandInput | ListHealthEventsCommandInput | ListMonitorsCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateMonitorCommandInput;
31
+ export type ServiceInputTypes = CreateMonitorCommandInput | DeleteMonitorCommandInput | GetHealthEventCommandInput | GetMonitorCommandInput | GetQueryResultsCommandInput | GetQueryStatusCommandInput | ListHealthEventsCommandInput | ListMonitorsCommandInput | ListTagsForResourceCommandInput | StartQueryCommandInput | StopQueryCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateMonitorCommandInput;
28
32
  /**
29
33
  * @public
30
34
  */
31
- export type ServiceOutputTypes = CreateMonitorCommandOutput | DeleteMonitorCommandOutput | GetHealthEventCommandOutput | GetMonitorCommandOutput | ListHealthEventsCommandOutput | ListMonitorsCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateMonitorCommandOutput;
35
+ export type ServiceOutputTypes = CreateMonitorCommandOutput | DeleteMonitorCommandOutput | GetHealthEventCommandOutput | GetMonitorCommandOutput | GetQueryResultsCommandOutput | GetQueryStatusCommandOutput | ListHealthEventsCommandOutput | ListMonitorsCommandOutput | ListTagsForResourceCommandOutput | StartQueryCommandOutput | StopQueryCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateMonitorCommandOutput;
32
36
  /**
33
37
  * @public
34
38
  */
@@ -0,0 +1,106 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { InternetMonitorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../InternetMonitorClient";
5
+ import { GetQueryResultsInput, GetQueryResultsOutput } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetQueryResultsCommand}.
14
+ */
15
+ export interface GetQueryResultsCommandInput extends GetQueryResultsInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetQueryResultsCommand}.
21
+ */
22
+ export interface GetQueryResultsCommandOutput extends GetQueryResultsOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Return the data for a query with the Amazon CloudWatch Internet Monitor query interface. Specify the query that you want to return results for by providing
27
+ * a <code>QueryId</code> and a monitor name.</p>
28
+ * <p>For more information about using the query interface, including examples, see
29
+ * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-IM-view-cw-tools-cwim-query.html">Using the Amazon CloudWatch Internet Monitor query interface</a>
30
+ * in the Amazon CloudWatch Internet Monitor User Guide.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { InternetMonitorClient, GetQueryResultsCommand } from "@aws-sdk/client-internetmonitor"; // ES Modules import
35
+ * // const { InternetMonitorClient, GetQueryResultsCommand } = require("@aws-sdk/client-internetmonitor"); // CommonJS import
36
+ * const client = new InternetMonitorClient(config);
37
+ * const input = { // GetQueryResultsInput
38
+ * MonitorName: "STRING_VALUE", // required
39
+ * QueryId: "STRING_VALUE", // required
40
+ * NextToken: "STRING_VALUE",
41
+ * MaxResults: Number("int"),
42
+ * };
43
+ * const command = new GetQueryResultsCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // GetQueryResultsOutput
46
+ * // Fields: [ // QueryFields // required
47
+ * // { // QueryField
48
+ * // Name: "STRING_VALUE",
49
+ * // Type: "STRING_VALUE",
50
+ * // },
51
+ * // ],
52
+ * // Data: [ // QueryData // required
53
+ * // [ // QueryRow
54
+ * // "STRING_VALUE",
55
+ * // ],
56
+ * // ],
57
+ * // NextToken: "STRING_VALUE",
58
+ * // };
59
+ *
60
+ * ```
61
+ *
62
+ * @param GetQueryResultsCommandInput - {@link GetQueryResultsCommandInput}
63
+ * @returns {@link GetQueryResultsCommandOutput}
64
+ * @see {@link GetQueryResultsCommandInput} for command's `input` shape.
65
+ * @see {@link GetQueryResultsCommandOutput} for command's `response` shape.
66
+ * @see {@link InternetMonitorClientResolvedConfig | config} for InternetMonitorClient's `config` shape.
67
+ *
68
+ * @throws {@link AccessDeniedException} (client fault)
69
+ * <p>You don't have sufficient permission to perform this action.</p>
70
+ *
71
+ * @throws {@link InternalServerException} (server fault)
72
+ * <p>An internal error occurred.</p>
73
+ *
74
+ * @throws {@link LimitExceededException} (client fault)
75
+ * <p>The request exceeded a service quota.</p>
76
+ *
77
+ * @throws {@link ThrottlingException} (client fault)
78
+ * <p>The request was denied due to request throttling.</p>
79
+ *
80
+ * @throws {@link ValidationException} (client fault)
81
+ * <p>Invalid request.</p>
82
+ *
83
+ * @throws {@link InternetMonitorServiceException}
84
+ * <p>Base exception class for all service exceptions from InternetMonitor service.</p>
85
+ *
86
+ */
87
+ export declare class GetQueryResultsCommand extends $Command<GetQueryResultsCommandInput, GetQueryResultsCommandOutput, InternetMonitorClientResolvedConfig> {
88
+ readonly input: GetQueryResultsCommandInput;
89
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
90
+ /**
91
+ * @public
92
+ */
93
+ constructor(input: GetQueryResultsCommandInput);
94
+ /**
95
+ * @internal
96
+ */
97
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: InternetMonitorClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetQueryResultsCommandInput, GetQueryResultsCommandOutput>;
98
+ /**
99
+ * @internal
100
+ */
101
+ private serialize;
102
+ /**
103
+ * @internal
104
+ */
105
+ private deserialize;
106
+ }
@@ -0,0 +1,112 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { InternetMonitorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../InternetMonitorClient";
5
+ import { GetQueryStatusInput, GetQueryStatusOutput } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetQueryStatusCommand}.
14
+ */
15
+ export interface GetQueryStatusCommandInput extends GetQueryStatusInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetQueryStatusCommand}.
21
+ */
22
+ export interface GetQueryStatusCommandOutput extends GetQueryStatusOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Returns the current status of a query for the Amazon CloudWatch Internet Monitor query interface, for a specified query ID and monitor.
27
+ * When you run a query, check the status to make sure that the query has <code>SUCCEEDED</code> before you review the results.</p>
28
+ * <ul>
29
+ * <li>
30
+ * <p>
31
+ * <code>QUEUED</code>: The query is scheduled to run.</p>
32
+ * </li>
33
+ * <li>
34
+ * <p>
35
+ * <code>RUNNING</code>: The query is in progress but not complete.</p>
36
+ * </li>
37
+ * <li>
38
+ * <p>
39
+ * <code>SUCCEEDED</code>: The query completed sucessfully.</p>
40
+ * </li>
41
+ * <li>
42
+ * <p>
43
+ * <code>FAILED</code>: The query failed due to an error.</p>
44
+ * </li>
45
+ * <li>
46
+ * <p>
47
+ * <code>CANCELED</code>: The query was canceled.</p>
48
+ * </li>
49
+ * </ul>
50
+ * @example
51
+ * Use a bare-bones client and the command you need to make an API call.
52
+ * ```javascript
53
+ * import { InternetMonitorClient, GetQueryStatusCommand } from "@aws-sdk/client-internetmonitor"; // ES Modules import
54
+ * // const { InternetMonitorClient, GetQueryStatusCommand } = require("@aws-sdk/client-internetmonitor"); // CommonJS import
55
+ * const client = new InternetMonitorClient(config);
56
+ * const input = { // GetQueryStatusInput
57
+ * MonitorName: "STRING_VALUE", // required
58
+ * QueryId: "STRING_VALUE", // required
59
+ * };
60
+ * const command = new GetQueryStatusCommand(input);
61
+ * const response = await client.send(command);
62
+ * // { // GetQueryStatusOutput
63
+ * // Status: "STRING_VALUE", // required
64
+ * // };
65
+ *
66
+ * ```
67
+ *
68
+ * @param GetQueryStatusCommandInput - {@link GetQueryStatusCommandInput}
69
+ * @returns {@link GetQueryStatusCommandOutput}
70
+ * @see {@link GetQueryStatusCommandInput} for command's `input` shape.
71
+ * @see {@link GetQueryStatusCommandOutput} for command's `response` shape.
72
+ * @see {@link InternetMonitorClientResolvedConfig | config} for InternetMonitorClient's `config` shape.
73
+ *
74
+ * @throws {@link AccessDeniedException} (client fault)
75
+ * <p>You don't have sufficient permission to perform this action.</p>
76
+ *
77
+ * @throws {@link InternalServerException} (server fault)
78
+ * <p>An internal error occurred.</p>
79
+ *
80
+ * @throws {@link LimitExceededException} (client fault)
81
+ * <p>The request exceeded a service quota.</p>
82
+ *
83
+ * @throws {@link ThrottlingException} (client fault)
84
+ * <p>The request was denied due to request throttling.</p>
85
+ *
86
+ * @throws {@link ValidationException} (client fault)
87
+ * <p>Invalid request.</p>
88
+ *
89
+ * @throws {@link InternetMonitorServiceException}
90
+ * <p>Base exception class for all service exceptions from InternetMonitor service.</p>
91
+ *
92
+ */
93
+ export declare class GetQueryStatusCommand extends $Command<GetQueryStatusCommandInput, GetQueryStatusCommandOutput, InternetMonitorClientResolvedConfig> {
94
+ readonly input: GetQueryStatusCommandInput;
95
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
96
+ /**
97
+ * @public
98
+ */
99
+ constructor(input: GetQueryStatusCommandInput);
100
+ /**
101
+ * @internal
102
+ */
103
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: InternetMonitorClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetQueryStatusCommandInput, GetQueryStatusCommandOutput>;
104
+ /**
105
+ * @internal
106
+ */
107
+ private serialize;
108
+ /**
109
+ * @internal
110
+ */
111
+ private deserialize;
112
+ }