@aws-sdk/client-neptune-graph 3.474.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 +383 -0
- package/dist-cjs/NeptuneGraph.js +55 -0
- package/dist-cjs/NeptuneGraphClient.js +43 -0
- package/dist-cjs/commands/CancelImportTaskCommand.js +52 -0
- package/dist-cjs/commands/CreateGraphCommand.js +52 -0
- package/dist-cjs/commands/CreateGraphSnapshotCommand.js +52 -0
- package/dist-cjs/commands/CreateGraphUsingImportTaskCommand.js +52 -0
- package/dist-cjs/commands/CreatePrivateGraphEndpointCommand.js +52 -0
- package/dist-cjs/commands/DeleteGraphCommand.js +52 -0
- package/dist-cjs/commands/DeleteGraphSnapshotCommand.js +52 -0
- package/dist-cjs/commands/DeletePrivateGraphEndpointCommand.js +52 -0
- package/dist-cjs/commands/GetGraphCommand.js +52 -0
- package/dist-cjs/commands/GetGraphSnapshotCommand.js +52 -0
- package/dist-cjs/commands/GetImportTaskCommand.js +52 -0
- package/dist-cjs/commands/GetPrivateGraphEndpointCommand.js +52 -0
- package/dist-cjs/commands/ListGraphSnapshotsCommand.js +52 -0
- package/dist-cjs/commands/ListGraphsCommand.js +52 -0
- package/dist-cjs/commands/ListImportTasksCommand.js +52 -0
- package/dist-cjs/commands/ListPrivateGraphEndpointsCommand.js +52 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +52 -0
- package/dist-cjs/commands/ResetGraphCommand.js +52 -0
- package/dist-cjs/commands/RestoreGraphFromSnapshotCommand.js +52 -0
- package/dist-cjs/commands/TagResourceCommand.js +52 -0
- package/dist-cjs/commands/UntagResourceCommand.js +52 -0
- package/dist-cjs/commands/UpdateGraphCommand.js +52 -0
- package/dist-cjs/commands/index.js +25 -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/NeptuneGraphServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +149 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListGraphSnapshotsPaginator.js +29 -0
- package/dist-cjs/pagination/ListGraphsPaginator.js +29 -0
- package/dist-cjs/pagination/ListImportTasksPaginator.js +29 -0
- package/dist-cjs/pagination/ListPrivateGraphEndpointsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1763 -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/NeptuneGraph.js +51 -0
- package/dist-es/NeptuneGraphClient.js +39 -0
- package/dist-es/commands/CancelImportTaskCommand.js +48 -0
- package/dist-es/commands/CreateGraphCommand.js +48 -0
- package/dist-es/commands/CreateGraphSnapshotCommand.js +48 -0
- package/dist-es/commands/CreateGraphUsingImportTaskCommand.js +48 -0
- package/dist-es/commands/CreatePrivateGraphEndpointCommand.js +48 -0
- package/dist-es/commands/DeleteGraphCommand.js +48 -0
- package/dist-es/commands/DeleteGraphSnapshotCommand.js +48 -0
- package/dist-es/commands/DeletePrivateGraphEndpointCommand.js +48 -0
- package/dist-es/commands/GetGraphCommand.js +48 -0
- package/dist-es/commands/GetGraphSnapshotCommand.js +48 -0
- package/dist-es/commands/GetImportTaskCommand.js +48 -0
- package/dist-es/commands/GetPrivateGraphEndpointCommand.js +48 -0
- package/dist-es/commands/ListGraphSnapshotsCommand.js +48 -0
- package/dist-es/commands/ListGraphsCommand.js +48 -0
- package/dist-es/commands/ListImportTasksCommand.js +48 -0
- package/dist-es/commands/ListPrivateGraphEndpointsCommand.js +48 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +48 -0
- package/dist-es/commands/ResetGraphCommand.js +48 -0
- package/dist-es/commands/RestoreGraphFromSnapshotCommand.js +48 -0
- package/dist-es/commands/TagResourceCommand.js +48 -0
- package/dist-es/commands/UntagResourceCommand.js +48 -0
- package/dist-es/commands/UpdateGraphCommand.js +48 -0
- package/dist-es/commands/index.js +22 -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/NeptuneGraphServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +140 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListGraphSnapshotsPaginator.js +25 -0
- package/dist-es/pagination/ListGraphsPaginator.js +25 -0
- package/dist-es/pagination/ListImportTasksPaginator.js +25 -0
- package/dist-es/pagination/ListPrivateGraphEndpointsPaginator.js +25 -0
- package/dist-es/pagination/index.js +5 -0
- package/dist-es/protocols/Aws_restJson1.js +1716 -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/NeptuneGraph.d.ts +166 -0
- package/dist-types/NeptuneGraphClient.d.ts +193 -0
- package/dist-types/commands/CancelImportTaskCommand.d.ts +93 -0
- package/dist-types/commands/CreateGraphCommand.d.ts +115 -0
- package/dist-types/commands/CreateGraphSnapshotCommand.d.ts +101 -0
- package/dist-types/commands/CreateGraphUsingImportTaskCommand.d.ts +129 -0
- package/dist-types/commands/CreatePrivateGraphEndpointCommand.d.ts +104 -0
- package/dist-types/commands/DeleteGraphCommand.d.ts +105 -0
- package/dist-types/commands/DeleteGraphSnapshotCommand.d.ts +94 -0
- package/dist-types/commands/DeletePrivateGraphEndpointCommand.d.ts +94 -0
- package/dist-types/commands/GetGraphCommand.d.ts +101 -0
- package/dist-types/commands/GetGraphSnapshotCommand.d.ts +91 -0
- package/dist-types/commands/GetImportTaskCommand.d.ts +110 -0
- package/dist-types/commands/GetPrivateGraphEndpointCommand.d.ts +91 -0
- package/dist-types/commands/ListGraphSnapshotsCommand.d.ts +98 -0
- package/dist-types/commands/ListGraphsCommand.d.ts +97 -0
- package/dist-types/commands/ListImportTasksCommand.d.ts +96 -0
- package/dist-types/commands/ListPrivateGraphEndpointsCommand.d.ts +97 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +87 -0
- package/dist-types/commands/ResetGraphCommand.d.ts +105 -0
- package/dist-types/commands/RestoreGraphFromSnapshotCommand.d.ts +115 -0
- package/dist-types/commands/TagResourceCommand.d.ts +86 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +86 -0
- package/dist-types/commands/UpdateGraphCommand.d.ts +107 -0
- package/dist-types/commands/index.d.ts +22 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +23 -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 +17 -0
- package/dist-types/models/NeptuneGraphServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2021 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListGraphSnapshotsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListGraphsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListImportTasksPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPrivateGraphEndpointsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +5 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +200 -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/NeptuneGraph.d.ts +381 -0
- package/dist-types/ts3.4/NeptuneGraphClient.d.ts +251 -0
- package/dist-types/ts3.4/commands/CancelImportTaskCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateGraphCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/CreateGraphSnapshotCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateGraphUsingImportTaskCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreatePrivateGraphEndpointCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteGraphCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DeleteGraphSnapshotCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeletePrivateGraphEndpointCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetGraphCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetGraphSnapshotCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetImportTaskCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetPrivateGraphEndpointCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListGraphSnapshotsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListGraphsCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListImportTasksCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListPrivateGraphEndpointsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ResetGraphCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/RestoreGraphFromSnapshotCommand.d.ts +42 -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/UpdateGraphCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/index.d.ts +22 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -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/NeptuneGraphServiceException.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 +494 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListGraphSnapshotsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListGraphsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListImportTasksPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPrivateGraphEndpointsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +269 -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 +100 -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-11-29",
|
|
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 ?? "Neptune Graph",
|
|
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,166 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
|
+
import { CancelImportTaskCommandInput, CancelImportTaskCommandOutput } from "./commands/CancelImportTaskCommand";
|
|
3
|
+
import { CreateGraphCommandInput, CreateGraphCommandOutput } from "./commands/CreateGraphCommand";
|
|
4
|
+
import { CreateGraphSnapshotCommandInput, CreateGraphSnapshotCommandOutput } from "./commands/CreateGraphSnapshotCommand";
|
|
5
|
+
import { CreateGraphUsingImportTaskCommandInput, CreateGraphUsingImportTaskCommandOutput } from "./commands/CreateGraphUsingImportTaskCommand";
|
|
6
|
+
import { CreatePrivateGraphEndpointCommandInput, CreatePrivateGraphEndpointCommandOutput } from "./commands/CreatePrivateGraphEndpointCommand";
|
|
7
|
+
import { DeleteGraphCommandInput, DeleteGraphCommandOutput } from "./commands/DeleteGraphCommand";
|
|
8
|
+
import { DeleteGraphSnapshotCommandInput, DeleteGraphSnapshotCommandOutput } from "./commands/DeleteGraphSnapshotCommand";
|
|
9
|
+
import { DeletePrivateGraphEndpointCommandInput, DeletePrivateGraphEndpointCommandOutput } from "./commands/DeletePrivateGraphEndpointCommand";
|
|
10
|
+
import { GetGraphCommandInput, GetGraphCommandOutput } from "./commands/GetGraphCommand";
|
|
11
|
+
import { GetGraphSnapshotCommandInput, GetGraphSnapshotCommandOutput } from "./commands/GetGraphSnapshotCommand";
|
|
12
|
+
import { GetImportTaskCommandInput, GetImportTaskCommandOutput } from "./commands/GetImportTaskCommand";
|
|
13
|
+
import { GetPrivateGraphEndpointCommandInput, GetPrivateGraphEndpointCommandOutput } from "./commands/GetPrivateGraphEndpointCommand";
|
|
14
|
+
import { ListGraphsCommandInput, ListGraphsCommandOutput } from "./commands/ListGraphsCommand";
|
|
15
|
+
import { ListGraphSnapshotsCommandInput, ListGraphSnapshotsCommandOutput } from "./commands/ListGraphSnapshotsCommand";
|
|
16
|
+
import { ListImportTasksCommandInput, ListImportTasksCommandOutput } from "./commands/ListImportTasksCommand";
|
|
17
|
+
import { ListPrivateGraphEndpointsCommandInput, ListPrivateGraphEndpointsCommandOutput } from "./commands/ListPrivateGraphEndpointsCommand";
|
|
18
|
+
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
19
|
+
import { ResetGraphCommandInput, ResetGraphCommandOutput } from "./commands/ResetGraphCommand";
|
|
20
|
+
import { RestoreGraphFromSnapshotCommandInput, RestoreGraphFromSnapshotCommandOutput } from "./commands/RestoreGraphFromSnapshotCommand";
|
|
21
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
22
|
+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
23
|
+
import { UpdateGraphCommandInput, UpdateGraphCommandOutput } from "./commands/UpdateGraphCommand";
|
|
24
|
+
import { NeptuneGraphClient } from "./NeptuneGraphClient";
|
|
25
|
+
export interface NeptuneGraph {
|
|
26
|
+
/**
|
|
27
|
+
* @see {@link CancelImportTaskCommand}
|
|
28
|
+
*/
|
|
29
|
+
cancelImportTask(args: CancelImportTaskCommandInput, options?: __HttpHandlerOptions): Promise<CancelImportTaskCommandOutput>;
|
|
30
|
+
cancelImportTask(args: CancelImportTaskCommandInput, cb: (err: any, data?: CancelImportTaskCommandOutput) => void): void;
|
|
31
|
+
cancelImportTask(args: CancelImportTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelImportTaskCommandOutput) => void): void;
|
|
32
|
+
/**
|
|
33
|
+
* @see {@link CreateGraphCommand}
|
|
34
|
+
*/
|
|
35
|
+
createGraph(args: CreateGraphCommandInput, options?: __HttpHandlerOptions): Promise<CreateGraphCommandOutput>;
|
|
36
|
+
createGraph(args: CreateGraphCommandInput, cb: (err: any, data?: CreateGraphCommandOutput) => void): void;
|
|
37
|
+
createGraph(args: CreateGraphCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateGraphCommandOutput) => void): void;
|
|
38
|
+
/**
|
|
39
|
+
* @see {@link CreateGraphSnapshotCommand}
|
|
40
|
+
*/
|
|
41
|
+
createGraphSnapshot(args: CreateGraphSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<CreateGraphSnapshotCommandOutput>;
|
|
42
|
+
createGraphSnapshot(args: CreateGraphSnapshotCommandInput, cb: (err: any, data?: CreateGraphSnapshotCommandOutput) => void): void;
|
|
43
|
+
createGraphSnapshot(args: CreateGraphSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateGraphSnapshotCommandOutput) => void): void;
|
|
44
|
+
/**
|
|
45
|
+
* @see {@link CreateGraphUsingImportTaskCommand}
|
|
46
|
+
*/
|
|
47
|
+
createGraphUsingImportTask(args: CreateGraphUsingImportTaskCommandInput, options?: __HttpHandlerOptions): Promise<CreateGraphUsingImportTaskCommandOutput>;
|
|
48
|
+
createGraphUsingImportTask(args: CreateGraphUsingImportTaskCommandInput, cb: (err: any, data?: CreateGraphUsingImportTaskCommandOutput) => void): void;
|
|
49
|
+
createGraphUsingImportTask(args: CreateGraphUsingImportTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateGraphUsingImportTaskCommandOutput) => void): void;
|
|
50
|
+
/**
|
|
51
|
+
* @see {@link CreatePrivateGraphEndpointCommand}
|
|
52
|
+
*/
|
|
53
|
+
createPrivateGraphEndpoint(args: CreatePrivateGraphEndpointCommandInput, options?: __HttpHandlerOptions): Promise<CreatePrivateGraphEndpointCommandOutput>;
|
|
54
|
+
createPrivateGraphEndpoint(args: CreatePrivateGraphEndpointCommandInput, cb: (err: any, data?: CreatePrivateGraphEndpointCommandOutput) => void): void;
|
|
55
|
+
createPrivateGraphEndpoint(args: CreatePrivateGraphEndpointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreatePrivateGraphEndpointCommandOutput) => void): void;
|
|
56
|
+
/**
|
|
57
|
+
* @see {@link DeleteGraphCommand}
|
|
58
|
+
*/
|
|
59
|
+
deleteGraph(args: DeleteGraphCommandInput, options?: __HttpHandlerOptions): Promise<DeleteGraphCommandOutput>;
|
|
60
|
+
deleteGraph(args: DeleteGraphCommandInput, cb: (err: any, data?: DeleteGraphCommandOutput) => void): void;
|
|
61
|
+
deleteGraph(args: DeleteGraphCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteGraphCommandOutput) => void): void;
|
|
62
|
+
/**
|
|
63
|
+
* @see {@link DeleteGraphSnapshotCommand}
|
|
64
|
+
*/
|
|
65
|
+
deleteGraphSnapshot(args: DeleteGraphSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<DeleteGraphSnapshotCommandOutput>;
|
|
66
|
+
deleteGraphSnapshot(args: DeleteGraphSnapshotCommandInput, cb: (err: any, data?: DeleteGraphSnapshotCommandOutput) => void): void;
|
|
67
|
+
deleteGraphSnapshot(args: DeleteGraphSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteGraphSnapshotCommandOutput) => void): void;
|
|
68
|
+
/**
|
|
69
|
+
* @see {@link DeletePrivateGraphEndpointCommand}
|
|
70
|
+
*/
|
|
71
|
+
deletePrivateGraphEndpoint(args: DeletePrivateGraphEndpointCommandInput, options?: __HttpHandlerOptions): Promise<DeletePrivateGraphEndpointCommandOutput>;
|
|
72
|
+
deletePrivateGraphEndpoint(args: DeletePrivateGraphEndpointCommandInput, cb: (err: any, data?: DeletePrivateGraphEndpointCommandOutput) => void): void;
|
|
73
|
+
deletePrivateGraphEndpoint(args: DeletePrivateGraphEndpointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeletePrivateGraphEndpointCommandOutput) => void): void;
|
|
74
|
+
/**
|
|
75
|
+
* @see {@link GetGraphCommand}
|
|
76
|
+
*/
|
|
77
|
+
getGraph(args: GetGraphCommandInput, options?: __HttpHandlerOptions): Promise<GetGraphCommandOutput>;
|
|
78
|
+
getGraph(args: GetGraphCommandInput, cb: (err: any, data?: GetGraphCommandOutput) => void): void;
|
|
79
|
+
getGraph(args: GetGraphCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetGraphCommandOutput) => void): void;
|
|
80
|
+
/**
|
|
81
|
+
* @see {@link GetGraphSnapshotCommand}
|
|
82
|
+
*/
|
|
83
|
+
getGraphSnapshot(args: GetGraphSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<GetGraphSnapshotCommandOutput>;
|
|
84
|
+
getGraphSnapshot(args: GetGraphSnapshotCommandInput, cb: (err: any, data?: GetGraphSnapshotCommandOutput) => void): void;
|
|
85
|
+
getGraphSnapshot(args: GetGraphSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetGraphSnapshotCommandOutput) => void): void;
|
|
86
|
+
/**
|
|
87
|
+
* @see {@link GetImportTaskCommand}
|
|
88
|
+
*/
|
|
89
|
+
getImportTask(args: GetImportTaskCommandInput, options?: __HttpHandlerOptions): Promise<GetImportTaskCommandOutput>;
|
|
90
|
+
getImportTask(args: GetImportTaskCommandInput, cb: (err: any, data?: GetImportTaskCommandOutput) => void): void;
|
|
91
|
+
getImportTask(args: GetImportTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetImportTaskCommandOutput) => void): void;
|
|
92
|
+
/**
|
|
93
|
+
* @see {@link GetPrivateGraphEndpointCommand}
|
|
94
|
+
*/
|
|
95
|
+
getPrivateGraphEndpoint(args: GetPrivateGraphEndpointCommandInput, options?: __HttpHandlerOptions): Promise<GetPrivateGraphEndpointCommandOutput>;
|
|
96
|
+
getPrivateGraphEndpoint(args: GetPrivateGraphEndpointCommandInput, cb: (err: any, data?: GetPrivateGraphEndpointCommandOutput) => void): void;
|
|
97
|
+
getPrivateGraphEndpoint(args: GetPrivateGraphEndpointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPrivateGraphEndpointCommandOutput) => void): void;
|
|
98
|
+
/**
|
|
99
|
+
* @see {@link ListGraphsCommand}
|
|
100
|
+
*/
|
|
101
|
+
listGraphs(args: ListGraphsCommandInput, options?: __HttpHandlerOptions): Promise<ListGraphsCommandOutput>;
|
|
102
|
+
listGraphs(args: ListGraphsCommandInput, cb: (err: any, data?: ListGraphsCommandOutput) => void): void;
|
|
103
|
+
listGraphs(args: ListGraphsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListGraphsCommandOutput) => void): void;
|
|
104
|
+
/**
|
|
105
|
+
* @see {@link ListGraphSnapshotsCommand}
|
|
106
|
+
*/
|
|
107
|
+
listGraphSnapshots(args: ListGraphSnapshotsCommandInput, options?: __HttpHandlerOptions): Promise<ListGraphSnapshotsCommandOutput>;
|
|
108
|
+
listGraphSnapshots(args: ListGraphSnapshotsCommandInput, cb: (err: any, data?: ListGraphSnapshotsCommandOutput) => void): void;
|
|
109
|
+
listGraphSnapshots(args: ListGraphSnapshotsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListGraphSnapshotsCommandOutput) => void): void;
|
|
110
|
+
/**
|
|
111
|
+
* @see {@link ListImportTasksCommand}
|
|
112
|
+
*/
|
|
113
|
+
listImportTasks(args: ListImportTasksCommandInput, options?: __HttpHandlerOptions): Promise<ListImportTasksCommandOutput>;
|
|
114
|
+
listImportTasks(args: ListImportTasksCommandInput, cb: (err: any, data?: ListImportTasksCommandOutput) => void): void;
|
|
115
|
+
listImportTasks(args: ListImportTasksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListImportTasksCommandOutput) => void): void;
|
|
116
|
+
/**
|
|
117
|
+
* @see {@link ListPrivateGraphEndpointsCommand}
|
|
118
|
+
*/
|
|
119
|
+
listPrivateGraphEndpoints(args: ListPrivateGraphEndpointsCommandInput, options?: __HttpHandlerOptions): Promise<ListPrivateGraphEndpointsCommandOutput>;
|
|
120
|
+
listPrivateGraphEndpoints(args: ListPrivateGraphEndpointsCommandInput, cb: (err: any, data?: ListPrivateGraphEndpointsCommandOutput) => void): void;
|
|
121
|
+
listPrivateGraphEndpoints(args: ListPrivateGraphEndpointsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPrivateGraphEndpointsCommandOutput) => void): void;
|
|
122
|
+
/**
|
|
123
|
+
* @see {@link ListTagsForResourceCommand}
|
|
124
|
+
*/
|
|
125
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
126
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
127
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
128
|
+
/**
|
|
129
|
+
* @see {@link ResetGraphCommand}
|
|
130
|
+
*/
|
|
131
|
+
resetGraph(args: ResetGraphCommandInput, options?: __HttpHandlerOptions): Promise<ResetGraphCommandOutput>;
|
|
132
|
+
resetGraph(args: ResetGraphCommandInput, cb: (err: any, data?: ResetGraphCommandOutput) => void): void;
|
|
133
|
+
resetGraph(args: ResetGraphCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ResetGraphCommandOutput) => void): void;
|
|
134
|
+
/**
|
|
135
|
+
* @see {@link RestoreGraphFromSnapshotCommand}
|
|
136
|
+
*/
|
|
137
|
+
restoreGraphFromSnapshot(args: RestoreGraphFromSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<RestoreGraphFromSnapshotCommandOutput>;
|
|
138
|
+
restoreGraphFromSnapshot(args: RestoreGraphFromSnapshotCommandInput, cb: (err: any, data?: RestoreGraphFromSnapshotCommandOutput) => void): void;
|
|
139
|
+
restoreGraphFromSnapshot(args: RestoreGraphFromSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RestoreGraphFromSnapshotCommandOutput) => void): void;
|
|
140
|
+
/**
|
|
141
|
+
* @see {@link TagResourceCommand}
|
|
142
|
+
*/
|
|
143
|
+
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
144
|
+
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
145
|
+
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
146
|
+
/**
|
|
147
|
+
* @see {@link UntagResourceCommand}
|
|
148
|
+
*/
|
|
149
|
+
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
150
|
+
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
151
|
+
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
152
|
+
/**
|
|
153
|
+
* @see {@link UpdateGraphCommand}
|
|
154
|
+
*/
|
|
155
|
+
updateGraph(args: UpdateGraphCommandInput, options?: __HttpHandlerOptions): Promise<UpdateGraphCommandOutput>;
|
|
156
|
+
updateGraph(args: UpdateGraphCommandInput, cb: (err: any, data?: UpdateGraphCommandOutput) => void): void;
|
|
157
|
+
updateGraph(args: UpdateGraphCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateGraphCommandOutput) => void): void;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* @public
|
|
161
|
+
* <p>Neptune Analytics is a serverless in-memory graph database service for analytics
|
|
162
|
+
* that delivers high-performance analytics and real-time queries for any graph type. It
|
|
163
|
+
* complements the Amazon Neptune Database, an industry-leading managed graph database.</p>
|
|
164
|
+
*/
|
|
165
|
+
export declare class NeptuneGraph extends NeptuneGraphClient implements NeptuneGraph {
|
|
166
|
+
}
|
|
@@ -0,0 +1,193 @@
|
|
|
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 { CancelImportTaskCommandInput, CancelImportTaskCommandOutput } from "./commands/CancelImportTaskCommand";
|
|
12
|
+
import { CreateGraphCommandInput, CreateGraphCommandOutput } from "./commands/CreateGraphCommand";
|
|
13
|
+
import { CreateGraphSnapshotCommandInput, CreateGraphSnapshotCommandOutput } from "./commands/CreateGraphSnapshotCommand";
|
|
14
|
+
import { CreateGraphUsingImportTaskCommandInput, CreateGraphUsingImportTaskCommandOutput } from "./commands/CreateGraphUsingImportTaskCommand";
|
|
15
|
+
import { CreatePrivateGraphEndpointCommandInput, CreatePrivateGraphEndpointCommandOutput } from "./commands/CreatePrivateGraphEndpointCommand";
|
|
16
|
+
import { DeleteGraphCommandInput, DeleteGraphCommandOutput } from "./commands/DeleteGraphCommand";
|
|
17
|
+
import { DeleteGraphSnapshotCommandInput, DeleteGraphSnapshotCommandOutput } from "./commands/DeleteGraphSnapshotCommand";
|
|
18
|
+
import { DeletePrivateGraphEndpointCommandInput, DeletePrivateGraphEndpointCommandOutput } from "./commands/DeletePrivateGraphEndpointCommand";
|
|
19
|
+
import { GetGraphCommandInput, GetGraphCommandOutput } from "./commands/GetGraphCommand";
|
|
20
|
+
import { GetGraphSnapshotCommandInput, GetGraphSnapshotCommandOutput } from "./commands/GetGraphSnapshotCommand";
|
|
21
|
+
import { GetImportTaskCommandInput, GetImportTaskCommandOutput } from "./commands/GetImportTaskCommand";
|
|
22
|
+
import { GetPrivateGraphEndpointCommandInput, GetPrivateGraphEndpointCommandOutput } from "./commands/GetPrivateGraphEndpointCommand";
|
|
23
|
+
import { ListGraphsCommandInput, ListGraphsCommandOutput } from "./commands/ListGraphsCommand";
|
|
24
|
+
import { ListGraphSnapshotsCommandInput, ListGraphSnapshotsCommandOutput } from "./commands/ListGraphSnapshotsCommand";
|
|
25
|
+
import { ListImportTasksCommandInput, ListImportTasksCommandOutput } from "./commands/ListImportTasksCommand";
|
|
26
|
+
import { ListPrivateGraphEndpointsCommandInput, ListPrivateGraphEndpointsCommandOutput } from "./commands/ListPrivateGraphEndpointsCommand";
|
|
27
|
+
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
28
|
+
import { ResetGraphCommandInput, ResetGraphCommandOutput } from "./commands/ResetGraphCommand";
|
|
29
|
+
import { RestoreGraphFromSnapshotCommandInput, RestoreGraphFromSnapshotCommandOutput } from "./commands/RestoreGraphFromSnapshotCommand";
|
|
30
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
31
|
+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
32
|
+
import { UpdateGraphCommandInput, UpdateGraphCommandOutput } from "./commands/UpdateGraphCommand";
|
|
33
|
+
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
34
|
+
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
35
|
+
export { __Client };
|
|
36
|
+
/**
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
export type ServiceInputTypes = CancelImportTaskCommandInput | CreateGraphCommandInput | CreateGraphSnapshotCommandInput | CreateGraphUsingImportTaskCommandInput | CreatePrivateGraphEndpointCommandInput | DeleteGraphCommandInput | DeleteGraphSnapshotCommandInput | DeletePrivateGraphEndpointCommandInput | GetGraphCommandInput | GetGraphSnapshotCommandInput | GetImportTaskCommandInput | GetPrivateGraphEndpointCommandInput | ListGraphSnapshotsCommandInput | ListGraphsCommandInput | ListImportTasksCommandInput | ListPrivateGraphEndpointsCommandInput | ListTagsForResourceCommandInput | ResetGraphCommandInput | RestoreGraphFromSnapshotCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateGraphCommandInput;
|
|
40
|
+
/**
|
|
41
|
+
* @public
|
|
42
|
+
*/
|
|
43
|
+
export type ServiceOutputTypes = CancelImportTaskCommandOutput | CreateGraphCommandOutput | CreateGraphSnapshotCommandOutput | CreateGraphUsingImportTaskCommandOutput | CreatePrivateGraphEndpointCommandOutput | DeleteGraphCommandOutput | DeleteGraphSnapshotCommandOutput | DeletePrivateGraphEndpointCommandOutput | GetGraphCommandOutput | GetGraphSnapshotCommandOutput | GetImportTaskCommandOutput | GetPrivateGraphEndpointCommandOutput | ListGraphSnapshotsCommandOutput | ListGraphsCommandOutput | ListImportTasksCommandOutput | ListPrivateGraphEndpointsCommandOutput | ListTagsForResourceCommandOutput | ResetGraphCommandOutput | RestoreGraphFromSnapshotCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateGraphCommandOutput;
|
|
44
|
+
/**
|
|
45
|
+
* @public
|
|
46
|
+
*/
|
|
47
|
+
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
48
|
+
/**
|
|
49
|
+
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
50
|
+
*/
|
|
51
|
+
requestHandler?: __HttpHandler;
|
|
52
|
+
/**
|
|
53
|
+
* A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
|
|
54
|
+
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
55
|
+
* @internal
|
|
56
|
+
*/
|
|
57
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
58
|
+
/**
|
|
59
|
+
* The function that will be used to convert strings into HTTP endpoints.
|
|
60
|
+
* @internal
|
|
61
|
+
*/
|
|
62
|
+
urlParser?: __UrlParser;
|
|
63
|
+
/**
|
|
64
|
+
* A function that can calculate the length of a request body.
|
|
65
|
+
* @internal
|
|
66
|
+
*/
|
|
67
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
68
|
+
/**
|
|
69
|
+
* A function that converts a stream into an array of bytes.
|
|
70
|
+
* @internal
|
|
71
|
+
*/
|
|
72
|
+
streamCollector?: __StreamCollector;
|
|
73
|
+
/**
|
|
74
|
+
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
75
|
+
* @internal
|
|
76
|
+
*/
|
|
77
|
+
base64Decoder?: __Decoder;
|
|
78
|
+
/**
|
|
79
|
+
* The function that will be used to convert binary data to a base64-encoded string.
|
|
80
|
+
* @internal
|
|
81
|
+
*/
|
|
82
|
+
base64Encoder?: __Encoder;
|
|
83
|
+
/**
|
|
84
|
+
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
85
|
+
* @internal
|
|
86
|
+
*/
|
|
87
|
+
utf8Decoder?: __Decoder;
|
|
88
|
+
/**
|
|
89
|
+
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
90
|
+
* @internal
|
|
91
|
+
*/
|
|
92
|
+
utf8Encoder?: __Encoder;
|
|
93
|
+
/**
|
|
94
|
+
* The runtime environment.
|
|
95
|
+
* @internal
|
|
96
|
+
*/
|
|
97
|
+
runtime?: string;
|
|
98
|
+
/**
|
|
99
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
100
|
+
* trait of an operation.
|
|
101
|
+
*/
|
|
102
|
+
disableHostPrefix?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Unique service identifier.
|
|
105
|
+
* @internal
|
|
106
|
+
*/
|
|
107
|
+
serviceId?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
110
|
+
*/
|
|
111
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
112
|
+
/**
|
|
113
|
+
* Enables FIPS compatible endpoints.
|
|
114
|
+
*/
|
|
115
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
116
|
+
/**
|
|
117
|
+
* The AWS region to which this client will send requests
|
|
118
|
+
*/
|
|
119
|
+
region?: string | __Provider<string>;
|
|
120
|
+
/**
|
|
121
|
+
* Default credentials provider; Not available in browser runtime.
|
|
122
|
+
* @internal
|
|
123
|
+
*/
|
|
124
|
+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
125
|
+
/**
|
|
126
|
+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
127
|
+
* @internal
|
|
128
|
+
*/
|
|
129
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
130
|
+
/**
|
|
131
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
132
|
+
*/
|
|
133
|
+
maxAttempts?: number | __Provider<number>;
|
|
134
|
+
/**
|
|
135
|
+
* Specifies which retry algorithm to use.
|
|
136
|
+
* @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
|
|
137
|
+
*
|
|
138
|
+
*/
|
|
139
|
+
retryMode?: string | __Provider<string>;
|
|
140
|
+
/**
|
|
141
|
+
* Optional logger for logging debug/info/warn/error.
|
|
142
|
+
*/
|
|
143
|
+
logger?: __Logger;
|
|
144
|
+
/**
|
|
145
|
+
* Optional extensions
|
|
146
|
+
*/
|
|
147
|
+
extensions?: RuntimeExtension[];
|
|
148
|
+
/**
|
|
149
|
+
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
150
|
+
*/
|
|
151
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* @public
|
|
155
|
+
*/
|
|
156
|
+
export type NeptuneGraphClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
|
|
157
|
+
/**
|
|
158
|
+
* @public
|
|
159
|
+
*
|
|
160
|
+
* The configuration interface of NeptuneGraphClient class constructor that set the region, credentials and other options.
|
|
161
|
+
*/
|
|
162
|
+
export interface NeptuneGraphClientConfig extends NeptuneGraphClientConfigType {
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* @public
|
|
166
|
+
*/
|
|
167
|
+
export type NeptuneGraphClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
|
|
168
|
+
/**
|
|
169
|
+
* @public
|
|
170
|
+
*
|
|
171
|
+
* The resolved configuration interface of NeptuneGraphClient class. This is resolved and normalized from the {@link NeptuneGraphClientConfig | constructor configuration interface}.
|
|
172
|
+
*/
|
|
173
|
+
export interface NeptuneGraphClientResolvedConfig extends NeptuneGraphClientResolvedConfigType {
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* @public
|
|
177
|
+
* <p>Neptune Analytics is a serverless in-memory graph database service for analytics
|
|
178
|
+
* that delivers high-performance analytics and real-time queries for any graph type. It
|
|
179
|
+
* complements the Amazon Neptune Database, an industry-leading managed graph database.</p>
|
|
180
|
+
*/
|
|
181
|
+
export declare class NeptuneGraphClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, NeptuneGraphClientResolvedConfig> {
|
|
182
|
+
/**
|
|
183
|
+
* The resolved configuration of NeptuneGraphClient class. This is resolved and normalized from the {@link NeptuneGraphClientConfig | constructor configuration interface}.
|
|
184
|
+
*/
|
|
185
|
+
readonly config: NeptuneGraphClientResolvedConfig;
|
|
186
|
+
constructor(...[configuration]: __CheckOptionalClientConfig<NeptuneGraphClientConfig>);
|
|
187
|
+
/**
|
|
188
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
189
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
190
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
191
|
+
*/
|
|
192
|
+
destroy(): void;
|
|
193
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
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 { CancelImportTaskInput, CancelImportTaskOutput } from "../models/models_0";
|
|
5
|
+
import { NeptuneGraphClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptuneGraphClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CancelImportTaskCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CancelImportTaskCommandInput extends CancelImportTaskInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CancelImportTaskCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CancelImportTaskCommandOutput extends CancelImportTaskOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Deletes the specified import task</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { NeptuneGraphClient, CancelImportTaskCommand } from "@aws-sdk/client-neptune-graph"; // ES Modules import
|
|
31
|
+
* // const { NeptuneGraphClient, CancelImportTaskCommand } = require("@aws-sdk/client-neptune-graph"); // CommonJS import
|
|
32
|
+
* const client = new NeptuneGraphClient(config);
|
|
33
|
+
* const input = { // CancelImportTaskInput
|
|
34
|
+
* taskIdentifier: "STRING_VALUE", // required
|
|
35
|
+
* };
|
|
36
|
+
* const command = new CancelImportTaskCommand(input);
|
|
37
|
+
* const response = await client.send(command);
|
|
38
|
+
* // { // CancelImportTaskOutput
|
|
39
|
+
* // graphId: "STRING_VALUE",
|
|
40
|
+
* // taskId: "STRING_VALUE", // required
|
|
41
|
+
* // source: "STRING_VALUE", // required
|
|
42
|
+
* // format: "CSV" || "OPEN_CYPHER",
|
|
43
|
+
* // roleArn: "STRING_VALUE", // required
|
|
44
|
+
* // status: "INITIALIZING" || "EXPORTING" || "ANALYZING_DATA" || "IMPORTING" || "REPROVISIONING" || "ROLLING_BACK" || "SUCCEEDED" || "FAILED" || "CANCELLING" || "CANCELLED", // required
|
|
45
|
+
* // };
|
|
46
|
+
*
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @param CancelImportTaskCommandInput - {@link CancelImportTaskCommandInput}
|
|
50
|
+
* @returns {@link CancelImportTaskCommandOutput}
|
|
51
|
+
* @see {@link CancelImportTaskCommandInput} for command's `input` shape.
|
|
52
|
+
* @see {@link CancelImportTaskCommandOutput} for command's `response` shape.
|
|
53
|
+
* @see {@link NeptuneGraphClientResolvedConfig | config} for NeptuneGraphClient's `config` shape.
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link ConflictException} (client fault)
|
|
56
|
+
* <p>Raised when a conflict is encountered.</p>
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link InternalServerException} (server fault)
|
|
59
|
+
* <p>A failure occurred on the server.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
62
|
+
* <p>A specified resource could not be located.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
65
|
+
* <p>The exception was interrupted by throttling.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ValidationException} (client fault)
|
|
68
|
+
* <p>A resource could not be validated</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link NeptuneGraphServiceException}
|
|
71
|
+
* <p>Base exception class for all service exceptions from NeptuneGraph service.</p>
|
|
72
|
+
*
|
|
73
|
+
*/
|
|
74
|
+
export declare class CancelImportTaskCommand extends $Command<CancelImportTaskCommandInput, CancelImportTaskCommandOutput, NeptuneGraphClientResolvedConfig> {
|
|
75
|
+
readonly input: CancelImportTaskCommandInput;
|
|
76
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
77
|
+
/**
|
|
78
|
+
* @public
|
|
79
|
+
*/
|
|
80
|
+
constructor(input: CancelImportTaskCommandInput);
|
|
81
|
+
/**
|
|
82
|
+
* @internal
|
|
83
|
+
*/
|
|
84
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: NeptuneGraphClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CancelImportTaskCommandInput, CancelImportTaskCommandOutput>;
|
|
85
|
+
/**
|
|
86
|
+
* @internal
|
|
87
|
+
*/
|
|
88
|
+
private serialize;
|
|
89
|
+
/**
|
|
90
|
+
* @internal
|
|
91
|
+
*/
|
|
92
|
+
private deserialize;
|
|
93
|
+
}
|