api.go 81 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package ses provides a client for Amazon Simple Email Service.
  3. package ses
  4. import (
  5. "time"
  6. "github.com/aws/aws-sdk-go/aws/awsutil"
  7. "github.com/aws/aws-sdk-go/aws/request"
  8. )
  9. const opDeleteIdentity = "DeleteIdentity"
  10. // DeleteIdentityRequest generates a request for the DeleteIdentity operation.
  11. func (c *SES) DeleteIdentityRequest(input *DeleteIdentityInput) (req *request.Request, output *DeleteIdentityOutput) {
  12. op := &request.Operation{
  13. Name: opDeleteIdentity,
  14. HTTPMethod: "POST",
  15. HTTPPath: "/",
  16. }
  17. if input == nil {
  18. input = &DeleteIdentityInput{}
  19. }
  20. req = c.newRequest(op, input, output)
  21. output = &DeleteIdentityOutput{}
  22. req.Data = output
  23. return
  24. }
  25. // Deletes the specified identity (email address or domain) from the list of
  26. // verified identities.
  27. //
  28. // This action is throttled at one request per second.
  29. func (c *SES) DeleteIdentity(input *DeleteIdentityInput) (*DeleteIdentityOutput, error) {
  30. req, out := c.DeleteIdentityRequest(input)
  31. err := req.Send()
  32. return out, err
  33. }
  34. const opDeleteIdentityPolicy = "DeleteIdentityPolicy"
  35. // DeleteIdentityPolicyRequest generates a request for the DeleteIdentityPolicy operation.
  36. func (c *SES) DeleteIdentityPolicyRequest(input *DeleteIdentityPolicyInput) (req *request.Request, output *DeleteIdentityPolicyOutput) {
  37. op := &request.Operation{
  38. Name: opDeleteIdentityPolicy,
  39. HTTPMethod: "POST",
  40. HTTPPath: "/",
  41. }
  42. if input == nil {
  43. input = &DeleteIdentityPolicyInput{}
  44. }
  45. req = c.newRequest(op, input, output)
  46. output = &DeleteIdentityPolicyOutput{}
  47. req.Data = output
  48. return
  49. }
  50. // Deletes the specified sending authorization policy for the given identity
  51. // (email address or domain). This API returns successfully even if a policy
  52. // with the specified name does not exist.
  53. //
  54. // This API is for the identity owner only. If you have not verified the identity,
  55. // this API will return an error. Sending authorization is a feature that enables
  56. // an identity owner to authorize other senders to use its identities. For information
  57. // about using sending authorization, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html).
  58. //
  59. // This action is throttled at one request per second.
  60. func (c *SES) DeleteIdentityPolicy(input *DeleteIdentityPolicyInput) (*DeleteIdentityPolicyOutput, error) {
  61. req, out := c.DeleteIdentityPolicyRequest(input)
  62. err := req.Send()
  63. return out, err
  64. }
  65. const opDeleteVerifiedEmailAddress = "DeleteVerifiedEmailAddress"
  66. // DeleteVerifiedEmailAddressRequest generates a request for the DeleteVerifiedEmailAddress operation.
  67. func (c *SES) DeleteVerifiedEmailAddressRequest(input *DeleteVerifiedEmailAddressInput) (req *request.Request, output *DeleteVerifiedEmailAddressOutput) {
  68. op := &request.Operation{
  69. Name: opDeleteVerifiedEmailAddress,
  70. HTTPMethod: "POST",
  71. HTTPPath: "/",
  72. }
  73. if input == nil {
  74. input = &DeleteVerifiedEmailAddressInput{}
  75. }
  76. req = c.newRequest(op, input, output)
  77. output = &DeleteVerifiedEmailAddressOutput{}
  78. req.Data = output
  79. return
  80. }
  81. // Deletes the specified email address from the list of verified addresses.
  82. //
  83. // The DeleteVerifiedEmailAddress action is deprecated as of the May 15, 2012
  84. // release of Domain Verification. The DeleteIdentity action is now preferred.
  85. // This action is throttled at one request per second.
  86. func (c *SES) DeleteVerifiedEmailAddress(input *DeleteVerifiedEmailAddressInput) (*DeleteVerifiedEmailAddressOutput, error) {
  87. req, out := c.DeleteVerifiedEmailAddressRequest(input)
  88. err := req.Send()
  89. return out, err
  90. }
  91. const opGetIdentityDkimAttributes = "GetIdentityDkimAttributes"
  92. // GetIdentityDkimAttributesRequest generates a request for the GetIdentityDkimAttributes operation.
  93. func (c *SES) GetIdentityDkimAttributesRequest(input *GetIdentityDkimAttributesInput) (req *request.Request, output *GetIdentityDkimAttributesOutput) {
  94. op := &request.Operation{
  95. Name: opGetIdentityDkimAttributes,
  96. HTTPMethod: "POST",
  97. HTTPPath: "/",
  98. }
  99. if input == nil {
  100. input = &GetIdentityDkimAttributesInput{}
  101. }
  102. req = c.newRequest(op, input, output)
  103. output = &GetIdentityDkimAttributesOutput{}
  104. req.Data = output
  105. return
  106. }
  107. // Returns the current status of Easy DKIM signing for an entity. For domain
  108. // name identities, this action also returns the DKIM tokens that are required
  109. // for Easy DKIM signing, and whether Amazon SES has successfully verified that
  110. // these tokens have been published.
  111. //
  112. // This action takes a list of identities as input and returns the following
  113. // information for each:
  114. //
  115. // Whether Easy DKIM signing is enabled or disabled. A set of DKIM tokens
  116. // that represent the identity. If the identity is an email address, the tokens
  117. // represent the domain of that address. Whether Amazon SES has successfully
  118. // verified the DKIM tokens published in the domain's DNS. This information
  119. // is only returned for domain name identities, not for email addresses. This
  120. // action is throttled at one request per second and can only get DKIM attributes
  121. // for up to 100 identities at a time.
  122. //
  123. // For more information about creating DNS records using DKIM tokens, go to
  124. // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim-dns-records.html).
  125. func (c *SES) GetIdentityDkimAttributes(input *GetIdentityDkimAttributesInput) (*GetIdentityDkimAttributesOutput, error) {
  126. req, out := c.GetIdentityDkimAttributesRequest(input)
  127. err := req.Send()
  128. return out, err
  129. }
  130. const opGetIdentityNotificationAttributes = "GetIdentityNotificationAttributes"
  131. // GetIdentityNotificationAttributesRequest generates a request for the GetIdentityNotificationAttributes operation.
  132. func (c *SES) GetIdentityNotificationAttributesRequest(input *GetIdentityNotificationAttributesInput) (req *request.Request, output *GetIdentityNotificationAttributesOutput) {
  133. op := &request.Operation{
  134. Name: opGetIdentityNotificationAttributes,
  135. HTTPMethod: "POST",
  136. HTTPPath: "/",
  137. }
  138. if input == nil {
  139. input = &GetIdentityNotificationAttributesInput{}
  140. }
  141. req = c.newRequest(op, input, output)
  142. output = &GetIdentityNotificationAttributesOutput{}
  143. req.Data = output
  144. return
  145. }
  146. // Given a list of verified identities (email addresses and/or domains), returns
  147. // a structure describing identity notification attributes.
  148. //
  149. // This action is throttled at one request per second and can only get notification
  150. // attributes for up to 100 identities at a time.
  151. //
  152. // For more information about using notifications with Amazon SES, see the
  153. // Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html).
  154. func (c *SES) GetIdentityNotificationAttributes(input *GetIdentityNotificationAttributesInput) (*GetIdentityNotificationAttributesOutput, error) {
  155. req, out := c.GetIdentityNotificationAttributesRequest(input)
  156. err := req.Send()
  157. return out, err
  158. }
  159. const opGetIdentityPolicies = "GetIdentityPolicies"
  160. // GetIdentityPoliciesRequest generates a request for the GetIdentityPolicies operation.
  161. func (c *SES) GetIdentityPoliciesRequest(input *GetIdentityPoliciesInput) (req *request.Request, output *GetIdentityPoliciesOutput) {
  162. op := &request.Operation{
  163. Name: opGetIdentityPolicies,
  164. HTTPMethod: "POST",
  165. HTTPPath: "/",
  166. }
  167. if input == nil {
  168. input = &GetIdentityPoliciesInput{}
  169. }
  170. req = c.newRequest(op, input, output)
  171. output = &GetIdentityPoliciesOutput{}
  172. req.Data = output
  173. return
  174. }
  175. // Returns the requested sending authorization policies for the given identity
  176. // (email address or domain). The policies are returned as a map of policy names
  177. // to policy contents. You can retrieve a maximum of 20 policies at a time.
  178. //
  179. // This API is for the identity owner only. If you have not verified the identity,
  180. // this API will return an error. Sending authorization is a feature that enables
  181. // an identity owner to authorize other senders to use its identities. For information
  182. // about using sending authorization, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html).
  183. //
  184. // This action is throttled at one request per second.
  185. func (c *SES) GetIdentityPolicies(input *GetIdentityPoliciesInput) (*GetIdentityPoliciesOutput, error) {
  186. req, out := c.GetIdentityPoliciesRequest(input)
  187. err := req.Send()
  188. return out, err
  189. }
  190. const opGetIdentityVerificationAttributes = "GetIdentityVerificationAttributes"
  191. // GetIdentityVerificationAttributesRequest generates a request for the GetIdentityVerificationAttributes operation.
  192. func (c *SES) GetIdentityVerificationAttributesRequest(input *GetIdentityVerificationAttributesInput) (req *request.Request, output *GetIdentityVerificationAttributesOutput) {
  193. op := &request.Operation{
  194. Name: opGetIdentityVerificationAttributes,
  195. HTTPMethod: "POST",
  196. HTTPPath: "/",
  197. }
  198. if input == nil {
  199. input = &GetIdentityVerificationAttributesInput{}
  200. }
  201. req = c.newRequest(op, input, output)
  202. output = &GetIdentityVerificationAttributesOutput{}
  203. req.Data = output
  204. return
  205. }
  206. // Given a list of identities (email addresses and/or domains), returns the
  207. // verification status and (for domain identities) the verification token for
  208. // each identity.
  209. //
  210. // This action is throttled at one request per second and can only get verification
  211. // attributes for up to 100 identities at a time.
  212. func (c *SES) GetIdentityVerificationAttributes(input *GetIdentityVerificationAttributesInput) (*GetIdentityVerificationAttributesOutput, error) {
  213. req, out := c.GetIdentityVerificationAttributesRequest(input)
  214. err := req.Send()
  215. return out, err
  216. }
  217. const opGetSendQuota = "GetSendQuota"
  218. // GetSendQuotaRequest generates a request for the GetSendQuota operation.
  219. func (c *SES) GetSendQuotaRequest(input *GetSendQuotaInput) (req *request.Request, output *GetSendQuotaOutput) {
  220. op := &request.Operation{
  221. Name: opGetSendQuota,
  222. HTTPMethod: "POST",
  223. HTTPPath: "/",
  224. }
  225. if input == nil {
  226. input = &GetSendQuotaInput{}
  227. }
  228. req = c.newRequest(op, input, output)
  229. output = &GetSendQuotaOutput{}
  230. req.Data = output
  231. return
  232. }
  233. // Returns the user's current sending limits.
  234. //
  235. // This action is throttled at one request per second.
  236. func (c *SES) GetSendQuota(input *GetSendQuotaInput) (*GetSendQuotaOutput, error) {
  237. req, out := c.GetSendQuotaRequest(input)
  238. err := req.Send()
  239. return out, err
  240. }
  241. const opGetSendStatistics = "GetSendStatistics"
  242. // GetSendStatisticsRequest generates a request for the GetSendStatistics operation.
  243. func (c *SES) GetSendStatisticsRequest(input *GetSendStatisticsInput) (req *request.Request, output *GetSendStatisticsOutput) {
  244. op := &request.Operation{
  245. Name: opGetSendStatistics,
  246. HTTPMethod: "POST",
  247. HTTPPath: "/",
  248. }
  249. if input == nil {
  250. input = &GetSendStatisticsInput{}
  251. }
  252. req = c.newRequest(op, input, output)
  253. output = &GetSendStatisticsOutput{}
  254. req.Data = output
  255. return
  256. }
  257. // Returns the user's sending statistics. The result is a list of data points,
  258. // representing the last two weeks of sending activity.
  259. //
  260. // Each data point in the list contains statistics for a 15-minute interval.
  261. //
  262. // This action is throttled at one request per second.
  263. func (c *SES) GetSendStatistics(input *GetSendStatisticsInput) (*GetSendStatisticsOutput, error) {
  264. req, out := c.GetSendStatisticsRequest(input)
  265. err := req.Send()
  266. return out, err
  267. }
  268. const opListIdentities = "ListIdentities"
  269. // ListIdentitiesRequest generates a request for the ListIdentities operation.
  270. func (c *SES) ListIdentitiesRequest(input *ListIdentitiesInput) (req *request.Request, output *ListIdentitiesOutput) {
  271. op := &request.Operation{
  272. Name: opListIdentities,
  273. HTTPMethod: "POST",
  274. HTTPPath: "/",
  275. Paginator: &request.Paginator{
  276. InputTokens: []string{"NextToken"},
  277. OutputTokens: []string{"NextToken"},
  278. LimitToken: "MaxItems",
  279. TruncationToken: "",
  280. },
  281. }
  282. if input == nil {
  283. input = &ListIdentitiesInput{}
  284. }
  285. req = c.newRequest(op, input, output)
  286. output = &ListIdentitiesOutput{}
  287. req.Data = output
  288. return
  289. }
  290. // Returns a list containing all of the identities (email addresses and domains)
  291. // for a specific AWS Account, regardless of verification status.
  292. //
  293. // This action is throttled at one request per second.
  294. func (c *SES) ListIdentities(input *ListIdentitiesInput) (*ListIdentitiesOutput, error) {
  295. req, out := c.ListIdentitiesRequest(input)
  296. err := req.Send()
  297. return out, err
  298. }
  299. func (c *SES) ListIdentitiesPages(input *ListIdentitiesInput, fn func(p *ListIdentitiesOutput, lastPage bool) (shouldContinue bool)) error {
  300. page, _ := c.ListIdentitiesRequest(input)
  301. return page.EachPage(func(p interface{}, lastPage bool) bool {
  302. return fn(p.(*ListIdentitiesOutput), lastPage)
  303. })
  304. }
  305. const opListIdentityPolicies = "ListIdentityPolicies"
  306. // ListIdentityPoliciesRequest generates a request for the ListIdentityPolicies operation.
  307. func (c *SES) ListIdentityPoliciesRequest(input *ListIdentityPoliciesInput) (req *request.Request, output *ListIdentityPoliciesOutput) {
  308. op := &request.Operation{
  309. Name: opListIdentityPolicies,
  310. HTTPMethod: "POST",
  311. HTTPPath: "/",
  312. }
  313. if input == nil {
  314. input = &ListIdentityPoliciesInput{}
  315. }
  316. req = c.newRequest(op, input, output)
  317. output = &ListIdentityPoliciesOutput{}
  318. req.Data = output
  319. return
  320. }
  321. // Returns a list of sending authorization policies that are attached to the
  322. // given identity (email address or domain). This API returns only a list. If
  323. // you want the actual policy content, you can use GetIdentityPolicies.
  324. //
  325. // This API is for the identity owner only. If you have not verified the identity,
  326. // this API will return an error. Sending authorization is a feature that enables
  327. // an identity owner to authorize other senders to use its identities. For information
  328. // about using sending authorization, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html).
  329. //
  330. // This action is throttled at one request per second.
  331. func (c *SES) ListIdentityPolicies(input *ListIdentityPoliciesInput) (*ListIdentityPoliciesOutput, error) {
  332. req, out := c.ListIdentityPoliciesRequest(input)
  333. err := req.Send()
  334. return out, err
  335. }
  336. const opListVerifiedEmailAddresses = "ListVerifiedEmailAddresses"
  337. // ListVerifiedEmailAddressesRequest generates a request for the ListVerifiedEmailAddresses operation.
  338. func (c *SES) ListVerifiedEmailAddressesRequest(input *ListVerifiedEmailAddressesInput) (req *request.Request, output *ListVerifiedEmailAddressesOutput) {
  339. op := &request.Operation{
  340. Name: opListVerifiedEmailAddresses,
  341. HTTPMethod: "POST",
  342. HTTPPath: "/",
  343. }
  344. if input == nil {
  345. input = &ListVerifiedEmailAddressesInput{}
  346. }
  347. req = c.newRequest(op, input, output)
  348. output = &ListVerifiedEmailAddressesOutput{}
  349. req.Data = output
  350. return
  351. }
  352. // Returns a list containing all of the email addresses that have been verified.
  353. //
  354. // The ListVerifiedEmailAddresses action is deprecated as of the May 15, 2012
  355. // release of Domain Verification. The ListIdentities action is now preferred.
  356. // This action is throttled at one request per second.
  357. func (c *SES) ListVerifiedEmailAddresses(input *ListVerifiedEmailAddressesInput) (*ListVerifiedEmailAddressesOutput, error) {
  358. req, out := c.ListVerifiedEmailAddressesRequest(input)
  359. err := req.Send()
  360. return out, err
  361. }
  362. const opPutIdentityPolicy = "PutIdentityPolicy"
  363. // PutIdentityPolicyRequest generates a request for the PutIdentityPolicy operation.
  364. func (c *SES) PutIdentityPolicyRequest(input *PutIdentityPolicyInput) (req *request.Request, output *PutIdentityPolicyOutput) {
  365. op := &request.Operation{
  366. Name: opPutIdentityPolicy,
  367. HTTPMethod: "POST",
  368. HTTPPath: "/",
  369. }
  370. if input == nil {
  371. input = &PutIdentityPolicyInput{}
  372. }
  373. req = c.newRequest(op, input, output)
  374. output = &PutIdentityPolicyOutput{}
  375. req.Data = output
  376. return
  377. }
  378. // Adds or updates a sending authorization policy for the specified identity
  379. // (email address or domain).
  380. //
  381. // This API is for the identity owner only. If you have not verified the identity,
  382. // this API will return an error. Sending authorization is a feature that enables
  383. // an identity owner to authorize other senders to use its identities. For information
  384. // about using sending authorization, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html).
  385. //
  386. // This action is throttled at one request per second.
  387. func (c *SES) PutIdentityPolicy(input *PutIdentityPolicyInput) (*PutIdentityPolicyOutput, error) {
  388. req, out := c.PutIdentityPolicyRequest(input)
  389. err := req.Send()
  390. return out, err
  391. }
  392. const opSendEmail = "SendEmail"
  393. // SendEmailRequest generates a request for the SendEmail operation.
  394. func (c *SES) SendEmailRequest(input *SendEmailInput) (req *request.Request, output *SendEmailOutput) {
  395. op := &request.Operation{
  396. Name: opSendEmail,
  397. HTTPMethod: "POST",
  398. HTTPPath: "/",
  399. }
  400. if input == nil {
  401. input = &SendEmailInput{}
  402. }
  403. req = c.newRequest(op, input, output)
  404. output = &SendEmailOutput{}
  405. req.Data = output
  406. return
  407. }
  408. // Composes an email message based on input data, and then immediately queues
  409. // the message for sending.
  410. //
  411. // There are several important points to know about SendEmail:
  412. //
  413. // You can only send email from verified email addresses and domains; otherwise,
  414. // you will get an "Email address not verified" error. If your account is still
  415. // in the Amazon SES sandbox, you must also verify every recipient email address
  416. // except for the recipients provided by the Amazon SES mailbox simulator. For
  417. // more information, go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html).
  418. // The total size of the message cannot exceed 10 MB. This includes any attachments
  419. // that are part of the message. Amazon SES has a limit on the total number
  420. // of recipients per message. The combined number of To:, CC: and BCC: email
  421. // addresses cannot exceed 50. If you need to send an email message to a larger
  422. // audience, you can divide your recipient list into groups of 50 or fewer,
  423. // and then call Amazon SES repeatedly to send the message to each group. For
  424. // every message that you send, the total number of recipients (To:, CC: and
  425. // BCC:) is counted against your sending quota - the maximum number of emails
  426. // you can send in a 24-hour period. For information about your sending quota,
  427. // go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/manage-sending-limits.html).
  428. func (c *SES) SendEmail(input *SendEmailInput) (*SendEmailOutput, error) {
  429. req, out := c.SendEmailRequest(input)
  430. err := req.Send()
  431. return out, err
  432. }
  433. const opSendRawEmail = "SendRawEmail"
  434. // SendRawEmailRequest generates a request for the SendRawEmail operation.
  435. func (c *SES) SendRawEmailRequest(input *SendRawEmailInput) (req *request.Request, output *SendRawEmailOutput) {
  436. op := &request.Operation{
  437. Name: opSendRawEmail,
  438. HTTPMethod: "POST",
  439. HTTPPath: "/",
  440. }
  441. if input == nil {
  442. input = &SendRawEmailInput{}
  443. }
  444. req = c.newRequest(op, input, output)
  445. output = &SendRawEmailOutput{}
  446. req.Data = output
  447. return
  448. }
  449. // Sends an email message, with header and content specified by the client.
  450. // The SendRawEmail action is useful for sending multipart MIME emails. The
  451. // raw text of the message must comply with Internet email standards; otherwise,
  452. // the message cannot be sent.
  453. //
  454. // There are several important points to know about SendRawEmail:
  455. //
  456. // You can only send email from verified email addresses and domains; otherwise,
  457. // you will get an "Email address not verified" error. If your account is still
  458. // in the Amazon SES sandbox, you must also verify every recipient email address
  459. // except for the recipients provided by the Amazon SES mailbox simulator. For
  460. // more information, go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html).
  461. // The total size of the message cannot exceed 10 MB. This includes any attachments
  462. // that are part of the message. Amazon SES has a limit on the total number
  463. // of recipients per message. The combined number of To:, CC: and BCC: email
  464. // addresses cannot exceed 50. If you need to send an email message to a larger
  465. // audience, you can divide your recipient list into groups of 50 or fewer,
  466. // and then call Amazon SES repeatedly to send the message to each group. The
  467. // To:, CC:, and BCC: headers in the raw message can contain a group list. Note
  468. // that each recipient in a group list counts towards the 50-recipient limit.
  469. // For every message that you send, the total number of recipients (To:, CC:
  470. // and BCC:) is counted against your sending quota - the maximum number of emails
  471. // you can send in a 24-hour period. For information about your sending quota,
  472. // go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/manage-sending-limits.html).
  473. // If you are using sending authorization to send on behalf of another user,
  474. // SendRawEmail enables you to specify the cross-account identity for the email's
  475. // "Source," "From," and "Return-Path" parameters in one of two ways: you can
  476. // pass optional parameters SourceArn, FromArn, and/or ReturnPathArn to the
  477. // API, or you can include the following X-headers in the header of your raw
  478. // email: X-SES-SOURCE-ARN X-SES-FROM-ARN X-SES-RETURN-PATH-ARN Do not include
  479. // these X-headers in the DKIM signature, because they are removed by Amazon
  480. // SES before sending the email. For the most common sending authorization use
  481. // case, we recommend that you specify the SourceIdentityArn and do not specify
  482. // either the FromIdentityArn or ReturnPathIdentityArn. (The same note applies
  483. // to the corresponding X-headers.) If you only specify the SourceIdentityArn,
  484. // Amazon SES will simply set the "From" address and the "Return Path" address
  485. // to the identity specified in SourceIdentityArn. For more information about
  486. // sending authorization, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html).
  487. func (c *SES) SendRawEmail(input *SendRawEmailInput) (*SendRawEmailOutput, error) {
  488. req, out := c.SendRawEmailRequest(input)
  489. err := req.Send()
  490. return out, err
  491. }
  492. const opSetIdentityDkimEnabled = "SetIdentityDkimEnabled"
  493. // SetIdentityDkimEnabledRequest generates a request for the SetIdentityDkimEnabled operation.
  494. func (c *SES) SetIdentityDkimEnabledRequest(input *SetIdentityDkimEnabledInput) (req *request.Request, output *SetIdentityDkimEnabledOutput) {
  495. op := &request.Operation{
  496. Name: opSetIdentityDkimEnabled,
  497. HTTPMethod: "POST",
  498. HTTPPath: "/",
  499. }
  500. if input == nil {
  501. input = &SetIdentityDkimEnabledInput{}
  502. }
  503. req = c.newRequest(op, input, output)
  504. output = &SetIdentityDkimEnabledOutput{}
  505. req.Data = output
  506. return
  507. }
  508. // Enables or disables Easy DKIM signing of email sent from an identity:
  509. //
  510. // If Easy DKIM signing is enabled for a domain name identity (e.g., example.com),
  511. // then Amazon SES will DKIM-sign all email sent by addresses under that domain
  512. // name (e.g., user@example.com). If Easy DKIM signing is enabled for an email
  513. // address, then Amazon SES will DKIM-sign all email sent by that email address.
  514. // For email addresses (e.g., user@example.com), you can only enable Easy DKIM
  515. // signing if the corresponding domain (e.g., example.com) has been set up for
  516. // Easy DKIM using the AWS Console or the VerifyDomainDkim action.
  517. //
  518. // This action is throttled at one request per second.
  519. //
  520. // For more information about Easy DKIM signing, go to the Amazon SES Developer
  521. // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html).
  522. func (c *SES) SetIdentityDkimEnabled(input *SetIdentityDkimEnabledInput) (*SetIdentityDkimEnabledOutput, error) {
  523. req, out := c.SetIdentityDkimEnabledRequest(input)
  524. err := req.Send()
  525. return out, err
  526. }
  527. const opSetIdentityFeedbackForwardingEnabled = "SetIdentityFeedbackForwardingEnabled"
  528. // SetIdentityFeedbackForwardingEnabledRequest generates a request for the SetIdentityFeedbackForwardingEnabled operation.
  529. func (c *SES) SetIdentityFeedbackForwardingEnabledRequest(input *SetIdentityFeedbackForwardingEnabledInput) (req *request.Request, output *SetIdentityFeedbackForwardingEnabledOutput) {
  530. op := &request.Operation{
  531. Name: opSetIdentityFeedbackForwardingEnabled,
  532. HTTPMethod: "POST",
  533. HTTPPath: "/",
  534. }
  535. if input == nil {
  536. input = &SetIdentityFeedbackForwardingEnabledInput{}
  537. }
  538. req = c.newRequest(op, input, output)
  539. output = &SetIdentityFeedbackForwardingEnabledOutput{}
  540. req.Data = output
  541. return
  542. }
  543. // Given an identity (email address or domain), enables or disables whether
  544. // Amazon SES forwards bounce and complaint notifications as email. Feedback
  545. // forwarding can only be disabled when Amazon Simple Notification Service (Amazon
  546. // SNS) topics are specified for both bounces and complaints.
  547. //
  548. // Feedback forwarding does not apply to delivery notifications. Delivery notifications
  549. // are only available through Amazon SNS. This action is throttled at one request
  550. // per second.
  551. //
  552. // For more information about using notifications with Amazon SES, see the
  553. // Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html).
  554. func (c *SES) SetIdentityFeedbackForwardingEnabled(input *SetIdentityFeedbackForwardingEnabledInput) (*SetIdentityFeedbackForwardingEnabledOutput, error) {
  555. req, out := c.SetIdentityFeedbackForwardingEnabledRequest(input)
  556. err := req.Send()
  557. return out, err
  558. }
  559. const opSetIdentityNotificationTopic = "SetIdentityNotificationTopic"
  560. // SetIdentityNotificationTopicRequest generates a request for the SetIdentityNotificationTopic operation.
  561. func (c *SES) SetIdentityNotificationTopicRequest(input *SetIdentityNotificationTopicInput) (req *request.Request, output *SetIdentityNotificationTopicOutput) {
  562. op := &request.Operation{
  563. Name: opSetIdentityNotificationTopic,
  564. HTTPMethod: "POST",
  565. HTTPPath: "/",
  566. }
  567. if input == nil {
  568. input = &SetIdentityNotificationTopicInput{}
  569. }
  570. req = c.newRequest(op, input, output)
  571. output = &SetIdentityNotificationTopicOutput{}
  572. req.Data = output
  573. return
  574. }
  575. // Given an identity (email address or domain), sets the Amazon Simple Notification
  576. // Service (Amazon SNS) topic to which Amazon SES will publish bounce, complaint,
  577. // and/or delivery notifications for emails sent with that identity as the Source.
  578. //
  579. // Unless feedback forwarding is enabled, you must specify Amazon SNS topics
  580. // for bounce and complaint notifications. For more information, see SetIdentityFeedbackForwardingEnabled.
  581. // This action is throttled at one request per second.
  582. //
  583. // For more information about feedback notification, see the Amazon SES Developer
  584. // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html).
  585. func (c *SES) SetIdentityNotificationTopic(input *SetIdentityNotificationTopicInput) (*SetIdentityNotificationTopicOutput, error) {
  586. req, out := c.SetIdentityNotificationTopicRequest(input)
  587. err := req.Send()
  588. return out, err
  589. }
  590. const opVerifyDomainDkim = "VerifyDomainDkim"
  591. // VerifyDomainDkimRequest generates a request for the VerifyDomainDkim operation.
  592. func (c *SES) VerifyDomainDkimRequest(input *VerifyDomainDkimInput) (req *request.Request, output *VerifyDomainDkimOutput) {
  593. op := &request.Operation{
  594. Name: opVerifyDomainDkim,
  595. HTTPMethod: "POST",
  596. HTTPPath: "/",
  597. }
  598. if input == nil {
  599. input = &VerifyDomainDkimInput{}
  600. }
  601. req = c.newRequest(op, input, output)
  602. output = &VerifyDomainDkimOutput{}
  603. req.Data = output
  604. return
  605. }
  606. // Returns a set of DKIM tokens for a domain. DKIM tokens are character strings
  607. // that represent your domain's identity. Using these tokens, you will need
  608. // to create DNS CNAME records that point to DKIM public keys hosted by Amazon
  609. // SES. Amazon Web Services will eventually detect that you have updated your
  610. // DNS records; this detection process may take up to 72 hours. Upon successful
  611. // detection, Amazon SES will be able to DKIM-sign email originating from that
  612. // domain.
  613. //
  614. // This action is throttled at one request per second.
  615. //
  616. // To enable or disable Easy DKIM signing for a domain, use the SetIdentityDkimEnabled
  617. // action.
  618. //
  619. // For more information about creating DNS records using DKIM tokens, go to
  620. // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim-dns-records.html).
  621. func (c *SES) VerifyDomainDkim(input *VerifyDomainDkimInput) (*VerifyDomainDkimOutput, error) {
  622. req, out := c.VerifyDomainDkimRequest(input)
  623. err := req.Send()
  624. return out, err
  625. }
  626. const opVerifyDomainIdentity = "VerifyDomainIdentity"
  627. // VerifyDomainIdentityRequest generates a request for the VerifyDomainIdentity operation.
  628. func (c *SES) VerifyDomainIdentityRequest(input *VerifyDomainIdentityInput) (req *request.Request, output *VerifyDomainIdentityOutput) {
  629. op := &request.Operation{
  630. Name: opVerifyDomainIdentity,
  631. HTTPMethod: "POST",
  632. HTTPPath: "/",
  633. }
  634. if input == nil {
  635. input = &VerifyDomainIdentityInput{}
  636. }
  637. req = c.newRequest(op, input, output)
  638. output = &VerifyDomainIdentityOutput{}
  639. req.Data = output
  640. return
  641. }
  642. // Verifies a domain.
  643. //
  644. // This action is throttled at one request per second.
  645. func (c *SES) VerifyDomainIdentity(input *VerifyDomainIdentityInput) (*VerifyDomainIdentityOutput, error) {
  646. req, out := c.VerifyDomainIdentityRequest(input)
  647. err := req.Send()
  648. return out, err
  649. }
  650. const opVerifyEmailAddress = "VerifyEmailAddress"
  651. // VerifyEmailAddressRequest generates a request for the VerifyEmailAddress operation.
  652. func (c *SES) VerifyEmailAddressRequest(input *VerifyEmailAddressInput) (req *request.Request, output *VerifyEmailAddressOutput) {
  653. op := &request.Operation{
  654. Name: opVerifyEmailAddress,
  655. HTTPMethod: "POST",
  656. HTTPPath: "/",
  657. }
  658. if input == nil {
  659. input = &VerifyEmailAddressInput{}
  660. }
  661. req = c.newRequest(op, input, output)
  662. output = &VerifyEmailAddressOutput{}
  663. req.Data = output
  664. return
  665. }
  666. // Verifies an email address. This action causes a confirmation email message
  667. // to be sent to the specified address.
  668. //
  669. // The VerifyEmailAddress action is deprecated as of the May 15, 2012 release
  670. // of Domain Verification. The VerifyEmailIdentity action is now preferred.
  671. // This action is throttled at one request per second.
  672. func (c *SES) VerifyEmailAddress(input *VerifyEmailAddressInput) (*VerifyEmailAddressOutput, error) {
  673. req, out := c.VerifyEmailAddressRequest(input)
  674. err := req.Send()
  675. return out, err
  676. }
  677. const opVerifyEmailIdentity = "VerifyEmailIdentity"
  678. // VerifyEmailIdentityRequest generates a request for the VerifyEmailIdentity operation.
  679. func (c *SES) VerifyEmailIdentityRequest(input *VerifyEmailIdentityInput) (req *request.Request, output *VerifyEmailIdentityOutput) {
  680. op := &request.Operation{
  681. Name: opVerifyEmailIdentity,
  682. HTTPMethod: "POST",
  683. HTTPPath: "/",
  684. }
  685. if input == nil {
  686. input = &VerifyEmailIdentityInput{}
  687. }
  688. req = c.newRequest(op, input, output)
  689. output = &VerifyEmailIdentityOutput{}
  690. req.Data = output
  691. return
  692. }
  693. // Verifies an email address. This action causes a confirmation email message
  694. // to be sent to the specified address.
  695. //
  696. // This action is throttled at one request per second.
  697. func (c *SES) VerifyEmailIdentity(input *VerifyEmailIdentityInput) (*VerifyEmailIdentityOutput, error) {
  698. req, out := c.VerifyEmailIdentityRequest(input)
  699. err := req.Send()
  700. return out, err
  701. }
  702. // Represents the body of the message. You can specify text, HTML, or both.
  703. // If you use both, then the message should display correctly in the widest
  704. // variety of email clients.
  705. type Body struct {
  706. // The content of the message, in HTML format. Use this for email clients that
  707. // can process HTML. You can include clickable links, formatted text, and much
  708. // more in an HTML message.
  709. Html *Content `type:"structure"`
  710. // The content of the message, in text format. Use this for text-based email
  711. // clients, or clients on high-latency networks (such as mobile devices).
  712. Text *Content `type:"structure"`
  713. metadataBody `json:"-" xml:"-"`
  714. }
  715. type metadataBody struct {
  716. SDKShapeTraits bool `type:"structure"`
  717. }
  718. // String returns the string representation
  719. func (s Body) String() string {
  720. return awsutil.Prettify(s)
  721. }
  722. // GoString returns the string representation
  723. func (s Body) GoString() string {
  724. return s.String()
  725. }
  726. // Represents textual data, plus an optional character set specification.
  727. //
  728. // By default, the text must be 7-bit ASCII, due to the constraints of the
  729. // SMTP protocol. If the text must contain any other characters, then you must
  730. // also specify a character set. Examples include UTF-8, ISO-8859-1, and Shift_JIS.
  731. type Content struct {
  732. // The character set of the content.
  733. Charset *string `type:"string"`
  734. // The textual data of the content.
  735. Data *string `type:"string" required:"true"`
  736. metadataContent `json:"-" xml:"-"`
  737. }
  738. type metadataContent struct {
  739. SDKShapeTraits bool `type:"structure"`
  740. }
  741. // String returns the string representation
  742. func (s Content) String() string {
  743. return awsutil.Prettify(s)
  744. }
  745. // GoString returns the string representation
  746. func (s Content) GoString() string {
  747. return s.String()
  748. }
  749. // Represents a request instructing the service to delete an identity from the
  750. // list of identities for the AWS Account.
  751. type DeleteIdentityInput struct {
  752. // The identity to be removed from the list of identities for the AWS Account.
  753. Identity *string `type:"string" required:"true"`
  754. metadataDeleteIdentityInput `json:"-" xml:"-"`
  755. }
  756. type metadataDeleteIdentityInput struct {
  757. SDKShapeTraits bool `type:"structure"`
  758. }
  759. // String returns the string representation
  760. func (s DeleteIdentityInput) String() string {
  761. return awsutil.Prettify(s)
  762. }
  763. // GoString returns the string representation
  764. func (s DeleteIdentityInput) GoString() string {
  765. return s.String()
  766. }
  767. // An empty element. Receiving this element indicates that the request completed
  768. // successfully.
  769. type DeleteIdentityOutput struct {
  770. metadataDeleteIdentityOutput `json:"-" xml:"-"`
  771. }
  772. type metadataDeleteIdentityOutput struct {
  773. SDKShapeTraits bool `type:"structure"`
  774. }
  775. // String returns the string representation
  776. func (s DeleteIdentityOutput) String() string {
  777. return awsutil.Prettify(s)
  778. }
  779. // GoString returns the string representation
  780. func (s DeleteIdentityOutput) GoString() string {
  781. return s.String()
  782. }
  783. // Represents a request instructing the service to delete an authorization policy
  784. // applying to an identity.
  785. //
  786. // This request succeeds regardless of whether the specified policy exists.
  787. type DeleteIdentityPolicyInput struct {
  788. // The identity that is associated with the policy that you want to delete.
  789. // You can specify the identity by using its name or by using its Amazon Resource
  790. // Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.
  791. //
  792. // To successfully call this API, you must own the identity.
  793. Identity *string `type:"string" required:"true"`
  794. // The name of the policy to be deleted.
  795. PolicyName *string `type:"string" required:"true"`
  796. metadataDeleteIdentityPolicyInput `json:"-" xml:"-"`
  797. }
  798. type metadataDeleteIdentityPolicyInput struct {
  799. SDKShapeTraits bool `type:"structure"`
  800. }
  801. // String returns the string representation
  802. func (s DeleteIdentityPolicyInput) String() string {
  803. return awsutil.Prettify(s)
  804. }
  805. // GoString returns the string representation
  806. func (s DeleteIdentityPolicyInput) GoString() string {
  807. return s.String()
  808. }
  809. // An empty element. Receiving this element indicates that the request completed
  810. // successfully.
  811. type DeleteIdentityPolicyOutput struct {
  812. metadataDeleteIdentityPolicyOutput `json:"-" xml:"-"`
  813. }
  814. type metadataDeleteIdentityPolicyOutput struct {
  815. SDKShapeTraits bool `type:"structure"`
  816. }
  817. // String returns the string representation
  818. func (s DeleteIdentityPolicyOutput) String() string {
  819. return awsutil.Prettify(s)
  820. }
  821. // GoString returns the string representation
  822. func (s DeleteIdentityPolicyOutput) GoString() string {
  823. return s.String()
  824. }
  825. // Represents a request instructing the service to delete an address from the
  826. // list of verified email addresses.
  827. type DeleteVerifiedEmailAddressInput struct {
  828. // An email address to be removed from the list of verified addresses.
  829. EmailAddress *string `type:"string" required:"true"`
  830. metadataDeleteVerifiedEmailAddressInput `json:"-" xml:"-"`
  831. }
  832. type metadataDeleteVerifiedEmailAddressInput struct {
  833. SDKShapeTraits bool `type:"structure"`
  834. }
  835. // String returns the string representation
  836. func (s DeleteVerifiedEmailAddressInput) String() string {
  837. return awsutil.Prettify(s)
  838. }
  839. // GoString returns the string representation
  840. func (s DeleteVerifiedEmailAddressInput) GoString() string {
  841. return s.String()
  842. }
  843. type DeleteVerifiedEmailAddressOutput struct {
  844. metadataDeleteVerifiedEmailAddressOutput `json:"-" xml:"-"`
  845. }
  846. type metadataDeleteVerifiedEmailAddressOutput struct {
  847. SDKShapeTraits bool `type:"structure"`
  848. }
  849. // String returns the string representation
  850. func (s DeleteVerifiedEmailAddressOutput) String() string {
  851. return awsutil.Prettify(s)
  852. }
  853. // GoString returns the string representation
  854. func (s DeleteVerifiedEmailAddressOutput) GoString() string {
  855. return s.String()
  856. }
  857. // Represents the destination of the message, consisting of To:, CC:, and BCC:
  858. // fields.
  859. //
  860. // By default, the string must be 7-bit ASCII. If the text must contain any
  861. // other characters, then you must use MIME encoded-word syntax (RFC 2047) instead
  862. // of a literal string. MIME encoded-word syntax uses the following form: =?charset?encoding?encoded-text?=.
  863. // For more information, see RFC 2047 (http://tools.ietf.org/html/rfc2047).
  864. type Destination struct {
  865. // The BCC: field(s) of the message.
  866. BccAddresses []*string `type:"list"`
  867. // The CC: field(s) of the message.
  868. CcAddresses []*string `type:"list"`
  869. // The To: field(s) of the message.
  870. ToAddresses []*string `type:"list"`
  871. metadataDestination `json:"-" xml:"-"`
  872. }
  873. type metadataDestination struct {
  874. SDKShapeTraits bool `type:"structure"`
  875. }
  876. // String returns the string representation
  877. func (s Destination) String() string {
  878. return awsutil.Prettify(s)
  879. }
  880. // GoString returns the string representation
  881. func (s Destination) GoString() string {
  882. return s.String()
  883. }
  884. // Given a list of verified identities, describes their DKIM attributes. The
  885. // DKIM attributes of an email address identity includes whether DKIM signing
  886. // is individually enabled or disabled for that address. The DKIM attributes
  887. // of a domain name identity includes whether DKIM signing is enabled, as well
  888. // as the DNS records (tokens) that must remain published in the domain name's
  889. // DNS.
  890. type GetIdentityDkimAttributesInput struct {
  891. // A list of one or more verified identities - email addresses, domains, or
  892. // both.
  893. Identities []*string `type:"list" required:"true"`
  894. metadataGetIdentityDkimAttributesInput `json:"-" xml:"-"`
  895. }
  896. type metadataGetIdentityDkimAttributesInput struct {
  897. SDKShapeTraits bool `type:"structure"`
  898. }
  899. // String returns the string representation
  900. func (s GetIdentityDkimAttributesInput) String() string {
  901. return awsutil.Prettify(s)
  902. }
  903. // GoString returns the string representation
  904. func (s GetIdentityDkimAttributesInput) GoString() string {
  905. return s.String()
  906. }
  907. // Represents a list of all the DKIM attributes for the specified identity.
  908. type GetIdentityDkimAttributesOutput struct {
  909. // The DKIM attributes for an email address or a domain.
  910. DkimAttributes map[string]*IdentityDkimAttributes `type:"map" required:"true"`
  911. metadataGetIdentityDkimAttributesOutput `json:"-" xml:"-"`
  912. }
  913. type metadataGetIdentityDkimAttributesOutput struct {
  914. SDKShapeTraits bool `type:"structure"`
  915. }
  916. // String returns the string representation
  917. func (s GetIdentityDkimAttributesOutput) String() string {
  918. return awsutil.Prettify(s)
  919. }
  920. // GoString returns the string representation
  921. func (s GetIdentityDkimAttributesOutput) GoString() string {
  922. return s.String()
  923. }
  924. type GetIdentityNotificationAttributesInput struct {
  925. // A list of one or more identities. You can specify an identity by using its
  926. // name or by using its Amazon Resource Name (ARN). Examples: user@example.com,
  927. // example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.
  928. Identities []*string `type:"list" required:"true"`
  929. metadataGetIdentityNotificationAttributesInput `json:"-" xml:"-"`
  930. }
  931. type metadataGetIdentityNotificationAttributesInput struct {
  932. SDKShapeTraits bool `type:"structure"`
  933. }
  934. // String returns the string representation
  935. func (s GetIdentityNotificationAttributesInput) String() string {
  936. return awsutil.Prettify(s)
  937. }
  938. // GoString returns the string representation
  939. func (s GetIdentityNotificationAttributesInput) GoString() string {
  940. return s.String()
  941. }
  942. // Describes whether an identity has Amazon Simple Notification Service (Amazon
  943. // SNS) topics set for bounce, complaint, and/or delivery notifications, and
  944. // specifies whether feedback forwarding is enabled for bounce and complaint
  945. // notifications.
  946. type GetIdentityNotificationAttributesOutput struct {
  947. // A map of Identity to IdentityNotificationAttributes.
  948. NotificationAttributes map[string]*IdentityNotificationAttributes `type:"map" required:"true"`
  949. metadataGetIdentityNotificationAttributesOutput `json:"-" xml:"-"`
  950. }
  951. type metadataGetIdentityNotificationAttributesOutput struct {
  952. SDKShapeTraits bool `type:"structure"`
  953. }
  954. // String returns the string representation
  955. func (s GetIdentityNotificationAttributesOutput) String() string {
  956. return awsutil.Prettify(s)
  957. }
  958. // GoString returns the string representation
  959. func (s GetIdentityNotificationAttributesOutput) GoString() string {
  960. return s.String()
  961. }
  962. // Represents a request instructing the service to retrieve the text of a list
  963. // of authorization policies applying to an identity.
  964. type GetIdentityPoliciesInput struct {
  965. // The identity for which the policies will be retrieved. You can specify an
  966. // identity by using its name or by using its Amazon Resource Name (ARN). Examples:
  967. // user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.
  968. //
  969. // To successfully call this API, you must own the identity.
  970. Identity *string `type:"string" required:"true"`
  971. // A list of the names of policies to be retrieved. You can retrieve a maximum
  972. // of 20 policies at a time. If you do not know the names of the policies that
  973. // are attached to the identity, you can use ListIdentityPolicies.
  974. PolicyNames []*string `type:"list" required:"true"`
  975. metadataGetIdentityPoliciesInput `json:"-" xml:"-"`
  976. }
  977. type metadataGetIdentityPoliciesInput struct {
  978. SDKShapeTraits bool `type:"structure"`
  979. }
  980. // String returns the string representation
  981. func (s GetIdentityPoliciesInput) String() string {
  982. return awsutil.Prettify(s)
  983. }
  984. // GoString returns the string representation
  985. func (s GetIdentityPoliciesInput) GoString() string {
  986. return s.String()
  987. }
  988. // Represents a map of policy names to policies returned from a successful GetIdentityPolicies
  989. // request.
  990. type GetIdentityPoliciesOutput struct {
  991. // A map of policy names to policies.
  992. Policies map[string]*string `type:"map" required:"true"`
  993. metadataGetIdentityPoliciesOutput `json:"-" xml:"-"`
  994. }
  995. type metadataGetIdentityPoliciesOutput struct {
  996. SDKShapeTraits bool `type:"structure"`
  997. }
  998. // String returns the string representation
  999. func (s GetIdentityPoliciesOutput) String() string {
  1000. return awsutil.Prettify(s)
  1001. }
  1002. // GoString returns the string representation
  1003. func (s GetIdentityPoliciesOutput) GoString() string {
  1004. return s.String()
  1005. }
  1006. // Represents a request instructing the service to provide the verification
  1007. // attributes for a list of identities.
  1008. type GetIdentityVerificationAttributesInput struct {
  1009. // A list of identities.
  1010. Identities []*string `type:"list" required:"true"`
  1011. metadataGetIdentityVerificationAttributesInput `json:"-" xml:"-"`
  1012. }
  1013. type metadataGetIdentityVerificationAttributesInput struct {
  1014. SDKShapeTraits bool `type:"structure"`
  1015. }
  1016. // String returns the string representation
  1017. func (s GetIdentityVerificationAttributesInput) String() string {
  1018. return awsutil.Prettify(s)
  1019. }
  1020. // GoString returns the string representation
  1021. func (s GetIdentityVerificationAttributesInput) GoString() string {
  1022. return s.String()
  1023. }
  1024. // Represents the verification attributes for a list of identities.
  1025. type GetIdentityVerificationAttributesOutput struct {
  1026. // A map of Identities to IdentityVerificationAttributes objects.
  1027. VerificationAttributes map[string]*IdentityVerificationAttributes `type:"map" required:"true"`
  1028. metadataGetIdentityVerificationAttributesOutput `json:"-" xml:"-"`
  1029. }
  1030. type metadataGetIdentityVerificationAttributesOutput struct {
  1031. SDKShapeTraits bool `type:"structure"`
  1032. }
  1033. // String returns the string representation
  1034. func (s GetIdentityVerificationAttributesOutput) String() string {
  1035. return awsutil.Prettify(s)
  1036. }
  1037. // GoString returns the string representation
  1038. func (s GetIdentityVerificationAttributesOutput) GoString() string {
  1039. return s.String()
  1040. }
  1041. type GetSendQuotaInput struct {
  1042. metadataGetSendQuotaInput `json:"-" xml:"-"`
  1043. }
  1044. type metadataGetSendQuotaInput struct {
  1045. SDKShapeTraits bool `type:"structure"`
  1046. }
  1047. // String returns the string representation
  1048. func (s GetSendQuotaInput) String() string {
  1049. return awsutil.Prettify(s)
  1050. }
  1051. // GoString returns the string representation
  1052. func (s GetSendQuotaInput) GoString() string {
  1053. return s.String()
  1054. }
  1055. // Represents the user's current activity limits returned from a successful
  1056. // GetSendQuota request.
  1057. type GetSendQuotaOutput struct {
  1058. // The maximum number of emails the user is allowed to send in a 24-hour interval.
  1059. // A value of -1 signifies an unlimited quota.
  1060. Max24HourSend *float64 `type:"double"`
  1061. // The maximum number of emails that Amazon SES can accept from the user's account
  1062. // per second.
  1063. //
  1064. // The rate at which Amazon SES accepts the user's messages might be less than
  1065. // the maximum send rate.
  1066. MaxSendRate *float64 `type:"double"`
  1067. // The number of emails sent during the previous 24 hours.
  1068. SentLast24Hours *float64 `type:"double"`
  1069. metadataGetSendQuotaOutput `json:"-" xml:"-"`
  1070. }
  1071. type metadataGetSendQuotaOutput struct {
  1072. SDKShapeTraits bool `type:"structure"`
  1073. }
  1074. // String returns the string representation
  1075. func (s GetSendQuotaOutput) String() string {
  1076. return awsutil.Prettify(s)
  1077. }
  1078. // GoString returns the string representation
  1079. func (s GetSendQuotaOutput) GoString() string {
  1080. return s.String()
  1081. }
  1082. type GetSendStatisticsInput struct {
  1083. metadataGetSendStatisticsInput `json:"-" xml:"-"`
  1084. }
  1085. type metadataGetSendStatisticsInput struct {
  1086. SDKShapeTraits bool `type:"structure"`
  1087. }
  1088. // String returns the string representation
  1089. func (s GetSendStatisticsInput) String() string {
  1090. return awsutil.Prettify(s)
  1091. }
  1092. // GoString returns the string representation
  1093. func (s GetSendStatisticsInput) GoString() string {
  1094. return s.String()
  1095. }
  1096. // Represents a list of SendDataPoint items returned from a successful GetSendStatistics
  1097. // request. This list contains aggregated data from the previous two weeks of
  1098. // sending activity.
  1099. type GetSendStatisticsOutput struct {
  1100. // A list of data points, each of which represents 15 minutes of activity.
  1101. SendDataPoints []*SendDataPoint `type:"list"`
  1102. metadataGetSendStatisticsOutput `json:"-" xml:"-"`
  1103. }
  1104. type metadataGetSendStatisticsOutput struct {
  1105. SDKShapeTraits bool `type:"structure"`
  1106. }
  1107. // String returns the string representation
  1108. func (s GetSendStatisticsOutput) String() string {
  1109. return awsutil.Prettify(s)
  1110. }
  1111. // GoString returns the string representation
  1112. func (s GetSendStatisticsOutput) GoString() string {
  1113. return s.String()
  1114. }
  1115. // Represents the DKIM attributes of a verified email address or a domain.
  1116. type IdentityDkimAttributes struct {
  1117. // True if DKIM signing is enabled for email sent from the identity; false otherwise.
  1118. DkimEnabled *bool `type:"boolean" required:"true"`
  1119. // A set of character strings that represent the domain's identity. Using these
  1120. // tokens, you will need to create DNS CNAME records that point to DKIM public
  1121. // keys hosted by Amazon SES. Amazon Web Services will eventually detect that
  1122. // you have updated your DNS records; this detection process may take up to
  1123. // 72 hours. Upon successful detection, Amazon SES will be able to DKIM-sign
  1124. // email originating from that domain. (This only applies to domain identities,
  1125. // not email address identities.)
  1126. //
  1127. // For more information about creating DNS records using DKIM tokens, go to
  1128. // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim-dns-records.html).
  1129. DkimTokens []*string `type:"list"`
  1130. // Describes whether Amazon SES has successfully verified the DKIM DNS records
  1131. // (tokens) published in the domain name's DNS. (This only applies to domain
  1132. // identities, not email address identities.)
  1133. DkimVerificationStatus *string `type:"string" required:"true" enum:"VerificationStatus"`
  1134. metadataIdentityDkimAttributes `json:"-" xml:"-"`
  1135. }
  1136. type metadataIdentityDkimAttributes struct {
  1137. SDKShapeTraits bool `type:"structure"`
  1138. }
  1139. // String returns the string representation
  1140. func (s IdentityDkimAttributes) String() string {
  1141. return awsutil.Prettify(s)
  1142. }
  1143. // GoString returns the string representation
  1144. func (s IdentityDkimAttributes) GoString() string {
  1145. return s.String()
  1146. }
  1147. // Represents the notification attributes of an identity, including whether
  1148. // an identity has Amazon Simple Notification Service (Amazon SNS) topics set
  1149. // for bounce, complaint, and/or delivery notifications, and whether feedback
  1150. // forwarding is enabled for bounce and complaint notifications.
  1151. type IdentityNotificationAttributes struct {
  1152. // The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will
  1153. // publish bounce notifications.
  1154. BounceTopic *string `type:"string" required:"true"`
  1155. // The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will
  1156. // publish complaint notifications.
  1157. ComplaintTopic *string `type:"string" required:"true"`
  1158. // The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will
  1159. // publish delivery notifications.
  1160. DeliveryTopic *string `type:"string" required:"true"`
  1161. // Describes whether Amazon SES will forward bounce and complaint notifications
  1162. // as email. true indicates that Amazon SES will forward bounce and complaint
  1163. // notifications as email, while false indicates that bounce and complaint notifications
  1164. // will be published only to the specified bounce and complaint Amazon SNS topics.
  1165. ForwardingEnabled *bool `type:"boolean" required:"true"`
  1166. metadataIdentityNotificationAttributes `json:"-" xml:"-"`
  1167. }
  1168. type metadataIdentityNotificationAttributes struct {
  1169. SDKShapeTraits bool `type:"structure"`
  1170. }
  1171. // String returns the string representation
  1172. func (s IdentityNotificationAttributes) String() string {
  1173. return awsutil.Prettify(s)
  1174. }
  1175. // GoString returns the string representation
  1176. func (s IdentityNotificationAttributes) GoString() string {
  1177. return s.String()
  1178. }
  1179. // Represents the verification attributes of a single identity.
  1180. type IdentityVerificationAttributes struct {
  1181. // The verification status of the identity: "Pending", "Success", "Failed",
  1182. // or "TemporaryFailure".
  1183. VerificationStatus *string `type:"string" required:"true" enum:"VerificationStatus"`
  1184. // The verification token for a domain identity. Null for email address identities.
  1185. VerificationToken *string `type:"string"`
  1186. metadataIdentityVerificationAttributes `json:"-" xml:"-"`
  1187. }
  1188. type metadataIdentityVerificationAttributes struct {
  1189. SDKShapeTraits bool `type:"structure"`
  1190. }
  1191. // String returns the string representation
  1192. func (s IdentityVerificationAttributes) String() string {
  1193. return awsutil.Prettify(s)
  1194. }
  1195. // GoString returns the string representation
  1196. func (s IdentityVerificationAttributes) GoString() string {
  1197. return s.String()
  1198. }
  1199. // Represents a request instructing the service to list all identities for the
  1200. // AWS Account.
  1201. type ListIdentitiesInput struct {
  1202. // The type of the identities to list. Possible values are "EmailAddress" and
  1203. // "Domain". If this parameter is omitted, then all identities will be listed.
  1204. IdentityType *string `type:"string" enum:"IdentityType"`
  1205. // The maximum number of identities per page. Possible values are 1-1000 inclusive.
  1206. MaxItems *int64 `type:"integer"`
  1207. // The token to use for pagination.
  1208. NextToken *string `type:"string"`
  1209. metadataListIdentitiesInput `json:"-" xml:"-"`
  1210. }
  1211. type metadataListIdentitiesInput struct {
  1212. SDKShapeTraits bool `type:"structure"`
  1213. }
  1214. // String returns the string representation
  1215. func (s ListIdentitiesInput) String() string {
  1216. return awsutil.Prettify(s)
  1217. }
  1218. // GoString returns the string representation
  1219. func (s ListIdentitiesInput) GoString() string {
  1220. return s.String()
  1221. }
  1222. // Represents a list of all verified identities for the AWS Account.
  1223. type ListIdentitiesOutput struct {
  1224. // A list of identities.
  1225. Identities []*string `type:"list" required:"true"`
  1226. // The token used for pagination.
  1227. NextToken *string `type:"string"`
  1228. metadataListIdentitiesOutput `json:"-" xml:"-"`
  1229. }
  1230. type metadataListIdentitiesOutput struct {
  1231. SDKShapeTraits bool `type:"structure"`
  1232. }
  1233. // String returns the string representation
  1234. func (s ListIdentitiesOutput) String() string {
  1235. return awsutil.Prettify(s)
  1236. }
  1237. // GoString returns the string representation
  1238. func (s ListIdentitiesOutput) GoString() string {
  1239. return s.String()
  1240. }
  1241. // Represents a request instructing the service to list all authorization policies,
  1242. // by name, applying to an identity.
  1243. type ListIdentityPoliciesInput struct {
  1244. // The identity that is associated with the policy for which the policies will
  1245. // be listed. You can specify an identity by using its name or by using its
  1246. // Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.
  1247. //
  1248. // To successfully call this API, you must own the identity.
  1249. Identity *string `type:"string" required:"true"`
  1250. metadataListIdentityPoliciesInput `json:"-" xml:"-"`
  1251. }
  1252. type metadataListIdentityPoliciesInput struct {
  1253. SDKShapeTraits bool `type:"structure"`
  1254. }
  1255. // String returns the string representation
  1256. func (s ListIdentityPoliciesInput) String() string {
  1257. return awsutil.Prettify(s)
  1258. }
  1259. // GoString returns the string representation
  1260. func (s ListIdentityPoliciesInput) GoString() string {
  1261. return s.String()
  1262. }
  1263. // Represents a list of policy names returned from a successful ListIdentityPolicies
  1264. // request.
  1265. type ListIdentityPoliciesOutput struct {
  1266. // A list of names of policies that apply to the specified identity.
  1267. PolicyNames []*string `type:"list" required:"true"`
  1268. metadataListIdentityPoliciesOutput `json:"-" xml:"-"`
  1269. }
  1270. type metadataListIdentityPoliciesOutput struct {
  1271. SDKShapeTraits bool `type:"structure"`
  1272. }
  1273. // String returns the string representation
  1274. func (s ListIdentityPoliciesOutput) String() string {
  1275. return awsutil.Prettify(s)
  1276. }
  1277. // GoString returns the string representation
  1278. func (s ListIdentityPoliciesOutput) GoString() string {
  1279. return s.String()
  1280. }
  1281. type ListVerifiedEmailAddressesInput struct {
  1282. metadataListVerifiedEmailAddressesInput `json:"-" xml:"-"`
  1283. }
  1284. type metadataListVerifiedEmailAddressesInput struct {
  1285. SDKShapeTraits bool `type:"structure"`
  1286. }
  1287. // String returns the string representation
  1288. func (s ListVerifiedEmailAddressesInput) String() string {
  1289. return awsutil.Prettify(s)
  1290. }
  1291. // GoString returns the string representation
  1292. func (s ListVerifiedEmailAddressesInput) GoString() string {
  1293. return s.String()
  1294. }
  1295. // Represents a list of all the email addresses verified for the current user.
  1296. type ListVerifiedEmailAddressesOutput struct {
  1297. // A list of email addresses that have been verified.
  1298. VerifiedEmailAddresses []*string `type:"list"`
  1299. metadataListVerifiedEmailAddressesOutput `json:"-" xml:"-"`
  1300. }
  1301. type metadataListVerifiedEmailAddressesOutput struct {
  1302. SDKShapeTraits bool `type:"structure"`
  1303. }
  1304. // String returns the string representation
  1305. func (s ListVerifiedEmailAddressesOutput) String() string {
  1306. return awsutil.Prettify(s)
  1307. }
  1308. // GoString returns the string representation
  1309. func (s ListVerifiedEmailAddressesOutput) GoString() string {
  1310. return s.String()
  1311. }
  1312. // Represents the message to be sent, composed of a subject and a body.
  1313. type Message struct {
  1314. // The message body.
  1315. Body *Body `type:"structure" required:"true"`
  1316. // The subject of the message: A short summary of the content, which will appear
  1317. // in the recipient's inbox.
  1318. Subject *Content `type:"structure" required:"true"`
  1319. metadataMessage `json:"-" xml:"-"`
  1320. }
  1321. type metadataMessage struct {
  1322. SDKShapeTraits bool `type:"structure"`
  1323. }
  1324. // String returns the string representation
  1325. func (s Message) String() string {
  1326. return awsutil.Prettify(s)
  1327. }
  1328. // GoString returns the string representation
  1329. func (s Message) GoString() string {
  1330. return s.String()
  1331. }
  1332. // Represents a request instructing the service to apply an authorization policy
  1333. // to an identity.
  1334. type PutIdentityPolicyInput struct {
  1335. // The identity to which the policy will apply. You can specify an identity
  1336. // by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com,
  1337. // example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.
  1338. //
  1339. // To successfully call this API, you must own the identity.
  1340. Identity *string `type:"string" required:"true"`
  1341. // The text of the policy in JSON format. The policy cannot exceed 4 KB.
  1342. //
  1343. // For information about the syntax of sending authorization policies, see
  1344. // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-policies.html).
  1345. Policy *string `type:"string" required:"true"`
  1346. // The name of the policy.
  1347. //
  1348. // The policy name cannot exceed 64 characters and can only include alphanumeric
  1349. // characters, dashes, and underscores.
  1350. PolicyName *string `type:"string" required:"true"`
  1351. metadataPutIdentityPolicyInput `json:"-" xml:"-"`
  1352. }
  1353. type metadataPutIdentityPolicyInput struct {
  1354. SDKShapeTraits bool `type:"structure"`
  1355. }
  1356. // String returns the string representation
  1357. func (s PutIdentityPolicyInput) String() string {
  1358. return awsutil.Prettify(s)
  1359. }
  1360. // GoString returns the string representation
  1361. func (s PutIdentityPolicyInput) GoString() string {
  1362. return s.String()
  1363. }
  1364. // An empty element. Receiving this element indicates that the request completed
  1365. // successfully.
  1366. type PutIdentityPolicyOutput struct {
  1367. metadataPutIdentityPolicyOutput `json:"-" xml:"-"`
  1368. }
  1369. type metadataPutIdentityPolicyOutput struct {
  1370. SDKShapeTraits bool `type:"structure"`
  1371. }
  1372. // String returns the string representation
  1373. func (s PutIdentityPolicyOutput) String() string {
  1374. return awsutil.Prettify(s)
  1375. }
  1376. // GoString returns the string representation
  1377. func (s PutIdentityPolicyOutput) GoString() string {
  1378. return s.String()
  1379. }
  1380. // Represents the raw data of the message.
  1381. type RawMessage struct {
  1382. // The raw data of the message. The client must ensure that the message format
  1383. // complies with Internet email standards regarding email header fields, MIME
  1384. // types, MIME encoding, and base64 encoding (if necessary).
  1385. //
  1386. // The To:, CC:, and BCC: headers in the raw message can contain a group list.
  1387. //
  1388. // If you are using SendRawEmail with sending authorization, you can include
  1389. // X-headers in the raw message to specify the "Source," "From," and "Return-Path"
  1390. // addresses. For more information, see the documentation for SendRawEmail.
  1391. //
  1392. // Do not include these X-headers in the DKIM signature, because they are removed
  1393. // by Amazon SES before sending the email. For more information, go to the Amazon
  1394. // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-raw.html).
  1395. Data []byte `type:"blob" required:"true"`
  1396. metadataRawMessage `json:"-" xml:"-"`
  1397. }
  1398. type metadataRawMessage struct {
  1399. SDKShapeTraits bool `type:"structure"`
  1400. }
  1401. // String returns the string representation
  1402. func (s RawMessage) String() string {
  1403. return awsutil.Prettify(s)
  1404. }
  1405. // GoString returns the string representation
  1406. func (s RawMessage) GoString() string {
  1407. return s.String()
  1408. }
  1409. // Represents sending statistics data. Each SendDataPoint contains statistics
  1410. // for a 15-minute period of sending activity.
  1411. type SendDataPoint struct {
  1412. // Number of emails that have bounced.
  1413. Bounces *int64 `type:"long"`
  1414. // Number of unwanted emails that were rejected by recipients.
  1415. Complaints *int64 `type:"long"`
  1416. // Number of emails that have been enqueued for sending.
  1417. DeliveryAttempts *int64 `type:"long"`
  1418. // Number of emails rejected by Amazon SES.
  1419. Rejects *int64 `type:"long"`
  1420. // Time of the data point.
  1421. Timestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  1422. metadataSendDataPoint `json:"-" xml:"-"`
  1423. }
  1424. type metadataSendDataPoint struct {
  1425. SDKShapeTraits bool `type:"structure"`
  1426. }
  1427. // String returns the string representation
  1428. func (s SendDataPoint) String() string {
  1429. return awsutil.Prettify(s)
  1430. }
  1431. // GoString returns the string representation
  1432. func (s SendDataPoint) GoString() string {
  1433. return s.String()
  1434. }
  1435. // Represents a request instructing the service to send a single email message.
  1436. //
  1437. // This datatype can be used in application code to compose a message consisting
  1438. // of source, destination, message, reply-to, and return-path parts. This object
  1439. // can then be sent using the SendEmail action.
  1440. type SendEmailInput struct {
  1441. // The destination for this email, composed of To:, CC:, and BCC: fields.
  1442. Destination *Destination `type:"structure" required:"true"`
  1443. // The message to be sent.
  1444. Message *Message `type:"structure" required:"true"`
  1445. // The reply-to email address(es) for the message. If the recipient replies
  1446. // to the message, each reply-to address will receive the reply.
  1447. ReplyToAddresses []*string `type:"list"`
  1448. // The email address to which bounces and complaints are to be forwarded when
  1449. // feedback forwarding is enabled. If the message cannot be delivered to the
  1450. // recipient, then an error message will be returned from the recipient's ISP;
  1451. // this message will then be forwarded to the email address specified by the
  1452. // ReturnPath parameter. The ReturnPath parameter is never overwritten. This
  1453. // email address must be either individually verified with Amazon SES, or from
  1454. // a domain that has been verified with Amazon SES.
  1455. ReturnPath *string `type:"string"`
  1456. // This parameter is used only for sending authorization. It is the ARN of the
  1457. // identity that is associated with the sending authorization policy that permits
  1458. // you to use the email address specified in the ReturnPath parameter.
  1459. //
  1460. // For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com)
  1461. // attaches a policy to it that authorizes you to use feedback@example.com,
  1462. // then you would specify the ReturnPathArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com,
  1463. // and the ReturnPath to be feedback@example.com.
  1464. //
  1465. // For more information about sending authorization, see the Amazon SES Developer
  1466. // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html).
  1467. ReturnPathArn *string `type:"string"`
  1468. // The email address that is sending the email. This email address must be either
  1469. // individually verified with Amazon SES, or from a domain that has been verified
  1470. // with Amazon SES. For information about verifying identities, see the Amazon
  1471. // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html).
  1472. //
  1473. // If you are sending on behalf of another user and have been permitted to
  1474. // do so by a sending authorization policy, then you must also specify the SourceArn
  1475. // parameter. For more information about sending authorization, see the Amazon
  1476. // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html).
  1477. //
  1478. // In all cases, the email address must be 7-bit ASCII. If the text must contain
  1479. // any other characters, then you must use MIME encoded-word syntax (RFC 2047)
  1480. // instead of a literal string. MIME encoded-word syntax uses the following
  1481. // form: =?charset?encoding?encoded-text?=. For more information, see RFC 2047
  1482. // (http://tools.ietf.org/html/rfc2047).
  1483. Source *string `type:"string" required:"true"`
  1484. // This parameter is used only for sending authorization. It is the ARN of the
  1485. // identity that is associated with the sending authorization policy that permits
  1486. // you to send for the email address specified in the Source parameter.
  1487. //
  1488. // For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com)
  1489. // attaches a policy to it that authorizes you to send from user@example.com,
  1490. // then you would specify the SourceArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com,
  1491. // and the Source to be user@example.com.
  1492. //
  1493. // For more information about sending authorization, see the Amazon SES Developer
  1494. // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html).
  1495. SourceArn *string `type:"string"`
  1496. metadataSendEmailInput `json:"-" xml:"-"`
  1497. }
  1498. type metadataSendEmailInput struct {
  1499. SDKShapeTraits bool `type:"structure"`
  1500. }
  1501. // String returns the string representation
  1502. func (s SendEmailInput) String() string {
  1503. return awsutil.Prettify(s)
  1504. }
  1505. // GoString returns the string representation
  1506. func (s SendEmailInput) GoString() string {
  1507. return s.String()
  1508. }
  1509. // Represents a unique message ID returned from a successful SendEmail request.
  1510. type SendEmailOutput struct {
  1511. // The unique message identifier returned from the SendEmail action.
  1512. MessageId *string `type:"string" required:"true"`
  1513. metadataSendEmailOutput `json:"-" xml:"-"`
  1514. }
  1515. type metadataSendEmailOutput struct {
  1516. SDKShapeTraits bool `type:"structure"`
  1517. }
  1518. // String returns the string representation
  1519. func (s SendEmailOutput) String() string {
  1520. return awsutil.Prettify(s)
  1521. }
  1522. // GoString returns the string representation
  1523. func (s SendEmailOutput) GoString() string {
  1524. return s.String()
  1525. }
  1526. // Represents a request instructing the service to send a raw email message.
  1527. //
  1528. // This datatype can be used in application code to compose a message consisting
  1529. // of source, destination, and raw message text. This object can then be sent
  1530. // using the SendRawEmail action.
  1531. type SendRawEmailInput struct {
  1532. // A list of destinations for the message, consisting of To:, CC:, and BCC:
  1533. // addresses.
  1534. Destinations []*string `type:"list"`
  1535. // This parameter is used only for sending authorization. It is the ARN of the
  1536. // identity that is associated with the sending authorization policy that permits
  1537. // you to specify a particular "From" address in the header of the raw email.
  1538. //
  1539. // Instead of using this parameter, you can use the X-header X-SES-FROM-ARN
  1540. // in the raw message of the email. If you use both the FromArn parameter and
  1541. // the corresponding X-header, Amazon SES uses the value of the FromArn parameter.
  1542. //
  1543. // For information about when to use this parameter, see the description of
  1544. // SendRawEmail in this guide, or see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-delegate-sender-tasks-email.html).
  1545. FromArn *string `type:"string"`
  1546. // The raw text of the message. The client is responsible for ensuring the following:
  1547. //
  1548. // Message must contain a header and a body, separated by a blank line. All
  1549. // required header fields must be present. Each part of a multipart MIME message
  1550. // must be formatted properly. MIME content types must be among those supported
  1551. // by Amazon SES. For more information, go to the Amazon SES Developer Guide
  1552. // (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/mime-types.html).
  1553. // Content must be base64-encoded, if MIME requires it.
  1554. RawMessage *RawMessage `type:"structure" required:"true"`
  1555. // This parameter is used only for sending authorization. It is the ARN of the
  1556. // identity that is associated with the sending authorization policy that permits
  1557. // you to use the email address specified in the ReturnPath parameter.
  1558. //
  1559. // For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com)
  1560. // attaches a policy to it that authorizes you to use feedback@example.com,
  1561. // then you would specify the ReturnPathArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com,
  1562. // and the ReturnPath to be feedback@example.com.
  1563. //
  1564. // Instead of using this parameter, you can use the X-header X-SES-RETURN-PATH-ARN
  1565. // in the raw message of the email. If you use both the ReturnPathArn parameter
  1566. // and the corresponding X-header, Amazon SES uses the value of the ReturnPathArn
  1567. // parameter.
  1568. //
  1569. // For information about when to use this parameter, see the description of
  1570. // SendRawEmail in this guide, or see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-delegate-sender-tasks-email.html).
  1571. ReturnPathArn *string `type:"string"`
  1572. // The identity's email address. If you do not provide a value for this parameter,
  1573. // you must specify a "From" address in the raw text of the message. (You can
  1574. // also specify both.)
  1575. //
  1576. // By default, the string must be 7-bit ASCII. If the text must contain any
  1577. // other characters, then you must use MIME encoded-word syntax (RFC 2047) instead
  1578. // of a literal string. MIME encoded-word syntax uses the following form: =?charset?encoding?encoded-text?=.
  1579. // For more information, see RFC 2047 (http://tools.ietf.org/html/rfc2047).
  1580. //
  1581. // If you specify the Source parameter and have feedback forwarding enabled,
  1582. // then bounces and complaints will be sent to this email address. This takes
  1583. // precedence over any Return-Path header that you might include in the raw
  1584. // text of the message.
  1585. Source *string `type:"string"`
  1586. // This parameter is used only for sending authorization. It is the ARN of the
  1587. // identity that is associated with the sending authorization policy that permits
  1588. // you to send for the email address specified in the Source parameter.
  1589. //
  1590. // For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com)
  1591. // attaches a policy to it that authorizes you to send from user@example.com,
  1592. // then you would specify the SourceArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com,
  1593. // and the Source to be user@example.com.
  1594. //
  1595. // Instead of using this parameter, you can use the X-header X-SES-SOURCE-ARN
  1596. // in the raw message of the email. If you use both the SourceArn parameter
  1597. // and the corresponding X-header, Amazon SES uses the value of the SourceArn
  1598. // parameter.
  1599. //
  1600. // For information about when to use this parameter, see the description of
  1601. // SendRawEmail in this guide, or see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-delegate-sender-tasks-email.html).
  1602. SourceArn *string `type:"string"`
  1603. metadataSendRawEmailInput `json:"-" xml:"-"`
  1604. }
  1605. type metadataSendRawEmailInput struct {
  1606. SDKShapeTraits bool `type:"structure"`
  1607. }
  1608. // String returns the string representation
  1609. func (s SendRawEmailInput) String() string {
  1610. return awsutil.Prettify(s)
  1611. }
  1612. // GoString returns the string representation
  1613. func (s SendRawEmailInput) GoString() string {
  1614. return s.String()
  1615. }
  1616. // Represents a unique message ID returned from a successful SendRawEmail request.
  1617. type SendRawEmailOutput struct {
  1618. // The unique message identifier returned from the SendRawEmail action.
  1619. MessageId *string `type:"string" required:"true"`
  1620. metadataSendRawEmailOutput `json:"-" xml:"-"`
  1621. }
  1622. type metadataSendRawEmailOutput struct {
  1623. SDKShapeTraits bool `type:"structure"`
  1624. }
  1625. // String returns the string representation
  1626. func (s SendRawEmailOutput) String() string {
  1627. return awsutil.Prettify(s)
  1628. }
  1629. // GoString returns the string representation
  1630. func (s SendRawEmailOutput) GoString() string {
  1631. return s.String()
  1632. }
  1633. // Represents a request instructing the service to enable or disable DKIM signing
  1634. // for an identity.
  1635. type SetIdentityDkimEnabledInput struct {
  1636. // Sets whether DKIM signing is enabled for an identity. Set to true to enable
  1637. // DKIM signing for this identity; false to disable it.
  1638. DkimEnabled *bool `type:"boolean" required:"true"`
  1639. // The identity for which DKIM signing should be enabled or disabled.
  1640. Identity *string `type:"string" required:"true"`
  1641. metadataSetIdentityDkimEnabledInput `json:"-" xml:"-"`
  1642. }
  1643. type metadataSetIdentityDkimEnabledInput struct {
  1644. SDKShapeTraits bool `type:"structure"`
  1645. }
  1646. // String returns the string representation
  1647. func (s SetIdentityDkimEnabledInput) String() string {
  1648. return awsutil.Prettify(s)
  1649. }
  1650. // GoString returns the string representation
  1651. func (s SetIdentityDkimEnabledInput) GoString() string {
  1652. return s.String()
  1653. }
  1654. // An empty element. Receiving this element indicates that the request completed
  1655. // successfully.
  1656. type SetIdentityDkimEnabledOutput struct {
  1657. metadataSetIdentityDkimEnabledOutput `json:"-" xml:"-"`
  1658. }
  1659. type metadataSetIdentityDkimEnabledOutput struct {
  1660. SDKShapeTraits bool `type:"structure"`
  1661. }
  1662. // String returns the string representation
  1663. func (s SetIdentityDkimEnabledOutput) String() string {
  1664. return awsutil.Prettify(s)
  1665. }
  1666. // GoString returns the string representation
  1667. func (s SetIdentityDkimEnabledOutput) GoString() string {
  1668. return s.String()
  1669. }
  1670. type SetIdentityFeedbackForwardingEnabledInput struct {
  1671. // Sets whether Amazon SES will forward bounce and complaint notifications as
  1672. // email. true specifies that Amazon SES will forward bounce and complaint notifications
  1673. // as email, in addition to any Amazon SNS topic publishing otherwise specified.
  1674. // false specifies that Amazon SES will publish bounce and complaint notifications
  1675. // only through Amazon SNS. This value can only be set to false when Amazon
  1676. // SNS topics are set for both Bounce and Complaint notification types.
  1677. ForwardingEnabled *bool `type:"boolean" required:"true"`
  1678. // The identity for which to set bounce and complaint notification forwarding.
  1679. // Examples: user@example.com, example.com.
  1680. Identity *string `type:"string" required:"true"`
  1681. metadataSetIdentityFeedbackForwardingEnabledInput `json:"-" xml:"-"`
  1682. }
  1683. type metadataSetIdentityFeedbackForwardingEnabledInput struct {
  1684. SDKShapeTraits bool `type:"structure"`
  1685. }
  1686. // String returns the string representation
  1687. func (s SetIdentityFeedbackForwardingEnabledInput) String() string {
  1688. return awsutil.Prettify(s)
  1689. }
  1690. // GoString returns the string representation
  1691. func (s SetIdentityFeedbackForwardingEnabledInput) GoString() string {
  1692. return s.String()
  1693. }
  1694. // An empty element. Receiving this element indicates that the request completed
  1695. // successfully.
  1696. type SetIdentityFeedbackForwardingEnabledOutput struct {
  1697. metadataSetIdentityFeedbackForwardingEnabledOutput `json:"-" xml:"-"`
  1698. }
  1699. type metadataSetIdentityFeedbackForwardingEnabledOutput struct {
  1700. SDKShapeTraits bool `type:"structure"`
  1701. }
  1702. // String returns the string representation
  1703. func (s SetIdentityFeedbackForwardingEnabledOutput) String() string {
  1704. return awsutil.Prettify(s)
  1705. }
  1706. // GoString returns the string representation
  1707. func (s SetIdentityFeedbackForwardingEnabledOutput) GoString() string {
  1708. return s.String()
  1709. }
  1710. // Represents a request to set or clear an identity's notification topic.
  1711. type SetIdentityNotificationTopicInput struct {
  1712. // The identity for which the Amazon SNS topic will be set. You can specify
  1713. // an identity by using its name or by using its Amazon Resource Name (ARN).
  1714. // Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.
  1715. Identity *string `type:"string" required:"true"`
  1716. // The type of notifications that will be published to the specified Amazon
  1717. // SNS topic.
  1718. NotificationType *string `type:"string" required:"true" enum:"NotificationType"`
  1719. // The Amazon Resource Name (ARN) of the Amazon SNS topic. If the parameter
  1720. // is omitted from the request or a null value is passed, SnsTopic is cleared
  1721. // and publishing is disabled.
  1722. SnsTopic *string `type:"string"`
  1723. metadataSetIdentityNotificationTopicInput `json:"-" xml:"-"`
  1724. }
  1725. type metadataSetIdentityNotificationTopicInput struct {
  1726. SDKShapeTraits bool `type:"structure"`
  1727. }
  1728. // String returns the string representation
  1729. func (s SetIdentityNotificationTopicInput) String() string {
  1730. return awsutil.Prettify(s)
  1731. }
  1732. // GoString returns the string representation
  1733. func (s SetIdentityNotificationTopicInput) GoString() string {
  1734. return s.String()
  1735. }
  1736. // An empty element. Receiving this element indicates that the request completed
  1737. // successfully.
  1738. type SetIdentityNotificationTopicOutput struct {
  1739. metadataSetIdentityNotificationTopicOutput `json:"-" xml:"-"`
  1740. }
  1741. type metadataSetIdentityNotificationTopicOutput struct {
  1742. SDKShapeTraits bool `type:"structure"`
  1743. }
  1744. // String returns the string representation
  1745. func (s SetIdentityNotificationTopicOutput) String() string {
  1746. return awsutil.Prettify(s)
  1747. }
  1748. // GoString returns the string representation
  1749. func (s SetIdentityNotificationTopicOutput) GoString() string {
  1750. return s.String()
  1751. }
  1752. // Represents a request instructing the service to begin DKIM verification for
  1753. // a domain.
  1754. type VerifyDomainDkimInput struct {
  1755. // The name of the domain to be verified for Easy DKIM signing.
  1756. Domain *string `type:"string" required:"true"`
  1757. metadataVerifyDomainDkimInput `json:"-" xml:"-"`
  1758. }
  1759. type metadataVerifyDomainDkimInput struct {
  1760. SDKShapeTraits bool `type:"structure"`
  1761. }
  1762. // String returns the string representation
  1763. func (s VerifyDomainDkimInput) String() string {
  1764. return awsutil.Prettify(s)
  1765. }
  1766. // GoString returns the string representation
  1767. func (s VerifyDomainDkimInput) GoString() string {
  1768. return s.String()
  1769. }
  1770. // Represents the DNS records that must be published in the domain name's DNS
  1771. // to complete DKIM setup.
  1772. type VerifyDomainDkimOutput struct {
  1773. // A set of character strings that represent the domain's identity. If the identity
  1774. // is an email address, the tokens represent the domain of that address.
  1775. //
  1776. // Using these tokens, you will need to create DNS CNAME records that point
  1777. // to DKIM public keys hosted by Amazon SES. Amazon Web Services will eventually
  1778. // detect that you have updated your DNS records; this detection process may
  1779. // take up to 72 hours. Upon successful detection, Amazon SES will be able to
  1780. // DKIM-sign emails originating from that domain.
  1781. //
  1782. // For more information about creating DNS records using DKIM tokens, go to
  1783. // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim-dns-records.html).
  1784. DkimTokens []*string `type:"list" required:"true"`
  1785. metadataVerifyDomainDkimOutput `json:"-" xml:"-"`
  1786. }
  1787. type metadataVerifyDomainDkimOutput struct {
  1788. SDKShapeTraits bool `type:"structure"`
  1789. }
  1790. // String returns the string representation
  1791. func (s VerifyDomainDkimOutput) String() string {
  1792. return awsutil.Prettify(s)
  1793. }
  1794. // GoString returns the string representation
  1795. func (s VerifyDomainDkimOutput) GoString() string {
  1796. return s.String()
  1797. }
  1798. // Represents a request instructing the service to begin domain verification.
  1799. type VerifyDomainIdentityInput struct {
  1800. // The domain to be verified.
  1801. Domain *string `type:"string" required:"true"`
  1802. metadataVerifyDomainIdentityInput `json:"-" xml:"-"`
  1803. }
  1804. type metadataVerifyDomainIdentityInput struct {
  1805. SDKShapeTraits bool `type:"structure"`
  1806. }
  1807. // String returns the string representation
  1808. func (s VerifyDomainIdentityInput) String() string {
  1809. return awsutil.Prettify(s)
  1810. }
  1811. // GoString returns the string representation
  1812. func (s VerifyDomainIdentityInput) GoString() string {
  1813. return s.String()
  1814. }
  1815. // Represents a token used for domain ownership verification.
  1816. type VerifyDomainIdentityOutput struct {
  1817. // A TXT record that must be placed in the DNS settings for the domain, in order
  1818. // to complete domain verification.
  1819. VerificationToken *string `type:"string" required:"true"`
  1820. metadataVerifyDomainIdentityOutput `json:"-" xml:"-"`
  1821. }
  1822. type metadataVerifyDomainIdentityOutput struct {
  1823. SDKShapeTraits bool `type:"structure"`
  1824. }
  1825. // String returns the string representation
  1826. func (s VerifyDomainIdentityOutput) String() string {
  1827. return awsutil.Prettify(s)
  1828. }
  1829. // GoString returns the string representation
  1830. func (s VerifyDomainIdentityOutput) GoString() string {
  1831. return s.String()
  1832. }
  1833. // Represents a request instructing the service to begin email address verification.
  1834. type VerifyEmailAddressInput struct {
  1835. // The email address to be verified.
  1836. EmailAddress *string `type:"string" required:"true"`
  1837. metadataVerifyEmailAddressInput `json:"-" xml:"-"`
  1838. }
  1839. type metadataVerifyEmailAddressInput struct {
  1840. SDKShapeTraits bool `type:"structure"`
  1841. }
  1842. // String returns the string representation
  1843. func (s VerifyEmailAddressInput) String() string {
  1844. return awsutil.Prettify(s)
  1845. }
  1846. // GoString returns the string representation
  1847. func (s VerifyEmailAddressInput) GoString() string {
  1848. return s.String()
  1849. }
  1850. type VerifyEmailAddressOutput struct {
  1851. metadataVerifyEmailAddressOutput `json:"-" xml:"-"`
  1852. }
  1853. type metadataVerifyEmailAddressOutput struct {
  1854. SDKShapeTraits bool `type:"structure"`
  1855. }
  1856. // String returns the string representation
  1857. func (s VerifyEmailAddressOutput) String() string {
  1858. return awsutil.Prettify(s)
  1859. }
  1860. // GoString returns the string representation
  1861. func (s VerifyEmailAddressOutput) GoString() string {
  1862. return s.String()
  1863. }
  1864. // Represents a request instructing the service to begin email address verification.
  1865. type VerifyEmailIdentityInput struct {
  1866. // The email address to be verified.
  1867. EmailAddress *string `type:"string" required:"true"`
  1868. metadataVerifyEmailIdentityInput `json:"-" xml:"-"`
  1869. }
  1870. type metadataVerifyEmailIdentityInput struct {
  1871. SDKShapeTraits bool `type:"structure"`
  1872. }
  1873. // String returns the string representation
  1874. func (s VerifyEmailIdentityInput) String() string {
  1875. return awsutil.Prettify(s)
  1876. }
  1877. // GoString returns the string representation
  1878. func (s VerifyEmailIdentityInput) GoString() string {
  1879. return s.String()
  1880. }
  1881. // An empty element. Receiving this element indicates that the request completed
  1882. // successfully.
  1883. type VerifyEmailIdentityOutput struct {
  1884. metadataVerifyEmailIdentityOutput `json:"-" xml:"-"`
  1885. }
  1886. type metadataVerifyEmailIdentityOutput struct {
  1887. SDKShapeTraits bool `type:"structure"`
  1888. }
  1889. // String returns the string representation
  1890. func (s VerifyEmailIdentityOutput) String() string {
  1891. return awsutil.Prettify(s)
  1892. }
  1893. // GoString returns the string representation
  1894. func (s VerifyEmailIdentityOutput) GoString() string {
  1895. return s.String()
  1896. }
  1897. const (
  1898. // @enum IdentityType
  1899. IdentityTypeEmailAddress = "EmailAddress"
  1900. // @enum IdentityType
  1901. IdentityTypeDomain = "Domain"
  1902. )
  1903. const (
  1904. // @enum NotificationType
  1905. NotificationTypeBounce = "Bounce"
  1906. // @enum NotificationType
  1907. NotificationTypeComplaint = "Complaint"
  1908. // @enum NotificationType
  1909. NotificationTypeDelivery = "Delivery"
  1910. )
  1911. const (
  1912. // @enum VerificationStatus
  1913. VerificationStatusPending = "Pending"
  1914. // @enum VerificationStatus
  1915. VerificationStatusSuccess = "Success"
  1916. // @enum VerificationStatus
  1917. VerificationStatusFailed = "Failed"
  1918. // @enum VerificationStatus
  1919. VerificationStatusTemporaryFailure = "TemporaryFailure"
  1920. // @enum VerificationStatus
  1921. VerificationStatusNotStarted = "NotStarted"
  1922. )