@aws-sdk/client-neptune-graph 3.478.0 → 3.481.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 (133) hide show
  1. package/dist-cjs/commands/CancelImportTaskCommand.js +19 -42
  2. package/dist-cjs/commands/CreateGraphCommand.js +19 -42
  3. package/dist-cjs/commands/CreateGraphSnapshotCommand.js +19 -42
  4. package/dist-cjs/commands/CreateGraphUsingImportTaskCommand.js +19 -42
  5. package/dist-cjs/commands/CreatePrivateGraphEndpointCommand.js +19 -42
  6. package/dist-cjs/commands/DeleteGraphCommand.js +19 -42
  7. package/dist-cjs/commands/DeleteGraphSnapshotCommand.js +19 -42
  8. package/dist-cjs/commands/DeletePrivateGraphEndpointCommand.js +19 -42
  9. package/dist-cjs/commands/GetGraphCommand.js +19 -42
  10. package/dist-cjs/commands/GetGraphSnapshotCommand.js +19 -42
  11. package/dist-cjs/commands/GetImportTaskCommand.js +19 -42
  12. package/dist-cjs/commands/GetPrivateGraphEndpointCommand.js +19 -42
  13. package/dist-cjs/commands/ListGraphSnapshotsCommand.js +19 -42
  14. package/dist-cjs/commands/ListGraphsCommand.js +19 -42
  15. package/dist-cjs/commands/ListImportTasksCommand.js +19 -42
  16. package/dist-cjs/commands/ListPrivateGraphEndpointsCommand.js +19 -42
  17. package/dist-cjs/commands/ListTagsForResourceCommand.js +19 -42
  18. package/dist-cjs/commands/ResetGraphCommand.js +19 -42
  19. package/dist-cjs/commands/RestoreGraphFromSnapshotCommand.js +19 -42
  20. package/dist-cjs/commands/TagResourceCommand.js +19 -42
  21. package/dist-cjs/commands/UntagResourceCommand.js +19 -42
  22. package/dist-cjs/commands/UpdateGraphCommand.js +19 -42
  23. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  24. package/dist-cjs/index.js +1 -0
  25. package/dist-cjs/waiters/index.js +11 -0
  26. package/dist-cjs/waiters/waitForGraphAvailable.js +54 -0
  27. package/dist-cjs/waiters/waitForGraphDeleted.js +39 -0
  28. package/dist-cjs/waiters/waitForGraphSnapshotAvailable.js +54 -0
  29. package/dist-cjs/waiters/waitForGraphSnapshotDeleted.js +39 -0
  30. package/dist-cjs/waiters/waitForImportTaskCancelled.js +45 -0
  31. package/dist-cjs/waiters/waitForImportTaskSuccessful.js +72 -0
  32. package/dist-cjs/waiters/waitForPrivateGraphEndpointAvailable.js +54 -0
  33. package/dist-cjs/waiters/waitForPrivateGraphEndpointDeleted.js +39 -0
  34. package/dist-es/commands/CancelImportTaskCommand.js +19 -42
  35. package/dist-es/commands/CreateGraphCommand.js +19 -42
  36. package/dist-es/commands/CreateGraphSnapshotCommand.js +19 -42
  37. package/dist-es/commands/CreateGraphUsingImportTaskCommand.js +19 -42
  38. package/dist-es/commands/CreatePrivateGraphEndpointCommand.js +19 -42
  39. package/dist-es/commands/DeleteGraphCommand.js +19 -42
  40. package/dist-es/commands/DeleteGraphSnapshotCommand.js +19 -42
  41. package/dist-es/commands/DeletePrivateGraphEndpointCommand.js +19 -42
  42. package/dist-es/commands/GetGraphCommand.js +19 -42
  43. package/dist-es/commands/GetGraphSnapshotCommand.js +19 -42
  44. package/dist-es/commands/GetImportTaskCommand.js +19 -42
  45. package/dist-es/commands/GetPrivateGraphEndpointCommand.js +19 -42
  46. package/dist-es/commands/ListGraphSnapshotsCommand.js +19 -42
  47. package/dist-es/commands/ListGraphsCommand.js +19 -42
  48. package/dist-es/commands/ListImportTasksCommand.js +19 -42
  49. package/dist-es/commands/ListPrivateGraphEndpointsCommand.js +19 -42
  50. package/dist-es/commands/ListTagsForResourceCommand.js +19 -42
  51. package/dist-es/commands/ResetGraphCommand.js +19 -42
  52. package/dist-es/commands/RestoreGraphFromSnapshotCommand.js +19 -42
  53. package/dist-es/commands/TagResourceCommand.js +19 -42
  54. package/dist-es/commands/UntagResourceCommand.js +19 -42
  55. package/dist-es/commands/UpdateGraphCommand.js +19 -42
  56. package/dist-es/endpoint/EndpointParameters.js +6 -0
  57. package/dist-es/index.js +1 -0
  58. package/dist-es/waiters/index.js +8 -0
  59. package/dist-es/waiters/waitForGraphAvailable.js +49 -0
  60. package/dist-es/waiters/waitForGraphDeleted.js +34 -0
  61. package/dist-es/waiters/waitForGraphSnapshotAvailable.js +49 -0
  62. package/dist-es/waiters/waitForGraphSnapshotDeleted.js +34 -0
  63. package/dist-es/waiters/waitForImportTaskCancelled.js +40 -0
  64. package/dist-es/waiters/waitForImportTaskSuccessful.js +67 -0
  65. package/dist-es/waiters/waitForPrivateGraphEndpointAvailable.js +49 -0
  66. package/dist-es/waiters/waitForPrivateGraphEndpointDeleted.js +34 -0
  67. package/dist-types/commands/CancelImportTaskCommand.d.ts +6 -21
  68. package/dist-types/commands/CreateGraphCommand.d.ts +6 -21
  69. package/dist-types/commands/CreateGraphSnapshotCommand.d.ts +6 -21
  70. package/dist-types/commands/CreateGraphUsingImportTaskCommand.d.ts +6 -21
  71. package/dist-types/commands/CreatePrivateGraphEndpointCommand.d.ts +6 -21
  72. package/dist-types/commands/DeleteGraphCommand.d.ts +6 -21
  73. package/dist-types/commands/DeleteGraphSnapshotCommand.d.ts +6 -21
  74. package/dist-types/commands/DeletePrivateGraphEndpointCommand.d.ts +6 -21
  75. package/dist-types/commands/GetGraphCommand.d.ts +6 -21
  76. package/dist-types/commands/GetGraphSnapshotCommand.d.ts +6 -21
  77. package/dist-types/commands/GetImportTaskCommand.d.ts +6 -21
  78. package/dist-types/commands/GetPrivateGraphEndpointCommand.d.ts +6 -21
  79. package/dist-types/commands/ListGraphSnapshotsCommand.d.ts +6 -21
  80. package/dist-types/commands/ListGraphsCommand.d.ts +6 -21
  81. package/dist-types/commands/ListImportTasksCommand.d.ts +6 -21
  82. package/dist-types/commands/ListPrivateGraphEndpointsCommand.d.ts +6 -21
  83. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  84. package/dist-types/commands/ResetGraphCommand.d.ts +6 -21
  85. package/dist-types/commands/RestoreGraphFromSnapshotCommand.d.ts +6 -21
  86. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  87. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  88. package/dist-types/commands/UpdateGraphCommand.d.ts +6 -21
  89. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  90. package/dist-types/index.d.ts +1 -0
  91. package/dist-types/ts3.4/commands/CancelImportTaskCommand.d.ts +14 -23
  92. package/dist-types/ts3.4/commands/CreateGraphCommand.d.ts +14 -23
  93. package/dist-types/ts3.4/commands/CreateGraphSnapshotCommand.d.ts +14 -23
  94. package/dist-types/ts3.4/commands/CreateGraphUsingImportTaskCommand.d.ts +12 -24
  95. package/dist-types/ts3.4/commands/CreatePrivateGraphEndpointCommand.d.ts +12 -24
  96. package/dist-types/ts3.4/commands/DeleteGraphCommand.d.ts +14 -23
  97. package/dist-types/ts3.4/commands/DeleteGraphSnapshotCommand.d.ts +14 -23
  98. package/dist-types/ts3.4/commands/DeletePrivateGraphEndpointCommand.d.ts +12 -24
  99. package/dist-types/ts3.4/commands/GetGraphCommand.d.ts +14 -23
  100. package/dist-types/ts3.4/commands/GetGraphSnapshotCommand.d.ts +14 -23
  101. package/dist-types/ts3.4/commands/GetImportTaskCommand.d.ts +14 -23
  102. package/dist-types/ts3.4/commands/GetPrivateGraphEndpointCommand.d.ts +12 -24
  103. package/dist-types/ts3.4/commands/ListGraphSnapshotsCommand.d.ts +14 -23
  104. package/dist-types/ts3.4/commands/ListGraphsCommand.d.ts +14 -23
  105. package/dist-types/ts3.4/commands/ListImportTasksCommand.d.ts +14 -23
  106. package/dist-types/ts3.4/commands/ListPrivateGraphEndpointsCommand.d.ts +12 -24
  107. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  108. package/dist-types/ts3.4/commands/ResetGraphCommand.d.ts +14 -23
  109. package/dist-types/ts3.4/commands/RestoreGraphFromSnapshotCommand.d.ts +12 -24
  110. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  111. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  112. package/dist-types/ts3.4/commands/UpdateGraphCommand.d.ts +14 -23
  113. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  114. package/dist-types/ts3.4/index.d.ts +1 -0
  115. package/dist-types/ts3.4/waiters/index.d.ts +8 -0
  116. package/dist-types/ts3.4/waiters/waitForGraphAvailable.d.ts +11 -0
  117. package/dist-types/ts3.4/waiters/waitForGraphDeleted.d.ts +11 -0
  118. package/dist-types/ts3.4/waiters/waitForGraphSnapshotAvailable.d.ts +11 -0
  119. package/dist-types/ts3.4/waiters/waitForGraphSnapshotDeleted.d.ts +11 -0
  120. package/dist-types/ts3.4/waiters/waitForImportTaskCancelled.d.ts +11 -0
  121. package/dist-types/ts3.4/waiters/waitForImportTaskSuccessful.d.ts +11 -0
  122. package/dist-types/ts3.4/waiters/waitForPrivateGraphEndpointAvailable.d.ts +11 -0
  123. package/dist-types/ts3.4/waiters/waitForPrivateGraphEndpointDeleted.d.ts +11 -0
  124. package/dist-types/waiters/index.d.ts +8 -0
  125. package/dist-types/waiters/waitForGraphAvailable.d.ts +14 -0
  126. package/dist-types/waiters/waitForGraphDeleted.d.ts +14 -0
  127. package/dist-types/waiters/waitForGraphSnapshotAvailable.d.ts +14 -0
  128. package/dist-types/waiters/waitForGraphSnapshotDeleted.d.ts +14 -0
  129. package/dist-types/waiters/waitForImportTaskCancelled.d.ts +14 -0
  130. package/dist-types/waiters/waitForImportTaskSuccessful.d.ts +14 -0
  131. package/dist-types/waiters/waitForPrivateGraphEndpointAvailable.d.ts +14 -0
  132. package/dist-types/waiters/waitForPrivateGraphEndpointDeleted.d.ts +14 -0
  133. package/package.json +10 -9
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ResetGraphCommand, se_ResetGraphCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ResetGraphCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- ApiType: { type: "staticContextParams", value: `ControlPlane` },
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, ResetGraphCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "NeptuneGraphClient";
27
- const commandName = "ResetGraphCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: (_) => _,
33
- outputFilterSensitiveLog: (_) => _,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "AmazonNeptuneGraph",
36
- operation: "ResetGraph",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_ResetGraphCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_ResetGraphCommand(output, context);
47
- }
7
+ export class ResetGraphCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ ApiType: { type: "staticContextParams", value: `ControlPlane` },
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("AmazonNeptuneGraph", "ResetGraph", {})
20
+ .n("NeptuneGraphClient", "ResetGraphCommand")
21
+ .f(void 0, void 0)
22
+ .ser(se_ResetGraphCommand)
23
+ .de(de_ResetGraphCommand)
24
+ .build() {
48
25
  }
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_RestoreGraphFromSnapshotCommand, se_RestoreGraphFromSnapshotCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class RestoreGraphFromSnapshotCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- ApiType: { type: "staticContextParams", value: `ControlPlane` },
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, RestoreGraphFromSnapshotCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "NeptuneGraphClient";
27
- const commandName = "RestoreGraphFromSnapshotCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: (_) => _,
33
- outputFilterSensitiveLog: (_) => _,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "AmazonNeptuneGraph",
36
- operation: "RestoreGraphFromSnapshot",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_RestoreGraphFromSnapshotCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_RestoreGraphFromSnapshotCommand(output, context);
47
- }
7
+ export class RestoreGraphFromSnapshotCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ ApiType: { type: "staticContextParams", value: `ControlPlane` },
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("AmazonNeptuneGraph", "RestoreGraphFromSnapshot", {})
20
+ .n("NeptuneGraphClient", "RestoreGraphFromSnapshotCommand")
21
+ .f(void 0, void 0)
22
+ .ser(se_RestoreGraphFromSnapshotCommand)
23
+ .de(de_RestoreGraphFromSnapshotCommand)
24
+ .build() {
48
25
  }
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class TagResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- ApiType: { type: "staticContextParams", value: `ControlPlane` },
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, TagResourceCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "NeptuneGraphClient";
27
- const commandName = "TagResourceCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: (_) => _,
33
- outputFilterSensitiveLog: (_) => _,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "AmazonNeptuneGraph",
36
- operation: "TagResource",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_TagResourceCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_TagResourceCommand(output, context);
47
- }
7
+ export class TagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ ApiType: { type: "staticContextParams", value: `ControlPlane` },
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("AmazonNeptuneGraph", "TagResource", {})
20
+ .n("NeptuneGraphClient", "TagResourceCommand")
21
+ .f(void 0, void 0)
22
+ .ser(se_TagResourceCommand)
23
+ .de(de_TagResourceCommand)
24
+ .build() {
48
25
  }
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UntagResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- ApiType: { type: "staticContextParams", value: `ControlPlane` },
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "NeptuneGraphClient";
27
- const commandName = "UntagResourceCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: (_) => _,
33
- outputFilterSensitiveLog: (_) => _,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "AmazonNeptuneGraph",
36
- operation: "UntagResource",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_UntagResourceCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_UntagResourceCommand(output, context);
47
- }
7
+ export class UntagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ ApiType: { type: "staticContextParams", value: `ControlPlane` },
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("AmazonNeptuneGraph", "UntagResource", {})
20
+ .n("NeptuneGraphClient", "UntagResourceCommand")
21
+ .f(void 0, void 0)
22
+ .ser(se_UntagResourceCommand)
23
+ .de(de_UntagResourceCommand)
24
+ .build() {
48
25
  }
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateGraphCommand, se_UpdateGraphCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UpdateGraphCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- ApiType: { type: "staticContextParams", value: `ControlPlane` },
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateGraphCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "NeptuneGraphClient";
27
- const commandName = "UpdateGraphCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: (_) => _,
33
- outputFilterSensitiveLog: (_) => _,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "AmazonNeptuneGraph",
36
- operation: "UpdateGraph",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_UpdateGraphCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_UpdateGraphCommand(output, context);
47
- }
7
+ export class UpdateGraphCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ ApiType: { type: "staticContextParams", value: `ControlPlane` },
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("AmazonNeptuneGraph", "UpdateGraph", {})
20
+ .n("NeptuneGraphClient", "UpdateGraphCommand")
21
+ .f(void 0, void 0)
22
+ .ser(se_UpdateGraphCommand)
23
+ .de(de_UpdateGraphCommand)
24
+ .build() {
48
25
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "neptune-graph",
7
7
  };
8
8
  };
9
+ export const commonParams = {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
package/dist-es/index.js CHANGED
@@ -2,6 +2,7 @@ export * from "./NeptuneGraphClient";
2
2
  export * from "./NeptuneGraph";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
+ export * from "./waiters";
5
6
  export * from "./models";
6
7
  import "@aws-sdk/util-endpoints";
7
8
  export { NeptuneGraphServiceException } from "./models/NeptuneGraphServiceException";
@@ -0,0 +1,8 @@
1
+ export * from "./waitForGraphAvailable";
2
+ export * from "./waitForGraphDeleted";
3
+ export * from "./waitForGraphSnapshotAvailable";
4
+ export * from "./waitForGraphSnapshotDeleted";
5
+ export * from "./waitForImportTaskCancelled";
6
+ export * from "./waitForImportTaskSuccessful";
7
+ export * from "./waitForPrivateGraphEndpointAvailable";
8
+ export * from "./waitForPrivateGraphEndpointDeleted";
@@ -0,0 +1,49 @@
1
+ import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
2
+ import { GetGraphCommand } from "../commands/GetGraphCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ const result = await client.send(new GetGraphCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ return result.status;
11
+ };
12
+ if (returnComparator() === "DELETING") {
13
+ return { state: WaiterState.FAILURE, reason };
14
+ }
15
+ }
16
+ catch (e) { }
17
+ try {
18
+ const returnComparator = () => {
19
+ return result.status;
20
+ };
21
+ if (returnComparator() === "FAILED") {
22
+ return { state: WaiterState.FAILURE, reason };
23
+ }
24
+ }
25
+ catch (e) { }
26
+ try {
27
+ const returnComparator = () => {
28
+ return result.status;
29
+ };
30
+ if (returnComparator() === "AVAILABLE") {
31
+ return { state: WaiterState.SUCCESS, reason };
32
+ }
33
+ }
34
+ catch (e) { }
35
+ }
36
+ catch (exception) {
37
+ reason = exception;
38
+ }
39
+ return { state: WaiterState.RETRY, reason };
40
+ };
41
+ export const waitForGraphAvailable = async (params, input) => {
42
+ const serviceDefaults = { minDelay: 60, maxDelay: 28800 };
43
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
44
+ };
45
+ export const waitUntilGraphAvailable = async (params, input) => {
46
+ const serviceDefaults = { minDelay: 60, maxDelay: 28800 };
47
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
48
+ return checkExceptions(result);
49
+ };
@@ -0,0 +1,34 @@
1
+ import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
2
+ import { GetGraphCommand } from "../commands/GetGraphCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ const result = await client.send(new GetGraphCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ return result.status != "DELETING";
11
+ };
12
+ if (returnComparator() == true) {
13
+ return { state: WaiterState.FAILURE, reason };
14
+ }
15
+ }
16
+ catch (e) { }
17
+ }
18
+ catch (exception) {
19
+ reason = exception;
20
+ if (exception.name && exception.name == "ResourceNotFoundException") {
21
+ return { state: WaiterState.SUCCESS, reason };
22
+ }
23
+ }
24
+ return { state: WaiterState.RETRY, reason };
25
+ };
26
+ export const waitForGraphDeleted = async (params, input) => {
27
+ const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
28
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
29
+ };
30
+ export const waitUntilGraphDeleted = async (params, input) => {
31
+ const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
32
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
33
+ return checkExceptions(result);
34
+ };
@@ -0,0 +1,49 @@
1
+ import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
2
+ import { GetGraphSnapshotCommand } from "../commands/GetGraphSnapshotCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ const result = await client.send(new GetGraphSnapshotCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ return result.status;
11
+ };
12
+ if (returnComparator() === "DELETING") {
13
+ return { state: WaiterState.FAILURE, reason };
14
+ }
15
+ }
16
+ catch (e) { }
17
+ try {
18
+ const returnComparator = () => {
19
+ return result.status;
20
+ };
21
+ if (returnComparator() === "FAILED") {
22
+ return { state: WaiterState.FAILURE, reason };
23
+ }
24
+ }
25
+ catch (e) { }
26
+ try {
27
+ const returnComparator = () => {
28
+ return result.status;
29
+ };
30
+ if (returnComparator() === "AVAILABLE") {
31
+ return { state: WaiterState.SUCCESS, reason };
32
+ }
33
+ }
34
+ catch (e) { }
35
+ }
36
+ catch (exception) {
37
+ reason = exception;
38
+ }
39
+ return { state: WaiterState.RETRY, reason };
40
+ };
41
+ export const waitForGraphSnapshotAvailable = async (params, input) => {
42
+ const serviceDefaults = { minDelay: 60, maxDelay: 7200 };
43
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
44
+ };
45
+ export const waitUntilGraphSnapshotAvailable = async (params, input) => {
46
+ const serviceDefaults = { minDelay: 60, maxDelay: 7200 };
47
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
48
+ return checkExceptions(result);
49
+ };
@@ -0,0 +1,34 @@
1
+ import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
2
+ import { GetGraphSnapshotCommand } from "../commands/GetGraphSnapshotCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ const result = await client.send(new GetGraphSnapshotCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ return result.status != "DELETING";
11
+ };
12
+ if (returnComparator() == true) {
13
+ return { state: WaiterState.FAILURE, reason };
14
+ }
15
+ }
16
+ catch (e) { }
17
+ }
18
+ catch (exception) {
19
+ reason = exception;
20
+ if (exception.name && exception.name == "ResourceNotFoundException") {
21
+ return { state: WaiterState.SUCCESS, reason };
22
+ }
23
+ }
24
+ return { state: WaiterState.RETRY, reason };
25
+ };
26
+ export const waitForGraphSnapshotDeleted = async (params, input) => {
27
+ const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
28
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
29
+ };
30
+ export const waitUntilGraphSnapshotDeleted = async (params, input) => {
31
+ const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
32
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
33
+ return checkExceptions(result);
34
+ };
@@ -0,0 +1,40 @@
1
+ import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
2
+ import { GetImportTaskCommand } from "../commands/GetImportTaskCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ const result = await client.send(new GetImportTaskCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ return result.status != "CANCELLING";
11
+ };
12
+ if (returnComparator() == true) {
13
+ return { state: WaiterState.FAILURE, reason };
14
+ }
15
+ }
16
+ catch (e) { }
17
+ try {
18
+ const returnComparator = () => {
19
+ return result.status;
20
+ };
21
+ if (returnComparator() === "CANCELLED") {
22
+ return { state: WaiterState.SUCCESS, reason };
23
+ }
24
+ }
25
+ catch (e) { }
26
+ }
27
+ catch (exception) {
28
+ reason = exception;
29
+ }
30
+ return { state: WaiterState.RETRY, reason };
31
+ };
32
+ export const waitForImportTaskCancelled = async (params, input) => {
33
+ const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
34
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
35
+ };
36
+ export const waitUntilImportTaskCancelled = async (params, input) => {
37
+ const serviceDefaults = { minDelay: 60, maxDelay: 3600 };
38
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
39
+ return checkExceptions(result);
40
+ };
@@ -0,0 +1,67 @@
1
+ import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
2
+ import { GetImportTaskCommand } from "../commands/GetImportTaskCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ const result = await client.send(new GetImportTaskCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ return result.status;
11
+ };
12
+ if (returnComparator() === "CANCELLING") {
13
+ return { state: WaiterState.FAILURE, reason };
14
+ }
15
+ }
16
+ catch (e) { }
17
+ try {
18
+ const returnComparator = () => {
19
+ return result.status;
20
+ };
21
+ if (returnComparator() === "CANCELLED") {
22
+ return { state: WaiterState.FAILURE, reason };
23
+ }
24
+ }
25
+ catch (e) { }
26
+ try {
27
+ const returnComparator = () => {
28
+ return result.status;
29
+ };
30
+ if (returnComparator() === "ROLLING_BACK") {
31
+ return { state: WaiterState.FAILURE, reason };
32
+ }
33
+ }
34
+ catch (e) { }
35
+ try {
36
+ const returnComparator = () => {
37
+ return result.status;
38
+ };
39
+ if (returnComparator() === "FAILED") {
40
+ return { state: WaiterState.FAILURE, reason };
41
+ }
42
+ }
43
+ catch (e) { }
44
+ try {
45
+ const returnComparator = () => {
46
+ return result.status;
47
+ };
48
+ if (returnComparator() === "SUCCEEDED") {
49
+ return { state: WaiterState.SUCCESS, reason };
50
+ }
51
+ }
52
+ catch (e) { }
53
+ }
54
+ catch (exception) {
55
+ reason = exception;
56
+ }
57
+ return { state: WaiterState.RETRY, reason };
58
+ };
59
+ export const waitForImportTaskSuccessful = async (params, input) => {
60
+ const serviceDefaults = { minDelay: 60, maxDelay: 28800 };
61
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
62
+ };
63
+ export const waitUntilImportTaskSuccessful = async (params, input) => {
64
+ const serviceDefaults = { minDelay: 60, maxDelay: 28800 };
65
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
66
+ return checkExceptions(result);
67
+ };