@aws-sdk/client-notificationscontacts 3.891.0 → 3.894.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.
@@ -1,160 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListEmailContactsResponseFilterSensitiveLog = exports.GetEmailContactResponseFilterSensitiveLog = exports.EmailContactFilterSensitiveLog = exports.CreateEmailContactRequestFilterSensitiveLog = exports.ActivateEmailContactRequestFilterSensitiveLog = exports.EmailContactStatus = exports.ServiceQuotaExceededException = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
4
- const smithy_client_1 = require("@smithy/smithy-client");
5
- const NotificationsContactsServiceException_1 = require("./NotificationsContactsServiceException");
6
- class AccessDeniedException extends NotificationsContactsServiceException_1.NotificationsContactsServiceException {
7
- name = "AccessDeniedException";
8
- $fault = "client";
9
- constructor(opts) {
10
- super({
11
- name: "AccessDeniedException",
12
- $fault: "client",
13
- ...opts,
14
- });
15
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
16
- }
17
- }
18
- exports.AccessDeniedException = AccessDeniedException;
19
- class ConflictException extends NotificationsContactsServiceException_1.NotificationsContactsServiceException {
20
- name = "ConflictException";
21
- $fault = "client";
22
- resourceId;
23
- resourceType;
24
- constructor(opts) {
25
- super({
26
- name: "ConflictException",
27
- $fault: "client",
28
- ...opts,
29
- });
30
- Object.setPrototypeOf(this, ConflictException.prototype);
31
- this.resourceId = opts.resourceId;
32
- this.resourceType = opts.resourceType;
33
- }
34
- }
35
- exports.ConflictException = ConflictException;
36
- class InternalServerException extends NotificationsContactsServiceException_1.NotificationsContactsServiceException {
37
- name = "InternalServerException";
38
- $fault = "server";
39
- $retryable = {};
40
- constructor(opts) {
41
- super({
42
- name: "InternalServerException",
43
- $fault: "server",
44
- ...opts,
45
- });
46
- Object.setPrototypeOf(this, InternalServerException.prototype);
47
- }
48
- }
49
- exports.InternalServerException = InternalServerException;
50
- class ResourceNotFoundException extends NotificationsContactsServiceException_1.NotificationsContactsServiceException {
51
- name = "ResourceNotFoundException";
52
- $fault = "client";
53
- resourceId;
54
- resourceType;
55
- constructor(opts) {
56
- super({
57
- name: "ResourceNotFoundException",
58
- $fault: "client",
59
- ...opts,
60
- });
61
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
62
- this.resourceId = opts.resourceId;
63
- this.resourceType = opts.resourceType;
64
- }
65
- }
66
- exports.ResourceNotFoundException = ResourceNotFoundException;
67
- class ThrottlingException extends NotificationsContactsServiceException_1.NotificationsContactsServiceException {
68
- name = "ThrottlingException";
69
- $fault = "client";
70
- $retryable = {
71
- throttling: true,
72
- };
73
- serviceCode;
74
- quotaCode;
75
- retryAfterSeconds;
76
- constructor(opts) {
77
- super({
78
- name: "ThrottlingException",
79
- $fault: "client",
80
- ...opts,
81
- });
82
- Object.setPrototypeOf(this, ThrottlingException.prototype);
83
- this.serviceCode = opts.serviceCode;
84
- this.quotaCode = opts.quotaCode;
85
- this.retryAfterSeconds = opts.retryAfterSeconds;
86
- }
87
- }
88
- exports.ThrottlingException = ThrottlingException;
89
- exports.ValidationExceptionReason = {
90
- FIELD_VALIDATION_FAILED: "fieldValidationFailed",
91
- OTHER: "other",
92
- };
93
- class ValidationException extends NotificationsContactsServiceException_1.NotificationsContactsServiceException {
94
- name = "ValidationException";
95
- $fault = "client";
96
- reason;
97
- fieldList;
98
- constructor(opts) {
99
- super({
100
- name: "ValidationException",
101
- $fault: "client",
102
- ...opts,
103
- });
104
- Object.setPrototypeOf(this, ValidationException.prototype);
105
- this.reason = opts.reason;
106
- this.fieldList = opts.fieldList;
107
- }
108
- }
109
- exports.ValidationException = ValidationException;
110
- class ServiceQuotaExceededException extends NotificationsContactsServiceException_1.NotificationsContactsServiceException {
111
- name = "ServiceQuotaExceededException";
112
- $fault = "client";
113
- resourceId;
114
- resourceType;
115
- serviceCode;
116
- quotaCode;
117
- constructor(opts) {
118
- super({
119
- name: "ServiceQuotaExceededException",
120
- $fault: "client",
121
- ...opts,
122
- });
123
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
124
- this.resourceId = opts.resourceId;
125
- this.resourceType = opts.resourceType;
126
- this.serviceCode = opts.serviceCode;
127
- this.quotaCode = opts.quotaCode;
128
- }
129
- }
130
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
131
- exports.EmailContactStatus = {
132
- ACTIVE: "active",
133
- INACTIVE: "inactive",
134
- };
135
- const ActivateEmailContactRequestFilterSensitiveLog = (obj) => ({
136
- ...obj,
137
- ...(obj.code && { code: smithy_client_1.SENSITIVE_STRING }),
138
- });
139
- exports.ActivateEmailContactRequestFilterSensitiveLog = ActivateEmailContactRequestFilterSensitiveLog;
140
- const CreateEmailContactRequestFilterSensitiveLog = (obj) => ({
141
- ...obj,
142
- ...(obj.name && { name: smithy_client_1.SENSITIVE_STRING }),
143
- });
144
- exports.CreateEmailContactRequestFilterSensitiveLog = CreateEmailContactRequestFilterSensitiveLog;
145
- const EmailContactFilterSensitiveLog = (obj) => ({
146
- ...obj,
147
- ...(obj.name && { name: smithy_client_1.SENSITIVE_STRING }),
148
- ...(obj.address && { address: smithy_client_1.SENSITIVE_STRING }),
149
- });
150
- exports.EmailContactFilterSensitiveLog = EmailContactFilterSensitiveLog;
151
- const GetEmailContactResponseFilterSensitiveLog = (obj) => ({
152
- ...obj,
153
- ...(obj.emailContact && { emailContact: (0, exports.EmailContactFilterSensitiveLog)(obj.emailContact) }),
154
- });
155
- exports.GetEmailContactResponseFilterSensitiveLog = GetEmailContactResponseFilterSensitiveLog;
156
- const ListEmailContactsResponseFilterSensitiveLog = (obj) => ({
157
- ...obj,
158
- ...(obj.emailContacts && { emailContacts: obj.emailContacts.map((item) => (0, exports.EmailContactFilterSensitiveLog)(item)) }),
159
- });
160
- exports.ListEmailContactsResponseFilterSensitiveLog = ListEmailContactsResponseFilterSensitiveLog;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.paginateListEmailContacts = void 0;
4
- const core_1 = require("@smithy/core");
5
- const ListEmailContactsCommand_1 = require("../commands/ListEmailContactsCommand");
6
- const NotificationsContactsClient_1 = require("../NotificationsContactsClient");
7
- exports.paginateListEmailContacts = (0, core_1.createPaginator)(NotificationsContactsClient_1.NotificationsContactsClient, ListEmailContactsCommand_1.ListEmailContactsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./Interfaces"), exports);
5
- tslib_1.__exportStar(require("./ListEmailContactsPaginator"), exports);
@@ -1,405 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SendActivationCodeCommand = exports.de_ListTagsForResourceCommand = exports.de_ListEmailContactsCommand = exports.de_GetEmailContactCommand = exports.de_DeleteEmailContactCommand = exports.de_CreateEmailContactCommand = exports.de_ActivateEmailContactCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SendActivationCodeCommand = exports.se_ListTagsForResourceCommand = exports.se_ListEmailContactsCommand = exports.se_GetEmailContactCommand = exports.se_DeleteEmailContactCommand = exports.se_CreateEmailContactCommand = exports.se_ActivateEmailContactCommand = void 0;
4
- const core_1 = require("@aws-sdk/core");
5
- const core_2 = require("@smithy/core");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- const models_0_1 = require("../models/models_0");
8
- const NotificationsContactsServiceException_1 = require("../models/NotificationsContactsServiceException");
9
- const se_ActivateEmailContactCommand = async (input, context) => {
10
- const b = (0, core_2.requestBuilder)(input, context);
11
- const headers = {};
12
- b.bp("/emailcontacts/{arn}/activate/{code}");
13
- b.p("arn", () => input.arn, "{arn}", false);
14
- b.p("code", () => input.code, "{code}", false);
15
- let body;
16
- b.m("PUT").h(headers).b(body);
17
- return b.build();
18
- };
19
- exports.se_ActivateEmailContactCommand = se_ActivateEmailContactCommand;
20
- const se_CreateEmailContactCommand = async (input, context) => {
21
- const b = (0, core_2.requestBuilder)(input, context);
22
- const headers = {
23
- "content-type": "application/json",
24
- };
25
- b.bp("/2022-09-19/emailcontacts");
26
- let body;
27
- body = JSON.stringify((0, smithy_client_1.take)(input, {
28
- emailAddress: [],
29
- name: [],
30
- tags: (_) => (0, smithy_client_1._json)(_),
31
- }));
32
- b.m("POST").h(headers).b(body);
33
- return b.build();
34
- };
35
- exports.se_CreateEmailContactCommand = se_CreateEmailContactCommand;
36
- const se_DeleteEmailContactCommand = async (input, context) => {
37
- const b = (0, core_2.requestBuilder)(input, context);
38
- const headers = {};
39
- b.bp("/emailcontacts/{arn}");
40
- b.p("arn", () => input.arn, "{arn}", false);
41
- let body;
42
- b.m("DELETE").h(headers).b(body);
43
- return b.build();
44
- };
45
- exports.se_DeleteEmailContactCommand = se_DeleteEmailContactCommand;
46
- const se_GetEmailContactCommand = async (input, context) => {
47
- const b = (0, core_2.requestBuilder)(input, context);
48
- const headers = {};
49
- b.bp("/emailcontacts/{arn}");
50
- b.p("arn", () => input.arn, "{arn}", false);
51
- let body;
52
- b.m("GET").h(headers).b(body);
53
- return b.build();
54
- };
55
- exports.se_GetEmailContactCommand = se_GetEmailContactCommand;
56
- const se_ListEmailContactsCommand = async (input, context) => {
57
- const b = (0, core_2.requestBuilder)(input, context);
58
- const headers = {};
59
- b.bp("/emailcontacts");
60
- const query = (0, smithy_client_1.map)({
61
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
62
- [_nT]: [, input[_nT]],
63
- });
64
- let body;
65
- b.m("GET").h(headers).q(query).b(body);
66
- return b.build();
67
- };
68
- exports.se_ListEmailContactsCommand = se_ListEmailContactsCommand;
69
- const se_ListTagsForResourceCommand = async (input, context) => {
70
- const b = (0, core_2.requestBuilder)(input, context);
71
- const headers = {};
72
- b.bp("/tags/{arn}");
73
- b.p("arn", () => input.arn, "{arn}", false);
74
- let body;
75
- b.m("GET").h(headers).b(body);
76
- return b.build();
77
- };
78
- exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
79
- const se_SendActivationCodeCommand = async (input, context) => {
80
- const b = (0, core_2.requestBuilder)(input, context);
81
- const headers = {};
82
- b.bp("/2022-10-31/emailcontacts/{arn}/activate/send");
83
- b.p("arn", () => input.arn, "{arn}", false);
84
- let body;
85
- b.m("POST").h(headers).b(body);
86
- return b.build();
87
- };
88
- exports.se_SendActivationCodeCommand = se_SendActivationCodeCommand;
89
- const se_TagResourceCommand = async (input, context) => {
90
- const b = (0, core_2.requestBuilder)(input, context);
91
- const headers = {
92
- "content-type": "application/json",
93
- };
94
- b.bp("/tags/{arn}");
95
- b.p("arn", () => input.arn, "{arn}", false);
96
- let body;
97
- body = JSON.stringify((0, smithy_client_1.take)(input, {
98
- tags: (_) => (0, smithy_client_1._json)(_),
99
- }));
100
- b.m("POST").h(headers).b(body);
101
- return b.build();
102
- };
103
- exports.se_TagResourceCommand = se_TagResourceCommand;
104
- const se_UntagResourceCommand = async (input, context) => {
105
- const b = (0, core_2.requestBuilder)(input, context);
106
- const headers = {};
107
- b.bp("/tags/{arn}");
108
- b.p("arn", () => input.arn, "{arn}", false);
109
- const query = (0, smithy_client_1.map)({
110
- [_tK]: [(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
111
- });
112
- let body;
113
- b.m("DELETE").h(headers).q(query).b(body);
114
- return b.build();
115
- };
116
- exports.se_UntagResourceCommand = se_UntagResourceCommand;
117
- const de_ActivateEmailContactCommand = async (output, context) => {
118
- if (output.statusCode !== 200 && output.statusCode >= 300) {
119
- return de_CommandError(output, context);
120
- }
121
- const contents = (0, smithy_client_1.map)({
122
- $metadata: deserializeMetadata(output),
123
- });
124
- await (0, smithy_client_1.collectBody)(output.body, context);
125
- return contents;
126
- };
127
- exports.de_ActivateEmailContactCommand = de_ActivateEmailContactCommand;
128
- const de_CreateEmailContactCommand = async (output, context) => {
129
- if (output.statusCode !== 201 && output.statusCode >= 300) {
130
- return de_CommandError(output, context);
131
- }
132
- const contents = (0, smithy_client_1.map)({
133
- $metadata: deserializeMetadata(output),
134
- });
135
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
136
- const doc = (0, smithy_client_1.take)(data, {
137
- arn: smithy_client_1.expectString,
138
- });
139
- Object.assign(contents, doc);
140
- return contents;
141
- };
142
- exports.de_CreateEmailContactCommand = de_CreateEmailContactCommand;
143
- const de_DeleteEmailContactCommand = async (output, context) => {
144
- if (output.statusCode !== 200 && output.statusCode >= 300) {
145
- return de_CommandError(output, context);
146
- }
147
- const contents = (0, smithy_client_1.map)({
148
- $metadata: deserializeMetadata(output),
149
- });
150
- await (0, smithy_client_1.collectBody)(output.body, context);
151
- return contents;
152
- };
153
- exports.de_DeleteEmailContactCommand = de_DeleteEmailContactCommand;
154
- const de_GetEmailContactCommand = async (output, context) => {
155
- if (output.statusCode !== 200 && output.statusCode >= 300) {
156
- return de_CommandError(output, context);
157
- }
158
- const contents = (0, smithy_client_1.map)({
159
- $metadata: deserializeMetadata(output),
160
- });
161
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
162
- const doc = (0, smithy_client_1.take)(data, {
163
- emailContact: (_) => de_EmailContact(_, context),
164
- });
165
- Object.assign(contents, doc);
166
- return contents;
167
- };
168
- exports.de_GetEmailContactCommand = de_GetEmailContactCommand;
169
- const de_ListEmailContactsCommand = async (output, context) => {
170
- if (output.statusCode !== 200 && output.statusCode >= 300) {
171
- return de_CommandError(output, context);
172
- }
173
- const contents = (0, smithy_client_1.map)({
174
- $metadata: deserializeMetadata(output),
175
- });
176
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
177
- const doc = (0, smithy_client_1.take)(data, {
178
- emailContacts: (_) => de_EmailContacts(_, context),
179
- nextToken: smithy_client_1.expectString,
180
- });
181
- Object.assign(contents, doc);
182
- return contents;
183
- };
184
- exports.de_ListEmailContactsCommand = de_ListEmailContactsCommand;
185
- const de_ListTagsForResourceCommand = async (output, context) => {
186
- if (output.statusCode !== 200 && output.statusCode >= 300) {
187
- return de_CommandError(output, context);
188
- }
189
- const contents = (0, smithy_client_1.map)({
190
- $metadata: deserializeMetadata(output),
191
- });
192
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
193
- const doc = (0, smithy_client_1.take)(data, {
194
- tags: smithy_client_1._json,
195
- });
196
- Object.assign(contents, doc);
197
- return contents;
198
- };
199
- exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
200
- const de_SendActivationCodeCommand = async (output, context) => {
201
- if (output.statusCode !== 200 && output.statusCode >= 300) {
202
- return de_CommandError(output, context);
203
- }
204
- const contents = (0, smithy_client_1.map)({
205
- $metadata: deserializeMetadata(output),
206
- });
207
- await (0, smithy_client_1.collectBody)(output.body, context);
208
- return contents;
209
- };
210
- exports.de_SendActivationCodeCommand = de_SendActivationCodeCommand;
211
- const de_TagResourceCommand = async (output, context) => {
212
- if (output.statusCode !== 200 && output.statusCode >= 300) {
213
- return de_CommandError(output, context);
214
- }
215
- const contents = (0, smithy_client_1.map)({
216
- $metadata: deserializeMetadata(output),
217
- });
218
- await (0, smithy_client_1.collectBody)(output.body, context);
219
- return contents;
220
- };
221
- exports.de_TagResourceCommand = de_TagResourceCommand;
222
- const de_UntagResourceCommand = async (output, context) => {
223
- if (output.statusCode !== 200 && output.statusCode >= 300) {
224
- return de_CommandError(output, context);
225
- }
226
- const contents = (0, smithy_client_1.map)({
227
- $metadata: deserializeMetadata(output),
228
- });
229
- await (0, smithy_client_1.collectBody)(output.body, context);
230
- return contents;
231
- };
232
- exports.de_UntagResourceCommand = de_UntagResourceCommand;
233
- const de_CommandError = async (output, context) => {
234
- const parsedOutput = {
235
- ...output,
236
- body: await (0, core_1.parseJsonErrorBody)(output.body, context),
237
- };
238
- const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
239
- switch (errorCode) {
240
- case "AccessDeniedException":
241
- case "com.amazonaws.notificationscontacts#AccessDeniedException":
242
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
243
- case "ConflictException":
244
- case "com.amazonaws.notificationscontacts#ConflictException":
245
- throw await de_ConflictExceptionRes(parsedOutput, context);
246
- case "InternalServerException":
247
- case "com.amazonaws.notificationscontacts#InternalServerException":
248
- throw await de_InternalServerExceptionRes(parsedOutput, context);
249
- case "ResourceNotFoundException":
250
- case "com.amazonaws.notificationscontacts#ResourceNotFoundException":
251
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
252
- case "ThrottlingException":
253
- case "com.amazonaws.notificationscontacts#ThrottlingException":
254
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
255
- case "ValidationException":
256
- case "com.amazonaws.notificationscontacts#ValidationException":
257
- throw await de_ValidationExceptionRes(parsedOutput, context);
258
- case "ServiceQuotaExceededException":
259
- case "com.amazonaws.notificationscontacts#ServiceQuotaExceededException":
260
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
261
- default:
262
- const parsedBody = parsedOutput.body;
263
- return throwDefaultError({
264
- output,
265
- parsedBody,
266
- errorCode,
267
- });
268
- }
269
- };
270
- const throwDefaultError = (0, smithy_client_1.withBaseException)(NotificationsContactsServiceException_1.NotificationsContactsServiceException);
271
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
272
- const contents = (0, smithy_client_1.map)({});
273
- const data = parsedOutput.body;
274
- const doc = (0, smithy_client_1.take)(data, {
275
- message: smithy_client_1.expectString,
276
- });
277
- Object.assign(contents, doc);
278
- const exception = new models_0_1.AccessDeniedException({
279
- $metadata: deserializeMetadata(parsedOutput),
280
- ...contents,
281
- });
282
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
283
- };
284
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
285
- const contents = (0, smithy_client_1.map)({});
286
- const data = parsedOutput.body;
287
- const doc = (0, smithy_client_1.take)(data, {
288
- message: smithy_client_1.expectString,
289
- resourceId: smithy_client_1.expectString,
290
- resourceType: smithy_client_1.expectString,
291
- });
292
- Object.assign(contents, doc);
293
- const exception = new models_0_1.ConflictException({
294
- $metadata: deserializeMetadata(parsedOutput),
295
- ...contents,
296
- });
297
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
298
- };
299
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
300
- const contents = (0, smithy_client_1.map)({});
301
- const data = parsedOutput.body;
302
- const doc = (0, smithy_client_1.take)(data, {
303
- message: smithy_client_1.expectString,
304
- });
305
- Object.assign(contents, doc);
306
- const exception = new models_0_1.InternalServerException({
307
- $metadata: deserializeMetadata(parsedOutput),
308
- ...contents,
309
- });
310
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
311
- };
312
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
313
- const contents = (0, smithy_client_1.map)({});
314
- const data = parsedOutput.body;
315
- const doc = (0, smithy_client_1.take)(data, {
316
- message: smithy_client_1.expectString,
317
- resourceId: smithy_client_1.expectString,
318
- resourceType: smithy_client_1.expectString,
319
- });
320
- Object.assign(contents, doc);
321
- const exception = new models_0_1.ResourceNotFoundException({
322
- $metadata: deserializeMetadata(parsedOutput),
323
- ...contents,
324
- });
325
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
326
- };
327
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
328
- const contents = (0, smithy_client_1.map)({});
329
- const data = parsedOutput.body;
330
- const doc = (0, smithy_client_1.take)(data, {
331
- message: smithy_client_1.expectString,
332
- quotaCode: smithy_client_1.expectString,
333
- resourceId: smithy_client_1.expectString,
334
- resourceType: smithy_client_1.expectString,
335
- serviceCode: smithy_client_1.expectString,
336
- });
337
- Object.assign(contents, doc);
338
- const exception = new models_0_1.ServiceQuotaExceededException({
339
- $metadata: deserializeMetadata(parsedOutput),
340
- ...contents,
341
- });
342
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
343
- };
344
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
345
- const contents = (0, smithy_client_1.map)({
346
- [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
347
- });
348
- const data = parsedOutput.body;
349
- const doc = (0, smithy_client_1.take)(data, {
350
- message: smithy_client_1.expectString,
351
- quotaCode: smithy_client_1.expectString,
352
- serviceCode: smithy_client_1.expectString,
353
- });
354
- Object.assign(contents, doc);
355
- const exception = new models_0_1.ThrottlingException({
356
- $metadata: deserializeMetadata(parsedOutput),
357
- ...contents,
358
- });
359
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
360
- };
361
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
362
- const contents = (0, smithy_client_1.map)({});
363
- const data = parsedOutput.body;
364
- const doc = (0, smithy_client_1.take)(data, {
365
- fieldList: smithy_client_1._json,
366
- message: smithy_client_1.expectString,
367
- reason: smithy_client_1.expectString,
368
- });
369
- Object.assign(contents, doc);
370
- const exception = new models_0_1.ValidationException({
371
- $metadata: deserializeMetadata(parsedOutput),
372
- ...contents,
373
- });
374
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
375
- };
376
- const de_EmailContact = (output, context) => {
377
- return (0, smithy_client_1.take)(output, {
378
- address: smithy_client_1.expectString,
379
- arn: smithy_client_1.expectString,
380
- creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
381
- name: smithy_client_1.expectString,
382
- status: smithy_client_1.expectString,
383
- updateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
384
- });
385
- };
386
- const de_EmailContacts = (output, context) => {
387
- const retVal = (output || [])
388
- .filter((e) => e != null)
389
- .map((entry) => {
390
- return de_EmailContact(entry, context);
391
- });
392
- return retVal;
393
- };
394
- const deserializeMetadata = (output) => ({
395
- httpStatusCode: output.statusCode,
396
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
397
- extendedRequestId: output.headers["x-amz-id-2"],
398
- cfId: output.headers["x-amz-cf-id"],
399
- });
400
- const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
401
- const _mR = "maxResults";
402
- const _nT = "nextToken";
403
- const _rAS = "retryAfterSeconds";
404
- const _ra = "retry-after";
405
- const _tK = "tagKeys";
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveRuntimeExtensions = void 0;
4
- const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
5
- const protocol_http_1 = require("@smithy/protocol-http");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- const httpAuthExtensionConfiguration_1 = require("./auth/httpAuthExtensionConfiguration");
8
- const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
9
- const extensionConfiguration = Object.assign((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig), (0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig));
10
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
11
- return Object.assign(runtimeConfig, (0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), (0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration));
12
- };
13
- exports.resolveRuntimeExtensions = resolveRuntimeExtensions;