@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,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UntagResourceCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class UntagResourceCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep(EndpointParameters_1.commonParams)
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
16
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("Notifications", "UntagResource", {})
20
+ .n("NotificationsClient", "UntagResourceCommand")
21
+ .f(void 0, void 0)
22
+ .ser(Aws_restJson1_1.se_UntagResourceCommand)
23
+ .de(Aws_restJson1_1.de_UntagResourceCommand)
24
+ .build() {
25
+ }
26
+ exports.UntagResourceCommand = UntagResourceCommand;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateEventRuleCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class UpdateEventRuleCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep(EndpointParameters_1.commonParams)
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
16
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("Notifications", "UpdateEventRule", {})
20
+ .n("NotificationsClient", "UpdateEventRuleCommand")
21
+ .f(void 0, void 0)
22
+ .ser(Aws_restJson1_1.se_UpdateEventRuleCommand)
23
+ .de(Aws_restJson1_1.de_UpdateEventRuleCommand)
24
+ .build() {
25
+ }
26
+ exports.UpdateEventRuleCommand = UpdateEventRuleCommand;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateNotificationConfigurationCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class UpdateNotificationConfigurationCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep(EndpointParameters_1.commonParams)
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
16
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("Notifications", "UpdateNotificationConfiguration", {})
20
+ .n("NotificationsClient", "UpdateNotificationConfigurationCommand")
21
+ .f(void 0, void 0)
22
+ .ser(Aws_restJson1_1.se_UpdateNotificationConfigurationCommand)
23
+ .de(Aws_restJson1_1.de_UpdateNotificationConfigurationCommand)
24
+ .build() {
25
+ }
26
+ exports.UpdateNotificationConfigurationCommand = UpdateNotificationConfigurationCommand;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./AssociateChannelCommand"), exports);
5
+ tslib_1.__exportStar(require("./CreateEventRuleCommand"), exports);
6
+ tslib_1.__exportStar(require("./CreateNotificationConfigurationCommand"), exports);
7
+ tslib_1.__exportStar(require("./DeleteEventRuleCommand"), exports);
8
+ tslib_1.__exportStar(require("./DeleteNotificationConfigurationCommand"), exports);
9
+ tslib_1.__exportStar(require("./DeregisterNotificationHubCommand"), exports);
10
+ tslib_1.__exportStar(require("./DisassociateChannelCommand"), exports);
11
+ tslib_1.__exportStar(require("./GetEventRuleCommand"), exports);
12
+ tslib_1.__exportStar(require("./GetNotificationConfigurationCommand"), exports);
13
+ tslib_1.__exportStar(require("./GetNotificationEventCommand"), exports);
14
+ tslib_1.__exportStar(require("./ListChannelsCommand"), exports);
15
+ tslib_1.__exportStar(require("./ListEventRulesCommand"), exports);
16
+ tslib_1.__exportStar(require("./ListNotificationConfigurationsCommand"), exports);
17
+ tslib_1.__exportStar(require("./ListNotificationEventsCommand"), exports);
18
+ tslib_1.__exportStar(require("./ListNotificationHubsCommand"), exports);
19
+ tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
20
+ tslib_1.__exportStar(require("./RegisterNotificationHubCommand"), exports);
21
+ tslib_1.__exportStar(require("./TagResourceCommand"), exports);
22
+ tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
23
+ tslib_1.__exportStar(require("./UpdateEventRuleCommand"), exports);
24
+ tslib_1.__exportStar(require("./UpdateNotificationConfigurationCommand"), exports);
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.commonParams = exports.resolveClientEndpointParameters = void 0;
4
+ const resolveClientEndpointParameters = (options) => {
5
+ return {
6
+ ...options,
7
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
8
+ defaultSigningName: "notifications",
9
+ };
10
+ };
11
+ exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
12
+ exports.commonParams = {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ };
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultEndpointResolver = void 0;
4
+ const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
+ const util_endpoints_2 = require("@smithy/util-endpoints");
6
+ const ruleset_1 = require("./ruleset");
7
+ const cache = new util_endpoints_2.EndpointCache({
8
+ size: 50,
9
+ params: ["Endpoint", "Region", "UseFIPS"],
10
+ });
11
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
12
+ return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
13
+ endpointParams: endpointParams,
14
+ logger: context.logger,
15
+ }));
16
+ };
17
+ exports.defaultEndpointResolver = defaultEndpointResolver;
18
+ util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ruleSet = void 0;
4
+ const l = "ref";
5
+ 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" }];
6
+ 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 }] };
7
+ exports.ruleSet = _data;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationsServiceException = void 0;
4
+ const tslib_1 = require("tslib");
5
+ tslib_1.__exportStar(require("./NotificationsClient"), exports);
6
+ tslib_1.__exportStar(require("./Notifications"), exports);
7
+ tslib_1.__exportStar(require("./commands"), exports);
8
+ tslib_1.__exportStar(require("./pagination"), exports);
9
+ tslib_1.__exportStar(require("./models"), exports);
10
+ var NotificationsServiceException_1 = require("./models/NotificationsServiceException");
11
+ Object.defineProperty(exports, "NotificationsServiceException", { enumerable: true, get: function () { return NotificationsServiceException_1.NotificationsServiceException; } });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationsServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class NotificationsServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, NotificationsServiceException.prototype);
10
+ }
11
+ }
12
+ exports.NotificationsServiceException = NotificationsServiceException;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./models_0"), exports);
@@ -0,0 +1,181 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TextPartType = exports.SchemaVersion = exports.NotificationType = exports.MediaElementType = exports.LocaleCode = exports.EventStatus = exports.NotificationHubStatus = exports.NotificationConfigurationStatus = exports.EventRuleStatus = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AggregationEventType = exports.AggregationDuration = exports.AccessDeniedException = void 0;
4
+ const NotificationsServiceException_1 = require("./NotificationsServiceException");
5
+ class AccessDeniedException extends NotificationsServiceException_1.NotificationsServiceException {
6
+ constructor(opts) {
7
+ super({
8
+ name: "AccessDeniedException",
9
+ $fault: "client",
10
+ ...opts,
11
+ });
12
+ this.name = "AccessDeniedException";
13
+ this.$fault = "client";
14
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
+ }
16
+ }
17
+ exports.AccessDeniedException = AccessDeniedException;
18
+ exports.AggregationDuration = {
19
+ LONG: "LONG",
20
+ NONE: "NONE",
21
+ SHORT: "SHORT",
22
+ };
23
+ exports.AggregationEventType = {
24
+ AGGREGATE: "AGGREGATE",
25
+ CHILD: "CHILD",
26
+ NONE: "NONE",
27
+ };
28
+ class ConflictException extends NotificationsServiceException_1.NotificationsServiceException {
29
+ constructor(opts) {
30
+ super({
31
+ name: "ConflictException",
32
+ $fault: "client",
33
+ ...opts,
34
+ });
35
+ this.name = "ConflictException";
36
+ this.$fault = "client";
37
+ Object.setPrototypeOf(this, ConflictException.prototype);
38
+ this.resourceId = opts.resourceId;
39
+ }
40
+ }
41
+ exports.ConflictException = ConflictException;
42
+ class InternalServerException extends NotificationsServiceException_1.NotificationsServiceException {
43
+ constructor(opts) {
44
+ super({
45
+ name: "InternalServerException",
46
+ $fault: "server",
47
+ ...opts,
48
+ });
49
+ this.name = "InternalServerException";
50
+ this.$fault = "server";
51
+ this.$retryable = {};
52
+ Object.setPrototypeOf(this, InternalServerException.prototype);
53
+ }
54
+ }
55
+ exports.InternalServerException = InternalServerException;
56
+ class ResourceNotFoundException extends NotificationsServiceException_1.NotificationsServiceException {
57
+ constructor(opts) {
58
+ super({
59
+ name: "ResourceNotFoundException",
60
+ $fault: "client",
61
+ ...opts,
62
+ });
63
+ this.name = "ResourceNotFoundException";
64
+ this.$fault = "client";
65
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
66
+ this.resourceId = opts.resourceId;
67
+ }
68
+ }
69
+ exports.ResourceNotFoundException = ResourceNotFoundException;
70
+ class ServiceQuotaExceededException extends NotificationsServiceException_1.NotificationsServiceException {
71
+ constructor(opts) {
72
+ super({
73
+ name: "ServiceQuotaExceededException",
74
+ $fault: "client",
75
+ ...opts,
76
+ });
77
+ this.name = "ServiceQuotaExceededException";
78
+ this.$fault = "client";
79
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
80
+ this.resourceType = opts.resourceType;
81
+ this.resourceId = opts.resourceId;
82
+ this.serviceCode = opts.serviceCode;
83
+ this.quotaCode = opts.quotaCode;
84
+ }
85
+ }
86
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
87
+ class ThrottlingException extends NotificationsServiceException_1.NotificationsServiceException {
88
+ constructor(opts) {
89
+ super({
90
+ name: "ThrottlingException",
91
+ $fault: "client",
92
+ ...opts,
93
+ });
94
+ this.name = "ThrottlingException";
95
+ this.$fault = "client";
96
+ this.$retryable = {
97
+ throttling: true,
98
+ };
99
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
100
+ this.serviceCode = opts.serviceCode;
101
+ this.quotaCode = opts.quotaCode;
102
+ this.retryAfterSeconds = opts.retryAfterSeconds;
103
+ }
104
+ }
105
+ exports.ThrottlingException = ThrottlingException;
106
+ exports.ValidationExceptionReason = {
107
+ FIELD_VALIDATION_FAILED: "fieldValidationFailed",
108
+ OTHER: "other",
109
+ };
110
+ class ValidationException extends NotificationsServiceException_1.NotificationsServiceException {
111
+ constructor(opts) {
112
+ super({
113
+ name: "ValidationException",
114
+ $fault: "client",
115
+ ...opts,
116
+ });
117
+ this.name = "ValidationException";
118
+ this.$fault = "client";
119
+ Object.setPrototypeOf(this, ValidationException.prototype);
120
+ this.reason = opts.reason;
121
+ this.fieldList = opts.fieldList;
122
+ }
123
+ }
124
+ exports.ValidationException = ValidationException;
125
+ exports.EventRuleStatus = {
126
+ ACTIVE: "ACTIVE",
127
+ CREATING: "CREATING",
128
+ DELETING: "DELETING",
129
+ INACTIVE: "INACTIVE",
130
+ UPDATING: "UPDATING",
131
+ };
132
+ exports.NotificationConfigurationStatus = {
133
+ ACTIVE: "ACTIVE",
134
+ DELETING: "DELETING",
135
+ INACTIVE: "INACTIVE",
136
+ PARTIALLY_ACTIVE: "PARTIALLY_ACTIVE",
137
+ };
138
+ exports.NotificationHubStatus = {
139
+ ACTIVE: "ACTIVE",
140
+ DEREGISTERING: "DEREGISTERING",
141
+ INACTIVE: "INACTIVE",
142
+ REGISTERING: "REGISTERING",
143
+ };
144
+ exports.EventStatus = {
145
+ HEALTHY: "HEALTHY",
146
+ UNHEALTHY: "UNHEALTHY",
147
+ };
148
+ exports.LocaleCode = {
149
+ de_DE: "de_DE",
150
+ en_CA: "en_CA",
151
+ en_UK: "en_UK",
152
+ en_US: "en_US",
153
+ es_ES: "es_ES",
154
+ fr_CA: "fr_CA",
155
+ fr_FR: "fr_FR",
156
+ id_ID: "id_ID",
157
+ it_IT: "it_IT",
158
+ ja_JP: "ja_JP",
159
+ ko_KR: "ko_KR",
160
+ pt_BR: "pt_BR",
161
+ tr_TR: "tr_TR",
162
+ zh_CN: "zh_CN",
163
+ zh_TW: "zh_TW",
164
+ };
165
+ exports.MediaElementType = {
166
+ IMAGE: "IMAGE",
167
+ };
168
+ exports.NotificationType = {
169
+ ALERT: "ALERT",
170
+ ANNOUNCEMENT: "ANNOUNCEMENT",
171
+ INFORMATIONAL: "INFORMATIONAL",
172
+ WARNING: "WARNING",
173
+ };
174
+ exports.SchemaVersion = {
175
+ SCHEMA_VERSION_1_0: "v1.0",
176
+ };
177
+ exports.TextPartType = {
178
+ LOCALIZED_TEXT: "LOCALIZED_TEXT",
179
+ PLAIN_TEXT: "PLAIN_TEXT",
180
+ URL: "URL",
181
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListChannels = void 0;
4
+ const core_1 = require("@smithy/core");
5
+ const ListChannelsCommand_1 = require("../commands/ListChannelsCommand");
6
+ const NotificationsClient_1 = require("../NotificationsClient");
7
+ exports.paginateListChannels = (0, core_1.createPaginator)(NotificationsClient_1.NotificationsClient, ListChannelsCommand_1.ListChannelsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListEventRules = void 0;
4
+ const core_1 = require("@smithy/core");
5
+ const ListEventRulesCommand_1 = require("../commands/ListEventRulesCommand");
6
+ const NotificationsClient_1 = require("../NotificationsClient");
7
+ exports.paginateListEventRules = (0, core_1.createPaginator)(NotificationsClient_1.NotificationsClient, ListEventRulesCommand_1.ListEventRulesCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListNotificationConfigurations = void 0;
4
+ const core_1 = require("@smithy/core");
5
+ const ListNotificationConfigurationsCommand_1 = require("../commands/ListNotificationConfigurationsCommand");
6
+ const NotificationsClient_1 = require("../NotificationsClient");
7
+ exports.paginateListNotificationConfigurations = (0, core_1.createPaginator)(NotificationsClient_1.NotificationsClient, ListNotificationConfigurationsCommand_1.ListNotificationConfigurationsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListNotificationEvents = void 0;
4
+ const core_1 = require("@smithy/core");
5
+ const ListNotificationEventsCommand_1 = require("../commands/ListNotificationEventsCommand");
6
+ const NotificationsClient_1 = require("../NotificationsClient");
7
+ exports.paginateListNotificationEvents = (0, core_1.createPaginator)(NotificationsClient_1.NotificationsClient, ListNotificationEventsCommand_1.ListNotificationEventsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListNotificationHubs = void 0;
4
+ const core_1 = require("@smithy/core");
5
+ const ListNotificationHubsCommand_1 = require("../commands/ListNotificationHubsCommand");
6
+ const NotificationsClient_1 = require("../NotificationsClient");
7
+ exports.paginateListNotificationHubs = (0, core_1.createPaginator)(NotificationsClient_1.NotificationsClient, ListNotificationHubsCommand_1.ListNotificationHubsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Interfaces"), exports);
5
+ tslib_1.__exportStar(require("./ListChannelsPaginator"), exports);
6
+ tslib_1.__exportStar(require("./ListEventRulesPaginator"), exports);
7
+ tslib_1.__exportStar(require("./ListNotificationConfigurationsPaginator"), exports);
8
+ tslib_1.__exportStar(require("./ListNotificationEventsPaginator"), exports);
9
+ tslib_1.__exportStar(require("./ListNotificationHubsPaginator"), exports);