@aws-sdk/client-notificationscontacts 3.1075.0 → 3.1076.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,21 +1,57 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultNotificationsContactsHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { ActivateEmailContact$, CreateEmailContact$, DeleteEmailContact$, GetEmailContact$, ListEmailContacts$, ListTagsForResource$, SendActivationCode$, TagResource$, UntagResource$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { NotificationsContactsServiceException } = require("./models/NotificationsContactsServiceException");
18
- exports.NotificationsContactsServiceException = NotificationsContactsServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
16
+
17
+ const defaultNotificationsContactsHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
+ return {
19
+ operation: getSmithyContext(context).operation,
20
+ region: await normalizeProvider(config.region)() || (() => {
21
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
22
+ })(),
23
+ };
24
+ };
25
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
26
+ return {
27
+ schemeId: "aws.auth#sigv4",
28
+ signingProperties: {
29
+ name: "notifications-contacts",
30
+ region: authParameters.region,
31
+ },
32
+ propertiesExtractor: (config, context) => ({
33
+ signingProperties: {
34
+ config,
35
+ context,
36
+ },
37
+ }),
38
+ };
39
+ }
40
+ const defaultNotificationsContactsHttpAuthSchemeProvider = (authParameters) => {
41
+ const options = [];
42
+ switch (authParameters.operation) {
43
+ default: {
44
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
45
+ }
46
+ }
47
+ return options;
48
+ };
49
+ const resolveHttpAuthSchemeConfig = (config) => {
50
+ const config_0 = resolveAwsSdkSigV4Config(config);
51
+ return Object.assign(config_0, {
52
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
53
+ });
54
+ };
19
55
 
20
56
  const resolveClientEndpointParameters = (options) => {
21
57
  return Object.assign(options, {
@@ -29,6 +65,500 @@ const commonParams = {
29
65
  Region: { type: "builtInParams", name: "region" },
30
66
  };
31
67
 
68
+ var version = "3.1075.0";
69
+ var packageInfo = {
70
+ version: version};
71
+
72
+ const a = "isSet", b = { "ref": "Endpoint" }, c = { "authSchemes": [{ "name": "sigv4", "signingRegion": "{PartitionResult#implicitGlobalRegion}" }] }, d = [{ "ref": "Region" }];
73
+ const _data = {
74
+ conditions: [
75
+ [a, [b]],
76
+ [a, d],
77
+ ["aws.partition", d, "PartitionResult"],
78
+ ["booleanEquals", [{ ref: "UseFIPS" }, true]]
79
+ ],
80
+ results: [
81
+ [-1],
82
+ [-1, "Invalid Configuration: FIPS and custom endpoint are not supported"],
83
+ [b, {}],
84
+ ["https://notifications-contacts-fips.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}", c],
85
+ ["https://notifications-contacts.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}", c],
86
+ [-1, "Invalid Configuration: Missing Region"]
87
+ ]
88
+ };
89
+ const root = 2;
90
+ const r = 100_000_000;
91
+ const nodes = new Int32Array([
92
+ -1, 1, -1,
93
+ 0, 6, 3,
94
+ 1, 4, r + 5,
95
+ 2, 5, r + 5,
96
+ 3, r + 3, r + 4,
97
+ 3, r + 1, r + 2,
98
+ ]);
99
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
100
+
101
+ const cache = new EndpointCache({
102
+ size: 50,
103
+ params: ["Endpoint", "Region", "UseFIPS"],
104
+ });
105
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
106
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
107
+ endpointParams: endpointParams,
108
+ logger: context.logger,
109
+ }));
110
+ };
111
+ customEndpointFunctions.aws = awsEndpointFunctions;
112
+
113
+ class NotificationsContactsServiceException extends ServiceException {
114
+ constructor(options) {
115
+ super(options);
116
+ Object.setPrototypeOf(this, NotificationsContactsServiceException.prototype);
117
+ }
118
+ }
119
+
120
+ class AccessDeniedException extends NotificationsContactsServiceException {
121
+ name = "AccessDeniedException";
122
+ $fault = "client";
123
+ constructor(opts) {
124
+ super({
125
+ name: "AccessDeniedException",
126
+ $fault: "client",
127
+ ...opts,
128
+ });
129
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
130
+ }
131
+ }
132
+ class ConflictException extends NotificationsContactsServiceException {
133
+ name = "ConflictException";
134
+ $fault = "client";
135
+ resourceId;
136
+ resourceType;
137
+ constructor(opts) {
138
+ super({
139
+ name: "ConflictException",
140
+ $fault: "client",
141
+ ...opts,
142
+ });
143
+ Object.setPrototypeOf(this, ConflictException.prototype);
144
+ this.resourceId = opts.resourceId;
145
+ this.resourceType = opts.resourceType;
146
+ }
147
+ }
148
+ class InternalServerException extends NotificationsContactsServiceException {
149
+ name = "InternalServerException";
150
+ $fault = "server";
151
+ $retryable = {};
152
+ constructor(opts) {
153
+ super({
154
+ name: "InternalServerException",
155
+ $fault: "server",
156
+ ...opts,
157
+ });
158
+ Object.setPrototypeOf(this, InternalServerException.prototype);
159
+ }
160
+ }
161
+ class ResourceNotFoundException extends NotificationsContactsServiceException {
162
+ name = "ResourceNotFoundException";
163
+ $fault = "client";
164
+ resourceId;
165
+ resourceType;
166
+ constructor(opts) {
167
+ super({
168
+ name: "ResourceNotFoundException",
169
+ $fault: "client",
170
+ ...opts,
171
+ });
172
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
173
+ this.resourceId = opts.resourceId;
174
+ this.resourceType = opts.resourceType;
175
+ }
176
+ }
177
+ class ThrottlingException extends NotificationsContactsServiceException {
178
+ name = "ThrottlingException";
179
+ $fault = "client";
180
+ $retryable = {
181
+ throttling: true,
182
+ };
183
+ serviceCode;
184
+ quotaCode;
185
+ retryAfterSeconds;
186
+ constructor(opts) {
187
+ super({
188
+ name: "ThrottlingException",
189
+ $fault: "client",
190
+ ...opts,
191
+ });
192
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
193
+ this.serviceCode = opts.serviceCode;
194
+ this.quotaCode = opts.quotaCode;
195
+ this.retryAfterSeconds = opts.retryAfterSeconds;
196
+ }
197
+ }
198
+ class ValidationException extends NotificationsContactsServiceException {
199
+ name = "ValidationException";
200
+ $fault = "client";
201
+ reason;
202
+ fieldList;
203
+ constructor(opts) {
204
+ super({
205
+ name: "ValidationException",
206
+ $fault: "client",
207
+ ...opts,
208
+ });
209
+ Object.setPrototypeOf(this, ValidationException.prototype);
210
+ this.reason = opts.reason;
211
+ this.fieldList = opts.fieldList;
212
+ }
213
+ }
214
+ class ServiceQuotaExceededException extends NotificationsContactsServiceException {
215
+ name = "ServiceQuotaExceededException";
216
+ $fault = "client";
217
+ resourceId;
218
+ resourceType;
219
+ serviceCode;
220
+ quotaCode;
221
+ constructor(opts) {
222
+ super({
223
+ name: "ServiceQuotaExceededException",
224
+ $fault: "client",
225
+ ...opts,
226
+ });
227
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
228
+ this.resourceId = opts.resourceId;
229
+ this.resourceType = opts.resourceType;
230
+ this.serviceCode = opts.serviceCode;
231
+ this.quotaCode = opts.quotaCode;
232
+ }
233
+ }
234
+
235
+ const _ADE = "AccessDeniedException";
236
+ const _AEC = "ActivateEmailContact";
237
+ const _AECR = "ActivateEmailContactRequest";
238
+ const _AECRc = "ActivateEmailContactResponse";
239
+ const _CE = "ConflictException";
240
+ const _CEC = "CreateEmailContact";
241
+ const _CECR = "CreateEmailContactRequest";
242
+ const _CECRr = "CreateEmailContactResponse";
243
+ const _DEC = "DeleteEmailContact";
244
+ const _DECR = "DeleteEmailContactRequest";
245
+ const _DECRe = "DeleteEmailContactResponse";
246
+ const _EC = "EmailContact";
247
+ const _ECN = "EmailContactName";
248
+ const _ECm = "EmailContacts";
249
+ const _GEC = "GetEmailContact";
250
+ const _GECR = "GetEmailContactRequest";
251
+ const _GECRe = "GetEmailContactResponse";
252
+ const _ISE = "InternalServerException";
253
+ const _LEC = "ListEmailContacts";
254
+ const _LECR = "ListEmailContactsRequest";
255
+ const _LECRi = "ListEmailContactsResponse";
256
+ const _LTFR = "ListTagsForResource";
257
+ const _LTFRR = "ListTagsForResourceRequest";
258
+ const _LTFRRi = "ListTagsForResourceResponse";
259
+ const _RA = "Retry-After";
260
+ const _RNFE = "ResourceNotFoundException";
261
+ const _SAC = "SendActivationCode";
262
+ const _SACR = "SendActivationCodeRequest";
263
+ const _SACRe = "SendActivationCodeResponse";
264
+ const _SECA = "SensitiveEmailContactAddress";
265
+ const _SQEE = "ServiceQuotaExceededException";
266
+ const _T = "Token";
267
+ const _TE = "ThrottlingException";
268
+ const _TR = "TagResource";
269
+ const _TRR = "TagResourceRequest";
270
+ const _TRRa = "TagResourceResponse";
271
+ const _UR = "UntagResource";
272
+ const _URR = "UntagResourceRequest";
273
+ const _URRn = "UntagResourceResponse";
274
+ const _VE = "ValidationException";
275
+ const _VEF = "ValidationExceptionField";
276
+ const _VEFL = "ValidationExceptionFieldList";
277
+ const _a = "arn";
278
+ const _ad = "address";
279
+ const _c = "client";
280
+ const _cT = "creationTime";
281
+ const _co = "code";
282
+ const _e = "error";
283
+ const _eA = "emailAddress";
284
+ const _eC = "emailContact";
285
+ const _eCm = "emailContacts";
286
+ const _fL = "fieldList";
287
+ const _h = "http";
288
+ const _hE = "httpError";
289
+ const _hH = "httpHeader";
290
+ const _hQ = "httpQuery";
291
+ const _m = "message";
292
+ const _mR = "maxResults";
293
+ const _n = "name";
294
+ const _nT = "nextToken";
295
+ const _qC = "quotaCode";
296
+ const _r = "reason";
297
+ const _rAS = "retryAfterSeconds";
298
+ const _rI = "resourceId";
299
+ const _rT = "resourceType";
300
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.notificationscontacts";
301
+ const _sC = "serviceCode";
302
+ const _se = "server";
303
+ const _st = "status";
304
+ const _t = "tags";
305
+ const _tK = "tagKeys";
306
+ const _uT = "updateTime";
307
+ const n0 = "com.amazonaws.notificationscontacts";
308
+ const _s_registry = TypeRegistry.for(_s);
309
+ var NotificationsContactsServiceException$ = [-3, _s, "NotificationsContactsServiceException", 0, [], []];
310
+ _s_registry.registerError(NotificationsContactsServiceException$, NotificationsContactsServiceException);
311
+ const n0_registry = TypeRegistry.for(n0);
312
+ var AccessDeniedException$ = [-3, n0, _ADE,
313
+ { [_e]: _c, [_hE]: 403 },
314
+ [_m],
315
+ [0], 1
316
+ ];
317
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
318
+ var ConflictException$ = [-3, n0, _CE,
319
+ { [_e]: _c, [_hE]: 409 },
320
+ [_m, _rI, _rT],
321
+ [0, 0, 0], 3
322
+ ];
323
+ n0_registry.registerError(ConflictException$, ConflictException);
324
+ var InternalServerException$ = [-3, n0, _ISE,
325
+ { [_e]: _se, [_hE]: 500 },
326
+ [_m],
327
+ [0], 1
328
+ ];
329
+ n0_registry.registerError(InternalServerException$, InternalServerException);
330
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
331
+ { [_e]: _c, [_hE]: 404 },
332
+ [_m, _rI, _rT],
333
+ [0, 0, 0], 3
334
+ ];
335
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
336
+ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
337
+ { [_e]: _c, [_hE]: 402 },
338
+ [_m, _rI, _rT, _sC, _qC],
339
+ [0, 0, 0, 0, 0], 5
340
+ ];
341
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
342
+ var ThrottlingException$ = [-3, n0, _TE,
343
+ { [_e]: _c, [_hE]: 429 },
344
+ [_m, _sC, _qC, _rAS],
345
+ [0, 0, 0, [1, { [_hH]: _RA }]], 1
346
+ ];
347
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
348
+ var ValidationException$ = [-3, n0, _VE,
349
+ { [_e]: _c, [_hE]: 400 },
350
+ [_m, _r, _fL],
351
+ [0, 0, () => ValidationExceptionFieldList], 2
352
+ ];
353
+ n0_registry.registerError(ValidationException$, ValidationException);
354
+ const errorTypeRegistries = [
355
+ _s_registry,
356
+ n0_registry,
357
+ ];
358
+ var EmailContactName = [0, n0, _ECN, 8, 0];
359
+ var SensitiveEmailContactAddress = [0, n0, _SECA, 8, 0];
360
+ var Token = [0, n0, _T, 8, 0];
361
+ var ActivateEmailContactRequest$ = [3, n0, _AECR,
362
+ 0,
363
+ [_a, _co],
364
+ [[0, 1], [() => Token, 1]], 2
365
+ ];
366
+ var ActivateEmailContactResponse$ = [3, n0, _AECRc,
367
+ 0,
368
+ [],
369
+ []
370
+ ];
371
+ var CreateEmailContactRequest$ = [3, n0, _CECR,
372
+ 0,
373
+ [_n, _eA, _t],
374
+ [[() => EmailContactName, 0], 0, 128 | 0], 2
375
+ ];
376
+ var CreateEmailContactResponse$ = [3, n0, _CECRr,
377
+ 0,
378
+ [_a],
379
+ [0], 1
380
+ ];
381
+ var DeleteEmailContactRequest$ = [3, n0, _DECR,
382
+ 0,
383
+ [_a],
384
+ [[0, 1]], 1
385
+ ];
386
+ var DeleteEmailContactResponse$ = [3, n0, _DECRe,
387
+ 0,
388
+ [],
389
+ []
390
+ ];
391
+ var EmailContact$ = [3, n0, _EC,
392
+ 0,
393
+ [_a, _n, _ad, _st, _cT, _uT],
394
+ [0, [() => EmailContactName, 0], [() => SensitiveEmailContactAddress, 0], 0, 5, 5], 6
395
+ ];
396
+ var GetEmailContactRequest$ = [3, n0, _GECR,
397
+ 0,
398
+ [_a],
399
+ [[0, 1]], 1
400
+ ];
401
+ var GetEmailContactResponse$ = [3, n0, _GECRe,
402
+ 0,
403
+ [_eC],
404
+ [[() => EmailContact$, 0]], 1
405
+ ];
406
+ var ListEmailContactsRequest$ = [3, n0, _LECR,
407
+ 0,
408
+ [_mR, _nT],
409
+ [[1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]]
410
+ ];
411
+ var ListEmailContactsResponse$ = [3, n0, _LECRi,
412
+ 0,
413
+ [_eCm, _nT],
414
+ [[() => EmailContacts, 0], 0], 1
415
+ ];
416
+ var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
417
+ 0,
418
+ [_a],
419
+ [[0, 1]], 1
420
+ ];
421
+ var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
422
+ 0,
423
+ [_t],
424
+ [128 | 0]
425
+ ];
426
+ var SendActivationCodeRequest$ = [3, n0, _SACR,
427
+ 0,
428
+ [_a],
429
+ [[0, 1]], 1
430
+ ];
431
+ var SendActivationCodeResponse$ = [3, n0, _SACRe,
432
+ 0,
433
+ [],
434
+ []
435
+ ];
436
+ var TagResourceRequest$ = [3, n0, _TRR,
437
+ 0,
438
+ [_a, _t],
439
+ [[0, 1], 128 | 0], 2
440
+ ];
441
+ var TagResourceResponse$ = [3, n0, _TRRa,
442
+ 0,
443
+ [],
444
+ []
445
+ ];
446
+ var UntagResourceRequest$ = [3, n0, _URR,
447
+ 0,
448
+ [_a, _tK],
449
+ [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
450
+ ];
451
+ var UntagResourceResponse$ = [3, n0, _URRn,
452
+ 0,
453
+ [],
454
+ []
455
+ ];
456
+ var ValidationExceptionField$ = [3, n0, _VEF,
457
+ 0,
458
+ [_n, _m],
459
+ [0, 0], 2
460
+ ];
461
+ var EmailContacts = [1, n0, _ECm,
462
+ 0, [() => EmailContact$,
463
+ 0]
464
+ ];
465
+ var ValidationExceptionFieldList = [1, n0, _VEFL,
466
+ 0, () => ValidationExceptionField$
467
+ ];
468
+ var ActivateEmailContact$ = [9, n0, _AEC,
469
+ { [_h]: ["PUT", "/emailcontacts/{arn}/activate/{code}", 200] }, () => ActivateEmailContactRequest$, () => ActivateEmailContactResponse$
470
+ ];
471
+ var CreateEmailContact$ = [9, n0, _CEC,
472
+ { [_h]: ["POST", "/2022-09-19/emailcontacts", 201] }, () => CreateEmailContactRequest$, () => CreateEmailContactResponse$
473
+ ];
474
+ var DeleteEmailContact$ = [9, n0, _DEC,
475
+ { [_h]: ["DELETE", "/emailcontacts/{arn}", 200] }, () => DeleteEmailContactRequest$, () => DeleteEmailContactResponse$
476
+ ];
477
+ var GetEmailContact$ = [9, n0, _GEC,
478
+ { [_h]: ["GET", "/emailcontacts/{arn}", 200] }, () => GetEmailContactRequest$, () => GetEmailContactResponse$
479
+ ];
480
+ var ListEmailContacts$ = [9, n0, _LEC,
481
+ { [_h]: ["GET", "/emailcontacts", 200] }, () => ListEmailContactsRequest$, () => ListEmailContactsResponse$
482
+ ];
483
+ var ListTagsForResource$ = [9, n0, _LTFR,
484
+ { [_h]: ["GET", "/tags/{arn}", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
485
+ ];
486
+ var SendActivationCode$ = [9, n0, _SAC,
487
+ { [_h]: ["POST", "/2022-10-31/emailcontacts/{arn}/activate/send", 200] }, () => SendActivationCodeRequest$, () => SendActivationCodeResponse$
488
+ ];
489
+ var TagResource$ = [9, n0, _TR,
490
+ { [_h]: ["POST", "/tags/{arn}", 200] }, () => TagResourceRequest$, () => TagResourceResponse$
491
+ ];
492
+ var UntagResource$ = [9, n0, _UR,
493
+ { [_h]: ["DELETE", "/tags/{arn}", 200] }, () => UntagResourceRequest$, () => UntagResourceResponse$
494
+ ];
495
+
496
+ const getRuntimeConfig$1 = (config) => {
497
+ return {
498
+ apiVersion: "2018-05-10",
499
+ base64Decoder: config?.base64Decoder ?? fromBase64,
500
+ base64Encoder: config?.base64Encoder ?? toBase64,
501
+ disableHostPrefix: config?.disableHostPrefix ?? false,
502
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
503
+ extensions: config?.extensions ?? [],
504
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultNotificationsContactsHttpAuthSchemeProvider,
505
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
506
+ {
507
+ schemeId: "aws.auth#sigv4",
508
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
509
+ signer: new AwsSdkSigV4Signer(),
510
+ },
511
+ ],
512
+ logger: config?.logger ?? new NoOpLogger(),
513
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
514
+ protocolSettings: config?.protocolSettings ?? {
515
+ defaultNamespace: "com.amazonaws.notificationscontacts",
516
+ errorTypeRegistries,
517
+ version: "2018-05-10",
518
+ serviceTarget: "NotificationsContacts",
519
+ },
520
+ serviceId: config?.serviceId ?? "NotificationsContacts",
521
+ urlParser: config?.urlParser ?? parseUrl,
522
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
523
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
524
+ };
525
+ };
526
+
527
+ const getRuntimeConfig = (config) => {
528
+ emitWarningIfUnsupportedVersion(process.version);
529
+ const defaultsMode = resolveDefaultsModeConfig(config);
530
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
531
+ const clientSharedValues = getRuntimeConfig$1(config);
532
+ emitWarningIfUnsupportedVersion$1(process.version);
533
+ const loaderConfig = {
534
+ profile: config?.profile,
535
+ logger: clientSharedValues.logger,
536
+ };
537
+ return {
538
+ ...clientSharedValues,
539
+ ...config,
540
+ runtime: "node",
541
+ defaultsMode,
542
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
543
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
544
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
545
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
546
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
547
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
548
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
549
+ retryMode: config?.retryMode ??
550
+ loadConfig({
551
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
552
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
553
+ }, config),
554
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
555
+ streamCollector: config?.streamCollector ?? streamCollector,
556
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
557
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
558
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
559
+ };
560
+ };
561
+
32
562
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
33
563
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
34
564
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -246,17 +776,63 @@ const EmailContactStatus = {
246
776
  INACTIVE: "inactive",
247
777
  };
248
778
 
779
+ exports.AccessDeniedException = AccessDeniedException;
780
+ exports.AccessDeniedException$ = AccessDeniedException$;
781
+ exports.ActivateEmailContact$ = ActivateEmailContact$;
249
782
  exports.ActivateEmailContactCommand = ActivateEmailContactCommand;
783
+ exports.ActivateEmailContactRequest$ = ActivateEmailContactRequest$;
784
+ exports.ActivateEmailContactResponse$ = ActivateEmailContactResponse$;
785
+ exports.ConflictException = ConflictException;
786
+ exports.ConflictException$ = ConflictException$;
787
+ exports.CreateEmailContact$ = CreateEmailContact$;
250
788
  exports.CreateEmailContactCommand = CreateEmailContactCommand;
789
+ exports.CreateEmailContactRequest$ = CreateEmailContactRequest$;
790
+ exports.CreateEmailContactResponse$ = CreateEmailContactResponse$;
791
+ exports.DeleteEmailContact$ = DeleteEmailContact$;
251
792
  exports.DeleteEmailContactCommand = DeleteEmailContactCommand;
793
+ exports.DeleteEmailContactRequest$ = DeleteEmailContactRequest$;
794
+ exports.DeleteEmailContactResponse$ = DeleteEmailContactResponse$;
795
+ exports.EmailContact$ = EmailContact$;
252
796
  exports.EmailContactStatus = EmailContactStatus;
797
+ exports.GetEmailContact$ = GetEmailContact$;
253
798
  exports.GetEmailContactCommand = GetEmailContactCommand;
799
+ exports.GetEmailContactRequest$ = GetEmailContactRequest$;
800
+ exports.GetEmailContactResponse$ = GetEmailContactResponse$;
801
+ exports.InternalServerException = InternalServerException;
802
+ exports.InternalServerException$ = InternalServerException$;
803
+ exports.ListEmailContacts$ = ListEmailContacts$;
254
804
  exports.ListEmailContactsCommand = ListEmailContactsCommand;
805
+ exports.ListEmailContactsRequest$ = ListEmailContactsRequest$;
806
+ exports.ListEmailContactsResponse$ = ListEmailContactsResponse$;
807
+ exports.ListTagsForResource$ = ListTagsForResource$;
255
808
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
809
+ exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
810
+ exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
256
811
  exports.NotificationsContacts = NotificationsContacts;
257
812
  exports.NotificationsContactsClient = NotificationsContactsClient;
813
+ exports.NotificationsContactsServiceException = NotificationsContactsServiceException;
814
+ exports.NotificationsContactsServiceException$ = NotificationsContactsServiceException$;
815
+ exports.ResourceNotFoundException = ResourceNotFoundException;
816
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
817
+ exports.SendActivationCode$ = SendActivationCode$;
258
818
  exports.SendActivationCodeCommand = SendActivationCodeCommand;
819
+ exports.SendActivationCodeRequest$ = SendActivationCodeRequest$;
820
+ exports.SendActivationCodeResponse$ = SendActivationCodeResponse$;
821
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
822
+ exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
823
+ exports.TagResource$ = TagResource$;
259
824
  exports.TagResourceCommand = TagResourceCommand;
825
+ exports.TagResourceRequest$ = TagResourceRequest$;
826
+ exports.TagResourceResponse$ = TagResourceResponse$;
827
+ exports.ThrottlingException = ThrottlingException;
828
+ exports.ThrottlingException$ = ThrottlingException$;
829
+ exports.UntagResource$ = UntagResource$;
260
830
  exports.UntagResourceCommand = UntagResourceCommand;
831
+ exports.UntagResourceRequest$ = UntagResourceRequest$;
832
+ exports.UntagResourceResponse$ = UntagResourceResponse$;
833
+ exports.ValidationException = ValidationException;
834
+ exports.ValidationException$ = ValidationException$;
835
+ exports.ValidationExceptionField$ = ValidationExceptionField$;
261
836
  exports.ValidationExceptionReason = ValidationExceptionReason;
837
+ exports.errorTypeRegistries = errorTypeRegistries;
262
838
  exports.paginateListEmailContacts = paginateListEmailContacts;
@@ -14,7 +14,7 @@ export declare const getRuntimeConfig: (config: NotificationsContactsClientConfi
14
14
  requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
15
15
  retryMode: string | import("@smithy/types").Provider<string>;
16
16
  sha256: import("@smithy/types").HashConstructor;
17
- streamCollector: import("@smithy/types").StreamCollector;
17
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
18
18
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
19
19
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
20
20
  cacheMiddleware?: boolean | undefined;
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: NotificationsContactsClientConfi
15
15
  requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
16
16
  retryMode: string | import("@smithy/types").Provider<string>;
17
17
  sha256: import("@smithy/types").HashConstructor;
18
- streamCollector: import("@smithy/types").StreamCollector;
18
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
19
19
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
20
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
21
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: NotificationsContactsClientConfi
15
15
  apiVersion: string;
16
16
  urlParser: import("@smithy/types").UrlParser;
17
17
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
18
- streamCollector: import("@smithy/types").StreamCollector;
18
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
19
19
  base64Decoder: import("@smithy/types").Decoder;
20
20
  base64Encoder: (_input: Uint8Array | string) => string;
21
21
  utf8Decoder: import("@smithy/types").Decoder;
@@ -23,7 +23,13 @@ export declare const getRuntimeConfig: (
23
23
  | RequestHandler;
24
24
  retryMode: string | import("@smithy/types").Provider<string>;
25
25
  sha256: import("@smithy/types").HashConstructor;
26
- streamCollector: import("@smithy/types").StreamCollector;
26
+ streamCollector: (
27
+ stream:
28
+ | import("stream").Readable
29
+ | import("stream/web").ReadableStream
30
+ | ReadableStream
31
+ | Blob
32
+ ) => Promise<Uint8Array>;
27
33
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
28
34
  (boolean | import("@smithy/types").Provider<boolean | undefined>);
29
35
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &