api.go 223 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281
  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. "fmt"
  6. "time"
  7. "github.com/aws/aws-sdk-go/aws/awsutil"
  8. "github.com/aws/aws-sdk-go/aws/request"
  9. "github.com/aws/aws-sdk-go/private/protocol"
  10. "github.com/aws/aws-sdk-go/private/protocol/query"
  11. )
  12. const opCloneReceiptRuleSet = "CloneReceiptRuleSet"
  13. // CloneReceiptRuleSetRequest generates a "aws/request.Request" representing the
  14. // client's request for the CloneReceiptRuleSet operation. The "output" return
  15. // value can be used to capture response data after the request's "Send" method
  16. // is called.
  17. //
  18. // Creating a request object using this method should be used when you want to inject
  19. // custom logic into the request's lifecycle using a custom handler, or if you want to
  20. // access properties on the request object before or after sending the request. If
  21. // you just want the service response, call the CloneReceiptRuleSet method directly
  22. // instead.
  23. //
  24. // Note: You must call the "Send" method on the returned request object in order
  25. // to execute the request.
  26. //
  27. // // Example sending a request using the CloneReceiptRuleSetRequest method.
  28. // req, resp := client.CloneReceiptRuleSetRequest(params)
  29. //
  30. // err := req.Send()
  31. // if err == nil { // resp is now filled
  32. // fmt.Println(resp)
  33. // }
  34. //
  35. func (c *SES) CloneReceiptRuleSetRequest(input *CloneReceiptRuleSetInput) (req *request.Request, output *CloneReceiptRuleSetOutput) {
  36. op := &request.Operation{
  37. Name: opCloneReceiptRuleSet,
  38. HTTPMethod: "POST",
  39. HTTPPath: "/",
  40. }
  41. if input == nil {
  42. input = &CloneReceiptRuleSetInput{}
  43. }
  44. req = c.newRequest(op, input, output)
  45. output = &CloneReceiptRuleSetOutput{}
  46. req.Data = output
  47. return
  48. }
  49. // Creates a receipt rule set by cloning an existing one. All receipt rules
  50. // and configurations are copied to the new receipt rule set and are completely
  51. // independent of the source rule set.
  52. //
  53. // For information about setting up rule sets, see the Amazon SES Developer
  54. // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rule-set.html).
  55. //
  56. // This action is throttled at one request per second.
  57. func (c *SES) CloneReceiptRuleSet(input *CloneReceiptRuleSetInput) (*CloneReceiptRuleSetOutput, error) {
  58. req, out := c.CloneReceiptRuleSetRequest(input)
  59. err := req.Send()
  60. return out, err
  61. }
  62. const opCreateReceiptFilter = "CreateReceiptFilter"
  63. // CreateReceiptFilterRequest generates a "aws/request.Request" representing the
  64. // client's request for the CreateReceiptFilter operation. The "output" return
  65. // value can be used to capture response data after the request's "Send" method
  66. // is called.
  67. //
  68. // Creating a request object using this method should be used when you want to inject
  69. // custom logic into the request's lifecycle using a custom handler, or if you want to
  70. // access properties on the request object before or after sending the request. If
  71. // you just want the service response, call the CreateReceiptFilter method directly
  72. // instead.
  73. //
  74. // Note: You must call the "Send" method on the returned request object in order
  75. // to execute the request.
  76. //
  77. // // Example sending a request using the CreateReceiptFilterRequest method.
  78. // req, resp := client.CreateReceiptFilterRequest(params)
  79. //
  80. // err := req.Send()
  81. // if err == nil { // resp is now filled
  82. // fmt.Println(resp)
  83. // }
  84. //
  85. func (c *SES) CreateReceiptFilterRequest(input *CreateReceiptFilterInput) (req *request.Request, output *CreateReceiptFilterOutput) {
  86. op := &request.Operation{
  87. Name: opCreateReceiptFilter,
  88. HTTPMethod: "POST",
  89. HTTPPath: "/",
  90. }
  91. if input == nil {
  92. input = &CreateReceiptFilterInput{}
  93. }
  94. req = c.newRequest(op, input, output)
  95. output = &CreateReceiptFilterOutput{}
  96. req.Data = output
  97. return
  98. }
  99. // Creates a new IP address filter.
  100. //
  101. // For information about setting up IP address filters, see the Amazon SES
  102. // Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-ip-filters.html).
  103. //
  104. // This action is throttled at one request per second.
  105. func (c *SES) CreateReceiptFilter(input *CreateReceiptFilterInput) (*CreateReceiptFilterOutput, error) {
  106. req, out := c.CreateReceiptFilterRequest(input)
  107. err := req.Send()
  108. return out, err
  109. }
  110. const opCreateReceiptRule = "CreateReceiptRule"
  111. // CreateReceiptRuleRequest generates a "aws/request.Request" representing the
  112. // client's request for the CreateReceiptRule operation. The "output" return
  113. // value can be used to capture response data after the request's "Send" method
  114. // is called.
  115. //
  116. // Creating a request object using this method should be used when you want to inject
  117. // custom logic into the request's lifecycle using a custom handler, or if you want to
  118. // access properties on the request object before or after sending the request. If
  119. // you just want the service response, call the CreateReceiptRule method directly
  120. // instead.
  121. //
  122. // Note: You must call the "Send" method on the returned request object in order
  123. // to execute the request.
  124. //
  125. // // Example sending a request using the CreateReceiptRuleRequest method.
  126. // req, resp := client.CreateReceiptRuleRequest(params)
  127. //
  128. // err := req.Send()
  129. // if err == nil { // resp is now filled
  130. // fmt.Println(resp)
  131. // }
  132. //
  133. func (c *SES) CreateReceiptRuleRequest(input *CreateReceiptRuleInput) (req *request.Request, output *CreateReceiptRuleOutput) {
  134. op := &request.Operation{
  135. Name: opCreateReceiptRule,
  136. HTTPMethod: "POST",
  137. HTTPPath: "/",
  138. }
  139. if input == nil {
  140. input = &CreateReceiptRuleInput{}
  141. }
  142. req = c.newRequest(op, input, output)
  143. output = &CreateReceiptRuleOutput{}
  144. req.Data = output
  145. return
  146. }
  147. // Creates a receipt rule.
  148. //
  149. // For information about setting up receipt rules, see the Amazon SES Developer
  150. // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rules.html).
  151. //
  152. // This action is throttled at one request per second.
  153. func (c *SES) CreateReceiptRule(input *CreateReceiptRuleInput) (*CreateReceiptRuleOutput, error) {
  154. req, out := c.CreateReceiptRuleRequest(input)
  155. err := req.Send()
  156. return out, err
  157. }
  158. const opCreateReceiptRuleSet = "CreateReceiptRuleSet"
  159. // CreateReceiptRuleSetRequest generates a "aws/request.Request" representing the
  160. // client's request for the CreateReceiptRuleSet operation. The "output" return
  161. // value can be used to capture response data after the request's "Send" method
  162. // is called.
  163. //
  164. // Creating a request object using this method should be used when you want to inject
  165. // custom logic into the request's lifecycle using a custom handler, or if you want to
  166. // access properties on the request object before or after sending the request. If
  167. // you just want the service response, call the CreateReceiptRuleSet method directly
  168. // instead.
  169. //
  170. // Note: You must call the "Send" method on the returned request object in order
  171. // to execute the request.
  172. //
  173. // // Example sending a request using the CreateReceiptRuleSetRequest method.
  174. // req, resp := client.CreateReceiptRuleSetRequest(params)
  175. //
  176. // err := req.Send()
  177. // if err == nil { // resp is now filled
  178. // fmt.Println(resp)
  179. // }
  180. //
  181. func (c *SES) CreateReceiptRuleSetRequest(input *CreateReceiptRuleSetInput) (req *request.Request, output *CreateReceiptRuleSetOutput) {
  182. op := &request.Operation{
  183. Name: opCreateReceiptRuleSet,
  184. HTTPMethod: "POST",
  185. HTTPPath: "/",
  186. }
  187. if input == nil {
  188. input = &CreateReceiptRuleSetInput{}
  189. }
  190. req = c.newRequest(op, input, output)
  191. output = &CreateReceiptRuleSetOutput{}
  192. req.Data = output
  193. return
  194. }
  195. // Creates an empty receipt rule set.
  196. //
  197. // For information about setting up receipt rule sets, see the Amazon SES Developer
  198. // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rule-set.html).
  199. //
  200. // This action is throttled at one request per second.
  201. func (c *SES) CreateReceiptRuleSet(input *CreateReceiptRuleSetInput) (*CreateReceiptRuleSetOutput, error) {
  202. req, out := c.CreateReceiptRuleSetRequest(input)
  203. err := req.Send()
  204. return out, err
  205. }
  206. const opDeleteIdentity = "DeleteIdentity"
  207. // DeleteIdentityRequest generates a "aws/request.Request" representing the
  208. // client's request for the DeleteIdentity operation. The "output" return
  209. // value can be used to capture response data after the request's "Send" method
  210. // is called.
  211. //
  212. // Creating a request object using this method should be used when you want to inject
  213. // custom logic into the request's lifecycle using a custom handler, or if you want to
  214. // access properties on the request object before or after sending the request. If
  215. // you just want the service response, call the DeleteIdentity method directly
  216. // instead.
  217. //
  218. // Note: You must call the "Send" method on the returned request object in order
  219. // to execute the request.
  220. //
  221. // // Example sending a request using the DeleteIdentityRequest method.
  222. // req, resp := client.DeleteIdentityRequest(params)
  223. //
  224. // err := req.Send()
  225. // if err == nil { // resp is now filled
  226. // fmt.Println(resp)
  227. // }
  228. //
  229. func (c *SES) DeleteIdentityRequest(input *DeleteIdentityInput) (req *request.Request, output *DeleteIdentityOutput) {
  230. op := &request.Operation{
  231. Name: opDeleteIdentity,
  232. HTTPMethod: "POST",
  233. HTTPPath: "/",
  234. }
  235. if input == nil {
  236. input = &DeleteIdentityInput{}
  237. }
  238. req = c.newRequest(op, input, output)
  239. output = &DeleteIdentityOutput{}
  240. req.Data = output
  241. return
  242. }
  243. // Deletes the specified identity (an email address or a domain) from the list
  244. // of verified identities.
  245. //
  246. // This action is throttled at one request per second.
  247. func (c *SES) DeleteIdentity(input *DeleteIdentityInput) (*DeleteIdentityOutput, error) {
  248. req, out := c.DeleteIdentityRequest(input)
  249. err := req.Send()
  250. return out, err
  251. }
  252. const opDeleteIdentityPolicy = "DeleteIdentityPolicy"
  253. // DeleteIdentityPolicyRequest generates a "aws/request.Request" representing the
  254. // client's request for the DeleteIdentityPolicy operation. The "output" return
  255. // value can be used to capture response data after the request's "Send" method
  256. // is called.
  257. //
  258. // Creating a request object using this method should be used when you want to inject
  259. // custom logic into the request's lifecycle using a custom handler, or if you want to
  260. // access properties on the request object before or after sending the request. If
  261. // you just want the service response, call the DeleteIdentityPolicy method directly
  262. // instead.
  263. //
  264. // Note: You must call the "Send" method on the returned request object in order
  265. // to execute the request.
  266. //
  267. // // Example sending a request using the DeleteIdentityPolicyRequest method.
  268. // req, resp := client.DeleteIdentityPolicyRequest(params)
  269. //
  270. // err := req.Send()
  271. // if err == nil { // resp is now filled
  272. // fmt.Println(resp)
  273. // }
  274. //
  275. func (c *SES) DeleteIdentityPolicyRequest(input *DeleteIdentityPolicyInput) (req *request.Request, output *DeleteIdentityPolicyOutput) {
  276. op := &request.Operation{
  277. Name: opDeleteIdentityPolicy,
  278. HTTPMethod: "POST",
  279. HTTPPath: "/",
  280. }
  281. if input == nil {
  282. input = &DeleteIdentityPolicyInput{}
  283. }
  284. req = c.newRequest(op, input, output)
  285. output = &DeleteIdentityPolicyOutput{}
  286. req.Data = output
  287. return
  288. }
  289. // Deletes the specified sending authorization policy for the given identity
  290. // (an email address or a domain). This API returns successfully even if a policy
  291. // with the specified name does not exist.
  292. //
  293. // This API is for the identity owner only. If you have not verified the identity,
  294. // this API will return an error.
  295. //
  296. // Sending authorization is a feature that enables an identity owner to authorize
  297. // other senders to use its identities. For information about using sending
  298. // authorization, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html).
  299. //
  300. // This action is throttled at one request per second.
  301. func (c *SES) DeleteIdentityPolicy(input *DeleteIdentityPolicyInput) (*DeleteIdentityPolicyOutput, error) {
  302. req, out := c.DeleteIdentityPolicyRequest(input)
  303. err := req.Send()
  304. return out, err
  305. }
  306. const opDeleteReceiptFilter = "DeleteReceiptFilter"
  307. // DeleteReceiptFilterRequest generates a "aws/request.Request" representing the
  308. // client's request for the DeleteReceiptFilter operation. The "output" return
  309. // value can be used to capture response data after the request's "Send" method
  310. // is called.
  311. //
  312. // Creating a request object using this method should be used when you want to inject
  313. // custom logic into the request's lifecycle using a custom handler, or if you want to
  314. // access properties on the request object before or after sending the request. If
  315. // you just want the service response, call the DeleteReceiptFilter method directly
  316. // instead.
  317. //
  318. // Note: You must call the "Send" method on the returned request object in order
  319. // to execute the request.
  320. //
  321. // // Example sending a request using the DeleteReceiptFilterRequest method.
  322. // req, resp := client.DeleteReceiptFilterRequest(params)
  323. //
  324. // err := req.Send()
  325. // if err == nil { // resp is now filled
  326. // fmt.Println(resp)
  327. // }
  328. //
  329. func (c *SES) DeleteReceiptFilterRequest(input *DeleteReceiptFilterInput) (req *request.Request, output *DeleteReceiptFilterOutput) {
  330. op := &request.Operation{
  331. Name: opDeleteReceiptFilter,
  332. HTTPMethod: "POST",
  333. HTTPPath: "/",
  334. }
  335. if input == nil {
  336. input = &DeleteReceiptFilterInput{}
  337. }
  338. req = c.newRequest(op, input, output)
  339. output = &DeleteReceiptFilterOutput{}
  340. req.Data = output
  341. return
  342. }
  343. // Deletes the specified IP address filter.
  344. //
  345. // For information about managing IP address filters, see the Amazon SES Developer
  346. // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-ip-filters.html).
  347. //
  348. // This action is throttled at one request per second.
  349. func (c *SES) DeleteReceiptFilter(input *DeleteReceiptFilterInput) (*DeleteReceiptFilterOutput, error) {
  350. req, out := c.DeleteReceiptFilterRequest(input)
  351. err := req.Send()
  352. return out, err
  353. }
  354. const opDeleteReceiptRule = "DeleteReceiptRule"
  355. // DeleteReceiptRuleRequest generates a "aws/request.Request" representing the
  356. // client's request for the DeleteReceiptRule operation. The "output" return
  357. // value can be used to capture response data after the request's "Send" method
  358. // is called.
  359. //
  360. // Creating a request object using this method should be used when you want to inject
  361. // custom logic into the request's lifecycle using a custom handler, or if you want to
  362. // access properties on the request object before or after sending the request. If
  363. // you just want the service response, call the DeleteReceiptRule method directly
  364. // instead.
  365. //
  366. // Note: You must call the "Send" method on the returned request object in order
  367. // to execute the request.
  368. //
  369. // // Example sending a request using the DeleteReceiptRuleRequest method.
  370. // req, resp := client.DeleteReceiptRuleRequest(params)
  371. //
  372. // err := req.Send()
  373. // if err == nil { // resp is now filled
  374. // fmt.Println(resp)
  375. // }
  376. //
  377. func (c *SES) DeleteReceiptRuleRequest(input *DeleteReceiptRuleInput) (req *request.Request, output *DeleteReceiptRuleOutput) {
  378. op := &request.Operation{
  379. Name: opDeleteReceiptRule,
  380. HTTPMethod: "POST",
  381. HTTPPath: "/",
  382. }
  383. if input == nil {
  384. input = &DeleteReceiptRuleInput{}
  385. }
  386. req = c.newRequest(op, input, output)
  387. output = &DeleteReceiptRuleOutput{}
  388. req.Data = output
  389. return
  390. }
  391. // Deletes the specified receipt rule.
  392. //
  393. // For information about managing receipt rules, see the Amazon SES Developer
  394. // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rules.html).
  395. //
  396. // This action is throttled at one request per second.
  397. func (c *SES) DeleteReceiptRule(input *DeleteReceiptRuleInput) (*DeleteReceiptRuleOutput, error) {
  398. req, out := c.DeleteReceiptRuleRequest(input)
  399. err := req.Send()
  400. return out, err
  401. }
  402. const opDeleteReceiptRuleSet = "DeleteReceiptRuleSet"
  403. // DeleteReceiptRuleSetRequest generates a "aws/request.Request" representing the
  404. // client's request for the DeleteReceiptRuleSet operation. The "output" return
  405. // value can be used to capture response data after the request's "Send" method
  406. // is called.
  407. //
  408. // Creating a request object using this method should be used when you want to inject
  409. // custom logic into the request's lifecycle using a custom handler, or if you want to
  410. // access properties on the request object before or after sending the request. If
  411. // you just want the service response, call the DeleteReceiptRuleSet method directly
  412. // instead.
  413. //
  414. // Note: You must call the "Send" method on the returned request object in order
  415. // to execute the request.
  416. //
  417. // // Example sending a request using the DeleteReceiptRuleSetRequest method.
  418. // req, resp := client.DeleteReceiptRuleSetRequest(params)
  419. //
  420. // err := req.Send()
  421. // if err == nil { // resp is now filled
  422. // fmt.Println(resp)
  423. // }
  424. //
  425. func (c *SES) DeleteReceiptRuleSetRequest(input *DeleteReceiptRuleSetInput) (req *request.Request, output *DeleteReceiptRuleSetOutput) {
  426. op := &request.Operation{
  427. Name: opDeleteReceiptRuleSet,
  428. HTTPMethod: "POST",
  429. HTTPPath: "/",
  430. }
  431. if input == nil {
  432. input = &DeleteReceiptRuleSetInput{}
  433. }
  434. req = c.newRequest(op, input, output)
  435. output = &DeleteReceiptRuleSetOutput{}
  436. req.Data = output
  437. return
  438. }
  439. // Deletes the specified receipt rule set and all of the receipt rules it contains.
  440. //
  441. // The currently active rule set cannot be deleted.
  442. //
  443. // For information about managing receipt rule sets, see the Amazon SES Developer
  444. // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rule-sets.html).
  445. //
  446. // This action is throttled at one request per second.
  447. func (c *SES) DeleteReceiptRuleSet(input *DeleteReceiptRuleSetInput) (*DeleteReceiptRuleSetOutput, error) {
  448. req, out := c.DeleteReceiptRuleSetRequest(input)
  449. err := req.Send()
  450. return out, err
  451. }
  452. const opDeleteVerifiedEmailAddress = "DeleteVerifiedEmailAddress"
  453. // DeleteVerifiedEmailAddressRequest generates a "aws/request.Request" representing the
  454. // client's request for the DeleteVerifiedEmailAddress operation. The "output" return
  455. // value can be used to capture response data after the request's "Send" method
  456. // is called.
  457. //
  458. // Creating a request object using this method should be used when you want to inject
  459. // custom logic into the request's lifecycle using a custom handler, or if you want to
  460. // access properties on the request object before or after sending the request. If
  461. // you just want the service response, call the DeleteVerifiedEmailAddress method directly
  462. // instead.
  463. //
  464. // Note: You must call the "Send" method on the returned request object in order
  465. // to execute the request.
  466. //
  467. // // Example sending a request using the DeleteVerifiedEmailAddressRequest method.
  468. // req, resp := client.DeleteVerifiedEmailAddressRequest(params)
  469. //
  470. // err := req.Send()
  471. // if err == nil { // resp is now filled
  472. // fmt.Println(resp)
  473. // }
  474. //
  475. func (c *SES) DeleteVerifiedEmailAddressRequest(input *DeleteVerifiedEmailAddressInput) (req *request.Request, output *DeleteVerifiedEmailAddressOutput) {
  476. op := &request.Operation{
  477. Name: opDeleteVerifiedEmailAddress,
  478. HTTPMethod: "POST",
  479. HTTPPath: "/",
  480. }
  481. if input == nil {
  482. input = &DeleteVerifiedEmailAddressInput{}
  483. }
  484. req = c.newRequest(op, input, output)
  485. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  486. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  487. output = &DeleteVerifiedEmailAddressOutput{}
  488. req.Data = output
  489. return
  490. }
  491. // Deletes the specified email address from the list of verified addresses.
  492. //
  493. // The DeleteVerifiedEmailAddress action is deprecated as of the May 15, 2012
  494. // release of Domain Verification. The DeleteIdentity action is now preferred.
  495. //
  496. // This action is throttled at one request per second.
  497. func (c *SES) DeleteVerifiedEmailAddress(input *DeleteVerifiedEmailAddressInput) (*DeleteVerifiedEmailAddressOutput, error) {
  498. req, out := c.DeleteVerifiedEmailAddressRequest(input)
  499. err := req.Send()
  500. return out, err
  501. }
  502. const opDescribeActiveReceiptRuleSet = "DescribeActiveReceiptRuleSet"
  503. // DescribeActiveReceiptRuleSetRequest generates a "aws/request.Request" representing the
  504. // client's request for the DescribeActiveReceiptRuleSet operation. The "output" return
  505. // value can be used to capture response data after the request's "Send" method
  506. // is called.
  507. //
  508. // Creating a request object using this method should be used when you want to inject
  509. // custom logic into the request's lifecycle using a custom handler, or if you want to
  510. // access properties on the request object before or after sending the request. If
  511. // you just want the service response, call the DescribeActiveReceiptRuleSet method directly
  512. // instead.
  513. //
  514. // Note: You must call the "Send" method on the returned request object in order
  515. // to execute the request.
  516. //
  517. // // Example sending a request using the DescribeActiveReceiptRuleSetRequest method.
  518. // req, resp := client.DescribeActiveReceiptRuleSetRequest(params)
  519. //
  520. // err := req.Send()
  521. // if err == nil { // resp is now filled
  522. // fmt.Println(resp)
  523. // }
  524. //
  525. func (c *SES) DescribeActiveReceiptRuleSetRequest(input *DescribeActiveReceiptRuleSetInput) (req *request.Request, output *DescribeActiveReceiptRuleSetOutput) {
  526. op := &request.Operation{
  527. Name: opDescribeActiveReceiptRuleSet,
  528. HTTPMethod: "POST",
  529. HTTPPath: "/",
  530. }
  531. if input == nil {
  532. input = &DescribeActiveReceiptRuleSetInput{}
  533. }
  534. req = c.newRequest(op, input, output)
  535. output = &DescribeActiveReceiptRuleSetOutput{}
  536. req.Data = output
  537. return
  538. }
  539. // Returns the metadata and receipt rules for the receipt rule set that is currently
  540. // active.
  541. //
  542. // For information about setting up receipt rule sets, see the Amazon SES Developer
  543. // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rule-set.html).
  544. //
  545. // This action is throttled at one request per second.
  546. func (c *SES) DescribeActiveReceiptRuleSet(input *DescribeActiveReceiptRuleSetInput) (*DescribeActiveReceiptRuleSetOutput, error) {
  547. req, out := c.DescribeActiveReceiptRuleSetRequest(input)
  548. err := req.Send()
  549. return out, err
  550. }
  551. const opDescribeReceiptRule = "DescribeReceiptRule"
  552. // DescribeReceiptRuleRequest generates a "aws/request.Request" representing the
  553. // client's request for the DescribeReceiptRule operation. The "output" return
  554. // value can be used to capture response data after the request's "Send" method
  555. // is called.
  556. //
  557. // Creating a request object using this method should be used when you want to inject
  558. // custom logic into the request's lifecycle using a custom handler, or if you want to
  559. // access properties on the request object before or after sending the request. If
  560. // you just want the service response, call the DescribeReceiptRule method directly
  561. // instead.
  562. //
  563. // Note: You must call the "Send" method on the returned request object in order
  564. // to execute the request.
  565. //
  566. // // Example sending a request using the DescribeReceiptRuleRequest method.
  567. // req, resp := client.DescribeReceiptRuleRequest(params)
  568. //
  569. // err := req.Send()
  570. // if err == nil { // resp is now filled
  571. // fmt.Println(resp)
  572. // }
  573. //
  574. func (c *SES) DescribeReceiptRuleRequest(input *DescribeReceiptRuleInput) (req *request.Request, output *DescribeReceiptRuleOutput) {
  575. op := &request.Operation{
  576. Name: opDescribeReceiptRule,
  577. HTTPMethod: "POST",
  578. HTTPPath: "/",
  579. }
  580. if input == nil {
  581. input = &DescribeReceiptRuleInput{}
  582. }
  583. req = c.newRequest(op, input, output)
  584. output = &DescribeReceiptRuleOutput{}
  585. req.Data = output
  586. return
  587. }
  588. // Returns the details of the specified receipt rule.
  589. //
  590. // For information about setting up receipt rules, see the Amazon SES Developer
  591. // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rules.html).
  592. //
  593. // This action is throttled at one request per second.
  594. func (c *SES) DescribeReceiptRule(input *DescribeReceiptRuleInput) (*DescribeReceiptRuleOutput, error) {
  595. req, out := c.DescribeReceiptRuleRequest(input)
  596. err := req.Send()
  597. return out, err
  598. }
  599. const opDescribeReceiptRuleSet = "DescribeReceiptRuleSet"
  600. // DescribeReceiptRuleSetRequest generates a "aws/request.Request" representing the
  601. // client's request for the DescribeReceiptRuleSet operation. The "output" return
  602. // value can be used to capture response data after the request's "Send" method
  603. // is called.
  604. //
  605. // Creating a request object using this method should be used when you want to inject
  606. // custom logic into the request's lifecycle using a custom handler, or if you want to
  607. // access properties on the request object before or after sending the request. If
  608. // you just want the service response, call the DescribeReceiptRuleSet method directly
  609. // instead.
  610. //
  611. // Note: You must call the "Send" method on the returned request object in order
  612. // to execute the request.
  613. //
  614. // // Example sending a request using the DescribeReceiptRuleSetRequest method.
  615. // req, resp := client.DescribeReceiptRuleSetRequest(params)
  616. //
  617. // err := req.Send()
  618. // if err == nil { // resp is now filled
  619. // fmt.Println(resp)
  620. // }
  621. //
  622. func (c *SES) DescribeReceiptRuleSetRequest(input *DescribeReceiptRuleSetInput) (req *request.Request, output *DescribeReceiptRuleSetOutput) {
  623. op := &request.Operation{
  624. Name: opDescribeReceiptRuleSet,
  625. HTTPMethod: "POST",
  626. HTTPPath: "/",
  627. }
  628. if input == nil {
  629. input = &DescribeReceiptRuleSetInput{}
  630. }
  631. req = c.newRequest(op, input, output)
  632. output = &DescribeReceiptRuleSetOutput{}
  633. req.Data = output
  634. return
  635. }
  636. // Returns the details of the specified receipt rule set.
  637. //
  638. // For information about managing receipt rule sets, see the Amazon SES Developer
  639. // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rule-sets.html).
  640. //
  641. // This action is throttled at one request per second.
  642. func (c *SES) DescribeReceiptRuleSet(input *DescribeReceiptRuleSetInput) (*DescribeReceiptRuleSetOutput, error) {
  643. req, out := c.DescribeReceiptRuleSetRequest(input)
  644. err := req.Send()
  645. return out, err
  646. }
  647. const opGetIdentityDkimAttributes = "GetIdentityDkimAttributes"
  648. // GetIdentityDkimAttributesRequest generates a "aws/request.Request" representing the
  649. // client's request for the GetIdentityDkimAttributes operation. The "output" return
  650. // value can be used to capture response data after the request's "Send" method
  651. // is called.
  652. //
  653. // Creating a request object using this method should be used when you want to inject
  654. // custom logic into the request's lifecycle using a custom handler, or if you want to
  655. // access properties on the request object before or after sending the request. If
  656. // you just want the service response, call the GetIdentityDkimAttributes method directly
  657. // instead.
  658. //
  659. // Note: You must call the "Send" method on the returned request object in order
  660. // to execute the request.
  661. //
  662. // // Example sending a request using the GetIdentityDkimAttributesRequest method.
  663. // req, resp := client.GetIdentityDkimAttributesRequest(params)
  664. //
  665. // err := req.Send()
  666. // if err == nil { // resp is now filled
  667. // fmt.Println(resp)
  668. // }
  669. //
  670. func (c *SES) GetIdentityDkimAttributesRequest(input *GetIdentityDkimAttributesInput) (req *request.Request, output *GetIdentityDkimAttributesOutput) {
  671. op := &request.Operation{
  672. Name: opGetIdentityDkimAttributes,
  673. HTTPMethod: "POST",
  674. HTTPPath: "/",
  675. }
  676. if input == nil {
  677. input = &GetIdentityDkimAttributesInput{}
  678. }
  679. req = c.newRequest(op, input, output)
  680. output = &GetIdentityDkimAttributesOutput{}
  681. req.Data = output
  682. return
  683. }
  684. // Returns the current status of Easy DKIM signing for an entity. For domain
  685. // name identities, this action also returns the DKIM tokens that are required
  686. // for Easy DKIM signing, and whether Amazon SES has successfully verified that
  687. // these tokens have been published.
  688. //
  689. // This action takes a list of identities as input and returns the following
  690. // information for each:
  691. //
  692. // Whether Easy DKIM signing is enabled or disabled.
  693. //
  694. // A set of DKIM tokens that represent the identity. If the identity is an
  695. // email address, the tokens represent the domain of that address.
  696. //
  697. // Whether Amazon SES has successfully verified the DKIM tokens published
  698. // in the domain's DNS. This information is only returned for domain name identities,
  699. // not for email addresses.
  700. //
  701. // This action is throttled at one request per second and can only get DKIM
  702. // attributes for up to 100 identities at a time.
  703. //
  704. // For more information about creating DNS records using DKIM tokens, go to
  705. // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim-dns-records.html).
  706. func (c *SES) GetIdentityDkimAttributes(input *GetIdentityDkimAttributesInput) (*GetIdentityDkimAttributesOutput, error) {
  707. req, out := c.GetIdentityDkimAttributesRequest(input)
  708. err := req.Send()
  709. return out, err
  710. }
  711. const opGetIdentityMailFromDomainAttributes = "GetIdentityMailFromDomainAttributes"
  712. // GetIdentityMailFromDomainAttributesRequest generates a "aws/request.Request" representing the
  713. // client's request for the GetIdentityMailFromDomainAttributes operation. The "output" return
  714. // value can be used to capture response data after the request's "Send" method
  715. // is called.
  716. //
  717. // Creating a request object using this method should be used when you want to inject
  718. // custom logic into the request's lifecycle using a custom handler, or if you want to
  719. // access properties on the request object before or after sending the request. If
  720. // you just want the service response, call the GetIdentityMailFromDomainAttributes method directly
  721. // instead.
  722. //
  723. // Note: You must call the "Send" method on the returned request object in order
  724. // to execute the request.
  725. //
  726. // // Example sending a request using the GetIdentityMailFromDomainAttributesRequest method.
  727. // req, resp := client.GetIdentityMailFromDomainAttributesRequest(params)
  728. //
  729. // err := req.Send()
  730. // if err == nil { // resp is now filled
  731. // fmt.Println(resp)
  732. // }
  733. //
  734. func (c *SES) GetIdentityMailFromDomainAttributesRequest(input *GetIdentityMailFromDomainAttributesInput) (req *request.Request, output *GetIdentityMailFromDomainAttributesOutput) {
  735. op := &request.Operation{
  736. Name: opGetIdentityMailFromDomainAttributes,
  737. HTTPMethod: "POST",
  738. HTTPPath: "/",
  739. }
  740. if input == nil {
  741. input = &GetIdentityMailFromDomainAttributesInput{}
  742. }
  743. req = c.newRequest(op, input, output)
  744. output = &GetIdentityMailFromDomainAttributesOutput{}
  745. req.Data = output
  746. return
  747. }
  748. // Returns the custom MAIL FROM attributes for a list of identities (email addresses
  749. // and/or domains).
  750. //
  751. // This action is throttled at one request per second and can only get custom
  752. // MAIL FROM attributes for up to 100 identities at a time.
  753. func (c *SES) GetIdentityMailFromDomainAttributes(input *GetIdentityMailFromDomainAttributesInput) (*GetIdentityMailFromDomainAttributesOutput, error) {
  754. req, out := c.GetIdentityMailFromDomainAttributesRequest(input)
  755. err := req.Send()
  756. return out, err
  757. }
  758. const opGetIdentityNotificationAttributes = "GetIdentityNotificationAttributes"
  759. // GetIdentityNotificationAttributesRequest generates a "aws/request.Request" representing the
  760. // client's request for the GetIdentityNotificationAttributes operation. The "output" return
  761. // value can be used to capture response data after the request's "Send" method
  762. // is called.
  763. //
  764. // Creating a request object using this method should be used when you want to inject
  765. // custom logic into the request's lifecycle using a custom handler, or if you want to
  766. // access properties on the request object before or after sending the request. If
  767. // you just want the service response, call the GetIdentityNotificationAttributes method directly
  768. // instead.
  769. //
  770. // Note: You must call the "Send" method on the returned request object in order
  771. // to execute the request.
  772. //
  773. // // Example sending a request using the GetIdentityNotificationAttributesRequest method.
  774. // req, resp := client.GetIdentityNotificationAttributesRequest(params)
  775. //
  776. // err := req.Send()
  777. // if err == nil { // resp is now filled
  778. // fmt.Println(resp)
  779. // }
  780. //
  781. func (c *SES) GetIdentityNotificationAttributesRequest(input *GetIdentityNotificationAttributesInput) (req *request.Request, output *GetIdentityNotificationAttributesOutput) {
  782. op := &request.Operation{
  783. Name: opGetIdentityNotificationAttributes,
  784. HTTPMethod: "POST",
  785. HTTPPath: "/",
  786. }
  787. if input == nil {
  788. input = &GetIdentityNotificationAttributesInput{}
  789. }
  790. req = c.newRequest(op, input, output)
  791. output = &GetIdentityNotificationAttributesOutput{}
  792. req.Data = output
  793. return
  794. }
  795. // Given a list of verified identities (email addresses and/or domains), returns
  796. // a structure describing identity notification attributes.
  797. //
  798. // This action is throttled at one request per second and can only get notification
  799. // attributes for up to 100 identities at a time.
  800. //
  801. // For more information about using notifications with Amazon SES, see the
  802. // Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html).
  803. func (c *SES) GetIdentityNotificationAttributes(input *GetIdentityNotificationAttributesInput) (*GetIdentityNotificationAttributesOutput, error) {
  804. req, out := c.GetIdentityNotificationAttributesRequest(input)
  805. err := req.Send()
  806. return out, err
  807. }
  808. const opGetIdentityPolicies = "GetIdentityPolicies"
  809. // GetIdentityPoliciesRequest generates a "aws/request.Request" representing the
  810. // client's request for the GetIdentityPolicies operation. The "output" return
  811. // value can be used to capture response data after the request's "Send" method
  812. // is called.
  813. //
  814. // Creating a request object using this method should be used when you want to inject
  815. // custom logic into the request's lifecycle using a custom handler, or if you want to
  816. // access properties on the request object before or after sending the request. If
  817. // you just want the service response, call the GetIdentityPolicies method directly
  818. // instead.
  819. //
  820. // Note: You must call the "Send" method on the returned request object in order
  821. // to execute the request.
  822. //
  823. // // Example sending a request using the GetIdentityPoliciesRequest method.
  824. // req, resp := client.GetIdentityPoliciesRequest(params)
  825. //
  826. // err := req.Send()
  827. // if err == nil { // resp is now filled
  828. // fmt.Println(resp)
  829. // }
  830. //
  831. func (c *SES) GetIdentityPoliciesRequest(input *GetIdentityPoliciesInput) (req *request.Request, output *GetIdentityPoliciesOutput) {
  832. op := &request.Operation{
  833. Name: opGetIdentityPolicies,
  834. HTTPMethod: "POST",
  835. HTTPPath: "/",
  836. }
  837. if input == nil {
  838. input = &GetIdentityPoliciesInput{}
  839. }
  840. req = c.newRequest(op, input, output)
  841. output = &GetIdentityPoliciesOutput{}
  842. req.Data = output
  843. return
  844. }
  845. // Returns the requested sending authorization policies for the given identity
  846. // (an email address or a domain). The policies are returned as a map of policy
  847. // names to policy contents. You can retrieve a maximum of 20 policies at a
  848. // time.
  849. //
  850. // This API is for the identity owner only. If you have not verified the identity,
  851. // this API will return an error.
  852. //
  853. // Sending authorization is a feature that enables an identity owner to authorize
  854. // other senders to use its identities. For information about using sending
  855. // authorization, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html).
  856. //
  857. // This action is throttled at one request per second.
  858. func (c *SES) GetIdentityPolicies(input *GetIdentityPoliciesInput) (*GetIdentityPoliciesOutput, error) {
  859. req, out := c.GetIdentityPoliciesRequest(input)
  860. err := req.Send()
  861. return out, err
  862. }
  863. const opGetIdentityVerificationAttributes = "GetIdentityVerificationAttributes"
  864. // GetIdentityVerificationAttributesRequest generates a "aws/request.Request" representing the
  865. // client's request for the GetIdentityVerificationAttributes operation. The "output" return
  866. // value can be used to capture response data after the request's "Send" method
  867. // is called.
  868. //
  869. // Creating a request object using this method should be used when you want to inject
  870. // custom logic into the request's lifecycle using a custom handler, or if you want to
  871. // access properties on the request object before or after sending the request. If
  872. // you just want the service response, call the GetIdentityVerificationAttributes method directly
  873. // instead.
  874. //
  875. // Note: You must call the "Send" method on the returned request object in order
  876. // to execute the request.
  877. //
  878. // // Example sending a request using the GetIdentityVerificationAttributesRequest method.
  879. // req, resp := client.GetIdentityVerificationAttributesRequest(params)
  880. //
  881. // err := req.Send()
  882. // if err == nil { // resp is now filled
  883. // fmt.Println(resp)
  884. // }
  885. //
  886. func (c *SES) GetIdentityVerificationAttributesRequest(input *GetIdentityVerificationAttributesInput) (req *request.Request, output *GetIdentityVerificationAttributesOutput) {
  887. op := &request.Operation{
  888. Name: opGetIdentityVerificationAttributes,
  889. HTTPMethod: "POST",
  890. HTTPPath: "/",
  891. }
  892. if input == nil {
  893. input = &GetIdentityVerificationAttributesInput{}
  894. }
  895. req = c.newRequest(op, input, output)
  896. output = &GetIdentityVerificationAttributesOutput{}
  897. req.Data = output
  898. return
  899. }
  900. // Given a list of identities (email addresses and/or domains), returns the
  901. // verification status and (for domain identities) the verification token for
  902. // each identity.
  903. //
  904. // This action is throttled at one request per second and can only get verification
  905. // attributes for up to 100 identities at a time.
  906. func (c *SES) GetIdentityVerificationAttributes(input *GetIdentityVerificationAttributesInput) (*GetIdentityVerificationAttributesOutput, error) {
  907. req, out := c.GetIdentityVerificationAttributesRequest(input)
  908. err := req.Send()
  909. return out, err
  910. }
  911. const opGetSendQuota = "GetSendQuota"
  912. // GetSendQuotaRequest generates a "aws/request.Request" representing the
  913. // client's request for the GetSendQuota operation. The "output" return
  914. // value can be used to capture response data after the request's "Send" method
  915. // is called.
  916. //
  917. // Creating a request object using this method should be used when you want to inject
  918. // custom logic into the request's lifecycle using a custom handler, or if you want to
  919. // access properties on the request object before or after sending the request. If
  920. // you just want the service response, call the GetSendQuota method directly
  921. // instead.
  922. //
  923. // Note: You must call the "Send" method on the returned request object in order
  924. // to execute the request.
  925. //
  926. // // Example sending a request using the GetSendQuotaRequest method.
  927. // req, resp := client.GetSendQuotaRequest(params)
  928. //
  929. // err := req.Send()
  930. // if err == nil { // resp is now filled
  931. // fmt.Println(resp)
  932. // }
  933. //
  934. func (c *SES) GetSendQuotaRequest(input *GetSendQuotaInput) (req *request.Request, output *GetSendQuotaOutput) {
  935. op := &request.Operation{
  936. Name: opGetSendQuota,
  937. HTTPMethod: "POST",
  938. HTTPPath: "/",
  939. }
  940. if input == nil {
  941. input = &GetSendQuotaInput{}
  942. }
  943. req = c.newRequest(op, input, output)
  944. output = &GetSendQuotaOutput{}
  945. req.Data = output
  946. return
  947. }
  948. // Returns the user's current sending limits.
  949. //
  950. // This action is throttled at one request per second.
  951. func (c *SES) GetSendQuota(input *GetSendQuotaInput) (*GetSendQuotaOutput, error) {
  952. req, out := c.GetSendQuotaRequest(input)
  953. err := req.Send()
  954. return out, err
  955. }
  956. const opGetSendStatistics = "GetSendStatistics"
  957. // GetSendStatisticsRequest generates a "aws/request.Request" representing the
  958. // client's request for the GetSendStatistics operation. The "output" return
  959. // value can be used to capture response data after the request's "Send" method
  960. // is called.
  961. //
  962. // Creating a request object using this method should be used when you want to inject
  963. // custom logic into the request's lifecycle using a custom handler, or if you want to
  964. // access properties on the request object before or after sending the request. If
  965. // you just want the service response, call the GetSendStatistics method directly
  966. // instead.
  967. //
  968. // Note: You must call the "Send" method on the returned request object in order
  969. // to execute the request.
  970. //
  971. // // Example sending a request using the GetSendStatisticsRequest method.
  972. // req, resp := client.GetSendStatisticsRequest(params)
  973. //
  974. // err := req.Send()
  975. // if err == nil { // resp is now filled
  976. // fmt.Println(resp)
  977. // }
  978. //
  979. func (c *SES) GetSendStatisticsRequest(input *GetSendStatisticsInput) (req *request.Request, output *GetSendStatisticsOutput) {
  980. op := &request.Operation{
  981. Name: opGetSendStatistics,
  982. HTTPMethod: "POST",
  983. HTTPPath: "/",
  984. }
  985. if input == nil {
  986. input = &GetSendStatisticsInput{}
  987. }
  988. req = c.newRequest(op, input, output)
  989. output = &GetSendStatisticsOutput{}
  990. req.Data = output
  991. return
  992. }
  993. // Returns the user's sending statistics. The result is a list of data points,
  994. // representing the last two weeks of sending activity.
  995. //
  996. // Each data point in the list contains statistics for a 15-minute interval.
  997. //
  998. // This action is throttled at one request per second.
  999. func (c *SES) GetSendStatistics(input *GetSendStatisticsInput) (*GetSendStatisticsOutput, error) {
  1000. req, out := c.GetSendStatisticsRequest(input)
  1001. err := req.Send()
  1002. return out, err
  1003. }
  1004. const opListIdentities = "ListIdentities"
  1005. // ListIdentitiesRequest generates a "aws/request.Request" representing the
  1006. // client's request for the ListIdentities operation. The "output" return
  1007. // value can be used to capture response data after the request's "Send" method
  1008. // is called.
  1009. //
  1010. // Creating a request object using this method should be used when you want to inject
  1011. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1012. // access properties on the request object before or after sending the request. If
  1013. // you just want the service response, call the ListIdentities method directly
  1014. // instead.
  1015. //
  1016. // Note: You must call the "Send" method on the returned request object in order
  1017. // to execute the request.
  1018. //
  1019. // // Example sending a request using the ListIdentitiesRequest method.
  1020. // req, resp := client.ListIdentitiesRequest(params)
  1021. //
  1022. // err := req.Send()
  1023. // if err == nil { // resp is now filled
  1024. // fmt.Println(resp)
  1025. // }
  1026. //
  1027. func (c *SES) ListIdentitiesRequest(input *ListIdentitiesInput) (req *request.Request, output *ListIdentitiesOutput) {
  1028. op := &request.Operation{
  1029. Name: opListIdentities,
  1030. HTTPMethod: "POST",
  1031. HTTPPath: "/",
  1032. Paginator: &request.Paginator{
  1033. InputTokens: []string{"NextToken"},
  1034. OutputTokens: []string{"NextToken"},
  1035. LimitToken: "MaxItems",
  1036. TruncationToken: "",
  1037. },
  1038. }
  1039. if input == nil {
  1040. input = &ListIdentitiesInput{}
  1041. }
  1042. req = c.newRequest(op, input, output)
  1043. output = &ListIdentitiesOutput{}
  1044. req.Data = output
  1045. return
  1046. }
  1047. // Returns a list containing all of the identities (email addresses and domains)
  1048. // for your AWS account, regardless of verification status.
  1049. //
  1050. // This action is throttled at one request per second.
  1051. func (c *SES) ListIdentities(input *ListIdentitiesInput) (*ListIdentitiesOutput, error) {
  1052. req, out := c.ListIdentitiesRequest(input)
  1053. err := req.Send()
  1054. return out, err
  1055. }
  1056. // ListIdentitiesPages iterates over the pages of a ListIdentities operation,
  1057. // calling the "fn" function with the response data for each page. To stop
  1058. // iterating, return false from the fn function.
  1059. //
  1060. // See ListIdentities method for more information on how to use this operation.
  1061. //
  1062. // Note: This operation can generate multiple requests to a service.
  1063. //
  1064. // // Example iterating over at most 3 pages of a ListIdentities operation.
  1065. // pageNum := 0
  1066. // err := client.ListIdentitiesPages(params,
  1067. // func(page *ListIdentitiesOutput, lastPage bool) bool {
  1068. // pageNum++
  1069. // fmt.Println(page)
  1070. // return pageNum <= 3
  1071. // })
  1072. //
  1073. func (c *SES) ListIdentitiesPages(input *ListIdentitiesInput, fn func(p *ListIdentitiesOutput, lastPage bool) (shouldContinue bool)) error {
  1074. page, _ := c.ListIdentitiesRequest(input)
  1075. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1076. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1077. return fn(p.(*ListIdentitiesOutput), lastPage)
  1078. })
  1079. }
  1080. const opListIdentityPolicies = "ListIdentityPolicies"
  1081. // ListIdentityPoliciesRequest generates a "aws/request.Request" representing the
  1082. // client's request for the ListIdentityPolicies operation. The "output" return
  1083. // value can be used to capture response data after the request's "Send" method
  1084. // is called.
  1085. //
  1086. // Creating a request object using this method should be used when you want to inject
  1087. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1088. // access properties on the request object before or after sending the request. If
  1089. // you just want the service response, call the ListIdentityPolicies method directly
  1090. // instead.
  1091. //
  1092. // Note: You must call the "Send" method on the returned request object in order
  1093. // to execute the request.
  1094. //
  1095. // // Example sending a request using the ListIdentityPoliciesRequest method.
  1096. // req, resp := client.ListIdentityPoliciesRequest(params)
  1097. //
  1098. // err := req.Send()
  1099. // if err == nil { // resp is now filled
  1100. // fmt.Println(resp)
  1101. // }
  1102. //
  1103. func (c *SES) ListIdentityPoliciesRequest(input *ListIdentityPoliciesInput) (req *request.Request, output *ListIdentityPoliciesOutput) {
  1104. op := &request.Operation{
  1105. Name: opListIdentityPolicies,
  1106. HTTPMethod: "POST",
  1107. HTTPPath: "/",
  1108. }
  1109. if input == nil {
  1110. input = &ListIdentityPoliciesInput{}
  1111. }
  1112. req = c.newRequest(op, input, output)
  1113. output = &ListIdentityPoliciesOutput{}
  1114. req.Data = output
  1115. return
  1116. }
  1117. // Returns a list of sending authorization policies that are attached to the
  1118. // given identity (an email address or a domain). This API returns only a list.
  1119. // If you want the actual policy content, you can use GetIdentityPolicies.
  1120. //
  1121. // This API is for the identity owner only. If you have not verified the identity,
  1122. // this API will return an error.
  1123. //
  1124. // Sending authorization is a feature that enables an identity owner to authorize
  1125. // other senders to use its identities. For information about using sending
  1126. // authorization, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html).
  1127. //
  1128. // This action is throttled at one request per second.
  1129. func (c *SES) ListIdentityPolicies(input *ListIdentityPoliciesInput) (*ListIdentityPoliciesOutput, error) {
  1130. req, out := c.ListIdentityPoliciesRequest(input)
  1131. err := req.Send()
  1132. return out, err
  1133. }
  1134. const opListReceiptFilters = "ListReceiptFilters"
  1135. // ListReceiptFiltersRequest generates a "aws/request.Request" representing the
  1136. // client's request for the ListReceiptFilters operation. The "output" return
  1137. // value can be used to capture response data after the request's "Send" method
  1138. // is called.
  1139. //
  1140. // Creating a request object using this method should be used when you want to inject
  1141. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1142. // access properties on the request object before or after sending the request. If
  1143. // you just want the service response, call the ListReceiptFilters method directly
  1144. // instead.
  1145. //
  1146. // Note: You must call the "Send" method on the returned request object in order
  1147. // to execute the request.
  1148. //
  1149. // // Example sending a request using the ListReceiptFiltersRequest method.
  1150. // req, resp := client.ListReceiptFiltersRequest(params)
  1151. //
  1152. // err := req.Send()
  1153. // if err == nil { // resp is now filled
  1154. // fmt.Println(resp)
  1155. // }
  1156. //
  1157. func (c *SES) ListReceiptFiltersRequest(input *ListReceiptFiltersInput) (req *request.Request, output *ListReceiptFiltersOutput) {
  1158. op := &request.Operation{
  1159. Name: opListReceiptFilters,
  1160. HTTPMethod: "POST",
  1161. HTTPPath: "/",
  1162. }
  1163. if input == nil {
  1164. input = &ListReceiptFiltersInput{}
  1165. }
  1166. req = c.newRequest(op, input, output)
  1167. output = &ListReceiptFiltersOutput{}
  1168. req.Data = output
  1169. return
  1170. }
  1171. // Lists the IP address filters associated with your AWS account.
  1172. //
  1173. // For information about managing IP address filters, see the Amazon SES Developer
  1174. // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-ip-filters.html).
  1175. //
  1176. // This action is throttled at one request per second.
  1177. func (c *SES) ListReceiptFilters(input *ListReceiptFiltersInput) (*ListReceiptFiltersOutput, error) {
  1178. req, out := c.ListReceiptFiltersRequest(input)
  1179. err := req.Send()
  1180. return out, err
  1181. }
  1182. const opListReceiptRuleSets = "ListReceiptRuleSets"
  1183. // ListReceiptRuleSetsRequest generates a "aws/request.Request" representing the
  1184. // client's request for the ListReceiptRuleSets operation. The "output" return
  1185. // value can be used to capture response data after the request's "Send" method
  1186. // is called.
  1187. //
  1188. // Creating a request object using this method should be used when you want to inject
  1189. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1190. // access properties on the request object before or after sending the request. If
  1191. // you just want the service response, call the ListReceiptRuleSets method directly
  1192. // instead.
  1193. //
  1194. // Note: You must call the "Send" method on the returned request object in order
  1195. // to execute the request.
  1196. //
  1197. // // Example sending a request using the ListReceiptRuleSetsRequest method.
  1198. // req, resp := client.ListReceiptRuleSetsRequest(params)
  1199. //
  1200. // err := req.Send()
  1201. // if err == nil { // resp is now filled
  1202. // fmt.Println(resp)
  1203. // }
  1204. //
  1205. func (c *SES) ListReceiptRuleSetsRequest(input *ListReceiptRuleSetsInput) (req *request.Request, output *ListReceiptRuleSetsOutput) {
  1206. op := &request.Operation{
  1207. Name: opListReceiptRuleSets,
  1208. HTTPMethod: "POST",
  1209. HTTPPath: "/",
  1210. }
  1211. if input == nil {
  1212. input = &ListReceiptRuleSetsInput{}
  1213. }
  1214. req = c.newRequest(op, input, output)
  1215. output = &ListReceiptRuleSetsOutput{}
  1216. req.Data = output
  1217. return
  1218. }
  1219. // Lists the receipt rule sets that exist under your AWS account. If there are
  1220. // additional receipt rule sets to be retrieved, you will receive a NextToken
  1221. // that you can provide to the next call to ListReceiptRuleSets to retrieve
  1222. // the additional entries.
  1223. //
  1224. // For information about managing receipt rule sets, see the Amazon SES Developer
  1225. // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rule-sets.html).
  1226. //
  1227. // This action is throttled at one request per second.
  1228. func (c *SES) ListReceiptRuleSets(input *ListReceiptRuleSetsInput) (*ListReceiptRuleSetsOutput, error) {
  1229. req, out := c.ListReceiptRuleSetsRequest(input)
  1230. err := req.Send()
  1231. return out, err
  1232. }
  1233. const opListVerifiedEmailAddresses = "ListVerifiedEmailAddresses"
  1234. // ListVerifiedEmailAddressesRequest generates a "aws/request.Request" representing the
  1235. // client's request for the ListVerifiedEmailAddresses operation. The "output" return
  1236. // value can be used to capture response data after the request's "Send" method
  1237. // is called.
  1238. //
  1239. // Creating a request object using this method should be used when you want to inject
  1240. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1241. // access properties on the request object before or after sending the request. If
  1242. // you just want the service response, call the ListVerifiedEmailAddresses method directly
  1243. // instead.
  1244. //
  1245. // Note: You must call the "Send" method on the returned request object in order
  1246. // to execute the request.
  1247. //
  1248. // // Example sending a request using the ListVerifiedEmailAddressesRequest method.
  1249. // req, resp := client.ListVerifiedEmailAddressesRequest(params)
  1250. //
  1251. // err := req.Send()
  1252. // if err == nil { // resp is now filled
  1253. // fmt.Println(resp)
  1254. // }
  1255. //
  1256. func (c *SES) ListVerifiedEmailAddressesRequest(input *ListVerifiedEmailAddressesInput) (req *request.Request, output *ListVerifiedEmailAddressesOutput) {
  1257. op := &request.Operation{
  1258. Name: opListVerifiedEmailAddresses,
  1259. HTTPMethod: "POST",
  1260. HTTPPath: "/",
  1261. }
  1262. if input == nil {
  1263. input = &ListVerifiedEmailAddressesInput{}
  1264. }
  1265. req = c.newRequest(op, input, output)
  1266. output = &ListVerifiedEmailAddressesOutput{}
  1267. req.Data = output
  1268. return
  1269. }
  1270. // Returns a list containing all of the email addresses that have been verified.
  1271. //
  1272. // The ListVerifiedEmailAddresses action is deprecated as of the May 15, 2012
  1273. // release of Domain Verification. The ListIdentities action is now preferred.
  1274. //
  1275. // This action is throttled at one request per second.
  1276. func (c *SES) ListVerifiedEmailAddresses(input *ListVerifiedEmailAddressesInput) (*ListVerifiedEmailAddressesOutput, error) {
  1277. req, out := c.ListVerifiedEmailAddressesRequest(input)
  1278. err := req.Send()
  1279. return out, err
  1280. }
  1281. const opPutIdentityPolicy = "PutIdentityPolicy"
  1282. // PutIdentityPolicyRequest generates a "aws/request.Request" representing the
  1283. // client's request for the PutIdentityPolicy operation. The "output" return
  1284. // value can be used to capture response data after the request's "Send" method
  1285. // is called.
  1286. //
  1287. // Creating a request object using this method should be used when you want to inject
  1288. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1289. // access properties on the request object before or after sending the request. If
  1290. // you just want the service response, call the PutIdentityPolicy method directly
  1291. // instead.
  1292. //
  1293. // Note: You must call the "Send" method on the returned request object in order
  1294. // to execute the request.
  1295. //
  1296. // // Example sending a request using the PutIdentityPolicyRequest method.
  1297. // req, resp := client.PutIdentityPolicyRequest(params)
  1298. //
  1299. // err := req.Send()
  1300. // if err == nil { // resp is now filled
  1301. // fmt.Println(resp)
  1302. // }
  1303. //
  1304. func (c *SES) PutIdentityPolicyRequest(input *PutIdentityPolicyInput) (req *request.Request, output *PutIdentityPolicyOutput) {
  1305. op := &request.Operation{
  1306. Name: opPutIdentityPolicy,
  1307. HTTPMethod: "POST",
  1308. HTTPPath: "/",
  1309. }
  1310. if input == nil {
  1311. input = &PutIdentityPolicyInput{}
  1312. }
  1313. req = c.newRequest(op, input, output)
  1314. output = &PutIdentityPolicyOutput{}
  1315. req.Data = output
  1316. return
  1317. }
  1318. // Adds or updates a sending authorization policy for the specified identity
  1319. // (an email address or a domain).
  1320. //
  1321. // This API is for the identity owner only. If you have not verified the identity,
  1322. // this API will return an error.
  1323. //
  1324. // Sending authorization is a feature that enables an identity owner to authorize
  1325. // other senders to use its identities. For information about using sending
  1326. // authorization, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html).
  1327. //
  1328. // This action is throttled at one request per second.
  1329. func (c *SES) PutIdentityPolicy(input *PutIdentityPolicyInput) (*PutIdentityPolicyOutput, error) {
  1330. req, out := c.PutIdentityPolicyRequest(input)
  1331. err := req.Send()
  1332. return out, err
  1333. }
  1334. const opReorderReceiptRuleSet = "ReorderReceiptRuleSet"
  1335. // ReorderReceiptRuleSetRequest generates a "aws/request.Request" representing the
  1336. // client's request for the ReorderReceiptRuleSet operation. The "output" return
  1337. // value can be used to capture response data after the request's "Send" method
  1338. // is called.
  1339. //
  1340. // Creating a request object using this method should be used when you want to inject
  1341. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1342. // access properties on the request object before or after sending the request. If
  1343. // you just want the service response, call the ReorderReceiptRuleSet method directly
  1344. // instead.
  1345. //
  1346. // Note: You must call the "Send" method on the returned request object in order
  1347. // to execute the request.
  1348. //
  1349. // // Example sending a request using the ReorderReceiptRuleSetRequest method.
  1350. // req, resp := client.ReorderReceiptRuleSetRequest(params)
  1351. //
  1352. // err := req.Send()
  1353. // if err == nil { // resp is now filled
  1354. // fmt.Println(resp)
  1355. // }
  1356. //
  1357. func (c *SES) ReorderReceiptRuleSetRequest(input *ReorderReceiptRuleSetInput) (req *request.Request, output *ReorderReceiptRuleSetOutput) {
  1358. op := &request.Operation{
  1359. Name: opReorderReceiptRuleSet,
  1360. HTTPMethod: "POST",
  1361. HTTPPath: "/",
  1362. }
  1363. if input == nil {
  1364. input = &ReorderReceiptRuleSetInput{}
  1365. }
  1366. req = c.newRequest(op, input, output)
  1367. output = &ReorderReceiptRuleSetOutput{}
  1368. req.Data = output
  1369. return
  1370. }
  1371. // Reorders the receipt rules within a receipt rule set.
  1372. //
  1373. // All of the rules in the rule set must be represented in this request. That
  1374. // is, this API will return an error if the reorder request doesn't explicitly
  1375. // position all of the rules.
  1376. //
  1377. // For information about managing receipt rule sets, see the Amazon SES Developer
  1378. // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rule-sets.html).
  1379. //
  1380. // This action is throttled at one request per second.
  1381. func (c *SES) ReorderReceiptRuleSet(input *ReorderReceiptRuleSetInput) (*ReorderReceiptRuleSetOutput, error) {
  1382. req, out := c.ReorderReceiptRuleSetRequest(input)
  1383. err := req.Send()
  1384. return out, err
  1385. }
  1386. const opSendBounce = "SendBounce"
  1387. // SendBounceRequest generates a "aws/request.Request" representing the
  1388. // client's request for the SendBounce operation. The "output" return
  1389. // value can be used to capture response data after the request's "Send" method
  1390. // is called.
  1391. //
  1392. // Creating a request object using this method should be used when you want to inject
  1393. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1394. // access properties on the request object before or after sending the request. If
  1395. // you just want the service response, call the SendBounce method directly
  1396. // instead.
  1397. //
  1398. // Note: You must call the "Send" method on the returned request object in order
  1399. // to execute the request.
  1400. //
  1401. // // Example sending a request using the SendBounceRequest method.
  1402. // req, resp := client.SendBounceRequest(params)
  1403. //
  1404. // err := req.Send()
  1405. // if err == nil { // resp is now filled
  1406. // fmt.Println(resp)
  1407. // }
  1408. //
  1409. func (c *SES) SendBounceRequest(input *SendBounceInput) (req *request.Request, output *SendBounceOutput) {
  1410. op := &request.Operation{
  1411. Name: opSendBounce,
  1412. HTTPMethod: "POST",
  1413. HTTPPath: "/",
  1414. }
  1415. if input == nil {
  1416. input = &SendBounceInput{}
  1417. }
  1418. req = c.newRequest(op, input, output)
  1419. output = &SendBounceOutput{}
  1420. req.Data = output
  1421. return
  1422. }
  1423. // Generates and sends a bounce message to the sender of an email you received
  1424. // through Amazon SES. You can only use this API on an email up to 24 hours
  1425. // after you receive it.
  1426. //
  1427. // You cannot use this API to send generic bounces for mail that was not received
  1428. // by Amazon SES.
  1429. //
  1430. // For information about receiving email through Amazon SES, see the Amazon
  1431. // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email.html).
  1432. //
  1433. // This action is throttled at one request per second.
  1434. func (c *SES) SendBounce(input *SendBounceInput) (*SendBounceOutput, error) {
  1435. req, out := c.SendBounceRequest(input)
  1436. err := req.Send()
  1437. return out, err
  1438. }
  1439. const opSendEmail = "SendEmail"
  1440. // SendEmailRequest generates a "aws/request.Request" representing the
  1441. // client's request for the SendEmail operation. The "output" return
  1442. // value can be used to capture response data after the request's "Send" method
  1443. // is called.
  1444. //
  1445. // Creating a request object using this method should be used when you want to inject
  1446. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1447. // access properties on the request object before or after sending the request. If
  1448. // you just want the service response, call the SendEmail method directly
  1449. // instead.
  1450. //
  1451. // Note: You must call the "Send" method on the returned request object in order
  1452. // to execute the request.
  1453. //
  1454. // // Example sending a request using the SendEmailRequest method.
  1455. // req, resp := client.SendEmailRequest(params)
  1456. //
  1457. // err := req.Send()
  1458. // if err == nil { // resp is now filled
  1459. // fmt.Println(resp)
  1460. // }
  1461. //
  1462. func (c *SES) SendEmailRequest(input *SendEmailInput) (req *request.Request, output *SendEmailOutput) {
  1463. op := &request.Operation{
  1464. Name: opSendEmail,
  1465. HTTPMethod: "POST",
  1466. HTTPPath: "/",
  1467. }
  1468. if input == nil {
  1469. input = &SendEmailInput{}
  1470. }
  1471. req = c.newRequest(op, input, output)
  1472. output = &SendEmailOutput{}
  1473. req.Data = output
  1474. return
  1475. }
  1476. // Composes an email message based on input data, and then immediately queues
  1477. // the message for sending.
  1478. //
  1479. // There are several important points to know about SendEmail:
  1480. //
  1481. // You can only send email from verified email addresses and domains; otherwise,
  1482. // you will get an "Email address not verified" error. If your account is still
  1483. // in the Amazon SES sandbox, you must also verify every recipient email address
  1484. // except for the recipients provided by the Amazon SES mailbox simulator. For
  1485. // more information, go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html).
  1486. //
  1487. // The total size of the message cannot exceed 10 MB. This includes any attachments
  1488. // that are part of the message.
  1489. //
  1490. // Amazon SES has a limit on the total number of recipients per message.
  1491. // The combined number of To:, CC: and BCC: email addresses cannot exceed 50.
  1492. // If you need to send an email message to a larger audience, you can divide
  1493. // your recipient list into groups of 50 or fewer, and then call Amazon SES
  1494. // repeatedly to send the message to each group.
  1495. //
  1496. // For every message that you send, the total number of recipients (To:,
  1497. // CC: and BCC:) is counted against your sending quota - the maximum number
  1498. // of emails you can send in a 24-hour period. For information about your sending
  1499. // quota, go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/manage-sending-limits.html).
  1500. func (c *SES) SendEmail(input *SendEmailInput) (*SendEmailOutput, error) {
  1501. req, out := c.SendEmailRequest(input)
  1502. err := req.Send()
  1503. return out, err
  1504. }
  1505. const opSendRawEmail = "SendRawEmail"
  1506. // SendRawEmailRequest generates a "aws/request.Request" representing the
  1507. // client's request for the SendRawEmail operation. The "output" return
  1508. // value can be used to capture response data after the request's "Send" method
  1509. // is called.
  1510. //
  1511. // Creating a request object using this method should be used when you want to inject
  1512. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1513. // access properties on the request object before or after sending the request. If
  1514. // you just want the service response, call the SendRawEmail method directly
  1515. // instead.
  1516. //
  1517. // Note: You must call the "Send" method on the returned request object in order
  1518. // to execute the request.
  1519. //
  1520. // // Example sending a request using the SendRawEmailRequest method.
  1521. // req, resp := client.SendRawEmailRequest(params)
  1522. //
  1523. // err := req.Send()
  1524. // if err == nil { // resp is now filled
  1525. // fmt.Println(resp)
  1526. // }
  1527. //
  1528. func (c *SES) SendRawEmailRequest(input *SendRawEmailInput) (req *request.Request, output *SendRawEmailOutput) {
  1529. op := &request.Operation{
  1530. Name: opSendRawEmail,
  1531. HTTPMethod: "POST",
  1532. HTTPPath: "/",
  1533. }
  1534. if input == nil {
  1535. input = &SendRawEmailInput{}
  1536. }
  1537. req = c.newRequest(op, input, output)
  1538. output = &SendRawEmailOutput{}
  1539. req.Data = output
  1540. return
  1541. }
  1542. // Sends an email message, with header and content specified by the client.
  1543. // The SendRawEmail action is useful for sending multipart MIME emails. The
  1544. // raw text of the message must comply with Internet email standards; otherwise,
  1545. // the message cannot be sent.
  1546. //
  1547. // There are several important points to know about SendRawEmail:
  1548. //
  1549. // You can only send email from verified email addresses and domains; otherwise,
  1550. // you will get an "Email address not verified" error. If your account is still
  1551. // in the Amazon SES sandbox, you must also verify every recipient email address
  1552. // except for the recipients provided by the Amazon SES mailbox simulator. For
  1553. // more information, go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html).
  1554. //
  1555. // The total size of the message cannot exceed 10 MB. This includes any attachments
  1556. // that are part of the message.
  1557. //
  1558. // Amazon SES has a limit on the total number of recipients per message.
  1559. // The combined number of To:, CC: and BCC: email addresses cannot exceed 50.
  1560. // If you need to send an email message to a larger audience, you can divide
  1561. // your recipient list into groups of 50 or fewer, and then call Amazon SES
  1562. // repeatedly to send the message to each group.
  1563. //
  1564. // The To:, CC:, and BCC: headers in the raw message can contain a group
  1565. // list. Note that each recipient in a group list counts towards the 50-recipient
  1566. // limit.
  1567. //
  1568. // Amazon SES overrides any Message-ID and Date headers you provide.
  1569. //
  1570. // For every message that you send, the total number of recipients (To:,
  1571. // CC: and BCC:) is counted against your sending quota - the maximum number
  1572. // of emails you can send in a 24-hour period. For information about your sending
  1573. // quota, go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/manage-sending-limits.html).
  1574. //
  1575. // If you are using sending authorization to send on behalf of another user,
  1576. // SendRawEmail enables you to specify the cross-account identity for the email's
  1577. // "Source," "From," and "Return-Path" parameters in one of two ways: you can
  1578. // pass optional parameters SourceArn, FromArn, and/or ReturnPathArn to the
  1579. // API, or you can include the following X-headers in the header of your raw
  1580. // email:
  1581. //
  1582. // X-SES-SOURCE-ARN
  1583. //
  1584. // X-SES-FROM-ARN
  1585. //
  1586. // X-SES-RETURN-PATH-ARN
  1587. //
  1588. // Do not include these X-headers in the DKIM signature, because they are
  1589. // removed by Amazon SES before sending the email.
  1590. //
  1591. // For the most common sending authorization use case, we recommend that you
  1592. // specify the SourceIdentityArn and do not specify either the FromIdentityArn
  1593. // or ReturnPathIdentityArn. (The same note applies to the corresponding X-headers.)
  1594. // If you only specify the SourceIdentityArn, Amazon SES will simply set the
  1595. // "From" address and the "Return Path" address to the identity specified in
  1596. // SourceIdentityArn. For more information about sending authorization, see
  1597. // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html).
  1598. func (c *SES) SendRawEmail(input *SendRawEmailInput) (*SendRawEmailOutput, error) {
  1599. req, out := c.SendRawEmailRequest(input)
  1600. err := req.Send()
  1601. return out, err
  1602. }
  1603. const opSetActiveReceiptRuleSet = "SetActiveReceiptRuleSet"
  1604. // SetActiveReceiptRuleSetRequest generates a "aws/request.Request" representing the
  1605. // client's request for the SetActiveReceiptRuleSet operation. The "output" return
  1606. // value can be used to capture response data after the request's "Send" method
  1607. // is called.
  1608. //
  1609. // Creating a request object using this method should be used when you want to inject
  1610. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1611. // access properties on the request object before or after sending the request. If
  1612. // you just want the service response, call the SetActiveReceiptRuleSet method directly
  1613. // instead.
  1614. //
  1615. // Note: You must call the "Send" method on the returned request object in order
  1616. // to execute the request.
  1617. //
  1618. // // Example sending a request using the SetActiveReceiptRuleSetRequest method.
  1619. // req, resp := client.SetActiveReceiptRuleSetRequest(params)
  1620. //
  1621. // err := req.Send()
  1622. // if err == nil { // resp is now filled
  1623. // fmt.Println(resp)
  1624. // }
  1625. //
  1626. func (c *SES) SetActiveReceiptRuleSetRequest(input *SetActiveReceiptRuleSetInput) (req *request.Request, output *SetActiveReceiptRuleSetOutput) {
  1627. op := &request.Operation{
  1628. Name: opSetActiveReceiptRuleSet,
  1629. HTTPMethod: "POST",
  1630. HTTPPath: "/",
  1631. }
  1632. if input == nil {
  1633. input = &SetActiveReceiptRuleSetInput{}
  1634. }
  1635. req = c.newRequest(op, input, output)
  1636. output = &SetActiveReceiptRuleSetOutput{}
  1637. req.Data = output
  1638. return
  1639. }
  1640. // Sets the specified receipt rule set as the active receipt rule set.
  1641. //
  1642. // To disable your email-receiving through Amazon SES completely, you can
  1643. // call this API with RuleSetName set to null.
  1644. //
  1645. // For information about managing receipt rule sets, see the Amazon SES Developer
  1646. // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rule-sets.html).
  1647. //
  1648. // This action is throttled at one request per second.
  1649. func (c *SES) SetActiveReceiptRuleSet(input *SetActiveReceiptRuleSetInput) (*SetActiveReceiptRuleSetOutput, error) {
  1650. req, out := c.SetActiveReceiptRuleSetRequest(input)
  1651. err := req.Send()
  1652. return out, err
  1653. }
  1654. const opSetIdentityDkimEnabled = "SetIdentityDkimEnabled"
  1655. // SetIdentityDkimEnabledRequest generates a "aws/request.Request" representing the
  1656. // client's request for the SetIdentityDkimEnabled operation. The "output" return
  1657. // value can be used to capture response data after the request's "Send" method
  1658. // is called.
  1659. //
  1660. // Creating a request object using this method should be used when you want to inject
  1661. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1662. // access properties on the request object before or after sending the request. If
  1663. // you just want the service response, call the SetIdentityDkimEnabled method directly
  1664. // instead.
  1665. //
  1666. // Note: You must call the "Send" method on the returned request object in order
  1667. // to execute the request.
  1668. //
  1669. // // Example sending a request using the SetIdentityDkimEnabledRequest method.
  1670. // req, resp := client.SetIdentityDkimEnabledRequest(params)
  1671. //
  1672. // err := req.Send()
  1673. // if err == nil { // resp is now filled
  1674. // fmt.Println(resp)
  1675. // }
  1676. //
  1677. func (c *SES) SetIdentityDkimEnabledRequest(input *SetIdentityDkimEnabledInput) (req *request.Request, output *SetIdentityDkimEnabledOutput) {
  1678. op := &request.Operation{
  1679. Name: opSetIdentityDkimEnabled,
  1680. HTTPMethod: "POST",
  1681. HTTPPath: "/",
  1682. }
  1683. if input == nil {
  1684. input = &SetIdentityDkimEnabledInput{}
  1685. }
  1686. req = c.newRequest(op, input, output)
  1687. output = &SetIdentityDkimEnabledOutput{}
  1688. req.Data = output
  1689. return
  1690. }
  1691. // Enables or disables Easy DKIM signing of email sent from an identity:
  1692. //
  1693. // If Easy DKIM signing is enabled for a domain name identity (e.g., example.com),
  1694. // then Amazon SES will DKIM-sign all email sent by addresses under that domain
  1695. // name (e.g., user@example.com).
  1696. //
  1697. // If Easy DKIM signing is enabled for an email address, then Amazon SES
  1698. // will DKIM-sign all email sent by that email address.
  1699. //
  1700. // For email addresses (e.g., user@example.com), you can only enable Easy
  1701. // DKIM signing if the corresponding domain (e.g., example.com) has been set
  1702. // up for Easy DKIM using the AWS Console or the VerifyDomainDkim action.
  1703. //
  1704. // This action is throttled at one request per second.
  1705. //
  1706. // For more information about Easy DKIM signing, go to the Amazon SES Developer
  1707. // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html).
  1708. func (c *SES) SetIdentityDkimEnabled(input *SetIdentityDkimEnabledInput) (*SetIdentityDkimEnabledOutput, error) {
  1709. req, out := c.SetIdentityDkimEnabledRequest(input)
  1710. err := req.Send()
  1711. return out, err
  1712. }
  1713. const opSetIdentityFeedbackForwardingEnabled = "SetIdentityFeedbackForwardingEnabled"
  1714. // SetIdentityFeedbackForwardingEnabledRequest generates a "aws/request.Request" representing the
  1715. // client's request for the SetIdentityFeedbackForwardingEnabled operation. The "output" return
  1716. // value can be used to capture response data after the request's "Send" method
  1717. // is called.
  1718. //
  1719. // Creating a request object using this method should be used when you want to inject
  1720. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1721. // access properties on the request object before or after sending the request. If
  1722. // you just want the service response, call the SetIdentityFeedbackForwardingEnabled method directly
  1723. // instead.
  1724. //
  1725. // Note: You must call the "Send" method on the returned request object in order
  1726. // to execute the request.
  1727. //
  1728. // // Example sending a request using the SetIdentityFeedbackForwardingEnabledRequest method.
  1729. // req, resp := client.SetIdentityFeedbackForwardingEnabledRequest(params)
  1730. //
  1731. // err := req.Send()
  1732. // if err == nil { // resp is now filled
  1733. // fmt.Println(resp)
  1734. // }
  1735. //
  1736. func (c *SES) SetIdentityFeedbackForwardingEnabledRequest(input *SetIdentityFeedbackForwardingEnabledInput) (req *request.Request, output *SetIdentityFeedbackForwardingEnabledOutput) {
  1737. op := &request.Operation{
  1738. Name: opSetIdentityFeedbackForwardingEnabled,
  1739. HTTPMethod: "POST",
  1740. HTTPPath: "/",
  1741. }
  1742. if input == nil {
  1743. input = &SetIdentityFeedbackForwardingEnabledInput{}
  1744. }
  1745. req = c.newRequest(op, input, output)
  1746. output = &SetIdentityFeedbackForwardingEnabledOutput{}
  1747. req.Data = output
  1748. return
  1749. }
  1750. // Given an identity (an email address or a domain), enables or disables whether
  1751. // Amazon SES forwards bounce and complaint notifications as email. Feedback
  1752. // forwarding can only be disabled when Amazon Simple Notification Service (Amazon
  1753. // SNS) topics are specified for both bounces and complaints.
  1754. //
  1755. // Feedback forwarding does not apply to delivery notifications. Delivery
  1756. // notifications are only available through Amazon SNS.
  1757. //
  1758. // This action is throttled at one request per second.
  1759. //
  1760. // For more information about using notifications with Amazon SES, see the
  1761. // Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html).
  1762. func (c *SES) SetIdentityFeedbackForwardingEnabled(input *SetIdentityFeedbackForwardingEnabledInput) (*SetIdentityFeedbackForwardingEnabledOutput, error) {
  1763. req, out := c.SetIdentityFeedbackForwardingEnabledRequest(input)
  1764. err := req.Send()
  1765. return out, err
  1766. }
  1767. const opSetIdentityHeadersInNotificationsEnabled = "SetIdentityHeadersInNotificationsEnabled"
  1768. // SetIdentityHeadersInNotificationsEnabledRequest generates a "aws/request.Request" representing the
  1769. // client's request for the SetIdentityHeadersInNotificationsEnabled operation. The "output" return
  1770. // value can be used to capture response data after the request's "Send" method
  1771. // is called.
  1772. //
  1773. // Creating a request object using this method should be used when you want to inject
  1774. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1775. // access properties on the request object before or after sending the request. If
  1776. // you just want the service response, call the SetIdentityHeadersInNotificationsEnabled method directly
  1777. // instead.
  1778. //
  1779. // Note: You must call the "Send" method on the returned request object in order
  1780. // to execute the request.
  1781. //
  1782. // // Example sending a request using the SetIdentityHeadersInNotificationsEnabledRequest method.
  1783. // req, resp := client.SetIdentityHeadersInNotificationsEnabledRequest(params)
  1784. //
  1785. // err := req.Send()
  1786. // if err == nil { // resp is now filled
  1787. // fmt.Println(resp)
  1788. // }
  1789. //
  1790. func (c *SES) SetIdentityHeadersInNotificationsEnabledRequest(input *SetIdentityHeadersInNotificationsEnabledInput) (req *request.Request, output *SetIdentityHeadersInNotificationsEnabledOutput) {
  1791. op := &request.Operation{
  1792. Name: opSetIdentityHeadersInNotificationsEnabled,
  1793. HTTPMethod: "POST",
  1794. HTTPPath: "/",
  1795. }
  1796. if input == nil {
  1797. input = &SetIdentityHeadersInNotificationsEnabledInput{}
  1798. }
  1799. req = c.newRequest(op, input, output)
  1800. output = &SetIdentityHeadersInNotificationsEnabledOutput{}
  1801. req.Data = output
  1802. return
  1803. }
  1804. // Given an identity (an email address or a domain), sets whether Amazon SES
  1805. // includes the original email headers in the Amazon Simple Notification Service
  1806. // (Amazon SNS) notifications of a specified type.
  1807. //
  1808. // This action is throttled at one request per second.
  1809. //
  1810. // For more information about using notifications with Amazon SES, see the
  1811. // Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html).
  1812. func (c *SES) SetIdentityHeadersInNotificationsEnabled(input *SetIdentityHeadersInNotificationsEnabledInput) (*SetIdentityHeadersInNotificationsEnabledOutput, error) {
  1813. req, out := c.SetIdentityHeadersInNotificationsEnabledRequest(input)
  1814. err := req.Send()
  1815. return out, err
  1816. }
  1817. const opSetIdentityMailFromDomain = "SetIdentityMailFromDomain"
  1818. // SetIdentityMailFromDomainRequest generates a "aws/request.Request" representing the
  1819. // client's request for the SetIdentityMailFromDomain operation. The "output" return
  1820. // value can be used to capture response data after the request's "Send" method
  1821. // is called.
  1822. //
  1823. // Creating a request object using this method should be used when you want to inject
  1824. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1825. // access properties on the request object before or after sending the request. If
  1826. // you just want the service response, call the SetIdentityMailFromDomain method directly
  1827. // instead.
  1828. //
  1829. // Note: You must call the "Send" method on the returned request object in order
  1830. // to execute the request.
  1831. //
  1832. // // Example sending a request using the SetIdentityMailFromDomainRequest method.
  1833. // req, resp := client.SetIdentityMailFromDomainRequest(params)
  1834. //
  1835. // err := req.Send()
  1836. // if err == nil { // resp is now filled
  1837. // fmt.Println(resp)
  1838. // }
  1839. //
  1840. func (c *SES) SetIdentityMailFromDomainRequest(input *SetIdentityMailFromDomainInput) (req *request.Request, output *SetIdentityMailFromDomainOutput) {
  1841. op := &request.Operation{
  1842. Name: opSetIdentityMailFromDomain,
  1843. HTTPMethod: "POST",
  1844. HTTPPath: "/",
  1845. }
  1846. if input == nil {
  1847. input = &SetIdentityMailFromDomainInput{}
  1848. }
  1849. req = c.newRequest(op, input, output)
  1850. output = &SetIdentityMailFromDomainOutput{}
  1851. req.Data = output
  1852. return
  1853. }
  1854. // Enables or disables the custom MAIL FROM domain setup for a verified identity
  1855. // (an email address or a domain).
  1856. //
  1857. // To send emails using the specified MAIL FROM domain, you must add an MX
  1858. // record to your MAIL FROM domain's DNS settings. If you want your emails to
  1859. // pass Sender Policy Framework (SPF) checks, you must also add or update an
  1860. // SPF record. For more information, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/mail-from-set.html).
  1861. //
  1862. // This action is throttled at one request per second.
  1863. func (c *SES) SetIdentityMailFromDomain(input *SetIdentityMailFromDomainInput) (*SetIdentityMailFromDomainOutput, error) {
  1864. req, out := c.SetIdentityMailFromDomainRequest(input)
  1865. err := req.Send()
  1866. return out, err
  1867. }
  1868. const opSetIdentityNotificationTopic = "SetIdentityNotificationTopic"
  1869. // SetIdentityNotificationTopicRequest generates a "aws/request.Request" representing the
  1870. // client's request for the SetIdentityNotificationTopic operation. The "output" return
  1871. // value can be used to capture response data after the request's "Send" method
  1872. // is called.
  1873. //
  1874. // Creating a request object using this method should be used when you want to inject
  1875. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1876. // access properties on the request object before or after sending the request. If
  1877. // you just want the service response, call the SetIdentityNotificationTopic method directly
  1878. // instead.
  1879. //
  1880. // Note: You must call the "Send" method on the returned request object in order
  1881. // to execute the request.
  1882. //
  1883. // // Example sending a request using the SetIdentityNotificationTopicRequest method.
  1884. // req, resp := client.SetIdentityNotificationTopicRequest(params)
  1885. //
  1886. // err := req.Send()
  1887. // if err == nil { // resp is now filled
  1888. // fmt.Println(resp)
  1889. // }
  1890. //
  1891. func (c *SES) SetIdentityNotificationTopicRequest(input *SetIdentityNotificationTopicInput) (req *request.Request, output *SetIdentityNotificationTopicOutput) {
  1892. op := &request.Operation{
  1893. Name: opSetIdentityNotificationTopic,
  1894. HTTPMethod: "POST",
  1895. HTTPPath: "/",
  1896. }
  1897. if input == nil {
  1898. input = &SetIdentityNotificationTopicInput{}
  1899. }
  1900. req = c.newRequest(op, input, output)
  1901. output = &SetIdentityNotificationTopicOutput{}
  1902. req.Data = output
  1903. return
  1904. }
  1905. // Given an identity (an email address or a domain), sets the Amazon Simple
  1906. // Notification Service (Amazon SNS) topic to which Amazon SES will publish
  1907. // bounce, complaint, and/or delivery notifications for emails sent with that
  1908. // identity as the Source.
  1909. //
  1910. // Unless feedback forwarding is enabled, you must specify Amazon SNS topics
  1911. // for bounce and complaint notifications. For more information, see SetIdentityFeedbackForwardingEnabled.
  1912. //
  1913. // This action is throttled at one request per second.
  1914. //
  1915. // For more information about feedback notification, see the Amazon SES Developer
  1916. // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html).
  1917. func (c *SES) SetIdentityNotificationTopic(input *SetIdentityNotificationTopicInput) (*SetIdentityNotificationTopicOutput, error) {
  1918. req, out := c.SetIdentityNotificationTopicRequest(input)
  1919. err := req.Send()
  1920. return out, err
  1921. }
  1922. const opSetReceiptRulePosition = "SetReceiptRulePosition"
  1923. // SetReceiptRulePositionRequest generates a "aws/request.Request" representing the
  1924. // client's request for the SetReceiptRulePosition operation. The "output" return
  1925. // value can be used to capture response data after the request's "Send" method
  1926. // is called.
  1927. //
  1928. // Creating a request object using this method should be used when you want to inject
  1929. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1930. // access properties on the request object before or after sending the request. If
  1931. // you just want the service response, call the SetReceiptRulePosition method directly
  1932. // instead.
  1933. //
  1934. // Note: You must call the "Send" method on the returned request object in order
  1935. // to execute the request.
  1936. //
  1937. // // Example sending a request using the SetReceiptRulePositionRequest method.
  1938. // req, resp := client.SetReceiptRulePositionRequest(params)
  1939. //
  1940. // err := req.Send()
  1941. // if err == nil { // resp is now filled
  1942. // fmt.Println(resp)
  1943. // }
  1944. //
  1945. func (c *SES) SetReceiptRulePositionRequest(input *SetReceiptRulePositionInput) (req *request.Request, output *SetReceiptRulePositionOutput) {
  1946. op := &request.Operation{
  1947. Name: opSetReceiptRulePosition,
  1948. HTTPMethod: "POST",
  1949. HTTPPath: "/",
  1950. }
  1951. if input == nil {
  1952. input = &SetReceiptRulePositionInput{}
  1953. }
  1954. req = c.newRequest(op, input, output)
  1955. output = &SetReceiptRulePositionOutput{}
  1956. req.Data = output
  1957. return
  1958. }
  1959. // Sets the position of the specified receipt rule in the receipt rule set.
  1960. //
  1961. // For information about managing receipt rules, see the Amazon SES Developer
  1962. // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rules.html).
  1963. //
  1964. // This action is throttled at one request per second.
  1965. func (c *SES) SetReceiptRulePosition(input *SetReceiptRulePositionInput) (*SetReceiptRulePositionOutput, error) {
  1966. req, out := c.SetReceiptRulePositionRequest(input)
  1967. err := req.Send()
  1968. return out, err
  1969. }
  1970. const opUpdateReceiptRule = "UpdateReceiptRule"
  1971. // UpdateReceiptRuleRequest generates a "aws/request.Request" representing the
  1972. // client's request for the UpdateReceiptRule operation. The "output" return
  1973. // value can be used to capture response data after the request's "Send" method
  1974. // is called.
  1975. //
  1976. // Creating a request object using this method should be used when you want to inject
  1977. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1978. // access properties on the request object before or after sending the request. If
  1979. // you just want the service response, call the UpdateReceiptRule method directly
  1980. // instead.
  1981. //
  1982. // Note: You must call the "Send" method on the returned request object in order
  1983. // to execute the request.
  1984. //
  1985. // // Example sending a request using the UpdateReceiptRuleRequest method.
  1986. // req, resp := client.UpdateReceiptRuleRequest(params)
  1987. //
  1988. // err := req.Send()
  1989. // if err == nil { // resp is now filled
  1990. // fmt.Println(resp)
  1991. // }
  1992. //
  1993. func (c *SES) UpdateReceiptRuleRequest(input *UpdateReceiptRuleInput) (req *request.Request, output *UpdateReceiptRuleOutput) {
  1994. op := &request.Operation{
  1995. Name: opUpdateReceiptRule,
  1996. HTTPMethod: "POST",
  1997. HTTPPath: "/",
  1998. }
  1999. if input == nil {
  2000. input = &UpdateReceiptRuleInput{}
  2001. }
  2002. req = c.newRequest(op, input, output)
  2003. output = &UpdateReceiptRuleOutput{}
  2004. req.Data = output
  2005. return
  2006. }
  2007. // Updates a receipt rule.
  2008. //
  2009. // For information about managing receipt rules, see the Amazon SES Developer
  2010. // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-managing-receipt-rules.html).
  2011. //
  2012. // This action is throttled at one request per second.
  2013. func (c *SES) UpdateReceiptRule(input *UpdateReceiptRuleInput) (*UpdateReceiptRuleOutput, error) {
  2014. req, out := c.UpdateReceiptRuleRequest(input)
  2015. err := req.Send()
  2016. return out, err
  2017. }
  2018. const opVerifyDomainDkim = "VerifyDomainDkim"
  2019. // VerifyDomainDkimRequest generates a "aws/request.Request" representing the
  2020. // client's request for the VerifyDomainDkim operation. The "output" return
  2021. // value can be used to capture response data after the request's "Send" method
  2022. // is called.
  2023. //
  2024. // Creating a request object using this method should be used when you want to inject
  2025. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2026. // access properties on the request object before or after sending the request. If
  2027. // you just want the service response, call the VerifyDomainDkim method directly
  2028. // instead.
  2029. //
  2030. // Note: You must call the "Send" method on the returned request object in order
  2031. // to execute the request.
  2032. //
  2033. // // Example sending a request using the VerifyDomainDkimRequest method.
  2034. // req, resp := client.VerifyDomainDkimRequest(params)
  2035. //
  2036. // err := req.Send()
  2037. // if err == nil { // resp is now filled
  2038. // fmt.Println(resp)
  2039. // }
  2040. //
  2041. func (c *SES) VerifyDomainDkimRequest(input *VerifyDomainDkimInput) (req *request.Request, output *VerifyDomainDkimOutput) {
  2042. op := &request.Operation{
  2043. Name: opVerifyDomainDkim,
  2044. HTTPMethod: "POST",
  2045. HTTPPath: "/",
  2046. }
  2047. if input == nil {
  2048. input = &VerifyDomainDkimInput{}
  2049. }
  2050. req = c.newRequest(op, input, output)
  2051. output = &VerifyDomainDkimOutput{}
  2052. req.Data = output
  2053. return
  2054. }
  2055. // Returns a set of DKIM tokens for a domain. DKIM tokens are character strings
  2056. // that represent your domain's identity. Using these tokens, you will need
  2057. // to create DNS CNAME records that point to DKIM public keys hosted by Amazon
  2058. // SES. Amazon Web Services will eventually detect that you have updated your
  2059. // DNS records; this detection process may take up to 72 hours. Upon successful
  2060. // detection, Amazon SES will be able to DKIM-sign email originating from that
  2061. // domain.
  2062. //
  2063. // This action is throttled at one request per second.
  2064. //
  2065. // To enable or disable Easy DKIM signing for a domain, use the SetIdentityDkimEnabled
  2066. // action.
  2067. //
  2068. // For more information about creating DNS records using DKIM tokens, go to
  2069. // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim-dns-records.html).
  2070. func (c *SES) VerifyDomainDkim(input *VerifyDomainDkimInput) (*VerifyDomainDkimOutput, error) {
  2071. req, out := c.VerifyDomainDkimRequest(input)
  2072. err := req.Send()
  2073. return out, err
  2074. }
  2075. const opVerifyDomainIdentity = "VerifyDomainIdentity"
  2076. // VerifyDomainIdentityRequest generates a "aws/request.Request" representing the
  2077. // client's request for the VerifyDomainIdentity operation. The "output" return
  2078. // value can be used to capture response data after the request's "Send" method
  2079. // is called.
  2080. //
  2081. // Creating a request object using this method should be used when you want to inject
  2082. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2083. // access properties on the request object before or after sending the request. If
  2084. // you just want the service response, call the VerifyDomainIdentity method directly
  2085. // instead.
  2086. //
  2087. // Note: You must call the "Send" method on the returned request object in order
  2088. // to execute the request.
  2089. //
  2090. // // Example sending a request using the VerifyDomainIdentityRequest method.
  2091. // req, resp := client.VerifyDomainIdentityRequest(params)
  2092. //
  2093. // err := req.Send()
  2094. // if err == nil { // resp is now filled
  2095. // fmt.Println(resp)
  2096. // }
  2097. //
  2098. func (c *SES) VerifyDomainIdentityRequest(input *VerifyDomainIdentityInput) (req *request.Request, output *VerifyDomainIdentityOutput) {
  2099. op := &request.Operation{
  2100. Name: opVerifyDomainIdentity,
  2101. HTTPMethod: "POST",
  2102. HTTPPath: "/",
  2103. }
  2104. if input == nil {
  2105. input = &VerifyDomainIdentityInput{}
  2106. }
  2107. req = c.newRequest(op, input, output)
  2108. output = &VerifyDomainIdentityOutput{}
  2109. req.Data = output
  2110. return
  2111. }
  2112. // Verifies a domain.
  2113. //
  2114. // This action is throttled at one request per second.
  2115. func (c *SES) VerifyDomainIdentity(input *VerifyDomainIdentityInput) (*VerifyDomainIdentityOutput, error) {
  2116. req, out := c.VerifyDomainIdentityRequest(input)
  2117. err := req.Send()
  2118. return out, err
  2119. }
  2120. const opVerifyEmailAddress = "VerifyEmailAddress"
  2121. // VerifyEmailAddressRequest generates a "aws/request.Request" representing the
  2122. // client's request for the VerifyEmailAddress operation. The "output" return
  2123. // value can be used to capture response data after the request's "Send" method
  2124. // is called.
  2125. //
  2126. // Creating a request object using this method should be used when you want to inject
  2127. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2128. // access properties on the request object before or after sending the request. If
  2129. // you just want the service response, call the VerifyEmailAddress method directly
  2130. // instead.
  2131. //
  2132. // Note: You must call the "Send" method on the returned request object in order
  2133. // to execute the request.
  2134. //
  2135. // // Example sending a request using the VerifyEmailAddressRequest method.
  2136. // req, resp := client.VerifyEmailAddressRequest(params)
  2137. //
  2138. // err := req.Send()
  2139. // if err == nil { // resp is now filled
  2140. // fmt.Println(resp)
  2141. // }
  2142. //
  2143. func (c *SES) VerifyEmailAddressRequest(input *VerifyEmailAddressInput) (req *request.Request, output *VerifyEmailAddressOutput) {
  2144. op := &request.Operation{
  2145. Name: opVerifyEmailAddress,
  2146. HTTPMethod: "POST",
  2147. HTTPPath: "/",
  2148. }
  2149. if input == nil {
  2150. input = &VerifyEmailAddressInput{}
  2151. }
  2152. req = c.newRequest(op, input, output)
  2153. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  2154. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2155. output = &VerifyEmailAddressOutput{}
  2156. req.Data = output
  2157. return
  2158. }
  2159. // Verifies an email address. This action causes a confirmation email message
  2160. // to be sent to the specified address.
  2161. //
  2162. // The VerifyEmailAddress action is deprecated as of the May 15, 2012 release
  2163. // of Domain Verification. The VerifyEmailIdentity action is now preferred.
  2164. //
  2165. // This action is throttled at one request per second.
  2166. func (c *SES) VerifyEmailAddress(input *VerifyEmailAddressInput) (*VerifyEmailAddressOutput, error) {
  2167. req, out := c.VerifyEmailAddressRequest(input)
  2168. err := req.Send()
  2169. return out, err
  2170. }
  2171. const opVerifyEmailIdentity = "VerifyEmailIdentity"
  2172. // VerifyEmailIdentityRequest generates a "aws/request.Request" representing the
  2173. // client's request for the VerifyEmailIdentity operation. The "output" return
  2174. // value can be used to capture response data after the request's "Send" method
  2175. // is called.
  2176. //
  2177. // Creating a request object using this method should be used when you want to inject
  2178. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2179. // access properties on the request object before or after sending the request. If
  2180. // you just want the service response, call the VerifyEmailIdentity method directly
  2181. // instead.
  2182. //
  2183. // Note: You must call the "Send" method on the returned request object in order
  2184. // to execute the request.
  2185. //
  2186. // // Example sending a request using the VerifyEmailIdentityRequest method.
  2187. // req, resp := client.VerifyEmailIdentityRequest(params)
  2188. //
  2189. // err := req.Send()
  2190. // if err == nil { // resp is now filled
  2191. // fmt.Println(resp)
  2192. // }
  2193. //
  2194. func (c *SES) VerifyEmailIdentityRequest(input *VerifyEmailIdentityInput) (req *request.Request, output *VerifyEmailIdentityOutput) {
  2195. op := &request.Operation{
  2196. Name: opVerifyEmailIdentity,
  2197. HTTPMethod: "POST",
  2198. HTTPPath: "/",
  2199. }
  2200. if input == nil {
  2201. input = &VerifyEmailIdentityInput{}
  2202. }
  2203. req = c.newRequest(op, input, output)
  2204. output = &VerifyEmailIdentityOutput{}
  2205. req.Data = output
  2206. return
  2207. }
  2208. // Verifies an email address. This action causes a confirmation email message
  2209. // to be sent to the specified address.
  2210. //
  2211. // This action is throttled at one request per second.
  2212. func (c *SES) VerifyEmailIdentity(input *VerifyEmailIdentityInput) (*VerifyEmailIdentityOutput, error) {
  2213. req, out := c.VerifyEmailIdentityRequest(input)
  2214. err := req.Send()
  2215. return out, err
  2216. }
  2217. // When included in a receipt rule, this action adds a header to the received
  2218. // email.
  2219. //
  2220. // For information about adding a header using a receipt rule, see the Amazon
  2221. // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-action-add-header.html).
  2222. type AddHeaderAction struct {
  2223. _ struct{} `type:"structure"`
  2224. // The name of the header to add. Must be between 1 and 50 characters, inclusive,
  2225. // and consist of alphanumeric (a-z, A-Z, 0-9) characters and dashes only.
  2226. HeaderName *string `type:"string" required:"true"`
  2227. // Must be less than 2048 characters, and must not contain newline characters
  2228. // ("\r" or "\n").
  2229. HeaderValue *string `type:"string" required:"true"`
  2230. }
  2231. // String returns the string representation
  2232. func (s AddHeaderAction) String() string {
  2233. return awsutil.Prettify(s)
  2234. }
  2235. // GoString returns the string representation
  2236. func (s AddHeaderAction) GoString() string {
  2237. return s.String()
  2238. }
  2239. // Validate inspects the fields of the type to determine if they are valid.
  2240. func (s *AddHeaderAction) Validate() error {
  2241. invalidParams := request.ErrInvalidParams{Context: "AddHeaderAction"}
  2242. if s.HeaderName == nil {
  2243. invalidParams.Add(request.NewErrParamRequired("HeaderName"))
  2244. }
  2245. if s.HeaderValue == nil {
  2246. invalidParams.Add(request.NewErrParamRequired("HeaderValue"))
  2247. }
  2248. if invalidParams.Len() > 0 {
  2249. return invalidParams
  2250. }
  2251. return nil
  2252. }
  2253. // Represents the body of the message. You can specify text, HTML, or both.
  2254. // If you use both, then the message should display correctly in the widest
  2255. // variety of email clients.
  2256. type Body struct {
  2257. _ struct{} `type:"structure"`
  2258. // The content of the message, in HTML format. Use this for email clients that
  2259. // can process HTML. You can include clickable links, formatted text, and much
  2260. // more in an HTML message.
  2261. Html *Content `type:"structure"`
  2262. // The content of the message, in text format. Use this for text-based email
  2263. // clients, or clients on high-latency networks (such as mobile devices).
  2264. Text *Content `type:"structure"`
  2265. }
  2266. // String returns the string representation
  2267. func (s Body) String() string {
  2268. return awsutil.Prettify(s)
  2269. }
  2270. // GoString returns the string representation
  2271. func (s Body) GoString() string {
  2272. return s.String()
  2273. }
  2274. // Validate inspects the fields of the type to determine if they are valid.
  2275. func (s *Body) Validate() error {
  2276. invalidParams := request.ErrInvalidParams{Context: "Body"}
  2277. if s.Html != nil {
  2278. if err := s.Html.Validate(); err != nil {
  2279. invalidParams.AddNested("Html", err.(request.ErrInvalidParams))
  2280. }
  2281. }
  2282. if s.Text != nil {
  2283. if err := s.Text.Validate(); err != nil {
  2284. invalidParams.AddNested("Text", err.(request.ErrInvalidParams))
  2285. }
  2286. }
  2287. if invalidParams.Len() > 0 {
  2288. return invalidParams
  2289. }
  2290. return nil
  2291. }
  2292. // When included in a receipt rule, this action rejects the received email by
  2293. // returning a bounce response to the sender and, optionally, publishes a notification
  2294. // to Amazon Simple Notification Service (Amazon SNS).
  2295. //
  2296. // For information about sending a bounce message in response to a received
  2297. // email, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-action-bounce.html).
  2298. type BounceAction struct {
  2299. _ struct{} `type:"structure"`
  2300. // Human-readable text to include in the bounce message.
  2301. Message *string `type:"string" required:"true"`
  2302. // The email address of the sender of the bounced email. This is the address
  2303. // from which the bounce message will be sent.
  2304. Sender *string `type:"string" required:"true"`
  2305. // The SMTP reply code, as defined by RFC 5321 (https://tools.ietf.org/html/rfc5321).
  2306. SmtpReplyCode *string `type:"string" required:"true"`
  2307. // The SMTP enhanced status code, as defined by RFC 3463 (https://tools.ietf.org/html/rfc3463).
  2308. StatusCode *string `type:"string"`
  2309. // The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the
  2310. // bounce action is taken. An example of an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic.
  2311. // For more information about Amazon SNS topics, see the Amazon SNS Developer
  2312. // Guide (http://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html).
  2313. TopicArn *string `type:"string"`
  2314. }
  2315. // String returns the string representation
  2316. func (s BounceAction) String() string {
  2317. return awsutil.Prettify(s)
  2318. }
  2319. // GoString returns the string representation
  2320. func (s BounceAction) GoString() string {
  2321. return s.String()
  2322. }
  2323. // Validate inspects the fields of the type to determine if they are valid.
  2324. func (s *BounceAction) Validate() error {
  2325. invalidParams := request.ErrInvalidParams{Context: "BounceAction"}
  2326. if s.Message == nil {
  2327. invalidParams.Add(request.NewErrParamRequired("Message"))
  2328. }
  2329. if s.Sender == nil {
  2330. invalidParams.Add(request.NewErrParamRequired("Sender"))
  2331. }
  2332. if s.SmtpReplyCode == nil {
  2333. invalidParams.Add(request.NewErrParamRequired("SmtpReplyCode"))
  2334. }
  2335. if invalidParams.Len() > 0 {
  2336. return invalidParams
  2337. }
  2338. return nil
  2339. }
  2340. // Recipient-related information to include in the Delivery Status Notification
  2341. // (DSN) when an email that Amazon SES receives on your behalf bounces.
  2342. //
  2343. // For information about receiving email through Amazon SES, see the Amazon
  2344. // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email.html).
  2345. type BouncedRecipientInfo struct {
  2346. _ struct{} `type:"structure"`
  2347. // The reason for the bounce. You must provide either this parameter or RecipientDsnFields.
  2348. BounceType *string `type:"string" enum:"BounceType"`
  2349. // The email address of the recipient of the bounced email.
  2350. Recipient *string `type:"string" required:"true"`
  2351. // This parameter is used only for sending authorization. It is the ARN of the
  2352. // identity that is associated with the sending authorization policy that permits
  2353. // you to receive email for the recipient of the bounced email. For more information
  2354. // about sending authorization, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html).
  2355. RecipientArn *string `type:"string"`
  2356. // Recipient-related DSN fields, most of which would normally be filled in automatically
  2357. // when provided with a BounceType. You must provide either this parameter or
  2358. // BounceType.
  2359. RecipientDsnFields *RecipientDsnFields `type:"structure"`
  2360. }
  2361. // String returns the string representation
  2362. func (s BouncedRecipientInfo) String() string {
  2363. return awsutil.Prettify(s)
  2364. }
  2365. // GoString returns the string representation
  2366. func (s BouncedRecipientInfo) GoString() string {
  2367. return s.String()
  2368. }
  2369. // Validate inspects the fields of the type to determine if they are valid.
  2370. func (s *BouncedRecipientInfo) Validate() error {
  2371. invalidParams := request.ErrInvalidParams{Context: "BouncedRecipientInfo"}
  2372. if s.Recipient == nil {
  2373. invalidParams.Add(request.NewErrParamRequired("Recipient"))
  2374. }
  2375. if s.RecipientDsnFields != nil {
  2376. if err := s.RecipientDsnFields.Validate(); err != nil {
  2377. invalidParams.AddNested("RecipientDsnFields", err.(request.ErrInvalidParams))
  2378. }
  2379. }
  2380. if invalidParams.Len() > 0 {
  2381. return invalidParams
  2382. }
  2383. return nil
  2384. }
  2385. // Represents a request to create a receipt rule set by cloning an existing
  2386. // one. You use receipt rule sets to receive email with Amazon SES. For more
  2387. // information, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html).
  2388. type CloneReceiptRuleSetInput struct {
  2389. _ struct{} `type:"structure"`
  2390. // The name of the rule set to clone.
  2391. OriginalRuleSetName *string `type:"string" required:"true"`
  2392. // The name of the rule set to create. The name must:
  2393. //
  2394. // Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores
  2395. // (_), or dashes (-).
  2396. //
  2397. // Start and end with a letter or number.
  2398. //
  2399. // Contain less than 64 characters.
  2400. RuleSetName *string `type:"string" required:"true"`
  2401. }
  2402. // String returns the string representation
  2403. func (s CloneReceiptRuleSetInput) String() string {
  2404. return awsutil.Prettify(s)
  2405. }
  2406. // GoString returns the string representation
  2407. func (s CloneReceiptRuleSetInput) GoString() string {
  2408. return s.String()
  2409. }
  2410. // Validate inspects the fields of the type to determine if they are valid.
  2411. func (s *CloneReceiptRuleSetInput) Validate() error {
  2412. invalidParams := request.ErrInvalidParams{Context: "CloneReceiptRuleSetInput"}
  2413. if s.OriginalRuleSetName == nil {
  2414. invalidParams.Add(request.NewErrParamRequired("OriginalRuleSetName"))
  2415. }
  2416. if s.RuleSetName == nil {
  2417. invalidParams.Add(request.NewErrParamRequired("RuleSetName"))
  2418. }
  2419. if invalidParams.Len() > 0 {
  2420. return invalidParams
  2421. }
  2422. return nil
  2423. }
  2424. // An empty element returned on a successful request.
  2425. type CloneReceiptRuleSetOutput struct {
  2426. _ struct{} `type:"structure"`
  2427. }
  2428. // String returns the string representation
  2429. func (s CloneReceiptRuleSetOutput) String() string {
  2430. return awsutil.Prettify(s)
  2431. }
  2432. // GoString returns the string representation
  2433. func (s CloneReceiptRuleSetOutput) GoString() string {
  2434. return s.String()
  2435. }
  2436. // Represents textual data, plus an optional character set specification.
  2437. //
  2438. // By default, the text must be 7-bit ASCII, due to the constraints of the
  2439. // SMTP protocol. If the text must contain any other characters, then you must
  2440. // also specify a character set. Examples include UTF-8, ISO-8859-1, and Shift_JIS.
  2441. type Content struct {
  2442. _ struct{} `type:"structure"`
  2443. // The character set of the content.
  2444. Charset *string `type:"string"`
  2445. // The textual data of the content.
  2446. Data *string `type:"string" required:"true"`
  2447. }
  2448. // String returns the string representation
  2449. func (s Content) String() string {
  2450. return awsutil.Prettify(s)
  2451. }
  2452. // GoString returns the string representation
  2453. func (s Content) GoString() string {
  2454. return s.String()
  2455. }
  2456. // Validate inspects the fields of the type to determine if they are valid.
  2457. func (s *Content) Validate() error {
  2458. invalidParams := request.ErrInvalidParams{Context: "Content"}
  2459. if s.Data == nil {
  2460. invalidParams.Add(request.NewErrParamRequired("Data"))
  2461. }
  2462. if invalidParams.Len() > 0 {
  2463. return invalidParams
  2464. }
  2465. return nil
  2466. }
  2467. // Represents a request to create a new IP address filter. You use IP address
  2468. // filters when you receive email with Amazon SES. For more information, see
  2469. // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html).
  2470. type CreateReceiptFilterInput struct {
  2471. _ struct{} `type:"structure"`
  2472. // A data structure that describes the IP address filter to create, which consists
  2473. // of a name, an IP address range, and whether to allow or block mail from it.
  2474. Filter *ReceiptFilter `type:"structure" required:"true"`
  2475. }
  2476. // String returns the string representation
  2477. func (s CreateReceiptFilterInput) String() string {
  2478. return awsutil.Prettify(s)
  2479. }
  2480. // GoString returns the string representation
  2481. func (s CreateReceiptFilterInput) GoString() string {
  2482. return s.String()
  2483. }
  2484. // Validate inspects the fields of the type to determine if they are valid.
  2485. func (s *CreateReceiptFilterInput) Validate() error {
  2486. invalidParams := request.ErrInvalidParams{Context: "CreateReceiptFilterInput"}
  2487. if s.Filter == nil {
  2488. invalidParams.Add(request.NewErrParamRequired("Filter"))
  2489. }
  2490. if s.Filter != nil {
  2491. if err := s.Filter.Validate(); err != nil {
  2492. invalidParams.AddNested("Filter", err.(request.ErrInvalidParams))
  2493. }
  2494. }
  2495. if invalidParams.Len() > 0 {
  2496. return invalidParams
  2497. }
  2498. return nil
  2499. }
  2500. // An empty element returned on a successful request.
  2501. type CreateReceiptFilterOutput struct {
  2502. _ struct{} `type:"structure"`
  2503. }
  2504. // String returns the string representation
  2505. func (s CreateReceiptFilterOutput) String() string {
  2506. return awsutil.Prettify(s)
  2507. }
  2508. // GoString returns the string representation
  2509. func (s CreateReceiptFilterOutput) GoString() string {
  2510. return s.String()
  2511. }
  2512. // Represents a request to create a receipt rule. You use receipt rules to receive
  2513. // email with Amazon SES. For more information, see the Amazon SES Developer
  2514. // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html).
  2515. type CreateReceiptRuleInput struct {
  2516. _ struct{} `type:"structure"`
  2517. // The name of an existing rule after which the new rule will be placed. If
  2518. // this parameter is null, the new rule will be inserted at the beginning of
  2519. // the rule list.
  2520. After *string `type:"string"`
  2521. // A data structure that contains the specified rule's name, actions, recipients,
  2522. // domains, enabled status, scan status, and TLS policy.
  2523. Rule *ReceiptRule `type:"structure" required:"true"`
  2524. // The name of the rule set to which to add the rule.
  2525. RuleSetName *string `type:"string" required:"true"`
  2526. }
  2527. // String returns the string representation
  2528. func (s CreateReceiptRuleInput) String() string {
  2529. return awsutil.Prettify(s)
  2530. }
  2531. // GoString returns the string representation
  2532. func (s CreateReceiptRuleInput) GoString() string {
  2533. return s.String()
  2534. }
  2535. // Validate inspects the fields of the type to determine if they are valid.
  2536. func (s *CreateReceiptRuleInput) Validate() error {
  2537. invalidParams := request.ErrInvalidParams{Context: "CreateReceiptRuleInput"}
  2538. if s.Rule == nil {
  2539. invalidParams.Add(request.NewErrParamRequired("Rule"))
  2540. }
  2541. if s.RuleSetName == nil {
  2542. invalidParams.Add(request.NewErrParamRequired("RuleSetName"))
  2543. }
  2544. if s.Rule != nil {
  2545. if err := s.Rule.Validate(); err != nil {
  2546. invalidParams.AddNested("Rule", err.(request.ErrInvalidParams))
  2547. }
  2548. }
  2549. if invalidParams.Len() > 0 {
  2550. return invalidParams
  2551. }
  2552. return nil
  2553. }
  2554. // An empty element returned on a successful request.
  2555. type CreateReceiptRuleOutput struct {
  2556. _ struct{} `type:"structure"`
  2557. }
  2558. // String returns the string representation
  2559. func (s CreateReceiptRuleOutput) String() string {
  2560. return awsutil.Prettify(s)
  2561. }
  2562. // GoString returns the string representation
  2563. func (s CreateReceiptRuleOutput) GoString() string {
  2564. return s.String()
  2565. }
  2566. // Represents a request to create an empty receipt rule set. You use receipt
  2567. // rule sets to receive email with Amazon SES. For more information, see the
  2568. // Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html).
  2569. type CreateReceiptRuleSetInput struct {
  2570. _ struct{} `type:"structure"`
  2571. // The name of the rule set to create. The name must:
  2572. //
  2573. // Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores
  2574. // (_), or dashes (-).
  2575. //
  2576. // Start and end with a letter or number.
  2577. //
  2578. // Contain less than 64 characters.
  2579. RuleSetName *string `type:"string" required:"true"`
  2580. }
  2581. // String returns the string representation
  2582. func (s CreateReceiptRuleSetInput) String() string {
  2583. return awsutil.Prettify(s)
  2584. }
  2585. // GoString returns the string representation
  2586. func (s CreateReceiptRuleSetInput) GoString() string {
  2587. return s.String()
  2588. }
  2589. // Validate inspects the fields of the type to determine if they are valid.
  2590. func (s *CreateReceiptRuleSetInput) Validate() error {
  2591. invalidParams := request.ErrInvalidParams{Context: "CreateReceiptRuleSetInput"}
  2592. if s.RuleSetName == nil {
  2593. invalidParams.Add(request.NewErrParamRequired("RuleSetName"))
  2594. }
  2595. if invalidParams.Len() > 0 {
  2596. return invalidParams
  2597. }
  2598. return nil
  2599. }
  2600. // An empty element returned on a successful request.
  2601. type CreateReceiptRuleSetOutput struct {
  2602. _ struct{} `type:"structure"`
  2603. }
  2604. // String returns the string representation
  2605. func (s CreateReceiptRuleSetOutput) String() string {
  2606. return awsutil.Prettify(s)
  2607. }
  2608. // GoString returns the string representation
  2609. func (s CreateReceiptRuleSetOutput) GoString() string {
  2610. return s.String()
  2611. }
  2612. // Represents a request to delete one of your Amazon SES identities (an email
  2613. // address or domain).
  2614. type DeleteIdentityInput struct {
  2615. _ struct{} `type:"structure"`
  2616. // The identity to be removed from the list of identities for the AWS Account.
  2617. Identity *string `type:"string" required:"true"`
  2618. }
  2619. // String returns the string representation
  2620. func (s DeleteIdentityInput) String() string {
  2621. return awsutil.Prettify(s)
  2622. }
  2623. // GoString returns the string representation
  2624. func (s DeleteIdentityInput) GoString() string {
  2625. return s.String()
  2626. }
  2627. // Validate inspects the fields of the type to determine if they are valid.
  2628. func (s *DeleteIdentityInput) Validate() error {
  2629. invalidParams := request.ErrInvalidParams{Context: "DeleteIdentityInput"}
  2630. if s.Identity == nil {
  2631. invalidParams.Add(request.NewErrParamRequired("Identity"))
  2632. }
  2633. if invalidParams.Len() > 0 {
  2634. return invalidParams
  2635. }
  2636. return nil
  2637. }
  2638. // An empty element returned on a successful request.
  2639. type DeleteIdentityOutput struct {
  2640. _ struct{} `type:"structure"`
  2641. }
  2642. // String returns the string representation
  2643. func (s DeleteIdentityOutput) String() string {
  2644. return awsutil.Prettify(s)
  2645. }
  2646. // GoString returns the string representation
  2647. func (s DeleteIdentityOutput) GoString() string {
  2648. return s.String()
  2649. }
  2650. // Represents a request to delete a sending authorization policy for an identity.
  2651. // Sending authorization is an Amazon SES feature that enables you to authorize
  2652. // other senders to use your identities. For information, see the Amazon SES
  2653. // Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html).
  2654. type DeleteIdentityPolicyInput struct {
  2655. _ struct{} `type:"structure"`
  2656. // The identity that is associated with the policy that you want to delete.
  2657. // You can specify the identity by using its name or by using its Amazon Resource
  2658. // Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.
  2659. //
  2660. // To successfully call this API, you must own the identity.
  2661. Identity *string `type:"string" required:"true"`
  2662. // The name of the policy to be deleted.
  2663. PolicyName *string `min:"1" type:"string" required:"true"`
  2664. }
  2665. // String returns the string representation
  2666. func (s DeleteIdentityPolicyInput) String() string {
  2667. return awsutil.Prettify(s)
  2668. }
  2669. // GoString returns the string representation
  2670. func (s DeleteIdentityPolicyInput) GoString() string {
  2671. return s.String()
  2672. }
  2673. // Validate inspects the fields of the type to determine if they are valid.
  2674. func (s *DeleteIdentityPolicyInput) Validate() error {
  2675. invalidParams := request.ErrInvalidParams{Context: "DeleteIdentityPolicyInput"}
  2676. if s.Identity == nil {
  2677. invalidParams.Add(request.NewErrParamRequired("Identity"))
  2678. }
  2679. if s.PolicyName == nil {
  2680. invalidParams.Add(request.NewErrParamRequired("PolicyName"))
  2681. }
  2682. if s.PolicyName != nil && len(*s.PolicyName) < 1 {
  2683. invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1))
  2684. }
  2685. if invalidParams.Len() > 0 {
  2686. return invalidParams
  2687. }
  2688. return nil
  2689. }
  2690. // An empty element returned on a successful request.
  2691. type DeleteIdentityPolicyOutput struct {
  2692. _ struct{} `type:"structure"`
  2693. }
  2694. // String returns the string representation
  2695. func (s DeleteIdentityPolicyOutput) String() string {
  2696. return awsutil.Prettify(s)
  2697. }
  2698. // GoString returns the string representation
  2699. func (s DeleteIdentityPolicyOutput) GoString() string {
  2700. return s.String()
  2701. }
  2702. // Represents a request to delete an IP address filter. You use IP address filters
  2703. // when you receive email with Amazon SES. For more information, see the Amazon
  2704. // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html).
  2705. type DeleteReceiptFilterInput struct {
  2706. _ struct{} `type:"structure"`
  2707. // The name of the IP address filter to delete.
  2708. FilterName *string `type:"string" required:"true"`
  2709. }
  2710. // String returns the string representation
  2711. func (s DeleteReceiptFilterInput) String() string {
  2712. return awsutil.Prettify(s)
  2713. }
  2714. // GoString returns the string representation
  2715. func (s DeleteReceiptFilterInput) GoString() string {
  2716. return s.String()
  2717. }
  2718. // Validate inspects the fields of the type to determine if they are valid.
  2719. func (s *DeleteReceiptFilterInput) Validate() error {
  2720. invalidParams := request.ErrInvalidParams{Context: "DeleteReceiptFilterInput"}
  2721. if s.FilterName == nil {
  2722. invalidParams.Add(request.NewErrParamRequired("FilterName"))
  2723. }
  2724. if invalidParams.Len() > 0 {
  2725. return invalidParams
  2726. }
  2727. return nil
  2728. }
  2729. // An empty element returned on a successful request.
  2730. type DeleteReceiptFilterOutput struct {
  2731. _ struct{} `type:"structure"`
  2732. }
  2733. // String returns the string representation
  2734. func (s DeleteReceiptFilterOutput) String() string {
  2735. return awsutil.Prettify(s)
  2736. }
  2737. // GoString returns the string representation
  2738. func (s DeleteReceiptFilterOutput) GoString() string {
  2739. return s.String()
  2740. }
  2741. // Represents a request to delete a receipt rule. You use receipt rules to receive
  2742. // email with Amazon SES. For more information, see the Amazon SES Developer
  2743. // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html).
  2744. type DeleteReceiptRuleInput struct {
  2745. _ struct{} `type:"structure"`
  2746. // The name of the receipt rule to delete.
  2747. RuleName *string `type:"string" required:"true"`
  2748. // The name of the receipt rule set that contains the receipt rule to delete.
  2749. RuleSetName *string `type:"string" required:"true"`
  2750. }
  2751. // String returns the string representation
  2752. func (s DeleteReceiptRuleInput) String() string {
  2753. return awsutil.Prettify(s)
  2754. }
  2755. // GoString returns the string representation
  2756. func (s DeleteReceiptRuleInput) GoString() string {
  2757. return s.String()
  2758. }
  2759. // Validate inspects the fields of the type to determine if they are valid.
  2760. func (s *DeleteReceiptRuleInput) Validate() error {
  2761. invalidParams := request.ErrInvalidParams{Context: "DeleteReceiptRuleInput"}
  2762. if s.RuleName == nil {
  2763. invalidParams.Add(request.NewErrParamRequired("RuleName"))
  2764. }
  2765. if s.RuleSetName == nil {
  2766. invalidParams.Add(request.NewErrParamRequired("RuleSetName"))
  2767. }
  2768. if invalidParams.Len() > 0 {
  2769. return invalidParams
  2770. }
  2771. return nil
  2772. }
  2773. // An empty element returned on a successful request.
  2774. type DeleteReceiptRuleOutput struct {
  2775. _ struct{} `type:"structure"`
  2776. }
  2777. // String returns the string representation
  2778. func (s DeleteReceiptRuleOutput) String() string {
  2779. return awsutil.Prettify(s)
  2780. }
  2781. // GoString returns the string representation
  2782. func (s DeleteReceiptRuleOutput) GoString() string {
  2783. return s.String()
  2784. }
  2785. // Represents a request to delete a receipt rule set and all of the receipt
  2786. // rules it contains. You use receipt rule sets to receive email with Amazon
  2787. // SES. For more information, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html).
  2788. type DeleteReceiptRuleSetInput struct {
  2789. _ struct{} `type:"structure"`
  2790. // The name of the receipt rule set to delete.
  2791. RuleSetName *string `type:"string" required:"true"`
  2792. }
  2793. // String returns the string representation
  2794. func (s DeleteReceiptRuleSetInput) String() string {
  2795. return awsutil.Prettify(s)
  2796. }
  2797. // GoString returns the string representation
  2798. func (s DeleteReceiptRuleSetInput) GoString() string {
  2799. return s.String()
  2800. }
  2801. // Validate inspects the fields of the type to determine if they are valid.
  2802. func (s *DeleteReceiptRuleSetInput) Validate() error {
  2803. invalidParams := request.ErrInvalidParams{Context: "DeleteReceiptRuleSetInput"}
  2804. if s.RuleSetName == nil {
  2805. invalidParams.Add(request.NewErrParamRequired("RuleSetName"))
  2806. }
  2807. if invalidParams.Len() > 0 {
  2808. return invalidParams
  2809. }
  2810. return nil
  2811. }
  2812. // An empty element returned on a successful request.
  2813. type DeleteReceiptRuleSetOutput struct {
  2814. _ struct{} `type:"structure"`
  2815. }
  2816. // String returns the string representation
  2817. func (s DeleteReceiptRuleSetOutput) String() string {
  2818. return awsutil.Prettify(s)
  2819. }
  2820. // GoString returns the string representation
  2821. func (s DeleteReceiptRuleSetOutput) GoString() string {
  2822. return s.String()
  2823. }
  2824. // Represents a request to delete an email address from the list of email addresses
  2825. // you have attempted to verify under your AWS account.
  2826. type DeleteVerifiedEmailAddressInput struct {
  2827. _ struct{} `type:"structure"`
  2828. // An email address to be removed from the list of verified addresses.
  2829. EmailAddress *string `type:"string" required:"true"`
  2830. }
  2831. // String returns the string representation
  2832. func (s DeleteVerifiedEmailAddressInput) String() string {
  2833. return awsutil.Prettify(s)
  2834. }
  2835. // GoString returns the string representation
  2836. func (s DeleteVerifiedEmailAddressInput) GoString() string {
  2837. return s.String()
  2838. }
  2839. // Validate inspects the fields of the type to determine if they are valid.
  2840. func (s *DeleteVerifiedEmailAddressInput) Validate() error {
  2841. invalidParams := request.ErrInvalidParams{Context: "DeleteVerifiedEmailAddressInput"}
  2842. if s.EmailAddress == nil {
  2843. invalidParams.Add(request.NewErrParamRequired("EmailAddress"))
  2844. }
  2845. if invalidParams.Len() > 0 {
  2846. return invalidParams
  2847. }
  2848. return nil
  2849. }
  2850. type DeleteVerifiedEmailAddressOutput struct {
  2851. _ struct{} `type:"structure"`
  2852. }
  2853. // String returns the string representation
  2854. func (s DeleteVerifiedEmailAddressOutput) String() string {
  2855. return awsutil.Prettify(s)
  2856. }
  2857. // GoString returns the string representation
  2858. func (s DeleteVerifiedEmailAddressOutput) GoString() string {
  2859. return s.String()
  2860. }
  2861. // Represents a request to return the metadata and receipt rules for the receipt
  2862. // rule set that is currently active. You use receipt rule sets to receive email
  2863. // with Amazon SES. For more information, see the Amazon SES Developer Guide
  2864. // (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html).
  2865. type DescribeActiveReceiptRuleSetInput struct {
  2866. _ struct{} `type:"structure"`
  2867. }
  2868. // String returns the string representation
  2869. func (s DescribeActiveReceiptRuleSetInput) String() string {
  2870. return awsutil.Prettify(s)
  2871. }
  2872. // GoString returns the string representation
  2873. func (s DescribeActiveReceiptRuleSetInput) GoString() string {
  2874. return s.String()
  2875. }
  2876. // Represents the metadata and receipt rules for the receipt rule set that is
  2877. // currently active.
  2878. type DescribeActiveReceiptRuleSetOutput struct {
  2879. _ struct{} `type:"structure"`
  2880. // The metadata for the currently active receipt rule set. The metadata consists
  2881. // of the rule set name and a timestamp of when the rule set was created.
  2882. Metadata *ReceiptRuleSetMetadata `type:"structure"`
  2883. // The receipt rules that belong to the active rule set.
  2884. Rules []*ReceiptRule `type:"list"`
  2885. }
  2886. // String returns the string representation
  2887. func (s DescribeActiveReceiptRuleSetOutput) String() string {
  2888. return awsutil.Prettify(s)
  2889. }
  2890. // GoString returns the string representation
  2891. func (s DescribeActiveReceiptRuleSetOutput) GoString() string {
  2892. return s.String()
  2893. }
  2894. // Represents a request to return the details of a receipt rule. You use receipt
  2895. // rules to receive email with Amazon SES. For more information, see the Amazon
  2896. // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html).
  2897. type DescribeReceiptRuleInput struct {
  2898. _ struct{} `type:"structure"`
  2899. // The name of the receipt rule.
  2900. RuleName *string `type:"string" required:"true"`
  2901. // The name of the receipt rule set to which the receipt rule belongs.
  2902. RuleSetName *string `type:"string" required:"true"`
  2903. }
  2904. // String returns the string representation
  2905. func (s DescribeReceiptRuleInput) String() string {
  2906. return awsutil.Prettify(s)
  2907. }
  2908. // GoString returns the string representation
  2909. func (s DescribeReceiptRuleInput) GoString() string {
  2910. return s.String()
  2911. }
  2912. // Validate inspects the fields of the type to determine if they are valid.
  2913. func (s *DescribeReceiptRuleInput) Validate() error {
  2914. invalidParams := request.ErrInvalidParams{Context: "DescribeReceiptRuleInput"}
  2915. if s.RuleName == nil {
  2916. invalidParams.Add(request.NewErrParamRequired("RuleName"))
  2917. }
  2918. if s.RuleSetName == nil {
  2919. invalidParams.Add(request.NewErrParamRequired("RuleSetName"))
  2920. }
  2921. if invalidParams.Len() > 0 {
  2922. return invalidParams
  2923. }
  2924. return nil
  2925. }
  2926. // Represents the details of a receipt rule.
  2927. type DescribeReceiptRuleOutput struct {
  2928. _ struct{} `type:"structure"`
  2929. // A data structure that contains the specified receipt rule's name, actions,
  2930. // recipients, domains, enabled status, scan status, and Transport Layer Security
  2931. // (TLS) policy.
  2932. Rule *ReceiptRule `type:"structure"`
  2933. }
  2934. // String returns the string representation
  2935. func (s DescribeReceiptRuleOutput) String() string {
  2936. return awsutil.Prettify(s)
  2937. }
  2938. // GoString returns the string representation
  2939. func (s DescribeReceiptRuleOutput) GoString() string {
  2940. return s.String()
  2941. }
  2942. // Represents a request to return the details of a receipt rule set. You use
  2943. // receipt rule sets to receive email with Amazon SES. For more information,
  2944. // see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html).
  2945. type DescribeReceiptRuleSetInput struct {
  2946. _ struct{} `type:"structure"`
  2947. // The name of the receipt rule set to describe.
  2948. RuleSetName *string `type:"string" required:"true"`
  2949. }
  2950. // String returns the string representation
  2951. func (s DescribeReceiptRuleSetInput) String() string {
  2952. return awsutil.Prettify(s)
  2953. }
  2954. // GoString returns the string representation
  2955. func (s DescribeReceiptRuleSetInput) GoString() string {
  2956. return s.String()
  2957. }
  2958. // Validate inspects the fields of the type to determine if they are valid.
  2959. func (s *DescribeReceiptRuleSetInput) Validate() error {
  2960. invalidParams := request.ErrInvalidParams{Context: "DescribeReceiptRuleSetInput"}
  2961. if s.RuleSetName == nil {
  2962. invalidParams.Add(request.NewErrParamRequired("RuleSetName"))
  2963. }
  2964. if invalidParams.Len() > 0 {
  2965. return invalidParams
  2966. }
  2967. return nil
  2968. }
  2969. // Represents the details of the specified receipt rule set.
  2970. type DescribeReceiptRuleSetOutput struct {
  2971. _ struct{} `type:"structure"`
  2972. // The metadata for the receipt rule set, which consists of the rule set name
  2973. // and the timestamp of when the rule set was created.
  2974. Metadata *ReceiptRuleSetMetadata `type:"structure"`
  2975. // A list of the receipt rules that belong to the specified receipt rule set.
  2976. Rules []*ReceiptRule `type:"list"`
  2977. }
  2978. // String returns the string representation
  2979. func (s DescribeReceiptRuleSetOutput) String() string {
  2980. return awsutil.Prettify(s)
  2981. }
  2982. // GoString returns the string representation
  2983. func (s DescribeReceiptRuleSetOutput) GoString() string {
  2984. return s.String()
  2985. }
  2986. // Represents the destination of the message, consisting of To:, CC:, and BCC:
  2987. // fields.
  2988. //
  2989. // By default, the string must be 7-bit ASCII. If the text must contain any
  2990. // other characters, then you must use MIME encoded-word syntax (RFC 2047) instead
  2991. // of a literal string. MIME encoded-word syntax uses the following form: =?charset?encoding?encoded-text?=.
  2992. // For more information, see RFC 2047 (http://tools.ietf.org/html/rfc2047).
  2993. type Destination struct {
  2994. _ struct{} `type:"structure"`
  2995. // The BCC: field(s) of the message.
  2996. BccAddresses []*string `type:"list"`
  2997. // The CC: field(s) of the message.
  2998. CcAddresses []*string `type:"list"`
  2999. // The To: field(s) of the message.
  3000. ToAddresses []*string `type:"list"`
  3001. }
  3002. // String returns the string representation
  3003. func (s Destination) String() string {
  3004. return awsutil.Prettify(s)
  3005. }
  3006. // GoString returns the string representation
  3007. func (s Destination) GoString() string {
  3008. return s.String()
  3009. }
  3010. // Additional X-headers to include in the Delivery Status Notification (DSN)
  3011. // when an email that Amazon SES receives on your behalf bounces.
  3012. //
  3013. // For information about receiving email through Amazon SES, see the Amazon
  3014. // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email.html).
  3015. type ExtensionField struct {
  3016. _ struct{} `type:"structure"`
  3017. // The name of the header to add. Must be between 1 and 50 characters, inclusive,
  3018. // and consist of alphanumeric (a-z, A-Z, 0-9) characters and dashes only.
  3019. Name *string `type:"string" required:"true"`
  3020. // The value of the header to add. Must be less than 2048 characters, and must
  3021. // not contain newline characters ("\r" or "\n").
  3022. Value *string `type:"string" required:"true"`
  3023. }
  3024. // String returns the string representation
  3025. func (s ExtensionField) String() string {
  3026. return awsutil.Prettify(s)
  3027. }
  3028. // GoString returns the string representation
  3029. func (s ExtensionField) GoString() string {
  3030. return s.String()
  3031. }
  3032. // Validate inspects the fields of the type to determine if they are valid.
  3033. func (s *ExtensionField) Validate() error {
  3034. invalidParams := request.ErrInvalidParams{Context: "ExtensionField"}
  3035. if s.Name == nil {
  3036. invalidParams.Add(request.NewErrParamRequired("Name"))
  3037. }
  3038. if s.Value == nil {
  3039. invalidParams.Add(request.NewErrParamRequired("Value"))
  3040. }
  3041. if invalidParams.Len() > 0 {
  3042. return invalidParams
  3043. }
  3044. return nil
  3045. }
  3046. // Represents a request for the status of Amazon SES Easy DKIM signing for an
  3047. // identity. For domain identities, this request also returns the DKIM tokens
  3048. // that are required for Easy DKIM signing, and whether Amazon SES successfully
  3049. // verified that these tokens were published. For more information about Easy
  3050. // DKIM, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html).
  3051. type GetIdentityDkimAttributesInput struct {
  3052. _ struct{} `type:"structure"`
  3053. // A list of one or more verified identities - email addresses, domains, or
  3054. // both.
  3055. Identities []*string `type:"list" required:"true"`
  3056. }
  3057. // String returns the string representation
  3058. func (s GetIdentityDkimAttributesInput) String() string {
  3059. return awsutil.Prettify(s)
  3060. }
  3061. // GoString returns the string representation
  3062. func (s GetIdentityDkimAttributesInput) GoString() string {
  3063. return s.String()
  3064. }
  3065. // Validate inspects the fields of the type to determine if they are valid.
  3066. func (s *GetIdentityDkimAttributesInput) Validate() error {
  3067. invalidParams := request.ErrInvalidParams{Context: "GetIdentityDkimAttributesInput"}
  3068. if s.Identities == nil {
  3069. invalidParams.Add(request.NewErrParamRequired("Identities"))
  3070. }
  3071. if invalidParams.Len() > 0 {
  3072. return invalidParams
  3073. }
  3074. return nil
  3075. }
  3076. // Represents the status of Amazon SES Easy DKIM signing for an identity. For
  3077. // domain identities, this response also contains the DKIM tokens that are required
  3078. // for Easy DKIM signing, and whether Amazon SES successfully verified that
  3079. // these tokens were published.
  3080. type GetIdentityDkimAttributesOutput struct {
  3081. _ struct{} `type:"structure"`
  3082. // The DKIM attributes for an email address or a domain.
  3083. DkimAttributes map[string]*IdentityDkimAttributes `type:"map" required:"true"`
  3084. }
  3085. // String returns the string representation
  3086. func (s GetIdentityDkimAttributesOutput) String() string {
  3087. return awsutil.Prettify(s)
  3088. }
  3089. // GoString returns the string representation
  3090. func (s GetIdentityDkimAttributesOutput) GoString() string {
  3091. return s.String()
  3092. }
  3093. // Represents a request to return the Amazon SES custom MAIL FROM attributes
  3094. // for a list of identities. For information about using a custom MAIL FROM
  3095. // domain, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/mail-from.html).
  3096. type GetIdentityMailFromDomainAttributesInput struct {
  3097. _ struct{} `type:"structure"`
  3098. // A list of one or more identities.
  3099. Identities []*string `type:"list" required:"true"`
  3100. }
  3101. // String returns the string representation
  3102. func (s GetIdentityMailFromDomainAttributesInput) String() string {
  3103. return awsutil.Prettify(s)
  3104. }
  3105. // GoString returns the string representation
  3106. func (s GetIdentityMailFromDomainAttributesInput) GoString() string {
  3107. return s.String()
  3108. }
  3109. // Validate inspects the fields of the type to determine if they are valid.
  3110. func (s *GetIdentityMailFromDomainAttributesInput) Validate() error {
  3111. invalidParams := request.ErrInvalidParams{Context: "GetIdentityMailFromDomainAttributesInput"}
  3112. if s.Identities == nil {
  3113. invalidParams.Add(request.NewErrParamRequired("Identities"))
  3114. }
  3115. if invalidParams.Len() > 0 {
  3116. return invalidParams
  3117. }
  3118. return nil
  3119. }
  3120. // Represents the custom MAIL FROM attributes for a list of identities.
  3121. type GetIdentityMailFromDomainAttributesOutput struct {
  3122. _ struct{} `type:"structure"`
  3123. // A map of identities to custom MAIL FROM attributes.
  3124. MailFromDomainAttributes map[string]*IdentityMailFromDomainAttributes `type:"map" required:"true"`
  3125. }
  3126. // String returns the string representation
  3127. func (s GetIdentityMailFromDomainAttributesOutput) String() string {
  3128. return awsutil.Prettify(s)
  3129. }
  3130. // GoString returns the string representation
  3131. func (s GetIdentityMailFromDomainAttributesOutput) GoString() string {
  3132. return s.String()
  3133. }
  3134. // Represents a request to return the notification attributes for a list of
  3135. // identities you verified with Amazon SES. For information about Amazon SES
  3136. // notifications, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html).
  3137. type GetIdentityNotificationAttributesInput struct {
  3138. _ struct{} `type:"structure"`
  3139. // A list of one or more identities. You can specify an identity by using its
  3140. // name or by using its Amazon Resource Name (ARN). Examples: user@example.com,
  3141. // example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.
  3142. Identities []*string `type:"list" required:"true"`
  3143. }
  3144. // String returns the string representation
  3145. func (s GetIdentityNotificationAttributesInput) String() string {
  3146. return awsutil.Prettify(s)
  3147. }
  3148. // GoString returns the string representation
  3149. func (s GetIdentityNotificationAttributesInput) GoString() string {
  3150. return s.String()
  3151. }
  3152. // Validate inspects the fields of the type to determine if they are valid.
  3153. func (s *GetIdentityNotificationAttributesInput) Validate() error {
  3154. invalidParams := request.ErrInvalidParams{Context: "GetIdentityNotificationAttributesInput"}
  3155. if s.Identities == nil {
  3156. invalidParams.Add(request.NewErrParamRequired("Identities"))
  3157. }
  3158. if invalidParams.Len() > 0 {
  3159. return invalidParams
  3160. }
  3161. return nil
  3162. }
  3163. // Represents the notification attributes for a list of identities.
  3164. type GetIdentityNotificationAttributesOutput struct {
  3165. _ struct{} `type:"structure"`
  3166. // A map of Identity to IdentityNotificationAttributes.
  3167. NotificationAttributes map[string]*IdentityNotificationAttributes `type:"map" required:"true"`
  3168. }
  3169. // String returns the string representation
  3170. func (s GetIdentityNotificationAttributesOutput) String() string {
  3171. return awsutil.Prettify(s)
  3172. }
  3173. // GoString returns the string representation
  3174. func (s GetIdentityNotificationAttributesOutput) GoString() string {
  3175. return s.String()
  3176. }
  3177. // Represents a request to return the requested sending authorization policies
  3178. // for an identity. Sending authorization is an Amazon SES feature that enables
  3179. // you to authorize other senders to use your identities. For information, see
  3180. // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html).
  3181. type GetIdentityPoliciesInput struct {
  3182. _ struct{} `type:"structure"`
  3183. // The identity for which the policies will be retrieved. You can specify an
  3184. // identity by using its name or by using its Amazon Resource Name (ARN). Examples:
  3185. // user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.
  3186. //
  3187. // To successfully call this API, you must own the identity.
  3188. Identity *string `type:"string" required:"true"`
  3189. // A list of the names of policies to be retrieved. You can retrieve a maximum
  3190. // of 20 policies at a time. If you do not know the names of the policies that
  3191. // are attached to the identity, you can use ListIdentityPolicies.
  3192. PolicyNames []*string `type:"list" required:"true"`
  3193. }
  3194. // String returns the string representation
  3195. func (s GetIdentityPoliciesInput) String() string {
  3196. return awsutil.Prettify(s)
  3197. }
  3198. // GoString returns the string representation
  3199. func (s GetIdentityPoliciesInput) GoString() string {
  3200. return s.String()
  3201. }
  3202. // Validate inspects the fields of the type to determine if they are valid.
  3203. func (s *GetIdentityPoliciesInput) Validate() error {
  3204. invalidParams := request.ErrInvalidParams{Context: "GetIdentityPoliciesInput"}
  3205. if s.Identity == nil {
  3206. invalidParams.Add(request.NewErrParamRequired("Identity"))
  3207. }
  3208. if s.PolicyNames == nil {
  3209. invalidParams.Add(request.NewErrParamRequired("PolicyNames"))
  3210. }
  3211. if invalidParams.Len() > 0 {
  3212. return invalidParams
  3213. }
  3214. return nil
  3215. }
  3216. // Represents the requested sending authorization policies.
  3217. type GetIdentityPoliciesOutput struct {
  3218. _ struct{} `type:"structure"`
  3219. // A map of policy names to policies.
  3220. Policies map[string]*string `type:"map" required:"true"`
  3221. }
  3222. // String returns the string representation
  3223. func (s GetIdentityPoliciesOutput) String() string {
  3224. return awsutil.Prettify(s)
  3225. }
  3226. // GoString returns the string representation
  3227. func (s GetIdentityPoliciesOutput) GoString() string {
  3228. return s.String()
  3229. }
  3230. // Represents a request to return the Amazon SES verification status of a list
  3231. // of identities. For domain identities, this request also returns the verification
  3232. // token. For information about verifying identities with Amazon SES, see the
  3233. // Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html).
  3234. type GetIdentityVerificationAttributesInput struct {
  3235. _ struct{} `type:"structure"`
  3236. // A list of identities.
  3237. Identities []*string `type:"list" required:"true"`
  3238. }
  3239. // String returns the string representation
  3240. func (s GetIdentityVerificationAttributesInput) String() string {
  3241. return awsutil.Prettify(s)
  3242. }
  3243. // GoString returns the string representation
  3244. func (s GetIdentityVerificationAttributesInput) GoString() string {
  3245. return s.String()
  3246. }
  3247. // Validate inspects the fields of the type to determine if they are valid.
  3248. func (s *GetIdentityVerificationAttributesInput) Validate() error {
  3249. invalidParams := request.ErrInvalidParams{Context: "GetIdentityVerificationAttributesInput"}
  3250. if s.Identities == nil {
  3251. invalidParams.Add(request.NewErrParamRequired("Identities"))
  3252. }
  3253. if invalidParams.Len() > 0 {
  3254. return invalidParams
  3255. }
  3256. return nil
  3257. }
  3258. // The Amazon SES verification status of a list of identities. For domain identities,
  3259. // this response also contains the verification token.
  3260. type GetIdentityVerificationAttributesOutput struct {
  3261. _ struct{} `type:"structure"`
  3262. // A map of Identities to IdentityVerificationAttributes objects.
  3263. VerificationAttributes map[string]*IdentityVerificationAttributes `type:"map" required:"true"`
  3264. }
  3265. // String returns the string representation
  3266. func (s GetIdentityVerificationAttributesOutput) String() string {
  3267. return awsutil.Prettify(s)
  3268. }
  3269. // GoString returns the string representation
  3270. func (s GetIdentityVerificationAttributesOutput) GoString() string {
  3271. return s.String()
  3272. }
  3273. type GetSendQuotaInput struct {
  3274. _ struct{} `type:"structure"`
  3275. }
  3276. // String returns the string representation
  3277. func (s GetSendQuotaInput) String() string {
  3278. return awsutil.Prettify(s)
  3279. }
  3280. // GoString returns the string representation
  3281. func (s GetSendQuotaInput) GoString() string {
  3282. return s.String()
  3283. }
  3284. // Represents your Amazon SES daily sending quota, maximum send rate, and the
  3285. // number of emails you have sent in the last 24 hours.
  3286. type GetSendQuotaOutput struct {
  3287. _ struct{} `type:"structure"`
  3288. // The maximum number of emails the user is allowed to send in a 24-hour interval.
  3289. // A value of -1 signifies an unlimited quota.
  3290. Max24HourSend *float64 `type:"double"`
  3291. // The maximum number of emails that Amazon SES can accept from the user's account
  3292. // per second.
  3293. //
  3294. // The rate at which Amazon SES accepts the user's messages might be less
  3295. // than the maximum send rate.
  3296. MaxSendRate *float64 `type:"double"`
  3297. // The number of emails sent during the previous 24 hours.
  3298. SentLast24Hours *float64 `type:"double"`
  3299. }
  3300. // String returns the string representation
  3301. func (s GetSendQuotaOutput) String() string {
  3302. return awsutil.Prettify(s)
  3303. }
  3304. // GoString returns the string representation
  3305. func (s GetSendQuotaOutput) GoString() string {
  3306. return s.String()
  3307. }
  3308. type GetSendStatisticsInput struct {
  3309. _ struct{} `type:"structure"`
  3310. }
  3311. // String returns the string representation
  3312. func (s GetSendStatisticsInput) String() string {
  3313. return awsutil.Prettify(s)
  3314. }
  3315. // GoString returns the string representation
  3316. func (s GetSendStatisticsInput) GoString() string {
  3317. return s.String()
  3318. }
  3319. // Represents a list of data points. This list contains aggregated data from
  3320. // the previous two weeks of your sending activity with Amazon SES.
  3321. type GetSendStatisticsOutput struct {
  3322. _ struct{} `type:"structure"`
  3323. // A list of data points, each of which represents 15 minutes of activity.
  3324. SendDataPoints []*SendDataPoint `type:"list"`
  3325. }
  3326. // String returns the string representation
  3327. func (s GetSendStatisticsOutput) String() string {
  3328. return awsutil.Prettify(s)
  3329. }
  3330. // GoString returns the string representation
  3331. func (s GetSendStatisticsOutput) GoString() string {
  3332. return s.String()
  3333. }
  3334. // Represents the DKIM attributes of a verified email address or a domain.
  3335. type IdentityDkimAttributes struct {
  3336. _ struct{} `type:"structure"`
  3337. // True if DKIM signing is enabled for email sent from the identity; false otherwise.
  3338. DkimEnabled *bool `type:"boolean" required:"true"`
  3339. // A set of character strings that represent the domain's identity. Using these
  3340. // tokens, you will need to create DNS CNAME records that point to DKIM public
  3341. // keys hosted by Amazon SES. Amazon Web Services will eventually detect that
  3342. // you have updated your DNS records; this detection process may take up to
  3343. // 72 hours. Upon successful detection, Amazon SES will be able to DKIM-sign
  3344. // email originating from that domain. (This only applies to domain identities,
  3345. // not email address identities.)
  3346. //
  3347. // For more information about creating DNS records using DKIM tokens, go to
  3348. // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim-dns-records.html).
  3349. DkimTokens []*string `type:"list"`
  3350. // Describes whether Amazon SES has successfully verified the DKIM DNS records
  3351. // (tokens) published in the domain name's DNS. (This only applies to domain
  3352. // identities, not email address identities.)
  3353. DkimVerificationStatus *string `type:"string" required:"true" enum:"VerificationStatus"`
  3354. }
  3355. // String returns the string representation
  3356. func (s IdentityDkimAttributes) String() string {
  3357. return awsutil.Prettify(s)
  3358. }
  3359. // GoString returns the string representation
  3360. func (s IdentityDkimAttributes) GoString() string {
  3361. return s.String()
  3362. }
  3363. // Represents the custom MAIL FROM domain attributes of a verified identity
  3364. // (email address or domain).
  3365. type IdentityMailFromDomainAttributes struct {
  3366. _ struct{} `type:"structure"`
  3367. // The action that Amazon SES takes if it cannot successfully read the required
  3368. // MX record when you send an email. A value of UseDefaultValue indicates that
  3369. // if Amazon SES cannot read the required MX record, it uses amazonses.com (or
  3370. // a subdomain of that) as the MAIL FROM domain. A value of RejectMessage indicates
  3371. // that if Amazon SES cannot read the required MX record, Amazon SES returns
  3372. // a MailFromDomainNotVerified error and does not send the email.
  3373. //
  3374. // The custom MAIL FROM setup states that result in this behavior are Pending,
  3375. // Failed, and TemporaryFailure.
  3376. BehaviorOnMXFailure *string `type:"string" required:"true" enum:"BehaviorOnMXFailure"`
  3377. // The custom MAIL FROM domain that the identity is configured to use.
  3378. MailFromDomain *string `type:"string" required:"true"`
  3379. // The state that indicates whether Amazon SES has successfully read the MX
  3380. // record required for custom MAIL FROM domain setup. If the state is Success,
  3381. // Amazon SES uses the specified custom MAIL FROM domain when the verified identity
  3382. // sends an email. All other states indicate that Amazon SES takes the action
  3383. // described by BehaviorOnMXFailure.
  3384. MailFromDomainStatus *string `type:"string" required:"true" enum:"CustomMailFromStatus"`
  3385. }
  3386. // String returns the string representation
  3387. func (s IdentityMailFromDomainAttributes) String() string {
  3388. return awsutil.Prettify(s)
  3389. }
  3390. // GoString returns the string representation
  3391. func (s IdentityMailFromDomainAttributes) GoString() string {
  3392. return s.String()
  3393. }
  3394. // Represents the notification attributes of an identity, including whether
  3395. // an identity has Amazon Simple Notification Service (Amazon SNS) topics set
  3396. // for bounce, complaint, and/or delivery notifications, and whether feedback
  3397. // forwarding is enabled for bounce and complaint notifications.
  3398. type IdentityNotificationAttributes struct {
  3399. _ struct{} `type:"structure"`
  3400. // The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will
  3401. // publish bounce notifications.
  3402. BounceTopic *string `type:"string" required:"true"`
  3403. // The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will
  3404. // publish complaint notifications.
  3405. ComplaintTopic *string `type:"string" required:"true"`
  3406. // The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will
  3407. // publish delivery notifications.
  3408. DeliveryTopic *string `type:"string" required:"true"`
  3409. // Describes whether Amazon SES will forward bounce and complaint notifications
  3410. // as email. true indicates that Amazon SES will forward bounce and complaint
  3411. // notifications as email, while false indicates that bounce and complaint notifications
  3412. // will be published only to the specified bounce and complaint Amazon SNS topics.
  3413. ForwardingEnabled *bool `type:"boolean" required:"true"`
  3414. // Describes whether Amazon SES includes the original email headers in Amazon
  3415. // SNS notifications of type Bounce. A value of true specifies that Amazon SES
  3416. // will include headers in bounce notifications, and a value of false specifies
  3417. // that Amazon SES will not include headers in bounce notifications.
  3418. HeadersInBounceNotificationsEnabled *bool `type:"boolean"`
  3419. // Describes whether Amazon SES includes the original email headers in Amazon
  3420. // SNS notifications of type Complaint. A value of true specifies that Amazon
  3421. // SES will include headers in complaint notifications, and a value of false
  3422. // specifies that Amazon SES will not include headers in complaint notifications.
  3423. HeadersInComplaintNotificationsEnabled *bool `type:"boolean"`
  3424. // Describes whether Amazon SES includes the original email headers in Amazon
  3425. // SNS notifications of type Delivery. A value of true specifies that Amazon
  3426. // SES will include headers in delivery notifications, and a value of false
  3427. // specifies that Amazon SES will not include headers in delivery notifications.
  3428. HeadersInDeliveryNotificationsEnabled *bool `type:"boolean"`
  3429. }
  3430. // String returns the string representation
  3431. func (s IdentityNotificationAttributes) String() string {
  3432. return awsutil.Prettify(s)
  3433. }
  3434. // GoString returns the string representation
  3435. func (s IdentityNotificationAttributes) GoString() string {
  3436. return s.String()
  3437. }
  3438. // Represents the verification attributes of a single identity.
  3439. type IdentityVerificationAttributes struct {
  3440. _ struct{} `type:"structure"`
  3441. // The verification status of the identity: "Pending", "Success", "Failed",
  3442. // or "TemporaryFailure".
  3443. VerificationStatus *string `type:"string" required:"true" enum:"VerificationStatus"`
  3444. // The verification token for a domain identity. Null for email address identities.
  3445. VerificationToken *string `type:"string"`
  3446. }
  3447. // String returns the string representation
  3448. func (s IdentityVerificationAttributes) String() string {
  3449. return awsutil.Prettify(s)
  3450. }
  3451. // GoString returns the string representation
  3452. func (s IdentityVerificationAttributes) GoString() string {
  3453. return s.String()
  3454. }
  3455. // When included in a receipt rule, this action calls an AWS Lambda function
  3456. // and, optionally, publishes a notification to Amazon Simple Notification Service
  3457. // (Amazon SNS).
  3458. //
  3459. // To enable Amazon SES to call your AWS Lambda function or to publish to an
  3460. // Amazon SNS topic of another account, Amazon SES must have permission to access
  3461. // those resources. For information about giving permissions, see the Amazon
  3462. // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html).
  3463. //
  3464. // For information about using AWS Lambda actions in receipt rules, see the
  3465. // Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-action-lambda.html).
  3466. type LambdaAction struct {
  3467. _ struct{} `type:"structure"`
  3468. // The Amazon Resource Name (ARN) of the AWS Lambda function. An example of
  3469. // an AWS Lambda function ARN is arn:aws:lambda:us-west-2:account-id:function:MyFunction.
  3470. // For more information about AWS Lambda, see the AWS Lambda Developer Guide
  3471. // (http://docs.aws.amazon.com/lambda/latest/dg/welcome.html).
  3472. FunctionArn *string `type:"string" required:"true"`
  3473. // The invocation type of the AWS Lambda function. An invocation type of RequestResponse
  3474. // means that the execution of the function will immediately result in a response,
  3475. // and a value of Event means that the function will be invoked asynchronously.
  3476. // The default value is Event. For information about AWS Lambda invocation types,
  3477. // see the AWS Lambda Developer Guide (http://docs.aws.amazon.com/lambda/latest/dg/API_Invoke.html).
  3478. //
  3479. // There is a 30-second timeout on RequestResponse invocations. You should
  3480. // use Event invocation in most cases. Use RequestResponse only when you want
  3481. // to make a mail flow decision, such as whether to stop the receipt rule or
  3482. // the receipt rule set.
  3483. InvocationType *string `type:"string" enum:"InvocationType"`
  3484. // The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the
  3485. // Lambda action is taken. An example of an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic.
  3486. // For more information about Amazon SNS topics, see the Amazon SNS Developer
  3487. // Guide (http://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html).
  3488. TopicArn *string `type:"string"`
  3489. }
  3490. // String returns the string representation
  3491. func (s LambdaAction) String() string {
  3492. return awsutil.Prettify(s)
  3493. }
  3494. // GoString returns the string representation
  3495. func (s LambdaAction) GoString() string {
  3496. return s.String()
  3497. }
  3498. // Validate inspects the fields of the type to determine if they are valid.
  3499. func (s *LambdaAction) Validate() error {
  3500. invalidParams := request.ErrInvalidParams{Context: "LambdaAction"}
  3501. if s.FunctionArn == nil {
  3502. invalidParams.Add(request.NewErrParamRequired("FunctionArn"))
  3503. }
  3504. if invalidParams.Len() > 0 {
  3505. return invalidParams
  3506. }
  3507. return nil
  3508. }
  3509. // Represents a request to return a list of all identities (email addresses
  3510. // and domains) that you have attempted to verify under your AWS account, regardless
  3511. // of verification status.
  3512. type ListIdentitiesInput struct {
  3513. _ struct{} `type:"structure"`
  3514. // The type of the identities to list. Possible values are "EmailAddress" and
  3515. // "Domain". If this parameter is omitted, then all identities will be listed.
  3516. IdentityType *string `type:"string" enum:"IdentityType"`
  3517. // The maximum number of identities per page. Possible values are 1-1000 inclusive.
  3518. MaxItems *int64 `type:"integer"`
  3519. // The token to use for pagination.
  3520. NextToken *string `type:"string"`
  3521. }
  3522. // String returns the string representation
  3523. func (s ListIdentitiesInput) String() string {
  3524. return awsutil.Prettify(s)
  3525. }
  3526. // GoString returns the string representation
  3527. func (s ListIdentitiesInput) GoString() string {
  3528. return s.String()
  3529. }
  3530. // A list of all identities that you have attempted to verify under your AWS
  3531. // account, regardless of verification status.
  3532. type ListIdentitiesOutput struct {
  3533. _ struct{} `type:"structure"`
  3534. // A list of identities.
  3535. Identities []*string `type:"list" required:"true"`
  3536. // The token used for pagination.
  3537. NextToken *string `type:"string"`
  3538. }
  3539. // String returns the string representation
  3540. func (s ListIdentitiesOutput) String() string {
  3541. return awsutil.Prettify(s)
  3542. }
  3543. // GoString returns the string representation
  3544. func (s ListIdentitiesOutput) GoString() string {
  3545. return s.String()
  3546. }
  3547. // Represents a request to return a list of sending authorization policies that
  3548. // are attached to an identity. Sending authorization is an Amazon SES feature
  3549. // that enables you to authorize other senders to use your identities. For information,
  3550. // see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html).
  3551. type ListIdentityPoliciesInput struct {
  3552. _ struct{} `type:"structure"`
  3553. // The identity that is associated with the policy for which the policies will
  3554. // be listed. You can specify an identity by using its name or by using its
  3555. // Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.
  3556. //
  3557. // To successfully call this API, you must own the identity.
  3558. Identity *string `type:"string" required:"true"`
  3559. }
  3560. // String returns the string representation
  3561. func (s ListIdentityPoliciesInput) String() string {
  3562. return awsutil.Prettify(s)
  3563. }
  3564. // GoString returns the string representation
  3565. func (s ListIdentityPoliciesInput) GoString() string {
  3566. return s.String()
  3567. }
  3568. // Validate inspects the fields of the type to determine if they are valid.
  3569. func (s *ListIdentityPoliciesInput) Validate() error {
  3570. invalidParams := request.ErrInvalidParams{Context: "ListIdentityPoliciesInput"}
  3571. if s.Identity == nil {
  3572. invalidParams.Add(request.NewErrParamRequired("Identity"))
  3573. }
  3574. if invalidParams.Len() > 0 {
  3575. return invalidParams
  3576. }
  3577. return nil
  3578. }
  3579. // A list of names of sending authorization policies that apply to an identity.
  3580. type ListIdentityPoliciesOutput struct {
  3581. _ struct{} `type:"structure"`
  3582. // A list of names of policies that apply to the specified identity.
  3583. PolicyNames []*string `type:"list" required:"true"`
  3584. }
  3585. // String returns the string representation
  3586. func (s ListIdentityPoliciesOutput) String() string {
  3587. return awsutil.Prettify(s)
  3588. }
  3589. // GoString returns the string representation
  3590. func (s ListIdentityPoliciesOutput) GoString() string {
  3591. return s.String()
  3592. }
  3593. // : Represents a request to list the IP address filters that exist under your
  3594. // AWS account. You use IP address filters when you receive email with Amazon
  3595. // SES. For more information, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html).
  3596. type ListReceiptFiltersInput struct {
  3597. _ struct{} `type:"structure"`
  3598. }
  3599. // String returns the string representation
  3600. func (s ListReceiptFiltersInput) String() string {
  3601. return awsutil.Prettify(s)
  3602. }
  3603. // GoString returns the string representation
  3604. func (s ListReceiptFiltersInput) GoString() string {
  3605. return s.String()
  3606. }
  3607. // A list of IP address filters that exist under your AWS account.
  3608. type ListReceiptFiltersOutput struct {
  3609. _ struct{} `type:"structure"`
  3610. // A list of IP address filter data structures, which each consist of a name,
  3611. // an IP address range, and whether to allow or block mail from it.
  3612. Filters []*ReceiptFilter `type:"list"`
  3613. }
  3614. // String returns the string representation
  3615. func (s ListReceiptFiltersOutput) String() string {
  3616. return awsutil.Prettify(s)
  3617. }
  3618. // GoString returns the string representation
  3619. func (s ListReceiptFiltersOutput) GoString() string {
  3620. return s.String()
  3621. }
  3622. // Represents a request to list the receipt rule sets that exist under your
  3623. // AWS account. You use receipt rule sets to receive email with Amazon SES.
  3624. // For more information, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html).
  3625. type ListReceiptRuleSetsInput struct {
  3626. _ struct{} `type:"structure"`
  3627. // A token returned from a previous call to ListReceiptRuleSets to indicate
  3628. // the position in the receipt rule set list.
  3629. NextToken *string `type:"string"`
  3630. }
  3631. // String returns the string representation
  3632. func (s ListReceiptRuleSetsInput) String() string {
  3633. return awsutil.Prettify(s)
  3634. }
  3635. // GoString returns the string representation
  3636. func (s ListReceiptRuleSetsInput) GoString() string {
  3637. return s.String()
  3638. }
  3639. // A list of receipt rule sets that exist under your AWS account.
  3640. type ListReceiptRuleSetsOutput struct {
  3641. _ struct{} `type:"structure"`
  3642. // A token indicating that there are additional receipt rule sets available
  3643. // to be listed. Pass this token to successive calls of ListReceiptRuleSets
  3644. // to retrieve up to 100 receipt rule sets at a time.
  3645. NextToken *string `type:"string"`
  3646. // The metadata for the currently active receipt rule set. The metadata consists
  3647. // of the rule set name and the timestamp of when the rule set was created.
  3648. RuleSets []*ReceiptRuleSetMetadata `type:"list"`
  3649. }
  3650. // String returns the string representation
  3651. func (s ListReceiptRuleSetsOutput) String() string {
  3652. return awsutil.Prettify(s)
  3653. }
  3654. // GoString returns the string representation
  3655. func (s ListReceiptRuleSetsOutput) GoString() string {
  3656. return s.String()
  3657. }
  3658. type ListVerifiedEmailAddressesInput struct {
  3659. _ struct{} `type:"structure"`
  3660. }
  3661. // String returns the string representation
  3662. func (s ListVerifiedEmailAddressesInput) String() string {
  3663. return awsutil.Prettify(s)
  3664. }
  3665. // GoString returns the string representation
  3666. func (s ListVerifiedEmailAddressesInput) GoString() string {
  3667. return s.String()
  3668. }
  3669. // A list of email addresses that you have verified with Amazon SES under your
  3670. // AWS account.
  3671. type ListVerifiedEmailAddressesOutput struct {
  3672. _ struct{} `type:"structure"`
  3673. // A list of email addresses that have been verified.
  3674. VerifiedEmailAddresses []*string `type:"list"`
  3675. }
  3676. // String returns the string representation
  3677. func (s ListVerifiedEmailAddressesOutput) String() string {
  3678. return awsutil.Prettify(s)
  3679. }
  3680. // GoString returns the string representation
  3681. func (s ListVerifiedEmailAddressesOutput) GoString() string {
  3682. return s.String()
  3683. }
  3684. // Represents the message to be sent, composed of a subject and a body.
  3685. type Message struct {
  3686. _ struct{} `type:"structure"`
  3687. // The message body.
  3688. Body *Body `type:"structure" required:"true"`
  3689. // The subject of the message: A short summary of the content, which will appear
  3690. // in the recipient's inbox.
  3691. Subject *Content `type:"structure" required:"true"`
  3692. }
  3693. // String returns the string representation
  3694. func (s Message) String() string {
  3695. return awsutil.Prettify(s)
  3696. }
  3697. // GoString returns the string representation
  3698. func (s Message) GoString() string {
  3699. return s.String()
  3700. }
  3701. // Validate inspects the fields of the type to determine if they are valid.
  3702. func (s *Message) Validate() error {
  3703. invalidParams := request.ErrInvalidParams{Context: "Message"}
  3704. if s.Body == nil {
  3705. invalidParams.Add(request.NewErrParamRequired("Body"))
  3706. }
  3707. if s.Subject == nil {
  3708. invalidParams.Add(request.NewErrParamRequired("Subject"))
  3709. }
  3710. if s.Body != nil {
  3711. if err := s.Body.Validate(); err != nil {
  3712. invalidParams.AddNested("Body", err.(request.ErrInvalidParams))
  3713. }
  3714. }
  3715. if s.Subject != nil {
  3716. if err := s.Subject.Validate(); err != nil {
  3717. invalidParams.AddNested("Subject", err.(request.ErrInvalidParams))
  3718. }
  3719. }
  3720. if invalidParams.Len() > 0 {
  3721. return invalidParams
  3722. }
  3723. return nil
  3724. }
  3725. // Message-related information to include in the Delivery Status Notification
  3726. // (DSN) when an email that Amazon SES receives on your behalf bounces.
  3727. //
  3728. // For information about receiving email through Amazon SES, see the Amazon
  3729. // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email.html).
  3730. type MessageDsn struct {
  3731. _ struct{} `type:"structure"`
  3732. // When the message was received by the reporting mail transfer agent (MTA),
  3733. // in RFC 822 (https://www.ietf.org/rfc/rfc0822.txt) date-time format.
  3734. ArrivalDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  3735. // Additional X-headers to include in the DSN.
  3736. ExtensionFields []*ExtensionField `type:"list"`
  3737. // The reporting MTA that attempted to deliver the message, formatted as specified
  3738. // in RFC 3464 (https://tools.ietf.org/html/rfc3464) (mta-name-type; mta-name).
  3739. // The default value is dns; inbound-smtp.[region].amazonaws.com.
  3740. ReportingMta *string `type:"string" required:"true"`
  3741. }
  3742. // String returns the string representation
  3743. func (s MessageDsn) String() string {
  3744. return awsutil.Prettify(s)
  3745. }
  3746. // GoString returns the string representation
  3747. func (s MessageDsn) GoString() string {
  3748. return s.String()
  3749. }
  3750. // Validate inspects the fields of the type to determine if they are valid.
  3751. func (s *MessageDsn) Validate() error {
  3752. invalidParams := request.ErrInvalidParams{Context: "MessageDsn"}
  3753. if s.ReportingMta == nil {
  3754. invalidParams.Add(request.NewErrParamRequired("ReportingMta"))
  3755. }
  3756. if s.ExtensionFields != nil {
  3757. for i, v := range s.ExtensionFields {
  3758. if v == nil {
  3759. continue
  3760. }
  3761. if err := v.Validate(); err != nil {
  3762. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ExtensionFields", i), err.(request.ErrInvalidParams))
  3763. }
  3764. }
  3765. }
  3766. if invalidParams.Len() > 0 {
  3767. return invalidParams
  3768. }
  3769. return nil
  3770. }
  3771. // Represents a request to add or update a sending authorization policy for
  3772. // an identity. Sending authorization is an Amazon SES feature that enables
  3773. // you to authorize other senders to use your identities. For information, see
  3774. // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html).
  3775. type PutIdentityPolicyInput struct {
  3776. _ struct{} `type:"structure"`
  3777. // The identity to which the policy will apply. You can specify an identity
  3778. // by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com,
  3779. // example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.
  3780. //
  3781. // To successfully call this API, you must own the identity.
  3782. Identity *string `type:"string" required:"true"`
  3783. // The text of the policy in JSON format. The policy cannot exceed 4 KB.
  3784. //
  3785. // For information about the syntax of sending authorization policies, see
  3786. // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-policies.html).
  3787. Policy *string `min:"1" type:"string" required:"true"`
  3788. // The name of the policy.
  3789. //
  3790. // The policy name cannot exceed 64 characters and can only include alphanumeric
  3791. // characters, dashes, and underscores.
  3792. PolicyName *string `min:"1" type:"string" required:"true"`
  3793. }
  3794. // String returns the string representation
  3795. func (s PutIdentityPolicyInput) String() string {
  3796. return awsutil.Prettify(s)
  3797. }
  3798. // GoString returns the string representation
  3799. func (s PutIdentityPolicyInput) GoString() string {
  3800. return s.String()
  3801. }
  3802. // Validate inspects the fields of the type to determine if they are valid.
  3803. func (s *PutIdentityPolicyInput) Validate() error {
  3804. invalidParams := request.ErrInvalidParams{Context: "PutIdentityPolicyInput"}
  3805. if s.Identity == nil {
  3806. invalidParams.Add(request.NewErrParamRequired("Identity"))
  3807. }
  3808. if s.Policy == nil {
  3809. invalidParams.Add(request.NewErrParamRequired("Policy"))
  3810. }
  3811. if s.Policy != nil && len(*s.Policy) < 1 {
  3812. invalidParams.Add(request.NewErrParamMinLen("Policy", 1))
  3813. }
  3814. if s.PolicyName == nil {
  3815. invalidParams.Add(request.NewErrParamRequired("PolicyName"))
  3816. }
  3817. if s.PolicyName != nil && len(*s.PolicyName) < 1 {
  3818. invalidParams.Add(request.NewErrParamMinLen("PolicyName", 1))
  3819. }
  3820. if invalidParams.Len() > 0 {
  3821. return invalidParams
  3822. }
  3823. return nil
  3824. }
  3825. // An empty element returned on a successful request.
  3826. type PutIdentityPolicyOutput struct {
  3827. _ struct{} `type:"structure"`
  3828. }
  3829. // String returns the string representation
  3830. func (s PutIdentityPolicyOutput) String() string {
  3831. return awsutil.Prettify(s)
  3832. }
  3833. // GoString returns the string representation
  3834. func (s PutIdentityPolicyOutput) GoString() string {
  3835. return s.String()
  3836. }
  3837. // Represents the raw data of the message.
  3838. type RawMessage struct {
  3839. _ struct{} `type:"structure"`
  3840. // The raw data of the message. The client must ensure that the message format
  3841. // complies with Internet email standards regarding email header fields, MIME
  3842. // types, MIME encoding, and base64 encoding.
  3843. //
  3844. // The To:, CC:, and BCC: headers in the raw message can contain a group list.
  3845. //
  3846. // If you are using SendRawEmail with sending authorization, you can include
  3847. // X-headers in the raw message to specify the "Source," "From," and "Return-Path"
  3848. // addresses. For more information, see the documentation for SendRawEmail.
  3849. //
  3850. // Do not include these X-headers in the DKIM signature, because they are
  3851. // removed by Amazon SES before sending the email.
  3852. //
  3853. // For more information, go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-raw.html).
  3854. //
  3855. // Data is automatically base64 encoded/decoded by the SDK.
  3856. Data []byte `type:"blob" required:"true"`
  3857. }
  3858. // String returns the string representation
  3859. func (s RawMessage) String() string {
  3860. return awsutil.Prettify(s)
  3861. }
  3862. // GoString returns the string representation
  3863. func (s RawMessage) GoString() string {
  3864. return s.String()
  3865. }
  3866. // Validate inspects the fields of the type to determine if they are valid.
  3867. func (s *RawMessage) Validate() error {
  3868. invalidParams := request.ErrInvalidParams{Context: "RawMessage"}
  3869. if s.Data == nil {
  3870. invalidParams.Add(request.NewErrParamRequired("Data"))
  3871. }
  3872. if invalidParams.Len() > 0 {
  3873. return invalidParams
  3874. }
  3875. return nil
  3876. }
  3877. // An action that Amazon SES can take when it receives an email on behalf of
  3878. // one or more email addresses or domains that you own. An instance of this
  3879. // data type can represent only one action.
  3880. //
  3881. // For information about setting up receipt rules, see the Amazon SES Developer
  3882. // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rules.html).
  3883. type ReceiptAction struct {
  3884. _ struct{} `type:"structure"`
  3885. // Adds a header to the received email.
  3886. AddHeaderAction *AddHeaderAction `type:"structure"`
  3887. // Rejects the received email by returning a bounce response to the sender and,
  3888. // optionally, publishes a notification to Amazon Simple Notification Service
  3889. // (Amazon SNS).
  3890. BounceAction *BounceAction `type:"structure"`
  3891. // Calls an AWS Lambda function, and optionally, publishes a notification to
  3892. // Amazon SNS.
  3893. LambdaAction *LambdaAction `type:"structure"`
  3894. // Saves the received message to an Amazon Simple Storage Service (Amazon S3)
  3895. // bucket and, optionally, publishes a notification to Amazon SNS.
  3896. S3Action *S3Action `type:"structure"`
  3897. // Publishes the email content within a notification to Amazon SNS.
  3898. SNSAction *SNSAction `type:"structure"`
  3899. // Terminates the evaluation of the receipt rule set and optionally publishes
  3900. // a notification to Amazon SNS.
  3901. StopAction *StopAction `type:"structure"`
  3902. // Calls Amazon WorkMail and, optionally, publishes a notification to Amazon
  3903. // SNS.
  3904. WorkmailAction *WorkmailAction `type:"structure"`
  3905. }
  3906. // String returns the string representation
  3907. func (s ReceiptAction) String() string {
  3908. return awsutil.Prettify(s)
  3909. }
  3910. // GoString returns the string representation
  3911. func (s ReceiptAction) GoString() string {
  3912. return s.String()
  3913. }
  3914. // Validate inspects the fields of the type to determine if they are valid.
  3915. func (s *ReceiptAction) Validate() error {
  3916. invalidParams := request.ErrInvalidParams{Context: "ReceiptAction"}
  3917. if s.AddHeaderAction != nil {
  3918. if err := s.AddHeaderAction.Validate(); err != nil {
  3919. invalidParams.AddNested("AddHeaderAction", err.(request.ErrInvalidParams))
  3920. }
  3921. }
  3922. if s.BounceAction != nil {
  3923. if err := s.BounceAction.Validate(); err != nil {
  3924. invalidParams.AddNested("BounceAction", err.(request.ErrInvalidParams))
  3925. }
  3926. }
  3927. if s.LambdaAction != nil {
  3928. if err := s.LambdaAction.Validate(); err != nil {
  3929. invalidParams.AddNested("LambdaAction", err.(request.ErrInvalidParams))
  3930. }
  3931. }
  3932. if s.S3Action != nil {
  3933. if err := s.S3Action.Validate(); err != nil {
  3934. invalidParams.AddNested("S3Action", err.(request.ErrInvalidParams))
  3935. }
  3936. }
  3937. if s.SNSAction != nil {
  3938. if err := s.SNSAction.Validate(); err != nil {
  3939. invalidParams.AddNested("SNSAction", err.(request.ErrInvalidParams))
  3940. }
  3941. }
  3942. if s.StopAction != nil {
  3943. if err := s.StopAction.Validate(); err != nil {
  3944. invalidParams.AddNested("StopAction", err.(request.ErrInvalidParams))
  3945. }
  3946. }
  3947. if s.WorkmailAction != nil {
  3948. if err := s.WorkmailAction.Validate(); err != nil {
  3949. invalidParams.AddNested("WorkmailAction", err.(request.ErrInvalidParams))
  3950. }
  3951. }
  3952. if invalidParams.Len() > 0 {
  3953. return invalidParams
  3954. }
  3955. return nil
  3956. }
  3957. // A receipt IP address filter enables you to specify whether to accept or reject
  3958. // mail originating from an IP address or range of IP addresses.
  3959. //
  3960. // For information about setting up IP address filters, see the Amazon SES
  3961. // Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-ip-filters.html).
  3962. type ReceiptFilter struct {
  3963. _ struct{} `type:"structure"`
  3964. // A structure that provides the IP addresses to block or allow, and whether
  3965. // to block or allow incoming mail from them.
  3966. IpFilter *ReceiptIpFilter `type:"structure" required:"true"`
  3967. // The name of the IP address filter. The name must:
  3968. //
  3969. // Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores
  3970. // (_), or dashes (-).
  3971. //
  3972. // Start and end with a letter or number.
  3973. //
  3974. // Contain less than 64 characters.
  3975. Name *string `type:"string" required:"true"`
  3976. }
  3977. // String returns the string representation
  3978. func (s ReceiptFilter) String() string {
  3979. return awsutil.Prettify(s)
  3980. }
  3981. // GoString returns the string representation
  3982. func (s ReceiptFilter) GoString() string {
  3983. return s.String()
  3984. }
  3985. // Validate inspects the fields of the type to determine if they are valid.
  3986. func (s *ReceiptFilter) Validate() error {
  3987. invalidParams := request.ErrInvalidParams{Context: "ReceiptFilter"}
  3988. if s.IpFilter == nil {
  3989. invalidParams.Add(request.NewErrParamRequired("IpFilter"))
  3990. }
  3991. if s.Name == nil {
  3992. invalidParams.Add(request.NewErrParamRequired("Name"))
  3993. }
  3994. if s.IpFilter != nil {
  3995. if err := s.IpFilter.Validate(); err != nil {
  3996. invalidParams.AddNested("IpFilter", err.(request.ErrInvalidParams))
  3997. }
  3998. }
  3999. if invalidParams.Len() > 0 {
  4000. return invalidParams
  4001. }
  4002. return nil
  4003. }
  4004. // A receipt IP address filter enables you to specify whether to accept or reject
  4005. // mail originating from an IP address or range of IP addresses.
  4006. //
  4007. // For information about setting up IP address filters, see the Amazon SES
  4008. // Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-ip-filters.html).
  4009. type ReceiptIpFilter struct {
  4010. _ struct{} `type:"structure"`
  4011. // A single IP address or a range of IP addresses that you want to block or
  4012. // allow, specified in Classless Inter-Domain Routing (CIDR) notation. An example
  4013. // of a single email address is 10.0.0.1. An example of a range of IP addresses
  4014. // is 10.0.0.1/24. For more information about CIDR notation, see RFC 2317 (https://tools.ietf.org/html/rfc2317).
  4015. Cidr *string `type:"string" required:"true"`
  4016. // Indicates whether to block or allow incoming mail from the specified IP addresses.
  4017. Policy *string `type:"string" required:"true" enum:"ReceiptFilterPolicy"`
  4018. }
  4019. // String returns the string representation
  4020. func (s ReceiptIpFilter) String() string {
  4021. return awsutil.Prettify(s)
  4022. }
  4023. // GoString returns the string representation
  4024. func (s ReceiptIpFilter) GoString() string {
  4025. return s.String()
  4026. }
  4027. // Validate inspects the fields of the type to determine if they are valid.
  4028. func (s *ReceiptIpFilter) Validate() error {
  4029. invalidParams := request.ErrInvalidParams{Context: "ReceiptIpFilter"}
  4030. if s.Cidr == nil {
  4031. invalidParams.Add(request.NewErrParamRequired("Cidr"))
  4032. }
  4033. if s.Policy == nil {
  4034. invalidParams.Add(request.NewErrParamRequired("Policy"))
  4035. }
  4036. if invalidParams.Len() > 0 {
  4037. return invalidParams
  4038. }
  4039. return nil
  4040. }
  4041. // Receipt rules enable you to specify which actions Amazon SES should take
  4042. // when it receives mail on behalf of one or more email addresses or domains
  4043. // that you own.
  4044. //
  4045. // Each receipt rule defines a set of email addresses or domains to which it
  4046. // applies. If the email addresses or domains match at least one recipient address
  4047. // of the message, Amazon SES executes all of the receipt rule's actions on
  4048. // the message.
  4049. //
  4050. // For information about setting up receipt rules, see the Amazon SES Developer
  4051. // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rules.html).
  4052. type ReceiptRule struct {
  4053. _ struct{} `type:"structure"`
  4054. // An ordered list of actions to perform on messages that match at least one
  4055. // of the recipient email addresses or domains specified in the receipt rule.
  4056. Actions []*ReceiptAction `type:"list"`
  4057. // If true, the receipt rule is active. The default value is false.
  4058. Enabled *bool `type:"boolean"`
  4059. // The name of the receipt rule. The name must:
  4060. //
  4061. // Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores
  4062. // (_), or dashes (-).
  4063. //
  4064. // Start and end with a letter or number.
  4065. //
  4066. // Contain less than 64 characters.
  4067. Name *string `type:"string" required:"true"`
  4068. // The recipient domains and email addresses to which the receipt rule applies.
  4069. // If this field is not specified, this rule will match all recipients under
  4070. // all verified domains.
  4071. Recipients []*string `type:"list"`
  4072. // If true, then messages to which this receipt rule applies are scanned for
  4073. // spam and viruses. The default value is false.
  4074. ScanEnabled *bool `type:"boolean"`
  4075. // Specifies whether Amazon SES should require that incoming email is delivered
  4076. // over a connection encrypted with Transport Layer Security (TLS). If this
  4077. // parameter is set to Require, Amazon SES will bounce emails that are not received
  4078. // over TLS. The default is Optional.
  4079. TlsPolicy *string `type:"string" enum:"TlsPolicy"`
  4080. }
  4081. // String returns the string representation
  4082. func (s ReceiptRule) String() string {
  4083. return awsutil.Prettify(s)
  4084. }
  4085. // GoString returns the string representation
  4086. func (s ReceiptRule) GoString() string {
  4087. return s.String()
  4088. }
  4089. // Validate inspects the fields of the type to determine if they are valid.
  4090. func (s *ReceiptRule) Validate() error {
  4091. invalidParams := request.ErrInvalidParams{Context: "ReceiptRule"}
  4092. if s.Name == nil {
  4093. invalidParams.Add(request.NewErrParamRequired("Name"))
  4094. }
  4095. if s.Actions != nil {
  4096. for i, v := range s.Actions {
  4097. if v == nil {
  4098. continue
  4099. }
  4100. if err := v.Validate(); err != nil {
  4101. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Actions", i), err.(request.ErrInvalidParams))
  4102. }
  4103. }
  4104. }
  4105. if invalidParams.Len() > 0 {
  4106. return invalidParams
  4107. }
  4108. return nil
  4109. }
  4110. // Information about a receipt rule set.
  4111. //
  4112. // A receipt rule set is a collection of rules that specify what Amazon SES
  4113. // should do with mail it receives on behalf of your account's verified domains.
  4114. //
  4115. // For information about setting up receipt rule sets, see the Amazon SES Developer
  4116. // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rule-set.html).
  4117. type ReceiptRuleSetMetadata struct {
  4118. _ struct{} `type:"structure"`
  4119. // The date and time the receipt rule set was created.
  4120. CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  4121. // The name of the receipt rule set. The name must:
  4122. //
  4123. // Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores
  4124. // (_), or dashes (-).
  4125. //
  4126. // Start and end with a letter or number.
  4127. //
  4128. // Contain less than 64 characters.
  4129. Name *string `type:"string"`
  4130. }
  4131. // String returns the string representation
  4132. func (s ReceiptRuleSetMetadata) String() string {
  4133. return awsutil.Prettify(s)
  4134. }
  4135. // GoString returns the string representation
  4136. func (s ReceiptRuleSetMetadata) GoString() string {
  4137. return s.String()
  4138. }
  4139. // Recipient-related information to include in the Delivery Status Notification
  4140. // (DSN) when an email that Amazon SES receives on your behalf bounces.
  4141. //
  4142. // For information about receiving email through Amazon SES, see the Amazon
  4143. // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email.html).
  4144. type RecipientDsnFields struct {
  4145. _ struct{} `type:"structure"`
  4146. // The action performed by the reporting mail transfer agent (MTA) as a result
  4147. // of its attempt to deliver the message to the recipient address. This is required
  4148. // by RFC 3464 (https://tools.ietf.org/html/rfc3464).
  4149. Action *string `type:"string" required:"true" enum:"DsnAction"`
  4150. // An extended explanation of what went wrong; this is usually an SMTP response.
  4151. // See RFC 3463 (https://tools.ietf.org/html/rfc3463) for the correct formatting
  4152. // of this parameter.
  4153. DiagnosticCode *string `type:"string"`
  4154. // Additional X-headers to include in the DSN.
  4155. ExtensionFields []*ExtensionField `type:"list"`
  4156. // The email address to which the message was ultimately delivered. This corresponds
  4157. // to the Final-Recipient in the DSN. If not specified, FinalRecipient will
  4158. // be set to the Recipient specified in the BouncedRecipientInfo structure.
  4159. // Either FinalRecipient or the recipient in BouncedRecipientInfo must be a
  4160. // recipient of the original bounced message.
  4161. //
  4162. // Do not prepend the FinalRecipient email address with rfc 822;, as described
  4163. // in RFC 3798 (https://tools.ietf.org/html/rfc3798).
  4164. FinalRecipient *string `type:"string"`
  4165. // The time the final delivery attempt was made, in RFC 822 (https://www.ietf.org/rfc/rfc0822.txt)
  4166. // date-time format.
  4167. LastAttemptDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  4168. // The MTA to which the remote MTA attempted to deliver the message, formatted
  4169. // as specified in RFC 3464 (https://tools.ietf.org/html/rfc3464) (mta-name-type;
  4170. // mta-name). This parameter typically applies only to propagating synchronous
  4171. // bounces.
  4172. RemoteMta *string `type:"string"`
  4173. // The status code that indicates what went wrong. This is required by RFC 3464
  4174. // (https://tools.ietf.org/html/rfc3464).
  4175. Status *string `type:"string" required:"true"`
  4176. }
  4177. // String returns the string representation
  4178. func (s RecipientDsnFields) String() string {
  4179. return awsutil.Prettify(s)
  4180. }
  4181. // GoString returns the string representation
  4182. func (s RecipientDsnFields) GoString() string {
  4183. return s.String()
  4184. }
  4185. // Validate inspects the fields of the type to determine if they are valid.
  4186. func (s *RecipientDsnFields) Validate() error {
  4187. invalidParams := request.ErrInvalidParams{Context: "RecipientDsnFields"}
  4188. if s.Action == nil {
  4189. invalidParams.Add(request.NewErrParamRequired("Action"))
  4190. }
  4191. if s.Status == nil {
  4192. invalidParams.Add(request.NewErrParamRequired("Status"))
  4193. }
  4194. if s.ExtensionFields != nil {
  4195. for i, v := range s.ExtensionFields {
  4196. if v == nil {
  4197. continue
  4198. }
  4199. if err := v.Validate(); err != nil {
  4200. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ExtensionFields", i), err.(request.ErrInvalidParams))
  4201. }
  4202. }
  4203. }
  4204. if invalidParams.Len() > 0 {
  4205. return invalidParams
  4206. }
  4207. return nil
  4208. }
  4209. // Represents a request to reorder the receipt rules within a receipt rule set.
  4210. // You use receipt rule sets to receive email with Amazon SES. For more information,
  4211. // see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html).
  4212. type ReorderReceiptRuleSetInput struct {
  4213. _ struct{} `type:"structure"`
  4214. // A list of the specified receipt rule set's receipt rules in the order that
  4215. // you want to put them.
  4216. RuleNames []*string `type:"list" required:"true"`
  4217. // The name of the receipt rule set to reorder.
  4218. RuleSetName *string `type:"string" required:"true"`
  4219. }
  4220. // String returns the string representation
  4221. func (s ReorderReceiptRuleSetInput) String() string {
  4222. return awsutil.Prettify(s)
  4223. }
  4224. // GoString returns the string representation
  4225. func (s ReorderReceiptRuleSetInput) GoString() string {
  4226. return s.String()
  4227. }
  4228. // Validate inspects the fields of the type to determine if they are valid.
  4229. func (s *ReorderReceiptRuleSetInput) Validate() error {
  4230. invalidParams := request.ErrInvalidParams{Context: "ReorderReceiptRuleSetInput"}
  4231. if s.RuleNames == nil {
  4232. invalidParams.Add(request.NewErrParamRequired("RuleNames"))
  4233. }
  4234. if s.RuleSetName == nil {
  4235. invalidParams.Add(request.NewErrParamRequired("RuleSetName"))
  4236. }
  4237. if invalidParams.Len() > 0 {
  4238. return invalidParams
  4239. }
  4240. return nil
  4241. }
  4242. // An empty element returned on a successful request.
  4243. type ReorderReceiptRuleSetOutput struct {
  4244. _ struct{} `type:"structure"`
  4245. }
  4246. // String returns the string representation
  4247. func (s ReorderReceiptRuleSetOutput) String() string {
  4248. return awsutil.Prettify(s)
  4249. }
  4250. // GoString returns the string representation
  4251. func (s ReorderReceiptRuleSetOutput) GoString() string {
  4252. return s.String()
  4253. }
  4254. // When included in a receipt rule, this action saves the received message to
  4255. // an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes
  4256. // a notification to Amazon Simple Notification Service (Amazon SNS).
  4257. //
  4258. // To enable Amazon SES to write emails to your Amazon S3 bucket, use an AWS
  4259. // KMS key to encrypt your emails, or publish to an Amazon SNS topic of another
  4260. // account, Amazon SES must have permission to access those resources. For information
  4261. // about giving permissions, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html).
  4262. //
  4263. // When you save your emails to an Amazon S3 bucket, the maximum email size
  4264. // (including headers) is 30 MB. Emails larger than that will bounce.
  4265. //
  4266. // For information about specifying Amazon S3 actions in receipt rules, see
  4267. // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-action-s3.html).
  4268. type S3Action struct {
  4269. _ struct{} `type:"structure"`
  4270. // The name of the Amazon S3 bucket to which to save the received email.
  4271. BucketName *string `type:"string" required:"true"`
  4272. // The customer master key that Amazon SES should use to encrypt your emails
  4273. // before saving them to the Amazon S3 bucket. You can use the default master
  4274. // key or a custom master key you created in AWS KMS as follows:
  4275. //
  4276. // To use the default master key, provide an ARN in the form of arn:aws:kms:REGION:ACCOUNT-ID-WITHOUT-HYPHENS:alias/aws/ses.
  4277. // For example, if your AWS account ID is 123456789012 and you want to use the
  4278. // default master key in the US West (Oregon) region, the ARN of the default
  4279. // master key would be arn:aws:kms:us-west-2:123456789012:alias/aws/ses. If
  4280. // you use the default master key, you don't need to perform any extra steps
  4281. // to give Amazon SES permission to use the key.
  4282. //
  4283. // To use a custom master key you created in AWS KMS, provide the ARN of
  4284. // the master key and ensure that you add a statement to your key's policy to
  4285. // give Amazon SES permission to use it. For more information about giving permissions,
  4286. // see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html).
  4287. //
  4288. // For more information about key policies, see the AWS KMS Developer Guide
  4289. // (http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html). If
  4290. // you do not specify a master key, Amazon SES will not encrypt your emails.
  4291. //
  4292. // Your mail is encrypted by Amazon SES using the Amazon S3 encryption client
  4293. // before the mail is submitted to Amazon S3 for storage. It is not encrypted
  4294. // using Amazon S3 server-side encryption. This means that you must use the
  4295. // Amazon S3 encryption client to decrypt the email after retrieving it from
  4296. // Amazon S3, as the service has no access to use your AWS KMS keys for decryption.
  4297. // This encryption client is currently available with the AWS Java SDK (http://aws.amazon.com/sdk-for-java/)
  4298. // and AWS Ruby SDK (http://aws.amazon.com/sdk-for-ruby/) only. For more information
  4299. // about client-side encryption using AWS KMS master keys, see the Amazon S3
  4300. // Developer Guide (http://alpha-docs-aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html).
  4301. KmsKeyArn *string `type:"string"`
  4302. // The key prefix of the Amazon S3 bucket. The key prefix is similar to a directory
  4303. // name that enables you to store similar data under the same directory in a
  4304. // bucket.
  4305. ObjectKeyPrefix *string `type:"string"`
  4306. // The ARN of the Amazon SNS topic to notify when the message is saved to the
  4307. // Amazon S3 bucket. An example of an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic.
  4308. // For more information about Amazon SNS topics, see the Amazon SNS Developer
  4309. // Guide (http://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html).
  4310. TopicArn *string `type:"string"`
  4311. }
  4312. // String returns the string representation
  4313. func (s S3Action) String() string {
  4314. return awsutil.Prettify(s)
  4315. }
  4316. // GoString returns the string representation
  4317. func (s S3Action) GoString() string {
  4318. return s.String()
  4319. }
  4320. // Validate inspects the fields of the type to determine if they are valid.
  4321. func (s *S3Action) Validate() error {
  4322. invalidParams := request.ErrInvalidParams{Context: "S3Action"}
  4323. if s.BucketName == nil {
  4324. invalidParams.Add(request.NewErrParamRequired("BucketName"))
  4325. }
  4326. if invalidParams.Len() > 0 {
  4327. return invalidParams
  4328. }
  4329. return nil
  4330. }
  4331. // When included in a receipt rule, this action publishes a notification to
  4332. // Amazon Simple Notification Service (Amazon SNS). This action includes a complete
  4333. // copy of the email content in the Amazon SNS notifications. Amazon SNS notifications
  4334. // for all other actions simply provide information about the email. They do
  4335. // not include the email content itself.
  4336. //
  4337. // If you own the Amazon SNS topic, you don't need to do anything to give Amazon
  4338. // SES permission to publish emails to it. However, if you don't own the Amazon
  4339. // SNS topic, you need to attach a policy to the topic to give Amazon SES permissions
  4340. // to access it. For information about giving permissions, see the Amazon SES
  4341. // Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html).
  4342. //
  4343. // You can only publish emails that are 150 KB or less (including the header)
  4344. // to Amazon SNS. Larger emails will bounce. If you anticipate emails larger
  4345. // than 150 KB, use the S3 action instead.
  4346. //
  4347. // For information about using a receipt rule to publish an Amazon SNS notification,
  4348. // see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-action-sns.html).
  4349. type SNSAction struct {
  4350. _ struct{} `type:"structure"`
  4351. // The encoding to use for the email within the Amazon SNS notification. UTF-8
  4352. // is easier to use, but may not preserve all special characters when a message
  4353. // was encoded with a different encoding format. Base64 preserves all special
  4354. // characters. The default value is UTF-8.
  4355. Encoding *string `type:"string" enum:"SNSActionEncoding"`
  4356. // The Amazon Resource Name (ARN) of the Amazon SNS topic to notify. An example
  4357. // of an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic.
  4358. // For more information about Amazon SNS topics, see the Amazon SNS Developer
  4359. // Guide (http://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html).
  4360. TopicArn *string `type:"string" required:"true"`
  4361. }
  4362. // String returns the string representation
  4363. func (s SNSAction) String() string {
  4364. return awsutil.Prettify(s)
  4365. }
  4366. // GoString returns the string representation
  4367. func (s SNSAction) GoString() string {
  4368. return s.String()
  4369. }
  4370. // Validate inspects the fields of the type to determine if they are valid.
  4371. func (s *SNSAction) Validate() error {
  4372. invalidParams := request.ErrInvalidParams{Context: "SNSAction"}
  4373. if s.TopicArn == nil {
  4374. invalidParams.Add(request.NewErrParamRequired("TopicArn"))
  4375. }
  4376. if invalidParams.Len() > 0 {
  4377. return invalidParams
  4378. }
  4379. return nil
  4380. }
  4381. // Represents a request to send a bounce message to the sender of an email you
  4382. // received through Amazon SES.
  4383. type SendBounceInput struct {
  4384. _ struct{} `type:"structure"`
  4385. // The address to use in the "From" header of the bounce message. This must
  4386. // be an identity that you have verified with Amazon SES.
  4387. BounceSender *string `type:"string" required:"true"`
  4388. // This parameter is used only for sending authorization. It is the ARN of the
  4389. // identity that is associated with the sending authorization policy that permits
  4390. // you to use the address in the "From" header of the bounce. For more information
  4391. // about sending authorization, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html).
  4392. BounceSenderArn *string `type:"string"`
  4393. // A list of recipients of the bounced message, including the information required
  4394. // to create the Delivery Status Notifications (DSNs) for the recipients. You
  4395. // must specify at least one BouncedRecipientInfo in the list.
  4396. BouncedRecipientInfoList []*BouncedRecipientInfo `type:"list" required:"true"`
  4397. // Human-readable text for the bounce message to explain the failure. If not
  4398. // specified, the text will be auto-generated based on the bounced recipient
  4399. // information.
  4400. Explanation *string `type:"string"`
  4401. // Message-related DSN fields. If not specified, Amazon SES will choose the
  4402. // values.
  4403. MessageDsn *MessageDsn `type:"structure"`
  4404. // The message ID of the message to be bounced.
  4405. OriginalMessageId *string `type:"string" required:"true"`
  4406. }
  4407. // String returns the string representation
  4408. func (s SendBounceInput) String() string {
  4409. return awsutil.Prettify(s)
  4410. }
  4411. // GoString returns the string representation
  4412. func (s SendBounceInput) GoString() string {
  4413. return s.String()
  4414. }
  4415. // Validate inspects the fields of the type to determine if they are valid.
  4416. func (s *SendBounceInput) Validate() error {
  4417. invalidParams := request.ErrInvalidParams{Context: "SendBounceInput"}
  4418. if s.BounceSender == nil {
  4419. invalidParams.Add(request.NewErrParamRequired("BounceSender"))
  4420. }
  4421. if s.BouncedRecipientInfoList == nil {
  4422. invalidParams.Add(request.NewErrParamRequired("BouncedRecipientInfoList"))
  4423. }
  4424. if s.OriginalMessageId == nil {
  4425. invalidParams.Add(request.NewErrParamRequired("OriginalMessageId"))
  4426. }
  4427. if s.BouncedRecipientInfoList != nil {
  4428. for i, v := range s.BouncedRecipientInfoList {
  4429. if v == nil {
  4430. continue
  4431. }
  4432. if err := v.Validate(); err != nil {
  4433. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "BouncedRecipientInfoList", i), err.(request.ErrInvalidParams))
  4434. }
  4435. }
  4436. }
  4437. if s.MessageDsn != nil {
  4438. if err := s.MessageDsn.Validate(); err != nil {
  4439. invalidParams.AddNested("MessageDsn", err.(request.ErrInvalidParams))
  4440. }
  4441. }
  4442. if invalidParams.Len() > 0 {
  4443. return invalidParams
  4444. }
  4445. return nil
  4446. }
  4447. // Represents a unique message ID.
  4448. type SendBounceOutput struct {
  4449. _ struct{} `type:"structure"`
  4450. // The message ID of the bounce message.
  4451. MessageId *string `type:"string"`
  4452. }
  4453. // String returns the string representation
  4454. func (s SendBounceOutput) String() string {
  4455. return awsutil.Prettify(s)
  4456. }
  4457. // GoString returns the string representation
  4458. func (s SendBounceOutput) GoString() string {
  4459. return s.String()
  4460. }
  4461. // Represents sending statistics data. Each SendDataPoint contains statistics
  4462. // for a 15-minute period of sending activity.
  4463. type SendDataPoint struct {
  4464. _ struct{} `type:"structure"`
  4465. // Number of emails that have bounced.
  4466. Bounces *int64 `type:"long"`
  4467. // Number of unwanted emails that were rejected by recipients.
  4468. Complaints *int64 `type:"long"`
  4469. // Number of emails that have been enqueued for sending.
  4470. DeliveryAttempts *int64 `type:"long"`
  4471. // Number of emails rejected by Amazon SES.
  4472. Rejects *int64 `type:"long"`
  4473. // Time of the data point.
  4474. Timestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  4475. }
  4476. // String returns the string representation
  4477. func (s SendDataPoint) String() string {
  4478. return awsutil.Prettify(s)
  4479. }
  4480. // GoString returns the string representation
  4481. func (s SendDataPoint) GoString() string {
  4482. return s.String()
  4483. }
  4484. // Represents a request to send a single formatted email using Amazon SES. For
  4485. // more information, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-formatted.html).
  4486. type SendEmailInput struct {
  4487. _ struct{} `type:"structure"`
  4488. // The destination for this email, composed of To:, CC:, and BCC: fields.
  4489. Destination *Destination `type:"structure" required:"true"`
  4490. // The message to be sent.
  4491. Message *Message `type:"structure" required:"true"`
  4492. // The reply-to email address(es) for the message. If the recipient replies
  4493. // to the message, each reply-to address will receive the reply.
  4494. ReplyToAddresses []*string `type:"list"`
  4495. // The email address to which bounces and complaints are to be forwarded when
  4496. // feedback forwarding is enabled. If the message cannot be delivered to the
  4497. // recipient, then an error message will be returned from the recipient's ISP;
  4498. // this message will then be forwarded to the email address specified by the
  4499. // ReturnPath parameter. The ReturnPath parameter is never overwritten. This
  4500. // email address must be either individually verified with Amazon SES, or from
  4501. // a domain that has been verified with Amazon SES.
  4502. ReturnPath *string `type:"string"`
  4503. // This parameter is used only for sending authorization. It is the ARN of the
  4504. // identity that is associated with the sending authorization policy that permits
  4505. // you to use the email address specified in the ReturnPath parameter.
  4506. //
  4507. // For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com)
  4508. // attaches a policy to it that authorizes you to use feedback@example.com,
  4509. // then you would specify the ReturnPathArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com,
  4510. // and the ReturnPath to be feedback@example.com.
  4511. //
  4512. // For more information about sending authorization, see the Amazon SES Developer
  4513. // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html).
  4514. ReturnPathArn *string `type:"string"`
  4515. // The email address that is sending the email. This email address must be either
  4516. // individually verified with Amazon SES, or from a domain that has been verified
  4517. // with Amazon SES. For information about verifying identities, see the Amazon
  4518. // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html).
  4519. //
  4520. // If you are sending on behalf of another user and have been permitted to
  4521. // do so by a sending authorization policy, then you must also specify the SourceArn
  4522. // parameter. For more information about sending authorization, see the Amazon
  4523. // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html).
  4524. //
  4525. // In all cases, the email address must be 7-bit ASCII. If the text must contain
  4526. // any other characters, then you must use MIME encoded-word syntax (RFC 2047)
  4527. // instead of a literal string. MIME encoded-word syntax uses the following
  4528. // form: =?charset?encoding?encoded-text?=. For more information, see RFC 2047
  4529. // (http://tools.ietf.org/html/rfc2047).
  4530. Source *string `type:"string" required:"true"`
  4531. // This parameter is used only for sending authorization. It is the ARN of the
  4532. // identity that is associated with the sending authorization policy that permits
  4533. // you to send for the email address specified in the Source parameter.
  4534. //
  4535. // For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com)
  4536. // attaches a policy to it that authorizes you to send from user@example.com,
  4537. // then you would specify the SourceArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com,
  4538. // and the Source to be user@example.com.
  4539. //
  4540. // For more information about sending authorization, see the Amazon SES Developer
  4541. // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html).
  4542. SourceArn *string `type:"string"`
  4543. }
  4544. // String returns the string representation
  4545. func (s SendEmailInput) String() string {
  4546. return awsutil.Prettify(s)
  4547. }
  4548. // GoString returns the string representation
  4549. func (s SendEmailInput) GoString() string {
  4550. return s.String()
  4551. }
  4552. // Validate inspects the fields of the type to determine if they are valid.
  4553. func (s *SendEmailInput) Validate() error {
  4554. invalidParams := request.ErrInvalidParams{Context: "SendEmailInput"}
  4555. if s.Destination == nil {
  4556. invalidParams.Add(request.NewErrParamRequired("Destination"))
  4557. }
  4558. if s.Message == nil {
  4559. invalidParams.Add(request.NewErrParamRequired("Message"))
  4560. }
  4561. if s.Source == nil {
  4562. invalidParams.Add(request.NewErrParamRequired("Source"))
  4563. }
  4564. if s.Message != nil {
  4565. if err := s.Message.Validate(); err != nil {
  4566. invalidParams.AddNested("Message", err.(request.ErrInvalidParams))
  4567. }
  4568. }
  4569. if invalidParams.Len() > 0 {
  4570. return invalidParams
  4571. }
  4572. return nil
  4573. }
  4574. // Represents a unique message ID.
  4575. type SendEmailOutput struct {
  4576. _ struct{} `type:"structure"`
  4577. // The unique message identifier returned from the SendEmail action.
  4578. MessageId *string `type:"string" required:"true"`
  4579. }
  4580. // String returns the string representation
  4581. func (s SendEmailOutput) String() string {
  4582. return awsutil.Prettify(s)
  4583. }
  4584. // GoString returns the string representation
  4585. func (s SendEmailOutput) GoString() string {
  4586. return s.String()
  4587. }
  4588. // Represents a request to send a single raw email using Amazon SES. For more
  4589. // information, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-raw.html).
  4590. type SendRawEmailInput struct {
  4591. _ struct{} `type:"structure"`
  4592. // A list of destinations for the message, consisting of To:, CC:, and BCC:
  4593. // addresses.
  4594. Destinations []*string `type:"list"`
  4595. // This parameter is used only for sending authorization. It is the ARN of the
  4596. // identity that is associated with the sending authorization policy that permits
  4597. // you to specify a particular "From" address in the header of the raw email.
  4598. //
  4599. // Instead of using this parameter, you can use the X-header X-SES-FROM-ARN
  4600. // in the raw message of the email. If you use both the FromArn parameter and
  4601. // the corresponding X-header, Amazon SES uses the value of the FromArn parameter.
  4602. //
  4603. // For information about when to use this parameter, see the description of
  4604. // 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).
  4605. FromArn *string `type:"string"`
  4606. // The raw text of the message. The client is responsible for ensuring the following:
  4607. //
  4608. // Message must contain a header and a body, separated by a blank line.
  4609. //
  4610. // All required header fields must be present.
  4611. //
  4612. // Each part of a multipart MIME message must be formatted properly.
  4613. //
  4614. // MIME content types must be among those supported by Amazon SES. For more
  4615. // information, go to the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/mime-types.html).
  4616. //
  4617. // Must be base64-encoded.
  4618. RawMessage *RawMessage `type:"structure" required:"true"`
  4619. // This parameter is used only for sending authorization. It is the ARN of the
  4620. // identity that is associated with the sending authorization policy that permits
  4621. // you to use the email address specified in the ReturnPath parameter.
  4622. //
  4623. // For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com)
  4624. // attaches a policy to it that authorizes you to use feedback@example.com,
  4625. // then you would specify the ReturnPathArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com,
  4626. // and the ReturnPath to be feedback@example.com.
  4627. //
  4628. // Instead of using this parameter, you can use the X-header X-SES-RETURN-PATH-ARN
  4629. // in the raw message of the email. If you use both the ReturnPathArn parameter
  4630. // and the corresponding X-header, Amazon SES uses the value of the ReturnPathArn
  4631. // parameter.
  4632. //
  4633. // For information about when to use this parameter, see the description of
  4634. // 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).
  4635. ReturnPathArn *string `type:"string"`
  4636. // The identity's email address. If you do not provide a value for this parameter,
  4637. // you must specify a "From" address in the raw text of the message. (You can
  4638. // also specify both.)
  4639. //
  4640. // By default, the string must be 7-bit ASCII. If the text must contain any
  4641. // other characters, then you must use MIME encoded-word syntax (RFC 2047) instead
  4642. // of a literal string. MIME encoded-word syntax uses the following form: =?charset?encoding?encoded-text?=.
  4643. // For more information, see RFC 2047 (http://tools.ietf.org/html/rfc2047).
  4644. //
  4645. // If you specify the Source parameter and have feedback forwarding enabled,
  4646. // then bounces and complaints will be sent to this email address. This takes
  4647. // precedence over any Return-Path header that you might include in the raw
  4648. // text of the message.
  4649. Source *string `type:"string"`
  4650. // This parameter is used only for sending authorization. It is the ARN of the
  4651. // identity that is associated with the sending authorization policy that permits
  4652. // you to send for the email address specified in the Source parameter.
  4653. //
  4654. // For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com)
  4655. // attaches a policy to it that authorizes you to send from user@example.com,
  4656. // then you would specify the SourceArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com,
  4657. // and the Source to be user@example.com.
  4658. //
  4659. // Instead of using this parameter, you can use the X-header X-SES-SOURCE-ARN
  4660. // in the raw message of the email. If you use both the SourceArn parameter
  4661. // and the corresponding X-header, Amazon SES uses the value of the SourceArn
  4662. // parameter.
  4663. //
  4664. // For information about when to use this parameter, see the description of
  4665. // 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).
  4666. SourceArn *string `type:"string"`
  4667. }
  4668. // String returns the string representation
  4669. func (s SendRawEmailInput) String() string {
  4670. return awsutil.Prettify(s)
  4671. }
  4672. // GoString returns the string representation
  4673. func (s SendRawEmailInput) GoString() string {
  4674. return s.String()
  4675. }
  4676. // Validate inspects the fields of the type to determine if they are valid.
  4677. func (s *SendRawEmailInput) Validate() error {
  4678. invalidParams := request.ErrInvalidParams{Context: "SendRawEmailInput"}
  4679. if s.RawMessage == nil {
  4680. invalidParams.Add(request.NewErrParamRequired("RawMessage"))
  4681. }
  4682. if s.RawMessage != nil {
  4683. if err := s.RawMessage.Validate(); err != nil {
  4684. invalidParams.AddNested("RawMessage", err.(request.ErrInvalidParams))
  4685. }
  4686. }
  4687. if invalidParams.Len() > 0 {
  4688. return invalidParams
  4689. }
  4690. return nil
  4691. }
  4692. // Represents a unique message ID.
  4693. type SendRawEmailOutput struct {
  4694. _ struct{} `type:"structure"`
  4695. // The unique message identifier returned from the SendRawEmail action.
  4696. MessageId *string `type:"string" required:"true"`
  4697. }
  4698. // String returns the string representation
  4699. func (s SendRawEmailOutput) String() string {
  4700. return awsutil.Prettify(s)
  4701. }
  4702. // GoString returns the string representation
  4703. func (s SendRawEmailOutput) GoString() string {
  4704. return s.String()
  4705. }
  4706. // Represents a request to set a receipt rule set as the active receipt rule
  4707. // set. You use receipt rule sets to receive email with Amazon SES. For more
  4708. // information, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html).
  4709. type SetActiveReceiptRuleSetInput struct {
  4710. _ struct{} `type:"structure"`
  4711. // The name of the receipt rule set to make active. Setting this value to null
  4712. // disables all email receiving.
  4713. RuleSetName *string `type:"string"`
  4714. }
  4715. // String returns the string representation
  4716. func (s SetActiveReceiptRuleSetInput) String() string {
  4717. return awsutil.Prettify(s)
  4718. }
  4719. // GoString returns the string representation
  4720. func (s SetActiveReceiptRuleSetInput) GoString() string {
  4721. return s.String()
  4722. }
  4723. // An empty element returned on a successful request.
  4724. type SetActiveReceiptRuleSetOutput struct {
  4725. _ struct{} `type:"structure"`
  4726. }
  4727. // String returns the string representation
  4728. func (s SetActiveReceiptRuleSetOutput) String() string {
  4729. return awsutil.Prettify(s)
  4730. }
  4731. // GoString returns the string representation
  4732. func (s SetActiveReceiptRuleSetOutput) GoString() string {
  4733. return s.String()
  4734. }
  4735. // Represents a request to enable or disable Amazon SES Easy DKIM signing for
  4736. // an identity. For more information about setting up Easy DKIM, see the Amazon
  4737. // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html).
  4738. type SetIdentityDkimEnabledInput struct {
  4739. _ struct{} `type:"structure"`
  4740. // Sets whether DKIM signing is enabled for an identity. Set to true to enable
  4741. // DKIM signing for this identity; false to disable it.
  4742. DkimEnabled *bool `type:"boolean" required:"true"`
  4743. // The identity for which DKIM signing should be enabled or disabled.
  4744. Identity *string `type:"string" required:"true"`
  4745. }
  4746. // String returns the string representation
  4747. func (s SetIdentityDkimEnabledInput) String() string {
  4748. return awsutil.Prettify(s)
  4749. }
  4750. // GoString returns the string representation
  4751. func (s SetIdentityDkimEnabledInput) GoString() string {
  4752. return s.String()
  4753. }
  4754. // Validate inspects the fields of the type to determine if they are valid.
  4755. func (s *SetIdentityDkimEnabledInput) Validate() error {
  4756. invalidParams := request.ErrInvalidParams{Context: "SetIdentityDkimEnabledInput"}
  4757. if s.DkimEnabled == nil {
  4758. invalidParams.Add(request.NewErrParamRequired("DkimEnabled"))
  4759. }
  4760. if s.Identity == nil {
  4761. invalidParams.Add(request.NewErrParamRequired("Identity"))
  4762. }
  4763. if invalidParams.Len() > 0 {
  4764. return invalidParams
  4765. }
  4766. return nil
  4767. }
  4768. // An empty element returned on a successful request.
  4769. type SetIdentityDkimEnabledOutput struct {
  4770. _ struct{} `type:"structure"`
  4771. }
  4772. // String returns the string representation
  4773. func (s SetIdentityDkimEnabledOutput) String() string {
  4774. return awsutil.Prettify(s)
  4775. }
  4776. // GoString returns the string representation
  4777. func (s SetIdentityDkimEnabledOutput) GoString() string {
  4778. return s.String()
  4779. }
  4780. // Represents a request to enable or disable whether Amazon SES forwards you
  4781. // bounce and complaint notifications through email. For information about email
  4782. // feedback forwarding, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications-via-email.html).
  4783. type SetIdentityFeedbackForwardingEnabledInput struct {
  4784. _ struct{} `type:"structure"`
  4785. // Sets whether Amazon SES will forward bounce and complaint notifications as
  4786. // email. true specifies that Amazon SES will forward bounce and complaint notifications
  4787. // as email, in addition to any Amazon SNS topic publishing otherwise specified.
  4788. // false specifies that Amazon SES will publish bounce and complaint notifications
  4789. // only through Amazon SNS. This value can only be set to false when Amazon
  4790. // SNS topics are set for both Bounce and Complaint notification types.
  4791. ForwardingEnabled *bool `type:"boolean" required:"true"`
  4792. // The identity for which to set bounce and complaint notification forwarding.
  4793. // Examples: user@example.com, example.com.
  4794. Identity *string `type:"string" required:"true"`
  4795. }
  4796. // String returns the string representation
  4797. func (s SetIdentityFeedbackForwardingEnabledInput) String() string {
  4798. return awsutil.Prettify(s)
  4799. }
  4800. // GoString returns the string representation
  4801. func (s SetIdentityFeedbackForwardingEnabledInput) GoString() string {
  4802. return s.String()
  4803. }
  4804. // Validate inspects the fields of the type to determine if they are valid.
  4805. func (s *SetIdentityFeedbackForwardingEnabledInput) Validate() error {
  4806. invalidParams := request.ErrInvalidParams{Context: "SetIdentityFeedbackForwardingEnabledInput"}
  4807. if s.ForwardingEnabled == nil {
  4808. invalidParams.Add(request.NewErrParamRequired("ForwardingEnabled"))
  4809. }
  4810. if s.Identity == nil {
  4811. invalidParams.Add(request.NewErrParamRequired("Identity"))
  4812. }
  4813. if invalidParams.Len() > 0 {
  4814. return invalidParams
  4815. }
  4816. return nil
  4817. }
  4818. // An empty element returned on a successful request.
  4819. type SetIdentityFeedbackForwardingEnabledOutput struct {
  4820. _ struct{} `type:"structure"`
  4821. }
  4822. // String returns the string representation
  4823. func (s SetIdentityFeedbackForwardingEnabledOutput) String() string {
  4824. return awsutil.Prettify(s)
  4825. }
  4826. // GoString returns the string representation
  4827. func (s SetIdentityFeedbackForwardingEnabledOutput) GoString() string {
  4828. return s.String()
  4829. }
  4830. // Represents a request to set whether Amazon SES includes the original email
  4831. // headers in the Amazon SNS notifications of a specified type. For information
  4832. // about notifications, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications-via-sns.html).
  4833. type SetIdentityHeadersInNotificationsEnabledInput struct {
  4834. _ struct{} `type:"structure"`
  4835. // Sets whether Amazon SES includes the original email headers in Amazon SNS
  4836. // notifications of the specified notification type. A value of true specifies
  4837. // that Amazon SES will include headers in notifications, and a value of false
  4838. // specifies that Amazon SES will not include headers in notifications.
  4839. //
  4840. // This value can only be set when NotificationType is already set to use a
  4841. // particular Amazon SNS topic.
  4842. Enabled *bool `type:"boolean" required:"true"`
  4843. // The identity for which to enable or disable headers in notifications. Examples:
  4844. // user@example.com, example.com.
  4845. Identity *string `type:"string" required:"true"`
  4846. // The notification type for which to enable or disable headers in notifications.
  4847. NotificationType *string `type:"string" required:"true" enum:"NotificationType"`
  4848. }
  4849. // String returns the string representation
  4850. func (s SetIdentityHeadersInNotificationsEnabledInput) String() string {
  4851. return awsutil.Prettify(s)
  4852. }
  4853. // GoString returns the string representation
  4854. func (s SetIdentityHeadersInNotificationsEnabledInput) GoString() string {
  4855. return s.String()
  4856. }
  4857. // Validate inspects the fields of the type to determine if they are valid.
  4858. func (s *SetIdentityHeadersInNotificationsEnabledInput) Validate() error {
  4859. invalidParams := request.ErrInvalidParams{Context: "SetIdentityHeadersInNotificationsEnabledInput"}
  4860. if s.Enabled == nil {
  4861. invalidParams.Add(request.NewErrParamRequired("Enabled"))
  4862. }
  4863. if s.Identity == nil {
  4864. invalidParams.Add(request.NewErrParamRequired("Identity"))
  4865. }
  4866. if s.NotificationType == nil {
  4867. invalidParams.Add(request.NewErrParamRequired("NotificationType"))
  4868. }
  4869. if invalidParams.Len() > 0 {
  4870. return invalidParams
  4871. }
  4872. return nil
  4873. }
  4874. // An empty element returned on a successful request.
  4875. type SetIdentityHeadersInNotificationsEnabledOutput struct {
  4876. _ struct{} `type:"structure"`
  4877. }
  4878. // String returns the string representation
  4879. func (s SetIdentityHeadersInNotificationsEnabledOutput) String() string {
  4880. return awsutil.Prettify(s)
  4881. }
  4882. // GoString returns the string representation
  4883. func (s SetIdentityHeadersInNotificationsEnabledOutput) GoString() string {
  4884. return s.String()
  4885. }
  4886. // Represents a request to enable or disable the Amazon SES custom MAIL FROM
  4887. // domain setup for a verified identity. For information about using a custom
  4888. // MAIL FROM domain, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/mail-from.html).
  4889. type SetIdentityMailFromDomainInput struct {
  4890. _ struct{} `type:"structure"`
  4891. // The action that you want Amazon SES to take if it cannot successfully read
  4892. // the required MX record when you send an email. If you choose UseDefaultValue,
  4893. // Amazon SES will use amazonses.com (or a subdomain of that) as the MAIL FROM
  4894. // domain. If you choose RejectMessage, Amazon SES will return a MailFromDomainNotVerified
  4895. // error and not send the email.
  4896. //
  4897. // The action specified in BehaviorOnMXFailure is taken when the custom MAIL
  4898. // FROM domain setup is in the Pending, Failed, and TemporaryFailure states.
  4899. BehaviorOnMXFailure *string `type:"string" enum:"BehaviorOnMXFailure"`
  4900. // The verified identity for which you want to enable or disable the specified
  4901. // custom MAIL FROM domain.
  4902. Identity *string `type:"string" required:"true"`
  4903. // The custom MAIL FROM domain that you want the verified identity to use. The
  4904. // MAIL FROM domain must 1) be a subdomain of the verified identity, 2) not
  4905. // be used in a "From" address if the MAIL FROM domain is the destination of
  4906. // email feedback forwarding (for more information, see the Amazon SES Developer
  4907. // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/mail-from.html)),
  4908. // and 3) not be used to receive emails. A value of null disables the custom
  4909. // MAIL FROM setting for the identity.
  4910. MailFromDomain *string `type:"string"`
  4911. }
  4912. // String returns the string representation
  4913. func (s SetIdentityMailFromDomainInput) String() string {
  4914. return awsutil.Prettify(s)
  4915. }
  4916. // GoString returns the string representation
  4917. func (s SetIdentityMailFromDomainInput) GoString() string {
  4918. return s.String()
  4919. }
  4920. // Validate inspects the fields of the type to determine if they are valid.
  4921. func (s *SetIdentityMailFromDomainInput) Validate() error {
  4922. invalidParams := request.ErrInvalidParams{Context: "SetIdentityMailFromDomainInput"}
  4923. if s.Identity == nil {
  4924. invalidParams.Add(request.NewErrParamRequired("Identity"))
  4925. }
  4926. if invalidParams.Len() > 0 {
  4927. return invalidParams
  4928. }
  4929. return nil
  4930. }
  4931. // An empty element returned on a successful request.
  4932. type SetIdentityMailFromDomainOutput struct {
  4933. _ struct{} `type:"structure"`
  4934. }
  4935. // String returns the string representation
  4936. func (s SetIdentityMailFromDomainOutput) String() string {
  4937. return awsutil.Prettify(s)
  4938. }
  4939. // GoString returns the string representation
  4940. func (s SetIdentityMailFromDomainOutput) GoString() string {
  4941. return s.String()
  4942. }
  4943. // Represents a request to specify the Amazon SNS topic to which Amazon SES
  4944. // will publish bounce, complaint, or delivery notifications for emails sent
  4945. // with that identity as the Source. For information about Amazon SES notifications,
  4946. // see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications-via-sns.html).
  4947. type SetIdentityNotificationTopicInput struct {
  4948. _ struct{} `type:"structure"`
  4949. // The identity for which the Amazon SNS topic will be set. You can specify
  4950. // an identity by using its name or by using its Amazon Resource Name (ARN).
  4951. // Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.
  4952. Identity *string `type:"string" required:"true"`
  4953. // The type of notifications that will be published to the specified Amazon
  4954. // SNS topic.
  4955. NotificationType *string `type:"string" required:"true" enum:"NotificationType"`
  4956. // The Amazon Resource Name (ARN) of the Amazon SNS topic. If the parameter
  4957. // is omitted from the request or a null value is passed, SnsTopic is cleared
  4958. // and publishing is disabled.
  4959. SnsTopic *string `type:"string"`
  4960. }
  4961. // String returns the string representation
  4962. func (s SetIdentityNotificationTopicInput) String() string {
  4963. return awsutil.Prettify(s)
  4964. }
  4965. // GoString returns the string representation
  4966. func (s SetIdentityNotificationTopicInput) GoString() string {
  4967. return s.String()
  4968. }
  4969. // Validate inspects the fields of the type to determine if they are valid.
  4970. func (s *SetIdentityNotificationTopicInput) Validate() error {
  4971. invalidParams := request.ErrInvalidParams{Context: "SetIdentityNotificationTopicInput"}
  4972. if s.Identity == nil {
  4973. invalidParams.Add(request.NewErrParamRequired("Identity"))
  4974. }
  4975. if s.NotificationType == nil {
  4976. invalidParams.Add(request.NewErrParamRequired("NotificationType"))
  4977. }
  4978. if invalidParams.Len() > 0 {
  4979. return invalidParams
  4980. }
  4981. return nil
  4982. }
  4983. // An empty element returned on a successful request.
  4984. type SetIdentityNotificationTopicOutput struct {
  4985. _ struct{} `type:"structure"`
  4986. }
  4987. // String returns the string representation
  4988. func (s SetIdentityNotificationTopicOutput) String() string {
  4989. return awsutil.Prettify(s)
  4990. }
  4991. // GoString returns the string representation
  4992. func (s SetIdentityNotificationTopicOutput) GoString() string {
  4993. return s.String()
  4994. }
  4995. // Represents a request to set the position of a receipt rule in a receipt rule
  4996. // set. You use receipt rule sets to receive email with Amazon SES. For more
  4997. // information, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html).
  4998. type SetReceiptRulePositionInput struct {
  4999. _ struct{} `type:"structure"`
  5000. // The name of the receipt rule after which to place the specified receipt rule.
  5001. After *string `type:"string"`
  5002. // The name of the receipt rule to reposition.
  5003. RuleName *string `type:"string" required:"true"`
  5004. // The name of the receipt rule set that contains the receipt rule to reposition.
  5005. RuleSetName *string `type:"string" required:"true"`
  5006. }
  5007. // String returns the string representation
  5008. func (s SetReceiptRulePositionInput) String() string {
  5009. return awsutil.Prettify(s)
  5010. }
  5011. // GoString returns the string representation
  5012. func (s SetReceiptRulePositionInput) GoString() string {
  5013. return s.String()
  5014. }
  5015. // Validate inspects the fields of the type to determine if they are valid.
  5016. func (s *SetReceiptRulePositionInput) Validate() error {
  5017. invalidParams := request.ErrInvalidParams{Context: "SetReceiptRulePositionInput"}
  5018. if s.RuleName == nil {
  5019. invalidParams.Add(request.NewErrParamRequired("RuleName"))
  5020. }
  5021. if s.RuleSetName == nil {
  5022. invalidParams.Add(request.NewErrParamRequired("RuleSetName"))
  5023. }
  5024. if invalidParams.Len() > 0 {
  5025. return invalidParams
  5026. }
  5027. return nil
  5028. }
  5029. // An empty element returned on a successful request.
  5030. type SetReceiptRulePositionOutput struct {
  5031. _ struct{} `type:"structure"`
  5032. }
  5033. // String returns the string representation
  5034. func (s SetReceiptRulePositionOutput) String() string {
  5035. return awsutil.Prettify(s)
  5036. }
  5037. // GoString returns the string representation
  5038. func (s SetReceiptRulePositionOutput) GoString() string {
  5039. return s.String()
  5040. }
  5041. // When included in a receipt rule, this action terminates the evaluation of
  5042. // the receipt rule set and, optionally, publishes a notification to Amazon
  5043. // Simple Notification Service (Amazon SNS).
  5044. //
  5045. // For information about setting a stop action in a receipt rule, see the Amazon
  5046. // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-action-stop.html).
  5047. type StopAction struct {
  5048. _ struct{} `type:"structure"`
  5049. // The scope to which the Stop action applies. That is, what is being stopped.
  5050. Scope *string `type:"string" required:"true" enum:"StopScope"`
  5051. // The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the
  5052. // stop action is taken. An example of an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic.
  5053. // For more information about Amazon SNS topics, see the Amazon SNS Developer
  5054. // Guide (http://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html).
  5055. TopicArn *string `type:"string"`
  5056. }
  5057. // String returns the string representation
  5058. func (s StopAction) String() string {
  5059. return awsutil.Prettify(s)
  5060. }
  5061. // GoString returns the string representation
  5062. func (s StopAction) GoString() string {
  5063. return s.String()
  5064. }
  5065. // Validate inspects the fields of the type to determine if they are valid.
  5066. func (s *StopAction) Validate() error {
  5067. invalidParams := request.ErrInvalidParams{Context: "StopAction"}
  5068. if s.Scope == nil {
  5069. invalidParams.Add(request.NewErrParamRequired("Scope"))
  5070. }
  5071. if invalidParams.Len() > 0 {
  5072. return invalidParams
  5073. }
  5074. return nil
  5075. }
  5076. // Represents a request to update a receipt rule. You use receipt rules to receive
  5077. // email with Amazon SES. For more information, see the Amazon SES Developer
  5078. // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html).
  5079. type UpdateReceiptRuleInput struct {
  5080. _ struct{} `type:"structure"`
  5081. // A data structure that contains the updated receipt rule information.
  5082. Rule *ReceiptRule `type:"structure" required:"true"`
  5083. // The name of the receipt rule set to which the receipt rule belongs.
  5084. RuleSetName *string `type:"string" required:"true"`
  5085. }
  5086. // String returns the string representation
  5087. func (s UpdateReceiptRuleInput) String() string {
  5088. return awsutil.Prettify(s)
  5089. }
  5090. // GoString returns the string representation
  5091. func (s UpdateReceiptRuleInput) GoString() string {
  5092. return s.String()
  5093. }
  5094. // Validate inspects the fields of the type to determine if they are valid.
  5095. func (s *UpdateReceiptRuleInput) Validate() error {
  5096. invalidParams := request.ErrInvalidParams{Context: "UpdateReceiptRuleInput"}
  5097. if s.Rule == nil {
  5098. invalidParams.Add(request.NewErrParamRequired("Rule"))
  5099. }
  5100. if s.RuleSetName == nil {
  5101. invalidParams.Add(request.NewErrParamRequired("RuleSetName"))
  5102. }
  5103. if s.Rule != nil {
  5104. if err := s.Rule.Validate(); err != nil {
  5105. invalidParams.AddNested("Rule", err.(request.ErrInvalidParams))
  5106. }
  5107. }
  5108. if invalidParams.Len() > 0 {
  5109. return invalidParams
  5110. }
  5111. return nil
  5112. }
  5113. // An empty element returned on a successful request.
  5114. type UpdateReceiptRuleOutput struct {
  5115. _ struct{} `type:"structure"`
  5116. }
  5117. // String returns the string representation
  5118. func (s UpdateReceiptRuleOutput) String() string {
  5119. return awsutil.Prettify(s)
  5120. }
  5121. // GoString returns the string representation
  5122. func (s UpdateReceiptRuleOutput) GoString() string {
  5123. return s.String()
  5124. }
  5125. // Represents a request to generate the CNAME records needed to set up Easy
  5126. // DKIM with Amazon SES. For more information about setting up Easy DKIM, see
  5127. // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html).
  5128. type VerifyDomainDkimInput struct {
  5129. _ struct{} `type:"structure"`
  5130. // The name of the domain to be verified for Easy DKIM signing.
  5131. Domain *string `type:"string" required:"true"`
  5132. }
  5133. // String returns the string representation
  5134. func (s VerifyDomainDkimInput) String() string {
  5135. return awsutil.Prettify(s)
  5136. }
  5137. // GoString returns the string representation
  5138. func (s VerifyDomainDkimInput) GoString() string {
  5139. return s.String()
  5140. }
  5141. // Validate inspects the fields of the type to determine if they are valid.
  5142. func (s *VerifyDomainDkimInput) Validate() error {
  5143. invalidParams := request.ErrInvalidParams{Context: "VerifyDomainDkimInput"}
  5144. if s.Domain == nil {
  5145. invalidParams.Add(request.NewErrParamRequired("Domain"))
  5146. }
  5147. if invalidParams.Len() > 0 {
  5148. return invalidParams
  5149. }
  5150. return nil
  5151. }
  5152. // Returns CNAME records that you must publish to the DNS server of your domain
  5153. // to set up Easy DKIM with Amazon SES.
  5154. type VerifyDomainDkimOutput struct {
  5155. _ struct{} `type:"structure"`
  5156. // A set of character strings that represent the domain's identity. If the identity
  5157. // is an email address, the tokens represent the domain of that address.
  5158. //
  5159. // Using these tokens, you will need to create DNS CNAME records that point
  5160. // to DKIM public keys hosted by Amazon SES. Amazon Web Services will eventually
  5161. // detect that you have updated your DNS records; this detection process may
  5162. // take up to 72 hours. Upon successful detection, Amazon SES will be able to
  5163. // DKIM-sign emails originating from that domain.
  5164. //
  5165. // For more information about creating DNS records using DKIM tokens, go to
  5166. // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim-dns-records.html).
  5167. DkimTokens []*string `type:"list" required:"true"`
  5168. }
  5169. // String returns the string representation
  5170. func (s VerifyDomainDkimOutput) String() string {
  5171. return awsutil.Prettify(s)
  5172. }
  5173. // GoString returns the string representation
  5174. func (s VerifyDomainDkimOutput) GoString() string {
  5175. return s.String()
  5176. }
  5177. // Represents a request to begin Amazon SES domain verification and to generate
  5178. // the TXT records that you must publish to the DNS server of your domain to
  5179. // complete the verification. For information about domain verification, see
  5180. // the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-domains.html).
  5181. type VerifyDomainIdentityInput struct {
  5182. _ struct{} `type:"structure"`
  5183. // The domain to be verified.
  5184. Domain *string `type:"string" required:"true"`
  5185. }
  5186. // String returns the string representation
  5187. func (s VerifyDomainIdentityInput) String() string {
  5188. return awsutil.Prettify(s)
  5189. }
  5190. // GoString returns the string representation
  5191. func (s VerifyDomainIdentityInput) GoString() string {
  5192. return s.String()
  5193. }
  5194. // Validate inspects the fields of the type to determine if they are valid.
  5195. func (s *VerifyDomainIdentityInput) Validate() error {
  5196. invalidParams := request.ErrInvalidParams{Context: "VerifyDomainIdentityInput"}
  5197. if s.Domain == nil {
  5198. invalidParams.Add(request.NewErrParamRequired("Domain"))
  5199. }
  5200. if invalidParams.Len() > 0 {
  5201. return invalidParams
  5202. }
  5203. return nil
  5204. }
  5205. // Returns a TXT record that you must publish to the DNS server of your domain
  5206. // to complete domain verification with Amazon SES.
  5207. type VerifyDomainIdentityOutput struct {
  5208. _ struct{} `type:"structure"`
  5209. // A TXT record that must be placed in the DNS settings for the domain, in order
  5210. // to complete domain verification.
  5211. VerificationToken *string `type:"string" required:"true"`
  5212. }
  5213. // String returns the string representation
  5214. func (s VerifyDomainIdentityOutput) String() string {
  5215. return awsutil.Prettify(s)
  5216. }
  5217. // GoString returns the string representation
  5218. func (s VerifyDomainIdentityOutput) GoString() string {
  5219. return s.String()
  5220. }
  5221. // Represents a request to begin email address verification with Amazon SES.
  5222. // For information about email address verification, see the Amazon SES Developer
  5223. // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-email-addresses.html).
  5224. type VerifyEmailAddressInput struct {
  5225. _ struct{} `type:"structure"`
  5226. // The email address to be verified.
  5227. EmailAddress *string `type:"string" required:"true"`
  5228. }
  5229. // String returns the string representation
  5230. func (s VerifyEmailAddressInput) String() string {
  5231. return awsutil.Prettify(s)
  5232. }
  5233. // GoString returns the string representation
  5234. func (s VerifyEmailAddressInput) GoString() string {
  5235. return s.String()
  5236. }
  5237. // Validate inspects the fields of the type to determine if they are valid.
  5238. func (s *VerifyEmailAddressInput) Validate() error {
  5239. invalidParams := request.ErrInvalidParams{Context: "VerifyEmailAddressInput"}
  5240. if s.EmailAddress == nil {
  5241. invalidParams.Add(request.NewErrParamRequired("EmailAddress"))
  5242. }
  5243. if invalidParams.Len() > 0 {
  5244. return invalidParams
  5245. }
  5246. return nil
  5247. }
  5248. type VerifyEmailAddressOutput struct {
  5249. _ struct{} `type:"structure"`
  5250. }
  5251. // String returns the string representation
  5252. func (s VerifyEmailAddressOutput) String() string {
  5253. return awsutil.Prettify(s)
  5254. }
  5255. // GoString returns the string representation
  5256. func (s VerifyEmailAddressOutput) GoString() string {
  5257. return s.String()
  5258. }
  5259. // Represents a request to begin email address verification with Amazon SES.
  5260. // For information about email address verification, see the Amazon SES Developer
  5261. // Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-email-addresses.html).
  5262. type VerifyEmailIdentityInput struct {
  5263. _ struct{} `type:"structure"`
  5264. // The email address to be verified.
  5265. EmailAddress *string `type:"string" required:"true"`
  5266. }
  5267. // String returns the string representation
  5268. func (s VerifyEmailIdentityInput) String() string {
  5269. return awsutil.Prettify(s)
  5270. }
  5271. // GoString returns the string representation
  5272. func (s VerifyEmailIdentityInput) GoString() string {
  5273. return s.String()
  5274. }
  5275. // Validate inspects the fields of the type to determine if they are valid.
  5276. func (s *VerifyEmailIdentityInput) Validate() error {
  5277. invalidParams := request.ErrInvalidParams{Context: "VerifyEmailIdentityInput"}
  5278. if s.EmailAddress == nil {
  5279. invalidParams.Add(request.NewErrParamRequired("EmailAddress"))
  5280. }
  5281. if invalidParams.Len() > 0 {
  5282. return invalidParams
  5283. }
  5284. return nil
  5285. }
  5286. // An empty element returned on a successful request.
  5287. type VerifyEmailIdentityOutput struct {
  5288. _ struct{} `type:"structure"`
  5289. }
  5290. // String returns the string representation
  5291. func (s VerifyEmailIdentityOutput) String() string {
  5292. return awsutil.Prettify(s)
  5293. }
  5294. // GoString returns the string representation
  5295. func (s VerifyEmailIdentityOutput) GoString() string {
  5296. return s.String()
  5297. }
  5298. // When included in a receipt rule, this action calls Amazon WorkMail and, optionally,
  5299. // publishes a notification to Amazon Simple Notification Service (Amazon SNS).
  5300. // You will typically not use this action directly because Amazon WorkMail adds
  5301. // the rule automatically during its setup procedure.
  5302. //
  5303. // For information using a receipt rule to call Amazon WorkMail, see the Amazon
  5304. // SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-action-workmail.html).
  5305. type WorkmailAction struct {
  5306. _ struct{} `type:"structure"`
  5307. // The ARN of the Amazon WorkMail organization. An example of an Amazon WorkMail
  5308. // organization ARN is arn:aws:workmail:us-west-2:123456789012:organization/m-68755160c4cb4e29a2b2f8fb58f359d7.
  5309. // For information about Amazon WorkMail organizations, see the Amazon WorkMail
  5310. // Administrator Guide (http://docs.aws.amazon.com/workmail/latest/adminguide/organizations_overview.html).
  5311. OrganizationArn *string `type:"string" required:"true"`
  5312. // The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the
  5313. // WorkMail action is called. An example of an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic.
  5314. // For more information about Amazon SNS topics, see the Amazon SNS Developer
  5315. // Guide (http://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html).
  5316. TopicArn *string `type:"string"`
  5317. }
  5318. // String returns the string representation
  5319. func (s WorkmailAction) String() string {
  5320. return awsutil.Prettify(s)
  5321. }
  5322. // GoString returns the string representation
  5323. func (s WorkmailAction) GoString() string {
  5324. return s.String()
  5325. }
  5326. // Validate inspects the fields of the type to determine if they are valid.
  5327. func (s *WorkmailAction) Validate() error {
  5328. invalidParams := request.ErrInvalidParams{Context: "WorkmailAction"}
  5329. if s.OrganizationArn == nil {
  5330. invalidParams.Add(request.NewErrParamRequired("OrganizationArn"))
  5331. }
  5332. if invalidParams.Len() > 0 {
  5333. return invalidParams
  5334. }
  5335. return nil
  5336. }
  5337. const (
  5338. // @enum BehaviorOnMXFailure
  5339. BehaviorOnMXFailureUseDefaultValue = "UseDefaultValue"
  5340. // @enum BehaviorOnMXFailure
  5341. BehaviorOnMXFailureRejectMessage = "RejectMessage"
  5342. )
  5343. const (
  5344. // @enum BounceType
  5345. BounceTypeDoesNotExist = "DoesNotExist"
  5346. // @enum BounceType
  5347. BounceTypeMessageTooLarge = "MessageTooLarge"
  5348. // @enum BounceType
  5349. BounceTypeExceededQuota = "ExceededQuota"
  5350. // @enum BounceType
  5351. BounceTypeContentRejected = "ContentRejected"
  5352. // @enum BounceType
  5353. BounceTypeUndefined = "Undefined"
  5354. // @enum BounceType
  5355. BounceTypeTemporaryFailure = "TemporaryFailure"
  5356. )
  5357. const (
  5358. // @enum CustomMailFromStatus
  5359. CustomMailFromStatusPending = "Pending"
  5360. // @enum CustomMailFromStatus
  5361. CustomMailFromStatusSuccess = "Success"
  5362. // @enum CustomMailFromStatus
  5363. CustomMailFromStatusFailed = "Failed"
  5364. // @enum CustomMailFromStatus
  5365. CustomMailFromStatusTemporaryFailure = "TemporaryFailure"
  5366. )
  5367. const (
  5368. // @enum DsnAction
  5369. DsnActionFailed = "failed"
  5370. // @enum DsnAction
  5371. DsnActionDelayed = "delayed"
  5372. // @enum DsnAction
  5373. DsnActionDelivered = "delivered"
  5374. // @enum DsnAction
  5375. DsnActionRelayed = "relayed"
  5376. // @enum DsnAction
  5377. DsnActionExpanded = "expanded"
  5378. )
  5379. const (
  5380. // @enum IdentityType
  5381. IdentityTypeEmailAddress = "EmailAddress"
  5382. // @enum IdentityType
  5383. IdentityTypeDomain = "Domain"
  5384. )
  5385. const (
  5386. // @enum InvocationType
  5387. InvocationTypeEvent = "Event"
  5388. // @enum InvocationType
  5389. InvocationTypeRequestResponse = "RequestResponse"
  5390. )
  5391. const (
  5392. // @enum NotificationType
  5393. NotificationTypeBounce = "Bounce"
  5394. // @enum NotificationType
  5395. NotificationTypeComplaint = "Complaint"
  5396. // @enum NotificationType
  5397. NotificationTypeDelivery = "Delivery"
  5398. )
  5399. const (
  5400. // @enum ReceiptFilterPolicy
  5401. ReceiptFilterPolicyBlock = "Block"
  5402. // @enum ReceiptFilterPolicy
  5403. ReceiptFilterPolicyAllow = "Allow"
  5404. )
  5405. const (
  5406. // @enum SNSActionEncoding
  5407. SNSActionEncodingUtf8 = "UTF-8"
  5408. // @enum SNSActionEncoding
  5409. SNSActionEncodingBase64 = "Base64"
  5410. )
  5411. const (
  5412. // @enum StopScope
  5413. StopScopeRuleSet = "RuleSet"
  5414. )
  5415. const (
  5416. // @enum TlsPolicy
  5417. TlsPolicyRequire = "Require"
  5418. // @enum TlsPolicy
  5419. TlsPolicyOptional = "Optional"
  5420. )
  5421. const (
  5422. // @enum VerificationStatus
  5423. VerificationStatusPending = "Pending"
  5424. // @enum VerificationStatus
  5425. VerificationStatusSuccess = "Success"
  5426. // @enum VerificationStatus
  5427. VerificationStatusFailed = "Failed"
  5428. // @enum VerificationStatus
  5429. VerificationStatusTemporaryFailure = "TemporaryFailure"
  5430. // @enum VerificationStatus
  5431. VerificationStatusNotStarted = "NotStarted"
  5432. )