@aws-sdk/client-neptune-graph 3.511.0 → 3.513.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.
Files changed (31) hide show
  1. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +1 -0
  2. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  3. package/dist-cjs/index.js +116 -45
  4. package/dist-cjs/runtimeConfig.shared.js +10 -0
  5. package/dist-es/NeptuneGraphClient.js +17 -4
  6. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  7. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  8. package/dist-es/protocols/Aws_restJson1.js +13 -0
  9. package/dist-es/runtimeConfig.shared.js +10 -0
  10. package/dist-es/runtimeExtensions.js +3 -0
  11. package/dist-types/NeptuneGraphClient.d.ts +13 -11
  12. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  13. package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
  14. package/dist-types/commands/ExecuteQueryCommand.d.ts +18 -0
  15. package/dist-types/commands/GetQueryCommand.d.ts +6 -0
  16. package/dist-types/extensionConfiguration.d.ts +2 -1
  17. package/dist-types/models/models_0.d.ts +11 -6
  18. package/dist-types/runtimeConfig.browser.d.ts +5 -3
  19. package/dist-types/runtimeConfig.d.ts +4 -2
  20. package/dist-types/runtimeConfig.native.d.ts +6 -4
  21. package/dist-types/runtimeConfig.shared.d.ts +2 -0
  22. package/dist-types/ts3.4/NeptuneGraphClient.d.ts +11 -9
  23. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  24. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
  25. package/dist-types/ts3.4/extensionConfiguration.d.ts +3 -1
  26. package/dist-types/ts3.4/models/models_0.d.ts +5 -1
  27. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -5
  28. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -4
  29. package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -8
  30. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
  31. package/package.json +7 -7
@@ -155,6 +155,7 @@ export const se_ExecuteQueryCommand = async (input, context) => {
155
155
  body = JSON.stringify(take(input, {
156
156
  explain: [, , `explainMode`],
157
157
  language: [],
158
+ parameters: (_) => se_DocumentValuedMap(_, context),
158
159
  planCache: [],
159
160
  query: [, , `queryString`],
160
161
  queryTimeoutMilliseconds: [],
@@ -1079,6 +1080,18 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1079
1080
  });
1080
1081
  return __decorateServiceException(exception, parsedOutput.body);
1081
1082
  };
1083
+ const se_DocumentValuedMap = (input, context) => {
1084
+ return Object.entries(input).reduce((acc, [key, value]) => {
1085
+ if (value === null) {
1086
+ return acc;
1087
+ }
1088
+ acc[key] = se_Document(value, context);
1089
+ return acc;
1090
+ }, {});
1091
+ };
1092
+ const se_Document = (input, context) => {
1093
+ return input;
1094
+ };
1082
1095
  const de_GraphSnapshotSummary = (output, context) => {
1083
1096
  return take(output, {
1084
1097
  arn: __expectString,
@@ -1,8 +1,10 @@
1
+ import { AwsSdkSigV4Signer } from "@aws-sdk/core";
1
2
  import { NoOpLogger } from "@smithy/smithy-client";
2
3
  import { parseUrl } from "@smithy/url-parser";
3
4
  import { fromBase64, toBase64 } from "@smithy/util-base64";
4
5
  import { sdkStreamMixin } from "@smithy/util-stream";
5
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
+ import { defaultNeptuneGraphHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
6
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
7
9
  export const getRuntimeConfig = (config) => {
8
10
  return {
@@ -12,6 +14,14 @@ export const getRuntimeConfig = (config) => {
12
14
  disableHostPrefix: config?.disableHostPrefix ?? false,
13
15
  endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
14
16
  extensions: config?.extensions ?? [],
17
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultNeptuneGraphHttpAuthSchemeProvider,
18
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
19
+ {
20
+ schemeId: "aws.auth#sigv4",
21
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
22
+ signer: new AwsSdkSigV4Signer(),
23
+ },
24
+ ],
15
25
  logger: config?.logger ?? new NoOpLogger(),
16
26
  sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
17
27
  serviceId: config?.serviceId ?? "Neptune Graph",
@@ -1,12 +1,14 @@
1
1
  import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
2
2
  import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
3
3
  import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
4
+ import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
4
5
  const asPartial = (t) => t;
5
6
  export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
6
7
  const extensionConfiguration = {
7
8
  ...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
8
9
  ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
9
10
  ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
11
+ ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
10
12
  };
11
13
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
12
14
  return {
@@ -14,5 +16,6 @@ export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
14
16
  ...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
15
17
  ...resolveDefaultRuntimeConfig(extensionConfiguration),
16
18
  ...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
19
+ ...resolveHttpAuthRuntimeConfig(extensionConfiguration),
17
20
  };
18
21
  };
@@ -1,13 +1,12 @@
1
1
  import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
2
- import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
3
2
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
4
- import { Credentials as __Credentials } from "@aws-sdk/types";
5
3
  import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
6
4
  import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
7
5
  import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
8
6
  import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
9
7
  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, SdkStreamMixinInjector as __SdkStreamMixinInjector, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
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, SdkStreamMixinInjector as __SdkStreamMixinInjector, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
+ import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
11
10
  import { CancelImportTaskCommandInput, CancelImportTaskCommandOutput } from "./commands/CancelImportTaskCommand";
12
11
  import { CancelQueryCommandInput, CancelQueryCommandOutput } from "./commands/CancelQueryCommand";
13
12
  import { CreateGraphCommandInput, CreateGraphCommandOutput } from "./commands/CreateGraphCommand";
@@ -118,20 +117,21 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
118
117
  * Enables FIPS compatible endpoints.
119
118
  */
120
119
  useFipsEndpoint?: boolean | __Provider<boolean>;
120
+ /**
121
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
122
+ * @internal
123
+ */
124
+ defaultUserAgentProvider?: Provider<__UserAgent>;
121
125
  /**
122
126
  * The AWS region to which this client will send requests
123
127
  */
124
128
  region?: string | __Provider<string>;
125
129
  /**
126
130
  * Default credentials provider; Not available in browser runtime.
131
+ * @deprecated
127
132
  * @internal
128
133
  */
129
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
130
- /**
131
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
132
- * @internal
133
- */
134
- defaultUserAgentProvider?: Provider<__UserAgent>;
134
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
135
135
  /**
136
136
  * Value for how many times a request will be made at most in case of retry.
137
137
  */
@@ -163,7 +163,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
163
163
  /**
164
164
  * @public
165
165
  */
166
- export type NeptuneGraphClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
166
+ export type NeptuneGraphClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & UserAgentInputConfig & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
167
167
  /**
168
168
  * @public
169
169
  *
@@ -174,7 +174,7 @@ export interface NeptuneGraphClientConfig extends NeptuneGraphClientConfigType {
174
174
  /**
175
175
  * @public
176
176
  */
177
- export type NeptuneGraphClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
177
+ export type NeptuneGraphClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & UserAgentResolvedConfig & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
178
178
  /**
179
179
  * @public
180
180
  *
@@ -200,4 +200,6 @@ export declare class NeptuneGraphClient extends __Client<__HttpHandlerOptions, S
200
200
  * Otherwise, sockets might stay open for quite a long time before the server terminates them.
201
201
  */
202
202
  destroy(): void;
203
+ private getDefaultHttpAuthSchemeParametersProvider;
204
+ private getIdentityProviderConfigProvider;
203
205
  }
@@ -0,0 +1,29 @@
1
+ import { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
2
+ import { NeptuneGraphHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
3
+ /**
4
+ * @internal
5
+ */
6
+ export interface HttpAuthExtensionConfiguration {
7
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
8
+ httpAuthSchemes(): HttpAuthScheme[];
9
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider: NeptuneGraphHttpAuthSchemeProvider): void;
10
+ httpAuthSchemeProvider(): NeptuneGraphHttpAuthSchemeProvider;
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: NeptuneGraphHttpAuthSchemeProvider;
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 { NeptuneGraphClientResolvedConfig } from "../NeptuneGraphClient";
4
+ /**
5
+ * @internal
6
+ */
7
+ export interface NeptuneGraphHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
8
+ region?: string;
9
+ }
10
+ /**
11
+ * @internal
12
+ */
13
+ export interface NeptuneGraphHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<NeptuneGraphClientResolvedConfig, HandlerExecutionContext, NeptuneGraphHttpAuthSchemeParameters, object> {
14
+ }
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const defaultNeptuneGraphHttpAuthSchemeParametersProvider: (config: NeptuneGraphClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<NeptuneGraphHttpAuthSchemeParameters>;
19
+ /**
20
+ * @internal
21
+ */
22
+ export interface NeptuneGraphHttpAuthSchemeProvider extends HttpAuthSchemeProvider<NeptuneGraphHttpAuthSchemeParameters> {
23
+ }
24
+ /**
25
+ * @internal
26
+ */
27
+ export declare const defaultNeptuneGraphHttpAuthSchemeProvider: NeptuneGraphHttpAuthSchemeProvider;
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?: NeptuneGraphHttpAuthSchemeProvider;
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: NeptuneGraphHttpAuthSchemeProvider;
57
+ }
58
+ /**
59
+ * @internal
60
+ */
61
+ export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
@@ -29,6 +29,21 @@ declare const ExecuteQueryCommand_base: {
29
29
  * @public
30
30
  * <p>Execute an openCypher query. Currently, the SDK does not support parameterized queries. If you want to make a
31
31
  * parameterized query call, you can use an HTTP request. </p>
32
+ * <p>
33
+ * When invoking this operation in a Neptune Analytics cluster, the IAM user or role making the request must have a policy attached
34
+ * that allows one of the following IAM actions in that cluster, depending on the query:
35
+ * </p>
36
+ * <ul>
37
+ * <li>
38
+ * <p>neptune-graph:ReadDataViaQuery</p>
39
+ * </li>
40
+ * <li>
41
+ * <p>neptune-graph:WriteDataViaQuery</p>
42
+ * </li>
43
+ * <li>
44
+ * <p>neptune-graph:DeleteDataViaQuery</p>
45
+ * </li>
46
+ * </ul>
32
47
  * <note>
33
48
  * <p>
34
49
  * Non-parametrized queries are not considered for plan caching. You can force plan caching with
@@ -46,6 +61,9 @@ declare const ExecuteQueryCommand_base: {
46
61
  * graphIdentifier: "STRING_VALUE", // required
47
62
  * queryString: "STRING_VALUE", // required
48
63
  * language: "OPEN_CYPHER", // required
64
+ * parameters: { // DocumentValuedMap
65
+ * "<keys>": "DOCUMENT_VALUE",
66
+ * },
49
67
  * planCache: "ENABLED" || "DISABLED" || "AUTO",
50
68
  * explainMode: "STATIC" || "DETAILS",
51
69
  * queryTimeoutMilliseconds: Number("int"),
@@ -27,6 +27,12 @@ declare const GetQueryCommand_base: {
27
27
  /**
28
28
  * @public
29
29
  * <p>Retrieves the status of a specified query.</p>
30
+ * <note>
31
+ * <p>
32
+ * When invoking this operation in a Neptune Analytics cluster, the IAM user or role making the request must have the
33
+ * <code>neptune-graph:GetQueryStatus</code> IAM action attached.
34
+ * </p>
35
+ * </note>
30
36
  * @example
31
37
  * Use a bare-bones client and the command you need to make an API call.
32
38
  * ```javascript
@@ -1,8 +1,9 @@
1
1
  import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
2
  import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
3
3
  import { DefaultExtensionConfiguration } from "@smithy/types";
4
+ import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
4
5
  /**
5
6
  * @internal
6
7
  */
7
- export interface NeptuneGraphExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration {
8
+ export interface NeptuneGraphExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration {
8
9
  }
@@ -1,5 +1,5 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { StreamingBlobTypes } from "@smithy/types";
2
+ import { DocumentType as __DocumentType, StreamingBlobTypes } from "@smithy/types";
3
3
  import { NeptuneGraphServiceException as __BaseException } from "./NeptuneGraphServiceException";
4
4
  /**
5
5
  * @public
@@ -185,6 +185,11 @@ export interface ExecuteQueryInput {
185
185
  * <p>The query language the query is written in. Currently only openCypher is supported.</p>
186
186
  */
187
187
  language: QueryLanguage | undefined;
188
+ /**
189
+ * @public
190
+ * <p>The data parameters the query can use in JSON format. For example: \{"name": "john", "age": 20\}. (optional) </p>
191
+ */
192
+ parameters?: Record<string, __DocumentType>;
188
193
  /**
189
194
  * @public
190
195
  * <p>Query plan cache is a feature that saves the query plan and reuses it on successive executions of the same query.
@@ -498,7 +503,7 @@ export interface CreateGraphInput {
498
503
  tags?: Record<string, string>;
499
504
  /**
500
505
  * @public
501
- * <p>Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated.
506
+ * <p>Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated.
502
507
  * (<code>true</code> to enable, or <code>false</code> to disable.</p>
503
508
  */
504
509
  publicConnectivity?: boolean;
@@ -596,7 +601,7 @@ export interface CreateGraphOutput {
596
601
  endpoint?: string;
597
602
  /**
598
603
  * @public
599
- * <p>Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated.</p>
604
+ * <p>Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated.</p>
600
605
  */
601
606
  publicConnectivity?: boolean;
602
607
  /**
@@ -1086,7 +1091,7 @@ export interface RestoreGraphFromSnapshotInput {
1086
1091
  replicaCount?: number;
1087
1092
  /**
1088
1093
  * @public
1089
- * <p>Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated.
1094
+ * <p>Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated.
1090
1095
  * (<code>true</code> to enable, or <code>false</code> to disable).</p>
1091
1096
  */
1092
1097
  publicConnectivity?: boolean;
@@ -1182,7 +1187,7 @@ export interface UpdateGraphInput {
1182
1187
  graphIdentifier: string | undefined;
1183
1188
  /**
1184
1189
  * @public
1185
- * <p>Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated.
1190
+ * <p>Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated.
1186
1191
  * (<code>true</code> to enable, or <code>false</code> to disable.</p>
1187
1192
  */
1188
1193
  publicConnectivity?: boolean;
@@ -2062,7 +2067,7 @@ export interface CreateGraphUsingImportTaskInput {
2062
2067
  tags?: Record<string, string>;
2063
2068
  /**
2064
2069
  * @public
2065
- * <p>Specifies whether or not the graph can be reachable over the internet. All access to graphs IAM authenticated.
2070
+ * <p>Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated.
2066
2071
  * (<code>true</code> to enable, or <code>false</code> to disable).</p>
2067
2072
  */
2068
2073
  publicConnectivity?: boolean;
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: NeptuneGraphClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
10
+ credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
11
11
  defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<any>;
@@ -37,11 +37,13 @@ export declare const getRuntimeConfig: (config: NeptuneGraphClientConfig) => {
37
37
  }) => import("@smithy/types").EndpointV2;
38
38
  tls?: boolean | undefined;
39
39
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
40
- credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined;
40
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
41
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
42
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").NeptuneGraphHttpAuthSchemeProvider;
43
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
41
44
  signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
42
45
  signingEscapePath?: boolean | undefined;
43
46
  systemClockOffset?: number | undefined;
44
47
  signingRegion?: string | undefined;
45
48
  signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
46
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
47
49
  };
@@ -37,11 +37,13 @@ export declare const getRuntimeConfig: (config: NeptuneGraphClientConfig) => {
37
37
  }) => import("@smithy/types").EndpointV2;
38
38
  tls?: boolean | undefined;
39
39
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
40
- credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined;
40
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
41
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
42
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").NeptuneGraphHttpAuthSchemeProvider;
43
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
41
44
  signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
42
45
  signingEscapePath?: boolean | undefined;
43
46
  systemClockOffset?: number | undefined;
44
47
  signingRegion?: string | undefined;
45
48
  signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
46
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
47
49
  };
@@ -21,9 +21,9 @@ export declare const getRuntimeConfig: (config: NeptuneGraphClientConfig) => {
21
21
  serviceId: string;
22
22
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
23
23
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
24
- region: string | import("@smithy/types").Provider<any>;
25
- credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
26
24
  defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
25
+ region: string | import("@smithy/types").Provider<any>;
26
+ credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
27
27
  maxAttempts: number | import("@smithy/types").Provider<number>;
28
28
  retryMode: string | import("@smithy/types").Provider<string>;
29
29
  logger: import("@smithy/types").Logger;
@@ -36,11 +36,13 @@ export declare const getRuntimeConfig: (config: NeptuneGraphClientConfig) => {
36
36
  }) => import("@smithy/types").EndpointV2;
37
37
  tls?: boolean | undefined;
38
38
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
39
- credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined;
39
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
40
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
41
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").NeptuneGraphHttpAuthSchemeProvider;
42
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
40
43
  signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
41
44
  signingEscapePath?: boolean | undefined;
42
45
  systemClockOffset?: number | undefined;
43
46
  signingRegion?: string | undefined;
44
47
  signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
45
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
46
48
  };
@@ -11,6 +11,8 @@ export declare const getRuntimeConfig: (config: NeptuneGraphClientConfig) => {
11
11
  logger?: import("@smithy/types").Logger | undefined;
12
12
  }) => import("@smithy/types").EndpointV2;
13
13
  extensions: import("./runtimeExtensions").RuntimeExtension[];
14
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").NeptuneGraphHttpAuthSchemeProvider;
15
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
14
16
  logger: import("@smithy/types").Logger;
15
17
  sdkStreamMixin: import("@smithy/types").SdkStreamMixinInjector;
16
18
  serviceId: string;
@@ -2,15 +2,10 @@ import {
2
2
  HostHeaderInputConfig,
3
3
  HostHeaderResolvedConfig,
4
4
  } from "@aws-sdk/middleware-host-header";
5
- import {
6
- AwsAuthInputConfig,
7
- AwsAuthResolvedConfig,
8
- } from "@aws-sdk/middleware-signing";
9
5
  import {
10
6
  UserAgentInputConfig,
11
7
  UserAgentResolvedConfig,
12
8
  } from "@aws-sdk/middleware-user-agent";
13
- import { Credentials as __Credentials } from "@aws-sdk/types";
14
9
  import {
15
10
  RegionInputConfig,
16
11
  RegionResolvedConfig,
@@ -31,6 +26,7 @@ import {
31
26
  SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
32
27
  } from "@smithy/smithy-client";
33
28
  import {
29
+ AwsCredentialIdentityProvider,
34
30
  BodyLengthCalculator as __BodyLengthCalculator,
35
31
  CheckOptionalClientConfig as __CheckOptionalClientConfig,
36
32
  ChecksumConstructor as __ChecksumConstructor,
@@ -46,6 +42,10 @@ import {
46
42
  UrlParser as __UrlParser,
47
43
  UserAgent as __UserAgent,
48
44
  } from "@smithy/types";
45
+ import {
46
+ HttpAuthSchemeInputConfig,
47
+ HttpAuthSchemeResolvedConfig,
48
+ } from "./auth/httpAuthSchemeProvider";
49
49
  import {
50
50
  CancelImportTaskCommandInput,
51
51
  CancelImportTaskCommandOutput,
@@ -233,9 +233,9 @@ export interface ClientDefaults
233
233
  serviceId?: string;
234
234
  useDualstackEndpoint?: boolean | __Provider<boolean>;
235
235
  useFipsEndpoint?: boolean | __Provider<boolean>;
236
- region?: string | __Provider<string>;
237
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
238
236
  defaultUserAgentProvider?: Provider<__UserAgent>;
237
+ region?: string | __Provider<string>;
238
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
239
239
  maxAttempts?: number | __Provider<number>;
240
240
  retryMode?: string | __Provider<string>;
241
241
  logger?: __Logger;
@@ -251,8 +251,8 @@ export type NeptuneGraphClientConfigType = Partial<
251
251
  EndpointInputConfig<EndpointParameters> &
252
252
  RetryInputConfig &
253
253
  HostHeaderInputConfig &
254
- AwsAuthInputConfig &
255
254
  UserAgentInputConfig &
255
+ HttpAuthSchemeInputConfig &
256
256
  ClientInputEndpointParameters;
257
257
  export interface NeptuneGraphClientConfig
258
258
  extends NeptuneGraphClientConfigType {}
@@ -264,8 +264,8 @@ export type NeptuneGraphClientResolvedConfigType =
264
264
  EndpointResolvedConfig<EndpointParameters> &
265
265
  RetryResolvedConfig &
266
266
  HostHeaderResolvedConfig &
267
- AwsAuthResolvedConfig &
268
267
  UserAgentResolvedConfig &
268
+ HttpAuthSchemeResolvedConfig &
269
269
  ClientResolvedEndpointParameters;
270
270
  export interface NeptuneGraphClientResolvedConfig
271
271
  extends NeptuneGraphClientResolvedConfigType {}
@@ -280,4 +280,6 @@ export declare class NeptuneGraphClient extends __Client<
280
280
  ...[configuration]: __CheckOptionalClientConfig<NeptuneGraphClientConfig>
281
281
  );
282
282
  destroy(): void;
283
+ private getDefaultHttpAuthSchemeParametersProvider;
284
+ private getIdentityProviderConfigProvider;
283
285
  }
@@ -0,0 +1,32 @@
1
+ import {
2
+ AwsCredentialIdentity,
3
+ AwsCredentialIdentityProvider,
4
+ HttpAuthScheme,
5
+ } from "@smithy/types";
6
+ import { NeptuneGraphHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
7
+ export interface HttpAuthExtensionConfiguration {
8
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
9
+ httpAuthSchemes(): HttpAuthScheme[];
10
+ setHttpAuthSchemeProvider(
11
+ httpAuthSchemeProvider: NeptuneGraphHttpAuthSchemeProvider
12
+ ): void;
13
+ httpAuthSchemeProvider(): NeptuneGraphHttpAuthSchemeProvider;
14
+ setCredentials(
15
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider
16
+ ): void;
17
+ credentials():
18
+ | AwsCredentialIdentity
19
+ | AwsCredentialIdentityProvider
20
+ | undefined;
21
+ }
22
+ export type HttpAuthRuntimeConfig = Partial<{
23
+ httpAuthSchemes: HttpAuthScheme[];
24
+ httpAuthSchemeProvider: NeptuneGraphHttpAuthSchemeProvider;
25
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
26
+ }>;
27
+ export declare const getHttpAuthExtensionConfiguration: (
28
+ runtimeConfig: HttpAuthRuntimeConfig
29
+ ) => HttpAuthExtensionConfiguration;
30
+ export declare const resolveHttpAuthRuntimeConfig: (
31
+ config: HttpAuthExtensionConfiguration
32
+ ) => HttpAuthRuntimeConfig;
@@ -0,0 +1,44 @@
1
+ import {
2
+ AwsSdkSigV4AuthInputConfig,
3
+ AwsSdkSigV4AuthResolvedConfig,
4
+ AwsSdkSigV4PreviouslyResolved,
5
+ } from "@aws-sdk/core";
6
+ import {
7
+ HandlerExecutionContext,
8
+ HttpAuthScheme,
9
+ HttpAuthSchemeParameters,
10
+ HttpAuthSchemeParametersProvider,
11
+ HttpAuthSchemeProvider,
12
+ } from "@smithy/types";
13
+ import { NeptuneGraphClientResolvedConfig } from "../NeptuneGraphClient";
14
+ export interface NeptuneGraphHttpAuthSchemeParameters
15
+ extends HttpAuthSchemeParameters {
16
+ region?: string;
17
+ }
18
+ export interface NeptuneGraphHttpAuthSchemeParametersProvider
19
+ extends HttpAuthSchemeParametersProvider<
20
+ NeptuneGraphClientResolvedConfig,
21
+ HandlerExecutionContext,
22
+ NeptuneGraphHttpAuthSchemeParameters,
23
+ object
24
+ > {}
25
+ export declare const defaultNeptuneGraphHttpAuthSchemeParametersProvider: (
26
+ config: NeptuneGraphClientResolvedConfig,
27
+ context: HandlerExecutionContext,
28
+ input: object
29
+ ) => Promise<NeptuneGraphHttpAuthSchemeParameters>;
30
+ export interface NeptuneGraphHttpAuthSchemeProvider
31
+ extends HttpAuthSchemeProvider<NeptuneGraphHttpAuthSchemeParameters> {}
32
+ export declare const defaultNeptuneGraphHttpAuthSchemeProvider: NeptuneGraphHttpAuthSchemeProvider;
33
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
34
+ httpAuthSchemes?: HttpAuthScheme[];
35
+ httpAuthSchemeProvider?: NeptuneGraphHttpAuthSchemeProvider;
36
+ }
37
+ export interface HttpAuthSchemeResolvedConfig
38
+ extends AwsSdkSigV4AuthResolvedConfig {
39
+ readonly httpAuthSchemes: HttpAuthScheme[];
40
+ readonly httpAuthSchemeProvider: NeptuneGraphHttpAuthSchemeProvider;
41
+ }
42
+ export declare const resolveHttpAuthSchemeConfig: <T>(
43
+ config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
44
+ ) => T & HttpAuthSchemeResolvedConfig;
@@ -1,7 +1,9 @@
1
1
  import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
2
  import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
3
3
  import { DefaultExtensionConfiguration } from "@smithy/types";
4
+ import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
4
5
  export interface NeptuneGraphExtensionConfiguration
5
6
  extends HttpHandlerExtensionConfiguration,
6
7
  DefaultExtensionConfiguration,
7
- AwsRegionExtensionConfiguration {}
8
+ AwsRegionExtensionConfiguration,
9
+ HttpAuthExtensionConfiguration {}
@@ -1,5 +1,8 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { StreamingBlobTypes } from "@smithy/types";
2
+ import {
3
+ DocumentType as __DocumentType,
4
+ StreamingBlobTypes,
5
+ } from "@smithy/types";
3
6
  import { NeptuneGraphServiceException as __BaseException } from "./NeptuneGraphServiceException";
4
7
  export declare class AccessDeniedException extends __BaseException {
5
8
  readonly name: "AccessDeniedException";
@@ -86,6 +89,7 @@ export interface ExecuteQueryInput {
86
89
  graphIdentifier: string | undefined;
87
90
  queryString: string | undefined;
88
91
  language: QueryLanguage | undefined;
92
+ parameters?: Record<string, __DocumentType>;
89
93
  planCache?: PlanCacheType;
90
94
  explainMode?: ExplainMode;
91
95
  queryTimeoutMilliseconds?: number;