@aws-sdk/client-codestar-notifications 3.34.0 → 3.37.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 (218) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/CodestarNotifications.js +0 -87
  3. package/dist-cjs/CodestarNotificationsClient.js +35 -0
  4. package/{dist/cjs → dist-cjs}/commands/CreateNotificationRuleCommand.js +2 -29
  5. package/{dist/cjs → dist-cjs}/commands/DeleteNotificationRuleCommand.js +2 -27
  6. package/{dist/cjs → dist-cjs}/commands/DeleteTargetCommand.js +2 -27
  7. package/{dist/cjs → dist-cjs}/commands/DescribeNotificationRuleCommand.js +2 -27
  8. package/{dist/cjs → dist-cjs}/commands/ListEventTypesCommand.js +2 -27
  9. package/{dist/cjs → dist-cjs}/commands/ListNotificationRulesCommand.js +2 -27
  10. package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -27
  11. package/{dist/cjs → dist-cjs}/commands/ListTargetsCommand.js +2 -27
  12. package/{dist/cjs → dist-cjs}/commands/SubscribeCommand.js +2 -29
  13. package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -27
  14. package/{dist/cjs → dist-cjs}/commands/UnsubscribeCommand.js +2 -29
  15. package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -28
  16. package/{dist/cjs → dist-cjs}/commands/UpdateNotificationRuleCommand.js +2 -32
  17. package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
  18. package/{dist/cjs → dist-cjs}/index.js +0 -1
  19. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  20. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -124
  21. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  22. package/{dist/cjs → dist-cjs}/pagination/ListEventTypesPaginator.js +0 -11
  23. package/{dist/cjs → dist-cjs}/pagination/ListNotificationRulesPaginator.js +0 -11
  24. package/{dist/cjs → dist-cjs}/pagination/ListTargetsPaginator.js +0 -11
  25. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +13 -19
  26. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  27. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  28. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  29. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  30. package/{dist/es → dist-es}/CodestarNotifications.js +0 -1
  31. package/{dist/es → dist-es}/CodestarNotificationsClient.js +1 -2
  32. package/{dist/es → dist-es}/commands/CreateNotificationRuleCommand.js +2 -3
  33. package/{dist/es → dist-es}/commands/DeleteNotificationRuleCommand.js +2 -3
  34. package/{dist/es → dist-es}/commands/DeleteTargetCommand.js +2 -3
  35. package/{dist/es → dist-es}/commands/DescribeNotificationRuleCommand.js +2 -3
  36. package/{dist/es → dist-es}/commands/ListEventTypesCommand.js +2 -3
  37. package/{dist/es → dist-es}/commands/ListNotificationRulesCommand.js +2 -3
  38. package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +2 -3
  39. package/{dist/es → dist-es}/commands/ListTargetsCommand.js +2 -3
  40. package/{dist/es → dist-es}/commands/SubscribeCommand.js +2 -3
  41. package/{dist/es → dist-es}/commands/TagResourceCommand.js +2 -3
  42. package/{dist/es → dist-es}/commands/UnsubscribeCommand.js +2 -3
  43. package/{dist/es → dist-es}/commands/UntagResourceCommand.js +2 -3
  44. package/{dist/es → dist-es}/commands/UpdateNotificationRuleCommand.js +2 -3
  45. package/{dist/es → dist-es}/endpoints.js +1 -2
  46. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  47. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  48. package/{dist/es → dist-es}/models/models_0.js +0 -1
  49. package/dist-es/pagination/Interfaces.js +1 -0
  50. package/{dist/es → dist-es}/pagination/ListEventTypesPaginator.js +0 -1
  51. package/{dist/es → dist-es}/pagination/ListNotificationRulesPaginator.js +0 -1
  52. package/{dist/es → dist-es}/pagination/ListTargetsPaginator.js +0 -1
  53. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +0 -1
  54. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
  55. package/{dist/es → dist-es}/runtimeConfig.js +1 -2
  56. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
  57. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
  58. package/{dist/types → dist-types}/CodestarNotifications.d.ts +1 -1
  59. package/{dist/types → dist-types}/CodestarNotificationsClient.d.ts +8 -8
  60. package/{dist/types → dist-types}/commands/CreateNotificationRuleCommand.d.ts +2 -2
  61. package/{dist/types → dist-types}/commands/DeleteNotificationRuleCommand.d.ts +2 -2
  62. package/{dist/types → dist-types}/commands/DeleteTargetCommand.d.ts +2 -2
  63. package/{dist/types → dist-types}/commands/DescribeNotificationRuleCommand.d.ts +2 -2
  64. package/{dist/types → dist-types}/commands/ListEventTypesCommand.d.ts +2 -2
  65. package/{dist/types → dist-types}/commands/ListNotificationRulesCommand.d.ts +2 -2
  66. package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
  67. package/{dist/types → dist-types}/commands/ListTargetsCommand.d.ts +2 -2
  68. package/{dist/types → dist-types}/commands/SubscribeCommand.d.ts +2 -2
  69. package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
  70. package/{dist/types → dist-types}/commands/UnsubscribeCommand.d.ts +2 -2
  71. package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
  72. package/{dist/types → dist-types}/commands/UpdateNotificationRuleCommand.d.ts +2 -2
  73. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  74. package/{index.ts → dist-types/index.d.ts} +0 -0
  75. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  76. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  77. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  78. package/{dist/types → dist-types}/pagination/ListEventTypesPaginator.d.ts +1 -1
  79. package/{dist/types → dist-types}/pagination/ListNotificationRulesPaginator.d.ts +1 -1
  80. package/{dist/types → dist-types}/pagination/ListTargetsPaginator.d.ts +1 -1
  81. package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
  82. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  83. package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
  84. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  85. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  86. package/{dist/types → dist-types}/ts3.4/CodestarNotifications.d.ts +15 -138
  87. package/dist-types/ts3.4/CodestarNotificationsClient.d.ts +80 -0
  88. package/dist-types/ts3.4/commands/CreateNotificationRuleCommand.d.ts +17 -0
  89. package/{dist/types → dist-types}/ts3.4/commands/DeleteNotificationRuleCommand.d.ts +4 -22
  90. package/dist-types/ts3.4/commands/DeleteTargetCommand.d.ts +17 -0
  91. package/{dist/types → dist-types}/ts3.4/commands/DescribeNotificationRuleCommand.d.ts +4 -22
  92. package/dist-types/ts3.4/commands/ListEventTypesCommand.d.ts +17 -0
  93. package/{dist/types → dist-types}/ts3.4/commands/ListNotificationRulesCommand.d.ts +4 -22
  94. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
  95. package/dist-types/ts3.4/commands/ListTargetsCommand.d.ts +17 -0
  96. package/dist-types/ts3.4/commands/SubscribeCommand.d.ts +17 -0
  97. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  98. package/dist-types/ts3.4/commands/UnsubscribeCommand.d.ts +17 -0
  99. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  100. package/dist-types/ts3.4/commands/UpdateNotificationRuleCommand.d.ts +17 -0
  101. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  102. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  103. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  104. package/dist-types/ts3.4/models/models_0.d.ts +480 -0
  105. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  106. package/{dist/types → dist-types}/ts3.4/pagination/ListEventTypesPaginator.d.ts +1 -1
  107. package/{dist/types → dist-types}/ts3.4/pagination/ListNotificationRulesPaginator.d.ts +1 -1
  108. package/{dist/types → dist-types}/ts3.4/pagination/ListTargetsPaginator.d.ts +1 -1
  109. package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  110. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  111. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
  112. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  113. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  114. package/package.json +45 -42
  115. package/CodestarNotifications.ts +0 -540
  116. package/CodestarNotificationsClient.ts +0 -375
  117. package/commands/CreateNotificationRuleCommand.ts +0 -100
  118. package/commands/DeleteNotificationRuleCommand.ts +0 -98
  119. package/commands/DeleteTargetCommand.ts +0 -98
  120. package/commands/DescribeNotificationRuleCommand.ts +0 -98
  121. package/commands/ListEventTypesCommand.ts +0 -98
  122. package/commands/ListNotificationRulesCommand.ts +0 -98
  123. package/commands/ListTagsForResourceCommand.ts +0 -98
  124. package/commands/ListTargetsCommand.ts +0 -98
  125. package/commands/SubscribeCommand.ts +0 -100
  126. package/commands/TagResourceCommand.ts +0 -98
  127. package/commands/UnsubscribeCommand.ts +0 -100
  128. package/commands/UntagResourceCommand.ts +0 -99
  129. package/commands/UpdateNotificationRuleCommand.ts +0 -103
  130. package/dist/cjs/CodestarNotifications.js.map +0 -1
  131. package/dist/cjs/CodestarNotificationsClient.js +0 -127
  132. package/dist/cjs/CodestarNotificationsClient.js.map +0 -1
  133. package/dist/cjs/commands/CreateNotificationRuleCommand.js.map +0 -1
  134. package/dist/cjs/commands/DeleteNotificationRuleCommand.js.map +0 -1
  135. package/dist/cjs/commands/DeleteTargetCommand.js.map +0 -1
  136. package/dist/cjs/commands/DescribeNotificationRuleCommand.js.map +0 -1
  137. package/dist/cjs/commands/ListEventTypesCommand.js.map +0 -1
  138. package/dist/cjs/commands/ListNotificationRulesCommand.js.map +0 -1
  139. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  140. package/dist/cjs/commands/ListTargetsCommand.js.map +0 -1
  141. package/dist/cjs/commands/SubscribeCommand.js.map +0 -1
  142. package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
  143. package/dist/cjs/commands/UnsubscribeCommand.js.map +0 -1
  144. package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
  145. package/dist/cjs/commands/UpdateNotificationRuleCommand.js.map +0 -1
  146. package/dist/cjs/endpoints.js.map +0 -1
  147. package/dist/cjs/index.js.map +0 -1
  148. package/dist/cjs/models/index.js.map +0 -1
  149. package/dist/cjs/models/models_0.js.map +0 -1
  150. package/dist/cjs/package.json +0 -93
  151. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  152. package/dist/cjs/pagination/ListEventTypesPaginator.js.map +0 -1
  153. package/dist/cjs/pagination/ListNotificationRulesPaginator.js.map +0 -1
  154. package/dist/cjs/pagination/ListTargetsPaginator.js.map +0 -1
  155. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  156. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  157. package/dist/cjs/runtimeConfig.js.map +0 -1
  158. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  159. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  160. package/dist/es/CodestarNotifications.js.map +0 -1
  161. package/dist/es/CodestarNotificationsClient.js.map +0 -1
  162. package/dist/es/commands/CreateNotificationRuleCommand.js.map +0 -1
  163. package/dist/es/commands/DeleteNotificationRuleCommand.js.map +0 -1
  164. package/dist/es/commands/DeleteTargetCommand.js.map +0 -1
  165. package/dist/es/commands/DescribeNotificationRuleCommand.js.map +0 -1
  166. package/dist/es/commands/ListEventTypesCommand.js.map +0 -1
  167. package/dist/es/commands/ListNotificationRulesCommand.js.map +0 -1
  168. package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
  169. package/dist/es/commands/ListTargetsCommand.js.map +0 -1
  170. package/dist/es/commands/SubscribeCommand.js.map +0 -1
  171. package/dist/es/commands/TagResourceCommand.js.map +0 -1
  172. package/dist/es/commands/UnsubscribeCommand.js.map +0 -1
  173. package/dist/es/commands/UntagResourceCommand.js.map +0 -1
  174. package/dist/es/commands/UpdateNotificationRuleCommand.js.map +0 -1
  175. package/dist/es/endpoints.js.map +0 -1
  176. package/dist/es/index.js +0 -21
  177. package/dist/es/index.js.map +0 -1
  178. package/dist/es/models/index.js +0 -2
  179. package/dist/es/models/index.js.map +0 -1
  180. package/dist/es/models/models_0.js.map +0 -1
  181. package/dist/es/package.json +0 -93
  182. package/dist/es/pagination/Interfaces.js +0 -2
  183. package/dist/es/pagination/Interfaces.js.map +0 -1
  184. package/dist/es/pagination/ListEventTypesPaginator.js.map +0 -1
  185. package/dist/es/pagination/ListNotificationRulesPaginator.js.map +0 -1
  186. package/dist/es/pagination/ListTargetsPaginator.js.map +0 -1
  187. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  188. package/dist/es/runtimeConfig.browser.js.map +0 -1
  189. package/dist/es/runtimeConfig.js.map +0 -1
  190. package/dist/es/runtimeConfig.native.js.map +0 -1
  191. package/dist/es/runtimeConfig.shared.js.map +0 -1
  192. package/dist/types/ts3.4/CodestarNotificationsClient.d.ts +0 -228
  193. package/dist/types/ts3.4/commands/CreateNotificationRuleCommand.d.ts +0 -37
  194. package/dist/types/ts3.4/commands/DeleteTargetCommand.d.ts +0 -35
  195. package/dist/types/ts3.4/commands/ListEventTypesCommand.d.ts +0 -35
  196. package/dist/types/ts3.4/commands/ListTagsForResourceCommand.d.ts +0 -35
  197. package/dist/types/ts3.4/commands/ListTargetsCommand.d.ts +0 -35
  198. package/dist/types/ts3.4/commands/SubscribeCommand.d.ts +0 -37
  199. package/dist/types/ts3.4/commands/TagResourceCommand.d.ts +0 -35
  200. package/dist/types/ts3.4/commands/UnsubscribeCommand.d.ts +0 -37
  201. package/dist/types/ts3.4/commands/UntagResourceCommand.d.ts +0 -36
  202. package/dist/types/ts3.4/commands/UpdateNotificationRuleCommand.d.ts +0 -40
  203. package/dist/types/ts3.4/models/models_0.d.ts +0 -804
  204. package/endpoints.ts +0 -57
  205. package/jest.config.js +0 -4
  206. package/models/models_0.ts +0 -1021
  207. package/pagination/Interfaces.ts +0 -7
  208. package/pagination/ListEventTypesPaginator.ts +0 -58
  209. package/pagination/ListNotificationRulesPaginator.ts +0 -58
  210. package/pagination/ListTargetsPaginator.ts +0 -54
  211. package/protocols/Aws_restJson1.ts +0 -1703
  212. package/runtimeConfig.browser.ts +0 -40
  213. package/runtimeConfig.native.ts +0 -16
  214. package/runtimeConfig.shared.ts +0 -16
  215. package/runtimeConfig.ts +0 -45
  216. package/tsconfig.es.json +0 -10
  217. package/tsconfig.json +0 -31
  218. package/tsconfig.types.json +0 -8
@@ -1,98 +0,0 @@
1
- import {
2
- CodestarNotificationsClientResolvedConfig,
3
- ServiceInputTypes,
4
- ServiceOutputTypes,
5
- } from "../CodestarNotificationsClient";
6
- import { DescribeNotificationRuleRequest, DescribeNotificationRuleResult } from "../models/models_0";
7
- import {
8
- deserializeAws_restJson1DescribeNotificationRuleCommand,
9
- serializeAws_restJson1DescribeNotificationRuleCommand,
10
- } from "../protocols/Aws_restJson1";
11
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
12
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
13
- import { Command as $Command } from "@aws-sdk/smithy-client";
14
- import {
15
- FinalizeHandlerArguments,
16
- Handler,
17
- HandlerExecutionContext,
18
- MiddlewareStack,
19
- HttpHandlerOptions as __HttpHandlerOptions,
20
- MetadataBearer as __MetadataBearer,
21
- SerdeContext as __SerdeContext,
22
- } from "@aws-sdk/types";
23
-
24
- export interface DescribeNotificationRuleCommandInput extends DescribeNotificationRuleRequest {}
25
- export interface DescribeNotificationRuleCommandOutput extends DescribeNotificationRuleResult, __MetadataBearer {}
26
-
27
- /**
28
- * <p>Returns information about a specified notification rule.</p>
29
- * @example
30
- * Use a bare-bones client and the command you need to make an API call.
31
- * ```javascript
32
- * import { CodestarNotificationsClient, DescribeNotificationRuleCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import
33
- * // const { CodestarNotificationsClient, DescribeNotificationRuleCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import
34
- * const client = new CodestarNotificationsClient(config);
35
- * const command = new DescribeNotificationRuleCommand(input);
36
- * const response = await client.send(command);
37
- * ```
38
- *
39
- * @see {@link DescribeNotificationRuleCommandInput} for command's `input` shape.
40
- * @see {@link DescribeNotificationRuleCommandOutput} for command's `response` shape.
41
- * @see {@link CodestarNotificationsClientResolvedConfig | config} for command's `input` shape.
42
- *
43
- */
44
- export class DescribeNotificationRuleCommand extends $Command<
45
- DescribeNotificationRuleCommandInput,
46
- DescribeNotificationRuleCommandOutput,
47
- CodestarNotificationsClientResolvedConfig
48
- > {
49
- // Start section: command_properties
50
- // End section: command_properties
51
-
52
- constructor(readonly input: DescribeNotificationRuleCommandInput) {
53
- // Start section: command_constructor
54
- super();
55
- // End section: command_constructor
56
- }
57
-
58
- /**
59
- * @internal
60
- */
61
- resolveMiddleware(
62
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
63
- configuration: CodestarNotificationsClientResolvedConfig,
64
- options?: __HttpHandlerOptions
65
- ): Handler<DescribeNotificationRuleCommandInput, DescribeNotificationRuleCommandOutput> {
66
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
67
-
68
- const stack = clientStack.concat(this.middlewareStack);
69
-
70
- const { logger } = configuration;
71
- const clientName = "CodestarNotificationsClient";
72
- const commandName = "DescribeNotificationRuleCommand";
73
- const handlerExecutionContext: HandlerExecutionContext = {
74
- logger,
75
- clientName,
76
- commandName,
77
- inputFilterSensitiveLog: DescribeNotificationRuleRequest.filterSensitiveLog,
78
- outputFilterSensitiveLog: DescribeNotificationRuleResult.filterSensitiveLog,
79
- };
80
- const { requestHandler } = configuration;
81
- return stack.resolve(
82
- (request: FinalizeHandlerArguments<any>) =>
83
- requestHandler.handle(request.request as __HttpRequest, options || {}),
84
- handlerExecutionContext
85
- );
86
- }
87
-
88
- private serialize(input: DescribeNotificationRuleCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
89
- return serializeAws_restJson1DescribeNotificationRuleCommand(input, context);
90
- }
91
-
92
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeNotificationRuleCommandOutput> {
93
- return deserializeAws_restJson1DescribeNotificationRuleCommand(output, context);
94
- }
95
-
96
- // Start section: command_body_extra
97
- // End section: command_body_extra
98
- }
@@ -1,98 +0,0 @@
1
- import {
2
- CodestarNotificationsClientResolvedConfig,
3
- ServiceInputTypes,
4
- ServiceOutputTypes,
5
- } from "../CodestarNotificationsClient";
6
- import { ListEventTypesRequest, ListEventTypesResult } from "../models/models_0";
7
- import {
8
- deserializeAws_restJson1ListEventTypesCommand,
9
- serializeAws_restJson1ListEventTypesCommand,
10
- } from "../protocols/Aws_restJson1";
11
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
12
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
13
- import { Command as $Command } from "@aws-sdk/smithy-client";
14
- import {
15
- FinalizeHandlerArguments,
16
- Handler,
17
- HandlerExecutionContext,
18
- MiddlewareStack,
19
- HttpHandlerOptions as __HttpHandlerOptions,
20
- MetadataBearer as __MetadataBearer,
21
- SerdeContext as __SerdeContext,
22
- } from "@aws-sdk/types";
23
-
24
- export interface ListEventTypesCommandInput extends ListEventTypesRequest {}
25
- export interface ListEventTypesCommandOutput extends ListEventTypesResult, __MetadataBearer {}
26
-
27
- /**
28
- * <p>Returns information about the event types available for configuring notifications.</p>
29
- * @example
30
- * Use a bare-bones client and the command you need to make an API call.
31
- * ```javascript
32
- * import { CodestarNotificationsClient, ListEventTypesCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import
33
- * // const { CodestarNotificationsClient, ListEventTypesCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import
34
- * const client = new CodestarNotificationsClient(config);
35
- * const command = new ListEventTypesCommand(input);
36
- * const response = await client.send(command);
37
- * ```
38
- *
39
- * @see {@link ListEventTypesCommandInput} for command's `input` shape.
40
- * @see {@link ListEventTypesCommandOutput} for command's `response` shape.
41
- * @see {@link CodestarNotificationsClientResolvedConfig | config} for command's `input` shape.
42
- *
43
- */
44
- export class ListEventTypesCommand extends $Command<
45
- ListEventTypesCommandInput,
46
- ListEventTypesCommandOutput,
47
- CodestarNotificationsClientResolvedConfig
48
- > {
49
- // Start section: command_properties
50
- // End section: command_properties
51
-
52
- constructor(readonly input: ListEventTypesCommandInput) {
53
- // Start section: command_constructor
54
- super();
55
- // End section: command_constructor
56
- }
57
-
58
- /**
59
- * @internal
60
- */
61
- resolveMiddleware(
62
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
63
- configuration: CodestarNotificationsClientResolvedConfig,
64
- options?: __HttpHandlerOptions
65
- ): Handler<ListEventTypesCommandInput, ListEventTypesCommandOutput> {
66
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
67
-
68
- const stack = clientStack.concat(this.middlewareStack);
69
-
70
- const { logger } = configuration;
71
- const clientName = "CodestarNotificationsClient";
72
- const commandName = "ListEventTypesCommand";
73
- const handlerExecutionContext: HandlerExecutionContext = {
74
- logger,
75
- clientName,
76
- commandName,
77
- inputFilterSensitiveLog: ListEventTypesRequest.filterSensitiveLog,
78
- outputFilterSensitiveLog: ListEventTypesResult.filterSensitiveLog,
79
- };
80
- const { requestHandler } = configuration;
81
- return stack.resolve(
82
- (request: FinalizeHandlerArguments<any>) =>
83
- requestHandler.handle(request.request as __HttpRequest, options || {}),
84
- handlerExecutionContext
85
- );
86
- }
87
-
88
- private serialize(input: ListEventTypesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
89
- return serializeAws_restJson1ListEventTypesCommand(input, context);
90
- }
91
-
92
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListEventTypesCommandOutput> {
93
- return deserializeAws_restJson1ListEventTypesCommand(output, context);
94
- }
95
-
96
- // Start section: command_body_extra
97
- // End section: command_body_extra
98
- }
@@ -1,98 +0,0 @@
1
- import {
2
- CodestarNotificationsClientResolvedConfig,
3
- ServiceInputTypes,
4
- ServiceOutputTypes,
5
- } from "../CodestarNotificationsClient";
6
- import { ListNotificationRulesRequest, ListNotificationRulesResult } from "../models/models_0";
7
- import {
8
- deserializeAws_restJson1ListNotificationRulesCommand,
9
- serializeAws_restJson1ListNotificationRulesCommand,
10
- } from "../protocols/Aws_restJson1";
11
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
12
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
13
- import { Command as $Command } from "@aws-sdk/smithy-client";
14
- import {
15
- FinalizeHandlerArguments,
16
- Handler,
17
- HandlerExecutionContext,
18
- MiddlewareStack,
19
- HttpHandlerOptions as __HttpHandlerOptions,
20
- MetadataBearer as __MetadataBearer,
21
- SerdeContext as __SerdeContext,
22
- } from "@aws-sdk/types";
23
-
24
- export interface ListNotificationRulesCommandInput extends ListNotificationRulesRequest {}
25
- export interface ListNotificationRulesCommandOutput extends ListNotificationRulesResult, __MetadataBearer {}
26
-
27
- /**
28
- * <p>Returns a list of the notification rules for an AWS account.</p>
29
- * @example
30
- * Use a bare-bones client and the command you need to make an API call.
31
- * ```javascript
32
- * import { CodestarNotificationsClient, ListNotificationRulesCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import
33
- * // const { CodestarNotificationsClient, ListNotificationRulesCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import
34
- * const client = new CodestarNotificationsClient(config);
35
- * const command = new ListNotificationRulesCommand(input);
36
- * const response = await client.send(command);
37
- * ```
38
- *
39
- * @see {@link ListNotificationRulesCommandInput} for command's `input` shape.
40
- * @see {@link ListNotificationRulesCommandOutput} for command's `response` shape.
41
- * @see {@link CodestarNotificationsClientResolvedConfig | config} for command's `input` shape.
42
- *
43
- */
44
- export class ListNotificationRulesCommand extends $Command<
45
- ListNotificationRulesCommandInput,
46
- ListNotificationRulesCommandOutput,
47
- CodestarNotificationsClientResolvedConfig
48
- > {
49
- // Start section: command_properties
50
- // End section: command_properties
51
-
52
- constructor(readonly input: ListNotificationRulesCommandInput) {
53
- // Start section: command_constructor
54
- super();
55
- // End section: command_constructor
56
- }
57
-
58
- /**
59
- * @internal
60
- */
61
- resolveMiddleware(
62
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
63
- configuration: CodestarNotificationsClientResolvedConfig,
64
- options?: __HttpHandlerOptions
65
- ): Handler<ListNotificationRulesCommandInput, ListNotificationRulesCommandOutput> {
66
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
67
-
68
- const stack = clientStack.concat(this.middlewareStack);
69
-
70
- const { logger } = configuration;
71
- const clientName = "CodestarNotificationsClient";
72
- const commandName = "ListNotificationRulesCommand";
73
- const handlerExecutionContext: HandlerExecutionContext = {
74
- logger,
75
- clientName,
76
- commandName,
77
- inputFilterSensitiveLog: ListNotificationRulesRequest.filterSensitiveLog,
78
- outputFilterSensitiveLog: ListNotificationRulesResult.filterSensitiveLog,
79
- };
80
- const { requestHandler } = configuration;
81
- return stack.resolve(
82
- (request: FinalizeHandlerArguments<any>) =>
83
- requestHandler.handle(request.request as __HttpRequest, options || {}),
84
- handlerExecutionContext
85
- );
86
- }
87
-
88
- private serialize(input: ListNotificationRulesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
89
- return serializeAws_restJson1ListNotificationRulesCommand(input, context);
90
- }
91
-
92
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListNotificationRulesCommandOutput> {
93
- return deserializeAws_restJson1ListNotificationRulesCommand(output, context);
94
- }
95
-
96
- // Start section: command_body_extra
97
- // End section: command_body_extra
98
- }
@@ -1,98 +0,0 @@
1
- import {
2
- CodestarNotificationsClientResolvedConfig,
3
- ServiceInputTypes,
4
- ServiceOutputTypes,
5
- } from "../CodestarNotificationsClient";
6
- import { ListTagsForResourceRequest, ListTagsForResourceResult } from "../models/models_0";
7
- import {
8
- deserializeAws_restJson1ListTagsForResourceCommand,
9
- serializeAws_restJson1ListTagsForResourceCommand,
10
- } from "../protocols/Aws_restJson1";
11
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
12
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
13
- import { Command as $Command } from "@aws-sdk/smithy-client";
14
- import {
15
- FinalizeHandlerArguments,
16
- Handler,
17
- HandlerExecutionContext,
18
- MiddlewareStack,
19
- HttpHandlerOptions as __HttpHandlerOptions,
20
- MetadataBearer as __MetadataBearer,
21
- SerdeContext as __SerdeContext,
22
- } from "@aws-sdk/types";
23
-
24
- export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {}
25
- export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResult, __MetadataBearer {}
26
-
27
- /**
28
- * <p>Returns a list of the tags associated with a notification rule.</p>
29
- * @example
30
- * Use a bare-bones client and the command you need to make an API call.
31
- * ```javascript
32
- * import { CodestarNotificationsClient, ListTagsForResourceCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import
33
- * // const { CodestarNotificationsClient, ListTagsForResourceCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import
34
- * const client = new CodestarNotificationsClient(config);
35
- * const command = new ListTagsForResourceCommand(input);
36
- * const response = await client.send(command);
37
- * ```
38
- *
39
- * @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
40
- * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
41
- * @see {@link CodestarNotificationsClientResolvedConfig | config} for command's `input` shape.
42
- *
43
- */
44
- export class ListTagsForResourceCommand extends $Command<
45
- ListTagsForResourceCommandInput,
46
- ListTagsForResourceCommandOutput,
47
- CodestarNotificationsClientResolvedConfig
48
- > {
49
- // Start section: command_properties
50
- // End section: command_properties
51
-
52
- constructor(readonly input: ListTagsForResourceCommandInput) {
53
- // Start section: command_constructor
54
- super();
55
- // End section: command_constructor
56
- }
57
-
58
- /**
59
- * @internal
60
- */
61
- resolveMiddleware(
62
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
63
- configuration: CodestarNotificationsClientResolvedConfig,
64
- options?: __HttpHandlerOptions
65
- ): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput> {
66
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
67
-
68
- const stack = clientStack.concat(this.middlewareStack);
69
-
70
- const { logger } = configuration;
71
- const clientName = "CodestarNotificationsClient";
72
- const commandName = "ListTagsForResourceCommand";
73
- const handlerExecutionContext: HandlerExecutionContext = {
74
- logger,
75
- clientName,
76
- commandName,
77
- inputFilterSensitiveLog: ListTagsForResourceRequest.filterSensitiveLog,
78
- outputFilterSensitiveLog: ListTagsForResourceResult.filterSensitiveLog,
79
- };
80
- const { requestHandler } = configuration;
81
- return stack.resolve(
82
- (request: FinalizeHandlerArguments<any>) =>
83
- requestHandler.handle(request.request as __HttpRequest, options || {}),
84
- handlerExecutionContext
85
- );
86
- }
87
-
88
- private serialize(input: ListTagsForResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
89
- return serializeAws_restJson1ListTagsForResourceCommand(input, context);
90
- }
91
-
92
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListTagsForResourceCommandOutput> {
93
- return deserializeAws_restJson1ListTagsForResourceCommand(output, context);
94
- }
95
-
96
- // Start section: command_body_extra
97
- // End section: command_body_extra
98
- }
@@ -1,98 +0,0 @@
1
- import {
2
- CodestarNotificationsClientResolvedConfig,
3
- ServiceInputTypes,
4
- ServiceOutputTypes,
5
- } from "../CodestarNotificationsClient";
6
- import { ListTargetsRequest, ListTargetsResult } from "../models/models_0";
7
- import {
8
- deserializeAws_restJson1ListTargetsCommand,
9
- serializeAws_restJson1ListTargetsCommand,
10
- } from "../protocols/Aws_restJson1";
11
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
12
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
13
- import { Command as $Command } from "@aws-sdk/smithy-client";
14
- import {
15
- FinalizeHandlerArguments,
16
- Handler,
17
- HandlerExecutionContext,
18
- MiddlewareStack,
19
- HttpHandlerOptions as __HttpHandlerOptions,
20
- MetadataBearer as __MetadataBearer,
21
- SerdeContext as __SerdeContext,
22
- } from "@aws-sdk/types";
23
-
24
- export interface ListTargetsCommandInput extends ListTargetsRequest {}
25
- export interface ListTargetsCommandOutput extends ListTargetsResult, __MetadataBearer {}
26
-
27
- /**
28
- * <p>Returns a list of the notification rule targets for an AWS account.</p>
29
- * @example
30
- * Use a bare-bones client and the command you need to make an API call.
31
- * ```javascript
32
- * import { CodestarNotificationsClient, ListTargetsCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import
33
- * // const { CodestarNotificationsClient, ListTargetsCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import
34
- * const client = new CodestarNotificationsClient(config);
35
- * const command = new ListTargetsCommand(input);
36
- * const response = await client.send(command);
37
- * ```
38
- *
39
- * @see {@link ListTargetsCommandInput} for command's `input` shape.
40
- * @see {@link ListTargetsCommandOutput} for command's `response` shape.
41
- * @see {@link CodestarNotificationsClientResolvedConfig | config} for command's `input` shape.
42
- *
43
- */
44
- export class ListTargetsCommand extends $Command<
45
- ListTargetsCommandInput,
46
- ListTargetsCommandOutput,
47
- CodestarNotificationsClientResolvedConfig
48
- > {
49
- // Start section: command_properties
50
- // End section: command_properties
51
-
52
- constructor(readonly input: ListTargetsCommandInput) {
53
- // Start section: command_constructor
54
- super();
55
- // End section: command_constructor
56
- }
57
-
58
- /**
59
- * @internal
60
- */
61
- resolveMiddleware(
62
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
63
- configuration: CodestarNotificationsClientResolvedConfig,
64
- options?: __HttpHandlerOptions
65
- ): Handler<ListTargetsCommandInput, ListTargetsCommandOutput> {
66
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
67
-
68
- const stack = clientStack.concat(this.middlewareStack);
69
-
70
- const { logger } = configuration;
71
- const clientName = "CodestarNotificationsClient";
72
- const commandName = "ListTargetsCommand";
73
- const handlerExecutionContext: HandlerExecutionContext = {
74
- logger,
75
- clientName,
76
- commandName,
77
- inputFilterSensitiveLog: ListTargetsRequest.filterSensitiveLog,
78
- outputFilterSensitiveLog: ListTargetsResult.filterSensitiveLog,
79
- };
80
- const { requestHandler } = configuration;
81
- return stack.resolve(
82
- (request: FinalizeHandlerArguments<any>) =>
83
- requestHandler.handle(request.request as __HttpRequest, options || {}),
84
- handlerExecutionContext
85
- );
86
- }
87
-
88
- private serialize(input: ListTargetsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
89
- return serializeAws_restJson1ListTargetsCommand(input, context);
90
- }
91
-
92
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListTargetsCommandOutput> {
93
- return deserializeAws_restJson1ListTargetsCommand(output, context);
94
- }
95
-
96
- // Start section: command_body_extra
97
- // End section: command_body_extra
98
- }
@@ -1,100 +0,0 @@
1
- import {
2
- CodestarNotificationsClientResolvedConfig,
3
- ServiceInputTypes,
4
- ServiceOutputTypes,
5
- } from "../CodestarNotificationsClient";
6
- import { SubscribeRequest, SubscribeResult } from "../models/models_0";
7
- import {
8
- deserializeAws_restJson1SubscribeCommand,
9
- serializeAws_restJson1SubscribeCommand,
10
- } from "../protocols/Aws_restJson1";
11
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
12
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
13
- import { Command as $Command } from "@aws-sdk/smithy-client";
14
- import {
15
- FinalizeHandlerArguments,
16
- Handler,
17
- HandlerExecutionContext,
18
- MiddlewareStack,
19
- HttpHandlerOptions as __HttpHandlerOptions,
20
- MetadataBearer as __MetadataBearer,
21
- SerdeContext as __SerdeContext,
22
- } from "@aws-sdk/types";
23
-
24
- export interface SubscribeCommandInput extends SubscribeRequest {}
25
- export interface SubscribeCommandOutput extends SubscribeResult, __MetadataBearer {}
26
-
27
- /**
28
- * <p>Creates an association between a notification rule and an SNS topic so that the
29
- * associated target can receive notifications when the events described in the rule are
30
- * triggered.</p>
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { CodestarNotificationsClient, SubscribeCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import
35
- * // const { CodestarNotificationsClient, SubscribeCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import
36
- * const client = new CodestarNotificationsClient(config);
37
- * const command = new SubscribeCommand(input);
38
- * const response = await client.send(command);
39
- * ```
40
- *
41
- * @see {@link SubscribeCommandInput} for command's `input` shape.
42
- * @see {@link SubscribeCommandOutput} for command's `response` shape.
43
- * @see {@link CodestarNotificationsClientResolvedConfig | config} for command's `input` shape.
44
- *
45
- */
46
- export class SubscribeCommand extends $Command<
47
- SubscribeCommandInput,
48
- SubscribeCommandOutput,
49
- CodestarNotificationsClientResolvedConfig
50
- > {
51
- // Start section: command_properties
52
- // End section: command_properties
53
-
54
- constructor(readonly input: SubscribeCommandInput) {
55
- // Start section: command_constructor
56
- super();
57
- // End section: command_constructor
58
- }
59
-
60
- /**
61
- * @internal
62
- */
63
- resolveMiddleware(
64
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
65
- configuration: CodestarNotificationsClientResolvedConfig,
66
- options?: __HttpHandlerOptions
67
- ): Handler<SubscribeCommandInput, SubscribeCommandOutput> {
68
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
69
-
70
- const stack = clientStack.concat(this.middlewareStack);
71
-
72
- const { logger } = configuration;
73
- const clientName = "CodestarNotificationsClient";
74
- const commandName = "SubscribeCommand";
75
- const handlerExecutionContext: HandlerExecutionContext = {
76
- logger,
77
- clientName,
78
- commandName,
79
- inputFilterSensitiveLog: SubscribeRequest.filterSensitiveLog,
80
- outputFilterSensitiveLog: SubscribeResult.filterSensitiveLog,
81
- };
82
- const { requestHandler } = configuration;
83
- return stack.resolve(
84
- (request: FinalizeHandlerArguments<any>) =>
85
- requestHandler.handle(request.request as __HttpRequest, options || {}),
86
- handlerExecutionContext
87
- );
88
- }
89
-
90
- private serialize(input: SubscribeCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
91
- return serializeAws_restJson1SubscribeCommand(input, context);
92
- }
93
-
94
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<SubscribeCommandOutput> {
95
- return deserializeAws_restJson1SubscribeCommand(output, context);
96
- }
97
-
98
- // Start section: command_body_extra
99
- // End section: command_body_extra
100
- }