@aws-sdk/client-neptune-graph 3.479.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 (93) 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-es/commands/CancelImportTaskCommand.js +19 -42
  25. package/dist-es/commands/CreateGraphCommand.js +19 -42
  26. package/dist-es/commands/CreateGraphSnapshotCommand.js +19 -42
  27. package/dist-es/commands/CreateGraphUsingImportTaskCommand.js +19 -42
  28. package/dist-es/commands/CreatePrivateGraphEndpointCommand.js +19 -42
  29. package/dist-es/commands/DeleteGraphCommand.js +19 -42
  30. package/dist-es/commands/DeleteGraphSnapshotCommand.js +19 -42
  31. package/dist-es/commands/DeletePrivateGraphEndpointCommand.js +19 -42
  32. package/dist-es/commands/GetGraphCommand.js +19 -42
  33. package/dist-es/commands/GetGraphSnapshotCommand.js +19 -42
  34. package/dist-es/commands/GetImportTaskCommand.js +19 -42
  35. package/dist-es/commands/GetPrivateGraphEndpointCommand.js +19 -42
  36. package/dist-es/commands/ListGraphSnapshotsCommand.js +19 -42
  37. package/dist-es/commands/ListGraphsCommand.js +19 -42
  38. package/dist-es/commands/ListImportTasksCommand.js +19 -42
  39. package/dist-es/commands/ListPrivateGraphEndpointsCommand.js +19 -42
  40. package/dist-es/commands/ListTagsForResourceCommand.js +19 -42
  41. package/dist-es/commands/ResetGraphCommand.js +19 -42
  42. package/dist-es/commands/RestoreGraphFromSnapshotCommand.js +19 -42
  43. package/dist-es/commands/TagResourceCommand.js +19 -42
  44. package/dist-es/commands/UntagResourceCommand.js +19 -42
  45. package/dist-es/commands/UpdateGraphCommand.js +19 -42
  46. package/dist-es/endpoint/EndpointParameters.js +6 -0
  47. package/dist-types/commands/CancelImportTaskCommand.d.ts +6 -21
  48. package/dist-types/commands/CreateGraphCommand.d.ts +6 -21
  49. package/dist-types/commands/CreateGraphSnapshotCommand.d.ts +6 -21
  50. package/dist-types/commands/CreateGraphUsingImportTaskCommand.d.ts +6 -21
  51. package/dist-types/commands/CreatePrivateGraphEndpointCommand.d.ts +6 -21
  52. package/dist-types/commands/DeleteGraphCommand.d.ts +6 -21
  53. package/dist-types/commands/DeleteGraphSnapshotCommand.d.ts +6 -21
  54. package/dist-types/commands/DeletePrivateGraphEndpointCommand.d.ts +6 -21
  55. package/dist-types/commands/GetGraphCommand.d.ts +6 -21
  56. package/dist-types/commands/GetGraphSnapshotCommand.d.ts +6 -21
  57. package/dist-types/commands/GetImportTaskCommand.d.ts +6 -21
  58. package/dist-types/commands/GetPrivateGraphEndpointCommand.d.ts +6 -21
  59. package/dist-types/commands/ListGraphSnapshotsCommand.d.ts +6 -21
  60. package/dist-types/commands/ListGraphsCommand.d.ts +6 -21
  61. package/dist-types/commands/ListImportTasksCommand.d.ts +6 -21
  62. package/dist-types/commands/ListPrivateGraphEndpointsCommand.d.ts +6 -21
  63. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  64. package/dist-types/commands/ResetGraphCommand.d.ts +6 -21
  65. package/dist-types/commands/RestoreGraphFromSnapshotCommand.d.ts +6 -21
  66. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  67. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  68. package/dist-types/commands/UpdateGraphCommand.d.ts +6 -21
  69. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  70. package/dist-types/ts3.4/commands/CancelImportTaskCommand.d.ts +14 -23
  71. package/dist-types/ts3.4/commands/CreateGraphCommand.d.ts +14 -23
  72. package/dist-types/ts3.4/commands/CreateGraphSnapshotCommand.d.ts +14 -23
  73. package/dist-types/ts3.4/commands/CreateGraphUsingImportTaskCommand.d.ts +12 -24
  74. package/dist-types/ts3.4/commands/CreatePrivateGraphEndpointCommand.d.ts +12 -24
  75. package/dist-types/ts3.4/commands/DeleteGraphCommand.d.ts +14 -23
  76. package/dist-types/ts3.4/commands/DeleteGraphSnapshotCommand.d.ts +14 -23
  77. package/dist-types/ts3.4/commands/DeletePrivateGraphEndpointCommand.d.ts +12 -24
  78. package/dist-types/ts3.4/commands/GetGraphCommand.d.ts +14 -23
  79. package/dist-types/ts3.4/commands/GetGraphSnapshotCommand.d.ts +14 -23
  80. package/dist-types/ts3.4/commands/GetImportTaskCommand.d.ts +14 -23
  81. package/dist-types/ts3.4/commands/GetPrivateGraphEndpointCommand.d.ts +12 -24
  82. package/dist-types/ts3.4/commands/ListGraphSnapshotsCommand.d.ts +14 -23
  83. package/dist-types/ts3.4/commands/ListGraphsCommand.d.ts +14 -23
  84. package/dist-types/ts3.4/commands/ListImportTasksCommand.d.ts +14 -23
  85. package/dist-types/ts3.4/commands/ListPrivateGraphEndpointsCommand.d.ts +12 -24
  86. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  87. package/dist-types/ts3.4/commands/ResetGraphCommand.d.ts +14 -23
  88. package/dist-types/ts3.4/commands/RestoreGraphFromSnapshotCommand.d.ts +12 -24
  89. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  90. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  91. package/dist-types/ts3.4/commands/UpdateGraphCommand.d.ts +14 -23
  92. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  93. package/package.json +9 -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_ListImportTasksCommand, se_ListImportTasksCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListImportTasksCommand 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, ListImportTasksCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "NeptuneGraphClient";
27
- const commandName = "ListImportTasksCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: (_) => _,
33
- outputFilterSensitiveLog: (_) => _,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "AmazonNeptuneGraph",
36
- operation: "ListImportTasks",
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_ListImportTasksCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_ListImportTasksCommand(output, context);
47
- }
7
+ export class ListImportTasksCommand 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", "ListImportTasks", {})
20
+ .n("NeptuneGraphClient", "ListImportTasksCommand")
21
+ .f(void 0, void 0)
22
+ .ser(se_ListImportTasksCommand)
23
+ .de(de_ListImportTasksCommand)
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_ListPrivateGraphEndpointsCommand, se_ListPrivateGraphEndpointsCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListPrivateGraphEndpointsCommand 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, ListPrivateGraphEndpointsCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "NeptuneGraphClient";
27
- const commandName = "ListPrivateGraphEndpointsCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: (_) => _,
33
- outputFilterSensitiveLog: (_) => _,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "AmazonNeptuneGraph",
36
- operation: "ListPrivateGraphEndpoints",
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_ListPrivateGraphEndpointsCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_ListPrivateGraphEndpointsCommand(output, context);
47
- }
7
+ export class ListPrivateGraphEndpointsCommand 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", "ListPrivateGraphEndpoints", {})
20
+ .n("NeptuneGraphClient", "ListPrivateGraphEndpointsCommand")
21
+ .f(void 0, void 0)
22
+ .ser(se_ListPrivateGraphEndpointsCommand)
23
+ .de(de_ListPrivateGraphEndpointsCommand)
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_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListTagsForResourceCommand 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, ListTagsForResourceCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "NeptuneGraphClient";
27
- const commandName = "ListTagsForResourceCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: (_) => _,
33
- outputFilterSensitiveLog: (_) => _,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "AmazonNeptuneGraph",
36
- operation: "ListTagsForResource",
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_ListTagsForResourceCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_ListTagsForResourceCommand(output, context);
47
- }
7
+ export class ListTagsForResourceCommand 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", "ListTagsForResource", {})
20
+ .n("NeptuneGraphClient", "ListTagsForResourceCommand")
21
+ .f(void 0, void 0)
22
+ .ser(se_ListTagsForResourceCommand)
23
+ .de(de_ListTagsForResourceCommand)
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_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
+ };
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CancelImportTaskInput, CancelImportTaskOutput } from "../models/models_0";
5
4
  import { NeptuneGraphClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptuneGraphClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CancelImportTaskCommandInput extends CancelImportTaskInput {
21
20
  */
22
21
  export interface CancelImportTaskCommandOutput extends CancelImportTaskOutput, __MetadataBearer {
23
22
  }
23
+ declare const CancelImportTaskCommand_base: {
24
+ new (input: CancelImportTaskCommandInput): import("@smithy/smithy-client").CommandImpl<CancelImportTaskCommandInput, CancelImportTaskCommandOutput, NeptuneGraphClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Deletes the specified import task</p>
@@ -71,23 +74,5 @@ export interface CancelImportTaskCommandOutput extends CancelImportTaskOutput, _
71
74
  * <p>Base exception class for all service exceptions from NeptuneGraph service.</p>
72
75
  *
73
76
  */
74
- export declare class CancelImportTaskCommand extends $Command<CancelImportTaskCommandInput, CancelImportTaskCommandOutput, NeptuneGraphClientResolvedConfig> {
75
- readonly input: CancelImportTaskCommandInput;
76
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
77
- /**
78
- * @public
79
- */
80
- constructor(input: CancelImportTaskCommandInput);
81
- /**
82
- * @internal
83
- */
84
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: NeptuneGraphClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CancelImportTaskCommandInput, CancelImportTaskCommandOutput>;
85
- /**
86
- * @internal
87
- */
88
- private serialize;
89
- /**
90
- * @internal
91
- */
92
- private deserialize;
77
+ export declare class CancelImportTaskCommand extends CancelImportTaskCommand_base {
93
78
  }