@aws-sdk/client-braket 3.477.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 (69) hide show
  1. package/dist-cjs/commands/CancelJobCommand.js +18 -41
  2. package/dist-cjs/commands/CancelQuantumTaskCommand.js +18 -41
  3. package/dist-cjs/commands/CreateJobCommand.js +18 -41
  4. package/dist-cjs/commands/CreateQuantumTaskCommand.js +18 -41
  5. package/dist-cjs/commands/GetDeviceCommand.js +18 -41
  6. package/dist-cjs/commands/GetJobCommand.js +18 -41
  7. package/dist-cjs/commands/GetQuantumTaskCommand.js +18 -41
  8. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  9. package/dist-cjs/commands/SearchDevicesCommand.js +18 -41
  10. package/dist-cjs/commands/SearchJobsCommand.js +18 -41
  11. package/dist-cjs/commands/SearchQuantumTasksCommand.js +18 -41
  12. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  13. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  14. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  15. package/dist-cjs/pagination/SearchDevicesPaginator.js +2 -24
  16. package/dist-cjs/pagination/SearchJobsPaginator.js +2 -24
  17. package/dist-cjs/pagination/SearchQuantumTasksPaginator.js +2 -24
  18. package/dist-es/commands/CancelJobCommand.js +18 -41
  19. package/dist-es/commands/CancelQuantumTaskCommand.js +18 -41
  20. package/dist-es/commands/CreateJobCommand.js +18 -41
  21. package/dist-es/commands/CreateQuantumTaskCommand.js +18 -41
  22. package/dist-es/commands/GetDeviceCommand.js +18 -41
  23. package/dist-es/commands/GetJobCommand.js +18 -41
  24. package/dist-es/commands/GetQuantumTaskCommand.js +18 -41
  25. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  26. package/dist-es/commands/SearchDevicesCommand.js +18 -41
  27. package/dist-es/commands/SearchJobsCommand.js +18 -41
  28. package/dist-es/commands/SearchQuantumTasksCommand.js +18 -41
  29. package/dist-es/commands/TagResourceCommand.js +18 -41
  30. package/dist-es/commands/UntagResourceCommand.js +18 -41
  31. package/dist-es/endpoint/EndpointParameters.js +6 -0
  32. package/dist-es/pagination/SearchDevicesPaginator.js +2 -23
  33. package/dist-es/pagination/SearchJobsPaginator.js +2 -23
  34. package/dist-es/pagination/SearchQuantumTasksPaginator.js +2 -23
  35. package/dist-types/commands/CancelJobCommand.d.ts +6 -21
  36. package/dist-types/commands/CancelQuantumTaskCommand.d.ts +6 -21
  37. package/dist-types/commands/CreateJobCommand.d.ts +6 -21
  38. package/dist-types/commands/CreateQuantumTaskCommand.d.ts +6 -21
  39. package/dist-types/commands/GetDeviceCommand.d.ts +6 -21
  40. package/dist-types/commands/GetJobCommand.d.ts +6 -21
  41. package/dist-types/commands/GetQuantumTaskCommand.d.ts +6 -21
  42. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  43. package/dist-types/commands/SearchDevicesCommand.d.ts +6 -21
  44. package/dist-types/commands/SearchJobsCommand.d.ts +6 -21
  45. package/dist-types/commands/SearchQuantumTasksCommand.d.ts +6 -21
  46. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  47. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  48. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  49. package/dist-types/pagination/SearchDevicesPaginator.d.ts +1 -1
  50. package/dist-types/pagination/SearchJobsPaginator.d.ts +1 -1
  51. package/dist-types/pagination/SearchQuantumTasksPaginator.d.ts +1 -1
  52. package/dist-types/ts3.4/commands/CancelJobCommand.d.ts +14 -23
  53. package/dist-types/ts3.4/commands/CancelQuantumTaskCommand.d.ts +14 -23
  54. package/dist-types/ts3.4/commands/CreateJobCommand.d.ts +14 -23
  55. package/dist-types/ts3.4/commands/CreateQuantumTaskCommand.d.ts +14 -23
  56. package/dist-types/ts3.4/commands/GetDeviceCommand.d.ts +14 -23
  57. package/dist-types/ts3.4/commands/GetJobCommand.d.ts +12 -23
  58. package/dist-types/ts3.4/commands/GetQuantumTaskCommand.d.ts +14 -23
  59. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  60. package/dist-types/ts3.4/commands/SearchDevicesCommand.d.ts +14 -23
  61. package/dist-types/ts3.4/commands/SearchJobsCommand.d.ts +14 -23
  62. package/dist-types/ts3.4/commands/SearchQuantumTasksCommand.d.ts +14 -23
  63. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  64. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  65. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  66. package/dist-types/ts3.4/pagination/SearchDevicesPaginator.d.ts +3 -3
  67. package/dist-types/ts3.4/pagination/SearchJobsPaginator.d.ts +3 -3
  68. package/dist-types/ts3.4/pagination/SearchQuantumTasksPaginator.d.ts +3 -3
  69. package/package.json +11 -11
@@ -1,47 +1,24 @@
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_CreateQuantumTaskCommand, se_CreateQuantumTaskCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class CreateQuantumTaskCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
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
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateQuantumTaskCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "BraketClient";
26
- const commandName = "CreateQuantumTaskCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Braket",
35
- operation: "CreateQuantumTask",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_CreateQuantumTaskCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateQuantumTaskCommand(output, context);
46
- }
7
+ export class CreateQuantumTaskCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Braket", "CreateQuantumTask", {})
19
+ .n("BraketClient", "CreateQuantumTaskCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateQuantumTaskCommand)
22
+ .de(de_CreateQuantumTaskCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
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_GetDeviceCommand, se_GetDeviceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class GetDeviceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
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
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, GetDeviceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "BraketClient";
26
- const commandName = "GetDeviceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Braket",
35
- operation: "GetDevice",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_GetDeviceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetDeviceCommand(output, context);
46
- }
7
+ export class GetDeviceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Braket", "GetDevice", {})
19
+ .n("BraketClient", "GetDeviceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetDeviceCommand)
22
+ .de(de_GetDeviceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
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_GetJobCommand, se_GetJobCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class GetJobCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
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
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, GetJobCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "BraketClient";
26
- const commandName = "GetJobCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Braket",
35
- operation: "GetJob",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_GetJobCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetJobCommand(output, context);
46
- }
7
+ export class GetJobCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Braket", "GetJob", {})
19
+ .n("BraketClient", "GetJobCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetJobCommand)
22
+ .de(de_GetJobCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
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_GetQuantumTaskCommand, se_GetQuantumTaskCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class GetQuantumTaskCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
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
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, GetQuantumTaskCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "BraketClient";
26
- const commandName = "GetQuantumTaskCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Braket",
35
- operation: "GetQuantumTask",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_GetQuantumTaskCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetQuantumTaskCommand(output, context);
46
- }
7
+ export class GetQuantumTaskCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Braket", "GetQuantumTask", {})
19
+ .n("BraketClient", "GetQuantumTaskCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetQuantumTaskCommand)
22
+ .de(de_GetQuantumTaskCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
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
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListTagsForResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "BraketClient";
26
- const commandName = "ListTagsForResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Braket",
35
- operation: "ListTagsForResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListTagsForResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListTagsForResourceCommand(output, context);
46
- }
7
+ export class ListTagsForResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Braket", "ListTagsForResource", {})
19
+ .n("BraketClient", "ListTagsForResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListTagsForResourceCommand)
22
+ .de(de_ListTagsForResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
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_SearchDevicesCommand, se_SearchDevicesCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class SearchDevicesCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
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
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, SearchDevicesCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "BraketClient";
26
- const commandName = "SearchDevicesCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Braket",
35
- operation: "SearchDevices",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_SearchDevicesCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_SearchDevicesCommand(output, context);
46
- }
7
+ export class SearchDevicesCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Braket", "SearchDevices", {})
19
+ .n("BraketClient", "SearchDevicesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_SearchDevicesCommand)
22
+ .de(de_SearchDevicesCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
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_SearchJobsCommand, se_SearchJobsCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class SearchJobsCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
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
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, SearchJobsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "BraketClient";
26
- const commandName = "SearchJobsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Braket",
35
- operation: "SearchJobs",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_SearchJobsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_SearchJobsCommand(output, context);
46
- }
7
+ export class SearchJobsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Braket", "SearchJobs", {})
19
+ .n("BraketClient", "SearchJobsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_SearchJobsCommand)
22
+ .de(de_SearchJobsCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
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_SearchQuantumTasksCommand, se_SearchQuantumTasksCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class SearchQuantumTasksCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
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
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, SearchQuantumTasksCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "BraketClient";
26
- const commandName = "SearchQuantumTasksCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Braket",
35
- operation: "SearchQuantumTasks",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_SearchQuantumTasksCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_SearchQuantumTasksCommand(output, context);
46
- }
7
+ export class SearchQuantumTasksCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Braket", "SearchQuantumTasks", {})
19
+ .n("BraketClient", "SearchQuantumTasksCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_SearchQuantumTasksCommand)
22
+ .de(de_SearchQuantumTasksCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
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
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, TagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "BraketClient";
26
- const commandName = "TagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Braket",
35
- operation: "TagResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_TagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_TagResourceCommand(output, context);
46
- }
7
+ export class TagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("Braket", "TagResource", {})
19
+ .n("BraketClient", "TagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_TagResourceCommand)
22
+ .de(de_TagResourceCommand)
23
+ .build() {
47
24
  }