@aws-sdk/client-internetmonitor 3.450.0 → 3.454.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.
- package/README.md +32 -0
- package/dist-cjs/InternetMonitor.js +8 -0
- package/dist-cjs/commands/GetQueryResultsCommand.js +51 -0
- package/dist-cjs/commands/GetQueryStatusCommand.js +51 -0
- package/dist-cjs/commands/StartQueryCommand.js +51 -0
- package/dist-cjs/commands/StopQueryCommand.js +51 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +17 -1
- package/dist-cjs/pagination/GetQueryResultsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +270 -1
- package/dist-es/InternetMonitor.js +8 -0
- package/dist-es/commands/GetQueryResultsCommand.js +47 -0
- package/dist-es/commands/GetQueryStatusCommand.js +47 -0
- package/dist-es/commands/StartQueryCommand.js +47 -0
- package/dist-es/commands/StopQueryCommand.js +47 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +16 -0
- package/dist-es/pagination/GetQueryResultsPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +261 -0
- package/dist-types/InternetMonitor.d.ts +28 -0
- package/dist-types/InternetMonitorClient.d.ts +6 -2
- package/dist-types/commands/GetQueryResultsCommand.d.ts +106 -0
- package/dist-types/commands/GetQueryStatusCommand.d.ts +112 -0
- package/dist-types/commands/StartQueryCommand.d.ts +105 -0
- package/dist-types/commands/StopQueryCommand.d.ts +87 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +255 -3
- package/dist-types/pagination/GetQueryResultsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
- package/dist-types/ts3.4/InternetMonitor.d.ts +68 -0
- package/dist-types/ts3.4/InternetMonitorClient.d.ts +24 -0
- package/dist-types/ts3.4/commands/GetQueryResultsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetQueryStatusCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/StartQueryCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/StopQueryCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +61 -0
- package/dist-types/ts3.4/pagination/GetQueryResultsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
- package/package.json +35 -35
package/README.md
CHANGED
|
@@ -249,6 +249,22 @@ GetMonitor
|
|
|
249
249
|
|
|
250
250
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-internetmonitor/classes/getmonitorcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-internetmonitor/interfaces/getmonitorcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-internetmonitor/interfaces/getmonitorcommandoutput.html)
|
|
251
251
|
|
|
252
|
+
</details>
|
|
253
|
+
<details>
|
|
254
|
+
<summary>
|
|
255
|
+
GetQueryResults
|
|
256
|
+
</summary>
|
|
257
|
+
|
|
258
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-internetmonitor/classes/getqueryresultscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-internetmonitor/interfaces/getqueryresultscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-internetmonitor/interfaces/getqueryresultscommandoutput.html)
|
|
259
|
+
|
|
260
|
+
</details>
|
|
261
|
+
<details>
|
|
262
|
+
<summary>
|
|
263
|
+
GetQueryStatus
|
|
264
|
+
</summary>
|
|
265
|
+
|
|
266
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-internetmonitor/classes/getquerystatuscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-internetmonitor/interfaces/getquerystatuscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-internetmonitor/interfaces/getquerystatuscommandoutput.html)
|
|
267
|
+
|
|
252
268
|
</details>
|
|
253
269
|
<details>
|
|
254
270
|
<summary>
|
|
@@ -273,6 +289,22 @@ ListTagsForResource
|
|
|
273
289
|
|
|
274
290
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-internetmonitor/classes/listtagsforresourcecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-internetmonitor/interfaces/listtagsforresourcecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-internetmonitor/interfaces/listtagsforresourcecommandoutput.html)
|
|
275
291
|
|
|
292
|
+
</details>
|
|
293
|
+
<details>
|
|
294
|
+
<summary>
|
|
295
|
+
StartQuery
|
|
296
|
+
</summary>
|
|
297
|
+
|
|
298
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-internetmonitor/classes/startquerycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-internetmonitor/interfaces/startquerycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-internetmonitor/interfaces/startquerycommandoutput.html)
|
|
299
|
+
|
|
300
|
+
</details>
|
|
301
|
+
<details>
|
|
302
|
+
<summary>
|
|
303
|
+
StopQuery
|
|
304
|
+
</summary>
|
|
305
|
+
|
|
306
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-internetmonitor/classes/stopquerycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-internetmonitor/interfaces/stopquerycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-internetmonitor/interfaces/stopquerycommandoutput.html)
|
|
307
|
+
|
|
276
308
|
</details>
|
|
277
309
|
<details>
|
|
278
310
|
<summary>
|
|
@@ -6,9 +6,13 @@ const CreateMonitorCommand_1 = require("./commands/CreateMonitorCommand");
|
|
|
6
6
|
const DeleteMonitorCommand_1 = require("./commands/DeleteMonitorCommand");
|
|
7
7
|
const GetHealthEventCommand_1 = require("./commands/GetHealthEventCommand");
|
|
8
8
|
const GetMonitorCommand_1 = require("./commands/GetMonitorCommand");
|
|
9
|
+
const GetQueryResultsCommand_1 = require("./commands/GetQueryResultsCommand");
|
|
10
|
+
const GetQueryStatusCommand_1 = require("./commands/GetQueryStatusCommand");
|
|
9
11
|
const ListHealthEventsCommand_1 = require("./commands/ListHealthEventsCommand");
|
|
10
12
|
const ListMonitorsCommand_1 = require("./commands/ListMonitorsCommand");
|
|
11
13
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
14
|
+
const StartQueryCommand_1 = require("./commands/StartQueryCommand");
|
|
15
|
+
const StopQueryCommand_1 = require("./commands/StopQueryCommand");
|
|
12
16
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
13
17
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
14
18
|
const UpdateMonitorCommand_1 = require("./commands/UpdateMonitorCommand");
|
|
@@ -18,9 +22,13 @@ const commands = {
|
|
|
18
22
|
DeleteMonitorCommand: DeleteMonitorCommand_1.DeleteMonitorCommand,
|
|
19
23
|
GetHealthEventCommand: GetHealthEventCommand_1.GetHealthEventCommand,
|
|
20
24
|
GetMonitorCommand: GetMonitorCommand_1.GetMonitorCommand,
|
|
25
|
+
GetQueryResultsCommand: GetQueryResultsCommand_1.GetQueryResultsCommand,
|
|
26
|
+
GetQueryStatusCommand: GetQueryStatusCommand_1.GetQueryStatusCommand,
|
|
21
27
|
ListHealthEventsCommand: ListHealthEventsCommand_1.ListHealthEventsCommand,
|
|
22
28
|
ListMonitorsCommand: ListMonitorsCommand_1.ListMonitorsCommand,
|
|
23
29
|
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
30
|
+
StartQueryCommand: StartQueryCommand_1.StartQueryCommand,
|
|
31
|
+
StopQueryCommand: StopQueryCommand_1.StopQueryCommand,
|
|
24
32
|
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
25
33
|
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
26
34
|
UpdateMonitorCommand: UpdateMonitorCommand_1.UpdateMonitorCommand,
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetQueryResultsCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class GetQueryResultsCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetQueryResultsCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "InternetMonitorClient";
|
|
29
|
+
const commandName = "GetQueryResultsCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "InternetMonitor20210603",
|
|
38
|
+
operation: "GetQueryResults",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_restJson1_1.se_GetQueryResultsCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_restJson1_1.de_GetQueryResultsCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.GetQueryResultsCommand = GetQueryResultsCommand;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetQueryStatusCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class GetQueryStatusCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetQueryStatusCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "InternetMonitorClient";
|
|
29
|
+
const commandName = "GetQueryStatusCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "InternetMonitor20210603",
|
|
38
|
+
operation: "GetQueryStatus",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_restJson1_1.se_GetQueryStatusCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_restJson1_1.de_GetQueryStatusCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.GetQueryStatusCommand = GetQueryStatusCommand;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StartQueryCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class StartQueryCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StartQueryCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "InternetMonitorClient";
|
|
29
|
+
const commandName = "StartQueryCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "InternetMonitor20210603",
|
|
38
|
+
operation: "StartQuery",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_restJson1_1.se_StartQueryCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_restJson1_1.de_StartQueryCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.StartQueryCommand = StartQueryCommand;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StopQueryCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class StopQueryCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StopQueryCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "InternetMonitorClient";
|
|
29
|
+
const commandName = "StopQueryCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "InternetMonitor20210603",
|
|
38
|
+
operation: "StopQuery",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_restJson1_1.se_StopQueryCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_restJson1_1.de_StopQueryCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.StopQueryCommand = StopQueryCommand;
|
|
@@ -5,9 +5,13 @@ tslib_1.__exportStar(require("./CreateMonitorCommand"), exports);
|
|
|
5
5
|
tslib_1.__exportStar(require("./DeleteMonitorCommand"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./GetHealthEventCommand"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./GetMonitorCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./GetQueryResultsCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./GetQueryStatusCommand"), exports);
|
|
8
10
|
tslib_1.__exportStar(require("./ListHealthEventsCommand"), exports);
|
|
9
11
|
tslib_1.__exportStar(require("./ListMonitorsCommand"), exports);
|
|
10
12
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./StartQueryCommand"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./StopQueryCommand"), exports);
|
|
11
15
|
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
12
16
|
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
13
17
|
tslib_1.__exportStar(require("./UpdateMonitorCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ResourceNotFoundException = exports.TooManyRequestsException = exports.NotFoundException = exports.InternalServerErrorException = exports.MonitorProcessingStatusCode = exports.HealthEventImpactType = exports.HealthEventStatus = exports.TriangulationEventType = exports.ValidationException = exports.ThrottlingException = exports.LimitExceededException = exports.InternalServerException = exports.MonitorConfigState = exports.LogDeliveryStatus = exports.LocalHealthEventsConfigStatus = exports.ConflictException = exports.BadRequestException = exports.AccessDeniedException = void 0;
|
|
3
|
+
exports.ResourceNotFoundException = exports.QueryType = exports.TooManyRequestsException = exports.NotFoundException = exports.InternalServerErrorException = exports.QueryStatus = exports.MonitorProcessingStatusCode = exports.HealthEventImpactType = exports.HealthEventStatus = exports.TriangulationEventType = exports.Operator = exports.ValidationException = exports.ThrottlingException = exports.LimitExceededException = exports.InternalServerException = exports.MonitorConfigState = exports.LogDeliveryStatus = exports.LocalHealthEventsConfigStatus = exports.ConflictException = exports.BadRequestException = exports.AccessDeniedException = void 0;
|
|
4
4
|
const InternetMonitorServiceException_1 = require("./InternetMonitorServiceException");
|
|
5
5
|
class AccessDeniedException extends InternetMonitorServiceException_1.InternetMonitorServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -111,6 +111,10 @@ class ValidationException extends InternetMonitorServiceException_1.InternetMoni
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
exports.ValidationException = ValidationException;
|
|
114
|
+
exports.Operator = {
|
|
115
|
+
EQUALS: "EQUALS",
|
|
116
|
+
NOT_EQUALS: "NOT_EQUALS",
|
|
117
|
+
};
|
|
114
118
|
exports.TriangulationEventType = {
|
|
115
119
|
AWS: "AWS",
|
|
116
120
|
INTERNET: "Internet",
|
|
@@ -133,6 +137,13 @@ exports.MonitorProcessingStatusCode = {
|
|
|
133
137
|
INSUFFICIENT_DATA: "INSUFFICIENT_DATA",
|
|
134
138
|
OK: "OK",
|
|
135
139
|
};
|
|
140
|
+
exports.QueryStatus = {
|
|
141
|
+
CANCELED: "CANCELED",
|
|
142
|
+
FAILED: "FAILED",
|
|
143
|
+
QUEUED: "QUEUED",
|
|
144
|
+
RUNNING: "RUNNING",
|
|
145
|
+
SUCCEEDED: "SUCCEEDED",
|
|
146
|
+
};
|
|
136
147
|
class InternalServerErrorException extends InternetMonitorServiceException_1.InternetMonitorServiceException {
|
|
137
148
|
constructor(opts) {
|
|
138
149
|
super({
|
|
@@ -176,6 +187,11 @@ class TooManyRequestsException extends InternetMonitorServiceException_1.Interne
|
|
|
176
187
|
}
|
|
177
188
|
}
|
|
178
189
|
exports.TooManyRequestsException = TooManyRequestsException;
|
|
190
|
+
exports.QueryType = {
|
|
191
|
+
MEASUREMENTS: "MEASUREMENTS",
|
|
192
|
+
TOP_LOCATIONS: "TOP_LOCATIONS",
|
|
193
|
+
TOP_LOCATION_DETAILS: "TOP_LOCATION_DETAILS",
|
|
194
|
+
};
|
|
179
195
|
class ResourceNotFoundException extends InternetMonitorServiceException_1.InternetMonitorServiceException {
|
|
180
196
|
constructor(opts) {
|
|
181
197
|
super({
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateGetQueryResults = void 0;
|
|
4
|
+
const GetQueryResultsCommand_1 = require("../commands/GetQueryResultsCommand");
|
|
5
|
+
const InternetMonitorClient_1 = require("../InternetMonitorClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new GetQueryResultsCommand_1.GetQueryResultsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateGetQueryResults(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.NextToken = token;
|
|
15
|
+
input["MaxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof InternetMonitorClient_1.InternetMonitorClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected InternetMonitor | InternetMonitorClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.NextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateGetQueryResults = paginateGetQueryResults;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./GetQueryResultsPaginator"), exports);
|
|
4
5
|
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./ListHealthEventsPaginator"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./ListMonitorsPaginator"), exports);
|