api.go 296 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package route53 provides a client for Amazon Route 53.
  3. package route53
  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. )
  10. const opAssociateVPCWithHostedZone = "AssociateVPCWithHostedZone"
  11. // AssociateVPCWithHostedZoneRequest generates a "aws/request.Request" representing the
  12. // client's request for the AssociateVPCWithHostedZone operation. The "output" return
  13. // value can be used to capture response data after the request's "Send" method
  14. // is called.
  15. //
  16. // Creating a request object using this method should be used when you want to inject
  17. // custom logic into the request's lifecycle using a custom handler, or if you want to
  18. // access properties on the request object before or after sending the request. If
  19. // you just want the service response, call the AssociateVPCWithHostedZone method directly
  20. // instead.
  21. //
  22. // Note: You must call the "Send" method on the returned request object in order
  23. // to execute the request.
  24. //
  25. // // Example sending a request using the AssociateVPCWithHostedZoneRequest method.
  26. // req, resp := client.AssociateVPCWithHostedZoneRequest(params)
  27. //
  28. // err := req.Send()
  29. // if err == nil { // resp is now filled
  30. // fmt.Println(resp)
  31. // }
  32. //
  33. func (c *Route53) AssociateVPCWithHostedZoneRequest(input *AssociateVPCWithHostedZoneInput) (req *request.Request, output *AssociateVPCWithHostedZoneOutput) {
  34. op := &request.Operation{
  35. Name: opAssociateVPCWithHostedZone,
  36. HTTPMethod: "POST",
  37. HTTPPath: "/2013-04-01/hostedzone/{Id}/associatevpc",
  38. }
  39. if input == nil {
  40. input = &AssociateVPCWithHostedZoneInput{}
  41. }
  42. req = c.newRequest(op, input, output)
  43. output = &AssociateVPCWithHostedZoneOutput{}
  44. req.Data = output
  45. return
  46. }
  47. // This action associates a VPC with an hosted zone.
  48. //
  49. // To associate a VPC with an hosted zone, send a POST request to the /Route
  50. // 53 API version/hostedzone/hosted zone ID/associatevpc resource. The request
  51. // body must include a document with a AssociateVPCWithHostedZoneRequest element.
  52. // The response returns the AssociateVPCWithHostedZoneResponse element that
  53. // contains ChangeInfo for you to track the progress of the AssociateVPCWithHostedZoneRequest
  54. // you made. See GetChange operation for how to track the progress of your change.
  55. func (c *Route53) AssociateVPCWithHostedZone(input *AssociateVPCWithHostedZoneInput) (*AssociateVPCWithHostedZoneOutput, error) {
  56. req, out := c.AssociateVPCWithHostedZoneRequest(input)
  57. err := req.Send()
  58. return out, err
  59. }
  60. const opChangeResourceRecordSets = "ChangeResourceRecordSets"
  61. // ChangeResourceRecordSetsRequest generates a "aws/request.Request" representing the
  62. // client's request for the ChangeResourceRecordSets operation. The "output" return
  63. // value can be used to capture response data after the request's "Send" method
  64. // is called.
  65. //
  66. // Creating a request object using this method should be used when you want to inject
  67. // custom logic into the request's lifecycle using a custom handler, or if you want to
  68. // access properties on the request object before or after sending the request. If
  69. // you just want the service response, call the ChangeResourceRecordSets method directly
  70. // instead.
  71. //
  72. // Note: You must call the "Send" method on the returned request object in order
  73. // to execute the request.
  74. //
  75. // // Example sending a request using the ChangeResourceRecordSetsRequest method.
  76. // req, resp := client.ChangeResourceRecordSetsRequest(params)
  77. //
  78. // err := req.Send()
  79. // if err == nil { // resp is now filled
  80. // fmt.Println(resp)
  81. // }
  82. //
  83. func (c *Route53) ChangeResourceRecordSetsRequest(input *ChangeResourceRecordSetsInput) (req *request.Request, output *ChangeResourceRecordSetsOutput) {
  84. op := &request.Operation{
  85. Name: opChangeResourceRecordSets,
  86. HTTPMethod: "POST",
  87. HTTPPath: "/2013-04-01/hostedzone/{Id}/rrset/",
  88. }
  89. if input == nil {
  90. input = &ChangeResourceRecordSetsInput{}
  91. }
  92. req = c.newRequest(op, input, output)
  93. output = &ChangeResourceRecordSetsOutput{}
  94. req.Data = output
  95. return
  96. }
  97. // Use this action to create or change your authoritative DNS information. To
  98. // use this action, send a POST request to the /Route 53 API version/hostedzone/hosted
  99. // Zone ID/rrset resource. The request body must include a document with a ChangeResourceRecordSetsRequest
  100. // element.
  101. //
  102. // Changes are a list of change items and are considered transactional. For
  103. // more information on transactional changes, also known as change batches,
  104. // see POST ChangeResourceRecordSets (http://docs.aws.amazon.com/Route53/latest/APIReference/API_ChangeResourceRecordSets.html)
  105. // in the Amazon Route 53 API Reference.
  106. //
  107. // Due to the nature of transactional changes, you cannot delete the same resource
  108. // record set more than once in a single change batch. If you attempt to delete
  109. // the same change batch more than once, Amazon Route 53 returns an InvalidChangeBatch
  110. // error. In response to a ChangeResourceRecordSets request, your DNS data is
  111. // changed on all Amazon Route 53 DNS servers. Initially, the status of a change
  112. // is PENDING. This means the change has not yet propagated to all the authoritative
  113. // Amazon Route 53 DNS servers. When the change is propagated to all hosts,
  114. // the change returns a status of INSYNC.
  115. //
  116. // Note the following limitations on a ChangeResourceRecordSets request:
  117. //
  118. // A request cannot contain more than 100 Change elements. A request cannot
  119. // contain more than 1000 ResourceRecord elements. The sum of the number of
  120. // characters (including spaces) in all Value elements in a request cannot exceed
  121. // 32,000 characters.
  122. func (c *Route53) ChangeResourceRecordSets(input *ChangeResourceRecordSetsInput) (*ChangeResourceRecordSetsOutput, error) {
  123. req, out := c.ChangeResourceRecordSetsRequest(input)
  124. err := req.Send()
  125. return out, err
  126. }
  127. const opChangeTagsForResource = "ChangeTagsForResource"
  128. // ChangeTagsForResourceRequest generates a "aws/request.Request" representing the
  129. // client's request for the ChangeTagsForResource operation. The "output" return
  130. // value can be used to capture response data after the request's "Send" method
  131. // is called.
  132. //
  133. // Creating a request object using this method should be used when you want to inject
  134. // custom logic into the request's lifecycle using a custom handler, or if you want to
  135. // access properties on the request object before or after sending the request. If
  136. // you just want the service response, call the ChangeTagsForResource method directly
  137. // instead.
  138. //
  139. // Note: You must call the "Send" method on the returned request object in order
  140. // to execute the request.
  141. //
  142. // // Example sending a request using the ChangeTagsForResourceRequest method.
  143. // req, resp := client.ChangeTagsForResourceRequest(params)
  144. //
  145. // err := req.Send()
  146. // if err == nil { // resp is now filled
  147. // fmt.Println(resp)
  148. // }
  149. //
  150. func (c *Route53) ChangeTagsForResourceRequest(input *ChangeTagsForResourceInput) (req *request.Request, output *ChangeTagsForResourceOutput) {
  151. op := &request.Operation{
  152. Name: opChangeTagsForResource,
  153. HTTPMethod: "POST",
  154. HTTPPath: "/2013-04-01/tags/{ResourceType}/{ResourceId}",
  155. }
  156. if input == nil {
  157. input = &ChangeTagsForResourceInput{}
  158. }
  159. req = c.newRequest(op, input, output)
  160. output = &ChangeTagsForResourceOutput{}
  161. req.Data = output
  162. return
  163. }
  164. func (c *Route53) ChangeTagsForResource(input *ChangeTagsForResourceInput) (*ChangeTagsForResourceOutput, error) {
  165. req, out := c.ChangeTagsForResourceRequest(input)
  166. err := req.Send()
  167. return out, err
  168. }
  169. const opCreateHealthCheck = "CreateHealthCheck"
  170. // CreateHealthCheckRequest generates a "aws/request.Request" representing the
  171. // client's request for the CreateHealthCheck operation. The "output" return
  172. // value can be used to capture response data after the request's "Send" method
  173. // is called.
  174. //
  175. // Creating a request object using this method should be used when you want to inject
  176. // custom logic into the request's lifecycle using a custom handler, or if you want to
  177. // access properties on the request object before or after sending the request. If
  178. // you just want the service response, call the CreateHealthCheck method directly
  179. // instead.
  180. //
  181. // Note: You must call the "Send" method on the returned request object in order
  182. // to execute the request.
  183. //
  184. // // Example sending a request using the CreateHealthCheckRequest method.
  185. // req, resp := client.CreateHealthCheckRequest(params)
  186. //
  187. // err := req.Send()
  188. // if err == nil { // resp is now filled
  189. // fmt.Println(resp)
  190. // }
  191. //
  192. func (c *Route53) CreateHealthCheckRequest(input *CreateHealthCheckInput) (req *request.Request, output *CreateHealthCheckOutput) {
  193. op := &request.Operation{
  194. Name: opCreateHealthCheck,
  195. HTTPMethod: "POST",
  196. HTTPPath: "/2013-04-01/healthcheck",
  197. }
  198. if input == nil {
  199. input = &CreateHealthCheckInput{}
  200. }
  201. req = c.newRequest(op, input, output)
  202. output = &CreateHealthCheckOutput{}
  203. req.Data = output
  204. return
  205. }
  206. // This action creates a new health check.
  207. //
  208. // To create a new health check, send a POST request to the /Route 53 API version/healthcheck
  209. // resource. The request body must include a document with a CreateHealthCheckRequest
  210. // element. The response returns the CreateHealthCheckResponse element that
  211. // contains metadata about the health check.
  212. func (c *Route53) CreateHealthCheck(input *CreateHealthCheckInput) (*CreateHealthCheckOutput, error) {
  213. req, out := c.CreateHealthCheckRequest(input)
  214. err := req.Send()
  215. return out, err
  216. }
  217. const opCreateHostedZone = "CreateHostedZone"
  218. // CreateHostedZoneRequest generates a "aws/request.Request" representing the
  219. // client's request for the CreateHostedZone operation. The "output" return
  220. // value can be used to capture response data after the request's "Send" method
  221. // is called.
  222. //
  223. // Creating a request object using this method should be used when you want to inject
  224. // custom logic into the request's lifecycle using a custom handler, or if you want to
  225. // access properties on the request object before or after sending the request. If
  226. // you just want the service response, call the CreateHostedZone method directly
  227. // instead.
  228. //
  229. // Note: You must call the "Send" method on the returned request object in order
  230. // to execute the request.
  231. //
  232. // // Example sending a request using the CreateHostedZoneRequest method.
  233. // req, resp := client.CreateHostedZoneRequest(params)
  234. //
  235. // err := req.Send()
  236. // if err == nil { // resp is now filled
  237. // fmt.Println(resp)
  238. // }
  239. //
  240. func (c *Route53) CreateHostedZoneRequest(input *CreateHostedZoneInput) (req *request.Request, output *CreateHostedZoneOutput) {
  241. op := &request.Operation{
  242. Name: opCreateHostedZone,
  243. HTTPMethod: "POST",
  244. HTTPPath: "/2013-04-01/hostedzone",
  245. }
  246. if input == nil {
  247. input = &CreateHostedZoneInput{}
  248. }
  249. req = c.newRequest(op, input, output)
  250. output = &CreateHostedZoneOutput{}
  251. req.Data = output
  252. return
  253. }
  254. // This action creates a new hosted zone.
  255. //
  256. // To create a new hosted zone, send a POST request to the /Route 53 API version/hostedzone
  257. // resource. The request body must include a document with a CreateHostedZoneRequest
  258. // element. The response returns the CreateHostedZoneResponse element that contains
  259. // metadata about the hosted zone.
  260. //
  261. // Amazon Route 53 automatically creates a default SOA record and four NS records
  262. // for the zone. The NS records in the hosted zone are the name servers you
  263. // give your registrar to delegate your domain to. For more information about
  264. // SOA and NS records, see NS and SOA Records that Amazon Route 53 Creates for
  265. // a Hosted Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/SOA-NSrecords.html)
  266. // in the Amazon Route 53 Developer Guide.
  267. //
  268. // When you create a zone, its initial status is PENDING. This means that it
  269. // is not yet available on all DNS servers. The status of the zone changes to
  270. // INSYNC when the NS and SOA records are available on all Amazon Route 53 DNS
  271. // servers.
  272. //
  273. // When trying to create a hosted zone using a reusable delegation set, you
  274. // could specify an optional DelegationSetId, and Route53 would assign those
  275. // 4 NS records for the zone, instead of alloting a new one.
  276. func (c *Route53) CreateHostedZone(input *CreateHostedZoneInput) (*CreateHostedZoneOutput, error) {
  277. req, out := c.CreateHostedZoneRequest(input)
  278. err := req.Send()
  279. return out, err
  280. }
  281. const opCreateReusableDelegationSet = "CreateReusableDelegationSet"
  282. // CreateReusableDelegationSetRequest generates a "aws/request.Request" representing the
  283. // client's request for the CreateReusableDelegationSet operation. The "output" return
  284. // value can be used to capture response data after the request's "Send" method
  285. // is called.
  286. //
  287. // Creating a request object using this method should be used when you want to inject
  288. // custom logic into the request's lifecycle using a custom handler, or if you want to
  289. // access properties on the request object before or after sending the request. If
  290. // you just want the service response, call the CreateReusableDelegationSet method directly
  291. // instead.
  292. //
  293. // Note: You must call the "Send" method on the returned request object in order
  294. // to execute the request.
  295. //
  296. // // Example sending a request using the CreateReusableDelegationSetRequest method.
  297. // req, resp := client.CreateReusableDelegationSetRequest(params)
  298. //
  299. // err := req.Send()
  300. // if err == nil { // resp is now filled
  301. // fmt.Println(resp)
  302. // }
  303. //
  304. func (c *Route53) CreateReusableDelegationSetRequest(input *CreateReusableDelegationSetInput) (req *request.Request, output *CreateReusableDelegationSetOutput) {
  305. op := &request.Operation{
  306. Name: opCreateReusableDelegationSet,
  307. HTTPMethod: "POST",
  308. HTTPPath: "/2013-04-01/delegationset",
  309. }
  310. if input == nil {
  311. input = &CreateReusableDelegationSetInput{}
  312. }
  313. req = c.newRequest(op, input, output)
  314. output = &CreateReusableDelegationSetOutput{}
  315. req.Data = output
  316. return
  317. }
  318. // This action creates a reusable delegationSet.
  319. //
  320. // To create a new reusable delegationSet, send a POST request to the /Route
  321. // 53 API version/delegationset resource. The request body must include a document
  322. // with a CreateReusableDelegationSetRequest element. The response returns the
  323. // CreateReusableDelegationSetResponse element that contains metadata about
  324. // the delegationSet.
  325. //
  326. // If the optional parameter HostedZoneId is specified, it marks the delegationSet
  327. // associated with that particular hosted zone as reusable.
  328. func (c *Route53) CreateReusableDelegationSet(input *CreateReusableDelegationSetInput) (*CreateReusableDelegationSetOutput, error) {
  329. req, out := c.CreateReusableDelegationSetRequest(input)
  330. err := req.Send()
  331. return out, err
  332. }
  333. const opCreateTrafficPolicy = "CreateTrafficPolicy"
  334. // CreateTrafficPolicyRequest generates a "aws/request.Request" representing the
  335. // client's request for the CreateTrafficPolicy operation. The "output" return
  336. // value can be used to capture response data after the request's "Send" method
  337. // is called.
  338. //
  339. // Creating a request object using this method should be used when you want to inject
  340. // custom logic into the request's lifecycle using a custom handler, or if you want to
  341. // access properties on the request object before or after sending the request. If
  342. // you just want the service response, call the CreateTrafficPolicy method directly
  343. // instead.
  344. //
  345. // Note: You must call the "Send" method on the returned request object in order
  346. // to execute the request.
  347. //
  348. // // Example sending a request using the CreateTrafficPolicyRequest method.
  349. // req, resp := client.CreateTrafficPolicyRequest(params)
  350. //
  351. // err := req.Send()
  352. // if err == nil { // resp is now filled
  353. // fmt.Println(resp)
  354. // }
  355. //
  356. func (c *Route53) CreateTrafficPolicyRequest(input *CreateTrafficPolicyInput) (req *request.Request, output *CreateTrafficPolicyOutput) {
  357. op := &request.Operation{
  358. Name: opCreateTrafficPolicy,
  359. HTTPMethod: "POST",
  360. HTTPPath: "/2013-04-01/trafficpolicy",
  361. }
  362. if input == nil {
  363. input = &CreateTrafficPolicyInput{}
  364. }
  365. req = c.newRequest(op, input, output)
  366. output = &CreateTrafficPolicyOutput{}
  367. req.Data = output
  368. return
  369. }
  370. // Creates a traffic policy, which you use to create multiple DNS resource record
  371. // sets for one domain name (such as example.com) or one subdomain name (such
  372. // as www.example.com).
  373. //
  374. // To create a traffic policy, send a POST request to the /Route 53 API version/trafficpolicy
  375. // resource. The request body must include a document with a CreateTrafficPolicyRequest
  376. // element. The response includes the CreateTrafficPolicyResponse element, which
  377. // contains information about the new traffic policy.
  378. func (c *Route53) CreateTrafficPolicy(input *CreateTrafficPolicyInput) (*CreateTrafficPolicyOutput, error) {
  379. req, out := c.CreateTrafficPolicyRequest(input)
  380. err := req.Send()
  381. return out, err
  382. }
  383. const opCreateTrafficPolicyInstance = "CreateTrafficPolicyInstance"
  384. // CreateTrafficPolicyInstanceRequest generates a "aws/request.Request" representing the
  385. // client's request for the CreateTrafficPolicyInstance operation. The "output" return
  386. // value can be used to capture response data after the request's "Send" method
  387. // is called.
  388. //
  389. // Creating a request object using this method should be used when you want to inject
  390. // custom logic into the request's lifecycle using a custom handler, or if you want to
  391. // access properties on the request object before or after sending the request. If
  392. // you just want the service response, call the CreateTrafficPolicyInstance method directly
  393. // instead.
  394. //
  395. // Note: You must call the "Send" method on the returned request object in order
  396. // to execute the request.
  397. //
  398. // // Example sending a request using the CreateTrafficPolicyInstanceRequest method.
  399. // req, resp := client.CreateTrafficPolicyInstanceRequest(params)
  400. //
  401. // err := req.Send()
  402. // if err == nil { // resp is now filled
  403. // fmt.Println(resp)
  404. // }
  405. //
  406. func (c *Route53) CreateTrafficPolicyInstanceRequest(input *CreateTrafficPolicyInstanceInput) (req *request.Request, output *CreateTrafficPolicyInstanceOutput) {
  407. op := &request.Operation{
  408. Name: opCreateTrafficPolicyInstance,
  409. HTTPMethod: "POST",
  410. HTTPPath: "/2013-04-01/trafficpolicyinstance",
  411. }
  412. if input == nil {
  413. input = &CreateTrafficPolicyInstanceInput{}
  414. }
  415. req = c.newRequest(op, input, output)
  416. output = &CreateTrafficPolicyInstanceOutput{}
  417. req.Data = output
  418. return
  419. }
  420. // Creates resource record sets in a specified hosted zone based on the settings
  421. // in a specified traffic policy version. In addition, CreateTrafficPolicyInstance
  422. // associates the resource record sets with a specified domain name (such as
  423. // example.com) or subdomain name (such as www.example.com). Amazon Route 53
  424. // responds to DNS queries for the domain or subdomain name by using the resource
  425. // record sets that CreateTrafficPolicyInstance created.
  426. //
  427. // To create a traffic policy instance, send a POST request to the /Route 53
  428. // API version/trafficpolicyinstance resource. The request body must include
  429. // a document with a CreateTrafficPolicyRequest element. The response returns
  430. // the CreateTrafficPolicyInstanceResponse element, which contains information
  431. // about the traffic policy instance.
  432. func (c *Route53) CreateTrafficPolicyInstance(input *CreateTrafficPolicyInstanceInput) (*CreateTrafficPolicyInstanceOutput, error) {
  433. req, out := c.CreateTrafficPolicyInstanceRequest(input)
  434. err := req.Send()
  435. return out, err
  436. }
  437. const opCreateTrafficPolicyVersion = "CreateTrafficPolicyVersion"
  438. // CreateTrafficPolicyVersionRequest generates a "aws/request.Request" representing the
  439. // client's request for the CreateTrafficPolicyVersion operation. The "output" return
  440. // value can be used to capture response data after the request's "Send" method
  441. // is called.
  442. //
  443. // Creating a request object using this method should be used when you want to inject
  444. // custom logic into the request's lifecycle using a custom handler, or if you want to
  445. // access properties on the request object before or after sending the request. If
  446. // you just want the service response, call the CreateTrafficPolicyVersion method directly
  447. // instead.
  448. //
  449. // Note: You must call the "Send" method on the returned request object in order
  450. // to execute the request.
  451. //
  452. // // Example sending a request using the CreateTrafficPolicyVersionRequest method.
  453. // req, resp := client.CreateTrafficPolicyVersionRequest(params)
  454. //
  455. // err := req.Send()
  456. // if err == nil { // resp is now filled
  457. // fmt.Println(resp)
  458. // }
  459. //
  460. func (c *Route53) CreateTrafficPolicyVersionRequest(input *CreateTrafficPolicyVersionInput) (req *request.Request, output *CreateTrafficPolicyVersionOutput) {
  461. op := &request.Operation{
  462. Name: opCreateTrafficPolicyVersion,
  463. HTTPMethod: "POST",
  464. HTTPPath: "/2013-04-01/trafficpolicy/{Id}",
  465. }
  466. if input == nil {
  467. input = &CreateTrafficPolicyVersionInput{}
  468. }
  469. req = c.newRequest(op, input, output)
  470. output = &CreateTrafficPolicyVersionOutput{}
  471. req.Data = output
  472. return
  473. }
  474. // Creates a new version of an existing traffic policy. When you create a new
  475. // version of a traffic policy, you specify the ID of the traffic policy that
  476. // you want to update and a JSON-formatted document that describes the new version.
  477. //
  478. // You use traffic policies to create multiple DNS resource record sets for
  479. // one domain name (such as example.com) or one subdomain name (such as www.example.com).
  480. //
  481. // To create a new version, send a POST request to the /Route 53 API version/trafficpolicy/
  482. // resource. The request body includes a document with a CreateTrafficPolicyVersionRequest
  483. // element. The response returns the CreateTrafficPolicyVersionResponse element,
  484. // which contains information about the new version of the traffic policy.
  485. func (c *Route53) CreateTrafficPolicyVersion(input *CreateTrafficPolicyVersionInput) (*CreateTrafficPolicyVersionOutput, error) {
  486. req, out := c.CreateTrafficPolicyVersionRequest(input)
  487. err := req.Send()
  488. return out, err
  489. }
  490. const opDeleteHealthCheck = "DeleteHealthCheck"
  491. // DeleteHealthCheckRequest generates a "aws/request.Request" representing the
  492. // client's request for the DeleteHealthCheck operation. The "output" return
  493. // value can be used to capture response data after the request's "Send" method
  494. // is called.
  495. //
  496. // Creating a request object using this method should be used when you want to inject
  497. // custom logic into the request's lifecycle using a custom handler, or if you want to
  498. // access properties on the request object before or after sending the request. If
  499. // you just want the service response, call the DeleteHealthCheck method directly
  500. // instead.
  501. //
  502. // Note: You must call the "Send" method on the returned request object in order
  503. // to execute the request.
  504. //
  505. // // Example sending a request using the DeleteHealthCheckRequest method.
  506. // req, resp := client.DeleteHealthCheckRequest(params)
  507. //
  508. // err := req.Send()
  509. // if err == nil { // resp is now filled
  510. // fmt.Println(resp)
  511. // }
  512. //
  513. func (c *Route53) DeleteHealthCheckRequest(input *DeleteHealthCheckInput) (req *request.Request, output *DeleteHealthCheckOutput) {
  514. op := &request.Operation{
  515. Name: opDeleteHealthCheck,
  516. HTTPMethod: "DELETE",
  517. HTTPPath: "/2013-04-01/healthcheck/{HealthCheckId}",
  518. }
  519. if input == nil {
  520. input = &DeleteHealthCheckInput{}
  521. }
  522. req = c.newRequest(op, input, output)
  523. output = &DeleteHealthCheckOutput{}
  524. req.Data = output
  525. return
  526. }
  527. // This action deletes a health check. To delete a health check, send a DELETE
  528. // request to the /Route 53 API version/healthcheck/health check ID resource.
  529. //
  530. // You can delete a health check only if there are no resource record sets
  531. // associated with this health check. If resource record sets are associated
  532. // with this health check, you must disassociate them before you can delete
  533. // your health check. If you try to delete a health check that is associated
  534. // with resource record sets, Amazon Route 53 will deny your request with a
  535. // HealthCheckInUse error. For information about disassociating the records
  536. // from your health check, see ChangeResourceRecordSets.
  537. func (c *Route53) DeleteHealthCheck(input *DeleteHealthCheckInput) (*DeleteHealthCheckOutput, error) {
  538. req, out := c.DeleteHealthCheckRequest(input)
  539. err := req.Send()
  540. return out, err
  541. }
  542. const opDeleteHostedZone = "DeleteHostedZone"
  543. // DeleteHostedZoneRequest generates a "aws/request.Request" representing the
  544. // client's request for the DeleteHostedZone operation. The "output" return
  545. // value can be used to capture response data after the request's "Send" method
  546. // is called.
  547. //
  548. // Creating a request object using this method should be used when you want to inject
  549. // custom logic into the request's lifecycle using a custom handler, or if you want to
  550. // access properties on the request object before or after sending the request. If
  551. // you just want the service response, call the DeleteHostedZone method directly
  552. // instead.
  553. //
  554. // Note: You must call the "Send" method on the returned request object in order
  555. // to execute the request.
  556. //
  557. // // Example sending a request using the DeleteHostedZoneRequest method.
  558. // req, resp := client.DeleteHostedZoneRequest(params)
  559. //
  560. // err := req.Send()
  561. // if err == nil { // resp is now filled
  562. // fmt.Println(resp)
  563. // }
  564. //
  565. func (c *Route53) DeleteHostedZoneRequest(input *DeleteHostedZoneInput) (req *request.Request, output *DeleteHostedZoneOutput) {
  566. op := &request.Operation{
  567. Name: opDeleteHostedZone,
  568. HTTPMethod: "DELETE",
  569. HTTPPath: "/2013-04-01/hostedzone/{Id}",
  570. }
  571. if input == nil {
  572. input = &DeleteHostedZoneInput{}
  573. }
  574. req = c.newRequest(op, input, output)
  575. output = &DeleteHostedZoneOutput{}
  576. req.Data = output
  577. return
  578. }
  579. // This action deletes a hosted zone. To delete a hosted zone, send a DELETE
  580. // request to the /Route 53 API version/hostedzone/hosted zone ID resource.
  581. //
  582. // You can delete a hosted zone only if there are no resource record sets other
  583. // than the default SOA record and NS resource record sets. If your hosted zone
  584. // contains other resource record sets, you must delete them before you can
  585. // delete your hosted zone. If you try to delete a hosted zone that contains
  586. // other resource record sets, Amazon Route 53 will deny your request with a
  587. // HostedZoneNotEmpty error. For information about deleting records from your
  588. // hosted zone, see ChangeResourceRecordSets.
  589. func (c *Route53) DeleteHostedZone(input *DeleteHostedZoneInput) (*DeleteHostedZoneOutput, error) {
  590. req, out := c.DeleteHostedZoneRequest(input)
  591. err := req.Send()
  592. return out, err
  593. }
  594. const opDeleteReusableDelegationSet = "DeleteReusableDelegationSet"
  595. // DeleteReusableDelegationSetRequest generates a "aws/request.Request" representing the
  596. // client's request for the DeleteReusableDelegationSet operation. The "output" return
  597. // value can be used to capture response data after the request's "Send" method
  598. // is called.
  599. //
  600. // Creating a request object using this method should be used when you want to inject
  601. // custom logic into the request's lifecycle using a custom handler, or if you want to
  602. // access properties on the request object before or after sending the request. If
  603. // you just want the service response, call the DeleteReusableDelegationSet method directly
  604. // instead.
  605. //
  606. // Note: You must call the "Send" method on the returned request object in order
  607. // to execute the request.
  608. //
  609. // // Example sending a request using the DeleteReusableDelegationSetRequest method.
  610. // req, resp := client.DeleteReusableDelegationSetRequest(params)
  611. //
  612. // err := req.Send()
  613. // if err == nil { // resp is now filled
  614. // fmt.Println(resp)
  615. // }
  616. //
  617. func (c *Route53) DeleteReusableDelegationSetRequest(input *DeleteReusableDelegationSetInput) (req *request.Request, output *DeleteReusableDelegationSetOutput) {
  618. op := &request.Operation{
  619. Name: opDeleteReusableDelegationSet,
  620. HTTPMethod: "DELETE",
  621. HTTPPath: "/2013-04-01/delegationset/{Id}",
  622. }
  623. if input == nil {
  624. input = &DeleteReusableDelegationSetInput{}
  625. }
  626. req = c.newRequest(op, input, output)
  627. output = &DeleteReusableDelegationSetOutput{}
  628. req.Data = output
  629. return
  630. }
  631. // This action deletes a reusable delegation set. To delete a reusable delegation
  632. // set, send a DELETE request to the /Route 53 API version/delegationset/delegation
  633. // set ID resource.
  634. //
  635. // You can delete a reusable delegation set only if there are no associated
  636. // hosted zones. If your reusable delegation set contains associated hosted
  637. // zones, you must delete them before you can delete your reusable delegation
  638. // set. If you try to delete a reusable delegation set that contains associated
  639. // hosted zones, Amazon Route 53 will deny your request with a DelegationSetInUse
  640. // error.
  641. func (c *Route53) DeleteReusableDelegationSet(input *DeleteReusableDelegationSetInput) (*DeleteReusableDelegationSetOutput, error) {
  642. req, out := c.DeleteReusableDelegationSetRequest(input)
  643. err := req.Send()
  644. return out, err
  645. }
  646. const opDeleteTrafficPolicy = "DeleteTrafficPolicy"
  647. // DeleteTrafficPolicyRequest generates a "aws/request.Request" representing the
  648. // client's request for the DeleteTrafficPolicy operation. The "output" return
  649. // value can be used to capture response data after the request's "Send" method
  650. // is called.
  651. //
  652. // Creating a request object using this method should be used when you want to inject
  653. // custom logic into the request's lifecycle using a custom handler, or if you want to
  654. // access properties on the request object before or after sending the request. If
  655. // you just want the service response, call the DeleteTrafficPolicy method directly
  656. // instead.
  657. //
  658. // Note: You must call the "Send" method on the returned request object in order
  659. // to execute the request.
  660. //
  661. // // Example sending a request using the DeleteTrafficPolicyRequest method.
  662. // req, resp := client.DeleteTrafficPolicyRequest(params)
  663. //
  664. // err := req.Send()
  665. // if err == nil { // resp is now filled
  666. // fmt.Println(resp)
  667. // }
  668. //
  669. func (c *Route53) DeleteTrafficPolicyRequest(input *DeleteTrafficPolicyInput) (req *request.Request, output *DeleteTrafficPolicyOutput) {
  670. op := &request.Operation{
  671. Name: opDeleteTrafficPolicy,
  672. HTTPMethod: "DELETE",
  673. HTTPPath: "/2013-04-01/trafficpolicy/{Id}/{Version}",
  674. }
  675. if input == nil {
  676. input = &DeleteTrafficPolicyInput{}
  677. }
  678. req = c.newRequest(op, input, output)
  679. output = &DeleteTrafficPolicyOutput{}
  680. req.Data = output
  681. return
  682. }
  683. // Deletes a traffic policy. To delete a traffic policy, send a DELETE request
  684. // to the /Route 53 API version/trafficpolicy resource.
  685. func (c *Route53) DeleteTrafficPolicy(input *DeleteTrafficPolicyInput) (*DeleteTrafficPolicyOutput, error) {
  686. req, out := c.DeleteTrafficPolicyRequest(input)
  687. err := req.Send()
  688. return out, err
  689. }
  690. const opDeleteTrafficPolicyInstance = "DeleteTrafficPolicyInstance"
  691. // DeleteTrafficPolicyInstanceRequest generates a "aws/request.Request" representing the
  692. // client's request for the DeleteTrafficPolicyInstance operation. The "output" return
  693. // value can be used to capture response data after the request's "Send" method
  694. // is called.
  695. //
  696. // Creating a request object using this method should be used when you want to inject
  697. // custom logic into the request's lifecycle using a custom handler, or if you want to
  698. // access properties on the request object before or after sending the request. If
  699. // you just want the service response, call the DeleteTrafficPolicyInstance method directly
  700. // instead.
  701. //
  702. // Note: You must call the "Send" method on the returned request object in order
  703. // to execute the request.
  704. //
  705. // // Example sending a request using the DeleteTrafficPolicyInstanceRequest method.
  706. // req, resp := client.DeleteTrafficPolicyInstanceRequest(params)
  707. //
  708. // err := req.Send()
  709. // if err == nil { // resp is now filled
  710. // fmt.Println(resp)
  711. // }
  712. //
  713. func (c *Route53) DeleteTrafficPolicyInstanceRequest(input *DeleteTrafficPolicyInstanceInput) (req *request.Request, output *DeleteTrafficPolicyInstanceOutput) {
  714. op := &request.Operation{
  715. Name: opDeleteTrafficPolicyInstance,
  716. HTTPMethod: "DELETE",
  717. HTTPPath: "/2013-04-01/trafficpolicyinstance/{Id}",
  718. }
  719. if input == nil {
  720. input = &DeleteTrafficPolicyInstanceInput{}
  721. }
  722. req = c.newRequest(op, input, output)
  723. output = &DeleteTrafficPolicyInstanceOutput{}
  724. req.Data = output
  725. return
  726. }
  727. // Deletes a traffic policy instance and all of the resource record sets that
  728. // Amazon Route 53 created when you created the instance.
  729. //
  730. // To delete a traffic policy instance, send a DELETE request to the /Route
  731. // 53 API version/trafficpolicy/traffic policy instance ID resource.
  732. //
  733. // When you delete a traffic policy instance, Amazon Route 53 also deletes
  734. // all of the resource record sets that were created when you created the traffic
  735. // policy instance.
  736. func (c *Route53) DeleteTrafficPolicyInstance(input *DeleteTrafficPolicyInstanceInput) (*DeleteTrafficPolicyInstanceOutput, error) {
  737. req, out := c.DeleteTrafficPolicyInstanceRequest(input)
  738. err := req.Send()
  739. return out, err
  740. }
  741. const opDisassociateVPCFromHostedZone = "DisassociateVPCFromHostedZone"
  742. // DisassociateVPCFromHostedZoneRequest generates a "aws/request.Request" representing the
  743. // client's request for the DisassociateVPCFromHostedZone operation. The "output" return
  744. // value can be used to capture response data after the request's "Send" method
  745. // is called.
  746. //
  747. // Creating a request object using this method should be used when you want to inject
  748. // custom logic into the request's lifecycle using a custom handler, or if you want to
  749. // access properties on the request object before or after sending the request. If
  750. // you just want the service response, call the DisassociateVPCFromHostedZone method directly
  751. // instead.
  752. //
  753. // Note: You must call the "Send" method on the returned request object in order
  754. // to execute the request.
  755. //
  756. // // Example sending a request using the DisassociateVPCFromHostedZoneRequest method.
  757. // req, resp := client.DisassociateVPCFromHostedZoneRequest(params)
  758. //
  759. // err := req.Send()
  760. // if err == nil { // resp is now filled
  761. // fmt.Println(resp)
  762. // }
  763. //
  764. func (c *Route53) DisassociateVPCFromHostedZoneRequest(input *DisassociateVPCFromHostedZoneInput) (req *request.Request, output *DisassociateVPCFromHostedZoneOutput) {
  765. op := &request.Operation{
  766. Name: opDisassociateVPCFromHostedZone,
  767. HTTPMethod: "POST",
  768. HTTPPath: "/2013-04-01/hostedzone/{Id}/disassociatevpc",
  769. }
  770. if input == nil {
  771. input = &DisassociateVPCFromHostedZoneInput{}
  772. }
  773. req = c.newRequest(op, input, output)
  774. output = &DisassociateVPCFromHostedZoneOutput{}
  775. req.Data = output
  776. return
  777. }
  778. // This action disassociates a VPC from an hosted zone.
  779. //
  780. // To disassociate a VPC to a hosted zone, send a POST request to the /Route
  781. // 53 API version/hostedzone/hosted zone ID/disassociatevpc resource. The request
  782. // body must include a document with a DisassociateVPCFromHostedZoneRequest
  783. // element. The response returns the DisassociateVPCFromHostedZoneResponse element
  784. // that contains ChangeInfo for you to track the progress of the DisassociateVPCFromHostedZoneRequest
  785. // you made. See GetChange operation for how to track the progress of your change.
  786. func (c *Route53) DisassociateVPCFromHostedZone(input *DisassociateVPCFromHostedZoneInput) (*DisassociateVPCFromHostedZoneOutput, error) {
  787. req, out := c.DisassociateVPCFromHostedZoneRequest(input)
  788. err := req.Send()
  789. return out, err
  790. }
  791. const opGetChange = "GetChange"
  792. // GetChangeRequest generates a "aws/request.Request" representing the
  793. // client's request for the GetChange operation. The "output" return
  794. // value can be used to capture response data after the request's "Send" method
  795. // is called.
  796. //
  797. // Creating a request object using this method should be used when you want to inject
  798. // custom logic into the request's lifecycle using a custom handler, or if you want to
  799. // access properties on the request object before or after sending the request. If
  800. // you just want the service response, call the GetChange method directly
  801. // instead.
  802. //
  803. // Note: You must call the "Send" method on the returned request object in order
  804. // to execute the request.
  805. //
  806. // // Example sending a request using the GetChangeRequest method.
  807. // req, resp := client.GetChangeRequest(params)
  808. //
  809. // err := req.Send()
  810. // if err == nil { // resp is now filled
  811. // fmt.Println(resp)
  812. // }
  813. //
  814. func (c *Route53) GetChangeRequest(input *GetChangeInput) (req *request.Request, output *GetChangeOutput) {
  815. op := &request.Operation{
  816. Name: opGetChange,
  817. HTTPMethod: "GET",
  818. HTTPPath: "/2013-04-01/change/{Id}",
  819. }
  820. if input == nil {
  821. input = &GetChangeInput{}
  822. }
  823. req = c.newRequest(op, input, output)
  824. output = &GetChangeOutput{}
  825. req.Data = output
  826. return
  827. }
  828. // This action returns the current status of a change batch request. The status
  829. // is one of the following values:
  830. //
  831. // - PENDING indicates that the changes in this request have not replicated
  832. // to all Amazon Route 53 DNS servers. This is the initial status of all change
  833. // batch requests.
  834. //
  835. // - INSYNC indicates that the changes have replicated to all Amazon Route
  836. // 53 DNS servers.
  837. func (c *Route53) GetChange(input *GetChangeInput) (*GetChangeOutput, error) {
  838. req, out := c.GetChangeRequest(input)
  839. err := req.Send()
  840. return out, err
  841. }
  842. const opGetChangeDetails = "GetChangeDetails"
  843. // GetChangeDetailsRequest generates a "aws/request.Request" representing the
  844. // client's request for the GetChangeDetails operation. The "output" return
  845. // value can be used to capture response data after the request's "Send" method
  846. // is called.
  847. //
  848. // Creating a request object using this method should be used when you want to inject
  849. // custom logic into the request's lifecycle using a custom handler, or if you want to
  850. // access properties on the request object before or after sending the request. If
  851. // you just want the service response, call the GetChangeDetails method directly
  852. // instead.
  853. //
  854. // Note: You must call the "Send" method on the returned request object in order
  855. // to execute the request.
  856. //
  857. // // Example sending a request using the GetChangeDetailsRequest method.
  858. // req, resp := client.GetChangeDetailsRequest(params)
  859. //
  860. // err := req.Send()
  861. // if err == nil { // resp is now filled
  862. // fmt.Println(resp)
  863. // }
  864. //
  865. func (c *Route53) GetChangeDetailsRequest(input *GetChangeDetailsInput) (req *request.Request, output *GetChangeDetailsOutput) {
  866. if c.Client.Config.Logger != nil {
  867. c.Client.Config.Logger.Log("This operation, GetChangeDetails, has been deprecated")
  868. }
  869. op := &request.Operation{
  870. Name: opGetChangeDetails,
  871. HTTPMethod: "GET",
  872. HTTPPath: "/2013-04-01/changedetails/{Id}",
  873. }
  874. if input == nil {
  875. input = &GetChangeDetailsInput{}
  876. }
  877. req = c.newRequest(op, input, output)
  878. output = &GetChangeDetailsOutput{}
  879. req.Data = output
  880. return
  881. }
  882. // This action returns the status and changes of a change batch request.
  883. func (c *Route53) GetChangeDetails(input *GetChangeDetailsInput) (*GetChangeDetailsOutput, error) {
  884. req, out := c.GetChangeDetailsRequest(input)
  885. err := req.Send()
  886. return out, err
  887. }
  888. const opGetCheckerIpRanges = "GetCheckerIpRanges"
  889. // GetCheckerIpRangesRequest generates a "aws/request.Request" representing the
  890. // client's request for the GetCheckerIpRanges operation. The "output" return
  891. // value can be used to capture response data after the request's "Send" method
  892. // is called.
  893. //
  894. // Creating a request object using this method should be used when you want to inject
  895. // custom logic into the request's lifecycle using a custom handler, or if you want to
  896. // access properties on the request object before or after sending the request. If
  897. // you just want the service response, call the GetCheckerIpRanges method directly
  898. // instead.
  899. //
  900. // Note: You must call the "Send" method on the returned request object in order
  901. // to execute the request.
  902. //
  903. // // Example sending a request using the GetCheckerIpRangesRequest method.
  904. // req, resp := client.GetCheckerIpRangesRequest(params)
  905. //
  906. // err := req.Send()
  907. // if err == nil { // resp is now filled
  908. // fmt.Println(resp)
  909. // }
  910. //
  911. func (c *Route53) GetCheckerIpRangesRequest(input *GetCheckerIpRangesInput) (req *request.Request, output *GetCheckerIpRangesOutput) {
  912. op := &request.Operation{
  913. Name: opGetCheckerIpRanges,
  914. HTTPMethod: "GET",
  915. HTTPPath: "/2013-04-01/checkeripranges",
  916. }
  917. if input == nil {
  918. input = &GetCheckerIpRangesInput{}
  919. }
  920. req = c.newRequest(op, input, output)
  921. output = &GetCheckerIpRangesOutput{}
  922. req.Data = output
  923. return
  924. }
  925. // To retrieve a list of the IP ranges used by Amazon Route 53 health checkers
  926. // to check the health of your resources, send a GET request to the /Route 53
  927. // API version/checkeripranges resource. You can use these IP addresses to configure
  928. // router and firewall rules to allow health checkers to check the health of
  929. // your resources.
  930. func (c *Route53) GetCheckerIpRanges(input *GetCheckerIpRangesInput) (*GetCheckerIpRangesOutput, error) {
  931. req, out := c.GetCheckerIpRangesRequest(input)
  932. err := req.Send()
  933. return out, err
  934. }
  935. const opGetGeoLocation = "GetGeoLocation"
  936. // GetGeoLocationRequest generates a "aws/request.Request" representing the
  937. // client's request for the GetGeoLocation operation. The "output" return
  938. // value can be used to capture response data after the request's "Send" method
  939. // is called.
  940. //
  941. // Creating a request object using this method should be used when you want to inject
  942. // custom logic into the request's lifecycle using a custom handler, or if you want to
  943. // access properties on the request object before or after sending the request. If
  944. // you just want the service response, call the GetGeoLocation method directly
  945. // instead.
  946. //
  947. // Note: You must call the "Send" method on the returned request object in order
  948. // to execute the request.
  949. //
  950. // // Example sending a request using the GetGeoLocationRequest method.
  951. // req, resp := client.GetGeoLocationRequest(params)
  952. //
  953. // err := req.Send()
  954. // if err == nil { // resp is now filled
  955. // fmt.Println(resp)
  956. // }
  957. //
  958. func (c *Route53) GetGeoLocationRequest(input *GetGeoLocationInput) (req *request.Request, output *GetGeoLocationOutput) {
  959. op := &request.Operation{
  960. Name: opGetGeoLocation,
  961. HTTPMethod: "GET",
  962. HTTPPath: "/2013-04-01/geolocation",
  963. }
  964. if input == nil {
  965. input = &GetGeoLocationInput{}
  966. }
  967. req = c.newRequest(op, input, output)
  968. output = &GetGeoLocationOutput{}
  969. req.Data = output
  970. return
  971. }
  972. // To retrieve a single geo location, send a GET request to the /Route 53 API
  973. // version/geolocation resource with one of these options: continentcode | countrycode
  974. // | countrycode and subdivisioncode.
  975. func (c *Route53) GetGeoLocation(input *GetGeoLocationInput) (*GetGeoLocationOutput, error) {
  976. req, out := c.GetGeoLocationRequest(input)
  977. err := req.Send()
  978. return out, err
  979. }
  980. const opGetHealthCheck = "GetHealthCheck"
  981. // GetHealthCheckRequest generates a "aws/request.Request" representing the
  982. // client's request for the GetHealthCheck operation. The "output" return
  983. // value can be used to capture response data after the request's "Send" method
  984. // is called.
  985. //
  986. // Creating a request object using this method should be used when you want to inject
  987. // custom logic into the request's lifecycle using a custom handler, or if you want to
  988. // access properties on the request object before or after sending the request. If
  989. // you just want the service response, call the GetHealthCheck method directly
  990. // instead.
  991. //
  992. // Note: You must call the "Send" method on the returned request object in order
  993. // to execute the request.
  994. //
  995. // // Example sending a request using the GetHealthCheckRequest method.
  996. // req, resp := client.GetHealthCheckRequest(params)
  997. //
  998. // err := req.Send()
  999. // if err == nil { // resp is now filled
  1000. // fmt.Println(resp)
  1001. // }
  1002. //
  1003. func (c *Route53) GetHealthCheckRequest(input *GetHealthCheckInput) (req *request.Request, output *GetHealthCheckOutput) {
  1004. op := &request.Operation{
  1005. Name: opGetHealthCheck,
  1006. HTTPMethod: "GET",
  1007. HTTPPath: "/2013-04-01/healthcheck/{HealthCheckId}",
  1008. }
  1009. if input == nil {
  1010. input = &GetHealthCheckInput{}
  1011. }
  1012. req = c.newRequest(op, input, output)
  1013. output = &GetHealthCheckOutput{}
  1014. req.Data = output
  1015. return
  1016. }
  1017. // To retrieve the health check, send a GET request to the /Route 53 API version/healthcheck/health
  1018. // check ID resource.
  1019. func (c *Route53) GetHealthCheck(input *GetHealthCheckInput) (*GetHealthCheckOutput, error) {
  1020. req, out := c.GetHealthCheckRequest(input)
  1021. err := req.Send()
  1022. return out, err
  1023. }
  1024. const opGetHealthCheckCount = "GetHealthCheckCount"
  1025. // GetHealthCheckCountRequest generates a "aws/request.Request" representing the
  1026. // client's request for the GetHealthCheckCount operation. The "output" return
  1027. // value can be used to capture response data after the request's "Send" method
  1028. // is called.
  1029. //
  1030. // Creating a request object using this method should be used when you want to inject
  1031. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1032. // access properties on the request object before or after sending the request. If
  1033. // you just want the service response, call the GetHealthCheckCount method directly
  1034. // instead.
  1035. //
  1036. // Note: You must call the "Send" method on the returned request object in order
  1037. // to execute the request.
  1038. //
  1039. // // Example sending a request using the GetHealthCheckCountRequest method.
  1040. // req, resp := client.GetHealthCheckCountRequest(params)
  1041. //
  1042. // err := req.Send()
  1043. // if err == nil { // resp is now filled
  1044. // fmt.Println(resp)
  1045. // }
  1046. //
  1047. func (c *Route53) GetHealthCheckCountRequest(input *GetHealthCheckCountInput) (req *request.Request, output *GetHealthCheckCountOutput) {
  1048. op := &request.Operation{
  1049. Name: opGetHealthCheckCount,
  1050. HTTPMethod: "GET",
  1051. HTTPPath: "/2013-04-01/healthcheckcount",
  1052. }
  1053. if input == nil {
  1054. input = &GetHealthCheckCountInput{}
  1055. }
  1056. req = c.newRequest(op, input, output)
  1057. output = &GetHealthCheckCountOutput{}
  1058. req.Data = output
  1059. return
  1060. }
  1061. // To retrieve a count of all your health checks, send a GET request to the
  1062. // /Route 53 API version/healthcheckcount resource.
  1063. func (c *Route53) GetHealthCheckCount(input *GetHealthCheckCountInput) (*GetHealthCheckCountOutput, error) {
  1064. req, out := c.GetHealthCheckCountRequest(input)
  1065. err := req.Send()
  1066. return out, err
  1067. }
  1068. const opGetHealthCheckLastFailureReason = "GetHealthCheckLastFailureReason"
  1069. // GetHealthCheckLastFailureReasonRequest generates a "aws/request.Request" representing the
  1070. // client's request for the GetHealthCheckLastFailureReason operation. The "output" return
  1071. // value can be used to capture response data after the request's "Send" method
  1072. // is called.
  1073. //
  1074. // Creating a request object using this method should be used when you want to inject
  1075. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1076. // access properties on the request object before or after sending the request. If
  1077. // you just want the service response, call the GetHealthCheckLastFailureReason method directly
  1078. // instead.
  1079. //
  1080. // Note: You must call the "Send" method on the returned request object in order
  1081. // to execute the request.
  1082. //
  1083. // // Example sending a request using the GetHealthCheckLastFailureReasonRequest method.
  1084. // req, resp := client.GetHealthCheckLastFailureReasonRequest(params)
  1085. //
  1086. // err := req.Send()
  1087. // if err == nil { // resp is now filled
  1088. // fmt.Println(resp)
  1089. // }
  1090. //
  1091. func (c *Route53) GetHealthCheckLastFailureReasonRequest(input *GetHealthCheckLastFailureReasonInput) (req *request.Request, output *GetHealthCheckLastFailureReasonOutput) {
  1092. op := &request.Operation{
  1093. Name: opGetHealthCheckLastFailureReason,
  1094. HTTPMethod: "GET",
  1095. HTTPPath: "/2013-04-01/healthcheck/{HealthCheckId}/lastfailurereason",
  1096. }
  1097. if input == nil {
  1098. input = &GetHealthCheckLastFailureReasonInput{}
  1099. }
  1100. req = c.newRequest(op, input, output)
  1101. output = &GetHealthCheckLastFailureReasonOutput{}
  1102. req.Data = output
  1103. return
  1104. }
  1105. // If you want to learn why a health check is currently failing or why it failed
  1106. // most recently (if at all), you can get the failure reason for the most recent
  1107. // failure. Send a GET request to the /Route 53 API version/healthcheck/health
  1108. // check ID/lastfailurereason resource.
  1109. func (c *Route53) GetHealthCheckLastFailureReason(input *GetHealthCheckLastFailureReasonInput) (*GetHealthCheckLastFailureReasonOutput, error) {
  1110. req, out := c.GetHealthCheckLastFailureReasonRequest(input)
  1111. err := req.Send()
  1112. return out, err
  1113. }
  1114. const opGetHealthCheckStatus = "GetHealthCheckStatus"
  1115. // GetHealthCheckStatusRequest generates a "aws/request.Request" representing the
  1116. // client's request for the GetHealthCheckStatus operation. The "output" return
  1117. // value can be used to capture response data after the request's "Send" method
  1118. // is called.
  1119. //
  1120. // Creating a request object using this method should be used when you want to inject
  1121. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1122. // access properties on the request object before or after sending the request. If
  1123. // you just want the service response, call the GetHealthCheckStatus method directly
  1124. // instead.
  1125. //
  1126. // Note: You must call the "Send" method on the returned request object in order
  1127. // to execute the request.
  1128. //
  1129. // // Example sending a request using the GetHealthCheckStatusRequest method.
  1130. // req, resp := client.GetHealthCheckStatusRequest(params)
  1131. //
  1132. // err := req.Send()
  1133. // if err == nil { // resp is now filled
  1134. // fmt.Println(resp)
  1135. // }
  1136. //
  1137. func (c *Route53) GetHealthCheckStatusRequest(input *GetHealthCheckStatusInput) (req *request.Request, output *GetHealthCheckStatusOutput) {
  1138. op := &request.Operation{
  1139. Name: opGetHealthCheckStatus,
  1140. HTTPMethod: "GET",
  1141. HTTPPath: "/2013-04-01/healthcheck/{HealthCheckId}/status",
  1142. }
  1143. if input == nil {
  1144. input = &GetHealthCheckStatusInput{}
  1145. }
  1146. req = c.newRequest(op, input, output)
  1147. output = &GetHealthCheckStatusOutput{}
  1148. req.Data = output
  1149. return
  1150. }
  1151. // To retrieve the health check status, send a GET request to the /Route 53
  1152. // API version/healthcheck/health check ID/status resource. You can use this
  1153. // call to get a health check's current status.
  1154. func (c *Route53) GetHealthCheckStatus(input *GetHealthCheckStatusInput) (*GetHealthCheckStatusOutput, error) {
  1155. req, out := c.GetHealthCheckStatusRequest(input)
  1156. err := req.Send()
  1157. return out, err
  1158. }
  1159. const opGetHostedZone = "GetHostedZone"
  1160. // GetHostedZoneRequest generates a "aws/request.Request" representing the
  1161. // client's request for the GetHostedZone operation. The "output" return
  1162. // value can be used to capture response data after the request's "Send" method
  1163. // is called.
  1164. //
  1165. // Creating a request object using this method should be used when you want to inject
  1166. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1167. // access properties on the request object before or after sending the request. If
  1168. // you just want the service response, call the GetHostedZone method directly
  1169. // instead.
  1170. //
  1171. // Note: You must call the "Send" method on the returned request object in order
  1172. // to execute the request.
  1173. //
  1174. // // Example sending a request using the GetHostedZoneRequest method.
  1175. // req, resp := client.GetHostedZoneRequest(params)
  1176. //
  1177. // err := req.Send()
  1178. // if err == nil { // resp is now filled
  1179. // fmt.Println(resp)
  1180. // }
  1181. //
  1182. func (c *Route53) GetHostedZoneRequest(input *GetHostedZoneInput) (req *request.Request, output *GetHostedZoneOutput) {
  1183. op := &request.Operation{
  1184. Name: opGetHostedZone,
  1185. HTTPMethod: "GET",
  1186. HTTPPath: "/2013-04-01/hostedzone/{Id}",
  1187. }
  1188. if input == nil {
  1189. input = &GetHostedZoneInput{}
  1190. }
  1191. req = c.newRequest(op, input, output)
  1192. output = &GetHostedZoneOutput{}
  1193. req.Data = output
  1194. return
  1195. }
  1196. // To retrieve the delegation set for a hosted zone, send a GET request to the
  1197. // /Route 53 API version/hostedzone/hosted zone ID resource. The delegation
  1198. // set is the four Amazon Route 53 name servers that were assigned to the hosted
  1199. // zone when you created it.
  1200. func (c *Route53) GetHostedZone(input *GetHostedZoneInput) (*GetHostedZoneOutput, error) {
  1201. req, out := c.GetHostedZoneRequest(input)
  1202. err := req.Send()
  1203. return out, err
  1204. }
  1205. const opGetHostedZoneCount = "GetHostedZoneCount"
  1206. // GetHostedZoneCountRequest generates a "aws/request.Request" representing the
  1207. // client's request for the GetHostedZoneCount operation. The "output" return
  1208. // value can be used to capture response data after the request's "Send" method
  1209. // is called.
  1210. //
  1211. // Creating a request object using this method should be used when you want to inject
  1212. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1213. // access properties on the request object before or after sending the request. If
  1214. // you just want the service response, call the GetHostedZoneCount method directly
  1215. // instead.
  1216. //
  1217. // Note: You must call the "Send" method on the returned request object in order
  1218. // to execute the request.
  1219. //
  1220. // // Example sending a request using the GetHostedZoneCountRequest method.
  1221. // req, resp := client.GetHostedZoneCountRequest(params)
  1222. //
  1223. // err := req.Send()
  1224. // if err == nil { // resp is now filled
  1225. // fmt.Println(resp)
  1226. // }
  1227. //
  1228. func (c *Route53) GetHostedZoneCountRequest(input *GetHostedZoneCountInput) (req *request.Request, output *GetHostedZoneCountOutput) {
  1229. op := &request.Operation{
  1230. Name: opGetHostedZoneCount,
  1231. HTTPMethod: "GET",
  1232. HTTPPath: "/2013-04-01/hostedzonecount",
  1233. }
  1234. if input == nil {
  1235. input = &GetHostedZoneCountInput{}
  1236. }
  1237. req = c.newRequest(op, input, output)
  1238. output = &GetHostedZoneCountOutput{}
  1239. req.Data = output
  1240. return
  1241. }
  1242. // To retrieve a count of all your hosted zones, send a GET request to the /Route
  1243. // 53 API version/hostedzonecount resource.
  1244. func (c *Route53) GetHostedZoneCount(input *GetHostedZoneCountInput) (*GetHostedZoneCountOutput, error) {
  1245. req, out := c.GetHostedZoneCountRequest(input)
  1246. err := req.Send()
  1247. return out, err
  1248. }
  1249. const opGetReusableDelegationSet = "GetReusableDelegationSet"
  1250. // GetReusableDelegationSetRequest generates a "aws/request.Request" representing the
  1251. // client's request for the GetReusableDelegationSet operation. The "output" return
  1252. // value can be used to capture response data after the request's "Send" method
  1253. // is called.
  1254. //
  1255. // Creating a request object using this method should be used when you want to inject
  1256. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1257. // access properties on the request object before or after sending the request. If
  1258. // you just want the service response, call the GetReusableDelegationSet method directly
  1259. // instead.
  1260. //
  1261. // Note: You must call the "Send" method on the returned request object in order
  1262. // to execute the request.
  1263. //
  1264. // // Example sending a request using the GetReusableDelegationSetRequest method.
  1265. // req, resp := client.GetReusableDelegationSetRequest(params)
  1266. //
  1267. // err := req.Send()
  1268. // if err == nil { // resp is now filled
  1269. // fmt.Println(resp)
  1270. // }
  1271. //
  1272. func (c *Route53) GetReusableDelegationSetRequest(input *GetReusableDelegationSetInput) (req *request.Request, output *GetReusableDelegationSetOutput) {
  1273. op := &request.Operation{
  1274. Name: opGetReusableDelegationSet,
  1275. HTTPMethod: "GET",
  1276. HTTPPath: "/2013-04-01/delegationset/{Id}",
  1277. }
  1278. if input == nil {
  1279. input = &GetReusableDelegationSetInput{}
  1280. }
  1281. req = c.newRequest(op, input, output)
  1282. output = &GetReusableDelegationSetOutput{}
  1283. req.Data = output
  1284. return
  1285. }
  1286. // To retrieve the reusable delegation set, send a GET request to the /Route
  1287. // 53 API version/delegationset/delegation set ID resource.
  1288. func (c *Route53) GetReusableDelegationSet(input *GetReusableDelegationSetInput) (*GetReusableDelegationSetOutput, error) {
  1289. req, out := c.GetReusableDelegationSetRequest(input)
  1290. err := req.Send()
  1291. return out, err
  1292. }
  1293. const opGetTrafficPolicy = "GetTrafficPolicy"
  1294. // GetTrafficPolicyRequest generates a "aws/request.Request" representing the
  1295. // client's request for the GetTrafficPolicy operation. The "output" return
  1296. // value can be used to capture response data after the request's "Send" method
  1297. // is called.
  1298. //
  1299. // Creating a request object using this method should be used when you want to inject
  1300. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1301. // access properties on the request object before or after sending the request. If
  1302. // you just want the service response, call the GetTrafficPolicy method directly
  1303. // instead.
  1304. //
  1305. // Note: You must call the "Send" method on the returned request object in order
  1306. // to execute the request.
  1307. //
  1308. // // Example sending a request using the GetTrafficPolicyRequest method.
  1309. // req, resp := client.GetTrafficPolicyRequest(params)
  1310. //
  1311. // err := req.Send()
  1312. // if err == nil { // resp is now filled
  1313. // fmt.Println(resp)
  1314. // }
  1315. //
  1316. func (c *Route53) GetTrafficPolicyRequest(input *GetTrafficPolicyInput) (req *request.Request, output *GetTrafficPolicyOutput) {
  1317. op := &request.Operation{
  1318. Name: opGetTrafficPolicy,
  1319. HTTPMethod: "GET",
  1320. HTTPPath: "/2013-04-01/trafficpolicy/{Id}/{Version}",
  1321. }
  1322. if input == nil {
  1323. input = &GetTrafficPolicyInput{}
  1324. }
  1325. req = c.newRequest(op, input, output)
  1326. output = &GetTrafficPolicyOutput{}
  1327. req.Data = output
  1328. return
  1329. }
  1330. // Gets information about a specific traffic policy version. To get the information,
  1331. // send a GET request to the /Route 53 API version/trafficpolicy resource.
  1332. func (c *Route53) GetTrafficPolicy(input *GetTrafficPolicyInput) (*GetTrafficPolicyOutput, error) {
  1333. req, out := c.GetTrafficPolicyRequest(input)
  1334. err := req.Send()
  1335. return out, err
  1336. }
  1337. const opGetTrafficPolicyInstance = "GetTrafficPolicyInstance"
  1338. // GetTrafficPolicyInstanceRequest generates a "aws/request.Request" representing the
  1339. // client's request for the GetTrafficPolicyInstance operation. The "output" return
  1340. // value can be used to capture response data after the request's "Send" method
  1341. // is called.
  1342. //
  1343. // Creating a request object using this method should be used when you want to inject
  1344. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1345. // access properties on the request object before or after sending the request. If
  1346. // you just want the service response, call the GetTrafficPolicyInstance method directly
  1347. // instead.
  1348. //
  1349. // Note: You must call the "Send" method on the returned request object in order
  1350. // to execute the request.
  1351. //
  1352. // // Example sending a request using the GetTrafficPolicyInstanceRequest method.
  1353. // req, resp := client.GetTrafficPolicyInstanceRequest(params)
  1354. //
  1355. // err := req.Send()
  1356. // if err == nil { // resp is now filled
  1357. // fmt.Println(resp)
  1358. // }
  1359. //
  1360. func (c *Route53) GetTrafficPolicyInstanceRequest(input *GetTrafficPolicyInstanceInput) (req *request.Request, output *GetTrafficPolicyInstanceOutput) {
  1361. op := &request.Operation{
  1362. Name: opGetTrafficPolicyInstance,
  1363. HTTPMethod: "GET",
  1364. HTTPPath: "/2013-04-01/trafficpolicyinstance/{Id}",
  1365. }
  1366. if input == nil {
  1367. input = &GetTrafficPolicyInstanceInput{}
  1368. }
  1369. req = c.newRequest(op, input, output)
  1370. output = &GetTrafficPolicyInstanceOutput{}
  1371. req.Data = output
  1372. return
  1373. }
  1374. // Gets information about a specified traffic policy instance.
  1375. //
  1376. // To get information about the traffic policy instance, send a GET request
  1377. // to the /Route 53 API version/trafficpolicyinstance resource.
  1378. //
  1379. // After you submit a CreateTrafficPolicyInstance or an UpdateTrafficPolicyInstance
  1380. // request, there's a brief delay while Amazon Route 53 creates the resource
  1381. // record sets that are specified in the traffic policy definition. For more
  1382. // information, see the State response element.
  1383. func (c *Route53) GetTrafficPolicyInstance(input *GetTrafficPolicyInstanceInput) (*GetTrafficPolicyInstanceOutput, error) {
  1384. req, out := c.GetTrafficPolicyInstanceRequest(input)
  1385. err := req.Send()
  1386. return out, err
  1387. }
  1388. const opGetTrafficPolicyInstanceCount = "GetTrafficPolicyInstanceCount"
  1389. // GetTrafficPolicyInstanceCountRequest generates a "aws/request.Request" representing the
  1390. // client's request for the GetTrafficPolicyInstanceCount operation. The "output" return
  1391. // value can be used to capture response data after the request's "Send" method
  1392. // is called.
  1393. //
  1394. // Creating a request object using this method should be used when you want to inject
  1395. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1396. // access properties on the request object before or after sending the request. If
  1397. // you just want the service response, call the GetTrafficPolicyInstanceCount method directly
  1398. // instead.
  1399. //
  1400. // Note: You must call the "Send" method on the returned request object in order
  1401. // to execute the request.
  1402. //
  1403. // // Example sending a request using the GetTrafficPolicyInstanceCountRequest method.
  1404. // req, resp := client.GetTrafficPolicyInstanceCountRequest(params)
  1405. //
  1406. // err := req.Send()
  1407. // if err == nil { // resp is now filled
  1408. // fmt.Println(resp)
  1409. // }
  1410. //
  1411. func (c *Route53) GetTrafficPolicyInstanceCountRequest(input *GetTrafficPolicyInstanceCountInput) (req *request.Request, output *GetTrafficPolicyInstanceCountOutput) {
  1412. op := &request.Operation{
  1413. Name: opGetTrafficPolicyInstanceCount,
  1414. HTTPMethod: "GET",
  1415. HTTPPath: "/2013-04-01/trafficpolicyinstancecount",
  1416. }
  1417. if input == nil {
  1418. input = &GetTrafficPolicyInstanceCountInput{}
  1419. }
  1420. req = c.newRequest(op, input, output)
  1421. output = &GetTrafficPolicyInstanceCountOutput{}
  1422. req.Data = output
  1423. return
  1424. }
  1425. // Gets the number of traffic policy instances that are associated with the
  1426. // current AWS account.
  1427. //
  1428. // To get the number of traffic policy instances, send a GET request to the
  1429. // /Route 53 API version/trafficpolicyinstancecount resource.
  1430. func (c *Route53) GetTrafficPolicyInstanceCount(input *GetTrafficPolicyInstanceCountInput) (*GetTrafficPolicyInstanceCountOutput, error) {
  1431. req, out := c.GetTrafficPolicyInstanceCountRequest(input)
  1432. err := req.Send()
  1433. return out, err
  1434. }
  1435. const opListChangeBatchesByHostedZone = "ListChangeBatchesByHostedZone"
  1436. // ListChangeBatchesByHostedZoneRequest generates a "aws/request.Request" representing the
  1437. // client's request for the ListChangeBatchesByHostedZone operation. The "output" return
  1438. // value can be used to capture response data after the request's "Send" method
  1439. // is called.
  1440. //
  1441. // Creating a request object using this method should be used when you want to inject
  1442. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1443. // access properties on the request object before or after sending the request. If
  1444. // you just want the service response, call the ListChangeBatchesByHostedZone method directly
  1445. // instead.
  1446. //
  1447. // Note: You must call the "Send" method on the returned request object in order
  1448. // to execute the request.
  1449. //
  1450. // // Example sending a request using the ListChangeBatchesByHostedZoneRequest method.
  1451. // req, resp := client.ListChangeBatchesByHostedZoneRequest(params)
  1452. //
  1453. // err := req.Send()
  1454. // if err == nil { // resp is now filled
  1455. // fmt.Println(resp)
  1456. // }
  1457. //
  1458. func (c *Route53) ListChangeBatchesByHostedZoneRequest(input *ListChangeBatchesByHostedZoneInput) (req *request.Request, output *ListChangeBatchesByHostedZoneOutput) {
  1459. if c.Client.Config.Logger != nil {
  1460. c.Client.Config.Logger.Log("This operation, ListChangeBatchesByHostedZone, has been deprecated")
  1461. }
  1462. op := &request.Operation{
  1463. Name: opListChangeBatchesByHostedZone,
  1464. HTTPMethod: "GET",
  1465. HTTPPath: "/2013-04-01/hostedzone/{Id}/changes",
  1466. }
  1467. if input == nil {
  1468. input = &ListChangeBatchesByHostedZoneInput{}
  1469. }
  1470. req = c.newRequest(op, input, output)
  1471. output = &ListChangeBatchesByHostedZoneOutput{}
  1472. req.Data = output
  1473. return
  1474. }
  1475. // This action gets the list of ChangeBatches in a given time period for a given
  1476. // hosted zone.
  1477. func (c *Route53) ListChangeBatchesByHostedZone(input *ListChangeBatchesByHostedZoneInput) (*ListChangeBatchesByHostedZoneOutput, error) {
  1478. req, out := c.ListChangeBatchesByHostedZoneRequest(input)
  1479. err := req.Send()
  1480. return out, err
  1481. }
  1482. const opListChangeBatchesByRRSet = "ListChangeBatchesByRRSet"
  1483. // ListChangeBatchesByRRSetRequest generates a "aws/request.Request" representing the
  1484. // client's request for the ListChangeBatchesByRRSet operation. The "output" return
  1485. // value can be used to capture response data after the request's "Send" method
  1486. // is called.
  1487. //
  1488. // Creating a request object using this method should be used when you want to inject
  1489. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1490. // access properties on the request object before or after sending the request. If
  1491. // you just want the service response, call the ListChangeBatchesByRRSet method directly
  1492. // instead.
  1493. //
  1494. // Note: You must call the "Send" method on the returned request object in order
  1495. // to execute the request.
  1496. //
  1497. // // Example sending a request using the ListChangeBatchesByRRSetRequest method.
  1498. // req, resp := client.ListChangeBatchesByRRSetRequest(params)
  1499. //
  1500. // err := req.Send()
  1501. // if err == nil { // resp is now filled
  1502. // fmt.Println(resp)
  1503. // }
  1504. //
  1505. func (c *Route53) ListChangeBatchesByRRSetRequest(input *ListChangeBatchesByRRSetInput) (req *request.Request, output *ListChangeBatchesByRRSetOutput) {
  1506. if c.Client.Config.Logger != nil {
  1507. c.Client.Config.Logger.Log("This operation, ListChangeBatchesByRRSet, has been deprecated")
  1508. }
  1509. op := &request.Operation{
  1510. Name: opListChangeBatchesByRRSet,
  1511. HTTPMethod: "GET",
  1512. HTTPPath: "/2013-04-01/hostedzone/{Id}/rrsChanges",
  1513. }
  1514. if input == nil {
  1515. input = &ListChangeBatchesByRRSetInput{}
  1516. }
  1517. req = c.newRequest(op, input, output)
  1518. output = &ListChangeBatchesByRRSetOutput{}
  1519. req.Data = output
  1520. return
  1521. }
  1522. // This action gets the list of ChangeBatches in a given time period for a given
  1523. // hosted zone and RRSet.
  1524. func (c *Route53) ListChangeBatchesByRRSet(input *ListChangeBatchesByRRSetInput) (*ListChangeBatchesByRRSetOutput, error) {
  1525. req, out := c.ListChangeBatchesByRRSetRequest(input)
  1526. err := req.Send()
  1527. return out, err
  1528. }
  1529. const opListGeoLocations = "ListGeoLocations"
  1530. // ListGeoLocationsRequest generates a "aws/request.Request" representing the
  1531. // client's request for the ListGeoLocations operation. The "output" return
  1532. // value can be used to capture response data after the request's "Send" method
  1533. // is called.
  1534. //
  1535. // Creating a request object using this method should be used when you want to inject
  1536. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1537. // access properties on the request object before or after sending the request. If
  1538. // you just want the service response, call the ListGeoLocations method directly
  1539. // instead.
  1540. //
  1541. // Note: You must call the "Send" method on the returned request object in order
  1542. // to execute the request.
  1543. //
  1544. // // Example sending a request using the ListGeoLocationsRequest method.
  1545. // req, resp := client.ListGeoLocationsRequest(params)
  1546. //
  1547. // err := req.Send()
  1548. // if err == nil { // resp is now filled
  1549. // fmt.Println(resp)
  1550. // }
  1551. //
  1552. func (c *Route53) ListGeoLocationsRequest(input *ListGeoLocationsInput) (req *request.Request, output *ListGeoLocationsOutput) {
  1553. op := &request.Operation{
  1554. Name: opListGeoLocations,
  1555. HTTPMethod: "GET",
  1556. HTTPPath: "/2013-04-01/geolocations",
  1557. }
  1558. if input == nil {
  1559. input = &ListGeoLocationsInput{}
  1560. }
  1561. req = c.newRequest(op, input, output)
  1562. output = &ListGeoLocationsOutput{}
  1563. req.Data = output
  1564. return
  1565. }
  1566. // To retrieve a list of supported geo locations, send a GET request to the
  1567. // /Route 53 API version/geolocations resource. The response to this request
  1568. // includes a GeoLocationDetailsList element with zero, one, or multiple GeoLocationDetails
  1569. // child elements. The list is sorted by country code, and then subdivision
  1570. // code, followed by continents at the end of the list.
  1571. //
  1572. // By default, the list of geo locations is displayed on a single page. You
  1573. // can control the length of the page that is displayed by using the MaxItems
  1574. // parameter. If the list is truncated, IsTruncated will be set to true and
  1575. // a combination of NextContinentCode, NextCountryCode, NextSubdivisionCode
  1576. // will be populated. You can pass these as parameters to StartContinentCode,
  1577. // StartCountryCode, StartSubdivisionCode to control the geo location that the
  1578. // list begins with.
  1579. func (c *Route53) ListGeoLocations(input *ListGeoLocationsInput) (*ListGeoLocationsOutput, error) {
  1580. req, out := c.ListGeoLocationsRequest(input)
  1581. err := req.Send()
  1582. return out, err
  1583. }
  1584. const opListHealthChecks = "ListHealthChecks"
  1585. // ListHealthChecksRequest generates a "aws/request.Request" representing the
  1586. // client's request for the ListHealthChecks operation. The "output" return
  1587. // value can be used to capture response data after the request's "Send" method
  1588. // is called.
  1589. //
  1590. // Creating a request object using this method should be used when you want to inject
  1591. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1592. // access properties on the request object before or after sending the request. If
  1593. // you just want the service response, call the ListHealthChecks method directly
  1594. // instead.
  1595. //
  1596. // Note: You must call the "Send" method on the returned request object in order
  1597. // to execute the request.
  1598. //
  1599. // // Example sending a request using the ListHealthChecksRequest method.
  1600. // req, resp := client.ListHealthChecksRequest(params)
  1601. //
  1602. // err := req.Send()
  1603. // if err == nil { // resp is now filled
  1604. // fmt.Println(resp)
  1605. // }
  1606. //
  1607. func (c *Route53) ListHealthChecksRequest(input *ListHealthChecksInput) (req *request.Request, output *ListHealthChecksOutput) {
  1608. op := &request.Operation{
  1609. Name: opListHealthChecks,
  1610. HTTPMethod: "GET",
  1611. HTTPPath: "/2013-04-01/healthcheck",
  1612. Paginator: &request.Paginator{
  1613. InputTokens: []string{"Marker"},
  1614. OutputTokens: []string{"NextMarker"},
  1615. LimitToken: "MaxItems",
  1616. TruncationToken: "IsTruncated",
  1617. },
  1618. }
  1619. if input == nil {
  1620. input = &ListHealthChecksInput{}
  1621. }
  1622. req = c.newRequest(op, input, output)
  1623. output = &ListHealthChecksOutput{}
  1624. req.Data = output
  1625. return
  1626. }
  1627. // To retrieve a list of your health checks, send a GET request to the /Route
  1628. // 53 API version/healthcheck resource. The response to this request includes
  1629. // a HealthChecks element with zero, one, or multiple HealthCheck child elements.
  1630. // By default, the list of health checks is displayed on a single page. You
  1631. // can control the length of the page that is displayed by using the MaxItems
  1632. // parameter. You can use the Marker parameter to control the health check that
  1633. // the list begins with.
  1634. //
  1635. // Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to
  1636. // a value greater than 100, Amazon Route 53 returns only the first 100.
  1637. func (c *Route53) ListHealthChecks(input *ListHealthChecksInput) (*ListHealthChecksOutput, error) {
  1638. req, out := c.ListHealthChecksRequest(input)
  1639. err := req.Send()
  1640. return out, err
  1641. }
  1642. // ListHealthChecksPages iterates over the pages of a ListHealthChecks operation,
  1643. // calling the "fn" function with the response data for each page. To stop
  1644. // iterating, return false from the fn function.
  1645. //
  1646. // See ListHealthChecks method for more information on how to use this operation.
  1647. //
  1648. // Note: This operation can generate multiple requests to a service.
  1649. //
  1650. // // Example iterating over at most 3 pages of a ListHealthChecks operation.
  1651. // pageNum := 0
  1652. // err := client.ListHealthChecksPages(params,
  1653. // func(page *ListHealthChecksOutput, lastPage bool) bool {
  1654. // pageNum++
  1655. // fmt.Println(page)
  1656. // return pageNum <= 3
  1657. // })
  1658. //
  1659. func (c *Route53) ListHealthChecksPages(input *ListHealthChecksInput, fn func(p *ListHealthChecksOutput, lastPage bool) (shouldContinue bool)) error {
  1660. page, _ := c.ListHealthChecksRequest(input)
  1661. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1662. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1663. return fn(p.(*ListHealthChecksOutput), lastPage)
  1664. })
  1665. }
  1666. const opListHostedZones = "ListHostedZones"
  1667. // ListHostedZonesRequest generates a "aws/request.Request" representing the
  1668. // client's request for the ListHostedZones operation. The "output" return
  1669. // value can be used to capture response data after the request's "Send" method
  1670. // is called.
  1671. //
  1672. // Creating a request object using this method should be used when you want to inject
  1673. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1674. // access properties on the request object before or after sending the request. If
  1675. // you just want the service response, call the ListHostedZones method directly
  1676. // instead.
  1677. //
  1678. // Note: You must call the "Send" method on the returned request object in order
  1679. // to execute the request.
  1680. //
  1681. // // Example sending a request using the ListHostedZonesRequest method.
  1682. // req, resp := client.ListHostedZonesRequest(params)
  1683. //
  1684. // err := req.Send()
  1685. // if err == nil { // resp is now filled
  1686. // fmt.Println(resp)
  1687. // }
  1688. //
  1689. func (c *Route53) ListHostedZonesRequest(input *ListHostedZonesInput) (req *request.Request, output *ListHostedZonesOutput) {
  1690. op := &request.Operation{
  1691. Name: opListHostedZones,
  1692. HTTPMethod: "GET",
  1693. HTTPPath: "/2013-04-01/hostedzone",
  1694. Paginator: &request.Paginator{
  1695. InputTokens: []string{"Marker"},
  1696. OutputTokens: []string{"NextMarker"},
  1697. LimitToken: "MaxItems",
  1698. TruncationToken: "IsTruncated",
  1699. },
  1700. }
  1701. if input == nil {
  1702. input = &ListHostedZonesInput{}
  1703. }
  1704. req = c.newRequest(op, input, output)
  1705. output = &ListHostedZonesOutput{}
  1706. req.Data = output
  1707. return
  1708. }
  1709. // To retrieve a list of your hosted zones, send a GET request to the /Route
  1710. // 53 API version/hostedzone resource. The response to this request includes
  1711. // a HostedZones element with zero, one, or multiple HostedZone child elements.
  1712. // By default, the list of hosted zones is displayed on a single page. You can
  1713. // control the length of the page that is displayed by using the MaxItems parameter.
  1714. // You can use the Marker parameter to control the hosted zone that the list
  1715. // begins with.
  1716. //
  1717. // Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to
  1718. // a value greater than 100, Amazon Route 53 returns only the first 100.
  1719. func (c *Route53) ListHostedZones(input *ListHostedZonesInput) (*ListHostedZonesOutput, error) {
  1720. req, out := c.ListHostedZonesRequest(input)
  1721. err := req.Send()
  1722. return out, err
  1723. }
  1724. // ListHostedZonesPages iterates over the pages of a ListHostedZones operation,
  1725. // calling the "fn" function with the response data for each page. To stop
  1726. // iterating, return false from the fn function.
  1727. //
  1728. // See ListHostedZones method for more information on how to use this operation.
  1729. //
  1730. // Note: This operation can generate multiple requests to a service.
  1731. //
  1732. // // Example iterating over at most 3 pages of a ListHostedZones operation.
  1733. // pageNum := 0
  1734. // err := client.ListHostedZonesPages(params,
  1735. // func(page *ListHostedZonesOutput, lastPage bool) bool {
  1736. // pageNum++
  1737. // fmt.Println(page)
  1738. // return pageNum <= 3
  1739. // })
  1740. //
  1741. func (c *Route53) ListHostedZonesPages(input *ListHostedZonesInput, fn func(p *ListHostedZonesOutput, lastPage bool) (shouldContinue bool)) error {
  1742. page, _ := c.ListHostedZonesRequest(input)
  1743. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1744. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1745. return fn(p.(*ListHostedZonesOutput), lastPage)
  1746. })
  1747. }
  1748. const opListHostedZonesByName = "ListHostedZonesByName"
  1749. // ListHostedZonesByNameRequest generates a "aws/request.Request" representing the
  1750. // client's request for the ListHostedZonesByName operation. The "output" return
  1751. // value can be used to capture response data after the request's "Send" method
  1752. // is called.
  1753. //
  1754. // Creating a request object using this method should be used when you want to inject
  1755. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1756. // access properties on the request object before or after sending the request. If
  1757. // you just want the service response, call the ListHostedZonesByName method directly
  1758. // instead.
  1759. //
  1760. // Note: You must call the "Send" method on the returned request object in order
  1761. // to execute the request.
  1762. //
  1763. // // Example sending a request using the ListHostedZonesByNameRequest method.
  1764. // req, resp := client.ListHostedZonesByNameRequest(params)
  1765. //
  1766. // err := req.Send()
  1767. // if err == nil { // resp is now filled
  1768. // fmt.Println(resp)
  1769. // }
  1770. //
  1771. func (c *Route53) ListHostedZonesByNameRequest(input *ListHostedZonesByNameInput) (req *request.Request, output *ListHostedZonesByNameOutput) {
  1772. op := &request.Operation{
  1773. Name: opListHostedZonesByName,
  1774. HTTPMethod: "GET",
  1775. HTTPPath: "/2013-04-01/hostedzonesbyname",
  1776. }
  1777. if input == nil {
  1778. input = &ListHostedZonesByNameInput{}
  1779. }
  1780. req = c.newRequest(op, input, output)
  1781. output = &ListHostedZonesByNameOutput{}
  1782. req.Data = output
  1783. return
  1784. }
  1785. // To retrieve a list of your hosted zones in lexicographic order, send a GET
  1786. // request to the /Route 53 API version/hostedzonesbyname resource. The response
  1787. // to this request includes a HostedZones element with zero or more HostedZone
  1788. // child elements lexicographically ordered by DNS name. By default, the list
  1789. // of hosted zones is displayed on a single page. You can control the length
  1790. // of the page that is displayed by using the MaxItems parameter. You can use
  1791. // the DNSName and HostedZoneId parameters to control the hosted zone that the
  1792. // list begins with.
  1793. //
  1794. // Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to
  1795. // a value greater than 100, Amazon Route 53 returns only the first 100.
  1796. func (c *Route53) ListHostedZonesByName(input *ListHostedZonesByNameInput) (*ListHostedZonesByNameOutput, error) {
  1797. req, out := c.ListHostedZonesByNameRequest(input)
  1798. err := req.Send()
  1799. return out, err
  1800. }
  1801. const opListResourceRecordSets = "ListResourceRecordSets"
  1802. // ListResourceRecordSetsRequest generates a "aws/request.Request" representing the
  1803. // client's request for the ListResourceRecordSets operation. The "output" return
  1804. // value can be used to capture response data after the request's "Send" method
  1805. // is called.
  1806. //
  1807. // Creating a request object using this method should be used when you want to inject
  1808. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1809. // access properties on the request object before or after sending the request. If
  1810. // you just want the service response, call the ListResourceRecordSets method directly
  1811. // instead.
  1812. //
  1813. // Note: You must call the "Send" method on the returned request object in order
  1814. // to execute the request.
  1815. //
  1816. // // Example sending a request using the ListResourceRecordSetsRequest method.
  1817. // req, resp := client.ListResourceRecordSetsRequest(params)
  1818. //
  1819. // err := req.Send()
  1820. // if err == nil { // resp is now filled
  1821. // fmt.Println(resp)
  1822. // }
  1823. //
  1824. func (c *Route53) ListResourceRecordSetsRequest(input *ListResourceRecordSetsInput) (req *request.Request, output *ListResourceRecordSetsOutput) {
  1825. op := &request.Operation{
  1826. Name: opListResourceRecordSets,
  1827. HTTPMethod: "GET",
  1828. HTTPPath: "/2013-04-01/hostedzone/{Id}/rrset",
  1829. Paginator: &request.Paginator{
  1830. InputTokens: []string{"StartRecordName", "StartRecordType", "StartRecordIdentifier"},
  1831. OutputTokens: []string{"NextRecordName", "NextRecordType", "NextRecordIdentifier"},
  1832. LimitToken: "MaxItems",
  1833. TruncationToken: "IsTruncated",
  1834. },
  1835. }
  1836. if input == nil {
  1837. input = &ListResourceRecordSetsInput{}
  1838. }
  1839. req = c.newRequest(op, input, output)
  1840. output = &ListResourceRecordSetsOutput{}
  1841. req.Data = output
  1842. return
  1843. }
  1844. // List the resource record sets in a specified hosted zone. Send a GET request
  1845. // to the 2013-04-01/hostedzone/hosted zone ID/rrset resource.
  1846. //
  1847. // ListResourceRecordSets returns up to 100 resource record sets at a time
  1848. // in ASCII order, beginning at a position specified by the name and type elements.
  1849. // The action sorts results first by DNS name with the labels reversed, for
  1850. // example:
  1851. //
  1852. // com.example.www.
  1853. //
  1854. // Note the trailing dot, which can change the sort order in some circumstances.
  1855. // When multiple records have the same DNS name, the action sorts results by
  1856. // the record type.
  1857. //
  1858. // You can use the name and type elements to adjust the beginning position
  1859. // of the list of resource record sets returned:
  1860. //
  1861. // If you do not specify Name or Type: The results begin with the first resource
  1862. // record set that the hosted zone contains. If you specify Name but not Type:
  1863. // The results begin with the first resource record set in the list whose name
  1864. // is greater than or equal to Name. If you specify Type but not Name: Amazon
  1865. // Route 53 returns the InvalidInput error. If you specify both Name and Type:
  1866. // The results begin with the first resource record set in the list whose name
  1867. // is greater than or equal to Name, and whose type is greater than or equal
  1868. // to Type. This action returns the most current version of the records. This
  1869. // includes records that are PENDING, and that are not yet available on all
  1870. // Amazon Route 53 DNS servers.
  1871. //
  1872. // To ensure that you get an accurate listing of the resource record sets for
  1873. // a hosted zone at a point in time, do not submit a ChangeResourceRecordSets
  1874. // request while you are paging through the results of a ListResourceRecordSets
  1875. // request. If you do, some pages may display results without the latest changes
  1876. // while other pages display results with the latest changes.
  1877. func (c *Route53) ListResourceRecordSets(input *ListResourceRecordSetsInput) (*ListResourceRecordSetsOutput, error) {
  1878. req, out := c.ListResourceRecordSetsRequest(input)
  1879. err := req.Send()
  1880. return out, err
  1881. }
  1882. // ListResourceRecordSetsPages iterates over the pages of a ListResourceRecordSets operation,
  1883. // calling the "fn" function with the response data for each page. To stop
  1884. // iterating, return false from the fn function.
  1885. //
  1886. // See ListResourceRecordSets method for more information on how to use this operation.
  1887. //
  1888. // Note: This operation can generate multiple requests to a service.
  1889. //
  1890. // // Example iterating over at most 3 pages of a ListResourceRecordSets operation.
  1891. // pageNum := 0
  1892. // err := client.ListResourceRecordSetsPages(params,
  1893. // func(page *ListResourceRecordSetsOutput, lastPage bool) bool {
  1894. // pageNum++
  1895. // fmt.Println(page)
  1896. // return pageNum <= 3
  1897. // })
  1898. //
  1899. func (c *Route53) ListResourceRecordSetsPages(input *ListResourceRecordSetsInput, fn func(p *ListResourceRecordSetsOutput, lastPage bool) (shouldContinue bool)) error {
  1900. page, _ := c.ListResourceRecordSetsRequest(input)
  1901. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1902. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1903. return fn(p.(*ListResourceRecordSetsOutput), lastPage)
  1904. })
  1905. }
  1906. const opListReusableDelegationSets = "ListReusableDelegationSets"
  1907. // ListReusableDelegationSetsRequest generates a "aws/request.Request" representing the
  1908. // client's request for the ListReusableDelegationSets operation. The "output" return
  1909. // value can be used to capture response data after the request's "Send" method
  1910. // is called.
  1911. //
  1912. // Creating a request object using this method should be used when you want to inject
  1913. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1914. // access properties on the request object before or after sending the request. If
  1915. // you just want the service response, call the ListReusableDelegationSets method directly
  1916. // instead.
  1917. //
  1918. // Note: You must call the "Send" method on the returned request object in order
  1919. // to execute the request.
  1920. //
  1921. // // Example sending a request using the ListReusableDelegationSetsRequest method.
  1922. // req, resp := client.ListReusableDelegationSetsRequest(params)
  1923. //
  1924. // err := req.Send()
  1925. // if err == nil { // resp is now filled
  1926. // fmt.Println(resp)
  1927. // }
  1928. //
  1929. func (c *Route53) ListReusableDelegationSetsRequest(input *ListReusableDelegationSetsInput) (req *request.Request, output *ListReusableDelegationSetsOutput) {
  1930. op := &request.Operation{
  1931. Name: opListReusableDelegationSets,
  1932. HTTPMethod: "GET",
  1933. HTTPPath: "/2013-04-01/delegationset",
  1934. }
  1935. if input == nil {
  1936. input = &ListReusableDelegationSetsInput{}
  1937. }
  1938. req = c.newRequest(op, input, output)
  1939. output = &ListReusableDelegationSetsOutput{}
  1940. req.Data = output
  1941. return
  1942. }
  1943. // To retrieve a list of your reusable delegation sets, send a GET request to
  1944. // the /Route 53 API version/delegationset resource. The response to this request
  1945. // includes a DelegationSets element with zero, one, or multiple DelegationSet
  1946. // child elements. By default, the list of delegation sets is displayed on a
  1947. // single page. You can control the length of the page that is displayed by
  1948. // using the MaxItems parameter. You can use the Marker parameter to control
  1949. // the delegation set that the list begins with.
  1950. //
  1951. // Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to
  1952. // a value greater than 100, Amazon Route 53 returns only the first 100.
  1953. func (c *Route53) ListReusableDelegationSets(input *ListReusableDelegationSetsInput) (*ListReusableDelegationSetsOutput, error) {
  1954. req, out := c.ListReusableDelegationSetsRequest(input)
  1955. err := req.Send()
  1956. return out, err
  1957. }
  1958. const opListTagsForResource = "ListTagsForResource"
  1959. // ListTagsForResourceRequest generates a "aws/request.Request" representing the
  1960. // client's request for the ListTagsForResource operation. The "output" return
  1961. // value can be used to capture response data after the request's "Send" method
  1962. // is called.
  1963. //
  1964. // Creating a request object using this method should be used when you want to inject
  1965. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1966. // access properties on the request object before or after sending the request. If
  1967. // you just want the service response, call the ListTagsForResource method directly
  1968. // instead.
  1969. //
  1970. // Note: You must call the "Send" method on the returned request object in order
  1971. // to execute the request.
  1972. //
  1973. // // Example sending a request using the ListTagsForResourceRequest method.
  1974. // req, resp := client.ListTagsForResourceRequest(params)
  1975. //
  1976. // err := req.Send()
  1977. // if err == nil { // resp is now filled
  1978. // fmt.Println(resp)
  1979. // }
  1980. //
  1981. func (c *Route53) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
  1982. op := &request.Operation{
  1983. Name: opListTagsForResource,
  1984. HTTPMethod: "GET",
  1985. HTTPPath: "/2013-04-01/tags/{ResourceType}/{ResourceId}",
  1986. }
  1987. if input == nil {
  1988. input = &ListTagsForResourceInput{}
  1989. }
  1990. req = c.newRequest(op, input, output)
  1991. output = &ListTagsForResourceOutput{}
  1992. req.Data = output
  1993. return
  1994. }
  1995. func (c *Route53) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
  1996. req, out := c.ListTagsForResourceRequest(input)
  1997. err := req.Send()
  1998. return out, err
  1999. }
  2000. const opListTagsForResources = "ListTagsForResources"
  2001. // ListTagsForResourcesRequest generates a "aws/request.Request" representing the
  2002. // client's request for the ListTagsForResources operation. The "output" return
  2003. // value can be used to capture response data after the request's "Send" method
  2004. // is called.
  2005. //
  2006. // Creating a request object using this method should be used when you want to inject
  2007. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2008. // access properties on the request object before or after sending the request. If
  2009. // you just want the service response, call the ListTagsForResources method directly
  2010. // instead.
  2011. //
  2012. // Note: You must call the "Send" method on the returned request object in order
  2013. // to execute the request.
  2014. //
  2015. // // Example sending a request using the ListTagsForResourcesRequest method.
  2016. // req, resp := client.ListTagsForResourcesRequest(params)
  2017. //
  2018. // err := req.Send()
  2019. // if err == nil { // resp is now filled
  2020. // fmt.Println(resp)
  2021. // }
  2022. //
  2023. func (c *Route53) ListTagsForResourcesRequest(input *ListTagsForResourcesInput) (req *request.Request, output *ListTagsForResourcesOutput) {
  2024. op := &request.Operation{
  2025. Name: opListTagsForResources,
  2026. HTTPMethod: "POST",
  2027. HTTPPath: "/2013-04-01/tags/{ResourceType}",
  2028. }
  2029. if input == nil {
  2030. input = &ListTagsForResourcesInput{}
  2031. }
  2032. req = c.newRequest(op, input, output)
  2033. output = &ListTagsForResourcesOutput{}
  2034. req.Data = output
  2035. return
  2036. }
  2037. func (c *Route53) ListTagsForResources(input *ListTagsForResourcesInput) (*ListTagsForResourcesOutput, error) {
  2038. req, out := c.ListTagsForResourcesRequest(input)
  2039. err := req.Send()
  2040. return out, err
  2041. }
  2042. const opListTrafficPolicies = "ListTrafficPolicies"
  2043. // ListTrafficPoliciesRequest generates a "aws/request.Request" representing the
  2044. // client's request for the ListTrafficPolicies operation. The "output" return
  2045. // value can be used to capture response data after the request's "Send" method
  2046. // is called.
  2047. //
  2048. // Creating a request object using this method should be used when you want to inject
  2049. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2050. // access properties on the request object before or after sending the request. If
  2051. // you just want the service response, call the ListTrafficPolicies method directly
  2052. // instead.
  2053. //
  2054. // Note: You must call the "Send" method on the returned request object in order
  2055. // to execute the request.
  2056. //
  2057. // // Example sending a request using the ListTrafficPoliciesRequest method.
  2058. // req, resp := client.ListTrafficPoliciesRequest(params)
  2059. //
  2060. // err := req.Send()
  2061. // if err == nil { // resp is now filled
  2062. // fmt.Println(resp)
  2063. // }
  2064. //
  2065. func (c *Route53) ListTrafficPoliciesRequest(input *ListTrafficPoliciesInput) (req *request.Request, output *ListTrafficPoliciesOutput) {
  2066. op := &request.Operation{
  2067. Name: opListTrafficPolicies,
  2068. HTTPMethod: "GET",
  2069. HTTPPath: "/2013-04-01/trafficpolicies",
  2070. }
  2071. if input == nil {
  2072. input = &ListTrafficPoliciesInput{}
  2073. }
  2074. req = c.newRequest(op, input, output)
  2075. output = &ListTrafficPoliciesOutput{}
  2076. req.Data = output
  2077. return
  2078. }
  2079. // Gets information about the latest version for every traffic policy that is
  2080. // associated with the current AWS account. To get the information, send a GET
  2081. // request to the /Route 53 API version/trafficpolicy resource.
  2082. //
  2083. // Amazon Route 53 returns a maximum of 100 items in each response. If you
  2084. // have a lot of traffic policies, you can use the maxitems parameter to list
  2085. // them in groups of up to 100.
  2086. //
  2087. // The response includes three values that help you navigate from one group
  2088. // of maxitems traffic policies to the next:
  2089. //
  2090. // IsTruncated If the value of IsTruncated in the response is true, there
  2091. // are more traffic policies associated with the current AWS account.
  2092. //
  2093. // If IsTruncated is false, this response includes the last traffic policy
  2094. // that is associated with the current account.
  2095. //
  2096. // TrafficPolicyIdMarker If IsTruncated is true, TrafficPolicyIdMarker is the
  2097. // ID of the first traffic policy in the next group of MaxItems traffic policies.
  2098. // If you want to list more traffic policies, make another call to ListTrafficPolicies,
  2099. // and specify the value of the TrafficPolicyIdMarker element from the response
  2100. // in the TrafficPolicyIdMarker request parameter.
  2101. //
  2102. // If IsTruncated is false, the TrafficPolicyIdMarker element is omitted from
  2103. // the response.
  2104. //
  2105. // MaxItems The value that you specified for the MaxItems parameter in the
  2106. // request that produced the current response.
  2107. func (c *Route53) ListTrafficPolicies(input *ListTrafficPoliciesInput) (*ListTrafficPoliciesOutput, error) {
  2108. req, out := c.ListTrafficPoliciesRequest(input)
  2109. err := req.Send()
  2110. return out, err
  2111. }
  2112. const opListTrafficPolicyInstances = "ListTrafficPolicyInstances"
  2113. // ListTrafficPolicyInstancesRequest generates a "aws/request.Request" representing the
  2114. // client's request for the ListTrafficPolicyInstances operation. The "output" return
  2115. // value can be used to capture response data after the request's "Send" method
  2116. // is called.
  2117. //
  2118. // Creating a request object using this method should be used when you want to inject
  2119. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2120. // access properties on the request object before or after sending the request. If
  2121. // you just want the service response, call the ListTrafficPolicyInstances method directly
  2122. // instead.
  2123. //
  2124. // Note: You must call the "Send" method on the returned request object in order
  2125. // to execute the request.
  2126. //
  2127. // // Example sending a request using the ListTrafficPolicyInstancesRequest method.
  2128. // req, resp := client.ListTrafficPolicyInstancesRequest(params)
  2129. //
  2130. // err := req.Send()
  2131. // if err == nil { // resp is now filled
  2132. // fmt.Println(resp)
  2133. // }
  2134. //
  2135. func (c *Route53) ListTrafficPolicyInstancesRequest(input *ListTrafficPolicyInstancesInput) (req *request.Request, output *ListTrafficPolicyInstancesOutput) {
  2136. op := &request.Operation{
  2137. Name: opListTrafficPolicyInstances,
  2138. HTTPMethod: "GET",
  2139. HTTPPath: "/2013-04-01/trafficpolicyinstances",
  2140. }
  2141. if input == nil {
  2142. input = &ListTrafficPolicyInstancesInput{}
  2143. }
  2144. req = c.newRequest(op, input, output)
  2145. output = &ListTrafficPolicyInstancesOutput{}
  2146. req.Data = output
  2147. return
  2148. }
  2149. // Gets information about the traffic policy instances that you created by using
  2150. // the current AWS account.
  2151. //
  2152. // After you submit an UpdateTrafficPolicyInstance request, there's a brief
  2153. // delay while Amazon Route 53 creates the resource record sets that are specified
  2154. // in the traffic policy definition. For more information, see the State response
  2155. // element. To get information about the traffic policy instances that are associated
  2156. // with the current AWS account, send a GET request to the /Route 53 API version/trafficpolicyinstance
  2157. // resource.
  2158. //
  2159. // Amazon Route 53 returns a maximum of 100 items in each response. If you
  2160. // have a lot of traffic policy instances, you can use the MaxItems parameter
  2161. // to list them in groups of up to 100.
  2162. //
  2163. // The response includes five values that help you navigate from one group
  2164. // of MaxItems traffic policy instances to the next:
  2165. //
  2166. // IsTruncated If the value of IsTruncated in the response is true, there
  2167. // are more traffic policy instances associated with the current AWS account.
  2168. //
  2169. // If IsTruncated is false, this response includes the last traffic policy
  2170. // instance that is associated with the current account.
  2171. //
  2172. // MaxItems The value that you specified for the MaxItems parameter in the
  2173. // request that produced the current response.
  2174. //
  2175. // HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker
  2176. // If IsTruncated is true, these three values in the response represent the
  2177. // first traffic policy instance in the next group of MaxItems traffic policy
  2178. // instances. To list more traffic policy instances, make another call to ListTrafficPolicyInstances,
  2179. // and specify these values in the corresponding request parameters.
  2180. //
  2181. // If IsTruncated is false, all three elements are omitted from the response.
  2182. func (c *Route53) ListTrafficPolicyInstances(input *ListTrafficPolicyInstancesInput) (*ListTrafficPolicyInstancesOutput, error) {
  2183. req, out := c.ListTrafficPolicyInstancesRequest(input)
  2184. err := req.Send()
  2185. return out, err
  2186. }
  2187. const opListTrafficPolicyInstancesByHostedZone = "ListTrafficPolicyInstancesByHostedZone"
  2188. // ListTrafficPolicyInstancesByHostedZoneRequest generates a "aws/request.Request" representing the
  2189. // client's request for the ListTrafficPolicyInstancesByHostedZone operation. The "output" return
  2190. // value can be used to capture response data after the request's "Send" method
  2191. // is called.
  2192. //
  2193. // Creating a request object using this method should be used when you want to inject
  2194. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2195. // access properties on the request object before or after sending the request. If
  2196. // you just want the service response, call the ListTrafficPolicyInstancesByHostedZone method directly
  2197. // instead.
  2198. //
  2199. // Note: You must call the "Send" method on the returned request object in order
  2200. // to execute the request.
  2201. //
  2202. // // Example sending a request using the ListTrafficPolicyInstancesByHostedZoneRequest method.
  2203. // req, resp := client.ListTrafficPolicyInstancesByHostedZoneRequest(params)
  2204. //
  2205. // err := req.Send()
  2206. // if err == nil { // resp is now filled
  2207. // fmt.Println(resp)
  2208. // }
  2209. //
  2210. func (c *Route53) ListTrafficPolicyInstancesByHostedZoneRequest(input *ListTrafficPolicyInstancesByHostedZoneInput) (req *request.Request, output *ListTrafficPolicyInstancesByHostedZoneOutput) {
  2211. op := &request.Operation{
  2212. Name: opListTrafficPolicyInstancesByHostedZone,
  2213. HTTPMethod: "GET",
  2214. HTTPPath: "/2013-04-01/trafficpolicyinstances/hostedzone",
  2215. }
  2216. if input == nil {
  2217. input = &ListTrafficPolicyInstancesByHostedZoneInput{}
  2218. }
  2219. req = c.newRequest(op, input, output)
  2220. output = &ListTrafficPolicyInstancesByHostedZoneOutput{}
  2221. req.Data = output
  2222. return
  2223. }
  2224. // Gets information about the traffic policy instances that you created in a
  2225. // specified hosted zone.
  2226. //
  2227. // After you submit an UpdateTrafficPolicyInstance request, there's a brief
  2228. // delay while Amazon Route 53 creates the resource record sets that are specified
  2229. // in the traffic policy definition. For more information, see the State response
  2230. // element. To get information about the traffic policy instances that you created
  2231. // in a specified hosted zone, send a GET request to the /Route 53 API version/trafficpolicyinstance
  2232. // resource and include the ID of the hosted zone.
  2233. //
  2234. // Amazon Route 53 returns a maximum of 100 items in each response. If you
  2235. // have a lot of traffic policy instances, you can use the MaxItems parameter
  2236. // to list them in groups of up to 100.
  2237. //
  2238. // The response includes four values that help you navigate from one group
  2239. // of MaxItems traffic policy instances to the next:
  2240. //
  2241. // IsTruncated If the value of IsTruncated in the response is true, there
  2242. // are more traffic policy instances associated with the current AWS account.
  2243. //
  2244. // If IsTruncated is false, this response includes the last traffic policy
  2245. // instance that is associated with the current account.
  2246. //
  2247. // MaxItems The value that you specified for the MaxItems parameter in the
  2248. // request that produced the current response.
  2249. //
  2250. // TrafficPolicyInstanceNameMarker and TrafficPolicyInstanceTypeMarker If IsTruncated
  2251. // is true, these two values in the response represent the first traffic policy
  2252. // instance in the next group of MaxItems traffic policy instances. To list
  2253. // more traffic policy instances, make another call to ListTrafficPolicyInstancesByHostedZone,
  2254. // and specify these values in the corresponding request parameters.
  2255. //
  2256. // If IsTruncated is false, all three elements are omitted from the response.
  2257. func (c *Route53) ListTrafficPolicyInstancesByHostedZone(input *ListTrafficPolicyInstancesByHostedZoneInput) (*ListTrafficPolicyInstancesByHostedZoneOutput, error) {
  2258. req, out := c.ListTrafficPolicyInstancesByHostedZoneRequest(input)
  2259. err := req.Send()
  2260. return out, err
  2261. }
  2262. const opListTrafficPolicyInstancesByPolicy = "ListTrafficPolicyInstancesByPolicy"
  2263. // ListTrafficPolicyInstancesByPolicyRequest generates a "aws/request.Request" representing the
  2264. // client's request for the ListTrafficPolicyInstancesByPolicy operation. The "output" return
  2265. // value can be used to capture response data after the request's "Send" method
  2266. // is called.
  2267. //
  2268. // Creating a request object using this method should be used when you want to inject
  2269. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2270. // access properties on the request object before or after sending the request. If
  2271. // you just want the service response, call the ListTrafficPolicyInstancesByPolicy method directly
  2272. // instead.
  2273. //
  2274. // Note: You must call the "Send" method on the returned request object in order
  2275. // to execute the request.
  2276. //
  2277. // // Example sending a request using the ListTrafficPolicyInstancesByPolicyRequest method.
  2278. // req, resp := client.ListTrafficPolicyInstancesByPolicyRequest(params)
  2279. //
  2280. // err := req.Send()
  2281. // if err == nil { // resp is now filled
  2282. // fmt.Println(resp)
  2283. // }
  2284. //
  2285. func (c *Route53) ListTrafficPolicyInstancesByPolicyRequest(input *ListTrafficPolicyInstancesByPolicyInput) (req *request.Request, output *ListTrafficPolicyInstancesByPolicyOutput) {
  2286. op := &request.Operation{
  2287. Name: opListTrafficPolicyInstancesByPolicy,
  2288. HTTPMethod: "GET",
  2289. HTTPPath: "/2013-04-01/trafficpolicyinstances/trafficpolicy",
  2290. }
  2291. if input == nil {
  2292. input = &ListTrafficPolicyInstancesByPolicyInput{}
  2293. }
  2294. req = c.newRequest(op, input, output)
  2295. output = &ListTrafficPolicyInstancesByPolicyOutput{}
  2296. req.Data = output
  2297. return
  2298. }
  2299. // Gets information about the traffic policy instances that you created by using
  2300. // a specify traffic policy version.
  2301. //
  2302. // After you submit a CreateTrafficPolicyInstance or an UpdateTrafficPolicyInstance
  2303. // request, there's a brief delay while Amazon Route 53 creates the resource
  2304. // record sets that are specified in the traffic policy definition. For more
  2305. // information, see the State response element. To get information about the
  2306. // traffic policy instances that you created by using a specify traffic policy
  2307. // version, send a GET request to the /Route 53 API version/trafficpolicyinstance
  2308. // resource and include the ID and version of the traffic policy.
  2309. //
  2310. // Amazon Route 53 returns a maximum of 100 items in each response. If you
  2311. // have a lot of traffic policy instances, you can use the MaxItems parameter
  2312. // to list them in groups of up to 100.
  2313. //
  2314. // The response includes five values that help you navigate from one group
  2315. // of MaxItems traffic policy instances to the next:
  2316. //
  2317. // IsTruncated If the value of IsTruncated in the response is true, there
  2318. // are more traffic policy instances associated with the specified traffic policy.
  2319. //
  2320. // If IsTruncated is false, this response includes the last traffic policy
  2321. // instance that is associated with the specified traffic policy.
  2322. //
  2323. // MaxItems The value that you specified for the MaxItems parameter in the
  2324. // request that produced the current response.
  2325. //
  2326. // HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker
  2327. // If IsTruncated is true, these values in the response represent the first
  2328. // traffic policy instance in the next group of MaxItems traffic policy instances.
  2329. // To list more traffic policy instances, make another call to ListTrafficPolicyInstancesByPolicy,
  2330. // and specify these values in the corresponding request parameters.
  2331. //
  2332. // If IsTruncated is false, all three elements are omitted from the response.
  2333. func (c *Route53) ListTrafficPolicyInstancesByPolicy(input *ListTrafficPolicyInstancesByPolicyInput) (*ListTrafficPolicyInstancesByPolicyOutput, error) {
  2334. req, out := c.ListTrafficPolicyInstancesByPolicyRequest(input)
  2335. err := req.Send()
  2336. return out, err
  2337. }
  2338. const opListTrafficPolicyVersions = "ListTrafficPolicyVersions"
  2339. // ListTrafficPolicyVersionsRequest generates a "aws/request.Request" representing the
  2340. // client's request for the ListTrafficPolicyVersions operation. The "output" return
  2341. // value can be used to capture response data after the request's "Send" method
  2342. // is called.
  2343. //
  2344. // Creating a request object using this method should be used when you want to inject
  2345. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2346. // access properties on the request object before or after sending the request. If
  2347. // you just want the service response, call the ListTrafficPolicyVersions method directly
  2348. // instead.
  2349. //
  2350. // Note: You must call the "Send" method on the returned request object in order
  2351. // to execute the request.
  2352. //
  2353. // // Example sending a request using the ListTrafficPolicyVersionsRequest method.
  2354. // req, resp := client.ListTrafficPolicyVersionsRequest(params)
  2355. //
  2356. // err := req.Send()
  2357. // if err == nil { // resp is now filled
  2358. // fmt.Println(resp)
  2359. // }
  2360. //
  2361. func (c *Route53) ListTrafficPolicyVersionsRequest(input *ListTrafficPolicyVersionsInput) (req *request.Request, output *ListTrafficPolicyVersionsOutput) {
  2362. op := &request.Operation{
  2363. Name: opListTrafficPolicyVersions,
  2364. HTTPMethod: "GET",
  2365. HTTPPath: "/2013-04-01/trafficpolicies/{Id}/versions",
  2366. }
  2367. if input == nil {
  2368. input = &ListTrafficPolicyVersionsInput{}
  2369. }
  2370. req = c.newRequest(op, input, output)
  2371. output = &ListTrafficPolicyVersionsOutput{}
  2372. req.Data = output
  2373. return
  2374. }
  2375. // Gets information about all of the versions for a specified traffic policy.
  2376. // ListTrafficPolicyVersions lists only versions that have not been deleted.
  2377. //
  2378. // Amazon Route 53 returns a maximum of 100 items in each response. If you
  2379. // have a lot of traffic policies, you can use the maxitems parameter to list
  2380. // them in groups of up to 100.
  2381. //
  2382. // The response includes three values that help you navigate from one group
  2383. // of maxitemsmaxitems traffic policies to the next:
  2384. //
  2385. // IsTruncated If the value of IsTruncated in the response is true, there
  2386. // are more traffic policy versions associated with the specified traffic policy.
  2387. //
  2388. // If IsTruncated is false, this response includes the last traffic policy
  2389. // version that is associated with the specified traffic policy.
  2390. //
  2391. // TrafficPolicyVersionMarker The ID of the next traffic policy version that
  2392. // is associated with the current AWS account. If you want to list more traffic
  2393. // policies, make another call to ListTrafficPolicyVersions, and specify the
  2394. // value of the TrafficPolicyVersionMarker element in the TrafficPolicyVersionMarker
  2395. // request parameter.
  2396. //
  2397. // If IsTruncated is false, Amazon Route 53 omits the TrafficPolicyVersionMarker
  2398. // element from the response.
  2399. //
  2400. // MaxItems The value that you specified for the MaxItems parameter in the
  2401. // request that produced the current response.
  2402. func (c *Route53) ListTrafficPolicyVersions(input *ListTrafficPolicyVersionsInput) (*ListTrafficPolicyVersionsOutput, error) {
  2403. req, out := c.ListTrafficPolicyVersionsRequest(input)
  2404. err := req.Send()
  2405. return out, err
  2406. }
  2407. const opUpdateHealthCheck = "UpdateHealthCheck"
  2408. // UpdateHealthCheckRequest generates a "aws/request.Request" representing the
  2409. // client's request for the UpdateHealthCheck operation. The "output" return
  2410. // value can be used to capture response data after the request's "Send" method
  2411. // is called.
  2412. //
  2413. // Creating a request object using this method should be used when you want to inject
  2414. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2415. // access properties on the request object before or after sending the request. If
  2416. // you just want the service response, call the UpdateHealthCheck method directly
  2417. // instead.
  2418. //
  2419. // Note: You must call the "Send" method on the returned request object in order
  2420. // to execute the request.
  2421. //
  2422. // // Example sending a request using the UpdateHealthCheckRequest method.
  2423. // req, resp := client.UpdateHealthCheckRequest(params)
  2424. //
  2425. // err := req.Send()
  2426. // if err == nil { // resp is now filled
  2427. // fmt.Println(resp)
  2428. // }
  2429. //
  2430. func (c *Route53) UpdateHealthCheckRequest(input *UpdateHealthCheckInput) (req *request.Request, output *UpdateHealthCheckOutput) {
  2431. op := &request.Operation{
  2432. Name: opUpdateHealthCheck,
  2433. HTTPMethod: "POST",
  2434. HTTPPath: "/2013-04-01/healthcheck/{HealthCheckId}",
  2435. }
  2436. if input == nil {
  2437. input = &UpdateHealthCheckInput{}
  2438. }
  2439. req = c.newRequest(op, input, output)
  2440. output = &UpdateHealthCheckOutput{}
  2441. req.Data = output
  2442. return
  2443. }
  2444. // This action updates an existing health check.
  2445. //
  2446. // To update a health check, send a POST request to the /Route 53 API version/healthcheck/health
  2447. // check ID resource. The request body must include a document with an UpdateHealthCheckRequest
  2448. // element. The response returns an UpdateHealthCheckResponse element, which
  2449. // contains metadata about the health check.
  2450. func (c *Route53) UpdateHealthCheck(input *UpdateHealthCheckInput) (*UpdateHealthCheckOutput, error) {
  2451. req, out := c.UpdateHealthCheckRequest(input)
  2452. err := req.Send()
  2453. return out, err
  2454. }
  2455. const opUpdateHostedZoneComment = "UpdateHostedZoneComment"
  2456. // UpdateHostedZoneCommentRequest generates a "aws/request.Request" representing the
  2457. // client's request for the UpdateHostedZoneComment operation. The "output" return
  2458. // value can be used to capture response data after the request's "Send" method
  2459. // is called.
  2460. //
  2461. // Creating a request object using this method should be used when you want to inject
  2462. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2463. // access properties on the request object before or after sending the request. If
  2464. // you just want the service response, call the UpdateHostedZoneComment method directly
  2465. // instead.
  2466. //
  2467. // Note: You must call the "Send" method on the returned request object in order
  2468. // to execute the request.
  2469. //
  2470. // // Example sending a request using the UpdateHostedZoneCommentRequest method.
  2471. // req, resp := client.UpdateHostedZoneCommentRequest(params)
  2472. //
  2473. // err := req.Send()
  2474. // if err == nil { // resp is now filled
  2475. // fmt.Println(resp)
  2476. // }
  2477. //
  2478. func (c *Route53) UpdateHostedZoneCommentRequest(input *UpdateHostedZoneCommentInput) (req *request.Request, output *UpdateHostedZoneCommentOutput) {
  2479. op := &request.Operation{
  2480. Name: opUpdateHostedZoneComment,
  2481. HTTPMethod: "POST",
  2482. HTTPPath: "/2013-04-01/hostedzone/{Id}",
  2483. }
  2484. if input == nil {
  2485. input = &UpdateHostedZoneCommentInput{}
  2486. }
  2487. req = c.newRequest(op, input, output)
  2488. output = &UpdateHostedZoneCommentOutput{}
  2489. req.Data = output
  2490. return
  2491. }
  2492. // To update the hosted zone comment, send a POST request to the /Route 53 API
  2493. // version/hostedzone/hosted zone ID resource. The request body must include
  2494. // a document with a UpdateHostedZoneCommentRequest element. The response to
  2495. // this request includes the modified HostedZone element.
  2496. //
  2497. // The comment can have a maximum length of 256 characters.
  2498. func (c *Route53) UpdateHostedZoneComment(input *UpdateHostedZoneCommentInput) (*UpdateHostedZoneCommentOutput, error) {
  2499. req, out := c.UpdateHostedZoneCommentRequest(input)
  2500. err := req.Send()
  2501. return out, err
  2502. }
  2503. const opUpdateTrafficPolicyComment = "UpdateTrafficPolicyComment"
  2504. // UpdateTrafficPolicyCommentRequest generates a "aws/request.Request" representing the
  2505. // client's request for the UpdateTrafficPolicyComment operation. The "output" return
  2506. // value can be used to capture response data after the request's "Send" method
  2507. // is called.
  2508. //
  2509. // Creating a request object using this method should be used when you want to inject
  2510. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2511. // access properties on the request object before or after sending the request. If
  2512. // you just want the service response, call the UpdateTrafficPolicyComment method directly
  2513. // instead.
  2514. //
  2515. // Note: You must call the "Send" method on the returned request object in order
  2516. // to execute the request.
  2517. //
  2518. // // Example sending a request using the UpdateTrafficPolicyCommentRequest method.
  2519. // req, resp := client.UpdateTrafficPolicyCommentRequest(params)
  2520. //
  2521. // err := req.Send()
  2522. // if err == nil { // resp is now filled
  2523. // fmt.Println(resp)
  2524. // }
  2525. //
  2526. func (c *Route53) UpdateTrafficPolicyCommentRequest(input *UpdateTrafficPolicyCommentInput) (req *request.Request, output *UpdateTrafficPolicyCommentOutput) {
  2527. op := &request.Operation{
  2528. Name: opUpdateTrafficPolicyComment,
  2529. HTTPMethod: "POST",
  2530. HTTPPath: "/2013-04-01/trafficpolicy/{Id}/{Version}",
  2531. }
  2532. if input == nil {
  2533. input = &UpdateTrafficPolicyCommentInput{}
  2534. }
  2535. req = c.newRequest(op, input, output)
  2536. output = &UpdateTrafficPolicyCommentOutput{}
  2537. req.Data = output
  2538. return
  2539. }
  2540. // Updates the comment for a specified traffic policy version.
  2541. //
  2542. // To update the comment, send a POST request to the /Route 53 API version/trafficpolicy/
  2543. // resource.
  2544. //
  2545. // The request body must include a document with an UpdateTrafficPolicyCommentRequest
  2546. // element.
  2547. func (c *Route53) UpdateTrafficPolicyComment(input *UpdateTrafficPolicyCommentInput) (*UpdateTrafficPolicyCommentOutput, error) {
  2548. req, out := c.UpdateTrafficPolicyCommentRequest(input)
  2549. err := req.Send()
  2550. return out, err
  2551. }
  2552. const opUpdateTrafficPolicyInstance = "UpdateTrafficPolicyInstance"
  2553. // UpdateTrafficPolicyInstanceRequest generates a "aws/request.Request" representing the
  2554. // client's request for the UpdateTrafficPolicyInstance operation. The "output" return
  2555. // value can be used to capture response data after the request's "Send" method
  2556. // is called.
  2557. //
  2558. // Creating a request object using this method should be used when you want to inject
  2559. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2560. // access properties on the request object before or after sending the request. If
  2561. // you just want the service response, call the UpdateTrafficPolicyInstance method directly
  2562. // instead.
  2563. //
  2564. // Note: You must call the "Send" method on the returned request object in order
  2565. // to execute the request.
  2566. //
  2567. // // Example sending a request using the UpdateTrafficPolicyInstanceRequest method.
  2568. // req, resp := client.UpdateTrafficPolicyInstanceRequest(params)
  2569. //
  2570. // err := req.Send()
  2571. // if err == nil { // resp is now filled
  2572. // fmt.Println(resp)
  2573. // }
  2574. //
  2575. func (c *Route53) UpdateTrafficPolicyInstanceRequest(input *UpdateTrafficPolicyInstanceInput) (req *request.Request, output *UpdateTrafficPolicyInstanceOutput) {
  2576. op := &request.Operation{
  2577. Name: opUpdateTrafficPolicyInstance,
  2578. HTTPMethod: "POST",
  2579. HTTPPath: "/2013-04-01/trafficpolicyinstance/{Id}",
  2580. }
  2581. if input == nil {
  2582. input = &UpdateTrafficPolicyInstanceInput{}
  2583. }
  2584. req = c.newRequest(op, input, output)
  2585. output = &UpdateTrafficPolicyInstanceOutput{}
  2586. req.Data = output
  2587. return
  2588. }
  2589. // Updates the resource record sets in a specified hosted zone that were created
  2590. // based on the settings in a specified traffic policy version.
  2591. //
  2592. // The DNS type of the resource record sets that you're updating must match
  2593. // the DNS type in the JSON document that is associated with the traffic policy
  2594. // version that you're using to update the traffic policy instance. When you
  2595. // update a traffic policy instance, Amazon Route 53 continues to respond to
  2596. // DNS queries for the root resource record set name (such as example.com) while
  2597. // it replaces one group of resource record sets with another. Amazon Route
  2598. // 53 performs the following operations:
  2599. //
  2600. // Amazon Route 53 creates a new group of resource record sets based on the
  2601. // specified traffic policy. This is true regardless of how substantial the
  2602. // differences are between the existing resource record sets and the new resource
  2603. // record sets. When all of the new resource record sets have been created,
  2604. // Amazon Route 53 starts to respond to DNS queries for the root resource record
  2605. // set name (such as example.com) by using the new resource record sets. Amazon
  2606. // Route 53 deletes the old group of resource record sets that are associated
  2607. // with the root resource record set name. To update a traffic policy instance,
  2608. // send a POST request to the /Route 53 API version/trafficpolicyinstance/traffic
  2609. // policy ID resource. The request body must include a document with an UpdateTrafficPolicyInstanceRequest
  2610. // element.
  2611. func (c *Route53) UpdateTrafficPolicyInstance(input *UpdateTrafficPolicyInstanceInput) (*UpdateTrafficPolicyInstanceOutput, error) {
  2612. req, out := c.UpdateTrafficPolicyInstanceRequest(input)
  2613. err := req.Send()
  2614. return out, err
  2615. }
  2616. // A complex type that contains information to uniquely identify the CloudWatch
  2617. // alarm that you're associating with a Route 53 health check.
  2618. type AlarmIdentifier struct {
  2619. _ struct{} `type:"structure"`
  2620. // The name of the CloudWatch alarm.
  2621. Name *string `min:"1" type:"string" required:"true"`
  2622. // The CloudWatchRegion that the CloudWatch alarm was created in.
  2623. Region *string `min:"1" type:"string" required:"true" enum:"CloudWatchRegion"`
  2624. }
  2625. // String returns the string representation
  2626. func (s AlarmIdentifier) String() string {
  2627. return awsutil.Prettify(s)
  2628. }
  2629. // GoString returns the string representation
  2630. func (s AlarmIdentifier) GoString() string {
  2631. return s.String()
  2632. }
  2633. // Validate inspects the fields of the type to determine if they are valid.
  2634. func (s *AlarmIdentifier) Validate() error {
  2635. invalidParams := request.ErrInvalidParams{Context: "AlarmIdentifier"}
  2636. if s.Name == nil {
  2637. invalidParams.Add(request.NewErrParamRequired("Name"))
  2638. }
  2639. if s.Name != nil && len(*s.Name) < 1 {
  2640. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  2641. }
  2642. if s.Region == nil {
  2643. invalidParams.Add(request.NewErrParamRequired("Region"))
  2644. }
  2645. if s.Region != nil && len(*s.Region) < 1 {
  2646. invalidParams.Add(request.NewErrParamMinLen("Region", 1))
  2647. }
  2648. if invalidParams.Len() > 0 {
  2649. return invalidParams
  2650. }
  2651. return nil
  2652. }
  2653. // Alias resource record sets only: Information about the CloudFront distribution,
  2654. // ELB load balancer, Amazon S3 bucket, or Amazon Route 53 resource record set
  2655. // to which you are routing traffic.
  2656. //
  2657. // If you're creating resource record sets for a private hosted zone, note
  2658. // the following:
  2659. //
  2660. // You can create alias resource record sets only for Amazon Route 53 resource
  2661. // record sets in the same private hosted zone. Creating alias resource record
  2662. // sets for CloudFront distributions, ELB load balancers, and Amazon S3 buckets
  2663. // is not supported. You can't create alias resource record sets for failover,
  2664. // geolocation, or latency resource record sets in a private hosted zone.
  2665. type AliasTarget struct {
  2666. _ struct{} `type:"structure"`
  2667. // Alias resource record sets only: The external DNS name associated with the
  2668. // AWS Resource. The value that you specify depends on where you want to route
  2669. // queries:
  2670. //
  2671. // A CloudFront distribution: Specify the domain name that CloudFront assigned
  2672. // when you created your distribution. Your CloudFront distribution must include
  2673. // an alternate domain name that matches the name of the resource record set.
  2674. // For example, if the name of the resource record set is acme.example.com,
  2675. // your CloudFront distribution must include acme.example.com as one of the
  2676. // alternate domain names. For more information, see Using Alternate Domain
  2677. // Names (CNAMEs) (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html)
  2678. // in the Amazon CloudFront Developer Guide. An ELB load balancer: Specify the
  2679. // DNS name associated with the load balancer. You can get the DNS name by using
  2680. // the AWS Management Console, the ELB API, or the AWS CLI. Use the same method
  2681. // to get values for HostedZoneId and DNSName. If you get one value from the
  2682. // console and the other value from the API or the CLI, creating the resource
  2683. // record set will fail. An Elastic Beanstalk environment: Specify the CNAME
  2684. // attribute for the environment. (The environment must have a regionalized
  2685. // domain name.) An Amazon S3 bucket that is configured as a static website:
  2686. // Specify the domain name of the Amazon S3 website endpoint in which you created
  2687. // the bucket; for example, s3-website-us-east-1.amazonaws.com. For more information
  2688. // about valid values, see the table Amazon Simple Storage Service (S3) Website
  2689. // Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region)
  2690. // in the Amazon Web Services General Reference. For more information about
  2691. // using Amazon S3 buckets for websites, see Hosting a Static Website on Amazon
  2692. // S3 (http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html) in
  2693. // the Amazon Simple Storage Service Developer Guide. Another Amazon Route 53
  2694. // resource record set: Specify the value of the Name element for a resource
  2695. // record set in the current hosted zone.
  2696. DNSName *string `type:"string" required:"true"`
  2697. // Alias resource record sets only: If you set the value of EvaluateTargetHealth
  2698. // to true for the resource record set or sets in an alias, weighted alias,
  2699. // latency alias, or failover alias resource record set, and if you specify
  2700. // a value for HealthCheckId for every resource record set that is referenced
  2701. // by these alias resource record sets, the alias resource record sets inherit
  2702. // the health of the referenced resource record sets.
  2703. //
  2704. // In this configuration, when Amazon Route 53 receives a DNS query for an
  2705. // alias resource record set:
  2706. //
  2707. // Amazon Route 53 looks at the resource record sets that are referenced by
  2708. // the alias resource record sets to determine which health checks they're using.
  2709. // Amazon Route 53 checks the current status of each health check. (Amazon Route
  2710. // 53 periodically checks the health of the endpoint that is specified in a
  2711. // health check; it doesn't perform the health check when the DNS query arrives.)
  2712. // Based on the status of the health checks, Amazon Route 53 determines which
  2713. // resource record sets are healthy. Unhealthy resource record sets are immediately
  2714. // removed from consideration. In addition, if all of the resource record sets
  2715. // that are referenced by an alias resource record set are unhealthy, that alias
  2716. // resource record set also is immediately removed from consideration. Based
  2717. // on the configuration of the alias resource record sets (weighted alias or
  2718. // latency alias, for example) and the configuration of the resource record
  2719. // sets that they reference, Amazon Route 53 chooses a resource record set from
  2720. // the healthy resource record sets, and responds to the query. Note the following:
  2721. //
  2722. // You cannot set EvaluateTargetHealth to true when the alias target is a CloudFront
  2723. // distribution. If the AWS resource that you specify in AliasTarget is a resource
  2724. // record set or a group of resource record sets (for example, a group of weighted
  2725. // resource record sets), but it is not another alias resource record set, we
  2726. // recommend that you associate a health check with all of the resource record
  2727. // sets in the alias target. If you specify an ELB load balancer in AliasTarget,
  2728. // Elastic Load Balancing routes queries only to the healthy Amazon EC2 instances
  2729. // that are registered with the load balancer. If no Amazon EC2 instances are
  2730. // healthy or if the load balancer itself is unhealthy, and if EvaluateTargetHealth
  2731. // is true for the corresponding alias resource record set, Amazon Route 53
  2732. // routes queries to other resources. When you create a load balancer, you configure
  2733. // settings for Elastic Load Balancing health checks; they're not Amazon Route
  2734. // 53 health checks, but they perform a similar function. Do not create Amazon
  2735. // Route 53 health checks for the Amazon EC2 instances that you register with
  2736. // an ELB load balancer. For more information, see How Health Checks Work in
  2737. // More Complex Amazon Route 53 Configurations (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-complex-configs.html)
  2738. // in the Amazon Route 53 Developer Guide. We recommend that you set EvaluateTargetHealth
  2739. // to true only when you have enough idle capacity to handle the failure of
  2740. // one or more endpoints.
  2741. //
  2742. // For more information and examples, see Amazon Route 53 Health Checks and
  2743. // DNS Failover (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html)
  2744. // in the Amazon Route 53 Developer Guide.
  2745. EvaluateTargetHealth *bool `type:"boolean" required:"true"`
  2746. // Alias resource record sets only: The value you use depends on where you want
  2747. // to route queries:
  2748. //
  2749. // A CloudFront distribution: Specify Z2FDTNDATAQYW2. An ELB load balancer:
  2750. // Specify the value of the hosted zone ID for the load balancer. You can get
  2751. // the hosted zone ID by using the AWS Management Console, the ELB API, or the
  2752. // AWS CLI. Use the same method to get values for HostedZoneId and DNSName.
  2753. // If you get one value from the console and the other value from the API or
  2754. // the CLI, creating the resource record set will fail. An Amazon S3 bucket
  2755. // that is configured as a static website: Specify the hosted zone ID for the
  2756. // Amazon S3 website endpoint in which you created the bucket. For more information
  2757. // about valid values, see the table Amazon Simple Storage Service (S3) Website
  2758. // Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region)
  2759. // in the Amazon Web Services General Reference. Another Amazon Route 53 resource
  2760. // record set in your hosted zone: Specify the hosted zone ID of your hosted
  2761. // zone. (An alias resource record set cannot reference a resource record set
  2762. // in a different hosted zone.)
  2763. HostedZoneId *string `type:"string" required:"true"`
  2764. }
  2765. // String returns the string representation
  2766. func (s AliasTarget) String() string {
  2767. return awsutil.Prettify(s)
  2768. }
  2769. // GoString returns the string representation
  2770. func (s AliasTarget) GoString() string {
  2771. return s.String()
  2772. }
  2773. // Validate inspects the fields of the type to determine if they are valid.
  2774. func (s *AliasTarget) Validate() error {
  2775. invalidParams := request.ErrInvalidParams{Context: "AliasTarget"}
  2776. if s.DNSName == nil {
  2777. invalidParams.Add(request.NewErrParamRequired("DNSName"))
  2778. }
  2779. if s.EvaluateTargetHealth == nil {
  2780. invalidParams.Add(request.NewErrParamRequired("EvaluateTargetHealth"))
  2781. }
  2782. if s.HostedZoneId == nil {
  2783. invalidParams.Add(request.NewErrParamRequired("HostedZoneId"))
  2784. }
  2785. if invalidParams.Len() > 0 {
  2786. return invalidParams
  2787. }
  2788. return nil
  2789. }
  2790. // A complex type that contains information about the request to associate a
  2791. // VPC with an hosted zone.
  2792. type AssociateVPCWithHostedZoneInput struct {
  2793. _ struct{} `locationName:"AssociateVPCWithHostedZoneRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
  2794. // Optional: Any comments you want to include about a AssociateVPCWithHostedZoneRequest.
  2795. Comment *string `type:"string"`
  2796. // The ID of the hosted zone you want to associate your VPC with.
  2797. //
  2798. // Note that you cannot associate a VPC with a hosted zone that doesn't have
  2799. // an existing VPC association.
  2800. HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  2801. // The VPC that you want your hosted zone to be associated with.
  2802. VPC *VPC `type:"structure" required:"true"`
  2803. }
  2804. // String returns the string representation
  2805. func (s AssociateVPCWithHostedZoneInput) String() string {
  2806. return awsutil.Prettify(s)
  2807. }
  2808. // GoString returns the string representation
  2809. func (s AssociateVPCWithHostedZoneInput) GoString() string {
  2810. return s.String()
  2811. }
  2812. // Validate inspects the fields of the type to determine if they are valid.
  2813. func (s *AssociateVPCWithHostedZoneInput) Validate() error {
  2814. invalidParams := request.ErrInvalidParams{Context: "AssociateVPCWithHostedZoneInput"}
  2815. if s.HostedZoneId == nil {
  2816. invalidParams.Add(request.NewErrParamRequired("HostedZoneId"))
  2817. }
  2818. if s.VPC == nil {
  2819. invalidParams.Add(request.NewErrParamRequired("VPC"))
  2820. }
  2821. if s.VPC != nil {
  2822. if err := s.VPC.Validate(); err != nil {
  2823. invalidParams.AddNested("VPC", err.(request.ErrInvalidParams))
  2824. }
  2825. }
  2826. if invalidParams.Len() > 0 {
  2827. return invalidParams
  2828. }
  2829. return nil
  2830. }
  2831. // A complex type containing the response information for the request.
  2832. type AssociateVPCWithHostedZoneOutput struct {
  2833. _ struct{} `type:"structure"`
  2834. // A complex type that contains the ID, the status, and the date and time of
  2835. // your AssociateVPCWithHostedZoneRequest.
  2836. ChangeInfo *ChangeInfo `type:"structure" required:"true"`
  2837. }
  2838. // String returns the string representation
  2839. func (s AssociateVPCWithHostedZoneOutput) String() string {
  2840. return awsutil.Prettify(s)
  2841. }
  2842. // GoString returns the string representation
  2843. func (s AssociateVPCWithHostedZoneOutput) GoString() string {
  2844. return s.String()
  2845. }
  2846. // A complex type that contains the information for each change in a change
  2847. // batch request.
  2848. type Change struct {
  2849. _ struct{} `type:"structure"`
  2850. // The action to perform:
  2851. //
  2852. // CREATE: Creates a resource record set that has the specified values. DELETE:
  2853. // Deletes a existing resource record set that has the specified values for
  2854. // Name, Type, SetIdentifier (for latency, weighted, geolocation, and failover
  2855. // resource record sets), and TTL (except alias resource record sets, for which
  2856. // the TTL is determined by the AWS resource that you're routing DNS queries
  2857. // to). UPSERT: If a resource record set does not already exist, Amazon Route
  2858. // 53 creates it. If a resource record set does exist, Amazon Route 53 updates
  2859. // it with the values in the request. Amazon Route 53 can update an existing
  2860. // resource record set only when all of the following values match: Name, Type,
  2861. // and SetIdentifier (for weighted, latency, geolocation, and failover resource
  2862. // record sets).
  2863. Action *string `type:"string" required:"true" enum:"ChangeAction"`
  2864. // Information about the resource record set to create or delete.
  2865. ResourceRecordSet *ResourceRecordSet `type:"structure" required:"true"`
  2866. }
  2867. // String returns the string representation
  2868. func (s Change) String() string {
  2869. return awsutil.Prettify(s)
  2870. }
  2871. // GoString returns the string representation
  2872. func (s Change) GoString() string {
  2873. return s.String()
  2874. }
  2875. // Validate inspects the fields of the type to determine if they are valid.
  2876. func (s *Change) Validate() error {
  2877. invalidParams := request.ErrInvalidParams{Context: "Change"}
  2878. if s.Action == nil {
  2879. invalidParams.Add(request.NewErrParamRequired("Action"))
  2880. }
  2881. if s.ResourceRecordSet == nil {
  2882. invalidParams.Add(request.NewErrParamRequired("ResourceRecordSet"))
  2883. }
  2884. if s.ResourceRecordSet != nil {
  2885. if err := s.ResourceRecordSet.Validate(); err != nil {
  2886. invalidParams.AddNested("ResourceRecordSet", err.(request.ErrInvalidParams))
  2887. }
  2888. }
  2889. if invalidParams.Len() > 0 {
  2890. return invalidParams
  2891. }
  2892. return nil
  2893. }
  2894. // A complex type that contains an optional comment and the changes that you
  2895. // want to make with a change batch request.
  2896. type ChangeBatch struct {
  2897. _ struct{} `type:"structure"`
  2898. // A complex type that contains one Change element for each resource record
  2899. // set that you want to create or delete.
  2900. Changes []*Change `locationNameList:"Change" min:"1" type:"list" required:"true"`
  2901. // Optional: Any comments you want to include about a change batch request.
  2902. Comment *string `type:"string"`
  2903. }
  2904. // String returns the string representation
  2905. func (s ChangeBatch) String() string {
  2906. return awsutil.Prettify(s)
  2907. }
  2908. // GoString returns the string representation
  2909. func (s ChangeBatch) GoString() string {
  2910. return s.String()
  2911. }
  2912. // Validate inspects the fields of the type to determine if they are valid.
  2913. func (s *ChangeBatch) Validate() error {
  2914. invalidParams := request.ErrInvalidParams{Context: "ChangeBatch"}
  2915. if s.Changes == nil {
  2916. invalidParams.Add(request.NewErrParamRequired("Changes"))
  2917. }
  2918. if s.Changes != nil && len(s.Changes) < 1 {
  2919. invalidParams.Add(request.NewErrParamMinLen("Changes", 1))
  2920. }
  2921. if s.Changes != nil {
  2922. for i, v := range s.Changes {
  2923. if v == nil {
  2924. continue
  2925. }
  2926. if err := v.Validate(); err != nil {
  2927. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Changes", i), err.(request.ErrInvalidParams))
  2928. }
  2929. }
  2930. }
  2931. if invalidParams.Len() > 0 {
  2932. return invalidParams
  2933. }
  2934. return nil
  2935. }
  2936. // A complex type that lists the changes and information for a ChangeBatch.
  2937. type ChangeBatchRecord struct {
  2938. _ struct{} `deprecated:"true" type:"structure"`
  2939. // A list of changes made in the ChangeBatch.
  2940. Changes []*Change `locationNameList:"Change" min:"1" type:"list"`
  2941. // A complex type that describes change information about changes made to your
  2942. // hosted zone.
  2943. //
  2944. // This element contains an ID that you use when performing a GetChange action
  2945. // to get detailed information about the change.
  2946. Comment *string `type:"string"`
  2947. // The ID of the request. Use this ID to track when the change has completed
  2948. // across all Amazon Route 53 DNS servers.
  2949. Id *string `type:"string" required:"true"`
  2950. // The current state of the request. PENDING indicates that this request has
  2951. // not yet been applied to all Amazon Route 53 DNS servers.
  2952. //
  2953. // Valid Values: PENDING | INSYNC
  2954. Status *string `type:"string" required:"true" enum:"ChangeStatus"`
  2955. // The date and time the change was submitted, in the format YYYY-MM-DDThh:mm:ssZ,
  2956. // as specified in the ISO 8601 standard (for example, 2009-11-19T19:37:58Z).
  2957. // The Z after the time indicates that the time is listed in Coordinated Universal
  2958. // Time (UTC).
  2959. SubmittedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  2960. // The AWS account ID attached to the changes.
  2961. Submitter *string `type:"string"`
  2962. }
  2963. // String returns the string representation
  2964. func (s ChangeBatchRecord) String() string {
  2965. return awsutil.Prettify(s)
  2966. }
  2967. // GoString returns the string representation
  2968. func (s ChangeBatchRecord) GoString() string {
  2969. return s.String()
  2970. }
  2971. // A complex type that describes change information about changes made to your
  2972. // hosted zone.
  2973. //
  2974. // This element contains an ID that you use when performing a GetChange action
  2975. // to get detailed information about the change.
  2976. type ChangeInfo struct {
  2977. _ struct{} `type:"structure"`
  2978. // A complex type that describes change information about changes made to your
  2979. // hosted zone.
  2980. //
  2981. // This element contains an ID that you use when performing a GetChange action
  2982. // to get detailed information about the change.
  2983. Comment *string `type:"string"`
  2984. // The ID of the request. Use this ID to track when the change has completed
  2985. // across all Amazon Route 53 DNS servers.
  2986. Id *string `type:"string" required:"true"`
  2987. // The current state of the request. PENDING indicates that this request has
  2988. // not yet been applied to all Amazon Route 53 DNS servers.
  2989. //
  2990. // Valid Values: PENDING | INSYNC
  2991. Status *string `type:"string" required:"true" enum:"ChangeStatus"`
  2992. // The date and time the change was submitted, in the format YYYY-MM-DDThh:mm:ssZ,
  2993. // as specified in the ISO 8601 standard (for example, 2009-11-19T19:37:58Z).
  2994. // The Z after the time indicates that the time is listed in Coordinated Universal
  2995. // Time (UTC).
  2996. SubmittedAt *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
  2997. }
  2998. // String returns the string representation
  2999. func (s ChangeInfo) String() string {
  3000. return awsutil.Prettify(s)
  3001. }
  3002. // GoString returns the string representation
  3003. func (s ChangeInfo) GoString() string {
  3004. return s.String()
  3005. }
  3006. // A complex type that contains a change batch.
  3007. type ChangeResourceRecordSetsInput struct {
  3008. _ struct{} `locationName:"ChangeResourceRecordSetsRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
  3009. // A complex type that contains an optional comment and the Changes element.
  3010. ChangeBatch *ChangeBatch `type:"structure" required:"true"`
  3011. // The ID of the hosted zone that contains the resource record sets that you
  3012. // want to change.
  3013. HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  3014. }
  3015. // String returns the string representation
  3016. func (s ChangeResourceRecordSetsInput) String() string {
  3017. return awsutil.Prettify(s)
  3018. }
  3019. // GoString returns the string representation
  3020. func (s ChangeResourceRecordSetsInput) GoString() string {
  3021. return s.String()
  3022. }
  3023. // Validate inspects the fields of the type to determine if they are valid.
  3024. func (s *ChangeResourceRecordSetsInput) Validate() error {
  3025. invalidParams := request.ErrInvalidParams{Context: "ChangeResourceRecordSetsInput"}
  3026. if s.ChangeBatch == nil {
  3027. invalidParams.Add(request.NewErrParamRequired("ChangeBatch"))
  3028. }
  3029. if s.HostedZoneId == nil {
  3030. invalidParams.Add(request.NewErrParamRequired("HostedZoneId"))
  3031. }
  3032. if s.ChangeBatch != nil {
  3033. if err := s.ChangeBatch.Validate(); err != nil {
  3034. invalidParams.AddNested("ChangeBatch", err.(request.ErrInvalidParams))
  3035. }
  3036. }
  3037. if invalidParams.Len() > 0 {
  3038. return invalidParams
  3039. }
  3040. return nil
  3041. }
  3042. // A complex type containing the response for the request.
  3043. type ChangeResourceRecordSetsOutput struct {
  3044. _ struct{} `type:"structure"`
  3045. // A complex type that contains information about changes made to your hosted
  3046. // zone.
  3047. //
  3048. // This element contains an ID that you use when performing a GetChange action
  3049. // to get detailed information about the change.
  3050. ChangeInfo *ChangeInfo `type:"structure" required:"true"`
  3051. }
  3052. // String returns the string representation
  3053. func (s ChangeResourceRecordSetsOutput) String() string {
  3054. return awsutil.Prettify(s)
  3055. }
  3056. // GoString returns the string representation
  3057. func (s ChangeResourceRecordSetsOutput) GoString() string {
  3058. return s.String()
  3059. }
  3060. // A complex type containing information about a request to add, change, or
  3061. // delete the tags that are associated with a resource.
  3062. type ChangeTagsForResourceInput struct {
  3063. _ struct{} `locationName:"ChangeTagsForResourceRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
  3064. // A complex type that contains a list of Tag elements. Each Tag element identifies
  3065. // a tag that you want to add or update for the specified resource.
  3066. AddTags []*Tag `locationNameList:"Tag" min:"1" type:"list"`
  3067. // A list of Tag keys that you want to remove from the specified resource.
  3068. RemoveTagKeys []*string `locationNameList:"Key" min:"1" type:"list"`
  3069. // The ID of the resource for which you want to add, change, or delete tags.
  3070. ResourceId *string `location:"uri" locationName:"ResourceId" type:"string" required:"true"`
  3071. // The type of the resource.
  3072. //
  3073. // - The resource type for health checks is healthcheck.
  3074. //
  3075. // - The resource type for hosted zones is hostedzone.
  3076. ResourceType *string `location:"uri" locationName:"ResourceType" type:"string" required:"true" enum:"TagResourceType"`
  3077. }
  3078. // String returns the string representation
  3079. func (s ChangeTagsForResourceInput) String() string {
  3080. return awsutil.Prettify(s)
  3081. }
  3082. // GoString returns the string representation
  3083. func (s ChangeTagsForResourceInput) GoString() string {
  3084. return s.String()
  3085. }
  3086. // Validate inspects the fields of the type to determine if they are valid.
  3087. func (s *ChangeTagsForResourceInput) Validate() error {
  3088. invalidParams := request.ErrInvalidParams{Context: "ChangeTagsForResourceInput"}
  3089. if s.AddTags != nil && len(s.AddTags) < 1 {
  3090. invalidParams.Add(request.NewErrParamMinLen("AddTags", 1))
  3091. }
  3092. if s.RemoveTagKeys != nil && len(s.RemoveTagKeys) < 1 {
  3093. invalidParams.Add(request.NewErrParamMinLen("RemoveTagKeys", 1))
  3094. }
  3095. if s.ResourceId == nil {
  3096. invalidParams.Add(request.NewErrParamRequired("ResourceId"))
  3097. }
  3098. if s.ResourceType == nil {
  3099. invalidParams.Add(request.NewErrParamRequired("ResourceType"))
  3100. }
  3101. if invalidParams.Len() > 0 {
  3102. return invalidParams
  3103. }
  3104. return nil
  3105. }
  3106. // Empty response for the request.
  3107. type ChangeTagsForResourceOutput struct {
  3108. _ struct{} `type:"structure"`
  3109. }
  3110. // String returns the string representation
  3111. func (s ChangeTagsForResourceOutput) String() string {
  3112. return awsutil.Prettify(s)
  3113. }
  3114. // GoString returns the string representation
  3115. func (s ChangeTagsForResourceOutput) GoString() string {
  3116. return s.String()
  3117. }
  3118. // For CLOUDWATCH_METRIC health checks, a complex type that contains information
  3119. // about the CloudWatch alarm that you're associating with the health check.
  3120. type CloudWatchAlarmConfiguration struct {
  3121. _ struct{} `type:"structure"`
  3122. // The arithmetic operation to use when comparing the specified Statistic and
  3123. // Threshold.
  3124. //
  3125. // Valid Values are GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanThreshold
  3126. // and LessThanOrEqualToThreshold
  3127. ComparisonOperator *string `type:"string" required:"true" enum:"ComparisonOperator"`
  3128. // A list of Dimension elements for the CloudWatch metric that is associated
  3129. // with the CloudWatch alarm. For information about the metrics and dimensions
  3130. // that CloudWatch supports, see Amazon CloudWatch Namespaces, Dimensions, and
  3131. // Metrics Reference (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html).
  3132. Dimensions []*Dimension `locationNameList:"Dimension" type:"list"`
  3133. // The number of periods over which data is compared to the specified threshold.
  3134. EvaluationPeriods *int64 `min:"1" type:"integer" required:"true"`
  3135. // The name of the CloudWatch metric that is associated with the CloudWatch
  3136. // alarm.
  3137. MetricName *string `min:"1" type:"string" required:"true"`
  3138. // The namespace of the CloudWatch metric that is associated with the CloudWatch
  3139. // alarm.
  3140. Namespace *string `min:"1" type:"string" required:"true"`
  3141. // An integer that represents the period in seconds over which the statistic
  3142. // is applied.
  3143. Period *int64 `min:"60" type:"integer" required:"true"`
  3144. // The statistic to apply to the CloudWatch metric that is associated with the
  3145. // CloudWatch alarm.
  3146. //
  3147. // Valid Values are SampleCount, Average, Sum, Minimum and Maximum
  3148. Statistic *string `type:"string" required:"true" enum:"Statistic"`
  3149. // The value that the metric is compared with to determine the state of the
  3150. // alarm. For example, if you want the health check to fail if the average TCP
  3151. // connection time is greater than 500 milliseconds for more than 60 seconds,
  3152. // the threshold is 500.
  3153. Threshold *float64 `type:"double" required:"true"`
  3154. }
  3155. // String returns the string representation
  3156. func (s CloudWatchAlarmConfiguration) String() string {
  3157. return awsutil.Prettify(s)
  3158. }
  3159. // GoString returns the string representation
  3160. func (s CloudWatchAlarmConfiguration) GoString() string {
  3161. return s.String()
  3162. }
  3163. // >A complex type that contains information about the request to create a health
  3164. // check.
  3165. type CreateHealthCheckInput struct {
  3166. _ struct{} `locationName:"CreateHealthCheckRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
  3167. // A unique string that identifies the request and that allows failed CreateHealthCheck
  3168. // requests to be retried without the risk of executing the operation twice.
  3169. // You must use a unique CallerReference string every time you create a health
  3170. // check. CallerReference can be any unique string; you might choose to use
  3171. // a string that identifies your project.
  3172. //
  3173. // Valid characters are any Unicode code points that are legal in an XML 1.0
  3174. // document. The UTF-8 encoding of the value must be less than 128 bytes.
  3175. CallerReference *string `min:"1" type:"string" required:"true"`
  3176. // A complex type that contains health check configuration.
  3177. HealthCheckConfig *HealthCheckConfig `type:"structure" required:"true"`
  3178. }
  3179. // String returns the string representation
  3180. func (s CreateHealthCheckInput) String() string {
  3181. return awsutil.Prettify(s)
  3182. }
  3183. // GoString returns the string representation
  3184. func (s CreateHealthCheckInput) GoString() string {
  3185. return s.String()
  3186. }
  3187. // Validate inspects the fields of the type to determine if they are valid.
  3188. func (s *CreateHealthCheckInput) Validate() error {
  3189. invalidParams := request.ErrInvalidParams{Context: "CreateHealthCheckInput"}
  3190. if s.CallerReference == nil {
  3191. invalidParams.Add(request.NewErrParamRequired("CallerReference"))
  3192. }
  3193. if s.CallerReference != nil && len(*s.CallerReference) < 1 {
  3194. invalidParams.Add(request.NewErrParamMinLen("CallerReference", 1))
  3195. }
  3196. if s.HealthCheckConfig == nil {
  3197. invalidParams.Add(request.NewErrParamRequired("HealthCheckConfig"))
  3198. }
  3199. if s.HealthCheckConfig != nil {
  3200. if err := s.HealthCheckConfig.Validate(); err != nil {
  3201. invalidParams.AddNested("HealthCheckConfig", err.(request.ErrInvalidParams))
  3202. }
  3203. }
  3204. if invalidParams.Len() > 0 {
  3205. return invalidParams
  3206. }
  3207. return nil
  3208. }
  3209. // A complex type containing the response information for the new health check.
  3210. type CreateHealthCheckOutput struct {
  3211. _ struct{} `type:"structure"`
  3212. // A complex type that contains identifying information about the health check.
  3213. HealthCheck *HealthCheck `type:"structure" required:"true"`
  3214. // The unique URL representing the new health check.
  3215. Location *string `location:"header" locationName:"Location" type:"string" required:"true"`
  3216. }
  3217. // String returns the string representation
  3218. func (s CreateHealthCheckOutput) String() string {
  3219. return awsutil.Prettify(s)
  3220. }
  3221. // GoString returns the string representation
  3222. func (s CreateHealthCheckOutput) GoString() string {
  3223. return s.String()
  3224. }
  3225. // A complex type that contains information about the request to create a hosted
  3226. // zone.
  3227. type CreateHostedZoneInput struct {
  3228. _ struct{} `locationName:"CreateHostedZoneRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
  3229. // A unique string that identifies the request and that allows failed CreateHostedZone
  3230. // requests to be retried without the risk of executing the operation twice.
  3231. // You must use a unique CallerReference string every time you create a hosted
  3232. // zone. CallerReference can be any unique string; you might choose to use a
  3233. // string that identifies your project, such as DNSMigration_01.
  3234. //
  3235. // Valid characters are any Unicode code points that are legal in an XML 1.0
  3236. // document. The UTF-8 encoding of the value must be less than 128 bytes.
  3237. CallerReference *string `min:"1" type:"string" required:"true"`
  3238. // The delegation set id of the reusable delgation set whose NS records you
  3239. // want to assign to the new hosted zone.
  3240. DelegationSetId *string `type:"string"`
  3241. // A complex type that contains an optional comment about your hosted zone.
  3242. HostedZoneConfig *HostedZoneConfig `type:"structure"`
  3243. // The name of the domain. This must be a fully-specified domain, for example,
  3244. // www.example.com. The trailing dot is optional; Amazon Route 53 assumes that
  3245. // the domain name is fully qualified. This means that Amazon Route 53 treats
  3246. // www.example.com (without a trailing dot) and www.example.com. (with a trailing
  3247. // dot) as identical.
  3248. //
  3249. // This is the name you have registered with your DNS registrar. You should
  3250. // ask your registrar to change the authoritative name servers for your domain
  3251. // to the set of NameServers elements returned in DelegationSet.
  3252. Name *string `type:"string" required:"true"`
  3253. // The VPC that you want your hosted zone to be associated with. By providing
  3254. // this parameter, your newly created hosted cannot be resolved anywhere other
  3255. // than the given VPC.
  3256. VPC *VPC `type:"structure"`
  3257. }
  3258. // String returns the string representation
  3259. func (s CreateHostedZoneInput) String() string {
  3260. return awsutil.Prettify(s)
  3261. }
  3262. // GoString returns the string representation
  3263. func (s CreateHostedZoneInput) GoString() string {
  3264. return s.String()
  3265. }
  3266. // Validate inspects the fields of the type to determine if they are valid.
  3267. func (s *CreateHostedZoneInput) Validate() error {
  3268. invalidParams := request.ErrInvalidParams{Context: "CreateHostedZoneInput"}
  3269. if s.CallerReference == nil {
  3270. invalidParams.Add(request.NewErrParamRequired("CallerReference"))
  3271. }
  3272. if s.CallerReference != nil && len(*s.CallerReference) < 1 {
  3273. invalidParams.Add(request.NewErrParamMinLen("CallerReference", 1))
  3274. }
  3275. if s.Name == nil {
  3276. invalidParams.Add(request.NewErrParamRequired("Name"))
  3277. }
  3278. if s.VPC != nil {
  3279. if err := s.VPC.Validate(); err != nil {
  3280. invalidParams.AddNested("VPC", err.(request.ErrInvalidParams))
  3281. }
  3282. }
  3283. if invalidParams.Len() > 0 {
  3284. return invalidParams
  3285. }
  3286. return nil
  3287. }
  3288. // A complex type containing the response information for the new hosted zone.
  3289. type CreateHostedZoneOutput struct {
  3290. _ struct{} `type:"structure"`
  3291. // A complex type that contains information about the request to create a hosted
  3292. // zone. This includes an ID that you use when you call the GetChange action
  3293. // to get the current status of the change request.
  3294. ChangeInfo *ChangeInfo `type:"structure" required:"true"`
  3295. // A complex type that contains name server information.
  3296. DelegationSet *DelegationSet `type:"structure" required:"true"`
  3297. // A complex type that contains identifying information about the hosted zone.
  3298. HostedZone *HostedZone `type:"structure" required:"true"`
  3299. // The unique URL representing the new hosted zone.
  3300. Location *string `location:"header" locationName:"Location" type:"string" required:"true"`
  3301. VPC *VPC `type:"structure"`
  3302. }
  3303. // String returns the string representation
  3304. func (s CreateHostedZoneOutput) String() string {
  3305. return awsutil.Prettify(s)
  3306. }
  3307. // GoString returns the string representation
  3308. func (s CreateHostedZoneOutput) GoString() string {
  3309. return s.String()
  3310. }
  3311. type CreateReusableDelegationSetInput struct {
  3312. _ struct{} `locationName:"CreateReusableDelegationSetRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
  3313. // A unique string that identifies the request and that allows failed CreateReusableDelegationSet
  3314. // requests to be retried without the risk of executing the operation twice.
  3315. // You must use a unique CallerReference string every time you create a reusable
  3316. // delegation set. CallerReference can be any unique string; you might choose
  3317. // to use a string that identifies your project, such as DNSMigration_01.
  3318. //
  3319. // Valid characters are any Unicode code points that are legal in an XML 1.0
  3320. // document. The UTF-8 encoding of the value must be less than 128 bytes.
  3321. CallerReference *string `min:"1" type:"string" required:"true"`
  3322. // The ID of the hosted zone whose delegation set you want to mark as reusable.
  3323. // It is an optional parameter.
  3324. HostedZoneId *string `type:"string"`
  3325. }
  3326. // String returns the string representation
  3327. func (s CreateReusableDelegationSetInput) String() string {
  3328. return awsutil.Prettify(s)
  3329. }
  3330. // GoString returns the string representation
  3331. func (s CreateReusableDelegationSetInput) GoString() string {
  3332. return s.String()
  3333. }
  3334. // Validate inspects the fields of the type to determine if they are valid.
  3335. func (s *CreateReusableDelegationSetInput) Validate() error {
  3336. invalidParams := request.ErrInvalidParams{Context: "CreateReusableDelegationSetInput"}
  3337. if s.CallerReference == nil {
  3338. invalidParams.Add(request.NewErrParamRequired("CallerReference"))
  3339. }
  3340. if s.CallerReference != nil && len(*s.CallerReference) < 1 {
  3341. invalidParams.Add(request.NewErrParamMinLen("CallerReference", 1))
  3342. }
  3343. if invalidParams.Len() > 0 {
  3344. return invalidParams
  3345. }
  3346. return nil
  3347. }
  3348. type CreateReusableDelegationSetOutput struct {
  3349. _ struct{} `type:"structure"`
  3350. // A complex type that contains name server information.
  3351. DelegationSet *DelegationSet `type:"structure" required:"true"`
  3352. // The unique URL representing the new reusbale delegation set.
  3353. Location *string `location:"header" locationName:"Location" type:"string" required:"true"`
  3354. }
  3355. // String returns the string representation
  3356. func (s CreateReusableDelegationSetOutput) String() string {
  3357. return awsutil.Prettify(s)
  3358. }
  3359. // GoString returns the string representation
  3360. func (s CreateReusableDelegationSetOutput) GoString() string {
  3361. return s.String()
  3362. }
  3363. // A complex type that contains information about the traffic policy that you
  3364. // want to create.
  3365. type CreateTrafficPolicyInput struct {
  3366. _ struct{} `locationName:"CreateTrafficPolicyRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
  3367. // Any comments that you want to include about the traffic policy.
  3368. Comment *string `type:"string"`
  3369. // The definition of this traffic policy in JSON format. For more information,
  3370. // see Traffic Policy Document Format (http://docs.aws.amazon.com/Route53/latest/APIReference/api-policies-traffic-policy-document-format.html)
  3371. // in the Amazon Route 53 API Reference.
  3372. Document *string `type:"string" required:"true"`
  3373. // The name of the traffic policy.
  3374. Name *string `type:"string" required:"true"`
  3375. }
  3376. // String returns the string representation
  3377. func (s CreateTrafficPolicyInput) String() string {
  3378. return awsutil.Prettify(s)
  3379. }
  3380. // GoString returns the string representation
  3381. func (s CreateTrafficPolicyInput) GoString() string {
  3382. return s.String()
  3383. }
  3384. // Validate inspects the fields of the type to determine if they are valid.
  3385. func (s *CreateTrafficPolicyInput) Validate() error {
  3386. invalidParams := request.ErrInvalidParams{Context: "CreateTrafficPolicyInput"}
  3387. if s.Document == nil {
  3388. invalidParams.Add(request.NewErrParamRequired("Document"))
  3389. }
  3390. if s.Name == nil {
  3391. invalidParams.Add(request.NewErrParamRequired("Name"))
  3392. }
  3393. if invalidParams.Len() > 0 {
  3394. return invalidParams
  3395. }
  3396. return nil
  3397. }
  3398. // A complex type that contains information about the resource record sets that
  3399. // you want to create based on a specified traffic policy.
  3400. type CreateTrafficPolicyInstanceInput struct {
  3401. _ struct{} `locationName:"CreateTrafficPolicyInstanceRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
  3402. // The ID of the hosted zone in which you want Amazon Route 53 to create resource
  3403. // record sets by using the configuration in a traffic policy.
  3404. HostedZoneId *string `type:"string" required:"true"`
  3405. // The domain name (such as example.com) or subdomain name (such as www.example.com)
  3406. // for which Amazon Route 53 responds to DNS queries by using the resource record
  3407. // sets that Amazon Route 53 creates for this traffic policy instance.
  3408. Name *string `type:"string" required:"true"`
  3409. // The TTL that you want Amazon Route 53 to assign to all of the resource record
  3410. // sets that it creates in the specified hosted zone.
  3411. TTL *int64 `type:"long" required:"true"`
  3412. // The ID of the traffic policy that you want to use to create resource record
  3413. // sets in the specified hosted zone.
  3414. TrafficPolicyId *string `type:"string" required:"true"`
  3415. // The version of the traffic policy that you want to use to create resource
  3416. // record sets in the specified hosted zone.
  3417. TrafficPolicyVersion *int64 `min:"1" type:"integer" required:"true"`
  3418. }
  3419. // String returns the string representation
  3420. func (s CreateTrafficPolicyInstanceInput) String() string {
  3421. return awsutil.Prettify(s)
  3422. }
  3423. // GoString returns the string representation
  3424. func (s CreateTrafficPolicyInstanceInput) GoString() string {
  3425. return s.String()
  3426. }
  3427. // Validate inspects the fields of the type to determine if they are valid.
  3428. func (s *CreateTrafficPolicyInstanceInput) Validate() error {
  3429. invalidParams := request.ErrInvalidParams{Context: "CreateTrafficPolicyInstanceInput"}
  3430. if s.HostedZoneId == nil {
  3431. invalidParams.Add(request.NewErrParamRequired("HostedZoneId"))
  3432. }
  3433. if s.Name == nil {
  3434. invalidParams.Add(request.NewErrParamRequired("Name"))
  3435. }
  3436. if s.TTL == nil {
  3437. invalidParams.Add(request.NewErrParamRequired("TTL"))
  3438. }
  3439. if s.TrafficPolicyId == nil {
  3440. invalidParams.Add(request.NewErrParamRequired("TrafficPolicyId"))
  3441. }
  3442. if s.TrafficPolicyVersion == nil {
  3443. invalidParams.Add(request.NewErrParamRequired("TrafficPolicyVersion"))
  3444. }
  3445. if s.TrafficPolicyVersion != nil && *s.TrafficPolicyVersion < 1 {
  3446. invalidParams.Add(request.NewErrParamMinValue("TrafficPolicyVersion", 1))
  3447. }
  3448. if invalidParams.Len() > 0 {
  3449. return invalidParams
  3450. }
  3451. return nil
  3452. }
  3453. // A complex type that contains the response information for the CreateTrafficPolicyInstance
  3454. // request.
  3455. type CreateTrafficPolicyInstanceOutput struct {
  3456. _ struct{} `type:"structure"`
  3457. // A unique URL that represents a new traffic policy instance.
  3458. Location *string `location:"header" locationName:"Location" type:"string" required:"true"`
  3459. // A complex type that contains settings for the new traffic policy instance.
  3460. TrafficPolicyInstance *TrafficPolicyInstance `type:"structure" required:"true"`
  3461. }
  3462. // String returns the string representation
  3463. func (s CreateTrafficPolicyInstanceOutput) String() string {
  3464. return awsutil.Prettify(s)
  3465. }
  3466. // GoString returns the string representation
  3467. func (s CreateTrafficPolicyInstanceOutput) GoString() string {
  3468. return s.String()
  3469. }
  3470. // A complex type that contains the response information for the CreateTrafficPolicy
  3471. // request.
  3472. type CreateTrafficPolicyOutput struct {
  3473. _ struct{} `type:"structure"`
  3474. Location *string `location:"header" locationName:"Location" type:"string" required:"true"`
  3475. // A complex type that contains settings for the new traffic policy.
  3476. TrafficPolicy *TrafficPolicy `type:"structure" required:"true"`
  3477. }
  3478. // String returns the string representation
  3479. func (s CreateTrafficPolicyOutput) String() string {
  3480. return awsutil.Prettify(s)
  3481. }
  3482. // GoString returns the string representation
  3483. func (s CreateTrafficPolicyOutput) GoString() string {
  3484. return s.String()
  3485. }
  3486. // A complex type that contains information about the traffic policy for which
  3487. // you want to create a new version.
  3488. type CreateTrafficPolicyVersionInput struct {
  3489. _ struct{} `locationName:"CreateTrafficPolicyVersionRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
  3490. // Any comments that you want to include about the new traffic policy version.
  3491. Comment *string `type:"string"`
  3492. // The definition of a new traffic policy version, in JSON format. You must
  3493. // specify the full definition of the new traffic policy. You cannot specify
  3494. // just the differences between the new version and a previous version. For
  3495. // more information, see Traffic Policy Document Format (http://docs.aws.amazon.com/Route53/latest/APIReference/api-policies-traffic-policy-document-format.html)
  3496. // in the Amazon Route 53 API Reference.
  3497. Document *string `type:"string" required:"true"`
  3498. // The ID of the traffic policy for which you want to create a new version.
  3499. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  3500. }
  3501. // String returns the string representation
  3502. func (s CreateTrafficPolicyVersionInput) String() string {
  3503. return awsutil.Prettify(s)
  3504. }
  3505. // GoString returns the string representation
  3506. func (s CreateTrafficPolicyVersionInput) GoString() string {
  3507. return s.String()
  3508. }
  3509. // Validate inspects the fields of the type to determine if they are valid.
  3510. func (s *CreateTrafficPolicyVersionInput) Validate() error {
  3511. invalidParams := request.ErrInvalidParams{Context: "CreateTrafficPolicyVersionInput"}
  3512. if s.Document == nil {
  3513. invalidParams.Add(request.NewErrParamRequired("Document"))
  3514. }
  3515. if s.Id == nil {
  3516. invalidParams.Add(request.NewErrParamRequired("Id"))
  3517. }
  3518. if invalidParams.Len() > 0 {
  3519. return invalidParams
  3520. }
  3521. return nil
  3522. }
  3523. // A complex type that contains the response information for the CreateTrafficPolicyVersion
  3524. // request.
  3525. type CreateTrafficPolicyVersionOutput struct {
  3526. _ struct{} `type:"structure"`
  3527. Location *string `location:"header" locationName:"Location" type:"string" required:"true"`
  3528. // A complex type that contains settings for the new version of the traffic
  3529. // policy.
  3530. TrafficPolicy *TrafficPolicy `type:"structure" required:"true"`
  3531. }
  3532. // String returns the string representation
  3533. func (s CreateTrafficPolicyVersionOutput) String() string {
  3534. return awsutil.Prettify(s)
  3535. }
  3536. // GoString returns the string representation
  3537. func (s CreateTrafficPolicyVersionOutput) GoString() string {
  3538. return s.String()
  3539. }
  3540. // A complex type that contains name server information.
  3541. type DelegationSet struct {
  3542. _ struct{} `type:"structure"`
  3543. CallerReference *string `min:"1" type:"string"`
  3544. Id *string `type:"string"`
  3545. // A complex type that contains the authoritative name servers for the hosted
  3546. // zone. Use the method provided by your domain registrar to add an NS record
  3547. // to your domain for each NameServer that is assigned to your hosted zone.
  3548. NameServers []*string `locationNameList:"NameServer" min:"1" type:"list" required:"true"`
  3549. }
  3550. // String returns the string representation
  3551. func (s DelegationSet) String() string {
  3552. return awsutil.Prettify(s)
  3553. }
  3554. // GoString returns the string representation
  3555. func (s DelegationSet) GoString() string {
  3556. return s.String()
  3557. }
  3558. // A complex type containing the request information for delete health check.
  3559. type DeleteHealthCheckInput struct {
  3560. _ struct{} `type:"structure"`
  3561. // The ID of the health check to delete.
  3562. HealthCheckId *string `location:"uri" locationName:"HealthCheckId" type:"string" required:"true"`
  3563. }
  3564. // String returns the string representation
  3565. func (s DeleteHealthCheckInput) String() string {
  3566. return awsutil.Prettify(s)
  3567. }
  3568. // GoString returns the string representation
  3569. func (s DeleteHealthCheckInput) GoString() string {
  3570. return s.String()
  3571. }
  3572. // Validate inspects the fields of the type to determine if they are valid.
  3573. func (s *DeleteHealthCheckInput) Validate() error {
  3574. invalidParams := request.ErrInvalidParams{Context: "DeleteHealthCheckInput"}
  3575. if s.HealthCheckId == nil {
  3576. invalidParams.Add(request.NewErrParamRequired("HealthCheckId"))
  3577. }
  3578. if invalidParams.Len() > 0 {
  3579. return invalidParams
  3580. }
  3581. return nil
  3582. }
  3583. // Empty response for the request.
  3584. type DeleteHealthCheckOutput struct {
  3585. _ struct{} `type:"structure"`
  3586. }
  3587. // String returns the string representation
  3588. func (s DeleteHealthCheckOutput) String() string {
  3589. return awsutil.Prettify(s)
  3590. }
  3591. // GoString returns the string representation
  3592. func (s DeleteHealthCheckOutput) GoString() string {
  3593. return s.String()
  3594. }
  3595. // A complex type that contains information about the hosted zone that you want
  3596. // to delete.
  3597. type DeleteHostedZoneInput struct {
  3598. _ struct{} `type:"structure"`
  3599. // The ID of the hosted zone you want to delete.
  3600. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  3601. }
  3602. // String returns the string representation
  3603. func (s DeleteHostedZoneInput) String() string {
  3604. return awsutil.Prettify(s)
  3605. }
  3606. // GoString returns the string representation
  3607. func (s DeleteHostedZoneInput) GoString() string {
  3608. return s.String()
  3609. }
  3610. // Validate inspects the fields of the type to determine if they are valid.
  3611. func (s *DeleteHostedZoneInput) Validate() error {
  3612. invalidParams := request.ErrInvalidParams{Context: "DeleteHostedZoneInput"}
  3613. if s.Id == nil {
  3614. invalidParams.Add(request.NewErrParamRequired("Id"))
  3615. }
  3616. if invalidParams.Len() > 0 {
  3617. return invalidParams
  3618. }
  3619. return nil
  3620. }
  3621. // A complex type containing the response information for the request.
  3622. type DeleteHostedZoneOutput struct {
  3623. _ struct{} `type:"structure"`
  3624. // A complex type that contains the ID, the status, and the date and time of
  3625. // your delete request.
  3626. ChangeInfo *ChangeInfo `type:"structure" required:"true"`
  3627. }
  3628. // String returns the string representation
  3629. func (s DeleteHostedZoneOutput) String() string {
  3630. return awsutil.Prettify(s)
  3631. }
  3632. // GoString returns the string representation
  3633. func (s DeleteHostedZoneOutput) GoString() string {
  3634. return s.String()
  3635. }
  3636. // A complex type containing the information for the delete request.
  3637. type DeleteReusableDelegationSetInput struct {
  3638. _ struct{} `type:"structure"`
  3639. // The ID of the reusable delegation set you want to delete.
  3640. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  3641. }
  3642. // String returns the string representation
  3643. func (s DeleteReusableDelegationSetInput) String() string {
  3644. return awsutil.Prettify(s)
  3645. }
  3646. // GoString returns the string representation
  3647. func (s DeleteReusableDelegationSetInput) GoString() string {
  3648. return s.String()
  3649. }
  3650. // Validate inspects the fields of the type to determine if they are valid.
  3651. func (s *DeleteReusableDelegationSetInput) Validate() error {
  3652. invalidParams := request.ErrInvalidParams{Context: "DeleteReusableDelegationSetInput"}
  3653. if s.Id == nil {
  3654. invalidParams.Add(request.NewErrParamRequired("Id"))
  3655. }
  3656. if invalidParams.Len() > 0 {
  3657. return invalidParams
  3658. }
  3659. return nil
  3660. }
  3661. // Empty response for the request.
  3662. type DeleteReusableDelegationSetOutput struct {
  3663. _ struct{} `type:"structure"`
  3664. }
  3665. // String returns the string representation
  3666. func (s DeleteReusableDelegationSetOutput) String() string {
  3667. return awsutil.Prettify(s)
  3668. }
  3669. // GoString returns the string representation
  3670. func (s DeleteReusableDelegationSetOutput) GoString() string {
  3671. return s.String()
  3672. }
  3673. // A request to delete a specified traffic policy version.
  3674. type DeleteTrafficPolicyInput struct {
  3675. _ struct{} `type:"structure"`
  3676. // The ID of the traffic policy that you want to delete.
  3677. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  3678. // The version number of the traffic policy that you want to delete.
  3679. Version *int64 `location:"uri" locationName:"Version" min:"1" type:"integer" required:"true"`
  3680. }
  3681. // String returns the string representation
  3682. func (s DeleteTrafficPolicyInput) String() string {
  3683. return awsutil.Prettify(s)
  3684. }
  3685. // GoString returns the string representation
  3686. func (s DeleteTrafficPolicyInput) GoString() string {
  3687. return s.String()
  3688. }
  3689. // Validate inspects the fields of the type to determine if they are valid.
  3690. func (s *DeleteTrafficPolicyInput) Validate() error {
  3691. invalidParams := request.ErrInvalidParams{Context: "DeleteTrafficPolicyInput"}
  3692. if s.Id == nil {
  3693. invalidParams.Add(request.NewErrParamRequired("Id"))
  3694. }
  3695. if s.Version == nil {
  3696. invalidParams.Add(request.NewErrParamRequired("Version"))
  3697. }
  3698. if s.Version != nil && *s.Version < 1 {
  3699. invalidParams.Add(request.NewErrParamMinValue("Version", 1))
  3700. }
  3701. if invalidParams.Len() > 0 {
  3702. return invalidParams
  3703. }
  3704. return nil
  3705. }
  3706. // A complex type that contains information about the traffic policy instance
  3707. // that you want to delete.
  3708. type DeleteTrafficPolicyInstanceInput struct {
  3709. _ struct{} `type:"structure"`
  3710. // The ID of the traffic policy instance that you want to delete.
  3711. //
  3712. // When you delete a traffic policy instance, Amazon Route 53 also deletes
  3713. // all of the resource record sets that were created when you created the traffic
  3714. // policy instance.
  3715. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  3716. }
  3717. // String returns the string representation
  3718. func (s DeleteTrafficPolicyInstanceInput) String() string {
  3719. return awsutil.Prettify(s)
  3720. }
  3721. // GoString returns the string representation
  3722. func (s DeleteTrafficPolicyInstanceInput) GoString() string {
  3723. return s.String()
  3724. }
  3725. // Validate inspects the fields of the type to determine if they are valid.
  3726. func (s *DeleteTrafficPolicyInstanceInput) Validate() error {
  3727. invalidParams := request.ErrInvalidParams{Context: "DeleteTrafficPolicyInstanceInput"}
  3728. if s.Id == nil {
  3729. invalidParams.Add(request.NewErrParamRequired("Id"))
  3730. }
  3731. if invalidParams.Len() > 0 {
  3732. return invalidParams
  3733. }
  3734. return nil
  3735. }
  3736. // An empty element.
  3737. type DeleteTrafficPolicyInstanceOutput struct {
  3738. _ struct{} `type:"structure"`
  3739. }
  3740. // String returns the string representation
  3741. func (s DeleteTrafficPolicyInstanceOutput) String() string {
  3742. return awsutil.Prettify(s)
  3743. }
  3744. // GoString returns the string representation
  3745. func (s DeleteTrafficPolicyInstanceOutput) GoString() string {
  3746. return s.String()
  3747. }
  3748. // An empty element.
  3749. type DeleteTrafficPolicyOutput struct {
  3750. _ struct{} `type:"structure"`
  3751. }
  3752. // String returns the string representation
  3753. func (s DeleteTrafficPolicyOutput) String() string {
  3754. return awsutil.Prettify(s)
  3755. }
  3756. // GoString returns the string representation
  3757. func (s DeleteTrafficPolicyOutput) GoString() string {
  3758. return s.String()
  3759. }
  3760. // The name and value of a dimension for a CloudWatch metric.
  3761. type Dimension struct {
  3762. _ struct{} `type:"structure"`
  3763. // The name of the dimension.
  3764. Name *string `min:"1" type:"string" required:"true"`
  3765. // The value of the dimension.
  3766. Value *string `min:"1" type:"string" required:"true"`
  3767. }
  3768. // String returns the string representation
  3769. func (s Dimension) String() string {
  3770. return awsutil.Prettify(s)
  3771. }
  3772. // GoString returns the string representation
  3773. func (s Dimension) GoString() string {
  3774. return s.String()
  3775. }
  3776. // A complex type that contains information about the request to disassociate
  3777. // a VPC from an hosted zone.
  3778. type DisassociateVPCFromHostedZoneInput struct {
  3779. _ struct{} `locationName:"DisassociateVPCFromHostedZoneRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
  3780. // Optional: Any comments you want to include about a DisassociateVPCFromHostedZoneRequest.
  3781. Comment *string `type:"string"`
  3782. // The ID of the hosted zone you want to disassociate your VPC from.
  3783. //
  3784. // Note that you cannot disassociate the last VPC from a hosted zone.
  3785. HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  3786. // The VPC that you want your hosted zone to be disassociated from.
  3787. VPC *VPC `type:"structure" required:"true"`
  3788. }
  3789. // String returns the string representation
  3790. func (s DisassociateVPCFromHostedZoneInput) String() string {
  3791. return awsutil.Prettify(s)
  3792. }
  3793. // GoString returns the string representation
  3794. func (s DisassociateVPCFromHostedZoneInput) GoString() string {
  3795. return s.String()
  3796. }
  3797. // Validate inspects the fields of the type to determine if they are valid.
  3798. func (s *DisassociateVPCFromHostedZoneInput) Validate() error {
  3799. invalidParams := request.ErrInvalidParams{Context: "DisassociateVPCFromHostedZoneInput"}
  3800. if s.HostedZoneId == nil {
  3801. invalidParams.Add(request.NewErrParamRequired("HostedZoneId"))
  3802. }
  3803. if s.VPC == nil {
  3804. invalidParams.Add(request.NewErrParamRequired("VPC"))
  3805. }
  3806. if s.VPC != nil {
  3807. if err := s.VPC.Validate(); err != nil {
  3808. invalidParams.AddNested("VPC", err.(request.ErrInvalidParams))
  3809. }
  3810. }
  3811. if invalidParams.Len() > 0 {
  3812. return invalidParams
  3813. }
  3814. return nil
  3815. }
  3816. // A complex type containing the response information for the request.
  3817. type DisassociateVPCFromHostedZoneOutput struct {
  3818. _ struct{} `type:"structure"`
  3819. // A complex type that contains the ID, the status, and the date and time of
  3820. // your DisassociateVPCFromHostedZoneRequest.
  3821. ChangeInfo *ChangeInfo `type:"structure" required:"true"`
  3822. }
  3823. // String returns the string representation
  3824. func (s DisassociateVPCFromHostedZoneOutput) String() string {
  3825. return awsutil.Prettify(s)
  3826. }
  3827. // GoString returns the string representation
  3828. func (s DisassociateVPCFromHostedZoneOutput) GoString() string {
  3829. return s.String()
  3830. }
  3831. // A complex type that contains information about a geo location.
  3832. type GeoLocation struct {
  3833. _ struct{} `type:"structure"`
  3834. // The code for a continent geo location. Note: only continent locations have
  3835. // a continent code.
  3836. //
  3837. // Valid values: AF | AN | AS | EU | OC | NA | SA
  3838. //
  3839. // Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode
  3840. // returns an InvalidInput error.
  3841. ContinentCode *string `min:"2" type:"string"`
  3842. // The code for a country geo location. The default location uses '*' for the
  3843. // country code and will match all locations that are not matched by a geo location.
  3844. //
  3845. // The default geo location uses a * for the country code. All other country
  3846. // codes follow the ISO 3166 two-character code.
  3847. CountryCode *string `min:"1" type:"string"`
  3848. // The code for a country's subdivision (e.g., a province of Canada). A subdivision
  3849. // code is only valid with the appropriate country code.
  3850. //
  3851. // Constraint: Specifying SubdivisionCode without CountryCode returns an InvalidInput
  3852. // error.
  3853. SubdivisionCode *string `min:"1" type:"string"`
  3854. }
  3855. // String returns the string representation
  3856. func (s GeoLocation) String() string {
  3857. return awsutil.Prettify(s)
  3858. }
  3859. // GoString returns the string representation
  3860. func (s GeoLocation) GoString() string {
  3861. return s.String()
  3862. }
  3863. // Validate inspects the fields of the type to determine if they are valid.
  3864. func (s *GeoLocation) Validate() error {
  3865. invalidParams := request.ErrInvalidParams{Context: "GeoLocation"}
  3866. if s.ContinentCode != nil && len(*s.ContinentCode) < 2 {
  3867. invalidParams.Add(request.NewErrParamMinLen("ContinentCode", 2))
  3868. }
  3869. if s.CountryCode != nil && len(*s.CountryCode) < 1 {
  3870. invalidParams.Add(request.NewErrParamMinLen("CountryCode", 1))
  3871. }
  3872. if s.SubdivisionCode != nil && len(*s.SubdivisionCode) < 1 {
  3873. invalidParams.Add(request.NewErrParamMinLen("SubdivisionCode", 1))
  3874. }
  3875. if invalidParams.Len() > 0 {
  3876. return invalidParams
  3877. }
  3878. return nil
  3879. }
  3880. // A complex type that contains information about a GeoLocation.
  3881. type GeoLocationDetails struct {
  3882. _ struct{} `type:"structure"`
  3883. // The code for a continent geo location. Note: only continent locations have
  3884. // a continent code.
  3885. ContinentCode *string `min:"2" type:"string"`
  3886. // The name of the continent. This element is only present if ContinentCode
  3887. // is also present.
  3888. ContinentName *string `min:"1" type:"string"`
  3889. // The code for a country geo location. The default location uses '*' for the
  3890. // country code and will match all locations that are not matched by a geo location.
  3891. //
  3892. // The default geo location uses a * for the country code. All other country
  3893. // codes follow the ISO 3166 two-character code.
  3894. CountryCode *string `min:"1" type:"string"`
  3895. // The name of the country. This element is only present if CountryCode is also
  3896. // present.
  3897. CountryName *string `min:"1" type:"string"`
  3898. // The code for a country's subdivision (e.g., a province of Canada). A subdivision
  3899. // code is only valid with the appropriate country code.
  3900. SubdivisionCode *string `min:"1" type:"string"`
  3901. // The name of the subdivision. This element is only present if SubdivisionCode
  3902. // is also present.
  3903. SubdivisionName *string `min:"1" type:"string"`
  3904. }
  3905. // String returns the string representation
  3906. func (s GeoLocationDetails) String() string {
  3907. return awsutil.Prettify(s)
  3908. }
  3909. // GoString returns the string representation
  3910. func (s GeoLocationDetails) GoString() string {
  3911. return s.String()
  3912. }
  3913. // The input for a GetChangeDetails request.
  3914. type GetChangeDetailsInput struct {
  3915. _ struct{} `deprecated:"true" type:"structure"`
  3916. // The ID of the change batch request. The value that you specify here is the
  3917. // value that ChangeResourceRecordSets returned in the Id element when you submitted
  3918. // the request.
  3919. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  3920. }
  3921. // String returns the string representation
  3922. func (s GetChangeDetailsInput) String() string {
  3923. return awsutil.Prettify(s)
  3924. }
  3925. // GoString returns the string representation
  3926. func (s GetChangeDetailsInput) GoString() string {
  3927. return s.String()
  3928. }
  3929. // Validate inspects the fields of the type to determine if they are valid.
  3930. func (s *GetChangeDetailsInput) Validate() error {
  3931. invalidParams := request.ErrInvalidParams{Context: "GetChangeDetailsInput"}
  3932. if s.Id == nil {
  3933. invalidParams.Add(request.NewErrParamRequired("Id"))
  3934. }
  3935. if invalidParams.Len() > 0 {
  3936. return invalidParams
  3937. }
  3938. return nil
  3939. }
  3940. // A complex type that contains the ChangeBatchRecord element.
  3941. type GetChangeDetailsOutput struct {
  3942. _ struct{} `deprecated:"true" type:"structure"`
  3943. // A complex type that contains information about the specified change batch,
  3944. // including the change batch ID, the status of the change, and the contained
  3945. // changes.
  3946. ChangeBatchRecord *ChangeBatchRecord `deprecated:"true" type:"structure" required:"true"`
  3947. }
  3948. // String returns the string representation
  3949. func (s GetChangeDetailsOutput) String() string {
  3950. return awsutil.Prettify(s)
  3951. }
  3952. // GoString returns the string representation
  3953. func (s GetChangeDetailsOutput) GoString() string {
  3954. return s.String()
  3955. }
  3956. // The input for a GetChange request.
  3957. type GetChangeInput struct {
  3958. _ struct{} `type:"structure"`
  3959. // The ID of the change batch request. The value that you specify here is the
  3960. // value that ChangeResourceRecordSets returned in the Id element when you submitted
  3961. // the request.
  3962. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  3963. }
  3964. // String returns the string representation
  3965. func (s GetChangeInput) String() string {
  3966. return awsutil.Prettify(s)
  3967. }
  3968. // GoString returns the string representation
  3969. func (s GetChangeInput) GoString() string {
  3970. return s.String()
  3971. }
  3972. // Validate inspects the fields of the type to determine if they are valid.
  3973. func (s *GetChangeInput) Validate() error {
  3974. invalidParams := request.ErrInvalidParams{Context: "GetChangeInput"}
  3975. if s.Id == nil {
  3976. invalidParams.Add(request.NewErrParamRequired("Id"))
  3977. }
  3978. if invalidParams.Len() > 0 {
  3979. return invalidParams
  3980. }
  3981. return nil
  3982. }
  3983. // A complex type that contains the ChangeInfo element.
  3984. type GetChangeOutput struct {
  3985. _ struct{} `type:"structure"`
  3986. // A complex type that contains information about the specified change batch,
  3987. // including the change batch ID, the status of the change, and the date and
  3988. // time of the request.
  3989. ChangeInfo *ChangeInfo `type:"structure" required:"true"`
  3990. }
  3991. // String returns the string representation
  3992. func (s GetChangeOutput) String() string {
  3993. return awsutil.Prettify(s)
  3994. }
  3995. // GoString returns the string representation
  3996. func (s GetChangeOutput) GoString() string {
  3997. return s.String()
  3998. }
  3999. // Empty request.
  4000. type GetCheckerIpRangesInput struct {
  4001. _ struct{} `type:"structure"`
  4002. }
  4003. // String returns the string representation
  4004. func (s GetCheckerIpRangesInput) String() string {
  4005. return awsutil.Prettify(s)
  4006. }
  4007. // GoString returns the string representation
  4008. func (s GetCheckerIpRangesInput) GoString() string {
  4009. return s.String()
  4010. }
  4011. // A complex type that contains the CheckerIpRanges element.
  4012. type GetCheckerIpRangesOutput struct {
  4013. _ struct{} `type:"structure"`
  4014. // A complex type that contains sorted list of IP ranges in CIDR format for
  4015. // Amazon Route 53 health checkers.
  4016. CheckerIpRanges []*string `type:"list" required:"true"`
  4017. }
  4018. // String returns the string representation
  4019. func (s GetCheckerIpRangesOutput) String() string {
  4020. return awsutil.Prettify(s)
  4021. }
  4022. // GoString returns the string representation
  4023. func (s GetCheckerIpRangesOutput) GoString() string {
  4024. return s.String()
  4025. }
  4026. // A complex type that contains information about the request to get a geo location.
  4027. type GetGeoLocationInput struct {
  4028. _ struct{} `type:"structure"`
  4029. // The code for a continent geo location. Note: only continent locations have
  4030. // a continent code.
  4031. //
  4032. // Valid values: AF | AN | AS | EU | OC | NA | SA
  4033. //
  4034. // Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode
  4035. // returns an InvalidInput error.
  4036. ContinentCode *string `location:"querystring" locationName:"continentcode" min:"2" type:"string"`
  4037. // The code for a country geo location. The default location uses '*' for the
  4038. // country code and will match all locations that are not matched by a geo location.
  4039. //
  4040. // The default geo location uses a * for the country code. All other country
  4041. // codes follow the ISO 3166 two-character code.
  4042. CountryCode *string `location:"querystring" locationName:"countrycode" min:"1" type:"string"`
  4043. // The code for a country's subdivision (e.g., a province of Canada). A subdivision
  4044. // code is only valid with the appropriate country code.
  4045. //
  4046. // Constraint: Specifying SubdivisionCode without CountryCode returns an InvalidInput
  4047. // error.
  4048. SubdivisionCode *string `location:"querystring" locationName:"subdivisioncode" min:"1" type:"string"`
  4049. }
  4050. // String returns the string representation
  4051. func (s GetGeoLocationInput) String() string {
  4052. return awsutil.Prettify(s)
  4053. }
  4054. // GoString returns the string representation
  4055. func (s GetGeoLocationInput) GoString() string {
  4056. return s.String()
  4057. }
  4058. // Validate inspects the fields of the type to determine if they are valid.
  4059. func (s *GetGeoLocationInput) Validate() error {
  4060. invalidParams := request.ErrInvalidParams{Context: "GetGeoLocationInput"}
  4061. if s.ContinentCode != nil && len(*s.ContinentCode) < 2 {
  4062. invalidParams.Add(request.NewErrParamMinLen("ContinentCode", 2))
  4063. }
  4064. if s.CountryCode != nil && len(*s.CountryCode) < 1 {
  4065. invalidParams.Add(request.NewErrParamMinLen("CountryCode", 1))
  4066. }
  4067. if s.SubdivisionCode != nil && len(*s.SubdivisionCode) < 1 {
  4068. invalidParams.Add(request.NewErrParamMinLen("SubdivisionCode", 1))
  4069. }
  4070. if invalidParams.Len() > 0 {
  4071. return invalidParams
  4072. }
  4073. return nil
  4074. }
  4075. // A complex type containing information about the specified geo location.
  4076. type GetGeoLocationOutput struct {
  4077. _ struct{} `type:"structure"`
  4078. // A complex type that contains the information about the specified geo location.
  4079. GeoLocationDetails *GeoLocationDetails `type:"structure" required:"true"`
  4080. }
  4081. // String returns the string representation
  4082. func (s GetGeoLocationOutput) String() string {
  4083. return awsutil.Prettify(s)
  4084. }
  4085. // GoString returns the string representation
  4086. func (s GetGeoLocationOutput) GoString() string {
  4087. return s.String()
  4088. }
  4089. // To retrieve a count of all your health checks, send a GET request to the
  4090. // /Route 53 API version/healthcheckcount resource.
  4091. type GetHealthCheckCountInput struct {
  4092. _ struct{} `type:"structure"`
  4093. }
  4094. // String returns the string representation
  4095. func (s GetHealthCheckCountInput) String() string {
  4096. return awsutil.Prettify(s)
  4097. }
  4098. // GoString returns the string representation
  4099. func (s GetHealthCheckCountInput) GoString() string {
  4100. return s.String()
  4101. }
  4102. // A complex type that contains the count of health checks associated with the
  4103. // current AWS account.
  4104. type GetHealthCheckCountOutput struct {
  4105. _ struct{} `type:"structure"`
  4106. // The number of health checks associated with the current AWS account.
  4107. HealthCheckCount *int64 `type:"long" required:"true"`
  4108. }
  4109. // String returns the string representation
  4110. func (s GetHealthCheckCountOutput) String() string {
  4111. return awsutil.Prettify(s)
  4112. }
  4113. // GoString returns the string representation
  4114. func (s GetHealthCheckCountOutput) GoString() string {
  4115. return s.String()
  4116. }
  4117. // A complex type that contains information about the request to get a health
  4118. // check.
  4119. type GetHealthCheckInput struct {
  4120. _ struct{} `type:"structure"`
  4121. // The ID of the health check to retrieve.
  4122. HealthCheckId *string `location:"uri" locationName:"HealthCheckId" type:"string" required:"true"`
  4123. }
  4124. // String returns the string representation
  4125. func (s GetHealthCheckInput) String() string {
  4126. return awsutil.Prettify(s)
  4127. }
  4128. // GoString returns the string representation
  4129. func (s GetHealthCheckInput) GoString() string {
  4130. return s.String()
  4131. }
  4132. // Validate inspects the fields of the type to determine if they are valid.
  4133. func (s *GetHealthCheckInput) Validate() error {
  4134. invalidParams := request.ErrInvalidParams{Context: "GetHealthCheckInput"}
  4135. if s.HealthCheckId == nil {
  4136. invalidParams.Add(request.NewErrParamRequired("HealthCheckId"))
  4137. }
  4138. if invalidParams.Len() > 0 {
  4139. return invalidParams
  4140. }
  4141. return nil
  4142. }
  4143. // A complex type that contains information about the request to get the most
  4144. // recent failure reason for a health check.
  4145. type GetHealthCheckLastFailureReasonInput struct {
  4146. _ struct{} `type:"structure"`
  4147. // The ID of the health check for which you want to retrieve the reason for
  4148. // the most recent failure.
  4149. HealthCheckId *string `location:"uri" locationName:"HealthCheckId" type:"string" required:"true"`
  4150. }
  4151. // String returns the string representation
  4152. func (s GetHealthCheckLastFailureReasonInput) String() string {
  4153. return awsutil.Prettify(s)
  4154. }
  4155. // GoString returns the string representation
  4156. func (s GetHealthCheckLastFailureReasonInput) GoString() string {
  4157. return s.String()
  4158. }
  4159. // Validate inspects the fields of the type to determine if they are valid.
  4160. func (s *GetHealthCheckLastFailureReasonInput) Validate() error {
  4161. invalidParams := request.ErrInvalidParams{Context: "GetHealthCheckLastFailureReasonInput"}
  4162. if s.HealthCheckId == nil {
  4163. invalidParams.Add(request.NewErrParamRequired("HealthCheckId"))
  4164. }
  4165. if invalidParams.Len() > 0 {
  4166. return invalidParams
  4167. }
  4168. return nil
  4169. }
  4170. // A complex type that contains information about the most recent failure for
  4171. // the specified health check.
  4172. type GetHealthCheckLastFailureReasonOutput struct {
  4173. _ struct{} `type:"structure"`
  4174. // A list that contains one HealthCheckObservation element for each Amazon Route
  4175. // 53 health checker.
  4176. HealthCheckObservations []*HealthCheckObservation `locationNameList:"HealthCheckObservation" type:"list" required:"true"`
  4177. }
  4178. // String returns the string representation
  4179. func (s GetHealthCheckLastFailureReasonOutput) String() string {
  4180. return awsutil.Prettify(s)
  4181. }
  4182. // GoString returns the string representation
  4183. func (s GetHealthCheckLastFailureReasonOutput) GoString() string {
  4184. return s.String()
  4185. }
  4186. // A complex type containing information about the specified health check.
  4187. type GetHealthCheckOutput struct {
  4188. _ struct{} `type:"structure"`
  4189. // A complex type that contains the information about the specified health check.
  4190. HealthCheck *HealthCheck `type:"structure" required:"true"`
  4191. }
  4192. // String returns the string representation
  4193. func (s GetHealthCheckOutput) String() string {
  4194. return awsutil.Prettify(s)
  4195. }
  4196. // GoString returns the string representation
  4197. func (s GetHealthCheckOutput) GoString() string {
  4198. return s.String()
  4199. }
  4200. // A complex type that contains information about the request to get health
  4201. // check status for a health check.
  4202. type GetHealthCheckStatusInput struct {
  4203. _ struct{} `type:"structure"`
  4204. // If you want Amazon Route 53 to return this resource record set in response
  4205. // to a DNS query only when a health check is passing, include the HealthCheckId
  4206. // element and specify the ID of the applicable health check.
  4207. //
  4208. // Amazon Route 53 determines whether a resource record set is healthy by periodically
  4209. // sending a request to the endpoint that is specified in the health check.
  4210. // If that endpoint returns an HTTP status code of 2xx or 3xx, the endpoint
  4211. // is healthy. If the endpoint returns an HTTP status code of 400 or greater,
  4212. // or if the endpoint doesn't respond for a certain amount of time, Amazon Route
  4213. // 53 considers the endpoint unhealthy and also considers the resource record
  4214. // set unhealthy.
  4215. //
  4216. // The HealthCheckId element is only useful when Amazon Route 53 is choosing
  4217. // between two or more resource record sets to respond to a DNS query, and you
  4218. // want Amazon Route 53 to base the choice in part on the status of a health
  4219. // check. Configuring health checks only makes sense in the following configurations:
  4220. //
  4221. // You're checking the health of the resource record sets in a weighted, latency,
  4222. // geolocation, or failover resource record set, and you specify health check
  4223. // IDs for all of the resource record sets. If the health check for one resource
  4224. // record set specifies an endpoint that is not healthy, Amazon Route 53 stops
  4225. // responding to queries using the value for that resource record set. You set
  4226. // EvaluateTargetHealth to true for the resource record sets in an alias, weighted
  4227. // alias, latency alias, geolocation alias, or failover alias resource record
  4228. // set, and you specify health check IDs for all of the resource record sets
  4229. // that are referenced by the alias resource record sets. For more information
  4230. // about this configuration, see EvaluateTargetHealth.
  4231. //
  4232. // Amazon Route 53 doesn't check the health of the endpoint specified in the
  4233. // resource record set, for example, the endpoint specified by the IP address
  4234. // in the Value element. When you add a HealthCheckId element to a resource
  4235. // record set, Amazon Route 53 checks the health of the endpoint that you specified
  4236. // in the health check.
  4237. //
  4238. // For geolocation resource record sets, if an endpoint is unhealthy, Amazon
  4239. // Route 53 looks for a resource record set for the larger, associated geographic
  4240. // region. For example, suppose you have resource record sets for a state in
  4241. // the United States, for the United States, for North America, and for all
  4242. // locations. If the endpoint for the state resource record set is unhealthy,
  4243. // Amazon Route 53 checks the resource record sets for the United States, for
  4244. // North America, and for all locations (a resource record set for which the
  4245. // value of CountryCode is *), in that order, until it finds a resource record
  4246. // set for which the endpoint is healthy.
  4247. //
  4248. // If your health checks specify the endpoint only by domain name, we recommend
  4249. // that you create a separate health check for each endpoint. For example, create
  4250. // a health check for each HTTP server that is serving content for www.example.com.
  4251. // For the value of FullyQualifiedDomainName, specify the domain name of the
  4252. // server (such as us-east-1-www.example.com), not the name of the resource
  4253. // record sets (example.com).
  4254. //
  4255. // In this configuration, if you create a health check for which the value
  4256. // of FullyQualifiedDomainName matches the name of the resource record sets
  4257. // and then associate the health check with those resource record sets, health
  4258. // check results will be unpredictable.
  4259. HealthCheckId *string `location:"uri" locationName:"HealthCheckId" type:"string" required:"true"`
  4260. }
  4261. // String returns the string representation
  4262. func (s GetHealthCheckStatusInput) String() string {
  4263. return awsutil.Prettify(s)
  4264. }
  4265. // GoString returns the string representation
  4266. func (s GetHealthCheckStatusInput) GoString() string {
  4267. return s.String()
  4268. }
  4269. // Validate inspects the fields of the type to determine if they are valid.
  4270. func (s *GetHealthCheckStatusInput) Validate() error {
  4271. invalidParams := request.ErrInvalidParams{Context: "GetHealthCheckStatusInput"}
  4272. if s.HealthCheckId == nil {
  4273. invalidParams.Add(request.NewErrParamRequired("HealthCheckId"))
  4274. }
  4275. if invalidParams.Len() > 0 {
  4276. return invalidParams
  4277. }
  4278. return nil
  4279. }
  4280. // A complex type that contains information about the status of the specified
  4281. // health check.
  4282. type GetHealthCheckStatusOutput struct {
  4283. _ struct{} `type:"structure"`
  4284. // A list that contains one HealthCheckObservation element for each Amazon Route
  4285. // 53 health checker.
  4286. HealthCheckObservations []*HealthCheckObservation `locationNameList:"HealthCheckObservation" type:"list" required:"true"`
  4287. }
  4288. // String returns the string representation
  4289. func (s GetHealthCheckStatusOutput) String() string {
  4290. return awsutil.Prettify(s)
  4291. }
  4292. // GoString returns the string representation
  4293. func (s GetHealthCheckStatusOutput) GoString() string {
  4294. return s.String()
  4295. }
  4296. // To retrieve a count of all your hosted zones, send a GET request to the /Route
  4297. // 53 API version/hostedzonecount resource.
  4298. type GetHostedZoneCountInput struct {
  4299. _ struct{} `type:"structure"`
  4300. }
  4301. // String returns the string representation
  4302. func (s GetHostedZoneCountInput) String() string {
  4303. return awsutil.Prettify(s)
  4304. }
  4305. // GoString returns the string representation
  4306. func (s GetHostedZoneCountInput) GoString() string {
  4307. return s.String()
  4308. }
  4309. // A complex type that contains the count of hosted zones associated with the
  4310. // current AWS account.
  4311. type GetHostedZoneCountOutput struct {
  4312. _ struct{} `type:"structure"`
  4313. // The number of hosted zones associated with the current AWS account.
  4314. HostedZoneCount *int64 `type:"long" required:"true"`
  4315. }
  4316. // String returns the string representation
  4317. func (s GetHostedZoneCountOutput) String() string {
  4318. return awsutil.Prettify(s)
  4319. }
  4320. // GoString returns the string representation
  4321. func (s GetHostedZoneCountOutput) GoString() string {
  4322. return s.String()
  4323. }
  4324. // The input for a GetHostedZone request.
  4325. type GetHostedZoneInput struct {
  4326. _ struct{} `type:"structure"`
  4327. // The ID of the hosted zone for which you want to get a list of the name servers
  4328. // in the delegation set.
  4329. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  4330. }
  4331. // String returns the string representation
  4332. func (s GetHostedZoneInput) String() string {
  4333. return awsutil.Prettify(s)
  4334. }
  4335. // GoString returns the string representation
  4336. func (s GetHostedZoneInput) GoString() string {
  4337. return s.String()
  4338. }
  4339. // Validate inspects the fields of the type to determine if they are valid.
  4340. func (s *GetHostedZoneInput) Validate() error {
  4341. invalidParams := request.ErrInvalidParams{Context: "GetHostedZoneInput"}
  4342. if s.Id == nil {
  4343. invalidParams.Add(request.NewErrParamRequired("Id"))
  4344. }
  4345. if invalidParams.Len() > 0 {
  4346. return invalidParams
  4347. }
  4348. return nil
  4349. }
  4350. // A complex type containing information about the specified hosted zone.
  4351. type GetHostedZoneOutput struct {
  4352. _ struct{} `type:"structure"`
  4353. // A complex type that contains information about the name servers for the specified
  4354. // hosted zone.
  4355. DelegationSet *DelegationSet `type:"structure"`
  4356. // A complex type that contains the information about the specified hosted zone.
  4357. HostedZone *HostedZone `type:"structure" required:"true"`
  4358. // A complex type that contains information about VPCs associated with the specified
  4359. // hosted zone.
  4360. VPCs []*VPC `locationNameList:"VPC" min:"1" type:"list"`
  4361. }
  4362. // String returns the string representation
  4363. func (s GetHostedZoneOutput) String() string {
  4364. return awsutil.Prettify(s)
  4365. }
  4366. // GoString returns the string representation
  4367. func (s GetHostedZoneOutput) GoString() string {
  4368. return s.String()
  4369. }
  4370. // The input for a GetReusableDelegationSet request.
  4371. type GetReusableDelegationSetInput struct {
  4372. _ struct{} `type:"structure"`
  4373. // The ID of the reusable delegation set for which you want to get a list of
  4374. // the name server.
  4375. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  4376. }
  4377. // String returns the string representation
  4378. func (s GetReusableDelegationSetInput) String() string {
  4379. return awsutil.Prettify(s)
  4380. }
  4381. // GoString returns the string representation
  4382. func (s GetReusableDelegationSetInput) GoString() string {
  4383. return s.String()
  4384. }
  4385. // Validate inspects the fields of the type to determine if they are valid.
  4386. func (s *GetReusableDelegationSetInput) Validate() error {
  4387. invalidParams := request.ErrInvalidParams{Context: "GetReusableDelegationSetInput"}
  4388. if s.Id == nil {
  4389. invalidParams.Add(request.NewErrParamRequired("Id"))
  4390. }
  4391. if invalidParams.Len() > 0 {
  4392. return invalidParams
  4393. }
  4394. return nil
  4395. }
  4396. // A complex type containing information about the specified reusable delegation
  4397. // set.
  4398. type GetReusableDelegationSetOutput struct {
  4399. _ struct{} `type:"structure"`
  4400. // A complex type that contains the information about the nameservers for the
  4401. // specified delegation set ID.
  4402. DelegationSet *DelegationSet `type:"structure" required:"true"`
  4403. }
  4404. // String returns the string representation
  4405. func (s GetReusableDelegationSetOutput) String() string {
  4406. return awsutil.Prettify(s)
  4407. }
  4408. // GoString returns the string representation
  4409. func (s GetReusableDelegationSetOutput) GoString() string {
  4410. return s.String()
  4411. }
  4412. // Gets information about a specific traffic policy version. To get the information,
  4413. // send a GET request to the /Route 53 API version/trafficpolicy resource, and
  4414. // specify the ID and the version of the traffic policy.
  4415. type GetTrafficPolicyInput struct {
  4416. _ struct{} `type:"structure"`
  4417. // The ID of the traffic policy that you want to get information about.
  4418. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  4419. // The version number of the traffic policy that you want to get information
  4420. // about.
  4421. Version *int64 `location:"uri" locationName:"Version" min:"1" type:"integer" required:"true"`
  4422. }
  4423. // String returns the string representation
  4424. func (s GetTrafficPolicyInput) String() string {
  4425. return awsutil.Prettify(s)
  4426. }
  4427. // GoString returns the string representation
  4428. func (s GetTrafficPolicyInput) GoString() string {
  4429. return s.String()
  4430. }
  4431. // Validate inspects the fields of the type to determine if they are valid.
  4432. func (s *GetTrafficPolicyInput) Validate() error {
  4433. invalidParams := request.ErrInvalidParams{Context: "GetTrafficPolicyInput"}
  4434. if s.Id == nil {
  4435. invalidParams.Add(request.NewErrParamRequired("Id"))
  4436. }
  4437. if s.Version == nil {
  4438. invalidParams.Add(request.NewErrParamRequired("Version"))
  4439. }
  4440. if s.Version != nil && *s.Version < 1 {
  4441. invalidParams.Add(request.NewErrParamMinValue("Version", 1))
  4442. }
  4443. if invalidParams.Len() > 0 {
  4444. return invalidParams
  4445. }
  4446. return nil
  4447. }
  4448. // To retrieve a count of all your traffic policy instances, send a GET request
  4449. // to the /Route 53 API version/trafficpolicyinstancecount resource.
  4450. type GetTrafficPolicyInstanceCountInput struct {
  4451. _ struct{} `type:"structure"`
  4452. }
  4453. // String returns the string representation
  4454. func (s GetTrafficPolicyInstanceCountInput) String() string {
  4455. return awsutil.Prettify(s)
  4456. }
  4457. // GoString returns the string representation
  4458. func (s GetTrafficPolicyInstanceCountInput) GoString() string {
  4459. return s.String()
  4460. }
  4461. // A complex type that contains information about the number of traffic policy
  4462. // instances that are associated with the current AWS account.
  4463. type GetTrafficPolicyInstanceCountOutput struct {
  4464. _ struct{} `type:"structure"`
  4465. // The number of traffic policy instances that are associated with the current
  4466. // AWS account.
  4467. TrafficPolicyInstanceCount *int64 `type:"integer" required:"true"`
  4468. }
  4469. // String returns the string representation
  4470. func (s GetTrafficPolicyInstanceCountOutput) String() string {
  4471. return awsutil.Prettify(s)
  4472. }
  4473. // GoString returns the string representation
  4474. func (s GetTrafficPolicyInstanceCountOutput) GoString() string {
  4475. return s.String()
  4476. }
  4477. // Gets information about a specified traffic policy instance.
  4478. //
  4479. // To get information about a traffic policy instance, send a GET request to
  4480. // the /Route 53 API version/trafficpolicyinstance/Id resource.
  4481. type GetTrafficPolicyInstanceInput struct {
  4482. _ struct{} `type:"structure"`
  4483. // The ID of the traffic policy instance that you want to get information about.
  4484. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  4485. }
  4486. // String returns the string representation
  4487. func (s GetTrafficPolicyInstanceInput) String() string {
  4488. return awsutil.Prettify(s)
  4489. }
  4490. // GoString returns the string representation
  4491. func (s GetTrafficPolicyInstanceInput) GoString() string {
  4492. return s.String()
  4493. }
  4494. // Validate inspects the fields of the type to determine if they are valid.
  4495. func (s *GetTrafficPolicyInstanceInput) Validate() error {
  4496. invalidParams := request.ErrInvalidParams{Context: "GetTrafficPolicyInstanceInput"}
  4497. if s.Id == nil {
  4498. invalidParams.Add(request.NewErrParamRequired("Id"))
  4499. }
  4500. if invalidParams.Len() > 0 {
  4501. return invalidParams
  4502. }
  4503. return nil
  4504. }
  4505. // A complex type that contains information about the resource record sets that
  4506. // Amazon Route 53 created based on a specified traffic policy.
  4507. type GetTrafficPolicyInstanceOutput struct {
  4508. _ struct{} `type:"structure"`
  4509. // A complex type that contains settings for the traffic policy instance.
  4510. TrafficPolicyInstance *TrafficPolicyInstance `type:"structure" required:"true"`
  4511. }
  4512. // String returns the string representation
  4513. func (s GetTrafficPolicyInstanceOutput) String() string {
  4514. return awsutil.Prettify(s)
  4515. }
  4516. // GoString returns the string representation
  4517. func (s GetTrafficPolicyInstanceOutput) GoString() string {
  4518. return s.String()
  4519. }
  4520. // A complex type that contains the response information for the request.
  4521. type GetTrafficPolicyOutput struct {
  4522. _ struct{} `type:"structure"`
  4523. // A complex type that contains settings for the specified traffic policy.
  4524. TrafficPolicy *TrafficPolicy `type:"structure" required:"true"`
  4525. }
  4526. // String returns the string representation
  4527. func (s GetTrafficPolicyOutput) String() string {
  4528. return awsutil.Prettify(s)
  4529. }
  4530. // GoString returns the string representation
  4531. func (s GetTrafficPolicyOutput) GoString() string {
  4532. return s.String()
  4533. }
  4534. // A complex type that contains identifying information about the health check.
  4535. type HealthCheck struct {
  4536. _ struct{} `type:"structure"`
  4537. // A unique string that identifies the request to create the health check.
  4538. CallerReference *string `min:"1" type:"string" required:"true"`
  4539. // For CLOUDWATCH_METRIC health checks, a complex type that contains information
  4540. // about the CloudWatch alarm that you're associating with the health check.
  4541. CloudWatchAlarmConfiguration *CloudWatchAlarmConfiguration `type:"structure"`
  4542. // A complex type that contains the health check configuration.
  4543. HealthCheckConfig *HealthCheckConfig `type:"structure" required:"true"`
  4544. // The version of the health check. You can optionally pass this value in a
  4545. // call to UpdateHealthCheck to prevent overwriting another change to the health
  4546. // check.
  4547. HealthCheckVersion *int64 `min:"1" type:"long" required:"true"`
  4548. // The ID of the specified health check.
  4549. Id *string `type:"string" required:"true"`
  4550. }
  4551. // String returns the string representation
  4552. func (s HealthCheck) String() string {
  4553. return awsutil.Prettify(s)
  4554. }
  4555. // GoString returns the string representation
  4556. func (s HealthCheck) GoString() string {
  4557. return s.String()
  4558. }
  4559. // A complex type that contains the health check configuration.
  4560. type HealthCheckConfig struct {
  4561. _ struct{} `type:"structure"`
  4562. // A complex type that contains information to uniquely identify the CloudWatch
  4563. // alarm that you're associating with a Route 53 health check.
  4564. AlarmIdentifier *AlarmIdentifier `type:"structure"`
  4565. // For a specified parent health check, a list of HealthCheckId values for the
  4566. // associated child health checks.
  4567. ChildHealthChecks []*string `locationNameList:"ChildHealthCheck" type:"list"`
  4568. // Specify whether you want Amazon Route 53 to send the value of FullyQualifiedDomainName
  4569. // to the endpoint in the client_hello message during TLS negotiation. If you
  4570. // don't specify a value for EnableSNI, Amazon Route 53 defaults to true when
  4571. // Type is HTTPS or HTTPS_STR_MATCH and defaults to false when Type is any other
  4572. // value.
  4573. EnableSNI *bool `type:"boolean"`
  4574. // The number of consecutive health checks that an endpoint must pass or fail
  4575. // for Amazon Route 53 to change the current status of the endpoint from unhealthy
  4576. // to healthy or vice versa.
  4577. //
  4578. // Valid values are integers between 1 and 10. For more information, see "How
  4579. // Amazon Route 53 Determines Whether an Endpoint Is Healthy" in the Amazon
  4580. // Route 53 Developer Guide.
  4581. FailureThreshold *int64 `min:"1" type:"integer"`
  4582. // Fully qualified domain name of the instance to be health checked.
  4583. FullyQualifiedDomainName *string `type:"string"`
  4584. // The minimum number of child health checks that must be healthy for Amazon
  4585. // Route 53 to consider the parent health check to be healthy. Valid values
  4586. // are integers between 0 and 256, inclusive.
  4587. HealthThreshold *int64 `type:"integer"`
  4588. // IP Address of the instance being checked.
  4589. IPAddress *string `type:"string"`
  4590. // The status of the health check when CloudWatch has insufficient data about
  4591. // the state of associated alarm. Valid values are Healthy, Unhealthy and LastKnownStatus.
  4592. InsufficientDataHealthStatus *string `type:"string" enum:"InsufficientDataHealthStatus"`
  4593. // A boolean value that indicates whether the status of health check should
  4594. // be inverted. For example, if a health check is healthy but Inverted is True,
  4595. // then Amazon Route 53 considers the health check to be unhealthy.
  4596. Inverted *bool `type:"boolean"`
  4597. // A Boolean value that indicates whether you want Amazon Route 53 to measure
  4598. // the latency between health checkers in multiple AWS regions and your endpoint
  4599. // and to display CloudWatch latency graphs in the Amazon Route 53 console.
  4600. MeasureLatency *bool `type:"boolean"`
  4601. // Port on which connection will be opened to the instance to health check.
  4602. // For HTTP and HTTP_STR_MATCH this defaults to 80 if the port is not specified.
  4603. // For HTTPS and HTTPS_STR_MATCH this defaults to 443 if the port is not specified.
  4604. Port *int64 `min:"1" type:"integer"`
  4605. // A list of HealthCheckRegion values that you want Amazon Route 53 to use to
  4606. // perform health checks for the specified endpoint. You must specify at least
  4607. // three regions.
  4608. Regions []*string `locationNameList:"Region" min:"1" type:"list"`
  4609. // The number of seconds between the time that Amazon Route 53 gets a response
  4610. // from your endpoint and the time that it sends the next health-check request.
  4611. //
  4612. // Each Amazon Route 53 health checker makes requests at this interval. Valid
  4613. // values are 10 and 30. The default value is 30.
  4614. RequestInterval *int64 `min:"10" type:"integer"`
  4615. // Path to ping on the instance to check the health. Required for HTTP, HTTPS,
  4616. // HTTP_STR_MATCH, and HTTPS_STR_MATCH health checks. The HTTP request is issued
  4617. // to the instance on the given port and path.
  4618. ResourcePath *string `type:"string"`
  4619. // A string to search for in the body of a health check response. Required for
  4620. // HTTP_STR_MATCH and HTTPS_STR_MATCH health checks. Amazon Route 53 considers
  4621. // case when searching for SearchString in the response body.
  4622. SearchString *string `type:"string"`
  4623. // The type of health check to be performed. Currently supported types are TCP,
  4624. // HTTP, HTTPS, HTTP_STR_MATCH, HTTPS_STR_MATCH, CALCULATED and CLOUDWATCH_METRIC.
  4625. Type *string `type:"string" required:"true" enum:"HealthCheckType"`
  4626. }
  4627. // String returns the string representation
  4628. func (s HealthCheckConfig) String() string {
  4629. return awsutil.Prettify(s)
  4630. }
  4631. // GoString returns the string representation
  4632. func (s HealthCheckConfig) GoString() string {
  4633. return s.String()
  4634. }
  4635. // Validate inspects the fields of the type to determine if they are valid.
  4636. func (s *HealthCheckConfig) Validate() error {
  4637. invalidParams := request.ErrInvalidParams{Context: "HealthCheckConfig"}
  4638. if s.FailureThreshold != nil && *s.FailureThreshold < 1 {
  4639. invalidParams.Add(request.NewErrParamMinValue("FailureThreshold", 1))
  4640. }
  4641. if s.Port != nil && *s.Port < 1 {
  4642. invalidParams.Add(request.NewErrParamMinValue("Port", 1))
  4643. }
  4644. if s.Regions != nil && len(s.Regions) < 1 {
  4645. invalidParams.Add(request.NewErrParamMinLen("Regions", 1))
  4646. }
  4647. if s.RequestInterval != nil && *s.RequestInterval < 10 {
  4648. invalidParams.Add(request.NewErrParamMinValue("RequestInterval", 10))
  4649. }
  4650. if s.Type == nil {
  4651. invalidParams.Add(request.NewErrParamRequired("Type"))
  4652. }
  4653. if s.AlarmIdentifier != nil {
  4654. if err := s.AlarmIdentifier.Validate(); err != nil {
  4655. invalidParams.AddNested("AlarmIdentifier", err.(request.ErrInvalidParams))
  4656. }
  4657. }
  4658. if invalidParams.Len() > 0 {
  4659. return invalidParams
  4660. }
  4661. return nil
  4662. }
  4663. // A complex type that contains the IP address of a Amazon Route 53 health checker
  4664. // and the reason for the health check status.
  4665. type HealthCheckObservation struct {
  4666. _ struct{} `type:"structure"`
  4667. // The IP address of the Amazon Route 53 health checker that performed this
  4668. // health check.
  4669. IPAddress *string `type:"string"`
  4670. // The HealthCheckRegion of the Amazon Route 53 health checker that performed
  4671. // this health check.
  4672. Region *string `min:"1" type:"string" enum:"HealthCheckRegion"`
  4673. // A complex type that contains information about the health check status for
  4674. // the current observation.
  4675. StatusReport *StatusReport `type:"structure"`
  4676. }
  4677. // String returns the string representation
  4678. func (s HealthCheckObservation) String() string {
  4679. return awsutil.Prettify(s)
  4680. }
  4681. // GoString returns the string representation
  4682. func (s HealthCheckObservation) GoString() string {
  4683. return s.String()
  4684. }
  4685. // A complex type that contain information about the specified hosted zone.
  4686. type HostedZone struct {
  4687. _ struct{} `type:"structure"`
  4688. // A unique string that identifies the request to create the hosted zone.
  4689. CallerReference *string `min:"1" type:"string" required:"true"`
  4690. // A complex type that contains the Comment element.
  4691. Config *HostedZoneConfig `type:"structure"`
  4692. // The ID of the specified hosted zone.
  4693. Id *string `type:"string" required:"true"`
  4694. // The name of the domain. This must be a fully-specified domain, for example,
  4695. // www.example.com. The trailing dot is optional; Amazon Route 53 assumes that
  4696. // the domain name is fully qualified. This means that Amazon Route 53 treats
  4697. // www.example.com (without a trailing dot) and www.example.com. (with a trailing
  4698. // dot) as identical.
  4699. //
  4700. // This is the name you have registered with your DNS registrar. You should
  4701. // ask your registrar to change the authoritative name servers for your domain
  4702. // to the set of NameServers elements returned in DelegationSet.
  4703. Name *string `type:"string" required:"true"`
  4704. // Total number of resource record sets in the hosted zone.
  4705. ResourceRecordSetCount *int64 `type:"long"`
  4706. }
  4707. // String returns the string representation
  4708. func (s HostedZone) String() string {
  4709. return awsutil.Prettify(s)
  4710. }
  4711. // GoString returns the string representation
  4712. func (s HostedZone) GoString() string {
  4713. return s.String()
  4714. }
  4715. // A complex type that contains an optional comment about your hosted zone.
  4716. // If you don't want to specify a comment, you can omit the HostedZoneConfig
  4717. // and Comment elements from the XML document.
  4718. type HostedZoneConfig struct {
  4719. _ struct{} `type:"structure"`
  4720. // An optional comment about your hosted zone. If you don't want to specify
  4721. // a comment, you can omit the HostedZoneConfig and Comment elements from the
  4722. // XML document.
  4723. Comment *string `type:"string"`
  4724. // GetHostedZone and ListHostedZone responses: A Boolean value that indicates
  4725. // whether a hosted zone is private.
  4726. //
  4727. // CreateHostedZone requests: When you're creating a private hosted zone (when
  4728. // you specify values for VPCId and VPCRegion), you can optionally specify true
  4729. // for PrivateZone.
  4730. PrivateZone *bool `type:"boolean"`
  4731. }
  4732. // String returns the string representation
  4733. func (s HostedZoneConfig) String() string {
  4734. return awsutil.Prettify(s)
  4735. }
  4736. // GoString returns the string representation
  4737. func (s HostedZoneConfig) GoString() string {
  4738. return s.String()
  4739. }
  4740. // The input for a ListChangeBatchesByHostedZone request.
  4741. type ListChangeBatchesByHostedZoneInput struct {
  4742. _ struct{} `deprecated:"true" type:"structure"`
  4743. // The end of the time period you want to see changes for.
  4744. EndDate *string `location:"querystring" locationName:"endDate" deprecated:"true" type:"string" required:"true"`
  4745. // The ID of the hosted zone that you want to see changes for.
  4746. HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  4747. // The page marker.
  4748. Marker *string `location:"querystring" locationName:"marker" type:"string"`
  4749. // The maximum number of items on a page.
  4750. MaxItems *string `location:"querystring" locationName:"maxItems" type:"string"`
  4751. // The start of the time period you want to see changes for.
  4752. StartDate *string `location:"querystring" locationName:"startDate" deprecated:"true" type:"string" required:"true"`
  4753. }
  4754. // String returns the string representation
  4755. func (s ListChangeBatchesByHostedZoneInput) String() string {
  4756. return awsutil.Prettify(s)
  4757. }
  4758. // GoString returns the string representation
  4759. func (s ListChangeBatchesByHostedZoneInput) GoString() string {
  4760. return s.String()
  4761. }
  4762. // Validate inspects the fields of the type to determine if they are valid.
  4763. func (s *ListChangeBatchesByHostedZoneInput) Validate() error {
  4764. invalidParams := request.ErrInvalidParams{Context: "ListChangeBatchesByHostedZoneInput"}
  4765. if s.EndDate == nil {
  4766. invalidParams.Add(request.NewErrParamRequired("EndDate"))
  4767. }
  4768. if s.HostedZoneId == nil {
  4769. invalidParams.Add(request.NewErrParamRequired("HostedZoneId"))
  4770. }
  4771. if s.StartDate == nil {
  4772. invalidParams.Add(request.NewErrParamRequired("StartDate"))
  4773. }
  4774. if invalidParams.Len() > 0 {
  4775. return invalidParams
  4776. }
  4777. return nil
  4778. }
  4779. // The input for a ListChangeBatchesByHostedZone request.
  4780. type ListChangeBatchesByHostedZoneOutput struct {
  4781. _ struct{} `deprecated:"true" type:"structure"`
  4782. // The change batches within the given hosted zone and time period.
  4783. ChangeBatchRecords []*ChangeBatchRecord `locationNameList:"ChangeBatchRecord" min:"1" deprecated:"true" type:"list" required:"true"`
  4784. // A flag that indicates if there are more change batches to list.
  4785. IsTruncated *bool `type:"boolean"`
  4786. // The page marker.
  4787. Marker *string `type:"string" required:"true"`
  4788. // The maximum number of items on a page.
  4789. MaxItems *string `type:"string" required:"true"`
  4790. // The next page marker.
  4791. NextMarker *string `type:"string"`
  4792. }
  4793. // String returns the string representation
  4794. func (s ListChangeBatchesByHostedZoneOutput) String() string {
  4795. return awsutil.Prettify(s)
  4796. }
  4797. // GoString returns the string representation
  4798. func (s ListChangeBatchesByHostedZoneOutput) GoString() string {
  4799. return s.String()
  4800. }
  4801. // The input for a ListChangeBatchesByRRSet request.
  4802. type ListChangeBatchesByRRSetInput struct {
  4803. _ struct{} `deprecated:"true" type:"structure"`
  4804. // The end of the time period you want to see changes for.
  4805. EndDate *string `location:"querystring" locationName:"endDate" deprecated:"true" type:"string" required:"true"`
  4806. // The ID of the hosted zone that you want to see changes for.
  4807. HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  4808. // The page marker.
  4809. Marker *string `location:"querystring" locationName:"marker" type:"string"`
  4810. // The maximum number of items on a page.
  4811. MaxItems *string `location:"querystring" locationName:"maxItems" type:"string"`
  4812. // The name of the RRSet that you want to see changes for.
  4813. Name *string `location:"querystring" locationName:"rrSet_name" type:"string" required:"true"`
  4814. // The identifier of the RRSet that you want to see changes for.
  4815. SetIdentifier *string `location:"querystring" locationName:"identifier" min:"1" type:"string"`
  4816. // The start of the time period you want to see changes for.
  4817. StartDate *string `location:"querystring" locationName:"startDate" deprecated:"true" type:"string" required:"true"`
  4818. // The type of the RRSet that you want to see changes for.
  4819. Type *string `location:"querystring" locationName:"type" type:"string" required:"true" enum:"RRType"`
  4820. }
  4821. // String returns the string representation
  4822. func (s ListChangeBatchesByRRSetInput) String() string {
  4823. return awsutil.Prettify(s)
  4824. }
  4825. // GoString returns the string representation
  4826. func (s ListChangeBatchesByRRSetInput) GoString() string {
  4827. return s.String()
  4828. }
  4829. // Validate inspects the fields of the type to determine if they are valid.
  4830. func (s *ListChangeBatchesByRRSetInput) Validate() error {
  4831. invalidParams := request.ErrInvalidParams{Context: "ListChangeBatchesByRRSetInput"}
  4832. if s.EndDate == nil {
  4833. invalidParams.Add(request.NewErrParamRequired("EndDate"))
  4834. }
  4835. if s.HostedZoneId == nil {
  4836. invalidParams.Add(request.NewErrParamRequired("HostedZoneId"))
  4837. }
  4838. if s.Name == nil {
  4839. invalidParams.Add(request.NewErrParamRequired("Name"))
  4840. }
  4841. if s.SetIdentifier != nil && len(*s.SetIdentifier) < 1 {
  4842. invalidParams.Add(request.NewErrParamMinLen("SetIdentifier", 1))
  4843. }
  4844. if s.StartDate == nil {
  4845. invalidParams.Add(request.NewErrParamRequired("StartDate"))
  4846. }
  4847. if s.Type == nil {
  4848. invalidParams.Add(request.NewErrParamRequired("Type"))
  4849. }
  4850. if invalidParams.Len() > 0 {
  4851. return invalidParams
  4852. }
  4853. return nil
  4854. }
  4855. // The input for a ListChangeBatchesByRRSet request.
  4856. type ListChangeBatchesByRRSetOutput struct {
  4857. _ struct{} `deprecated:"true" type:"structure"`
  4858. // The change batches within the given hosted zone and time period.
  4859. ChangeBatchRecords []*ChangeBatchRecord `locationNameList:"ChangeBatchRecord" min:"1" deprecated:"true" type:"list" required:"true"`
  4860. // A flag that indicates if there are more change batches to list.
  4861. IsTruncated *bool `type:"boolean"`
  4862. // The page marker.
  4863. Marker *string `type:"string" required:"true"`
  4864. // The maximum number of items on a page.
  4865. MaxItems *string `type:"string" required:"true"`
  4866. // The next page marker.
  4867. NextMarker *string `type:"string"`
  4868. }
  4869. // String returns the string representation
  4870. func (s ListChangeBatchesByRRSetOutput) String() string {
  4871. return awsutil.Prettify(s)
  4872. }
  4873. // GoString returns the string representation
  4874. func (s ListChangeBatchesByRRSetOutput) GoString() string {
  4875. return s.String()
  4876. }
  4877. // The input for a ListGeoLocations request.
  4878. type ListGeoLocationsInput struct {
  4879. _ struct{} `type:"structure"`
  4880. // The maximum number of geo locations you want in the response body.
  4881. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"`
  4882. // The first continent code in the lexicographic ordering of geo locations that
  4883. // you want the ListGeoLocations request to list. For non-continent geo locations,
  4884. // this should be null.
  4885. //
  4886. // Valid values: AF | AN | AS | EU | OC | NA | SA
  4887. //
  4888. // Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode
  4889. // returns an InvalidInput error.
  4890. StartContinentCode *string `location:"querystring" locationName:"startcontinentcode" min:"2" type:"string"`
  4891. // The first country code in the lexicographic ordering of geo locations that
  4892. // you want the ListGeoLocations request to list.
  4893. //
  4894. // The default geo location uses a * for the country code. All other country
  4895. // codes follow the ISO 3166 two-character code.
  4896. StartCountryCode *string `location:"querystring" locationName:"startcountrycode" min:"1" type:"string"`
  4897. // The first subdivision code in the lexicographic ordering of geo locations
  4898. // that you want the ListGeoLocations request to list.
  4899. //
  4900. // Constraint: Specifying SubdivisionCode without CountryCode returns an InvalidInput
  4901. // error.
  4902. StartSubdivisionCode *string `location:"querystring" locationName:"startsubdivisioncode" min:"1" type:"string"`
  4903. }
  4904. // String returns the string representation
  4905. func (s ListGeoLocationsInput) String() string {
  4906. return awsutil.Prettify(s)
  4907. }
  4908. // GoString returns the string representation
  4909. func (s ListGeoLocationsInput) GoString() string {
  4910. return s.String()
  4911. }
  4912. // Validate inspects the fields of the type to determine if they are valid.
  4913. func (s *ListGeoLocationsInput) Validate() error {
  4914. invalidParams := request.ErrInvalidParams{Context: "ListGeoLocationsInput"}
  4915. if s.StartContinentCode != nil && len(*s.StartContinentCode) < 2 {
  4916. invalidParams.Add(request.NewErrParamMinLen("StartContinentCode", 2))
  4917. }
  4918. if s.StartCountryCode != nil && len(*s.StartCountryCode) < 1 {
  4919. invalidParams.Add(request.NewErrParamMinLen("StartCountryCode", 1))
  4920. }
  4921. if s.StartSubdivisionCode != nil && len(*s.StartSubdivisionCode) < 1 {
  4922. invalidParams.Add(request.NewErrParamMinLen("StartSubdivisionCode", 1))
  4923. }
  4924. if invalidParams.Len() > 0 {
  4925. return invalidParams
  4926. }
  4927. return nil
  4928. }
  4929. // A complex type that contains information about the geo locations that are
  4930. // returned by the request and information about the response.
  4931. type ListGeoLocationsOutput struct {
  4932. _ struct{} `type:"structure"`
  4933. // A complex type that contains information about the geo locations that are
  4934. // returned by the request.
  4935. GeoLocationDetailsList []*GeoLocationDetails `locationNameList:"GeoLocationDetails" type:"list" required:"true"`
  4936. // A flag that indicates whether there are more geo locations to be listed.
  4937. // If your results were truncated, you can make a follow-up request for the
  4938. // next page of results by using the values included in the NextContinentCode,
  4939. // NextCountryCode, and NextSubdivisionCode elements.
  4940. //
  4941. // Valid Values: true | false
  4942. IsTruncated *bool `type:"boolean" required:"true"`
  4943. // The maximum number of records you requested. The maximum value of MaxItems
  4944. // is 100.
  4945. MaxItems *string `type:"string" required:"true"`
  4946. // If the results were truncated, the continent code of the next geo location
  4947. // in the list. This element is present only if IsTruncated is true and the
  4948. // next geo location to list is a continent location.
  4949. NextContinentCode *string `min:"2" type:"string"`
  4950. // If the results were truncated, the country code of the next geo location
  4951. // in the list. This element is present only if IsTruncated is true and the
  4952. // next geo location to list is not a continent location.
  4953. NextCountryCode *string `min:"1" type:"string"`
  4954. // If the results were truncated, the subdivision code of the next geo location
  4955. // in the list. This element is present only if IsTruncated is true and the
  4956. // next geo location has a subdivision.
  4957. NextSubdivisionCode *string `min:"1" type:"string"`
  4958. }
  4959. // String returns the string representation
  4960. func (s ListGeoLocationsOutput) String() string {
  4961. return awsutil.Prettify(s)
  4962. }
  4963. // GoString returns the string representation
  4964. func (s ListGeoLocationsOutput) GoString() string {
  4965. return s.String()
  4966. }
  4967. // To retrieve a list of your health checks, send a GET request to the /Route
  4968. // 53 API version/healthcheck resource. The response to this request includes
  4969. // a HealthChecks element with zero or more HealthCheck child elements. By default,
  4970. // the list of health checks is displayed on a single page. You can control
  4971. // the length of the page that is displayed by using the MaxItems parameter.
  4972. // You can use the Marker parameter to control the health check that the list
  4973. // begins with.
  4974. //
  4975. // Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to
  4976. // a value greater than 100, Amazon Route 53 returns only the first 100.
  4977. type ListHealthChecksInput struct {
  4978. _ struct{} `type:"structure"`
  4979. // If the request returned more than one page of results, submit another request
  4980. // and specify the value of NextMarker from the last response in the marker
  4981. // parameter to get the next page of results.
  4982. Marker *string `location:"querystring" locationName:"marker" type:"string"`
  4983. // Specify the maximum number of health checks to return per page of results.
  4984. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"`
  4985. }
  4986. // String returns the string representation
  4987. func (s ListHealthChecksInput) String() string {
  4988. return awsutil.Prettify(s)
  4989. }
  4990. // GoString returns the string representation
  4991. func (s ListHealthChecksInput) GoString() string {
  4992. return s.String()
  4993. }
  4994. // A complex type that contains the response for the request.
  4995. type ListHealthChecksOutput struct {
  4996. _ struct{} `type:"structure"`
  4997. // A complex type that contains information about the health checks associated
  4998. // with the current AWS account.
  4999. HealthChecks []*HealthCheck `locationNameList:"HealthCheck" type:"list" required:"true"`
  5000. // A flag indicating whether there are more health checks to be listed. If your
  5001. // results were truncated, you can make a follow-up request for the next page
  5002. // of results by using the Marker element.
  5003. //
  5004. // Valid Values: true | false
  5005. IsTruncated *bool `type:"boolean" required:"true"`
  5006. // If the request returned more than one page of results, submit another request
  5007. // and specify the value of NextMarker from the last response in the marker
  5008. // parameter to get the next page of results.
  5009. Marker *string `type:"string" required:"true"`
  5010. // The maximum number of health checks to be included in the response body.
  5011. // If the number of health checks associated with this AWS account exceeds MaxItems,
  5012. // the value of IsTruncated in the response is true. Call ListHealthChecks again
  5013. // and specify the value of NextMarker from the last response in the Marker
  5014. // element of the next request to get the next page of results.
  5015. MaxItems *string `type:"string" required:"true"`
  5016. // Indicates where to continue listing health checks. If IsTruncated is true,
  5017. // make another request to ListHealthChecks and include the value of the NextMarker
  5018. // element in the Marker element to get the next page of results.
  5019. NextMarker *string `type:"string"`
  5020. }
  5021. // String returns the string representation
  5022. func (s ListHealthChecksOutput) String() string {
  5023. return awsutil.Prettify(s)
  5024. }
  5025. // GoString returns the string representation
  5026. func (s ListHealthChecksOutput) GoString() string {
  5027. return s.String()
  5028. }
  5029. // To retrieve a list of your hosted zones in lexicographic order, send a GET
  5030. // request to the /Route 53 API version/hostedzonesbyname resource. The response
  5031. // to this request includes a HostedZones element with zero or more HostedZone
  5032. // child elements lexicographically ordered by DNS name. By default, the list
  5033. // of hosted zones is displayed on a single page. You can control the length
  5034. // of the page that is displayed by using the MaxItems parameter. You can use
  5035. // the DNSName and HostedZoneId parameters to control the hosted zone that the
  5036. // list begins with.
  5037. type ListHostedZonesByNameInput struct {
  5038. _ struct{} `type:"structure"`
  5039. // The first name in the lexicographic ordering of domain names that you want
  5040. // the ListHostedZonesByNameRequest request to list.
  5041. //
  5042. // If the request returned more than one page of results, submit another request
  5043. // and specify the value of NextDNSName and NextHostedZoneId from the last response
  5044. // in the DNSName and HostedZoneId parameters to get the next page of results.
  5045. DNSName *string `location:"querystring" locationName:"dnsname" type:"string"`
  5046. // If the request returned more than one page of results, submit another request
  5047. // and specify the value of NextDNSName and NextHostedZoneId from the last response
  5048. // in the DNSName and HostedZoneId parameters to get the next page of results.
  5049. HostedZoneId *string `location:"querystring" locationName:"hostedzoneid" type:"string"`
  5050. // Specify the maximum number of hosted zones to return per page of results.
  5051. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"`
  5052. }
  5053. // String returns the string representation
  5054. func (s ListHostedZonesByNameInput) String() string {
  5055. return awsutil.Prettify(s)
  5056. }
  5057. // GoString returns the string representation
  5058. func (s ListHostedZonesByNameInput) GoString() string {
  5059. return s.String()
  5060. }
  5061. // A complex type that contains the response for the request.
  5062. type ListHostedZonesByNameOutput struct {
  5063. _ struct{} `type:"structure"`
  5064. // The DNSName value sent in the request.
  5065. DNSName *string `type:"string"`
  5066. // The HostedZoneId value sent in the request.
  5067. HostedZoneId *string `type:"string"`
  5068. // A complex type that contains information about the hosted zones associated
  5069. // with the current AWS account.
  5070. HostedZones []*HostedZone `locationNameList:"HostedZone" type:"list" required:"true"`
  5071. // A flag indicating whether there are more hosted zones to be listed. If your
  5072. // results were truncated, you can make a follow-up request for the next page
  5073. // of results by using the NextDNSName and NextHostedZoneId elements.
  5074. //
  5075. // Valid Values: true | false
  5076. IsTruncated *bool `type:"boolean" required:"true"`
  5077. // The maximum number of hosted zones to be included in the response body. If
  5078. // the number of hosted zones associated with this AWS account exceeds MaxItems,
  5079. // the value of IsTruncated in the ListHostedZonesByNameResponse is true. Call
  5080. // ListHostedZonesByName again and specify the value of NextDNSName and NextHostedZoneId
  5081. // elements from the previous response to get the next page of results.
  5082. MaxItems *string `type:"string" required:"true"`
  5083. // If the value of IsTruncated in the ListHostedZonesByNameResponse is true,
  5084. // there are more hosted zones associated with the current AWS account. To get
  5085. // the next page of results, make another request to ListHostedZonesByName.
  5086. // Specify the value of NextDNSName in the DNSName parameter. Specify NextHostedZoneId
  5087. // in the HostedZoneId parameter.
  5088. NextDNSName *string `type:"string"`
  5089. // If the value of IsTruncated in the ListHostedZonesByNameResponse is true,
  5090. // there are more hosted zones associated with the current AWS account. To get
  5091. // the next page of results, make another request to ListHostedZonesByName.
  5092. // Specify the value of NextDNSName in the DNSName parameter. Specify NextHostedZoneId
  5093. // in the HostedZoneId parameter.
  5094. NextHostedZoneId *string `type:"string"`
  5095. }
  5096. // String returns the string representation
  5097. func (s ListHostedZonesByNameOutput) String() string {
  5098. return awsutil.Prettify(s)
  5099. }
  5100. // GoString returns the string representation
  5101. func (s ListHostedZonesByNameOutput) GoString() string {
  5102. return s.String()
  5103. }
  5104. // To retrieve a list of your hosted zones, send a GET request to the /Route
  5105. // 53 API version/hostedzone resource. The response to this request includes
  5106. // a HostedZones element with zero or more HostedZone child elements. By default,
  5107. // the list of hosted zones is displayed on a single page. You can control the
  5108. // length of the page that is displayed by using the MaxItems parameter. You
  5109. // can use the Marker parameter to control the hosted zone that the list begins
  5110. // with.
  5111. //
  5112. // Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to a
  5113. // value greater than 100, Amazon Route 53 returns only the first 100.
  5114. type ListHostedZonesInput struct {
  5115. _ struct{} `type:"structure"`
  5116. DelegationSetId *string `location:"querystring" locationName:"delegationsetid" type:"string"`
  5117. // If the request returned more than one page of results, submit another request
  5118. // and specify the value of NextMarker from the last response in the marker
  5119. // parameter to get the next page of results.
  5120. Marker *string `location:"querystring" locationName:"marker" type:"string"`
  5121. // Specify the maximum number of hosted zones to return per page of results.
  5122. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"`
  5123. }
  5124. // String returns the string representation
  5125. func (s ListHostedZonesInput) String() string {
  5126. return awsutil.Prettify(s)
  5127. }
  5128. // GoString returns the string representation
  5129. func (s ListHostedZonesInput) GoString() string {
  5130. return s.String()
  5131. }
  5132. // A complex type that contains the response for the request.
  5133. type ListHostedZonesOutput struct {
  5134. _ struct{} `type:"structure"`
  5135. // A complex type that contains information about the hosted zones associated
  5136. // with the current AWS account.
  5137. HostedZones []*HostedZone `locationNameList:"HostedZone" type:"list" required:"true"`
  5138. // A flag indicating whether there are more hosted zones to be listed. If your
  5139. // results were truncated, you can make a follow-up request for the next page
  5140. // of results by using the Marker element.
  5141. //
  5142. // Valid Values: true | false
  5143. IsTruncated *bool `type:"boolean" required:"true"`
  5144. // If the request returned more than one page of results, submit another request
  5145. // and specify the value of NextMarker from the last response in the marker
  5146. // parameter to get the next page of results.
  5147. Marker *string `type:"string" required:"true"`
  5148. // The maximum number of hosted zones to be included in the response body. If
  5149. // the number of hosted zones associated with this AWS account exceeds MaxItems,
  5150. // the value of IsTruncated in the response is true. Call ListHostedZones again
  5151. // and specify the value of NextMarker in the Marker parameter to get the next
  5152. // page of results.
  5153. MaxItems *string `type:"string" required:"true"`
  5154. // Indicates where to continue listing hosted zones. If IsTruncated is true,
  5155. // make another request to ListHostedZones and include the value of the NextMarker
  5156. // element in the Marker element to get the next page of results.
  5157. NextMarker *string `type:"string"`
  5158. }
  5159. // String returns the string representation
  5160. func (s ListHostedZonesOutput) String() string {
  5161. return awsutil.Prettify(s)
  5162. }
  5163. // GoString returns the string representation
  5164. func (s ListHostedZonesOutput) GoString() string {
  5165. return s.String()
  5166. }
  5167. // The input for a ListResourceRecordSets request.
  5168. type ListResourceRecordSetsInput struct {
  5169. _ struct{} `type:"structure"`
  5170. // The ID of the hosted zone that contains the resource record sets that you
  5171. // want to get.
  5172. HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  5173. // The maximum number of records you want in the response body.
  5174. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"`
  5175. // Weighted resource record sets only: If results were truncated for a given
  5176. // DNS name and type, specify the value of NextRecordIdentifier from the previous
  5177. // response to get the next resource record set that has the current DNS name
  5178. // and type.
  5179. StartRecordIdentifier *string `location:"querystring" locationName:"identifier" min:"1" type:"string"`
  5180. // The first name in the lexicographic ordering of domain names that you want
  5181. // the ListResourceRecordSets request to list.
  5182. StartRecordName *string `location:"querystring" locationName:"name" type:"string"`
  5183. // The DNS type at which to begin the listing of resource record sets.
  5184. //
  5185. // Valid values: A | AAAA | CNAME | MX | NS | PTR | SOA | SPF | SRV | TXT
  5186. //
  5187. // Values for Weighted Resource Record Sets: A | AAAA | CNAME | TXT
  5188. //
  5189. // Values for Regional Resource Record Sets: A | AAAA | CNAME | TXT
  5190. //
  5191. // Values for Alias Resource Record Sets: A | AAAA
  5192. //
  5193. // Constraint: Specifying type without specifying name returns an InvalidInput
  5194. // error.
  5195. StartRecordType *string `location:"querystring" locationName:"type" type:"string" enum:"RRType"`
  5196. }
  5197. // String returns the string representation
  5198. func (s ListResourceRecordSetsInput) String() string {
  5199. return awsutil.Prettify(s)
  5200. }
  5201. // GoString returns the string representation
  5202. func (s ListResourceRecordSetsInput) GoString() string {
  5203. return s.String()
  5204. }
  5205. // Validate inspects the fields of the type to determine if they are valid.
  5206. func (s *ListResourceRecordSetsInput) Validate() error {
  5207. invalidParams := request.ErrInvalidParams{Context: "ListResourceRecordSetsInput"}
  5208. if s.HostedZoneId == nil {
  5209. invalidParams.Add(request.NewErrParamRequired("HostedZoneId"))
  5210. }
  5211. if s.StartRecordIdentifier != nil && len(*s.StartRecordIdentifier) < 1 {
  5212. invalidParams.Add(request.NewErrParamMinLen("StartRecordIdentifier", 1))
  5213. }
  5214. if invalidParams.Len() > 0 {
  5215. return invalidParams
  5216. }
  5217. return nil
  5218. }
  5219. // A complex type that contains information about the resource record sets that
  5220. // are returned by the request and information about the response.
  5221. type ListResourceRecordSetsOutput struct {
  5222. _ struct{} `type:"structure"`
  5223. // A flag that indicates whether there are more resource record sets to be listed.
  5224. // If your results were truncated, you can make a follow-up request for the
  5225. // next page of results by using the NextRecordName element.
  5226. //
  5227. // Valid Values: true | false
  5228. IsTruncated *bool `type:"boolean" required:"true"`
  5229. // The maximum number of records you requested. The maximum value of MaxItems
  5230. // is 100.
  5231. MaxItems *string `type:"string" required:"true"`
  5232. // Weighted resource record sets only: If results were truncated for a given
  5233. // DNS name and type, the value of SetIdentifier for the next resource record
  5234. // set that has the current DNS name and type.
  5235. NextRecordIdentifier *string `min:"1" type:"string"`
  5236. // If the results were truncated, the name of the next record in the list. This
  5237. // element is present only if IsTruncated is true.
  5238. NextRecordName *string `type:"string"`
  5239. // If the results were truncated, the type of the next record in the list. This
  5240. // element is present only if IsTruncated is true.
  5241. NextRecordType *string `type:"string" enum:"RRType"`
  5242. // A complex type that contains information about the resource record sets that
  5243. // are returned by the request.
  5244. ResourceRecordSets []*ResourceRecordSet `locationNameList:"ResourceRecordSet" type:"list" required:"true"`
  5245. }
  5246. // String returns the string representation
  5247. func (s ListResourceRecordSetsOutput) String() string {
  5248. return awsutil.Prettify(s)
  5249. }
  5250. // GoString returns the string representation
  5251. func (s ListResourceRecordSetsOutput) GoString() string {
  5252. return s.String()
  5253. }
  5254. // To retrieve a list of your reusable delegation sets, send a GET request to
  5255. // the /Route 53 API version/delegationset resource. The response to this request
  5256. // includes a DelegationSets element with zero or more DelegationSet child elements.
  5257. // By default, the list of reusable delegation sets is displayed on a single
  5258. // page. You can control the length of the page that is displayed by using the
  5259. // MaxItems parameter. You can use the Marker parameter to control the delegation
  5260. // set that the list begins with.
  5261. //
  5262. // Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to
  5263. // a value greater than 100, Amazon Route 53 returns only the first 100.
  5264. type ListReusableDelegationSetsInput struct {
  5265. _ struct{} `type:"structure"`
  5266. // If the request returned more than one page of results, submit another request
  5267. // and specify the value of NextMarker from the last response in the marker
  5268. // parameter to get the next page of results.
  5269. Marker *string `location:"querystring" locationName:"marker" type:"string"`
  5270. // Specify the maximum number of reusable delegation sets to return per page
  5271. // of results.
  5272. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"`
  5273. }
  5274. // String returns the string representation
  5275. func (s ListReusableDelegationSetsInput) String() string {
  5276. return awsutil.Prettify(s)
  5277. }
  5278. // GoString returns the string representation
  5279. func (s ListReusableDelegationSetsInput) GoString() string {
  5280. return s.String()
  5281. }
  5282. // A complex type that contains the response for the request.
  5283. type ListReusableDelegationSetsOutput struct {
  5284. _ struct{} `type:"structure"`
  5285. // A complex type that contains information about the reusable delegation sets
  5286. // associated with the current AWS account.
  5287. DelegationSets []*DelegationSet `locationNameList:"DelegationSet" type:"list" required:"true"`
  5288. // A flag indicating whether there are more reusable delegation sets to be listed.
  5289. // If your results were truncated, you can make a follow-up request for the
  5290. // next page of results by using the Marker element.
  5291. //
  5292. // Valid Values: true | false
  5293. IsTruncated *bool `type:"boolean" required:"true"`
  5294. // If the request returned more than one page of results, submit another request
  5295. // and specify the value of NextMarker from the last response in the marker
  5296. // parameter to get the next page of results.
  5297. Marker *string `type:"string" required:"true"`
  5298. // The maximum number of reusable delegation sets to be included in the response
  5299. // body. If the number of reusable delegation sets associated with this AWS
  5300. // account exceeds MaxItems, the value of IsTruncated in the response is true.
  5301. // To get the next page of results, call ListReusableDelegationSets again and
  5302. // specify the value of NextMarker from the previous response in the Marker
  5303. // element of the request.
  5304. MaxItems *string `type:"string" required:"true"`
  5305. // Indicates where to continue listing reusable delegation sets. If IsTruncated
  5306. // is true, make another request to ListReusableDelegationSets and include the
  5307. // value of the NextMarker element in the Marker element of the previous response
  5308. // to get the next page of results.
  5309. NextMarker *string `type:"string"`
  5310. }
  5311. // String returns the string representation
  5312. func (s ListReusableDelegationSetsOutput) String() string {
  5313. return awsutil.Prettify(s)
  5314. }
  5315. // GoString returns the string representation
  5316. func (s ListReusableDelegationSetsOutput) GoString() string {
  5317. return s.String()
  5318. }
  5319. // A complex type containing information about a request for a list of the tags
  5320. // that are associated with an individual resource.
  5321. type ListTagsForResourceInput struct {
  5322. _ struct{} `type:"structure"`
  5323. // The ID of the resource for which you want to retrieve tags.
  5324. ResourceId *string `location:"uri" locationName:"ResourceId" type:"string" required:"true"`
  5325. // The type of the resource.
  5326. //
  5327. // - The resource type for health checks is healthcheck.
  5328. //
  5329. // - The resource type for hosted zones is hostedzone.
  5330. ResourceType *string `location:"uri" locationName:"ResourceType" type:"string" required:"true" enum:"TagResourceType"`
  5331. }
  5332. // String returns the string representation
  5333. func (s ListTagsForResourceInput) String() string {
  5334. return awsutil.Prettify(s)
  5335. }
  5336. // GoString returns the string representation
  5337. func (s ListTagsForResourceInput) GoString() string {
  5338. return s.String()
  5339. }
  5340. // Validate inspects the fields of the type to determine if they are valid.
  5341. func (s *ListTagsForResourceInput) Validate() error {
  5342. invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
  5343. if s.ResourceId == nil {
  5344. invalidParams.Add(request.NewErrParamRequired("ResourceId"))
  5345. }
  5346. if s.ResourceType == nil {
  5347. invalidParams.Add(request.NewErrParamRequired("ResourceType"))
  5348. }
  5349. if invalidParams.Len() > 0 {
  5350. return invalidParams
  5351. }
  5352. return nil
  5353. }
  5354. // A complex type containing tags for the specified resource.
  5355. type ListTagsForResourceOutput struct {
  5356. _ struct{} `type:"structure"`
  5357. // A ResourceTagSet containing tags associated with the specified resource.
  5358. ResourceTagSet *ResourceTagSet `type:"structure" required:"true"`
  5359. }
  5360. // String returns the string representation
  5361. func (s ListTagsForResourceOutput) String() string {
  5362. return awsutil.Prettify(s)
  5363. }
  5364. // GoString returns the string representation
  5365. func (s ListTagsForResourceOutput) GoString() string {
  5366. return s.String()
  5367. }
  5368. // A complex type containing information about a request for a list of the tags
  5369. // that are associated with up to 10 specified resources.
  5370. type ListTagsForResourcesInput struct {
  5371. _ struct{} `locationName:"ListTagsForResourcesRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
  5372. // A complex type that contains the ResourceId element for each resource for
  5373. // which you want to get a list of tags.
  5374. ResourceIds []*string `locationNameList:"ResourceId" min:"1" type:"list" required:"true"`
  5375. // The type of the resources.
  5376. //
  5377. // - The resource type for health checks is healthcheck.
  5378. //
  5379. // - The resource type for hosted zones is hostedzone.
  5380. ResourceType *string `location:"uri" locationName:"ResourceType" type:"string" required:"true" enum:"TagResourceType"`
  5381. }
  5382. // String returns the string representation
  5383. func (s ListTagsForResourcesInput) String() string {
  5384. return awsutil.Prettify(s)
  5385. }
  5386. // GoString returns the string representation
  5387. func (s ListTagsForResourcesInput) GoString() string {
  5388. return s.String()
  5389. }
  5390. // Validate inspects the fields of the type to determine if they are valid.
  5391. func (s *ListTagsForResourcesInput) Validate() error {
  5392. invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourcesInput"}
  5393. if s.ResourceIds == nil {
  5394. invalidParams.Add(request.NewErrParamRequired("ResourceIds"))
  5395. }
  5396. if s.ResourceIds != nil && len(s.ResourceIds) < 1 {
  5397. invalidParams.Add(request.NewErrParamMinLen("ResourceIds", 1))
  5398. }
  5399. if s.ResourceType == nil {
  5400. invalidParams.Add(request.NewErrParamRequired("ResourceType"))
  5401. }
  5402. if invalidParams.Len() > 0 {
  5403. return invalidParams
  5404. }
  5405. return nil
  5406. }
  5407. // A complex type containing tags for the specified resources.
  5408. type ListTagsForResourcesOutput struct {
  5409. _ struct{} `type:"structure"`
  5410. // A list of ResourceTagSets containing tags associated with the specified resources.
  5411. ResourceTagSets []*ResourceTagSet `locationNameList:"ResourceTagSet" type:"list" required:"true"`
  5412. }
  5413. // String returns the string representation
  5414. func (s ListTagsForResourcesOutput) String() string {
  5415. return awsutil.Prettify(s)
  5416. }
  5417. // GoString returns the string representation
  5418. func (s ListTagsForResourcesOutput) GoString() string {
  5419. return s.String()
  5420. }
  5421. // A complex type that contains the information about the request to list the
  5422. // traffic policies that are associated with the current AWS account.
  5423. type ListTrafficPoliciesInput struct {
  5424. _ struct{} `type:"structure"`
  5425. // The maximum number of traffic policies to be included in the response body
  5426. // for this request. If you have more than MaxItems traffic policies, the value
  5427. // of the IsTruncated element in the response is true, and the value of the
  5428. // TrafficPolicyIdMarker element is the ID of the first traffic policy in the
  5429. // next group of MaxItems traffic policies.
  5430. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"`
  5431. // For your first request to ListTrafficPolicies, do not include the TrafficPolicyIdMarker
  5432. // parameter.
  5433. //
  5434. // If you have more traffic policies than the value of MaxItems, ListTrafficPolicies
  5435. // returns only the first MaxItems traffic policies. To get the next group of
  5436. // MaxItems policies, submit another request to ListTrafficPolicies. For the
  5437. // value of TrafficPolicyIdMarker, specify the value of the TrafficPolicyIdMarker
  5438. // element that was returned in the previous response.
  5439. //
  5440. // Policies are listed in the order in which they were created.
  5441. TrafficPolicyIdMarker *string `location:"querystring" locationName:"trafficpolicyid" type:"string"`
  5442. }
  5443. // String returns the string representation
  5444. func (s ListTrafficPoliciesInput) String() string {
  5445. return awsutil.Prettify(s)
  5446. }
  5447. // GoString returns the string representation
  5448. func (s ListTrafficPoliciesInput) GoString() string {
  5449. return s.String()
  5450. }
  5451. // A complex type that contains the response information for the request.
  5452. type ListTrafficPoliciesOutput struct {
  5453. _ struct{} `type:"structure"`
  5454. // A flag that indicates whether there are more traffic policies to be listed.
  5455. // If the response was truncated, you can get the next group of MaxItems traffic
  5456. // policies by calling ListTrafficPolicies again and specifying the value of
  5457. // the TrafficPolicyIdMarker element in the TrafficPolicyIdMarker request parameter.
  5458. //
  5459. // Valid Values: true | false
  5460. IsTruncated *bool `type:"boolean" required:"true"`
  5461. // The value that you specified for the MaxItems parameter in the call to ListTrafficPolicies
  5462. // that produced the current response.
  5463. MaxItems *string `type:"string" required:"true"`
  5464. // If the value of IsTruncated is true, TrafficPolicyIdMarker is the ID of the
  5465. // first traffic policy in the next group of MaxItems traffic policies.
  5466. TrafficPolicyIdMarker *string `type:"string" required:"true"`
  5467. // A list that contains one TrafficPolicySummary element for each traffic policy
  5468. // that was created by the current AWS account.
  5469. TrafficPolicySummaries []*TrafficPolicySummary `locationNameList:"TrafficPolicySummary" type:"list" required:"true"`
  5470. }
  5471. // String returns the string representation
  5472. func (s ListTrafficPoliciesOutput) String() string {
  5473. return awsutil.Prettify(s)
  5474. }
  5475. // GoString returns the string representation
  5476. func (s ListTrafficPoliciesOutput) GoString() string {
  5477. return s.String()
  5478. }
  5479. // A request for the traffic policy instances that you created in a specified
  5480. // hosted zone.
  5481. type ListTrafficPolicyInstancesByHostedZoneInput struct {
  5482. _ struct{} `type:"structure"`
  5483. // The ID of the hosted zone for which you want to list traffic policy instances.
  5484. HostedZoneId *string `location:"querystring" locationName:"id" type:"string" required:"true"`
  5485. // The maximum number of traffic policy instances to be included in the response
  5486. // body for this request. If you have more than MaxItems traffic policy instances,
  5487. // the value of the IsTruncated element in the response is true, and the values
  5488. // of HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker
  5489. // represent the first traffic policy instance in the next group of MaxItems
  5490. // traffic policy instances.
  5491. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"`
  5492. // For the first request to ListTrafficPolicyInstancesByHostedZone, omit this
  5493. // value.
  5494. //
  5495. // If the value of IsTruncated in the previous response was true, TrafficPolicyInstanceNameMarker
  5496. // is the name of the first traffic policy instance in the next group of MaxItems
  5497. // traffic policy instances.
  5498. //
  5499. // If the value of IsTruncated in the previous response was false, there are
  5500. // no more traffic policy instances to get for this hosted zone.
  5501. //
  5502. // If the value of IsTruncated in the previous response was false, omit this
  5503. // value.
  5504. TrafficPolicyInstanceNameMarker *string `location:"querystring" locationName:"trafficpolicyinstancename" type:"string"`
  5505. // For the first request to ListTrafficPolicyInstancesByHostedZone, omit this
  5506. // value.
  5507. //
  5508. // If the value of IsTruncated in the previous response was true, TrafficPolicyInstanceTypeMarker
  5509. // is the DNS type of the first traffic policy instance in the next group of
  5510. // MaxItems traffic policy instances.
  5511. //
  5512. // If the value of IsTruncated in the previous response was false, there are
  5513. // no more traffic policy instances to get for this hosted zone.
  5514. TrafficPolicyInstanceTypeMarker *string `location:"querystring" locationName:"trafficpolicyinstancetype" type:"string" enum:"RRType"`
  5515. }
  5516. // String returns the string representation
  5517. func (s ListTrafficPolicyInstancesByHostedZoneInput) String() string {
  5518. return awsutil.Prettify(s)
  5519. }
  5520. // GoString returns the string representation
  5521. func (s ListTrafficPolicyInstancesByHostedZoneInput) GoString() string {
  5522. return s.String()
  5523. }
  5524. // Validate inspects the fields of the type to determine if they are valid.
  5525. func (s *ListTrafficPolicyInstancesByHostedZoneInput) Validate() error {
  5526. invalidParams := request.ErrInvalidParams{Context: "ListTrafficPolicyInstancesByHostedZoneInput"}
  5527. if s.HostedZoneId == nil {
  5528. invalidParams.Add(request.NewErrParamRequired("HostedZoneId"))
  5529. }
  5530. if invalidParams.Len() > 0 {
  5531. return invalidParams
  5532. }
  5533. return nil
  5534. }
  5535. // A complex type that contains the response information for the request.
  5536. type ListTrafficPolicyInstancesByHostedZoneOutput struct {
  5537. _ struct{} `type:"structure"`
  5538. // A flag that indicates whether there are more traffic policy instances to
  5539. // be listed. If the response was truncated, you can get the next group of MaxItems
  5540. // traffic policy instances by calling ListTrafficPolicyInstancesByHostedZone
  5541. // again and specifying the values of the HostedZoneIdMarker, TrafficPolicyInstanceNameMarker,
  5542. // and TrafficPolicyInstanceTypeMarker elements in the corresponding request
  5543. // parameters.
  5544. //
  5545. // Valid Values: true | false
  5546. IsTruncated *bool `type:"boolean" required:"true"`
  5547. // The value that you specified for the MaxItems parameter in the call to ListTrafficPolicyInstancesByHostedZone
  5548. // that produced the current response.
  5549. MaxItems *string `type:"string" required:"true"`
  5550. // If IsTruncated is true, TrafficPolicyInstanceNameMarker is the name of the
  5551. // first traffic policy instance in the next group of MaxItems traffic policy
  5552. // instances.
  5553. TrafficPolicyInstanceNameMarker *string `type:"string"`
  5554. // If IsTruncated is true, TrafficPolicyInstanceTypeMarker is the DNS type of
  5555. // the resource record sets that are associated with the first traffic policy
  5556. // instance in the next group of MaxItems traffic policy instances.
  5557. TrafficPolicyInstanceTypeMarker *string `type:"string" enum:"RRType"`
  5558. // A list that contains one TrafficPolicyInstance element for each traffic policy
  5559. // instance that matches the elements in the request.
  5560. TrafficPolicyInstances []*TrafficPolicyInstance `locationNameList:"TrafficPolicyInstance" type:"list" required:"true"`
  5561. }
  5562. // String returns the string representation
  5563. func (s ListTrafficPolicyInstancesByHostedZoneOutput) String() string {
  5564. return awsutil.Prettify(s)
  5565. }
  5566. // GoString returns the string representation
  5567. func (s ListTrafficPolicyInstancesByHostedZoneOutput) GoString() string {
  5568. return s.String()
  5569. }
  5570. // A complex type that contains the information about the request to list your
  5571. // traffic policy instances.
  5572. type ListTrafficPolicyInstancesByPolicyInput struct {
  5573. _ struct{} `type:"structure"`
  5574. // For the first request to ListTrafficPolicyInstancesByPolicy, omit this value.
  5575. //
  5576. // If the value of IsTruncated in the previous response was true, HostedZoneIdMarker
  5577. // is the ID of the hosted zone for the first traffic policy instance in the
  5578. // next group of MaxItems traffic policy instances.
  5579. //
  5580. // If the value of IsTruncated in the previous response was false, there are
  5581. // no more traffic policy instances to get for this hosted zone.
  5582. //
  5583. // If the value of IsTruncated in the previous response was false, omit this
  5584. // value.
  5585. HostedZoneIdMarker *string `location:"querystring" locationName:"hostedzoneid" type:"string"`
  5586. // The maximum number of traffic policy instances to be included in the response
  5587. // body for this request. If you have more than MaxItems traffic policy instances,
  5588. // the value of the IsTruncated element in the response is true, and the values
  5589. // of HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker
  5590. // represent the first traffic policy instance in the next group of MaxItems
  5591. // traffic policy instances.
  5592. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"`
  5593. // The ID of the traffic policy for which you want to list traffic policy instances.
  5594. TrafficPolicyId *string `location:"querystring" locationName:"id" type:"string" required:"true"`
  5595. // For the first request to ListTrafficPolicyInstancesByPolicy, omit this value.
  5596. //
  5597. // If the value of IsTruncated in the previous response was true, TrafficPolicyInstanceNameMarker
  5598. // is the name of the first traffic policy instance in the next group of MaxItems
  5599. // traffic policy instances.
  5600. //
  5601. // If the value of IsTruncated in the previous response was false, there are
  5602. // no more traffic policy instances to get for this hosted zone.
  5603. //
  5604. // If the value of IsTruncated in the previous response was false, omit this
  5605. // value.
  5606. TrafficPolicyInstanceNameMarker *string `location:"querystring" locationName:"trafficpolicyinstancename" type:"string"`
  5607. // For the first request to ListTrafficPolicyInstancesByPolicy, omit this value.
  5608. //
  5609. // If the value of IsTruncated in the previous response was true, TrafficPolicyInstanceTypeMarker
  5610. // is the DNS type of the first traffic policy instance in the next group of
  5611. // MaxItems traffic policy instances.
  5612. //
  5613. // If the value of IsTruncated in the previous response was false, there are
  5614. // no more traffic policy instances to get for this hosted zone.
  5615. TrafficPolicyInstanceTypeMarker *string `location:"querystring" locationName:"trafficpolicyinstancetype" type:"string" enum:"RRType"`
  5616. // The version of the traffic policy for which you want to list traffic policy
  5617. // instances. The version must be associated with the traffic policy that is
  5618. // specified by TrafficPolicyId.
  5619. TrafficPolicyVersion *int64 `location:"querystring" locationName:"version" min:"1" type:"integer" required:"true"`
  5620. }
  5621. // String returns the string representation
  5622. func (s ListTrafficPolicyInstancesByPolicyInput) String() string {
  5623. return awsutil.Prettify(s)
  5624. }
  5625. // GoString returns the string representation
  5626. func (s ListTrafficPolicyInstancesByPolicyInput) GoString() string {
  5627. return s.String()
  5628. }
  5629. // Validate inspects the fields of the type to determine if they are valid.
  5630. func (s *ListTrafficPolicyInstancesByPolicyInput) Validate() error {
  5631. invalidParams := request.ErrInvalidParams{Context: "ListTrafficPolicyInstancesByPolicyInput"}
  5632. if s.TrafficPolicyId == nil {
  5633. invalidParams.Add(request.NewErrParamRequired("TrafficPolicyId"))
  5634. }
  5635. if s.TrafficPolicyVersion == nil {
  5636. invalidParams.Add(request.NewErrParamRequired("TrafficPolicyVersion"))
  5637. }
  5638. if s.TrafficPolicyVersion != nil && *s.TrafficPolicyVersion < 1 {
  5639. invalidParams.Add(request.NewErrParamMinValue("TrafficPolicyVersion", 1))
  5640. }
  5641. if invalidParams.Len() > 0 {
  5642. return invalidParams
  5643. }
  5644. return nil
  5645. }
  5646. // A complex type that contains the response information for the request.
  5647. type ListTrafficPolicyInstancesByPolicyOutput struct {
  5648. _ struct{} `type:"structure"`
  5649. // If IsTruncated is true, HostedZoneIdMarker is the ID of the hosted zone of
  5650. // the first traffic policy instance in the next group of MaxItems traffic policy
  5651. // instances.
  5652. HostedZoneIdMarker *string `type:"string"`
  5653. // A flag that indicates whether there are more traffic policy instances to
  5654. // be listed. If the response was truncated, you can get the next group of MaxItems
  5655. // traffic policy instances by calling ListTrafficPolicyInstancesByPolicy again
  5656. // and specifying the values of the HostedZoneIdMarker, TrafficPolicyInstanceNameMarker,
  5657. // and TrafficPolicyInstanceTypeMarker elements in the corresponding request
  5658. // parameters.
  5659. //
  5660. // Valid Values: true | false
  5661. IsTruncated *bool `type:"boolean" required:"true"`
  5662. // The value that you specified for the MaxItems parameter in the call to ListTrafficPolicyInstancesByPolicy
  5663. // that produced the current response.
  5664. MaxItems *string `type:"string" required:"true"`
  5665. // If IsTruncated is true, TrafficPolicyInstanceNameMarker is the name of the
  5666. // first traffic policy instance in the next group of MaxItems traffic policy
  5667. // instances.
  5668. TrafficPolicyInstanceNameMarker *string `type:"string"`
  5669. // If IsTruncated is true, TrafficPolicyInstanceTypeMarker is the DNS type of
  5670. // the resource record sets that are associated with the first traffic policy
  5671. // instance in the next group of MaxItems traffic policy instances.
  5672. TrafficPolicyInstanceTypeMarker *string `type:"string" enum:"RRType"`
  5673. // A list that contains one TrafficPolicyInstance element for each traffic policy
  5674. // instance that matches the elements in the request.
  5675. TrafficPolicyInstances []*TrafficPolicyInstance `locationNameList:"TrafficPolicyInstance" type:"list" required:"true"`
  5676. }
  5677. // String returns the string representation
  5678. func (s ListTrafficPolicyInstancesByPolicyOutput) String() string {
  5679. return awsutil.Prettify(s)
  5680. }
  5681. // GoString returns the string representation
  5682. func (s ListTrafficPolicyInstancesByPolicyOutput) GoString() string {
  5683. return s.String()
  5684. }
  5685. // A complex type that contains the information about the request to list your
  5686. // traffic policy instances.
  5687. type ListTrafficPolicyInstancesInput struct {
  5688. _ struct{} `type:"structure"`
  5689. // For the first request to ListTrafficPolicyInstances, omit this value.
  5690. //
  5691. // If the value of IsTruncated in the previous response was true, you have
  5692. // more traffic policy instances. To get the next group of MaxItems traffic
  5693. // policy instances, submit another ListTrafficPolicyInstances request. For
  5694. // the value of HostedZoneIdMarker, specify the value of HostedZoneIdMarker
  5695. // from the previous response, which is the hosted zone ID of the first traffic
  5696. // policy instance in the next group of MaxItems traffic policy instances.
  5697. //
  5698. // If the value of IsTruncated in the previous response was false, there are
  5699. // no more traffic policy instances to get.
  5700. HostedZoneIdMarker *string `location:"querystring" locationName:"hostedzoneid" type:"string"`
  5701. // The maximum number of traffic policy instances to be included in the response
  5702. // body for this request. If you have more than MaxItems traffic policy instances,
  5703. // the value of the IsTruncated element in the response is true, and the values
  5704. // of HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker
  5705. // represent the first traffic policy instance in the next group of MaxItems
  5706. // traffic policy instances.
  5707. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"`
  5708. // For the first request to ListTrafficPolicyInstances, omit this value.
  5709. //
  5710. // If the value of IsTruncated in the previous response was true, TrafficPolicyInstanceNameMarker
  5711. // is the name of the first traffic policy instance in the next group of MaxItems
  5712. // traffic policy instances.
  5713. //
  5714. // If the value of IsTruncated in the previous response was false, there are
  5715. // no more traffic policy instances to get.
  5716. TrafficPolicyInstanceNameMarker *string `location:"querystring" locationName:"trafficpolicyinstancename" type:"string"`
  5717. // For the first request to ListTrafficPolicyInstances, omit this value.
  5718. //
  5719. // If the value of IsTruncated in the previous response was true, TrafficPolicyInstanceTypeMarker
  5720. // is the DNS type of the first traffic policy instance in the next group of
  5721. // MaxItems traffic policy instances.
  5722. //
  5723. // If the value of IsTruncated in the previous response was false, there are
  5724. // no more traffic policy instances to get.
  5725. TrafficPolicyInstanceTypeMarker *string `location:"querystring" locationName:"trafficpolicyinstancetype" type:"string" enum:"RRType"`
  5726. }
  5727. // String returns the string representation
  5728. func (s ListTrafficPolicyInstancesInput) String() string {
  5729. return awsutil.Prettify(s)
  5730. }
  5731. // GoString returns the string representation
  5732. func (s ListTrafficPolicyInstancesInput) GoString() string {
  5733. return s.String()
  5734. }
  5735. // A complex type that contains the response information for the request.
  5736. type ListTrafficPolicyInstancesOutput struct {
  5737. _ struct{} `type:"structure"`
  5738. // If IsTruncated is true, HostedZoneIdMarker is the ID of the hosted zone of
  5739. // the first traffic policy instance in the next group of MaxItems traffic policy
  5740. // instances.
  5741. HostedZoneIdMarker *string `type:"string"`
  5742. // A flag that indicates whether there are more traffic policy instances to
  5743. // be listed. If the response was truncated, you can get the next group of MaxItems
  5744. // traffic policy instances by calling ListTrafficPolicyInstances again and
  5745. // specifying the values of the HostedZoneIdMarker, TrafficPolicyInstanceNameMarker,
  5746. // and TrafficPolicyInstanceTypeMarker elements in the corresponding request
  5747. // parameters.
  5748. //
  5749. // Valid Values: true | false
  5750. IsTruncated *bool `type:"boolean" required:"true"`
  5751. // The value that you specified for the MaxItems parameter in the call to ListTrafficPolicyInstances
  5752. // that produced the current response.
  5753. MaxItems *string `type:"string" required:"true"`
  5754. // If IsTruncated is true, TrafficPolicyInstanceNameMarker is the name of the
  5755. // first traffic policy instance in the next group of MaxItems traffic policy
  5756. // instances.
  5757. TrafficPolicyInstanceNameMarker *string `type:"string"`
  5758. // If IsTruncated is true, TrafficPolicyInstanceTypeMarker is the DNS type of
  5759. // the resource record sets that are associated with the first traffic policy
  5760. // instance in the next group of MaxItems traffic policy instances.
  5761. TrafficPolicyInstanceTypeMarker *string `type:"string" enum:"RRType"`
  5762. // A list that contains one TrafficPolicyInstance element for each traffic policy
  5763. // instance that matches the elements in the request.
  5764. TrafficPolicyInstances []*TrafficPolicyInstance `locationNameList:"TrafficPolicyInstance" type:"list" required:"true"`
  5765. }
  5766. // String returns the string representation
  5767. func (s ListTrafficPolicyInstancesOutput) String() string {
  5768. return awsutil.Prettify(s)
  5769. }
  5770. // GoString returns the string representation
  5771. func (s ListTrafficPolicyInstancesOutput) GoString() string {
  5772. return s.String()
  5773. }
  5774. // A complex type that contains the information about the request to list your
  5775. // traffic policies.
  5776. type ListTrafficPolicyVersionsInput struct {
  5777. _ struct{} `type:"structure"`
  5778. // Specify the value of Id of the traffic policy for which you want to list
  5779. // all versions.
  5780. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  5781. // The maximum number of traffic policy versions that you want Amazon Route
  5782. // 53 to include in the response body for this request. If the specified traffic
  5783. // policy has more than MaxItems versions, the value of the IsTruncated element
  5784. // in the response is true, and the value of the TrafficPolicyVersionMarker
  5785. // element is the ID of the first version in the next group of MaxItems traffic
  5786. // policy versions.
  5787. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"`
  5788. // For your first request to ListTrafficPolicyVersions, do not include the TrafficPolicyVersionMarker
  5789. // parameter.
  5790. //
  5791. // If you have more traffic policy versions than the value of MaxItems, ListTrafficPolicyVersions
  5792. // returns only the first group of MaxItems versions. To get the next group
  5793. // of MaxItems traffic policy versions, submit another request to ListTrafficPolicyVersions.
  5794. // For the value of TrafficPolicyVersionMarker, specify the value of the TrafficPolicyVersionMarker
  5795. // element that was returned in the previous response.
  5796. //
  5797. // Traffic policy versions are listed in sequential order.
  5798. TrafficPolicyVersionMarker *string `location:"querystring" locationName:"trafficpolicyversion" type:"string"`
  5799. }
  5800. // String returns the string representation
  5801. func (s ListTrafficPolicyVersionsInput) String() string {
  5802. return awsutil.Prettify(s)
  5803. }
  5804. // GoString returns the string representation
  5805. func (s ListTrafficPolicyVersionsInput) GoString() string {
  5806. return s.String()
  5807. }
  5808. // Validate inspects the fields of the type to determine if they are valid.
  5809. func (s *ListTrafficPolicyVersionsInput) Validate() error {
  5810. invalidParams := request.ErrInvalidParams{Context: "ListTrafficPolicyVersionsInput"}
  5811. if s.Id == nil {
  5812. invalidParams.Add(request.NewErrParamRequired("Id"))
  5813. }
  5814. if invalidParams.Len() > 0 {
  5815. return invalidParams
  5816. }
  5817. return nil
  5818. }
  5819. // A complex type that contains the response information for the request.
  5820. type ListTrafficPolicyVersionsOutput struct {
  5821. _ struct{} `type:"structure"`
  5822. // A flag that indicates whether there are more traffic policies to be listed.
  5823. // If the response was truncated, you can get the next group of maxitems traffic
  5824. // policies by calling ListTrafficPolicyVersions again and specifying the value
  5825. // of the NextMarker element in the marker parameter.
  5826. //
  5827. // Valid Values: true | false
  5828. IsTruncated *bool `type:"boolean" required:"true"`
  5829. // The value that you specified for the maxitems parameter in the call to ListTrafficPolicyVersions
  5830. // that produced the current response.
  5831. MaxItems *string `type:"string" required:"true"`
  5832. // A list that contains one TrafficPolicy element for each traffic policy version
  5833. // that is associated with the specified traffic policy.
  5834. TrafficPolicies []*TrafficPolicy `locationNameList:"TrafficPolicy" type:"list" required:"true"`
  5835. // If IsTruncated is true, the value of TrafficPolicyVersionMarker identifies
  5836. // the first traffic policy in the next group of MaxItems traffic policies.
  5837. // Call ListTrafficPolicyVersions again and specify the value of TrafficPolicyVersionMarker
  5838. // in the TrafficPolicyVersionMarker request parameter.
  5839. //
  5840. // This element is present only if IsTruncated is true.
  5841. TrafficPolicyVersionMarker *string `type:"string" required:"true"`
  5842. }
  5843. // String returns the string representation
  5844. func (s ListTrafficPolicyVersionsOutput) String() string {
  5845. return awsutil.Prettify(s)
  5846. }
  5847. // GoString returns the string representation
  5848. func (s ListTrafficPolicyVersionsOutput) GoString() string {
  5849. return s.String()
  5850. }
  5851. // A complex type that contains the value of the Value element for the current
  5852. // resource record set.
  5853. type ResourceRecord struct {
  5854. _ struct{} `type:"structure"`
  5855. // The current or new DNS record value, not to exceed 4,000 characters. In the
  5856. // case of a DELETE action, if the current value does not match the actual value,
  5857. // an error is returned. For descriptions about how to format Value for different
  5858. // record types, see Supported DNS Resource Record Types (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/ResourceRecordTypes.html)
  5859. // in the Amazon Route 53 Developer Guide.
  5860. //
  5861. // You can specify more than one value for all record types except CNAME and
  5862. // SOA.
  5863. Value *string `type:"string" required:"true"`
  5864. }
  5865. // String returns the string representation
  5866. func (s ResourceRecord) String() string {
  5867. return awsutil.Prettify(s)
  5868. }
  5869. // GoString returns the string representation
  5870. func (s ResourceRecord) GoString() string {
  5871. return s.String()
  5872. }
  5873. // Validate inspects the fields of the type to determine if they are valid.
  5874. func (s *ResourceRecord) Validate() error {
  5875. invalidParams := request.ErrInvalidParams{Context: "ResourceRecord"}
  5876. if s.Value == nil {
  5877. invalidParams.Add(request.NewErrParamRequired("Value"))
  5878. }
  5879. if invalidParams.Len() > 0 {
  5880. return invalidParams
  5881. }
  5882. return nil
  5883. }
  5884. // A complex type that contains information about the current resource record
  5885. // set.
  5886. type ResourceRecordSet struct {
  5887. _ struct{} `type:"structure"`
  5888. // Alias resource record sets only: Information about the AWS resource to which
  5889. // you are redirecting traffic.
  5890. AliasTarget *AliasTarget `type:"structure"`
  5891. // Failover resource record sets only: To configure failover, you add the Failover
  5892. // element to two resource record sets. For one resource record set, you specify
  5893. // PRIMARY as the value for Failover; for the other resource record set, you
  5894. // specify SECONDARY. In addition, you include the HealthCheckId element and
  5895. // specify the health check that you want Amazon Route 53 to perform for each
  5896. // resource record set.
  5897. //
  5898. // You can create failover and failover alias resource record sets only in
  5899. // public hosted zones. Except where noted, the following failover behaviors
  5900. // assume that you have included the HealthCheckId element in both resource
  5901. // record sets:
  5902. //
  5903. // When the primary resource record set is healthy, Amazon Route 53 responds
  5904. // to DNS queries with the applicable value from the primary resource record
  5905. // set regardless of the health of the secondary resource record set. When the
  5906. // primary resource record set is unhealthy and the secondary resource record
  5907. // set is healthy, Amazon Route 53 responds to DNS queries with the applicable
  5908. // value from the secondary resource record set. When the secondary resource
  5909. // record set is unhealthy, Amazon Route 53 responds to DNS queries with the
  5910. // applicable value from the primary resource record set regardless of the health
  5911. // of the primary resource record set. If you omit the HealthCheckId element
  5912. // for the secondary resource record set, and if the primary resource record
  5913. // set is unhealthy, Amazon Route 53 always responds to DNS queries with the
  5914. // applicable value from the secondary resource record set. This is true regardless
  5915. // of the health of the associated endpoint. You cannot create non-failover
  5916. // resource record sets that have the same values for the Name and Type elements
  5917. // as failover resource record sets.
  5918. //
  5919. // For failover alias resource record sets, you must also include the EvaluateTargetHealth
  5920. // element and set the value to true.
  5921. //
  5922. // For more information about configuring failover for Amazon Route 53, see
  5923. // Amazon Route 53 Health Checks and DNS Failover (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html)
  5924. // in the Amazon Route 53 Developer Guide.
  5925. //
  5926. // Valid values: PRIMARY | SECONDARY
  5927. Failover *string `type:"string" enum:"ResourceRecordSetFailover"`
  5928. // Geo location resource record sets only: A complex type that lets you control
  5929. // how Amazon Route 53 responds to DNS queries based on the geographic origin
  5930. // of the query. For example, if you want all queries from Africa to be routed
  5931. // to a web server with an IP address of 192.0.2.111, create a resource record
  5932. // set with a Type of A and a ContinentCode of AF.
  5933. //
  5934. // You can create geolocation and geolocation alias resource record sets only
  5935. // in public hosted zones. If you create separate resource record sets for overlapping
  5936. // geographic regions (for example, one resource record set for a continent
  5937. // and one for a country on the same continent), priority goes to the smallest
  5938. // geographic region. This allows you to route most queries for a continent
  5939. // to one resource and to route queries for a country on that continent to a
  5940. // different resource.
  5941. //
  5942. // You cannot create two geolocation resource record sets that specify the
  5943. // same geographic location.
  5944. //
  5945. // The value * in the CountryCode element matches all geographic locations
  5946. // that aren't specified in other geolocation resource record sets that have
  5947. // the same values for the Name and Type elements.
  5948. //
  5949. // Geolocation works by mapping IP addresses to locations. However, some IP
  5950. // addresses aren't mapped to geographic locations, so even if you create geolocation
  5951. // resource record sets that cover all seven continents, Amazon Route 53 will
  5952. // receive some DNS queries from locations that it can't identify. We recommend
  5953. // that you create a resource record set for which the value of CountryCode
  5954. // is *, which handles both queries that come from locations for which you haven't
  5955. // created geolocation resource record sets and queries from IP addresses that
  5956. // aren't mapped to a location. If you don't create a * resource record set,
  5957. // Amazon Route 53 returns a "no answer" response for queries from those locations.
  5958. // You cannot create non-geolocation resource record sets that have the same
  5959. // values for the Name and Type elements as geolocation resource record sets.
  5960. GeoLocation *GeoLocation `type:"structure"`
  5961. // Health Check resource record sets only, not required for alias resource record
  5962. // sets: An identifier that is used to identify health check associated with
  5963. // the resource record set.
  5964. HealthCheckId *string `type:"string"`
  5965. // The name of the domain you want to perform the action on.
  5966. //
  5967. // Enter a fully qualified domain name, for example, www.example.com. You can
  5968. // optionally include a trailing dot. If you omit the trailing dot, Amazon Route
  5969. // 53 still assumes that the domain name that you specify is fully qualified.
  5970. // This means that Amazon Route 53 treats www.example.com (without a trailing
  5971. // dot) and www.example.com. (with a trailing dot) as identical.
  5972. //
  5973. // For information about how to specify characters other than a-z, 0-9, and
  5974. // - (hyphen) and how to specify internationalized domain names, see DNS Domain
  5975. // Name Format (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html)
  5976. // in the Amazon Route 53 Developer Guide.
  5977. //
  5978. // You can use an asterisk (*) character in the name. DNS treats the * character
  5979. // either as a wildcard or as the * character (ASCII 42), depending on where
  5980. // it appears in the name. For more information, see Using an Asterisk (*) in
  5981. // the Names of Hosted Zones and Resource Record Sets (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html#domain-name-format-asterisk)
  5982. // in the Amazon Route 53 Developer Guide
  5983. //
  5984. // You can't use the * wildcard for resource records sets that have a type
  5985. // of NS.
  5986. Name *string `type:"string" required:"true"`
  5987. // Latency-based resource record sets only: The Amazon EC2 region where the
  5988. // resource that is specified in this resource record set resides. The resource
  5989. // typically is an AWS resource, such as an Amazon EC2 instance or an ELB load
  5990. // balancer, and is referred to by an IP address or a DNS domain name, depending
  5991. // on the record type.
  5992. //
  5993. // You can create latency and latency alias resource record sets only in public
  5994. // hosted zones. When Amazon Route 53 receives a DNS query for a domain name
  5995. // and type for which you have created latency resource record sets, Amazon
  5996. // Route 53 selects the latency resource record set that has the lowest latency
  5997. // between the end user and the associated Amazon EC2 region. Amazon Route 53
  5998. // then returns the value that is associated with the selected resource record
  5999. // set.
  6000. //
  6001. // Note the following:
  6002. //
  6003. // You can only specify one ResourceRecord per latency resource record set.
  6004. // You can only create one latency resource record set for each Amazon EC2 region.
  6005. // You are not required to create latency resource record sets for all Amazon
  6006. // EC2 regions. Amazon Route 53 will choose the region with the best latency
  6007. // from among the regions for which you create latency resource record sets.
  6008. // You cannot create non-latency resource record sets that have the same values
  6009. // for the Name and Type elements as latency resource record sets.
  6010. Region *string `min:"1" type:"string" enum:"ResourceRecordSetRegion"`
  6011. // A complex type that contains the resource records for the current resource
  6012. // record set.
  6013. ResourceRecords []*ResourceRecord `locationNameList:"ResourceRecord" min:"1" type:"list"`
  6014. // Weighted, Latency, Geo, and Failover resource record sets only: An identifier
  6015. // that differentiates among multiple resource record sets that have the same
  6016. // combination of DNS name and type. The value of SetIdentifier must be unique
  6017. // for each resource record set that has the same combination of DNS name and
  6018. // type.
  6019. SetIdentifier *string `min:"1" type:"string"`
  6020. // The cache time to live for the current resource record set. Note the following:
  6021. //
  6022. // If you're creating a non-alias resource record set, TTL is required. If
  6023. // you're creating an alias resource record set, omit TTL. Amazon Route 53 uses
  6024. // the value of TTL for the alias target. If you're associating this resource
  6025. // record set with a health check (if you're adding a HealthCheckId element),
  6026. // we recommend that you specify a TTL of 60 seconds or less so clients respond
  6027. // quickly to changes in health status. All of the resource record sets in a
  6028. // group of weighted, latency, geolocation, or failover resource record sets
  6029. // must have the same value for TTL. If a group of weighted resource record
  6030. // sets includes one or more weighted alias resource record sets for which the
  6031. // alias target is an ELB load balancer, we recommend that you specify a TTL
  6032. // of 60 seconds for all of the non-alias weighted resource record sets that
  6033. // have the same name and type. Values other than 60 seconds (the TTL for load
  6034. // balancers) will change the effect of the values that you specify for Weight.
  6035. TTL *int64 `type:"long"`
  6036. TrafficPolicyInstanceId *string `type:"string"`
  6037. // The DNS record type. For information about different record types and how
  6038. // data is encoded for them, see Supported DNS Resource Record Types (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/ResourceRecordTypes.html)
  6039. // in the Amazon Route 53 Developer Guide.
  6040. //
  6041. // Valid values for basic resource record sets: A | AAAA | CNAME | MX | NS
  6042. // | PTR | SOA | SPF | SRV | TXT
  6043. //
  6044. // Values for weighted, latency, geolocation, and failover resource record
  6045. // sets: A | AAAA | CNAME | MX | PTR | SPF | SRV | TXT. When creating a group
  6046. // of weighted, latency, geolocation, or failover resource record sets, specify
  6047. // the same value for all of the resource record sets in the group.
  6048. //
  6049. // SPF records were formerly used to verify the identity of the sender of email
  6050. // messages. However, we no longer recommend that you create resource record
  6051. // sets for which the value of Type is SPF. RFC 7208, Sender Policy Framework
  6052. // (SPF) for Authorizing Use of Domains in Email, Version 1, has been updated
  6053. // to say, "...[I]ts existence and mechanism defined in [RFC4408] have led to
  6054. // some interoperability issues. Accordingly, its use is no longer appropriate
  6055. // for SPF version 1; implementations are not to use it." In RFC 7208, see section
  6056. // 14.1, The SPF DNS Record Type (http://tools.ietf.org/html/rfc7208#section-14.1).
  6057. // Values for alias resource record sets:
  6058. //
  6059. // CloudFront distributions: A ELB load balancers: A | AAAA Amazon S3 buckets:
  6060. // A Another resource record set in this hosted zone: Specify the type of the
  6061. // resource record set for which you're creating the alias. Specify any value
  6062. // except NS or SOA.
  6063. Type *string `type:"string" required:"true" enum:"RRType"`
  6064. // Weighted resource record sets only: Among resource record sets that have
  6065. // the same combination of DNS name and type, a value that determines the proportion
  6066. // of DNS queries that Amazon Route 53 responds to using the current resource
  6067. // record set. Amazon Route 53 calculates the sum of the weights for the resource
  6068. // record sets that have the same combination of DNS name and type. Amazon Route
  6069. // 53 then responds to queries based on the ratio of a resource's weight to
  6070. // the total. Note the following:
  6071. //
  6072. // You must specify a value for the Weight element for every weighted resource
  6073. // record set. You can only specify one ResourceRecord per weighted resource
  6074. // record set. You cannot create latency, failover, or geolocation resource
  6075. // record sets that have the same values for the Name and Type elements as weighted
  6076. // resource record sets. You can create a maximum of 100 weighted resource record
  6077. // sets that have the same values for the Name and Type elements. For weighted
  6078. // (but not weighted alias) resource record sets, if you set Weight to 0 for
  6079. // a resource record set, Amazon Route 53 never responds to queries with the
  6080. // applicable value for that resource record set. However, if you set Weight
  6081. // to 0 for all resource record sets that have the same combination of DNS name
  6082. // and type, traffic is routed to all resources with equal probability.
  6083. //
  6084. // The effect of setting Weight to 0 is different when you associate health
  6085. // checks with weighted resource record sets. For more information, see Options
  6086. // for Configuring Amazon Route 53 Active-Active and Active-Passive Failover
  6087. // (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-configuring-options.html)
  6088. // in the Amazon Route 53 Developer Guide.
  6089. Weight *int64 `type:"long"`
  6090. }
  6091. // String returns the string representation
  6092. func (s ResourceRecordSet) String() string {
  6093. return awsutil.Prettify(s)
  6094. }
  6095. // GoString returns the string representation
  6096. func (s ResourceRecordSet) GoString() string {
  6097. return s.String()
  6098. }
  6099. // Validate inspects the fields of the type to determine if they are valid.
  6100. func (s *ResourceRecordSet) Validate() error {
  6101. invalidParams := request.ErrInvalidParams{Context: "ResourceRecordSet"}
  6102. if s.Name == nil {
  6103. invalidParams.Add(request.NewErrParamRequired("Name"))
  6104. }
  6105. if s.Region != nil && len(*s.Region) < 1 {
  6106. invalidParams.Add(request.NewErrParamMinLen("Region", 1))
  6107. }
  6108. if s.ResourceRecords != nil && len(s.ResourceRecords) < 1 {
  6109. invalidParams.Add(request.NewErrParamMinLen("ResourceRecords", 1))
  6110. }
  6111. if s.SetIdentifier != nil && len(*s.SetIdentifier) < 1 {
  6112. invalidParams.Add(request.NewErrParamMinLen("SetIdentifier", 1))
  6113. }
  6114. if s.Type == nil {
  6115. invalidParams.Add(request.NewErrParamRequired("Type"))
  6116. }
  6117. if s.AliasTarget != nil {
  6118. if err := s.AliasTarget.Validate(); err != nil {
  6119. invalidParams.AddNested("AliasTarget", err.(request.ErrInvalidParams))
  6120. }
  6121. }
  6122. if s.GeoLocation != nil {
  6123. if err := s.GeoLocation.Validate(); err != nil {
  6124. invalidParams.AddNested("GeoLocation", err.(request.ErrInvalidParams))
  6125. }
  6126. }
  6127. if s.ResourceRecords != nil {
  6128. for i, v := range s.ResourceRecords {
  6129. if v == nil {
  6130. continue
  6131. }
  6132. if err := v.Validate(); err != nil {
  6133. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ResourceRecords", i), err.(request.ErrInvalidParams))
  6134. }
  6135. }
  6136. }
  6137. if invalidParams.Len() > 0 {
  6138. return invalidParams
  6139. }
  6140. return nil
  6141. }
  6142. // A complex type containing a resource and its associated tags.
  6143. type ResourceTagSet struct {
  6144. _ struct{} `type:"structure"`
  6145. // The ID for the specified resource.
  6146. ResourceId *string `type:"string"`
  6147. // The type of the resource.
  6148. //
  6149. // - The resource type for health checks is healthcheck.
  6150. //
  6151. // - The resource type for hosted zones is hostedzone.
  6152. ResourceType *string `type:"string" enum:"TagResourceType"`
  6153. // The tags associated with the specified resource.
  6154. Tags []*Tag `locationNameList:"Tag" min:"1" type:"list"`
  6155. }
  6156. // String returns the string representation
  6157. func (s ResourceTagSet) String() string {
  6158. return awsutil.Prettify(s)
  6159. }
  6160. // GoString returns the string representation
  6161. func (s ResourceTagSet) GoString() string {
  6162. return s.String()
  6163. }
  6164. // A complex type that contains information about the health check status for
  6165. // the current observation.
  6166. type StatusReport struct {
  6167. _ struct{} `type:"structure"`
  6168. // The date and time the health check status was observed, in the format YYYY-MM-DDThh:mm:ssZ,
  6169. // as specified in the ISO 8601 standard (for example, 2009-11-19T19:37:58Z).
  6170. // The Z after the time indicates that the time is listed in Coordinated Universal
  6171. // Time (UTC).
  6172. CheckedTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  6173. // The observed health check status.
  6174. Status *string `type:"string"`
  6175. }
  6176. // String returns the string representation
  6177. func (s StatusReport) String() string {
  6178. return awsutil.Prettify(s)
  6179. }
  6180. // GoString returns the string representation
  6181. func (s StatusReport) GoString() string {
  6182. return s.String()
  6183. }
  6184. // A single tag containing a key and value.
  6185. type Tag struct {
  6186. _ struct{} `type:"structure"`
  6187. // The key for a Tag.
  6188. Key *string `type:"string"`
  6189. // The value for a Tag.
  6190. Value *string `type:"string"`
  6191. }
  6192. // String returns the string representation
  6193. func (s Tag) String() string {
  6194. return awsutil.Prettify(s)
  6195. }
  6196. // GoString returns the string representation
  6197. func (s Tag) GoString() string {
  6198. return s.String()
  6199. }
  6200. type TrafficPolicy struct {
  6201. _ struct{} `type:"structure"`
  6202. Comment *string `type:"string"`
  6203. Document *string `type:"string" required:"true"`
  6204. Id *string `type:"string" required:"true"`
  6205. Name *string `type:"string" required:"true"`
  6206. Type *string `type:"string" required:"true" enum:"RRType"`
  6207. Version *int64 `min:"1" type:"integer" required:"true"`
  6208. }
  6209. // String returns the string representation
  6210. func (s TrafficPolicy) String() string {
  6211. return awsutil.Prettify(s)
  6212. }
  6213. // GoString returns the string representation
  6214. func (s TrafficPolicy) GoString() string {
  6215. return s.String()
  6216. }
  6217. type TrafficPolicyInstance struct {
  6218. _ struct{} `type:"structure"`
  6219. HostedZoneId *string `type:"string" required:"true"`
  6220. Id *string `type:"string" required:"true"`
  6221. Message *string `type:"string" required:"true"`
  6222. Name *string `type:"string" required:"true"`
  6223. State *string `type:"string" required:"true"`
  6224. TTL *int64 `type:"long" required:"true"`
  6225. TrafficPolicyId *string `type:"string" required:"true"`
  6226. TrafficPolicyType *string `type:"string" required:"true" enum:"RRType"`
  6227. TrafficPolicyVersion *int64 `min:"1" type:"integer" required:"true"`
  6228. }
  6229. // String returns the string representation
  6230. func (s TrafficPolicyInstance) String() string {
  6231. return awsutil.Prettify(s)
  6232. }
  6233. // GoString returns the string representation
  6234. func (s TrafficPolicyInstance) GoString() string {
  6235. return s.String()
  6236. }
  6237. type TrafficPolicySummary struct {
  6238. _ struct{} `type:"structure"`
  6239. Id *string `type:"string" required:"true"`
  6240. LatestVersion *int64 `min:"1" type:"integer" required:"true"`
  6241. Name *string `type:"string" required:"true"`
  6242. TrafficPolicyCount *int64 `min:"1" type:"integer" required:"true"`
  6243. Type *string `type:"string" required:"true" enum:"RRType"`
  6244. }
  6245. // String returns the string representation
  6246. func (s TrafficPolicySummary) String() string {
  6247. return awsutil.Prettify(s)
  6248. }
  6249. // GoString returns the string representation
  6250. func (s TrafficPolicySummary) GoString() string {
  6251. return s.String()
  6252. }
  6253. // >A complex type that contains information about the request to update a health
  6254. // check.
  6255. type UpdateHealthCheckInput struct {
  6256. _ struct{} `locationName:"UpdateHealthCheckRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
  6257. // A complex type that contains information to uniquely identify the CloudWatch
  6258. // alarm that you're associating with a Route 53 health check.
  6259. AlarmIdentifier *AlarmIdentifier `type:"structure"`
  6260. // For a specified parent health check, a list of HealthCheckId values for the
  6261. // associated child health checks.
  6262. //
  6263. // Specify this value only if you want to change it.
  6264. ChildHealthChecks []*string `locationNameList:"ChildHealthCheck" type:"list"`
  6265. // Specify whether you want Amazon Route 53 to send the value of FullyQualifiedDomainName
  6266. // to the endpoint in the client_hello message during TLS negotiation. If you
  6267. // don't specify a value for EnableSNI, Amazon Route 53 defaults to true when
  6268. // Type is HTTPS or HTTPS_STR_MATCH and defaults to false when Type is any other
  6269. // value.
  6270. //
  6271. // Specify this value only if you want to change it.
  6272. EnableSNI *bool `type:"boolean"`
  6273. // The number of consecutive health checks that an endpoint must pass or fail
  6274. // for Amazon Route 53 to change the current status of the endpoint from unhealthy
  6275. // to healthy or vice versa.
  6276. //
  6277. // Valid values are integers between 1 and 10. For more information, see "How
  6278. // Amazon Route 53 Determines Whether an Endpoint Is Healthy" in the Amazon
  6279. // Route 53 Developer Guide.
  6280. //
  6281. // Specify this value only if you want to change it.
  6282. FailureThreshold *int64 `min:"1" type:"integer"`
  6283. // Fully qualified domain name of the instance to be health checked.
  6284. //
  6285. // Specify this value only if you want to change it.
  6286. FullyQualifiedDomainName *string `type:"string"`
  6287. // The ID of the health check to update.
  6288. HealthCheckId *string `location:"uri" locationName:"HealthCheckId" type:"string" required:"true"`
  6289. // Optional. When you specify a health check version, Amazon Route 53 compares
  6290. // this value with the current value in the health check, which prevents you
  6291. // from updating the health check when the versions don't match. Using HealthCheckVersion
  6292. // lets you prevent overwriting another change to the health check.
  6293. HealthCheckVersion *int64 `min:"1" type:"long"`
  6294. // The minimum number of child health checks that must be healthy for Amazon
  6295. // Route 53 to consider the parent health check to be healthy. Valid values
  6296. // are integers between 0 and 256, inclusive.
  6297. //
  6298. // Specify this value only if you want to change it.
  6299. HealthThreshold *int64 `type:"integer"`
  6300. // The IP address of the resource that you want to check.
  6301. //
  6302. // Specify this value only if you want to change it.
  6303. IPAddress *string `type:"string"`
  6304. InsufficientDataHealthStatus *string `type:"string" enum:"InsufficientDataHealthStatus"`
  6305. // A boolean value that indicates whether the status of health check should
  6306. // be inverted. For example, if a health check is healthy but Inverted is True,
  6307. // then Amazon Route 53 considers the health check to be unhealthy.
  6308. //
  6309. // Specify this value only if you want to change it.
  6310. Inverted *bool `type:"boolean"`
  6311. // The port on which you want Amazon Route 53 to open a connection to perform
  6312. // health checks.
  6313. //
  6314. // Specify this value only if you want to change it.
  6315. Port *int64 `min:"1" type:"integer"`
  6316. // A list of HealthCheckRegion values that specify the Amazon EC2 regions that
  6317. // you want Amazon Route 53 to use to perform health checks. You must specify
  6318. // at least three regions.
  6319. //
  6320. // When you remove a region from the list, Amazon Route 53 will briefly continue
  6321. // to check your endpoint from that region. Specify this value only if you want
  6322. // to change it.
  6323. Regions []*string `locationNameList:"Region" min:"1" type:"list"`
  6324. // The path that you want Amazon Route 53 to request when performing health
  6325. // checks. The path can be any value for which your endpoint will return an
  6326. // HTTP status code of 2xx or 3xx when the endpoint is healthy, for example
  6327. // the file /docs/route53-health-check.html.
  6328. //
  6329. // Specify this value only if you want to change it.
  6330. ResourcePath *string `type:"string"`
  6331. // If the value of Type is HTTP_STR_MATCH or HTTP_STR_MATCH, the string that
  6332. // you want Amazon Route 53 to search for in the response body from the specified
  6333. // resource. If the string appears in the response body, Amazon Route 53 considers
  6334. // the resource healthy. Amazon Route 53 considers case when searching for SearchString
  6335. // in the response body.
  6336. //
  6337. // Specify this value only if you want to change it.
  6338. SearchString *string `type:"string"`
  6339. }
  6340. // String returns the string representation
  6341. func (s UpdateHealthCheckInput) String() string {
  6342. return awsutil.Prettify(s)
  6343. }
  6344. // GoString returns the string representation
  6345. func (s UpdateHealthCheckInput) GoString() string {
  6346. return s.String()
  6347. }
  6348. // Validate inspects the fields of the type to determine if they are valid.
  6349. func (s *UpdateHealthCheckInput) Validate() error {
  6350. invalidParams := request.ErrInvalidParams{Context: "UpdateHealthCheckInput"}
  6351. if s.FailureThreshold != nil && *s.FailureThreshold < 1 {
  6352. invalidParams.Add(request.NewErrParamMinValue("FailureThreshold", 1))
  6353. }
  6354. if s.HealthCheckId == nil {
  6355. invalidParams.Add(request.NewErrParamRequired("HealthCheckId"))
  6356. }
  6357. if s.HealthCheckVersion != nil && *s.HealthCheckVersion < 1 {
  6358. invalidParams.Add(request.NewErrParamMinValue("HealthCheckVersion", 1))
  6359. }
  6360. if s.Port != nil && *s.Port < 1 {
  6361. invalidParams.Add(request.NewErrParamMinValue("Port", 1))
  6362. }
  6363. if s.Regions != nil && len(s.Regions) < 1 {
  6364. invalidParams.Add(request.NewErrParamMinLen("Regions", 1))
  6365. }
  6366. if s.AlarmIdentifier != nil {
  6367. if err := s.AlarmIdentifier.Validate(); err != nil {
  6368. invalidParams.AddNested("AlarmIdentifier", err.(request.ErrInvalidParams))
  6369. }
  6370. }
  6371. if invalidParams.Len() > 0 {
  6372. return invalidParams
  6373. }
  6374. return nil
  6375. }
  6376. type UpdateHealthCheckOutput struct {
  6377. _ struct{} `type:"structure"`
  6378. // A complex type that contains identifying information about the health check.
  6379. HealthCheck *HealthCheck `type:"structure" required:"true"`
  6380. }
  6381. // String returns the string representation
  6382. func (s UpdateHealthCheckOutput) String() string {
  6383. return awsutil.Prettify(s)
  6384. }
  6385. // GoString returns the string representation
  6386. func (s UpdateHealthCheckOutput) GoString() string {
  6387. return s.String()
  6388. }
  6389. // A complex type that contains information about the request to update a hosted
  6390. // zone comment.
  6391. type UpdateHostedZoneCommentInput struct {
  6392. _ struct{} `locationName:"UpdateHostedZoneCommentRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
  6393. // A comment about your hosted zone.
  6394. Comment *string `type:"string"`
  6395. // The ID of the hosted zone you want to update.
  6396. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  6397. }
  6398. // String returns the string representation
  6399. func (s UpdateHostedZoneCommentInput) String() string {
  6400. return awsutil.Prettify(s)
  6401. }
  6402. // GoString returns the string representation
  6403. func (s UpdateHostedZoneCommentInput) GoString() string {
  6404. return s.String()
  6405. }
  6406. // Validate inspects the fields of the type to determine if they are valid.
  6407. func (s *UpdateHostedZoneCommentInput) Validate() error {
  6408. invalidParams := request.ErrInvalidParams{Context: "UpdateHostedZoneCommentInput"}
  6409. if s.Id == nil {
  6410. invalidParams.Add(request.NewErrParamRequired("Id"))
  6411. }
  6412. if invalidParams.Len() > 0 {
  6413. return invalidParams
  6414. }
  6415. return nil
  6416. }
  6417. // A complex type containing information about the specified hosted zone after
  6418. // the update.
  6419. type UpdateHostedZoneCommentOutput struct {
  6420. _ struct{} `type:"structure"`
  6421. // A complex type that contain information about the specified hosted zone.
  6422. HostedZone *HostedZone `type:"structure" required:"true"`
  6423. }
  6424. // String returns the string representation
  6425. func (s UpdateHostedZoneCommentOutput) String() string {
  6426. return awsutil.Prettify(s)
  6427. }
  6428. // GoString returns the string representation
  6429. func (s UpdateHostedZoneCommentOutput) GoString() string {
  6430. return s.String()
  6431. }
  6432. // A complex type that contains information about the traffic policy for which
  6433. // you want to update the comment.
  6434. type UpdateTrafficPolicyCommentInput struct {
  6435. _ struct{} `locationName:"UpdateTrafficPolicyCommentRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
  6436. // The new comment for the specified traffic policy and version.
  6437. Comment *string `type:"string" required:"true"`
  6438. // The value of Id for the traffic policy for which you want to update the comment.
  6439. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  6440. // The value of Version for the traffic policy for which you want to update
  6441. // the comment.
  6442. Version *int64 `location:"uri" locationName:"Version" min:"1" type:"integer" required:"true"`
  6443. }
  6444. // String returns the string representation
  6445. func (s UpdateTrafficPolicyCommentInput) String() string {
  6446. return awsutil.Prettify(s)
  6447. }
  6448. // GoString returns the string representation
  6449. func (s UpdateTrafficPolicyCommentInput) GoString() string {
  6450. return s.String()
  6451. }
  6452. // Validate inspects the fields of the type to determine if they are valid.
  6453. func (s *UpdateTrafficPolicyCommentInput) Validate() error {
  6454. invalidParams := request.ErrInvalidParams{Context: "UpdateTrafficPolicyCommentInput"}
  6455. if s.Comment == nil {
  6456. invalidParams.Add(request.NewErrParamRequired("Comment"))
  6457. }
  6458. if s.Id == nil {
  6459. invalidParams.Add(request.NewErrParamRequired("Id"))
  6460. }
  6461. if s.Version == nil {
  6462. invalidParams.Add(request.NewErrParamRequired("Version"))
  6463. }
  6464. if s.Version != nil && *s.Version < 1 {
  6465. invalidParams.Add(request.NewErrParamMinValue("Version", 1))
  6466. }
  6467. if invalidParams.Len() > 0 {
  6468. return invalidParams
  6469. }
  6470. return nil
  6471. }
  6472. // A complex type that contains the response information for the traffic policy.
  6473. type UpdateTrafficPolicyCommentOutput struct {
  6474. _ struct{} `type:"structure"`
  6475. // A complex type that contains settings for the specified traffic policy.
  6476. TrafficPolicy *TrafficPolicy `type:"structure" required:"true"`
  6477. }
  6478. // String returns the string representation
  6479. func (s UpdateTrafficPolicyCommentOutput) String() string {
  6480. return awsutil.Prettify(s)
  6481. }
  6482. // GoString returns the string representation
  6483. func (s UpdateTrafficPolicyCommentOutput) GoString() string {
  6484. return s.String()
  6485. }
  6486. // A complex type that contains information about the resource record sets that
  6487. // you want to update based on a specified traffic policy instance.
  6488. type UpdateTrafficPolicyInstanceInput struct {
  6489. _ struct{} `locationName:"UpdateTrafficPolicyInstanceRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
  6490. // The ID of the traffic policy instance that you want to update.
  6491. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  6492. // The TTL that you want Amazon Route 53 to assign to all of the updated resource
  6493. // record sets.
  6494. TTL *int64 `type:"long" required:"true"`
  6495. // The ID of the traffic policy that you want Amazon Route 53 to use to update
  6496. // resource record sets for the specified traffic policy instance.
  6497. TrafficPolicyId *string `type:"string" required:"true"`
  6498. // The version of the traffic policy that you want Amazon Route 53 to use to
  6499. // update resource record sets for the specified traffic policy instance.
  6500. TrafficPolicyVersion *int64 `min:"1" type:"integer" required:"true"`
  6501. }
  6502. // String returns the string representation
  6503. func (s UpdateTrafficPolicyInstanceInput) String() string {
  6504. return awsutil.Prettify(s)
  6505. }
  6506. // GoString returns the string representation
  6507. func (s UpdateTrafficPolicyInstanceInput) GoString() string {
  6508. return s.String()
  6509. }
  6510. // Validate inspects the fields of the type to determine if they are valid.
  6511. func (s *UpdateTrafficPolicyInstanceInput) Validate() error {
  6512. invalidParams := request.ErrInvalidParams{Context: "UpdateTrafficPolicyInstanceInput"}
  6513. if s.Id == nil {
  6514. invalidParams.Add(request.NewErrParamRequired("Id"))
  6515. }
  6516. if s.TTL == nil {
  6517. invalidParams.Add(request.NewErrParamRequired("TTL"))
  6518. }
  6519. if s.TrafficPolicyId == nil {
  6520. invalidParams.Add(request.NewErrParamRequired("TrafficPolicyId"))
  6521. }
  6522. if s.TrafficPolicyVersion == nil {
  6523. invalidParams.Add(request.NewErrParamRequired("TrafficPolicyVersion"))
  6524. }
  6525. if s.TrafficPolicyVersion != nil && *s.TrafficPolicyVersion < 1 {
  6526. invalidParams.Add(request.NewErrParamMinValue("TrafficPolicyVersion", 1))
  6527. }
  6528. if invalidParams.Len() > 0 {
  6529. return invalidParams
  6530. }
  6531. return nil
  6532. }
  6533. // A complex type that contains information about the resource record sets that
  6534. // Amazon Route 53 created based on a specified traffic policy.
  6535. type UpdateTrafficPolicyInstanceOutput struct {
  6536. _ struct{} `type:"structure"`
  6537. // A complex type that contains settings for the updated traffic policy instance.
  6538. TrafficPolicyInstance *TrafficPolicyInstance `type:"structure" required:"true"`
  6539. }
  6540. // String returns the string representation
  6541. func (s UpdateTrafficPolicyInstanceOutput) String() string {
  6542. return awsutil.Prettify(s)
  6543. }
  6544. // GoString returns the string representation
  6545. func (s UpdateTrafficPolicyInstanceOutput) GoString() string {
  6546. return s.String()
  6547. }
  6548. type VPC struct {
  6549. _ struct{} `type:"structure"`
  6550. // A VPC ID
  6551. VPCId *string `type:"string"`
  6552. VPCRegion *string `min:"1" type:"string" enum:"VPCRegion"`
  6553. }
  6554. // String returns the string representation
  6555. func (s VPC) String() string {
  6556. return awsutil.Prettify(s)
  6557. }
  6558. // GoString returns the string representation
  6559. func (s VPC) GoString() string {
  6560. return s.String()
  6561. }
  6562. // Validate inspects the fields of the type to determine if they are valid.
  6563. func (s *VPC) Validate() error {
  6564. invalidParams := request.ErrInvalidParams{Context: "VPC"}
  6565. if s.VPCRegion != nil && len(*s.VPCRegion) < 1 {
  6566. invalidParams.Add(request.NewErrParamMinLen("VPCRegion", 1))
  6567. }
  6568. if invalidParams.Len() > 0 {
  6569. return invalidParams
  6570. }
  6571. return nil
  6572. }
  6573. const (
  6574. // @enum ChangeAction
  6575. ChangeActionCreate = "CREATE"
  6576. // @enum ChangeAction
  6577. ChangeActionDelete = "DELETE"
  6578. // @enum ChangeAction
  6579. ChangeActionUpsert = "UPSERT"
  6580. )
  6581. const (
  6582. // @enum ChangeStatus
  6583. ChangeStatusPending = "PENDING"
  6584. // @enum ChangeStatus
  6585. ChangeStatusInsync = "INSYNC"
  6586. )
  6587. const (
  6588. // @enum CloudWatchRegion
  6589. CloudWatchRegionUsEast1 = "us-east-1"
  6590. // @enum CloudWatchRegion
  6591. CloudWatchRegionUsWest1 = "us-west-1"
  6592. // @enum CloudWatchRegion
  6593. CloudWatchRegionUsWest2 = "us-west-2"
  6594. // @enum CloudWatchRegion
  6595. CloudWatchRegionEuCentral1 = "eu-central-1"
  6596. // @enum CloudWatchRegion
  6597. CloudWatchRegionEuWest1 = "eu-west-1"
  6598. // @enum CloudWatchRegion
  6599. CloudWatchRegionApSoutheast1 = "ap-southeast-1"
  6600. // @enum CloudWatchRegion
  6601. CloudWatchRegionApSoutheast2 = "ap-southeast-2"
  6602. // @enum CloudWatchRegion
  6603. CloudWatchRegionApNortheast1 = "ap-northeast-1"
  6604. // @enum CloudWatchRegion
  6605. CloudWatchRegionApNortheast2 = "ap-northeast-2"
  6606. // @enum CloudWatchRegion
  6607. CloudWatchRegionSaEast1 = "sa-east-1"
  6608. )
  6609. const (
  6610. // @enum ComparisonOperator
  6611. ComparisonOperatorGreaterThanOrEqualToThreshold = "GreaterThanOrEqualToThreshold"
  6612. // @enum ComparisonOperator
  6613. ComparisonOperatorGreaterThanThreshold = "GreaterThanThreshold"
  6614. // @enum ComparisonOperator
  6615. ComparisonOperatorLessThanThreshold = "LessThanThreshold"
  6616. // @enum ComparisonOperator
  6617. ComparisonOperatorLessThanOrEqualToThreshold = "LessThanOrEqualToThreshold"
  6618. )
  6619. // An Amazon EC2 region that you want Amazon Route 53 to use to perform health
  6620. // checks.
  6621. const (
  6622. // @enum HealthCheckRegion
  6623. HealthCheckRegionUsEast1 = "us-east-1"
  6624. // @enum HealthCheckRegion
  6625. HealthCheckRegionUsWest1 = "us-west-1"
  6626. // @enum HealthCheckRegion
  6627. HealthCheckRegionUsWest2 = "us-west-2"
  6628. // @enum HealthCheckRegion
  6629. HealthCheckRegionEuWest1 = "eu-west-1"
  6630. // @enum HealthCheckRegion
  6631. HealthCheckRegionApSoutheast1 = "ap-southeast-1"
  6632. // @enum HealthCheckRegion
  6633. HealthCheckRegionApSoutheast2 = "ap-southeast-2"
  6634. // @enum HealthCheckRegion
  6635. HealthCheckRegionApNortheast1 = "ap-northeast-1"
  6636. // @enum HealthCheckRegion
  6637. HealthCheckRegionSaEast1 = "sa-east-1"
  6638. )
  6639. const (
  6640. // @enum HealthCheckType
  6641. HealthCheckTypeHttp = "HTTP"
  6642. // @enum HealthCheckType
  6643. HealthCheckTypeHttps = "HTTPS"
  6644. // @enum HealthCheckType
  6645. HealthCheckTypeHttpStrMatch = "HTTP_STR_MATCH"
  6646. // @enum HealthCheckType
  6647. HealthCheckTypeHttpsStrMatch = "HTTPS_STR_MATCH"
  6648. // @enum HealthCheckType
  6649. HealthCheckTypeTcp = "TCP"
  6650. // @enum HealthCheckType
  6651. HealthCheckTypeCalculated = "CALCULATED"
  6652. // @enum HealthCheckType
  6653. HealthCheckTypeCloudwatchMetric = "CLOUDWATCH_METRIC"
  6654. )
  6655. const (
  6656. // @enum InsufficientDataHealthStatus
  6657. InsufficientDataHealthStatusHealthy = "Healthy"
  6658. // @enum InsufficientDataHealthStatus
  6659. InsufficientDataHealthStatusUnhealthy = "Unhealthy"
  6660. // @enum InsufficientDataHealthStatus
  6661. InsufficientDataHealthStatusLastKnownStatus = "LastKnownStatus"
  6662. )
  6663. const (
  6664. // @enum RRType
  6665. RRTypeSoa = "SOA"
  6666. // @enum RRType
  6667. RRTypeA = "A"
  6668. // @enum RRType
  6669. RRTypeTxt = "TXT"
  6670. // @enum RRType
  6671. RRTypeNs = "NS"
  6672. // @enum RRType
  6673. RRTypeCname = "CNAME"
  6674. // @enum RRType
  6675. RRTypeMx = "MX"
  6676. // @enum RRType
  6677. RRTypePtr = "PTR"
  6678. // @enum RRType
  6679. RRTypeSrv = "SRV"
  6680. // @enum RRType
  6681. RRTypeSpf = "SPF"
  6682. // @enum RRType
  6683. RRTypeAaaa = "AAAA"
  6684. )
  6685. const (
  6686. // @enum ResourceRecordSetFailover
  6687. ResourceRecordSetFailoverPrimary = "PRIMARY"
  6688. // @enum ResourceRecordSetFailover
  6689. ResourceRecordSetFailoverSecondary = "SECONDARY"
  6690. )
  6691. const (
  6692. // @enum ResourceRecordSetRegion
  6693. ResourceRecordSetRegionUsEast1 = "us-east-1"
  6694. // @enum ResourceRecordSetRegion
  6695. ResourceRecordSetRegionUsWest1 = "us-west-1"
  6696. // @enum ResourceRecordSetRegion
  6697. ResourceRecordSetRegionUsWest2 = "us-west-2"
  6698. // @enum ResourceRecordSetRegion
  6699. ResourceRecordSetRegionEuWest1 = "eu-west-1"
  6700. // @enum ResourceRecordSetRegion
  6701. ResourceRecordSetRegionEuCentral1 = "eu-central-1"
  6702. // @enum ResourceRecordSetRegion
  6703. ResourceRecordSetRegionApSoutheast1 = "ap-southeast-1"
  6704. // @enum ResourceRecordSetRegion
  6705. ResourceRecordSetRegionApSoutheast2 = "ap-southeast-2"
  6706. // @enum ResourceRecordSetRegion
  6707. ResourceRecordSetRegionApNortheast1 = "ap-northeast-1"
  6708. // @enum ResourceRecordSetRegion
  6709. ResourceRecordSetRegionApNortheast2 = "ap-northeast-2"
  6710. // @enum ResourceRecordSetRegion
  6711. ResourceRecordSetRegionSaEast1 = "sa-east-1"
  6712. // @enum ResourceRecordSetRegion
  6713. ResourceRecordSetRegionCnNorth1 = "cn-north-1"
  6714. // @enum ResourceRecordSetRegion
  6715. ResourceRecordSetRegionApSouth1 = "ap-south-1"
  6716. )
  6717. const (
  6718. // @enum Statistic
  6719. StatisticAverage = "Average"
  6720. // @enum Statistic
  6721. StatisticSum = "Sum"
  6722. // @enum Statistic
  6723. StatisticSampleCount = "SampleCount"
  6724. // @enum Statistic
  6725. StatisticMaximum = "Maximum"
  6726. // @enum Statistic
  6727. StatisticMinimum = "Minimum"
  6728. )
  6729. const (
  6730. // @enum TagResourceType
  6731. TagResourceTypeHealthcheck = "healthcheck"
  6732. // @enum TagResourceType
  6733. TagResourceTypeHostedzone = "hostedzone"
  6734. )
  6735. const (
  6736. // @enum VPCRegion
  6737. VPCRegionUsEast1 = "us-east-1"
  6738. // @enum VPCRegion
  6739. VPCRegionUsWest1 = "us-west-1"
  6740. // @enum VPCRegion
  6741. VPCRegionUsWest2 = "us-west-2"
  6742. // @enum VPCRegion
  6743. VPCRegionEuWest1 = "eu-west-1"
  6744. // @enum VPCRegion
  6745. VPCRegionEuCentral1 = "eu-central-1"
  6746. // @enum VPCRegion
  6747. VPCRegionApSoutheast1 = "ap-southeast-1"
  6748. // @enum VPCRegion
  6749. VPCRegionApSoutheast2 = "ap-southeast-2"
  6750. // @enum VPCRegion
  6751. VPCRegionApSouth1 = "ap-south-1"
  6752. // @enum VPCRegion
  6753. VPCRegionApNortheast1 = "ap-northeast-1"
  6754. // @enum VPCRegion
  6755. VPCRegionApNortheast2 = "ap-northeast-2"
  6756. // @enum VPCRegion
  6757. VPCRegionSaEast1 = "sa-east-1"
  6758. // @enum VPCRegion
  6759. VPCRegionCnNorth1 = "cn-north-1"
  6760. )