@aws-sdk/client-braket 3.478.0 → 3.484.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 (57) 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-es/commands/CancelJobCommand.js +18 -41
  16. package/dist-es/commands/CancelQuantumTaskCommand.js +18 -41
  17. package/dist-es/commands/CreateJobCommand.js +18 -41
  18. package/dist-es/commands/CreateQuantumTaskCommand.js +18 -41
  19. package/dist-es/commands/GetDeviceCommand.js +18 -41
  20. package/dist-es/commands/GetJobCommand.js +18 -41
  21. package/dist-es/commands/GetQuantumTaskCommand.js +18 -41
  22. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  23. package/dist-es/commands/SearchDevicesCommand.js +18 -41
  24. package/dist-es/commands/SearchJobsCommand.js +18 -41
  25. package/dist-es/commands/SearchQuantumTasksCommand.js +18 -41
  26. package/dist-es/commands/TagResourceCommand.js +18 -41
  27. package/dist-es/commands/UntagResourceCommand.js +18 -41
  28. package/dist-es/endpoint/EndpointParameters.js +6 -0
  29. package/dist-types/commands/CancelJobCommand.d.ts +6 -21
  30. package/dist-types/commands/CancelQuantumTaskCommand.d.ts +6 -21
  31. package/dist-types/commands/CreateJobCommand.d.ts +6 -21
  32. package/dist-types/commands/CreateQuantumTaskCommand.d.ts +6 -21
  33. package/dist-types/commands/GetDeviceCommand.d.ts +6 -21
  34. package/dist-types/commands/GetJobCommand.d.ts +6 -21
  35. package/dist-types/commands/GetQuantumTaskCommand.d.ts +6 -21
  36. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  37. package/dist-types/commands/SearchDevicesCommand.d.ts +6 -21
  38. package/dist-types/commands/SearchJobsCommand.d.ts +6 -21
  39. package/dist-types/commands/SearchQuantumTasksCommand.d.ts +6 -21
  40. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  41. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  42. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  43. package/dist-types/ts3.4/commands/CancelJobCommand.d.ts +14 -23
  44. package/dist-types/ts3.4/commands/CancelQuantumTaskCommand.d.ts +14 -23
  45. package/dist-types/ts3.4/commands/CreateJobCommand.d.ts +14 -23
  46. package/dist-types/ts3.4/commands/CreateQuantumTaskCommand.d.ts +14 -23
  47. package/dist-types/ts3.4/commands/GetDeviceCommand.d.ts +14 -23
  48. package/dist-types/ts3.4/commands/GetJobCommand.d.ts +12 -23
  49. package/dist-types/ts3.4/commands/GetQuantumTaskCommand.d.ts +14 -23
  50. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  51. package/dist-types/ts3.4/commands/SearchDevicesCommand.d.ts +14 -23
  52. package/dist-types/ts3.4/commands/SearchJobsCommand.d.ts +14 -23
  53. package/dist-types/ts3.4/commands/SearchQuantumTasksCommand.d.ts +14 -23
  54. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  55. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  56. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  57. 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_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
  }
@@ -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_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UntagResourceCommand 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, UntagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "BraketClient";
26
- const commandName = "UntagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "Braket",
35
- operation: "UntagResource",
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_UntagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UntagResourceCommand(output, context);
46
- }
7
+ export class UntagResourceCommand 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", "UntagResource", {})
19
+ .n("BraketClient", "UntagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UntagResourceCommand)
22
+ .de(de_UntagResourceCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "braket",
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 { BraketClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BraketClient";
5
4
  import { CancelJobRequest, CancelJobResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CancelJobCommandInput extends CancelJobRequest {
21
20
  */
22
21
  export interface CancelJobCommandOutput extends CancelJobResponse, __MetadataBearer {
23
22
  }
23
+ declare const CancelJobCommand_base: {
24
+ new (input: CancelJobCommandInput): import("@smithy/smithy-client").CommandImpl<CancelJobCommandInput, CancelJobCommandOutput, BraketClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Cancels an Amazon Braket job.</p>
@@ -71,23 +74,5 @@ export interface CancelJobCommandOutput extends CancelJobResponse, __MetadataBea
71
74
  * <p>Base exception class for all service exceptions from Braket service.</p>
72
75
  *
73
76
  */
74
- export declare class CancelJobCommand extends $Command<CancelJobCommandInput, CancelJobCommandOutput, BraketClientResolvedConfig> {
75
- readonly input: CancelJobCommandInput;
76
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
77
- /**
78
- * @public
79
- */
80
- constructor(input: CancelJobCommandInput);
81
- /**
82
- * @internal
83
- */
84
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BraketClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CancelJobCommandInput, CancelJobCommandOutput>;
85
- /**
86
- * @internal
87
- */
88
- private serialize;
89
- /**
90
- * @internal
91
- */
92
- private deserialize;
77
+ export declare class CancelJobCommand extends CancelJobCommand_base {
93
78
  }
@@ -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 { BraketClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BraketClient";
5
4
  import { CancelQuantumTaskRequest, CancelQuantumTaskResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CancelQuantumTaskCommandInput extends CancelQuantumTaskRequest
21
20
  */
22
21
  export interface CancelQuantumTaskCommandOutput extends CancelQuantumTaskResponse, __MetadataBearer {
23
22
  }
23
+ declare const CancelQuantumTaskCommand_base: {
24
+ new (input: CancelQuantumTaskCommandInput): import("@smithy/smithy-client").CommandImpl<CancelQuantumTaskCommandInput, CancelQuantumTaskCommandOutput, BraketClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Cancels the specified task.</p>
@@ -72,23 +75,5 @@ export interface CancelQuantumTaskCommandOutput extends CancelQuantumTaskRespons
72
75
  * <p>Base exception class for all service exceptions from Braket service.</p>
73
76
  *
74
77
  */
75
- export declare class CancelQuantumTaskCommand extends $Command<CancelQuantumTaskCommandInput, CancelQuantumTaskCommandOutput, BraketClientResolvedConfig> {
76
- readonly input: CancelQuantumTaskCommandInput;
77
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
78
- /**
79
- * @public
80
- */
81
- constructor(input: CancelQuantumTaskCommandInput);
82
- /**
83
- * @internal
84
- */
85
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BraketClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CancelQuantumTaskCommandInput, CancelQuantumTaskCommandOutput>;
86
- /**
87
- * @internal
88
- */
89
- private serialize;
90
- /**
91
- * @internal
92
- */
93
- private deserialize;
78
+ export declare class CancelQuantumTaskCommand extends CancelQuantumTaskCommand_base {
94
79
  }