@aws-sdk/client-oam 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 (65) 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-es/commands/CreateLinkCommand.js +18 -41
  18. package/dist-es/commands/CreateSinkCommand.js +18 -41
  19. package/dist-es/commands/DeleteLinkCommand.js +18 -41
  20. package/dist-es/commands/DeleteSinkCommand.js +18 -41
  21. package/dist-es/commands/GetLinkCommand.js +18 -41
  22. package/dist-es/commands/GetSinkCommand.js +18 -41
  23. package/dist-es/commands/GetSinkPolicyCommand.js +18 -41
  24. package/dist-es/commands/ListAttachedLinksCommand.js +18 -41
  25. package/dist-es/commands/ListLinksCommand.js +18 -41
  26. package/dist-es/commands/ListSinksCommand.js +18 -41
  27. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  28. package/dist-es/commands/PutSinkPolicyCommand.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/commands/UpdateLinkCommand.js +18 -41
  32. package/dist-es/endpoint/EndpointParameters.js +6 -0
  33. package/dist-types/commands/CreateLinkCommand.d.ts +6 -21
  34. package/dist-types/commands/CreateSinkCommand.d.ts +6 -21
  35. package/dist-types/commands/DeleteLinkCommand.d.ts +6 -21
  36. package/dist-types/commands/DeleteSinkCommand.d.ts +6 -21
  37. package/dist-types/commands/GetLinkCommand.d.ts +6 -21
  38. package/dist-types/commands/GetSinkCommand.d.ts +6 -21
  39. package/dist-types/commands/GetSinkPolicyCommand.d.ts +6 -21
  40. package/dist-types/commands/ListAttachedLinksCommand.d.ts +6 -21
  41. package/dist-types/commands/ListLinksCommand.d.ts +6 -21
  42. package/dist-types/commands/ListSinksCommand.d.ts +6 -21
  43. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  44. package/dist-types/commands/PutSinkPolicyCommand.d.ts +6 -21
  45. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  46. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  47. package/dist-types/commands/UpdateLinkCommand.d.ts +6 -21
  48. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  49. package/dist-types/ts3.4/commands/CreateLinkCommand.d.ts +14 -23
  50. package/dist-types/ts3.4/commands/CreateSinkCommand.d.ts +14 -23
  51. package/dist-types/ts3.4/commands/DeleteLinkCommand.d.ts +14 -23
  52. package/dist-types/ts3.4/commands/DeleteSinkCommand.d.ts +14 -23
  53. package/dist-types/ts3.4/commands/GetLinkCommand.d.ts +12 -23
  54. package/dist-types/ts3.4/commands/GetSinkCommand.d.ts +12 -23
  55. package/dist-types/ts3.4/commands/GetSinkPolicyCommand.d.ts +14 -23
  56. package/dist-types/ts3.4/commands/ListAttachedLinksCommand.d.ts +14 -23
  57. package/dist-types/ts3.4/commands/ListLinksCommand.d.ts +14 -23
  58. package/dist-types/ts3.4/commands/ListSinksCommand.d.ts +14 -23
  59. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  60. package/dist-types/ts3.4/commands/PutSinkPolicyCommand.d.ts +14 -23
  61. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  62. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  63. package/dist-types/ts3.4/commands/UpdateLinkCommand.d.ts +14 -23
  64. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  65. 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_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
  }
@@ -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 = "OAMClient";
26
- const commandName = "ListTagsForResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "oamservice",
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("oamservice", "ListTagsForResource", {})
19
+ .n("OAMClient", "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_PutSinkPolicyCommand, se_PutSinkPolicyCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class PutSinkPolicyCommand 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, PutSinkPolicyCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "OAMClient";
26
- const commandName = "PutSinkPolicyCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "oamservice",
35
- operation: "PutSinkPolicy",
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_PutSinkPolicyCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_PutSinkPolicyCommand(output, context);
46
- }
7
+ export class PutSinkPolicyCommand 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", "PutSinkPolicy", {})
19
+ .n("OAMClient", "PutSinkPolicyCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_PutSinkPolicyCommand)
22
+ .de(de_PutSinkPolicyCommand)
23
+ .build() {
47
24
  }