-
Notifications
You must be signed in to change notification settings - Fork 623
/
api_types.go
2588 lines (2147 loc) · 86.2 KB
/
api_types.go
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
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package sesv2
import (
"fmt"
"time"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/internal/awsutil"
"github.com/aws/aws-sdk-go-v2/private/protocol"
)
var _ aws.Config
var _ = awsutil.Prettify
// An object that contains information about a blacklisting event that impacts
// one of the dedicated IP addresses that is associated with your account.
type BlacklistEntry struct {
_ struct{} `type:"structure"`
// Additional information about the blacklisting event, as provided by the blacklist
// maintainer.
Description *string `type:"string"`
// The time when the blacklisting event occurred, shown in Unix time format.
ListingTime *time.Time `type:"timestamp"`
// The name of the blacklist that the IP address appears on.
RblName *string `type:"string"`
}
// String returns the string representation
func (s BlacklistEntry) String() string {
return awsutil.Prettify(s)
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s BlacklistEntry) MarshalFields(e protocol.FieldEncoder) error {
if s.Description != nil {
v := *s.Description
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "Description", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
if s.ListingTime != nil {
v := *s.ListingTime
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "ListingTime",
protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.RblName != nil {
v := *s.RblName
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "RblName", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
return nil
}
// Represents the body of the email message.
type Body struct {
_ struct{} `type:"structure"`
// 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.
Html *Content `type:"structure"`
// 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.
Text *Content `type:"structure"`
}
// String returns the string representation
func (s Body) String() string {
return awsutil.Prettify(s)
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *Body) Validate() error {
invalidParams := aws.ErrInvalidParams{Context: "Body"}
if s.Html != nil {
if err := s.Html.Validate(); err != nil {
invalidParams.AddNested("Html", err.(aws.ErrInvalidParams))
}
}
if s.Text != nil {
if err := s.Text.Validate(); err != nil {
invalidParams.AddNested("Text", err.(aws.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s Body) MarshalFields(e protocol.FieldEncoder) error {
if s.Html != nil {
v := s.Html
metadata := protocol.Metadata{}
e.SetFields(protocol.BodyTarget, "Html", v, metadata)
}
if s.Text != nil {
v := s.Text
metadata := protocol.Metadata{}
e.SetFields(protocol.BodyTarget, "Text", v, metadata)
}
return nil
}
// 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.
type CloudWatchDestination struct {
_ struct{} `type:"structure"`
// An array of objects that define the dimensions to use when you send email
// events to Amazon CloudWatch.
//
// DimensionConfigurations is a required field
DimensionConfigurations []CloudWatchDimensionConfiguration `type:"list" required:"true"`
}
// String returns the string representation
func (s CloudWatchDestination) String() string {
return awsutil.Prettify(s)
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CloudWatchDestination) Validate() error {
invalidParams := aws.ErrInvalidParams{Context: "CloudWatchDestination"}
if s.DimensionConfigurations == nil {
invalidParams.Add(aws.NewErrParamRequired("DimensionConfigurations"))
}
if s.DimensionConfigurations != nil {
for i, v := range s.DimensionConfigurations {
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DimensionConfigurations", i), err.(aws.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CloudWatchDestination) MarshalFields(e protocol.FieldEncoder) error {
if s.DimensionConfigurations != nil {
v := s.DimensionConfigurations
metadata := protocol.Metadata{}
ls0 := e.List(protocol.BodyTarget, "DimensionConfigurations", metadata)
ls0.Start()
for _, v1 := range v {
ls0.ListAddFields(v1)
}
ls0.End()
}
return nil
}
// An object that defines the dimension configuration to use when you send email
// events to Amazon CloudWatch.
type CloudWatchDimensionConfiguration struct {
_ struct{} `type:"structure"`
// 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:
//
// * It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores
// (_), or dashes (-).
//
// * It can contain no more than 256 characters.
//
// DefaultDimensionValue is a required field
DefaultDimensionValue *string `type:"string" required:"true"`
// The name of an Amazon CloudWatch dimension associated with an email sending
// metric. The name has to meet the following criteria:
//
// * It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores
// (_), or dashes (-).
//
// * It can contain no more than 256 characters.
//
// DimensionName is a required field
DimensionName *string `type:"string" required:"true"`
// The location where the Amazon SES API v2 finds the value of a dimension to
// publish to Amazon CloudWatch. If you want to use the message tags that you
// specify using an X-SES-MESSAGE-TAGS header or a parameter to the SendEmail
// or SendRawEmail API, choose messageTag. If you want to use your own email
// headers, choose emailHeader. If you want to use link tags, choose linkTags.
//
// DimensionValueSource is a required field
DimensionValueSource DimensionValueSource `type:"string" required:"true" enum:"true"`
}
// String returns the string representation
func (s CloudWatchDimensionConfiguration) String() string {
return awsutil.Prettify(s)
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CloudWatchDimensionConfiguration) Validate() error {
invalidParams := aws.ErrInvalidParams{Context: "CloudWatchDimensionConfiguration"}
if s.DefaultDimensionValue == nil {
invalidParams.Add(aws.NewErrParamRequired("DefaultDimensionValue"))
}
if s.DimensionName == nil {
invalidParams.Add(aws.NewErrParamRequired("DimensionName"))
}
if len(s.DimensionValueSource) == 0 {
invalidParams.Add(aws.NewErrParamRequired("DimensionValueSource"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s CloudWatchDimensionConfiguration) MarshalFields(e protocol.FieldEncoder) error {
if s.DefaultDimensionValue != nil {
v := *s.DefaultDimensionValue
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "DefaultDimensionValue", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
if s.DimensionName != nil {
v := *s.DimensionName
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "DimensionName", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
if len(s.DimensionValueSource) > 0 {
v := s.DimensionValueSource
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "DimensionValueSource", protocol.QuotedValue{ValueMarshaler: v}, metadata)
}
return nil
}
// An object that represents the content of the email, and optionally a character
// set specification.
type Content struct {
_ struct{} `type:"structure"`
// The character set for the content. Because of the constraints of the SMTP
// protocol, Amazon SES 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 UTF-8, ISO-8859-1, or Shift_JIS.
Charset *string `type:"string"`
// The content of the message itself.
//
// Data is a required field
Data *string `type:"string" required:"true"`
}
// String returns the string representation
func (s Content) String() string {
return awsutil.Prettify(s)
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *Content) Validate() error {
invalidParams := aws.ErrInvalidParams{Context: "Content"}
if s.Data == nil {
invalidParams.Add(aws.NewErrParamRequired("Data"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s Content) MarshalFields(e protocol.FieldEncoder) error {
if s.Charset != nil {
v := *s.Charset
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "Charset", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
if s.Data != nil {
v := *s.Data
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "Data", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
return nil
}
// An object that contains information about the volume of email sent on each
// day of the analysis period.
type DailyVolume struct {
_ struct{} `type:"structure"`
// An object that contains inbox placement metrics for a specified day in the
// analysis period, broken out by the recipient's email provider.
DomainIspPlacements []DomainIspPlacement `type:"list"`
// The date that the DailyVolume metrics apply to, in Unix time.
StartDate *time.Time `type:"timestamp"`
// An object that contains inbox placement metrics for a specific day in the
// analysis period.
VolumeStatistics *VolumeStatistics `type:"structure"`
}
// String returns the string representation
func (s DailyVolume) String() string {
return awsutil.Prettify(s)
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DailyVolume) MarshalFields(e protocol.FieldEncoder) error {
if s.DomainIspPlacements != nil {
v := s.DomainIspPlacements
metadata := protocol.Metadata{}
ls0 := e.List(protocol.BodyTarget, "DomainIspPlacements", metadata)
ls0.Start()
for _, v1 := range v {
ls0.ListAddFields(v1)
}
ls0.End()
}
if s.StartDate != nil {
v := *s.StartDate
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "StartDate",
protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.VolumeStatistics != nil {
v := s.VolumeStatistics
metadata := protocol.Metadata{}
e.SetFields(protocol.BodyTarget, "VolumeStatistics", v, metadata)
}
return nil
}
// Contains information about a dedicated IP address that is associated with
// your Amazon SES account.
//
// To learn more about requesting dedicated IP addresses, see Requesting and
// Relinquishing Dedicated IP Addresses (https://docs.aws.amazon.com/ses/latest/DeveloperGuide/dedicated-ip-case.html)
// in the Amazon SES Developer Guide.
type DedicatedIp struct {
_ struct{} `type:"structure"`
// An IPv4 address.
//
// Ip is a required field
Ip *string `type:"string" required:"true"`
// The name of the dedicated IP pool that the IP address is associated with.
PoolName *string `type:"string"`
// Indicates how complete the dedicated IP warm-up process is. When this value
// equals 1, the address has completed the warm-up process and is ready for
// use.
//
// WarmupPercentage is a required field
WarmupPercentage *int64 `type:"integer" required:"true"`
// The warm-up status of a dedicated IP address. The status can have one of
// the following values:
//
// * IN_PROGRESS – The IP address isn't ready to use because the dedicated
// IP warm-up process is ongoing.
//
// * DONE – The dedicated IP warm-up process is complete, and the IP address
// is ready to use.
//
// WarmupStatus is a required field
WarmupStatus WarmupStatus `type:"string" required:"true" enum:"true"`
}
// String returns the string representation
func (s DedicatedIp) String() string {
return awsutil.Prettify(s)
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DedicatedIp) MarshalFields(e protocol.FieldEncoder) error {
if s.Ip != nil {
v := *s.Ip
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "Ip", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
if s.PoolName != nil {
v := *s.PoolName
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "PoolName", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
if s.WarmupPercentage != nil {
v := *s.WarmupPercentage
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "WarmupPercentage", protocol.Int64Value(v), metadata)
}
if len(s.WarmupStatus) > 0 {
v := s.WarmupStatus
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "WarmupStatus", protocol.QuotedValue{ValueMarshaler: v}, metadata)
}
return nil
}
// An object that contains metadata related to a predictive inbox placement
// test.
type DeliverabilityTestReport struct {
_ struct{} `type:"structure"`
// The date and time when the predictive inbox placement test was created, in
// Unix time format.
CreateDate *time.Time `type:"timestamp"`
// The status of the predictive inbox placement test. If the status is IN_PROGRESS,
// 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 COMPLETE, then the test is finished, and you can use
// the GetDeliverabilityTestReport to view the results of the test.
DeliverabilityTestStatus DeliverabilityTestStatus `type:"string" enum:"true"`
// The sender address that you specified for the predictive inbox placement
// test.
FromEmailAddress *string `type:"string"`
// A unique string that identifies the predictive inbox placement test.
ReportId *string `type:"string"`
// A name that helps you identify a predictive inbox placement test report.
ReportName *string `type:"string"`
// The subject line for an email that you submitted in a predictive inbox placement
// test.
Subject *string `type:"string"`
}
// String returns the string representation
func (s DeliverabilityTestReport) String() string {
return awsutil.Prettify(s)
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeliverabilityTestReport) MarshalFields(e protocol.FieldEncoder) error {
if s.CreateDate != nil {
v := *s.CreateDate
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "CreateDate",
protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if len(s.DeliverabilityTestStatus) > 0 {
v := s.DeliverabilityTestStatus
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "DeliverabilityTestStatus", protocol.QuotedValue{ValueMarshaler: v}, metadata)
}
if s.FromEmailAddress != nil {
v := *s.FromEmailAddress
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "FromEmailAddress", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
if s.ReportId != nil {
v := *s.ReportId
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "ReportId", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
if s.ReportName != nil {
v := *s.ReportName
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "ReportName", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
if s.Subject != nil {
v := *s.Subject
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "Subject", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
return nil
}
// Used to associate a configuration set with a dedicated IP pool.
type DeliveryOptions struct {
_ struct{} `type:"structure"`
// The name of the dedicated IP pool that you want to associate with the configuration
// set.
SendingPoolName *string `type:"string"`
// Specifies whether messages that use the configuration set are required to
// use Transport Layer Security (TLS). If the value is Require, messages are
// only delivered if a TLS connection can be established. If the value is Optional,
// messages can be delivered in plain text if a TLS connection can't be established.
TlsPolicy TlsPolicy `type:"string" enum:"true"`
}
// String returns the string representation
func (s DeliveryOptions) String() string {
return awsutil.Prettify(s)
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DeliveryOptions) MarshalFields(e protocol.FieldEncoder) error {
if s.SendingPoolName != nil {
v := *s.SendingPoolName
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "SendingPoolName", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
if len(s.TlsPolicy) > 0 {
v := s.TlsPolicy
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "TlsPolicy", protocol.QuotedValue{ValueMarshaler: v}, metadata)
}
return nil
}
// An object that describes the recipients for an email.
type Destination struct {
_ struct{} `type:"structure"`
// An array that contains the email addresses of the "BCC" (blind carbon copy)
// recipients for the email.
BccAddresses []string `type:"list"`
// An array that contains the email addresses of the "CC" (carbon copy) recipients
// for the email.
CcAddresses []string `type:"list"`
// An array that contains the email addresses of the "To" recipients for the
// email.
ToAddresses []string `type:"list"`
}
// String returns the string representation
func (s Destination) String() string {
return awsutil.Prettify(s)
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s Destination) MarshalFields(e protocol.FieldEncoder) error {
if s.BccAddresses != nil {
v := s.BccAddresses
metadata := protocol.Metadata{}
ls0 := e.List(protocol.BodyTarget, "BccAddresses", metadata)
ls0.Start()
for _, v1 := range v {
ls0.ListAddValue(protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v1)})
}
ls0.End()
}
if s.CcAddresses != nil {
v := s.CcAddresses
metadata := protocol.Metadata{}
ls0 := e.List(protocol.BodyTarget, "CcAddresses", metadata)
ls0.Start()
for _, v1 := range v {
ls0.ListAddValue(protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v1)})
}
ls0.End()
}
if s.ToAddresses != nil {
v := s.ToAddresses
metadata := protocol.Metadata{}
ls0 := e.List(protocol.BodyTarget, "ToAddresses", metadata)
ls0.Start()
for _, v1 := range v {
ls0.ListAddValue(protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v1)})
}
ls0.End()
}
return nil
}
// An object that contains information about the DKIM authentication status
// for an email identity.
//
// Amazon SES determines the authentication status by searching for specific
// records in the DNS configuration for the domain. If you used Easy DKIM (https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html)
// to set up DKIM authentication, Amazon SES tries to find three unique CNAME
// records in the DNS configuration for your domain. If you provided a public
// key to perform DKIM authentication, Amazon SES tries to find a TXT record
// that uses the selector that you specified. The value of the TXT record must
// be a public key that's paired with the private key that you specified in
// the process of creating the identity
type DkimAttributes struct {
_ struct{} `type:"structure"`
// A string that indicates how DKIM was configured for the identity. There are
// two possible values:
//
// * AWS_SES – Indicates that DKIM was configured for the identity by using
// Easy DKIM (https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html).
//
// * EXTERNAL – Indicates that DKIM was configured for the identity by
// using Bring Your Own DKIM (BYODKIM).
SigningAttributesOrigin DkimSigningAttributesOrigin `type:"string" enum:"true"`
// If the value is true, then the messages that you send from the identity are
// signed using DKIM. If the value is false, then the messages that you send
// from the identity aren't DKIM-signed.
SigningEnabled *bool `type:"boolean"`
// Describes whether or not Amazon SES has successfully located the DKIM records
// in the DNS records for the domain. The status can be one of the following:
//
// * PENDING – The verification process was initiated, but Amazon SES hasn't
// yet detected the DKIM records in the DNS configuration for the domain.
//
// * SUCCESS – The verification process completed successfully.
//
// * FAILED – The verification process failed. This typically occurs when
// Amazon SES fails to find the DKIM records in the DNS configuration of
// the domain.
//
// * TEMPORARY_FAILURE – A temporary issue is preventing Amazon SES from
// determining the DKIM authentication status of the domain.
//
// * NOT_STARTED – The DKIM verification process hasn't been initiated
// for the domain.
Status DkimStatus `type:"string" enum:"true"`
// If you used Easy DKIM (https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html)
// to configure DKIM authentication for the domain, then this object contains
// 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 SES detects
// these records in the DNS configuration for your domain, the DKIM authentication
// process is complete.
//
// If you configured DKIM authentication for the domain by providing your own
// public-private key pair, then this object contains the selector for the public
// key.
//
// Regardless of the DKIM authentication method you use, Amazon SES searches
// for the appropriate records in the DNS configuration of the domain for up
// to 72 hours.
Tokens []string `type:"list"`
}
// String returns the string representation
func (s DkimAttributes) String() string {
return awsutil.Prettify(s)
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DkimAttributes) MarshalFields(e protocol.FieldEncoder) error {
if len(s.SigningAttributesOrigin) > 0 {
v := s.SigningAttributesOrigin
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "SigningAttributesOrigin", protocol.QuotedValue{ValueMarshaler: v}, metadata)
}
if s.SigningEnabled != nil {
v := *s.SigningEnabled
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "SigningEnabled", protocol.BoolValue(v), metadata)
}
if len(s.Status) > 0 {
v := s.Status
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "Status", protocol.QuotedValue{ValueMarshaler: v}, metadata)
}
if s.Tokens != nil {
v := s.Tokens
metadata := protocol.Metadata{}
ls0 := e.List(protocol.BodyTarget, "Tokens", metadata)
ls0.Start()
for _, v1 := range v {
ls0.ListAddValue(protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v1)})
}
ls0.End()
}
return nil
}
// An object that contains information about the tokens used for setting up
// Bring Your Own DKIM (BYODKIM).
type DkimSigningAttributes struct {
_ struct{} `type:"structure"`
// A private key that's used to generate a DKIM signature.
//
// The private key must use 1024-bit RSA encryption, and must be encoded using
// base64 encoding.
//
// DomainSigningPrivateKey is a required field
DomainSigningPrivateKey *string `min:"1" type:"string" required:"true" sensitive:"true"`
// A string that's used to identify a public key in the DNS configuration for
// a domain.
//
// DomainSigningSelector is a required field
DomainSigningSelector *string `min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s DkimSigningAttributes) String() string {
return awsutil.Prettify(s)
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DkimSigningAttributes) Validate() error {
invalidParams := aws.ErrInvalidParams{Context: "DkimSigningAttributes"}
if s.DomainSigningPrivateKey == nil {
invalidParams.Add(aws.NewErrParamRequired("DomainSigningPrivateKey"))
}
if s.DomainSigningPrivateKey != nil && len(*s.DomainSigningPrivateKey) < 1 {
invalidParams.Add(aws.NewErrParamMinLen("DomainSigningPrivateKey", 1))
}
if s.DomainSigningSelector == nil {
invalidParams.Add(aws.NewErrParamRequired("DomainSigningSelector"))
}
if s.DomainSigningSelector != nil && len(*s.DomainSigningSelector) < 1 {
invalidParams.Add(aws.NewErrParamMinLen("DomainSigningSelector", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DkimSigningAttributes) MarshalFields(e protocol.FieldEncoder) error {
if s.DomainSigningPrivateKey != nil {
v := *s.DomainSigningPrivateKey
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "DomainSigningPrivateKey", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
if s.DomainSigningSelector != nil {
v := *s.DomainSigningSelector
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "DomainSigningSelector", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
return nil
}
// An object that contains the deliverability data for a specific campaign.
// This data is available for a campaign only if the campaign sent email by
// using a domain that the Deliverability dashboard is enabled for (PutDeliverabilityDashboardOption
// operation).
type DomainDeliverabilityCampaign struct {
_ struct{} `type:"structure"`
// The unique identifier for the campaign. The Deliverability dashboard automatically
// generates and assigns this identifier to a campaign.
CampaignId *string `type:"string"`
// The percentage of email messages that were deleted by recipients, without
// being opened first. Due to technical limitations, this value only includes
// recipients who opened the message by using an email client that supports
// images.
DeleteRate *float64 `type:"double"`
// The major email providers who handled the email message.
Esps []string `type:"list"`
// The first time, in Unix time format, when the email message was delivered
// to any recipient's inbox. This value can help you determine how long it took
// for a campaign to deliver an email message.
FirstSeenDateTime *time.Time `type:"timestamp"`
// The verified email address that the email message was sent from.
FromAddress *string `type:"string"`
// The URL of an image that contains a snapshot of the email message that was
// sent.
ImageUrl *string `type:"string"`
// The number of email messages that were delivered to recipients’ inboxes.
InboxCount *int64 `type:"long"`
// The last time, in Unix time format, when the email message was delivered
// to any recipient's inbox. This value can help you determine how long it took
// for a campaign to deliver an email message.
LastSeenDateTime *time.Time `type:"timestamp"`
// The projected number of recipients that the email message was sent to.
ProjectedVolume *int64 `type:"long"`
// The percentage of email messages that were opened and then deleted by recipients.
// Due to technical limitations, this value only includes recipients who opened
// the message by using an email client that supports images.
ReadDeleteRate *float64 `type:"double"`
// The percentage of email messages that were opened by recipients. Due to technical
// limitations, this value only includes recipients who opened the message by
// using an email client that supports images.
ReadRate *float64 `type:"double"`
// The IP addresses that were used to send the email message.
SendingIps []string `type:"list"`
// The number of email messages that were delivered to recipients' spam or junk
// mail folders.
SpamCount *int64 `type:"long"`
// The subject line, or title, of the email message.
Subject *string `type:"string"`
}
// String returns the string representation
func (s DomainDeliverabilityCampaign) String() string {
return awsutil.Prettify(s)
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DomainDeliverabilityCampaign) MarshalFields(e protocol.FieldEncoder) error {
if s.CampaignId != nil {
v := *s.CampaignId
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "CampaignId", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
if s.DeleteRate != nil {
v := *s.DeleteRate
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "DeleteRate", protocol.Float64Value(v), metadata)
}
if s.Esps != nil {
v := s.Esps
metadata := protocol.Metadata{}
ls0 := e.List(protocol.BodyTarget, "Esps", metadata)
ls0.Start()
for _, v1 := range v {
ls0.ListAddValue(protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v1)})
}
ls0.End()
}
if s.FirstSeenDateTime != nil {
v := *s.FirstSeenDateTime
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "FirstSeenDateTime",
protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.FromAddress != nil {
v := *s.FromAddress
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "FromAddress", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
if s.ImageUrl != nil {
v := *s.ImageUrl
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "ImageUrl", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
if s.InboxCount != nil {
v := *s.InboxCount
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "InboxCount", protocol.Int64Value(v), metadata)
}
if s.LastSeenDateTime != nil {
v := *s.LastSeenDateTime
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "LastSeenDateTime",
protocol.TimeValue{V: v, Format: protocol.UnixTimeFormatName, QuotedFormatTime: true}, metadata)
}
if s.ProjectedVolume != nil {
v := *s.ProjectedVolume
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "ProjectedVolume", protocol.Int64Value(v), metadata)
}
if s.ReadDeleteRate != nil {
v := *s.ReadDeleteRate
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "ReadDeleteRate", protocol.Float64Value(v), metadata)
}
if s.ReadRate != nil {
v := *s.ReadRate
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "ReadRate", protocol.Float64Value(v), metadata)
}
if s.SendingIps != nil {
v := s.SendingIps
metadata := protocol.Metadata{}
ls0 := e.List(protocol.BodyTarget, "SendingIps", metadata)
ls0.Start()
for _, v1 := range v {
ls0.ListAddValue(protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v1)})
}
ls0.End()
}
if s.SpamCount != nil {
v := *s.SpamCount
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "SpamCount", protocol.Int64Value(v), metadata)
}
if s.Subject != nil {
v := *s.Subject
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "Subject", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
return nil
}
// An object that contains information about the Deliverability dashboard subscription
// for a verified domain that you use to send email and currently has an active
// Deliverability dashboard subscription. If a Deliverability dashboard subscription
// is active for a domain, you gain access to reputation, inbox placement, and
// other metrics for the domain.
type DomainDeliverabilityTrackingOption struct {
_ struct{} `type:"structure"`
// A verified domain that’s associated with your AWS account and currently
// has an active Deliverability dashboard subscription.
Domain *string `type:"string"`
// An object that contains information about the inbox placement data settings
// for the domain.
InboxPlacementTrackingOption *InboxPlacementTrackingOption `type:"structure"`
// The date, in Unix time format, when you enabled the Deliverability dashboard
// for the domain.
SubscriptionStartDate *time.Time `type:"timestamp"`
}
// String returns the string representation
func (s DomainDeliverabilityTrackingOption) String() string {
return awsutil.Prettify(s)
}
// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (s DomainDeliverabilityTrackingOption) MarshalFields(e protocol.FieldEncoder) error {
if s.Domain != nil {
v := *s.Domain
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "Domain", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
}
if s.InboxPlacementTrackingOption != nil {
v := s.InboxPlacementTrackingOption
metadata := protocol.Metadata{}
e.SetFields(protocol.BodyTarget, "InboxPlacementTrackingOption", v, metadata)
}
if s.SubscriptionStartDate != nil {
v := *s.SubscriptionStartDate