@aws-sdk/client-codestar-notifications 3.34.0 → 3.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/CodestarNotifications.js +0 -87
  3. package/dist-cjs/CodestarNotificationsClient.js +35 -0
  4. package/{dist/cjs → dist-cjs}/commands/CreateNotificationRuleCommand.js +2 -29
  5. package/{dist/cjs → dist-cjs}/commands/DeleteNotificationRuleCommand.js +2 -27
  6. package/{dist/cjs → dist-cjs}/commands/DeleteTargetCommand.js +2 -27
  7. package/{dist/cjs → dist-cjs}/commands/DescribeNotificationRuleCommand.js +2 -27
  8. package/{dist/cjs → dist-cjs}/commands/ListEventTypesCommand.js +2 -27
  9. package/{dist/cjs → dist-cjs}/commands/ListNotificationRulesCommand.js +2 -27
  10. package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -27
  11. package/{dist/cjs → dist-cjs}/commands/ListTargetsCommand.js +2 -27
  12. package/{dist/cjs → dist-cjs}/commands/SubscribeCommand.js +2 -29
  13. package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -27
  14. package/{dist/cjs → dist-cjs}/commands/UnsubscribeCommand.js +2 -29
  15. package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -28
  16. package/{dist/cjs → dist-cjs}/commands/UpdateNotificationRuleCommand.js +2 -32
  17. package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
  18. package/{dist/cjs → dist-cjs}/index.js +0 -1
  19. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  20. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -124
  21. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  22. package/{dist/cjs → dist-cjs}/pagination/ListEventTypesPaginator.js +0 -11
  23. package/{dist/cjs → dist-cjs}/pagination/ListNotificationRulesPaginator.js +0 -11
  24. package/{dist/cjs → dist-cjs}/pagination/ListTargetsPaginator.js +0 -11
  25. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +13 -19
  26. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  27. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  28. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  29. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  30. package/{dist/es → dist-es}/CodestarNotifications.js +0 -1
  31. package/{dist/es → dist-es}/CodestarNotificationsClient.js +1 -2
  32. package/{dist/es → dist-es}/commands/CreateNotificationRuleCommand.js +2 -3
  33. package/{dist/es → dist-es}/commands/DeleteNotificationRuleCommand.js +2 -3
  34. package/{dist/es → dist-es}/commands/DeleteTargetCommand.js +2 -3
  35. package/{dist/es → dist-es}/commands/DescribeNotificationRuleCommand.js +2 -3
  36. package/{dist/es → dist-es}/commands/ListEventTypesCommand.js +2 -3
  37. package/{dist/es → dist-es}/commands/ListNotificationRulesCommand.js +2 -3
  38. package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +2 -3
  39. package/{dist/es → dist-es}/commands/ListTargetsCommand.js +2 -3
  40. package/{dist/es → dist-es}/commands/SubscribeCommand.js +2 -3
  41. package/{dist/es → dist-es}/commands/TagResourceCommand.js +2 -3
  42. package/{dist/es → dist-es}/commands/UnsubscribeCommand.js +2 -3
  43. package/{dist/es → dist-es}/commands/UntagResourceCommand.js +2 -3
  44. package/{dist/es → dist-es}/commands/UpdateNotificationRuleCommand.js +2 -3
  45. package/{dist/es → dist-es}/endpoints.js +1 -2
  46. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  47. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  48. package/{dist/es → dist-es}/models/models_0.js +0 -1
  49. package/dist-es/pagination/Interfaces.js +1 -0
  50. package/{dist/es → dist-es}/pagination/ListEventTypesPaginator.js +0 -1
  51. package/{dist/es → dist-es}/pagination/ListNotificationRulesPaginator.js +0 -1
  52. package/{dist/es → dist-es}/pagination/ListTargetsPaginator.js +0 -1
  53. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +0 -1
  54. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
  55. package/{dist/es → dist-es}/runtimeConfig.js +1 -2
  56. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
  57. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
  58. package/{dist/types → dist-types}/CodestarNotifications.d.ts +1 -1
  59. package/{dist/types → dist-types}/CodestarNotificationsClient.d.ts +8 -8
  60. package/{dist/types → dist-types}/commands/CreateNotificationRuleCommand.d.ts +2 -2
  61. package/{dist/types → dist-types}/commands/DeleteNotificationRuleCommand.d.ts +2 -2
  62. package/{dist/types → dist-types}/commands/DeleteTargetCommand.d.ts +2 -2
  63. package/{dist/types → dist-types}/commands/DescribeNotificationRuleCommand.d.ts +2 -2
  64. package/{dist/types → dist-types}/commands/ListEventTypesCommand.d.ts +2 -2
  65. package/{dist/types → dist-types}/commands/ListNotificationRulesCommand.d.ts +2 -2
  66. package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
  67. package/{dist/types → dist-types}/commands/ListTargetsCommand.d.ts +2 -2
  68. package/{dist/types → dist-types}/commands/SubscribeCommand.d.ts +2 -2
  69. package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
  70. package/{dist/types → dist-types}/commands/UnsubscribeCommand.d.ts +2 -2
  71. package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
  72. package/{dist/types → dist-types}/commands/UpdateNotificationRuleCommand.d.ts +2 -2
  73. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  74. package/{index.ts → dist-types/index.d.ts} +0 -0
  75. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  76. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  77. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  78. package/{dist/types → dist-types}/pagination/ListEventTypesPaginator.d.ts +1 -1
  79. package/{dist/types → dist-types}/pagination/ListNotificationRulesPaginator.d.ts +1 -1
  80. package/{dist/types → dist-types}/pagination/ListTargetsPaginator.d.ts +1 -1
  81. package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
  82. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  83. package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
  84. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  85. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  86. package/{dist/types → dist-types}/ts3.4/CodestarNotifications.d.ts +15 -138
  87. package/dist-types/ts3.4/CodestarNotificationsClient.d.ts +80 -0
  88. package/dist-types/ts3.4/commands/CreateNotificationRuleCommand.d.ts +17 -0
  89. package/{dist/types → dist-types}/ts3.4/commands/DeleteNotificationRuleCommand.d.ts +4 -22
  90. package/dist-types/ts3.4/commands/DeleteTargetCommand.d.ts +17 -0
  91. package/{dist/types → dist-types}/ts3.4/commands/DescribeNotificationRuleCommand.d.ts +4 -22
  92. package/dist-types/ts3.4/commands/ListEventTypesCommand.d.ts +17 -0
  93. package/{dist/types → dist-types}/ts3.4/commands/ListNotificationRulesCommand.d.ts +4 -22
  94. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
  95. package/dist-types/ts3.4/commands/ListTargetsCommand.d.ts +17 -0
  96. package/dist-types/ts3.4/commands/SubscribeCommand.d.ts +17 -0
  97. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  98. package/dist-types/ts3.4/commands/UnsubscribeCommand.d.ts +17 -0
  99. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  100. package/dist-types/ts3.4/commands/UpdateNotificationRuleCommand.d.ts +17 -0
  101. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  102. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  103. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  104. package/dist-types/ts3.4/models/models_0.d.ts +480 -0
  105. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  106. package/{dist/types → dist-types}/ts3.4/pagination/ListEventTypesPaginator.d.ts +1 -1
  107. package/{dist/types → dist-types}/ts3.4/pagination/ListNotificationRulesPaginator.d.ts +1 -1
  108. package/{dist/types → dist-types}/ts3.4/pagination/ListTargetsPaginator.d.ts +1 -1
  109. package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  110. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  111. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
  112. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  113. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  114. package/package.json +45 -42
  115. package/CodestarNotifications.ts +0 -540
  116. package/CodestarNotificationsClient.ts +0 -375
  117. package/commands/CreateNotificationRuleCommand.ts +0 -100
  118. package/commands/DeleteNotificationRuleCommand.ts +0 -98
  119. package/commands/DeleteTargetCommand.ts +0 -98
  120. package/commands/DescribeNotificationRuleCommand.ts +0 -98
  121. package/commands/ListEventTypesCommand.ts +0 -98
  122. package/commands/ListNotificationRulesCommand.ts +0 -98
  123. package/commands/ListTagsForResourceCommand.ts +0 -98
  124. package/commands/ListTargetsCommand.ts +0 -98
  125. package/commands/SubscribeCommand.ts +0 -100
  126. package/commands/TagResourceCommand.ts +0 -98
  127. package/commands/UnsubscribeCommand.ts +0 -100
  128. package/commands/UntagResourceCommand.ts +0 -99
  129. package/commands/UpdateNotificationRuleCommand.ts +0 -103
  130. package/dist/cjs/CodestarNotifications.js.map +0 -1
  131. package/dist/cjs/CodestarNotificationsClient.js +0 -127
  132. package/dist/cjs/CodestarNotificationsClient.js.map +0 -1
  133. package/dist/cjs/commands/CreateNotificationRuleCommand.js.map +0 -1
  134. package/dist/cjs/commands/DeleteNotificationRuleCommand.js.map +0 -1
  135. package/dist/cjs/commands/DeleteTargetCommand.js.map +0 -1
  136. package/dist/cjs/commands/DescribeNotificationRuleCommand.js.map +0 -1
  137. package/dist/cjs/commands/ListEventTypesCommand.js.map +0 -1
  138. package/dist/cjs/commands/ListNotificationRulesCommand.js.map +0 -1
  139. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  140. package/dist/cjs/commands/ListTargetsCommand.js.map +0 -1
  141. package/dist/cjs/commands/SubscribeCommand.js.map +0 -1
  142. package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
  143. package/dist/cjs/commands/UnsubscribeCommand.js.map +0 -1
  144. package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
  145. package/dist/cjs/commands/UpdateNotificationRuleCommand.js.map +0 -1
  146. package/dist/cjs/endpoints.js.map +0 -1
  147. package/dist/cjs/index.js.map +0 -1
  148. package/dist/cjs/models/index.js.map +0 -1
  149. package/dist/cjs/models/models_0.js.map +0 -1
  150. package/dist/cjs/package.json +0 -93
  151. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  152. package/dist/cjs/pagination/ListEventTypesPaginator.js.map +0 -1
  153. package/dist/cjs/pagination/ListNotificationRulesPaginator.js.map +0 -1
  154. package/dist/cjs/pagination/ListTargetsPaginator.js.map +0 -1
  155. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  156. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  157. package/dist/cjs/runtimeConfig.js.map +0 -1
  158. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  159. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  160. package/dist/es/CodestarNotifications.js.map +0 -1
  161. package/dist/es/CodestarNotificationsClient.js.map +0 -1
  162. package/dist/es/commands/CreateNotificationRuleCommand.js.map +0 -1
  163. package/dist/es/commands/DeleteNotificationRuleCommand.js.map +0 -1
  164. package/dist/es/commands/DeleteTargetCommand.js.map +0 -1
  165. package/dist/es/commands/DescribeNotificationRuleCommand.js.map +0 -1
  166. package/dist/es/commands/ListEventTypesCommand.js.map +0 -1
  167. package/dist/es/commands/ListNotificationRulesCommand.js.map +0 -1
  168. package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
  169. package/dist/es/commands/ListTargetsCommand.js.map +0 -1
  170. package/dist/es/commands/SubscribeCommand.js.map +0 -1
  171. package/dist/es/commands/TagResourceCommand.js.map +0 -1
  172. package/dist/es/commands/UnsubscribeCommand.js.map +0 -1
  173. package/dist/es/commands/UntagResourceCommand.js.map +0 -1
  174. package/dist/es/commands/UpdateNotificationRuleCommand.js.map +0 -1
  175. package/dist/es/endpoints.js.map +0 -1
  176. package/dist/es/index.js +0 -21
  177. package/dist/es/index.js.map +0 -1
  178. package/dist/es/models/index.js +0 -2
  179. package/dist/es/models/index.js.map +0 -1
  180. package/dist/es/models/models_0.js.map +0 -1
  181. package/dist/es/package.json +0 -93
  182. package/dist/es/pagination/Interfaces.js +0 -2
  183. package/dist/es/pagination/Interfaces.js.map +0 -1
  184. package/dist/es/pagination/ListEventTypesPaginator.js.map +0 -1
  185. package/dist/es/pagination/ListNotificationRulesPaginator.js.map +0 -1
  186. package/dist/es/pagination/ListTargetsPaginator.js.map +0 -1
  187. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  188. package/dist/es/runtimeConfig.browser.js.map +0 -1
  189. package/dist/es/runtimeConfig.js.map +0 -1
  190. package/dist/es/runtimeConfig.native.js.map +0 -1
  191. package/dist/es/runtimeConfig.shared.js.map +0 -1
  192. package/dist/types/ts3.4/CodestarNotificationsClient.d.ts +0 -228
  193. package/dist/types/ts3.4/commands/CreateNotificationRuleCommand.d.ts +0 -37
  194. package/dist/types/ts3.4/commands/DeleteTargetCommand.d.ts +0 -35
  195. package/dist/types/ts3.4/commands/ListEventTypesCommand.d.ts +0 -35
  196. package/dist/types/ts3.4/commands/ListTagsForResourceCommand.d.ts +0 -35
  197. package/dist/types/ts3.4/commands/ListTargetsCommand.d.ts +0 -35
  198. package/dist/types/ts3.4/commands/SubscribeCommand.d.ts +0 -37
  199. package/dist/types/ts3.4/commands/TagResourceCommand.d.ts +0 -35
  200. package/dist/types/ts3.4/commands/UnsubscribeCommand.d.ts +0 -37
  201. package/dist/types/ts3.4/commands/UntagResourceCommand.d.ts +0 -36
  202. package/dist/types/ts3.4/commands/UpdateNotificationRuleCommand.d.ts +0 -40
  203. package/dist/types/ts3.4/models/models_0.d.ts +0 -804
  204. package/endpoints.ts +0 -57
  205. package/jest.config.js +0 -4
  206. package/models/models_0.ts +0 -1021
  207. package/pagination/Interfaces.ts +0 -7
  208. package/pagination/ListEventTypesPaginator.ts +0 -58
  209. package/pagination/ListNotificationRulesPaginator.ts +0 -58
  210. package/pagination/ListTargetsPaginator.ts +0 -54
  211. package/protocols/Aws_restJson1.ts +0 -1703
  212. package/runtimeConfig.browser.ts +0 -40
  213. package/runtimeConfig.native.ts +0 -16
  214. package/runtimeConfig.shared.ts +0 -16
  215. package/runtimeConfig.ts +0 -45
  216. package/tsconfig.es.json +0 -10
  217. package/tsconfig.json +0 -31
  218. package/tsconfig.types.json +0 -8
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-codestar-notifications",
3
3
  "description": "AWS SDK for JavaScript Codestar Notifications Client for Node.js, Browser and React Native",
4
- "version": "3.34.0",
4
+ "version": "3.37.0",
5
5
  "scripts": {
6
6
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
7
  "build:cjs": "tsc -p tsconfig.json",
@@ -11,55 +11,49 @@
11
11
  "clean": "yarn clean:dist && yarn clean:docs",
12
12
  "clean:dist": "rimraf ./dist",
13
13
  "clean:docs": "rimraf ./docs",
14
- "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4",
14
+ "downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
15
15
  "test": "exit 0"
16
16
  },
17
- "main": "./dist/cjs/index.js",
18
- "types": "./dist/types/index.d.ts",
19
- "module": "./dist/es/index.js",
20
- "browser": {
21
- "./runtimeConfig": "./runtimeConfig.browser"
22
- },
23
- "react-native": {
24
- "./runtimeConfig": "./runtimeConfig.native"
25
- },
17
+ "main": "./dist-cjs/index.js",
18
+ "types": "./dist-types/index.d.ts",
19
+ "module": "./dist-es/index.js",
26
20
  "sideEffects": false,
27
21
  "dependencies": {
28
22
  "@aws-crypto/sha256-browser": "^1.0.0",
29
23
  "@aws-crypto/sha256-js": "^1.0.0",
30
- "@aws-sdk/client-sts": "3.34.0",
31
- "@aws-sdk/config-resolver": "3.34.0",
32
- "@aws-sdk/credential-provider-node": "3.34.0",
33
- "@aws-sdk/fetch-http-handler": "3.34.0",
34
- "@aws-sdk/hash-node": "3.34.0",
35
- "@aws-sdk/invalid-dependency": "3.34.0",
36
- "@aws-sdk/middleware-content-length": "3.34.0",
37
- "@aws-sdk/middleware-host-header": "3.34.0",
38
- "@aws-sdk/middleware-logger": "3.34.0",
39
- "@aws-sdk/middleware-retry": "3.34.0",
40
- "@aws-sdk/middleware-serde": "3.34.0",
41
- "@aws-sdk/middleware-signing": "3.34.0",
42
- "@aws-sdk/middleware-stack": "3.34.0",
43
- "@aws-sdk/middleware-user-agent": "3.34.0",
44
- "@aws-sdk/node-config-provider": "3.34.0",
45
- "@aws-sdk/node-http-handler": "3.34.0",
46
- "@aws-sdk/protocol-http": "3.34.0",
47
- "@aws-sdk/smithy-client": "3.34.0",
48
- "@aws-sdk/types": "3.34.0",
49
- "@aws-sdk/url-parser": "3.34.0",
50
- "@aws-sdk/util-base64-browser": "3.34.0",
51
- "@aws-sdk/util-base64-node": "3.34.0",
52
- "@aws-sdk/util-body-length-browser": "3.34.0",
53
- "@aws-sdk/util-body-length-node": "3.34.0",
54
- "@aws-sdk/util-user-agent-browser": "3.34.0",
55
- "@aws-sdk/util-user-agent-node": "3.34.0",
56
- "@aws-sdk/util-utf8-browser": "3.34.0",
57
- "@aws-sdk/util-utf8-node": "3.34.0",
24
+ "@aws-sdk/client-sts": "3.37.0",
25
+ "@aws-sdk/config-resolver": "3.37.0",
26
+ "@aws-sdk/credential-provider-node": "3.37.0",
27
+ "@aws-sdk/fetch-http-handler": "3.37.0",
28
+ "@aws-sdk/hash-node": "3.37.0",
29
+ "@aws-sdk/invalid-dependency": "3.37.0",
30
+ "@aws-sdk/middleware-content-length": "3.37.0",
31
+ "@aws-sdk/middleware-host-header": "3.37.0",
32
+ "@aws-sdk/middleware-logger": "3.37.0",
33
+ "@aws-sdk/middleware-retry": "3.37.0",
34
+ "@aws-sdk/middleware-serde": "3.37.0",
35
+ "@aws-sdk/middleware-signing": "3.37.0",
36
+ "@aws-sdk/middleware-stack": "3.37.0",
37
+ "@aws-sdk/middleware-user-agent": "3.37.0",
38
+ "@aws-sdk/node-config-provider": "3.37.0",
39
+ "@aws-sdk/node-http-handler": "3.37.0",
40
+ "@aws-sdk/protocol-http": "3.37.0",
41
+ "@aws-sdk/smithy-client": "3.37.0",
42
+ "@aws-sdk/types": "3.37.0",
43
+ "@aws-sdk/url-parser": "3.37.0",
44
+ "@aws-sdk/util-base64-browser": "3.37.0",
45
+ "@aws-sdk/util-base64-node": "3.37.0",
46
+ "@aws-sdk/util-body-length-browser": "3.37.0",
47
+ "@aws-sdk/util-body-length-node": "3.37.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.37.0",
49
+ "@aws-sdk/util-user-agent-node": "3.37.0",
50
+ "@aws-sdk/util-utf8-browser": "3.37.0",
51
+ "@aws-sdk/util-utf8-node": "3.37.0",
58
52
  "tslib": "^2.3.0",
59
53
  "uuid": "^8.3.2"
60
54
  },
61
55
  "devDependencies": {
62
- "@aws-sdk/client-documentation-generator": "3.34.0",
56
+ "@aws-sdk/client-documentation-generator": "3.37.0",
63
57
  "@types/node": "^12.7.5",
64
58
  "@types/uuid": "^8.3.0",
65
59
  "downlevel-dts": "0.7.0",
@@ -74,16 +68,25 @@
74
68
  },
75
69
  "typesVersions": {
76
70
  "<4.0": {
77
- "dist/types/*": [
78
- "dist/types/ts3.4/*"
71
+ "dist-types/*": [
72
+ "dist-types/ts3.4/*"
79
73
  ]
80
74
  }
81
75
  },
76
+ "files": [
77
+ "dist-*"
78
+ ],
82
79
  "author": {
83
80
  "name": "AWS SDK for JavaScript Team",
84
81
  "url": "https://aws.amazon.com/javascript/"
85
82
  },
86
83
  "license": "Apache-2.0",
84
+ "browser": {
85
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
86
+ },
87
+ "react-native": {
88
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
89
+ },
87
90
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-codestar-notifications",
88
91
  "repository": {
89
92
  "type": "git",
@@ -1,540 +0,0 @@
1
- import { CodestarNotificationsClient } from "./CodestarNotificationsClient";
2
- import {
3
- CreateNotificationRuleCommand,
4
- CreateNotificationRuleCommandInput,
5
- CreateNotificationRuleCommandOutput,
6
- } from "./commands/CreateNotificationRuleCommand";
7
- import {
8
- DeleteNotificationRuleCommand,
9
- DeleteNotificationRuleCommandInput,
10
- DeleteNotificationRuleCommandOutput,
11
- } from "./commands/DeleteNotificationRuleCommand";
12
- import {
13
- DeleteTargetCommand,
14
- DeleteTargetCommandInput,
15
- DeleteTargetCommandOutput,
16
- } from "./commands/DeleteTargetCommand";
17
- import {
18
- DescribeNotificationRuleCommand,
19
- DescribeNotificationRuleCommandInput,
20
- DescribeNotificationRuleCommandOutput,
21
- } from "./commands/DescribeNotificationRuleCommand";
22
- import {
23
- ListEventTypesCommand,
24
- ListEventTypesCommandInput,
25
- ListEventTypesCommandOutput,
26
- } from "./commands/ListEventTypesCommand";
27
- import {
28
- ListNotificationRulesCommand,
29
- ListNotificationRulesCommandInput,
30
- ListNotificationRulesCommandOutput,
31
- } from "./commands/ListNotificationRulesCommand";
32
- import {
33
- ListTagsForResourceCommand,
34
- ListTagsForResourceCommandInput,
35
- ListTagsForResourceCommandOutput,
36
- } from "./commands/ListTagsForResourceCommand";
37
- import { ListTargetsCommand, ListTargetsCommandInput, ListTargetsCommandOutput } from "./commands/ListTargetsCommand";
38
- import { SubscribeCommand, SubscribeCommandInput, SubscribeCommandOutput } from "./commands/SubscribeCommand";
39
- import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
40
- import { UnsubscribeCommand, UnsubscribeCommandInput, UnsubscribeCommandOutput } from "./commands/UnsubscribeCommand";
41
- import {
42
- UntagResourceCommand,
43
- UntagResourceCommandInput,
44
- UntagResourceCommandOutput,
45
- } from "./commands/UntagResourceCommand";
46
- import {
47
- UpdateNotificationRuleCommand,
48
- UpdateNotificationRuleCommandInput,
49
- UpdateNotificationRuleCommandOutput,
50
- } from "./commands/UpdateNotificationRuleCommand";
51
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
52
-
53
- /**
54
- * <p>This AWS CodeStar Notifications API Reference provides descriptions and usage examples of the
55
- * operations and data types for the AWS CodeStar Notifications API. You can use the AWS CodeStar Notifications API
56
- * to work with the following objects:</p>
57
- *
58
- * <p>Notification rules, by calling the following: </p>
59
- * <ul>
60
- * <li>
61
- * <p>
62
- * <a>CreateNotificationRule</a>, which creates a notification rule for a
63
- * resource in your account. </p>
64
- * </li>
65
- * <li>
66
- * <p>
67
- * <a>DeleteNotificationRule</a>, which deletes a notification rule. </p>
68
- * </li>
69
- * <li>
70
- * <p>
71
- * <a>DescribeNotificationRule</a>, which provides information about a notification rule. </p>
72
- * </li>
73
- * <li>
74
- * <p>
75
- * <a>ListNotificationRules</a>, which lists the notification rules associated with
76
- * your account. </p>
77
- * </li>
78
- * <li>
79
- * <p>
80
- * <a>UpdateNotificationRule</a>, which changes the name, events, or targets associated with a
81
- * notification rule. </p>
82
- * </li>
83
- * <li>
84
- * <p>
85
- * <a>Subscribe</a>, which subscribes a target to a notification rule. </p>
86
- * </li>
87
- * <li>
88
- * <p>
89
- * <a>Unsubscribe</a>, which removes a target from a notification rule. </p>
90
- * </li>
91
- * </ul>
92
- *
93
- * <p>Targets, by calling the following: </p>
94
- * <ul>
95
- * <li>
96
- * <p>
97
- * <a>DeleteTarget</a>, which removes a notification rule target (SNS topic) from a
98
- * notification rule. </p>
99
- * </li>
100
- * <li>
101
- * <p>
102
- * <a>ListTargets</a>, which lists the targets associated with a
103
- * notification rule. </p>
104
- * </li>
105
- * </ul>
106
- *
107
- * <p>Events, by calling the following: </p>
108
- * <ul>
109
- * <li>
110
- * <p>
111
- * <a>ListEventTypes</a>, which lists the event types you can include in
112
- * a notification rule. </p>
113
- * </li>
114
- * </ul>
115
- * <p>Tags, by calling the following: </p>
116
- * <ul>
117
- * <li>
118
- * <p>
119
- * <a>ListTagsForResource</a>, which lists the tags already associated
120
- * with a notification rule in your account. </p>
121
- * </li>
122
- * <li>
123
- * <p>
124
- * <a>TagResource</a>, which associates a tag you provide with a
125
- * notification rule in your account. </p>
126
- * </li>
127
- * <li>
128
- * <p>
129
- * <a>UntagResource</a>, which removes a tag from a notification rule in
130
- * your account. </p>
131
- * </li>
132
- * </ul>
133
- *
134
- *
135
- *
136
- * <p> For information about how to use AWS CodeStar Notifications, see link in the CodeStarNotifications User Guide.
137
- * </p>
138
- */
139
- export class CodestarNotifications extends CodestarNotificationsClient {
140
- /**
141
- * <p>Creates a notification rule for a resource. The rule specifies the events you want
142
- * notifications about and the targets (such as SNS topics) where you want to receive
143
- * them.</p>
144
- */
145
- public createNotificationRule(
146
- args: CreateNotificationRuleCommandInput,
147
- options?: __HttpHandlerOptions
148
- ): Promise<CreateNotificationRuleCommandOutput>;
149
- public createNotificationRule(
150
- args: CreateNotificationRuleCommandInput,
151
- cb: (err: any, data?: CreateNotificationRuleCommandOutput) => void
152
- ): void;
153
- public createNotificationRule(
154
- args: CreateNotificationRuleCommandInput,
155
- options: __HttpHandlerOptions,
156
- cb: (err: any, data?: CreateNotificationRuleCommandOutput) => void
157
- ): void;
158
- public createNotificationRule(
159
- args: CreateNotificationRuleCommandInput,
160
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateNotificationRuleCommandOutput) => void),
161
- cb?: (err: any, data?: CreateNotificationRuleCommandOutput) => void
162
- ): Promise<CreateNotificationRuleCommandOutput> | void {
163
- const command = new CreateNotificationRuleCommand(args);
164
- if (typeof optionsOrCb === "function") {
165
- this.send(command, optionsOrCb);
166
- } else if (typeof cb === "function") {
167
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
168
- this.send(command, optionsOrCb || {}, cb);
169
- } else {
170
- return this.send(command, optionsOrCb);
171
- }
172
- }
173
-
174
- /**
175
- * <p>Deletes a notification rule for a resource.</p>
176
- */
177
- public deleteNotificationRule(
178
- args: DeleteNotificationRuleCommandInput,
179
- options?: __HttpHandlerOptions
180
- ): Promise<DeleteNotificationRuleCommandOutput>;
181
- public deleteNotificationRule(
182
- args: DeleteNotificationRuleCommandInput,
183
- cb: (err: any, data?: DeleteNotificationRuleCommandOutput) => void
184
- ): void;
185
- public deleteNotificationRule(
186
- args: DeleteNotificationRuleCommandInput,
187
- options: __HttpHandlerOptions,
188
- cb: (err: any, data?: DeleteNotificationRuleCommandOutput) => void
189
- ): void;
190
- public deleteNotificationRule(
191
- args: DeleteNotificationRuleCommandInput,
192
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteNotificationRuleCommandOutput) => void),
193
- cb?: (err: any, data?: DeleteNotificationRuleCommandOutput) => void
194
- ): Promise<DeleteNotificationRuleCommandOutput> | void {
195
- const command = new DeleteNotificationRuleCommand(args);
196
- if (typeof optionsOrCb === "function") {
197
- this.send(command, optionsOrCb);
198
- } else if (typeof cb === "function") {
199
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
200
- this.send(command, optionsOrCb || {}, cb);
201
- } else {
202
- return this.send(command, optionsOrCb);
203
- }
204
- }
205
-
206
- /**
207
- * <p>Deletes a specified target for notifications.</p>
208
- */
209
- public deleteTarget(
210
- args: DeleteTargetCommandInput,
211
- options?: __HttpHandlerOptions
212
- ): Promise<DeleteTargetCommandOutput>;
213
- public deleteTarget(args: DeleteTargetCommandInput, cb: (err: any, data?: DeleteTargetCommandOutput) => void): void;
214
- public deleteTarget(
215
- args: DeleteTargetCommandInput,
216
- options: __HttpHandlerOptions,
217
- cb: (err: any, data?: DeleteTargetCommandOutput) => void
218
- ): void;
219
- public deleteTarget(
220
- args: DeleteTargetCommandInput,
221
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteTargetCommandOutput) => void),
222
- cb?: (err: any, data?: DeleteTargetCommandOutput) => void
223
- ): Promise<DeleteTargetCommandOutput> | void {
224
- const command = new DeleteTargetCommand(args);
225
- if (typeof optionsOrCb === "function") {
226
- this.send(command, optionsOrCb);
227
- } else if (typeof cb === "function") {
228
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
229
- this.send(command, optionsOrCb || {}, cb);
230
- } else {
231
- return this.send(command, optionsOrCb);
232
- }
233
- }
234
-
235
- /**
236
- * <p>Returns information about a specified notification rule.</p>
237
- */
238
- public describeNotificationRule(
239
- args: DescribeNotificationRuleCommandInput,
240
- options?: __HttpHandlerOptions
241
- ): Promise<DescribeNotificationRuleCommandOutput>;
242
- public describeNotificationRule(
243
- args: DescribeNotificationRuleCommandInput,
244
- cb: (err: any, data?: DescribeNotificationRuleCommandOutput) => void
245
- ): void;
246
- public describeNotificationRule(
247
- args: DescribeNotificationRuleCommandInput,
248
- options: __HttpHandlerOptions,
249
- cb: (err: any, data?: DescribeNotificationRuleCommandOutput) => void
250
- ): void;
251
- public describeNotificationRule(
252
- args: DescribeNotificationRuleCommandInput,
253
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeNotificationRuleCommandOutput) => void),
254
- cb?: (err: any, data?: DescribeNotificationRuleCommandOutput) => void
255
- ): Promise<DescribeNotificationRuleCommandOutput> | void {
256
- const command = new DescribeNotificationRuleCommand(args);
257
- if (typeof optionsOrCb === "function") {
258
- this.send(command, optionsOrCb);
259
- } else if (typeof cb === "function") {
260
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
261
- this.send(command, optionsOrCb || {}, cb);
262
- } else {
263
- return this.send(command, optionsOrCb);
264
- }
265
- }
266
-
267
- /**
268
- * <p>Returns information about the event types available for configuring notifications.</p>
269
- */
270
- public listEventTypes(
271
- args: ListEventTypesCommandInput,
272
- options?: __HttpHandlerOptions
273
- ): Promise<ListEventTypesCommandOutput>;
274
- public listEventTypes(
275
- args: ListEventTypesCommandInput,
276
- cb: (err: any, data?: ListEventTypesCommandOutput) => void
277
- ): void;
278
- public listEventTypes(
279
- args: ListEventTypesCommandInput,
280
- options: __HttpHandlerOptions,
281
- cb: (err: any, data?: ListEventTypesCommandOutput) => void
282
- ): void;
283
- public listEventTypes(
284
- args: ListEventTypesCommandInput,
285
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListEventTypesCommandOutput) => void),
286
- cb?: (err: any, data?: ListEventTypesCommandOutput) => void
287
- ): Promise<ListEventTypesCommandOutput> | void {
288
- const command = new ListEventTypesCommand(args);
289
- if (typeof optionsOrCb === "function") {
290
- this.send(command, optionsOrCb);
291
- } else if (typeof cb === "function") {
292
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
293
- this.send(command, optionsOrCb || {}, cb);
294
- } else {
295
- return this.send(command, optionsOrCb);
296
- }
297
- }
298
-
299
- /**
300
- * <p>Returns a list of the notification rules for an AWS account.</p>
301
- */
302
- public listNotificationRules(
303
- args: ListNotificationRulesCommandInput,
304
- options?: __HttpHandlerOptions
305
- ): Promise<ListNotificationRulesCommandOutput>;
306
- public listNotificationRules(
307
- args: ListNotificationRulesCommandInput,
308
- cb: (err: any, data?: ListNotificationRulesCommandOutput) => void
309
- ): void;
310
- public listNotificationRules(
311
- args: ListNotificationRulesCommandInput,
312
- options: __HttpHandlerOptions,
313
- cb: (err: any, data?: ListNotificationRulesCommandOutput) => void
314
- ): void;
315
- public listNotificationRules(
316
- args: ListNotificationRulesCommandInput,
317
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListNotificationRulesCommandOutput) => void),
318
- cb?: (err: any, data?: ListNotificationRulesCommandOutput) => void
319
- ): Promise<ListNotificationRulesCommandOutput> | void {
320
- const command = new ListNotificationRulesCommand(args);
321
- if (typeof optionsOrCb === "function") {
322
- this.send(command, optionsOrCb);
323
- } else if (typeof cb === "function") {
324
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
325
- this.send(command, optionsOrCb || {}, cb);
326
- } else {
327
- return this.send(command, optionsOrCb);
328
- }
329
- }
330
-
331
- /**
332
- * <p>Returns a list of the tags associated with a notification rule.</p>
333
- */
334
- public listTagsForResource(
335
- args: ListTagsForResourceCommandInput,
336
- options?: __HttpHandlerOptions
337
- ): Promise<ListTagsForResourceCommandOutput>;
338
- public listTagsForResource(
339
- args: ListTagsForResourceCommandInput,
340
- cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
341
- ): void;
342
- public listTagsForResource(
343
- args: ListTagsForResourceCommandInput,
344
- options: __HttpHandlerOptions,
345
- cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
346
- ): void;
347
- public listTagsForResource(
348
- args: ListTagsForResourceCommandInput,
349
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTagsForResourceCommandOutput) => void),
350
- cb?: (err: any, data?: ListTagsForResourceCommandOutput) => void
351
- ): Promise<ListTagsForResourceCommandOutput> | void {
352
- const command = new ListTagsForResourceCommand(args);
353
- if (typeof optionsOrCb === "function") {
354
- this.send(command, optionsOrCb);
355
- } else if (typeof cb === "function") {
356
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
357
- this.send(command, optionsOrCb || {}, cb);
358
- } else {
359
- return this.send(command, optionsOrCb);
360
- }
361
- }
362
-
363
- /**
364
- * <p>Returns a list of the notification rule targets for an AWS account.</p>
365
- */
366
- public listTargets(args: ListTargetsCommandInput, options?: __HttpHandlerOptions): Promise<ListTargetsCommandOutput>;
367
- public listTargets(args: ListTargetsCommandInput, cb: (err: any, data?: ListTargetsCommandOutput) => void): void;
368
- public listTargets(
369
- args: ListTargetsCommandInput,
370
- options: __HttpHandlerOptions,
371
- cb: (err: any, data?: ListTargetsCommandOutput) => void
372
- ): void;
373
- public listTargets(
374
- args: ListTargetsCommandInput,
375
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTargetsCommandOutput) => void),
376
- cb?: (err: any, data?: ListTargetsCommandOutput) => void
377
- ): Promise<ListTargetsCommandOutput> | void {
378
- const command = new ListTargetsCommand(args);
379
- if (typeof optionsOrCb === "function") {
380
- this.send(command, optionsOrCb);
381
- } else if (typeof cb === "function") {
382
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
383
- this.send(command, optionsOrCb || {}, cb);
384
- } else {
385
- return this.send(command, optionsOrCb);
386
- }
387
- }
388
-
389
- /**
390
- * <p>Creates an association between a notification rule and an SNS topic so that the
391
- * associated target can receive notifications when the events described in the rule are
392
- * triggered.</p>
393
- */
394
- public subscribe(args: SubscribeCommandInput, options?: __HttpHandlerOptions): Promise<SubscribeCommandOutput>;
395
- public subscribe(args: SubscribeCommandInput, cb: (err: any, data?: SubscribeCommandOutput) => void): void;
396
- public subscribe(
397
- args: SubscribeCommandInput,
398
- options: __HttpHandlerOptions,
399
- cb: (err: any, data?: SubscribeCommandOutput) => void
400
- ): void;
401
- public subscribe(
402
- args: SubscribeCommandInput,
403
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: SubscribeCommandOutput) => void),
404
- cb?: (err: any, data?: SubscribeCommandOutput) => void
405
- ): Promise<SubscribeCommandOutput> | void {
406
- const command = new SubscribeCommand(args);
407
- if (typeof optionsOrCb === "function") {
408
- this.send(command, optionsOrCb);
409
- } else if (typeof cb === "function") {
410
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
411
- this.send(command, optionsOrCb || {}, cb);
412
- } else {
413
- return this.send(command, optionsOrCb);
414
- }
415
- }
416
-
417
- /**
418
- * <p>Associates a set of provided tags with a notification rule.</p>
419
- */
420
- public tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
421
- public tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
422
- public tagResource(
423
- args: TagResourceCommandInput,
424
- options: __HttpHandlerOptions,
425
- cb: (err: any, data?: TagResourceCommandOutput) => void
426
- ): void;
427
- public tagResource(
428
- args: TagResourceCommandInput,
429
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: TagResourceCommandOutput) => void),
430
- cb?: (err: any, data?: TagResourceCommandOutput) => void
431
- ): Promise<TagResourceCommandOutput> | void {
432
- const command = new TagResourceCommand(args);
433
- if (typeof optionsOrCb === "function") {
434
- this.send(command, optionsOrCb);
435
- } else if (typeof cb === "function") {
436
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
437
- this.send(command, optionsOrCb || {}, cb);
438
- } else {
439
- return this.send(command, optionsOrCb);
440
- }
441
- }
442
-
443
- /**
444
- * <p>Removes an association between a notification rule and an Amazon SNS topic so that
445
- * subscribers to that topic stop receiving notifications when the events described in the
446
- * rule are triggered.</p>
447
- */
448
- public unsubscribe(args: UnsubscribeCommandInput, options?: __HttpHandlerOptions): Promise<UnsubscribeCommandOutput>;
449
- public unsubscribe(args: UnsubscribeCommandInput, cb: (err: any, data?: UnsubscribeCommandOutput) => void): void;
450
- public unsubscribe(
451
- args: UnsubscribeCommandInput,
452
- options: __HttpHandlerOptions,
453
- cb: (err: any, data?: UnsubscribeCommandOutput) => void
454
- ): void;
455
- public unsubscribe(
456
- args: UnsubscribeCommandInput,
457
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UnsubscribeCommandOutput) => void),
458
- cb?: (err: any, data?: UnsubscribeCommandOutput) => void
459
- ): Promise<UnsubscribeCommandOutput> | void {
460
- const command = new UnsubscribeCommand(args);
461
- if (typeof optionsOrCb === "function") {
462
- this.send(command, optionsOrCb);
463
- } else if (typeof cb === "function") {
464
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
465
- this.send(command, optionsOrCb || {}, cb);
466
- } else {
467
- return this.send(command, optionsOrCb);
468
- }
469
- }
470
-
471
- /**
472
- * <p>Removes the association between one or more provided tags and a notification
473
- * rule.</p>
474
- */
475
- public untagResource(
476
- args: UntagResourceCommandInput,
477
- options?: __HttpHandlerOptions
478
- ): Promise<UntagResourceCommandOutput>;
479
- public untagResource(
480
- args: UntagResourceCommandInput,
481
- cb: (err: any, data?: UntagResourceCommandOutput) => void
482
- ): void;
483
- public untagResource(
484
- args: UntagResourceCommandInput,
485
- options: __HttpHandlerOptions,
486
- cb: (err: any, data?: UntagResourceCommandOutput) => void
487
- ): void;
488
- public untagResource(
489
- args: UntagResourceCommandInput,
490
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UntagResourceCommandOutput) => void),
491
- cb?: (err: any, data?: UntagResourceCommandOutput) => void
492
- ): Promise<UntagResourceCommandOutput> | void {
493
- const command = new UntagResourceCommand(args);
494
- if (typeof optionsOrCb === "function") {
495
- this.send(command, optionsOrCb);
496
- } else if (typeof cb === "function") {
497
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
498
- this.send(command, optionsOrCb || {}, cb);
499
- } else {
500
- return this.send(command, optionsOrCb);
501
- }
502
- }
503
-
504
- /**
505
- * <p>Updates a notification rule for a resource. You can change the events that trigger the
506
- * notification rule, the status of the rule, and the targets that receive the
507
- * notifications.</p>
508
- * <note>
509
- * <p>To add or remove tags for a notification rule, you must use <a>TagResource</a> and <a>UntagResource</a>.</p>
510
- * </note>
511
- */
512
- public updateNotificationRule(
513
- args: UpdateNotificationRuleCommandInput,
514
- options?: __HttpHandlerOptions
515
- ): Promise<UpdateNotificationRuleCommandOutput>;
516
- public updateNotificationRule(
517
- args: UpdateNotificationRuleCommandInput,
518
- cb: (err: any, data?: UpdateNotificationRuleCommandOutput) => void
519
- ): void;
520
- public updateNotificationRule(
521
- args: UpdateNotificationRuleCommandInput,
522
- options: __HttpHandlerOptions,
523
- cb: (err: any, data?: UpdateNotificationRuleCommandOutput) => void
524
- ): void;
525
- public updateNotificationRule(
526
- args: UpdateNotificationRuleCommandInput,
527
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateNotificationRuleCommandOutput) => void),
528
- cb?: (err: any, data?: UpdateNotificationRuleCommandOutput) => void
529
- ): Promise<UpdateNotificationRuleCommandOutput> | void {
530
- const command = new UpdateNotificationRuleCommand(args);
531
- if (typeof optionsOrCb === "function") {
532
- this.send(command, optionsOrCb);
533
- } else if (typeof cb === "function") {
534
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
535
- this.send(command, optionsOrCb || {}, cb);
536
- } else {
537
- return this.send(command, optionsOrCb);
538
- }
539
- }
540
- }