@aws-sdk/client-internetmonitor 3.515.0 → 3.521.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/dist-cjs/index.js CHANGED
@@ -1143,6 +1143,7 @@ var de_ImpactedLocation = /* @__PURE__ */ __name((output, context) => {
1143
1143
  Country: import_smithy_client.expectString,
1144
1144
  CountryCode: import_smithy_client.expectString,
1145
1145
  InternetHealth: (_) => de_InternetHealth(_, context),
1146
+ Ipv4Prefixes: import_smithy_client._json,
1146
1147
  Latitude: import_smithy_client.limitedParseDouble,
1147
1148
  Longitude: import_smithy_client.limitedParseDouble,
1148
1149
  Metro: import_smithy_client.expectString,
@@ -28,7 +28,7 @@ const getRuntimeConfig = (config) => {
28
28
  (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
29
29
  maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
30
30
  region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
31
- requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
31
+ requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
32
32
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
33
33
  sha256: config?.sha256 ?? sha256_browser_1.Sha256,
34
34
  streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
@@ -34,7 +34,7 @@ const getRuntimeConfig = (config) => {
34
34
  (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
35
  maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
36
36
  region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
37
- requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
37
+ requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
38
38
  retryMode: config?.retryMode ??
39
39
  (0, node_config_provider_1.loadConfig)({
40
40
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
@@ -653,6 +653,7 @@ const de_ImpactedLocation = (output, context) => {
653
653
  Country: __expectString,
654
654
  CountryCode: __expectString,
655
655
  InternetHealth: (_) => de_InternetHealth(_, context),
656
+ Ipv4Prefixes: _json,
656
657
  Latitude: __limitedParseDouble,
657
658
  Longitude: __limitedParseDouble,
658
659
  Metro: __expectString,
@@ -24,7 +24,7 @@ export const getRuntimeConfig = (config) => {
24
24
  defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
25
25
  maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
26
26
  region: config?.region ?? invalidProvider("Region is missing"),
27
- requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
27
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
28
28
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
29
29
  sha256: config?.sha256 ?? Sha256,
30
30
  streamCollector: config?.streamCollector ?? streamCollector,
@@ -30,7 +30,7 @@ export const getRuntimeConfig = (config) => {
30
30
  defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
31
31
  maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
32
32
  region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
33
- requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
33
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
34
34
  retryMode: config?.retryMode ??
35
35
  loadNodeConfig({
36
36
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
@@ -3,7 +3,7 @@ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middlewa
3
3
  import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
4
4
  import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
5
5
  import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
6
- import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
6
+ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
7
7
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
8
8
  import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
9
  import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
@@ -35,11 +35,11 @@ export type ServiceOutputTypes = CreateMonitorCommandOutput | DeleteMonitorComma
35
35
  /**
36
36
  * @public
37
37
  */
38
- export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
38
+ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
39
39
  /**
40
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
40
+ * The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
41
41
  */
42
- requestHandler?: __HttpHandler;
42
+ requestHandler?: __HttpHandlerUserInput;
43
43
  /**
44
44
  * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
45
45
  * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
@@ -96,6 +96,9 @@ declare const GetHealthEventCommand_base: {
96
96
  * // },
97
97
  * // },
98
98
  * // },
99
+ * // Ipv4Prefixes: [ // Ipv4PrefixList
100
+ * // "STRING_VALUE",
101
+ * // ],
99
102
  * // },
100
103
  * // ],
101
104
  * // Status: "STRING_VALUE", // required
@@ -102,6 +102,9 @@ declare const ListHealthEventsCommand_base: {
102
102
  * // },
103
103
  * // },
104
104
  * // },
105
+ * // Ipv4Prefixes: [ // Ipv4PrefixList
106
+ * // "STRING_VALUE",
107
+ * // ],
105
108
  * // },
106
109
  * // ],
107
110
  * // Status: "STRING_VALUE", // required
@@ -115,7 +115,7 @@ export interface LocalHealthEventsConfig {
115
115
  * @public
116
116
  * <p>The minimum percentage of overall traffic for an application that must be impacted by an issue before Internet Monitor creates an event when a
117
117
  * threshold is crossed for a local health score.</p>
118
- * <p>If you don't set a minimum traffic impact threshold, the default value is 0.01%.</p>
118
+ * <p>If you don't set a minimum traffic impact threshold, the default value is 0.1%.</p>
119
119
  */
120
120
  MinTrafficImpact?: number;
121
121
  }
@@ -671,6 +671,11 @@ export interface ImpactedLocation {
671
671
  * <p>The calculated health at a specific location.</p>
672
672
  */
673
673
  InternetHealth?: InternetHealth;
674
+ /**
675
+ * @public
676
+ * <p>The IPv4 prefixes at the client location that was impacted by the health event.</p>
677
+ */
678
+ Ipv4Prefixes?: string[];
674
679
  }
675
680
  /**
676
681
  * @public
@@ -1237,15 +1242,18 @@ export interface StartQueryInput {
1237
1242
  * <ul>
1238
1243
  * <li>
1239
1244
  * <p>
1240
- * <code>MEASUREMENTS</code>: TBD definition</p>
1245
+ * <code>MEASUREMENTS</code>: Provides availability score, performance score, total traffic,
1246
+ * and round-trip times, at 5 minute intervals.</p>
1241
1247
  * </li>
1242
1248
  * <li>
1243
1249
  * <p>
1244
- * <code>TOP_LOCATIONS</code>: TBD definition</p>
1250
+ * <code>TOP_LOCATIONS</code>: Provides availability score, performance score, total traffic,
1251
+ * and time to first byte (TTFB) information, for the top location and ASN combinations that you're monitoring, by traffic volume.</p>
1245
1252
  * </li>
1246
1253
  * <li>
1247
1254
  * <p>
1248
- * <code>TOP_LOCATION_DETAILS</code>: TBD definition</p>
1255
+ * <code>TOP_LOCATION_DETAILS</code>: Provides TTFB for Amazon CloudFront, your
1256
+ * current configuration, and the best performing EC2 configuration, at 1 hour intervals.</p>
1249
1257
  * </li>
1250
1258
  * </ul>
1251
1259
  * <p>For lists of the fields returned with each query type and more information about how each type of query is
@@ -11,10 +11,7 @@ export declare const getRuntimeConfig: (config: InternetMonitorClientConfig) =>
11
11
  defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<any>;
14
- requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
15
- updateHttpClientConfig(key: never, value: never): void;
16
- httpHandlerConfigs(): {};
17
- }) | RequestHandler;
14
+ requestHandler: import("@smithy/protocol-http").HttpHandler<any> | RequestHandler;
18
15
  retryMode: string | import("@smithy/types").Provider<string>;
19
16
  sha256: import("@smithy/types").HashConstructor;
20
17
  streamCollector: import("@smithy/types").StreamCollector;
@@ -11,10 +11,7 @@ export declare const getRuntimeConfig: (config: InternetMonitorClientConfig) =>
11
11
  defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<string>;
14
- requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
15
- updateHttpClientConfig(key: never, value: never): void;
16
- httpHandlerConfigs(): {};
17
- }) | RequestHandler;
14
+ requestHandler: RequestHandler | import("@smithy/protocol-http").HttpHandler<any>;
18
15
  retryMode: string | import("@smithy/types").Provider<string>;
19
16
  sha256: import("@smithy/types").HashConstructor;
20
17
  streamCollector: import("@smithy/types").StreamCollector;
@@ -5,10 +5,7 @@ import { InternetMonitorClientConfig } from "./InternetMonitorClient";
5
5
  export declare const getRuntimeConfig: (config: InternetMonitorClientConfig) => {
6
6
  runtime: string;
7
7
  sha256: import("@smithy/types").HashConstructor;
8
- requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
9
- updateHttpClientConfig(key: never, value: never): void;
10
- httpHandlerConfigs(): {};
11
- }) | import("@smithy/fetch-http-handler").FetchHttpHandler;
8
+ requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
12
9
  apiVersion: string;
13
10
  urlParser: import("@smithy/types").UrlParser;
14
11
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
@@ -18,7 +18,7 @@ import {
18
18
  RetryInputConfig,
19
19
  RetryResolvedConfig,
20
20
  } from "@smithy/middleware-retry";
21
- import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
21
+ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
22
22
  import {
23
23
  Client as __Client,
24
24
  DefaultsMode as __DefaultsMode,
@@ -139,8 +139,8 @@ export type ServiceOutputTypes =
139
139
  | UntagResourceCommandOutput
140
140
  | UpdateMonitorCommandOutput;
141
141
  export interface ClientDefaults
142
- extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
143
- requestHandler?: __HttpHandler;
142
+ extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
143
+ requestHandler?: __HttpHandlerUserInput;
144
144
  sha256?: __ChecksumConstructor | __HashConstructor;
145
145
  urlParser?: __UrlParser;
146
146
  bodyLengthChecker?: __BodyLengthCalculator;
@@ -178,6 +178,7 @@ export interface ImpactedLocation {
178
178
  Status: HealthEventStatus | undefined;
179
179
  CausedBy?: NetworkImpairment;
180
180
  InternetHealth?: InternetHealth;
181
+ Ipv4Prefixes?: string[];
181
182
  }
182
183
  export declare const HealthEventImpactType: {
183
184
  readonly AVAILABILITY: "AVAILABILITY";
@@ -17,19 +17,7 @@ export declare const getRuntimeConfig: (
17
17
  maxAttempts: number | import("@smithy/types").Provider<number>;
18
18
  region: string | import("@smithy/types").Provider<any>;
19
19
  requestHandler:
20
- | (import("@smithy/types").RequestHandler<
21
- any,
22
- any,
23
- import("@smithy/types").HttpHandlerOptions
24
- > &
25
- import("@smithy/types").RequestHandler<
26
- import("@smithy/protocol-http").HttpRequest,
27
- import("@smithy/protocol-http").HttpResponse,
28
- import("@smithy/types").HttpHandlerOptions
29
- > & {
30
- updateHttpClientConfig(key: never, value: never): void;
31
- httpHandlerConfigs(): {};
32
- })
20
+ | import("@smithy/protocol-http").HttpHandler<any>
33
21
  | RequestHandler;
34
22
  retryMode: string | import("@smithy/types").Provider<string>;
35
23
  sha256: import("@smithy/types").HashConstructor;
@@ -21,20 +21,8 @@ export declare const getRuntimeConfig: (
21
21
  maxAttempts: number | import("@smithy/types").Provider<number>;
22
22
  region: string | import("@smithy/types").Provider<string>;
23
23
  requestHandler:
24
- | (import("@smithy/types").RequestHandler<
25
- any,
26
- any,
27
- import("@smithy/types").HttpHandlerOptions
28
- > &
29
- import("@smithy/types").RequestHandler<
30
- import("@smithy/protocol-http").HttpRequest,
31
- import("@smithy/protocol-http").HttpResponse,
32
- import("@smithy/types").HttpHandlerOptions
33
- > & {
34
- updateHttpClientConfig(key: never, value: never): void;
35
- httpHandlerConfigs(): {};
36
- })
37
- | RequestHandler;
24
+ | RequestHandler
25
+ | import("@smithy/protocol-http").HttpHandler<any>;
38
26
  retryMode: string | import("@smithy/types").Provider<string>;
39
27
  sha256: import("@smithy/types").HashConstructor;
40
28
  streamCollector: import("@smithy/types").StreamCollector;
@@ -5,19 +5,10 @@ export declare const getRuntimeConfig: (
5
5
  runtime: string;
6
6
  sha256: import("@smithy/types").HashConstructor;
7
7
  requestHandler:
8
- | (import("@smithy/types").RequestHandler<
9
- any,
10
- any,
11
- import("@smithy/types").HttpHandlerOptions
12
- > &
13
- import("@smithy/types").RequestHandler<
14
- import("@smithy/protocol-http").HttpRequest,
15
- import("@smithy/protocol-http").HttpResponse,
16
- import("@smithy/types").HttpHandlerOptions
17
- > & {
18
- updateHttpClientConfig(key: never, value: never): void;
19
- httpHandlerConfigs(): {};
20
- })
8
+ | import("@smithy/types").NodeHttpHandlerOptions
9
+ | import("@smithy/types").FetchHttpHandlerOptions
10
+ | Record<string, unknown>
11
+ | import("@smithy/protocol-http").HttpHandler<any>
21
12
  | import("@smithy/fetch-http-handler").FetchHttpHandler;
22
13
  apiVersion: string;
23
14
  urlParser: import("@smithy/types").UrlParser;
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.515.0",
4
+ "version": "3.521.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",
@@ -20,42 +20,42 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.515.0",
24
- "@aws-sdk/core": "3.513.0",
25
- "@aws-sdk/credential-provider-node": "3.515.0",
26
- "@aws-sdk/middleware-host-header": "3.515.0",
27
- "@aws-sdk/middleware-logger": "3.515.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.515.0",
29
- "@aws-sdk/middleware-user-agent": "3.515.0",
30
- "@aws-sdk/region-config-resolver": "3.515.0",
31
- "@aws-sdk/types": "3.515.0",
32
- "@aws-sdk/util-endpoints": "3.515.0",
33
- "@aws-sdk/util-user-agent-browser": "3.515.0",
34
- "@aws-sdk/util-user-agent-node": "3.515.0",
35
- "@smithy/config-resolver": "^2.1.1",
36
- "@smithy/core": "^1.3.2",
37
- "@smithy/fetch-http-handler": "^2.4.1",
38
- "@smithy/hash-node": "^2.1.1",
39
- "@smithy/invalid-dependency": "^2.1.1",
40
- "@smithy/middleware-content-length": "^2.1.1",
41
- "@smithy/middleware-endpoint": "^2.4.1",
42
- "@smithy/middleware-retry": "^2.1.1",
43
- "@smithy/middleware-serde": "^2.1.1",
44
- "@smithy/middleware-stack": "^2.1.1",
45
- "@smithy/node-config-provider": "^2.2.1",
46
- "@smithy/node-http-handler": "^2.3.1",
47
- "@smithy/protocol-http": "^3.1.1",
48
- "@smithy/smithy-client": "^2.3.1",
49
- "@smithy/types": "^2.9.1",
50
- "@smithy/url-parser": "^2.1.1",
23
+ "@aws-sdk/client-sts": "3.521.0",
24
+ "@aws-sdk/core": "3.521.0",
25
+ "@aws-sdk/credential-provider-node": "3.521.0",
26
+ "@aws-sdk/middleware-host-header": "3.521.0",
27
+ "@aws-sdk/middleware-logger": "3.521.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.521.0",
29
+ "@aws-sdk/middleware-user-agent": "3.521.0",
30
+ "@aws-sdk/region-config-resolver": "3.521.0",
31
+ "@aws-sdk/types": "3.521.0",
32
+ "@aws-sdk/util-endpoints": "3.521.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.521.0",
34
+ "@aws-sdk/util-user-agent-node": "3.521.0",
35
+ "@smithy/config-resolver": "^2.1.2",
36
+ "@smithy/core": "^1.3.3",
37
+ "@smithy/fetch-http-handler": "^2.4.2",
38
+ "@smithy/hash-node": "^2.1.2",
39
+ "@smithy/invalid-dependency": "^2.1.2",
40
+ "@smithy/middleware-content-length": "^2.1.2",
41
+ "@smithy/middleware-endpoint": "^2.4.2",
42
+ "@smithy/middleware-retry": "^2.1.2",
43
+ "@smithy/middleware-serde": "^2.1.2",
44
+ "@smithy/middleware-stack": "^2.1.2",
45
+ "@smithy/node-config-provider": "^2.2.2",
46
+ "@smithy/node-http-handler": "^2.4.0",
47
+ "@smithy/protocol-http": "^3.2.0",
48
+ "@smithy/smithy-client": "^2.4.0",
49
+ "@smithy/types": "^2.10.0",
50
+ "@smithy/url-parser": "^2.1.2",
51
51
  "@smithy/util-base64": "^2.1.1",
52
52
  "@smithy/util-body-length-browser": "^2.1.1",
53
53
  "@smithy/util-body-length-node": "^2.2.1",
54
- "@smithy/util-defaults-mode-browser": "^2.1.1",
55
- "@smithy/util-defaults-mode-node": "^2.2.0",
56
- "@smithy/util-endpoints": "^1.1.1",
57
- "@smithy/util-middleware": "^2.1.1",
58
- "@smithy/util-retry": "^2.1.1",
54
+ "@smithy/util-defaults-mode-browser": "^2.1.2",
55
+ "@smithy/util-defaults-mode-node": "^2.2.1",
56
+ "@smithy/util-endpoints": "^1.1.2",
57
+ "@smithy/util-middleware": "^2.1.2",
58
+ "@smithy/util-retry": "^2.1.2",
59
59
  "@smithy/util-utf8": "^2.1.1",
60
60
  "tslib": "^2.5.0",
61
61
  "uuid": "^9.0.1"