@aws-sdk/client-codestar-notifications 3.901.0 → 3.906.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist-cjs/index.js +1076 -1249
  2. package/package.json +5 -5
package/dist-cjs/index.js CHANGED
@@ -1,1299 +1,1126 @@
1
- "use strict";
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 });
1
+ 'use strict';
2
+
3
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
5
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
+ var configResolver = require('@smithy/config-resolver');
8
+ var core = require('@smithy/core');
9
+ var middlewareContentLength = require('@smithy/middleware-content-length');
10
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
+ var middlewareRetry = require('@smithy/middleware-retry');
12
+ var smithyClient = require('@smithy/smithy-client');
13
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
+ var runtimeConfig = require('./runtimeConfig');
15
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
+ var protocolHttp = require('@smithy/protocol-http');
17
+ var middlewareSerde = require('@smithy/middleware-serde');
18
+ var core$1 = require('@aws-sdk/core');
19
+ var uuid = require('@smithy/uuid');
20
+
21
+ const resolveClientEndpointParameters = (options) => {
22
+ return Object.assign(options, {
23
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
24
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
25
+ defaultSigningName: "codestar-notifications",
26
+ });
10
27
  };
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;
28
+ const commonParams = {
29
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
30
+ Endpoint: { type: "builtInParams", name: "endpoint" },
31
+ Region: { type: "builtInParams", name: "region" },
32
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
33
  };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/index.ts
22
- var index_exports = {};
23
- __export(index_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(index_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_user_agent = require("@aws-sdk/middleware-user-agent");
75
- var import_config_resolver = require("@smithy/config-resolver");
76
- var import_core = require("@smithy/core");
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
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
82
34
 
83
- // src/endpoint/EndpointParameters.ts
84
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
85
- return Object.assign(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" }
35
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
36
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
37
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
38
+ let _credentials = runtimeConfig.credentials;
39
+ return {
40
+ setHttpAuthScheme(httpAuthScheme) {
41
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
42
+ if (index === -1) {
43
+ _httpAuthSchemes.push(httpAuthScheme);
44
+ }
45
+ else {
46
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
47
+ }
48
+ },
49
+ httpAuthSchemes() {
50
+ return _httpAuthSchemes;
51
+ },
52
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
53
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
54
+ },
55
+ httpAuthSchemeProvider() {
56
+ return _httpAuthSchemeProvider;
57
+ },
58
+ setCredentials(credentials) {
59
+ _credentials = credentials;
60
+ },
61
+ credentials() {
62
+ return _credentials;
63
+ },
64
+ };
65
+ };
66
+ const resolveHttpAuthRuntimeConfig = (config) => {
67
+ return {
68
+ httpAuthSchemes: config.httpAuthSchemes(),
69
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
70
+ credentials: config.credentials(),
71
+ };
96
72
  };
97
73
 
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");
74
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
75
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
76
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
77
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
78
+ };
105
79
 
106
- // src/auth/httpAuthExtensionConfiguration.ts
107
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
108
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
109
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
110
- let _credentials = runtimeConfig.credentials;
111
- return {
112
- setHttpAuthScheme(httpAuthScheme) {
113
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
114
- if (index === -1) {
115
- _httpAuthSchemes.push(httpAuthScheme);
116
- } else {
117
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
118
- }
119
- },
120
- httpAuthSchemes() {
121
- return _httpAuthSchemes;
122
- },
123
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
124
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
125
- },
126
- httpAuthSchemeProvider() {
127
- return _httpAuthSchemeProvider;
128
- },
129
- setCredentials(credentials) {
130
- _credentials = credentials;
131
- },
132
- credentials() {
133
- return _credentials;
80
+ class CodestarNotificationsClient extends smithyClient.Client {
81
+ config;
82
+ constructor(...[configuration]) {
83
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
84
+ super(_config_0);
85
+ this.initConfig = _config_0;
86
+ const _config_1 = resolveClientEndpointParameters(_config_0);
87
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
88
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
89
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
90
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
91
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
92
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
93
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
94
+ this.config = _config_8;
95
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
96
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
97
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
98
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
99
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
100
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
101
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
102
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultCodestarNotificationsHttpAuthSchemeParametersProvider,
103
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
104
+ "aws.auth#sigv4": config.credentials,
105
+ }),
106
+ }));
107
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
134
108
  }
135
- };
136
- }, "getHttpAuthExtensionConfiguration");
137
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
138
- return {
139
- httpAuthSchemes: config.httpAuthSchemes(),
140
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
141
- credentials: config.credentials()
142
- };
143
- }, "resolveHttpAuthRuntimeConfig");
144
-
145
- // src/runtimeExtensions.ts
146
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
147
- const extensionConfiguration = Object.assign(
148
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
149
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
150
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
151
- getHttpAuthExtensionConfiguration(runtimeConfig)
152
- );
153
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
154
- return Object.assign(
155
- runtimeConfig,
156
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
157
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
158
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
159
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
160
- );
161
- }, "resolveRuntimeExtensions");
109
+ destroy() {
110
+ super.destroy();
111
+ }
112
+ }
162
113
 
163
- // src/CodestarNotificationsClient.ts
164
- var CodestarNotificationsClient = class extends import_smithy_client.Client {
165
- static {
166
- __name(this, "CodestarNotificationsClient");
167
- }
168
- /**
169
- * The resolved configuration of CodestarNotificationsClient class. This is resolved and normalized from the {@link CodestarNotificationsClientConfig | constructor configuration interface}.
170
- */
171
- config;
172
- constructor(...[configuration]) {
173
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
174
- super(_config_0);
175
- this.initConfig = _config_0;
176
- const _config_1 = resolveClientEndpointParameters(_config_0);
177
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
178
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
179
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
180
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
181
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
182
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
183
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
184
- this.config = _config_8;
185
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
186
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
187
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
188
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
189
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
190
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
191
- this.middlewareStack.use(
192
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
193
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultCodestarNotificationsHttpAuthSchemeParametersProvider,
194
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
195
- "aws.auth#sigv4": config.credentials
196
- }), "identityProviderConfigProvider")
197
- })
198
- );
199
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
200
- }
201
- /**
202
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
203
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
204
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
205
- */
206
- destroy() {
207
- super.destroy();
208
- }
114
+ class CodestarNotificationsServiceException extends smithyClient.ServiceException {
115
+ constructor(options) {
116
+ super(options);
117
+ Object.setPrototypeOf(this, CodestarNotificationsServiceException.prototype);
118
+ }
119
+ }
120
+
121
+ class AccessDeniedException extends CodestarNotificationsServiceException {
122
+ name = "AccessDeniedException";
123
+ $fault = "client";
124
+ Message;
125
+ constructor(opts) {
126
+ super({
127
+ name: "AccessDeniedException",
128
+ $fault: "client",
129
+ ...opts,
130
+ });
131
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
132
+ this.Message = opts.Message;
133
+ }
134
+ }
135
+ class ConcurrentModificationException extends CodestarNotificationsServiceException {
136
+ name = "ConcurrentModificationException";
137
+ $fault = "client";
138
+ Message;
139
+ constructor(opts) {
140
+ super({
141
+ name: "ConcurrentModificationException",
142
+ $fault: "client",
143
+ ...opts,
144
+ });
145
+ Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
146
+ this.Message = opts.Message;
147
+ }
148
+ }
149
+ class ConfigurationException extends CodestarNotificationsServiceException {
150
+ name = "ConfigurationException";
151
+ $fault = "client";
152
+ Message;
153
+ constructor(opts) {
154
+ super({
155
+ name: "ConfigurationException",
156
+ $fault: "client",
157
+ ...opts,
158
+ });
159
+ Object.setPrototypeOf(this, ConfigurationException.prototype);
160
+ this.Message = opts.Message;
161
+ }
162
+ }
163
+ const DetailType = {
164
+ BASIC: "BASIC",
165
+ FULL: "FULL",
209
166
  };
210
-
211
- // src/CodestarNotifications.ts
212
-
213
-
214
- // src/commands/CreateNotificationRuleCommand.ts
215
-
216
- var import_middleware_serde = require("@smithy/middleware-serde");
217
-
218
-
219
- // src/models/models_0.ts
220
-
221
-
222
- // src/models/CodestarNotificationsServiceException.ts
223
-
224
- var CodestarNotificationsServiceException = class _CodestarNotificationsServiceException extends import_smithy_client.ServiceException {
225
- static {
226
- __name(this, "CodestarNotificationsServiceException");
227
- }
228
- /**
229
- * @internal
230
- */
231
- constructor(options) {
232
- super(options);
233
- Object.setPrototypeOf(this, _CodestarNotificationsServiceException.prototype);
234
- }
167
+ const NotificationRuleStatus = {
168
+ DISABLED: "DISABLED",
169
+ ENABLED: "ENABLED",
170
+ };
171
+ class LimitExceededException extends CodestarNotificationsServiceException {
172
+ name = "LimitExceededException";
173
+ $fault = "client";
174
+ Message;
175
+ constructor(opts) {
176
+ super({
177
+ name: "LimitExceededException",
178
+ $fault: "client",
179
+ ...opts,
180
+ });
181
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
182
+ this.Message = opts.Message;
183
+ }
184
+ }
185
+ class ResourceAlreadyExistsException extends CodestarNotificationsServiceException {
186
+ name = "ResourceAlreadyExistsException";
187
+ $fault = "client";
188
+ Message;
189
+ constructor(opts) {
190
+ super({
191
+ name: "ResourceAlreadyExistsException",
192
+ $fault: "client",
193
+ ...opts,
194
+ });
195
+ Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
196
+ this.Message = opts.Message;
197
+ }
198
+ }
199
+ class ValidationException extends CodestarNotificationsServiceException {
200
+ name = "ValidationException";
201
+ $fault = "client";
202
+ Message;
203
+ constructor(opts) {
204
+ super({
205
+ name: "ValidationException",
206
+ $fault: "client",
207
+ ...opts,
208
+ });
209
+ Object.setPrototypeOf(this, ValidationException.prototype);
210
+ this.Message = opts.Message;
211
+ }
212
+ }
213
+ const TargetStatus = {
214
+ ACTIVE: "ACTIVE",
215
+ DEACTIVATED: "DEACTIVATED",
216
+ INACTIVE: "INACTIVE",
217
+ PENDING: "PENDING",
218
+ UNREACHABLE: "UNREACHABLE",
219
+ };
220
+ class ResourceNotFoundException extends CodestarNotificationsServiceException {
221
+ name = "ResourceNotFoundException";
222
+ $fault = "client";
223
+ Message;
224
+ constructor(opts) {
225
+ super({
226
+ name: "ResourceNotFoundException",
227
+ $fault: "client",
228
+ ...opts,
229
+ });
230
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
231
+ this.Message = opts.Message;
232
+ }
233
+ }
234
+ class InvalidNextTokenException extends CodestarNotificationsServiceException {
235
+ name = "InvalidNextTokenException";
236
+ $fault = "client";
237
+ Message;
238
+ constructor(opts) {
239
+ super({
240
+ name: "InvalidNextTokenException",
241
+ $fault: "client",
242
+ ...opts,
243
+ });
244
+ Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
245
+ this.Message = opts.Message;
246
+ }
247
+ }
248
+ const ListEventTypesFilterName = {
249
+ RESOURCE_TYPE: "RESOURCE_TYPE",
250
+ SERVICE_NAME: "SERVICE_NAME",
235
251
  };
252
+ const ListNotificationRulesFilterName = {
253
+ CREATED_BY: "CREATED_BY",
254
+ EVENT_TYPE_ID: "EVENT_TYPE_ID",
255
+ RESOURCE: "RESOURCE",
256
+ TARGET_ADDRESS: "TARGET_ADDRESS",
257
+ };
258
+ const ListTargetsFilterName = {
259
+ TARGET_ADDRESS: "TARGET_ADDRESS",
260
+ TARGET_STATUS: "TARGET_STATUS",
261
+ TARGET_TYPE: "TARGET_TYPE",
262
+ };
263
+ const TargetFilterSensitiveLog = (obj) => ({
264
+ ...obj,
265
+ ...(obj.TargetAddress && { TargetAddress: smithyClient.SENSITIVE_STRING }),
266
+ });
267
+ const CreateNotificationRuleRequestFilterSensitiveLog = (obj) => ({
268
+ ...obj,
269
+ ...(obj.Name && { Name: smithyClient.SENSITIVE_STRING }),
270
+ ...(obj.Targets && { Targets: obj.Targets.map((item) => TargetFilterSensitiveLog(item)) }),
271
+ });
272
+ const DeleteTargetRequestFilterSensitiveLog = (obj) => ({
273
+ ...obj,
274
+ ...(obj.TargetAddress && { TargetAddress: smithyClient.SENSITIVE_STRING }),
275
+ });
276
+ const TargetSummaryFilterSensitiveLog = (obj) => ({
277
+ ...obj,
278
+ ...(obj.TargetAddress && { TargetAddress: smithyClient.SENSITIVE_STRING }),
279
+ });
280
+ const DescribeNotificationRuleResultFilterSensitiveLog = (obj) => ({
281
+ ...obj,
282
+ ...(obj.Name && { Name: smithyClient.SENSITIVE_STRING }),
283
+ ...(obj.Targets && { Targets: obj.Targets.map((item) => TargetSummaryFilterSensitiveLog(item)) }),
284
+ });
285
+ const ListTargetsResultFilterSensitiveLog = (obj) => ({
286
+ ...obj,
287
+ ...(obj.Targets && { Targets: obj.Targets.map((item) => TargetSummaryFilterSensitiveLog(item)) }),
288
+ });
289
+ const SubscribeRequestFilterSensitiveLog = (obj) => ({
290
+ ...obj,
291
+ ...(obj.Target && { Target: TargetFilterSensitiveLog(obj.Target) }),
292
+ });
293
+ const UnsubscribeRequestFilterSensitiveLog = (obj) => ({
294
+ ...obj,
295
+ ...(obj.TargetAddress && { TargetAddress: smithyClient.SENSITIVE_STRING }),
296
+ });
297
+ const UpdateNotificationRuleRequestFilterSensitiveLog = (obj) => ({
298
+ ...obj,
299
+ ...(obj.Name && { Name: smithyClient.SENSITIVE_STRING }),
300
+ ...(obj.Targets && { Targets: obj.Targets.map((item) => TargetFilterSensitiveLog(item)) }),
301
+ });
236
302
 
237
- // src/models/models_0.ts
238
- var AccessDeniedException = class _AccessDeniedException extends CodestarNotificationsServiceException {
239
- static {
240
- __name(this, "AccessDeniedException");
241
- }
242
- name = "AccessDeniedException";
243
- $fault = "client";
244
- Message;
245
- /**
246
- * @internal
247
- */
248
- constructor(opts) {
249
- super({
250
- name: "AccessDeniedException",
251
- $fault: "client",
252
- ...opts
253
- });
254
- Object.setPrototypeOf(this, _AccessDeniedException.prototype);
255
- this.Message = opts.Message;
256
- }
303
+ const se_CreateNotificationRuleCommand = async (input, context) => {
304
+ const b = core.requestBuilder(input, context);
305
+ const headers = {
306
+ "content-type": "application/json",
307
+ };
308
+ b.bp("/createNotificationRule");
309
+ let body;
310
+ body = JSON.stringify(smithyClient.take(input, {
311
+ ClientRequestToken: [true, (_) => _ ?? uuid.v4()],
312
+ DetailType: [],
313
+ EventTypeIds: (_) => smithyClient._json(_),
314
+ Name: [],
315
+ Resource: [],
316
+ Status: [],
317
+ Tags: (_) => smithyClient._json(_),
318
+ Targets: (_) => smithyClient._json(_),
319
+ }));
320
+ b.m("POST").h(headers).b(body);
321
+ return b.build();
257
322
  };
258
- var ConcurrentModificationException = class _ConcurrentModificationException extends CodestarNotificationsServiceException {
259
- static {
260
- __name(this, "ConcurrentModificationException");
261
- }
262
- name = "ConcurrentModificationException";
263
- $fault = "client";
264
- Message;
265
- /**
266
- * @internal
267
- */
268
- constructor(opts) {
269
- super({
270
- name: "ConcurrentModificationException",
271
- $fault: "client",
272
- ...opts
273
- });
274
- Object.setPrototypeOf(this, _ConcurrentModificationException.prototype);
275
- this.Message = opts.Message;
276
- }
323
+ const se_DeleteNotificationRuleCommand = async (input, context) => {
324
+ const b = core.requestBuilder(input, context);
325
+ const headers = {
326
+ "content-type": "application/json",
327
+ };
328
+ b.bp("/deleteNotificationRule");
329
+ let body;
330
+ body = JSON.stringify(smithyClient.take(input, {
331
+ Arn: [],
332
+ }));
333
+ b.m("POST").h(headers).b(body);
334
+ return b.build();
277
335
  };
278
- var ConfigurationException = class _ConfigurationException extends CodestarNotificationsServiceException {
279
- static {
280
- __name(this, "ConfigurationException");
281
- }
282
- name = "ConfigurationException";
283
- $fault = "client";
284
- Message;
285
- /**
286
- * @internal
287
- */
288
- constructor(opts) {
289
- super({
290
- name: "ConfigurationException",
291
- $fault: "client",
292
- ...opts
293
- });
294
- Object.setPrototypeOf(this, _ConfigurationException.prototype);
295
- this.Message = opts.Message;
296
- }
336
+ const se_DeleteTargetCommand = async (input, context) => {
337
+ const b = core.requestBuilder(input, context);
338
+ const headers = {
339
+ "content-type": "application/json",
340
+ };
341
+ b.bp("/deleteTarget");
342
+ let body;
343
+ body = JSON.stringify(smithyClient.take(input, {
344
+ ForceUnsubscribeAll: [],
345
+ TargetAddress: [],
346
+ }));
347
+ b.m("POST").h(headers).b(body);
348
+ return b.build();
349
+ };
350
+ const se_DescribeNotificationRuleCommand = async (input, context) => {
351
+ const b = core.requestBuilder(input, context);
352
+ const headers = {
353
+ "content-type": "application/json",
354
+ };
355
+ b.bp("/describeNotificationRule");
356
+ let body;
357
+ body = JSON.stringify(smithyClient.take(input, {
358
+ Arn: [],
359
+ }));
360
+ b.m("POST").h(headers).b(body);
361
+ return b.build();
362
+ };
363
+ const se_ListEventTypesCommand = async (input, context) => {
364
+ const b = core.requestBuilder(input, context);
365
+ const headers = {
366
+ "content-type": "application/json",
367
+ };
368
+ b.bp("/listEventTypes");
369
+ let body;
370
+ body = JSON.stringify(smithyClient.take(input, {
371
+ Filters: (_) => smithyClient._json(_),
372
+ MaxResults: [],
373
+ NextToken: [],
374
+ }));
375
+ b.m("POST").h(headers).b(body);
376
+ return b.build();
377
+ };
378
+ const se_ListNotificationRulesCommand = async (input, context) => {
379
+ const b = core.requestBuilder(input, context);
380
+ const headers = {
381
+ "content-type": "application/json",
382
+ };
383
+ b.bp("/listNotificationRules");
384
+ let body;
385
+ body = JSON.stringify(smithyClient.take(input, {
386
+ Filters: (_) => smithyClient._json(_),
387
+ MaxResults: [],
388
+ NextToken: [],
389
+ }));
390
+ b.m("POST").h(headers).b(body);
391
+ return b.build();
392
+ };
393
+ const se_ListTagsForResourceCommand = async (input, context) => {
394
+ const b = core.requestBuilder(input, context);
395
+ const headers = {
396
+ "content-type": "application/json",
397
+ };
398
+ b.bp("/listTagsForResource");
399
+ let body;
400
+ body = JSON.stringify(smithyClient.take(input, {
401
+ Arn: [],
402
+ }));
403
+ b.m("POST").h(headers).b(body);
404
+ return b.build();
405
+ };
406
+ const se_ListTargetsCommand = async (input, context) => {
407
+ const b = core.requestBuilder(input, context);
408
+ const headers = {
409
+ "content-type": "application/json",
410
+ };
411
+ b.bp("/listTargets");
412
+ let body;
413
+ body = JSON.stringify(smithyClient.take(input, {
414
+ Filters: (_) => smithyClient._json(_),
415
+ MaxResults: [],
416
+ NextToken: [],
417
+ }));
418
+ b.m("POST").h(headers).b(body);
419
+ return b.build();
420
+ };
421
+ const se_SubscribeCommand = async (input, context) => {
422
+ const b = core.requestBuilder(input, context);
423
+ const headers = {
424
+ "content-type": "application/json",
425
+ };
426
+ b.bp("/subscribe");
427
+ let body;
428
+ body = JSON.stringify(smithyClient.take(input, {
429
+ Arn: [],
430
+ ClientRequestToken: [],
431
+ Target: (_) => smithyClient._json(_),
432
+ }));
433
+ b.m("POST").h(headers).b(body);
434
+ return b.build();
297
435
  };
298
- var DetailType = {
299
- BASIC: "BASIC",
300
- FULL: "FULL"
436
+ const se_TagResourceCommand = async (input, context) => {
437
+ const b = core.requestBuilder(input, context);
438
+ const headers = {
439
+ "content-type": "application/json",
440
+ };
441
+ b.bp("/tagResource");
442
+ let body;
443
+ body = JSON.stringify(smithyClient.take(input, {
444
+ Arn: [],
445
+ Tags: (_) => smithyClient._json(_),
446
+ }));
447
+ b.m("POST").h(headers).b(body);
448
+ return b.build();
301
449
  };
302
- var NotificationRuleStatus = {
303
- DISABLED: "DISABLED",
304
- ENABLED: "ENABLED"
450
+ const se_UnsubscribeCommand = async (input, context) => {
451
+ const b = core.requestBuilder(input, context);
452
+ const headers = {
453
+ "content-type": "application/json",
454
+ };
455
+ b.bp("/unsubscribe");
456
+ let body;
457
+ body = JSON.stringify(smithyClient.take(input, {
458
+ Arn: [],
459
+ TargetAddress: [],
460
+ }));
461
+ b.m("POST").h(headers).b(body);
462
+ return b.build();
305
463
  };
306
- var LimitExceededException = class _LimitExceededException extends CodestarNotificationsServiceException {
307
- static {
308
- __name(this, "LimitExceededException");
309
- }
310
- name = "LimitExceededException";
311
- $fault = "client";
312
- Message;
313
- /**
314
- * @internal
315
- */
316
- constructor(opts) {
317
- super({
318
- name: "LimitExceededException",
319
- $fault: "client",
320
- ...opts
464
+ const se_UntagResourceCommand = async (input, context) => {
465
+ const b = core.requestBuilder(input, context);
466
+ const headers = {};
467
+ b.bp("/untagResource/{Arn}");
468
+ b.p("Arn", () => input.Arn, "{Arn}", false);
469
+ const query = smithyClient.map({
470
+ [_tK]: [smithyClient.expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
321
471
  });
322
- Object.setPrototypeOf(this, _LimitExceededException.prototype);
323
- this.Message = opts.Message;
324
- }
472
+ let body;
473
+ b.m("POST").h(headers).q(query).b(body);
474
+ return b.build();
325
475
  };
326
- var ResourceAlreadyExistsException = class _ResourceAlreadyExistsException extends CodestarNotificationsServiceException {
327
- static {
328
- __name(this, "ResourceAlreadyExistsException");
329
- }
330
- name = "ResourceAlreadyExistsException";
331
- $fault = "client";
332
- Message;
333
- /**
334
- * @internal
335
- */
336
- constructor(opts) {
337
- super({
338
- name: "ResourceAlreadyExistsException",
339
- $fault: "client",
340
- ...opts
476
+ const se_UpdateNotificationRuleCommand = async (input, context) => {
477
+ const b = core.requestBuilder(input, context);
478
+ const headers = {
479
+ "content-type": "application/json",
480
+ };
481
+ b.bp("/updateNotificationRule");
482
+ let body;
483
+ body = JSON.stringify(smithyClient.take(input, {
484
+ Arn: [],
485
+ DetailType: [],
486
+ EventTypeIds: (_) => smithyClient._json(_),
487
+ Name: [],
488
+ Status: [],
489
+ Targets: (_) => smithyClient._json(_),
490
+ }));
491
+ b.m("POST").h(headers).b(body);
492
+ return b.build();
493
+ };
494
+ const de_CreateNotificationRuleCommand = async (output, context) => {
495
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
496
+ return de_CommandError(output, context);
497
+ }
498
+ const contents = smithyClient.map({
499
+ $metadata: deserializeMetadata(output),
500
+ });
501
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
502
+ const doc = smithyClient.take(data, {
503
+ Arn: smithyClient.expectString,
341
504
  });
342
- Object.setPrototypeOf(this, _ResourceAlreadyExistsException.prototype);
343
- this.Message = opts.Message;
344
- }
505
+ Object.assign(contents, doc);
506
+ return contents;
345
507
  };
346
- var ValidationException = class _ValidationException extends CodestarNotificationsServiceException {
347
- static {
348
- __name(this, "ValidationException");
349
- }
350
- name = "ValidationException";
351
- $fault = "client";
352
- Message;
353
- /**
354
- * @internal
355
- */
356
- constructor(opts) {
357
- super({
358
- name: "ValidationException",
359
- $fault: "client",
360
- ...opts
508
+ const de_DeleteNotificationRuleCommand = async (output, context) => {
509
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
510
+ return de_CommandError(output, context);
511
+ }
512
+ const contents = smithyClient.map({
513
+ $metadata: deserializeMetadata(output),
514
+ });
515
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
516
+ const doc = smithyClient.take(data, {
517
+ Arn: smithyClient.expectString,
361
518
  });
362
- Object.setPrototypeOf(this, _ValidationException.prototype);
363
- this.Message = opts.Message;
364
- }
519
+ Object.assign(contents, doc);
520
+ return contents;
365
521
  };
366
- var TargetStatus = {
367
- ACTIVE: "ACTIVE",
368
- DEACTIVATED: "DEACTIVATED",
369
- INACTIVE: "INACTIVE",
370
- PENDING: "PENDING",
371
- UNREACHABLE: "UNREACHABLE"
522
+ const de_DeleteTargetCommand = async (output, context) => {
523
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
524
+ return de_CommandError(output, context);
525
+ }
526
+ const contents = smithyClient.map({
527
+ $metadata: deserializeMetadata(output),
528
+ });
529
+ await smithyClient.collectBody(output.body, context);
530
+ return contents;
372
531
  };
373
- var ResourceNotFoundException = class _ResourceNotFoundException extends CodestarNotificationsServiceException {
374
- static {
375
- __name(this, "ResourceNotFoundException");
376
- }
377
- name = "ResourceNotFoundException";
378
- $fault = "client";
379
- Message;
380
- /**
381
- * @internal
382
- */
383
- constructor(opts) {
384
- super({
385
- name: "ResourceNotFoundException",
386
- $fault: "client",
387
- ...opts
532
+ const de_DescribeNotificationRuleCommand = async (output, context) => {
533
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
534
+ return de_CommandError(output, context);
535
+ }
536
+ const contents = smithyClient.map({
537
+ $metadata: deserializeMetadata(output),
388
538
  });
389
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
390
- this.Message = opts.Message;
391
- }
539
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
540
+ const doc = smithyClient.take(data, {
541
+ Arn: smithyClient.expectString,
542
+ CreatedBy: smithyClient.expectString,
543
+ CreatedTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
544
+ DetailType: smithyClient.expectString,
545
+ EventTypes: smithyClient._json,
546
+ LastModifiedTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
547
+ Name: smithyClient.expectString,
548
+ Resource: smithyClient.expectString,
549
+ Status: smithyClient.expectString,
550
+ Tags: smithyClient._json,
551
+ Targets: smithyClient._json,
552
+ });
553
+ Object.assign(contents, doc);
554
+ return contents;
392
555
  };
393
- var InvalidNextTokenException = class _InvalidNextTokenException extends CodestarNotificationsServiceException {
394
- static {
395
- __name(this, "InvalidNextTokenException");
396
- }
397
- name = "InvalidNextTokenException";
398
- $fault = "client";
399
- Message;
400
- /**
401
- * @internal
402
- */
403
- constructor(opts) {
404
- super({
405
- name: "InvalidNextTokenException",
406
- $fault: "client",
407
- ...opts
556
+ const de_ListEventTypesCommand = async (output, context) => {
557
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
558
+ return de_CommandError(output, context);
559
+ }
560
+ const contents = smithyClient.map({
561
+ $metadata: deserializeMetadata(output),
408
562
  });
409
- Object.setPrototypeOf(this, _InvalidNextTokenException.prototype);
410
- this.Message = opts.Message;
411
- }
563
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
564
+ const doc = smithyClient.take(data, {
565
+ EventTypes: smithyClient._json,
566
+ NextToken: smithyClient.expectString,
567
+ });
568
+ Object.assign(contents, doc);
569
+ return contents;
412
570
  };
413
- var ListEventTypesFilterName = {
414
- RESOURCE_TYPE: "RESOURCE_TYPE",
415
- SERVICE_NAME: "SERVICE_NAME"
571
+ const de_ListNotificationRulesCommand = async (output, context) => {
572
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
573
+ return de_CommandError(output, context);
574
+ }
575
+ const contents = smithyClient.map({
576
+ $metadata: deserializeMetadata(output),
577
+ });
578
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
579
+ const doc = smithyClient.take(data, {
580
+ NextToken: smithyClient.expectString,
581
+ NotificationRules: smithyClient._json,
582
+ });
583
+ Object.assign(contents, doc);
584
+ return contents;
416
585
  };
417
- var ListNotificationRulesFilterName = {
418
- CREATED_BY: "CREATED_BY",
419
- EVENT_TYPE_ID: "EVENT_TYPE_ID",
420
- RESOURCE: "RESOURCE",
421
- TARGET_ADDRESS: "TARGET_ADDRESS"
586
+ const de_ListTagsForResourceCommand = async (output, context) => {
587
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
588
+ return de_CommandError(output, context);
589
+ }
590
+ const contents = smithyClient.map({
591
+ $metadata: deserializeMetadata(output),
592
+ });
593
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
594
+ const doc = smithyClient.take(data, {
595
+ Tags: smithyClient._json,
596
+ });
597
+ Object.assign(contents, doc);
598
+ return contents;
422
599
  };
423
- var ListTargetsFilterName = {
424
- TARGET_ADDRESS: "TARGET_ADDRESS",
425
- TARGET_STATUS: "TARGET_STATUS",
426
- TARGET_TYPE: "TARGET_TYPE"
600
+ const de_ListTargetsCommand = async (output, context) => {
601
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
602
+ return de_CommandError(output, context);
603
+ }
604
+ const contents = smithyClient.map({
605
+ $metadata: deserializeMetadata(output),
606
+ });
607
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
608
+ const doc = smithyClient.take(data, {
609
+ NextToken: smithyClient.expectString,
610
+ Targets: smithyClient._json,
611
+ });
612
+ Object.assign(contents, doc);
613
+ return contents;
427
614
  };
428
- var TargetFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
429
- ...obj,
430
- ...obj.TargetAddress && { TargetAddress: import_smithy_client.SENSITIVE_STRING }
431
- }), "TargetFilterSensitiveLog");
432
- var CreateNotificationRuleRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
433
- ...obj,
434
- ...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
435
- ...obj.Targets && { Targets: obj.Targets.map((item) => TargetFilterSensitiveLog(item)) }
436
- }), "CreateNotificationRuleRequestFilterSensitiveLog");
437
- var DeleteTargetRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
438
- ...obj,
439
- ...obj.TargetAddress && { TargetAddress: import_smithy_client.SENSITIVE_STRING }
440
- }), "DeleteTargetRequestFilterSensitiveLog");
441
- var TargetSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
442
- ...obj,
443
- ...obj.TargetAddress && { TargetAddress: import_smithy_client.SENSITIVE_STRING }
444
- }), "TargetSummaryFilterSensitiveLog");
445
- var DescribeNotificationRuleResultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
446
- ...obj,
447
- ...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
448
- ...obj.Targets && { Targets: obj.Targets.map((item) => TargetSummaryFilterSensitiveLog(item)) }
449
- }), "DescribeNotificationRuleResultFilterSensitiveLog");
450
- var ListTargetsResultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
451
- ...obj,
452
- ...obj.Targets && { Targets: obj.Targets.map((item) => TargetSummaryFilterSensitiveLog(item)) }
453
- }), "ListTargetsResultFilterSensitiveLog");
454
- var SubscribeRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
455
- ...obj,
456
- ...obj.Target && { Target: TargetFilterSensitiveLog(obj.Target) }
457
- }), "SubscribeRequestFilterSensitiveLog");
458
- var UnsubscribeRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
459
- ...obj,
460
- ...obj.TargetAddress && { TargetAddress: import_smithy_client.SENSITIVE_STRING }
461
- }), "UnsubscribeRequestFilterSensitiveLog");
462
- var UpdateNotificationRuleRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
463
- ...obj,
464
- ...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
465
- ...obj.Targets && { Targets: obj.Targets.map((item) => TargetFilterSensitiveLog(item)) }
466
- }), "UpdateNotificationRuleRequestFilterSensitiveLog");
467
-
468
- // src/protocols/Aws_restJson1.ts
469
- var import_core2 = require("@aws-sdk/core");
470
-
471
-
472
- var import_uuid = require("@smithy/uuid");
473
- var se_CreateNotificationRuleCommand = /* @__PURE__ */ __name(async (input, context) => {
474
- const b = (0, import_core.requestBuilder)(input, context);
475
- const headers = {
476
- "content-type": "application/json"
477
- };
478
- b.bp("/createNotificationRule");
479
- let body;
480
- body = JSON.stringify(
481
- (0, import_smithy_client.take)(input, {
482
- ClientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
483
- DetailType: [],
484
- EventTypeIds: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "EventTypeIds"),
485
- Name: [],
486
- Resource: [],
487
- Status: [],
488
- Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags"),
489
- Targets: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Targets")
490
- })
491
- );
492
- b.m("POST").h(headers).b(body);
493
- return b.build();
494
- }, "se_CreateNotificationRuleCommand");
495
- var se_DeleteNotificationRuleCommand = /* @__PURE__ */ __name(async (input, context) => {
496
- const b = (0, import_core.requestBuilder)(input, context);
497
- const headers = {
498
- "content-type": "application/json"
499
- };
500
- b.bp("/deleteNotificationRule");
501
- let body;
502
- body = JSON.stringify(
503
- (0, import_smithy_client.take)(input, {
504
- Arn: []
505
- })
506
- );
507
- b.m("POST").h(headers).b(body);
508
- return b.build();
509
- }, "se_DeleteNotificationRuleCommand");
510
- var se_DeleteTargetCommand = /* @__PURE__ */ __name(async (input, context) => {
511
- const b = (0, import_core.requestBuilder)(input, context);
512
- const headers = {
513
- "content-type": "application/json"
514
- };
515
- b.bp("/deleteTarget");
516
- let body;
517
- body = JSON.stringify(
518
- (0, import_smithy_client.take)(input, {
519
- ForceUnsubscribeAll: [],
520
- TargetAddress: []
521
- })
522
- );
523
- b.m("POST").h(headers).b(body);
524
- return b.build();
525
- }, "se_DeleteTargetCommand");
526
- var se_DescribeNotificationRuleCommand = /* @__PURE__ */ __name(async (input, context) => {
527
- const b = (0, import_core.requestBuilder)(input, context);
528
- const headers = {
529
- "content-type": "application/json"
530
- };
531
- b.bp("/describeNotificationRule");
532
- let body;
533
- body = JSON.stringify(
534
- (0, import_smithy_client.take)(input, {
535
- Arn: []
536
- })
537
- );
538
- b.m("POST").h(headers).b(body);
539
- return b.build();
540
- }, "se_DescribeNotificationRuleCommand");
541
- var se_ListEventTypesCommand = /* @__PURE__ */ __name(async (input, context) => {
542
- const b = (0, import_core.requestBuilder)(input, context);
543
- const headers = {
544
- "content-type": "application/json"
545
- };
546
- b.bp("/listEventTypes");
547
- let body;
548
- body = JSON.stringify(
549
- (0, import_smithy_client.take)(input, {
550
- Filters: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Filters"),
551
- MaxResults: [],
552
- NextToken: []
553
- })
554
- );
555
- b.m("POST").h(headers).b(body);
556
- return b.build();
557
- }, "se_ListEventTypesCommand");
558
- var se_ListNotificationRulesCommand = /* @__PURE__ */ __name(async (input, context) => {
559
- const b = (0, import_core.requestBuilder)(input, context);
560
- const headers = {
561
- "content-type": "application/json"
562
- };
563
- b.bp("/listNotificationRules");
564
- let body;
565
- body = JSON.stringify(
566
- (0, import_smithy_client.take)(input, {
567
- Filters: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Filters"),
568
- MaxResults: [],
569
- NextToken: []
570
- })
571
- );
572
- b.m("POST").h(headers).b(body);
573
- return b.build();
574
- }, "se_ListNotificationRulesCommand");
575
- var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
576
- const b = (0, import_core.requestBuilder)(input, context);
577
- const headers = {
578
- "content-type": "application/json"
579
- };
580
- b.bp("/listTagsForResource");
581
- let body;
582
- body = JSON.stringify(
583
- (0, import_smithy_client.take)(input, {
584
- Arn: []
585
- })
586
- );
587
- b.m("POST").h(headers).b(body);
588
- return b.build();
589
- }, "se_ListTagsForResourceCommand");
590
- var se_ListTargetsCommand = /* @__PURE__ */ __name(async (input, context) => {
591
- const b = (0, import_core.requestBuilder)(input, context);
592
- const headers = {
593
- "content-type": "application/json"
594
- };
595
- b.bp("/listTargets");
596
- let body;
597
- body = JSON.stringify(
598
- (0, import_smithy_client.take)(input, {
599
- Filters: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Filters"),
600
- MaxResults: [],
601
- NextToken: []
602
- })
603
- );
604
- b.m("POST").h(headers).b(body);
605
- return b.build();
606
- }, "se_ListTargetsCommand");
607
- var se_SubscribeCommand = /* @__PURE__ */ __name(async (input, context) => {
608
- const b = (0, import_core.requestBuilder)(input, context);
609
- const headers = {
610
- "content-type": "application/json"
611
- };
612
- b.bp("/subscribe");
613
- let body;
614
- body = JSON.stringify(
615
- (0, import_smithy_client.take)(input, {
616
- Arn: [],
617
- ClientRequestToken: [],
618
- Target: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Target")
619
- })
620
- );
621
- b.m("POST").h(headers).b(body);
622
- return b.build();
623
- }, "se_SubscribeCommand");
624
- var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
625
- const b = (0, import_core.requestBuilder)(input, context);
626
- const headers = {
627
- "content-type": "application/json"
628
- };
629
- b.bp("/tagResource");
630
- let body;
631
- body = JSON.stringify(
632
- (0, import_smithy_client.take)(input, {
633
- Arn: [],
634
- Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
635
- })
636
- );
637
- b.m("POST").h(headers).b(body);
638
- return b.build();
639
- }, "se_TagResourceCommand");
640
- var se_UnsubscribeCommand = /* @__PURE__ */ __name(async (input, context) => {
641
- const b = (0, import_core.requestBuilder)(input, context);
642
- const headers = {
643
- "content-type": "application/json"
644
- };
645
- b.bp("/unsubscribe");
646
- let body;
647
- body = JSON.stringify(
648
- (0, import_smithy_client.take)(input, {
649
- Arn: [],
650
- TargetAddress: []
651
- })
652
- );
653
- b.m("POST").h(headers).b(body);
654
- return b.build();
655
- }, "se_UnsubscribeCommand");
656
- var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
657
- const b = (0, import_core.requestBuilder)(input, context);
658
- const headers = {};
659
- b.bp("/untagResource/{Arn}");
660
- b.p("Arn", () => input.Arn, "{Arn}", false);
661
- const query = (0, import_smithy_client.map)({
662
- [_tK]: [(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []]
663
- });
664
- let body;
665
- b.m("POST").h(headers).q(query).b(body);
666
- return b.build();
667
- }, "se_UntagResourceCommand");
668
- var se_UpdateNotificationRuleCommand = /* @__PURE__ */ __name(async (input, context) => {
669
- const b = (0, import_core.requestBuilder)(input, context);
670
- const headers = {
671
- "content-type": "application/json"
672
- };
673
- b.bp("/updateNotificationRule");
674
- let body;
675
- body = JSON.stringify(
676
- (0, import_smithy_client.take)(input, {
677
- Arn: [],
678
- DetailType: [],
679
- EventTypeIds: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "EventTypeIds"),
680
- Name: [],
681
- Status: [],
682
- Targets: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Targets")
683
- })
684
- );
685
- b.m("POST").h(headers).b(body);
686
- return b.build();
687
- }, "se_UpdateNotificationRuleCommand");
688
- var de_CreateNotificationRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
689
- if (output.statusCode !== 200 && output.statusCode >= 300) {
690
- return de_CommandError(output, context);
691
- }
692
- const contents = (0, import_smithy_client.map)({
693
- $metadata: deserializeMetadata(output)
694
- });
695
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
696
- const doc = (0, import_smithy_client.take)(data, {
697
- Arn: import_smithy_client.expectString
698
- });
699
- Object.assign(contents, doc);
700
- return contents;
701
- }, "de_CreateNotificationRuleCommand");
702
- var de_DeleteNotificationRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
703
- if (output.statusCode !== 200 && output.statusCode >= 300) {
704
- return de_CommandError(output, context);
705
- }
706
- const contents = (0, import_smithy_client.map)({
707
- $metadata: deserializeMetadata(output)
708
- });
709
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
710
- const doc = (0, import_smithy_client.take)(data, {
711
- Arn: import_smithy_client.expectString
712
- });
713
- Object.assign(contents, doc);
714
- return contents;
715
- }, "de_DeleteNotificationRuleCommand");
716
- var de_DeleteTargetCommand = /* @__PURE__ */ __name(async (output, context) => {
717
- if (output.statusCode !== 200 && output.statusCode >= 300) {
718
- return de_CommandError(output, context);
719
- }
720
- const contents = (0, import_smithy_client.map)({
721
- $metadata: deserializeMetadata(output)
722
- });
723
- await (0, import_smithy_client.collectBody)(output.body, context);
724
- return contents;
725
- }, "de_DeleteTargetCommand");
726
- var de_DescribeNotificationRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
727
- if (output.statusCode !== 200 && output.statusCode >= 300) {
728
- return de_CommandError(output, context);
729
- }
730
- const contents = (0, import_smithy_client.map)({
731
- $metadata: deserializeMetadata(output)
732
- });
733
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
734
- const doc = (0, import_smithy_client.take)(data, {
735
- Arn: import_smithy_client.expectString,
736
- CreatedBy: import_smithy_client.expectString,
737
- CreatedTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedTimestamp"),
738
- DetailType: import_smithy_client.expectString,
739
- EventTypes: import_smithy_client._json,
740
- LastModifiedTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModifiedTimestamp"),
741
- Name: import_smithy_client.expectString,
742
- Resource: import_smithy_client.expectString,
743
- Status: import_smithy_client.expectString,
744
- Tags: import_smithy_client._json,
745
- Targets: import_smithy_client._json
746
- });
747
- Object.assign(contents, doc);
748
- return contents;
749
- }, "de_DescribeNotificationRuleCommand");
750
- var de_ListEventTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
751
- if (output.statusCode !== 200 && output.statusCode >= 300) {
752
- return de_CommandError(output, context);
753
- }
754
- const contents = (0, import_smithy_client.map)({
755
- $metadata: deserializeMetadata(output)
756
- });
757
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
758
- const doc = (0, import_smithy_client.take)(data, {
759
- EventTypes: import_smithy_client._json,
760
- NextToken: import_smithy_client.expectString
761
- });
762
- Object.assign(contents, doc);
763
- return contents;
764
- }, "de_ListEventTypesCommand");
765
- var de_ListNotificationRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
766
- if (output.statusCode !== 200 && output.statusCode >= 300) {
767
- return de_CommandError(output, context);
768
- }
769
- const contents = (0, import_smithy_client.map)({
770
- $metadata: deserializeMetadata(output)
771
- });
772
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
773
- const doc = (0, import_smithy_client.take)(data, {
774
- NextToken: import_smithy_client.expectString,
775
- NotificationRules: import_smithy_client._json
776
- });
777
- Object.assign(contents, doc);
778
- return contents;
779
- }, "de_ListNotificationRulesCommand");
780
- var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
781
- if (output.statusCode !== 200 && output.statusCode >= 300) {
782
- return de_CommandError(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 (0, import_core2.parseJsonBody)(output.body, context)), "body");
788
- const doc = (0, import_smithy_client.take)(data, {
789
- Tags: import_smithy_client._json
790
- });
791
- Object.assign(contents, doc);
792
- return contents;
793
- }, "de_ListTagsForResourceCommand");
794
- var de_ListTargetsCommand = /* @__PURE__ */ __name(async (output, context) => {
795
- if (output.statusCode !== 200 && output.statusCode >= 300) {
796
- return de_CommandError(output, context);
797
- }
798
- const contents = (0, import_smithy_client.map)({
799
- $metadata: deserializeMetadata(output)
800
- });
801
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
802
- const doc = (0, import_smithy_client.take)(data, {
803
- NextToken: import_smithy_client.expectString,
804
- Targets: import_smithy_client._json
805
- });
806
- Object.assign(contents, doc);
807
- return contents;
808
- }, "de_ListTargetsCommand");
809
- var de_SubscribeCommand = /* @__PURE__ */ __name(async (output, context) => {
810
- if (output.statusCode !== 200 && output.statusCode >= 300) {
811
- return de_CommandError(output, context);
812
- }
813
- const contents = (0, import_smithy_client.map)({
814
- $metadata: deserializeMetadata(output)
815
- });
816
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
817
- const doc = (0, import_smithy_client.take)(data, {
818
- Arn: import_smithy_client.expectString
819
- });
820
- Object.assign(contents, doc);
821
- return contents;
822
- }, "de_SubscribeCommand");
823
- var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
824
- if (output.statusCode !== 200 && output.statusCode >= 300) {
825
- return de_CommandError(output, context);
826
- }
827
- const contents = (0, import_smithy_client.map)({
828
- $metadata: deserializeMetadata(output)
829
- });
830
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
831
- const doc = (0, import_smithy_client.take)(data, {
832
- Tags: import_smithy_client._json
833
- });
834
- Object.assign(contents, doc);
835
- return contents;
836
- }, "de_TagResourceCommand");
837
- var de_UnsubscribeCommand = /* @__PURE__ */ __name(async (output, context) => {
838
- if (output.statusCode !== 200 && output.statusCode >= 300) {
839
- return de_CommandError(output, context);
840
- }
841
- const contents = (0, import_smithy_client.map)({
842
- $metadata: deserializeMetadata(output)
843
- });
844
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
845
- const doc = (0, import_smithy_client.take)(data, {
846
- Arn: import_smithy_client.expectString
847
- });
848
- Object.assign(contents, doc);
849
- return contents;
850
- }, "de_UnsubscribeCommand");
851
- var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
852
- if (output.statusCode !== 200 && output.statusCode >= 300) {
853
- return de_CommandError(output, context);
854
- }
855
- const contents = (0, import_smithy_client.map)({
856
- $metadata: deserializeMetadata(output)
857
- });
858
- await (0, import_smithy_client.collectBody)(output.body, context);
859
- return contents;
860
- }, "de_UntagResourceCommand");
861
- var de_UpdateNotificationRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
862
- if (output.statusCode !== 200 && output.statusCode >= 300) {
863
- return de_CommandError(output, context);
864
- }
865
- const contents = (0, import_smithy_client.map)({
866
- $metadata: deserializeMetadata(output)
867
- });
868
- await (0, import_smithy_client.collectBody)(output.body, context);
869
- return contents;
870
- }, "de_UpdateNotificationRuleCommand");
871
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
872
- const parsedOutput = {
873
- ...output,
874
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
875
- };
876
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
877
- switch (errorCode) {
878
- case "AccessDeniedException":
879
- case "com.amazonaws.codestarnotifications#AccessDeniedException":
880
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
881
- case "ConcurrentModificationException":
882
- case "com.amazonaws.codestarnotifications#ConcurrentModificationException":
883
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
884
- case "ConfigurationException":
885
- case "com.amazonaws.codestarnotifications#ConfigurationException":
886
- throw await de_ConfigurationExceptionRes(parsedOutput, context);
887
- case "LimitExceededException":
888
- case "com.amazonaws.codestarnotifications#LimitExceededException":
889
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
890
- case "ResourceAlreadyExistsException":
891
- case "com.amazonaws.codestarnotifications#ResourceAlreadyExistsException":
892
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
893
- case "ValidationException":
894
- case "com.amazonaws.codestarnotifications#ValidationException":
895
- throw await de_ValidationExceptionRes(parsedOutput, context);
896
- case "ResourceNotFoundException":
897
- case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
898
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
899
- case "InvalidNextTokenException":
900
- case "com.amazonaws.codestarnotifications#InvalidNextTokenException":
901
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
902
- default:
903
- const parsedBody = parsedOutput.body;
904
- return throwDefaultError({
905
- output,
906
- parsedBody,
907
- errorCode
908
- });
909
- }
910
- }, "de_CommandError");
911
- var throwDefaultError = (0, import_smithy_client.withBaseException)(CodestarNotificationsServiceException);
912
- var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
913
- const contents = (0, import_smithy_client.map)({});
914
- const data = parsedOutput.body;
915
- const doc = (0, import_smithy_client.take)(data, {
916
- Message: import_smithy_client.expectString
917
- });
918
- Object.assign(contents, doc);
919
- const exception = new AccessDeniedException({
920
- $metadata: deserializeMetadata(parsedOutput),
921
- ...contents
922
- });
923
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
924
- }, "de_AccessDeniedExceptionRes");
925
- var de_ConcurrentModificationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
926
- const contents = (0, import_smithy_client.map)({});
927
- const data = parsedOutput.body;
928
- const doc = (0, import_smithy_client.take)(data, {
929
- Message: import_smithy_client.expectString
930
- });
931
- Object.assign(contents, doc);
932
- const exception = new ConcurrentModificationException({
933
- $metadata: deserializeMetadata(parsedOutput),
934
- ...contents
935
- });
936
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
937
- }, "de_ConcurrentModificationExceptionRes");
938
- var de_ConfigurationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
939
- const contents = (0, import_smithy_client.map)({});
940
- const data = parsedOutput.body;
941
- const doc = (0, import_smithy_client.take)(data, {
942
- Message: import_smithy_client.expectString
943
- });
944
- Object.assign(contents, doc);
945
- const exception = new ConfigurationException({
946
- $metadata: deserializeMetadata(parsedOutput),
947
- ...contents
948
- });
949
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
950
- }, "de_ConfigurationExceptionRes");
951
- var de_InvalidNextTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
952
- const contents = (0, import_smithy_client.map)({});
953
- const data = parsedOutput.body;
954
- const doc = (0, import_smithy_client.take)(data, {
955
- Message: import_smithy_client.expectString
956
- });
957
- Object.assign(contents, doc);
958
- const exception = new InvalidNextTokenException({
959
- $metadata: deserializeMetadata(parsedOutput),
960
- ...contents
961
- });
962
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
963
- }, "de_InvalidNextTokenExceptionRes");
964
- var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
965
- const contents = (0, import_smithy_client.map)({});
966
- const data = parsedOutput.body;
967
- const doc = (0, import_smithy_client.take)(data, {
968
- Message: import_smithy_client.expectString
969
- });
970
- Object.assign(contents, doc);
971
- const exception = new LimitExceededException({
972
- $metadata: deserializeMetadata(parsedOutput),
973
- ...contents
974
- });
975
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
976
- }, "de_LimitExceededExceptionRes");
977
- var de_ResourceAlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
978
- const contents = (0, import_smithy_client.map)({});
979
- const data = parsedOutput.body;
980
- const doc = (0, import_smithy_client.take)(data, {
981
- Message: import_smithy_client.expectString
982
- });
983
- Object.assign(contents, doc);
984
- const exception = new ResourceAlreadyExistsException({
985
- $metadata: deserializeMetadata(parsedOutput),
986
- ...contents
987
- });
988
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
989
- }, "de_ResourceAlreadyExistsExceptionRes");
990
- var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
991
- const contents = (0, import_smithy_client.map)({});
992
- const data = parsedOutput.body;
993
- const doc = (0, import_smithy_client.take)(data, {
994
- Message: import_smithy_client.expectString
995
- });
996
- Object.assign(contents, doc);
997
- const exception = new ResourceNotFoundException({
998
- $metadata: deserializeMetadata(parsedOutput),
999
- ...contents
1000
- });
1001
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1002
- }, "de_ResourceNotFoundExceptionRes");
1003
- var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1004
- const contents = (0, import_smithy_client.map)({});
1005
- const data = parsedOutput.body;
1006
- const doc = (0, import_smithy_client.take)(data, {
1007
- Message: import_smithy_client.expectString
1008
- });
1009
- Object.assign(contents, doc);
1010
- const exception = new ValidationException({
1011
- $metadata: deserializeMetadata(parsedOutput),
1012
- ...contents
1013
- });
1014
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1015
- }, "de_ValidationExceptionRes");
1016
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1017
- httpStatusCode: output.statusCode,
1018
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1019
- extendedRequestId: output.headers["x-amz-id-2"],
1020
- cfId: output.headers["x-amz-cf-id"]
1021
- }), "deserializeMetadata");
1022
- var _TK = "TagKeys";
1023
- var _tK = "tagKeys";
1024
-
1025
- // src/commands/CreateNotificationRuleCommand.ts
1026
- var CreateNotificationRuleCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1027
- return [
1028
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1029
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1030
- ];
1031
- }).s("CodeStarNotifications_20191015", "CreateNotificationRule", {}).n("CodestarNotificationsClient", "CreateNotificationRuleCommand").f(CreateNotificationRuleRequestFilterSensitiveLog, void 0).ser(se_CreateNotificationRuleCommand).de(de_CreateNotificationRuleCommand).build() {
1032
- static {
1033
- __name(this, "CreateNotificationRuleCommand");
1034
- }
615
+ const de_SubscribeCommand = async (output, context) => {
616
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
617
+ return de_CommandError(output, context);
618
+ }
619
+ const contents = smithyClient.map({
620
+ $metadata: deserializeMetadata(output),
621
+ });
622
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
623
+ const doc = smithyClient.take(data, {
624
+ Arn: smithyClient.expectString,
625
+ });
626
+ Object.assign(contents, doc);
627
+ return contents;
1035
628
  };
1036
-
1037
- // src/commands/DeleteNotificationRuleCommand.ts
1038
-
1039
-
1040
-
1041
- var DeleteNotificationRuleCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1042
- return [
1043
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1044
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1045
- ];
1046
- }).s("CodeStarNotifications_20191015", "DeleteNotificationRule", {}).n("CodestarNotificationsClient", "DeleteNotificationRuleCommand").f(void 0, void 0).ser(se_DeleteNotificationRuleCommand).de(de_DeleteNotificationRuleCommand).build() {
1047
- static {
1048
- __name(this, "DeleteNotificationRuleCommand");
1049
- }
629
+ const de_TagResourceCommand = async (output, context) => {
630
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
631
+ return de_CommandError(output, context);
632
+ }
633
+ const contents = smithyClient.map({
634
+ $metadata: deserializeMetadata(output),
635
+ });
636
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
637
+ const doc = smithyClient.take(data, {
638
+ Tags: smithyClient._json,
639
+ });
640
+ Object.assign(contents, doc);
641
+ return contents;
1050
642
  };
1051
-
1052
- // src/commands/DeleteTargetCommand.ts
1053
-
1054
-
1055
-
1056
- var DeleteTargetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1057
- return [
1058
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1059
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1060
- ];
1061
- }).s("CodeStarNotifications_20191015", "DeleteTarget", {}).n("CodestarNotificationsClient", "DeleteTargetCommand").f(DeleteTargetRequestFilterSensitiveLog, void 0).ser(se_DeleteTargetCommand).de(de_DeleteTargetCommand).build() {
1062
- static {
1063
- __name(this, "DeleteTargetCommand");
1064
- }
643
+ const de_UnsubscribeCommand = async (output, context) => {
644
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
645
+ return de_CommandError(output, context);
646
+ }
647
+ const contents = smithyClient.map({
648
+ $metadata: deserializeMetadata(output),
649
+ });
650
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
651
+ const doc = smithyClient.take(data, {
652
+ Arn: smithyClient.expectString,
653
+ });
654
+ Object.assign(contents, doc);
655
+ return contents;
1065
656
  };
1066
-
1067
- // src/commands/DescribeNotificationRuleCommand.ts
1068
-
1069
-
1070
-
1071
- var DescribeNotificationRuleCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1072
- return [
1073
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1074
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1075
- ];
1076
- }).s("CodeStarNotifications_20191015", "DescribeNotificationRule", {}).n("CodestarNotificationsClient", "DescribeNotificationRuleCommand").f(void 0, DescribeNotificationRuleResultFilterSensitiveLog).ser(se_DescribeNotificationRuleCommand).de(de_DescribeNotificationRuleCommand).build() {
1077
- static {
1078
- __name(this, "DescribeNotificationRuleCommand");
1079
- }
657
+ const de_UntagResourceCommand = async (output, context) => {
658
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
659
+ return de_CommandError(output, context);
660
+ }
661
+ const contents = smithyClient.map({
662
+ $metadata: deserializeMetadata(output),
663
+ });
664
+ await smithyClient.collectBody(output.body, context);
665
+ return contents;
1080
666
  };
1081
-
1082
- // src/commands/ListEventTypesCommand.ts
1083
-
1084
-
1085
-
1086
- var ListEventTypesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1087
- return [
1088
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1089
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1090
- ];
1091
- }).s("CodeStarNotifications_20191015", "ListEventTypes", {}).n("CodestarNotificationsClient", "ListEventTypesCommand").f(void 0, void 0).ser(se_ListEventTypesCommand).de(de_ListEventTypesCommand).build() {
1092
- static {
1093
- __name(this, "ListEventTypesCommand");
1094
- }
667
+ const de_UpdateNotificationRuleCommand = async (output, context) => {
668
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
669
+ return de_CommandError(output, context);
670
+ }
671
+ const contents = smithyClient.map({
672
+ $metadata: deserializeMetadata(output),
673
+ });
674
+ await smithyClient.collectBody(output.body, context);
675
+ return contents;
1095
676
  };
1096
-
1097
- // src/commands/ListNotificationRulesCommand.ts
1098
-
1099
-
1100
-
1101
- var ListNotificationRulesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1102
- return [
1103
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1104
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1105
- ];
1106
- }).s("CodeStarNotifications_20191015", "ListNotificationRules", {}).n("CodestarNotificationsClient", "ListNotificationRulesCommand").f(void 0, void 0).ser(se_ListNotificationRulesCommand).de(de_ListNotificationRulesCommand).build() {
1107
- static {
1108
- __name(this, "ListNotificationRulesCommand");
1109
- }
677
+ const de_CommandError = async (output, context) => {
678
+ const parsedOutput = {
679
+ ...output,
680
+ body: await core$1.parseJsonErrorBody(output.body, context),
681
+ };
682
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
683
+ switch (errorCode) {
684
+ case "AccessDeniedException":
685
+ case "com.amazonaws.codestarnotifications#AccessDeniedException":
686
+ throw await de_AccessDeniedExceptionRes(parsedOutput);
687
+ case "ConcurrentModificationException":
688
+ case "com.amazonaws.codestarnotifications#ConcurrentModificationException":
689
+ throw await de_ConcurrentModificationExceptionRes(parsedOutput);
690
+ case "ConfigurationException":
691
+ case "com.amazonaws.codestarnotifications#ConfigurationException":
692
+ throw await de_ConfigurationExceptionRes(parsedOutput);
693
+ case "LimitExceededException":
694
+ case "com.amazonaws.codestarnotifications#LimitExceededException":
695
+ throw await de_LimitExceededExceptionRes(parsedOutput);
696
+ case "ResourceAlreadyExistsException":
697
+ case "com.amazonaws.codestarnotifications#ResourceAlreadyExistsException":
698
+ throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput);
699
+ case "ValidationException":
700
+ case "com.amazonaws.codestarnotifications#ValidationException":
701
+ throw await de_ValidationExceptionRes(parsedOutput);
702
+ case "ResourceNotFoundException":
703
+ case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
704
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput);
705
+ case "InvalidNextTokenException":
706
+ case "com.amazonaws.codestarnotifications#InvalidNextTokenException":
707
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput);
708
+ default:
709
+ const parsedBody = parsedOutput.body;
710
+ return throwDefaultError({
711
+ output,
712
+ parsedBody,
713
+ errorCode,
714
+ });
715
+ }
1110
716
  };
1111
-
1112
- // src/commands/ListTagsForResourceCommand.ts
1113
-
1114
-
1115
-
1116
- var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1117
- return [
1118
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1119
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1120
- ];
1121
- }).s("CodeStarNotifications_20191015", "ListTagsForResource", {}).n("CodestarNotificationsClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1122
- static {
1123
- __name(this, "ListTagsForResourceCommand");
1124
- }
717
+ const throwDefaultError = smithyClient.withBaseException(CodestarNotificationsServiceException);
718
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
719
+ const contents = smithyClient.map({});
720
+ const data = parsedOutput.body;
721
+ const doc = smithyClient.take(data, {
722
+ Message: smithyClient.expectString,
723
+ });
724
+ Object.assign(contents, doc);
725
+ const exception = new AccessDeniedException({
726
+ $metadata: deserializeMetadata(parsedOutput),
727
+ ...contents,
728
+ });
729
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1125
730
  };
1126
-
1127
- // src/commands/ListTargetsCommand.ts
1128
-
1129
-
1130
-
1131
- var ListTargetsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1132
- return [
1133
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1134
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1135
- ];
1136
- }).s("CodeStarNotifications_20191015", "ListTargets", {}).n("CodestarNotificationsClient", "ListTargetsCommand").f(void 0, ListTargetsResultFilterSensitiveLog).ser(se_ListTargetsCommand).de(de_ListTargetsCommand).build() {
1137
- static {
1138
- __name(this, "ListTargetsCommand");
1139
- }
731
+ const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
732
+ const contents = smithyClient.map({});
733
+ const data = parsedOutput.body;
734
+ const doc = smithyClient.take(data, {
735
+ Message: smithyClient.expectString,
736
+ });
737
+ Object.assign(contents, doc);
738
+ const exception = new ConcurrentModificationException({
739
+ $metadata: deserializeMetadata(parsedOutput),
740
+ ...contents,
741
+ });
742
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1140
743
  };
1141
-
1142
- // src/commands/SubscribeCommand.ts
1143
-
1144
-
1145
-
1146
- var SubscribeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1147
- return [
1148
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1149
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1150
- ];
1151
- }).s("CodeStarNotifications_20191015", "Subscribe", {}).n("CodestarNotificationsClient", "SubscribeCommand").f(SubscribeRequestFilterSensitiveLog, void 0).ser(se_SubscribeCommand).de(de_SubscribeCommand).build() {
1152
- static {
1153
- __name(this, "SubscribeCommand");
1154
- }
744
+ const de_ConfigurationExceptionRes = async (parsedOutput, context) => {
745
+ const contents = smithyClient.map({});
746
+ const data = parsedOutput.body;
747
+ const doc = smithyClient.take(data, {
748
+ Message: smithyClient.expectString,
749
+ });
750
+ Object.assign(contents, doc);
751
+ const exception = new ConfigurationException({
752
+ $metadata: deserializeMetadata(parsedOutput),
753
+ ...contents,
754
+ });
755
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1155
756
  };
1156
-
1157
- // src/commands/TagResourceCommand.ts
1158
-
1159
-
1160
-
1161
- var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1162
- return [
1163
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1164
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1165
- ];
1166
- }).s("CodeStarNotifications_20191015", "TagResource", {}).n("CodestarNotificationsClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1167
- static {
1168
- __name(this, "TagResourceCommand");
1169
- }
757
+ const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
758
+ const contents = smithyClient.map({});
759
+ const data = parsedOutput.body;
760
+ const doc = smithyClient.take(data, {
761
+ Message: smithyClient.expectString,
762
+ });
763
+ Object.assign(contents, doc);
764
+ const exception = new InvalidNextTokenException({
765
+ $metadata: deserializeMetadata(parsedOutput),
766
+ ...contents,
767
+ });
768
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1170
769
  };
1171
-
1172
- // src/commands/UnsubscribeCommand.ts
1173
-
1174
-
1175
-
1176
- var UnsubscribeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1177
- return [
1178
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1179
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1180
- ];
1181
- }).s("CodeStarNotifications_20191015", "Unsubscribe", {}).n("CodestarNotificationsClient", "UnsubscribeCommand").f(UnsubscribeRequestFilterSensitiveLog, void 0).ser(se_UnsubscribeCommand).de(de_UnsubscribeCommand).build() {
1182
- static {
1183
- __name(this, "UnsubscribeCommand");
1184
- }
770
+ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
771
+ const contents = smithyClient.map({});
772
+ const data = parsedOutput.body;
773
+ const doc = smithyClient.take(data, {
774
+ Message: smithyClient.expectString,
775
+ });
776
+ Object.assign(contents, doc);
777
+ const exception = new LimitExceededException({
778
+ $metadata: deserializeMetadata(parsedOutput),
779
+ ...contents,
780
+ });
781
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1185
782
  };
1186
-
1187
- // src/commands/UntagResourceCommand.ts
1188
-
1189
-
1190
-
1191
- var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1192
- return [
1193
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1194
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1195
- ];
1196
- }).s("CodeStarNotifications_20191015", "UntagResource", {}).n("CodestarNotificationsClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1197
- static {
1198
- __name(this, "UntagResourceCommand");
1199
- }
783
+ const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
784
+ const contents = smithyClient.map({});
785
+ const data = parsedOutput.body;
786
+ const doc = smithyClient.take(data, {
787
+ Message: smithyClient.expectString,
788
+ });
789
+ Object.assign(contents, doc);
790
+ const exception = new ResourceAlreadyExistsException({
791
+ $metadata: deserializeMetadata(parsedOutput),
792
+ ...contents,
793
+ });
794
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1200
795
  };
1201
-
1202
- // src/commands/UpdateNotificationRuleCommand.ts
1203
-
1204
-
1205
-
1206
- var UpdateNotificationRuleCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1207
- return [
1208
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1209
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1210
- ];
1211
- }).s("CodeStarNotifications_20191015", "UpdateNotificationRule", {}).n("CodestarNotificationsClient", "UpdateNotificationRuleCommand").f(UpdateNotificationRuleRequestFilterSensitiveLog, void 0).ser(se_UpdateNotificationRuleCommand).de(de_UpdateNotificationRuleCommand).build() {
1212
- static {
1213
- __name(this, "UpdateNotificationRuleCommand");
1214
- }
796
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
797
+ const contents = smithyClient.map({});
798
+ const data = parsedOutput.body;
799
+ const doc = smithyClient.take(data, {
800
+ Message: smithyClient.expectString,
801
+ });
802
+ Object.assign(contents, doc);
803
+ const exception = new ResourceNotFoundException({
804
+ $metadata: deserializeMetadata(parsedOutput),
805
+ ...contents,
806
+ });
807
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1215
808
  };
1216
-
1217
- // src/CodestarNotifications.ts
1218
- var commands = {
1219
- CreateNotificationRuleCommand,
1220
- DeleteNotificationRuleCommand,
1221
- DeleteTargetCommand,
1222
- DescribeNotificationRuleCommand,
1223
- ListEventTypesCommand,
1224
- ListNotificationRulesCommand,
1225
- ListTagsForResourceCommand,
1226
- ListTargetsCommand,
1227
- SubscribeCommand,
1228
- TagResourceCommand,
1229
- UnsubscribeCommand,
1230
- UntagResourceCommand,
1231
- UpdateNotificationRuleCommand
809
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
810
+ const contents = smithyClient.map({});
811
+ const data = parsedOutput.body;
812
+ const doc = smithyClient.take(data, {
813
+ Message: smithyClient.expectString,
814
+ });
815
+ Object.assign(contents, doc);
816
+ const exception = new ValidationException({
817
+ $metadata: deserializeMetadata(parsedOutput),
818
+ ...contents,
819
+ });
820
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1232
821
  };
1233
- var CodestarNotifications = class extends CodestarNotificationsClient {
1234
- static {
1235
- __name(this, "CodestarNotifications");
1236
- }
822
+ const deserializeMetadata = (output) => ({
823
+ httpStatusCode: output.statusCode,
824
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
825
+ extendedRequestId: output.headers["x-amz-id-2"],
826
+ cfId: output.headers["x-amz-cf-id"],
827
+ });
828
+ const _TK = "TagKeys";
829
+ const _tK = "tagKeys";
830
+
831
+ class CreateNotificationRuleCommand extends smithyClient.Command
832
+ .classBuilder()
833
+ .ep(commonParams)
834
+ .m(function (Command, cs, config, o) {
835
+ return [
836
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
837
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
838
+ ];
839
+ })
840
+ .s("CodeStarNotifications_20191015", "CreateNotificationRule", {})
841
+ .n("CodestarNotificationsClient", "CreateNotificationRuleCommand")
842
+ .f(CreateNotificationRuleRequestFilterSensitiveLog, void 0)
843
+ .ser(se_CreateNotificationRuleCommand)
844
+ .de(de_CreateNotificationRuleCommand)
845
+ .build() {
846
+ }
847
+
848
+ class DeleteNotificationRuleCommand extends smithyClient.Command
849
+ .classBuilder()
850
+ .ep(commonParams)
851
+ .m(function (Command, cs, config, o) {
852
+ return [
853
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
854
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
855
+ ];
856
+ })
857
+ .s("CodeStarNotifications_20191015", "DeleteNotificationRule", {})
858
+ .n("CodestarNotificationsClient", "DeleteNotificationRuleCommand")
859
+ .f(void 0, void 0)
860
+ .ser(se_DeleteNotificationRuleCommand)
861
+ .de(de_DeleteNotificationRuleCommand)
862
+ .build() {
863
+ }
864
+
865
+ class DeleteTargetCommand extends smithyClient.Command
866
+ .classBuilder()
867
+ .ep(commonParams)
868
+ .m(function (Command, cs, config, o) {
869
+ return [
870
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
871
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
872
+ ];
873
+ })
874
+ .s("CodeStarNotifications_20191015", "DeleteTarget", {})
875
+ .n("CodestarNotificationsClient", "DeleteTargetCommand")
876
+ .f(DeleteTargetRequestFilterSensitiveLog, void 0)
877
+ .ser(se_DeleteTargetCommand)
878
+ .de(de_DeleteTargetCommand)
879
+ .build() {
880
+ }
881
+
882
+ class DescribeNotificationRuleCommand extends smithyClient.Command
883
+ .classBuilder()
884
+ .ep(commonParams)
885
+ .m(function (Command, cs, config, o) {
886
+ return [
887
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
888
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
889
+ ];
890
+ })
891
+ .s("CodeStarNotifications_20191015", "DescribeNotificationRule", {})
892
+ .n("CodestarNotificationsClient", "DescribeNotificationRuleCommand")
893
+ .f(void 0, DescribeNotificationRuleResultFilterSensitiveLog)
894
+ .ser(se_DescribeNotificationRuleCommand)
895
+ .de(de_DescribeNotificationRuleCommand)
896
+ .build() {
897
+ }
898
+
899
+ class ListEventTypesCommand extends smithyClient.Command
900
+ .classBuilder()
901
+ .ep(commonParams)
902
+ .m(function (Command, cs, config, o) {
903
+ return [
904
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
905
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
906
+ ];
907
+ })
908
+ .s("CodeStarNotifications_20191015", "ListEventTypes", {})
909
+ .n("CodestarNotificationsClient", "ListEventTypesCommand")
910
+ .f(void 0, void 0)
911
+ .ser(se_ListEventTypesCommand)
912
+ .de(de_ListEventTypesCommand)
913
+ .build() {
914
+ }
915
+
916
+ class ListNotificationRulesCommand extends smithyClient.Command
917
+ .classBuilder()
918
+ .ep(commonParams)
919
+ .m(function (Command, cs, config, o) {
920
+ return [
921
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
922
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
923
+ ];
924
+ })
925
+ .s("CodeStarNotifications_20191015", "ListNotificationRules", {})
926
+ .n("CodestarNotificationsClient", "ListNotificationRulesCommand")
927
+ .f(void 0, void 0)
928
+ .ser(se_ListNotificationRulesCommand)
929
+ .de(de_ListNotificationRulesCommand)
930
+ .build() {
931
+ }
932
+
933
+ class ListTagsForResourceCommand extends smithyClient.Command
934
+ .classBuilder()
935
+ .ep(commonParams)
936
+ .m(function (Command, cs, config, o) {
937
+ return [
938
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
939
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
940
+ ];
941
+ })
942
+ .s("CodeStarNotifications_20191015", "ListTagsForResource", {})
943
+ .n("CodestarNotificationsClient", "ListTagsForResourceCommand")
944
+ .f(void 0, void 0)
945
+ .ser(se_ListTagsForResourceCommand)
946
+ .de(de_ListTagsForResourceCommand)
947
+ .build() {
948
+ }
949
+
950
+ class ListTargetsCommand extends smithyClient.Command
951
+ .classBuilder()
952
+ .ep(commonParams)
953
+ .m(function (Command, cs, config, o) {
954
+ return [
955
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
956
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
957
+ ];
958
+ })
959
+ .s("CodeStarNotifications_20191015", "ListTargets", {})
960
+ .n("CodestarNotificationsClient", "ListTargetsCommand")
961
+ .f(void 0, ListTargetsResultFilterSensitiveLog)
962
+ .ser(se_ListTargetsCommand)
963
+ .de(de_ListTargetsCommand)
964
+ .build() {
965
+ }
966
+
967
+ class SubscribeCommand extends smithyClient.Command
968
+ .classBuilder()
969
+ .ep(commonParams)
970
+ .m(function (Command, cs, config, o) {
971
+ return [
972
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
973
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
974
+ ];
975
+ })
976
+ .s("CodeStarNotifications_20191015", "Subscribe", {})
977
+ .n("CodestarNotificationsClient", "SubscribeCommand")
978
+ .f(SubscribeRequestFilterSensitiveLog, void 0)
979
+ .ser(se_SubscribeCommand)
980
+ .de(de_SubscribeCommand)
981
+ .build() {
982
+ }
983
+
984
+ class TagResourceCommand extends smithyClient.Command
985
+ .classBuilder()
986
+ .ep(commonParams)
987
+ .m(function (Command, cs, config, o) {
988
+ return [
989
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
990
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
991
+ ];
992
+ })
993
+ .s("CodeStarNotifications_20191015", "TagResource", {})
994
+ .n("CodestarNotificationsClient", "TagResourceCommand")
995
+ .f(void 0, void 0)
996
+ .ser(se_TagResourceCommand)
997
+ .de(de_TagResourceCommand)
998
+ .build() {
999
+ }
1000
+
1001
+ class UnsubscribeCommand extends smithyClient.Command
1002
+ .classBuilder()
1003
+ .ep(commonParams)
1004
+ .m(function (Command, cs, config, o) {
1005
+ return [
1006
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1007
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1008
+ ];
1009
+ })
1010
+ .s("CodeStarNotifications_20191015", "Unsubscribe", {})
1011
+ .n("CodestarNotificationsClient", "UnsubscribeCommand")
1012
+ .f(UnsubscribeRequestFilterSensitiveLog, void 0)
1013
+ .ser(se_UnsubscribeCommand)
1014
+ .de(de_UnsubscribeCommand)
1015
+ .build() {
1016
+ }
1017
+
1018
+ class UntagResourceCommand extends smithyClient.Command
1019
+ .classBuilder()
1020
+ .ep(commonParams)
1021
+ .m(function (Command, cs, config, o) {
1022
+ return [
1023
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1024
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1025
+ ];
1026
+ })
1027
+ .s("CodeStarNotifications_20191015", "UntagResource", {})
1028
+ .n("CodestarNotificationsClient", "UntagResourceCommand")
1029
+ .f(void 0, void 0)
1030
+ .ser(se_UntagResourceCommand)
1031
+ .de(de_UntagResourceCommand)
1032
+ .build() {
1033
+ }
1034
+
1035
+ class UpdateNotificationRuleCommand extends smithyClient.Command
1036
+ .classBuilder()
1037
+ .ep(commonParams)
1038
+ .m(function (Command, cs, config, o) {
1039
+ return [
1040
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1041
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1042
+ ];
1043
+ })
1044
+ .s("CodeStarNotifications_20191015", "UpdateNotificationRule", {})
1045
+ .n("CodestarNotificationsClient", "UpdateNotificationRuleCommand")
1046
+ .f(UpdateNotificationRuleRequestFilterSensitiveLog, void 0)
1047
+ .ser(se_UpdateNotificationRuleCommand)
1048
+ .de(de_UpdateNotificationRuleCommand)
1049
+ .build() {
1050
+ }
1051
+
1052
+ const commands = {
1053
+ CreateNotificationRuleCommand,
1054
+ DeleteNotificationRuleCommand,
1055
+ DeleteTargetCommand,
1056
+ DescribeNotificationRuleCommand,
1057
+ ListEventTypesCommand,
1058
+ ListNotificationRulesCommand,
1059
+ ListTagsForResourceCommand,
1060
+ ListTargetsCommand,
1061
+ SubscribeCommand,
1062
+ TagResourceCommand,
1063
+ UnsubscribeCommand,
1064
+ UntagResourceCommand,
1065
+ UpdateNotificationRuleCommand,
1237
1066
  };
1238
- (0, import_smithy_client.createAggregatedClient)(commands, CodestarNotifications);
1239
-
1240
- // src/pagination/ListEventTypesPaginator.ts
1067
+ class CodestarNotifications extends CodestarNotificationsClient {
1068
+ }
1069
+ smithyClient.createAggregatedClient(commands, CodestarNotifications);
1241
1070
 
1242
- var paginateListEventTypes = (0, import_core.createPaginator)(CodestarNotificationsClient, ListEventTypesCommand, "NextToken", "NextToken", "MaxResults");
1071
+ const paginateListEventTypes = core.createPaginator(CodestarNotificationsClient, ListEventTypesCommand, "NextToken", "NextToken", "MaxResults");
1243
1072
 
1244
- // src/pagination/ListNotificationRulesPaginator.ts
1073
+ const paginateListNotificationRules = core.createPaginator(CodestarNotificationsClient, ListNotificationRulesCommand, "NextToken", "NextToken", "MaxResults");
1245
1074
 
1246
- var paginateListNotificationRules = (0, import_core.createPaginator)(CodestarNotificationsClient, ListNotificationRulesCommand, "NextToken", "NextToken", "MaxResults");
1075
+ const paginateListTargets = core.createPaginator(CodestarNotificationsClient, ListTargetsCommand, "NextToken", "NextToken", "MaxResults");
1247
1076
 
1248
- // src/pagination/ListTargetsPaginator.ts
1249
-
1250
- var paginateListTargets = (0, import_core.createPaginator)(CodestarNotificationsClient, ListTargetsCommand, "NextToken", "NextToken", "MaxResults");
1251
- // Annotate the CommonJS export names for ESM import in node:
1252
-
1253
- 0 && (module.exports = {
1254
- CodestarNotificationsServiceException,
1255
- __Client,
1256
- CodestarNotificationsClient,
1257
- CodestarNotifications,
1258
- $Command,
1259
- CreateNotificationRuleCommand,
1260
- DeleteNotificationRuleCommand,
1261
- DeleteTargetCommand,
1262
- DescribeNotificationRuleCommand,
1263
- ListEventTypesCommand,
1264
- ListNotificationRulesCommand,
1265
- ListTagsForResourceCommand,
1266
- ListTargetsCommand,
1267
- SubscribeCommand,
1268
- TagResourceCommand,
1269
- UnsubscribeCommand,
1270
- UntagResourceCommand,
1271
- UpdateNotificationRuleCommand,
1272
- paginateListEventTypes,
1273
- paginateListNotificationRules,
1274
- paginateListTargets,
1275
- AccessDeniedException,
1276
- ConcurrentModificationException,
1277
- ConfigurationException,
1278
- DetailType,
1279
- NotificationRuleStatus,
1280
- LimitExceededException,
1281
- ResourceAlreadyExistsException,
1282
- ValidationException,
1283
- TargetStatus,
1284
- ResourceNotFoundException,
1285
- InvalidNextTokenException,
1286
- ListEventTypesFilterName,
1287
- ListNotificationRulesFilterName,
1288
- ListTargetsFilterName,
1289
- TargetFilterSensitiveLog,
1290
- CreateNotificationRuleRequestFilterSensitiveLog,
1291
- DeleteTargetRequestFilterSensitiveLog,
1292
- TargetSummaryFilterSensitiveLog,
1293
- DescribeNotificationRuleResultFilterSensitiveLog,
1294
- ListTargetsResultFilterSensitiveLog,
1295
- SubscribeRequestFilterSensitiveLog,
1296
- UnsubscribeRequestFilterSensitiveLog,
1297
- UpdateNotificationRuleRequestFilterSensitiveLog
1077
+ Object.defineProperty(exports, "$Command", {
1078
+ enumerable: true,
1079
+ get: function () { return smithyClient.Command; }
1298
1080
  });
1299
-
1081
+ Object.defineProperty(exports, "__Client", {
1082
+ enumerable: true,
1083
+ get: function () { return smithyClient.Client; }
1084
+ });
1085
+ exports.AccessDeniedException = AccessDeniedException;
1086
+ exports.CodestarNotifications = CodestarNotifications;
1087
+ exports.CodestarNotificationsClient = CodestarNotificationsClient;
1088
+ exports.CodestarNotificationsServiceException = CodestarNotificationsServiceException;
1089
+ exports.ConcurrentModificationException = ConcurrentModificationException;
1090
+ exports.ConfigurationException = ConfigurationException;
1091
+ exports.CreateNotificationRuleCommand = CreateNotificationRuleCommand;
1092
+ exports.CreateNotificationRuleRequestFilterSensitiveLog = CreateNotificationRuleRequestFilterSensitiveLog;
1093
+ exports.DeleteNotificationRuleCommand = DeleteNotificationRuleCommand;
1094
+ exports.DeleteTargetCommand = DeleteTargetCommand;
1095
+ exports.DeleteTargetRequestFilterSensitiveLog = DeleteTargetRequestFilterSensitiveLog;
1096
+ exports.DescribeNotificationRuleCommand = DescribeNotificationRuleCommand;
1097
+ exports.DescribeNotificationRuleResultFilterSensitiveLog = DescribeNotificationRuleResultFilterSensitiveLog;
1098
+ exports.DetailType = DetailType;
1099
+ exports.InvalidNextTokenException = InvalidNextTokenException;
1100
+ exports.LimitExceededException = LimitExceededException;
1101
+ exports.ListEventTypesCommand = ListEventTypesCommand;
1102
+ exports.ListEventTypesFilterName = ListEventTypesFilterName;
1103
+ exports.ListNotificationRulesCommand = ListNotificationRulesCommand;
1104
+ exports.ListNotificationRulesFilterName = ListNotificationRulesFilterName;
1105
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1106
+ exports.ListTargetsCommand = ListTargetsCommand;
1107
+ exports.ListTargetsFilterName = ListTargetsFilterName;
1108
+ exports.ListTargetsResultFilterSensitiveLog = ListTargetsResultFilterSensitiveLog;
1109
+ exports.NotificationRuleStatus = NotificationRuleStatus;
1110
+ exports.ResourceAlreadyExistsException = ResourceAlreadyExistsException;
1111
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1112
+ exports.SubscribeCommand = SubscribeCommand;
1113
+ exports.SubscribeRequestFilterSensitiveLog = SubscribeRequestFilterSensitiveLog;
1114
+ exports.TagResourceCommand = TagResourceCommand;
1115
+ exports.TargetFilterSensitiveLog = TargetFilterSensitiveLog;
1116
+ exports.TargetStatus = TargetStatus;
1117
+ exports.TargetSummaryFilterSensitiveLog = TargetSummaryFilterSensitiveLog;
1118
+ exports.UnsubscribeCommand = UnsubscribeCommand;
1119
+ exports.UnsubscribeRequestFilterSensitiveLog = UnsubscribeRequestFilterSensitiveLog;
1120
+ exports.UntagResourceCommand = UntagResourceCommand;
1121
+ exports.UpdateNotificationRuleCommand = UpdateNotificationRuleCommand;
1122
+ exports.UpdateNotificationRuleRequestFilterSensitiveLog = UpdateNotificationRuleRequestFilterSensitiveLog;
1123
+ exports.ValidationException = ValidationException;
1124
+ exports.paginateListEventTypes = paginateListEventTypes;
1125
+ exports.paginateListNotificationRules = paginateListNotificationRules;
1126
+ exports.paginateListTargets = paginateListTargets;