@aws-sdk/client-internetmonitor 3.315.0 → 3.316.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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InternetMonitor = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const CreateMonitorCommand_1 = require("./commands/CreateMonitorCommand");
5
6
  const DeleteMonitorCommand_1 = require("./commands/DeleteMonitorCommand");
6
7
  const GetHealthEventCommand_1 = require("./commands/GetHealthEventCommand");
@@ -12,146 +13,19 @@ const TagResourceCommand_1 = require("./commands/TagResourceCommand");
12
13
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
13
14
  const UpdateMonitorCommand_1 = require("./commands/UpdateMonitorCommand");
14
15
  const InternetMonitorClient_1 = require("./InternetMonitorClient");
16
+ const commands = {
17
+ CreateMonitorCommand: CreateMonitorCommand_1.CreateMonitorCommand,
18
+ DeleteMonitorCommand: DeleteMonitorCommand_1.DeleteMonitorCommand,
19
+ GetHealthEventCommand: GetHealthEventCommand_1.GetHealthEventCommand,
20
+ GetMonitorCommand: GetMonitorCommand_1.GetMonitorCommand,
21
+ ListHealthEventsCommand: ListHealthEventsCommand_1.ListHealthEventsCommand,
22
+ ListMonitorsCommand: ListMonitorsCommand_1.ListMonitorsCommand,
23
+ ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
24
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
25
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
26
+ UpdateMonitorCommand: UpdateMonitorCommand_1.UpdateMonitorCommand,
27
+ };
15
28
  class InternetMonitor extends InternetMonitorClient_1.InternetMonitorClient {
16
- createMonitor(args, optionsOrCb, cb) {
17
- const command = new CreateMonitorCommand_1.CreateMonitorCommand(args);
18
- if (typeof optionsOrCb === "function") {
19
- this.send(command, optionsOrCb);
20
- }
21
- else if (typeof cb === "function") {
22
- if (typeof optionsOrCb !== "object")
23
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
24
- this.send(command, optionsOrCb || {}, cb);
25
- }
26
- else {
27
- return this.send(command, optionsOrCb);
28
- }
29
- }
30
- deleteMonitor(args, optionsOrCb, cb) {
31
- const command = new DeleteMonitorCommand_1.DeleteMonitorCommand(args);
32
- if (typeof optionsOrCb === "function") {
33
- this.send(command, optionsOrCb);
34
- }
35
- else if (typeof cb === "function") {
36
- if (typeof optionsOrCb !== "object")
37
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
38
- this.send(command, optionsOrCb || {}, cb);
39
- }
40
- else {
41
- return this.send(command, optionsOrCb);
42
- }
43
- }
44
- getHealthEvent(args, optionsOrCb, cb) {
45
- const command = new GetHealthEventCommand_1.GetHealthEventCommand(args);
46
- if (typeof optionsOrCb === "function") {
47
- this.send(command, optionsOrCb);
48
- }
49
- else if (typeof cb === "function") {
50
- if (typeof optionsOrCb !== "object")
51
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
52
- this.send(command, optionsOrCb || {}, cb);
53
- }
54
- else {
55
- return this.send(command, optionsOrCb);
56
- }
57
- }
58
- getMonitor(args, optionsOrCb, cb) {
59
- const command = new GetMonitorCommand_1.GetMonitorCommand(args);
60
- if (typeof optionsOrCb === "function") {
61
- this.send(command, optionsOrCb);
62
- }
63
- else if (typeof cb === "function") {
64
- if (typeof optionsOrCb !== "object")
65
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
66
- this.send(command, optionsOrCb || {}, cb);
67
- }
68
- else {
69
- return this.send(command, optionsOrCb);
70
- }
71
- }
72
- listHealthEvents(args, optionsOrCb, cb) {
73
- const command = new ListHealthEventsCommand_1.ListHealthEventsCommand(args);
74
- if (typeof optionsOrCb === "function") {
75
- this.send(command, optionsOrCb);
76
- }
77
- else if (typeof cb === "function") {
78
- if (typeof optionsOrCb !== "object")
79
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
80
- this.send(command, optionsOrCb || {}, cb);
81
- }
82
- else {
83
- return this.send(command, optionsOrCb);
84
- }
85
- }
86
- listMonitors(args, optionsOrCb, cb) {
87
- const command = new ListMonitorsCommand_1.ListMonitorsCommand(args);
88
- if (typeof optionsOrCb === "function") {
89
- this.send(command, optionsOrCb);
90
- }
91
- else if (typeof cb === "function") {
92
- if (typeof optionsOrCb !== "object")
93
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
94
- this.send(command, optionsOrCb || {}, cb);
95
- }
96
- else {
97
- return this.send(command, optionsOrCb);
98
- }
99
- }
100
- listTagsForResource(args, optionsOrCb, cb) {
101
- const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
102
- if (typeof optionsOrCb === "function") {
103
- this.send(command, optionsOrCb);
104
- }
105
- else if (typeof cb === "function") {
106
- if (typeof optionsOrCb !== "object")
107
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
108
- this.send(command, optionsOrCb || {}, cb);
109
- }
110
- else {
111
- return this.send(command, optionsOrCb);
112
- }
113
- }
114
- tagResource(args, optionsOrCb, cb) {
115
- const command = new TagResourceCommand_1.TagResourceCommand(args);
116
- if (typeof optionsOrCb === "function") {
117
- this.send(command, optionsOrCb);
118
- }
119
- else if (typeof cb === "function") {
120
- if (typeof optionsOrCb !== "object")
121
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
122
- this.send(command, optionsOrCb || {}, cb);
123
- }
124
- else {
125
- return this.send(command, optionsOrCb);
126
- }
127
- }
128
- untagResource(args, optionsOrCb, cb) {
129
- const command = new UntagResourceCommand_1.UntagResourceCommand(args);
130
- if (typeof optionsOrCb === "function") {
131
- this.send(command, optionsOrCb);
132
- }
133
- else if (typeof cb === "function") {
134
- if (typeof optionsOrCb !== "object")
135
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
136
- this.send(command, optionsOrCb || {}, cb);
137
- }
138
- else {
139
- return this.send(command, optionsOrCb);
140
- }
141
- }
142
- updateMonitor(args, optionsOrCb, cb) {
143
- const command = new UpdateMonitorCommand_1.UpdateMonitorCommand(args);
144
- if (typeof optionsOrCb === "function") {
145
- this.send(command, optionsOrCb);
146
- }
147
- else if (typeof cb === "function") {
148
- if (typeof optionsOrCb !== "object")
149
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
150
- this.send(command, optionsOrCb || {}, cb);
151
- }
152
- else {
153
- return this.send(command, optionsOrCb);
154
- }
155
- }
156
29
  }
157
30
  exports.InternetMonitor = InternetMonitor;
31
+ (0, smithy_client_1.createAggregatedClient)(commands, InternetMonitor);
@@ -14,7 +14,7 @@ const se_CreateMonitorCommand = async (input, context) => {
14
14
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20210603/Monitors";
15
15
  let body;
16
16
  body = JSON.stringify((0, smithy_client_1.take)(input, {
17
- ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
17
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
18
18
  InternetMeasurementsLogDelivery: (_) => (0, smithy_client_1._json)(_),
19
19
  MaxCityNetworksToMonitor: [],
20
20
  MonitorName: [],
@@ -209,7 +209,7 @@ const se_UpdateMonitorCommand = async (input, context) => {
209
209
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MonitorName", () => input.MonitorName, "{MonitorName}", false);
210
210
  let body;
211
211
  body = JSON.stringify((0, smithy_client_1.take)(input, {
212
- ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
212
+ ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
213
213
  InternetMeasurementsLogDelivery: (_) => (0, smithy_client_1._json)(_),
214
214
  MaxCityNetworksToMonitor: [],
215
215
  ResourcesToAdd: (_) => (0, smithy_client_1._json)(_),
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { CreateMonitorCommand, } from "./commands/CreateMonitorCommand";
2
3
  import { DeleteMonitorCommand, } from "./commands/DeleteMonitorCommand";
3
4
  import { GetHealthEventCommand, } from "./commands/GetHealthEventCommand";
@@ -9,145 +10,18 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
9
10
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
10
11
  import { UpdateMonitorCommand, } from "./commands/UpdateMonitorCommand";
11
12
  import { InternetMonitorClient } from "./InternetMonitorClient";
13
+ const commands = {
14
+ CreateMonitorCommand,
15
+ DeleteMonitorCommand,
16
+ GetHealthEventCommand,
17
+ GetMonitorCommand,
18
+ ListHealthEventsCommand,
19
+ ListMonitorsCommand,
20
+ ListTagsForResourceCommand,
21
+ TagResourceCommand,
22
+ UntagResourceCommand,
23
+ UpdateMonitorCommand,
24
+ };
12
25
  export class InternetMonitor extends InternetMonitorClient {
13
- createMonitor(args, optionsOrCb, cb) {
14
- const command = new CreateMonitorCommand(args);
15
- if (typeof optionsOrCb === "function") {
16
- this.send(command, optionsOrCb);
17
- }
18
- else if (typeof cb === "function") {
19
- if (typeof optionsOrCb !== "object")
20
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
21
- this.send(command, optionsOrCb || {}, cb);
22
- }
23
- else {
24
- return this.send(command, optionsOrCb);
25
- }
26
- }
27
- deleteMonitor(args, optionsOrCb, cb) {
28
- const command = new DeleteMonitorCommand(args);
29
- if (typeof optionsOrCb === "function") {
30
- this.send(command, optionsOrCb);
31
- }
32
- else if (typeof cb === "function") {
33
- if (typeof optionsOrCb !== "object")
34
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
35
- this.send(command, optionsOrCb || {}, cb);
36
- }
37
- else {
38
- return this.send(command, optionsOrCb);
39
- }
40
- }
41
- getHealthEvent(args, optionsOrCb, cb) {
42
- const command = new GetHealthEventCommand(args);
43
- if (typeof optionsOrCb === "function") {
44
- this.send(command, optionsOrCb);
45
- }
46
- else if (typeof cb === "function") {
47
- if (typeof optionsOrCb !== "object")
48
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
49
- this.send(command, optionsOrCb || {}, cb);
50
- }
51
- else {
52
- return this.send(command, optionsOrCb);
53
- }
54
- }
55
- getMonitor(args, optionsOrCb, cb) {
56
- const command = new GetMonitorCommand(args);
57
- if (typeof optionsOrCb === "function") {
58
- this.send(command, optionsOrCb);
59
- }
60
- else if (typeof cb === "function") {
61
- if (typeof optionsOrCb !== "object")
62
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
63
- this.send(command, optionsOrCb || {}, cb);
64
- }
65
- else {
66
- return this.send(command, optionsOrCb);
67
- }
68
- }
69
- listHealthEvents(args, optionsOrCb, cb) {
70
- const command = new ListHealthEventsCommand(args);
71
- if (typeof optionsOrCb === "function") {
72
- this.send(command, optionsOrCb);
73
- }
74
- else if (typeof cb === "function") {
75
- if (typeof optionsOrCb !== "object")
76
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
77
- this.send(command, optionsOrCb || {}, cb);
78
- }
79
- else {
80
- return this.send(command, optionsOrCb);
81
- }
82
- }
83
- listMonitors(args, optionsOrCb, cb) {
84
- const command = new ListMonitorsCommand(args);
85
- if (typeof optionsOrCb === "function") {
86
- this.send(command, optionsOrCb);
87
- }
88
- else if (typeof cb === "function") {
89
- if (typeof optionsOrCb !== "object")
90
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
91
- this.send(command, optionsOrCb || {}, cb);
92
- }
93
- else {
94
- return this.send(command, optionsOrCb);
95
- }
96
- }
97
- listTagsForResource(args, optionsOrCb, cb) {
98
- const command = new ListTagsForResourceCommand(args);
99
- if (typeof optionsOrCb === "function") {
100
- this.send(command, optionsOrCb);
101
- }
102
- else if (typeof cb === "function") {
103
- if (typeof optionsOrCb !== "object")
104
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
105
- this.send(command, optionsOrCb || {}, cb);
106
- }
107
- else {
108
- return this.send(command, optionsOrCb);
109
- }
110
- }
111
- tagResource(args, optionsOrCb, cb) {
112
- const command = new TagResourceCommand(args);
113
- if (typeof optionsOrCb === "function") {
114
- this.send(command, optionsOrCb);
115
- }
116
- else if (typeof cb === "function") {
117
- if (typeof optionsOrCb !== "object")
118
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
119
- this.send(command, optionsOrCb || {}, cb);
120
- }
121
- else {
122
- return this.send(command, optionsOrCb);
123
- }
124
- }
125
- untagResource(args, optionsOrCb, cb) {
126
- const command = new UntagResourceCommand(args);
127
- if (typeof optionsOrCb === "function") {
128
- this.send(command, optionsOrCb);
129
- }
130
- else if (typeof cb === "function") {
131
- if (typeof optionsOrCb !== "object")
132
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
133
- this.send(command, optionsOrCb || {}, cb);
134
- }
135
- else {
136
- return this.send(command, optionsOrCb);
137
- }
138
- }
139
- updateMonitor(args, optionsOrCb, cb) {
140
- const command = new UpdateMonitorCommand(args);
141
- if (typeof optionsOrCb === "function") {
142
- this.send(command, optionsOrCb);
143
- }
144
- else if (typeof cb === "function") {
145
- if (typeof optionsOrCb !== "object")
146
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
147
- this.send(command, optionsOrCb || {}, cb);
148
- }
149
- else {
150
- return this.send(command, optionsOrCb);
151
- }
152
- }
153
26
  }
27
+ createAggregatedClient(commands, InternetMonitor);
@@ -11,7 +11,7 @@ export const se_CreateMonitorCommand = async (input, context) => {
11
11
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20210603/Monitors";
12
12
  let body;
13
13
  body = JSON.stringify(take(input, {
14
- ClientToken: (_) => _ ?? generateIdempotencyToken(),
14
+ ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
15
15
  InternetMeasurementsLogDelivery: (_) => _json(_),
16
16
  MaxCityNetworksToMonitor: [],
17
17
  MonitorName: [],
@@ -197,7 +197,7 @@ export const se_UpdateMonitorCommand = async (input, context) => {
197
197
  resolvedPath = __resolvedPath(resolvedPath, input, "MonitorName", () => input.MonitorName, "{MonitorName}", false);
198
198
  let body;
199
199
  body = JSON.stringify(take(input, {
200
- ClientToken: (_) => _ ?? generateIdempotencyToken(),
200
+ ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
201
201
  InternetMeasurementsLogDelivery: (_) => _json(_),
202
202
  MaxCityNetworksToMonitor: [],
203
203
  ResourcesToAdd: (_) => _json(_),
@@ -10,114 +10,86 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
10
10
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
11
11
  import { UpdateMonitorCommandInput, UpdateMonitorCommandOutput } from "./commands/UpdateMonitorCommand";
12
12
  import { InternetMonitorClient } from "./InternetMonitorClient";
13
- /**
14
- * @public
15
- * <p>Amazon CloudWatch Internet Monitor provides visibility into how internet issues impact the performance and availability
16
- * between your applications hosted on Amazon Web Services and your end users. It reduces the time it takes for you to diagnose
17
- * internet issues from days to minutes. Internet Monitor uses the connectivity data that Amazon Web Services captures from its global
18
- * networking footprint to calculate a baseline of performance and availability for internet traffic. This
19
- * is the same data that Amazon Web Services uses to monitor internet uptime and availability. With those measurements
20
- * as a baseline, Internet Monitor raises awareness for you when there are significant problems for your
21
- * end users in the different geographic locations where your application runs.</p>
22
- * <p>Internet Monitor publishes internet measurements to CloudWatch Logs and CloudWatch Metrics,
23
- * to easily support using CloudWatch tools with health information for geographies and networks specific to your application.
24
- * Internet Monitor sends health events to Amazon EventBridge so that you can set up notifications. If an issue is caused by the Amazon Web Services network,
25
- * you also automatically receive an Amazon Web Services Health Dashboard notification with the steps that Amazon Web Services is taking to mitigate the problem.</p>
26
- * <p>To use Internet Monitor, you create a <i>monitor</i> and associate your application's resources
27
- * with it, VPCs, CloudFront distributions, or WorkSpaces directories, to enable Internet Monitor to know
28
- * where your application's internet traffic is. Internet Monitor then provides internet measurements from Amazon Web Services that are specific to
29
- * the locations and networks that communicate with your application.</p>
30
- * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-InternetMonitor.html">Using Amazon CloudWatch Internet Monitor</a> in the <i>Amazon CloudWatch User Guide</i>.</p>
31
- */
32
- export declare class InternetMonitor extends InternetMonitorClient {
13
+ export interface InternetMonitor {
33
14
  /**
34
- * @public
35
- * <p>Creates a monitor in Amazon CloudWatch Internet Monitor. A monitor is built based on information from the application resources that you add: Amazon Virtual Private Clouds (VPCs),
36
- * Amazon CloudFront distributions, and WorkSpaces directories. Internet Monitor then publishes internet measurements from Amazon Web Services that are specific to
37
- * the <i>city-networks</i>, that is, the locations and ASNs (typically internet service providers or ISPs),
38
- * where clients access your application. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-InternetMonitor.html">Using Amazon CloudWatch Internet Monitor</a> in the <i>Amazon CloudWatch User Guide</i>.</p>
39
- * <p>When you create a monitor, you set a maximum limit for the number of city-networks where client traffic is monitored. The city-network maximum
40
- * that you choose is the limit, but you only pay for the number of city-networks that are actually monitored. You can change the maximum at any time
41
- * by updating your monitor. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/IMCityNetworksMaximum.html">Choosing a city-network maximum value</a> in the <i>Amazon CloudWatch User Guide</i>.</p>
15
+ * @see {@link CreateMonitorCommand}
42
16
  */
43
17
  createMonitor(args: CreateMonitorCommandInput, options?: __HttpHandlerOptions): Promise<CreateMonitorCommandOutput>;
44
18
  createMonitor(args: CreateMonitorCommandInput, cb: (err: any, data?: CreateMonitorCommandOutput) => void): void;
45
19
  createMonitor(args: CreateMonitorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateMonitorCommandOutput) => void): void;
46
20
  /**
47
- * @public
48
- * <p>Deletes a monitor in Amazon CloudWatch Internet Monitor. </p>
21
+ * @see {@link DeleteMonitorCommand}
49
22
  */
50
23
  deleteMonitor(args: DeleteMonitorCommandInput, options?: __HttpHandlerOptions): Promise<DeleteMonitorCommandOutput>;
51
24
  deleteMonitor(args: DeleteMonitorCommandInput, cb: (err: any, data?: DeleteMonitorCommandOutput) => void): void;
52
25
  deleteMonitor(args: DeleteMonitorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteMonitorCommandOutput) => void): void;
53
26
  /**
54
- * @public
55
- * <p>Gets information the Amazon CloudWatch Internet Monitor has created and stored about a health event for a specified monitor. This information includes the impacted locations,
56
- * and all of the information related to the event by location.</p>
57
- * <p>The information returned includes the performance, availability, and round-trip time impact, information about the network providers, the event type,
58
- * and so on.</p>
59
- * <p>Information rolled up at the global traffic level is also returned, including the impact type and total traffic impact.</p>
27
+ * @see {@link GetHealthEventCommand}
60
28
  */
61
29
  getHealthEvent(args: GetHealthEventCommandInput, options?: __HttpHandlerOptions): Promise<GetHealthEventCommandOutput>;
62
30
  getHealthEvent(args: GetHealthEventCommandInput, cb: (err: any, data?: GetHealthEventCommandOutput) => void): void;
63
31
  getHealthEvent(args: GetHealthEventCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetHealthEventCommandOutput) => void): void;
64
32
  /**
65
- * @public
66
- * <p>Gets information about a monitor in Amazon CloudWatch Internet Monitor based on a monitor name. The information returned includes the Amazon Resource Name (ARN), create time,
67
- * modified time, resources included in the monitor, and status information.</p>
33
+ * @see {@link GetMonitorCommand}
68
34
  */
69
35
  getMonitor(args: GetMonitorCommandInput, options?: __HttpHandlerOptions): Promise<GetMonitorCommandOutput>;
70
36
  getMonitor(args: GetMonitorCommandInput, cb: (err: any, data?: GetMonitorCommandOutput) => void): void;
71
37
  getMonitor(args: GetMonitorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMonitorCommandOutput) => void): void;
72
38
  /**
73
- * @public
74
- * <p>Lists all health events for a monitor in Amazon CloudWatch Internet Monitor. Returns all information for health events including the client location information the network
75
- * cause and status, event start and end time, percentage of total traffic impacted, and status.</p>
76
- * <note>
77
- * <p>Health events that have start times during the time frame that is requested are not included in the list of health events.</p>
78
- * </note>
39
+ * @see {@link ListHealthEventsCommand}
79
40
  */
80
41
  listHealthEvents(args: ListHealthEventsCommandInput, options?: __HttpHandlerOptions): Promise<ListHealthEventsCommandOutput>;
81
42
  listHealthEvents(args: ListHealthEventsCommandInput, cb: (err: any, data?: ListHealthEventsCommandOutput) => void): void;
82
43
  listHealthEvents(args: ListHealthEventsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListHealthEventsCommandOutput) => void): void;
83
44
  /**
84
- * @public
85
- * <p>Lists all of your monitors for Amazon CloudWatch Internet Monitor and their statuses, along with the Amazon Resource Name (ARN) and name of each monitor.</p>
45
+ * @see {@link ListMonitorsCommand}
86
46
  */
87
47
  listMonitors(args: ListMonitorsCommandInput, options?: __HttpHandlerOptions): Promise<ListMonitorsCommandOutput>;
88
48
  listMonitors(args: ListMonitorsCommandInput, cb: (err: any, data?: ListMonitorsCommandOutput) => void): void;
89
49
  listMonitors(args: ListMonitorsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListMonitorsCommandOutput) => void): void;
90
50
  /**
91
- * @public
92
- * <p>Lists the tags for a resource. Tags are supported only for monitors in Amazon CloudWatch Internet Monitor.</p>
51
+ * @see {@link ListTagsForResourceCommand}
93
52
  */
94
53
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
95
54
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
96
55
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
97
56
  /**
98
- * @public
99
- * <p>Adds a tag to a resource. Tags are supported only for monitors in Amazon CloudWatch Internet Monitor. You can add a maximum of 50 tags in Internet Monitor.</p>
100
- * <p>A minimum of one tag is required for this call. It returns an error if you use the <code>TagResource</code> request with 0 tags.</p>
57
+ * @see {@link TagResourceCommand}
101
58
  */
102
59
  tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
103
60
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
104
61
  tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
105
62
  /**
106
- * @public
107
- * <p>Removes a tag from a resource.</p>
63
+ * @see {@link UntagResourceCommand}
108
64
  */
109
65
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
110
66
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
111
67
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
112
68
  /**
113
- * @public
114
- * <p>Updates a monitor. You can update a monitor to change the maximum number of city-networks (locations and ASNs or
115
- * internet service providers), to add or remove resources,
116
- * or to change the status of the monitor. Note that you can't change the name of a monitor.</p>
117
- * <p>The city-network maximum that you choose is the limit, but you only pay for the number of city-networks that are actually monitored.
118
- * For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/IMCityNetworksMaximum.html">Choosing a city-network maximum value</a> in the <i>Amazon CloudWatch User Guide</i>.</p>
69
+ * @see {@link UpdateMonitorCommand}
119
70
  */
120
71
  updateMonitor(args: UpdateMonitorCommandInput, options?: __HttpHandlerOptions): Promise<UpdateMonitorCommandOutput>;
121
72
  updateMonitor(args: UpdateMonitorCommandInput, cb: (err: any, data?: UpdateMonitorCommandOutput) => void): void;
122
73
  updateMonitor(args: UpdateMonitorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateMonitorCommandOutput) => void): void;
123
74
  }
75
+ /**
76
+ * @public
77
+ * <p>Amazon CloudWatch Internet Monitor provides visibility into how internet issues impact the performance and availability
78
+ * between your applications hosted on Amazon Web Services and your end users. It reduces the time it takes for you to diagnose
79
+ * internet issues from days to minutes. Internet Monitor uses the connectivity data that Amazon Web Services captures from its global
80
+ * networking footprint to calculate a baseline of performance and availability for internet traffic. This
81
+ * is the same data that Amazon Web Services uses to monitor internet uptime and availability. With those measurements
82
+ * as a baseline, Internet Monitor raises awareness for you when there are significant problems for your
83
+ * end users in the different geographic locations where your application runs.</p>
84
+ * <p>Internet Monitor publishes internet measurements to CloudWatch Logs and CloudWatch Metrics,
85
+ * to easily support using CloudWatch tools with health information for geographies and networks specific to your application.
86
+ * Internet Monitor sends health events to Amazon EventBridge so that you can set up notifications. If an issue is caused by the Amazon Web Services network,
87
+ * you also automatically receive an Amazon Web Services Health Dashboard notification with the steps that Amazon Web Services is taking to mitigate the problem.</p>
88
+ * <p>To use Internet Monitor, you create a <i>monitor</i> and associate your application's resources
89
+ * with it, VPCs, CloudFront distributions, or WorkSpaces directories, to enable Internet Monitor to know
90
+ * where your application's internet traffic is. Internet Monitor then provides internet measurements from Amazon Web Services that are specific to
91
+ * the locations and networks that communicate with your application.</p>
92
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-InternetMonitor.html">Using Amazon CloudWatch Internet Monitor</a> in the <i>Amazon CloudWatch User Guide</i>.</p>
93
+ */
94
+ export declare class InternetMonitor extends InternetMonitorClient implements InternetMonitor {
95
+ }
@@ -40,7 +40,7 @@ import {
40
40
  UpdateMonitorCommandOutput,
41
41
  } from "./commands/UpdateMonitorCommand";
42
42
  import { InternetMonitorClient } from "./InternetMonitorClient";
43
- export declare class InternetMonitor extends InternetMonitorClient {
43
+ export interface InternetMonitor {
44
44
  createMonitor(
45
45
  args: CreateMonitorCommandInput,
46
46
  options?: __HttpHandlerOptions
@@ -172,3 +172,6 @@ export declare class InternetMonitor extends InternetMonitorClient {
172
172
  cb: (err: any, data?: UpdateMonitorCommandOutput) => void
173
173
  ): void;
174
174
  }
175
+ export declare class InternetMonitor
176
+ extends InternetMonitorClient
177
+ implements InternetMonitor {}
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.315.0",
4
+ "version": "3.316.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.315.0",
24
+ "@aws-sdk/client-sts": "3.316.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
26
+ "@aws-sdk/credential-provider-node": "3.316.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -40,14 +40,14 @@
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.315.0",
43
+ "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
51
  "@aws-sdk/util-endpoints": "3.310.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",