@aws-sdk/client-neptune-graph 3.535.0 → 3.544.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.
@@ -1,12 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultEndpointResolver = void 0;
4
- const util_endpoints_1 = require("@smithy/util-endpoints");
4
+ const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
+ const util_endpoints_2 = require("@smithy/util-endpoints");
5
6
  const ruleset_1 = require("./ruleset");
6
7
  const defaultEndpointResolver = (endpointParams, context = {}) => {
7
- return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
8
+ return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
8
9
  endpointParams: endpointParams,
9
10
  logger: context.logger,
10
11
  });
11
12
  };
12
13
  exports.defaultEndpointResolver = defaultEndpointResolver;
14
+ util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
package/dist-cjs/index.js CHANGED
@@ -443,6 +443,7 @@ var GraphStatus = {
443
443
  CREATING: "CREATING",
444
444
  DELETING: "DELETING",
445
445
  FAILED: "FAILED",
446
+ IMPORTING: "IMPORTING",
446
447
  RESETTING: "RESETTING",
447
448
  SNAPSHOTTING: "SNAPSHOTTING",
448
449
  UPDATING: "UPDATING"
@@ -2375,7 +2376,7 @@ var checkState5 = /* @__PURE__ */ __name(async (client, input) => {
2375
2376
  reason = result;
2376
2377
  try {
2377
2378
  const returnComparator = /* @__PURE__ */ __name(() => {
2378
- return result.status != "CANCELLING";
2379
+ return result.status != "CANCELLING" && result.status != "CANCELLED";
2379
2380
  }, "returnComparator");
2380
2381
  if (returnComparator() == true) {
2381
2382
  return { state: import_util_waiter.WaiterState.FAILURE, reason };
@@ -2555,9 +2556,6 @@ var waitUntilPrivateGraphEndpointDeleted = /* @__PURE__ */ __name(async (params,
2555
2556
  const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState8);
2556
2557
  return (0, import_util_waiter.checkExceptions)(result);
2557
2558
  }, "waitUntilPrivateGraphEndpointDeleted");
2558
-
2559
- // src/index.ts
2560
- var import_util_endpoints = require("@aws-sdk/util-endpoints");
2561
2559
  // Annotate the CommonJS export names for ESM import in node:
2562
2560
 
2563
2561
  0 && (module.exports = {
@@ -1,4 +1,5 @@
1
- import { resolveEndpoint } from "@smithy/util-endpoints";
1
+ import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
+ import { customEndpointFunctions, resolveEndpoint } from "@smithy/util-endpoints";
2
3
  import { ruleSet } from "./ruleset";
3
4
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
4
5
  return resolveEndpoint(ruleSet, {
@@ -6,3 +7,4 @@ export const defaultEndpointResolver = (endpointParams, context = {}) => {
6
7
  logger: context.logger,
7
8
  });
8
9
  };
10
+ customEndpointFunctions.aws = awsEndpointFunctions;
package/dist-es/index.js CHANGED
@@ -4,5 +4,4 @@ export * from "./commands";
4
4
  export * from "./pagination";
5
5
  export * from "./waiters";
6
6
  export * from "./models";
7
- import "@aws-sdk/util-endpoints";
8
7
  export { NeptuneGraphServiceException } from "./models/NeptuneGraphServiceException";
@@ -135,6 +135,7 @@ export const GraphStatus = {
135
135
  CREATING: "CREATING",
136
136
  DELETING: "DELETING",
137
137
  FAILED: "FAILED",
138
+ IMPORTING: "IMPORTING",
138
139
  RESETTING: "RESETTING",
139
140
  SNAPSHOTTING: "SNAPSHOTTING",
140
141
  UPDATING: "UPDATING",
@@ -7,7 +7,7 @@ const checkState = async (client, input) => {
7
7
  reason = result;
8
8
  try {
9
9
  const returnComparator = () => {
10
- return result.status != "CANCELLING";
10
+ return result.status != "CANCELLING" && result.status != "CANCELLED";
11
11
  };
12
12
  if (returnComparator() == true) {
13
13
  return { state: WaiterState.FAILURE, reason };
@@ -53,7 +53,7 @@ declare const CreateGraphCommand_base: {
53
53
  * // id: "STRING_VALUE", // required
54
54
  * // name: "STRING_VALUE", // required
55
55
  * // arn: "STRING_VALUE", // required
56
- * // status: "CREATING" || "AVAILABLE" || "DELETING" || "RESETTING" || "UPDATING" || "SNAPSHOTTING" || "FAILED",
56
+ * // status: "CREATING" || "AVAILABLE" || "DELETING" || "RESETTING" || "UPDATING" || "SNAPSHOTTING" || "FAILED" || "IMPORTING",
57
57
  * // statusReason: "STRING_VALUE",
58
58
  * // createTime: new Date("TIMESTAMP"),
59
59
  * // provisionedMemory: Number("int"),
@@ -27,7 +27,10 @@ declare const CreatePrivateGraphEndpointCommand_base: {
27
27
  };
28
28
  /**
29
29
  * <p>Create a private graph endpoint to allow private access from to the graph from within
30
- * a VPC. You can attach security groups to the private graph endpoint. VPC endpoint charges apply.</p>
30
+ * a VPC. You can attach security groups to the private graph endpoint.</p>
31
+ * <note>
32
+ * <p>VPC endpoint charges apply.</p>
33
+ * </note>
31
34
  * @example
32
35
  * Use a bare-bones client and the command you need to make an API call.
33
36
  * ```javascript
@@ -43,7 +43,7 @@ declare const DeleteGraphCommand_base: {
43
43
  * // id: "STRING_VALUE", // required
44
44
  * // name: "STRING_VALUE", // required
45
45
  * // arn: "STRING_VALUE", // required
46
- * // status: "CREATING" || "AVAILABLE" || "DELETING" || "RESETTING" || "UPDATING" || "SNAPSHOTTING" || "FAILED",
46
+ * // status: "CREATING" || "AVAILABLE" || "DELETING" || "RESETTING" || "UPDATING" || "SNAPSHOTTING" || "FAILED" || "IMPORTING",
47
47
  * // statusReason: "STRING_VALUE",
48
48
  * // createTime: new Date("TIMESTAMP"),
49
49
  * // provisionedMemory: Number("int"),
@@ -27,8 +27,7 @@ declare const ExecuteQueryCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Execute an openCypher query. Currently, the SDK does not support parameterized queries. If you want to make a
31
- * parameterized query call, you can use an HTTP request. </p>
30
+ * <p>Execute an openCypher query.</p>
32
31
  * <p>
33
32
  * When invoking this operation in a Neptune Analytics cluster, the IAM user or role making the request must have a policy attached
34
33
  * that allows one of the following IAM actions in that cluster, depending on the query:
@@ -44,13 +43,6 @@ declare const ExecuteQueryCommand_base: {
44
43
  * <p>neptune-graph:DeleteDataViaQuery</p>
45
44
  * </li>
46
45
  * </ul>
47
- * <note>
48
- * <p>
49
- * Non-parametrized queries are not considered for plan caching. You can force plan caching with
50
- * <code>planCache=enabled</code>. The plan cache will be reused only for the same exact query. Slight variations
51
- * in the query will not be able to reuse the query plan cache.
52
- * </p>
53
- * </note>
54
46
  * @example
55
47
  * Use a bare-bones client and the command you need to make an API call.
56
48
  * ```javascript
@@ -42,7 +42,7 @@ declare const GetGraphCommand_base: {
42
42
  * // id: "STRING_VALUE", // required
43
43
  * // name: "STRING_VALUE", // required
44
44
  * // arn: "STRING_VALUE", // required
45
- * // status: "CREATING" || "AVAILABLE" || "DELETING" || "RESETTING" || "UPDATING" || "SNAPSHOTTING" || "FAILED",
45
+ * // status: "CREATING" || "AVAILABLE" || "DELETING" || "RESETTING" || "UPDATING" || "SNAPSHOTTING" || "FAILED" || "IMPORTING",
46
46
  * // statusReason: "STRING_VALUE",
47
47
  * // createTime: new Date("TIMESTAMP"),
48
48
  * // provisionedMemory: Number("int"),
@@ -45,7 +45,7 @@ declare const ListGraphsCommand_base: {
45
45
  * // id: "STRING_VALUE", // required
46
46
  * // name: "STRING_VALUE", // required
47
47
  * // arn: "STRING_VALUE", // required
48
- * // status: "CREATING" || "AVAILABLE" || "DELETING" || "RESETTING" || "UPDATING" || "SNAPSHOTTING" || "FAILED",
48
+ * // status: "CREATING" || "AVAILABLE" || "DELETING" || "RESETTING" || "UPDATING" || "SNAPSHOTTING" || "FAILED" || "IMPORTING",
49
49
  * // provisionedMemory: Number("int"),
50
50
  * // publicConnectivity: true || false,
51
51
  * // endpoint: "STRING_VALUE",
@@ -43,7 +43,7 @@ declare const ResetGraphCommand_base: {
43
43
  * // id: "STRING_VALUE", // required
44
44
  * // name: "STRING_VALUE", // required
45
45
  * // arn: "STRING_VALUE", // required
46
- * // status: "CREATING" || "AVAILABLE" || "DELETING" || "RESETTING" || "UPDATING" || "SNAPSHOTTING" || "FAILED",
46
+ * // status: "CREATING" || "AVAILABLE" || "DELETING" || "RESETTING" || "UPDATING" || "SNAPSHOTTING" || "FAILED" || "IMPORTING",
47
47
  * // statusReason: "STRING_VALUE",
48
48
  * // createTime: new Date("TIMESTAMP"),
49
49
  * // provisionedMemory: Number("int"),
@@ -50,7 +50,7 @@ declare const RestoreGraphFromSnapshotCommand_base: {
50
50
  * // id: "STRING_VALUE", // required
51
51
  * // name: "STRING_VALUE", // required
52
52
  * // arn: "STRING_VALUE", // required
53
- * // status: "CREATING" || "AVAILABLE" || "DELETING" || "RESETTING" || "UPDATING" || "SNAPSHOTTING" || "FAILED",
53
+ * // status: "CREATING" || "AVAILABLE" || "DELETING" || "RESETTING" || "UPDATING" || "SNAPSHOTTING" || "FAILED" || "IMPORTING",
54
54
  * // statusReason: "STRING_VALUE",
55
55
  * // createTime: new Date("TIMESTAMP"),
56
56
  * // provisionedMemory: Number("int"),
@@ -45,7 +45,7 @@ declare const UpdateGraphCommand_base: {
45
45
  * // id: "STRING_VALUE", // required
46
46
  * // name: "STRING_VALUE", // required
47
47
  * // arn: "STRING_VALUE", // required
48
- * // status: "CREATING" || "AVAILABLE" || "DELETING" || "RESETTING" || "UPDATING" || "SNAPSHOTTING" || "FAILED",
48
+ * // status: "CREATING" || "AVAILABLE" || "DELETING" || "RESETTING" || "UPDATING" || "SNAPSHOTTING" || "FAILED" || "IMPORTING",
49
49
  * // statusReason: "STRING_VALUE",
50
50
  * // createTime: new Date("TIMESTAMP"),
51
51
  * // provisionedMemory: Number("int"),
@@ -14,5 +14,4 @@ export * from "./commands";
14
14
  export * from "./pagination";
15
15
  export * from "./waiters";
16
16
  export * from "./models";
17
- import "@aws-sdk/util-endpoints";
18
17
  export { NeptuneGraphServiceException } from "./models/NeptuneGraphServiceException";
@@ -544,6 +544,7 @@ export declare const GraphStatus: {
544
544
  readonly CREATING: "CREATING";
545
545
  readonly DELETING: "DELETING";
546
546
  readonly FAILED: "FAILED";
547
+ readonly IMPORTING: "IMPORTING";
547
548
  readonly RESETTING: "RESETTING";
548
549
  readonly SNAPSHOTTING: "SNAPSHOTTING";
549
550
  readonly UPDATING: "UPDATING";
@@ -590,7 +591,8 @@ export interface CreateGraphOutput {
590
591
  */
591
592
  createTime?: Date;
592
593
  /**
593
- * <p>The provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph. Min = 128</p>
594
+ * <p>The provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph.</p>
595
+ * <p>Min = 128</p>
594
596
  * @public
595
597
  */
596
598
  provisionedMemory?: number;
@@ -601,6 +603,9 @@ export interface CreateGraphOutput {
601
603
  endpoint?: string;
602
604
  /**
603
605
  * <p>Specifies whether or not the graph can be reachable over the internet. All access to graphs is IAM authenticated.</p>
606
+ * <note>
607
+ * <p>If enabling public connectivity for the first time, there will be a delay while it is enabled.</p>
608
+ * </note>
604
609
  * @public
605
610
  */
606
611
  publicConnectivity?: boolean;
@@ -612,6 +617,7 @@ export interface CreateGraphOutput {
612
617
  vectorSearchConfiguration?: VectorSearchConfiguration;
613
618
  /**
614
619
  * <p>The number of replicas in other AZs.</p>
620
+ * <p>Default: If not specified, the default value is 1.</p>
615
621
  * @public
616
622
  */
617
623
  replicaCount?: number;
@@ -1068,7 +1074,8 @@ export interface RestoreGraphFromSnapshotInput {
1068
1074
  */
1069
1075
  graphName: string | undefined;
1070
1076
  /**
1071
- * <p>The provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph. Min = 128</p>
1077
+ * <p>The provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph.</p>
1078
+ * <p>Min = 128</p>
1072
1079
  * @public
1073
1080
  */
1074
1081
  provisionedMemory?: number;
@@ -1192,7 +1199,8 @@ export interface UpdateGraphInput {
1192
1199
  */
1193
1200
  publicConnectivity?: boolean;
1194
1201
  /**
1195
- * <p>The provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph. Min = 128</p>
1202
+ * <p>The provisioned memory-optimized Neptune Capacity Units (m-NCUs) to use for the graph.</p>
1203
+ * <p>Min = 128</p>
1196
1204
  * @public
1197
1205
  */
1198
1206
  provisionedMemory?: number;
@@ -7,5 +7,4 @@ export * from "./commands";
7
7
  export * from "./pagination";
8
8
  export * from "./waiters";
9
9
  export * from "./models";
10
- import "@aws-sdk/util-endpoints";
11
10
  export { NeptuneGraphServiceException } from "./models/NeptuneGraphServiceException";
@@ -189,6 +189,7 @@ export declare const GraphStatus: {
189
189
  readonly CREATING: "CREATING";
190
190
  readonly DELETING: "DELETING";
191
191
  readonly FAILED: "FAILED";
192
+ readonly IMPORTING: "IMPORTING";
192
193
  readonly RESETTING: "RESETTING";
193
194
  readonly SNAPSHOTTING: "SNAPSHOTTING";
194
195
  readonly UPDATING: "UPDATING";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-neptune-graph",
3
3
  "description": "AWS SDK for JavaScript Neptune Graph Client for Node.js, Browser and React Native",
4
- "version": "3.535.0",
4
+ "version": "3.544.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-neptune-graph",
@@ -20,16 +20,16 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.535.0",
23
+ "@aws-sdk/client-sts": "3.540.0",
24
24
  "@aws-sdk/core": "3.535.0",
25
- "@aws-sdk/credential-provider-node": "3.535.0",
25
+ "@aws-sdk/credential-provider-node": "3.540.0",
26
26
  "@aws-sdk/middleware-host-header": "3.535.0",
27
27
  "@aws-sdk/middleware-logger": "3.535.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.535.0",
29
- "@aws-sdk/middleware-user-agent": "3.535.0",
29
+ "@aws-sdk/middleware-user-agent": "3.540.0",
30
30
  "@aws-sdk/region-config-resolver": "3.535.0",
31
31
  "@aws-sdk/types": "3.535.0",
32
- "@aws-sdk/util-endpoints": "3.535.0",
32
+ "@aws-sdk/util-endpoints": "3.540.0",
33
33
  "@aws-sdk/util-user-agent-browser": "3.535.0",
34
34
  "@aws-sdk/util-user-agent-node": "3.535.0",
35
35
  "@smithy/config-resolver": "^2.2.0",