@aws-sdk/client-notificationscontacts 3.927.0 → 3.929.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 +397 -489
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/NotificationsContactsClient.js +2 -0
- package/dist-es/commands/ActivateEmailContactCommand.js +3 -10
- package/dist-es/commands/CreateEmailContactCommand.js +3 -10
- package/dist-es/commands/DeleteEmailContactCommand.js +3 -9
- package/dist-es/commands/GetEmailContactCommand.js +3 -10
- package/dist-es/commands/ListEmailContactsCommand.js +3 -10
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/SendActivationCodeCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -22
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +363 -0
- package/dist-types/NotificationsContactsClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -20
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +46 -0
- package/dist-types/ts3.4/NotificationsContactsClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -13
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +52 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_restJson1.js +0 -384
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -83
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -113
package/dist-cjs/index.js
CHANGED
|
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
|
|
|
6
6
|
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
7
|
var configResolver = require('@smithy/config-resolver');
|
|
8
8
|
var core = require('@smithy/core');
|
|
9
|
+
var schema = require('@smithy/core/schema');
|
|
9
10
|
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
11
|
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
12
|
var middlewareRetry = require('@smithy/middleware-retry');
|
|
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
14
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
15
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
17
|
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
-
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
-
var core$1 = require('@aws-sdk/core');
|
|
19
18
|
|
|
20
19
|
const resolveClientEndpointParameters = (options) => {
|
|
21
20
|
return Object.assign(options, {
|
|
@@ -89,6 +88,7 @@ class NotificationsContactsClient extends smithyClient.Client {
|
|
|
89
88
|
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
90
89
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
91
90
|
this.config = _config_8;
|
|
91
|
+
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
92
92
|
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
93
93
|
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
94
94
|
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
@@ -108,14 +108,14 @@ class NotificationsContactsClient extends smithyClient.Client {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
class NotificationsContactsServiceException extends smithyClient.ServiceException {
|
|
111
|
+
let NotificationsContactsServiceException$1 = class NotificationsContactsServiceException extends smithyClient.ServiceException {
|
|
112
112
|
constructor(options) {
|
|
113
113
|
super(options);
|
|
114
114
|
Object.setPrototypeOf(this, NotificationsContactsServiceException.prototype);
|
|
115
115
|
}
|
|
116
|
-
}
|
|
116
|
+
};
|
|
117
117
|
|
|
118
|
-
class AccessDeniedException extends NotificationsContactsServiceException {
|
|
118
|
+
let AccessDeniedException$1 = class AccessDeniedException extends NotificationsContactsServiceException$1 {
|
|
119
119
|
name = "AccessDeniedException";
|
|
120
120
|
$fault = "client";
|
|
121
121
|
constructor(opts) {
|
|
@@ -126,8 +126,8 @@ class AccessDeniedException extends NotificationsContactsServiceException {
|
|
|
126
126
|
});
|
|
127
127
|
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
128
128
|
}
|
|
129
|
-
}
|
|
130
|
-
class ConflictException extends NotificationsContactsServiceException {
|
|
129
|
+
};
|
|
130
|
+
let ConflictException$1 = class ConflictException extends NotificationsContactsServiceException$1 {
|
|
131
131
|
name = "ConflictException";
|
|
132
132
|
$fault = "client";
|
|
133
133
|
resourceId;
|
|
@@ -142,8 +142,8 @@ class ConflictException extends NotificationsContactsServiceException {
|
|
|
142
142
|
this.resourceId = opts.resourceId;
|
|
143
143
|
this.resourceType = opts.resourceType;
|
|
144
144
|
}
|
|
145
|
-
}
|
|
146
|
-
class InternalServerException extends NotificationsContactsServiceException {
|
|
145
|
+
};
|
|
146
|
+
let InternalServerException$1 = class InternalServerException extends NotificationsContactsServiceException$1 {
|
|
147
147
|
name = "InternalServerException";
|
|
148
148
|
$fault = "server";
|
|
149
149
|
$retryable = {};
|
|
@@ -155,8 +155,8 @@ class InternalServerException extends NotificationsContactsServiceException {
|
|
|
155
155
|
});
|
|
156
156
|
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
157
157
|
}
|
|
158
|
-
}
|
|
159
|
-
class ResourceNotFoundException extends NotificationsContactsServiceException {
|
|
158
|
+
};
|
|
159
|
+
let ResourceNotFoundException$1 = class ResourceNotFoundException extends NotificationsContactsServiceException$1 {
|
|
160
160
|
name = "ResourceNotFoundException";
|
|
161
161
|
$fault = "client";
|
|
162
162
|
resourceId;
|
|
@@ -171,8 +171,8 @@ class ResourceNotFoundException extends NotificationsContactsServiceException {
|
|
|
171
171
|
this.resourceId = opts.resourceId;
|
|
172
172
|
this.resourceType = opts.resourceType;
|
|
173
173
|
}
|
|
174
|
-
}
|
|
175
|
-
class ThrottlingException extends NotificationsContactsServiceException {
|
|
174
|
+
};
|
|
175
|
+
let ThrottlingException$1 = class ThrottlingException extends NotificationsContactsServiceException$1 {
|
|
176
176
|
name = "ThrottlingException";
|
|
177
177
|
$fault = "client";
|
|
178
178
|
$retryable = {
|
|
@@ -192,12 +192,12 @@ class ThrottlingException extends NotificationsContactsServiceException {
|
|
|
192
192
|
this.quotaCode = opts.quotaCode;
|
|
193
193
|
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
194
194
|
}
|
|
195
|
-
}
|
|
195
|
+
};
|
|
196
196
|
const ValidationExceptionReason = {
|
|
197
197
|
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
198
198
|
OTHER: "other",
|
|
199
199
|
};
|
|
200
|
-
class ValidationException extends NotificationsContactsServiceException {
|
|
200
|
+
let ValidationException$1 = class ValidationException extends NotificationsContactsServiceException$1 {
|
|
201
201
|
name = "ValidationException";
|
|
202
202
|
$fault = "client";
|
|
203
203
|
reason;
|
|
@@ -212,8 +212,8 @@ class ValidationException extends NotificationsContactsServiceException {
|
|
|
212
212
|
this.reason = opts.reason;
|
|
213
213
|
this.fieldList = opts.fieldList;
|
|
214
214
|
}
|
|
215
|
-
}
|
|
216
|
-
class ServiceQuotaExceededException extends NotificationsContactsServiceException {
|
|
215
|
+
};
|
|
216
|
+
let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extends NotificationsContactsServiceException$1 {
|
|
217
217
|
name = "ServiceQuotaExceededException";
|
|
218
218
|
$fault = "client";
|
|
219
219
|
resourceId;
|
|
@@ -232,426 +232,379 @@ class ServiceQuotaExceededException extends NotificationsContactsServiceExceptio
|
|
|
232
232
|
this.serviceCode = opts.serviceCode;
|
|
233
233
|
this.quotaCode = opts.quotaCode;
|
|
234
234
|
}
|
|
235
|
-
}
|
|
235
|
+
};
|
|
236
236
|
const EmailContactStatus = {
|
|
237
237
|
ACTIVE: "active",
|
|
238
238
|
INACTIVE: "inactive",
|
|
239
239
|
};
|
|
240
|
-
const ActivateEmailContactRequestFilterSensitiveLog = (obj) => ({
|
|
241
|
-
...obj,
|
|
242
|
-
...(obj.code && { code: smithyClient.SENSITIVE_STRING }),
|
|
243
|
-
});
|
|
244
|
-
const CreateEmailContactRequestFilterSensitiveLog = (obj) => ({
|
|
245
|
-
...obj,
|
|
246
|
-
...(obj.name && { name: smithyClient.SENSITIVE_STRING }),
|
|
247
|
-
});
|
|
248
|
-
const EmailContactFilterSensitiveLog = (obj) => ({
|
|
249
|
-
...obj,
|
|
250
|
-
...(obj.name && { name: smithyClient.SENSITIVE_STRING }),
|
|
251
|
-
...(obj.address && { address: smithyClient.SENSITIVE_STRING }),
|
|
252
|
-
});
|
|
253
|
-
const GetEmailContactResponseFilterSensitiveLog = (obj) => ({
|
|
254
|
-
...obj,
|
|
255
|
-
...(obj.emailContact && { emailContact: EmailContactFilterSensitiveLog(obj.emailContact) }),
|
|
256
|
-
});
|
|
257
|
-
const ListEmailContactsResponseFilterSensitiveLog = (obj) => ({
|
|
258
|
-
...obj,
|
|
259
|
-
...(obj.emailContacts && { emailContacts: obj.emailContacts.map((item) => EmailContactFilterSensitiveLog(item)) }),
|
|
260
|
-
});
|
|
261
240
|
|
|
262
|
-
const
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
const
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
const
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
const
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
const
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
const
|
|
318
|
-
|
|
319
|
-
const headers = {};
|
|
320
|
-
b.bp("/tags/{arn}");
|
|
321
|
-
b.p("arn", () => input.arn, "{arn}", false);
|
|
322
|
-
let body;
|
|
323
|
-
b.m("GET").h(headers).b(body);
|
|
324
|
-
return b.build();
|
|
325
|
-
};
|
|
326
|
-
const se_SendActivationCodeCommand = async (input, context) => {
|
|
327
|
-
const b = core.requestBuilder(input, context);
|
|
328
|
-
const headers = {};
|
|
329
|
-
b.bp("/2022-10-31/emailcontacts/{arn}/activate/send");
|
|
330
|
-
b.p("arn", () => input.arn, "{arn}", false);
|
|
331
|
-
let body;
|
|
332
|
-
b.m("POST").h(headers).b(body);
|
|
333
|
-
return b.build();
|
|
334
|
-
};
|
|
335
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
336
|
-
const b = core.requestBuilder(input, context);
|
|
337
|
-
const headers = {
|
|
338
|
-
"content-type": "application/json",
|
|
339
|
-
};
|
|
340
|
-
b.bp("/tags/{arn}");
|
|
341
|
-
b.p("arn", () => input.arn, "{arn}", false);
|
|
342
|
-
let body;
|
|
343
|
-
body = JSON.stringify(smithyClient.take(input, {
|
|
344
|
-
tags: (_) => smithyClient._json(_),
|
|
345
|
-
}));
|
|
346
|
-
b.m("POST").h(headers).b(body);
|
|
347
|
-
return b.build();
|
|
348
|
-
};
|
|
349
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
350
|
-
const b = core.requestBuilder(input, context);
|
|
351
|
-
const headers = {};
|
|
352
|
-
b.bp("/tags/{arn}");
|
|
353
|
-
b.p("arn", () => input.arn, "{arn}", false);
|
|
354
|
-
const query = smithyClient.map({
|
|
355
|
-
[_tK]: [smithyClient.expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
356
|
-
});
|
|
357
|
-
let body;
|
|
358
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
359
|
-
return b.build();
|
|
360
|
-
};
|
|
361
|
-
const de_ActivateEmailContactCommand = async (output, context) => {
|
|
362
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
363
|
-
return de_CommandError(output, context);
|
|
364
|
-
}
|
|
365
|
-
const contents = smithyClient.map({
|
|
366
|
-
$metadata: deserializeMetadata(output),
|
|
367
|
-
});
|
|
368
|
-
await smithyClient.collectBody(output.body, context);
|
|
369
|
-
return contents;
|
|
370
|
-
};
|
|
371
|
-
const de_CreateEmailContactCommand = async (output, context) => {
|
|
372
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
373
|
-
return de_CommandError(output, context);
|
|
374
|
-
}
|
|
375
|
-
const contents = smithyClient.map({
|
|
376
|
-
$metadata: deserializeMetadata(output),
|
|
377
|
-
});
|
|
378
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
379
|
-
const doc = smithyClient.take(data, {
|
|
380
|
-
arn: smithyClient.expectString,
|
|
381
|
-
});
|
|
382
|
-
Object.assign(contents, doc);
|
|
383
|
-
return contents;
|
|
384
|
-
};
|
|
385
|
-
const de_DeleteEmailContactCommand = async (output, context) => {
|
|
386
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
387
|
-
return de_CommandError(output, context);
|
|
388
|
-
}
|
|
389
|
-
const contents = smithyClient.map({
|
|
390
|
-
$metadata: deserializeMetadata(output),
|
|
391
|
-
});
|
|
392
|
-
await smithyClient.collectBody(output.body, context);
|
|
393
|
-
return contents;
|
|
394
|
-
};
|
|
395
|
-
const de_GetEmailContactCommand = async (output, context) => {
|
|
396
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
397
|
-
return de_CommandError(output, context);
|
|
398
|
-
}
|
|
399
|
-
const contents = smithyClient.map({
|
|
400
|
-
$metadata: deserializeMetadata(output),
|
|
401
|
-
});
|
|
402
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
403
|
-
const doc = smithyClient.take(data, {
|
|
404
|
-
emailContact: (_) => de_EmailContact(_),
|
|
405
|
-
});
|
|
406
|
-
Object.assign(contents, doc);
|
|
407
|
-
return contents;
|
|
408
|
-
};
|
|
409
|
-
const de_ListEmailContactsCommand = async (output, context) => {
|
|
410
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
411
|
-
return de_CommandError(output, context);
|
|
412
|
-
}
|
|
413
|
-
const contents = smithyClient.map({
|
|
414
|
-
$metadata: deserializeMetadata(output),
|
|
415
|
-
});
|
|
416
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
417
|
-
const doc = smithyClient.take(data, {
|
|
418
|
-
emailContacts: (_) => de_EmailContacts(_),
|
|
419
|
-
nextToken: smithyClient.expectString,
|
|
420
|
-
});
|
|
421
|
-
Object.assign(contents, doc);
|
|
422
|
-
return contents;
|
|
423
|
-
};
|
|
424
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
425
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
426
|
-
return de_CommandError(output, context);
|
|
427
|
-
}
|
|
428
|
-
const contents = smithyClient.map({
|
|
429
|
-
$metadata: deserializeMetadata(output),
|
|
430
|
-
});
|
|
431
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
432
|
-
const doc = smithyClient.take(data, {
|
|
433
|
-
tags: smithyClient._json,
|
|
434
|
-
});
|
|
435
|
-
Object.assign(contents, doc);
|
|
436
|
-
return contents;
|
|
437
|
-
};
|
|
438
|
-
const de_SendActivationCodeCommand = async (output, context) => {
|
|
439
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
440
|
-
return de_CommandError(output, context);
|
|
441
|
-
}
|
|
442
|
-
const contents = smithyClient.map({
|
|
443
|
-
$metadata: deserializeMetadata(output),
|
|
444
|
-
});
|
|
445
|
-
await smithyClient.collectBody(output.body, context);
|
|
446
|
-
return contents;
|
|
447
|
-
};
|
|
448
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
449
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
450
|
-
return de_CommandError(output, context);
|
|
451
|
-
}
|
|
452
|
-
const contents = smithyClient.map({
|
|
453
|
-
$metadata: deserializeMetadata(output),
|
|
454
|
-
});
|
|
455
|
-
await smithyClient.collectBody(output.body, context);
|
|
456
|
-
return contents;
|
|
457
|
-
};
|
|
458
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
459
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
460
|
-
return de_CommandError(output, context);
|
|
461
|
-
}
|
|
462
|
-
const contents = smithyClient.map({
|
|
463
|
-
$metadata: deserializeMetadata(output),
|
|
464
|
-
});
|
|
465
|
-
await smithyClient.collectBody(output.body, context);
|
|
466
|
-
return contents;
|
|
467
|
-
};
|
|
468
|
-
const de_CommandError = async (output, context) => {
|
|
469
|
-
const parsedOutput = {
|
|
470
|
-
...output,
|
|
471
|
-
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
472
|
-
};
|
|
473
|
-
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
474
|
-
switch (errorCode) {
|
|
475
|
-
case "AccessDeniedException":
|
|
476
|
-
case "com.amazonaws.notificationscontacts#AccessDeniedException":
|
|
477
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
478
|
-
case "ConflictException":
|
|
479
|
-
case "com.amazonaws.notificationscontacts#ConflictException":
|
|
480
|
-
throw await de_ConflictExceptionRes(parsedOutput);
|
|
481
|
-
case "InternalServerException":
|
|
482
|
-
case "com.amazonaws.notificationscontacts#InternalServerException":
|
|
483
|
-
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
484
|
-
case "ResourceNotFoundException":
|
|
485
|
-
case "com.amazonaws.notificationscontacts#ResourceNotFoundException":
|
|
486
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
487
|
-
case "ThrottlingException":
|
|
488
|
-
case "com.amazonaws.notificationscontacts#ThrottlingException":
|
|
489
|
-
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
490
|
-
case "ValidationException":
|
|
491
|
-
case "com.amazonaws.notificationscontacts#ValidationException":
|
|
492
|
-
throw await de_ValidationExceptionRes(parsedOutput);
|
|
493
|
-
case "ServiceQuotaExceededException":
|
|
494
|
-
case "com.amazonaws.notificationscontacts#ServiceQuotaExceededException":
|
|
495
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
496
|
-
default:
|
|
497
|
-
const parsedBody = parsedOutput.body;
|
|
498
|
-
return throwDefaultError({
|
|
499
|
-
output,
|
|
500
|
-
parsedBody,
|
|
501
|
-
errorCode,
|
|
502
|
-
});
|
|
503
|
-
}
|
|
504
|
-
};
|
|
505
|
-
const throwDefaultError = smithyClient.withBaseException(NotificationsContactsServiceException);
|
|
506
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
507
|
-
const contents = smithyClient.map({});
|
|
508
|
-
const data = parsedOutput.body;
|
|
509
|
-
const doc = smithyClient.take(data, {
|
|
510
|
-
message: smithyClient.expectString,
|
|
511
|
-
});
|
|
512
|
-
Object.assign(contents, doc);
|
|
513
|
-
const exception = new AccessDeniedException({
|
|
514
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
515
|
-
...contents,
|
|
516
|
-
});
|
|
517
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
518
|
-
};
|
|
519
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
520
|
-
const contents = smithyClient.map({});
|
|
521
|
-
const data = parsedOutput.body;
|
|
522
|
-
const doc = smithyClient.take(data, {
|
|
523
|
-
message: smithyClient.expectString,
|
|
524
|
-
resourceId: smithyClient.expectString,
|
|
525
|
-
resourceType: smithyClient.expectString,
|
|
526
|
-
});
|
|
527
|
-
Object.assign(contents, doc);
|
|
528
|
-
const exception = new ConflictException({
|
|
529
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
530
|
-
...contents,
|
|
531
|
-
});
|
|
532
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
533
|
-
};
|
|
534
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
535
|
-
const contents = smithyClient.map({});
|
|
536
|
-
const data = parsedOutput.body;
|
|
537
|
-
const doc = smithyClient.take(data, {
|
|
538
|
-
message: smithyClient.expectString,
|
|
539
|
-
});
|
|
540
|
-
Object.assign(contents, doc);
|
|
541
|
-
const exception = new InternalServerException({
|
|
542
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
543
|
-
...contents,
|
|
544
|
-
});
|
|
545
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
546
|
-
};
|
|
547
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
548
|
-
const contents = smithyClient.map({});
|
|
549
|
-
const data = parsedOutput.body;
|
|
550
|
-
const doc = smithyClient.take(data, {
|
|
551
|
-
message: smithyClient.expectString,
|
|
552
|
-
resourceId: smithyClient.expectString,
|
|
553
|
-
resourceType: smithyClient.expectString,
|
|
554
|
-
});
|
|
555
|
-
Object.assign(contents, doc);
|
|
556
|
-
const exception = new ResourceNotFoundException({
|
|
557
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
558
|
-
...contents,
|
|
559
|
-
});
|
|
560
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
561
|
-
};
|
|
562
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
563
|
-
const contents = smithyClient.map({});
|
|
564
|
-
const data = parsedOutput.body;
|
|
565
|
-
const doc = smithyClient.take(data, {
|
|
566
|
-
message: smithyClient.expectString,
|
|
567
|
-
quotaCode: smithyClient.expectString,
|
|
568
|
-
resourceId: smithyClient.expectString,
|
|
569
|
-
resourceType: smithyClient.expectString,
|
|
570
|
-
serviceCode: smithyClient.expectString,
|
|
571
|
-
});
|
|
572
|
-
Object.assign(contents, doc);
|
|
573
|
-
const exception = new ServiceQuotaExceededException({
|
|
574
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
575
|
-
...contents,
|
|
576
|
-
});
|
|
577
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
578
|
-
};
|
|
579
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
580
|
-
const contents = smithyClient.map({
|
|
581
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => smithyClient.strictParseInt32(parsedOutput.headers[_ra])],
|
|
582
|
-
});
|
|
583
|
-
const data = parsedOutput.body;
|
|
584
|
-
const doc = smithyClient.take(data, {
|
|
585
|
-
message: smithyClient.expectString,
|
|
586
|
-
quotaCode: smithyClient.expectString,
|
|
587
|
-
serviceCode: smithyClient.expectString,
|
|
588
|
-
});
|
|
589
|
-
Object.assign(contents, doc);
|
|
590
|
-
const exception = new ThrottlingException({
|
|
591
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
592
|
-
...contents,
|
|
593
|
-
});
|
|
594
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
595
|
-
};
|
|
596
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
597
|
-
const contents = smithyClient.map({});
|
|
598
|
-
const data = parsedOutput.body;
|
|
599
|
-
const doc = smithyClient.take(data, {
|
|
600
|
-
fieldList: smithyClient._json,
|
|
601
|
-
message: smithyClient.expectString,
|
|
602
|
-
reason: smithyClient.expectString,
|
|
603
|
-
});
|
|
604
|
-
Object.assign(contents, doc);
|
|
605
|
-
const exception = new ValidationException({
|
|
606
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
607
|
-
...contents,
|
|
608
|
-
});
|
|
609
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
610
|
-
};
|
|
611
|
-
const de_EmailContact = (output, context) => {
|
|
612
|
-
return smithyClient.take(output, {
|
|
613
|
-
address: smithyClient.expectString,
|
|
614
|
-
arn: smithyClient.expectString,
|
|
615
|
-
creationTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
616
|
-
name: smithyClient.expectString,
|
|
617
|
-
status: smithyClient.expectString,
|
|
618
|
-
updateTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
619
|
-
});
|
|
620
|
-
};
|
|
621
|
-
const de_EmailContacts = (output, context) => {
|
|
622
|
-
const retVal = (output || [])
|
|
623
|
-
.filter((e) => e != null)
|
|
624
|
-
.map((entry) => {
|
|
625
|
-
return de_EmailContact(entry);
|
|
626
|
-
});
|
|
627
|
-
return retVal;
|
|
628
|
-
};
|
|
629
|
-
const deserializeMetadata = (output) => ({
|
|
630
|
-
httpStatusCode: output.statusCode,
|
|
631
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
632
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
633
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
634
|
-
});
|
|
241
|
+
const _ADE = "AccessDeniedException";
|
|
242
|
+
const _AEC = "ActivateEmailContact";
|
|
243
|
+
const _AECR = "ActivateEmailContactRequest";
|
|
244
|
+
const _AECRc = "ActivateEmailContactResponse";
|
|
245
|
+
const _CE = "ConflictException";
|
|
246
|
+
const _CEC = "CreateEmailContact";
|
|
247
|
+
const _CECR = "CreateEmailContactRequest";
|
|
248
|
+
const _CECRr = "CreateEmailContactResponse";
|
|
249
|
+
const _DEC = "DeleteEmailContact";
|
|
250
|
+
const _DECR = "DeleteEmailContactRequest";
|
|
251
|
+
const _DECRe = "DeleteEmailContactResponse";
|
|
252
|
+
const _EC = "EmailContact";
|
|
253
|
+
const _ECN = "EmailContactName";
|
|
254
|
+
const _ECm = "EmailContacts";
|
|
255
|
+
const _GEC = "GetEmailContact";
|
|
256
|
+
const _GECR = "GetEmailContactRequest";
|
|
257
|
+
const _GECRe = "GetEmailContactResponse";
|
|
258
|
+
const _ISE = "InternalServerException";
|
|
259
|
+
const _LEC = "ListEmailContacts";
|
|
260
|
+
const _LECR = "ListEmailContactsRequest";
|
|
261
|
+
const _LECRi = "ListEmailContactsResponse";
|
|
262
|
+
const _LTFR = "ListTagsForResource";
|
|
263
|
+
const _LTFRR = "ListTagsForResourceRequest";
|
|
264
|
+
const _LTFRRi = "ListTagsForResourceResponse";
|
|
265
|
+
const _RA = "Retry-After";
|
|
266
|
+
const _RNFE = "ResourceNotFoundException";
|
|
267
|
+
const _SAC = "SendActivationCode";
|
|
268
|
+
const _SACR = "SendActivationCodeRequest";
|
|
269
|
+
const _SACRe = "SendActivationCodeResponse";
|
|
270
|
+
const _SECA = "SensitiveEmailContactAddress";
|
|
271
|
+
const _SQEE = "ServiceQuotaExceededException";
|
|
272
|
+
const _T = "Token";
|
|
273
|
+
const _TE = "ThrottlingException";
|
|
274
|
+
const _TR = "TagResource";
|
|
275
|
+
const _TRR = "TagResourceRequest";
|
|
276
|
+
const _TRRa = "TagResourceResponse";
|
|
277
|
+
const _UR = "UntagResource";
|
|
278
|
+
const _URR = "UntagResourceRequest";
|
|
279
|
+
const _URRn = "UntagResourceResponse";
|
|
280
|
+
const _VE = "ValidationException";
|
|
281
|
+
const _VEF = "ValidationExceptionField";
|
|
282
|
+
const _VEFL = "ValidationExceptionFieldList";
|
|
283
|
+
const _a = "arn";
|
|
284
|
+
const _ad = "address";
|
|
285
|
+
const _c = "client";
|
|
286
|
+
const _cT = "creationTime";
|
|
287
|
+
const _co = "code";
|
|
288
|
+
const _e = "error";
|
|
289
|
+
const _eA = "emailAddress";
|
|
290
|
+
const _eC = "emailContact";
|
|
291
|
+
const _eCm = "emailContacts";
|
|
292
|
+
const _fL = "fieldList";
|
|
293
|
+
const _h = "http";
|
|
294
|
+
const _hE = "httpError";
|
|
295
|
+
const _hH = "httpHeader";
|
|
296
|
+
const _hQ = "httpQuery";
|
|
297
|
+
const _m = "message";
|
|
635
298
|
const _mR = "maxResults";
|
|
299
|
+
const _n = "name";
|
|
636
300
|
const _nT = "nextToken";
|
|
301
|
+
const _qC = "quotaCode";
|
|
302
|
+
const _r = "reason";
|
|
637
303
|
const _rAS = "retryAfterSeconds";
|
|
638
|
-
const
|
|
304
|
+
const _rI = "resourceId";
|
|
305
|
+
const _rT = "resourceType";
|
|
306
|
+
const _s = "status";
|
|
307
|
+
const _sC = "serviceCode";
|
|
308
|
+
const _se = "server";
|
|
309
|
+
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.notificationscontacts";
|
|
310
|
+
const _t = "tags";
|
|
639
311
|
const _tK = "tagKeys";
|
|
312
|
+
const _uT = "updateTime";
|
|
313
|
+
const n0 = "com.amazonaws.notificationscontacts";
|
|
314
|
+
var EmailContactName = [0, n0, _ECN, 8, 0];
|
|
315
|
+
var SensitiveEmailContactAddress = [0, n0, _SECA, 8, 0];
|
|
316
|
+
var Token = [0, n0, _T, 8, 0];
|
|
317
|
+
var AccessDeniedException = [
|
|
318
|
+
-3,
|
|
319
|
+
n0,
|
|
320
|
+
_ADE,
|
|
321
|
+
{
|
|
322
|
+
[_e]: _c,
|
|
323
|
+
[_hE]: 403,
|
|
324
|
+
},
|
|
325
|
+
[_m],
|
|
326
|
+
[0],
|
|
327
|
+
];
|
|
328
|
+
schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
|
|
329
|
+
var ActivateEmailContactRequest = [
|
|
330
|
+
3,
|
|
331
|
+
n0,
|
|
332
|
+
_AECR,
|
|
333
|
+
0,
|
|
334
|
+
[_a, _co],
|
|
335
|
+
[
|
|
336
|
+
[0, 1],
|
|
337
|
+
[() => Token, 1],
|
|
338
|
+
],
|
|
339
|
+
];
|
|
340
|
+
var ActivateEmailContactResponse = [3, n0, _AECRc, 0, [], []];
|
|
341
|
+
var ConflictException = [
|
|
342
|
+
-3,
|
|
343
|
+
n0,
|
|
344
|
+
_CE,
|
|
345
|
+
{
|
|
346
|
+
[_e]: _c,
|
|
347
|
+
[_hE]: 409,
|
|
348
|
+
},
|
|
349
|
+
[_m, _rI, _rT],
|
|
350
|
+
[0, 0, 0],
|
|
351
|
+
];
|
|
352
|
+
schema.TypeRegistry.for(n0).registerError(ConflictException, ConflictException$1);
|
|
353
|
+
var CreateEmailContactRequest = [
|
|
354
|
+
3,
|
|
355
|
+
n0,
|
|
356
|
+
_CECR,
|
|
357
|
+
0,
|
|
358
|
+
[_n, _eA, _t],
|
|
359
|
+
[[() => EmailContactName, 0], 0, 128 | 0],
|
|
360
|
+
];
|
|
361
|
+
var CreateEmailContactResponse = [3, n0, _CECRr, 0, [_a], [0]];
|
|
362
|
+
var DeleteEmailContactRequest = [3, n0, _DECR, 0, [_a], [[0, 1]]];
|
|
363
|
+
var DeleteEmailContactResponse = [3, n0, _DECRe, 0, [], []];
|
|
364
|
+
var EmailContact = [
|
|
365
|
+
3,
|
|
366
|
+
n0,
|
|
367
|
+
_EC,
|
|
368
|
+
0,
|
|
369
|
+
[_a, _n, _ad, _s, _cT, _uT],
|
|
370
|
+
[0, [() => EmailContactName, 0], [() => SensitiveEmailContactAddress, 0], 0, 5, 5],
|
|
371
|
+
];
|
|
372
|
+
var GetEmailContactRequest = [3, n0, _GECR, 0, [_a], [[0, 1]]];
|
|
373
|
+
var GetEmailContactResponse = [3, n0, _GECRe, 0, [_eC], [[() => EmailContact, 0]]];
|
|
374
|
+
var InternalServerException = [
|
|
375
|
+
-3,
|
|
376
|
+
n0,
|
|
377
|
+
_ISE,
|
|
378
|
+
{
|
|
379
|
+
[_e]: _se,
|
|
380
|
+
[_hE]: 500,
|
|
381
|
+
},
|
|
382
|
+
[_m],
|
|
383
|
+
[0],
|
|
384
|
+
];
|
|
385
|
+
schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
|
|
386
|
+
var ListEmailContactsRequest = [
|
|
387
|
+
3,
|
|
388
|
+
n0,
|
|
389
|
+
_LECR,
|
|
390
|
+
0,
|
|
391
|
+
[_mR, _nT],
|
|
392
|
+
[
|
|
393
|
+
[
|
|
394
|
+
1,
|
|
395
|
+
{
|
|
396
|
+
[_hQ]: _mR,
|
|
397
|
+
},
|
|
398
|
+
],
|
|
399
|
+
[
|
|
400
|
+
0,
|
|
401
|
+
{
|
|
402
|
+
[_hQ]: _nT,
|
|
403
|
+
},
|
|
404
|
+
],
|
|
405
|
+
],
|
|
406
|
+
];
|
|
407
|
+
var ListEmailContactsResponse = [
|
|
408
|
+
3,
|
|
409
|
+
n0,
|
|
410
|
+
_LECRi,
|
|
411
|
+
0,
|
|
412
|
+
[_nT, _eCm],
|
|
413
|
+
[0, [() => EmailContacts, 0]],
|
|
414
|
+
];
|
|
415
|
+
var ListTagsForResourceRequest = [3, n0, _LTFRR, 0, [_a], [[0, 1]]];
|
|
416
|
+
var ListTagsForResourceResponse = [3, n0, _LTFRRi, 0, [_t], [128 | 0]];
|
|
417
|
+
var ResourceNotFoundException = [
|
|
418
|
+
-3,
|
|
419
|
+
n0,
|
|
420
|
+
_RNFE,
|
|
421
|
+
{
|
|
422
|
+
[_e]: _c,
|
|
423
|
+
[_hE]: 404,
|
|
424
|
+
},
|
|
425
|
+
[_m, _rI, _rT],
|
|
426
|
+
[0, 0, 0],
|
|
427
|
+
];
|
|
428
|
+
schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
|
|
429
|
+
var SendActivationCodeRequest = [3, n0, _SACR, 0, [_a], [[0, 1]]];
|
|
430
|
+
var SendActivationCodeResponse = [3, n0, _SACRe, 0, [], []];
|
|
431
|
+
var ServiceQuotaExceededException = [
|
|
432
|
+
-3,
|
|
433
|
+
n0,
|
|
434
|
+
_SQEE,
|
|
435
|
+
{
|
|
436
|
+
[_e]: _c,
|
|
437
|
+
[_hE]: 402,
|
|
438
|
+
},
|
|
439
|
+
[_m, _rI, _rT, _sC, _qC],
|
|
440
|
+
[0, 0, 0, 0, 0],
|
|
441
|
+
];
|
|
442
|
+
schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, ServiceQuotaExceededException$1);
|
|
443
|
+
var TagResourceRequest = [3, n0, _TRR, 0, [_a, _t], [[0, 1], 128 | 0]];
|
|
444
|
+
var TagResourceResponse = [3, n0, _TRRa, 0, [], []];
|
|
445
|
+
var ThrottlingException = [
|
|
446
|
+
-3,
|
|
447
|
+
n0,
|
|
448
|
+
_TE,
|
|
449
|
+
{
|
|
450
|
+
[_e]: _c,
|
|
451
|
+
[_hE]: 429,
|
|
452
|
+
},
|
|
453
|
+
[_m, _sC, _qC, _rAS],
|
|
454
|
+
[
|
|
455
|
+
0,
|
|
456
|
+
0,
|
|
457
|
+
0,
|
|
458
|
+
[
|
|
459
|
+
1,
|
|
460
|
+
{
|
|
461
|
+
[_hH]: _RA,
|
|
462
|
+
},
|
|
463
|
+
],
|
|
464
|
+
],
|
|
465
|
+
];
|
|
466
|
+
schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
|
|
467
|
+
var UntagResourceRequest = [
|
|
468
|
+
3,
|
|
469
|
+
n0,
|
|
470
|
+
_URR,
|
|
471
|
+
0,
|
|
472
|
+
[_a, _tK],
|
|
473
|
+
[
|
|
474
|
+
[0, 1],
|
|
475
|
+
[
|
|
476
|
+
64 | 0,
|
|
477
|
+
{
|
|
478
|
+
[_hQ]: _tK,
|
|
479
|
+
},
|
|
480
|
+
],
|
|
481
|
+
],
|
|
482
|
+
];
|
|
483
|
+
var UntagResourceResponse = [3, n0, _URRn, 0, [], []];
|
|
484
|
+
var ValidationException = [
|
|
485
|
+
-3,
|
|
486
|
+
n0,
|
|
487
|
+
_VE,
|
|
488
|
+
{
|
|
489
|
+
[_e]: _c,
|
|
490
|
+
[_hE]: 400,
|
|
491
|
+
},
|
|
492
|
+
[_m, _r, _fL],
|
|
493
|
+
[0, 0, () => ValidationExceptionFieldList],
|
|
494
|
+
];
|
|
495
|
+
schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
|
|
496
|
+
var ValidationExceptionField = [3, n0, _VEF, 0, [_n, _m], [0, 0]];
|
|
497
|
+
var NotificationsContactsServiceException = [
|
|
498
|
+
-3,
|
|
499
|
+
_sm,
|
|
500
|
+
"NotificationsContactsServiceException",
|
|
501
|
+
0,
|
|
502
|
+
[],
|
|
503
|
+
[],
|
|
504
|
+
];
|
|
505
|
+
schema.TypeRegistry.for(_sm).registerError(NotificationsContactsServiceException, NotificationsContactsServiceException$1);
|
|
506
|
+
var EmailContacts = [1, n0, _ECm, 0, [() => EmailContact, 0]];
|
|
507
|
+
var ValidationExceptionFieldList = [1, n0, _VEFL, 0, () => ValidationExceptionField];
|
|
508
|
+
var ActivateEmailContact = [
|
|
509
|
+
9,
|
|
510
|
+
n0,
|
|
511
|
+
_AEC,
|
|
512
|
+
{
|
|
513
|
+
[_h]: ["PUT", "/emailcontacts/{arn}/activate/{code}", 200],
|
|
514
|
+
},
|
|
515
|
+
() => ActivateEmailContactRequest,
|
|
516
|
+
() => ActivateEmailContactResponse,
|
|
517
|
+
];
|
|
518
|
+
var CreateEmailContact = [
|
|
519
|
+
9,
|
|
520
|
+
n0,
|
|
521
|
+
_CEC,
|
|
522
|
+
{
|
|
523
|
+
[_h]: ["POST", "/2022-09-19/emailcontacts", 201],
|
|
524
|
+
},
|
|
525
|
+
() => CreateEmailContactRequest,
|
|
526
|
+
() => CreateEmailContactResponse,
|
|
527
|
+
];
|
|
528
|
+
var DeleteEmailContact = [
|
|
529
|
+
9,
|
|
530
|
+
n0,
|
|
531
|
+
_DEC,
|
|
532
|
+
{
|
|
533
|
+
[_h]: ["DELETE", "/emailcontacts/{arn}", 200],
|
|
534
|
+
},
|
|
535
|
+
() => DeleteEmailContactRequest,
|
|
536
|
+
() => DeleteEmailContactResponse,
|
|
537
|
+
];
|
|
538
|
+
var GetEmailContact = [
|
|
539
|
+
9,
|
|
540
|
+
n0,
|
|
541
|
+
_GEC,
|
|
542
|
+
{
|
|
543
|
+
[_h]: ["GET", "/emailcontacts/{arn}", 200],
|
|
544
|
+
},
|
|
545
|
+
() => GetEmailContactRequest,
|
|
546
|
+
() => GetEmailContactResponse,
|
|
547
|
+
];
|
|
548
|
+
var ListEmailContacts = [
|
|
549
|
+
9,
|
|
550
|
+
n0,
|
|
551
|
+
_LEC,
|
|
552
|
+
{
|
|
553
|
+
[_h]: ["GET", "/emailcontacts", 200],
|
|
554
|
+
},
|
|
555
|
+
() => ListEmailContactsRequest,
|
|
556
|
+
() => ListEmailContactsResponse,
|
|
557
|
+
];
|
|
558
|
+
var ListTagsForResource = [
|
|
559
|
+
9,
|
|
560
|
+
n0,
|
|
561
|
+
_LTFR,
|
|
562
|
+
{
|
|
563
|
+
[_h]: ["GET", "/tags/{arn}", 200],
|
|
564
|
+
},
|
|
565
|
+
() => ListTagsForResourceRequest,
|
|
566
|
+
() => ListTagsForResourceResponse,
|
|
567
|
+
];
|
|
568
|
+
var SendActivationCode = [
|
|
569
|
+
9,
|
|
570
|
+
n0,
|
|
571
|
+
_SAC,
|
|
572
|
+
{
|
|
573
|
+
[_h]: ["POST", "/2022-10-31/emailcontacts/{arn}/activate/send", 200],
|
|
574
|
+
},
|
|
575
|
+
() => SendActivationCodeRequest,
|
|
576
|
+
() => SendActivationCodeResponse,
|
|
577
|
+
];
|
|
578
|
+
var TagResource = [
|
|
579
|
+
9,
|
|
580
|
+
n0,
|
|
581
|
+
_TR,
|
|
582
|
+
{
|
|
583
|
+
[_h]: ["POST", "/tags/{arn}", 200],
|
|
584
|
+
},
|
|
585
|
+
() => TagResourceRequest,
|
|
586
|
+
() => TagResourceResponse,
|
|
587
|
+
];
|
|
588
|
+
var UntagResource = [
|
|
589
|
+
9,
|
|
590
|
+
n0,
|
|
591
|
+
_UR,
|
|
592
|
+
{
|
|
593
|
+
[_h]: ["DELETE", "/tags/{arn}", 200],
|
|
594
|
+
},
|
|
595
|
+
() => UntagResourceRequest,
|
|
596
|
+
() => UntagResourceResponse,
|
|
597
|
+
];
|
|
640
598
|
|
|
641
599
|
class ActivateEmailContactCommand extends smithyClient.Command
|
|
642
600
|
.classBuilder()
|
|
643
601
|
.ep(commonParams)
|
|
644
602
|
.m(function (Command, cs, config, o) {
|
|
645
|
-
return [
|
|
646
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
647
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
648
|
-
];
|
|
603
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
649
604
|
})
|
|
650
605
|
.s("NotificationsContacts", "ActivateEmailContact", {})
|
|
651
606
|
.n("NotificationsContactsClient", "ActivateEmailContactCommand")
|
|
652
|
-
.
|
|
653
|
-
.ser(se_ActivateEmailContactCommand)
|
|
654
|
-
.de(de_ActivateEmailContactCommand)
|
|
607
|
+
.sc(ActivateEmailContact)
|
|
655
608
|
.build() {
|
|
656
609
|
}
|
|
657
610
|
|
|
@@ -659,16 +612,11 @@ class CreateEmailContactCommand extends smithyClient.Command
|
|
|
659
612
|
.classBuilder()
|
|
660
613
|
.ep(commonParams)
|
|
661
614
|
.m(function (Command, cs, config, o) {
|
|
662
|
-
return [
|
|
663
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
664
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
665
|
-
];
|
|
615
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
666
616
|
})
|
|
667
617
|
.s("NotificationsContacts", "CreateEmailContact", {})
|
|
668
618
|
.n("NotificationsContactsClient", "CreateEmailContactCommand")
|
|
669
|
-
.
|
|
670
|
-
.ser(se_CreateEmailContactCommand)
|
|
671
|
-
.de(de_CreateEmailContactCommand)
|
|
619
|
+
.sc(CreateEmailContact)
|
|
672
620
|
.build() {
|
|
673
621
|
}
|
|
674
622
|
|
|
@@ -676,16 +624,11 @@ class DeleteEmailContactCommand extends smithyClient.Command
|
|
|
676
624
|
.classBuilder()
|
|
677
625
|
.ep(commonParams)
|
|
678
626
|
.m(function (Command, cs, config, o) {
|
|
679
|
-
return [
|
|
680
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
681
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
682
|
-
];
|
|
627
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
683
628
|
})
|
|
684
629
|
.s("NotificationsContacts", "DeleteEmailContact", {})
|
|
685
630
|
.n("NotificationsContactsClient", "DeleteEmailContactCommand")
|
|
686
|
-
.
|
|
687
|
-
.ser(se_DeleteEmailContactCommand)
|
|
688
|
-
.de(de_DeleteEmailContactCommand)
|
|
631
|
+
.sc(DeleteEmailContact)
|
|
689
632
|
.build() {
|
|
690
633
|
}
|
|
691
634
|
|
|
@@ -693,16 +636,11 @@ class GetEmailContactCommand extends smithyClient.Command
|
|
|
693
636
|
.classBuilder()
|
|
694
637
|
.ep(commonParams)
|
|
695
638
|
.m(function (Command, cs, config, o) {
|
|
696
|
-
return [
|
|
697
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
698
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
699
|
-
];
|
|
639
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
700
640
|
})
|
|
701
641
|
.s("NotificationsContacts", "GetEmailContact", {})
|
|
702
642
|
.n("NotificationsContactsClient", "GetEmailContactCommand")
|
|
703
|
-
.
|
|
704
|
-
.ser(se_GetEmailContactCommand)
|
|
705
|
-
.de(de_GetEmailContactCommand)
|
|
643
|
+
.sc(GetEmailContact)
|
|
706
644
|
.build() {
|
|
707
645
|
}
|
|
708
646
|
|
|
@@ -710,16 +648,11 @@ class ListEmailContactsCommand extends smithyClient.Command
|
|
|
710
648
|
.classBuilder()
|
|
711
649
|
.ep(commonParams)
|
|
712
650
|
.m(function (Command, cs, config, o) {
|
|
713
|
-
return [
|
|
714
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
715
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
716
|
-
];
|
|
651
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
717
652
|
})
|
|
718
653
|
.s("NotificationsContacts", "ListEmailContacts", {})
|
|
719
654
|
.n("NotificationsContactsClient", "ListEmailContactsCommand")
|
|
720
|
-
.
|
|
721
|
-
.ser(se_ListEmailContactsCommand)
|
|
722
|
-
.de(de_ListEmailContactsCommand)
|
|
655
|
+
.sc(ListEmailContacts)
|
|
723
656
|
.build() {
|
|
724
657
|
}
|
|
725
658
|
|
|
@@ -727,16 +660,11 @@ class ListTagsForResourceCommand extends smithyClient.Command
|
|
|
727
660
|
.classBuilder()
|
|
728
661
|
.ep(commonParams)
|
|
729
662
|
.m(function (Command, cs, config, o) {
|
|
730
|
-
return [
|
|
731
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
732
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
733
|
-
];
|
|
663
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
734
664
|
})
|
|
735
665
|
.s("NotificationsContacts", "ListTagsForResource", {})
|
|
736
666
|
.n("NotificationsContactsClient", "ListTagsForResourceCommand")
|
|
737
|
-
.
|
|
738
|
-
.ser(se_ListTagsForResourceCommand)
|
|
739
|
-
.de(de_ListTagsForResourceCommand)
|
|
667
|
+
.sc(ListTagsForResource)
|
|
740
668
|
.build() {
|
|
741
669
|
}
|
|
742
670
|
|
|
@@ -744,16 +672,11 @@ class SendActivationCodeCommand extends smithyClient.Command
|
|
|
744
672
|
.classBuilder()
|
|
745
673
|
.ep(commonParams)
|
|
746
674
|
.m(function (Command, cs, config, o) {
|
|
747
|
-
return [
|
|
748
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
749
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
750
|
-
];
|
|
675
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
751
676
|
})
|
|
752
677
|
.s("NotificationsContacts", "SendActivationCode", {})
|
|
753
678
|
.n("NotificationsContactsClient", "SendActivationCodeCommand")
|
|
754
|
-
.
|
|
755
|
-
.ser(se_SendActivationCodeCommand)
|
|
756
|
-
.de(de_SendActivationCodeCommand)
|
|
679
|
+
.sc(SendActivationCode)
|
|
757
680
|
.build() {
|
|
758
681
|
}
|
|
759
682
|
|
|
@@ -761,16 +684,11 @@ class TagResourceCommand extends smithyClient.Command
|
|
|
761
684
|
.classBuilder()
|
|
762
685
|
.ep(commonParams)
|
|
763
686
|
.m(function (Command, cs, config, o) {
|
|
764
|
-
return [
|
|
765
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
766
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
767
|
-
];
|
|
687
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
768
688
|
})
|
|
769
689
|
.s("NotificationsContacts", "TagResource", {})
|
|
770
690
|
.n("NotificationsContactsClient", "TagResourceCommand")
|
|
771
|
-
.
|
|
772
|
-
.ser(se_TagResourceCommand)
|
|
773
|
-
.de(de_TagResourceCommand)
|
|
691
|
+
.sc(TagResource)
|
|
774
692
|
.build() {
|
|
775
693
|
}
|
|
776
694
|
|
|
@@ -778,16 +696,11 @@ class UntagResourceCommand extends smithyClient.Command
|
|
|
778
696
|
.classBuilder()
|
|
779
697
|
.ep(commonParams)
|
|
780
698
|
.m(function (Command, cs, config, o) {
|
|
781
|
-
return [
|
|
782
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
783
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
784
|
-
];
|
|
699
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
785
700
|
})
|
|
786
701
|
.s("NotificationsContacts", "UntagResource", {})
|
|
787
702
|
.n("NotificationsContactsClient", "UntagResourceCommand")
|
|
788
|
-
.
|
|
789
|
-
.ser(se_UntagResourceCommand)
|
|
790
|
-
.de(de_UntagResourceCommand)
|
|
703
|
+
.sc(UntagResource)
|
|
791
704
|
.build() {
|
|
792
705
|
}
|
|
793
706
|
|
|
@@ -816,30 +729,25 @@ Object.defineProperty(exports, "__Client", {
|
|
|
816
729
|
enumerable: true,
|
|
817
730
|
get: function () { return smithyClient.Client; }
|
|
818
731
|
});
|
|
819
|
-
exports.AccessDeniedException = AccessDeniedException;
|
|
732
|
+
exports.AccessDeniedException = AccessDeniedException$1;
|
|
820
733
|
exports.ActivateEmailContactCommand = ActivateEmailContactCommand;
|
|
821
|
-
exports.
|
|
822
|
-
exports.ConflictException = ConflictException;
|
|
734
|
+
exports.ConflictException = ConflictException$1;
|
|
823
735
|
exports.CreateEmailContactCommand = CreateEmailContactCommand;
|
|
824
|
-
exports.CreateEmailContactRequestFilterSensitiveLog = CreateEmailContactRequestFilterSensitiveLog;
|
|
825
736
|
exports.DeleteEmailContactCommand = DeleteEmailContactCommand;
|
|
826
|
-
exports.EmailContactFilterSensitiveLog = EmailContactFilterSensitiveLog;
|
|
827
737
|
exports.EmailContactStatus = EmailContactStatus;
|
|
828
738
|
exports.GetEmailContactCommand = GetEmailContactCommand;
|
|
829
|
-
exports.
|
|
830
|
-
exports.InternalServerException = InternalServerException;
|
|
739
|
+
exports.InternalServerException = InternalServerException$1;
|
|
831
740
|
exports.ListEmailContactsCommand = ListEmailContactsCommand;
|
|
832
|
-
exports.ListEmailContactsResponseFilterSensitiveLog = ListEmailContactsResponseFilterSensitiveLog;
|
|
833
741
|
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
834
742
|
exports.NotificationsContacts = NotificationsContacts;
|
|
835
743
|
exports.NotificationsContactsClient = NotificationsContactsClient;
|
|
836
|
-
exports.NotificationsContactsServiceException = NotificationsContactsServiceException;
|
|
837
|
-
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
744
|
+
exports.NotificationsContactsServiceException = NotificationsContactsServiceException$1;
|
|
745
|
+
exports.ResourceNotFoundException = ResourceNotFoundException$1;
|
|
838
746
|
exports.SendActivationCodeCommand = SendActivationCodeCommand;
|
|
839
|
-
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
747
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException$1;
|
|
840
748
|
exports.TagResourceCommand = TagResourceCommand;
|
|
841
|
-
exports.ThrottlingException = ThrottlingException;
|
|
749
|
+
exports.ThrottlingException = ThrottlingException$1;
|
|
842
750
|
exports.UntagResourceCommand = UntagResourceCommand;
|
|
843
|
-
exports.ValidationException = ValidationException;
|
|
751
|
+
exports.ValidationException = ValidationException$1;
|
|
844
752
|
exports.ValidationExceptionReason = ValidationExceptionReason;
|
|
845
753
|
exports.paginateListEmailContacts = paginateListEmailContacts;
|