@aws-sdk/client-socialmessaging 3.848.0 → 3.855.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/README.md +64 -0
  2. package/dist-cjs/SocialMessaging.js +16 -0
  3. package/dist-cjs/commands/CreateWhatsAppMessageTemplateCommand.js +26 -0
  4. package/dist-cjs/commands/CreateWhatsAppMessageTemplateFromLibraryCommand.js +26 -0
  5. package/dist-cjs/commands/CreateWhatsAppMessageTemplateMediaCommand.js +27 -0
  6. package/dist-cjs/commands/DeleteWhatsAppMessageTemplateCommand.js +26 -0
  7. package/dist-cjs/commands/GetWhatsAppMessageTemplateCommand.js +26 -0
  8. package/dist-cjs/commands/ListWhatsAppMessageTemplatesCommand.js +26 -0
  9. package/dist-cjs/commands/ListWhatsAppTemplateLibraryCommand.js +26 -0
  10. package/dist-cjs/commands/UpdateWhatsAppMessageTemplateCommand.js +26 -0
  11. package/dist-cjs/commands/index.js +8 -0
  12. package/dist-cjs/models/models_0.js +19 -1
  13. package/dist-cjs/pagination/ListWhatsAppMessageTemplatesPaginator.js +7 -0
  14. package/dist-cjs/pagination/ListWhatsAppTemplateLibraryPaginator.js +7 -0
  15. package/dist-cjs/pagination/index.js +2 -0
  16. package/dist-cjs/protocols/Aws_restJson1.js +265 -4
  17. package/dist-es/SocialMessaging.js +16 -0
  18. package/dist-es/commands/CreateWhatsAppMessageTemplateCommand.js +22 -0
  19. package/dist-es/commands/CreateWhatsAppMessageTemplateFromLibraryCommand.js +22 -0
  20. package/dist-es/commands/CreateWhatsAppMessageTemplateMediaCommand.js +23 -0
  21. package/dist-es/commands/DeleteWhatsAppMessageTemplateCommand.js +22 -0
  22. package/dist-es/commands/GetWhatsAppMessageTemplateCommand.js +22 -0
  23. package/dist-es/commands/ListWhatsAppMessageTemplatesCommand.js +22 -0
  24. package/dist-es/commands/ListWhatsAppTemplateLibraryCommand.js +22 -0
  25. package/dist-es/commands/UpdateWhatsAppMessageTemplateCommand.js +22 -0
  26. package/dist-es/commands/index.js +8 -0
  27. package/dist-es/models/models_0.js +16 -0
  28. package/dist-es/pagination/ListWhatsAppMessageTemplatesPaginator.js +4 -0
  29. package/dist-es/pagination/ListWhatsAppTemplateLibraryPaginator.js +4 -0
  30. package/dist-es/pagination/index.js +2 -0
  31. package/dist-es/protocols/Aws_restJson1.js +249 -4
  32. package/dist-types/SocialMessaging.d.ts +56 -0
  33. package/dist-types/SocialMessagingClient.d.ts +10 -2
  34. package/dist-types/commands/AssociateWhatsAppBusinessAccountCommand.d.ts +5 -0
  35. package/dist-types/commands/CreateWhatsAppMessageTemplateCommand.d.ts +97 -0
  36. package/dist-types/commands/CreateWhatsAppMessageTemplateFromLibraryCommand.d.ts +125 -0
  37. package/dist-types/commands/CreateWhatsAppMessageTemplateMediaCommand.d.ts +98 -0
  38. package/dist-types/commands/DeleteWhatsAppMessageTemplateCommand.d.ts +95 -0
  39. package/dist-types/commands/GetLinkedWhatsAppBusinessAccountCommand.d.ts +1 -0
  40. package/dist-types/commands/GetLinkedWhatsAppBusinessAccountPhoneNumberCommand.d.ts +1 -0
  41. package/dist-types/commands/GetWhatsAppMessageTemplateCommand.d.ts +95 -0
  42. package/dist-types/commands/ListWhatsAppMessageTemplatesCommand.d.ts +106 -0
  43. package/dist-types/commands/ListWhatsAppTemplateLibraryCommand.d.ts +129 -0
  44. package/dist-types/commands/UpdateWhatsAppMessageTemplateCommand.d.ts +95 -0
  45. package/dist-types/commands/index.d.ts +8 -0
  46. package/dist-types/models/models_0.d.ts +550 -28
  47. package/dist-types/pagination/ListWhatsAppMessageTemplatesPaginator.d.ts +7 -0
  48. package/dist-types/pagination/ListWhatsAppTemplateLibraryPaginator.d.ts +7 -0
  49. package/dist-types/pagination/index.d.ts +2 -0
  50. package/dist-types/protocols/Aws_restJson1.d.ts +72 -0
  51. package/dist-types/ts3.4/SocialMessaging.d.ts +148 -0
  52. package/dist-types/ts3.4/SocialMessagingClient.d.ts +50 -2
  53. package/dist-types/ts3.4/commands/CreateWhatsAppMessageTemplateCommand.d.ts +51 -0
  54. package/dist-types/ts3.4/commands/CreateWhatsAppMessageTemplateFromLibraryCommand.d.ts +51 -0
  55. package/dist-types/ts3.4/commands/CreateWhatsAppMessageTemplateMediaCommand.d.ts +51 -0
  56. package/dist-types/ts3.4/commands/DeleteWhatsAppMessageTemplateCommand.d.ts +51 -0
  57. package/dist-types/ts3.4/commands/GetWhatsAppMessageTemplateCommand.d.ts +51 -0
  58. package/dist-types/ts3.4/commands/ListWhatsAppMessageTemplatesCommand.d.ts +51 -0
  59. package/dist-types/ts3.4/commands/ListWhatsAppTemplateLibraryCommand.d.ts +51 -0
  60. package/dist-types/ts3.4/commands/UpdateWhatsAppMessageTemplateCommand.d.ts +51 -0
  61. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  62. package/dist-types/ts3.4/models/models_0.d.ts +139 -9
  63. package/dist-types/ts3.4/pagination/ListWhatsAppMessageTemplatesPaginator.d.ts +11 -0
  64. package/dist-types/ts3.4/pagination/ListWhatsAppTemplateLibraryPaginator.d.ts +11 -0
  65. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  66. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +96 -0
  67. package/package.json +5 -5
@@ -53,6 +53,18 @@ export class InvalidParametersException extends __BaseException {
53
53
  Object.setPrototypeOf(this, InvalidParametersException.prototype);
54
54
  }
55
55
  }
56
+ export class LimitExceededException extends __BaseException {
57
+ name = "LimitExceededException";
58
+ $fault = "client";
59
+ constructor(opts) {
60
+ super({
61
+ name: "LimitExceededException",
62
+ $fault: "client",
63
+ ...opts,
64
+ });
65
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
66
+ }
67
+ }
56
68
  export class ThrottledRequestException extends __BaseException {
57
69
  name = "ThrottledRequestException";
58
70
  $fault = "client";
@@ -133,6 +145,10 @@ export const AssociateWhatsAppBusinessAccountOutputFilterSensitiveLog = (obj) =>
133
145
  export const S3FileFilterSensitiveLog = (obj) => ({
134
146
  ...obj,
135
147
  });
148
+ export const CreateWhatsAppMessageTemplateMediaInputFilterSensitiveLog = (obj) => ({
149
+ ...obj,
150
+ ...(obj.sourceS3File && { sourceS3File: SENSITIVE_STRING }),
151
+ });
136
152
  export const S3PresignedUrlFilterSensitiveLog = (obj) => ({
137
153
  ...obj,
138
154
  });
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListWhatsAppMessageTemplatesCommand, } from "../commands/ListWhatsAppMessageTemplatesCommand";
3
+ import { SocialMessagingClient } from "../SocialMessagingClient";
4
+ export const paginateListWhatsAppMessageTemplates = createPaginator(SocialMessagingClient, ListWhatsAppMessageTemplatesCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListWhatsAppTemplateLibraryCommand, } from "../commands/ListWhatsAppTemplateLibraryCommand";
3
+ import { SocialMessagingClient } from "../SocialMessagingClient";
4
+ export const paginateListWhatsAppTemplateLibrary = createPaginator(SocialMessagingClient, ListWhatsAppTemplateLibraryCommand, "nextToken", "nextToken", "maxResults");
@@ -1,2 +1,4 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListLinkedWhatsAppBusinessAccountsPaginator";
3
+ export * from "./ListWhatsAppMessageTemplatesPaginator";
4
+ export * from "./ListWhatsAppTemplateLibraryPaginator";
@@ -1,7 +1,7 @@
1
1
  import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
- import { AccessDeniedByMetaException, AccessDeniedException, DependencyException, InternalServiceException, InvalidParametersException, ResourceNotFoundException, ThrottledRequestException, ValidationException, } from "../models/models_0";
4
+ import { AccessDeniedByMetaException, AccessDeniedException, DependencyException, InternalServiceException, InvalidParametersException, LimitExceededException, ResourceNotFoundException, ThrottledRequestException, ValidationException, } from "../models/models_0";
5
5
  import { SocialMessagingServiceException as __BaseException } from "../models/SocialMessagingServiceException";
6
6
  export const se_AssociateWhatsAppBusinessAccountCommand = async (input, context) => {
7
7
  const b = rb(input, context);
@@ -17,6 +17,48 @@ export const se_AssociateWhatsAppBusinessAccountCommand = async (input, context)
17
17
  b.m("POST").h(headers).b(body);
18
18
  return b.build();
19
19
  };
20
+ export const se_CreateWhatsAppMessageTemplateCommand = async (input, context) => {
21
+ const b = rb(input, context);
22
+ const headers = {
23
+ "content-type": "application/json",
24
+ };
25
+ b.bp("/v1/whatsapp/template/put");
26
+ let body;
27
+ body = JSON.stringify(take(input, {
28
+ id: [],
29
+ templateDefinition: (_) => context.base64Encoder(_),
30
+ }));
31
+ b.m("POST").h(headers).b(body);
32
+ return b.build();
33
+ };
34
+ export const se_CreateWhatsAppMessageTemplateFromLibraryCommand = async (input, context) => {
35
+ const b = rb(input, context);
36
+ const headers = {
37
+ "content-type": "application/json",
38
+ };
39
+ b.bp("/v1/whatsapp/template/create");
40
+ let body;
41
+ body = JSON.stringify(take(input, {
42
+ id: [],
43
+ metaLibraryTemplate: (_) => _json(_),
44
+ }));
45
+ b.m("POST").h(headers).b(body);
46
+ return b.build();
47
+ };
48
+ export const se_CreateWhatsAppMessageTemplateMediaCommand = async (input, context) => {
49
+ const b = rb(input, context);
50
+ const headers = {
51
+ "content-type": "application/json",
52
+ };
53
+ b.bp("/v1/whatsapp/template/media");
54
+ let body;
55
+ body = JSON.stringify(take(input, {
56
+ id: [],
57
+ sourceS3File: (_) => _json(_),
58
+ }));
59
+ b.m("POST").h(headers).b(body);
60
+ return b.build();
61
+ };
20
62
  export const se_DeleteWhatsAppMessageMediaCommand = async (input, context) => {
21
63
  const b = rb(input, context);
22
64
  const headers = {};
@@ -29,6 +71,20 @@ export const se_DeleteWhatsAppMessageMediaCommand = async (input, context) => {
29
71
  b.m("DELETE").h(headers).q(query).b(body);
30
72
  return b.build();
31
73
  };
74
+ export const se_DeleteWhatsAppMessageTemplateCommand = async (input, context) => {
75
+ const b = rb(input, context);
76
+ const headers = {};
77
+ b.bp("/v1/whatsapp/template");
78
+ const query = map({
79
+ [_mTI]: [, input[_mTI]],
80
+ [_dAT]: [() => input.deleteAllLanguages !== void 0, () => input[_dAL].toString()],
81
+ [_i]: [, __expectNonNull(input[_i], `id`)],
82
+ [_tN]: [, __expectNonNull(input[_tN], `templateName`)],
83
+ });
84
+ let body;
85
+ b.m("DELETE").h(headers).q(query).b(body);
86
+ return b.build();
87
+ };
32
88
  export const se_DisassociateWhatsAppBusinessAccountCommand = async (input, context) => {
33
89
  const b = rb(input, context);
34
90
  const headers = {};
@@ -79,6 +135,18 @@ export const se_GetWhatsAppMessageMediaCommand = async (input, context) => {
79
135
  b.m("POST").h(headers).b(body);
80
136
  return b.build();
81
137
  };
138
+ export const se_GetWhatsAppMessageTemplateCommand = async (input, context) => {
139
+ const b = rb(input, context);
140
+ const headers = {};
141
+ b.bp("/v1/whatsapp/template");
142
+ const query = map({
143
+ [_mTI]: [, __expectNonNull(input[_mTI], `metaTemplateId`)],
144
+ [_i]: [, __expectNonNull(input[_i], `id`)],
145
+ });
146
+ let body;
147
+ b.m("GET").h(headers).q(query).b(body);
148
+ return b.build();
149
+ };
82
150
  export const se_ListLinkedWhatsAppBusinessAccountsCommand = async (input, context) => {
83
151
  const b = rb(input, context);
84
152
  const headers = {};
@@ -102,6 +170,37 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
102
170
  b.m("GET").h(headers).q(query).b(body);
103
171
  return b.build();
104
172
  };
173
+ export const se_ListWhatsAppMessageTemplatesCommand = async (input, context) => {
174
+ const b = rb(input, context);
175
+ const headers = {};
176
+ b.bp("/v1/whatsapp/template/list");
177
+ const query = map({
178
+ [_i]: [, __expectNonNull(input[_i], `id`)],
179
+ [_nT]: [, input[_nT]],
180
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
181
+ });
182
+ let body;
183
+ b.m("GET").h(headers).q(query).b(body);
184
+ return b.build();
185
+ };
186
+ export const se_ListWhatsAppTemplateLibraryCommand = async (input, context) => {
187
+ const b = rb(input, context);
188
+ const headers = {
189
+ "content-type": "application/json",
190
+ };
191
+ b.bp("/v1/whatsapp/template/library");
192
+ const query = map({
193
+ [_i]: [, __expectNonNull(input[_i], `id`)],
194
+ });
195
+ let body;
196
+ body = JSON.stringify(take(input, {
197
+ filters: (_) => _json(_),
198
+ maxResults: [],
199
+ nextToken: [],
200
+ }));
201
+ b.m("POST").h(headers).q(query).b(body);
202
+ return b.build();
203
+ };
105
204
  export const se_PostWhatsAppMessageMediaCommand = async (input, context) => {
106
205
  const b = rb(input, context);
107
206
  const headers = {
@@ -174,6 +273,22 @@ export const se_UntagResourceCommand = async (input, context) => {
174
273
  b.m("POST").h(headers).b(body);
175
274
  return b.build();
176
275
  };
276
+ export const se_UpdateWhatsAppMessageTemplateCommand = async (input, context) => {
277
+ const b = rb(input, context);
278
+ const headers = {
279
+ "content-type": "application/json",
280
+ };
281
+ b.bp("/v1/whatsapp/template");
282
+ let body;
283
+ body = JSON.stringify(take(input, {
284
+ id: [],
285
+ metaTemplateId: [],
286
+ templateCategory: [],
287
+ templateComponents: (_) => context.base64Encoder(_),
288
+ }));
289
+ b.m("POST").h(headers).b(body);
290
+ return b.build();
291
+ };
177
292
  export const de_AssociateWhatsAppBusinessAccountCommand = async (output, context) => {
178
293
  if (output.statusCode !== 200 && output.statusCode >= 300) {
179
294
  return de_CommandError(output, context);
@@ -189,6 +304,52 @@ export const de_AssociateWhatsAppBusinessAccountCommand = async (output, context
189
304
  Object.assign(contents, doc);
190
305
  return contents;
191
306
  };
307
+ export const de_CreateWhatsAppMessageTemplateCommand = async (output, context) => {
308
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
309
+ return de_CommandError(output, context);
310
+ }
311
+ const contents = map({
312
+ $metadata: deserializeMetadata(output),
313
+ });
314
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
315
+ const doc = take(data, {
316
+ category: __expectString,
317
+ metaTemplateId: __expectString,
318
+ templateStatus: __expectString,
319
+ });
320
+ Object.assign(contents, doc);
321
+ return contents;
322
+ };
323
+ export const de_CreateWhatsAppMessageTemplateFromLibraryCommand = async (output, context) => {
324
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
325
+ return de_CommandError(output, context);
326
+ }
327
+ const contents = map({
328
+ $metadata: deserializeMetadata(output),
329
+ });
330
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
331
+ const doc = take(data, {
332
+ category: __expectString,
333
+ metaTemplateId: __expectString,
334
+ templateStatus: __expectString,
335
+ });
336
+ Object.assign(contents, doc);
337
+ return contents;
338
+ };
339
+ export const de_CreateWhatsAppMessageTemplateMediaCommand = async (output, context) => {
340
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
341
+ return de_CommandError(output, context);
342
+ }
343
+ const contents = map({
344
+ $metadata: deserializeMetadata(output),
345
+ });
346
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
347
+ const doc = take(data, {
348
+ metaHeaderHandle: __expectString,
349
+ });
350
+ Object.assign(contents, doc);
351
+ return contents;
352
+ };
192
353
  export const de_DeleteWhatsAppMessageMediaCommand = async (output, context) => {
193
354
  if (output.statusCode !== 200 && output.statusCode >= 300) {
194
355
  return de_CommandError(output, context);
@@ -203,6 +364,16 @@ export const de_DeleteWhatsAppMessageMediaCommand = async (output, context) => {
203
364
  Object.assign(contents, doc);
204
365
  return contents;
205
366
  };
367
+ export const de_DeleteWhatsAppMessageTemplateCommand = async (output, context) => {
368
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
369
+ return de_CommandError(output, context);
370
+ }
371
+ const contents = map({
372
+ $metadata: deserializeMetadata(output),
373
+ });
374
+ await collectBody(output.body, context);
375
+ return contents;
376
+ };
206
377
  export const de_DisassociateWhatsAppBusinessAccountCommand = async (output, context) => {
207
378
  if (output.statusCode !== 200 && output.statusCode >= 300) {
208
379
  return de_CommandError(output, context);
@@ -257,6 +428,20 @@ export const de_GetWhatsAppMessageMediaCommand = async (output, context) => {
257
428
  Object.assign(contents, doc);
258
429
  return contents;
259
430
  };
431
+ export const de_GetWhatsAppMessageTemplateCommand = async (output, context) => {
432
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
433
+ return de_CommandError(output, context);
434
+ }
435
+ const contents = map({
436
+ $metadata: deserializeMetadata(output),
437
+ });
438
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
439
+ const doc = take(data, {
440
+ template: __expectString,
441
+ });
442
+ Object.assign(contents, doc);
443
+ return contents;
444
+ };
260
445
  export const de_ListLinkedWhatsAppBusinessAccountsCommand = async (output, context) => {
261
446
  if (output.statusCode !== 200 && output.statusCode >= 300) {
262
447
  return de_CommandError(output, context);
@@ -287,6 +472,36 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
287
472
  Object.assign(contents, doc);
288
473
  return contents;
289
474
  };
475
+ export const de_ListWhatsAppMessageTemplatesCommand = async (output, context) => {
476
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
477
+ return de_CommandError(output, context);
478
+ }
479
+ const contents = map({
480
+ $metadata: deserializeMetadata(output),
481
+ });
482
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
483
+ const doc = take(data, {
484
+ nextToken: __expectString,
485
+ templates: _json,
486
+ });
487
+ Object.assign(contents, doc);
488
+ return contents;
489
+ };
490
+ export const de_ListWhatsAppTemplateLibraryCommand = async (output, context) => {
491
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
492
+ return de_CommandError(output, context);
493
+ }
494
+ const contents = map({
495
+ $metadata: deserializeMetadata(output),
496
+ });
497
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
498
+ const doc = take(data, {
499
+ metaLibraryTemplates: _json,
500
+ nextToken: __expectString,
501
+ });
502
+ Object.assign(contents, doc);
503
+ return contents;
504
+ };
290
505
  export const de_PostWhatsAppMessageMediaCommand = async (output, context) => {
291
506
  if (output.statusCode !== 200 && output.statusCode >= 300) {
292
507
  return de_CommandError(output, context);
@@ -353,6 +568,16 @@ export const de_UntagResourceCommand = async (output, context) => {
353
568
  Object.assign(contents, doc);
354
569
  return contents;
355
570
  };
571
+ export const de_UpdateWhatsAppMessageTemplateCommand = async (output, context) => {
572
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
573
+ return de_CommandError(output, context);
574
+ }
575
+ const contents = map({
576
+ $metadata: deserializeMetadata(output),
577
+ });
578
+ await collectBody(output.body, context);
579
+ return contents;
580
+ };
356
581
  const de_CommandError = async (output, context) => {
357
582
  const parsedOutput = {
358
583
  ...output,
@@ -369,21 +594,24 @@ const de_CommandError = async (output, context) => {
369
594
  case "InvalidParametersException":
370
595
  case "com.amazonaws.socialmessaging#InvalidParametersException":
371
596
  throw await de_InvalidParametersExceptionRes(parsedOutput, context);
597
+ case "LimitExceededException":
598
+ case "com.amazonaws.socialmessaging#LimitExceededException":
599
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
372
600
  case "ThrottledRequestException":
373
601
  case "com.amazonaws.socialmessaging#ThrottledRequestException":
374
602
  throw await de_ThrottledRequestExceptionRes(parsedOutput, context);
375
603
  case "ValidationException":
376
604
  case "com.amazonaws.socialmessaging#ValidationException":
377
605
  throw await de_ValidationExceptionRes(parsedOutput, context);
378
- case "AccessDeniedByMetaException":
379
- case "com.amazonaws.socialmessaging#AccessDeniedByMetaException":
380
- throw await de_AccessDeniedByMetaExceptionRes(parsedOutput, context);
381
606
  case "InternalServiceException":
382
607
  case "com.amazonaws.socialmessaging#InternalServiceException":
383
608
  throw await de_InternalServiceExceptionRes(parsedOutput, context);
384
609
  case "ResourceNotFoundException":
385
610
  case "com.amazonaws.socialmessaging#ResourceNotFoundException":
386
611
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
612
+ case "AccessDeniedByMetaException":
613
+ case "com.amazonaws.socialmessaging#AccessDeniedByMetaException":
614
+ throw await de_AccessDeniedByMetaExceptionRes(parsedOutput, context);
387
615
  default:
388
616
  const parsedBody = parsedOutput.body;
389
617
  return throwDefaultError({
@@ -459,6 +687,19 @@ const de_InvalidParametersExceptionRes = async (parsedOutput, context) => {
459
687
  });
460
688
  return __decorateServiceException(exception, parsedOutput.body);
461
689
  };
690
+ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
691
+ const contents = map({});
692
+ const data = parsedOutput.body;
693
+ const doc = take(data, {
694
+ message: __expectString,
695
+ });
696
+ Object.assign(contents, doc);
697
+ const exception = new LimitExceededException({
698
+ $metadata: deserializeMetadata(parsedOutput),
699
+ ...contents,
700
+ });
701
+ return __decorateServiceException(exception, parsedOutput.body);
702
+ };
462
703
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
463
704
  const contents = map({});
464
705
  const data = parsedOutput.body;
@@ -536,9 +777,13 @@ const deserializeMetadata = (output) => ({
536
777
  cfId: output.headers["x-amz-cf-id"],
537
778
  });
538
779
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
780
+ const _dAL = "deleteAllLanguages";
781
+ const _dAT = "deleteAllTemplates";
539
782
  const _i = "id";
540
783
  const _mI = "mediaId";
541
784
  const _mR = "maxResults";
785
+ const _mTI = "metaTemplateId";
542
786
  const _nT = "nextToken";
543
787
  const _oPNI = "originationPhoneNumberId";
544
788
  const _rA = "resourceArn";
789
+ const _tN = "templateName";
@@ -1,17 +1,25 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
2
  import { AssociateWhatsAppBusinessAccountCommandInput, AssociateWhatsAppBusinessAccountCommandOutput } from "./commands/AssociateWhatsAppBusinessAccountCommand";
3
+ import { CreateWhatsAppMessageTemplateCommandInput, CreateWhatsAppMessageTemplateCommandOutput } from "./commands/CreateWhatsAppMessageTemplateCommand";
4
+ import { CreateWhatsAppMessageTemplateFromLibraryCommandInput, CreateWhatsAppMessageTemplateFromLibraryCommandOutput } from "./commands/CreateWhatsAppMessageTemplateFromLibraryCommand";
5
+ import { CreateWhatsAppMessageTemplateMediaCommandInput, CreateWhatsAppMessageTemplateMediaCommandOutput } from "./commands/CreateWhatsAppMessageTemplateMediaCommand";
3
6
  import { DeleteWhatsAppMessageMediaCommandInput, DeleteWhatsAppMessageMediaCommandOutput } from "./commands/DeleteWhatsAppMessageMediaCommand";
7
+ import { DeleteWhatsAppMessageTemplateCommandInput, DeleteWhatsAppMessageTemplateCommandOutput } from "./commands/DeleteWhatsAppMessageTemplateCommand";
4
8
  import { DisassociateWhatsAppBusinessAccountCommandInput, DisassociateWhatsAppBusinessAccountCommandOutput } from "./commands/DisassociateWhatsAppBusinessAccountCommand";
5
9
  import { GetLinkedWhatsAppBusinessAccountCommandInput, GetLinkedWhatsAppBusinessAccountCommandOutput } from "./commands/GetLinkedWhatsAppBusinessAccountCommand";
6
10
  import { GetLinkedWhatsAppBusinessAccountPhoneNumberCommandInput, GetLinkedWhatsAppBusinessAccountPhoneNumberCommandOutput } from "./commands/GetLinkedWhatsAppBusinessAccountPhoneNumberCommand";
7
11
  import { GetWhatsAppMessageMediaCommandInput, GetWhatsAppMessageMediaCommandOutput } from "./commands/GetWhatsAppMessageMediaCommand";
12
+ import { GetWhatsAppMessageTemplateCommandInput, GetWhatsAppMessageTemplateCommandOutput } from "./commands/GetWhatsAppMessageTemplateCommand";
8
13
  import { ListLinkedWhatsAppBusinessAccountsCommandInput, ListLinkedWhatsAppBusinessAccountsCommandOutput } from "./commands/ListLinkedWhatsAppBusinessAccountsCommand";
9
14
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
15
+ import { ListWhatsAppMessageTemplatesCommandInput, ListWhatsAppMessageTemplatesCommandOutput } from "./commands/ListWhatsAppMessageTemplatesCommand";
16
+ import { ListWhatsAppTemplateLibraryCommandInput, ListWhatsAppTemplateLibraryCommandOutput } from "./commands/ListWhatsAppTemplateLibraryCommand";
10
17
  import { PostWhatsAppMessageMediaCommandInput, PostWhatsAppMessageMediaCommandOutput } from "./commands/PostWhatsAppMessageMediaCommand";
11
18
  import { PutWhatsAppBusinessAccountEventDestinationsCommandInput, PutWhatsAppBusinessAccountEventDestinationsCommandOutput } from "./commands/PutWhatsAppBusinessAccountEventDestinationsCommand";
12
19
  import { SendWhatsAppMessageCommandInput, SendWhatsAppMessageCommandOutput } from "./commands/SendWhatsAppMessageCommand";
13
20
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
14
21
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
22
+ import { UpdateWhatsAppMessageTemplateCommandInput, UpdateWhatsAppMessageTemplateCommandOutput } from "./commands/UpdateWhatsAppMessageTemplateCommand";
15
23
  import { SocialMessagingClient } from "./SocialMessagingClient";
16
24
  export interface SocialMessaging {
17
25
  /**
@@ -21,12 +29,36 @@ export interface SocialMessaging {
21
29
  associateWhatsAppBusinessAccount(args: AssociateWhatsAppBusinessAccountCommandInput, options?: __HttpHandlerOptions): Promise<AssociateWhatsAppBusinessAccountCommandOutput>;
22
30
  associateWhatsAppBusinessAccount(args: AssociateWhatsAppBusinessAccountCommandInput, cb: (err: any, data?: AssociateWhatsAppBusinessAccountCommandOutput) => void): void;
23
31
  associateWhatsAppBusinessAccount(args: AssociateWhatsAppBusinessAccountCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateWhatsAppBusinessAccountCommandOutput) => void): void;
32
+ /**
33
+ * @see {@link CreateWhatsAppMessageTemplateCommand}
34
+ */
35
+ createWhatsAppMessageTemplate(args: CreateWhatsAppMessageTemplateCommandInput, options?: __HttpHandlerOptions): Promise<CreateWhatsAppMessageTemplateCommandOutput>;
36
+ createWhatsAppMessageTemplate(args: CreateWhatsAppMessageTemplateCommandInput, cb: (err: any, data?: CreateWhatsAppMessageTemplateCommandOutput) => void): void;
37
+ createWhatsAppMessageTemplate(args: CreateWhatsAppMessageTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateWhatsAppMessageTemplateCommandOutput) => void): void;
38
+ /**
39
+ * @see {@link CreateWhatsAppMessageTemplateFromLibraryCommand}
40
+ */
41
+ createWhatsAppMessageTemplateFromLibrary(args: CreateWhatsAppMessageTemplateFromLibraryCommandInput, options?: __HttpHandlerOptions): Promise<CreateWhatsAppMessageTemplateFromLibraryCommandOutput>;
42
+ createWhatsAppMessageTemplateFromLibrary(args: CreateWhatsAppMessageTemplateFromLibraryCommandInput, cb: (err: any, data?: CreateWhatsAppMessageTemplateFromLibraryCommandOutput) => void): void;
43
+ createWhatsAppMessageTemplateFromLibrary(args: CreateWhatsAppMessageTemplateFromLibraryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateWhatsAppMessageTemplateFromLibraryCommandOutput) => void): void;
44
+ /**
45
+ * @see {@link CreateWhatsAppMessageTemplateMediaCommand}
46
+ */
47
+ createWhatsAppMessageTemplateMedia(args: CreateWhatsAppMessageTemplateMediaCommandInput, options?: __HttpHandlerOptions): Promise<CreateWhatsAppMessageTemplateMediaCommandOutput>;
48
+ createWhatsAppMessageTemplateMedia(args: CreateWhatsAppMessageTemplateMediaCommandInput, cb: (err: any, data?: CreateWhatsAppMessageTemplateMediaCommandOutput) => void): void;
49
+ createWhatsAppMessageTemplateMedia(args: CreateWhatsAppMessageTemplateMediaCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateWhatsAppMessageTemplateMediaCommandOutput) => void): void;
24
50
  /**
25
51
  * @see {@link DeleteWhatsAppMessageMediaCommand}
26
52
  */
27
53
  deleteWhatsAppMessageMedia(args: DeleteWhatsAppMessageMediaCommandInput, options?: __HttpHandlerOptions): Promise<DeleteWhatsAppMessageMediaCommandOutput>;
28
54
  deleteWhatsAppMessageMedia(args: DeleteWhatsAppMessageMediaCommandInput, cb: (err: any, data?: DeleteWhatsAppMessageMediaCommandOutput) => void): void;
29
55
  deleteWhatsAppMessageMedia(args: DeleteWhatsAppMessageMediaCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteWhatsAppMessageMediaCommandOutput) => void): void;
56
+ /**
57
+ * @see {@link DeleteWhatsAppMessageTemplateCommand}
58
+ */
59
+ deleteWhatsAppMessageTemplate(args: DeleteWhatsAppMessageTemplateCommandInput, options?: __HttpHandlerOptions): Promise<DeleteWhatsAppMessageTemplateCommandOutput>;
60
+ deleteWhatsAppMessageTemplate(args: DeleteWhatsAppMessageTemplateCommandInput, cb: (err: any, data?: DeleteWhatsAppMessageTemplateCommandOutput) => void): void;
61
+ deleteWhatsAppMessageTemplate(args: DeleteWhatsAppMessageTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteWhatsAppMessageTemplateCommandOutput) => void): void;
30
62
  /**
31
63
  * @see {@link DisassociateWhatsAppBusinessAccountCommand}
32
64
  */
@@ -51,6 +83,12 @@ export interface SocialMessaging {
51
83
  getWhatsAppMessageMedia(args: GetWhatsAppMessageMediaCommandInput, options?: __HttpHandlerOptions): Promise<GetWhatsAppMessageMediaCommandOutput>;
52
84
  getWhatsAppMessageMedia(args: GetWhatsAppMessageMediaCommandInput, cb: (err: any, data?: GetWhatsAppMessageMediaCommandOutput) => void): void;
53
85
  getWhatsAppMessageMedia(args: GetWhatsAppMessageMediaCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetWhatsAppMessageMediaCommandOutput) => void): void;
86
+ /**
87
+ * @see {@link GetWhatsAppMessageTemplateCommand}
88
+ */
89
+ getWhatsAppMessageTemplate(args: GetWhatsAppMessageTemplateCommandInput, options?: __HttpHandlerOptions): Promise<GetWhatsAppMessageTemplateCommandOutput>;
90
+ getWhatsAppMessageTemplate(args: GetWhatsAppMessageTemplateCommandInput, cb: (err: any, data?: GetWhatsAppMessageTemplateCommandOutput) => void): void;
91
+ getWhatsAppMessageTemplate(args: GetWhatsAppMessageTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetWhatsAppMessageTemplateCommandOutput) => void): void;
54
92
  /**
55
93
  * @see {@link ListLinkedWhatsAppBusinessAccountsCommand}
56
94
  */
@@ -64,6 +102,18 @@ export interface SocialMessaging {
64
102
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
65
103
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
66
104
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
105
+ /**
106
+ * @see {@link ListWhatsAppMessageTemplatesCommand}
107
+ */
108
+ listWhatsAppMessageTemplates(args: ListWhatsAppMessageTemplatesCommandInput, options?: __HttpHandlerOptions): Promise<ListWhatsAppMessageTemplatesCommandOutput>;
109
+ listWhatsAppMessageTemplates(args: ListWhatsAppMessageTemplatesCommandInput, cb: (err: any, data?: ListWhatsAppMessageTemplatesCommandOutput) => void): void;
110
+ listWhatsAppMessageTemplates(args: ListWhatsAppMessageTemplatesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListWhatsAppMessageTemplatesCommandOutput) => void): void;
111
+ /**
112
+ * @see {@link ListWhatsAppTemplateLibraryCommand}
113
+ */
114
+ listWhatsAppTemplateLibrary(args: ListWhatsAppTemplateLibraryCommandInput, options?: __HttpHandlerOptions): Promise<ListWhatsAppTemplateLibraryCommandOutput>;
115
+ listWhatsAppTemplateLibrary(args: ListWhatsAppTemplateLibraryCommandInput, cb: (err: any, data?: ListWhatsAppTemplateLibraryCommandOutput) => void): void;
116
+ listWhatsAppTemplateLibrary(args: ListWhatsAppTemplateLibraryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListWhatsAppTemplateLibraryCommandOutput) => void): void;
67
117
  /**
68
118
  * @see {@link PostWhatsAppMessageMediaCommand}
69
119
  */
@@ -94,6 +144,12 @@ export interface SocialMessaging {
94
144
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
95
145
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
96
146
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
147
+ /**
148
+ * @see {@link UpdateWhatsAppMessageTemplateCommand}
149
+ */
150
+ updateWhatsAppMessageTemplate(args: UpdateWhatsAppMessageTemplateCommandInput, options?: __HttpHandlerOptions): Promise<UpdateWhatsAppMessageTemplateCommandOutput>;
151
+ updateWhatsAppMessageTemplate(args: UpdateWhatsAppMessageTemplateCommandInput, cb: (err: any, data?: UpdateWhatsAppMessageTemplateCommandOutput) => void): void;
152
+ updateWhatsAppMessageTemplate(args: UpdateWhatsAppMessageTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateWhatsAppMessageTemplateCommandOutput) => void): void;
97
153
  }
98
154
  /**
99
155
  * <p>
@@ -8,29 +8,37 @@ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration
8
8
  import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
9
  import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
10
  import { AssociateWhatsAppBusinessAccountCommandInput, AssociateWhatsAppBusinessAccountCommandOutput } from "./commands/AssociateWhatsAppBusinessAccountCommand";
11
+ import { CreateWhatsAppMessageTemplateCommandInput, CreateWhatsAppMessageTemplateCommandOutput } from "./commands/CreateWhatsAppMessageTemplateCommand";
12
+ import { CreateWhatsAppMessageTemplateFromLibraryCommandInput, CreateWhatsAppMessageTemplateFromLibraryCommandOutput } from "./commands/CreateWhatsAppMessageTemplateFromLibraryCommand";
13
+ import { CreateWhatsAppMessageTemplateMediaCommandInput, CreateWhatsAppMessageTemplateMediaCommandOutput } from "./commands/CreateWhatsAppMessageTemplateMediaCommand";
11
14
  import { DeleteWhatsAppMessageMediaCommandInput, DeleteWhatsAppMessageMediaCommandOutput } from "./commands/DeleteWhatsAppMessageMediaCommand";
15
+ import { DeleteWhatsAppMessageTemplateCommandInput, DeleteWhatsAppMessageTemplateCommandOutput } from "./commands/DeleteWhatsAppMessageTemplateCommand";
12
16
  import { DisassociateWhatsAppBusinessAccountCommandInput, DisassociateWhatsAppBusinessAccountCommandOutput } from "./commands/DisassociateWhatsAppBusinessAccountCommand";
13
17
  import { GetLinkedWhatsAppBusinessAccountCommandInput, GetLinkedWhatsAppBusinessAccountCommandOutput } from "./commands/GetLinkedWhatsAppBusinessAccountCommand";
14
18
  import { GetLinkedWhatsAppBusinessAccountPhoneNumberCommandInput, GetLinkedWhatsAppBusinessAccountPhoneNumberCommandOutput } from "./commands/GetLinkedWhatsAppBusinessAccountPhoneNumberCommand";
15
19
  import { GetWhatsAppMessageMediaCommandInput, GetWhatsAppMessageMediaCommandOutput } from "./commands/GetWhatsAppMessageMediaCommand";
20
+ import { GetWhatsAppMessageTemplateCommandInput, GetWhatsAppMessageTemplateCommandOutput } from "./commands/GetWhatsAppMessageTemplateCommand";
16
21
  import { ListLinkedWhatsAppBusinessAccountsCommandInput, ListLinkedWhatsAppBusinessAccountsCommandOutput } from "./commands/ListLinkedWhatsAppBusinessAccountsCommand";
17
22
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
23
+ import { ListWhatsAppMessageTemplatesCommandInput, ListWhatsAppMessageTemplatesCommandOutput } from "./commands/ListWhatsAppMessageTemplatesCommand";
24
+ import { ListWhatsAppTemplateLibraryCommandInput, ListWhatsAppTemplateLibraryCommandOutput } from "./commands/ListWhatsAppTemplateLibraryCommand";
18
25
  import { PostWhatsAppMessageMediaCommandInput, PostWhatsAppMessageMediaCommandOutput } from "./commands/PostWhatsAppMessageMediaCommand";
19
26
  import { PutWhatsAppBusinessAccountEventDestinationsCommandInput, PutWhatsAppBusinessAccountEventDestinationsCommandOutput } from "./commands/PutWhatsAppBusinessAccountEventDestinationsCommand";
20
27
  import { SendWhatsAppMessageCommandInput, SendWhatsAppMessageCommandOutput } from "./commands/SendWhatsAppMessageCommand";
21
28
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
22
29
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
30
+ import { UpdateWhatsAppMessageTemplateCommandInput, UpdateWhatsAppMessageTemplateCommandOutput } from "./commands/UpdateWhatsAppMessageTemplateCommand";
23
31
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
24
32
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
25
33
  export { __Client };
26
34
  /**
27
35
  * @public
28
36
  */
29
- export type ServiceInputTypes = AssociateWhatsAppBusinessAccountCommandInput | DeleteWhatsAppMessageMediaCommandInput | DisassociateWhatsAppBusinessAccountCommandInput | GetLinkedWhatsAppBusinessAccountCommandInput | GetLinkedWhatsAppBusinessAccountPhoneNumberCommandInput | GetWhatsAppMessageMediaCommandInput | ListLinkedWhatsAppBusinessAccountsCommandInput | ListTagsForResourceCommandInput | PostWhatsAppMessageMediaCommandInput | PutWhatsAppBusinessAccountEventDestinationsCommandInput | SendWhatsAppMessageCommandInput | TagResourceCommandInput | UntagResourceCommandInput;
37
+ export type ServiceInputTypes = AssociateWhatsAppBusinessAccountCommandInput | CreateWhatsAppMessageTemplateCommandInput | CreateWhatsAppMessageTemplateFromLibraryCommandInput | CreateWhatsAppMessageTemplateMediaCommandInput | DeleteWhatsAppMessageMediaCommandInput | DeleteWhatsAppMessageTemplateCommandInput | DisassociateWhatsAppBusinessAccountCommandInput | GetLinkedWhatsAppBusinessAccountCommandInput | GetLinkedWhatsAppBusinessAccountPhoneNumberCommandInput | GetWhatsAppMessageMediaCommandInput | GetWhatsAppMessageTemplateCommandInput | ListLinkedWhatsAppBusinessAccountsCommandInput | ListTagsForResourceCommandInput | ListWhatsAppMessageTemplatesCommandInput | ListWhatsAppTemplateLibraryCommandInput | PostWhatsAppMessageMediaCommandInput | PutWhatsAppBusinessAccountEventDestinationsCommandInput | SendWhatsAppMessageCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateWhatsAppMessageTemplateCommandInput;
30
38
  /**
31
39
  * @public
32
40
  */
33
- export type ServiceOutputTypes = AssociateWhatsAppBusinessAccountCommandOutput | DeleteWhatsAppMessageMediaCommandOutput | DisassociateWhatsAppBusinessAccountCommandOutput | GetLinkedWhatsAppBusinessAccountCommandOutput | GetLinkedWhatsAppBusinessAccountPhoneNumberCommandOutput | GetWhatsAppMessageMediaCommandOutput | ListLinkedWhatsAppBusinessAccountsCommandOutput | ListTagsForResourceCommandOutput | PostWhatsAppMessageMediaCommandOutput | PutWhatsAppBusinessAccountEventDestinationsCommandOutput | SendWhatsAppMessageCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput;
41
+ export type ServiceOutputTypes = AssociateWhatsAppBusinessAccountCommandOutput | CreateWhatsAppMessageTemplateCommandOutput | CreateWhatsAppMessageTemplateFromLibraryCommandOutput | CreateWhatsAppMessageTemplateMediaCommandOutput | DeleteWhatsAppMessageMediaCommandOutput | DeleteWhatsAppMessageTemplateCommandOutput | DisassociateWhatsAppBusinessAccountCommandOutput | GetLinkedWhatsAppBusinessAccountCommandOutput | GetLinkedWhatsAppBusinessAccountPhoneNumberCommandOutput | GetWhatsAppMessageMediaCommandOutput | GetWhatsAppMessageTemplateCommandOutput | ListLinkedWhatsAppBusinessAccountsCommandOutput | ListTagsForResourceCommandOutput | ListWhatsAppMessageTemplatesCommandOutput | ListWhatsAppTemplateLibraryCommandOutput | PostWhatsAppMessageMediaCommandOutput | PutWhatsAppBusinessAccountEventDestinationsCommandOutput | SendWhatsAppMessageCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateWhatsAppMessageTemplateCommandOutput;
34
42
  /**
35
43
  * @public
36
44
  */
@@ -37,6 +37,7 @@ declare const AssociateWhatsAppBusinessAccountCommand_base: {
37
37
  * const input = { // AssociateWhatsAppBusinessAccountInput
38
38
  * signupCallback: { // WhatsAppSignupCallback
39
39
  * accessToken: "STRING_VALUE", // required
40
+ * callbackUrl: "STRING_VALUE",
40
41
  * },
41
42
  * setupFinalization: { // WhatsAppSetupFinalization
42
43
  * associateInProgressToken: "STRING_VALUE", // required
@@ -89,6 +90,7 @@ declare const AssociateWhatsAppBusinessAccountCommand_base: {
89
90
  * // displayPhoneNumberName: "STRING_VALUE", // required
90
91
  * // displayPhoneNumber: "STRING_VALUE", // required
91
92
  * // qualityRating: "STRING_VALUE", // required
93
+ * // dataLocalizationRegion: "STRING_VALUE",
92
94
  * // },
93
95
  * // ],
94
96
  * // wabaId: "STRING_VALUE",
@@ -112,6 +114,9 @@ declare const AssociateWhatsAppBusinessAccountCommand_base: {
112
114
  * @throws {@link InvalidParametersException} (client fault)
113
115
  * <p>One or more parameters provided to the action are not valid.</p>
114
116
  *
117
+ * @throws {@link LimitExceededException} (client fault)
118
+ * <p>The request was denied because it would exceed one or more service quotas or limits.</p>
119
+ *
115
120
  * @throws {@link ThrottledRequestException} (client fault)
116
121
  * <p>The request was denied due to request throttling.</p>
117
122
  *