@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.
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +1 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/index.js +116 -45
- package/dist-cjs/runtimeConfig.shared.js +10 -0
- package/dist-es/NeptuneGraphClient.js +17 -4
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/protocols/Aws_restJson1.js +13 -0
- package/dist-es/runtimeConfig.shared.js +10 -0
- package/dist-es/runtimeExtensions.js +3 -0
- package/dist-types/NeptuneGraphClient.d.ts +13 -11
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/dist-types/commands/ExecuteQueryCommand.d.ts +18 -0
- package/dist-types/commands/GetQueryCommand.d.ts +6 -0
- package/dist-types/extensionConfiguration.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +11 -6
- package/dist-types/runtimeConfig.browser.d.ts +5 -3
- package/dist-types/runtimeConfig.d.ts +4 -2
- package/dist-types/runtimeConfig.native.d.ts +6 -4
- package/dist-types/runtimeConfig.shared.d.ts +2 -0
- package/dist-types/ts3.4/NeptuneGraphClient.d.ts +11 -9
- 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/extensionConfiguration.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +5 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -5
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -4
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -8
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
- package/package.json +7 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveHttpAuthSchemeConfig = exports.defaultNeptuneGraphHttpAuthSchemeProvider = exports.defaultNeptuneGraphHttpAuthSchemeParametersProvider = void 0;
|
|
4
|
+
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const util_middleware_1 = require("@smithy/util-middleware");
|
|
6
|
+
const defaultNeptuneGraphHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
|
+
return {
|
|
8
|
+
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
|
|
9
|
+
region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
|
|
10
|
+
(() => {
|
|
11
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
12
|
+
})(),
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
exports.defaultNeptuneGraphHttpAuthSchemeParametersProvider = defaultNeptuneGraphHttpAuthSchemeParametersProvider;
|
|
16
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
17
|
+
return {
|
|
18
|
+
schemeId: "aws.auth#sigv4",
|
|
19
|
+
signingProperties: {
|
|
20
|
+
name: "neptune-graph",
|
|
21
|
+
region: authParameters.region,
|
|
22
|
+
},
|
|
23
|
+
propertiesExtractor: (config, context) => ({
|
|
24
|
+
signingProperties: {
|
|
25
|
+
config,
|
|
26
|
+
context,
|
|
27
|
+
},
|
|
28
|
+
}),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
const defaultNeptuneGraphHttpAuthSchemeProvider = (authParameters) => {
|
|
32
|
+
const options = [];
|
|
33
|
+
switch (authParameters.operation) {
|
|
34
|
+
default: {
|
|
35
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return options;
|
|
39
|
+
};
|
|
40
|
+
exports.defaultNeptuneGraphHttpAuthSchemeProvider = defaultNeptuneGraphHttpAuthSchemeProvider;
|
|
41
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
42
|
+
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
|
|
43
|
+
return {
|
|
44
|
+
...config_0,
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/index.js
CHANGED
|
@@ -103,13 +103,14 @@ module.exports = __toCommonJS(src_exports);
|
|
|
103
103
|
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
104
104
|
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
105
105
|
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
106
|
-
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
107
106
|
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
108
107
|
var import_config_resolver = require("@smithy/config-resolver");
|
|
108
|
+
var import_core = require("@smithy/core");
|
|
109
109
|
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
110
110
|
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
111
111
|
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
112
112
|
|
|
113
|
+
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
113
114
|
|
|
114
115
|
// src/endpoint/EndpointParameters.ts
|
|
115
116
|
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
@@ -134,19 +135,62 @@ var import_runtimeConfig = require("././runtimeConfig");
|
|
|
134
135
|
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
135
136
|
var import_protocol_http = require("@smithy/protocol-http");
|
|
136
137
|
var import_smithy_client = require("@smithy/smithy-client");
|
|
138
|
+
|
|
139
|
+
// src/auth/httpAuthExtensionConfiguration.ts
|
|
140
|
+
var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
|
|
141
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
142
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
143
|
+
let _credentials = runtimeConfig.credentials;
|
|
144
|
+
return {
|
|
145
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
146
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
147
|
+
if (index === -1) {
|
|
148
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
149
|
+
} else {
|
|
150
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
httpAuthSchemes() {
|
|
154
|
+
return _httpAuthSchemes;
|
|
155
|
+
},
|
|
156
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
157
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
158
|
+
},
|
|
159
|
+
httpAuthSchemeProvider() {
|
|
160
|
+
return _httpAuthSchemeProvider;
|
|
161
|
+
},
|
|
162
|
+
setCredentials(credentials) {
|
|
163
|
+
_credentials = credentials;
|
|
164
|
+
},
|
|
165
|
+
credentials() {
|
|
166
|
+
return _credentials;
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
}, "getHttpAuthExtensionConfiguration");
|
|
170
|
+
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
171
|
+
return {
|
|
172
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
173
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
174
|
+
credentials: config.credentials()
|
|
175
|
+
};
|
|
176
|
+
}, "resolveHttpAuthRuntimeConfig");
|
|
177
|
+
|
|
178
|
+
// src/runtimeExtensions.ts
|
|
137
179
|
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
138
180
|
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
139
181
|
const extensionConfiguration = {
|
|
140
182
|
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
141
183
|
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
142
|
-
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
184
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
185
|
+
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig))
|
|
143
186
|
};
|
|
144
187
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
145
188
|
return {
|
|
146
189
|
...runtimeConfig,
|
|
147
190
|
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
148
191
|
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
149
|
-
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
192
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
193
|
+
...resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
150
194
|
};
|
|
151
195
|
}, "resolveRuntimeExtensions");
|
|
152
196
|
|
|
@@ -159,8 +203,8 @@ var _NeptuneGraphClient = class _NeptuneGraphClient extends import_smithy_client
|
|
|
159
203
|
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
160
204
|
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
161
205
|
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
162
|
-
const _config_6 = (0,
|
|
163
|
-
const _config_7 = (0,
|
|
206
|
+
const _config_6 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_5);
|
|
207
|
+
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
164
208
|
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
165
209
|
super(_config_8);
|
|
166
210
|
this.config = _config_8;
|
|
@@ -169,8 +213,14 @@ var _NeptuneGraphClient = class _NeptuneGraphClient extends import_smithy_client
|
|
|
169
213
|
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
170
214
|
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
171
215
|
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
172
|
-
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
173
216
|
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
217
|
+
this.middlewareStack.use(
|
|
218
|
+
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
219
|
+
httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
|
|
220
|
+
identityProviderConfigProvider: this.getIdentityProviderConfigProvider()
|
|
221
|
+
})
|
|
222
|
+
);
|
|
223
|
+
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
174
224
|
}
|
|
175
225
|
/**
|
|
176
226
|
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
@@ -180,6 +230,14 @@ var _NeptuneGraphClient = class _NeptuneGraphClient extends import_smithy_client
|
|
|
180
230
|
destroy() {
|
|
181
231
|
super.destroy();
|
|
182
232
|
}
|
|
233
|
+
getDefaultHttpAuthSchemeParametersProvider() {
|
|
234
|
+
return import_httpAuthSchemeProvider.defaultNeptuneGraphHttpAuthSchemeParametersProvider;
|
|
235
|
+
}
|
|
236
|
+
getIdentityProviderConfigProvider() {
|
|
237
|
+
return async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
238
|
+
"aws.auth#sigv4": config.credentials
|
|
239
|
+
});
|
|
240
|
+
}
|
|
183
241
|
};
|
|
184
242
|
__name(_NeptuneGraphClient, "NeptuneGraphClient");
|
|
185
243
|
var NeptuneGraphClient = _NeptuneGraphClient;
|
|
@@ -194,8 +252,8 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
194
252
|
var import_types = require("@smithy/types");
|
|
195
253
|
|
|
196
254
|
// src/protocols/Aws_restJson1.ts
|
|
197
|
-
var
|
|
198
|
-
|
|
255
|
+
var import_core2 = require("@aws-sdk/core");
|
|
256
|
+
|
|
199
257
|
|
|
200
258
|
|
|
201
259
|
|
|
@@ -458,7 +516,7 @@ var ExecuteQueryOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
458
516
|
|
|
459
517
|
// src/protocols/Aws_restJson1.ts
|
|
460
518
|
var se_CancelImportTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
461
|
-
const b = (0,
|
|
519
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
462
520
|
const headers = {};
|
|
463
521
|
b.bp("/importtasks/{taskIdentifier}");
|
|
464
522
|
b.p("taskIdentifier", () => input.taskIdentifier, "{taskIdentifier}", false);
|
|
@@ -467,7 +525,7 @@ var se_CancelImportTaskCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
467
525
|
return b.build();
|
|
468
526
|
}, "se_CancelImportTaskCommand");
|
|
469
527
|
var se_CancelQueryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
470
|
-
const b = (0,
|
|
528
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
471
529
|
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
|
472
530
|
[_g]: input[_gI]
|
|
473
531
|
});
|
|
@@ -490,7 +548,7 @@ var se_CancelQueryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
490
548
|
return b.build();
|
|
491
549
|
}, "se_CancelQueryCommand");
|
|
492
550
|
var se_CreateGraphCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
493
|
-
const b = (0,
|
|
551
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
494
552
|
const headers = {
|
|
495
553
|
"content-type": "application/json"
|
|
496
554
|
};
|
|
@@ -512,7 +570,7 @@ var se_CreateGraphCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
512
570
|
return b.build();
|
|
513
571
|
}, "se_CreateGraphCommand");
|
|
514
572
|
var se_CreateGraphSnapshotCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
515
|
-
const b = (0,
|
|
573
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
516
574
|
const headers = {
|
|
517
575
|
"content-type": "application/json"
|
|
518
576
|
};
|
|
@@ -529,7 +587,7 @@ var se_CreateGraphSnapshotCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
529
587
|
return b.build();
|
|
530
588
|
}, "se_CreateGraphSnapshotCommand");
|
|
531
589
|
var se_CreateGraphUsingImportTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
532
|
-
const b = (0,
|
|
590
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
533
591
|
const headers = {
|
|
534
592
|
"content-type": "application/json"
|
|
535
593
|
};
|
|
@@ -557,7 +615,7 @@ var se_CreateGraphUsingImportTaskCommand = /* @__PURE__ */ __name(async (input,
|
|
|
557
615
|
return b.build();
|
|
558
616
|
}, "se_CreateGraphUsingImportTaskCommand");
|
|
559
617
|
var se_CreatePrivateGraphEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
560
|
-
const b = (0,
|
|
618
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
561
619
|
const headers = {
|
|
562
620
|
"content-type": "application/json"
|
|
563
621
|
};
|
|
@@ -575,7 +633,7 @@ var se_CreatePrivateGraphEndpointCommand = /* @__PURE__ */ __name(async (input,
|
|
|
575
633
|
return b.build();
|
|
576
634
|
}, "se_CreatePrivateGraphEndpointCommand");
|
|
577
635
|
var se_DeleteGraphCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
578
|
-
const b = (0,
|
|
636
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
579
637
|
const headers = {};
|
|
580
638
|
b.bp("/graphs/{graphIdentifier}");
|
|
581
639
|
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
@@ -587,7 +645,7 @@ var se_DeleteGraphCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
587
645
|
return b.build();
|
|
588
646
|
}, "se_DeleteGraphCommand");
|
|
589
647
|
var se_DeleteGraphSnapshotCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
590
|
-
const b = (0,
|
|
648
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
591
649
|
const headers = {};
|
|
592
650
|
b.bp("/snapshots/{snapshotIdentifier}");
|
|
593
651
|
b.p("snapshotIdentifier", () => input.snapshotIdentifier, "{snapshotIdentifier}", false);
|
|
@@ -596,7 +654,7 @@ var se_DeleteGraphSnapshotCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
596
654
|
return b.build();
|
|
597
655
|
}, "se_DeleteGraphSnapshotCommand");
|
|
598
656
|
var se_DeletePrivateGraphEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
599
|
-
const b = (0,
|
|
657
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
600
658
|
const headers = {};
|
|
601
659
|
b.bp("/graphs/{graphIdentifier}/endpoints/{vpcId}");
|
|
602
660
|
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
@@ -606,7 +664,7 @@ var se_DeletePrivateGraphEndpointCommand = /* @__PURE__ */ __name(async (input,
|
|
|
606
664
|
return b.build();
|
|
607
665
|
}, "se_DeletePrivateGraphEndpointCommand");
|
|
608
666
|
var se_ExecuteQueryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
609
|
-
const b = (0,
|
|
667
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
610
668
|
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
|
611
669
|
"content-type": "application/json",
|
|
612
670
|
[_g]: input[_gI]
|
|
@@ -617,6 +675,7 @@ var se_ExecuteQueryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
617
675
|
(0, import_smithy_client.take)(input, {
|
|
618
676
|
explain: [, , `explainMode`],
|
|
619
677
|
language: [],
|
|
678
|
+
parameters: (_) => se_DocumentValuedMap(_, context),
|
|
620
679
|
planCache: [],
|
|
621
680
|
query: [, , `queryString`],
|
|
622
681
|
queryTimeoutMilliseconds: []
|
|
@@ -638,7 +697,7 @@ var se_ExecuteQueryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
638
697
|
return b.build();
|
|
639
698
|
}, "se_ExecuteQueryCommand");
|
|
640
699
|
var se_GetGraphCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
641
|
-
const b = (0,
|
|
700
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
642
701
|
const headers = {};
|
|
643
702
|
b.bp("/graphs/{graphIdentifier}");
|
|
644
703
|
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
@@ -647,7 +706,7 @@ var se_GetGraphCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
647
706
|
return b.build();
|
|
648
707
|
}, "se_GetGraphCommand");
|
|
649
708
|
var se_GetGraphSnapshotCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
650
|
-
const b = (0,
|
|
709
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
651
710
|
const headers = {};
|
|
652
711
|
b.bp("/snapshots/{snapshotIdentifier}");
|
|
653
712
|
b.p("snapshotIdentifier", () => input.snapshotIdentifier, "{snapshotIdentifier}", false);
|
|
@@ -656,7 +715,7 @@ var se_GetGraphSnapshotCommand = /* @__PURE__ */ __name(async (input, context) =
|
|
|
656
715
|
return b.build();
|
|
657
716
|
}, "se_GetGraphSnapshotCommand");
|
|
658
717
|
var se_GetGraphSummaryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
659
|
-
const b = (0,
|
|
718
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
660
719
|
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
|
661
720
|
[_g]: input[_gI]
|
|
662
721
|
});
|
|
@@ -681,7 +740,7 @@ var se_GetGraphSummaryCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
681
740
|
return b.build();
|
|
682
741
|
}, "se_GetGraphSummaryCommand");
|
|
683
742
|
var se_GetImportTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
684
|
-
const b = (0,
|
|
743
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
685
744
|
const headers = {};
|
|
686
745
|
b.bp("/importtasks/{taskIdentifier}");
|
|
687
746
|
b.p("taskIdentifier", () => input.taskIdentifier, "{taskIdentifier}", false);
|
|
@@ -690,7 +749,7 @@ var se_GetImportTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
690
749
|
return b.build();
|
|
691
750
|
}, "se_GetImportTaskCommand");
|
|
692
751
|
var se_GetPrivateGraphEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
693
|
-
const b = (0,
|
|
752
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
694
753
|
const headers = {};
|
|
695
754
|
b.bp("/graphs/{graphIdentifier}/endpoints/{vpcId}");
|
|
696
755
|
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
@@ -700,7 +759,7 @@ var se_GetPrivateGraphEndpointCommand = /* @__PURE__ */ __name(async (input, con
|
|
|
700
759
|
return b.build();
|
|
701
760
|
}, "se_GetPrivateGraphEndpointCommand");
|
|
702
761
|
var se_GetQueryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
703
|
-
const b = (0,
|
|
762
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
704
763
|
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
|
705
764
|
[_g]: input[_gI]
|
|
706
765
|
});
|
|
@@ -723,7 +782,7 @@ var se_GetQueryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
723
782
|
return b.build();
|
|
724
783
|
}, "se_GetQueryCommand");
|
|
725
784
|
var se_ListGraphsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
726
|
-
const b = (0,
|
|
785
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
727
786
|
const headers = {};
|
|
728
787
|
b.bp("/graphs");
|
|
729
788
|
const query = (0, import_smithy_client.map)({
|
|
@@ -735,7 +794,7 @@ var se_ListGraphsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
735
794
|
return b.build();
|
|
736
795
|
}, "se_ListGraphsCommand");
|
|
737
796
|
var se_ListGraphSnapshotsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
738
|
-
const b = (0,
|
|
797
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
739
798
|
const headers = {};
|
|
740
799
|
b.bp("/snapshots");
|
|
741
800
|
const query = (0, import_smithy_client.map)({
|
|
@@ -748,7 +807,7 @@ var se_ListGraphSnapshotsCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
748
807
|
return b.build();
|
|
749
808
|
}, "se_ListGraphSnapshotsCommand");
|
|
750
809
|
var se_ListImportTasksCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
751
|
-
const b = (0,
|
|
810
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
752
811
|
const headers = {};
|
|
753
812
|
b.bp("/importtasks");
|
|
754
813
|
const query = (0, import_smithy_client.map)({
|
|
@@ -760,7 +819,7 @@ var se_ListImportTasksCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
760
819
|
return b.build();
|
|
761
820
|
}, "se_ListImportTasksCommand");
|
|
762
821
|
var se_ListPrivateGraphEndpointsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
763
|
-
const b = (0,
|
|
822
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
764
823
|
const headers = {};
|
|
765
824
|
b.bp("/graphs/{graphIdentifier}/endpoints");
|
|
766
825
|
b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
|
|
@@ -773,7 +832,7 @@ var se_ListPrivateGraphEndpointsCommand = /* @__PURE__ */ __name(async (input, c
|
|
|
773
832
|
return b.build();
|
|
774
833
|
}, "se_ListPrivateGraphEndpointsCommand");
|
|
775
834
|
var se_ListQueriesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
776
|
-
const b = (0,
|
|
835
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
777
836
|
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
|
778
837
|
[_g]: input[_gI]
|
|
779
838
|
});
|
|
@@ -799,7 +858,7 @@ var se_ListQueriesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
799
858
|
return b.build();
|
|
800
859
|
}, "se_ListQueriesCommand");
|
|
801
860
|
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
802
|
-
const b = (0,
|
|
861
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
803
862
|
const headers = {};
|
|
804
863
|
b.bp("/tags/{resourceArn}");
|
|
805
864
|
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
@@ -808,7 +867,7 @@ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
808
867
|
return b.build();
|
|
809
868
|
}, "se_ListTagsForResourceCommand");
|
|
810
869
|
var se_ResetGraphCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
811
|
-
const b = (0,
|
|
870
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
812
871
|
const headers = {
|
|
813
872
|
"content-type": "application/json"
|
|
814
873
|
};
|
|
@@ -824,7 +883,7 @@ var se_ResetGraphCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
824
883
|
return b.build();
|
|
825
884
|
}, "se_ResetGraphCommand");
|
|
826
885
|
var se_RestoreGraphFromSnapshotCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
827
|
-
const b = (0,
|
|
886
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
828
887
|
const headers = {
|
|
829
888
|
"content-type": "application/json"
|
|
830
889
|
};
|
|
@@ -845,7 +904,7 @@ var se_RestoreGraphFromSnapshotCommand = /* @__PURE__ */ __name(async (input, co
|
|
|
845
904
|
return b.build();
|
|
846
905
|
}, "se_RestoreGraphFromSnapshotCommand");
|
|
847
906
|
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
848
|
-
const b = (0,
|
|
907
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
849
908
|
const headers = {
|
|
850
909
|
"content-type": "application/json"
|
|
851
910
|
};
|
|
@@ -861,7 +920,7 @@ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
861
920
|
return b.build();
|
|
862
921
|
}, "se_TagResourceCommand");
|
|
863
922
|
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
864
|
-
const b = (0,
|
|
923
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
865
924
|
const headers = {};
|
|
866
925
|
b.bp("/tags/{resourceArn}");
|
|
867
926
|
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
@@ -876,7 +935,7 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
876
935
|
return b.build();
|
|
877
936
|
}, "se_UntagResourceCommand");
|
|
878
937
|
var se_UpdateGraphCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
879
|
-
const b = (0,
|
|
938
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
880
939
|
const headers = {
|
|
881
940
|
"content-type": "application/json"
|
|
882
941
|
};
|
|
@@ -981,7 +1040,7 @@ var de_CreateGraphUsingImportTaskCommand = /* @__PURE__ */ __name(async (output,
|
|
|
981
1040
|
const doc = (0, import_smithy_client.take)(data, {
|
|
982
1041
|
format: import_smithy_client.expectString,
|
|
983
1042
|
graphId: import_smithy_client.expectString,
|
|
984
|
-
importOptions: (_) => (0, import_smithy_client._json)((0,
|
|
1043
|
+
importOptions: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
|
|
985
1044
|
roleArn: import_smithy_client.expectString,
|
|
986
1045
|
source: import_smithy_client.expectString,
|
|
987
1046
|
status: import_smithy_client.expectString,
|
|
@@ -1160,7 +1219,7 @@ var de_GetImportTaskCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1160
1219
|
attemptNumber: import_smithy_client.expectInt32,
|
|
1161
1220
|
format: import_smithy_client.expectString,
|
|
1162
1221
|
graphId: import_smithy_client.expectString,
|
|
1163
|
-
importOptions: (_) => (0, import_smithy_client._json)((0,
|
|
1222
|
+
importOptions: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
|
|
1164
1223
|
importTaskDetails: (_) => de_ImportTaskDetails(_, context),
|
|
1165
1224
|
roleArn: import_smithy_client.expectString,
|
|
1166
1225
|
source: import_smithy_client.expectString,
|
|
@@ -1550,6 +1609,18 @@ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, cont
|
|
|
1550
1609
|
});
|
|
1551
1610
|
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1552
1611
|
}, "de_ValidationExceptionRes");
|
|
1612
|
+
var se_DocumentValuedMap = /* @__PURE__ */ __name((input, context) => {
|
|
1613
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1614
|
+
if (value === null) {
|
|
1615
|
+
return acc;
|
|
1616
|
+
}
|
|
1617
|
+
acc[key] = se_Document(value, context);
|
|
1618
|
+
return acc;
|
|
1619
|
+
}, {});
|
|
1620
|
+
}, "se_DocumentValuedMap");
|
|
1621
|
+
var se_Document = /* @__PURE__ */ __name((input, context) => {
|
|
1622
|
+
return input;
|
|
1623
|
+
}, "se_Document");
|
|
1553
1624
|
var de_GraphSnapshotSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1554
1625
|
return (0, import_smithy_client.take)(output, {
|
|
1555
1626
|
arn: import_smithy_client.expectString,
|
|
@@ -2155,20 +2226,20 @@ var NeptuneGraph = _NeptuneGraph;
|
|
|
2155
2226
|
(0, import_smithy_client.createAggregatedClient)(commands, NeptuneGraph);
|
|
2156
2227
|
|
|
2157
2228
|
// src/pagination/ListGraphSnapshotsPaginator.ts
|
|
2158
|
-
|
|
2159
|
-
var paginateListGraphSnapshots = (0,
|
|
2229
|
+
|
|
2230
|
+
var paginateListGraphSnapshots = (0, import_core.createPaginator)(NeptuneGraphClient, ListGraphSnapshotsCommand, "nextToken", "nextToken", "maxResults");
|
|
2160
2231
|
|
|
2161
2232
|
// src/pagination/ListGraphsPaginator.ts
|
|
2162
|
-
|
|
2163
|
-
var paginateListGraphs = (0,
|
|
2233
|
+
|
|
2234
|
+
var paginateListGraphs = (0, import_core.createPaginator)(NeptuneGraphClient, ListGraphsCommand, "nextToken", "nextToken", "maxResults");
|
|
2164
2235
|
|
|
2165
2236
|
// src/pagination/ListImportTasksPaginator.ts
|
|
2166
|
-
|
|
2167
|
-
var paginateListImportTasks = (0,
|
|
2237
|
+
|
|
2238
|
+
var paginateListImportTasks = (0, import_core.createPaginator)(NeptuneGraphClient, ListImportTasksCommand, "nextToken", "nextToken", "maxResults");
|
|
2168
2239
|
|
|
2169
2240
|
// src/pagination/ListPrivateGraphEndpointsPaginator.ts
|
|
2170
|
-
|
|
2171
|
-
var paginateListPrivateGraphEndpoints = (0,
|
|
2241
|
+
|
|
2242
|
+
var paginateListPrivateGraphEndpoints = (0, import_core.createPaginator)(NeptuneGraphClient, ListPrivateGraphEndpointsCommand, "nextToken", "nextToken", "maxResults");
|
|
2172
2243
|
|
|
2173
2244
|
// src/waiters/waitForGraphAvailable.ts
|
|
2174
2245
|
var import_util_waiter = require("@smithy/util-waiter");
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const core_1 = require("@aws-sdk/core");
|
|
4
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
6
|
const url_parser_1 = require("@smithy/url-parser");
|
|
6
7
|
const util_base64_1 = require("@smithy/util-base64");
|
|
7
8
|
const util_stream_1 = require("@smithy/util-stream");
|
|
8
9
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
10
|
+
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
9
11
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
10
12
|
const getRuntimeConfig = (config) => {
|
|
11
13
|
return {
|
|
@@ -15,6 +17,14 @@ const getRuntimeConfig = (config) => {
|
|
|
15
17
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
16
18
|
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
17
19
|
extensions: config?.extensions ?? [],
|
|
20
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultNeptuneGraphHttpAuthSchemeProvider,
|
|
21
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
22
|
+
{
|
|
23
|
+
schemeId: "aws.auth#sigv4",
|
|
24
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
25
|
+
signer: new core_1.AwsSdkSigV4Signer(),
|
|
26
|
+
},
|
|
27
|
+
],
|
|
18
28
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
19
29
|
sdkStreamMixin: config?.sdkStreamMixin ?? util_stream_1.sdkStreamMixin,
|
|
20
30
|
serviceId: config?.serviceId ?? "Neptune Graph",
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
2
2
|
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
3
3
|
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
4
|
-
import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
|
|
5
4
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
6
5
|
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
6
|
+
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
7
7
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
8
8
|
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
9
9
|
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
|
10
10
|
import { Client as __Client, } from "@smithy/smithy-client";
|
|
11
|
+
import { defaultNeptuneGraphHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
|
|
11
12
|
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
12
13
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
13
14
|
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
|
@@ -20,8 +21,8 @@ export class NeptuneGraphClient extends __Client {
|
|
|
20
21
|
const _config_3 = resolveEndpointConfig(_config_2);
|
|
21
22
|
const _config_4 = resolveRetryConfig(_config_3);
|
|
22
23
|
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
23
|
-
const _config_6 =
|
|
24
|
-
const _config_7 =
|
|
24
|
+
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
25
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
25
26
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
26
27
|
super(_config_8);
|
|
27
28
|
this.config = _config_8;
|
|
@@ -30,10 +31,22 @@ export class NeptuneGraphClient extends __Client {
|
|
|
30
31
|
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
31
32
|
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
32
33
|
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
33
|
-
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
34
34
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
35
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
36
|
+
httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
|
|
37
|
+
identityProviderConfigProvider: this.getIdentityProviderConfigProvider(),
|
|
38
|
+
}));
|
|
39
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
35
40
|
}
|
|
36
41
|
destroy() {
|
|
37
42
|
super.destroy();
|
|
38
43
|
}
|
|
44
|
+
getDefaultHttpAuthSchemeParametersProvider() {
|
|
45
|
+
return defaultNeptuneGraphHttpAuthSchemeParametersProvider;
|
|
46
|
+
}
|
|
47
|
+
getIdentityProviderConfigProvider() {
|
|
48
|
+
return async (config) => new DefaultIdentityProviderConfig({
|
|
49
|
+
"aws.auth#sigv4": config.credentials,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
39
52
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
2
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
3
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
4
|
+
let _credentials = runtimeConfig.credentials;
|
|
5
|
+
return {
|
|
6
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
7
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
8
|
+
if (index === -1) {
|
|
9
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
httpAuthSchemes() {
|
|
16
|
+
return _httpAuthSchemes;
|
|
17
|
+
},
|
|
18
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
19
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
20
|
+
},
|
|
21
|
+
httpAuthSchemeProvider() {
|
|
22
|
+
return _httpAuthSchemeProvider;
|
|
23
|
+
},
|
|
24
|
+
setCredentials(credentials) {
|
|
25
|
+
_credentials = credentials;
|
|
26
|
+
},
|
|
27
|
+
credentials() {
|
|
28
|
+
return _credentials;
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export const resolveHttpAuthRuntimeConfig = (config) => {
|
|
33
|
+
return {
|
|
34
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
35
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
36
|
+
credentials: config.credentials(),
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core";
|
|
2
|
+
import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
|
|
3
|
+
export const defaultNeptuneGraphHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
|
+
return {
|
|
5
|
+
operation: getSmithyContext(context).operation,
|
|
6
|
+
region: (await normalizeProvider(config.region)()) ||
|
|
7
|
+
(() => {
|
|
8
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
9
|
+
})(),
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
13
|
+
return {
|
|
14
|
+
schemeId: "aws.auth#sigv4",
|
|
15
|
+
signingProperties: {
|
|
16
|
+
name: "neptune-graph",
|
|
17
|
+
region: authParameters.region,
|
|
18
|
+
},
|
|
19
|
+
propertiesExtractor: (config, context) => ({
|
|
20
|
+
signingProperties: {
|
|
21
|
+
config,
|
|
22
|
+
context,
|
|
23
|
+
},
|
|
24
|
+
}),
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export const defaultNeptuneGraphHttpAuthSchemeProvider = (authParameters) => {
|
|
28
|
+
const options = [];
|
|
29
|
+
switch (authParameters.operation) {
|
|
30
|
+
default: {
|
|
31
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return options;
|
|
35
|
+
};
|
|
36
|
+
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
37
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
38
|
+
return {
|
|
39
|
+
...config_0,
|
|
40
|
+
};
|
|
41
|
+
};
|