@aws-sdk/client-codestar-notifications 3.490.0 → 3.496.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 +1 -37
- package/dist-cjs/CodestarNotificationsClient.js +1 -43
- package/dist-cjs/commands/CreateNotificationRuleCommand.js +1 -29
- package/dist-cjs/commands/DeleteNotificationRuleCommand.js +1 -28
- package/dist-cjs/commands/DeleteTargetCommand.js +1 -29
- package/dist-cjs/commands/DescribeNotificationRuleCommand.js +1 -29
- package/dist-cjs/commands/ListEventTypesCommand.js +1 -28
- package/dist-cjs/commands/ListNotificationRulesCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListTargetsCommand.js +1 -29
- package/dist-cjs/commands/SubscribeCommand.js +1 -29
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UnsubscribeCommand.js +1 -29
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateNotificationRuleCommand.js +1 -29
- package/dist-cjs/commands/index.js +1 -16
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +1568 -11
- package/dist-cjs/models/CodestarNotificationsServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -195
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListEventTypesPaginator.js +1 -7
- package/dist-cjs/pagination/ListNotificationRulesPaginator.js +1 -7
- package/dist-cjs/pagination/ListTargetsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -7
- package/dist-cjs/protocols/Aws_restJson1.js +1 -883
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,1569 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
+
CodestarNotifications: () => CodestarNotifications,
|
|
26
|
+
CodestarNotificationsClient: () => CodestarNotificationsClient,
|
|
27
|
+
CodestarNotificationsServiceException: () => CodestarNotificationsServiceException,
|
|
28
|
+
ConcurrentModificationException: () => ConcurrentModificationException,
|
|
29
|
+
ConfigurationException: () => ConfigurationException,
|
|
30
|
+
CreateNotificationRuleCommand: () => CreateNotificationRuleCommand,
|
|
31
|
+
CreateNotificationRuleRequestFilterSensitiveLog: () => CreateNotificationRuleRequestFilterSensitiveLog,
|
|
32
|
+
DeleteNotificationRuleCommand: () => DeleteNotificationRuleCommand,
|
|
33
|
+
DeleteTargetCommand: () => DeleteTargetCommand,
|
|
34
|
+
DeleteTargetRequestFilterSensitiveLog: () => DeleteTargetRequestFilterSensitiveLog,
|
|
35
|
+
DescribeNotificationRuleCommand: () => DescribeNotificationRuleCommand,
|
|
36
|
+
DescribeNotificationRuleResultFilterSensitiveLog: () => DescribeNotificationRuleResultFilterSensitiveLog,
|
|
37
|
+
DetailType: () => DetailType,
|
|
38
|
+
InvalidNextTokenException: () => InvalidNextTokenException,
|
|
39
|
+
LimitExceededException: () => LimitExceededException,
|
|
40
|
+
ListEventTypesCommand: () => ListEventTypesCommand,
|
|
41
|
+
ListEventTypesFilterName: () => ListEventTypesFilterName,
|
|
42
|
+
ListNotificationRulesCommand: () => ListNotificationRulesCommand,
|
|
43
|
+
ListNotificationRulesFilterName: () => ListNotificationRulesFilterName,
|
|
44
|
+
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
45
|
+
ListTargetsCommand: () => ListTargetsCommand,
|
|
46
|
+
ListTargetsFilterName: () => ListTargetsFilterName,
|
|
47
|
+
ListTargetsResultFilterSensitiveLog: () => ListTargetsResultFilterSensitiveLog,
|
|
48
|
+
NotificationRuleStatus: () => NotificationRuleStatus,
|
|
49
|
+
ResourceAlreadyExistsException: () => ResourceAlreadyExistsException,
|
|
50
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
51
|
+
SubscribeCommand: () => SubscribeCommand,
|
|
52
|
+
SubscribeRequestFilterSensitiveLog: () => SubscribeRequestFilterSensitiveLog,
|
|
53
|
+
TagResourceCommand: () => TagResourceCommand,
|
|
54
|
+
TargetFilterSensitiveLog: () => TargetFilterSensitiveLog,
|
|
55
|
+
TargetStatus: () => TargetStatus,
|
|
56
|
+
TargetSummaryFilterSensitiveLog: () => TargetSummaryFilterSensitiveLog,
|
|
57
|
+
UnsubscribeCommand: () => UnsubscribeCommand,
|
|
58
|
+
UnsubscribeRequestFilterSensitiveLog: () => UnsubscribeRequestFilterSensitiveLog,
|
|
59
|
+
UntagResourceCommand: () => UntagResourceCommand,
|
|
60
|
+
UpdateNotificationRuleCommand: () => UpdateNotificationRuleCommand,
|
|
61
|
+
UpdateNotificationRuleRequestFilterSensitiveLog: () => UpdateNotificationRuleRequestFilterSensitiveLog,
|
|
62
|
+
ValidationException: () => ValidationException,
|
|
63
|
+
__Client: () => import_smithy_client.Client,
|
|
64
|
+
paginateListEventTypes: () => paginateListEventTypes,
|
|
65
|
+
paginateListNotificationRules: () => paginateListNotificationRules,
|
|
66
|
+
paginateListTargets: () => paginateListTargets
|
|
67
|
+
});
|
|
68
|
+
module.exports = __toCommonJS(src_exports);
|
|
69
|
+
|
|
70
|
+
// src/CodestarNotificationsClient.ts
|
|
71
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
72
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
73
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
74
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
75
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
76
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
77
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
78
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
79
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
// src/endpoint/EndpointParameters.ts
|
|
83
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
84
|
+
return {
|
|
85
|
+
...options,
|
|
86
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
87
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
88
|
+
defaultSigningName: "codestar-notifications"
|
|
89
|
+
};
|
|
90
|
+
}, "resolveClientEndpointParameters");
|
|
91
|
+
var commonParams = {
|
|
92
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
93
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
94
|
+
Region: { type: "builtInParams", name: "region" },
|
|
95
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
// src/CodestarNotificationsClient.ts
|
|
99
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
100
|
+
|
|
101
|
+
// src/runtimeExtensions.ts
|
|
102
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
103
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
104
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
105
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
106
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
107
|
+
const extensionConfiguration = {
|
|
108
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
109
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
110
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
111
|
+
};
|
|
112
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
113
|
+
return {
|
|
114
|
+
...runtimeConfig,
|
|
115
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
116
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
117
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
118
|
+
};
|
|
119
|
+
}, "resolveRuntimeExtensions");
|
|
120
|
+
|
|
121
|
+
// src/CodestarNotificationsClient.ts
|
|
122
|
+
var _CodestarNotificationsClient = class _CodestarNotificationsClient extends import_smithy_client.Client {
|
|
123
|
+
constructor(...[configuration]) {
|
|
124
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
125
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
126
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
127
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
128
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
129
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
130
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
131
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
132
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
133
|
+
super(_config_8);
|
|
134
|
+
this.config = _config_8;
|
|
135
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
136
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
137
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
138
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
139
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
140
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
141
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
145
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
146
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
147
|
+
*/
|
|
148
|
+
destroy() {
|
|
149
|
+
super.destroy();
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
__name(_CodestarNotificationsClient, "CodestarNotificationsClient");
|
|
153
|
+
var CodestarNotificationsClient = _CodestarNotificationsClient;
|
|
154
|
+
|
|
155
|
+
// src/CodestarNotifications.ts
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
// src/commands/CreateNotificationRuleCommand.ts
|
|
159
|
+
|
|
160
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
161
|
+
|
|
162
|
+
var import_types = require("@smithy/types");
|
|
163
|
+
|
|
164
|
+
// src/models/models_0.ts
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
// src/models/CodestarNotificationsServiceException.ts
|
|
168
|
+
|
|
169
|
+
var _CodestarNotificationsServiceException = class _CodestarNotificationsServiceException extends import_smithy_client.ServiceException {
|
|
170
|
+
/**
|
|
171
|
+
* @internal
|
|
172
|
+
*/
|
|
173
|
+
constructor(options) {
|
|
174
|
+
super(options);
|
|
175
|
+
Object.setPrototypeOf(this, _CodestarNotificationsServiceException.prototype);
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
__name(_CodestarNotificationsServiceException, "CodestarNotificationsServiceException");
|
|
179
|
+
var CodestarNotificationsServiceException = _CodestarNotificationsServiceException;
|
|
180
|
+
|
|
181
|
+
// src/models/models_0.ts
|
|
182
|
+
var _AccessDeniedException = class _AccessDeniedException extends CodestarNotificationsServiceException {
|
|
183
|
+
/**
|
|
184
|
+
* @internal
|
|
185
|
+
*/
|
|
186
|
+
constructor(opts) {
|
|
187
|
+
super({
|
|
188
|
+
name: "AccessDeniedException",
|
|
189
|
+
$fault: "client",
|
|
190
|
+
...opts
|
|
191
|
+
});
|
|
192
|
+
this.name = "AccessDeniedException";
|
|
193
|
+
this.$fault = "client";
|
|
194
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
195
|
+
this.Message = opts.Message;
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
__name(_AccessDeniedException, "AccessDeniedException");
|
|
199
|
+
var AccessDeniedException = _AccessDeniedException;
|
|
200
|
+
var _ConcurrentModificationException = class _ConcurrentModificationException extends CodestarNotificationsServiceException {
|
|
201
|
+
/**
|
|
202
|
+
* @internal
|
|
203
|
+
*/
|
|
204
|
+
constructor(opts) {
|
|
205
|
+
super({
|
|
206
|
+
name: "ConcurrentModificationException",
|
|
207
|
+
$fault: "client",
|
|
208
|
+
...opts
|
|
209
|
+
});
|
|
210
|
+
this.name = "ConcurrentModificationException";
|
|
211
|
+
this.$fault = "client";
|
|
212
|
+
Object.setPrototypeOf(this, _ConcurrentModificationException.prototype);
|
|
213
|
+
this.Message = opts.Message;
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
__name(_ConcurrentModificationException, "ConcurrentModificationException");
|
|
217
|
+
var ConcurrentModificationException = _ConcurrentModificationException;
|
|
218
|
+
var _ConfigurationException = class _ConfigurationException extends CodestarNotificationsServiceException {
|
|
219
|
+
/**
|
|
220
|
+
* @internal
|
|
221
|
+
*/
|
|
222
|
+
constructor(opts) {
|
|
223
|
+
super({
|
|
224
|
+
name: "ConfigurationException",
|
|
225
|
+
$fault: "client",
|
|
226
|
+
...opts
|
|
227
|
+
});
|
|
228
|
+
this.name = "ConfigurationException";
|
|
229
|
+
this.$fault = "client";
|
|
230
|
+
Object.setPrototypeOf(this, _ConfigurationException.prototype);
|
|
231
|
+
this.Message = opts.Message;
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
__name(_ConfigurationException, "ConfigurationException");
|
|
235
|
+
var ConfigurationException = _ConfigurationException;
|
|
236
|
+
var DetailType = {
|
|
237
|
+
BASIC: "BASIC",
|
|
238
|
+
FULL: "FULL"
|
|
239
|
+
};
|
|
240
|
+
var NotificationRuleStatus = {
|
|
241
|
+
DISABLED: "DISABLED",
|
|
242
|
+
ENABLED: "ENABLED"
|
|
243
|
+
};
|
|
244
|
+
var _LimitExceededException = class _LimitExceededException extends CodestarNotificationsServiceException {
|
|
245
|
+
/**
|
|
246
|
+
* @internal
|
|
247
|
+
*/
|
|
248
|
+
constructor(opts) {
|
|
249
|
+
super({
|
|
250
|
+
name: "LimitExceededException",
|
|
251
|
+
$fault: "client",
|
|
252
|
+
...opts
|
|
253
|
+
});
|
|
254
|
+
this.name = "LimitExceededException";
|
|
255
|
+
this.$fault = "client";
|
|
256
|
+
Object.setPrototypeOf(this, _LimitExceededException.prototype);
|
|
257
|
+
this.Message = opts.Message;
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
__name(_LimitExceededException, "LimitExceededException");
|
|
261
|
+
var LimitExceededException = _LimitExceededException;
|
|
262
|
+
var _ResourceAlreadyExistsException = class _ResourceAlreadyExistsException extends CodestarNotificationsServiceException {
|
|
263
|
+
/**
|
|
264
|
+
* @internal
|
|
265
|
+
*/
|
|
266
|
+
constructor(opts) {
|
|
267
|
+
super({
|
|
268
|
+
name: "ResourceAlreadyExistsException",
|
|
269
|
+
$fault: "client",
|
|
270
|
+
...opts
|
|
271
|
+
});
|
|
272
|
+
this.name = "ResourceAlreadyExistsException";
|
|
273
|
+
this.$fault = "client";
|
|
274
|
+
Object.setPrototypeOf(this, _ResourceAlreadyExistsException.prototype);
|
|
275
|
+
this.Message = opts.Message;
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
__name(_ResourceAlreadyExistsException, "ResourceAlreadyExistsException");
|
|
279
|
+
var ResourceAlreadyExistsException = _ResourceAlreadyExistsException;
|
|
280
|
+
var _ValidationException = class _ValidationException extends CodestarNotificationsServiceException {
|
|
281
|
+
/**
|
|
282
|
+
* @internal
|
|
283
|
+
*/
|
|
284
|
+
constructor(opts) {
|
|
285
|
+
super({
|
|
286
|
+
name: "ValidationException",
|
|
287
|
+
$fault: "client",
|
|
288
|
+
...opts
|
|
289
|
+
});
|
|
290
|
+
this.name = "ValidationException";
|
|
291
|
+
this.$fault = "client";
|
|
292
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
293
|
+
this.Message = opts.Message;
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
__name(_ValidationException, "ValidationException");
|
|
297
|
+
var ValidationException = _ValidationException;
|
|
298
|
+
var TargetStatus = {
|
|
299
|
+
ACTIVE: "ACTIVE",
|
|
300
|
+
DEACTIVATED: "DEACTIVATED",
|
|
301
|
+
INACTIVE: "INACTIVE",
|
|
302
|
+
PENDING: "PENDING",
|
|
303
|
+
UNREACHABLE: "UNREACHABLE"
|
|
304
|
+
};
|
|
305
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends CodestarNotificationsServiceException {
|
|
306
|
+
/**
|
|
307
|
+
* @internal
|
|
308
|
+
*/
|
|
309
|
+
constructor(opts) {
|
|
310
|
+
super({
|
|
311
|
+
name: "ResourceNotFoundException",
|
|
312
|
+
$fault: "client",
|
|
313
|
+
...opts
|
|
314
|
+
});
|
|
315
|
+
this.name = "ResourceNotFoundException";
|
|
316
|
+
this.$fault = "client";
|
|
317
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
318
|
+
this.Message = opts.Message;
|
|
319
|
+
}
|
|
320
|
+
};
|
|
321
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
322
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
323
|
+
var _InvalidNextTokenException = class _InvalidNextTokenException extends CodestarNotificationsServiceException {
|
|
324
|
+
/**
|
|
325
|
+
* @internal
|
|
326
|
+
*/
|
|
327
|
+
constructor(opts) {
|
|
328
|
+
super({
|
|
329
|
+
name: "InvalidNextTokenException",
|
|
330
|
+
$fault: "client",
|
|
331
|
+
...opts
|
|
332
|
+
});
|
|
333
|
+
this.name = "InvalidNextTokenException";
|
|
334
|
+
this.$fault = "client";
|
|
335
|
+
Object.setPrototypeOf(this, _InvalidNextTokenException.prototype);
|
|
336
|
+
this.Message = opts.Message;
|
|
337
|
+
}
|
|
338
|
+
};
|
|
339
|
+
__name(_InvalidNextTokenException, "InvalidNextTokenException");
|
|
340
|
+
var InvalidNextTokenException = _InvalidNextTokenException;
|
|
341
|
+
var ListEventTypesFilterName = {
|
|
342
|
+
RESOURCE_TYPE: "RESOURCE_TYPE",
|
|
343
|
+
SERVICE_NAME: "SERVICE_NAME"
|
|
344
|
+
};
|
|
345
|
+
var ListNotificationRulesFilterName = {
|
|
346
|
+
CREATED_BY: "CREATED_BY",
|
|
347
|
+
EVENT_TYPE_ID: "EVENT_TYPE_ID",
|
|
348
|
+
RESOURCE: "RESOURCE",
|
|
349
|
+
TARGET_ADDRESS: "TARGET_ADDRESS"
|
|
350
|
+
};
|
|
351
|
+
var ListTargetsFilterName = {
|
|
352
|
+
TARGET_ADDRESS: "TARGET_ADDRESS",
|
|
353
|
+
TARGET_STATUS: "TARGET_STATUS",
|
|
354
|
+
TARGET_TYPE: "TARGET_TYPE"
|
|
355
|
+
};
|
|
356
|
+
var TargetFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
357
|
+
...obj,
|
|
358
|
+
...obj.TargetAddress && { TargetAddress: import_smithy_client.SENSITIVE_STRING }
|
|
359
|
+
}), "TargetFilterSensitiveLog");
|
|
360
|
+
var CreateNotificationRuleRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
361
|
+
...obj,
|
|
362
|
+
...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
|
|
363
|
+
...obj.Targets && { Targets: obj.Targets.map((item) => TargetFilterSensitiveLog(item)) }
|
|
364
|
+
}), "CreateNotificationRuleRequestFilterSensitiveLog");
|
|
365
|
+
var DeleteTargetRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
366
|
+
...obj,
|
|
367
|
+
...obj.TargetAddress && { TargetAddress: import_smithy_client.SENSITIVE_STRING }
|
|
368
|
+
}), "DeleteTargetRequestFilterSensitiveLog");
|
|
369
|
+
var TargetSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
370
|
+
...obj,
|
|
371
|
+
...obj.TargetAddress && { TargetAddress: import_smithy_client.SENSITIVE_STRING }
|
|
372
|
+
}), "TargetSummaryFilterSensitiveLog");
|
|
373
|
+
var DescribeNotificationRuleResultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
374
|
+
...obj,
|
|
375
|
+
...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
|
|
376
|
+
...obj.Targets && { Targets: obj.Targets.map((item) => TargetSummaryFilterSensitiveLog(item)) }
|
|
377
|
+
}), "DescribeNotificationRuleResultFilterSensitiveLog");
|
|
378
|
+
var ListTargetsResultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
379
|
+
...obj,
|
|
380
|
+
...obj.Targets && { Targets: obj.Targets.map((item) => TargetSummaryFilterSensitiveLog(item)) }
|
|
381
|
+
}), "ListTargetsResultFilterSensitiveLog");
|
|
382
|
+
var SubscribeRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
383
|
+
...obj,
|
|
384
|
+
...obj.Target && { Target: TargetFilterSensitiveLog(obj.Target) }
|
|
385
|
+
}), "SubscribeRequestFilterSensitiveLog");
|
|
386
|
+
var UnsubscribeRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
387
|
+
...obj,
|
|
388
|
+
...obj.TargetAddress && { TargetAddress: import_smithy_client.SENSITIVE_STRING }
|
|
389
|
+
}), "UnsubscribeRequestFilterSensitiveLog");
|
|
390
|
+
var UpdateNotificationRuleRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
391
|
+
...obj,
|
|
392
|
+
...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
|
|
393
|
+
...obj.Targets && { Targets: obj.Targets.map((item) => TargetFilterSensitiveLog(item)) }
|
|
394
|
+
}), "UpdateNotificationRuleRequestFilterSensitiveLog");
|
|
395
|
+
|
|
396
|
+
// src/protocols/Aws_restJson1.ts
|
|
397
|
+
var import_core = require("@smithy/core");
|
|
398
|
+
|
|
399
|
+
var import_uuid = require("uuid");
|
|
400
|
+
var se_CreateNotificationRuleCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
401
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
402
|
+
const headers = {
|
|
403
|
+
"content-type": "application/json"
|
|
404
|
+
};
|
|
405
|
+
b.bp("/createNotificationRule");
|
|
406
|
+
let body;
|
|
407
|
+
body = JSON.stringify(
|
|
408
|
+
(0, import_smithy_client.take)(input, {
|
|
409
|
+
ClientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
410
|
+
DetailType: [],
|
|
411
|
+
EventTypeIds: (_) => (0, import_smithy_client._json)(_),
|
|
412
|
+
Name: [],
|
|
413
|
+
Resource: [],
|
|
414
|
+
Status: [],
|
|
415
|
+
Tags: (_) => (0, import_smithy_client._json)(_),
|
|
416
|
+
Targets: (_) => (0, import_smithy_client._json)(_)
|
|
417
|
+
})
|
|
418
|
+
);
|
|
419
|
+
b.m("POST").h(headers).b(body);
|
|
420
|
+
return b.build();
|
|
421
|
+
}, "se_CreateNotificationRuleCommand");
|
|
422
|
+
var se_DeleteNotificationRuleCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
423
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
424
|
+
const headers = {
|
|
425
|
+
"content-type": "application/json"
|
|
426
|
+
};
|
|
427
|
+
b.bp("/deleteNotificationRule");
|
|
428
|
+
let body;
|
|
429
|
+
body = JSON.stringify(
|
|
430
|
+
(0, import_smithy_client.take)(input, {
|
|
431
|
+
Arn: []
|
|
432
|
+
})
|
|
433
|
+
);
|
|
434
|
+
b.m("POST").h(headers).b(body);
|
|
435
|
+
return b.build();
|
|
436
|
+
}, "se_DeleteNotificationRuleCommand");
|
|
437
|
+
var se_DeleteTargetCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
438
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
439
|
+
const headers = {
|
|
440
|
+
"content-type": "application/json"
|
|
441
|
+
};
|
|
442
|
+
b.bp("/deleteTarget");
|
|
443
|
+
let body;
|
|
444
|
+
body = JSON.stringify(
|
|
445
|
+
(0, import_smithy_client.take)(input, {
|
|
446
|
+
ForceUnsubscribeAll: [],
|
|
447
|
+
TargetAddress: []
|
|
448
|
+
})
|
|
449
|
+
);
|
|
450
|
+
b.m("POST").h(headers).b(body);
|
|
451
|
+
return b.build();
|
|
452
|
+
}, "se_DeleteTargetCommand");
|
|
453
|
+
var se_DescribeNotificationRuleCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
454
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
455
|
+
const headers = {
|
|
456
|
+
"content-type": "application/json"
|
|
457
|
+
};
|
|
458
|
+
b.bp("/describeNotificationRule");
|
|
459
|
+
let body;
|
|
460
|
+
body = JSON.stringify(
|
|
461
|
+
(0, import_smithy_client.take)(input, {
|
|
462
|
+
Arn: []
|
|
463
|
+
})
|
|
464
|
+
);
|
|
465
|
+
b.m("POST").h(headers).b(body);
|
|
466
|
+
return b.build();
|
|
467
|
+
}, "se_DescribeNotificationRuleCommand");
|
|
468
|
+
var se_ListEventTypesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
469
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
470
|
+
const headers = {
|
|
471
|
+
"content-type": "application/json"
|
|
472
|
+
};
|
|
473
|
+
b.bp("/listEventTypes");
|
|
474
|
+
let body;
|
|
475
|
+
body = JSON.stringify(
|
|
476
|
+
(0, import_smithy_client.take)(input, {
|
|
477
|
+
Filters: (_) => (0, import_smithy_client._json)(_),
|
|
478
|
+
MaxResults: [],
|
|
479
|
+
NextToken: []
|
|
480
|
+
})
|
|
481
|
+
);
|
|
482
|
+
b.m("POST").h(headers).b(body);
|
|
483
|
+
return b.build();
|
|
484
|
+
}, "se_ListEventTypesCommand");
|
|
485
|
+
var se_ListNotificationRulesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
486
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
487
|
+
const headers = {
|
|
488
|
+
"content-type": "application/json"
|
|
489
|
+
};
|
|
490
|
+
b.bp("/listNotificationRules");
|
|
491
|
+
let body;
|
|
492
|
+
body = JSON.stringify(
|
|
493
|
+
(0, import_smithy_client.take)(input, {
|
|
494
|
+
Filters: (_) => (0, import_smithy_client._json)(_),
|
|
495
|
+
MaxResults: [],
|
|
496
|
+
NextToken: []
|
|
497
|
+
})
|
|
498
|
+
);
|
|
499
|
+
b.m("POST").h(headers).b(body);
|
|
500
|
+
return b.build();
|
|
501
|
+
}, "se_ListNotificationRulesCommand");
|
|
502
|
+
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
503
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
504
|
+
const headers = {
|
|
505
|
+
"content-type": "application/json"
|
|
506
|
+
};
|
|
507
|
+
b.bp("/listTagsForResource");
|
|
508
|
+
let body;
|
|
509
|
+
body = JSON.stringify(
|
|
510
|
+
(0, import_smithy_client.take)(input, {
|
|
511
|
+
Arn: []
|
|
512
|
+
})
|
|
513
|
+
);
|
|
514
|
+
b.m("POST").h(headers).b(body);
|
|
515
|
+
return b.build();
|
|
516
|
+
}, "se_ListTagsForResourceCommand");
|
|
517
|
+
var se_ListTargetsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
518
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
519
|
+
const headers = {
|
|
520
|
+
"content-type": "application/json"
|
|
521
|
+
};
|
|
522
|
+
b.bp("/listTargets");
|
|
523
|
+
let body;
|
|
524
|
+
body = JSON.stringify(
|
|
525
|
+
(0, import_smithy_client.take)(input, {
|
|
526
|
+
Filters: (_) => (0, import_smithy_client._json)(_),
|
|
527
|
+
MaxResults: [],
|
|
528
|
+
NextToken: []
|
|
529
|
+
})
|
|
530
|
+
);
|
|
531
|
+
b.m("POST").h(headers).b(body);
|
|
532
|
+
return b.build();
|
|
533
|
+
}, "se_ListTargetsCommand");
|
|
534
|
+
var se_SubscribeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
535
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
536
|
+
const headers = {
|
|
537
|
+
"content-type": "application/json"
|
|
538
|
+
};
|
|
539
|
+
b.bp("/subscribe");
|
|
540
|
+
let body;
|
|
541
|
+
body = JSON.stringify(
|
|
542
|
+
(0, import_smithy_client.take)(input, {
|
|
543
|
+
Arn: [],
|
|
544
|
+
ClientRequestToken: [],
|
|
545
|
+
Target: (_) => (0, import_smithy_client._json)(_)
|
|
546
|
+
})
|
|
547
|
+
);
|
|
548
|
+
b.m("POST").h(headers).b(body);
|
|
549
|
+
return b.build();
|
|
550
|
+
}, "se_SubscribeCommand");
|
|
551
|
+
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
552
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
553
|
+
const headers = {
|
|
554
|
+
"content-type": "application/json"
|
|
555
|
+
};
|
|
556
|
+
b.bp("/tagResource");
|
|
557
|
+
let body;
|
|
558
|
+
body = JSON.stringify(
|
|
559
|
+
(0, import_smithy_client.take)(input, {
|
|
560
|
+
Arn: [],
|
|
561
|
+
Tags: (_) => (0, import_smithy_client._json)(_)
|
|
562
|
+
})
|
|
563
|
+
);
|
|
564
|
+
b.m("POST").h(headers).b(body);
|
|
565
|
+
return b.build();
|
|
566
|
+
}, "se_TagResourceCommand");
|
|
567
|
+
var se_UnsubscribeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
568
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
569
|
+
const headers = {
|
|
570
|
+
"content-type": "application/json"
|
|
571
|
+
};
|
|
572
|
+
b.bp("/unsubscribe");
|
|
573
|
+
let body;
|
|
574
|
+
body = JSON.stringify(
|
|
575
|
+
(0, import_smithy_client.take)(input, {
|
|
576
|
+
Arn: [],
|
|
577
|
+
TargetAddress: []
|
|
578
|
+
})
|
|
579
|
+
);
|
|
580
|
+
b.m("POST").h(headers).b(body);
|
|
581
|
+
return b.build();
|
|
582
|
+
}, "se_UnsubscribeCommand");
|
|
583
|
+
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
584
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
585
|
+
const headers = {};
|
|
586
|
+
b.bp("/untagResource/{Arn}");
|
|
587
|
+
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
588
|
+
const query = (0, import_smithy_client.map)({
|
|
589
|
+
[_tK]: [
|
|
590
|
+
(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
591
|
+
() => (input[_TK] || []).map((_entry) => _entry)
|
|
592
|
+
]
|
|
593
|
+
});
|
|
594
|
+
let body;
|
|
595
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
596
|
+
return b.build();
|
|
597
|
+
}, "se_UntagResourceCommand");
|
|
598
|
+
var se_UpdateNotificationRuleCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
599
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
600
|
+
const headers = {
|
|
601
|
+
"content-type": "application/json"
|
|
602
|
+
};
|
|
603
|
+
b.bp("/updateNotificationRule");
|
|
604
|
+
let body;
|
|
605
|
+
body = JSON.stringify(
|
|
606
|
+
(0, import_smithy_client.take)(input, {
|
|
607
|
+
Arn: [],
|
|
608
|
+
DetailType: [],
|
|
609
|
+
EventTypeIds: (_) => (0, import_smithy_client._json)(_),
|
|
610
|
+
Name: [],
|
|
611
|
+
Status: [],
|
|
612
|
+
Targets: (_) => (0, import_smithy_client._json)(_)
|
|
613
|
+
})
|
|
614
|
+
);
|
|
615
|
+
b.m("POST").h(headers).b(body);
|
|
616
|
+
return b.build();
|
|
617
|
+
}, "se_UpdateNotificationRuleCommand");
|
|
618
|
+
var de_CreateNotificationRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
619
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
620
|
+
return de_CreateNotificationRuleCommandError(output, context);
|
|
621
|
+
}
|
|
622
|
+
const contents = (0, import_smithy_client.map)({
|
|
623
|
+
$metadata: deserializeMetadata(output)
|
|
624
|
+
});
|
|
625
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
626
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
627
|
+
Arn: import_smithy_client.expectString
|
|
628
|
+
});
|
|
629
|
+
Object.assign(contents, doc);
|
|
630
|
+
return contents;
|
|
631
|
+
}, "de_CreateNotificationRuleCommand");
|
|
632
|
+
var de_CreateNotificationRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
633
|
+
const parsedOutput = {
|
|
634
|
+
...output,
|
|
635
|
+
body: await parseErrorBody(output.body, context)
|
|
636
|
+
};
|
|
637
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
638
|
+
switch (errorCode) {
|
|
639
|
+
case "AccessDeniedException":
|
|
640
|
+
case "com.amazonaws.codestarnotifications#AccessDeniedException":
|
|
641
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
642
|
+
case "ConcurrentModificationException":
|
|
643
|
+
case "com.amazonaws.codestarnotifications#ConcurrentModificationException":
|
|
644
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
645
|
+
case "ConfigurationException":
|
|
646
|
+
case "com.amazonaws.codestarnotifications#ConfigurationException":
|
|
647
|
+
throw await de_ConfigurationExceptionRes(parsedOutput, context);
|
|
648
|
+
case "LimitExceededException":
|
|
649
|
+
case "com.amazonaws.codestarnotifications#LimitExceededException":
|
|
650
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
651
|
+
case "ResourceAlreadyExistsException":
|
|
652
|
+
case "com.amazonaws.codestarnotifications#ResourceAlreadyExistsException":
|
|
653
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
654
|
+
case "ValidationException":
|
|
655
|
+
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
656
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
657
|
+
default:
|
|
658
|
+
const parsedBody = parsedOutput.body;
|
|
659
|
+
return throwDefaultError({
|
|
660
|
+
output,
|
|
661
|
+
parsedBody,
|
|
662
|
+
errorCode
|
|
663
|
+
});
|
|
664
|
+
}
|
|
665
|
+
}, "de_CreateNotificationRuleCommandError");
|
|
666
|
+
var de_DeleteNotificationRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
667
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
668
|
+
return de_DeleteNotificationRuleCommandError(output, context);
|
|
669
|
+
}
|
|
670
|
+
const contents = (0, import_smithy_client.map)({
|
|
671
|
+
$metadata: deserializeMetadata(output)
|
|
672
|
+
});
|
|
673
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
674
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
675
|
+
Arn: import_smithy_client.expectString
|
|
676
|
+
});
|
|
677
|
+
Object.assign(contents, doc);
|
|
678
|
+
return contents;
|
|
679
|
+
}, "de_DeleteNotificationRuleCommand");
|
|
680
|
+
var de_DeleteNotificationRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
681
|
+
const parsedOutput = {
|
|
682
|
+
...output,
|
|
683
|
+
body: await parseErrorBody(output.body, context)
|
|
684
|
+
};
|
|
685
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
686
|
+
switch (errorCode) {
|
|
687
|
+
case "ConcurrentModificationException":
|
|
688
|
+
case "com.amazonaws.codestarnotifications#ConcurrentModificationException":
|
|
689
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
690
|
+
case "LimitExceededException":
|
|
691
|
+
case "com.amazonaws.codestarnotifications#LimitExceededException":
|
|
692
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
693
|
+
case "ValidationException":
|
|
694
|
+
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
695
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
696
|
+
default:
|
|
697
|
+
const parsedBody = parsedOutput.body;
|
|
698
|
+
return throwDefaultError({
|
|
699
|
+
output,
|
|
700
|
+
parsedBody,
|
|
701
|
+
errorCode
|
|
702
|
+
});
|
|
703
|
+
}
|
|
704
|
+
}, "de_DeleteNotificationRuleCommandError");
|
|
705
|
+
var de_DeleteTargetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
706
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
707
|
+
return de_DeleteTargetCommandError(output, context);
|
|
708
|
+
}
|
|
709
|
+
const contents = (0, import_smithy_client.map)({
|
|
710
|
+
$metadata: deserializeMetadata(output)
|
|
711
|
+
});
|
|
712
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
713
|
+
return contents;
|
|
714
|
+
}, "de_DeleteTargetCommand");
|
|
715
|
+
var de_DeleteTargetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
716
|
+
const parsedOutput = {
|
|
717
|
+
...output,
|
|
718
|
+
body: await parseErrorBody(output.body, context)
|
|
719
|
+
};
|
|
720
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
721
|
+
switch (errorCode) {
|
|
722
|
+
case "ValidationException":
|
|
723
|
+
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
724
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
725
|
+
default:
|
|
726
|
+
const parsedBody = parsedOutput.body;
|
|
727
|
+
return throwDefaultError({
|
|
728
|
+
output,
|
|
729
|
+
parsedBody,
|
|
730
|
+
errorCode
|
|
731
|
+
});
|
|
732
|
+
}
|
|
733
|
+
}, "de_DeleteTargetCommandError");
|
|
734
|
+
var de_DescribeNotificationRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
735
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
736
|
+
return de_DescribeNotificationRuleCommandError(output, context);
|
|
737
|
+
}
|
|
738
|
+
const contents = (0, import_smithy_client.map)({
|
|
739
|
+
$metadata: deserializeMetadata(output)
|
|
740
|
+
});
|
|
741
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
742
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
743
|
+
Arn: import_smithy_client.expectString,
|
|
744
|
+
CreatedBy: import_smithy_client.expectString,
|
|
745
|
+
CreatedTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
746
|
+
DetailType: import_smithy_client.expectString,
|
|
747
|
+
EventTypes: import_smithy_client._json,
|
|
748
|
+
LastModifiedTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
749
|
+
Name: import_smithy_client.expectString,
|
|
750
|
+
Resource: import_smithy_client.expectString,
|
|
751
|
+
Status: import_smithy_client.expectString,
|
|
752
|
+
Tags: import_smithy_client._json,
|
|
753
|
+
Targets: import_smithy_client._json
|
|
754
|
+
});
|
|
755
|
+
Object.assign(contents, doc);
|
|
756
|
+
return contents;
|
|
757
|
+
}, "de_DescribeNotificationRuleCommand");
|
|
758
|
+
var de_DescribeNotificationRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
759
|
+
const parsedOutput = {
|
|
760
|
+
...output,
|
|
761
|
+
body: await parseErrorBody(output.body, context)
|
|
762
|
+
};
|
|
763
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
764
|
+
switch (errorCode) {
|
|
765
|
+
case "ResourceNotFoundException":
|
|
766
|
+
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
767
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
768
|
+
case "ValidationException":
|
|
769
|
+
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
770
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
771
|
+
default:
|
|
772
|
+
const parsedBody = parsedOutput.body;
|
|
773
|
+
return throwDefaultError({
|
|
774
|
+
output,
|
|
775
|
+
parsedBody,
|
|
776
|
+
errorCode
|
|
777
|
+
});
|
|
778
|
+
}
|
|
779
|
+
}, "de_DescribeNotificationRuleCommandError");
|
|
780
|
+
var de_ListEventTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
781
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
782
|
+
return de_ListEventTypesCommandError(output, context);
|
|
783
|
+
}
|
|
784
|
+
const contents = (0, import_smithy_client.map)({
|
|
785
|
+
$metadata: deserializeMetadata(output)
|
|
786
|
+
});
|
|
787
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
788
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
789
|
+
EventTypes: import_smithy_client._json,
|
|
790
|
+
NextToken: import_smithy_client.expectString
|
|
791
|
+
});
|
|
792
|
+
Object.assign(contents, doc);
|
|
793
|
+
return contents;
|
|
794
|
+
}, "de_ListEventTypesCommand");
|
|
795
|
+
var de_ListEventTypesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
796
|
+
const parsedOutput = {
|
|
797
|
+
...output,
|
|
798
|
+
body: await parseErrorBody(output.body, context)
|
|
799
|
+
};
|
|
800
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
801
|
+
switch (errorCode) {
|
|
802
|
+
case "InvalidNextTokenException":
|
|
803
|
+
case "com.amazonaws.codestarnotifications#InvalidNextTokenException":
|
|
804
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
805
|
+
case "ValidationException":
|
|
806
|
+
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
807
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
808
|
+
default:
|
|
809
|
+
const parsedBody = parsedOutput.body;
|
|
810
|
+
return throwDefaultError({
|
|
811
|
+
output,
|
|
812
|
+
parsedBody,
|
|
813
|
+
errorCode
|
|
814
|
+
});
|
|
815
|
+
}
|
|
816
|
+
}, "de_ListEventTypesCommandError");
|
|
817
|
+
var de_ListNotificationRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
818
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
819
|
+
return de_ListNotificationRulesCommandError(output, context);
|
|
820
|
+
}
|
|
821
|
+
const contents = (0, import_smithy_client.map)({
|
|
822
|
+
$metadata: deserializeMetadata(output)
|
|
823
|
+
});
|
|
824
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
825
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
826
|
+
NextToken: import_smithy_client.expectString,
|
|
827
|
+
NotificationRules: import_smithy_client._json
|
|
828
|
+
});
|
|
829
|
+
Object.assign(contents, doc);
|
|
830
|
+
return contents;
|
|
831
|
+
}, "de_ListNotificationRulesCommand");
|
|
832
|
+
var de_ListNotificationRulesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
833
|
+
const parsedOutput = {
|
|
834
|
+
...output,
|
|
835
|
+
body: await parseErrorBody(output.body, context)
|
|
836
|
+
};
|
|
837
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
838
|
+
switch (errorCode) {
|
|
839
|
+
case "InvalidNextTokenException":
|
|
840
|
+
case "com.amazonaws.codestarnotifications#InvalidNextTokenException":
|
|
841
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
842
|
+
case "ValidationException":
|
|
843
|
+
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
844
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
845
|
+
default:
|
|
846
|
+
const parsedBody = parsedOutput.body;
|
|
847
|
+
return throwDefaultError({
|
|
848
|
+
output,
|
|
849
|
+
parsedBody,
|
|
850
|
+
errorCode
|
|
851
|
+
});
|
|
852
|
+
}
|
|
853
|
+
}, "de_ListNotificationRulesCommandError");
|
|
854
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
855
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
856
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
857
|
+
}
|
|
858
|
+
const contents = (0, import_smithy_client.map)({
|
|
859
|
+
$metadata: deserializeMetadata(output)
|
|
860
|
+
});
|
|
861
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
862
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
863
|
+
Tags: import_smithy_client._json
|
|
864
|
+
});
|
|
865
|
+
Object.assign(contents, doc);
|
|
866
|
+
return contents;
|
|
867
|
+
}, "de_ListTagsForResourceCommand");
|
|
868
|
+
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
869
|
+
const parsedOutput = {
|
|
870
|
+
...output,
|
|
871
|
+
body: await parseErrorBody(output.body, context)
|
|
872
|
+
};
|
|
873
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
874
|
+
switch (errorCode) {
|
|
875
|
+
case "ResourceNotFoundException":
|
|
876
|
+
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
877
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
878
|
+
case "ValidationException":
|
|
879
|
+
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
880
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
881
|
+
default:
|
|
882
|
+
const parsedBody = parsedOutput.body;
|
|
883
|
+
return throwDefaultError({
|
|
884
|
+
output,
|
|
885
|
+
parsedBody,
|
|
886
|
+
errorCode
|
|
887
|
+
});
|
|
888
|
+
}
|
|
889
|
+
}, "de_ListTagsForResourceCommandError");
|
|
890
|
+
var de_ListTargetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
891
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
892
|
+
return de_ListTargetsCommandError(output, context);
|
|
893
|
+
}
|
|
894
|
+
const contents = (0, import_smithy_client.map)({
|
|
895
|
+
$metadata: deserializeMetadata(output)
|
|
896
|
+
});
|
|
897
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
898
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
899
|
+
NextToken: import_smithy_client.expectString,
|
|
900
|
+
Targets: import_smithy_client._json
|
|
901
|
+
});
|
|
902
|
+
Object.assign(contents, doc);
|
|
903
|
+
return contents;
|
|
904
|
+
}, "de_ListTargetsCommand");
|
|
905
|
+
var de_ListTargetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
906
|
+
const parsedOutput = {
|
|
907
|
+
...output,
|
|
908
|
+
body: await parseErrorBody(output.body, context)
|
|
909
|
+
};
|
|
910
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
911
|
+
switch (errorCode) {
|
|
912
|
+
case "InvalidNextTokenException":
|
|
913
|
+
case "com.amazonaws.codestarnotifications#InvalidNextTokenException":
|
|
914
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
915
|
+
case "ValidationException":
|
|
916
|
+
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
917
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
918
|
+
default:
|
|
919
|
+
const parsedBody = parsedOutput.body;
|
|
920
|
+
return throwDefaultError({
|
|
921
|
+
output,
|
|
922
|
+
parsedBody,
|
|
923
|
+
errorCode
|
|
924
|
+
});
|
|
925
|
+
}
|
|
926
|
+
}, "de_ListTargetsCommandError");
|
|
927
|
+
var de_SubscribeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
928
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
929
|
+
return de_SubscribeCommandError(output, context);
|
|
930
|
+
}
|
|
931
|
+
const contents = (0, import_smithy_client.map)({
|
|
932
|
+
$metadata: deserializeMetadata(output)
|
|
933
|
+
});
|
|
934
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
935
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
936
|
+
Arn: import_smithy_client.expectString
|
|
937
|
+
});
|
|
938
|
+
Object.assign(contents, doc);
|
|
939
|
+
return contents;
|
|
940
|
+
}, "de_SubscribeCommand");
|
|
941
|
+
var de_SubscribeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
942
|
+
const parsedOutput = {
|
|
943
|
+
...output,
|
|
944
|
+
body: await parseErrorBody(output.body, context)
|
|
945
|
+
};
|
|
946
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
947
|
+
switch (errorCode) {
|
|
948
|
+
case "ConfigurationException":
|
|
949
|
+
case "com.amazonaws.codestarnotifications#ConfigurationException":
|
|
950
|
+
throw await de_ConfigurationExceptionRes(parsedOutput, context);
|
|
951
|
+
case "ResourceNotFoundException":
|
|
952
|
+
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
953
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
954
|
+
case "ValidationException":
|
|
955
|
+
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
956
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
957
|
+
default:
|
|
958
|
+
const parsedBody = parsedOutput.body;
|
|
959
|
+
return throwDefaultError({
|
|
960
|
+
output,
|
|
961
|
+
parsedBody,
|
|
962
|
+
errorCode
|
|
963
|
+
});
|
|
964
|
+
}
|
|
965
|
+
}, "de_SubscribeCommandError");
|
|
966
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
967
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
968
|
+
return de_TagResourceCommandError(output, context);
|
|
969
|
+
}
|
|
970
|
+
const contents = (0, import_smithy_client.map)({
|
|
971
|
+
$metadata: deserializeMetadata(output)
|
|
972
|
+
});
|
|
973
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
974
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
975
|
+
Tags: import_smithy_client._json
|
|
976
|
+
});
|
|
977
|
+
Object.assign(contents, doc);
|
|
978
|
+
return contents;
|
|
979
|
+
}, "de_TagResourceCommand");
|
|
980
|
+
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
981
|
+
const parsedOutput = {
|
|
982
|
+
...output,
|
|
983
|
+
body: await parseErrorBody(output.body, context)
|
|
984
|
+
};
|
|
985
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
986
|
+
switch (errorCode) {
|
|
987
|
+
case "ConcurrentModificationException":
|
|
988
|
+
case "com.amazonaws.codestarnotifications#ConcurrentModificationException":
|
|
989
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
990
|
+
case "LimitExceededException":
|
|
991
|
+
case "com.amazonaws.codestarnotifications#LimitExceededException":
|
|
992
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
993
|
+
case "ResourceNotFoundException":
|
|
994
|
+
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
995
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
996
|
+
case "ValidationException":
|
|
997
|
+
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
998
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
999
|
+
default:
|
|
1000
|
+
const parsedBody = parsedOutput.body;
|
|
1001
|
+
return throwDefaultError({
|
|
1002
|
+
output,
|
|
1003
|
+
parsedBody,
|
|
1004
|
+
errorCode
|
|
1005
|
+
});
|
|
1006
|
+
}
|
|
1007
|
+
}, "de_TagResourceCommandError");
|
|
1008
|
+
var de_UnsubscribeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1009
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1010
|
+
return de_UnsubscribeCommandError(output, context);
|
|
1011
|
+
}
|
|
1012
|
+
const contents = (0, import_smithy_client.map)({
|
|
1013
|
+
$metadata: deserializeMetadata(output)
|
|
1014
|
+
});
|
|
1015
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1016
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1017
|
+
Arn: import_smithy_client.expectString
|
|
1018
|
+
});
|
|
1019
|
+
Object.assign(contents, doc);
|
|
1020
|
+
return contents;
|
|
1021
|
+
}, "de_UnsubscribeCommand");
|
|
1022
|
+
var de_UnsubscribeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1023
|
+
const parsedOutput = {
|
|
1024
|
+
...output,
|
|
1025
|
+
body: await parseErrorBody(output.body, context)
|
|
1026
|
+
};
|
|
1027
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1028
|
+
switch (errorCode) {
|
|
1029
|
+
case "ValidationException":
|
|
1030
|
+
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
1031
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1032
|
+
default:
|
|
1033
|
+
const parsedBody = parsedOutput.body;
|
|
1034
|
+
return throwDefaultError({
|
|
1035
|
+
output,
|
|
1036
|
+
parsedBody,
|
|
1037
|
+
errorCode
|
|
1038
|
+
});
|
|
1039
|
+
}
|
|
1040
|
+
}, "de_UnsubscribeCommandError");
|
|
1041
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1042
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1043
|
+
return de_UntagResourceCommandError(output, context);
|
|
1044
|
+
}
|
|
1045
|
+
const contents = (0, import_smithy_client.map)({
|
|
1046
|
+
$metadata: deserializeMetadata(output)
|
|
1047
|
+
});
|
|
1048
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1049
|
+
return contents;
|
|
1050
|
+
}, "de_UntagResourceCommand");
|
|
1051
|
+
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1052
|
+
const parsedOutput = {
|
|
1053
|
+
...output,
|
|
1054
|
+
body: await parseErrorBody(output.body, context)
|
|
1055
|
+
};
|
|
1056
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1057
|
+
switch (errorCode) {
|
|
1058
|
+
case "ConcurrentModificationException":
|
|
1059
|
+
case "com.amazonaws.codestarnotifications#ConcurrentModificationException":
|
|
1060
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1061
|
+
case "LimitExceededException":
|
|
1062
|
+
case "com.amazonaws.codestarnotifications#LimitExceededException":
|
|
1063
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1064
|
+
case "ResourceNotFoundException":
|
|
1065
|
+
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
1066
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1067
|
+
case "ValidationException":
|
|
1068
|
+
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
1069
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1070
|
+
default:
|
|
1071
|
+
const parsedBody = parsedOutput.body;
|
|
1072
|
+
return throwDefaultError({
|
|
1073
|
+
output,
|
|
1074
|
+
parsedBody,
|
|
1075
|
+
errorCode
|
|
1076
|
+
});
|
|
1077
|
+
}
|
|
1078
|
+
}, "de_UntagResourceCommandError");
|
|
1079
|
+
var de_UpdateNotificationRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1080
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1081
|
+
return de_UpdateNotificationRuleCommandError(output, context);
|
|
1082
|
+
}
|
|
1083
|
+
const contents = (0, import_smithy_client.map)({
|
|
1084
|
+
$metadata: deserializeMetadata(output)
|
|
1085
|
+
});
|
|
1086
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1087
|
+
return contents;
|
|
1088
|
+
}, "de_UpdateNotificationRuleCommand");
|
|
1089
|
+
var de_UpdateNotificationRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1090
|
+
const parsedOutput = {
|
|
1091
|
+
...output,
|
|
1092
|
+
body: await parseErrorBody(output.body, context)
|
|
1093
|
+
};
|
|
1094
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1095
|
+
switch (errorCode) {
|
|
1096
|
+
case "ConfigurationException":
|
|
1097
|
+
case "com.amazonaws.codestarnotifications#ConfigurationException":
|
|
1098
|
+
throw await de_ConfigurationExceptionRes(parsedOutput, context);
|
|
1099
|
+
case "ResourceNotFoundException":
|
|
1100
|
+
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
1101
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1102
|
+
case "ValidationException":
|
|
1103
|
+
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
1104
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1105
|
+
default:
|
|
1106
|
+
const parsedBody = parsedOutput.body;
|
|
1107
|
+
return throwDefaultError({
|
|
1108
|
+
output,
|
|
1109
|
+
parsedBody,
|
|
1110
|
+
errorCode
|
|
1111
|
+
});
|
|
1112
|
+
}
|
|
1113
|
+
}, "de_UpdateNotificationRuleCommandError");
|
|
1114
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(CodestarNotificationsServiceException);
|
|
1115
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1116
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1117
|
+
const data = parsedOutput.body;
|
|
1118
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1119
|
+
Message: import_smithy_client.expectString
|
|
1120
|
+
});
|
|
1121
|
+
Object.assign(contents, doc);
|
|
1122
|
+
const exception = new AccessDeniedException({
|
|
1123
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1124
|
+
...contents
|
|
1125
|
+
});
|
|
1126
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1127
|
+
}, "de_AccessDeniedExceptionRes");
|
|
1128
|
+
var de_ConcurrentModificationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1129
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1130
|
+
const data = parsedOutput.body;
|
|
1131
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1132
|
+
Message: import_smithy_client.expectString
|
|
1133
|
+
});
|
|
1134
|
+
Object.assign(contents, doc);
|
|
1135
|
+
const exception = new ConcurrentModificationException({
|
|
1136
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1137
|
+
...contents
|
|
1138
|
+
});
|
|
1139
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1140
|
+
}, "de_ConcurrentModificationExceptionRes");
|
|
1141
|
+
var de_ConfigurationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1142
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1143
|
+
const data = parsedOutput.body;
|
|
1144
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1145
|
+
Message: import_smithy_client.expectString
|
|
1146
|
+
});
|
|
1147
|
+
Object.assign(contents, doc);
|
|
1148
|
+
const exception = new ConfigurationException({
|
|
1149
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1150
|
+
...contents
|
|
1151
|
+
});
|
|
1152
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1153
|
+
}, "de_ConfigurationExceptionRes");
|
|
1154
|
+
var de_InvalidNextTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1155
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1156
|
+
const data = parsedOutput.body;
|
|
1157
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1158
|
+
Message: import_smithy_client.expectString
|
|
1159
|
+
});
|
|
1160
|
+
Object.assign(contents, doc);
|
|
1161
|
+
const exception = new InvalidNextTokenException({
|
|
1162
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1163
|
+
...contents
|
|
1164
|
+
});
|
|
1165
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1166
|
+
}, "de_InvalidNextTokenExceptionRes");
|
|
1167
|
+
var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1168
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1169
|
+
const data = parsedOutput.body;
|
|
1170
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1171
|
+
Message: import_smithy_client.expectString
|
|
1172
|
+
});
|
|
1173
|
+
Object.assign(contents, doc);
|
|
1174
|
+
const exception = new LimitExceededException({
|
|
1175
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1176
|
+
...contents
|
|
1177
|
+
});
|
|
1178
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1179
|
+
}, "de_LimitExceededExceptionRes");
|
|
1180
|
+
var de_ResourceAlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1181
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1182
|
+
const data = parsedOutput.body;
|
|
1183
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1184
|
+
Message: import_smithy_client.expectString
|
|
1185
|
+
});
|
|
1186
|
+
Object.assign(contents, doc);
|
|
1187
|
+
const exception = new ResourceAlreadyExistsException({
|
|
1188
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1189
|
+
...contents
|
|
1190
|
+
});
|
|
1191
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1192
|
+
}, "de_ResourceAlreadyExistsExceptionRes");
|
|
1193
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1194
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1195
|
+
const data = parsedOutput.body;
|
|
1196
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1197
|
+
Message: import_smithy_client.expectString
|
|
1198
|
+
});
|
|
1199
|
+
Object.assign(contents, doc);
|
|
1200
|
+
const exception = new ResourceNotFoundException({
|
|
1201
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1202
|
+
...contents
|
|
1203
|
+
});
|
|
1204
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1205
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
1206
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1207
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1208
|
+
const data = parsedOutput.body;
|
|
1209
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1210
|
+
Message: import_smithy_client.expectString
|
|
1211
|
+
});
|
|
1212
|
+
Object.assign(contents, doc);
|
|
1213
|
+
const exception = new ValidationException({
|
|
1214
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1215
|
+
...contents
|
|
1216
|
+
});
|
|
1217
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1218
|
+
}, "de_ValidationExceptionRes");
|
|
1219
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1220
|
+
httpStatusCode: output.statusCode,
|
|
1221
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1222
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1223
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
1224
|
+
}), "deserializeMetadata");
|
|
1225
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1226
|
+
var _TK = "TagKeys";
|
|
1227
|
+
var _tK = "tagKeys";
|
|
1228
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1229
|
+
if (encoded.length) {
|
|
1230
|
+
return JSON.parse(encoded);
|
|
1231
|
+
}
|
|
1232
|
+
return {};
|
|
1233
|
+
}), "parseBody");
|
|
1234
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1235
|
+
const value = await parseBody(errorBody, context);
|
|
1236
|
+
value.message = value.message ?? value.Message;
|
|
1237
|
+
return value;
|
|
1238
|
+
}, "parseErrorBody");
|
|
1239
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1240
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1241
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1242
|
+
let cleanValue = rawValue;
|
|
1243
|
+
if (typeof cleanValue === "number") {
|
|
1244
|
+
cleanValue = cleanValue.toString();
|
|
1245
|
+
}
|
|
1246
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
1247
|
+
cleanValue = cleanValue.split(",")[0];
|
|
1248
|
+
}
|
|
1249
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
1250
|
+
cleanValue = cleanValue.split(":")[0];
|
|
1251
|
+
}
|
|
1252
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
1253
|
+
cleanValue = cleanValue.split("#")[1];
|
|
1254
|
+
}
|
|
1255
|
+
return cleanValue;
|
|
1256
|
+
}, "sanitizeErrorCode");
|
|
1257
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1258
|
+
if (headerKey !== void 0) {
|
|
1259
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1260
|
+
}
|
|
1261
|
+
if (data.code !== void 0) {
|
|
1262
|
+
return sanitizeErrorCode(data.code);
|
|
1263
|
+
}
|
|
1264
|
+
if (data["__type"] !== void 0) {
|
|
1265
|
+
return sanitizeErrorCode(data["__type"]);
|
|
1266
|
+
}
|
|
1267
|
+
}, "loadRestJsonErrorCode");
|
|
1268
|
+
|
|
1269
|
+
// src/commands/CreateNotificationRuleCommand.ts
|
|
1270
|
+
var _CreateNotificationRuleCommand = class _CreateNotificationRuleCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1271
|
+
...commonParams
|
|
1272
|
+
}).m(function(Command, cs, config, o) {
|
|
1273
|
+
return [
|
|
1274
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1275
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1276
|
+
];
|
|
1277
|
+
}).s("CodeStarNotifications_20191015", "CreateNotificationRule", {}).n("CodestarNotificationsClient", "CreateNotificationRuleCommand").f(CreateNotificationRuleRequestFilterSensitiveLog, void 0).ser(se_CreateNotificationRuleCommand).de(de_CreateNotificationRuleCommand).build() {
|
|
1278
|
+
};
|
|
1279
|
+
__name(_CreateNotificationRuleCommand, "CreateNotificationRuleCommand");
|
|
1280
|
+
var CreateNotificationRuleCommand = _CreateNotificationRuleCommand;
|
|
1281
|
+
|
|
1282
|
+
// src/commands/DeleteNotificationRuleCommand.ts
|
|
1283
|
+
|
|
1284
|
+
|
|
1285
|
+
|
|
1286
|
+
|
|
1287
|
+
var _DeleteNotificationRuleCommand = class _DeleteNotificationRuleCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1288
|
+
...commonParams
|
|
1289
|
+
}).m(function(Command, cs, config, o) {
|
|
1290
|
+
return [
|
|
1291
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1292
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1293
|
+
];
|
|
1294
|
+
}).s("CodeStarNotifications_20191015", "DeleteNotificationRule", {}).n("CodestarNotificationsClient", "DeleteNotificationRuleCommand").f(void 0, void 0).ser(se_DeleteNotificationRuleCommand).de(de_DeleteNotificationRuleCommand).build() {
|
|
1295
|
+
};
|
|
1296
|
+
__name(_DeleteNotificationRuleCommand, "DeleteNotificationRuleCommand");
|
|
1297
|
+
var DeleteNotificationRuleCommand = _DeleteNotificationRuleCommand;
|
|
1298
|
+
|
|
1299
|
+
// src/commands/DeleteTargetCommand.ts
|
|
1300
|
+
|
|
1301
|
+
|
|
1302
|
+
|
|
1303
|
+
|
|
1304
|
+
var _DeleteTargetCommand = class _DeleteTargetCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1305
|
+
...commonParams
|
|
1306
|
+
}).m(function(Command, cs, config, o) {
|
|
1307
|
+
return [
|
|
1308
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1309
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1310
|
+
];
|
|
1311
|
+
}).s("CodeStarNotifications_20191015", "DeleteTarget", {}).n("CodestarNotificationsClient", "DeleteTargetCommand").f(DeleteTargetRequestFilterSensitiveLog, void 0).ser(se_DeleteTargetCommand).de(de_DeleteTargetCommand).build() {
|
|
1312
|
+
};
|
|
1313
|
+
__name(_DeleteTargetCommand, "DeleteTargetCommand");
|
|
1314
|
+
var DeleteTargetCommand = _DeleteTargetCommand;
|
|
1315
|
+
|
|
1316
|
+
// src/commands/DescribeNotificationRuleCommand.ts
|
|
1317
|
+
|
|
1318
|
+
|
|
1319
|
+
|
|
1320
|
+
|
|
1321
|
+
var _DescribeNotificationRuleCommand = class _DescribeNotificationRuleCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1322
|
+
...commonParams
|
|
1323
|
+
}).m(function(Command, cs, config, o) {
|
|
1324
|
+
return [
|
|
1325
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1326
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1327
|
+
];
|
|
1328
|
+
}).s("CodeStarNotifications_20191015", "DescribeNotificationRule", {}).n("CodestarNotificationsClient", "DescribeNotificationRuleCommand").f(void 0, DescribeNotificationRuleResultFilterSensitiveLog).ser(se_DescribeNotificationRuleCommand).de(de_DescribeNotificationRuleCommand).build() {
|
|
1329
|
+
};
|
|
1330
|
+
__name(_DescribeNotificationRuleCommand, "DescribeNotificationRuleCommand");
|
|
1331
|
+
var DescribeNotificationRuleCommand = _DescribeNotificationRuleCommand;
|
|
1332
|
+
|
|
1333
|
+
// src/commands/ListEventTypesCommand.ts
|
|
1334
|
+
|
|
1335
|
+
|
|
1336
|
+
|
|
1337
|
+
|
|
1338
|
+
var _ListEventTypesCommand = class _ListEventTypesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1339
|
+
...commonParams
|
|
1340
|
+
}).m(function(Command, cs, config, o) {
|
|
1341
|
+
return [
|
|
1342
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1343
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1344
|
+
];
|
|
1345
|
+
}).s("CodeStarNotifications_20191015", "ListEventTypes", {}).n("CodestarNotificationsClient", "ListEventTypesCommand").f(void 0, void 0).ser(se_ListEventTypesCommand).de(de_ListEventTypesCommand).build() {
|
|
1346
|
+
};
|
|
1347
|
+
__name(_ListEventTypesCommand, "ListEventTypesCommand");
|
|
1348
|
+
var ListEventTypesCommand = _ListEventTypesCommand;
|
|
1349
|
+
|
|
1350
|
+
// src/commands/ListNotificationRulesCommand.ts
|
|
1351
|
+
|
|
1352
|
+
|
|
1353
|
+
|
|
1354
|
+
|
|
1355
|
+
var _ListNotificationRulesCommand = class _ListNotificationRulesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1356
|
+
...commonParams
|
|
1357
|
+
}).m(function(Command, cs, config, o) {
|
|
1358
|
+
return [
|
|
1359
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1360
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1361
|
+
];
|
|
1362
|
+
}).s("CodeStarNotifications_20191015", "ListNotificationRules", {}).n("CodestarNotificationsClient", "ListNotificationRulesCommand").f(void 0, void 0).ser(se_ListNotificationRulesCommand).de(de_ListNotificationRulesCommand).build() {
|
|
1363
|
+
};
|
|
1364
|
+
__name(_ListNotificationRulesCommand, "ListNotificationRulesCommand");
|
|
1365
|
+
var ListNotificationRulesCommand = _ListNotificationRulesCommand;
|
|
1366
|
+
|
|
1367
|
+
// src/commands/ListTagsForResourceCommand.ts
|
|
1368
|
+
|
|
1369
|
+
|
|
1370
|
+
|
|
1371
|
+
|
|
1372
|
+
var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1373
|
+
...commonParams
|
|
1374
|
+
}).m(function(Command, cs, config, o) {
|
|
1375
|
+
return [
|
|
1376
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1377
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1378
|
+
];
|
|
1379
|
+
}).s("CodeStarNotifications_20191015", "ListTagsForResource", {}).n("CodestarNotificationsClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
1380
|
+
};
|
|
1381
|
+
__name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
|
|
1382
|
+
var ListTagsForResourceCommand = _ListTagsForResourceCommand;
|
|
1383
|
+
|
|
1384
|
+
// src/commands/ListTargetsCommand.ts
|
|
1385
|
+
|
|
1386
|
+
|
|
1387
|
+
|
|
1388
|
+
|
|
1389
|
+
var _ListTargetsCommand = class _ListTargetsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1390
|
+
...commonParams
|
|
1391
|
+
}).m(function(Command, cs, config, o) {
|
|
1392
|
+
return [
|
|
1393
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1394
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1395
|
+
];
|
|
1396
|
+
}).s("CodeStarNotifications_20191015", "ListTargets", {}).n("CodestarNotificationsClient", "ListTargetsCommand").f(void 0, ListTargetsResultFilterSensitiveLog).ser(se_ListTargetsCommand).de(de_ListTargetsCommand).build() {
|
|
1397
|
+
};
|
|
1398
|
+
__name(_ListTargetsCommand, "ListTargetsCommand");
|
|
1399
|
+
var ListTargetsCommand = _ListTargetsCommand;
|
|
1400
|
+
|
|
1401
|
+
// src/commands/SubscribeCommand.ts
|
|
1402
|
+
|
|
1403
|
+
|
|
1404
|
+
|
|
1405
|
+
|
|
1406
|
+
var _SubscribeCommand = class _SubscribeCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1407
|
+
...commonParams
|
|
1408
|
+
}).m(function(Command, cs, config, o) {
|
|
1409
|
+
return [
|
|
1410
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1411
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1412
|
+
];
|
|
1413
|
+
}).s("CodeStarNotifications_20191015", "Subscribe", {}).n("CodestarNotificationsClient", "SubscribeCommand").f(SubscribeRequestFilterSensitiveLog, void 0).ser(se_SubscribeCommand).de(de_SubscribeCommand).build() {
|
|
1414
|
+
};
|
|
1415
|
+
__name(_SubscribeCommand, "SubscribeCommand");
|
|
1416
|
+
var SubscribeCommand = _SubscribeCommand;
|
|
1417
|
+
|
|
1418
|
+
// src/commands/TagResourceCommand.ts
|
|
1419
|
+
|
|
1420
|
+
|
|
1421
|
+
|
|
1422
|
+
|
|
1423
|
+
var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1424
|
+
...commonParams
|
|
1425
|
+
}).m(function(Command, cs, config, o) {
|
|
1426
|
+
return [
|
|
1427
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1428
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1429
|
+
];
|
|
1430
|
+
}).s("CodeStarNotifications_20191015", "TagResource", {}).n("CodestarNotificationsClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
1431
|
+
};
|
|
1432
|
+
__name(_TagResourceCommand, "TagResourceCommand");
|
|
1433
|
+
var TagResourceCommand = _TagResourceCommand;
|
|
1434
|
+
|
|
1435
|
+
// src/commands/UnsubscribeCommand.ts
|
|
1436
|
+
|
|
1437
|
+
|
|
1438
|
+
|
|
1439
|
+
|
|
1440
|
+
var _UnsubscribeCommand = class _UnsubscribeCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1441
|
+
...commonParams
|
|
1442
|
+
}).m(function(Command, cs, config, o) {
|
|
1443
|
+
return [
|
|
1444
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1445
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1446
|
+
];
|
|
1447
|
+
}).s("CodeStarNotifications_20191015", "Unsubscribe", {}).n("CodestarNotificationsClient", "UnsubscribeCommand").f(UnsubscribeRequestFilterSensitiveLog, void 0).ser(se_UnsubscribeCommand).de(de_UnsubscribeCommand).build() {
|
|
1448
|
+
};
|
|
1449
|
+
__name(_UnsubscribeCommand, "UnsubscribeCommand");
|
|
1450
|
+
var UnsubscribeCommand = _UnsubscribeCommand;
|
|
1451
|
+
|
|
1452
|
+
// src/commands/UntagResourceCommand.ts
|
|
1453
|
+
|
|
1454
|
+
|
|
1455
|
+
|
|
1456
|
+
|
|
1457
|
+
var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1458
|
+
...commonParams
|
|
1459
|
+
}).m(function(Command, cs, config, o) {
|
|
1460
|
+
return [
|
|
1461
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1462
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1463
|
+
];
|
|
1464
|
+
}).s("CodeStarNotifications_20191015", "UntagResource", {}).n("CodestarNotificationsClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
1465
|
+
};
|
|
1466
|
+
__name(_UntagResourceCommand, "UntagResourceCommand");
|
|
1467
|
+
var UntagResourceCommand = _UntagResourceCommand;
|
|
1468
|
+
|
|
1469
|
+
// src/commands/UpdateNotificationRuleCommand.ts
|
|
1470
|
+
|
|
1471
|
+
|
|
1472
|
+
|
|
1473
|
+
|
|
1474
|
+
var _UpdateNotificationRuleCommand = class _UpdateNotificationRuleCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1475
|
+
...commonParams
|
|
1476
|
+
}).m(function(Command, cs, config, o) {
|
|
1477
|
+
return [
|
|
1478
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1479
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1480
|
+
];
|
|
1481
|
+
}).s("CodeStarNotifications_20191015", "UpdateNotificationRule", {}).n("CodestarNotificationsClient", "UpdateNotificationRuleCommand").f(UpdateNotificationRuleRequestFilterSensitiveLog, void 0).ser(se_UpdateNotificationRuleCommand).de(de_UpdateNotificationRuleCommand).build() {
|
|
1482
|
+
};
|
|
1483
|
+
__name(_UpdateNotificationRuleCommand, "UpdateNotificationRuleCommand");
|
|
1484
|
+
var UpdateNotificationRuleCommand = _UpdateNotificationRuleCommand;
|
|
1485
|
+
|
|
1486
|
+
// src/CodestarNotifications.ts
|
|
1487
|
+
var commands = {
|
|
1488
|
+
CreateNotificationRuleCommand,
|
|
1489
|
+
DeleteNotificationRuleCommand,
|
|
1490
|
+
DeleteTargetCommand,
|
|
1491
|
+
DescribeNotificationRuleCommand,
|
|
1492
|
+
ListEventTypesCommand,
|
|
1493
|
+
ListNotificationRulesCommand,
|
|
1494
|
+
ListTagsForResourceCommand,
|
|
1495
|
+
ListTargetsCommand,
|
|
1496
|
+
SubscribeCommand,
|
|
1497
|
+
TagResourceCommand,
|
|
1498
|
+
UnsubscribeCommand,
|
|
1499
|
+
UntagResourceCommand,
|
|
1500
|
+
UpdateNotificationRuleCommand
|
|
1501
|
+
};
|
|
1502
|
+
var _CodestarNotifications = class _CodestarNotifications extends CodestarNotificationsClient {
|
|
1503
|
+
};
|
|
1504
|
+
__name(_CodestarNotifications, "CodestarNotifications");
|
|
1505
|
+
var CodestarNotifications = _CodestarNotifications;
|
|
1506
|
+
(0, import_smithy_client.createAggregatedClient)(commands, CodestarNotifications);
|
|
1507
|
+
|
|
1508
|
+
// src/pagination/ListEventTypesPaginator.ts
|
|
1509
|
+
|
|
1510
|
+
var paginateListEventTypes = (0, import_core.createPaginator)(CodestarNotificationsClient, ListEventTypesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1511
|
+
|
|
1512
|
+
// src/pagination/ListNotificationRulesPaginator.ts
|
|
1513
|
+
|
|
1514
|
+
var paginateListNotificationRules = (0, import_core.createPaginator)(CodestarNotificationsClient, ListNotificationRulesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1515
|
+
|
|
1516
|
+
// src/pagination/ListTargetsPaginator.ts
|
|
1517
|
+
|
|
1518
|
+
var paginateListTargets = (0, import_core.createPaginator)(CodestarNotificationsClient, ListTargetsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1519
|
+
|
|
1520
|
+
// src/index.ts
|
|
1521
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
1522
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1523
|
+
|
|
1524
|
+
0 && (module.exports = {
|
|
1525
|
+
AccessDeniedException,
|
|
1526
|
+
CodestarNotifications,
|
|
1527
|
+
CodestarNotificationsClient,
|
|
1528
|
+
CodestarNotificationsServiceException,
|
|
1529
|
+
ConcurrentModificationException,
|
|
1530
|
+
ConfigurationException,
|
|
1531
|
+
CreateNotificationRuleCommand,
|
|
1532
|
+
CreateNotificationRuleRequestFilterSensitiveLog,
|
|
1533
|
+
DeleteNotificationRuleCommand,
|
|
1534
|
+
DeleteTargetCommand,
|
|
1535
|
+
DeleteTargetRequestFilterSensitiveLog,
|
|
1536
|
+
DescribeNotificationRuleCommand,
|
|
1537
|
+
DescribeNotificationRuleResultFilterSensitiveLog,
|
|
1538
|
+
DetailType,
|
|
1539
|
+
InvalidNextTokenException,
|
|
1540
|
+
LimitExceededException,
|
|
1541
|
+
ListEventTypesCommand,
|
|
1542
|
+
ListEventTypesFilterName,
|
|
1543
|
+
ListNotificationRulesCommand,
|
|
1544
|
+
ListNotificationRulesFilterName,
|
|
1545
|
+
ListTagsForResourceCommand,
|
|
1546
|
+
ListTargetsCommand,
|
|
1547
|
+
ListTargetsFilterName,
|
|
1548
|
+
ListTargetsResultFilterSensitiveLog,
|
|
1549
|
+
NotificationRuleStatus,
|
|
1550
|
+
ResourceAlreadyExistsException,
|
|
1551
|
+
ResourceNotFoundException,
|
|
1552
|
+
SubscribeCommand,
|
|
1553
|
+
SubscribeRequestFilterSensitiveLog,
|
|
1554
|
+
TagResourceCommand,
|
|
1555
|
+
TargetFilterSensitiveLog,
|
|
1556
|
+
TargetStatus,
|
|
1557
|
+
TargetSummaryFilterSensitiveLog,
|
|
1558
|
+
UnsubscribeCommand,
|
|
1559
|
+
UnsubscribeRequestFilterSensitiveLog,
|
|
1560
|
+
UntagResourceCommand,
|
|
1561
|
+
UpdateNotificationRuleCommand,
|
|
1562
|
+
UpdateNotificationRuleRequestFilterSensitiveLog,
|
|
1563
|
+
ValidationException,
|
|
1564
|
+
__Client,
|
|
1565
|
+
paginateListEventTypes,
|
|
1566
|
+
paginateListNotificationRules,
|
|
1567
|
+
paginateListTargets
|
|
1568
|
+
});
|
|
1569
|
+
|