@aws-sdk/client-oam 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 (77) hide show
  1. package/dist-cjs/commands/CreateLinkCommand.js +18 -41
  2. package/dist-cjs/commands/CreateSinkCommand.js +18 -41
  3. package/dist-cjs/commands/DeleteLinkCommand.js +18 -41
  4. package/dist-cjs/commands/DeleteSinkCommand.js +18 -41
  5. package/dist-cjs/commands/GetLinkCommand.js +18 -41
  6. package/dist-cjs/commands/GetSinkCommand.js +18 -41
  7. package/dist-cjs/commands/GetSinkPolicyCommand.js +18 -41
  8. package/dist-cjs/commands/ListAttachedLinksCommand.js +18 -41
  9. package/dist-cjs/commands/ListLinksCommand.js +18 -41
  10. package/dist-cjs/commands/ListSinksCommand.js +18 -41
  11. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  12. package/dist-cjs/commands/PutSinkPolicyCommand.js +18 -41
  13. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  14. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  15. package/dist-cjs/commands/UpdateLinkCommand.js +18 -41
  16. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  17. package/dist-cjs/pagination/ListAttachedLinksPaginator.js +2 -24
  18. package/dist-cjs/pagination/ListLinksPaginator.js +2 -24
  19. package/dist-cjs/pagination/ListSinksPaginator.js +2 -24
  20. package/dist-es/commands/CreateLinkCommand.js +18 -41
  21. package/dist-es/commands/CreateSinkCommand.js +18 -41
  22. package/dist-es/commands/DeleteLinkCommand.js +18 -41
  23. package/dist-es/commands/DeleteSinkCommand.js +18 -41
  24. package/dist-es/commands/GetLinkCommand.js +18 -41
  25. package/dist-es/commands/GetSinkCommand.js +18 -41
  26. package/dist-es/commands/GetSinkPolicyCommand.js +18 -41
  27. package/dist-es/commands/ListAttachedLinksCommand.js +18 -41
  28. package/dist-es/commands/ListLinksCommand.js +18 -41
  29. package/dist-es/commands/ListSinksCommand.js +18 -41
  30. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  31. package/dist-es/commands/PutSinkPolicyCommand.js +18 -41
  32. package/dist-es/commands/TagResourceCommand.js +18 -41
  33. package/dist-es/commands/UntagResourceCommand.js +18 -41
  34. package/dist-es/commands/UpdateLinkCommand.js +18 -41
  35. package/dist-es/endpoint/EndpointParameters.js +6 -0
  36. package/dist-es/pagination/ListAttachedLinksPaginator.js +2 -23
  37. package/dist-es/pagination/ListLinksPaginator.js +2 -23
  38. package/dist-es/pagination/ListSinksPaginator.js +2 -23
  39. package/dist-types/commands/CreateLinkCommand.d.ts +6 -21
  40. package/dist-types/commands/CreateSinkCommand.d.ts +6 -21
  41. package/dist-types/commands/DeleteLinkCommand.d.ts +6 -21
  42. package/dist-types/commands/DeleteSinkCommand.d.ts +6 -21
  43. package/dist-types/commands/GetLinkCommand.d.ts +6 -21
  44. package/dist-types/commands/GetSinkCommand.d.ts +6 -21
  45. package/dist-types/commands/GetSinkPolicyCommand.d.ts +6 -21
  46. package/dist-types/commands/ListAttachedLinksCommand.d.ts +6 -21
  47. package/dist-types/commands/ListLinksCommand.d.ts +6 -21
  48. package/dist-types/commands/ListSinksCommand.d.ts +6 -21
  49. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  50. package/dist-types/commands/PutSinkPolicyCommand.d.ts +6 -21
  51. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  52. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  53. package/dist-types/commands/UpdateLinkCommand.d.ts +6 -21
  54. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  55. package/dist-types/pagination/ListAttachedLinksPaginator.d.ts +1 -1
  56. package/dist-types/pagination/ListLinksPaginator.d.ts +1 -1
  57. package/dist-types/pagination/ListSinksPaginator.d.ts +1 -1
  58. package/dist-types/ts3.4/commands/CreateLinkCommand.d.ts +14 -23
  59. package/dist-types/ts3.4/commands/CreateSinkCommand.d.ts +14 -23
  60. package/dist-types/ts3.4/commands/DeleteLinkCommand.d.ts +14 -23
  61. package/dist-types/ts3.4/commands/DeleteSinkCommand.d.ts +14 -23
  62. package/dist-types/ts3.4/commands/GetLinkCommand.d.ts +12 -23
  63. package/dist-types/ts3.4/commands/GetSinkCommand.d.ts +12 -23
  64. package/dist-types/ts3.4/commands/GetSinkPolicyCommand.d.ts +14 -23
  65. package/dist-types/ts3.4/commands/ListAttachedLinksCommand.d.ts +14 -23
  66. package/dist-types/ts3.4/commands/ListLinksCommand.d.ts +14 -23
  67. package/dist-types/ts3.4/commands/ListSinksCommand.d.ts +14 -23
  68. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  69. package/dist-types/ts3.4/commands/PutSinkPolicyCommand.d.ts +14 -23
  70. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  71. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  72. package/dist-types/ts3.4/commands/UpdateLinkCommand.d.ts +14 -23
  73. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  74. package/dist-types/ts3.4/pagination/ListAttachedLinksPaginator.d.ts +3 -3
  75. package/dist-types/ts3.4/pagination/ListLinksPaginator.d.ts +3 -3
  76. package/dist-types/ts3.4/pagination/ListSinksPaginator.d.ts +3 -3
  77. 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_CreateSinkCommand, se_CreateSinkCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class CreateSinkCommand 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, CreateSinkCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "OAMClient";
26
- const commandName = "CreateSinkCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "oamservice",
35
- operation: "CreateSink",
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_CreateSinkCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateSinkCommand(output, context);
46
- }
7
+ export class CreateSinkCommand 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("oamservice", "CreateSink", {})
19
+ .n("OAMClient", "CreateSinkCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateSinkCommand)
22
+ .de(de_CreateSinkCommand)
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_DeleteLinkCommand, se_DeleteLinkCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class DeleteLinkCommand 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, DeleteLinkCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "OAMClient";
26
- const commandName = "DeleteLinkCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "oamservice",
35
- operation: "DeleteLink",
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_DeleteLinkCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DeleteLinkCommand(output, context);
46
- }
7
+ export class DeleteLinkCommand 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("oamservice", "DeleteLink", {})
19
+ .n("OAMClient", "DeleteLinkCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteLinkCommand)
22
+ .de(de_DeleteLinkCommand)
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_DeleteSinkCommand, se_DeleteSinkCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class DeleteSinkCommand 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, DeleteSinkCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "OAMClient";
26
- const commandName = "DeleteSinkCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "oamservice",
35
- operation: "DeleteSink",
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_DeleteSinkCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DeleteSinkCommand(output, context);
46
- }
7
+ export class DeleteSinkCommand 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("oamservice", "DeleteSink", {})
19
+ .n("OAMClient", "DeleteSinkCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteSinkCommand)
22
+ .de(de_DeleteSinkCommand)
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_GetLinkCommand, se_GetLinkCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class GetLinkCommand 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, GetLinkCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "OAMClient";
26
- const commandName = "GetLinkCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "oamservice",
35
- operation: "GetLink",
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_GetLinkCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetLinkCommand(output, context);
46
- }
7
+ export class GetLinkCommand 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("oamservice", "GetLink", {})
19
+ .n("OAMClient", "GetLinkCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetLinkCommand)
22
+ .de(de_GetLinkCommand)
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_GetSinkCommand, se_GetSinkCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class GetSinkCommand 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, GetSinkCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "OAMClient";
26
- const commandName = "GetSinkCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "oamservice",
35
- operation: "GetSink",
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_GetSinkCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetSinkCommand(output, context);
46
- }
7
+ export class GetSinkCommand 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("oamservice", "GetSink", {})
19
+ .n("OAMClient", "GetSinkCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetSinkCommand)
22
+ .de(de_GetSinkCommand)
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_GetSinkPolicyCommand, se_GetSinkPolicyCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class GetSinkPolicyCommand 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, GetSinkPolicyCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "OAMClient";
26
- const commandName = "GetSinkPolicyCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "oamservice",
35
- operation: "GetSinkPolicy",
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_GetSinkPolicyCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetSinkPolicyCommand(output, context);
46
- }
7
+ export class GetSinkPolicyCommand 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("oamservice", "GetSinkPolicy", {})
19
+ .n("OAMClient", "GetSinkPolicyCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetSinkPolicyCommand)
22
+ .de(de_GetSinkPolicyCommand)
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_ListAttachedLinksCommand, se_ListAttachedLinksCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListAttachedLinksCommand 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, ListAttachedLinksCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "OAMClient";
26
- const commandName = "ListAttachedLinksCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "oamservice",
35
- operation: "ListAttachedLinks",
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_ListAttachedLinksCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListAttachedLinksCommand(output, context);
46
- }
7
+ export class ListAttachedLinksCommand 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("oamservice", "ListAttachedLinks", {})
19
+ .n("OAMClient", "ListAttachedLinksCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListAttachedLinksCommand)
22
+ .de(de_ListAttachedLinksCommand)
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_ListLinksCommand, se_ListLinksCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListLinksCommand 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, ListLinksCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "OAMClient";
26
- const commandName = "ListLinksCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "oamservice",
35
- operation: "ListLinks",
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_ListLinksCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListLinksCommand(output, context);
46
- }
7
+ export class ListLinksCommand 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("oamservice", "ListLinks", {})
19
+ .n("OAMClient", "ListLinksCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListLinksCommand)
22
+ .de(de_ListLinksCommand)
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_ListSinksCommand, se_ListSinksCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListSinksCommand 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, ListSinksCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "OAMClient";
26
- const commandName = "ListSinksCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "oamservice",
35
- operation: "ListSinks",
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_ListSinksCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListSinksCommand(output, context);
46
- }
7
+ export class ListSinksCommand 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("oamservice", "ListSinks", {})
19
+ .n("OAMClient", "ListSinksCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListSinksCommand)
22
+ .de(de_ListSinksCommand)
23
+ .build() {
47
24
  }