@aws-sdk/client-codestar-notifications 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/CreateNotificationRuleCommand.js +18 -41
  2. package/dist-cjs/commands/DeleteNotificationRuleCommand.js +18 -41
  3. package/dist-cjs/commands/DeleteTargetCommand.js +18 -41
  4. package/dist-cjs/commands/DescribeNotificationRuleCommand.js +18 -41
  5. package/dist-cjs/commands/ListEventTypesCommand.js +18 -41
  6. package/dist-cjs/commands/ListNotificationRulesCommand.js +18 -41
  7. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  8. package/dist-cjs/commands/ListTargetsCommand.js +18 -41
  9. package/dist-cjs/commands/SubscribeCommand.js +18 -41
  10. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  11. package/dist-cjs/commands/UnsubscribeCommand.js +18 -41
  12. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  13. package/dist-cjs/commands/UpdateNotificationRuleCommand.js +18 -41
  14. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  15. package/dist-cjs/pagination/ListEventTypesPaginator.js +2 -24
  16. package/dist-cjs/pagination/ListNotificationRulesPaginator.js +2 -24
  17. package/dist-cjs/pagination/ListTargetsPaginator.js +2 -24
  18. package/dist-es/commands/CreateNotificationRuleCommand.js +18 -41
  19. package/dist-es/commands/DeleteNotificationRuleCommand.js +18 -41
  20. package/dist-es/commands/DeleteTargetCommand.js +18 -41
  21. package/dist-es/commands/DescribeNotificationRuleCommand.js +18 -41
  22. package/dist-es/commands/ListEventTypesCommand.js +18 -41
  23. package/dist-es/commands/ListNotificationRulesCommand.js +18 -41
  24. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  25. package/dist-es/commands/ListTargetsCommand.js +18 -41
  26. package/dist-es/commands/SubscribeCommand.js +18 -41
  27. package/dist-es/commands/TagResourceCommand.js +18 -41
  28. package/dist-es/commands/UnsubscribeCommand.js +18 -41
  29. package/dist-es/commands/UntagResourceCommand.js +18 -41
  30. package/dist-es/commands/UpdateNotificationRuleCommand.js +18 -41
  31. package/dist-es/endpoint/EndpointParameters.js +6 -0
  32. package/dist-es/pagination/ListEventTypesPaginator.js +2 -23
  33. package/dist-es/pagination/ListNotificationRulesPaginator.js +2 -23
  34. package/dist-es/pagination/ListTargetsPaginator.js +2 -23
  35. package/dist-types/commands/CreateNotificationRuleCommand.d.ts +6 -21
  36. package/dist-types/commands/DeleteNotificationRuleCommand.d.ts +6 -21
  37. package/dist-types/commands/DeleteTargetCommand.d.ts +6 -21
  38. package/dist-types/commands/DescribeNotificationRuleCommand.d.ts +6 -21
  39. package/dist-types/commands/ListEventTypesCommand.d.ts +6 -21
  40. package/dist-types/commands/ListNotificationRulesCommand.d.ts +6 -21
  41. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  42. package/dist-types/commands/ListTargetsCommand.d.ts +6 -21
  43. package/dist-types/commands/SubscribeCommand.d.ts +6 -21
  44. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  45. package/dist-types/commands/UnsubscribeCommand.d.ts +6 -21
  46. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  47. package/dist-types/commands/UpdateNotificationRuleCommand.d.ts +6 -21
  48. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  49. package/dist-types/pagination/ListEventTypesPaginator.d.ts +1 -1
  50. package/dist-types/pagination/ListNotificationRulesPaginator.d.ts +1 -1
  51. package/dist-types/pagination/ListTargetsPaginator.d.ts +1 -1
  52. package/dist-types/ts3.4/commands/CreateNotificationRuleCommand.d.ts +12 -24
  53. package/dist-types/ts3.4/commands/DeleteNotificationRuleCommand.d.ts +12 -24
  54. package/dist-types/ts3.4/commands/DeleteTargetCommand.d.ts +14 -23
  55. package/dist-types/ts3.4/commands/DescribeNotificationRuleCommand.d.ts +12 -24
  56. package/dist-types/ts3.4/commands/ListEventTypesCommand.d.ts +14 -23
  57. package/dist-types/ts3.4/commands/ListNotificationRulesCommand.d.ts +12 -24
  58. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  59. package/dist-types/ts3.4/commands/ListTargetsCommand.d.ts +14 -23
  60. package/dist-types/ts3.4/commands/SubscribeCommand.d.ts +14 -23
  61. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  62. package/dist-types/ts3.4/commands/UnsubscribeCommand.d.ts +14 -23
  63. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  64. package/dist-types/ts3.4/commands/UpdateNotificationRuleCommand.d.ts +12 -24
  65. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  66. package/dist-types/ts3.4/pagination/ListEventTypesPaginator.d.ts +3 -3
  67. package/dist-types/ts3.4/pagination/ListNotificationRulesPaginator.d.ts +3 -3
  68. package/dist-types/ts3.4/pagination/ListTargetsPaginator.d.ts +3 -3
  69. package/package.json +11 -11
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { DescribeNotificationRuleResultFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_DescribeNotificationRuleCommand, se_DescribeNotificationRuleCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class DescribeNotificationRuleCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, DescribeNotificationRuleCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "CodestarNotificationsClient";
27
- const commandName = "DescribeNotificationRuleCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: (_) => _,
33
- outputFilterSensitiveLog: DescribeNotificationRuleResultFilterSensitiveLog,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "CodeStarNotifications_20191015",
36
- operation: "DescribeNotificationRule",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_DescribeNotificationRuleCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_DescribeNotificationRuleCommand(output, context);
47
- }
8
+ export class DescribeNotificationRuleCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("CodeStarNotifications_20191015", "DescribeNotificationRule", {})
20
+ .n("CodestarNotificationsClient", "DescribeNotificationRuleCommand")
21
+ .f(void 0, DescribeNotificationRuleResultFilterSensitiveLog)
22
+ .ser(se_DescribeNotificationRuleCommand)
23
+ .de(de_DescribeNotificationRuleCommand)
24
+ .build() {
48
25
  }
@@ -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_ListEventTypesCommand, se_ListEventTypesCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListEventTypesCommand 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, ListEventTypesCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CodestarNotificationsClient";
26
- const commandName = "ListEventTypesCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "CodeStarNotifications_20191015",
35
- operation: "ListEventTypes",
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_ListEventTypesCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListEventTypesCommand(output, context);
46
- }
7
+ export class ListEventTypesCommand 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("CodeStarNotifications_20191015", "ListEventTypes", {})
19
+ .n("CodestarNotificationsClient", "ListEventTypesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListEventTypesCommand)
22
+ .de(de_ListEventTypesCommand)
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_ListNotificationRulesCommand, se_ListNotificationRulesCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListNotificationRulesCommand 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, ListNotificationRulesCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CodestarNotificationsClient";
26
- const commandName = "ListNotificationRulesCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "CodeStarNotifications_20191015",
35
- operation: "ListNotificationRules",
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_ListNotificationRulesCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListNotificationRulesCommand(output, context);
46
- }
7
+ export class ListNotificationRulesCommand 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("CodeStarNotifications_20191015", "ListNotificationRules", {})
19
+ .n("CodestarNotificationsClient", "ListNotificationRulesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListNotificationRulesCommand)
22
+ .de(de_ListNotificationRulesCommand)
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 = "CodestarNotificationsClient";
26
- const commandName = "ListTagsForResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "CodeStarNotifications_20191015",
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("CodeStarNotifications_20191015", "ListTagsForResource", {})
19
+ .n("CodestarNotificationsClient", "ListTagsForResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListTagsForResourceCommand)
22
+ .de(de_ListTagsForResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { ListTargetsResultFilterSensitiveLog } from "../models/models_0";
6
6
  import { de_ListTargetsCommand, se_ListTargetsCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class ListTargetsCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, ListTargetsCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "CodestarNotificationsClient";
27
- const commandName = "ListTargetsCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: (_) => _,
33
- outputFilterSensitiveLog: ListTargetsResultFilterSensitiveLog,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "CodeStarNotifications_20191015",
36
- operation: "ListTargets",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_ListTargetsCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_ListTargetsCommand(output, context);
47
- }
8
+ export class ListTargetsCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("CodeStarNotifications_20191015", "ListTargets", {})
20
+ .n("CodestarNotificationsClient", "ListTargetsCommand")
21
+ .f(void 0, ListTargetsResultFilterSensitiveLog)
22
+ .ser(se_ListTargetsCommand)
23
+ .de(de_ListTargetsCommand)
24
+ .build() {
48
25
  }
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { SubscribeRequestFilterSensitiveLog } from "../models/models_0";
6
6
  import { de_SubscribeCommand, se_SubscribeCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class SubscribeCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, SubscribeCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "CodestarNotificationsClient";
27
- const commandName = "SubscribeCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: SubscribeRequestFilterSensitiveLog,
33
- outputFilterSensitiveLog: (_) => _,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "CodeStarNotifications_20191015",
36
- operation: "Subscribe",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_SubscribeCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_SubscribeCommand(output, context);
47
- }
8
+ export class SubscribeCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("CodeStarNotifications_20191015", "Subscribe", {})
20
+ .n("CodestarNotificationsClient", "SubscribeCommand")
21
+ .f(SubscribeRequestFilterSensitiveLog, void 0)
22
+ .ser(se_SubscribeCommand)
23
+ .de(de_SubscribeCommand)
24
+ .build() {
48
25
  }
@@ -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 = "CodestarNotificationsClient";
26
- const commandName = "TagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "CodeStarNotifications_20191015",
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("CodeStarNotifications_20191015", "TagResource", {})
19
+ .n("CodestarNotificationsClient", "TagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_TagResourceCommand)
22
+ .de(de_TagResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { UnsubscribeRequestFilterSensitiveLog } from "../models/models_0";
6
6
  import { de_UnsubscribeCommand, se_UnsubscribeCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class UnsubscribeCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, UnsubscribeCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "CodestarNotificationsClient";
27
- const commandName = "UnsubscribeCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: UnsubscribeRequestFilterSensitiveLog,
33
- outputFilterSensitiveLog: (_) => _,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "CodeStarNotifications_20191015",
36
- operation: "Unsubscribe",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_UnsubscribeCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_UnsubscribeCommand(output, context);
47
- }
8
+ export class UnsubscribeCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("CodeStarNotifications_20191015", "Unsubscribe", {})
20
+ .n("CodestarNotificationsClient", "UnsubscribeCommand")
21
+ .f(UnsubscribeRequestFilterSensitiveLog, void 0)
22
+ .ser(se_UnsubscribeCommand)
23
+ .de(de_UnsubscribeCommand)
24
+ .build() {
48
25
  }
@@ -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 = "CodestarNotificationsClient";
26
- const commandName = "UntagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "CodeStarNotifications_20191015",
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("CodeStarNotifications_20191015", "UntagResource", {})
19
+ .n("CodestarNotificationsClient", "UntagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UntagResourceCommand)
22
+ .de(de_UntagResourceCommand)
23
+ .build() {
47
24
  }