@aws-sdk/client-application-signals 3.594.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 +345 -0
- package/dist-cjs/ApplicationSignals.js +41 -0
- package/dist-cjs/ApplicationSignalsClient.js +56 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/commands/BatchGetServiceLevelObjectiveBudgetReportCommand.js +28 -0
- package/dist-cjs/commands/CreateServiceLevelObjectiveCommand.js +28 -0
- package/dist-cjs/commands/DeleteServiceLevelObjectiveCommand.js +28 -0
- package/dist-cjs/commands/GetServiceCommand.js +28 -0
- package/dist-cjs/commands/GetServiceLevelObjectiveCommand.js +28 -0
- package/dist-cjs/commands/ListServiceDependenciesCommand.js +28 -0
- package/dist-cjs/commands/ListServiceDependentsCommand.js +28 -0
- package/dist-cjs/commands/ListServiceLevelObjectivesCommand.js +28 -0
- package/dist-cjs/commands/ListServiceOperationsCommand.js +28 -0
- package/dist-cjs/commands/ListServicesCommand.js +28 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +28 -0
- package/dist-cjs/commands/StartDiscoveryCommand.js +28 -0
- package/dist-cjs/commands/TagResourceCommand.js +28 -0
- package/dist-cjs/commands/UntagResourceCommand.js +28 -0
- package/dist-cjs/commands/UpdateServiceLevelObjectiveCommand.js +28 -0
- package/dist-cjs/commands/index.js +18 -0
- package/dist-cjs/endpoint/EndpointParameters.js +16 -0
- package/dist-cjs/endpoint/endpointResolver.js +14 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/ApplicationSignalsServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +148 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListServiceDependenciesPaginator.js +7 -0
- package/dist-cjs/pagination/ListServiceDependentsPaginator.js +7 -0
- package/dist-cjs/pagination/ListServiceLevelObjectivesPaginator.js +7 -0
- package/dist-cjs/pagination/ListServiceOperationsPaginator.js +7 -0
- package/dist-cjs/pagination/ListServicesPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +9 -0
- package/dist-cjs/protocols/Aws_restJson1.js +713 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +49 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +34 -0
- package/dist-cjs/runtimeExtensions.js +25 -0
- package/dist-es/ApplicationSignals.js +37 -0
- package/dist-es/ApplicationSignalsClient.js +52 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/BatchGetServiceLevelObjectiveBudgetReportCommand.js +24 -0
- package/dist-es/commands/CreateServiceLevelObjectiveCommand.js +24 -0
- package/dist-es/commands/DeleteServiceLevelObjectiveCommand.js +24 -0
- package/dist-es/commands/GetServiceCommand.js +24 -0
- package/dist-es/commands/GetServiceLevelObjectiveCommand.js +24 -0
- package/dist-es/commands/ListServiceDependenciesCommand.js +24 -0
- package/dist-es/commands/ListServiceDependentsCommand.js +24 -0
- package/dist-es/commands/ListServiceLevelObjectivesCommand.js +24 -0
- package/dist-es/commands/ListServiceOperationsCommand.js +24 -0
- package/dist-es/commands/ListServicesCommand.js +24 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +24 -0
- package/dist-es/commands/StartDiscoveryCommand.js +24 -0
- package/dist-es/commands/TagResourceCommand.js +24 -0
- package/dist-es/commands/UntagResourceCommand.js +24 -0
- package/dist-es/commands/UpdateServiceLevelObjectiveCommand.js +24 -0
- package/dist-es/commands/index.js +15 -0
- package/dist-es/endpoint/EndpointParameters.js +12 -0
- package/dist-es/endpoint/endpointResolver.js +10 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/ApplicationSignalsServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +139 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListServiceDependenciesPaginator.js +4 -0
- package/dist-es/pagination/ListServiceDependentsPaginator.js +4 -0
- package/dist-es/pagination/ListServiceLevelObjectivesPaginator.js +4 -0
- package/dist-es/pagination/ListServiceOperationsPaginator.js +4 -0
- package/dist-es/pagination/ListServicesPaginator.js +4 -0
- package/dist-es/pagination/index.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +680 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +44 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +30 -0
- package/dist-es/runtimeExtensions.js +21 -0
- package/dist-types/ApplicationSignals.d.ts +137 -0
- package/dist-types/ApplicationSignalsClient.d.ts +206 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/dist-types/commands/BatchGetServiceLevelObjectiveBudgetReportCommand.d.ts +148 -0
- package/dist-types/commands/CreateServiceLevelObjectiveCommand.d.ts +252 -0
- package/dist-types/commands/DeleteServiceLevelObjectiveCommand.d.ts +67 -0
- package/dist-types/commands/GetServiceCommand.d.ts +94 -0
- package/dist-types/commands/GetServiceLevelObjectiveCommand.d.ts +126 -0
- package/dist-types/commands/ListServiceDependenciesCommand.d.ts +99 -0
- package/dist-types/commands/ListServiceDependentsCommand.d.ts +97 -0
- package/dist-types/commands/ListServiceLevelObjectivesCommand.d.ts +82 -0
- package/dist-types/commands/ListServiceOperationsCommand.d.ts +93 -0
- package/dist-types/commands/ListServicesCommand.d.ts +98 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +71 -0
- package/dist-types/commands/StartDiscoveryCommand.d.ts +108 -0
- package/dist-types/commands/TagResourceCommand.d.ts +82 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +67 -0
- package/dist-types/commands/UpdateServiceLevelObjectiveCommand.d.ts +181 -0
- package/dist-types/commands/index.d.ts +15 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +34 -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 +9 -0
- package/dist-types/index.d.ts +34 -0
- package/dist-types/models/ApplicationSignalsServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2004 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListServiceDependenciesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListServiceDependentsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListServiceLevelObjectivesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListServiceOperationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListServicesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +6 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +137 -0
- package/dist-types/runtimeConfig.browser.d.ts +45 -0
- package/dist-types/runtimeConfig.d.ts +45 -0
- package/dist-types/runtimeConfig.native.d.ts +44 -0
- package/dist-types/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/ApplicationSignals.d.ts +270 -0
- package/dist-types/ts3.4/ApplicationSignalsClient.d.ts +213 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
- package/dist-types/ts3.4/commands/BatchGetServiceLevelObjectiveBudgetReportCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/CreateServiceLevelObjectiveCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/DeleteServiceLevelObjectiveCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/GetServiceCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/GetServiceLevelObjectiveCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/ListServiceDependenciesCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/ListServiceDependentsCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/ListServiceLevelObjectivesCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/ListServiceOperationsCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/ListServicesCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/StartDiscoveryCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateServiceLevelObjectiveCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/index.d.ts +15 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -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 +9 -0
- package/dist-types/ts3.4/index.d.ts +9 -0
- package/dist-types/ts3.4/models/ApplicationSignalsServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +390 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListServiceDependenciesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListServiceDependentsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListServiceLevelObjectivesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListServiceOperationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListServicesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +6 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +185 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +87 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +81 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +23 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
- package/package.json +101 -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: RequestHandler.create(config?.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,44 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
|
3
|
+
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
|
+
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
5
|
+
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";
|
|
6
|
+
import { Hash } from "@smithy/hash-node";
|
|
7
|
+
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
|
8
|
+
import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
10
|
+
import { calculateBodyLength } from "@smithy/util-body-length-node";
|
|
11
|
+
import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
12
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
|
|
15
|
+
import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
|
|
16
|
+
export const getRuntimeConfig = (config) => {
|
|
17
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
18
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
19
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
20
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
21
|
+
awsCheckVersion(process.version);
|
|
22
|
+
return {
|
|
23
|
+
...clientSharedValues,
|
|
24
|
+
...config,
|
|
25
|
+
runtime: "node",
|
|
26
|
+
defaultsMode,
|
|
27
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
28
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
29
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
30
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
31
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
32
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
33
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
34
|
+
retryMode: config?.retryMode ??
|
|
35
|
+
loadNodeConfig({
|
|
36
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
37
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
38
|
+
}),
|
|
39
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
40
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
41
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
42
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -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,30 @@
|
|
|
1
|
+
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
|
+
import { parseUrl } from "@smithy/url-parser";
|
|
4
|
+
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
5
|
+
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
6
|
+
import { defaultApplicationSignalsHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
7
|
+
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
8
|
+
export const getRuntimeConfig = (config) => {
|
|
9
|
+
return {
|
|
10
|
+
apiVersion: "2024-04-15",
|
|
11
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
12
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
13
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
14
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
15
|
+
extensions: config?.extensions ?? [],
|
|
16
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultApplicationSignalsHttpAuthSchemeProvider,
|
|
17
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
18
|
+
{
|
|
19
|
+
schemeId: "aws.auth#sigv4",
|
|
20
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
21
|
+
signer: new AwsSdkSigV4Signer(),
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
25
|
+
serviceId: config?.serviceId ?? "Application Signals",
|
|
26
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
27
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
28
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
+
const asPartial = (t) => t;
|
|
6
|
+
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
7
|
+
const extensionConfiguration = {
|
|
8
|
+
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
|
9
|
+
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
10
|
+
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
|
11
|
+
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
|
|
12
|
+
};
|
|
13
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
14
|
+
return {
|
|
15
|
+
...runtimeConfig,
|
|
16
|
+
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
17
|
+
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
18
|
+
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
19
|
+
...resolveHttpAuthRuntimeConfig(extensionConfiguration),
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
|
+
import { ApplicationSignalsClient } from "./ApplicationSignalsClient";
|
|
3
|
+
import { BatchGetServiceLevelObjectiveBudgetReportCommandInput, BatchGetServiceLevelObjectiveBudgetReportCommandOutput } from "./commands/BatchGetServiceLevelObjectiveBudgetReportCommand";
|
|
4
|
+
import { CreateServiceLevelObjectiveCommandInput, CreateServiceLevelObjectiveCommandOutput } from "./commands/CreateServiceLevelObjectiveCommand";
|
|
5
|
+
import { DeleteServiceLevelObjectiveCommandInput, DeleteServiceLevelObjectiveCommandOutput } from "./commands/DeleteServiceLevelObjectiveCommand";
|
|
6
|
+
import { GetServiceCommandInput, GetServiceCommandOutput } from "./commands/GetServiceCommand";
|
|
7
|
+
import { GetServiceLevelObjectiveCommandInput, GetServiceLevelObjectiveCommandOutput } from "./commands/GetServiceLevelObjectiveCommand";
|
|
8
|
+
import { ListServiceDependenciesCommandInput, ListServiceDependenciesCommandOutput } from "./commands/ListServiceDependenciesCommand";
|
|
9
|
+
import { ListServiceDependentsCommandInput, ListServiceDependentsCommandOutput } from "./commands/ListServiceDependentsCommand";
|
|
10
|
+
import { ListServiceLevelObjectivesCommandInput, ListServiceLevelObjectivesCommandOutput } from "./commands/ListServiceLevelObjectivesCommand";
|
|
11
|
+
import { ListServiceOperationsCommandInput, ListServiceOperationsCommandOutput } from "./commands/ListServiceOperationsCommand";
|
|
12
|
+
import { ListServicesCommandInput, ListServicesCommandOutput } from "./commands/ListServicesCommand";
|
|
13
|
+
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
14
|
+
import { StartDiscoveryCommandInput, StartDiscoveryCommandOutput } from "./commands/StartDiscoveryCommand";
|
|
15
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
16
|
+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
17
|
+
import { UpdateServiceLevelObjectiveCommandInput, UpdateServiceLevelObjectiveCommandOutput } from "./commands/UpdateServiceLevelObjectiveCommand";
|
|
18
|
+
export interface ApplicationSignals {
|
|
19
|
+
/**
|
|
20
|
+
* @see {@link BatchGetServiceLevelObjectiveBudgetReportCommand}
|
|
21
|
+
*/
|
|
22
|
+
batchGetServiceLevelObjectiveBudgetReport(args: BatchGetServiceLevelObjectiveBudgetReportCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetServiceLevelObjectiveBudgetReportCommandOutput>;
|
|
23
|
+
batchGetServiceLevelObjectiveBudgetReport(args: BatchGetServiceLevelObjectiveBudgetReportCommandInput, cb: (err: any, data?: BatchGetServiceLevelObjectiveBudgetReportCommandOutput) => void): void;
|
|
24
|
+
batchGetServiceLevelObjectiveBudgetReport(args: BatchGetServiceLevelObjectiveBudgetReportCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetServiceLevelObjectiveBudgetReportCommandOutput) => void): void;
|
|
25
|
+
/**
|
|
26
|
+
* @see {@link CreateServiceLevelObjectiveCommand}
|
|
27
|
+
*/
|
|
28
|
+
createServiceLevelObjective(args: CreateServiceLevelObjectiveCommandInput, options?: __HttpHandlerOptions): Promise<CreateServiceLevelObjectiveCommandOutput>;
|
|
29
|
+
createServiceLevelObjective(args: CreateServiceLevelObjectiveCommandInput, cb: (err: any, data?: CreateServiceLevelObjectiveCommandOutput) => void): void;
|
|
30
|
+
createServiceLevelObjective(args: CreateServiceLevelObjectiveCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateServiceLevelObjectiveCommandOutput) => void): void;
|
|
31
|
+
/**
|
|
32
|
+
* @see {@link DeleteServiceLevelObjectiveCommand}
|
|
33
|
+
*/
|
|
34
|
+
deleteServiceLevelObjective(args: DeleteServiceLevelObjectiveCommandInput, options?: __HttpHandlerOptions): Promise<DeleteServiceLevelObjectiveCommandOutput>;
|
|
35
|
+
deleteServiceLevelObjective(args: DeleteServiceLevelObjectiveCommandInput, cb: (err: any, data?: DeleteServiceLevelObjectiveCommandOutput) => void): void;
|
|
36
|
+
deleteServiceLevelObjective(args: DeleteServiceLevelObjectiveCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteServiceLevelObjectiveCommandOutput) => void): void;
|
|
37
|
+
/**
|
|
38
|
+
* @see {@link GetServiceCommand}
|
|
39
|
+
*/
|
|
40
|
+
getService(args: GetServiceCommandInput, options?: __HttpHandlerOptions): Promise<GetServiceCommandOutput>;
|
|
41
|
+
getService(args: GetServiceCommandInput, cb: (err: any, data?: GetServiceCommandOutput) => void): void;
|
|
42
|
+
getService(args: GetServiceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetServiceCommandOutput) => void): void;
|
|
43
|
+
/**
|
|
44
|
+
* @see {@link GetServiceLevelObjectiveCommand}
|
|
45
|
+
*/
|
|
46
|
+
getServiceLevelObjective(args: GetServiceLevelObjectiveCommandInput, options?: __HttpHandlerOptions): Promise<GetServiceLevelObjectiveCommandOutput>;
|
|
47
|
+
getServiceLevelObjective(args: GetServiceLevelObjectiveCommandInput, cb: (err: any, data?: GetServiceLevelObjectiveCommandOutput) => void): void;
|
|
48
|
+
getServiceLevelObjective(args: GetServiceLevelObjectiveCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetServiceLevelObjectiveCommandOutput) => void): void;
|
|
49
|
+
/**
|
|
50
|
+
* @see {@link ListServiceDependenciesCommand}
|
|
51
|
+
*/
|
|
52
|
+
listServiceDependencies(args: ListServiceDependenciesCommandInput, options?: __HttpHandlerOptions): Promise<ListServiceDependenciesCommandOutput>;
|
|
53
|
+
listServiceDependencies(args: ListServiceDependenciesCommandInput, cb: (err: any, data?: ListServiceDependenciesCommandOutput) => void): void;
|
|
54
|
+
listServiceDependencies(args: ListServiceDependenciesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListServiceDependenciesCommandOutput) => void): void;
|
|
55
|
+
/**
|
|
56
|
+
* @see {@link ListServiceDependentsCommand}
|
|
57
|
+
*/
|
|
58
|
+
listServiceDependents(args: ListServiceDependentsCommandInput, options?: __HttpHandlerOptions): Promise<ListServiceDependentsCommandOutput>;
|
|
59
|
+
listServiceDependents(args: ListServiceDependentsCommandInput, cb: (err: any, data?: ListServiceDependentsCommandOutput) => void): void;
|
|
60
|
+
listServiceDependents(args: ListServiceDependentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListServiceDependentsCommandOutput) => void): void;
|
|
61
|
+
/**
|
|
62
|
+
* @see {@link ListServiceLevelObjectivesCommand}
|
|
63
|
+
*/
|
|
64
|
+
listServiceLevelObjectives(): Promise<ListServiceLevelObjectivesCommandOutput>;
|
|
65
|
+
listServiceLevelObjectives(args: ListServiceLevelObjectivesCommandInput, options?: __HttpHandlerOptions): Promise<ListServiceLevelObjectivesCommandOutput>;
|
|
66
|
+
listServiceLevelObjectives(args: ListServiceLevelObjectivesCommandInput, cb: (err: any, data?: ListServiceLevelObjectivesCommandOutput) => void): void;
|
|
67
|
+
listServiceLevelObjectives(args: ListServiceLevelObjectivesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListServiceLevelObjectivesCommandOutput) => void): void;
|
|
68
|
+
/**
|
|
69
|
+
* @see {@link ListServiceOperationsCommand}
|
|
70
|
+
*/
|
|
71
|
+
listServiceOperations(args: ListServiceOperationsCommandInput, options?: __HttpHandlerOptions): Promise<ListServiceOperationsCommandOutput>;
|
|
72
|
+
listServiceOperations(args: ListServiceOperationsCommandInput, cb: (err: any, data?: ListServiceOperationsCommandOutput) => void): void;
|
|
73
|
+
listServiceOperations(args: ListServiceOperationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListServiceOperationsCommandOutput) => void): void;
|
|
74
|
+
/**
|
|
75
|
+
* @see {@link ListServicesCommand}
|
|
76
|
+
*/
|
|
77
|
+
listServices(args: ListServicesCommandInput, options?: __HttpHandlerOptions): Promise<ListServicesCommandOutput>;
|
|
78
|
+
listServices(args: ListServicesCommandInput, cb: (err: any, data?: ListServicesCommandOutput) => void): void;
|
|
79
|
+
listServices(args: ListServicesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListServicesCommandOutput) => void): void;
|
|
80
|
+
/**
|
|
81
|
+
* @see {@link ListTagsForResourceCommand}
|
|
82
|
+
*/
|
|
83
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
84
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
85
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
86
|
+
/**
|
|
87
|
+
* @see {@link StartDiscoveryCommand}
|
|
88
|
+
*/
|
|
89
|
+
startDiscovery(): Promise<StartDiscoveryCommandOutput>;
|
|
90
|
+
startDiscovery(args: StartDiscoveryCommandInput, options?: __HttpHandlerOptions): Promise<StartDiscoveryCommandOutput>;
|
|
91
|
+
startDiscovery(args: StartDiscoveryCommandInput, cb: (err: any, data?: StartDiscoveryCommandOutput) => void): void;
|
|
92
|
+
startDiscovery(args: StartDiscoveryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartDiscoveryCommandOutput) => void): void;
|
|
93
|
+
/**
|
|
94
|
+
* @see {@link TagResourceCommand}
|
|
95
|
+
*/
|
|
96
|
+
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
97
|
+
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
98
|
+
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
99
|
+
/**
|
|
100
|
+
* @see {@link UntagResourceCommand}
|
|
101
|
+
*/
|
|
102
|
+
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
103
|
+
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
104
|
+
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
105
|
+
/**
|
|
106
|
+
* @see {@link UpdateServiceLevelObjectiveCommand}
|
|
107
|
+
*/
|
|
108
|
+
updateServiceLevelObjective(args: UpdateServiceLevelObjectiveCommandInput, options?: __HttpHandlerOptions): Promise<UpdateServiceLevelObjectiveCommandOutput>;
|
|
109
|
+
updateServiceLevelObjective(args: UpdateServiceLevelObjectiveCommandInput, cb: (err: any, data?: UpdateServiceLevelObjectiveCommandOutput) => void): void;
|
|
110
|
+
updateServiceLevelObjective(args: UpdateServiceLevelObjectiveCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateServiceLevelObjectiveCommandOutput) => void): void;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* <important>
|
|
114
|
+
* <p>This is a Preview release of the Application Signals API Reference. Operations and parameters are subject to change before the general availability
|
|
115
|
+
* release.</p>
|
|
116
|
+
* </important>
|
|
117
|
+
* <p>Use CloudWatch Application Signals for comprehensive observability of your cloud-based applications.
|
|
118
|
+
* It enables real-time service health dashboards and helps you track long-term performance trends against your business goals.
|
|
119
|
+
* The application-centric view provides you with unified visibility across your applications, services, and
|
|
120
|
+
* dependencies, so you can proactively monitor and efficiently triage any issues that may arise,
|
|
121
|
+
* ensuring optimal customer experience.</p>
|
|
122
|
+
* <p>Application Signals provides the following benefits:</p>
|
|
123
|
+
* <ul>
|
|
124
|
+
* <li>
|
|
125
|
+
* <p>Automatically collect metrics and traces from your applications, and display key metrics such as call volume, availability, latency, faults, and errors. </p>
|
|
126
|
+
* </li>
|
|
127
|
+
* <li>
|
|
128
|
+
* <p>Create and monitor service level objectives (SLOs). </p>
|
|
129
|
+
* </li>
|
|
130
|
+
* <li>
|
|
131
|
+
* <p>See a map of your application topology that Application Signals automatically discovers, that gives you a visual representation of your applications, dependencies, and their connectivity.</p>
|
|
132
|
+
* </li>
|
|
133
|
+
* </ul>
|
|
134
|
+
* @public
|
|
135
|
+
*/
|
|
136
|
+
export declare class ApplicationSignals extends ApplicationSignalsClient implements ApplicationSignals {
|
|
137
|
+
}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
2
|
+
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
3
|
+
import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
|
|
4
|
+
import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
|
|
5
|
+
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
6
|
+
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
7
|
+
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
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
|
+
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
|
+
import { BatchGetServiceLevelObjectiveBudgetReportCommandInput, BatchGetServiceLevelObjectiveBudgetReportCommandOutput } from "./commands/BatchGetServiceLevelObjectiveBudgetReportCommand";
|
|
11
|
+
import { CreateServiceLevelObjectiveCommandInput, CreateServiceLevelObjectiveCommandOutput } from "./commands/CreateServiceLevelObjectiveCommand";
|
|
12
|
+
import { DeleteServiceLevelObjectiveCommandInput, DeleteServiceLevelObjectiveCommandOutput } from "./commands/DeleteServiceLevelObjectiveCommand";
|
|
13
|
+
import { GetServiceCommandInput, GetServiceCommandOutput } from "./commands/GetServiceCommand";
|
|
14
|
+
import { GetServiceLevelObjectiveCommandInput, GetServiceLevelObjectiveCommandOutput } from "./commands/GetServiceLevelObjectiveCommand";
|
|
15
|
+
import { ListServiceDependenciesCommandInput, ListServiceDependenciesCommandOutput } from "./commands/ListServiceDependenciesCommand";
|
|
16
|
+
import { ListServiceDependentsCommandInput, ListServiceDependentsCommandOutput } from "./commands/ListServiceDependentsCommand";
|
|
17
|
+
import { ListServiceLevelObjectivesCommandInput, ListServiceLevelObjectivesCommandOutput } from "./commands/ListServiceLevelObjectivesCommand";
|
|
18
|
+
import { ListServiceOperationsCommandInput, ListServiceOperationsCommandOutput } from "./commands/ListServiceOperationsCommand";
|
|
19
|
+
import { ListServicesCommandInput, ListServicesCommandOutput } from "./commands/ListServicesCommand";
|
|
20
|
+
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
21
|
+
import { StartDiscoveryCommandInput, StartDiscoveryCommandOutput } from "./commands/StartDiscoveryCommand";
|
|
22
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
23
|
+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
24
|
+
import { UpdateServiceLevelObjectiveCommandInput, UpdateServiceLevelObjectiveCommandOutput } from "./commands/UpdateServiceLevelObjectiveCommand";
|
|
25
|
+
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
26
|
+
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
27
|
+
export { __Client };
|
|
28
|
+
/**
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
export type ServiceInputTypes = BatchGetServiceLevelObjectiveBudgetReportCommandInput | CreateServiceLevelObjectiveCommandInput | DeleteServiceLevelObjectiveCommandInput | GetServiceCommandInput | GetServiceLevelObjectiveCommandInput | ListServiceDependenciesCommandInput | ListServiceDependentsCommandInput | ListServiceLevelObjectivesCommandInput | ListServiceOperationsCommandInput | ListServicesCommandInput | ListTagsForResourceCommandInput | StartDiscoveryCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateServiceLevelObjectiveCommandInput;
|
|
32
|
+
/**
|
|
33
|
+
* @public
|
|
34
|
+
*/
|
|
35
|
+
export type ServiceOutputTypes = BatchGetServiceLevelObjectiveBudgetReportCommandOutput | CreateServiceLevelObjectiveCommandOutput | DeleteServiceLevelObjectiveCommandOutput | GetServiceCommandOutput | GetServiceLevelObjectiveCommandOutput | ListServiceDependenciesCommandOutput | ListServiceDependentsCommandOutput | ListServiceLevelObjectivesCommandOutput | ListServiceOperationsCommandOutput | ListServicesCommandOutput | ListTagsForResourceCommandOutput | StartDiscoveryCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateServiceLevelObjectiveCommandOutput;
|
|
36
|
+
/**
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
40
|
+
/**
|
|
41
|
+
* The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
|
|
42
|
+
*/
|
|
43
|
+
requestHandler?: __HttpHandlerUserInput;
|
|
44
|
+
/**
|
|
45
|
+
* A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
|
|
46
|
+
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
47
|
+
* @internal
|
|
48
|
+
*/
|
|
49
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
50
|
+
/**
|
|
51
|
+
* The function that will be used to convert strings into HTTP endpoints.
|
|
52
|
+
* @internal
|
|
53
|
+
*/
|
|
54
|
+
urlParser?: __UrlParser;
|
|
55
|
+
/**
|
|
56
|
+
* A function that can calculate the length of a request body.
|
|
57
|
+
* @internal
|
|
58
|
+
*/
|
|
59
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
60
|
+
/**
|
|
61
|
+
* A function that converts a stream into an array of bytes.
|
|
62
|
+
* @internal
|
|
63
|
+
*/
|
|
64
|
+
streamCollector?: __StreamCollector;
|
|
65
|
+
/**
|
|
66
|
+
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
67
|
+
* @internal
|
|
68
|
+
*/
|
|
69
|
+
base64Decoder?: __Decoder;
|
|
70
|
+
/**
|
|
71
|
+
* The function that will be used to convert binary data to a base64-encoded string.
|
|
72
|
+
* @internal
|
|
73
|
+
*/
|
|
74
|
+
base64Encoder?: __Encoder;
|
|
75
|
+
/**
|
|
76
|
+
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
77
|
+
* @internal
|
|
78
|
+
*/
|
|
79
|
+
utf8Decoder?: __Decoder;
|
|
80
|
+
/**
|
|
81
|
+
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
82
|
+
* @internal
|
|
83
|
+
*/
|
|
84
|
+
utf8Encoder?: __Encoder;
|
|
85
|
+
/**
|
|
86
|
+
* The runtime environment.
|
|
87
|
+
* @internal
|
|
88
|
+
*/
|
|
89
|
+
runtime?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
92
|
+
* trait of an operation.
|
|
93
|
+
*/
|
|
94
|
+
disableHostPrefix?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Unique service identifier.
|
|
97
|
+
* @internal
|
|
98
|
+
*/
|
|
99
|
+
serviceId?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
102
|
+
*/
|
|
103
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
104
|
+
/**
|
|
105
|
+
* Enables FIPS compatible endpoints.
|
|
106
|
+
*/
|
|
107
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
108
|
+
/**
|
|
109
|
+
* The AWS region to which this client will send requests
|
|
110
|
+
*/
|
|
111
|
+
region?: string | __Provider<string>;
|
|
112
|
+
/**
|
|
113
|
+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
114
|
+
* @internal
|
|
115
|
+
*/
|
|
116
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
117
|
+
/**
|
|
118
|
+
* Default credentials provider; Not available in browser runtime.
|
|
119
|
+
* @deprecated
|
|
120
|
+
* @internal
|
|
121
|
+
*/
|
|
122
|
+
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
|
|
123
|
+
/**
|
|
124
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
125
|
+
*/
|
|
126
|
+
maxAttempts?: number | __Provider<number>;
|
|
127
|
+
/**
|
|
128
|
+
* Specifies which retry algorithm to use.
|
|
129
|
+
* @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
|
|
130
|
+
*
|
|
131
|
+
*/
|
|
132
|
+
retryMode?: string | __Provider<string>;
|
|
133
|
+
/**
|
|
134
|
+
* Optional logger for logging debug/info/warn/error.
|
|
135
|
+
*/
|
|
136
|
+
logger?: __Logger;
|
|
137
|
+
/**
|
|
138
|
+
* Optional extensions
|
|
139
|
+
*/
|
|
140
|
+
extensions?: RuntimeExtension[];
|
|
141
|
+
/**
|
|
142
|
+
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
143
|
+
*/
|
|
144
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* @public
|
|
148
|
+
*/
|
|
149
|
+
export type ApplicationSignalsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & UserAgentInputConfig & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
|
|
150
|
+
/**
|
|
151
|
+
* @public
|
|
152
|
+
*
|
|
153
|
+
* The configuration interface of ApplicationSignalsClient class constructor that set the region, credentials and other options.
|
|
154
|
+
*/
|
|
155
|
+
export interface ApplicationSignalsClientConfig extends ApplicationSignalsClientConfigType {
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* @public
|
|
159
|
+
*/
|
|
160
|
+
export type ApplicationSignalsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & UserAgentResolvedConfig & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
|
|
161
|
+
/**
|
|
162
|
+
* @public
|
|
163
|
+
*
|
|
164
|
+
* The resolved configuration interface of ApplicationSignalsClient class. This is resolved and normalized from the {@link ApplicationSignalsClientConfig | constructor configuration interface}.
|
|
165
|
+
*/
|
|
166
|
+
export interface ApplicationSignalsClientResolvedConfig extends ApplicationSignalsClientResolvedConfigType {
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* <important>
|
|
170
|
+
* <p>This is a Preview release of the Application Signals API Reference. Operations and parameters are subject to change before the general availability
|
|
171
|
+
* release.</p>
|
|
172
|
+
* </important>
|
|
173
|
+
* <p>Use CloudWatch Application Signals for comprehensive observability of your cloud-based applications.
|
|
174
|
+
* It enables real-time service health dashboards and helps you track long-term performance trends against your business goals.
|
|
175
|
+
* The application-centric view provides you with unified visibility across your applications, services, and
|
|
176
|
+
* dependencies, so you can proactively monitor and efficiently triage any issues that may arise,
|
|
177
|
+
* ensuring optimal customer experience.</p>
|
|
178
|
+
* <p>Application Signals provides the following benefits:</p>
|
|
179
|
+
* <ul>
|
|
180
|
+
* <li>
|
|
181
|
+
* <p>Automatically collect metrics and traces from your applications, and display key metrics such as call volume, availability, latency, faults, and errors. </p>
|
|
182
|
+
* </li>
|
|
183
|
+
* <li>
|
|
184
|
+
* <p>Create and monitor service level objectives (SLOs). </p>
|
|
185
|
+
* </li>
|
|
186
|
+
* <li>
|
|
187
|
+
* <p>See a map of your application topology that Application Signals automatically discovers, that gives you a visual representation of your applications, dependencies, and their connectivity.</p>
|
|
188
|
+
* </li>
|
|
189
|
+
* </ul>
|
|
190
|
+
* @public
|
|
191
|
+
*/
|
|
192
|
+
export declare class ApplicationSignalsClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, ApplicationSignalsClientResolvedConfig> {
|
|
193
|
+
/**
|
|
194
|
+
* The resolved configuration of ApplicationSignalsClient class. This is resolved and normalized from the {@link ApplicationSignalsClientConfig | constructor configuration interface}.
|
|
195
|
+
*/
|
|
196
|
+
readonly config: ApplicationSignalsClientResolvedConfig;
|
|
197
|
+
constructor(...[configuration]: __CheckOptionalClientConfig<ApplicationSignalsClientConfig>);
|
|
198
|
+
/**
|
|
199
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
200
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
201
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
202
|
+
*/
|
|
203
|
+
destroy(): void;
|
|
204
|
+
private getDefaultHttpAuthSchemeParametersProvider;
|
|
205
|
+
private getIdentityProviderConfigProvider;
|
|
206
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
|
|
2
|
+
import { ApplicationSignalsHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface HttpAuthExtensionConfiguration {
|
|
7
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
8
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
|
9
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider: ApplicationSignalsHttpAuthSchemeProvider): void;
|
|
10
|
+
httpAuthSchemeProvider(): ApplicationSignalsHttpAuthSchemeProvider;
|
|
11
|
+
setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
|
|
12
|
+
credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export type HttpAuthRuntimeConfig = Partial<{
|
|
18
|
+
httpAuthSchemes: HttpAuthScheme[];
|
|
19
|
+
httpAuthSchemeProvider: ApplicationSignalsHttpAuthSchemeProvider;
|
|
20
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
|
|
2
|
+
import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider } from "@smithy/types";
|
|
3
|
+
import { ApplicationSignalsClientResolvedConfig } from "../ApplicationSignalsClient";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface ApplicationSignalsHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
|
8
|
+
region?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export interface ApplicationSignalsHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<ApplicationSignalsClientResolvedConfig, HandlerExecutionContext, ApplicationSignalsHttpAuthSchemeParameters, object> {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const defaultApplicationSignalsHttpAuthSchemeParametersProvider: (config: ApplicationSignalsClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<ApplicationSignalsHttpAuthSchemeParameters>;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export interface ApplicationSignalsHttpAuthSchemeProvider extends HttpAuthSchemeProvider<ApplicationSignalsHttpAuthSchemeParameters> {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export declare const defaultApplicationSignalsHttpAuthSchemeProvider: ApplicationSignalsHttpAuthSchemeProvider;
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
32
|
+
/**
|
|
33
|
+
* experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
httpAuthSchemes?: HttpAuthScheme[];
|
|
37
|
+
/**
|
|
38
|
+
* experimentalIdentityAndAuth: Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
httpAuthSchemeProvider?: ApplicationSignalsHttpAuthSchemeProvider;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
*/
|
|
46
|
+
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
|
|
47
|
+
/**
|
|
48
|
+
* experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
|
+
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
52
|
+
/**
|
|
53
|
+
* experimentalIdentityAndAuth: Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
56
|
+
readonly httpAuthSchemeProvider: ApplicationSignalsHttpAuthSchemeProvider;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
61
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
|