@aws-sdk/client-internetmonitor 3.556.0 → 3.559.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 (31) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/index.js +149 -0
  3. package/dist-es/InternetMonitor.js +4 -0
  4. package/dist-es/commands/GetInternetEventCommand.js +24 -0
  5. package/dist-es/commands/ListInternetEventsCommand.js +24 -0
  6. package/dist-es/commands/index.js +2 -0
  7. package/dist-es/models/models_0.js +8 -0
  8. package/dist-es/pagination/ListInternetEventsPaginator.js +4 -0
  9. package/dist-es/pagination/index.js +1 -0
  10. package/dist-es/protocols/Aws_restJson1.js +93 -0
  11. package/dist-types/InternetMonitor.d.ts +15 -0
  12. package/dist-types/InternetMonitorClient.d.ts +4 -2
  13. package/dist-types/commands/GetHealthEventCommand.d.ts +1 -1
  14. package/dist-types/commands/GetInternetEventCommand.d.ts +91 -0
  15. package/dist-types/commands/ListHealthEventsCommand.d.ts +1 -1
  16. package/dist-types/commands/ListInternetEventsCommand.d.ts +103 -0
  17. package/dist-types/commands/index.d.ts +2 -0
  18. package/dist-types/models/models_0.d.ts +245 -10
  19. package/dist-types/pagination/ListInternetEventsPaginator.d.ts +7 -0
  20. package/dist-types/pagination/index.d.ts +1 -0
  21. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  22. package/dist-types/ts3.4/InternetMonitor.d.ts +35 -0
  23. package/dist-types/ts3.4/InternetMonitorClient.d.ts +12 -0
  24. package/dist-types/ts3.4/commands/GetInternetEventCommand.d.ts +38 -0
  25. package/dist-types/ts3.4/commands/ListInternetEventsCommand.d.ts +39 -0
  26. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  27. package/dist-types/ts3.4/models/models_0.d.ts +55 -0
  28. package/dist-types/ts3.4/pagination/ListInternetEventsPaginator.d.ts +11 -0
  29. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  30. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  31. package/package.json +1 -1
@@ -11,6 +11,10 @@ import {
11
11
  GetHealthEventCommandInput,
12
12
  GetHealthEventCommandOutput,
13
13
  } from "./commands/GetHealthEventCommand";
14
+ import {
15
+ GetInternetEventCommandInput,
16
+ GetInternetEventCommandOutput,
17
+ } from "./commands/GetInternetEventCommand";
14
18
  import {
15
19
  GetMonitorCommandInput,
16
20
  GetMonitorCommandOutput,
@@ -27,6 +31,10 @@ import {
27
31
  ListHealthEventsCommandInput,
28
32
  ListHealthEventsCommandOutput,
29
33
  } from "./commands/ListHealthEventsCommand";
34
+ import {
35
+ ListInternetEventsCommandInput,
36
+ ListInternetEventsCommandOutput,
37
+ } from "./commands/ListInternetEventsCommand";
30
38
  import {
31
39
  ListMonitorsCommandInput,
32
40
  ListMonitorsCommandOutput,
@@ -96,6 +104,19 @@ export interface InternetMonitor {
96
104
  options: __HttpHandlerOptions,
97
105
  cb: (err: any, data?: GetHealthEventCommandOutput) => void
98
106
  ): void;
107
+ getInternetEvent(
108
+ args: GetInternetEventCommandInput,
109
+ options?: __HttpHandlerOptions
110
+ ): Promise<GetInternetEventCommandOutput>;
111
+ getInternetEvent(
112
+ args: GetInternetEventCommandInput,
113
+ cb: (err: any, data?: GetInternetEventCommandOutput) => void
114
+ ): void;
115
+ getInternetEvent(
116
+ args: GetInternetEventCommandInput,
117
+ options: __HttpHandlerOptions,
118
+ cb: (err: any, data?: GetInternetEventCommandOutput) => void
119
+ ): void;
99
120
  getMonitor(
100
121
  args: GetMonitorCommandInput,
101
122
  options?: __HttpHandlerOptions
@@ -148,6 +169,20 @@ export interface InternetMonitor {
148
169
  options: __HttpHandlerOptions,
149
170
  cb: (err: any, data?: ListHealthEventsCommandOutput) => void
150
171
  ): void;
172
+ listInternetEvents(): Promise<ListInternetEventsCommandOutput>;
173
+ listInternetEvents(
174
+ args: ListInternetEventsCommandInput,
175
+ options?: __HttpHandlerOptions
176
+ ): Promise<ListInternetEventsCommandOutput>;
177
+ listInternetEvents(
178
+ args: ListInternetEventsCommandInput,
179
+ cb: (err: any, data?: ListInternetEventsCommandOutput) => void
180
+ ): void;
181
+ listInternetEvents(
182
+ args: ListInternetEventsCommandInput,
183
+ options: __HttpHandlerOptions,
184
+ cb: (err: any, data?: ListInternetEventsCommandOutput) => void
185
+ ): void;
151
186
  listMonitors(): Promise<ListMonitorsCommandOutput>;
152
187
  listMonitors(
153
188
  args: ListMonitorsCommandInput,
@@ -57,6 +57,10 @@ import {
57
57
  GetHealthEventCommandInput,
58
58
  GetHealthEventCommandOutput,
59
59
  } from "./commands/GetHealthEventCommand";
60
+ import {
61
+ GetInternetEventCommandInput,
62
+ GetInternetEventCommandOutput,
63
+ } from "./commands/GetInternetEventCommand";
60
64
  import {
61
65
  GetMonitorCommandInput,
62
66
  GetMonitorCommandOutput,
@@ -73,6 +77,10 @@ import {
73
77
  ListHealthEventsCommandInput,
74
78
  ListHealthEventsCommandOutput,
75
79
  } from "./commands/ListHealthEventsCommand";
80
+ import {
81
+ ListInternetEventsCommandInput,
82
+ ListInternetEventsCommandOutput,
83
+ } from "./commands/ListInternetEventsCommand";
76
84
  import {
77
85
  ListMonitorsCommandInput,
78
86
  ListMonitorsCommandOutput,
@@ -112,10 +120,12 @@ export type ServiceInputTypes =
112
120
  | CreateMonitorCommandInput
113
121
  | DeleteMonitorCommandInput
114
122
  | GetHealthEventCommandInput
123
+ | GetInternetEventCommandInput
115
124
  | GetMonitorCommandInput
116
125
  | GetQueryResultsCommandInput
117
126
  | GetQueryStatusCommandInput
118
127
  | ListHealthEventsCommandInput
128
+ | ListInternetEventsCommandInput
119
129
  | ListMonitorsCommandInput
120
130
  | ListTagsForResourceCommandInput
121
131
  | StartQueryCommandInput
@@ -127,10 +137,12 @@ export type ServiceOutputTypes =
127
137
  | CreateMonitorCommandOutput
128
138
  | DeleteMonitorCommandOutput
129
139
  | GetHealthEventCommandOutput
140
+ | GetInternetEventCommandOutput
130
141
  | GetMonitorCommandOutput
131
142
  | GetQueryResultsCommandOutput
132
143
  | GetQueryStatusCommandOutput
133
144
  | ListHealthEventsCommandOutput
145
+ | ListInternetEventsCommandOutput
134
146
  | ListMonitorsCommandOutput
135
147
  | ListTagsForResourceCommandOutput
136
148
  | StartQueryCommandOutput
@@ -0,0 +1,38 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ InternetMonitorClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../InternetMonitorClient";
8
+ import {
9
+ GetInternetEventInput,
10
+ GetInternetEventOutput,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer, $Command };
13
+ export interface GetInternetEventCommandInput extends GetInternetEventInput {}
14
+ export interface GetInternetEventCommandOutput
15
+ extends GetInternetEventOutput,
16
+ __MetadataBearer {}
17
+ declare const GetInternetEventCommand_base: {
18
+ new (
19
+ input: GetInternetEventCommandInput
20
+ ): import("@smithy/smithy-client").CommandImpl<
21
+ GetInternetEventCommandInput,
22
+ GetInternetEventCommandOutput,
23
+ InternetMonitorClientResolvedConfig,
24
+ ServiceInputTypes,
25
+ ServiceOutputTypes
26
+ >;
27
+ new (
28
+ __0_0: GetInternetEventCommandInput
29
+ ): import("@smithy/smithy-client").CommandImpl<
30
+ GetInternetEventCommandInput,
31
+ GetInternetEventCommandOutput,
32
+ InternetMonitorClientResolvedConfig,
33
+ ServiceInputTypes,
34
+ ServiceOutputTypes
35
+ >;
36
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
37
+ };
38
+ export declare class GetInternetEventCommand extends GetInternetEventCommand_base {}
@@ -0,0 +1,39 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ InternetMonitorClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../InternetMonitorClient";
8
+ import {
9
+ ListInternetEventsInput,
10
+ ListInternetEventsOutput,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer, $Command };
13
+ export interface ListInternetEventsCommandInput
14
+ extends ListInternetEventsInput {}
15
+ export interface ListInternetEventsCommandOutput
16
+ extends ListInternetEventsOutput,
17
+ __MetadataBearer {}
18
+ declare const ListInternetEventsCommand_base: {
19
+ new (
20
+ input: ListInternetEventsCommandInput
21
+ ): import("@smithy/smithy-client").CommandImpl<
22
+ ListInternetEventsCommandInput,
23
+ ListInternetEventsCommandOutput,
24
+ InternetMonitorClientResolvedConfig,
25
+ ServiceInputTypes,
26
+ ServiceOutputTypes
27
+ >;
28
+ new (
29
+ ...[input]: [] | [ListInternetEventsCommandInput]
30
+ ): import("@smithy/smithy-client").CommandImpl<
31
+ ListInternetEventsCommandInput,
32
+ ListInternetEventsCommandOutput,
33
+ InternetMonitorClientResolvedConfig,
34
+ ServiceInputTypes,
35
+ ServiceOutputTypes
36
+ >;
37
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
38
+ };
39
+ export declare class ListInternetEventsCommand extends ListInternetEventsCommand_base {}
@@ -1,10 +1,12 @@
1
1
  export * from "./CreateMonitorCommand";
2
2
  export * from "./DeleteMonitorCommand";
3
3
  export * from "./GetHealthEventCommand";
4
+ export * from "./GetInternetEventCommand";
4
5
  export * from "./GetMonitorCommand";
5
6
  export * from "./GetQueryResultsCommand";
6
7
  export * from "./GetQueryStatusCommand";
7
8
  export * from "./ListHealthEventsCommand";
9
+ export * from "./ListInternetEventsCommand";
8
10
  export * from "./ListMonitorsCommand";
9
11
  export * from "./ListTagsForResourceCommand";
10
12
  export * from "./StartQueryCommand";
@@ -19,6 +19,16 @@ export declare class BadRequestException extends __BaseException {
19
19
  opts: __ExceptionOptionType<BadRequestException, __BaseException>
20
20
  );
21
21
  }
22
+ export interface ClientLocation {
23
+ ASName: string | undefined;
24
+ ASNumber: number | undefined;
25
+ Country: string | undefined;
26
+ Subdivision?: string;
27
+ Metro?: string;
28
+ City: string | undefined;
29
+ Latitude: number | undefined;
30
+ Longitude: number | undefined;
31
+ }
22
32
  export declare class ConflictException extends __BaseException {
23
33
  readonly name: "ConflictException";
24
34
  readonly $fault: "client";
@@ -202,6 +212,30 @@ export interface GetHealthEventOutput {
202
212
  ImpactType: HealthEventImpactType | undefined;
203
213
  HealthScoreThreshold?: number;
204
214
  }
215
+ export interface GetInternetEventInput {
216
+ EventId: string | undefined;
217
+ }
218
+ export declare const InternetEventStatus: {
219
+ readonly ACTIVE: "ACTIVE";
220
+ readonly RESOLVED: "RESOLVED";
221
+ };
222
+ export type InternetEventStatus =
223
+ (typeof InternetEventStatus)[keyof typeof InternetEventStatus];
224
+ export declare const InternetEventType: {
225
+ readonly AVAILABILITY: "AVAILABILITY";
226
+ readonly PERFORMANCE: "PERFORMANCE";
227
+ };
228
+ export type InternetEventType =
229
+ (typeof InternetEventType)[keyof typeof InternetEventType];
230
+ export interface GetInternetEventOutput {
231
+ EventId: string | undefined;
232
+ EventArn: string | undefined;
233
+ StartedAt: Date | undefined;
234
+ EndedAt?: Date;
235
+ ClientLocation: ClientLocation | undefined;
236
+ EventType: InternetEventType | undefined;
237
+ EventStatus: InternetEventStatus | undefined;
238
+ }
205
239
  export interface GetMonitorInput {
206
240
  MonitorName: string | undefined;
207
241
  LinkedAccountId?: string;
@@ -295,6 +329,27 @@ export declare class InternalServerErrorException extends __BaseException {
295
329
  opts: __ExceptionOptionType<InternalServerErrorException, __BaseException>
296
330
  );
297
331
  }
332
+ export interface ListInternetEventsInput {
333
+ NextToken?: string;
334
+ MaxResults?: number;
335
+ StartTime?: Date;
336
+ EndTime?: Date;
337
+ EventStatus?: string;
338
+ EventType?: string;
339
+ }
340
+ export interface InternetEventSummary {
341
+ EventId: string | undefined;
342
+ EventArn: string | undefined;
343
+ StartedAt: Date | undefined;
344
+ EndedAt?: Date;
345
+ ClientLocation: ClientLocation | undefined;
346
+ EventType: InternetEventType | undefined;
347
+ EventStatus: InternetEventStatus | undefined;
348
+ }
349
+ export interface ListInternetEventsOutput {
350
+ InternetEvents: InternetEventSummary[] | undefined;
351
+ NextToken?: string;
352
+ }
298
353
  export interface ListTagsForResourceInput {
299
354
  ResourceArn: string | undefined;
300
355
  }
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListInternetEventsCommandInput,
4
+ ListInternetEventsCommandOutput,
5
+ } from "../commands/ListInternetEventsCommand";
6
+ import { InternetMonitorPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListInternetEvents: (
8
+ config: InternetMonitorPaginationConfiguration,
9
+ input: ListInternetEventsCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListInternetEventsCommandOutput>;
@@ -1,4 +1,5 @@
1
1
  export * from "./GetQueryResultsPaginator";
2
2
  export * from "./Interfaces";
3
3
  export * from "./ListHealthEventsPaginator";
4
+ export * from "./ListInternetEventsPaginator";
4
5
  export * from "./ListMonitorsPaginator";
@@ -15,6 +15,10 @@ import {
15
15
  GetHealthEventCommandInput,
16
16
  GetHealthEventCommandOutput,
17
17
  } from "../commands/GetHealthEventCommand";
18
+ import {
19
+ GetInternetEventCommandInput,
20
+ GetInternetEventCommandOutput,
21
+ } from "../commands/GetInternetEventCommand";
18
22
  import {
19
23
  GetMonitorCommandInput,
20
24
  GetMonitorCommandOutput,
@@ -31,6 +35,10 @@ import {
31
35
  ListHealthEventsCommandInput,
32
36
  ListHealthEventsCommandOutput,
33
37
  } from "../commands/ListHealthEventsCommand";
38
+ import {
39
+ ListInternetEventsCommandInput,
40
+ ListInternetEventsCommandOutput,
41
+ } from "../commands/ListInternetEventsCommand";
34
42
  import {
35
43
  ListMonitorsCommandInput,
36
44
  ListMonitorsCommandOutput,
@@ -71,6 +79,10 @@ export declare const se_GetHealthEventCommand: (
71
79
  input: GetHealthEventCommandInput,
72
80
  context: __SerdeContext
73
81
  ) => Promise<__HttpRequest>;
82
+ export declare const se_GetInternetEventCommand: (
83
+ input: GetInternetEventCommandInput,
84
+ context: __SerdeContext
85
+ ) => Promise<__HttpRequest>;
74
86
  export declare const se_GetMonitorCommand: (
75
87
  input: GetMonitorCommandInput,
76
88
  context: __SerdeContext
@@ -87,6 +99,10 @@ export declare const se_ListHealthEventsCommand: (
87
99
  input: ListHealthEventsCommandInput,
88
100
  context: __SerdeContext
89
101
  ) => Promise<__HttpRequest>;
102
+ export declare const se_ListInternetEventsCommand: (
103
+ input: ListInternetEventsCommandInput,
104
+ context: __SerdeContext
105
+ ) => Promise<__HttpRequest>;
90
106
  export declare const se_ListMonitorsCommand: (
91
107
  input: ListMonitorsCommandInput,
92
108
  context: __SerdeContext
@@ -127,6 +143,10 @@ export declare const de_GetHealthEventCommand: (
127
143
  output: __HttpResponse,
128
144
  context: __SerdeContext
129
145
  ) => Promise<GetHealthEventCommandOutput>;
146
+ export declare const de_GetInternetEventCommand: (
147
+ output: __HttpResponse,
148
+ context: __SerdeContext
149
+ ) => Promise<GetInternetEventCommandOutput>;
130
150
  export declare const de_GetMonitorCommand: (
131
151
  output: __HttpResponse,
132
152
  context: __SerdeContext
@@ -143,6 +163,10 @@ export declare const de_ListHealthEventsCommand: (
143
163
  output: __HttpResponse,
144
164
  context: __SerdeContext
145
165
  ) => Promise<ListHealthEventsCommandOutput>;
166
+ export declare const de_ListInternetEventsCommand: (
167
+ output: __HttpResponse,
168
+ context: __SerdeContext
169
+ ) => Promise<ListInternetEventsCommandOutput>;
146
170
  export declare const de_ListMonitorsCommand: (
147
171
  output: __HttpResponse,
148
172
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-internetmonitor",
3
3
  "description": "AWS SDK for JavaScript Internetmonitor Client for Node.js, Browser and React Native",
4
- "version": "3.556.0",
4
+ "version": "3.559.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-internetmonitor",