/
models_0.ts
3013 lines (2707 loc) · 102 KB
/
models_0.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// smithy-typescript generated code
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
import { PinpointEmailServiceException as __BaseException } from "./PinpointEmailServiceException";
/**
* @public
* <p>The message can't be sent because the account's ability to send email has been
* permanently restricted.</p>
*/
export class AccountSuspendedException extends __BaseException {
readonly name: "AccountSuspendedException" = "AccountSuspendedException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<AccountSuspendedException, __BaseException>) {
super({
name: "AccountSuspendedException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, AccountSuspendedException.prototype);
}
}
/**
* @public
* <p>The resource specified in your request already exists.</p>
*/
export class AlreadyExistsException extends __BaseException {
readonly name: "AlreadyExistsException" = "AlreadyExistsException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<AlreadyExistsException, __BaseException>) {
super({
name: "AlreadyExistsException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, AlreadyExistsException.prototype);
}
}
/**
* @public
* <p>The input you provided is invalid.</p>
*/
export class BadRequestException extends __BaseException {
readonly name: "BadRequestException" = "BadRequestException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<BadRequestException, __BaseException>) {
super({
name: "BadRequestException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, BadRequestException.prototype);
}
}
/**
* @public
* <p>The resource is being modified by another operation or thread.</p>
*/
export class ConcurrentModificationException extends __BaseException {
readonly name: "ConcurrentModificationException" = "ConcurrentModificationException";
readonly $fault: "server" = "server";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ConcurrentModificationException, __BaseException>) {
super({
name: "ConcurrentModificationException",
$fault: "server",
...opts,
});
Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
}
}
/**
* @public
* @enum
*/
export const TlsPolicy = {
OPTIONAL: "OPTIONAL",
REQUIRE: "REQUIRE",
} as const;
/**
* @public
*/
export type TlsPolicy = (typeof TlsPolicy)[keyof typeof TlsPolicy];
/**
* @public
* <p>Used to associate a configuration set with a dedicated IP pool.</p>
*/
export interface DeliveryOptions {
/**
* <p>Specifies whether messages that use the configuration set are required to use
* Transport Layer Security (TLS). If the value is <code>Require</code>, messages are only
* delivered if a TLS connection can be established. If the value is <code>Optional</code>,
* messages can be delivered in plain text if a TLS connection can't be established.</p>
*/
TlsPolicy?: TlsPolicy | string;
/**
* <p>The name of the dedicated IP pool that you want to associate with the configuration
* set.</p>
*/
SendingPoolName?: string;
}
/**
* @public
* <p>Enable or disable collection of reputation metrics for emails that you send using this
* configuration set in the current AWS Region. </p>
*/
export interface ReputationOptions {
/**
* <p>If <code>true</code>, tracking of reputation metrics is enabled for the configuration
* set. If <code>false</code>, tracking of reputation metrics is disabled for the
* configuration set.</p>
*/
ReputationMetricsEnabled?: boolean;
/**
* <p>The date and time (in Unix time) when the reputation metrics were last given a fresh
* start. When your account is given a fresh start, your reputation metrics are calculated
* starting from the date of the fresh start.</p>
*/
LastFreshStart?: Date;
}
/**
* @public
* <p>Used to enable or disable email sending for messages that use this configuration set
* in the current AWS Region.</p>
*/
export interface SendingOptions {
/**
* <p>If <code>true</code>, email sending is enabled for the configuration set. If
* <code>false</code>, email sending is disabled for the configuration set.</p>
*/
SendingEnabled?: boolean;
}
/**
* @public
* <p>An object that defines the tags that are associated with a resource.
* A <i>tag</i> is a label that you optionally define and associate with
* a resource in Amazon Pinpoint. Tags can help you categorize and manage resources in different
* ways, such as by purpose, owner, environment, or other criteria. A resource can have as
* many as 50 tags.</p>
* <p>Each tag consists of a required <i>tag key</i> and an
* associated <i>tag value</i>, both of which you define. A tag key is a
* general label that acts as a category for a more specific tag value. A tag value acts as
* a descriptor within a tag key. A tag key can contain as many as 128 characters. A tag
* value can contain as many as 256 characters. The characters can be Unicode letters,
* digits, white space, or one of the following symbols: _ . : / = + -. The following
* additional restrictions apply to tags:</p>
* <ul>
* <li>
* <p>Tag keys and values are case sensitive.</p>
* </li>
* <li>
* <p>For each associated resource, each tag key must be unique and it can have only
* one value.</p>
* </li>
* <li>
* <p>The <code>aws:</code> prefix is reserved for use by AWS; you can’t use it in
* any tag keys or values that you define. In addition, you can't edit or remove
* tag keys or values that use this prefix. Tags that use this prefix don’t count
* against the limit of 50 tags per resource.</p>
* </li>
* <li>
* <p>You can associate tags with public or shared resources, but the tags are
* available only for your AWS account, not any other accounts that share the
* resource. In addition, the tags are available only for resources that are
* located in the specified AWS Region for your AWS account.</p>
* </li>
* </ul>
*/
export interface Tag {
/**
* <p>One part of a key-value pair that defines a tag. The maximum length of a tag key is
* 128 characters. The minimum length is 1 character.</p>
*/
Key: string | undefined;
/**
* <p>The optional part of a key-value pair that defines a tag. The maximum length of a tag
* value is 256 characters. The minimum length is 0 characters. If you don’t want a
* resource to have a specific tag value, don’t specify a value for this parameter. Amazon Pinpoint
* will set the value to an empty string.</p>
*/
Value: string | undefined;
}
/**
* @public
* <p>An object that defines the tracking options for a configuration set. When you use
* Amazon Pinpoint to send an email, it contains an invisible image that's used to track when
* recipients open your email. If your email contains links, those links are changed
* slightly in order to track when recipients click them.</p>
* <p>These images and links include references to a domain operated by AWS. You can
* optionally configure Amazon Pinpoint to use a domain that you operate for these images and
* links.</p>
*/
export interface TrackingOptions {
/**
* <p>The domain that you want to use for tracking open and click events.</p>
*/
CustomRedirectDomain: string | undefined;
}
/**
* @public
* <p>A request to create a configuration set.</p>
*/
export interface CreateConfigurationSetRequest {
/**
* <p>The name of the configuration set.</p>
*/
ConfigurationSetName: string | undefined;
/**
* <p>An object that defines the open and click tracking options for emails that you send
* using the configuration set.</p>
*/
TrackingOptions?: TrackingOptions;
/**
* <p>An object that defines the dedicated IP pool that is used to send emails that you send
* using the configuration set.</p>
*/
DeliveryOptions?: DeliveryOptions;
/**
* <p>An object that defines whether or not Amazon Pinpoint collects reputation metrics for the emails
* that you send that use the configuration set.</p>
*/
ReputationOptions?: ReputationOptions;
/**
* <p>An object that defines whether or not Amazon Pinpoint can send email that you send using the
* configuration set.</p>
*/
SendingOptions?: SendingOptions;
/**
* <p>An array of objects that define the tags (keys and values) that you want to associate
* with the configuration set.</p>
*/
Tags?: Tag[];
}
/**
* @public
* <p>An HTTP 200 response if the request succeeds, or an error message if the request
* fails.</p>
*/
export interface CreateConfigurationSetResponse {}
/**
* @public
* <p>There are too many instances of the specified resource type.</p>
*/
export class LimitExceededException extends __BaseException {
readonly name: "LimitExceededException" = "LimitExceededException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>) {
super({
name: "LimitExceededException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, LimitExceededException.prototype);
}
}
/**
* @public
* <p>The resource you attempted to access doesn't exist.</p>
*/
export class NotFoundException extends __BaseException {
readonly name: "NotFoundException" = "NotFoundException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>) {
super({
name: "NotFoundException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, NotFoundException.prototype);
}
}
/**
* @public
* <p>Too many requests have been made to the operation.</p>
*/
export class TooManyRequestsException extends __BaseException {
readonly name: "TooManyRequestsException" = "TooManyRequestsException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>) {
super({
name: "TooManyRequestsException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
}
}
/**
* @public
* @enum
*/
export const DimensionValueSource = {
EMAIL_HEADER: "EMAIL_HEADER",
LINK_TAG: "LINK_TAG",
MESSAGE_TAG: "MESSAGE_TAG",
} as const;
/**
* @public
*/
export type DimensionValueSource = (typeof DimensionValueSource)[keyof typeof DimensionValueSource];
/**
* @public
* <p>An object that defines the dimension configuration to use when you send Amazon Pinpoint email
* events to Amazon CloudWatch.</p>
*/
export interface CloudWatchDimensionConfiguration {
/**
* <p>The name of an Amazon CloudWatch dimension associated with an email sending metric. The name has to
* meet the following criteria:</p>
* <ul>
* <li>
* <p>It can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_),
* or dashes (-).</p>
* </li>
* <li>
* <p>It can contain no more than 256 characters.</p>
* </li>
* </ul>
*/
DimensionName: string | undefined;
/**
* <p>The location where Amazon Pinpoint finds the value of a dimension to publish to Amazon CloudWatch. If you
* want Amazon Pinpoint to use the message tags that you specify using an X-SES-MESSAGE-TAGS header
* or a parameter to the SendEmail/SendRawEmail API, choose <code>messageTag</code>. If you
* want Amazon Pinpoint to use your own email headers, choose <code>emailHeader</code>. If you want
* Amazon Pinpoint to use link tags, choose <code>linkTags</code>.</p>
*/
DimensionValueSource: DimensionValueSource | string | undefined;
/**
* <p>The default value of the dimension that is published to Amazon CloudWatch if you don't provide the
* value of the dimension when you send an email. This value has to meet the following
* criteria:</p>
* <ul>
* <li>
* <p>It can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_),
* or dashes (-).</p>
* </li>
* <li>
* <p>It can contain no more than 256 characters.</p>
* </li>
* </ul>
*/
DefaultDimensionValue: string | undefined;
}
/**
* @public
* <p>An object that defines an Amazon CloudWatch destination for email events. You can use Amazon CloudWatch to
* monitor and gain insights on your email sending metrics.</p>
*/
export interface CloudWatchDestination {
/**
* <p>An array of objects that define the dimensions to use when you send email events to
* Amazon CloudWatch.</p>
*/
DimensionConfigurations: CloudWatchDimensionConfiguration[] | undefined;
}
/**
* @public
* <p>An object that defines an Amazon Kinesis Data Firehose destination for email events. You can use Amazon Kinesis Data Firehose to
* stream data to other services, such as Amazon S3 and Amazon Redshift.</p>
*/
export interface KinesisFirehoseDestination {
/**
* <p>The Amazon Resource Name (ARN) of the IAM role that Amazon Pinpoint uses when sending email
* events to the Amazon Kinesis Data Firehose stream.</p>
*/
IamRoleArn: string | undefined;
/**
* <p>The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose stream that Amazon Pinpoint sends email events
* to.</p>
*/
DeliveryStreamArn: string | undefined;
}
/**
* @public
* @enum
*/
export const EventType = {
BOUNCE: "BOUNCE",
CLICK: "CLICK",
COMPLAINT: "COMPLAINT",
DELIVERY: "DELIVERY",
OPEN: "OPEN",
REJECT: "REJECT",
RENDERING_FAILURE: "RENDERING_FAILURE",
SEND: "SEND",
} as const;
/**
* @public
*/
export type EventType = (typeof EventType)[keyof typeof EventType];
/**
* @public
* <p>An object that defines a Amazon Pinpoint destination for email events. You can use Amazon Pinpoint events
* to create attributes in Amazon Pinpoint projects. You can use these attributes to create segments
* for your campaigns.</p>
*/
export interface PinpointDestination {
/**
* <p>The Amazon Resource Name (ARN) of the Amazon Pinpoint project that you want to send email
* events to.</p>
*/
ApplicationArn?: string;
}
/**
* @public
* <p>An object that defines an Amazon SNS destination for email events. You can use Amazon SNS to
* send notification when certain email events occur.</p>
*/
export interface SnsDestination {
/**
* <p>The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to publish email
* events to. For more information about Amazon SNS topics, see the <a href="https://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html">Amazon SNS Developer
* Guide</a>.</p>
*/
TopicArn: string | undefined;
}
/**
* @public
* <p>An object that defines the event destination. Specifically, it defines which services
* receive events from emails sent using the configuration set that the event destination
* is associated with. Also defines the types of events that are sent to the event
* destination.</p>
*/
export interface EventDestinationDefinition {
/**
* <p>If <code>true</code>, the event destination is enabled. When the event destination is
* enabled, the specified event types are sent to the destinations in this
* <code>EventDestinationDefinition</code>.</p>
* <p>If <code>false</code>, the event destination is disabled. When the event destination
* is disabled, events aren't sent to the specified destinations.</p>
*/
Enabled?: boolean;
/**
* <p>An array that specifies which events Amazon Pinpoint should send to the destinations in this
* <code>EventDestinationDefinition</code>.</p>
*/
MatchingEventTypes?: (EventType | string)[];
/**
* <p>An object that defines an Amazon Kinesis Data Firehose destination for email events. You can use Amazon Kinesis Data Firehose to
* stream data to other services, such as Amazon S3 and Amazon Redshift.</p>
*/
KinesisFirehoseDestination?: KinesisFirehoseDestination;
/**
* <p>An object that defines an Amazon CloudWatch destination for email events. You can use Amazon CloudWatch to
* monitor and gain insights on your email sending metrics.</p>
*/
CloudWatchDestination?: CloudWatchDestination;
/**
* <p>An object that defines an Amazon SNS destination for email events. You can use Amazon SNS to
* send notification when certain email events occur.</p>
*/
SnsDestination?: SnsDestination;
/**
* <p>An object that defines a Amazon Pinpoint destination for email events. You can use Amazon Pinpoint events
* to create attributes in Amazon Pinpoint projects. You can use these attributes to create segments
* for your campaigns.</p>
*/
PinpointDestination?: PinpointDestination;
}
/**
* @public
* <p>A request to add an event destination to a configuration set.</p>
*/
export interface CreateConfigurationSetEventDestinationRequest {
/**
* <p>The name of the configuration set that you want to add an event destination to.</p>
*/
ConfigurationSetName: string | undefined;
/**
* <p>A name that identifies the event destination within the configuration set.</p>
*/
EventDestinationName: string | undefined;
/**
* <p>An object that defines the event destination.</p>
*/
EventDestination: EventDestinationDefinition | undefined;
}
/**
* @public
* <p>An HTTP 200 response if the request succeeds, or an error message if the request
* fails.</p>
*/
export interface CreateConfigurationSetEventDestinationResponse {}
/**
* @public
* <p>A request to create a new dedicated IP pool.</p>
*/
export interface CreateDedicatedIpPoolRequest {
/**
* <p>The name of the dedicated IP pool.</p>
*/
PoolName: string | undefined;
/**
* <p>An object that defines the tags (keys and values) that you want to associate with the
* pool.</p>
*/
Tags?: Tag[];
}
/**
* @public
* <p>An HTTP 200 response if the request succeeds, or an error message if the request
* fails.</p>
*/
export interface CreateDedicatedIpPoolResponse {}
/**
* @public
* <p>The raw email message.</p>
*/
export interface RawMessage {
/**
* <p>The raw email message. The message has to meet the following criteria:</p>
* <ul>
* <li>
* <p>The message has to contain a header and a body, separated by one blank
* line.</p>
* </li>
* <li>
* <p>All of the required header fields must be present in the message.</p>
* </li>
* <li>
* <p>Each part of a multipart MIME message must be formatted properly.</p>
* </li>
* <li>
* <p>Attachments must be in a file format that Amazon Pinpoint supports.
* </p>
* </li>
* <li>
* <p>The entire message must be Base64 encoded.</p>
* </li>
* <li>
* <p>If any of the MIME parts in your message contain content that is outside of
* the 7-bit ASCII character range, you should encode that content to ensure that
* recipients' email clients render the message properly.</p>
* </li>
* <li>
* <p>The length of any single line of text in the message can't exceed 1,000
* characters. This restriction is defined in <a href="https://tools.ietf.org/html/rfc5321">RFC 5321</a>.</p>
* </li>
* </ul>
*/
Data: Uint8Array | undefined;
}
/**
* @public
* <p>An object that represents the content of the email, and optionally a character set
* specification.</p>
*/
export interface Content {
/**
* <p>The content of the message itself.</p>
*/
Data: string | undefined;
/**
* <p>The character set for the content. Because of the constraints of the SMTP protocol,
* Amazon Pinpoint uses 7-bit ASCII by default. If the text includes characters outside of the ASCII
* range, you have to specify a character set. For example, you could specify
* <code>UTF-8</code>, <code>ISO-8859-1</code>, or <code>Shift_JIS</code>.</p>
*/
Charset?: string;
}
/**
* @public
* <p>Represents the body of the email message.</p>
*/
export interface Body {
/**
* <p>An object that represents the version of the message that is displayed in email
* clients that don't support HTML, or clients where the recipient has disabled HTML
* rendering.</p>
*/
Text?: Content;
/**
* <p>An object that represents the version of the message that is displayed in email
* clients that support HTML. HTML messages can include formatted text, hyperlinks, images,
* and more. </p>
*/
Html?: Content;
}
/**
* @public
* <p>Represents the email message that you're sending. The <code>Message</code> object
* consists of a subject line and a message body.</p>
*/
export interface Message {
/**
* <p>The subject line of the email. The subject line can only contain 7-bit ASCII
* characters. However, you can specify non-ASCII characters in the subject line by using
* encoded-word syntax, as described in <a href="https://tools.ietf.org/html/rfc2047">RFC 2047</a>.</p>
*/
Subject: Content | undefined;
/**
* <p>The body of the message. You can specify an HTML version of the message, a text-only
* version of the message, or both.</p>
*/
Body: Body | undefined;
}
/**
* @public
*/
export interface Template {
/**
* <p>The Amazon Resource Name (ARN) of the template.</p>
*/
TemplateArn?: string;
/**
* <p>An object that defines the values to use for message variables in the template. This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding value defines the value to use for that variable.</p>
*/
TemplateData?: string;
}
/**
* @public
* <p>An object that defines the entire content of the email, including the message headers
* and the body content. You can create a simple email message, in which you specify the
* subject and the text and HTML versions of the message body. You can also create raw
* messages, in which you specify a complete MIME-formatted message. Raw messages can
* include attachments and custom headers.</p>
*/
export interface EmailContent {
/**
* <p>The simple email message. The message consists of a subject and a message body.</p>
*/
Simple?: Message;
/**
* <p>The raw email message. The message has to meet the following criteria:</p>
* <ul>
* <li>
* <p>The message has to contain a header and a body, separated by one blank
* line.</p>
* </li>
* <li>
* <p>All of the required header fields must be present in the message.</p>
* </li>
* <li>
* <p>Each part of a multipart MIME message must be formatted properly.</p>
* </li>
* <li>
* <p>If you include attachments, they must be in a file format that Amazon Pinpoint supports.
* </p>
* </li>
* <li>
* <p>The entire message must be Base64 encoded.</p>
* </li>
* <li>
* <p>If any of the MIME parts in your message contain content that is outside of
* the 7-bit ASCII character range, you should encode that content to ensure that
* recipients' email clients render the message properly.</p>
* </li>
* <li>
* <p>The length of any single line of text in the message can't exceed 1,000
* characters. This restriction is defined in <a href="https://tools.ietf.org/html/rfc5321">RFC 5321</a>.</p>
* </li>
* </ul>
*/
Raw?: RawMessage;
/**
* <p>The template to use for the email message.</p>
*/
Template?: Template;
}
/**
* @public
* <p>A request to perform a predictive inbox placement test. Predictive inbox placement tests can help you predict how your messages will
* be handled by various email providers around the world. When you perform a predictive inbox placement test, you
* provide a sample message that contains the content that you plan to send to your
* customers. Amazon Pinpoint then sends that message to special email addresses spread across
* several major email providers. After about 24 hours, the test is complete, and you can
* use the <code>GetDeliverabilityTestReport</code> operation to view the results of the
* test.</p>
*/
export interface CreateDeliverabilityTestReportRequest {
/**
* <p>A unique name that helps you to identify the predictive inbox placement test when you retrieve the
* results.</p>
*/
ReportName?: string;
/**
* <p>The email address that the predictive inbox placement test email was sent from.</p>
*/
FromEmailAddress: string | undefined;
/**
* <p>The HTML body of the message that you sent when you performed the predictive inbox placement test.</p>
*/
Content: EmailContent | undefined;
/**
* <p>An array of objects that define the tags (keys and values) that you want to associate
* with the predictive inbox placement test.</p>
*/
Tags?: Tag[];
}
/**
* @public
* @enum
*/
export const DeliverabilityTestStatus = {
COMPLETED: "COMPLETED",
IN_PROGRESS: "IN_PROGRESS",
} as const;
/**
* @public
*/
export type DeliverabilityTestStatus = (typeof DeliverabilityTestStatus)[keyof typeof DeliverabilityTestStatus];
/**
* @public
* <p>Information about the predictive inbox placement test that you created.</p>
*/
export interface CreateDeliverabilityTestReportResponse {
/**
* <p>A unique string that identifies the predictive inbox placement test.</p>
*/
ReportId: string | undefined;
/**
* <p>The status of the predictive inbox placement test. If the status is <code>IN_PROGRESS</code>, then the predictive inbox placement test
* is currently running. Predictive inbox placement tests are usually complete within 24 hours of creating the
* test. If the status is <code>COMPLETE</code>, then the test is finished, and you can use
* the <code>GetDeliverabilityTestReport</code> to view the results of the test.</p>
*/
DeliverabilityTestStatus: DeliverabilityTestStatus | string | undefined;
}
/**
* @public
* <p>The message can't be sent because the sending domain isn't verified.</p>
*/
export class MailFromDomainNotVerifiedException extends __BaseException {
readonly name: "MailFromDomainNotVerifiedException" = "MailFromDomainNotVerifiedException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<MailFromDomainNotVerifiedException, __BaseException>) {
super({
name: "MailFromDomainNotVerifiedException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, MailFromDomainNotVerifiedException.prototype);
}
}
/**
* @public
* <p>The message can't be sent because it contains invalid content.</p>
*/
export class MessageRejected extends __BaseException {
readonly name: "MessageRejected" = "MessageRejected";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<MessageRejected, __BaseException>) {
super({
name: "MessageRejected",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, MessageRejected.prototype);
}
}
/**
* @public
* <p>The message can't be sent because the account's ability to send email is currently
* paused.</p>
*/
export class SendingPausedException extends __BaseException {
readonly name: "SendingPausedException" = "SendingPausedException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<SendingPausedException, __BaseException>) {
super({
name: "SendingPausedException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, SendingPausedException.prototype);
}
}
/**
* @public
* <p>A request to begin the verification process for an email identity (an email address or
* domain).</p>
*/
export interface CreateEmailIdentityRequest {
/**
* <p>The email address or domain that you want to verify.</p>
*/
EmailIdentity: string | undefined;
/**
* <p>An array of objects that define the tags (keys and values) that you want to associate
* with the email identity.</p>
*/
Tags?: Tag[];
}
/**
* @public
* @enum
*/
export const DkimStatus = {
FAILED: "FAILED",
NOT_STARTED: "NOT_STARTED",
PENDING: "PENDING",
SUCCESS: "SUCCESS",
TEMPORARY_FAILURE: "TEMPORARY_FAILURE",
} as const;
/**
* @public
*/
export type DkimStatus = (typeof DkimStatus)[keyof typeof DkimStatus];
/**
* @public
* <p>An object that contains information about the DKIM configuration for an email
* identity.</p>
*/
export interface DkimAttributes {
/**
* <p>If the value is <code>true</code>, then the messages that Amazon Pinpoint sends from the
* identity are DKIM-signed. If the value is <code>false</code>, then the messages that
* Amazon Pinpoint sends from the identity aren't DKIM-signed.</p>
*/
SigningEnabled?: boolean;
/**
* <p>Describes whether or not Amazon Pinpoint has successfully located the DKIM records in the DNS
* records for the domain. The status can be one of the following:</p>
* <ul>
* <li>
* <p>
* <code>PENDING</code> – Amazon Pinpoint hasn't yet located the DKIM records in the
* DNS configuration for the domain, but will continue to attempt to locate
* them.</p>
* </li>
* <li>
* <p>
* <code>SUCCESS</code> – Amazon Pinpoint located the DKIM records in the DNS
* configuration for the domain and determined that they're correct. Amazon Pinpoint can now
* send DKIM-signed email from the identity.</p>
* </li>
* <li>
* <p>
* <code>FAILED</code> – Amazon Pinpoint was unable to locate the DKIM records in the
* DNS settings for the domain, and won't continue to search for them.</p>
* </li>
* <li>
* <p>
* <code>TEMPORARY_FAILURE</code> – A temporary issue occurred, which
* prevented Amazon Pinpoint from determining the DKIM status for the domain.</p>
* </li>
* <li>
* <p>
* <code>NOT_STARTED</code> – Amazon Pinpoint hasn't yet started searching for the
* DKIM records in the DKIM records for the domain.</p>
* </li>
* </ul>
*/
Status?: DkimStatus | string;
/**
* <p>A set of unique strings that you use to create a set of CNAME records that you add to
* the DNS configuration for your domain. When Amazon Pinpoint detects these records in the DNS
* configuration for your domain, the DKIM authentication process is complete. Amazon Pinpoint
* usually detects these records within about 72 hours of adding them to the DNS
* configuration for your domain.</p>
*/
Tokens?: string[];
}
/**
* @public
* @enum
*/
export const IdentityType = {
DOMAIN: "DOMAIN",
EMAIL_ADDRESS: "EMAIL_ADDRESS",
MANAGED_DOMAIN: "MANAGED_DOMAIN",
} as const;
/**
* @public
*/
export type IdentityType = (typeof IdentityType)[keyof typeof IdentityType];
/**
* @public
* <p>If the email identity is a domain, this object contains tokens that you can use to
* create a set of CNAME records. To sucessfully verify your domain, you have to add these
* records to the DNS configuration for your domain.</p>
* <p>If the email identity is an email address, this object is empty. </p>
*/
export interface CreateEmailIdentityResponse {
/**
* <p>The email identity type.</p>
*/
IdentityType?: IdentityType | string;
/**
* <p>Specifies whether or not the identity is verified. In Amazon Pinpoint, you can only send email
* from verified email addresses or domains. For more information about verifying
* identities, see the <a href="https://docs.aws.amazon.com/pinpoint/latest/userguide/channels-email-manage-verify.html">Amazon Pinpoint User Guide</a>.</p>
*/
VerifiedForSendingStatus?: boolean;
/**
* <p>An object that contains information about the DKIM attributes for the identity. This
* object includes the tokens that you use to create the CNAME records that are required to