@aws-sdk/client-notifications 3.698.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 (191) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +380 -0
  3. package/dist-cjs/Notifications.js +53 -0
  4. package/dist-cjs/NotificationsClient.js +50 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  7. package/dist-cjs/commands/AssociateChannelCommand.js +26 -0
  8. package/dist-cjs/commands/CreateEventRuleCommand.js +26 -0
  9. package/dist-cjs/commands/CreateNotificationConfigurationCommand.js +26 -0
  10. package/dist-cjs/commands/DeleteEventRuleCommand.js +26 -0
  11. package/dist-cjs/commands/DeleteNotificationConfigurationCommand.js +26 -0
  12. package/dist-cjs/commands/DeregisterNotificationHubCommand.js +26 -0
  13. package/dist-cjs/commands/DisassociateChannelCommand.js +26 -0
  14. package/dist-cjs/commands/GetEventRuleCommand.js +26 -0
  15. package/dist-cjs/commands/GetNotificationConfigurationCommand.js +26 -0
  16. package/dist-cjs/commands/GetNotificationEventCommand.js +26 -0
  17. package/dist-cjs/commands/ListChannelsCommand.js +26 -0
  18. package/dist-cjs/commands/ListEventRulesCommand.js +26 -0
  19. package/dist-cjs/commands/ListNotificationConfigurationsCommand.js +26 -0
  20. package/dist-cjs/commands/ListNotificationEventsCommand.js +26 -0
  21. package/dist-cjs/commands/ListNotificationHubsCommand.js +26 -0
  22. package/dist-cjs/commands/ListTagsForResourceCommand.js +26 -0
  23. package/dist-cjs/commands/RegisterNotificationHubCommand.js +26 -0
  24. package/dist-cjs/commands/TagResourceCommand.js +26 -0
  25. package/dist-cjs/commands/UntagResourceCommand.js +26 -0
  26. package/dist-cjs/commands/UpdateEventRuleCommand.js +26 -0
  27. package/dist-cjs/commands/UpdateNotificationConfigurationCommand.js +26 -0
  28. package/dist-cjs/commands/index.js +24 -0
  29. package/dist-cjs/endpoint/EndpointParameters.js +16 -0
  30. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  31. package/dist-cjs/endpoint/ruleset.js +7 -0
  32. package/dist-cjs/extensionConfiguration.js +2 -0
  33. package/dist-cjs/index.js +11 -0
  34. package/dist-cjs/models/NotificationsServiceException.js +12 -0
  35. package/dist-cjs/models/index.js +4 -0
  36. package/dist-cjs/models/models_0.js +181 -0
  37. package/dist-cjs/pagination/Interfaces.js +2 -0
  38. package/dist-cjs/pagination/ListChannelsPaginator.js +7 -0
  39. package/dist-cjs/pagination/ListEventRulesPaginator.js +7 -0
  40. package/dist-cjs/pagination/ListNotificationConfigurationsPaginator.js +7 -0
  41. package/dist-cjs/pagination/ListNotificationEventsPaginator.js +7 -0
  42. package/dist-cjs/pagination/ListNotificationHubsPaginator.js +7 -0
  43. package/dist-cjs/pagination/index.js +9 -0
  44. package/dist-cjs/protocols/Aws_restJson1.js +885 -0
  45. package/dist-cjs/runtimeConfig.browser.js +39 -0
  46. package/dist-cjs/runtimeConfig.js +50 -0
  47. package/dist-cjs/runtimeConfig.native.js +15 -0
  48. package/dist-cjs/runtimeConfig.shared.js +34 -0
  49. package/dist-cjs/runtimeExtensions.js +25 -0
  50. package/dist-es/Notifications.js +49 -0
  51. package/dist-es/NotificationsClient.js +46 -0
  52. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  53. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  54. package/dist-es/commands/AssociateChannelCommand.js +22 -0
  55. package/dist-es/commands/CreateEventRuleCommand.js +22 -0
  56. package/dist-es/commands/CreateNotificationConfigurationCommand.js +22 -0
  57. package/dist-es/commands/DeleteEventRuleCommand.js +22 -0
  58. package/dist-es/commands/DeleteNotificationConfigurationCommand.js +22 -0
  59. package/dist-es/commands/DeregisterNotificationHubCommand.js +22 -0
  60. package/dist-es/commands/DisassociateChannelCommand.js +22 -0
  61. package/dist-es/commands/GetEventRuleCommand.js +22 -0
  62. package/dist-es/commands/GetNotificationConfigurationCommand.js +22 -0
  63. package/dist-es/commands/GetNotificationEventCommand.js +22 -0
  64. package/dist-es/commands/ListChannelsCommand.js +22 -0
  65. package/dist-es/commands/ListEventRulesCommand.js +22 -0
  66. package/dist-es/commands/ListNotificationConfigurationsCommand.js +22 -0
  67. package/dist-es/commands/ListNotificationEventsCommand.js +22 -0
  68. package/dist-es/commands/ListNotificationHubsCommand.js +22 -0
  69. package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
  70. package/dist-es/commands/RegisterNotificationHubCommand.js +22 -0
  71. package/dist-es/commands/TagResourceCommand.js +22 -0
  72. package/dist-es/commands/UntagResourceCommand.js +22 -0
  73. package/dist-es/commands/UpdateEventRuleCommand.js +22 -0
  74. package/dist-es/commands/UpdateNotificationConfigurationCommand.js +22 -0
  75. package/dist-es/commands/index.js +21 -0
  76. package/dist-es/endpoint/EndpointParameters.js +12 -0
  77. package/dist-es/endpoint/endpointResolver.js +14 -0
  78. package/dist-es/endpoint/ruleset.js +4 -0
  79. package/dist-es/extensionConfiguration.js +1 -0
  80. package/dist-es/index.js +6 -0
  81. package/dist-es/models/NotificationsServiceException.js +8 -0
  82. package/dist-es/models/index.js +1 -0
  83. package/dist-es/models/models_0.js +171 -0
  84. package/dist-es/pagination/Interfaces.js +1 -0
  85. package/dist-es/pagination/ListChannelsPaginator.js +4 -0
  86. package/dist-es/pagination/ListEventRulesPaginator.js +4 -0
  87. package/dist-es/pagination/ListNotificationConfigurationsPaginator.js +4 -0
  88. package/dist-es/pagination/ListNotificationEventsPaginator.js +4 -0
  89. package/dist-es/pagination/ListNotificationHubsPaginator.js +4 -0
  90. package/dist-es/pagination/index.js +6 -0
  91. package/dist-es/protocols/Aws_restJson1.js +840 -0
  92. package/dist-es/runtimeConfig.browser.js +34 -0
  93. package/dist-es/runtimeConfig.js +45 -0
  94. package/dist-es/runtimeConfig.native.js +11 -0
  95. package/dist-es/runtimeConfig.shared.js +30 -0
  96. package/dist-es/runtimeExtensions.js +21 -0
  97. package/dist-types/Notifications.d.ts +167 -0
  98. package/dist-types/NotificationsClient.d.ts +197 -0
  99. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  100. package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
  101. package/dist-types/commands/AssociateChannelCommand.d.ts +92 -0
  102. package/dist-types/commands/CreateEventRuleCommand.d.ts +105 -0
  103. package/dist-types/commands/CreateNotificationConfigurationCommand.d.ts +95 -0
  104. package/dist-types/commands/DeleteEventRuleCommand.d.ts +87 -0
  105. package/dist-types/commands/DeleteNotificationConfigurationCommand.d.ts +87 -0
  106. package/dist-types/commands/DeregisterNotificationHubCommand.d.ts +96 -0
  107. package/dist-types/commands/DisassociateChannelCommand.d.ts +85 -0
  108. package/dist-types/commands/GetEventRuleCommand.d.ts +103 -0
  109. package/dist-types/commands/GetNotificationConfigurationCommand.d.ts +91 -0
  110. package/dist-types/commands/GetNotificationEventCommand.d.ts +154 -0
  111. package/dist-types/commands/ListChannelsCommand.d.ts +91 -0
  112. package/dist-types/commands/ListEventRulesCommand.d.ts +110 -0
  113. package/dist-types/commands/ListNotificationConfigurationsCommand.d.ts +97 -0
  114. package/dist-types/commands/ListNotificationEventsCommand.d.ts +118 -0
  115. package/dist-types/commands/ListNotificationHubsCommand.d.ts +95 -0
  116. package/dist-types/commands/ListTagsForResourceCommand.d.ts +92 -0
  117. package/dist-types/commands/RegisterNotificationHubCommand.d.ts +96 -0
  118. package/dist-types/commands/TagResourceCommand.d.ts +91 -0
  119. package/dist-types/commands/UntagResourceCommand.d.ts +88 -0
  120. package/dist-types/commands/UpdateEventRuleCommand.d.ts +100 -0
  121. package/dist-types/commands/UpdateNotificationConfigurationCommand.d.ts +92 -0
  122. package/dist-types/commands/index.d.ts +21 -0
  123. package/dist-types/endpoint/EndpointParameters.d.ts +34 -0
  124. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  125. package/dist-types/endpoint/ruleset.d.ts +2 -0
  126. package/dist-types/extensionConfiguration.d.ts +9 -0
  127. package/dist-types/index.d.ts +21 -0
  128. package/dist-types/models/NotificationsServiceException.d.ts +14 -0
  129. package/dist-types/models/index.d.ts +1 -0
  130. package/dist-types/models/models_0.d.ts +2354 -0
  131. package/dist-types/pagination/Interfaces.d.ts +8 -0
  132. package/dist-types/pagination/ListChannelsPaginator.d.ts +7 -0
  133. package/dist-types/pagination/ListEventRulesPaginator.d.ts +7 -0
  134. package/dist-types/pagination/ListNotificationConfigurationsPaginator.d.ts +7 -0
  135. package/dist-types/pagination/ListNotificationEventsPaginator.d.ts +7 -0
  136. package/dist-types/pagination/ListNotificationHubsPaginator.d.ts +7 -0
  137. package/dist-types/pagination/index.d.ts +6 -0
  138. package/dist-types/protocols/Aws_restJson1.d.ts +191 -0
  139. package/dist-types/runtimeConfig.browser.d.ts +48 -0
  140. package/dist-types/runtimeConfig.d.ts +48 -0
  141. package/dist-types/runtimeConfig.native.d.ts +47 -0
  142. package/dist-types/runtimeConfig.shared.d.ts +21 -0
  143. package/dist-types/runtimeExtensions.d.ts +17 -0
  144. package/dist-types/ts3.4/Notifications.d.ts +367 -0
  145. package/dist-types/ts3.4/NotificationsClient.d.ts +245 -0
  146. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  147. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
  148. package/dist-types/ts3.4/commands/AssociateChannelCommand.d.ts +50 -0
  149. package/dist-types/ts3.4/commands/CreateEventRuleCommand.d.ts +50 -0
  150. package/dist-types/ts3.4/commands/CreateNotificationConfigurationCommand.d.ts +51 -0
  151. package/dist-types/ts3.4/commands/DeleteEventRuleCommand.d.ts +50 -0
  152. package/dist-types/ts3.4/commands/DeleteNotificationConfigurationCommand.d.ts +51 -0
  153. package/dist-types/ts3.4/commands/DeregisterNotificationHubCommand.d.ts +51 -0
  154. package/dist-types/ts3.4/commands/DisassociateChannelCommand.d.ts +51 -0
  155. package/dist-types/ts3.4/commands/GetEventRuleCommand.d.ts +47 -0
  156. package/dist-types/ts3.4/commands/GetNotificationConfigurationCommand.d.ts +51 -0
  157. package/dist-types/ts3.4/commands/GetNotificationEventCommand.d.ts +51 -0
  158. package/dist-types/ts3.4/commands/ListChannelsCommand.d.ts +47 -0
  159. package/dist-types/ts3.4/commands/ListEventRulesCommand.d.ts +50 -0
  160. package/dist-types/ts3.4/commands/ListNotificationConfigurationsCommand.d.ts +51 -0
  161. package/dist-types/ts3.4/commands/ListNotificationEventsCommand.d.ts +51 -0
  162. package/dist-types/ts3.4/commands/ListNotificationHubsCommand.d.ts +51 -0
  163. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  164. package/dist-types/ts3.4/commands/RegisterNotificationHubCommand.d.ts +51 -0
  165. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
  166. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
  167. package/dist-types/ts3.4/commands/UpdateEventRuleCommand.d.ts +50 -0
  168. package/dist-types/ts3.4/commands/UpdateNotificationConfigurationCommand.d.ts +51 -0
  169. package/dist-types/ts3.4/commands/index.d.ts +21 -0
  170. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
  171. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  172. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  173. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  174. package/dist-types/ts3.4/index.d.ts +9 -0
  175. package/dist-types/ts3.4/models/NotificationsServiceException.d.ts +9 -0
  176. package/dist-types/ts3.4/models/index.d.ts +1 -0
  177. package/dist-types/ts3.4/models/models_0.d.ts +447 -0
  178. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  179. package/dist-types/ts3.4/pagination/ListChannelsPaginator.d.ts +11 -0
  180. package/dist-types/ts3.4/pagination/ListEventRulesPaginator.d.ts +11 -0
  181. package/dist-types/ts3.4/pagination/ListNotificationConfigurationsPaginator.d.ts +11 -0
  182. package/dist-types/ts3.4/pagination/ListNotificationEventsPaginator.d.ts +11 -0
  183. package/dist-types/ts3.4/pagination/ListNotificationHubsPaginator.d.ts +11 -0
  184. package/dist-types/ts3.4/pagination/index.d.ts +6 -0
  185. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +257 -0
  186. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
  187. package/dist-types/ts3.4/runtimeConfig.d.ts +94 -0
  188. package/dist-types/ts3.4/runtimeConfig.native.d.ts +87 -0
  189. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
  190. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  191. package/package.json +101 -0
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListNotificationConfigurationsCommand, se_ListNotificationConfigurationsCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListNotificationConfigurationsCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("Notifications", "ListNotificationConfigurations", {})
17
+ .n("NotificationsClient", "ListNotificationConfigurationsCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ListNotificationConfigurationsCommand)
20
+ .de(de_ListNotificationConfigurationsCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListNotificationEventsCommand, se_ListNotificationEventsCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListNotificationEventsCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("Notifications", "ListNotificationEvents", {})
17
+ .n("NotificationsClient", "ListNotificationEventsCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ListNotificationEventsCommand)
20
+ .de(de_ListNotificationEventsCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListNotificationHubsCommand, se_ListNotificationHubsCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListNotificationHubsCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("Notifications", "ListNotificationHubs", {})
17
+ .n("NotificationsClient", "ListNotificationHubsCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ListNotificationHubsCommand)
20
+ .de(de_ListNotificationHubsCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListTagsForResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("Notifications", "ListTagsForResource", {})
17
+ .n("NotificationsClient", "ListTagsForResourceCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ListTagsForResourceCommand)
20
+ .de(de_ListTagsForResourceCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_RegisterNotificationHubCommand, se_RegisterNotificationHubCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class RegisterNotificationHubCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("Notifications", "RegisterNotificationHub", {})
17
+ .n("NotificationsClient", "RegisterNotificationHubCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_RegisterNotificationHubCommand)
20
+ .de(de_RegisterNotificationHubCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class TagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("Notifications", "TagResource", {})
17
+ .n("NotificationsClient", "TagResourceCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_TagResourceCommand)
20
+ .de(de_TagResourceCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class UntagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("Notifications", "UntagResource", {})
17
+ .n("NotificationsClient", "UntagResourceCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_UntagResourceCommand)
20
+ .de(de_UntagResourceCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_UpdateEventRuleCommand, se_UpdateEventRuleCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class UpdateEventRuleCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("Notifications", "UpdateEventRule", {})
17
+ .n("NotificationsClient", "UpdateEventRuleCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_UpdateEventRuleCommand)
20
+ .de(de_UpdateEventRuleCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_UpdateNotificationConfigurationCommand, se_UpdateNotificationConfigurationCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class UpdateNotificationConfigurationCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("Notifications", "UpdateNotificationConfiguration", {})
17
+ .n("NotificationsClient", "UpdateNotificationConfigurationCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_UpdateNotificationConfigurationCommand)
20
+ .de(de_UpdateNotificationConfigurationCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,21 @@
1
+ export * from "./AssociateChannelCommand";
2
+ export * from "./CreateEventRuleCommand";
3
+ export * from "./CreateNotificationConfigurationCommand";
4
+ export * from "./DeleteEventRuleCommand";
5
+ export * from "./DeleteNotificationConfigurationCommand";
6
+ export * from "./DeregisterNotificationHubCommand";
7
+ export * from "./DisassociateChannelCommand";
8
+ export * from "./GetEventRuleCommand";
9
+ export * from "./GetNotificationConfigurationCommand";
10
+ export * from "./GetNotificationEventCommand";
11
+ export * from "./ListChannelsCommand";
12
+ export * from "./ListEventRulesCommand";
13
+ export * from "./ListNotificationConfigurationsCommand";
14
+ export * from "./ListNotificationEventsCommand";
15
+ export * from "./ListNotificationHubsCommand";
16
+ export * from "./ListTagsForResourceCommand";
17
+ export * from "./RegisterNotificationHubCommand";
18
+ export * from "./TagResourceCommand";
19
+ export * from "./UntagResourceCommand";
20
+ export * from "./UpdateEventRuleCommand";
21
+ export * from "./UpdateNotificationConfigurationCommand";
@@ -0,0 +1,12 @@
1
+ export const resolveClientEndpointParameters = (options) => {
2
+ return {
3
+ ...options,
4
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
5
+ defaultSigningName: "notifications",
6
+ };
7
+ };
8
+ export const commonParams = {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ };
@@ -0,0 +1,14 @@
1
+ import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
+ import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
3
+ import { ruleSet } from "./ruleset";
4
+ const cache = new EndpointCache({
5
+ size: 50,
6
+ params: ["Endpoint", "Region", "UseFIPS"],
7
+ });
8
+ export const defaultEndpointResolver = (endpointParams, context = {}) => {
9
+ return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
10
+ endpointParams: endpointParams,
11
+ logger: context.logger,
12
+ }));
13
+ };
14
+ customEndpointFunctions.aws = awsEndpointFunctions;
@@ -0,0 +1,4 @@
1
+ const l = "ref";
2
+ const a = true, b = false, c = "isSet", d = "error", e = "endpoint", f = "tree", g = { "required": false, "type": "String" }, h = { [l]: "Endpoint" }, i = {}, j = [{ "fn": "booleanEquals", "argv": [{ [l]: "UseFIPS" }, true] }], k = [{ [l]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { UseFIPS: { required: a, default: b, type: "Boolean" }, Endpoint: g, Region: g }, rules: [{ conditions: [{ fn: c, argv: [h] }], rules: [{ conditions: j, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { endpoint: { url: h, properties: i, headers: i }, type: e }], type: f }, { rules: [{ conditions: [{ fn: c, argv: k }], rules: [{ conditions: [{ fn: "aws.partition", argv: k, assign: "PartitionResult" }], rules: [{ conditions: j, endpoint: { url: "https://notifications-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: i, headers: i }, type: e }, { endpoint: { url: "https://notifications.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: i, headers: i }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
4
+ export const ruleSet = _data;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export * from "./NotificationsClient";
2
+ export * from "./Notifications";
3
+ export * from "./commands";
4
+ export * from "./pagination";
5
+ export * from "./models";
6
+ export { NotificationsServiceException } from "./models/NotificationsServiceException";
@@ -0,0 +1,8 @@
1
+ import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
2
+ export { __ServiceException };
3
+ export class NotificationsServiceException extends __ServiceException {
4
+ constructor(options) {
5
+ super(options);
6
+ Object.setPrototypeOf(this, NotificationsServiceException.prototype);
7
+ }
8
+ }
@@ -0,0 +1 @@
1
+ export * from "./models_0";
@@ -0,0 +1,171 @@
1
+ import { NotificationsServiceException as __BaseException } from "./NotificationsServiceException";
2
+ export class AccessDeniedException extends __BaseException {
3
+ constructor(opts) {
4
+ super({
5
+ name: "AccessDeniedException",
6
+ $fault: "client",
7
+ ...opts,
8
+ });
9
+ this.name = "AccessDeniedException";
10
+ this.$fault = "client";
11
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
+ }
13
+ }
14
+ export const AggregationDuration = {
15
+ LONG: "LONG",
16
+ NONE: "NONE",
17
+ SHORT: "SHORT",
18
+ };
19
+ export const AggregationEventType = {
20
+ AGGREGATE: "AGGREGATE",
21
+ CHILD: "CHILD",
22
+ NONE: "NONE",
23
+ };
24
+ export class ConflictException extends __BaseException {
25
+ constructor(opts) {
26
+ super({
27
+ name: "ConflictException",
28
+ $fault: "client",
29
+ ...opts,
30
+ });
31
+ this.name = "ConflictException";
32
+ this.$fault = "client";
33
+ Object.setPrototypeOf(this, ConflictException.prototype);
34
+ this.resourceId = opts.resourceId;
35
+ }
36
+ }
37
+ export class InternalServerException extends __BaseException {
38
+ constructor(opts) {
39
+ super({
40
+ name: "InternalServerException",
41
+ $fault: "server",
42
+ ...opts,
43
+ });
44
+ this.name = "InternalServerException";
45
+ this.$fault = "server";
46
+ this.$retryable = {};
47
+ Object.setPrototypeOf(this, InternalServerException.prototype);
48
+ }
49
+ }
50
+ export class ResourceNotFoundException extends __BaseException {
51
+ constructor(opts) {
52
+ super({
53
+ name: "ResourceNotFoundException",
54
+ $fault: "client",
55
+ ...opts,
56
+ });
57
+ this.name = "ResourceNotFoundException";
58
+ this.$fault = "client";
59
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
60
+ this.resourceId = opts.resourceId;
61
+ }
62
+ }
63
+ export class ServiceQuotaExceededException extends __BaseException {
64
+ constructor(opts) {
65
+ super({
66
+ name: "ServiceQuotaExceededException",
67
+ $fault: "client",
68
+ ...opts,
69
+ });
70
+ this.name = "ServiceQuotaExceededException";
71
+ this.$fault = "client";
72
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
73
+ this.resourceType = opts.resourceType;
74
+ this.resourceId = opts.resourceId;
75
+ this.serviceCode = opts.serviceCode;
76
+ this.quotaCode = opts.quotaCode;
77
+ }
78
+ }
79
+ export class ThrottlingException extends __BaseException {
80
+ constructor(opts) {
81
+ super({
82
+ name: "ThrottlingException",
83
+ $fault: "client",
84
+ ...opts,
85
+ });
86
+ this.name = "ThrottlingException";
87
+ this.$fault = "client";
88
+ this.$retryable = {
89
+ throttling: true,
90
+ };
91
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
92
+ this.serviceCode = opts.serviceCode;
93
+ this.quotaCode = opts.quotaCode;
94
+ this.retryAfterSeconds = opts.retryAfterSeconds;
95
+ }
96
+ }
97
+ export const ValidationExceptionReason = {
98
+ FIELD_VALIDATION_FAILED: "fieldValidationFailed",
99
+ OTHER: "other",
100
+ };
101
+ export class ValidationException extends __BaseException {
102
+ constructor(opts) {
103
+ super({
104
+ name: "ValidationException",
105
+ $fault: "client",
106
+ ...opts,
107
+ });
108
+ this.name = "ValidationException";
109
+ this.$fault = "client";
110
+ Object.setPrototypeOf(this, ValidationException.prototype);
111
+ this.reason = opts.reason;
112
+ this.fieldList = opts.fieldList;
113
+ }
114
+ }
115
+ export const EventRuleStatus = {
116
+ ACTIVE: "ACTIVE",
117
+ CREATING: "CREATING",
118
+ DELETING: "DELETING",
119
+ INACTIVE: "INACTIVE",
120
+ UPDATING: "UPDATING",
121
+ };
122
+ export const NotificationConfigurationStatus = {
123
+ ACTIVE: "ACTIVE",
124
+ DELETING: "DELETING",
125
+ INACTIVE: "INACTIVE",
126
+ PARTIALLY_ACTIVE: "PARTIALLY_ACTIVE",
127
+ };
128
+ export const NotificationHubStatus = {
129
+ ACTIVE: "ACTIVE",
130
+ DEREGISTERING: "DEREGISTERING",
131
+ INACTIVE: "INACTIVE",
132
+ REGISTERING: "REGISTERING",
133
+ };
134
+ export const EventStatus = {
135
+ HEALTHY: "HEALTHY",
136
+ UNHEALTHY: "UNHEALTHY",
137
+ };
138
+ export const LocaleCode = {
139
+ de_DE: "de_DE",
140
+ en_CA: "en_CA",
141
+ en_UK: "en_UK",
142
+ en_US: "en_US",
143
+ es_ES: "es_ES",
144
+ fr_CA: "fr_CA",
145
+ fr_FR: "fr_FR",
146
+ id_ID: "id_ID",
147
+ it_IT: "it_IT",
148
+ ja_JP: "ja_JP",
149
+ ko_KR: "ko_KR",
150
+ pt_BR: "pt_BR",
151
+ tr_TR: "tr_TR",
152
+ zh_CN: "zh_CN",
153
+ zh_TW: "zh_TW",
154
+ };
155
+ export const MediaElementType = {
156
+ IMAGE: "IMAGE",
157
+ };
158
+ export const NotificationType = {
159
+ ALERT: "ALERT",
160
+ ANNOUNCEMENT: "ANNOUNCEMENT",
161
+ INFORMATIONAL: "INFORMATIONAL",
162
+ WARNING: "WARNING",
163
+ };
164
+ export const SchemaVersion = {
165
+ SCHEMA_VERSION_1_0: "v1.0",
166
+ };
167
+ export const TextPartType = {
168
+ LOCALIZED_TEXT: "LOCALIZED_TEXT",
169
+ PLAIN_TEXT: "PLAIN_TEXT",
170
+ URL: "URL",
171
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListChannelsCommand, } from "../commands/ListChannelsCommand";
3
+ import { NotificationsClient } from "../NotificationsClient";
4
+ export const paginateListChannels = createPaginator(NotificationsClient, ListChannelsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListEventRulesCommand, } from "../commands/ListEventRulesCommand";
3
+ import { NotificationsClient } from "../NotificationsClient";
4
+ export const paginateListEventRules = createPaginator(NotificationsClient, ListEventRulesCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListNotificationConfigurationsCommand, } from "../commands/ListNotificationConfigurationsCommand";
3
+ import { NotificationsClient } from "../NotificationsClient";
4
+ export const paginateListNotificationConfigurations = createPaginator(NotificationsClient, ListNotificationConfigurationsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListNotificationEventsCommand, } from "../commands/ListNotificationEventsCommand";
3
+ import { NotificationsClient } from "../NotificationsClient";
4
+ export const paginateListNotificationEvents = createPaginator(NotificationsClient, ListNotificationEventsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListNotificationHubsCommand, } from "../commands/ListNotificationHubsCommand";
3
+ import { NotificationsClient } from "../NotificationsClient";
4
+ export const paginateListNotificationHubs = createPaginator(NotificationsClient, ListNotificationHubsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,6 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListChannelsPaginator";
3
+ export * from "./ListEventRulesPaginator";
4
+ export * from "./ListNotificationConfigurationsPaginator";
5
+ export * from "./ListNotificationEventsPaginator";
6
+ export * from "./ListNotificationHubsPaginator";