@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.
- package/LICENSE +201 -0
- package/README.md +309 -0
- package/dist-cjs/NetworkMonitor.js +35 -0
- package/dist-cjs/NetworkMonitorClient.js +43 -0
- package/dist-cjs/commands/CreateMonitorCommand.js +51 -0
- package/dist-cjs/commands/CreateProbeCommand.js +51 -0
- package/dist-cjs/commands/DeleteMonitorCommand.js +51 -0
- package/dist-cjs/commands/DeleteProbeCommand.js +51 -0
- package/dist-cjs/commands/GetMonitorCommand.js +51 -0
- package/dist-cjs/commands/GetProbeCommand.js +51 -0
- package/dist-cjs/commands/ListMonitorsCommand.js +51 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +51 -0
- package/dist-cjs/commands/TagResourceCommand.js +51 -0
- package/dist-cjs/commands/UntagResourceCommand.js +51 -0
- package/dist-cjs/commands/UpdateMonitorCommand.js +51 -0
- package/dist-cjs/commands/UpdateProbeCommand.js +51 -0
- package/dist-cjs/commands/index.js +15 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +12 -0
- package/dist-cjs/models/NetworkMonitorServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +122 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListMonitorsPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +5 -0
- package/dist-cjs/protocols/Aws_restJson1.js +957 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +24 -0
- package/dist-cjs/runtimeExtensions.js +22 -0
- package/dist-es/NetworkMonitor.js +31 -0
- package/dist-es/NetworkMonitorClient.js +39 -0
- package/dist-es/commands/CreateMonitorCommand.js +47 -0
- package/dist-es/commands/CreateProbeCommand.js +47 -0
- package/dist-es/commands/DeleteMonitorCommand.js +47 -0
- package/dist-es/commands/DeleteProbeCommand.js +47 -0
- package/dist-es/commands/GetMonitorCommand.js +47 -0
- package/dist-es/commands/GetProbeCommand.js +47 -0
- package/dist-es/commands/ListMonitorsCommand.js +47 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +47 -0
- package/dist-es/commands/TagResourceCommand.js +47 -0
- package/dist-es/commands/UntagResourceCommand.js +47 -0
- package/dist-es/commands/UpdateMonitorCommand.js +47 -0
- package/dist-es/commands/UpdateProbeCommand.js +47 -0
- package/dist-es/commands/index.js +12 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +7 -0
- package/dist-es/models/NetworkMonitorServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +112 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListMonitorsPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +930 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +20 -0
- package/dist-es/runtimeExtensions.js +18 -0
- package/dist-types/NetworkMonitor.d.ts +102 -0
- package/dist-types/NetworkMonitorClient.d.ts +189 -0
- package/dist-types/commands/CreateMonitorCommand.d.ts +114 -0
- package/dist-types/commands/CreateProbeCommand.d.ts +119 -0
- package/dist-types/commands/DeleteMonitorCommand.d.ts +86 -0
- package/dist-types/commands/DeleteProbeCommand.d.ts +90 -0
- package/dist-types/commands/GetMonitorCommand.d.ts +115 -0
- package/dist-types/commands/GetProbeCommand.d.ts +103 -0
- package/dist-types/commands/ListMonitorsCommand.d.ts +98 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +93 -0
- package/dist-types/commands/TagResourceCommand.d.ts +92 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +92 -0
- package/dist-types/commands/UpdateMonitorCommand.d.ts +98 -0
- package/dist-types/commands/UpdateProbeCommand.d.ts +111 -0
- package/dist-types/commands/index.d.ts +12 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +22 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +8 -0
- package/dist-types/index.d.ts +23 -0
- package/dist-types/models/NetworkMonitorServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +902 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListMonitorsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +110 -0
- package/dist-types/runtimeConfig.browser.d.ts +46 -0
- package/dist-types/runtimeConfig.d.ts +46 -0
- package/dist-types/runtimeConfig.native.d.ts +45 -0
- package/dist-types/runtimeConfig.shared.d.ts +19 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/NetworkMonitor.d.ts +211 -0
- package/dist-types/ts3.4/NetworkMonitorClient.d.ts +191 -0
- package/dist-types/ts3.4/commands/CreateMonitorCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/CreateProbeCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DeleteMonitorCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DeleteProbeCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetMonitorCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetProbeCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListMonitorsCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UpdateMonitorCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UpdateProbeCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/index.d.ts +12 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
- package/dist-types/ts3.4/index.d.ts +10 -0
- package/dist-types/ts3.4/models/NetworkMonitorServiceException.d.ts +8 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +254 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListMonitorsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +149 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/package.json +103 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
|
+
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
4
|
+
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
|
|
6
|
+
import { invalidProvider } from "@smithy/invalid-dependency";
|
|
7
|
+
import { calculateBodyLength } from "@smithy/util-body-length-browser";
|
|
8
|
+
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
9
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
10
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
11
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
|
|
12
|
+
export const getRuntimeConfig = (config) => {
|
|
13
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
14
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
15
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
+
return {
|
|
17
|
+
...clientSharedValues,
|
|
18
|
+
...config,
|
|
19
|
+
runtime: "browser",
|
|
20
|
+
defaultsMode,
|
|
21
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
22
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
23
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
24
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
25
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
26
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
27
|
+
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
28
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
29
|
+
sha256: config?.sha256 ?? Sha256,
|
|
30
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
31
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
32
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
3
|
+
import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
|
4
|
+
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
5
|
+
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
6
|
+
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
7
|
+
import { Hash } from "@smithy/hash-node";
|
|
8
|
+
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
|
9
|
+
import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
|
|
10
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
11
|
+
import { calculateBodyLength } from "@smithy/util-body-length-node";
|
|
12
|
+
import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
13
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
14
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
15
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
|
|
16
|
+
import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
|
|
17
|
+
export const getRuntimeConfig = (config) => {
|
|
18
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
19
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
21
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
22
|
+
awsCheckVersion(process.version);
|
|
23
|
+
return {
|
|
24
|
+
...clientSharedValues,
|
|
25
|
+
...config,
|
|
26
|
+
runtime: "node",
|
|
27
|
+
defaultsMode,
|
|
28
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
29
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
|
|
30
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
31
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
32
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
33
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
34
|
+
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
35
|
+
retryMode: config?.retryMode ??
|
|
36
|
+
loadNodeConfig({
|
|
37
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
38
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
39
|
+
}),
|
|
40
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
41
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
42
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
43
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
|
+
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
|
+
export const getRuntimeConfig = (config) => {
|
|
4
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
5
|
+
return {
|
|
6
|
+
...browserDefaults,
|
|
7
|
+
...config,
|
|
8
|
+
runtime: "react-native",
|
|
9
|
+
sha256: config?.sha256 ?? Sha256,
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { NoOpLogger } from "@smithy/smithy-client";
|
|
2
|
+
import { parseUrl } from "@smithy/url-parser";
|
|
3
|
+
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
4
|
+
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
5
|
+
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
6
|
+
export const getRuntimeConfig = (config) => {
|
|
7
|
+
return {
|
|
8
|
+
apiVersion: "2023-08-01",
|
|
9
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
10
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
11
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
12
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
13
|
+
extensions: config?.extensions ?? [],
|
|
14
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
15
|
+
serviceId: config?.serviceId ?? "NetworkMonitor",
|
|
16
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
17
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
18
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
|
|
2
|
+
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
|
+
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
|
+
const asPartial = (t) => t;
|
|
5
|
+
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
6
|
+
const extensionConfiguration = {
|
|
7
|
+
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
|
8
|
+
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
9
|
+
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
|
10
|
+
};
|
|
11
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
12
|
+
return {
|
|
13
|
+
...runtimeConfig,
|
|
14
|
+
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
15
|
+
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
16
|
+
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
|
+
import { CreateMonitorCommandInput, CreateMonitorCommandOutput } from "./commands/CreateMonitorCommand";
|
|
3
|
+
import { CreateProbeCommandInput, CreateProbeCommandOutput } from "./commands/CreateProbeCommand";
|
|
4
|
+
import { DeleteMonitorCommandInput, DeleteMonitorCommandOutput } from "./commands/DeleteMonitorCommand";
|
|
5
|
+
import { DeleteProbeCommandInput, DeleteProbeCommandOutput } from "./commands/DeleteProbeCommand";
|
|
6
|
+
import { GetMonitorCommandInput, GetMonitorCommandOutput } from "./commands/GetMonitorCommand";
|
|
7
|
+
import { GetProbeCommandInput, GetProbeCommandOutput } from "./commands/GetProbeCommand";
|
|
8
|
+
import { ListMonitorsCommandInput, ListMonitorsCommandOutput } from "./commands/ListMonitorsCommand";
|
|
9
|
+
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
10
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
11
|
+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
12
|
+
import { UpdateMonitorCommandInput, UpdateMonitorCommandOutput } from "./commands/UpdateMonitorCommand";
|
|
13
|
+
import { UpdateProbeCommandInput, UpdateProbeCommandOutput } from "./commands/UpdateProbeCommand";
|
|
14
|
+
import { NetworkMonitorClient } from "./NetworkMonitorClient";
|
|
15
|
+
export interface NetworkMonitor {
|
|
16
|
+
/**
|
|
17
|
+
* @see {@link CreateMonitorCommand}
|
|
18
|
+
*/
|
|
19
|
+
createMonitor(args: CreateMonitorCommandInput, options?: __HttpHandlerOptions): Promise<CreateMonitorCommandOutput>;
|
|
20
|
+
createMonitor(args: CreateMonitorCommandInput, cb: (err: any, data?: CreateMonitorCommandOutput) => void): void;
|
|
21
|
+
createMonitor(args: CreateMonitorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateMonitorCommandOutput) => void): void;
|
|
22
|
+
/**
|
|
23
|
+
* @see {@link CreateProbeCommand}
|
|
24
|
+
*/
|
|
25
|
+
createProbe(args: CreateProbeCommandInput, options?: __HttpHandlerOptions): Promise<CreateProbeCommandOutput>;
|
|
26
|
+
createProbe(args: CreateProbeCommandInput, cb: (err: any, data?: CreateProbeCommandOutput) => void): void;
|
|
27
|
+
createProbe(args: CreateProbeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateProbeCommandOutput) => void): void;
|
|
28
|
+
/**
|
|
29
|
+
* @see {@link DeleteMonitorCommand}
|
|
30
|
+
*/
|
|
31
|
+
deleteMonitor(args: DeleteMonitorCommandInput, options?: __HttpHandlerOptions): Promise<DeleteMonitorCommandOutput>;
|
|
32
|
+
deleteMonitor(args: DeleteMonitorCommandInput, cb: (err: any, data?: DeleteMonitorCommandOutput) => void): void;
|
|
33
|
+
deleteMonitor(args: DeleteMonitorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteMonitorCommandOutput) => void): void;
|
|
34
|
+
/**
|
|
35
|
+
* @see {@link DeleteProbeCommand}
|
|
36
|
+
*/
|
|
37
|
+
deleteProbe(args: DeleteProbeCommandInput, options?: __HttpHandlerOptions): Promise<DeleteProbeCommandOutput>;
|
|
38
|
+
deleteProbe(args: DeleteProbeCommandInput, cb: (err: any, data?: DeleteProbeCommandOutput) => void): void;
|
|
39
|
+
deleteProbe(args: DeleteProbeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteProbeCommandOutput) => void): void;
|
|
40
|
+
/**
|
|
41
|
+
* @see {@link GetMonitorCommand}
|
|
42
|
+
*/
|
|
43
|
+
getMonitor(args: GetMonitorCommandInput, options?: __HttpHandlerOptions): Promise<GetMonitorCommandOutput>;
|
|
44
|
+
getMonitor(args: GetMonitorCommandInput, cb: (err: any, data?: GetMonitorCommandOutput) => void): void;
|
|
45
|
+
getMonitor(args: GetMonitorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMonitorCommandOutput) => void): void;
|
|
46
|
+
/**
|
|
47
|
+
* @see {@link GetProbeCommand}
|
|
48
|
+
*/
|
|
49
|
+
getProbe(args: GetProbeCommandInput, options?: __HttpHandlerOptions): Promise<GetProbeCommandOutput>;
|
|
50
|
+
getProbe(args: GetProbeCommandInput, cb: (err: any, data?: GetProbeCommandOutput) => void): void;
|
|
51
|
+
getProbe(args: GetProbeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetProbeCommandOutput) => void): void;
|
|
52
|
+
/**
|
|
53
|
+
* @see {@link ListMonitorsCommand}
|
|
54
|
+
*/
|
|
55
|
+
listMonitors(args: ListMonitorsCommandInput, options?: __HttpHandlerOptions): Promise<ListMonitorsCommandOutput>;
|
|
56
|
+
listMonitors(args: ListMonitorsCommandInput, cb: (err: any, data?: ListMonitorsCommandOutput) => void): void;
|
|
57
|
+
listMonitors(args: ListMonitorsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListMonitorsCommandOutput) => void): void;
|
|
58
|
+
/**
|
|
59
|
+
* @see {@link ListTagsForResourceCommand}
|
|
60
|
+
*/
|
|
61
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
62
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
63
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
64
|
+
/**
|
|
65
|
+
* @see {@link TagResourceCommand}
|
|
66
|
+
*/
|
|
67
|
+
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
68
|
+
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
69
|
+
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
70
|
+
/**
|
|
71
|
+
* @see {@link UntagResourceCommand}
|
|
72
|
+
*/
|
|
73
|
+
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
74
|
+
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
75
|
+
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
76
|
+
/**
|
|
77
|
+
* @see {@link UpdateMonitorCommand}
|
|
78
|
+
*/
|
|
79
|
+
updateMonitor(args: UpdateMonitorCommandInput, options?: __HttpHandlerOptions): Promise<UpdateMonitorCommandOutput>;
|
|
80
|
+
updateMonitor(args: UpdateMonitorCommandInput, cb: (err: any, data?: UpdateMonitorCommandOutput) => void): void;
|
|
81
|
+
updateMonitor(args: UpdateMonitorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateMonitorCommandOutput) => void): void;
|
|
82
|
+
/**
|
|
83
|
+
* @see {@link UpdateProbeCommand}
|
|
84
|
+
*/
|
|
85
|
+
updateProbe(args: UpdateProbeCommandInput, options?: __HttpHandlerOptions): Promise<UpdateProbeCommandOutput>;
|
|
86
|
+
updateProbe(args: UpdateProbeCommandInput, cb: (err: any, data?: UpdateProbeCommandOutput) => void): void;
|
|
87
|
+
updateProbe(args: UpdateProbeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateProbeCommandOutput) => void): void;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* @public
|
|
91
|
+
* <p>Amazon CloudWatch Network Monitor is an Amazon Web Services active network monitoring
|
|
92
|
+
* service that identifies if a network issues exists within the Amazon Web Services network
|
|
93
|
+
* or your own company network. Within Network Monitor you'll choose the source VPCs and
|
|
94
|
+
* subnets from the Amazon Web Services network in which you operate and then you'll choose
|
|
95
|
+
* the destination IP addresses from your on-premises network. From these sources and
|
|
96
|
+
* destinations, Network Monitor creates a monitor containing all the possible source and
|
|
97
|
+
* destination combinations, each of which is called a probe, within a single monitor.
|
|
98
|
+
* These probes then monitor network traffic to help you identify where network issues might be affecting your traffic.</p>
|
|
99
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/what-is-network-monitor.html">Using Amazon CloudWatch Network Monitor</a> in the <i>Amazon CloudWatch User Guide</i>.</p>
|
|
100
|
+
*/
|
|
101
|
+
export declare class NetworkMonitor extends NetworkMonitorClient implements NetworkMonitor {
|
|
102
|
+
}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
2
|
+
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
3
|
+
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
4
|
+
import { Credentials as __Credentials } from "@aws-sdk/types";
|
|
5
|
+
import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
|
|
6
|
+
import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
|
|
7
|
+
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
8
|
+
import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
|
|
9
|
+
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
10
|
+
import { 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";
|
|
11
|
+
import { CreateMonitorCommandInput, CreateMonitorCommandOutput } from "./commands/CreateMonitorCommand";
|
|
12
|
+
import { CreateProbeCommandInput, CreateProbeCommandOutput } from "./commands/CreateProbeCommand";
|
|
13
|
+
import { DeleteMonitorCommandInput, DeleteMonitorCommandOutput } from "./commands/DeleteMonitorCommand";
|
|
14
|
+
import { DeleteProbeCommandInput, DeleteProbeCommandOutput } from "./commands/DeleteProbeCommand";
|
|
15
|
+
import { GetMonitorCommandInput, GetMonitorCommandOutput } from "./commands/GetMonitorCommand";
|
|
16
|
+
import { GetProbeCommandInput, GetProbeCommandOutput } from "./commands/GetProbeCommand";
|
|
17
|
+
import { ListMonitorsCommandInput, ListMonitorsCommandOutput } from "./commands/ListMonitorsCommand";
|
|
18
|
+
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
19
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
20
|
+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
21
|
+
import { UpdateMonitorCommandInput, UpdateMonitorCommandOutput } from "./commands/UpdateMonitorCommand";
|
|
22
|
+
import { UpdateProbeCommandInput, UpdateProbeCommandOutput } from "./commands/UpdateProbeCommand";
|
|
23
|
+
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
24
|
+
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
25
|
+
export { __Client };
|
|
26
|
+
/**
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
29
|
+
export type ServiceInputTypes = CreateMonitorCommandInput | CreateProbeCommandInput | DeleteMonitorCommandInput | DeleteProbeCommandInput | GetMonitorCommandInput | GetProbeCommandInput | ListMonitorsCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateMonitorCommandInput | UpdateProbeCommandInput;
|
|
30
|
+
/**
|
|
31
|
+
* @public
|
|
32
|
+
*/
|
|
33
|
+
export type ServiceOutputTypes = CreateMonitorCommandOutput | CreateProbeCommandOutput | DeleteMonitorCommandOutput | DeleteProbeCommandOutput | GetMonitorCommandOutput | GetProbeCommandOutput | ListMonitorsCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateMonitorCommandOutput | UpdateProbeCommandOutput;
|
|
34
|
+
/**
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
38
|
+
/**
|
|
39
|
+
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
40
|
+
*/
|
|
41
|
+
requestHandler?: __HttpHandler;
|
|
42
|
+
/**
|
|
43
|
+
* A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
|
|
44
|
+
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
45
|
+
* @internal
|
|
46
|
+
*/
|
|
47
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
48
|
+
/**
|
|
49
|
+
* The function that will be used to convert strings into HTTP endpoints.
|
|
50
|
+
* @internal
|
|
51
|
+
*/
|
|
52
|
+
urlParser?: __UrlParser;
|
|
53
|
+
/**
|
|
54
|
+
* A function that can calculate the length of a request body.
|
|
55
|
+
* @internal
|
|
56
|
+
*/
|
|
57
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
58
|
+
/**
|
|
59
|
+
* A function that converts a stream into an array of bytes.
|
|
60
|
+
* @internal
|
|
61
|
+
*/
|
|
62
|
+
streamCollector?: __StreamCollector;
|
|
63
|
+
/**
|
|
64
|
+
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
65
|
+
* @internal
|
|
66
|
+
*/
|
|
67
|
+
base64Decoder?: __Decoder;
|
|
68
|
+
/**
|
|
69
|
+
* The function that will be used to convert binary data to a base64-encoded string.
|
|
70
|
+
* @internal
|
|
71
|
+
*/
|
|
72
|
+
base64Encoder?: __Encoder;
|
|
73
|
+
/**
|
|
74
|
+
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
75
|
+
* @internal
|
|
76
|
+
*/
|
|
77
|
+
utf8Decoder?: __Decoder;
|
|
78
|
+
/**
|
|
79
|
+
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
80
|
+
* @internal
|
|
81
|
+
*/
|
|
82
|
+
utf8Encoder?: __Encoder;
|
|
83
|
+
/**
|
|
84
|
+
* The runtime environment.
|
|
85
|
+
* @internal
|
|
86
|
+
*/
|
|
87
|
+
runtime?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
90
|
+
* trait of an operation.
|
|
91
|
+
*/
|
|
92
|
+
disableHostPrefix?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Unique service identifier.
|
|
95
|
+
* @internal
|
|
96
|
+
*/
|
|
97
|
+
serviceId?: string;
|
|
98
|
+
/**
|
|
99
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
100
|
+
*/
|
|
101
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
102
|
+
/**
|
|
103
|
+
* Enables FIPS compatible endpoints.
|
|
104
|
+
*/
|
|
105
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
106
|
+
/**
|
|
107
|
+
* The AWS region to which this client will send requests
|
|
108
|
+
*/
|
|
109
|
+
region?: string | __Provider<string>;
|
|
110
|
+
/**
|
|
111
|
+
* Default credentials provider; Not available in browser runtime.
|
|
112
|
+
* @internal
|
|
113
|
+
*/
|
|
114
|
+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
115
|
+
/**
|
|
116
|
+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
117
|
+
* @internal
|
|
118
|
+
*/
|
|
119
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
120
|
+
/**
|
|
121
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
122
|
+
*/
|
|
123
|
+
maxAttempts?: number | __Provider<number>;
|
|
124
|
+
/**
|
|
125
|
+
* Specifies which retry algorithm to use.
|
|
126
|
+
* @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
|
|
127
|
+
*
|
|
128
|
+
*/
|
|
129
|
+
retryMode?: string | __Provider<string>;
|
|
130
|
+
/**
|
|
131
|
+
* Optional logger for logging debug/info/warn/error.
|
|
132
|
+
*/
|
|
133
|
+
logger?: __Logger;
|
|
134
|
+
/**
|
|
135
|
+
* Optional extensions
|
|
136
|
+
*/
|
|
137
|
+
extensions?: RuntimeExtension[];
|
|
138
|
+
/**
|
|
139
|
+
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
140
|
+
*/
|
|
141
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* @public
|
|
145
|
+
*/
|
|
146
|
+
export type NetworkMonitorClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
|
|
147
|
+
/**
|
|
148
|
+
* @public
|
|
149
|
+
*
|
|
150
|
+
* The configuration interface of NetworkMonitorClient class constructor that set the region, credentials and other options.
|
|
151
|
+
*/
|
|
152
|
+
export interface NetworkMonitorClientConfig extends NetworkMonitorClientConfigType {
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* @public
|
|
156
|
+
*/
|
|
157
|
+
export type NetworkMonitorClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
|
|
158
|
+
/**
|
|
159
|
+
* @public
|
|
160
|
+
*
|
|
161
|
+
* The resolved configuration interface of NetworkMonitorClient class. This is resolved and normalized from the {@link NetworkMonitorClientConfig | constructor configuration interface}.
|
|
162
|
+
*/
|
|
163
|
+
export interface NetworkMonitorClientResolvedConfig extends NetworkMonitorClientResolvedConfigType {
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* @public
|
|
167
|
+
* <p>Amazon CloudWatch Network Monitor is an Amazon Web Services active network monitoring
|
|
168
|
+
* service that identifies if a network issues exists within the Amazon Web Services network
|
|
169
|
+
* or your own company network. Within Network Monitor you'll choose the source VPCs and
|
|
170
|
+
* subnets from the Amazon Web Services network in which you operate and then you'll choose
|
|
171
|
+
* the destination IP addresses from your on-premises network. From these sources and
|
|
172
|
+
* destinations, Network Monitor creates a monitor containing all the possible source and
|
|
173
|
+
* destination combinations, each of which is called a probe, within a single monitor.
|
|
174
|
+
* These probes then monitor network traffic to help you identify where network issues might be affecting your traffic.</p>
|
|
175
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/what-is-network-monitor.html">Using Amazon CloudWatch Network Monitor</a> in the <i>Amazon CloudWatch User Guide</i>.</p>
|
|
176
|
+
*/
|
|
177
|
+
export declare class NetworkMonitorClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, NetworkMonitorClientResolvedConfig> {
|
|
178
|
+
/**
|
|
179
|
+
* The resolved configuration of NetworkMonitorClient class. This is resolved and normalized from the {@link NetworkMonitorClientConfig | constructor configuration interface}.
|
|
180
|
+
*/
|
|
181
|
+
readonly config: NetworkMonitorClientResolvedConfig;
|
|
182
|
+
constructor(...[configuration]: __CheckOptionalClientConfig<NetworkMonitorClientConfig>);
|
|
183
|
+
/**
|
|
184
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
185
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
186
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
187
|
+
*/
|
|
188
|
+
destroy(): void;
|
|
189
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
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 { CreateMonitorInput, CreateMonitorOutput } 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 CreateMonitorCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateMonitorCommandInput extends CreateMonitorInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateMonitorCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateMonitorCommandOutput extends CreateMonitorOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Creates a monitor between a source subnet and destination IP address. Within a monitor you'll create one or more probes that monitor network traffic between your source Amazon Web Services VPC subnets and your destination IP addresses. Each probe then aggregates and sends metrics to Amazon CloudWatch.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { NetworkMonitorClient, CreateMonitorCommand } from "@aws-sdk/client-networkmonitor"; // ES Modules import
|
|
31
|
+
* // const { NetworkMonitorClient, CreateMonitorCommand } = require("@aws-sdk/client-networkmonitor"); // CommonJS import
|
|
32
|
+
* const client = new NetworkMonitorClient(config);
|
|
33
|
+
* const input = { // CreateMonitorInput
|
|
34
|
+
* monitorName: "STRING_VALUE", // required
|
|
35
|
+
* probes: [ // CreateMonitorProbeInputList
|
|
36
|
+
* { // CreateMonitorProbeInput
|
|
37
|
+
* sourceArn: "STRING_VALUE", // required
|
|
38
|
+
* destination: "STRING_VALUE", // required
|
|
39
|
+
* destinationPort: Number("int"),
|
|
40
|
+
* protocol: "TCP" || "ICMP", // required
|
|
41
|
+
* packetSize: Number("int"),
|
|
42
|
+
* probeTags: { // TagMap
|
|
43
|
+
* "<keys>": "STRING_VALUE",
|
|
44
|
+
* },
|
|
45
|
+
* },
|
|
46
|
+
* ],
|
|
47
|
+
* aggregationPeriod: Number("long"),
|
|
48
|
+
* clientToken: "STRING_VALUE",
|
|
49
|
+
* tags: {
|
|
50
|
+
* "<keys>": "STRING_VALUE",
|
|
51
|
+
* },
|
|
52
|
+
* };
|
|
53
|
+
* const command = new CreateMonitorCommand(input);
|
|
54
|
+
* const response = await client.send(command);
|
|
55
|
+
* // { // CreateMonitorOutput
|
|
56
|
+
* // monitorArn: "STRING_VALUE", // required
|
|
57
|
+
* // monitorName: "STRING_VALUE", // required
|
|
58
|
+
* // state: "PENDING" || "ACTIVE" || "INACTIVE" || "ERROR" || "DELETING", // required
|
|
59
|
+
* // aggregationPeriod: Number("long"),
|
|
60
|
+
* // tags: { // TagMap
|
|
61
|
+
* // "<keys>": "STRING_VALUE",
|
|
62
|
+
* // },
|
|
63
|
+
* // };
|
|
64
|
+
*
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* @param CreateMonitorCommandInput - {@link CreateMonitorCommandInput}
|
|
68
|
+
* @returns {@link CreateMonitorCommandOutput}
|
|
69
|
+
* @see {@link CreateMonitorCommandInput} for command's `input` shape.
|
|
70
|
+
* @see {@link CreateMonitorCommandOutput} for command's `response` shape.
|
|
71
|
+
* @see {@link NetworkMonitorClientResolvedConfig | config} for NetworkMonitorClient's `config` shape.
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
74
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ConflictException} (client fault)
|
|
77
|
+
* <p>This operation attempted to create a resource that already exists.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link InternalServerException} (server fault)
|
|
80
|
+
* <p>The request processing has failed because of an unknown error, exception or failure.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
83
|
+
* <p>This request exceeds a service quota.</p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
86
|
+
* <p>The request was denied due to request throttling</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link ValidationException} (client fault)
|
|
89
|
+
* <p>One of the parameters for the request is not valid.</p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link NetworkMonitorServiceException}
|
|
92
|
+
* <p>Base exception class for all service exceptions from NetworkMonitor service.</p>
|
|
93
|
+
*
|
|
94
|
+
*/
|
|
95
|
+
export declare class CreateMonitorCommand extends $Command<CreateMonitorCommandInput, CreateMonitorCommandOutput, NetworkMonitorClientResolvedConfig> {
|
|
96
|
+
readonly input: CreateMonitorCommandInput;
|
|
97
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
98
|
+
/**
|
|
99
|
+
* @public
|
|
100
|
+
*/
|
|
101
|
+
constructor(input: CreateMonitorCommandInput);
|
|
102
|
+
/**
|
|
103
|
+
* @internal
|
|
104
|
+
*/
|
|
105
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: NetworkMonitorClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateMonitorCommandInput, CreateMonitorCommandOutput>;
|
|
106
|
+
/**
|
|
107
|
+
* @internal
|
|
108
|
+
*/
|
|
109
|
+
private serialize;
|
|
110
|
+
/**
|
|
111
|
+
* @internal
|
|
112
|
+
*/
|
|
113
|
+
private deserialize;
|
|
114
|
+
}
|