@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,34 @@
1
+ import packageInfo from "../package.json";
2
+ import { Sha256 } from "@aws-crypto/sha256-browser";
3
+ import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser";
4
+ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
5
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
6
+ import { invalidProvider } from "@smithy/invalid-dependency";
7
+ import { calculateBodyLength } from "@smithy/util-body-length-browser";
8
+ import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
9
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
10
+ import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
11
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
12
+ export const getRuntimeConfig = (config) => {
13
+ const defaultsMode = resolveDefaultsModeConfig(config);
14
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
15
+ const clientSharedValues = getSharedRuntimeConfig(config);
16
+ return {
17
+ ...clientSharedValues,
18
+ ...config,
19
+ runtime: "browser",
20
+ defaultsMode,
21
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
22
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
23
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
24
+ createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
25
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
26
+ region: config?.region ?? invalidProvider("Region is missing"),
27
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
28
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
29
+ sha256: config?.sha256 ?? Sha256,
30
+ streamCollector: config?.streamCollector ?? streamCollector,
31
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
32
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
33
+ };
34
+ };
@@ -0,0 +1,45 @@
1
+ import packageInfo from "../package.json";
2
+ import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
3
+ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
4
+ import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-node";
5
+ import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
6
+ import { Hash } from "@smithy/hash-node";
7
+ import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
8
+ import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
+ import { calculateBodyLength } from "@smithy/util-body-length-node";
11
+ import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
12
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
14
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
15
+ import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
16
+ export const getRuntimeConfig = (config) => {
17
+ emitWarningIfUnsupportedVersion(process.version);
18
+ const defaultsMode = resolveDefaultsModeConfig(config);
19
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
20
+ const clientSharedValues = getSharedRuntimeConfig(config);
21
+ awsCheckVersion(process.version);
22
+ return {
23
+ ...clientSharedValues,
24
+ ...config,
25
+ runtime: "node",
26
+ defaultsMode,
27
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
28
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
29
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
30
+ createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
31
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
32
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
33
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
34
+ retryMode: config?.retryMode ??
35
+ loadNodeConfig({
36
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
37
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
38
+ }),
39
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
40
+ streamCollector: config?.streamCollector ?? streamCollector,
41
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
42
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
43
+ userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS),
44
+ };
45
+ };
@@ -0,0 +1,11 @@
1
+ import { Sha256 } from "@aws-crypto/sha256-js";
2
+ import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
+ export const getRuntimeConfig = (config) => {
4
+ const browserDefaults = getBrowserRuntimeConfig(config);
5
+ return {
6
+ ...browserDefaults,
7
+ ...config,
8
+ runtime: "react-native",
9
+ sha256: config?.sha256 ?? Sha256,
10
+ };
11
+ };
@@ -0,0 +1,30 @@
1
+ import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { NoOpLogger } from "@smithy/smithy-client";
3
+ import { parseUrl } from "@smithy/url-parser";
4
+ import { fromBase64, toBase64 } from "@smithy/util-base64";
5
+ import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
6
+ import { defaultNotificationsHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
7
+ import { defaultEndpointResolver } from "./endpoint/endpointResolver";
8
+ export const getRuntimeConfig = (config) => {
9
+ return {
10
+ apiVersion: "2018-05-10",
11
+ base64Decoder: config?.base64Decoder ?? fromBase64,
12
+ base64Encoder: config?.base64Encoder ?? toBase64,
13
+ disableHostPrefix: config?.disableHostPrefix ?? false,
14
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
15
+ extensions: config?.extensions ?? [],
16
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultNotificationsHttpAuthSchemeProvider,
17
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
18
+ {
19
+ schemeId: "aws.auth#sigv4",
20
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
21
+ signer: new AwsSdkSigV4Signer(),
22
+ },
23
+ ],
24
+ logger: config?.logger ?? new NoOpLogger(),
25
+ serviceId: config?.serviceId ?? "Notifications",
26
+ urlParser: config?.urlParser ?? parseUrl,
27
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
28
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
29
+ };
30
+ };
@@ -0,0 +1,21 @@
1
+ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
2
+ import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
3
+ import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
4
+ import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
5
+ const asPartial = (t) => t;
6
+ export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
7
+ const extensionConfiguration = {
8
+ ...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
9
+ ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
10
+ ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
11
+ ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
12
+ };
13
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
14
+ return {
15
+ ...runtimeConfig,
16
+ ...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
17
+ ...resolveDefaultRuntimeConfig(extensionConfiguration),
18
+ ...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
19
+ ...resolveHttpAuthRuntimeConfig(extensionConfiguration),
20
+ };
21
+ };
@@ -0,0 +1,167 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import { AssociateChannelCommandInput, AssociateChannelCommandOutput } from "./commands/AssociateChannelCommand";
3
+ import { CreateEventRuleCommandInput, CreateEventRuleCommandOutput } from "./commands/CreateEventRuleCommand";
4
+ import { CreateNotificationConfigurationCommandInput, CreateNotificationConfigurationCommandOutput } from "./commands/CreateNotificationConfigurationCommand";
5
+ import { DeleteEventRuleCommandInput, DeleteEventRuleCommandOutput } from "./commands/DeleteEventRuleCommand";
6
+ import { DeleteNotificationConfigurationCommandInput, DeleteNotificationConfigurationCommandOutput } from "./commands/DeleteNotificationConfigurationCommand";
7
+ import { DeregisterNotificationHubCommandInput, DeregisterNotificationHubCommandOutput } from "./commands/DeregisterNotificationHubCommand";
8
+ import { DisassociateChannelCommandInput, DisassociateChannelCommandOutput } from "./commands/DisassociateChannelCommand";
9
+ import { GetEventRuleCommandInput, GetEventRuleCommandOutput } from "./commands/GetEventRuleCommand";
10
+ import { GetNotificationConfigurationCommandInput, GetNotificationConfigurationCommandOutput } from "./commands/GetNotificationConfigurationCommand";
11
+ import { GetNotificationEventCommandInput, GetNotificationEventCommandOutput } from "./commands/GetNotificationEventCommand";
12
+ import { ListChannelsCommandInput, ListChannelsCommandOutput } from "./commands/ListChannelsCommand";
13
+ import { ListEventRulesCommandInput, ListEventRulesCommandOutput } from "./commands/ListEventRulesCommand";
14
+ import { ListNotificationConfigurationsCommandInput, ListNotificationConfigurationsCommandOutput } from "./commands/ListNotificationConfigurationsCommand";
15
+ import { ListNotificationEventsCommandInput, ListNotificationEventsCommandOutput } from "./commands/ListNotificationEventsCommand";
16
+ import { ListNotificationHubsCommandInput, ListNotificationHubsCommandOutput } from "./commands/ListNotificationHubsCommand";
17
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
18
+ import { RegisterNotificationHubCommandInput, RegisterNotificationHubCommandOutput } from "./commands/RegisterNotificationHubCommand";
19
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
20
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
21
+ import { UpdateEventRuleCommandInput, UpdateEventRuleCommandOutput } from "./commands/UpdateEventRuleCommand";
22
+ import { UpdateNotificationConfigurationCommandInput, UpdateNotificationConfigurationCommandOutput } from "./commands/UpdateNotificationConfigurationCommand";
23
+ import { NotificationsClient } from "./NotificationsClient";
24
+ export interface Notifications {
25
+ /**
26
+ * @see {@link AssociateChannelCommand}
27
+ */
28
+ associateChannel(args: AssociateChannelCommandInput, options?: __HttpHandlerOptions): Promise<AssociateChannelCommandOutput>;
29
+ associateChannel(args: AssociateChannelCommandInput, cb: (err: any, data?: AssociateChannelCommandOutput) => void): void;
30
+ associateChannel(args: AssociateChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateChannelCommandOutput) => void): void;
31
+ /**
32
+ * @see {@link CreateEventRuleCommand}
33
+ */
34
+ createEventRule(args: CreateEventRuleCommandInput, options?: __HttpHandlerOptions): Promise<CreateEventRuleCommandOutput>;
35
+ createEventRule(args: CreateEventRuleCommandInput, cb: (err: any, data?: CreateEventRuleCommandOutput) => void): void;
36
+ createEventRule(args: CreateEventRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateEventRuleCommandOutput) => void): void;
37
+ /**
38
+ * @see {@link CreateNotificationConfigurationCommand}
39
+ */
40
+ createNotificationConfiguration(args: CreateNotificationConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<CreateNotificationConfigurationCommandOutput>;
41
+ createNotificationConfiguration(args: CreateNotificationConfigurationCommandInput, cb: (err: any, data?: CreateNotificationConfigurationCommandOutput) => void): void;
42
+ createNotificationConfiguration(args: CreateNotificationConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateNotificationConfigurationCommandOutput) => void): void;
43
+ /**
44
+ * @see {@link DeleteEventRuleCommand}
45
+ */
46
+ deleteEventRule(args: DeleteEventRuleCommandInput, options?: __HttpHandlerOptions): Promise<DeleteEventRuleCommandOutput>;
47
+ deleteEventRule(args: DeleteEventRuleCommandInput, cb: (err: any, data?: DeleteEventRuleCommandOutput) => void): void;
48
+ deleteEventRule(args: DeleteEventRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteEventRuleCommandOutput) => void): void;
49
+ /**
50
+ * @see {@link DeleteNotificationConfigurationCommand}
51
+ */
52
+ deleteNotificationConfiguration(args: DeleteNotificationConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteNotificationConfigurationCommandOutput>;
53
+ deleteNotificationConfiguration(args: DeleteNotificationConfigurationCommandInput, cb: (err: any, data?: DeleteNotificationConfigurationCommandOutput) => void): void;
54
+ deleteNotificationConfiguration(args: DeleteNotificationConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteNotificationConfigurationCommandOutput) => void): void;
55
+ /**
56
+ * @see {@link DeregisterNotificationHubCommand}
57
+ */
58
+ deregisterNotificationHub(args: DeregisterNotificationHubCommandInput, options?: __HttpHandlerOptions): Promise<DeregisterNotificationHubCommandOutput>;
59
+ deregisterNotificationHub(args: DeregisterNotificationHubCommandInput, cb: (err: any, data?: DeregisterNotificationHubCommandOutput) => void): void;
60
+ deregisterNotificationHub(args: DeregisterNotificationHubCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeregisterNotificationHubCommandOutput) => void): void;
61
+ /**
62
+ * @see {@link DisassociateChannelCommand}
63
+ */
64
+ disassociateChannel(args: DisassociateChannelCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateChannelCommandOutput>;
65
+ disassociateChannel(args: DisassociateChannelCommandInput, cb: (err: any, data?: DisassociateChannelCommandOutput) => void): void;
66
+ disassociateChannel(args: DisassociateChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateChannelCommandOutput) => void): void;
67
+ /**
68
+ * @see {@link GetEventRuleCommand}
69
+ */
70
+ getEventRule(args: GetEventRuleCommandInput, options?: __HttpHandlerOptions): Promise<GetEventRuleCommandOutput>;
71
+ getEventRule(args: GetEventRuleCommandInput, cb: (err: any, data?: GetEventRuleCommandOutput) => void): void;
72
+ getEventRule(args: GetEventRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEventRuleCommandOutput) => void): void;
73
+ /**
74
+ * @see {@link GetNotificationConfigurationCommand}
75
+ */
76
+ getNotificationConfiguration(args: GetNotificationConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<GetNotificationConfigurationCommandOutput>;
77
+ getNotificationConfiguration(args: GetNotificationConfigurationCommandInput, cb: (err: any, data?: GetNotificationConfigurationCommandOutput) => void): void;
78
+ getNotificationConfiguration(args: GetNotificationConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetNotificationConfigurationCommandOutput) => void): void;
79
+ /**
80
+ * @see {@link GetNotificationEventCommand}
81
+ */
82
+ getNotificationEvent(args: GetNotificationEventCommandInput, options?: __HttpHandlerOptions): Promise<GetNotificationEventCommandOutput>;
83
+ getNotificationEvent(args: GetNotificationEventCommandInput, cb: (err: any, data?: GetNotificationEventCommandOutput) => void): void;
84
+ getNotificationEvent(args: GetNotificationEventCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetNotificationEventCommandOutput) => void): void;
85
+ /**
86
+ * @see {@link ListChannelsCommand}
87
+ */
88
+ listChannels(args: ListChannelsCommandInput, options?: __HttpHandlerOptions): Promise<ListChannelsCommandOutput>;
89
+ listChannels(args: ListChannelsCommandInput, cb: (err: any, data?: ListChannelsCommandOutput) => void): void;
90
+ listChannels(args: ListChannelsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListChannelsCommandOutput) => void): void;
91
+ /**
92
+ * @see {@link ListEventRulesCommand}
93
+ */
94
+ listEventRules(args: ListEventRulesCommandInput, options?: __HttpHandlerOptions): Promise<ListEventRulesCommandOutput>;
95
+ listEventRules(args: ListEventRulesCommandInput, cb: (err: any, data?: ListEventRulesCommandOutput) => void): void;
96
+ listEventRules(args: ListEventRulesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEventRulesCommandOutput) => void): void;
97
+ /**
98
+ * @see {@link ListNotificationConfigurationsCommand}
99
+ */
100
+ listNotificationConfigurations(): Promise<ListNotificationConfigurationsCommandOutput>;
101
+ listNotificationConfigurations(args: ListNotificationConfigurationsCommandInput, options?: __HttpHandlerOptions): Promise<ListNotificationConfigurationsCommandOutput>;
102
+ listNotificationConfigurations(args: ListNotificationConfigurationsCommandInput, cb: (err: any, data?: ListNotificationConfigurationsCommandOutput) => void): void;
103
+ listNotificationConfigurations(args: ListNotificationConfigurationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListNotificationConfigurationsCommandOutput) => void): void;
104
+ /**
105
+ * @see {@link ListNotificationEventsCommand}
106
+ */
107
+ listNotificationEvents(): Promise<ListNotificationEventsCommandOutput>;
108
+ listNotificationEvents(args: ListNotificationEventsCommandInput, options?: __HttpHandlerOptions): Promise<ListNotificationEventsCommandOutput>;
109
+ listNotificationEvents(args: ListNotificationEventsCommandInput, cb: (err: any, data?: ListNotificationEventsCommandOutput) => void): void;
110
+ listNotificationEvents(args: ListNotificationEventsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListNotificationEventsCommandOutput) => void): void;
111
+ /**
112
+ * @see {@link ListNotificationHubsCommand}
113
+ */
114
+ listNotificationHubs(): Promise<ListNotificationHubsCommandOutput>;
115
+ listNotificationHubs(args: ListNotificationHubsCommandInput, options?: __HttpHandlerOptions): Promise<ListNotificationHubsCommandOutput>;
116
+ listNotificationHubs(args: ListNotificationHubsCommandInput, cb: (err: any, data?: ListNotificationHubsCommandOutput) => void): void;
117
+ listNotificationHubs(args: ListNotificationHubsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListNotificationHubsCommandOutput) => void): void;
118
+ /**
119
+ * @see {@link ListTagsForResourceCommand}
120
+ */
121
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
122
+ listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
123
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
124
+ /**
125
+ * @see {@link RegisterNotificationHubCommand}
126
+ */
127
+ registerNotificationHub(args: RegisterNotificationHubCommandInput, options?: __HttpHandlerOptions): Promise<RegisterNotificationHubCommandOutput>;
128
+ registerNotificationHub(args: RegisterNotificationHubCommandInput, cb: (err: any, data?: RegisterNotificationHubCommandOutput) => void): void;
129
+ registerNotificationHub(args: RegisterNotificationHubCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterNotificationHubCommandOutput) => void): void;
130
+ /**
131
+ * @see {@link TagResourceCommand}
132
+ */
133
+ tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
134
+ tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
135
+ tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
136
+ /**
137
+ * @see {@link UntagResourceCommand}
138
+ */
139
+ untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
140
+ untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
141
+ untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
142
+ /**
143
+ * @see {@link UpdateEventRuleCommand}
144
+ */
145
+ updateEventRule(args: UpdateEventRuleCommandInput, options?: __HttpHandlerOptions): Promise<UpdateEventRuleCommandOutput>;
146
+ updateEventRule(args: UpdateEventRuleCommandInput, cb: (err: any, data?: UpdateEventRuleCommandOutput) => void): void;
147
+ updateEventRule(args: UpdateEventRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateEventRuleCommandOutput) => void): void;
148
+ /**
149
+ * @see {@link UpdateNotificationConfigurationCommand}
150
+ */
151
+ updateNotificationConfiguration(args: UpdateNotificationConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateNotificationConfigurationCommandOutput>;
152
+ updateNotificationConfiguration(args: UpdateNotificationConfigurationCommandInput, cb: (err: any, data?: UpdateNotificationConfigurationCommandOutput) => void): void;
153
+ updateNotificationConfiguration(args: UpdateNotificationConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateNotificationConfigurationCommandOutput) => void): void;
154
+ }
155
+ /**
156
+ * <p>The <i>AWS User Notifications API Reference</i> provides descriptions, API request parameters, and the JSON response for each of the User Notification API actions.</p>
157
+ * <p>User Notification control APIs are currently available in US East (Virginia) - <code>us-east-1</code>.</p>
158
+ * <p>
159
+ * <a href="https://docs.aws.amazon.com/notifications/latest/APIReference/API_GetNotificationEvent.html">GetNotificationEvent</a>
160
+ * and <a href="https://docs.aws.amazon.com/notifications/latest/APIReference/API_ListNotificationEvents.html">ListNotificationEvents</a> APIs are currently available in
161
+ * <a href="https://docs.aws.amazon.com/notifications/latest/userguide/supported-regions.html">commercial partition Regions</a> and only return notifications stored in the same Region in which they're called.</p>
162
+ * <p>The User Notifications console can only be used in US East (Virginia). Your data however, is stored in each Region chosen as a
163
+ * <a href="https://docs.aws.amazon.com/notifications/latest/userguide/notification-hubs.html&gt;">notification hub</a> in addition to US East (Virginia).</p>
164
+ * @public
165
+ */
166
+ export declare class Notifications extends NotificationsClient implements Notifications {
167
+ }
@@ -0,0 +1,197 @@
1
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
2
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
3
+ import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
4
+ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
5
+ import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
6
+ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
7
+ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
8
+ import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
+ import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
+ import { AssociateChannelCommandInput, AssociateChannelCommandOutput } from "./commands/AssociateChannelCommand";
11
+ import { CreateEventRuleCommandInput, CreateEventRuleCommandOutput } from "./commands/CreateEventRuleCommand";
12
+ import { CreateNotificationConfigurationCommandInput, CreateNotificationConfigurationCommandOutput } from "./commands/CreateNotificationConfigurationCommand";
13
+ import { DeleteEventRuleCommandInput, DeleteEventRuleCommandOutput } from "./commands/DeleteEventRuleCommand";
14
+ import { DeleteNotificationConfigurationCommandInput, DeleteNotificationConfigurationCommandOutput } from "./commands/DeleteNotificationConfigurationCommand";
15
+ import { DeregisterNotificationHubCommandInput, DeregisterNotificationHubCommandOutput } from "./commands/DeregisterNotificationHubCommand";
16
+ import { DisassociateChannelCommandInput, DisassociateChannelCommandOutput } from "./commands/DisassociateChannelCommand";
17
+ import { GetEventRuleCommandInput, GetEventRuleCommandOutput } from "./commands/GetEventRuleCommand";
18
+ import { GetNotificationConfigurationCommandInput, GetNotificationConfigurationCommandOutput } from "./commands/GetNotificationConfigurationCommand";
19
+ import { GetNotificationEventCommandInput, GetNotificationEventCommandOutput } from "./commands/GetNotificationEventCommand";
20
+ import { ListChannelsCommandInput, ListChannelsCommandOutput } from "./commands/ListChannelsCommand";
21
+ import { ListEventRulesCommandInput, ListEventRulesCommandOutput } from "./commands/ListEventRulesCommand";
22
+ import { ListNotificationConfigurationsCommandInput, ListNotificationConfigurationsCommandOutput } from "./commands/ListNotificationConfigurationsCommand";
23
+ import { ListNotificationEventsCommandInput, ListNotificationEventsCommandOutput } from "./commands/ListNotificationEventsCommand";
24
+ import { ListNotificationHubsCommandInput, ListNotificationHubsCommandOutput } from "./commands/ListNotificationHubsCommand";
25
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
26
+ import { RegisterNotificationHubCommandInput, RegisterNotificationHubCommandOutput } from "./commands/RegisterNotificationHubCommand";
27
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
28
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
29
+ import { UpdateEventRuleCommandInput, UpdateEventRuleCommandOutput } from "./commands/UpdateEventRuleCommand";
30
+ import { UpdateNotificationConfigurationCommandInput, UpdateNotificationConfigurationCommandOutput } from "./commands/UpdateNotificationConfigurationCommand";
31
+ import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
32
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
33
+ export { __Client };
34
+ /**
35
+ * @public
36
+ */
37
+ export type ServiceInputTypes = AssociateChannelCommandInput | CreateEventRuleCommandInput | CreateNotificationConfigurationCommandInput | DeleteEventRuleCommandInput | DeleteNotificationConfigurationCommandInput | DeregisterNotificationHubCommandInput | DisassociateChannelCommandInput | GetEventRuleCommandInput | GetNotificationConfigurationCommandInput | GetNotificationEventCommandInput | ListChannelsCommandInput | ListEventRulesCommandInput | ListNotificationConfigurationsCommandInput | ListNotificationEventsCommandInput | ListNotificationHubsCommandInput | ListTagsForResourceCommandInput | RegisterNotificationHubCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateEventRuleCommandInput | UpdateNotificationConfigurationCommandInput;
38
+ /**
39
+ * @public
40
+ */
41
+ export type ServiceOutputTypes = AssociateChannelCommandOutput | CreateEventRuleCommandOutput | CreateNotificationConfigurationCommandOutput | DeleteEventRuleCommandOutput | DeleteNotificationConfigurationCommandOutput | DeregisterNotificationHubCommandOutput | DisassociateChannelCommandOutput | GetEventRuleCommandOutput | GetNotificationConfigurationCommandOutput | GetNotificationEventCommandOutput | ListChannelsCommandOutput | ListEventRulesCommandOutput | ListNotificationConfigurationsCommandOutput | ListNotificationEventsCommandOutput | ListNotificationHubsCommandOutput | ListTagsForResourceCommandOutput | RegisterNotificationHubCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateEventRuleCommandOutput | UpdateNotificationConfigurationCommandOutput;
42
+ /**
43
+ * @public
44
+ */
45
+ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
46
+ /**
47
+ * The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
48
+ */
49
+ requestHandler?: __HttpHandlerUserInput;
50
+ /**
51
+ * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
52
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
53
+ * @internal
54
+ */
55
+ sha256?: __ChecksumConstructor | __HashConstructor;
56
+ /**
57
+ * The function that will be used to convert strings into HTTP endpoints.
58
+ * @internal
59
+ */
60
+ urlParser?: __UrlParser;
61
+ /**
62
+ * A function that can calculate the length of a request body.
63
+ * @internal
64
+ */
65
+ bodyLengthChecker?: __BodyLengthCalculator;
66
+ /**
67
+ * A function that converts a stream into an array of bytes.
68
+ * @internal
69
+ */
70
+ streamCollector?: __StreamCollector;
71
+ /**
72
+ * The function that will be used to convert a base64-encoded string to a byte array.
73
+ * @internal
74
+ */
75
+ base64Decoder?: __Decoder;
76
+ /**
77
+ * The function that will be used to convert binary data to a base64-encoded string.
78
+ * @internal
79
+ */
80
+ base64Encoder?: __Encoder;
81
+ /**
82
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
83
+ * @internal
84
+ */
85
+ utf8Decoder?: __Decoder;
86
+ /**
87
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
88
+ * @internal
89
+ */
90
+ utf8Encoder?: __Encoder;
91
+ /**
92
+ * The runtime environment.
93
+ * @internal
94
+ */
95
+ runtime?: string;
96
+ /**
97
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
98
+ * trait of an operation.
99
+ */
100
+ disableHostPrefix?: boolean;
101
+ /**
102
+ * Unique service identifier.
103
+ * @internal
104
+ */
105
+ serviceId?: string;
106
+ /**
107
+ * Enables IPv6/IPv4 dualstack endpoint.
108
+ */
109
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
110
+ /**
111
+ * Enables FIPS compatible endpoints.
112
+ */
113
+ useFipsEndpoint?: boolean | __Provider<boolean>;
114
+ /**
115
+ * The AWS region to which this client will send requests
116
+ */
117
+ region?: string | __Provider<string>;
118
+ /**
119
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
120
+ * @internal
121
+ */
122
+ defaultUserAgentProvider?: Provider<__UserAgent>;
123
+ /**
124
+ * Default credentials provider; Not available in browser runtime.
125
+ * @deprecated
126
+ * @internal
127
+ */
128
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
129
+ /**
130
+ * Value for how many times a request will be made at most in case of retry.
131
+ */
132
+ maxAttempts?: number | __Provider<number>;
133
+ /**
134
+ * Specifies which retry algorithm to use.
135
+ * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
136
+ *
137
+ */
138
+ retryMode?: string | __Provider<string>;
139
+ /**
140
+ * Optional logger for logging debug/info/warn/error.
141
+ */
142
+ logger?: __Logger;
143
+ /**
144
+ * Optional extensions
145
+ */
146
+ extensions?: RuntimeExtension[];
147
+ /**
148
+ * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
149
+ */
150
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
151
+ }
152
+ /**
153
+ * @public
154
+ */
155
+ export type NotificationsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
156
+ /**
157
+ * @public
158
+ *
159
+ * The configuration interface of NotificationsClient class constructor that set the region, credentials and other options.
160
+ */
161
+ export interface NotificationsClientConfig extends NotificationsClientConfigType {
162
+ }
163
+ /**
164
+ * @public
165
+ */
166
+ export type NotificationsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
167
+ /**
168
+ * @public
169
+ *
170
+ * The resolved configuration interface of NotificationsClient class. This is resolved and normalized from the {@link NotificationsClientConfig | constructor configuration interface}.
171
+ */
172
+ export interface NotificationsClientResolvedConfig extends NotificationsClientResolvedConfigType {
173
+ }
174
+ /**
175
+ * <p>The <i>AWS User Notifications API Reference</i> provides descriptions, API request parameters, and the JSON response for each of the User Notification API actions.</p>
176
+ * <p>User Notification control APIs are currently available in US East (Virginia) - <code>us-east-1</code>.</p>
177
+ * <p>
178
+ * <a href="https://docs.aws.amazon.com/notifications/latest/APIReference/API_GetNotificationEvent.html">GetNotificationEvent</a>
179
+ * and <a href="https://docs.aws.amazon.com/notifications/latest/APIReference/API_ListNotificationEvents.html">ListNotificationEvents</a> APIs are currently available in
180
+ * <a href="https://docs.aws.amazon.com/notifications/latest/userguide/supported-regions.html">commercial partition Regions</a> and only return notifications stored in the same Region in which they're called.</p>
181
+ * <p>The User Notifications console can only be used in US East (Virginia). Your data however, is stored in each Region chosen as a
182
+ * <a href="https://docs.aws.amazon.com/notifications/latest/userguide/notification-hubs.html&gt;">notification hub</a> in addition to US East (Virginia).</p>
183
+ * @public
184
+ */
185
+ export declare class NotificationsClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, NotificationsClientResolvedConfig> {
186
+ /**
187
+ * The resolved configuration of NotificationsClient class. This is resolved and normalized from the {@link NotificationsClientConfig | constructor configuration interface}.
188
+ */
189
+ readonly config: NotificationsClientResolvedConfig;
190
+ constructor(...[configuration]: __CheckOptionalClientConfig<NotificationsClientConfig>);
191
+ /**
192
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
193
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
194
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
195
+ */
196
+ destroy(): void;
197
+ }
@@ -0,0 +1,29 @@
1
+ import { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
2
+ import { NotificationsHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
3
+ /**
4
+ * @internal
5
+ */
6
+ export interface HttpAuthExtensionConfiguration {
7
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
8
+ httpAuthSchemes(): HttpAuthScheme[];
9
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider: NotificationsHttpAuthSchemeProvider): void;
10
+ httpAuthSchemeProvider(): NotificationsHttpAuthSchemeProvider;
11
+ setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
12
+ credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
13
+ }
14
+ /**
15
+ * @internal
16
+ */
17
+ export type HttpAuthRuntimeConfig = Partial<{
18
+ httpAuthSchemes: HttpAuthScheme[];
19
+ httpAuthSchemeProvider: NotificationsHttpAuthSchemeProvider;
20
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
21
+ }>;
22
+ /**
23
+ * @internal
24
+ */
25
+ export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
26
+ /**
27
+ * @internal
28
+ */
29
+ export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
@@ -0,0 +1,61 @@
1
+ import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
2
+ import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider } from "@smithy/types";
3
+ import { NotificationsClientResolvedConfig } from "../NotificationsClient";
4
+ /**
5
+ * @internal
6
+ */
7
+ export interface NotificationsHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
8
+ region?: string;
9
+ }
10
+ /**
11
+ * @internal
12
+ */
13
+ export interface NotificationsHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<NotificationsClientResolvedConfig, HandlerExecutionContext, NotificationsHttpAuthSchemeParameters, object> {
14
+ }
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const defaultNotificationsHttpAuthSchemeParametersProvider: (config: NotificationsClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<NotificationsHttpAuthSchemeParameters>;
19
+ /**
20
+ * @internal
21
+ */
22
+ export interface NotificationsHttpAuthSchemeProvider extends HttpAuthSchemeProvider<NotificationsHttpAuthSchemeParameters> {
23
+ }
24
+ /**
25
+ * @internal
26
+ */
27
+ export declare const defaultNotificationsHttpAuthSchemeProvider: NotificationsHttpAuthSchemeProvider;
28
+ /**
29
+ * @internal
30
+ */
31
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
32
+ /**
33
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
34
+ * @internal
35
+ */
36
+ httpAuthSchemes?: HttpAuthScheme[];
37
+ /**
38
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
39
+ * @internal
40
+ */
41
+ httpAuthSchemeProvider?: NotificationsHttpAuthSchemeProvider;
42
+ }
43
+ /**
44
+ * @internal
45
+ */
46
+ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
47
+ /**
48
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
49
+ * @internal
50
+ */
51
+ readonly httpAuthSchemes: HttpAuthScheme[];
52
+ /**
53
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
54
+ * @internal
55
+ */
56
+ readonly httpAuthSchemeProvider: NotificationsHttpAuthSchemeProvider;
57
+ }
58
+ /**
59
+ * @internal
60
+ */
61
+ export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;