@aws-sdk/client-codestar-notifications 3.312.0 → 3.316.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.
- package/dist-cjs/CodestarNotifications.js +17 -182
- package/dist-cjs/protocols/Aws_restJson1.js +180 -332
- package/dist-es/CodestarNotifications.js +17 -182
- package/dist-es/protocols/Aws_restJson1.js +159 -311
- package/dist-types/CodestarNotifications.d.ts +81 -104
- package/dist-types/ts3.4/CodestarNotifications.d.ts +4 -1
- package/package.json +6 -6
|
@@ -13,6 +13,86 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
|
|
|
13
13
|
import { UnsubscribeCommandInput, UnsubscribeCommandOutput } from "./commands/UnsubscribeCommand";
|
|
14
14
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
15
15
|
import { UpdateNotificationRuleCommandInput, UpdateNotificationRuleCommandOutput } from "./commands/UpdateNotificationRuleCommand";
|
|
16
|
+
export interface CodestarNotifications {
|
|
17
|
+
/**
|
|
18
|
+
* @see {@link CreateNotificationRuleCommand}
|
|
19
|
+
*/
|
|
20
|
+
createNotificationRule(args: CreateNotificationRuleCommandInput, options?: __HttpHandlerOptions): Promise<CreateNotificationRuleCommandOutput>;
|
|
21
|
+
createNotificationRule(args: CreateNotificationRuleCommandInput, cb: (err: any, data?: CreateNotificationRuleCommandOutput) => void): void;
|
|
22
|
+
createNotificationRule(args: CreateNotificationRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateNotificationRuleCommandOutput) => void): void;
|
|
23
|
+
/**
|
|
24
|
+
* @see {@link DeleteNotificationRuleCommand}
|
|
25
|
+
*/
|
|
26
|
+
deleteNotificationRule(args: DeleteNotificationRuleCommandInput, options?: __HttpHandlerOptions): Promise<DeleteNotificationRuleCommandOutput>;
|
|
27
|
+
deleteNotificationRule(args: DeleteNotificationRuleCommandInput, cb: (err: any, data?: DeleteNotificationRuleCommandOutput) => void): void;
|
|
28
|
+
deleteNotificationRule(args: DeleteNotificationRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteNotificationRuleCommandOutput) => void): void;
|
|
29
|
+
/**
|
|
30
|
+
* @see {@link DeleteTargetCommand}
|
|
31
|
+
*/
|
|
32
|
+
deleteTarget(args: DeleteTargetCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTargetCommandOutput>;
|
|
33
|
+
deleteTarget(args: DeleteTargetCommandInput, cb: (err: any, data?: DeleteTargetCommandOutput) => void): void;
|
|
34
|
+
deleteTarget(args: DeleteTargetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTargetCommandOutput) => void): void;
|
|
35
|
+
/**
|
|
36
|
+
* @see {@link DescribeNotificationRuleCommand}
|
|
37
|
+
*/
|
|
38
|
+
describeNotificationRule(args: DescribeNotificationRuleCommandInput, options?: __HttpHandlerOptions): Promise<DescribeNotificationRuleCommandOutput>;
|
|
39
|
+
describeNotificationRule(args: DescribeNotificationRuleCommandInput, cb: (err: any, data?: DescribeNotificationRuleCommandOutput) => void): void;
|
|
40
|
+
describeNotificationRule(args: DescribeNotificationRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeNotificationRuleCommandOutput) => void): void;
|
|
41
|
+
/**
|
|
42
|
+
* @see {@link ListEventTypesCommand}
|
|
43
|
+
*/
|
|
44
|
+
listEventTypes(args: ListEventTypesCommandInput, options?: __HttpHandlerOptions): Promise<ListEventTypesCommandOutput>;
|
|
45
|
+
listEventTypes(args: ListEventTypesCommandInput, cb: (err: any, data?: ListEventTypesCommandOutput) => void): void;
|
|
46
|
+
listEventTypes(args: ListEventTypesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEventTypesCommandOutput) => void): void;
|
|
47
|
+
/**
|
|
48
|
+
* @see {@link ListNotificationRulesCommand}
|
|
49
|
+
*/
|
|
50
|
+
listNotificationRules(args: ListNotificationRulesCommandInput, options?: __HttpHandlerOptions): Promise<ListNotificationRulesCommandOutput>;
|
|
51
|
+
listNotificationRules(args: ListNotificationRulesCommandInput, cb: (err: any, data?: ListNotificationRulesCommandOutput) => void): void;
|
|
52
|
+
listNotificationRules(args: ListNotificationRulesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListNotificationRulesCommandOutput) => void): void;
|
|
53
|
+
/**
|
|
54
|
+
* @see {@link ListTagsForResourceCommand}
|
|
55
|
+
*/
|
|
56
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
57
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
58
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
59
|
+
/**
|
|
60
|
+
* @see {@link ListTargetsCommand}
|
|
61
|
+
*/
|
|
62
|
+
listTargets(args: ListTargetsCommandInput, options?: __HttpHandlerOptions): Promise<ListTargetsCommandOutput>;
|
|
63
|
+
listTargets(args: ListTargetsCommandInput, cb: (err: any, data?: ListTargetsCommandOutput) => void): void;
|
|
64
|
+
listTargets(args: ListTargetsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTargetsCommandOutput) => void): void;
|
|
65
|
+
/**
|
|
66
|
+
* @see {@link SubscribeCommand}
|
|
67
|
+
*/
|
|
68
|
+
subscribe(args: SubscribeCommandInput, options?: __HttpHandlerOptions): Promise<SubscribeCommandOutput>;
|
|
69
|
+
subscribe(args: SubscribeCommandInput, cb: (err: any, data?: SubscribeCommandOutput) => void): void;
|
|
70
|
+
subscribe(args: SubscribeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SubscribeCommandOutput) => void): void;
|
|
71
|
+
/**
|
|
72
|
+
* @see {@link TagResourceCommand}
|
|
73
|
+
*/
|
|
74
|
+
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
75
|
+
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
76
|
+
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
77
|
+
/**
|
|
78
|
+
* @see {@link UnsubscribeCommand}
|
|
79
|
+
*/
|
|
80
|
+
unsubscribe(args: UnsubscribeCommandInput, options?: __HttpHandlerOptions): Promise<UnsubscribeCommandOutput>;
|
|
81
|
+
unsubscribe(args: UnsubscribeCommandInput, cb: (err: any, data?: UnsubscribeCommandOutput) => void): void;
|
|
82
|
+
unsubscribe(args: UnsubscribeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UnsubscribeCommandOutput) => void): void;
|
|
83
|
+
/**
|
|
84
|
+
* @see {@link UntagResourceCommand}
|
|
85
|
+
*/
|
|
86
|
+
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
87
|
+
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
88
|
+
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
89
|
+
/**
|
|
90
|
+
* @see {@link UpdateNotificationRuleCommand}
|
|
91
|
+
*/
|
|
92
|
+
updateNotificationRule(args: UpdateNotificationRuleCommandInput, options?: __HttpHandlerOptions): Promise<UpdateNotificationRuleCommandOutput>;
|
|
93
|
+
updateNotificationRule(args: UpdateNotificationRuleCommandInput, cb: (err: any, data?: UpdateNotificationRuleCommandOutput) => void): void;
|
|
94
|
+
updateNotificationRule(args: UpdateNotificationRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateNotificationRuleCommandOutput) => void): void;
|
|
95
|
+
}
|
|
16
96
|
/**
|
|
17
97
|
* @public
|
|
18
98
|
* <p>This AWS CodeStar Notifications API Reference provides descriptions and usage examples of the
|
|
@@ -100,108 +180,5 @@ import { UpdateNotificationRuleCommandInput, UpdateNotificationRuleCommandOutput
|
|
|
100
180
|
* <p> For information about how to use AWS CodeStar Notifications, see the <a href="https://docs.aws.amazon.com/dtconsole/latest/userguide/what-is-dtconsole.html">Amazon Web Services Developer Tools Console User Guide</a>.
|
|
101
181
|
* </p>
|
|
102
182
|
*/
|
|
103
|
-
export declare class CodestarNotifications extends CodestarNotificationsClient {
|
|
104
|
-
/**
|
|
105
|
-
* @public
|
|
106
|
-
* <p>Creates a notification rule for a resource. The rule specifies the events you want
|
|
107
|
-
* notifications about and the targets (such as Chatbot topics or Chatbot clients configured for Slack) where you want to receive
|
|
108
|
-
* them.</p>
|
|
109
|
-
*/
|
|
110
|
-
createNotificationRule(args: CreateNotificationRuleCommandInput, options?: __HttpHandlerOptions): Promise<CreateNotificationRuleCommandOutput>;
|
|
111
|
-
createNotificationRule(args: CreateNotificationRuleCommandInput, cb: (err: any, data?: CreateNotificationRuleCommandOutput) => void): void;
|
|
112
|
-
createNotificationRule(args: CreateNotificationRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateNotificationRuleCommandOutput) => void): void;
|
|
113
|
-
/**
|
|
114
|
-
* @public
|
|
115
|
-
* <p>Deletes a notification rule for a resource.</p>
|
|
116
|
-
*/
|
|
117
|
-
deleteNotificationRule(args: DeleteNotificationRuleCommandInput, options?: __HttpHandlerOptions): Promise<DeleteNotificationRuleCommandOutput>;
|
|
118
|
-
deleteNotificationRule(args: DeleteNotificationRuleCommandInput, cb: (err: any, data?: DeleteNotificationRuleCommandOutput) => void): void;
|
|
119
|
-
deleteNotificationRule(args: DeleteNotificationRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteNotificationRuleCommandOutput) => void): void;
|
|
120
|
-
/**
|
|
121
|
-
* @public
|
|
122
|
-
* <p>Deletes a specified target for notifications.</p>
|
|
123
|
-
*/
|
|
124
|
-
deleteTarget(args: DeleteTargetCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTargetCommandOutput>;
|
|
125
|
-
deleteTarget(args: DeleteTargetCommandInput, cb: (err: any, data?: DeleteTargetCommandOutput) => void): void;
|
|
126
|
-
deleteTarget(args: DeleteTargetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTargetCommandOutput) => void): void;
|
|
127
|
-
/**
|
|
128
|
-
* @public
|
|
129
|
-
* <p>Returns information about a specified notification rule.</p>
|
|
130
|
-
*/
|
|
131
|
-
describeNotificationRule(args: DescribeNotificationRuleCommandInput, options?: __HttpHandlerOptions): Promise<DescribeNotificationRuleCommandOutput>;
|
|
132
|
-
describeNotificationRule(args: DescribeNotificationRuleCommandInput, cb: (err: any, data?: DescribeNotificationRuleCommandOutput) => void): void;
|
|
133
|
-
describeNotificationRule(args: DescribeNotificationRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeNotificationRuleCommandOutput) => void): void;
|
|
134
|
-
/**
|
|
135
|
-
* @public
|
|
136
|
-
* <p>Returns information about the event types available for configuring notifications.</p>
|
|
137
|
-
*/
|
|
138
|
-
listEventTypes(args: ListEventTypesCommandInput, options?: __HttpHandlerOptions): Promise<ListEventTypesCommandOutput>;
|
|
139
|
-
listEventTypes(args: ListEventTypesCommandInput, cb: (err: any, data?: ListEventTypesCommandOutput) => void): void;
|
|
140
|
-
listEventTypes(args: ListEventTypesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEventTypesCommandOutput) => void): void;
|
|
141
|
-
/**
|
|
142
|
-
* @public
|
|
143
|
-
* <p>Returns a list of the notification rules for an Amazon Web Services account.</p>
|
|
144
|
-
*/
|
|
145
|
-
listNotificationRules(args: ListNotificationRulesCommandInput, options?: __HttpHandlerOptions): Promise<ListNotificationRulesCommandOutput>;
|
|
146
|
-
listNotificationRules(args: ListNotificationRulesCommandInput, cb: (err: any, data?: ListNotificationRulesCommandOutput) => void): void;
|
|
147
|
-
listNotificationRules(args: ListNotificationRulesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListNotificationRulesCommandOutput) => void): void;
|
|
148
|
-
/**
|
|
149
|
-
* @public
|
|
150
|
-
* <p>Returns a list of the tags associated with a notification rule.</p>
|
|
151
|
-
*/
|
|
152
|
-
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
153
|
-
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
154
|
-
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
155
|
-
/**
|
|
156
|
-
* @public
|
|
157
|
-
* <p>Returns a list of the notification rule targets for an Amazon Web Services account.</p>
|
|
158
|
-
*/
|
|
159
|
-
listTargets(args: ListTargetsCommandInput, options?: __HttpHandlerOptions): Promise<ListTargetsCommandOutput>;
|
|
160
|
-
listTargets(args: ListTargetsCommandInput, cb: (err: any, data?: ListTargetsCommandOutput) => void): void;
|
|
161
|
-
listTargets(args: ListTargetsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTargetsCommandOutput) => void): void;
|
|
162
|
-
/**
|
|
163
|
-
* @public
|
|
164
|
-
* <p>Creates an association between a notification rule and an Chatbot topic or Chatbot client so that the
|
|
165
|
-
* associated target can receive notifications when the events described in the rule are
|
|
166
|
-
* triggered.</p>
|
|
167
|
-
*/
|
|
168
|
-
subscribe(args: SubscribeCommandInput, options?: __HttpHandlerOptions): Promise<SubscribeCommandOutput>;
|
|
169
|
-
subscribe(args: SubscribeCommandInput, cb: (err: any, data?: SubscribeCommandOutput) => void): void;
|
|
170
|
-
subscribe(args: SubscribeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SubscribeCommandOutput) => void): void;
|
|
171
|
-
/**
|
|
172
|
-
* @public
|
|
173
|
-
* <p>Associates a set of provided tags with a notification rule.</p>
|
|
174
|
-
*/
|
|
175
|
-
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
176
|
-
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
177
|
-
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
178
|
-
/**
|
|
179
|
-
* @public
|
|
180
|
-
* <p>Removes an association between a notification rule and an Chatbot topic so that
|
|
181
|
-
* subscribers to that topic stop receiving notifications when the events described in the
|
|
182
|
-
* rule are triggered.</p>
|
|
183
|
-
*/
|
|
184
|
-
unsubscribe(args: UnsubscribeCommandInput, options?: __HttpHandlerOptions): Promise<UnsubscribeCommandOutput>;
|
|
185
|
-
unsubscribe(args: UnsubscribeCommandInput, cb: (err: any, data?: UnsubscribeCommandOutput) => void): void;
|
|
186
|
-
unsubscribe(args: UnsubscribeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UnsubscribeCommandOutput) => void): void;
|
|
187
|
-
/**
|
|
188
|
-
* @public
|
|
189
|
-
* <p>Removes the association between one or more provided tags and a notification
|
|
190
|
-
* rule.</p>
|
|
191
|
-
*/
|
|
192
|
-
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
193
|
-
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
194
|
-
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
195
|
-
/**
|
|
196
|
-
* @public
|
|
197
|
-
* <p>Updates a notification rule for a resource. You can change the events that trigger the
|
|
198
|
-
* notification rule, the status of the rule, and the targets that receive the
|
|
199
|
-
* notifications.</p>
|
|
200
|
-
* <note>
|
|
201
|
-
* <p>To add or remove tags for a notification rule, you must use <a>TagResource</a> and <a>UntagResource</a>.</p>
|
|
202
|
-
* </note>
|
|
203
|
-
*/
|
|
204
|
-
updateNotificationRule(args: UpdateNotificationRuleCommandInput, options?: __HttpHandlerOptions): Promise<UpdateNotificationRuleCommandOutput>;
|
|
205
|
-
updateNotificationRule(args: UpdateNotificationRuleCommandInput, cb: (err: any, data?: UpdateNotificationRuleCommandOutput) => void): void;
|
|
206
|
-
updateNotificationRule(args: UpdateNotificationRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateNotificationRuleCommandOutput) => void): void;
|
|
183
|
+
export declare class CodestarNotifications extends CodestarNotificationsClient implements CodestarNotifications {
|
|
207
184
|
}
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
UpdateNotificationRuleCommandInput,
|
|
53
53
|
UpdateNotificationRuleCommandOutput,
|
|
54
54
|
} from "./commands/UpdateNotificationRuleCommand";
|
|
55
|
-
export
|
|
55
|
+
export interface CodestarNotifications {
|
|
56
56
|
createNotificationRule(
|
|
57
57
|
args: CreateNotificationRuleCommandInput,
|
|
58
58
|
options?: __HttpHandlerOptions
|
|
@@ -223,3 +223,6 @@ export declare class CodestarNotifications extends CodestarNotificationsClient {
|
|
|
223
223
|
cb: (err: any, data?: UpdateNotificationRuleCommandOutput) => void
|
|
224
224
|
): void;
|
|
225
225
|
}
|
|
226
|
+
export declare class CodestarNotifications
|
|
227
|
+
extends CodestarNotificationsClient
|
|
228
|
+
implements CodestarNotifications {}
|
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.
|
|
4
|
+
"version": "3.316.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.316.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.316.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|