@aws-sdk/client-notificationscontacts 3.893.0 → 3.895.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -1,11 +1,1031 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NotificationsContactsServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./NotificationsContactsClient"), exports);
6
- tslib_1.__exportStar(require("./NotificationsContacts"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- var NotificationsContactsServiceException_1 = require("./models/NotificationsContactsServiceException");
11
- Object.defineProperty(exports, "NotificationsContactsServiceException", { enumerable: true, get: function () { return NotificationsContactsServiceException_1.NotificationsContactsServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
+ AccessDeniedException: () => AccessDeniedException,
25
+ ActivateEmailContactCommand: () => ActivateEmailContactCommand,
26
+ ActivateEmailContactRequestFilterSensitiveLog: () => ActivateEmailContactRequestFilterSensitiveLog,
27
+ ConflictException: () => ConflictException,
28
+ CreateEmailContactCommand: () => CreateEmailContactCommand,
29
+ CreateEmailContactRequestFilterSensitiveLog: () => CreateEmailContactRequestFilterSensitiveLog,
30
+ DeleteEmailContactCommand: () => DeleteEmailContactCommand,
31
+ EmailContactFilterSensitiveLog: () => EmailContactFilterSensitiveLog,
32
+ EmailContactStatus: () => EmailContactStatus,
33
+ GetEmailContactCommand: () => GetEmailContactCommand,
34
+ GetEmailContactResponseFilterSensitiveLog: () => GetEmailContactResponseFilterSensitiveLog,
35
+ InternalServerException: () => InternalServerException,
36
+ ListEmailContactsCommand: () => ListEmailContactsCommand,
37
+ ListEmailContactsResponseFilterSensitiveLog: () => ListEmailContactsResponseFilterSensitiveLog,
38
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
39
+ NotificationsContacts: () => NotificationsContacts,
40
+ NotificationsContactsClient: () => NotificationsContactsClient,
41
+ NotificationsContactsServiceException: () => NotificationsContactsServiceException,
42
+ ResourceNotFoundException: () => ResourceNotFoundException,
43
+ SendActivationCodeCommand: () => SendActivationCodeCommand,
44
+ ServiceQuotaExceededException: () => ServiceQuotaExceededException,
45
+ TagResourceCommand: () => TagResourceCommand,
46
+ ThrottlingException: () => ThrottlingException,
47
+ UntagResourceCommand: () => UntagResourceCommand,
48
+ ValidationException: () => ValidationException,
49
+ ValidationExceptionReason: () => ValidationExceptionReason,
50
+ __Client: () => import_smithy_client.Client,
51
+ paginateListEmailContacts: () => paginateListEmailContacts
52
+ });
53
+ module.exports = __toCommonJS(index_exports);
54
+
55
+ // src/NotificationsContactsClient.ts
56
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
57
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
58
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
59
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
60
+ var import_config_resolver = require("@smithy/config-resolver");
61
+ var import_core = require("@smithy/core");
62
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
63
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
64
+ var import_middleware_retry = require("@smithy/middleware-retry");
65
+
66
+ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
67
+
68
+ // src/endpoint/EndpointParameters.ts
69
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
70
+ return Object.assign(options, {
71
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
72
+ defaultSigningName: "notifications-contacts"
73
+ });
74
+ }, "resolveClientEndpointParameters");
75
+ var commonParams = {
76
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
77
+ Endpoint: { type: "builtInParams", name: "endpoint" },
78
+ Region: { type: "builtInParams", name: "region" }
79
+ };
80
+
81
+ // src/NotificationsContactsClient.ts
82
+ var import_runtimeConfig = require("././runtimeConfig");
83
+
84
+ // src/runtimeExtensions.ts
85
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
86
+ var import_protocol_http = require("@smithy/protocol-http");
87
+ var import_smithy_client = require("@smithy/smithy-client");
88
+
89
+ // src/auth/httpAuthExtensionConfiguration.ts
90
+ var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
91
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
92
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
93
+ let _credentials = runtimeConfig.credentials;
94
+ return {
95
+ setHttpAuthScheme(httpAuthScheme) {
96
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
97
+ if (index === -1) {
98
+ _httpAuthSchemes.push(httpAuthScheme);
99
+ } else {
100
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
101
+ }
102
+ },
103
+ httpAuthSchemes() {
104
+ return _httpAuthSchemes;
105
+ },
106
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
107
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
108
+ },
109
+ httpAuthSchemeProvider() {
110
+ return _httpAuthSchemeProvider;
111
+ },
112
+ setCredentials(credentials) {
113
+ _credentials = credentials;
114
+ },
115
+ credentials() {
116
+ return _credentials;
117
+ }
118
+ };
119
+ }, "getHttpAuthExtensionConfiguration");
120
+ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
121
+ return {
122
+ httpAuthSchemes: config.httpAuthSchemes(),
123
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
124
+ credentials: config.credentials()
125
+ };
126
+ }, "resolveHttpAuthRuntimeConfig");
127
+
128
+ // src/runtimeExtensions.ts
129
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
130
+ const extensionConfiguration = Object.assign(
131
+ (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
132
+ (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
133
+ (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
134
+ getHttpAuthExtensionConfiguration(runtimeConfig)
135
+ );
136
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
137
+ return Object.assign(
138
+ runtimeConfig,
139
+ (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
140
+ (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
141
+ (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
142
+ resolveHttpAuthRuntimeConfig(extensionConfiguration)
143
+ );
144
+ }, "resolveRuntimeExtensions");
145
+
146
+ // src/NotificationsContactsClient.ts
147
+ var NotificationsContactsClient = class extends import_smithy_client.Client {
148
+ static {
149
+ __name(this, "NotificationsContactsClient");
150
+ }
151
+ /**
152
+ * The resolved configuration of NotificationsContactsClient class. This is resolved and normalized from the {@link NotificationsContactsClientConfig | constructor configuration interface}.
153
+ */
154
+ config;
155
+ constructor(...[configuration]) {
156
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
157
+ super(_config_0);
158
+ this.initConfig = _config_0;
159
+ const _config_1 = resolveClientEndpointParameters(_config_0);
160
+ const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
161
+ const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
162
+ const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
163
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
164
+ const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
165
+ const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
166
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
167
+ this.config = _config_8;
168
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
169
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
170
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
171
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
172
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
173
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
174
+ this.middlewareStack.use(
175
+ (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
176
+ httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultNotificationsContactsHttpAuthSchemeParametersProvider,
177
+ identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
178
+ "aws.auth#sigv4": config.credentials
179
+ }), "identityProviderConfigProvider")
180
+ })
181
+ );
182
+ this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
183
+ }
184
+ /**
185
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
186
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
187
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
188
+ */
189
+ destroy() {
190
+ super.destroy();
191
+ }
192
+ };
193
+
194
+ // src/NotificationsContacts.ts
195
+
196
+
197
+ // src/commands/ActivateEmailContactCommand.ts
198
+
199
+ var import_middleware_serde = require("@smithy/middleware-serde");
200
+
201
+
202
+ // src/models/models_0.ts
203
+
204
+
205
+ // src/models/NotificationsContactsServiceException.ts
206
+
207
+ var NotificationsContactsServiceException = class _NotificationsContactsServiceException extends import_smithy_client.ServiceException {
208
+ static {
209
+ __name(this, "NotificationsContactsServiceException");
210
+ }
211
+ /**
212
+ * @internal
213
+ */
214
+ constructor(options) {
215
+ super(options);
216
+ Object.setPrototypeOf(this, _NotificationsContactsServiceException.prototype);
217
+ }
218
+ };
219
+
220
+ // src/models/models_0.ts
221
+ var AccessDeniedException = class _AccessDeniedException extends NotificationsContactsServiceException {
222
+ static {
223
+ __name(this, "AccessDeniedException");
224
+ }
225
+ name = "AccessDeniedException";
226
+ $fault = "client";
227
+ /**
228
+ * @internal
229
+ */
230
+ constructor(opts) {
231
+ super({
232
+ name: "AccessDeniedException",
233
+ $fault: "client",
234
+ ...opts
235
+ });
236
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
237
+ }
238
+ };
239
+ var ConflictException = class _ConflictException extends NotificationsContactsServiceException {
240
+ static {
241
+ __name(this, "ConflictException");
242
+ }
243
+ name = "ConflictException";
244
+ $fault = "client";
245
+ /**
246
+ * <p>The resource ID that prompted the conflict error.</p>
247
+ * @public
248
+ */
249
+ resourceId;
250
+ /**
251
+ * <p>The resource type that prompted the conflict error.</p>
252
+ * @public
253
+ */
254
+ resourceType;
255
+ /**
256
+ * @internal
257
+ */
258
+ constructor(opts) {
259
+ super({
260
+ name: "ConflictException",
261
+ $fault: "client",
262
+ ...opts
263
+ });
264
+ Object.setPrototypeOf(this, _ConflictException.prototype);
265
+ this.resourceId = opts.resourceId;
266
+ this.resourceType = opts.resourceType;
267
+ }
268
+ };
269
+ var InternalServerException = class _InternalServerException extends NotificationsContactsServiceException {
270
+ static {
271
+ __name(this, "InternalServerException");
272
+ }
273
+ name = "InternalServerException";
274
+ $fault = "server";
275
+ $retryable = {};
276
+ /**
277
+ * @internal
278
+ */
279
+ constructor(opts) {
280
+ super({
281
+ name: "InternalServerException",
282
+ $fault: "server",
283
+ ...opts
284
+ });
285
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
286
+ }
287
+ };
288
+ var ResourceNotFoundException = class _ResourceNotFoundException extends NotificationsContactsServiceException {
289
+ static {
290
+ __name(this, "ResourceNotFoundException");
291
+ }
292
+ name = "ResourceNotFoundException";
293
+ $fault = "client";
294
+ /**
295
+ * <p>The ID of the resource that wasn't found.</p>
296
+ * @public
297
+ */
298
+ resourceId;
299
+ /**
300
+ * <p>The type of resource that wasn't found.</p>
301
+ * @public
302
+ */
303
+ resourceType;
304
+ /**
305
+ * @internal
306
+ */
307
+ constructor(opts) {
308
+ super({
309
+ name: "ResourceNotFoundException",
310
+ $fault: "client",
311
+ ...opts
312
+ });
313
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
314
+ this.resourceId = opts.resourceId;
315
+ this.resourceType = opts.resourceType;
316
+ }
317
+ };
318
+ var ThrottlingException = class _ThrottlingException extends NotificationsContactsServiceException {
319
+ static {
320
+ __name(this, "ThrottlingException");
321
+ }
322
+ name = "ThrottlingException";
323
+ $fault = "client";
324
+ $retryable = {
325
+ throttling: true
326
+ };
327
+ /**
328
+ * <p>Identifies the service being throttled.</p>
329
+ * @public
330
+ */
331
+ serviceCode;
332
+ /**
333
+ * <p>Identifies the quota that is being throttled.</p>
334
+ * @public
335
+ */
336
+ quotaCode;
337
+ /**
338
+ * <p>The number of seconds a client should wait before retrying the request.</p>
339
+ * @public
340
+ */
341
+ retryAfterSeconds;
342
+ /**
343
+ * @internal
344
+ */
345
+ constructor(opts) {
346
+ super({
347
+ name: "ThrottlingException",
348
+ $fault: "client",
349
+ ...opts
350
+ });
351
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
352
+ this.serviceCode = opts.serviceCode;
353
+ this.quotaCode = opts.quotaCode;
354
+ this.retryAfterSeconds = opts.retryAfterSeconds;
355
+ }
356
+ };
357
+ var ValidationExceptionReason = {
358
+ FIELD_VALIDATION_FAILED: "fieldValidationFailed",
359
+ OTHER: "other"
360
+ };
361
+ var ValidationException = class _ValidationException extends NotificationsContactsServiceException {
362
+ static {
363
+ __name(this, "ValidationException");
364
+ }
365
+ name = "ValidationException";
366
+ $fault = "client";
367
+ /**
368
+ * <p>The reason why your input is considered invalid.</p>
369
+ * @public
370
+ */
371
+ reason;
372
+ /**
373
+ * <p>The list of input fields that are invalid.</p>
374
+ * @public
375
+ */
376
+ fieldList;
377
+ /**
378
+ * @internal
379
+ */
380
+ constructor(opts) {
381
+ super({
382
+ name: "ValidationException",
383
+ $fault: "client",
384
+ ...opts
385
+ });
386
+ Object.setPrototypeOf(this, _ValidationException.prototype);
387
+ this.reason = opts.reason;
388
+ this.fieldList = opts.fieldList;
389
+ }
390
+ };
391
+ var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends NotificationsContactsServiceException {
392
+ static {
393
+ __name(this, "ServiceQuotaExceededException");
394
+ }
395
+ name = "ServiceQuotaExceededException";
396
+ $fault = "client";
397
+ /**
398
+ * <p>The ID of the resource that exceeds the service quota.</p>
399
+ * @public
400
+ */
401
+ resourceId;
402
+ /**
403
+ * <p>The type of the resource that exceeds the service quota.</p>
404
+ * @public
405
+ */
406
+ resourceType;
407
+ /**
408
+ * <p>The code for the service quota exceeded in <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/intro.html">Service Quotas</a>.</p>
409
+ * @public
410
+ */
411
+ serviceCode;
412
+ /**
413
+ * <p>The code for the service quota in <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/intro.html">Service Quotas</a>.</p>
414
+ * @public
415
+ */
416
+ quotaCode;
417
+ /**
418
+ * @internal
419
+ */
420
+ constructor(opts) {
421
+ super({
422
+ name: "ServiceQuotaExceededException",
423
+ $fault: "client",
424
+ ...opts
425
+ });
426
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
427
+ this.resourceId = opts.resourceId;
428
+ this.resourceType = opts.resourceType;
429
+ this.serviceCode = opts.serviceCode;
430
+ this.quotaCode = opts.quotaCode;
431
+ }
432
+ };
433
+ var EmailContactStatus = {
434
+ ACTIVE: "active",
435
+ INACTIVE: "inactive"
436
+ };
437
+ var ActivateEmailContactRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
438
+ ...obj,
439
+ ...obj.code && { code: import_smithy_client.SENSITIVE_STRING }
440
+ }), "ActivateEmailContactRequestFilterSensitiveLog");
441
+ var CreateEmailContactRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
442
+ ...obj,
443
+ ...obj.name && { name: import_smithy_client.SENSITIVE_STRING }
444
+ }), "CreateEmailContactRequestFilterSensitiveLog");
445
+ var EmailContactFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
446
+ ...obj,
447
+ ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
448
+ ...obj.address && { address: import_smithy_client.SENSITIVE_STRING }
449
+ }), "EmailContactFilterSensitiveLog");
450
+ var GetEmailContactResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
451
+ ...obj,
452
+ ...obj.emailContact && { emailContact: EmailContactFilterSensitiveLog(obj.emailContact) }
453
+ }), "GetEmailContactResponseFilterSensitiveLog");
454
+ var ListEmailContactsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
455
+ ...obj,
456
+ ...obj.emailContacts && { emailContacts: obj.emailContacts.map((item) => EmailContactFilterSensitiveLog(item)) }
457
+ }), "ListEmailContactsResponseFilterSensitiveLog");
458
+
459
+ // src/protocols/Aws_restJson1.ts
460
+ var import_core2 = require("@aws-sdk/core");
461
+
462
+
463
+ var se_ActivateEmailContactCommand = /* @__PURE__ */ __name(async (input, context) => {
464
+ const b = (0, import_core.requestBuilder)(input, context);
465
+ const headers = {};
466
+ b.bp("/emailcontacts/{arn}/activate/{code}");
467
+ b.p("arn", () => input.arn, "{arn}", false);
468
+ b.p("code", () => input.code, "{code}", false);
469
+ let body;
470
+ b.m("PUT").h(headers).b(body);
471
+ return b.build();
472
+ }, "se_ActivateEmailContactCommand");
473
+ var se_CreateEmailContactCommand = /* @__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("/2022-09-19/emailcontacts");
479
+ let body;
480
+ body = JSON.stringify(
481
+ (0, import_smithy_client.take)(input, {
482
+ emailAddress: [],
483
+ name: [],
484
+ tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
485
+ })
486
+ );
487
+ b.m("POST").h(headers).b(body);
488
+ return b.build();
489
+ }, "se_CreateEmailContactCommand");
490
+ var se_DeleteEmailContactCommand = /* @__PURE__ */ __name(async (input, context) => {
491
+ const b = (0, import_core.requestBuilder)(input, context);
492
+ const headers = {};
493
+ b.bp("/emailcontacts/{arn}");
494
+ b.p("arn", () => input.arn, "{arn}", false);
495
+ let body;
496
+ b.m("DELETE").h(headers).b(body);
497
+ return b.build();
498
+ }, "se_DeleteEmailContactCommand");
499
+ var se_GetEmailContactCommand = /* @__PURE__ */ __name(async (input, context) => {
500
+ const b = (0, import_core.requestBuilder)(input, context);
501
+ const headers = {};
502
+ b.bp("/emailcontacts/{arn}");
503
+ b.p("arn", () => input.arn, "{arn}", false);
504
+ let body;
505
+ b.m("GET").h(headers).b(body);
506
+ return b.build();
507
+ }, "se_GetEmailContactCommand");
508
+ var se_ListEmailContactsCommand = /* @__PURE__ */ __name(async (input, context) => {
509
+ const b = (0, import_core.requestBuilder)(input, context);
510
+ const headers = {};
511
+ b.bp("/emailcontacts");
512
+ const query = (0, import_smithy_client.map)({
513
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
514
+ [_nT]: [, input[_nT]]
515
+ });
516
+ let body;
517
+ b.m("GET").h(headers).q(query).b(body);
518
+ return b.build();
519
+ }, "se_ListEmailContactsCommand");
520
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
521
+ const b = (0, import_core.requestBuilder)(input, context);
522
+ const headers = {};
523
+ b.bp("/tags/{arn}");
524
+ b.p("arn", () => input.arn, "{arn}", false);
525
+ let body;
526
+ b.m("GET").h(headers).b(body);
527
+ return b.build();
528
+ }, "se_ListTagsForResourceCommand");
529
+ var se_SendActivationCodeCommand = /* @__PURE__ */ __name(async (input, context) => {
530
+ const b = (0, import_core.requestBuilder)(input, context);
531
+ const headers = {};
532
+ b.bp("/2022-10-31/emailcontacts/{arn}/activate/send");
533
+ b.p("arn", () => input.arn, "{arn}", false);
534
+ let body;
535
+ b.m("POST").h(headers).b(body);
536
+ return b.build();
537
+ }, "se_SendActivationCodeCommand");
538
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
539
+ const b = (0, import_core.requestBuilder)(input, context);
540
+ const headers = {
541
+ "content-type": "application/json"
542
+ };
543
+ b.bp("/tags/{arn}");
544
+ b.p("arn", () => input.arn, "{arn}", false);
545
+ let body;
546
+ body = JSON.stringify(
547
+ (0, import_smithy_client.take)(input, {
548
+ tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
549
+ })
550
+ );
551
+ b.m("POST").h(headers).b(body);
552
+ return b.build();
553
+ }, "se_TagResourceCommand");
554
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
555
+ const b = (0, import_core.requestBuilder)(input, context);
556
+ const headers = {};
557
+ b.bp("/tags/{arn}");
558
+ b.p("arn", () => input.arn, "{arn}", false);
559
+ const query = (0, import_smithy_client.map)({
560
+ [_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []]
561
+ });
562
+ let body;
563
+ b.m("DELETE").h(headers).q(query).b(body);
564
+ return b.build();
565
+ }, "se_UntagResourceCommand");
566
+ var de_ActivateEmailContactCommand = /* @__PURE__ */ __name(async (output, context) => {
567
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
568
+ return de_CommandError(output, context);
569
+ }
570
+ const contents = (0, import_smithy_client.map)({
571
+ $metadata: deserializeMetadata(output)
572
+ });
573
+ await (0, import_smithy_client.collectBody)(output.body, context);
574
+ return contents;
575
+ }, "de_ActivateEmailContactCommand");
576
+ var de_CreateEmailContactCommand = /* @__PURE__ */ __name(async (output, context) => {
577
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
578
+ return de_CommandError(output, context);
579
+ }
580
+ const contents = (0, import_smithy_client.map)({
581
+ $metadata: deserializeMetadata(output)
582
+ });
583
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
584
+ const doc = (0, import_smithy_client.take)(data, {
585
+ arn: import_smithy_client.expectString
586
+ });
587
+ Object.assign(contents, doc);
588
+ return contents;
589
+ }, "de_CreateEmailContactCommand");
590
+ var de_DeleteEmailContactCommand = /* @__PURE__ */ __name(async (output, context) => {
591
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
592
+ return de_CommandError(output, context);
593
+ }
594
+ const contents = (0, import_smithy_client.map)({
595
+ $metadata: deserializeMetadata(output)
596
+ });
597
+ await (0, import_smithy_client.collectBody)(output.body, context);
598
+ return contents;
599
+ }, "de_DeleteEmailContactCommand");
600
+ var de_GetEmailContactCommand = /* @__PURE__ */ __name(async (output, context) => {
601
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
602
+ return de_CommandError(output, context);
603
+ }
604
+ const contents = (0, import_smithy_client.map)({
605
+ $metadata: deserializeMetadata(output)
606
+ });
607
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
608
+ const doc = (0, import_smithy_client.take)(data, {
609
+ emailContact: /* @__PURE__ */ __name((_) => de_EmailContact(_, context), "emailContact")
610
+ });
611
+ Object.assign(contents, doc);
612
+ return contents;
613
+ }, "de_GetEmailContactCommand");
614
+ var de_ListEmailContactsCommand = /* @__PURE__ */ __name(async (output, context) => {
615
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
616
+ return de_CommandError(output, context);
617
+ }
618
+ const contents = (0, import_smithy_client.map)({
619
+ $metadata: deserializeMetadata(output)
620
+ });
621
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
622
+ const doc = (0, import_smithy_client.take)(data, {
623
+ emailContacts: /* @__PURE__ */ __name((_) => de_EmailContacts(_, context), "emailContacts"),
624
+ nextToken: import_smithy_client.expectString
625
+ });
626
+ Object.assign(contents, doc);
627
+ return contents;
628
+ }, "de_ListEmailContactsCommand");
629
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
630
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
631
+ return de_CommandError(output, context);
632
+ }
633
+ const contents = (0, import_smithy_client.map)({
634
+ $metadata: deserializeMetadata(output)
635
+ });
636
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
637
+ const doc = (0, import_smithy_client.take)(data, {
638
+ tags: import_smithy_client._json
639
+ });
640
+ Object.assign(contents, doc);
641
+ return contents;
642
+ }, "de_ListTagsForResourceCommand");
643
+ var de_SendActivationCodeCommand = /* @__PURE__ */ __name(async (output, context) => {
644
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
645
+ return de_CommandError(output, context);
646
+ }
647
+ const contents = (0, import_smithy_client.map)({
648
+ $metadata: deserializeMetadata(output)
649
+ });
650
+ await (0, import_smithy_client.collectBody)(output.body, context);
651
+ return contents;
652
+ }, "de_SendActivationCodeCommand");
653
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
654
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
655
+ return de_CommandError(output, context);
656
+ }
657
+ const contents = (0, import_smithy_client.map)({
658
+ $metadata: deserializeMetadata(output)
659
+ });
660
+ await (0, import_smithy_client.collectBody)(output.body, context);
661
+ return contents;
662
+ }, "de_TagResourceCommand");
663
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
664
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
665
+ return de_CommandError(output, context);
666
+ }
667
+ const contents = (0, import_smithy_client.map)({
668
+ $metadata: deserializeMetadata(output)
669
+ });
670
+ await (0, import_smithy_client.collectBody)(output.body, context);
671
+ return contents;
672
+ }, "de_UntagResourceCommand");
673
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
674
+ const parsedOutput = {
675
+ ...output,
676
+ body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
677
+ };
678
+ const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
679
+ switch (errorCode) {
680
+ case "AccessDeniedException":
681
+ case "com.amazonaws.notificationscontacts#AccessDeniedException":
682
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
683
+ case "ConflictException":
684
+ case "com.amazonaws.notificationscontacts#ConflictException":
685
+ throw await de_ConflictExceptionRes(parsedOutput, context);
686
+ case "InternalServerException":
687
+ case "com.amazonaws.notificationscontacts#InternalServerException":
688
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
689
+ case "ResourceNotFoundException":
690
+ case "com.amazonaws.notificationscontacts#ResourceNotFoundException":
691
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
692
+ case "ThrottlingException":
693
+ case "com.amazonaws.notificationscontacts#ThrottlingException":
694
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
695
+ case "ValidationException":
696
+ case "com.amazonaws.notificationscontacts#ValidationException":
697
+ throw await de_ValidationExceptionRes(parsedOutput, context);
698
+ case "ServiceQuotaExceededException":
699
+ case "com.amazonaws.notificationscontacts#ServiceQuotaExceededException":
700
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
701
+ default:
702
+ const parsedBody = parsedOutput.body;
703
+ return throwDefaultError({
704
+ output,
705
+ parsedBody,
706
+ errorCode
707
+ });
708
+ }
709
+ }, "de_CommandError");
710
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(NotificationsContactsServiceException);
711
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
712
+ const contents = (0, import_smithy_client.map)({});
713
+ const data = parsedOutput.body;
714
+ const doc = (0, import_smithy_client.take)(data, {
715
+ message: import_smithy_client.expectString
716
+ });
717
+ Object.assign(contents, doc);
718
+ const exception = new AccessDeniedException({
719
+ $metadata: deserializeMetadata(parsedOutput),
720
+ ...contents
721
+ });
722
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
723
+ }, "de_AccessDeniedExceptionRes");
724
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
725
+ const contents = (0, import_smithy_client.map)({});
726
+ const data = parsedOutput.body;
727
+ const doc = (0, import_smithy_client.take)(data, {
728
+ message: import_smithy_client.expectString,
729
+ resourceId: import_smithy_client.expectString,
730
+ resourceType: import_smithy_client.expectString
731
+ });
732
+ Object.assign(contents, doc);
733
+ const exception = new ConflictException({
734
+ $metadata: deserializeMetadata(parsedOutput),
735
+ ...contents
736
+ });
737
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
738
+ }, "de_ConflictExceptionRes");
739
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
740
+ const contents = (0, import_smithy_client.map)({});
741
+ const data = parsedOutput.body;
742
+ const doc = (0, import_smithy_client.take)(data, {
743
+ message: import_smithy_client.expectString
744
+ });
745
+ Object.assign(contents, doc);
746
+ const exception = new InternalServerException({
747
+ $metadata: deserializeMetadata(parsedOutput),
748
+ ...contents
749
+ });
750
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
751
+ }, "de_InternalServerExceptionRes");
752
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
753
+ const contents = (0, import_smithy_client.map)({});
754
+ const data = parsedOutput.body;
755
+ const doc = (0, import_smithy_client.take)(data, {
756
+ message: import_smithy_client.expectString,
757
+ resourceId: import_smithy_client.expectString,
758
+ resourceType: import_smithy_client.expectString
759
+ });
760
+ Object.assign(contents, doc);
761
+ const exception = new ResourceNotFoundException({
762
+ $metadata: deserializeMetadata(parsedOutput),
763
+ ...contents
764
+ });
765
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
766
+ }, "de_ResourceNotFoundExceptionRes");
767
+ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
768
+ const contents = (0, import_smithy_client.map)({});
769
+ const data = parsedOutput.body;
770
+ const doc = (0, import_smithy_client.take)(data, {
771
+ message: import_smithy_client.expectString,
772
+ quotaCode: import_smithy_client.expectString,
773
+ resourceId: import_smithy_client.expectString,
774
+ resourceType: import_smithy_client.expectString,
775
+ serviceCode: import_smithy_client.expectString
776
+ });
777
+ Object.assign(contents, doc);
778
+ const exception = new ServiceQuotaExceededException({
779
+ $metadata: deserializeMetadata(parsedOutput),
780
+ ...contents
781
+ });
782
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
783
+ }, "de_ServiceQuotaExceededExceptionRes");
784
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
785
+ const contents = (0, import_smithy_client.map)({
786
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
787
+ });
788
+ const data = parsedOutput.body;
789
+ const doc = (0, import_smithy_client.take)(data, {
790
+ message: import_smithy_client.expectString,
791
+ quotaCode: import_smithy_client.expectString,
792
+ serviceCode: import_smithy_client.expectString
793
+ });
794
+ Object.assign(contents, doc);
795
+ const exception = new ThrottlingException({
796
+ $metadata: deserializeMetadata(parsedOutput),
797
+ ...contents
798
+ });
799
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
800
+ }, "de_ThrottlingExceptionRes");
801
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
802
+ const contents = (0, import_smithy_client.map)({});
803
+ const data = parsedOutput.body;
804
+ const doc = (0, import_smithy_client.take)(data, {
805
+ fieldList: import_smithy_client._json,
806
+ message: import_smithy_client.expectString,
807
+ reason: import_smithy_client.expectString
808
+ });
809
+ Object.assign(contents, doc);
810
+ const exception = new ValidationException({
811
+ $metadata: deserializeMetadata(parsedOutput),
812
+ ...contents
813
+ });
814
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
815
+ }, "de_ValidationExceptionRes");
816
+ var de_EmailContact = /* @__PURE__ */ __name((output, context) => {
817
+ return (0, import_smithy_client.take)(output, {
818
+ address: import_smithy_client.expectString,
819
+ arn: import_smithy_client.expectString,
820
+ creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "creationTime"),
821
+ name: import_smithy_client.expectString,
822
+ status: import_smithy_client.expectString,
823
+ updateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "updateTime")
824
+ });
825
+ }, "de_EmailContact");
826
+ var de_EmailContacts = /* @__PURE__ */ __name((output, context) => {
827
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
828
+ return de_EmailContact(entry, context);
829
+ });
830
+ return retVal;
831
+ }, "de_EmailContacts");
832
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
833
+ httpStatusCode: output.statusCode,
834
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
835
+ extendedRequestId: output.headers["x-amz-id-2"],
836
+ cfId: output.headers["x-amz-cf-id"]
837
+ }), "deserializeMetadata");
838
+ var _mR = "maxResults";
839
+ var _nT = "nextToken";
840
+ var _rAS = "retryAfterSeconds";
841
+ var _ra = "retry-after";
842
+ var _tK = "tagKeys";
843
+
844
+ // src/commands/ActivateEmailContactCommand.ts
845
+ var ActivateEmailContactCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
846
+ return [
847
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
848
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
849
+ ];
850
+ }).s("NotificationsContacts", "ActivateEmailContact", {}).n("NotificationsContactsClient", "ActivateEmailContactCommand").f(ActivateEmailContactRequestFilterSensitiveLog, void 0).ser(se_ActivateEmailContactCommand).de(de_ActivateEmailContactCommand).build() {
851
+ static {
852
+ __name(this, "ActivateEmailContactCommand");
853
+ }
854
+ };
855
+
856
+ // src/commands/CreateEmailContactCommand.ts
857
+
858
+
859
+
860
+ var CreateEmailContactCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
861
+ return [
862
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
863
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
864
+ ];
865
+ }).s("NotificationsContacts", "CreateEmailContact", {}).n("NotificationsContactsClient", "CreateEmailContactCommand").f(CreateEmailContactRequestFilterSensitiveLog, void 0).ser(se_CreateEmailContactCommand).de(de_CreateEmailContactCommand).build() {
866
+ static {
867
+ __name(this, "CreateEmailContactCommand");
868
+ }
869
+ };
870
+
871
+ // src/commands/DeleteEmailContactCommand.ts
872
+
873
+
874
+
875
+ var DeleteEmailContactCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
876
+ return [
877
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
878
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
879
+ ];
880
+ }).s("NotificationsContacts", "DeleteEmailContact", {}).n("NotificationsContactsClient", "DeleteEmailContactCommand").f(void 0, void 0).ser(se_DeleteEmailContactCommand).de(de_DeleteEmailContactCommand).build() {
881
+ static {
882
+ __name(this, "DeleteEmailContactCommand");
883
+ }
884
+ };
885
+
886
+ // src/commands/GetEmailContactCommand.ts
887
+
888
+
889
+
890
+ var GetEmailContactCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
891
+ return [
892
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
893
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
894
+ ];
895
+ }).s("NotificationsContacts", "GetEmailContact", {}).n("NotificationsContactsClient", "GetEmailContactCommand").f(void 0, GetEmailContactResponseFilterSensitiveLog).ser(se_GetEmailContactCommand).de(de_GetEmailContactCommand).build() {
896
+ static {
897
+ __name(this, "GetEmailContactCommand");
898
+ }
899
+ };
900
+
901
+ // src/commands/ListEmailContactsCommand.ts
902
+
903
+
904
+
905
+ var ListEmailContactsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
906
+ return [
907
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
908
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
909
+ ];
910
+ }).s("NotificationsContacts", "ListEmailContacts", {}).n("NotificationsContactsClient", "ListEmailContactsCommand").f(void 0, ListEmailContactsResponseFilterSensitiveLog).ser(se_ListEmailContactsCommand).de(de_ListEmailContactsCommand).build() {
911
+ static {
912
+ __name(this, "ListEmailContactsCommand");
913
+ }
914
+ };
915
+
916
+ // src/commands/ListTagsForResourceCommand.ts
917
+
918
+
919
+
920
+ var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
921
+ return [
922
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
923
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
924
+ ];
925
+ }).s("NotificationsContacts", "ListTagsForResource", {}).n("NotificationsContactsClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
926
+ static {
927
+ __name(this, "ListTagsForResourceCommand");
928
+ }
929
+ };
930
+
931
+ // src/commands/SendActivationCodeCommand.ts
932
+
933
+
934
+
935
+ var SendActivationCodeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
936
+ return [
937
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
938
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
939
+ ];
940
+ }).s("NotificationsContacts", "SendActivationCode", {}).n("NotificationsContactsClient", "SendActivationCodeCommand").f(void 0, void 0).ser(se_SendActivationCodeCommand).de(de_SendActivationCodeCommand).build() {
941
+ static {
942
+ __name(this, "SendActivationCodeCommand");
943
+ }
944
+ };
945
+
946
+ // src/commands/TagResourceCommand.ts
947
+
948
+
949
+
950
+ var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
951
+ return [
952
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
953
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
954
+ ];
955
+ }).s("NotificationsContacts", "TagResource", {}).n("NotificationsContactsClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
956
+ static {
957
+ __name(this, "TagResourceCommand");
958
+ }
959
+ };
960
+
961
+ // src/commands/UntagResourceCommand.ts
962
+
963
+
964
+
965
+ var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
966
+ return [
967
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
968
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
969
+ ];
970
+ }).s("NotificationsContacts", "UntagResource", {}).n("NotificationsContactsClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
971
+ static {
972
+ __name(this, "UntagResourceCommand");
973
+ }
974
+ };
975
+
976
+ // src/NotificationsContacts.ts
977
+ var commands = {
978
+ ActivateEmailContactCommand,
979
+ CreateEmailContactCommand,
980
+ DeleteEmailContactCommand,
981
+ GetEmailContactCommand,
982
+ ListEmailContactsCommand,
983
+ ListTagsForResourceCommand,
984
+ SendActivationCodeCommand,
985
+ TagResourceCommand,
986
+ UntagResourceCommand
987
+ };
988
+ var NotificationsContacts = class extends NotificationsContactsClient {
989
+ static {
990
+ __name(this, "NotificationsContacts");
991
+ }
992
+ };
993
+ (0, import_smithy_client.createAggregatedClient)(commands, NotificationsContacts);
994
+
995
+ // src/pagination/ListEmailContactsPaginator.ts
996
+
997
+ var paginateListEmailContacts = (0, import_core.createPaginator)(NotificationsContactsClient, ListEmailContactsCommand, "nextToken", "nextToken", "maxResults");
998
+ // Annotate the CommonJS export names for ESM import in node:
999
+
1000
+ 0 && (module.exports = {
1001
+ NotificationsContactsServiceException,
1002
+ __Client,
1003
+ NotificationsContactsClient,
1004
+ NotificationsContacts,
1005
+ $Command,
1006
+ ActivateEmailContactCommand,
1007
+ CreateEmailContactCommand,
1008
+ DeleteEmailContactCommand,
1009
+ GetEmailContactCommand,
1010
+ ListEmailContactsCommand,
1011
+ ListTagsForResourceCommand,
1012
+ SendActivationCodeCommand,
1013
+ TagResourceCommand,
1014
+ UntagResourceCommand,
1015
+ paginateListEmailContacts,
1016
+ AccessDeniedException,
1017
+ ConflictException,
1018
+ InternalServerException,
1019
+ ResourceNotFoundException,
1020
+ ThrottlingException,
1021
+ ValidationExceptionReason,
1022
+ ValidationException,
1023
+ ServiceQuotaExceededException,
1024
+ EmailContactStatus,
1025
+ ActivateEmailContactRequestFilterSensitiveLog,
1026
+ CreateEmailContactRequestFilterSensitiveLog,
1027
+ EmailContactFilterSensitiveLog,
1028
+ GetEmailContactResponseFilterSensitiveLog,
1029
+ ListEmailContactsResponseFilterSensitiveLog
1030
+ });
1031
+