forked from aws/aws-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.go
1480 lines (1212 loc) · 51.6 KB
/
api.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
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
// Package ses provides a client for Amazon Simple Email Service.
package ses
import (
"sync"
"time"
"github.com/aws/aws-sdk-go/aws"
)
var oprw sync.Mutex
// DeleteIdentityRequest generates a request for the DeleteIdentity operation.
func (c *SES) DeleteIdentityRequest(input *DeleteIdentityInput) (req *aws.Request, output *DeleteIdentityOutput) {
oprw.Lock()
defer oprw.Unlock()
if opDeleteIdentity == nil {
opDeleteIdentity = &aws.Operation{
Name: "DeleteIdentity",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &DeleteIdentityInput{}
}
req = c.newRequest(opDeleteIdentity, input, output)
output = &DeleteIdentityOutput{}
req.Data = output
return
}
// Deletes the specified identity (email address or domain) from the list of
// verified identities.
//
// This action is throttled at one request per second.
func (c *SES) DeleteIdentity(input *DeleteIdentityInput) (*DeleteIdentityOutput, error) {
req, out := c.DeleteIdentityRequest(input)
err := req.Send()
return out, err
}
var opDeleteIdentity *aws.Operation
// DeleteVerifiedEmailAddressRequest generates a request for the DeleteVerifiedEmailAddress operation.
func (c *SES) DeleteVerifiedEmailAddressRequest(input *DeleteVerifiedEmailAddressInput) (req *aws.Request, output *DeleteVerifiedEmailAddressOutput) {
oprw.Lock()
defer oprw.Unlock()
if opDeleteVerifiedEmailAddress == nil {
opDeleteVerifiedEmailAddress = &aws.Operation{
Name: "DeleteVerifiedEmailAddress",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &DeleteVerifiedEmailAddressInput{}
}
req = c.newRequest(opDeleteVerifiedEmailAddress, input, output)
output = &DeleteVerifiedEmailAddressOutput{}
req.Data = output
return
}
// Deletes the specified email address from the list of verified addresses.
//
// The DeleteVerifiedEmailAddress action is deprecated as of the May 15, 2012
// release of Domain Verification. The DeleteIdentity action is now preferred.
// This action is throttled at one request per second.
func (c *SES) DeleteVerifiedEmailAddress(input *DeleteVerifiedEmailAddressInput) (*DeleteVerifiedEmailAddressOutput, error) {
req, out := c.DeleteVerifiedEmailAddressRequest(input)
err := req.Send()
return out, err
}
var opDeleteVerifiedEmailAddress *aws.Operation
// GetIdentityDKIMAttributesRequest generates a request for the GetIdentityDKIMAttributes operation.
func (c *SES) GetIdentityDKIMAttributesRequest(input *GetIdentityDKIMAttributesInput) (req *aws.Request, output *GetIdentityDKIMAttributesOutput) {
oprw.Lock()
defer oprw.Unlock()
if opGetIdentityDKIMAttributes == nil {
opGetIdentityDKIMAttributes = &aws.Operation{
Name: "GetIdentityDkimAttributes",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &GetIdentityDKIMAttributesInput{}
}
req = c.newRequest(opGetIdentityDKIMAttributes, input, output)
output = &GetIdentityDKIMAttributesOutput{}
req.Data = output
return
}
// Returns the current status of Easy DKIM signing for an entity. For domain
// name identities, this action also returns the DKIM tokens that are required
// for Easy DKIM signing, and whether Amazon SES has successfully verified that
// these tokens have been published.
//
// This action takes a list of identities as input and returns the following
// information for each:
//
// Whether Easy DKIM signing is enabled or disabled. A set of DKIM tokens
// that represent the identity. If the identity is an email address, the tokens
// represent the domain of that address. Whether Amazon SES has successfully
// verified the DKIM tokens published in the domain's DNS. This information
// is only returned for domain name identities, not for email addresses. This
// action is throttled at one request per second and can only get DKIM attributes
// for up to 100 identities at a time.
//
// For more information about creating DNS records using DKIM tokens, go to
// the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim-dns-records.html).
func (c *SES) GetIdentityDKIMAttributes(input *GetIdentityDKIMAttributesInput) (*GetIdentityDKIMAttributesOutput, error) {
req, out := c.GetIdentityDKIMAttributesRequest(input)
err := req.Send()
return out, err
}
var opGetIdentityDKIMAttributes *aws.Operation
// GetIdentityNotificationAttributesRequest generates a request for the GetIdentityNotificationAttributes operation.
func (c *SES) GetIdentityNotificationAttributesRequest(input *GetIdentityNotificationAttributesInput) (req *aws.Request, output *GetIdentityNotificationAttributesOutput) {
oprw.Lock()
defer oprw.Unlock()
if opGetIdentityNotificationAttributes == nil {
opGetIdentityNotificationAttributes = &aws.Operation{
Name: "GetIdentityNotificationAttributes",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &GetIdentityNotificationAttributesInput{}
}
req = c.newRequest(opGetIdentityNotificationAttributes, input, output)
output = &GetIdentityNotificationAttributesOutput{}
req.Data = output
return
}
// Given a list of verified identities (email addresses and/or domains), returns
// a structure describing identity notification attributes.
//
// This action is throttled at one request per second and can only get notification
// attributes for up to 100 identities at a time.
//
// For more information about using notifications with Amazon SES, see the
// Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html).
func (c *SES) GetIdentityNotificationAttributes(input *GetIdentityNotificationAttributesInput) (*GetIdentityNotificationAttributesOutput, error) {
req, out := c.GetIdentityNotificationAttributesRequest(input)
err := req.Send()
return out, err
}
var opGetIdentityNotificationAttributes *aws.Operation
// GetIdentityVerificationAttributesRequest generates a request for the GetIdentityVerificationAttributes operation.
func (c *SES) GetIdentityVerificationAttributesRequest(input *GetIdentityVerificationAttributesInput) (req *aws.Request, output *GetIdentityVerificationAttributesOutput) {
oprw.Lock()
defer oprw.Unlock()
if opGetIdentityVerificationAttributes == nil {
opGetIdentityVerificationAttributes = &aws.Operation{
Name: "GetIdentityVerificationAttributes",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &GetIdentityVerificationAttributesInput{}
}
req = c.newRequest(opGetIdentityVerificationAttributes, input, output)
output = &GetIdentityVerificationAttributesOutput{}
req.Data = output
return
}
// Given a list of identities (email addresses and/or domains), returns the
// verification status and (for domain identities) the verification token for
// each identity.
//
// This action is throttled at one request per second and can only get verification
// attributes for up to 100 identities at a time.
func (c *SES) GetIdentityVerificationAttributes(input *GetIdentityVerificationAttributesInput) (*GetIdentityVerificationAttributesOutput, error) {
req, out := c.GetIdentityVerificationAttributesRequest(input)
err := req.Send()
return out, err
}
var opGetIdentityVerificationAttributes *aws.Operation
// GetSendQuotaRequest generates a request for the GetSendQuota operation.
func (c *SES) GetSendQuotaRequest(input *GetSendQuotaInput) (req *aws.Request, output *GetSendQuotaOutput) {
oprw.Lock()
defer oprw.Unlock()
if opGetSendQuota == nil {
opGetSendQuota = &aws.Operation{
Name: "GetSendQuota",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &GetSendQuotaInput{}
}
req = c.newRequest(opGetSendQuota, input, output)
output = &GetSendQuotaOutput{}
req.Data = output
return
}
// Returns the user's current sending limits.
//
// This action is throttled at one request per second.
func (c *SES) GetSendQuota(input *GetSendQuotaInput) (*GetSendQuotaOutput, error) {
req, out := c.GetSendQuotaRequest(input)
err := req.Send()
return out, err
}
var opGetSendQuota *aws.Operation
// GetSendStatisticsRequest generates a request for the GetSendStatistics operation.
func (c *SES) GetSendStatisticsRequest(input *GetSendStatisticsInput) (req *aws.Request, output *GetSendStatisticsOutput) {
oprw.Lock()
defer oprw.Unlock()
if opGetSendStatistics == nil {
opGetSendStatistics = &aws.Operation{
Name: "GetSendStatistics",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &GetSendStatisticsInput{}
}
req = c.newRequest(opGetSendStatistics, input, output)
output = &GetSendStatisticsOutput{}
req.Data = output
return
}
// Returns the user's sending statistics. The result is a list of data points,
// representing the last two weeks of sending activity.
//
// Each data point in the list contains statistics for a 15-minute interval.
//
// This action is throttled at one request per second.
func (c *SES) GetSendStatistics(input *GetSendStatisticsInput) (*GetSendStatisticsOutput, error) {
req, out := c.GetSendStatisticsRequest(input)
err := req.Send()
return out, err
}
var opGetSendStatistics *aws.Operation
// ListIdentitiesRequest generates a request for the ListIdentities operation.
func (c *SES) ListIdentitiesRequest(input *ListIdentitiesInput) (req *aws.Request, output *ListIdentitiesOutput) {
oprw.Lock()
defer oprw.Unlock()
if opListIdentities == nil {
opListIdentities = &aws.Operation{
Name: "ListIdentities",
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &aws.Paginator{
InputTokens: []string{"NextToken"},
OutputTokens: []string{"NextToken"},
LimitToken: "MaxItems",
TruncationToken: "",
},
}
}
if input == nil {
input = &ListIdentitiesInput{}
}
req = c.newRequest(opListIdentities, input, output)
output = &ListIdentitiesOutput{}
req.Data = output
return
}
// Returns a list containing all of the identities (email addresses and domains)
// for a specific AWS Account, regardless of verification status.
//
// This action is throttled at one request per second.
func (c *SES) ListIdentities(input *ListIdentitiesInput) (*ListIdentitiesOutput, error) {
req, out := c.ListIdentitiesRequest(input)
err := req.Send()
return out, err
}
func (c *SES) ListIdentitiesPages(input *ListIdentitiesInput, fn func(p *ListIdentitiesOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.ListIdentitiesRequest(input)
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*ListIdentitiesOutput), lastPage)
})
}
var opListIdentities *aws.Operation
// ListVerifiedEmailAddressesRequest generates a request for the ListVerifiedEmailAddresses operation.
func (c *SES) ListVerifiedEmailAddressesRequest(input *ListVerifiedEmailAddressesInput) (req *aws.Request, output *ListVerifiedEmailAddressesOutput) {
oprw.Lock()
defer oprw.Unlock()
if opListVerifiedEmailAddresses == nil {
opListVerifiedEmailAddresses = &aws.Operation{
Name: "ListVerifiedEmailAddresses",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &ListVerifiedEmailAddressesInput{}
}
req = c.newRequest(opListVerifiedEmailAddresses, input, output)
output = &ListVerifiedEmailAddressesOutput{}
req.Data = output
return
}
// Returns a list containing all of the email addresses that have been verified.
//
// The ListVerifiedEmailAddresses action is deprecated as of the May 15, 2012
// release of Domain Verification. The ListIdentities action is now preferred.
// This action is throttled at one request per second.
func (c *SES) ListVerifiedEmailAddresses(input *ListVerifiedEmailAddressesInput) (*ListVerifiedEmailAddressesOutput, error) {
req, out := c.ListVerifiedEmailAddressesRequest(input)
err := req.Send()
return out, err
}
var opListVerifiedEmailAddresses *aws.Operation
// SendEmailRequest generates a request for the SendEmail operation.
func (c *SES) SendEmailRequest(input *SendEmailInput) (req *aws.Request, output *SendEmailOutput) {
oprw.Lock()
defer oprw.Unlock()
if opSendEmail == nil {
opSendEmail = &aws.Operation{
Name: "SendEmail",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &SendEmailInput{}
}
req = c.newRequest(opSendEmail, input, output)
output = &SendEmailOutput{}
req.Data = output
return
}
// Composes an email message based on input data, and then immediately queues
// the message for sending.
//
// You can only send email from verified email addresses and domains. If your
// account is still in the Amazon SES sandbox, you must also verify every recipient
// email address except for the recipients provided by the Amazon SES mailbox
// simulator. For more information, go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html).
// The total size of the message cannot exceed 10 MB.
//
// Amazon SES has a limit on the total number of recipients per message: The
// combined number of To:, CC: and BCC: email addresses cannot exceed 50. If
// you need to send an email message to a larger audience, you can divide your
// recipient list into groups of 50 or fewer, and then call Amazon SES repeatedly
// to send the message to each group.
//
// For every message that you send, the total number of recipients (To:, CC:
// and BCC:) is counted against your sending quota - the maximum number of emails
// you can send in a 24-hour period. For information about your sending quota,
// go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/manage-sending-limits.html).
func (c *SES) SendEmail(input *SendEmailInput) (*SendEmailOutput, error) {
req, out := c.SendEmailRequest(input)
err := req.Send()
return out, err
}
var opSendEmail *aws.Operation
// SendRawEmailRequest generates a request for the SendRawEmail operation.
func (c *SES) SendRawEmailRequest(input *SendRawEmailInput) (req *aws.Request, output *SendRawEmailOutput) {
oprw.Lock()
defer oprw.Unlock()
if opSendRawEmail == nil {
opSendRawEmail = &aws.Operation{
Name: "SendRawEmail",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &SendRawEmailInput{}
}
req = c.newRequest(opSendRawEmail, input, output)
output = &SendRawEmailOutput{}
req.Data = output
return
}
// Sends an email message, with header and content specified by the client.
// The SendRawEmail action is useful for sending multipart MIME emails. The
// raw text of the message must comply with Internet email standards; otherwise,
// the message cannot be sent.
//
// You can only send email from verified email addresses and domains. If your
// account is still in the Amazon SES sandbox, you must also verify every recipient
// email address except for the recipients provided by the Amazon SES mailbox
// simulator. For more information, go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html).
// The total size of the message cannot exceed 10 MB. This includes any attachments
// that are part of the message.
//
// Amazon SES has a limit on the total number of recipients per message: The
// combined number of To:, CC: and BCC: email addresses cannot exceed 50. If
// you need to send an email message to a larger audience, you can divide your
// recipient list into groups of 50 or fewer, and then call Amazon SES repeatedly
// to send the message to each group.
//
// The To:, CC:, and BCC: headers in the raw message can contain a group list.
// Note that each recipient in a group list counts towards the 50-recipient
// limit.
//
// For every message that you send, the total number of recipients (To:, CC:
// and BCC:) is counted against your sending quota - the maximum number of emails
// you can send in a 24-hour period. For information about your sending quota,
// go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/manage-sending-limits.html).
func (c *SES) SendRawEmail(input *SendRawEmailInput) (*SendRawEmailOutput, error) {
req, out := c.SendRawEmailRequest(input)
err := req.Send()
return out, err
}
var opSendRawEmail *aws.Operation
// SetIdentityDKIMEnabledRequest generates a request for the SetIdentityDKIMEnabled operation.
func (c *SES) SetIdentityDKIMEnabledRequest(input *SetIdentityDKIMEnabledInput) (req *aws.Request, output *SetIdentityDKIMEnabledOutput) {
oprw.Lock()
defer oprw.Unlock()
if opSetIdentityDKIMEnabled == nil {
opSetIdentityDKIMEnabled = &aws.Operation{
Name: "SetIdentityDkimEnabled",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &SetIdentityDKIMEnabledInput{}
}
req = c.newRequest(opSetIdentityDKIMEnabled, input, output)
output = &SetIdentityDKIMEnabledOutput{}
req.Data = output
return
}
// Enables or disables Easy DKIM signing of email sent from an identity:
//
// If Easy DKIM signing is enabled for a domain name identity (e.g., example.com),
// then Amazon SES will DKIM-sign all email sent by addresses under that domain
// name (e.g., user@example.com). If Easy DKIM signing is enabled for an email
// address, then Amazon SES will DKIM-sign all email sent by that email address.
// For email addresses (e.g., user@example.com), you can only enable Easy DKIM
// signing if the corresponding domain (e.g., example.com) has been set up for
// Easy DKIM using the AWS Console or the VerifyDomainDkim action.
//
// This action is throttled at one request per second.
//
// For more information about Easy DKIM signing, go to the Amazon SES Developer
// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html).
func (c *SES) SetIdentityDKIMEnabled(input *SetIdentityDKIMEnabledInput) (*SetIdentityDKIMEnabledOutput, error) {
req, out := c.SetIdentityDKIMEnabledRequest(input)
err := req.Send()
return out, err
}
var opSetIdentityDKIMEnabled *aws.Operation
// SetIdentityFeedbackForwardingEnabledRequest generates a request for the SetIdentityFeedbackForwardingEnabled operation.
func (c *SES) SetIdentityFeedbackForwardingEnabledRequest(input *SetIdentityFeedbackForwardingEnabledInput) (req *aws.Request, output *SetIdentityFeedbackForwardingEnabledOutput) {
oprw.Lock()
defer oprw.Unlock()
if opSetIdentityFeedbackForwardingEnabled == nil {
opSetIdentityFeedbackForwardingEnabled = &aws.Operation{
Name: "SetIdentityFeedbackForwardingEnabled",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &SetIdentityFeedbackForwardingEnabledInput{}
}
req = c.newRequest(opSetIdentityFeedbackForwardingEnabled, input, output)
output = &SetIdentityFeedbackForwardingEnabledOutput{}
req.Data = output
return
}
// Given an identity (email address or domain), enables or disables whether
// Amazon SES forwards bounce and complaint notifications as email. Feedback
// forwarding can only be disabled when Amazon Simple Notification Service (Amazon
// SNS) topics are specified for both bounces and complaints.
//
// Feedback forwarding does not apply to delivery notifications. Delivery notifications
// are only available through Amazon SNS. This action is throttled at one request
// per second.
//
// For more information about using notifications with Amazon SES, see the
// Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html).
func (c *SES) SetIdentityFeedbackForwardingEnabled(input *SetIdentityFeedbackForwardingEnabledInput) (*SetIdentityFeedbackForwardingEnabledOutput, error) {
req, out := c.SetIdentityFeedbackForwardingEnabledRequest(input)
err := req.Send()
return out, err
}
var opSetIdentityFeedbackForwardingEnabled *aws.Operation
// SetIdentityNotificationTopicRequest generates a request for the SetIdentityNotificationTopic operation.
func (c *SES) SetIdentityNotificationTopicRequest(input *SetIdentityNotificationTopicInput) (req *aws.Request, output *SetIdentityNotificationTopicOutput) {
oprw.Lock()
defer oprw.Unlock()
if opSetIdentityNotificationTopic == nil {
opSetIdentityNotificationTopic = &aws.Operation{
Name: "SetIdentityNotificationTopic",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &SetIdentityNotificationTopicInput{}
}
req = c.newRequest(opSetIdentityNotificationTopic, input, output)
output = &SetIdentityNotificationTopicOutput{}
req.Data = output
return
}
// Given an identity (email address or domain), sets the Amazon Simple Notification
// Service (Amazon SNS) topic to which Amazon SES will publish bounce, complaint,
// and/or delivery notifications for emails sent with that identity as the Source.
//
// Unless feedback forwarding is enabled, you must specify Amazon SNS topics
// for bounce and complaint notifications. For more information, see SetIdentityFeedbackForwardingEnabled.
// This action is throttled at one request per second.
//
// For more information about feedback notification, see the Amazon SES Developer
// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html).
func (c *SES) SetIdentityNotificationTopic(input *SetIdentityNotificationTopicInput) (*SetIdentityNotificationTopicOutput, error) {
req, out := c.SetIdentityNotificationTopicRequest(input)
err := req.Send()
return out, err
}
var opSetIdentityNotificationTopic *aws.Operation
// VerifyDomainDKIMRequest generates a request for the VerifyDomainDKIM operation.
func (c *SES) VerifyDomainDKIMRequest(input *VerifyDomainDKIMInput) (req *aws.Request, output *VerifyDomainDKIMOutput) {
oprw.Lock()
defer oprw.Unlock()
if opVerifyDomainDKIM == nil {
opVerifyDomainDKIM = &aws.Operation{
Name: "VerifyDomainDkim",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &VerifyDomainDKIMInput{}
}
req = c.newRequest(opVerifyDomainDKIM, input, output)
output = &VerifyDomainDKIMOutput{}
req.Data = output
return
}
// Returns a set of DKIM tokens for a domain. DKIM tokens are character strings
// that represent your domain's identity. Using these tokens, you will need
// to create DNS CNAME records that point to DKIM public keys hosted by Amazon
// SES. Amazon Web Services will eventually detect that you have updated your
// DNS records; this detection process may take up to 72 hours. Upon successful
// detection, Amazon SES will be able to DKIM-sign email originating from that
// domain.
//
// This action is throttled at one request per second.
//
// To enable or disable Easy DKIM signing for a domain, use the SetIdentityDkimEnabled
// action.
//
// For more information about creating DNS records using DKIM tokens, go to
// the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim-dns-records.html).
func (c *SES) VerifyDomainDKIM(input *VerifyDomainDKIMInput) (*VerifyDomainDKIMOutput, error) {
req, out := c.VerifyDomainDKIMRequest(input)
err := req.Send()
return out, err
}
var opVerifyDomainDKIM *aws.Operation
// VerifyDomainIdentityRequest generates a request for the VerifyDomainIdentity operation.
func (c *SES) VerifyDomainIdentityRequest(input *VerifyDomainIdentityInput) (req *aws.Request, output *VerifyDomainIdentityOutput) {
oprw.Lock()
defer oprw.Unlock()
if opVerifyDomainIdentity == nil {
opVerifyDomainIdentity = &aws.Operation{
Name: "VerifyDomainIdentity",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &VerifyDomainIdentityInput{}
}
req = c.newRequest(opVerifyDomainIdentity, input, output)
output = &VerifyDomainIdentityOutput{}
req.Data = output
return
}
// Verifies a domain.
//
// This action is throttled at one request per second.
func (c *SES) VerifyDomainIdentity(input *VerifyDomainIdentityInput) (*VerifyDomainIdentityOutput, error) {
req, out := c.VerifyDomainIdentityRequest(input)
err := req.Send()
return out, err
}
var opVerifyDomainIdentity *aws.Operation
// VerifyEmailAddressRequest generates a request for the VerifyEmailAddress operation.
func (c *SES) VerifyEmailAddressRequest(input *VerifyEmailAddressInput) (req *aws.Request, output *VerifyEmailAddressOutput) {
oprw.Lock()
defer oprw.Unlock()
if opVerifyEmailAddress == nil {
opVerifyEmailAddress = &aws.Operation{
Name: "VerifyEmailAddress",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &VerifyEmailAddressInput{}
}
req = c.newRequest(opVerifyEmailAddress, input, output)
output = &VerifyEmailAddressOutput{}
req.Data = output
return
}
// Verifies an email address. This action causes a confirmation email message
// to be sent to the specified address.
//
// The VerifyEmailAddress action is deprecated as of the May 15, 2012 release
// of Domain Verification. The VerifyEmailIdentity action is now preferred.
// This action is throttled at one request per second.
func (c *SES) VerifyEmailAddress(input *VerifyEmailAddressInput) (*VerifyEmailAddressOutput, error) {
req, out := c.VerifyEmailAddressRequest(input)
err := req.Send()
return out, err
}
var opVerifyEmailAddress *aws.Operation
// VerifyEmailIdentityRequest generates a request for the VerifyEmailIdentity operation.
func (c *SES) VerifyEmailIdentityRequest(input *VerifyEmailIdentityInput) (req *aws.Request, output *VerifyEmailIdentityOutput) {
oprw.Lock()
defer oprw.Unlock()
if opVerifyEmailIdentity == nil {
opVerifyEmailIdentity = &aws.Operation{
Name: "VerifyEmailIdentity",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &VerifyEmailIdentityInput{}
}
req = c.newRequest(opVerifyEmailIdentity, input, output)
output = &VerifyEmailIdentityOutput{}
req.Data = output
return
}
// Verifies an email address. This action causes a confirmation email message
// to be sent to the specified address.
//
// This action is throttled at one request per second.
func (c *SES) VerifyEmailIdentity(input *VerifyEmailIdentityInput) (*VerifyEmailIdentityOutput, error) {
req, out := c.VerifyEmailIdentityRequest(input)
err := req.Send()
return out, err
}
var opVerifyEmailIdentity *aws.Operation
// Represents the body of the message. You can specify text, HTML, or both.
// If you use both, then the message should display correctly in the widest
// variety of email clients.
type Body struct {
// The content of the message, in HTML format. Use this for email clients that
// can process HTML. You can include clickable links, formatted text, and much
// more in an HTML message.
HTML *Content `locationName:"Html" type:"structure"`
// The content of the message, in text format. Use this for text-based email
// clients, or clients on high-latency networks (such as mobile devices).
Text *Content `type:"structure"`
metadataBody `json:"-" xml:"-"`
}
type metadataBody struct {
SDKShapeTraits bool `type:"structure"`
}
// Represents textual data, plus an optional character set specification.
//
// By default, the text must be 7-bit ASCII, due to the constraints of the
// SMTP protocol. If the text must contain any other characters, then you must
// also specify a character set. Examples include UTF-8, ISO-8859-1, and Shift_JIS.
type Content struct {
// The character set of the content.
Charset *string `type:"string"`
// The textual data of the content.
Data *string `type:"string" required:"true"`
metadataContent `json:"-" xml:"-"`
}
type metadataContent struct {
SDKShapeTraits bool `type:"structure"`
}
// Represents a request instructing the service to delete an identity from the
// list of identities for the AWS Account.
type DeleteIdentityInput struct {
// The identity to be removed from the list of identities for the AWS Account.
Identity *string `type:"string" required:"true"`
metadataDeleteIdentityInput `json:"-" xml:"-"`
}
type metadataDeleteIdentityInput struct {
SDKShapeTraits bool `type:"structure"`
}
// An empty element. Receiving this element indicates that the request completed
// successfully.
type DeleteIdentityOutput struct {
metadataDeleteIdentityOutput `json:"-" xml:"-"`
}
type metadataDeleteIdentityOutput struct {
SDKShapeTraits bool `type:"structure"`
}
// Represents a request instructing the service to delete an address from the
// list of verified email addresses.
type DeleteVerifiedEmailAddressInput struct {
// An email address to be removed from the list of verified addresses.
EmailAddress *string `type:"string" required:"true"`
metadataDeleteVerifiedEmailAddressInput `json:"-" xml:"-"`
}
type metadataDeleteVerifiedEmailAddressInput struct {
SDKShapeTraits bool `type:"structure"`
}
type DeleteVerifiedEmailAddressOutput struct {
metadataDeleteVerifiedEmailAddressOutput `json:"-" xml:"-"`
}
type metadataDeleteVerifiedEmailAddressOutput struct {
SDKShapeTraits bool `type:"structure"`
}
// Represents the destination of the message, consisting of To:, CC:, and BCC:
// fields.
//
// By default, the string must be 7-bit ASCII. If the text must contain any
// other characters, then you must use MIME encoded-word syntax (RFC 2047) instead
// of a literal string. MIME encoded-word syntax uses the following form: =?charset?encoding?encoded-text?=.
// For more information, see RFC 2047 (http://tools.ietf.org/html/rfc2047).
type Destination struct {
// The BCC: field(s) of the message.
BCCAddresses []*string `locationName:"BccAddresses" type:"list"`
// The CC: field(s) of the message.
CCAddresses []*string `locationName:"CcAddresses" type:"list"`
// The To: field(s) of the message.
ToAddresses []*string `type:"list"`
metadataDestination `json:"-" xml:"-"`
}
type metadataDestination struct {
SDKShapeTraits bool `type:"structure"`
}
// Given a list of verified identities, describes their DKIM attributes. The
// DKIM attributes of an email address identity includes whether DKIM signing
// is individually enabled or disabled for that address. The DKIM attributes
// of a domain name identity includes whether DKIM signing is enabled, as well
// as the DNS records (tokens) that must remain published in the domain name's
// DNS.
type GetIdentityDKIMAttributesInput struct {
// A list of one or more verified identities - email addresses, domains, or
// both.
Identities []*string `type:"list" required:"true"`
metadataGetIdentityDKIMAttributesInput `json:"-" xml:"-"`
}
type metadataGetIdentityDKIMAttributesInput struct {
SDKShapeTraits bool `type:"structure"`
}
// Represents a list of all the DKIM attributes for the specified identity.
type GetIdentityDKIMAttributesOutput struct {
// The DKIM attributes for an email address or a domain.
DKIMAttributes map[string]*IdentityDKIMAttributes `locationName:"DkimAttributes" type:"map" required:"true"`
metadataGetIdentityDKIMAttributesOutput `json:"-" xml:"-"`
}
type metadataGetIdentityDKIMAttributesOutput struct {
SDKShapeTraits bool `type:"structure"`
}
type GetIdentityNotificationAttributesInput struct {
// A list of one or more identities.
Identities []*string `type:"list" required:"true"`
metadataGetIdentityNotificationAttributesInput `json:"-" xml:"-"`
}
type metadataGetIdentityNotificationAttributesInput struct {
SDKShapeTraits bool `type:"structure"`
}
// Describes whether an identity has Amazon Simple Notification Service (Amazon
// SNS) topics set for bounce, complaint, and/or delivery notifications, and
// specifies whether feedback forwarding is enabled for bounce and complaint
// notifications.
type GetIdentityNotificationAttributesOutput struct {
// A map of Identity to IdentityNotificationAttributes.
NotificationAttributes map[string]*IdentityNotificationAttributes `type:"map" required:"true"`
metadataGetIdentityNotificationAttributesOutput `json:"-" xml:"-"`
}
type metadataGetIdentityNotificationAttributesOutput struct {
SDKShapeTraits bool `type:"structure"`
}
// Represents a request instructing the service to provide the verification
// attributes for a list of identities.
type GetIdentityVerificationAttributesInput struct {
// A list of identities.
Identities []*string `type:"list" required:"true"`
metadataGetIdentityVerificationAttributesInput `json:"-" xml:"-"`
}
type metadataGetIdentityVerificationAttributesInput struct {
SDKShapeTraits bool `type:"structure"`
}
// Represents the verification attributes for a list of identities.
type GetIdentityVerificationAttributesOutput struct {
// A map of Identities to IdentityVerificationAttributes objects.
VerificationAttributes map[string]*IdentityVerificationAttributes `type:"map" required:"true"`
metadataGetIdentityVerificationAttributesOutput `json:"-" xml:"-"`
}
type metadataGetIdentityVerificationAttributesOutput struct {
SDKShapeTraits bool `type:"structure"`
}
type GetSendQuotaInput struct {
metadataGetSendQuotaInput `json:"-" xml:"-"`
}
type metadataGetSendQuotaInput struct {
SDKShapeTraits bool `type:"structure"`
}
// Represents the user's current activity limits returned from a successful
// GetSendQuota request.
type GetSendQuotaOutput struct {
// The maximum number of emails the user is allowed to send in a 24-hour interval.
// A value of -1 signifies an unlimited quota.
Max24HourSend *float64 `type:"double"`
// The maximum number of emails that Amazon SES can accept from the user's account
// per second.
//
// The rate at which Amazon SES accepts the user's messages might be less than
// the maximum send rate.
MaxSendRate *float64 `type:"double"`
// The number of emails sent during the previous 24 hours.
SentLast24Hours *float64 `type:"double"`
metadataGetSendQuotaOutput `json:"-" xml:"-"`
}
type metadataGetSendQuotaOutput struct {
SDKShapeTraits bool `type:"structure"`
}
type GetSendStatisticsInput struct {
metadataGetSendStatisticsInput `json:"-" xml:"-"`
}
type metadataGetSendStatisticsInput struct {
SDKShapeTraits bool `type:"structure"`
}
// Represents a list of SendDataPoint items returned from a successful GetSendStatistics
// request. This list contains aggregated data from the previous two weeks of
// sending activity.
type GetSendStatisticsOutput struct {
// A list of data points, each of which represents 15 minutes of activity.
SendDataPoints []*SendDataPoint `type:"list"`
metadataGetSendStatisticsOutput `json:"-" xml:"-"`
}
type metadataGetSendStatisticsOutput struct {
SDKShapeTraits bool `type:"structure"`
}
// Represents the DKIM attributes of a verified email address or a domain.
type IdentityDKIMAttributes struct {
// True if DKIM signing is enabled for email sent from the identity; false otherwise.
DKIMEnabled *bool `locationName:"DkimEnabled" type:"boolean" required:"true"`
// A set of character strings that represent the domain's identity. Using these