@aws-sdk/client-networkmonitor 3.480.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 (131) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +309 -0
  3. package/dist-cjs/NetworkMonitor.js +35 -0
  4. package/dist-cjs/NetworkMonitorClient.js +43 -0
  5. package/dist-cjs/commands/CreateMonitorCommand.js +51 -0
  6. package/dist-cjs/commands/CreateProbeCommand.js +51 -0
  7. package/dist-cjs/commands/DeleteMonitorCommand.js +51 -0
  8. package/dist-cjs/commands/DeleteProbeCommand.js +51 -0
  9. package/dist-cjs/commands/GetMonitorCommand.js +51 -0
  10. package/dist-cjs/commands/GetProbeCommand.js +51 -0
  11. package/dist-cjs/commands/ListMonitorsCommand.js +51 -0
  12. package/dist-cjs/commands/ListTagsForResourceCommand.js +51 -0
  13. package/dist-cjs/commands/TagResourceCommand.js +51 -0
  14. package/dist-cjs/commands/UntagResourceCommand.js +51 -0
  15. package/dist-cjs/commands/UpdateMonitorCommand.js +51 -0
  16. package/dist-cjs/commands/UpdateProbeCommand.js +51 -0
  17. package/dist-cjs/commands/index.js +15 -0
  18. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  19. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  20. package/dist-cjs/endpoint/ruleset.js +7 -0
  21. package/dist-cjs/extensionConfiguration.js +2 -0
  22. package/dist-cjs/index.js +12 -0
  23. package/dist-cjs/models/NetworkMonitorServiceException.js +12 -0
  24. package/dist-cjs/models/index.js +4 -0
  25. package/dist-cjs/models/models_0.js +122 -0
  26. package/dist-cjs/pagination/Interfaces.js +2 -0
  27. package/dist-cjs/pagination/ListMonitorsPaginator.js +7 -0
  28. package/dist-cjs/pagination/index.js +5 -0
  29. package/dist-cjs/protocols/Aws_restJson1.js +957 -0
  30. package/dist-cjs/runtimeConfig.browser.js +39 -0
  31. package/dist-cjs/runtimeConfig.js +50 -0
  32. package/dist-cjs/runtimeConfig.native.js +15 -0
  33. package/dist-cjs/runtimeConfig.shared.js +24 -0
  34. package/dist-cjs/runtimeExtensions.js +22 -0
  35. package/dist-es/NetworkMonitor.js +31 -0
  36. package/dist-es/NetworkMonitorClient.js +39 -0
  37. package/dist-es/commands/CreateMonitorCommand.js +47 -0
  38. package/dist-es/commands/CreateProbeCommand.js +47 -0
  39. package/dist-es/commands/DeleteMonitorCommand.js +47 -0
  40. package/dist-es/commands/DeleteProbeCommand.js +47 -0
  41. package/dist-es/commands/GetMonitorCommand.js +47 -0
  42. package/dist-es/commands/GetProbeCommand.js +47 -0
  43. package/dist-es/commands/ListMonitorsCommand.js +47 -0
  44. package/dist-es/commands/ListTagsForResourceCommand.js +47 -0
  45. package/dist-es/commands/TagResourceCommand.js +47 -0
  46. package/dist-es/commands/UntagResourceCommand.js +47 -0
  47. package/dist-es/commands/UpdateMonitorCommand.js +47 -0
  48. package/dist-es/commands/UpdateProbeCommand.js +47 -0
  49. package/dist-es/commands/index.js +12 -0
  50. package/dist-es/endpoint/EndpointParameters.js +8 -0
  51. package/dist-es/endpoint/endpointResolver.js +8 -0
  52. package/dist-es/endpoint/ruleset.js +4 -0
  53. package/dist-es/extensionConfiguration.js +1 -0
  54. package/dist-es/index.js +7 -0
  55. package/dist-es/models/NetworkMonitorServiceException.js +8 -0
  56. package/dist-es/models/index.js +1 -0
  57. package/dist-es/models/models_0.js +112 -0
  58. package/dist-es/pagination/Interfaces.js +1 -0
  59. package/dist-es/pagination/ListMonitorsPaginator.js +4 -0
  60. package/dist-es/pagination/index.js +2 -0
  61. package/dist-es/protocols/Aws_restJson1.js +930 -0
  62. package/dist-es/runtimeConfig.browser.js +34 -0
  63. package/dist-es/runtimeConfig.js +45 -0
  64. package/dist-es/runtimeConfig.native.js +11 -0
  65. package/dist-es/runtimeConfig.shared.js +20 -0
  66. package/dist-es/runtimeExtensions.js +18 -0
  67. package/dist-types/NetworkMonitor.d.ts +102 -0
  68. package/dist-types/NetworkMonitorClient.d.ts +189 -0
  69. package/dist-types/commands/CreateMonitorCommand.d.ts +114 -0
  70. package/dist-types/commands/CreateProbeCommand.d.ts +119 -0
  71. package/dist-types/commands/DeleteMonitorCommand.d.ts +86 -0
  72. package/dist-types/commands/DeleteProbeCommand.d.ts +90 -0
  73. package/dist-types/commands/GetMonitorCommand.d.ts +115 -0
  74. package/dist-types/commands/GetProbeCommand.d.ts +103 -0
  75. package/dist-types/commands/ListMonitorsCommand.d.ts +98 -0
  76. package/dist-types/commands/ListTagsForResourceCommand.d.ts +93 -0
  77. package/dist-types/commands/TagResourceCommand.d.ts +92 -0
  78. package/dist-types/commands/UntagResourceCommand.d.ts +92 -0
  79. package/dist-types/commands/UpdateMonitorCommand.d.ts +98 -0
  80. package/dist-types/commands/UpdateProbeCommand.d.ts +111 -0
  81. package/dist-types/commands/index.d.ts +12 -0
  82. package/dist-types/endpoint/EndpointParameters.d.ts +22 -0
  83. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  84. package/dist-types/endpoint/ruleset.d.ts +2 -0
  85. package/dist-types/extensionConfiguration.d.ts +8 -0
  86. package/dist-types/index.d.ts +23 -0
  87. package/dist-types/models/NetworkMonitorServiceException.d.ts +13 -0
  88. package/dist-types/models/index.d.ts +1 -0
  89. package/dist-types/models/models_0.d.ts +902 -0
  90. package/dist-types/pagination/Interfaces.d.ts +8 -0
  91. package/dist-types/pagination/ListMonitorsPaginator.d.ts +7 -0
  92. package/dist-types/pagination/index.d.ts +2 -0
  93. package/dist-types/protocols/Aws_restJson1.d.ts +110 -0
  94. package/dist-types/runtimeConfig.browser.d.ts +46 -0
  95. package/dist-types/runtimeConfig.d.ts +46 -0
  96. package/dist-types/runtimeConfig.native.d.ts +45 -0
  97. package/dist-types/runtimeConfig.shared.d.ts +19 -0
  98. package/dist-types/runtimeExtensions.d.ts +17 -0
  99. package/dist-types/ts3.4/NetworkMonitor.d.ts +211 -0
  100. package/dist-types/ts3.4/NetworkMonitorClient.d.ts +191 -0
  101. package/dist-types/ts3.4/commands/CreateMonitorCommand.d.ts +35 -0
  102. package/dist-types/ts3.4/commands/CreateProbeCommand.d.ts +35 -0
  103. package/dist-types/ts3.4/commands/DeleteMonitorCommand.d.ts +35 -0
  104. package/dist-types/ts3.4/commands/DeleteProbeCommand.d.ts +35 -0
  105. package/dist-types/ts3.4/commands/GetMonitorCommand.d.ts +35 -0
  106. package/dist-types/ts3.4/commands/GetProbeCommand.d.ts +35 -0
  107. package/dist-types/ts3.4/commands/ListMonitorsCommand.d.ts +35 -0
  108. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
  109. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
  110. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +35 -0
  111. package/dist-types/ts3.4/commands/UpdateMonitorCommand.d.ts +35 -0
  112. package/dist-types/ts3.4/commands/UpdateProbeCommand.d.ts +35 -0
  113. package/dist-types/ts3.4/commands/index.d.ts +12 -0
  114. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -0
  115. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  116. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  117. package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
  118. package/dist-types/ts3.4/index.d.ts +10 -0
  119. package/dist-types/ts3.4/models/NetworkMonitorServiceException.d.ts +8 -0
  120. package/dist-types/ts3.4/models/index.d.ts +1 -0
  121. package/dist-types/ts3.4/models/models_0.d.ts +254 -0
  122. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  123. package/dist-types/ts3.4/pagination/ListMonitorsPaginator.d.ts +11 -0
  124. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  125. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +149 -0
  126. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
  127. package/dist-types/ts3.4/runtimeConfig.d.ts +97 -0
  128. package/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -0
  129. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -0
  130. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  131. package/package.json +103 -0
@@ -0,0 +1,119 @@
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 { CreateProbeInput, CreateProbeOutput } from "../models/models_0";
5
+ import { NetworkMonitorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkMonitorClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateProbeCommand}.
14
+ */
15
+ export interface CreateProbeCommandInput extends CreateProbeInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateProbeCommand}.
21
+ */
22
+ export interface CreateProbeCommandOutput extends CreateProbeOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Create a probe within a monitor. Once you create a probe, and it begins monitoring your network traffic, you'll incur billing charges for that probe. </p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { NetworkMonitorClient, CreateProbeCommand } from "@aws-sdk/client-networkmonitor"; // ES Modules import
31
+ * // const { NetworkMonitorClient, CreateProbeCommand } = require("@aws-sdk/client-networkmonitor"); // CommonJS import
32
+ * const client = new NetworkMonitorClient(config);
33
+ * const input = { // CreateProbeInput
34
+ * monitorName: "STRING_VALUE", // required
35
+ * probe: { // ProbeInput
36
+ * sourceArn: "STRING_VALUE", // required
37
+ * destination: "STRING_VALUE", // required
38
+ * destinationPort: Number("int"),
39
+ * protocol: "TCP" || "ICMP", // required
40
+ * packetSize: Number("int"),
41
+ * tags: { // TagMap
42
+ * "<keys>": "STRING_VALUE",
43
+ * },
44
+ * },
45
+ * clientToken: "STRING_VALUE",
46
+ * tags: {
47
+ * "<keys>": "STRING_VALUE",
48
+ * },
49
+ * };
50
+ * const command = new CreateProbeCommand(input);
51
+ * const response = await client.send(command);
52
+ * // { // CreateProbeOutput
53
+ * // probeId: "STRING_VALUE",
54
+ * // probeArn: "STRING_VALUE",
55
+ * // sourceArn: "STRING_VALUE", // required
56
+ * // destination: "STRING_VALUE", // required
57
+ * // destinationPort: Number("int"),
58
+ * // protocol: "TCP" || "ICMP", // required
59
+ * // packetSize: Number("int"),
60
+ * // addressFamily: "IPV4" || "IPV6",
61
+ * // vpcId: "STRING_VALUE",
62
+ * // state: "PENDING" || "ACTIVE" || "INACTIVE" || "ERROR" || "DELETING" || "DELETED",
63
+ * // createdAt: new Date("TIMESTAMP"),
64
+ * // modifiedAt: new Date("TIMESTAMP"),
65
+ * // tags: { // TagMap
66
+ * // "<keys>": "STRING_VALUE",
67
+ * // },
68
+ * // };
69
+ *
70
+ * ```
71
+ *
72
+ * @param CreateProbeCommandInput - {@link CreateProbeCommandInput}
73
+ * @returns {@link CreateProbeCommandOutput}
74
+ * @see {@link CreateProbeCommandInput} for command's `input` shape.
75
+ * @see {@link CreateProbeCommandOutput} for command's `response` shape.
76
+ * @see {@link NetworkMonitorClientResolvedConfig | config} for NetworkMonitorClient's `config` shape.
77
+ *
78
+ * @throws {@link AccessDeniedException} (client fault)
79
+ * <p>You do not have sufficient access to perform this action.</p>
80
+ *
81
+ * @throws {@link InternalServerException} (server fault)
82
+ * <p>The request processing has failed because of an unknown error, exception or failure.</p>
83
+ *
84
+ * @throws {@link ResourceNotFoundException} (client fault)
85
+ * <p>The specified resource does not exist.</p>
86
+ *
87
+ * @throws {@link ServiceQuotaExceededException} (client fault)
88
+ * <p>This request exceeds a service quota.</p>
89
+ *
90
+ * @throws {@link ThrottlingException} (client fault)
91
+ * <p>The request was denied due to request throttling</p>
92
+ *
93
+ * @throws {@link ValidationException} (client fault)
94
+ * <p>One of the parameters for the request is not valid.</p>
95
+ *
96
+ * @throws {@link NetworkMonitorServiceException}
97
+ * <p>Base exception class for all service exceptions from NetworkMonitor service.</p>
98
+ *
99
+ */
100
+ export declare class CreateProbeCommand extends $Command<CreateProbeCommandInput, CreateProbeCommandOutput, NetworkMonitorClientResolvedConfig> {
101
+ readonly input: CreateProbeCommandInput;
102
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
103
+ /**
104
+ * @public
105
+ */
106
+ constructor(input: CreateProbeCommandInput);
107
+ /**
108
+ * @internal
109
+ */
110
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: NetworkMonitorClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateProbeCommandInput, CreateProbeCommandOutput>;
111
+ /**
112
+ * @internal
113
+ */
114
+ private serialize;
115
+ /**
116
+ * @internal
117
+ */
118
+ private deserialize;
119
+ }
@@ -0,0 +1,86 @@
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 { DeleteMonitorInput, DeleteMonitorOutput } from "../models/models_0";
5
+ import { NetworkMonitorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkMonitorClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteMonitorCommand}.
14
+ */
15
+ export interface DeleteMonitorCommandInput extends DeleteMonitorInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteMonitorCommand}.
21
+ */
22
+ export interface DeleteMonitorCommandOutput extends DeleteMonitorOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Deletes a specified monitor.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { NetworkMonitorClient, DeleteMonitorCommand } from "@aws-sdk/client-networkmonitor"; // ES Modules import
31
+ * // const { NetworkMonitorClient, DeleteMonitorCommand } = require("@aws-sdk/client-networkmonitor"); // CommonJS import
32
+ * const client = new NetworkMonitorClient(config);
33
+ * const input = { // DeleteMonitorInput
34
+ * monitorName: "STRING_VALUE", // required
35
+ * };
36
+ * const command = new DeleteMonitorCommand(input);
37
+ * const response = await client.send(command);
38
+ * // {};
39
+ *
40
+ * ```
41
+ *
42
+ * @param DeleteMonitorCommandInput - {@link DeleteMonitorCommandInput}
43
+ * @returns {@link DeleteMonitorCommandOutput}
44
+ * @see {@link DeleteMonitorCommandInput} for command's `input` shape.
45
+ * @see {@link DeleteMonitorCommandOutput} for command's `response` shape.
46
+ * @see {@link NetworkMonitorClientResolvedConfig | config} for NetworkMonitorClient's `config` shape.
47
+ *
48
+ * @throws {@link AccessDeniedException} (client fault)
49
+ * <p>You do not have sufficient access to perform this action.</p>
50
+ *
51
+ * @throws {@link InternalServerException} (server fault)
52
+ * <p>The request processing has failed because of an unknown error, exception or failure.</p>
53
+ *
54
+ * @throws {@link ResourceNotFoundException} (client fault)
55
+ * <p>The specified resource does not exist.</p>
56
+ *
57
+ * @throws {@link ThrottlingException} (client fault)
58
+ * <p>The request was denied due to request throttling</p>
59
+ *
60
+ * @throws {@link ValidationException} (client fault)
61
+ * <p>One of the parameters for the request is not valid.</p>
62
+ *
63
+ * @throws {@link NetworkMonitorServiceException}
64
+ * <p>Base exception class for all service exceptions from NetworkMonitor service.</p>
65
+ *
66
+ */
67
+ export declare class DeleteMonitorCommand extends $Command<DeleteMonitorCommandInput, DeleteMonitorCommandOutput, NetworkMonitorClientResolvedConfig> {
68
+ readonly input: DeleteMonitorCommandInput;
69
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
70
+ /**
71
+ * @public
72
+ */
73
+ constructor(input: DeleteMonitorCommandInput);
74
+ /**
75
+ * @internal
76
+ */
77
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: NetworkMonitorClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteMonitorCommandInput, DeleteMonitorCommandOutput>;
78
+ /**
79
+ * @internal
80
+ */
81
+ private serialize;
82
+ /**
83
+ * @internal
84
+ */
85
+ private deserialize;
86
+ }
@@ -0,0 +1,90 @@
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 { DeleteProbeInput, DeleteProbeOutput } from "../models/models_0";
5
+ import { NetworkMonitorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkMonitorClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteProbeCommand}.
14
+ */
15
+ export interface DeleteProbeCommandInput extends DeleteProbeInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteProbeCommand}.
21
+ */
22
+ export interface DeleteProbeCommandOutput extends DeleteProbeOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Deletes the specified monitor. Once a probe is deleted you'll no longer incur any billing fees for that probe.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { NetworkMonitorClient, DeleteProbeCommand } from "@aws-sdk/client-networkmonitor"; // ES Modules import
31
+ * // const { NetworkMonitorClient, DeleteProbeCommand } = require("@aws-sdk/client-networkmonitor"); // CommonJS import
32
+ * const client = new NetworkMonitorClient(config);
33
+ * const input = { // DeleteProbeInput
34
+ * monitorName: "STRING_VALUE", // required
35
+ * probeId: "STRING_VALUE", // required
36
+ * };
37
+ * const command = new DeleteProbeCommand(input);
38
+ * const response = await client.send(command);
39
+ * // {};
40
+ *
41
+ * ```
42
+ *
43
+ * @param DeleteProbeCommandInput - {@link DeleteProbeCommandInput}
44
+ * @returns {@link DeleteProbeCommandOutput}
45
+ * @see {@link DeleteProbeCommandInput} for command's `input` shape.
46
+ * @see {@link DeleteProbeCommandOutput} for command's `response` shape.
47
+ * @see {@link NetworkMonitorClientResolvedConfig | config} for NetworkMonitorClient's `config` shape.
48
+ *
49
+ * @throws {@link AccessDeniedException} (client fault)
50
+ * <p>You do not have sufficient access to perform this action.</p>
51
+ *
52
+ * @throws {@link InternalServerException} (server fault)
53
+ * <p>The request processing has failed because of an unknown error, exception or failure.</p>
54
+ *
55
+ * @throws {@link ResourceNotFoundException} (client fault)
56
+ * <p>The specified resource does not exist.</p>
57
+ *
58
+ * @throws {@link ServiceQuotaExceededException} (client fault)
59
+ * <p>This request exceeds a service quota.</p>
60
+ *
61
+ * @throws {@link ThrottlingException} (client fault)
62
+ * <p>The request was denied due to request throttling</p>
63
+ *
64
+ * @throws {@link ValidationException} (client fault)
65
+ * <p>One of the parameters for the request is not valid.</p>
66
+ *
67
+ * @throws {@link NetworkMonitorServiceException}
68
+ * <p>Base exception class for all service exceptions from NetworkMonitor service.</p>
69
+ *
70
+ */
71
+ export declare class DeleteProbeCommand extends $Command<DeleteProbeCommandInput, DeleteProbeCommandOutput, NetworkMonitorClientResolvedConfig> {
72
+ readonly input: DeleteProbeCommandInput;
73
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
74
+ /**
75
+ * @public
76
+ */
77
+ constructor(input: DeleteProbeCommandInput);
78
+ /**
79
+ * @internal
80
+ */
81
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: NetworkMonitorClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteProbeCommandInput, DeleteProbeCommandOutput>;
82
+ /**
83
+ * @internal
84
+ */
85
+ private serialize;
86
+ /**
87
+ * @internal
88
+ */
89
+ private deserialize;
90
+ }
@@ -0,0 +1,115 @@
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 { GetMonitorInput, GetMonitorOutput } from "../models/models_0";
5
+ import { NetworkMonitorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkMonitorClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetMonitorCommand}.
14
+ */
15
+ export interface GetMonitorCommandInput extends GetMonitorInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetMonitorCommand}.
21
+ */
22
+ export interface GetMonitorCommandOutput extends GetMonitorOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Returns details about a specific monitor.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { NetworkMonitorClient, GetMonitorCommand } from "@aws-sdk/client-networkmonitor"; // ES Modules import
31
+ * // const { NetworkMonitorClient, GetMonitorCommand } = require("@aws-sdk/client-networkmonitor"); // CommonJS import
32
+ * const client = new NetworkMonitorClient(config);
33
+ * const input = { // GetMonitorInput
34
+ * monitorName: "STRING_VALUE", // required
35
+ * };
36
+ * const command = new GetMonitorCommand(input);
37
+ * const response = await client.send(command);
38
+ * // { // GetMonitorOutput
39
+ * // monitorArn: "STRING_VALUE", // required
40
+ * // monitorName: "STRING_VALUE", // required
41
+ * // state: "PENDING" || "ACTIVE" || "INACTIVE" || "ERROR" || "DELETING", // required
42
+ * // aggregationPeriod: Number("long"), // required
43
+ * // tags: { // TagMap
44
+ * // "<keys>": "STRING_VALUE",
45
+ * // },
46
+ * // probes: [ // ProbeList
47
+ * // { // Probe
48
+ * // probeId: "STRING_VALUE",
49
+ * // probeArn: "STRING_VALUE",
50
+ * // sourceArn: "STRING_VALUE", // required
51
+ * // destination: "STRING_VALUE", // required
52
+ * // destinationPort: Number("int"),
53
+ * // protocol: "TCP" || "ICMP", // required
54
+ * // packetSize: Number("int"),
55
+ * // addressFamily: "IPV4" || "IPV6",
56
+ * // vpcId: "STRING_VALUE",
57
+ * // state: "PENDING" || "ACTIVE" || "INACTIVE" || "ERROR" || "DELETING" || "DELETED",
58
+ * // createdAt: new Date("TIMESTAMP"),
59
+ * // modifiedAt: new Date("TIMESTAMP"),
60
+ * // tags: {
61
+ * // "<keys>": "STRING_VALUE",
62
+ * // },
63
+ * // },
64
+ * // ],
65
+ * // createdAt: new Date("TIMESTAMP"), // required
66
+ * // modifiedAt: new Date("TIMESTAMP"), // required
67
+ * // };
68
+ *
69
+ * ```
70
+ *
71
+ * @param GetMonitorCommandInput - {@link GetMonitorCommandInput}
72
+ * @returns {@link GetMonitorCommandOutput}
73
+ * @see {@link GetMonitorCommandInput} for command's `input` shape.
74
+ * @see {@link GetMonitorCommandOutput} for command's `response` shape.
75
+ * @see {@link NetworkMonitorClientResolvedConfig | config} for NetworkMonitorClient's `config` shape.
76
+ *
77
+ * @throws {@link AccessDeniedException} (client fault)
78
+ * <p>You do not have sufficient access to perform this action.</p>
79
+ *
80
+ * @throws {@link InternalServerException} (server fault)
81
+ * <p>The request processing has failed because of an unknown error, exception or failure.</p>
82
+ *
83
+ * @throws {@link ResourceNotFoundException} (client fault)
84
+ * <p>The specified resource does not exist.</p>
85
+ *
86
+ * @throws {@link ThrottlingException} (client fault)
87
+ * <p>The request was denied due to request throttling</p>
88
+ *
89
+ * @throws {@link ValidationException} (client fault)
90
+ * <p>One of the parameters for the request is not valid.</p>
91
+ *
92
+ * @throws {@link NetworkMonitorServiceException}
93
+ * <p>Base exception class for all service exceptions from NetworkMonitor service.</p>
94
+ *
95
+ */
96
+ export declare class GetMonitorCommand extends $Command<GetMonitorCommandInput, GetMonitorCommandOutput, NetworkMonitorClientResolvedConfig> {
97
+ readonly input: GetMonitorCommandInput;
98
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
99
+ /**
100
+ * @public
101
+ */
102
+ constructor(input: GetMonitorCommandInput);
103
+ /**
104
+ * @internal
105
+ */
106
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: NetworkMonitorClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetMonitorCommandInput, GetMonitorCommandOutput>;
107
+ /**
108
+ * @internal
109
+ */
110
+ private serialize;
111
+ /**
112
+ * @internal
113
+ */
114
+ private deserialize;
115
+ }
@@ -0,0 +1,103 @@
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 { GetProbeInput, GetProbeOutput } from "../models/models_0";
5
+ import { NetworkMonitorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkMonitorClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetProbeCommand}.
14
+ */
15
+ export interface GetProbeCommandInput extends GetProbeInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetProbeCommand}.
21
+ */
22
+ export interface GetProbeCommandOutput extends GetProbeOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Returns the details about a probe. You'll need both the <code>monitorName</code> and <code>probeId</code>. </p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { NetworkMonitorClient, GetProbeCommand } from "@aws-sdk/client-networkmonitor"; // ES Modules import
31
+ * // const { NetworkMonitorClient, GetProbeCommand } = require("@aws-sdk/client-networkmonitor"); // CommonJS import
32
+ * const client = new NetworkMonitorClient(config);
33
+ * const input = { // GetProbeInput
34
+ * monitorName: "STRING_VALUE", // required
35
+ * probeId: "STRING_VALUE", // required
36
+ * };
37
+ * const command = new GetProbeCommand(input);
38
+ * const response = await client.send(command);
39
+ * // { // GetProbeOutput
40
+ * // probeId: "STRING_VALUE",
41
+ * // probeArn: "STRING_VALUE",
42
+ * // sourceArn: "STRING_VALUE", // required
43
+ * // destination: "STRING_VALUE", // required
44
+ * // destinationPort: Number("int"),
45
+ * // protocol: "TCP" || "ICMP", // required
46
+ * // packetSize: Number("int"),
47
+ * // addressFamily: "IPV4" || "IPV6",
48
+ * // vpcId: "STRING_VALUE",
49
+ * // state: "PENDING" || "ACTIVE" || "INACTIVE" || "ERROR" || "DELETING" || "DELETED",
50
+ * // createdAt: new Date("TIMESTAMP"),
51
+ * // modifiedAt: new Date("TIMESTAMP"),
52
+ * // tags: { // TagMap
53
+ * // "<keys>": "STRING_VALUE",
54
+ * // },
55
+ * // };
56
+ *
57
+ * ```
58
+ *
59
+ * @param GetProbeCommandInput - {@link GetProbeCommandInput}
60
+ * @returns {@link GetProbeCommandOutput}
61
+ * @see {@link GetProbeCommandInput} for command's `input` shape.
62
+ * @see {@link GetProbeCommandOutput} for command's `response` shape.
63
+ * @see {@link NetworkMonitorClientResolvedConfig | config} for NetworkMonitorClient's `config` shape.
64
+ *
65
+ * @throws {@link AccessDeniedException} (client fault)
66
+ * <p>You do not have sufficient access to perform this action.</p>
67
+ *
68
+ * @throws {@link InternalServerException} (server fault)
69
+ * <p>The request processing has failed because of an unknown error, exception or failure.</p>
70
+ *
71
+ * @throws {@link ResourceNotFoundException} (client fault)
72
+ * <p>The specified resource does not exist.</p>
73
+ *
74
+ * @throws {@link ThrottlingException} (client fault)
75
+ * <p>The request was denied due to request throttling</p>
76
+ *
77
+ * @throws {@link ValidationException} (client fault)
78
+ * <p>One of the parameters for the request is not valid.</p>
79
+ *
80
+ * @throws {@link NetworkMonitorServiceException}
81
+ * <p>Base exception class for all service exceptions from NetworkMonitor service.</p>
82
+ *
83
+ */
84
+ export declare class GetProbeCommand extends $Command<GetProbeCommandInput, GetProbeCommandOutput, NetworkMonitorClientResolvedConfig> {
85
+ readonly input: GetProbeCommandInput;
86
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
87
+ /**
88
+ * @public
89
+ */
90
+ constructor(input: GetProbeCommandInput);
91
+ /**
92
+ * @internal
93
+ */
94
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: NetworkMonitorClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetProbeCommandInput, GetProbeCommandOutput>;
95
+ /**
96
+ * @internal
97
+ */
98
+ private serialize;
99
+ /**
100
+ * @internal
101
+ */
102
+ private deserialize;
103
+ }
@@ -0,0 +1,98 @@
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 { ListMonitorsInput, ListMonitorsOutput } from "../models/models_0";
5
+ import { NetworkMonitorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NetworkMonitorClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListMonitorsCommand}.
14
+ */
15
+ export interface ListMonitorsCommandInput extends ListMonitorsInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListMonitorsCommand}.
21
+ */
22
+ export interface ListMonitorsCommandOutput extends ListMonitorsOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Returns a list of all of your monitors.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { NetworkMonitorClient, ListMonitorsCommand } from "@aws-sdk/client-networkmonitor"; // ES Modules import
31
+ * // const { NetworkMonitorClient, ListMonitorsCommand } = require("@aws-sdk/client-networkmonitor"); // CommonJS import
32
+ * const client = new NetworkMonitorClient(config);
33
+ * const input = { // ListMonitorsInput
34
+ * nextToken: "STRING_VALUE",
35
+ * maxResults: Number("int"),
36
+ * state: "STRING_VALUE",
37
+ * };
38
+ * const command = new ListMonitorsCommand(input);
39
+ * const response = await client.send(command);
40
+ * // { // ListMonitorsOutput
41
+ * // monitors: [ // MonitorList // required
42
+ * // { // MonitorSummary
43
+ * // monitorArn: "STRING_VALUE", // required
44
+ * // monitorName: "STRING_VALUE", // required
45
+ * // state: "PENDING" || "ACTIVE" || "INACTIVE" || "ERROR" || "DELETING", // required
46
+ * // aggregationPeriod: Number("long"),
47
+ * // tags: { // TagMap
48
+ * // "<keys>": "STRING_VALUE",
49
+ * // },
50
+ * // },
51
+ * // ],
52
+ * // nextToken: "STRING_VALUE",
53
+ * // };
54
+ *
55
+ * ```
56
+ *
57
+ * @param ListMonitorsCommandInput - {@link ListMonitorsCommandInput}
58
+ * @returns {@link ListMonitorsCommandOutput}
59
+ * @see {@link ListMonitorsCommandInput} for command's `input` shape.
60
+ * @see {@link ListMonitorsCommandOutput} for command's `response` shape.
61
+ * @see {@link NetworkMonitorClientResolvedConfig | config} for NetworkMonitorClient's `config` shape.
62
+ *
63
+ * @throws {@link AccessDeniedException} (client fault)
64
+ * <p>You do not have sufficient access to perform this action.</p>
65
+ *
66
+ * @throws {@link InternalServerException} (server fault)
67
+ * <p>The request processing has failed because of an unknown error, exception or failure.</p>
68
+ *
69
+ * @throws {@link ThrottlingException} (client fault)
70
+ * <p>The request was denied due to request throttling</p>
71
+ *
72
+ * @throws {@link ValidationException} (client fault)
73
+ * <p>One of the parameters for the request is not valid.</p>
74
+ *
75
+ * @throws {@link NetworkMonitorServiceException}
76
+ * <p>Base exception class for all service exceptions from NetworkMonitor service.</p>
77
+ *
78
+ */
79
+ export declare class ListMonitorsCommand extends $Command<ListMonitorsCommandInput, ListMonitorsCommandOutput, NetworkMonitorClientResolvedConfig> {
80
+ readonly input: ListMonitorsCommandInput;
81
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
82
+ /**
83
+ * @public
84
+ */
85
+ constructor(input: ListMonitorsCommandInput);
86
+ /**
87
+ * @internal
88
+ */
89
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: NetworkMonitorClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListMonitorsCommandInput, ListMonitorsCommandOutput>;
90
+ /**
91
+ * @internal
92
+ */
93
+ private serialize;
94
+ /**
95
+ * @internal
96
+ */
97
+ private deserialize;
98
+ }