| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830 |
- // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
- // Package route53 provides a client for Amazon Route 53.
- package route53
- import (
- "fmt"
- "time"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/request"
- )
- const opAssociateVPCWithHostedZone = "AssociateVPCWithHostedZone"
- // AssociateVPCWithHostedZoneRequest generates a "aws/request.Request" representing the
- // client's request for the AssociateVPCWithHostedZone operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the AssociateVPCWithHostedZone method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the AssociateVPCWithHostedZoneRequest method.
- // req, resp := client.AssociateVPCWithHostedZoneRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) AssociateVPCWithHostedZoneRequest(input *AssociateVPCWithHostedZoneInput) (req *request.Request, output *AssociateVPCWithHostedZoneOutput) {
- op := &request.Operation{
- Name: opAssociateVPCWithHostedZone,
- HTTPMethod: "POST",
- HTTPPath: "/2013-04-01/hostedzone/{Id}/associatevpc",
- }
- if input == nil {
- input = &AssociateVPCWithHostedZoneInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AssociateVPCWithHostedZoneOutput{}
- req.Data = output
- return
- }
- // This action associates a VPC with an hosted zone.
- //
- // To associate a VPC with an hosted zone, send a POST request to the /Route
- // 53 API version/hostedzone/hosted zone ID/associatevpc resource. The request
- // body must include a document with a AssociateVPCWithHostedZoneRequest element.
- // The response returns the AssociateVPCWithHostedZoneResponse element that
- // contains ChangeInfo for you to track the progress of the AssociateVPCWithHostedZoneRequest
- // you made. See GetChange operation for how to track the progress of your change.
- func (c *Route53) AssociateVPCWithHostedZone(input *AssociateVPCWithHostedZoneInput) (*AssociateVPCWithHostedZoneOutput, error) {
- req, out := c.AssociateVPCWithHostedZoneRequest(input)
- err := req.Send()
- return out, err
- }
- const opChangeResourceRecordSets = "ChangeResourceRecordSets"
- // ChangeResourceRecordSetsRequest generates a "aws/request.Request" representing the
- // client's request for the ChangeResourceRecordSets operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ChangeResourceRecordSets method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ChangeResourceRecordSetsRequest method.
- // req, resp := client.ChangeResourceRecordSetsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) ChangeResourceRecordSetsRequest(input *ChangeResourceRecordSetsInput) (req *request.Request, output *ChangeResourceRecordSetsOutput) {
- op := &request.Operation{
- Name: opChangeResourceRecordSets,
- HTTPMethod: "POST",
- HTTPPath: "/2013-04-01/hostedzone/{Id}/rrset/",
- }
- if input == nil {
- input = &ChangeResourceRecordSetsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ChangeResourceRecordSetsOutput{}
- req.Data = output
- return
- }
- // Use this action to create or change your authoritative DNS information. To
- // use this action, send a POST request to the /Route 53 API version/hostedzone/hosted
- // Zone ID/rrset resource. The request body must include a document with a ChangeResourceRecordSetsRequest
- // element.
- //
- // Changes are a list of change items and are considered transactional. For
- // more information on transactional changes, also known as change batches,
- // see POST ChangeResourceRecordSets (http://docs.aws.amazon.com/Route53/latest/APIReference/API_ChangeResourceRecordSets.html)
- // in the Amazon Route 53 API Reference.
- //
- // Due to the nature of transactional changes, you cannot delete the same resource
- // record set more than once in a single change batch. If you attempt to delete
- // the same change batch more than once, Amazon Route 53 returns an InvalidChangeBatch
- // error. In response to a ChangeResourceRecordSets request, your DNS data is
- // changed on all Amazon Route 53 DNS servers. Initially, the status of a change
- // is PENDING. This means the change has not yet propagated to all the authoritative
- // Amazon Route 53 DNS servers. When the change is propagated to all hosts,
- // the change returns a status of INSYNC.
- //
- // Note the following limitations on a ChangeResourceRecordSets request:
- //
- // A request cannot contain more than 100 Change elements. A request cannot
- // contain more than 1000 ResourceRecord elements. The sum of the number of
- // characters (including spaces) in all Value elements in a request cannot exceed
- // 32,000 characters.
- func (c *Route53) ChangeResourceRecordSets(input *ChangeResourceRecordSetsInput) (*ChangeResourceRecordSetsOutput, error) {
- req, out := c.ChangeResourceRecordSetsRequest(input)
- err := req.Send()
- return out, err
- }
- const opChangeTagsForResource = "ChangeTagsForResource"
- // ChangeTagsForResourceRequest generates a "aws/request.Request" representing the
- // client's request for the ChangeTagsForResource operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ChangeTagsForResource method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ChangeTagsForResourceRequest method.
- // req, resp := client.ChangeTagsForResourceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) ChangeTagsForResourceRequest(input *ChangeTagsForResourceInput) (req *request.Request, output *ChangeTagsForResourceOutput) {
- op := &request.Operation{
- Name: opChangeTagsForResource,
- HTTPMethod: "POST",
- HTTPPath: "/2013-04-01/tags/{ResourceType}/{ResourceId}",
- }
- if input == nil {
- input = &ChangeTagsForResourceInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ChangeTagsForResourceOutput{}
- req.Data = output
- return
- }
- func (c *Route53) ChangeTagsForResource(input *ChangeTagsForResourceInput) (*ChangeTagsForResourceOutput, error) {
- req, out := c.ChangeTagsForResourceRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateHealthCheck = "CreateHealthCheck"
- // CreateHealthCheckRequest generates a "aws/request.Request" representing the
- // client's request for the CreateHealthCheck operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateHealthCheck method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateHealthCheckRequest method.
- // req, resp := client.CreateHealthCheckRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) CreateHealthCheckRequest(input *CreateHealthCheckInput) (req *request.Request, output *CreateHealthCheckOutput) {
- op := &request.Operation{
- Name: opCreateHealthCheck,
- HTTPMethod: "POST",
- HTTPPath: "/2013-04-01/healthcheck",
- }
- if input == nil {
- input = &CreateHealthCheckInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateHealthCheckOutput{}
- req.Data = output
- return
- }
- // This action creates a new health check.
- //
- // To create a new health check, send a POST request to the /Route 53 API version/healthcheck
- // resource. The request body must include a document with a CreateHealthCheckRequest
- // element. The response returns the CreateHealthCheckResponse element that
- // contains metadata about the health check.
- func (c *Route53) CreateHealthCheck(input *CreateHealthCheckInput) (*CreateHealthCheckOutput, error) {
- req, out := c.CreateHealthCheckRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateHostedZone = "CreateHostedZone"
- // CreateHostedZoneRequest generates a "aws/request.Request" representing the
- // client's request for the CreateHostedZone operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateHostedZone method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateHostedZoneRequest method.
- // req, resp := client.CreateHostedZoneRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) CreateHostedZoneRequest(input *CreateHostedZoneInput) (req *request.Request, output *CreateHostedZoneOutput) {
- op := &request.Operation{
- Name: opCreateHostedZone,
- HTTPMethod: "POST",
- HTTPPath: "/2013-04-01/hostedzone",
- }
- if input == nil {
- input = &CreateHostedZoneInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateHostedZoneOutput{}
- req.Data = output
- return
- }
- // This action creates a new hosted zone.
- //
- // To create a new hosted zone, send a POST request to the /Route 53 API version/hostedzone
- // resource. The request body must include a document with a CreateHostedZoneRequest
- // element. The response returns the CreateHostedZoneResponse element that contains
- // metadata about the hosted zone.
- //
- // Amazon Route 53 automatically creates a default SOA record and four NS records
- // for the zone. The NS records in the hosted zone are the name servers you
- // give your registrar to delegate your domain to. For more information about
- // SOA and NS records, see NS and SOA Records that Amazon Route 53 Creates for
- // a Hosted Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/SOA-NSrecords.html)
- // in the Amazon Route 53 Developer Guide.
- //
- // When you create a zone, its initial status is PENDING. This means that it
- // is not yet available on all DNS servers. The status of the zone changes to
- // INSYNC when the NS and SOA records are available on all Amazon Route 53 DNS
- // servers.
- //
- // When trying to create a hosted zone using a reusable delegation set, you
- // could specify an optional DelegationSetId, and Route53 would assign those
- // 4 NS records for the zone, instead of alloting a new one.
- func (c *Route53) CreateHostedZone(input *CreateHostedZoneInput) (*CreateHostedZoneOutput, error) {
- req, out := c.CreateHostedZoneRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateReusableDelegationSet = "CreateReusableDelegationSet"
- // CreateReusableDelegationSetRequest generates a "aws/request.Request" representing the
- // client's request for the CreateReusableDelegationSet operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateReusableDelegationSet method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateReusableDelegationSetRequest method.
- // req, resp := client.CreateReusableDelegationSetRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) CreateReusableDelegationSetRequest(input *CreateReusableDelegationSetInput) (req *request.Request, output *CreateReusableDelegationSetOutput) {
- op := &request.Operation{
- Name: opCreateReusableDelegationSet,
- HTTPMethod: "POST",
- HTTPPath: "/2013-04-01/delegationset",
- }
- if input == nil {
- input = &CreateReusableDelegationSetInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateReusableDelegationSetOutput{}
- req.Data = output
- return
- }
- // This action creates a reusable delegationSet.
- //
- // To create a new reusable delegationSet, send a POST request to the /Route
- // 53 API version/delegationset resource. The request body must include a document
- // with a CreateReusableDelegationSetRequest element. The response returns the
- // CreateReusableDelegationSetResponse element that contains metadata about
- // the delegationSet.
- //
- // If the optional parameter HostedZoneId is specified, it marks the delegationSet
- // associated with that particular hosted zone as reusable.
- func (c *Route53) CreateReusableDelegationSet(input *CreateReusableDelegationSetInput) (*CreateReusableDelegationSetOutput, error) {
- req, out := c.CreateReusableDelegationSetRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateTrafficPolicy = "CreateTrafficPolicy"
- // CreateTrafficPolicyRequest generates a "aws/request.Request" representing the
- // client's request for the CreateTrafficPolicy operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateTrafficPolicy method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateTrafficPolicyRequest method.
- // req, resp := client.CreateTrafficPolicyRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) CreateTrafficPolicyRequest(input *CreateTrafficPolicyInput) (req *request.Request, output *CreateTrafficPolicyOutput) {
- op := &request.Operation{
- Name: opCreateTrafficPolicy,
- HTTPMethod: "POST",
- HTTPPath: "/2013-04-01/trafficpolicy",
- }
- if input == nil {
- input = &CreateTrafficPolicyInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateTrafficPolicyOutput{}
- req.Data = output
- return
- }
- // Creates a traffic policy, which you use to create multiple DNS resource record
- // sets for one domain name (such as example.com) or one subdomain name (such
- // as www.example.com).
- //
- // To create a traffic policy, send a POST request to the /Route 53 API version/trafficpolicy
- // resource. The request body must include a document with a CreateTrafficPolicyRequest
- // element. The response includes the CreateTrafficPolicyResponse element, which
- // contains information about the new traffic policy.
- func (c *Route53) CreateTrafficPolicy(input *CreateTrafficPolicyInput) (*CreateTrafficPolicyOutput, error) {
- req, out := c.CreateTrafficPolicyRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateTrafficPolicyInstance = "CreateTrafficPolicyInstance"
- // CreateTrafficPolicyInstanceRequest generates a "aws/request.Request" representing the
- // client's request for the CreateTrafficPolicyInstance operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateTrafficPolicyInstance method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateTrafficPolicyInstanceRequest method.
- // req, resp := client.CreateTrafficPolicyInstanceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) CreateTrafficPolicyInstanceRequest(input *CreateTrafficPolicyInstanceInput) (req *request.Request, output *CreateTrafficPolicyInstanceOutput) {
- op := &request.Operation{
- Name: opCreateTrafficPolicyInstance,
- HTTPMethod: "POST",
- HTTPPath: "/2013-04-01/trafficpolicyinstance",
- }
- if input == nil {
- input = &CreateTrafficPolicyInstanceInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateTrafficPolicyInstanceOutput{}
- req.Data = output
- return
- }
- // Creates resource record sets in a specified hosted zone based on the settings
- // in a specified traffic policy version. In addition, CreateTrafficPolicyInstance
- // associates the resource record sets with a specified domain name (such as
- // example.com) or subdomain name (such as www.example.com). Amazon Route 53
- // responds to DNS queries for the domain or subdomain name by using the resource
- // record sets that CreateTrafficPolicyInstance created.
- //
- // To create a traffic policy instance, send a POST request to the /Route 53
- // API version/trafficpolicyinstance resource. The request body must include
- // a document with a CreateTrafficPolicyRequest element. The response returns
- // the CreateTrafficPolicyInstanceResponse element, which contains information
- // about the traffic policy instance.
- func (c *Route53) CreateTrafficPolicyInstance(input *CreateTrafficPolicyInstanceInput) (*CreateTrafficPolicyInstanceOutput, error) {
- req, out := c.CreateTrafficPolicyInstanceRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateTrafficPolicyVersion = "CreateTrafficPolicyVersion"
- // CreateTrafficPolicyVersionRequest generates a "aws/request.Request" representing the
- // client's request for the CreateTrafficPolicyVersion operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateTrafficPolicyVersion method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateTrafficPolicyVersionRequest method.
- // req, resp := client.CreateTrafficPolicyVersionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) CreateTrafficPolicyVersionRequest(input *CreateTrafficPolicyVersionInput) (req *request.Request, output *CreateTrafficPolicyVersionOutput) {
- op := &request.Operation{
- Name: opCreateTrafficPolicyVersion,
- HTTPMethod: "POST",
- HTTPPath: "/2013-04-01/trafficpolicy/{Id}",
- }
- if input == nil {
- input = &CreateTrafficPolicyVersionInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateTrafficPolicyVersionOutput{}
- req.Data = output
- return
- }
- // Creates a new version of an existing traffic policy. When you create a new
- // version of a traffic policy, you specify the ID of the traffic policy that
- // you want to update and a JSON-formatted document that describes the new version.
- //
- // You use traffic policies to create multiple DNS resource record sets for
- // one domain name (such as example.com) or one subdomain name (such as www.example.com).
- //
- // To create a new version, send a POST request to the /Route 53 API version/trafficpolicy/
- // resource. The request body includes a document with a CreateTrafficPolicyVersionRequest
- // element. The response returns the CreateTrafficPolicyVersionResponse element,
- // which contains information about the new version of the traffic policy.
- func (c *Route53) CreateTrafficPolicyVersion(input *CreateTrafficPolicyVersionInput) (*CreateTrafficPolicyVersionOutput, error) {
- req, out := c.CreateTrafficPolicyVersionRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteHealthCheck = "DeleteHealthCheck"
- // DeleteHealthCheckRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteHealthCheck operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteHealthCheck method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteHealthCheckRequest method.
- // req, resp := client.DeleteHealthCheckRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) DeleteHealthCheckRequest(input *DeleteHealthCheckInput) (req *request.Request, output *DeleteHealthCheckOutput) {
- op := &request.Operation{
- Name: opDeleteHealthCheck,
- HTTPMethod: "DELETE",
- HTTPPath: "/2013-04-01/healthcheck/{HealthCheckId}",
- }
- if input == nil {
- input = &DeleteHealthCheckInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteHealthCheckOutput{}
- req.Data = output
- return
- }
- // This action deletes a health check. To delete a health check, send a DELETE
- // request to the /Route 53 API version/healthcheck/health check ID resource.
- //
- // You can delete a health check only if there are no resource record sets
- // associated with this health check. If resource record sets are associated
- // with this health check, you must disassociate them before you can delete
- // your health check. If you try to delete a health check that is associated
- // with resource record sets, Amazon Route 53 will deny your request with a
- // HealthCheckInUse error. For information about disassociating the records
- // from your health check, see ChangeResourceRecordSets.
- func (c *Route53) DeleteHealthCheck(input *DeleteHealthCheckInput) (*DeleteHealthCheckOutput, error) {
- req, out := c.DeleteHealthCheckRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteHostedZone = "DeleteHostedZone"
- // DeleteHostedZoneRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteHostedZone operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteHostedZone method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteHostedZoneRequest method.
- // req, resp := client.DeleteHostedZoneRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) DeleteHostedZoneRequest(input *DeleteHostedZoneInput) (req *request.Request, output *DeleteHostedZoneOutput) {
- op := &request.Operation{
- Name: opDeleteHostedZone,
- HTTPMethod: "DELETE",
- HTTPPath: "/2013-04-01/hostedzone/{Id}",
- }
- if input == nil {
- input = &DeleteHostedZoneInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteHostedZoneOutput{}
- req.Data = output
- return
- }
- // This action deletes a hosted zone. To delete a hosted zone, send a DELETE
- // request to the /Route 53 API version/hostedzone/hosted zone ID resource.
- //
- // You can delete a hosted zone only if there are no resource record sets other
- // than the default SOA record and NS resource record sets. If your hosted zone
- // contains other resource record sets, you must delete them before you can
- // delete your hosted zone. If you try to delete a hosted zone that contains
- // other resource record sets, Amazon Route 53 will deny your request with a
- // HostedZoneNotEmpty error. For information about deleting records from your
- // hosted zone, see ChangeResourceRecordSets.
- func (c *Route53) DeleteHostedZone(input *DeleteHostedZoneInput) (*DeleteHostedZoneOutput, error) {
- req, out := c.DeleteHostedZoneRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteReusableDelegationSet = "DeleteReusableDelegationSet"
- // DeleteReusableDelegationSetRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteReusableDelegationSet operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteReusableDelegationSet method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteReusableDelegationSetRequest method.
- // req, resp := client.DeleteReusableDelegationSetRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) DeleteReusableDelegationSetRequest(input *DeleteReusableDelegationSetInput) (req *request.Request, output *DeleteReusableDelegationSetOutput) {
- op := &request.Operation{
- Name: opDeleteReusableDelegationSet,
- HTTPMethod: "DELETE",
- HTTPPath: "/2013-04-01/delegationset/{Id}",
- }
- if input == nil {
- input = &DeleteReusableDelegationSetInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteReusableDelegationSetOutput{}
- req.Data = output
- return
- }
- // This action deletes a reusable delegation set. To delete a reusable delegation
- // set, send a DELETE request to the /Route 53 API version/delegationset/delegation
- // set ID resource.
- //
- // You can delete a reusable delegation set only if there are no associated
- // hosted zones. If your reusable delegation set contains associated hosted
- // zones, you must delete them before you can delete your reusable delegation
- // set. If you try to delete a reusable delegation set that contains associated
- // hosted zones, Amazon Route 53 will deny your request with a DelegationSetInUse
- // error.
- func (c *Route53) DeleteReusableDelegationSet(input *DeleteReusableDelegationSetInput) (*DeleteReusableDelegationSetOutput, error) {
- req, out := c.DeleteReusableDelegationSetRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteTrafficPolicy = "DeleteTrafficPolicy"
- // DeleteTrafficPolicyRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteTrafficPolicy operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteTrafficPolicy method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteTrafficPolicyRequest method.
- // req, resp := client.DeleteTrafficPolicyRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) DeleteTrafficPolicyRequest(input *DeleteTrafficPolicyInput) (req *request.Request, output *DeleteTrafficPolicyOutput) {
- op := &request.Operation{
- Name: opDeleteTrafficPolicy,
- HTTPMethod: "DELETE",
- HTTPPath: "/2013-04-01/trafficpolicy/{Id}/{Version}",
- }
- if input == nil {
- input = &DeleteTrafficPolicyInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteTrafficPolicyOutput{}
- req.Data = output
- return
- }
- // Deletes a traffic policy. To delete a traffic policy, send a DELETE request
- // to the /Route 53 API version/trafficpolicy resource.
- func (c *Route53) DeleteTrafficPolicy(input *DeleteTrafficPolicyInput) (*DeleteTrafficPolicyOutput, error) {
- req, out := c.DeleteTrafficPolicyRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteTrafficPolicyInstance = "DeleteTrafficPolicyInstance"
- // DeleteTrafficPolicyInstanceRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteTrafficPolicyInstance operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteTrafficPolicyInstance method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteTrafficPolicyInstanceRequest method.
- // req, resp := client.DeleteTrafficPolicyInstanceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) DeleteTrafficPolicyInstanceRequest(input *DeleteTrafficPolicyInstanceInput) (req *request.Request, output *DeleteTrafficPolicyInstanceOutput) {
- op := &request.Operation{
- Name: opDeleteTrafficPolicyInstance,
- HTTPMethod: "DELETE",
- HTTPPath: "/2013-04-01/trafficpolicyinstance/{Id}",
- }
- if input == nil {
- input = &DeleteTrafficPolicyInstanceInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteTrafficPolicyInstanceOutput{}
- req.Data = output
- return
- }
- // Deletes a traffic policy instance and all of the resource record sets that
- // Amazon Route 53 created when you created the instance.
- //
- // To delete a traffic policy instance, send a DELETE request to the /Route
- // 53 API version/trafficpolicy/traffic policy instance ID resource.
- //
- // When you delete a traffic policy instance, Amazon Route 53 also deletes
- // all of the resource record sets that were created when you created the traffic
- // policy instance.
- func (c *Route53) DeleteTrafficPolicyInstance(input *DeleteTrafficPolicyInstanceInput) (*DeleteTrafficPolicyInstanceOutput, error) {
- req, out := c.DeleteTrafficPolicyInstanceRequest(input)
- err := req.Send()
- return out, err
- }
- const opDisassociateVPCFromHostedZone = "DisassociateVPCFromHostedZone"
- // DisassociateVPCFromHostedZoneRequest generates a "aws/request.Request" representing the
- // client's request for the DisassociateVPCFromHostedZone operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DisassociateVPCFromHostedZone method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DisassociateVPCFromHostedZoneRequest method.
- // req, resp := client.DisassociateVPCFromHostedZoneRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) DisassociateVPCFromHostedZoneRequest(input *DisassociateVPCFromHostedZoneInput) (req *request.Request, output *DisassociateVPCFromHostedZoneOutput) {
- op := &request.Operation{
- Name: opDisassociateVPCFromHostedZone,
- HTTPMethod: "POST",
- HTTPPath: "/2013-04-01/hostedzone/{Id}/disassociatevpc",
- }
- if input == nil {
- input = &DisassociateVPCFromHostedZoneInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DisassociateVPCFromHostedZoneOutput{}
- req.Data = output
- return
- }
- // This action disassociates a VPC from an hosted zone.
- //
- // To disassociate a VPC to a hosted zone, send a POST request to the /Route
- // 53 API version/hostedzone/hosted zone ID/disassociatevpc resource. The request
- // body must include a document with a DisassociateVPCFromHostedZoneRequest
- // element. The response returns the DisassociateVPCFromHostedZoneResponse element
- // that contains ChangeInfo for you to track the progress of the DisassociateVPCFromHostedZoneRequest
- // you made. See GetChange operation for how to track the progress of your change.
- func (c *Route53) DisassociateVPCFromHostedZone(input *DisassociateVPCFromHostedZoneInput) (*DisassociateVPCFromHostedZoneOutput, error) {
- req, out := c.DisassociateVPCFromHostedZoneRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetChange = "GetChange"
- // GetChangeRequest generates a "aws/request.Request" representing the
- // client's request for the GetChange operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetChange method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetChangeRequest method.
- // req, resp := client.GetChangeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) GetChangeRequest(input *GetChangeInput) (req *request.Request, output *GetChangeOutput) {
- op := &request.Operation{
- Name: opGetChange,
- HTTPMethod: "GET",
- HTTPPath: "/2013-04-01/change/{Id}",
- }
- if input == nil {
- input = &GetChangeInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetChangeOutput{}
- req.Data = output
- return
- }
- // This action returns the current status of a change batch request. The status
- // is one of the following values:
- //
- // - PENDING indicates that the changes in this request have not replicated
- // to all Amazon Route 53 DNS servers. This is the initial status of all change
- // batch requests.
- //
- // - INSYNC indicates that the changes have replicated to all Amazon Route
- // 53 DNS servers.
- func (c *Route53) GetChange(input *GetChangeInput) (*GetChangeOutput, error) {
- req, out := c.GetChangeRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetChangeDetails = "GetChangeDetails"
- // GetChangeDetailsRequest generates a "aws/request.Request" representing the
- // client's request for the GetChangeDetails operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetChangeDetails method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetChangeDetailsRequest method.
- // req, resp := client.GetChangeDetailsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) GetChangeDetailsRequest(input *GetChangeDetailsInput) (req *request.Request, output *GetChangeDetailsOutput) {
- if c.Client.Config.Logger != nil {
- c.Client.Config.Logger.Log("This operation, GetChangeDetails, has been deprecated")
- }
- op := &request.Operation{
- Name: opGetChangeDetails,
- HTTPMethod: "GET",
- HTTPPath: "/2013-04-01/changedetails/{Id}",
- }
- if input == nil {
- input = &GetChangeDetailsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetChangeDetailsOutput{}
- req.Data = output
- return
- }
- // This action returns the status and changes of a change batch request.
- func (c *Route53) GetChangeDetails(input *GetChangeDetailsInput) (*GetChangeDetailsOutput, error) {
- req, out := c.GetChangeDetailsRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetCheckerIpRanges = "GetCheckerIpRanges"
- // GetCheckerIpRangesRequest generates a "aws/request.Request" representing the
- // client's request for the GetCheckerIpRanges operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetCheckerIpRanges method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetCheckerIpRangesRequest method.
- // req, resp := client.GetCheckerIpRangesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) GetCheckerIpRangesRequest(input *GetCheckerIpRangesInput) (req *request.Request, output *GetCheckerIpRangesOutput) {
- op := &request.Operation{
- Name: opGetCheckerIpRanges,
- HTTPMethod: "GET",
- HTTPPath: "/2013-04-01/checkeripranges",
- }
- if input == nil {
- input = &GetCheckerIpRangesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetCheckerIpRangesOutput{}
- req.Data = output
- return
- }
- // To retrieve a list of the IP ranges used by Amazon Route 53 health checkers
- // to check the health of your resources, send a GET request to the /Route 53
- // API version/checkeripranges resource. You can use these IP addresses to configure
- // router and firewall rules to allow health checkers to check the health of
- // your resources.
- func (c *Route53) GetCheckerIpRanges(input *GetCheckerIpRangesInput) (*GetCheckerIpRangesOutput, error) {
- req, out := c.GetCheckerIpRangesRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetGeoLocation = "GetGeoLocation"
- // GetGeoLocationRequest generates a "aws/request.Request" representing the
- // client's request for the GetGeoLocation operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetGeoLocation method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetGeoLocationRequest method.
- // req, resp := client.GetGeoLocationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) GetGeoLocationRequest(input *GetGeoLocationInput) (req *request.Request, output *GetGeoLocationOutput) {
- op := &request.Operation{
- Name: opGetGeoLocation,
- HTTPMethod: "GET",
- HTTPPath: "/2013-04-01/geolocation",
- }
- if input == nil {
- input = &GetGeoLocationInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetGeoLocationOutput{}
- req.Data = output
- return
- }
- // To retrieve a single geo location, send a GET request to the /Route 53 API
- // version/geolocation resource with one of these options: continentcode | countrycode
- // | countrycode and subdivisioncode.
- func (c *Route53) GetGeoLocation(input *GetGeoLocationInput) (*GetGeoLocationOutput, error) {
- req, out := c.GetGeoLocationRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetHealthCheck = "GetHealthCheck"
- // GetHealthCheckRequest generates a "aws/request.Request" representing the
- // client's request for the GetHealthCheck operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetHealthCheck method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetHealthCheckRequest method.
- // req, resp := client.GetHealthCheckRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) GetHealthCheckRequest(input *GetHealthCheckInput) (req *request.Request, output *GetHealthCheckOutput) {
- op := &request.Operation{
- Name: opGetHealthCheck,
- HTTPMethod: "GET",
- HTTPPath: "/2013-04-01/healthcheck/{HealthCheckId}",
- }
- if input == nil {
- input = &GetHealthCheckInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetHealthCheckOutput{}
- req.Data = output
- return
- }
- // To retrieve the health check, send a GET request to the /Route 53 API version/healthcheck/health
- // check ID resource.
- func (c *Route53) GetHealthCheck(input *GetHealthCheckInput) (*GetHealthCheckOutput, error) {
- req, out := c.GetHealthCheckRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetHealthCheckCount = "GetHealthCheckCount"
- // GetHealthCheckCountRequest generates a "aws/request.Request" representing the
- // client's request for the GetHealthCheckCount operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetHealthCheckCount method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetHealthCheckCountRequest method.
- // req, resp := client.GetHealthCheckCountRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) GetHealthCheckCountRequest(input *GetHealthCheckCountInput) (req *request.Request, output *GetHealthCheckCountOutput) {
- op := &request.Operation{
- Name: opGetHealthCheckCount,
- HTTPMethod: "GET",
- HTTPPath: "/2013-04-01/healthcheckcount",
- }
- if input == nil {
- input = &GetHealthCheckCountInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetHealthCheckCountOutput{}
- req.Data = output
- return
- }
- // To retrieve a count of all your health checks, send a GET request to the
- // /Route 53 API version/healthcheckcount resource.
- func (c *Route53) GetHealthCheckCount(input *GetHealthCheckCountInput) (*GetHealthCheckCountOutput, error) {
- req, out := c.GetHealthCheckCountRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetHealthCheckLastFailureReason = "GetHealthCheckLastFailureReason"
- // GetHealthCheckLastFailureReasonRequest generates a "aws/request.Request" representing the
- // client's request for the GetHealthCheckLastFailureReason operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetHealthCheckLastFailureReason method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetHealthCheckLastFailureReasonRequest method.
- // req, resp := client.GetHealthCheckLastFailureReasonRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) GetHealthCheckLastFailureReasonRequest(input *GetHealthCheckLastFailureReasonInput) (req *request.Request, output *GetHealthCheckLastFailureReasonOutput) {
- op := &request.Operation{
- Name: opGetHealthCheckLastFailureReason,
- HTTPMethod: "GET",
- HTTPPath: "/2013-04-01/healthcheck/{HealthCheckId}/lastfailurereason",
- }
- if input == nil {
- input = &GetHealthCheckLastFailureReasonInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetHealthCheckLastFailureReasonOutput{}
- req.Data = output
- return
- }
- // If you want to learn why a health check is currently failing or why it failed
- // most recently (if at all), you can get the failure reason for the most recent
- // failure. Send a GET request to the /Route 53 API version/healthcheck/health
- // check ID/lastfailurereason resource.
- func (c *Route53) GetHealthCheckLastFailureReason(input *GetHealthCheckLastFailureReasonInput) (*GetHealthCheckLastFailureReasonOutput, error) {
- req, out := c.GetHealthCheckLastFailureReasonRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetHealthCheckStatus = "GetHealthCheckStatus"
- // GetHealthCheckStatusRequest generates a "aws/request.Request" representing the
- // client's request for the GetHealthCheckStatus operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetHealthCheckStatus method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetHealthCheckStatusRequest method.
- // req, resp := client.GetHealthCheckStatusRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) GetHealthCheckStatusRequest(input *GetHealthCheckStatusInput) (req *request.Request, output *GetHealthCheckStatusOutput) {
- op := &request.Operation{
- Name: opGetHealthCheckStatus,
- HTTPMethod: "GET",
- HTTPPath: "/2013-04-01/healthcheck/{HealthCheckId}/status",
- }
- if input == nil {
- input = &GetHealthCheckStatusInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetHealthCheckStatusOutput{}
- req.Data = output
- return
- }
- // To retrieve the health check status, send a GET request to the /Route 53
- // API version/healthcheck/health check ID/status resource. You can use this
- // call to get a health check's current status.
- func (c *Route53) GetHealthCheckStatus(input *GetHealthCheckStatusInput) (*GetHealthCheckStatusOutput, error) {
- req, out := c.GetHealthCheckStatusRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetHostedZone = "GetHostedZone"
- // GetHostedZoneRequest generates a "aws/request.Request" representing the
- // client's request for the GetHostedZone operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetHostedZone method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetHostedZoneRequest method.
- // req, resp := client.GetHostedZoneRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) GetHostedZoneRequest(input *GetHostedZoneInput) (req *request.Request, output *GetHostedZoneOutput) {
- op := &request.Operation{
- Name: opGetHostedZone,
- HTTPMethod: "GET",
- HTTPPath: "/2013-04-01/hostedzone/{Id}",
- }
- if input == nil {
- input = &GetHostedZoneInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetHostedZoneOutput{}
- req.Data = output
- return
- }
- // To retrieve the delegation set for a hosted zone, send a GET request to the
- // /Route 53 API version/hostedzone/hosted zone ID resource. The delegation
- // set is the four Amazon Route 53 name servers that were assigned to the hosted
- // zone when you created it.
- func (c *Route53) GetHostedZone(input *GetHostedZoneInput) (*GetHostedZoneOutput, error) {
- req, out := c.GetHostedZoneRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetHostedZoneCount = "GetHostedZoneCount"
- // GetHostedZoneCountRequest generates a "aws/request.Request" representing the
- // client's request for the GetHostedZoneCount operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetHostedZoneCount method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetHostedZoneCountRequest method.
- // req, resp := client.GetHostedZoneCountRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) GetHostedZoneCountRequest(input *GetHostedZoneCountInput) (req *request.Request, output *GetHostedZoneCountOutput) {
- op := &request.Operation{
- Name: opGetHostedZoneCount,
- HTTPMethod: "GET",
- HTTPPath: "/2013-04-01/hostedzonecount",
- }
- if input == nil {
- input = &GetHostedZoneCountInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetHostedZoneCountOutput{}
- req.Data = output
- return
- }
- // To retrieve a count of all your hosted zones, send a GET request to the /Route
- // 53 API version/hostedzonecount resource.
- func (c *Route53) GetHostedZoneCount(input *GetHostedZoneCountInput) (*GetHostedZoneCountOutput, error) {
- req, out := c.GetHostedZoneCountRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetReusableDelegationSet = "GetReusableDelegationSet"
- // GetReusableDelegationSetRequest generates a "aws/request.Request" representing the
- // client's request for the GetReusableDelegationSet operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetReusableDelegationSet method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetReusableDelegationSetRequest method.
- // req, resp := client.GetReusableDelegationSetRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) GetReusableDelegationSetRequest(input *GetReusableDelegationSetInput) (req *request.Request, output *GetReusableDelegationSetOutput) {
- op := &request.Operation{
- Name: opGetReusableDelegationSet,
- HTTPMethod: "GET",
- HTTPPath: "/2013-04-01/delegationset/{Id}",
- }
- if input == nil {
- input = &GetReusableDelegationSetInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetReusableDelegationSetOutput{}
- req.Data = output
- return
- }
- // To retrieve the reusable delegation set, send a GET request to the /Route
- // 53 API version/delegationset/delegation set ID resource.
- func (c *Route53) GetReusableDelegationSet(input *GetReusableDelegationSetInput) (*GetReusableDelegationSetOutput, error) {
- req, out := c.GetReusableDelegationSetRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetTrafficPolicy = "GetTrafficPolicy"
- // GetTrafficPolicyRequest generates a "aws/request.Request" representing the
- // client's request for the GetTrafficPolicy operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetTrafficPolicy method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetTrafficPolicyRequest method.
- // req, resp := client.GetTrafficPolicyRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) GetTrafficPolicyRequest(input *GetTrafficPolicyInput) (req *request.Request, output *GetTrafficPolicyOutput) {
- op := &request.Operation{
- Name: opGetTrafficPolicy,
- HTTPMethod: "GET",
- HTTPPath: "/2013-04-01/trafficpolicy/{Id}/{Version}",
- }
- if input == nil {
- input = &GetTrafficPolicyInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetTrafficPolicyOutput{}
- req.Data = output
- return
- }
- // Gets information about a specific traffic policy version. To get the information,
- // send a GET request to the /Route 53 API version/trafficpolicy resource.
- func (c *Route53) GetTrafficPolicy(input *GetTrafficPolicyInput) (*GetTrafficPolicyOutput, error) {
- req, out := c.GetTrafficPolicyRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetTrafficPolicyInstance = "GetTrafficPolicyInstance"
- // GetTrafficPolicyInstanceRequest generates a "aws/request.Request" representing the
- // client's request for the GetTrafficPolicyInstance operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetTrafficPolicyInstance method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetTrafficPolicyInstanceRequest method.
- // req, resp := client.GetTrafficPolicyInstanceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) GetTrafficPolicyInstanceRequest(input *GetTrafficPolicyInstanceInput) (req *request.Request, output *GetTrafficPolicyInstanceOutput) {
- op := &request.Operation{
- Name: opGetTrafficPolicyInstance,
- HTTPMethod: "GET",
- HTTPPath: "/2013-04-01/trafficpolicyinstance/{Id}",
- }
- if input == nil {
- input = &GetTrafficPolicyInstanceInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetTrafficPolicyInstanceOutput{}
- req.Data = output
- return
- }
- // Gets information about a specified traffic policy instance.
- //
- // To get information about the traffic policy instance, send a GET request
- // to the /Route 53 API version/trafficpolicyinstance resource.
- //
- // After you submit a CreateTrafficPolicyInstance or an UpdateTrafficPolicyInstance
- // request, there's a brief delay while Amazon Route 53 creates the resource
- // record sets that are specified in the traffic policy definition. For more
- // information, see the State response element.
- func (c *Route53) GetTrafficPolicyInstance(input *GetTrafficPolicyInstanceInput) (*GetTrafficPolicyInstanceOutput, error) {
- req, out := c.GetTrafficPolicyInstanceRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetTrafficPolicyInstanceCount = "GetTrafficPolicyInstanceCount"
- // GetTrafficPolicyInstanceCountRequest generates a "aws/request.Request" representing the
- // client's request for the GetTrafficPolicyInstanceCount operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetTrafficPolicyInstanceCount method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetTrafficPolicyInstanceCountRequest method.
- // req, resp := client.GetTrafficPolicyInstanceCountRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) GetTrafficPolicyInstanceCountRequest(input *GetTrafficPolicyInstanceCountInput) (req *request.Request, output *GetTrafficPolicyInstanceCountOutput) {
- op := &request.Operation{
- Name: opGetTrafficPolicyInstanceCount,
- HTTPMethod: "GET",
- HTTPPath: "/2013-04-01/trafficpolicyinstancecount",
- }
- if input == nil {
- input = &GetTrafficPolicyInstanceCountInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetTrafficPolicyInstanceCountOutput{}
- req.Data = output
- return
- }
- // Gets the number of traffic policy instances that are associated with the
- // current AWS account.
- //
- // To get the number of traffic policy instances, send a GET request to the
- // /Route 53 API version/trafficpolicyinstancecount resource.
- func (c *Route53) GetTrafficPolicyInstanceCount(input *GetTrafficPolicyInstanceCountInput) (*GetTrafficPolicyInstanceCountOutput, error) {
- req, out := c.GetTrafficPolicyInstanceCountRequest(input)
- err := req.Send()
- return out, err
- }
- const opListChangeBatchesByHostedZone = "ListChangeBatchesByHostedZone"
- // ListChangeBatchesByHostedZoneRequest generates a "aws/request.Request" representing the
- // client's request for the ListChangeBatchesByHostedZone operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListChangeBatchesByHostedZone method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListChangeBatchesByHostedZoneRequest method.
- // req, resp := client.ListChangeBatchesByHostedZoneRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) ListChangeBatchesByHostedZoneRequest(input *ListChangeBatchesByHostedZoneInput) (req *request.Request, output *ListChangeBatchesByHostedZoneOutput) {
- if c.Client.Config.Logger != nil {
- c.Client.Config.Logger.Log("This operation, ListChangeBatchesByHostedZone, has been deprecated")
- }
- op := &request.Operation{
- Name: opListChangeBatchesByHostedZone,
- HTTPMethod: "GET",
- HTTPPath: "/2013-04-01/hostedzone/{Id}/changes",
- }
- if input == nil {
- input = &ListChangeBatchesByHostedZoneInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListChangeBatchesByHostedZoneOutput{}
- req.Data = output
- return
- }
- // This action gets the list of ChangeBatches in a given time period for a given
- // hosted zone.
- func (c *Route53) ListChangeBatchesByHostedZone(input *ListChangeBatchesByHostedZoneInput) (*ListChangeBatchesByHostedZoneOutput, error) {
- req, out := c.ListChangeBatchesByHostedZoneRequest(input)
- err := req.Send()
- return out, err
- }
- const opListChangeBatchesByRRSet = "ListChangeBatchesByRRSet"
- // ListChangeBatchesByRRSetRequest generates a "aws/request.Request" representing the
- // client's request for the ListChangeBatchesByRRSet operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListChangeBatchesByRRSet method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListChangeBatchesByRRSetRequest method.
- // req, resp := client.ListChangeBatchesByRRSetRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) ListChangeBatchesByRRSetRequest(input *ListChangeBatchesByRRSetInput) (req *request.Request, output *ListChangeBatchesByRRSetOutput) {
- if c.Client.Config.Logger != nil {
- c.Client.Config.Logger.Log("This operation, ListChangeBatchesByRRSet, has been deprecated")
- }
- op := &request.Operation{
- Name: opListChangeBatchesByRRSet,
- HTTPMethod: "GET",
- HTTPPath: "/2013-04-01/hostedzone/{Id}/rrsChanges",
- }
- if input == nil {
- input = &ListChangeBatchesByRRSetInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListChangeBatchesByRRSetOutput{}
- req.Data = output
- return
- }
- // This action gets the list of ChangeBatches in a given time period for a given
- // hosted zone and RRSet.
- func (c *Route53) ListChangeBatchesByRRSet(input *ListChangeBatchesByRRSetInput) (*ListChangeBatchesByRRSetOutput, error) {
- req, out := c.ListChangeBatchesByRRSetRequest(input)
- err := req.Send()
- return out, err
- }
- const opListGeoLocations = "ListGeoLocations"
- // ListGeoLocationsRequest generates a "aws/request.Request" representing the
- // client's request for the ListGeoLocations operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListGeoLocations method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListGeoLocationsRequest method.
- // req, resp := client.ListGeoLocationsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) ListGeoLocationsRequest(input *ListGeoLocationsInput) (req *request.Request, output *ListGeoLocationsOutput) {
- op := &request.Operation{
- Name: opListGeoLocations,
- HTTPMethod: "GET",
- HTTPPath: "/2013-04-01/geolocations",
- }
- if input == nil {
- input = &ListGeoLocationsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListGeoLocationsOutput{}
- req.Data = output
- return
- }
- // To retrieve a list of supported geo locations, send a GET request to the
- // /Route 53 API version/geolocations resource. The response to this request
- // includes a GeoLocationDetailsList element with zero, one, or multiple GeoLocationDetails
- // child elements. The list is sorted by country code, and then subdivision
- // code, followed by continents at the end of the list.
- //
- // By default, the list of geo locations is displayed on a single page. You
- // can control the length of the page that is displayed by using the MaxItems
- // parameter. If the list is truncated, IsTruncated will be set to true and
- // a combination of NextContinentCode, NextCountryCode, NextSubdivisionCode
- // will be populated. You can pass these as parameters to StartContinentCode,
- // StartCountryCode, StartSubdivisionCode to control the geo location that the
- // list begins with.
- func (c *Route53) ListGeoLocations(input *ListGeoLocationsInput) (*ListGeoLocationsOutput, error) {
- req, out := c.ListGeoLocationsRequest(input)
- err := req.Send()
- return out, err
- }
- const opListHealthChecks = "ListHealthChecks"
- // ListHealthChecksRequest generates a "aws/request.Request" representing the
- // client's request for the ListHealthChecks operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListHealthChecks method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListHealthChecksRequest method.
- // req, resp := client.ListHealthChecksRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) ListHealthChecksRequest(input *ListHealthChecksInput) (req *request.Request, output *ListHealthChecksOutput) {
- op := &request.Operation{
- Name: opListHealthChecks,
- HTTPMethod: "GET",
- HTTPPath: "/2013-04-01/healthcheck",
- Paginator: &request.Paginator{
- InputTokens: []string{"Marker"},
- OutputTokens: []string{"NextMarker"},
- LimitToken: "MaxItems",
- TruncationToken: "IsTruncated",
- },
- }
- if input == nil {
- input = &ListHealthChecksInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListHealthChecksOutput{}
- req.Data = output
- return
- }
- // To retrieve a list of your health checks, send a GET request to the /Route
- // 53 API version/healthcheck resource. The response to this request includes
- // a HealthChecks element with zero, one, or multiple HealthCheck child elements.
- // By default, the list of health checks is displayed on a single page. You
- // can control the length of the page that is displayed by using the MaxItems
- // parameter. You can use the Marker parameter to control the health check that
- // the list begins with.
- //
- // Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to
- // a value greater than 100, Amazon Route 53 returns only the first 100.
- func (c *Route53) ListHealthChecks(input *ListHealthChecksInput) (*ListHealthChecksOutput, error) {
- req, out := c.ListHealthChecksRequest(input)
- err := req.Send()
- return out, err
- }
- // ListHealthChecksPages iterates over the pages of a ListHealthChecks operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListHealthChecks method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListHealthChecks operation.
- // pageNum := 0
- // err := client.ListHealthChecksPages(params,
- // func(page *ListHealthChecksOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *Route53) ListHealthChecksPages(input *ListHealthChecksInput, fn func(p *ListHealthChecksOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.ListHealthChecksRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*ListHealthChecksOutput), lastPage)
- })
- }
- const opListHostedZones = "ListHostedZones"
- // ListHostedZonesRequest generates a "aws/request.Request" representing the
- // client's request for the ListHostedZones operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListHostedZones method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListHostedZonesRequest method.
- // req, resp := client.ListHostedZonesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) ListHostedZonesRequest(input *ListHostedZonesInput) (req *request.Request, output *ListHostedZonesOutput) {
- op := &request.Operation{
- Name: opListHostedZones,
- HTTPMethod: "GET",
- HTTPPath: "/2013-04-01/hostedzone",
- Paginator: &request.Paginator{
- InputTokens: []string{"Marker"},
- OutputTokens: []string{"NextMarker"},
- LimitToken: "MaxItems",
- TruncationToken: "IsTruncated",
- },
- }
- if input == nil {
- input = &ListHostedZonesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListHostedZonesOutput{}
- req.Data = output
- return
- }
- // To retrieve a list of your hosted zones, send a GET request to the /Route
- // 53 API version/hostedzone resource. The response to this request includes
- // a HostedZones element with zero, one, or multiple HostedZone child elements.
- // By default, the list of hosted zones is displayed on a single page. You can
- // control the length of the page that is displayed by using the MaxItems parameter.
- // You can use the Marker parameter to control the hosted zone that the list
- // begins with.
- //
- // Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to
- // a value greater than 100, Amazon Route 53 returns only the first 100.
- func (c *Route53) ListHostedZones(input *ListHostedZonesInput) (*ListHostedZonesOutput, error) {
- req, out := c.ListHostedZonesRequest(input)
- err := req.Send()
- return out, err
- }
- // ListHostedZonesPages iterates over the pages of a ListHostedZones operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListHostedZones method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListHostedZones operation.
- // pageNum := 0
- // err := client.ListHostedZonesPages(params,
- // func(page *ListHostedZonesOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *Route53) ListHostedZonesPages(input *ListHostedZonesInput, fn func(p *ListHostedZonesOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.ListHostedZonesRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*ListHostedZonesOutput), lastPage)
- })
- }
- const opListHostedZonesByName = "ListHostedZonesByName"
- // ListHostedZonesByNameRequest generates a "aws/request.Request" representing the
- // client's request for the ListHostedZonesByName operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListHostedZonesByName method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListHostedZonesByNameRequest method.
- // req, resp := client.ListHostedZonesByNameRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) ListHostedZonesByNameRequest(input *ListHostedZonesByNameInput) (req *request.Request, output *ListHostedZonesByNameOutput) {
- op := &request.Operation{
- Name: opListHostedZonesByName,
- HTTPMethod: "GET",
- HTTPPath: "/2013-04-01/hostedzonesbyname",
- }
- if input == nil {
- input = &ListHostedZonesByNameInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListHostedZonesByNameOutput{}
- req.Data = output
- return
- }
- // To retrieve a list of your hosted zones in lexicographic order, send a GET
- // request to the /Route 53 API version/hostedzonesbyname resource. The response
- // to this request includes a HostedZones element with zero or more HostedZone
- // child elements lexicographically ordered by DNS name. By default, the list
- // of hosted zones is displayed on a single page. You can control the length
- // of the page that is displayed by using the MaxItems parameter. You can use
- // the DNSName and HostedZoneId parameters to control the hosted zone that the
- // list begins with.
- //
- // Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to
- // a value greater than 100, Amazon Route 53 returns only the first 100.
- func (c *Route53) ListHostedZonesByName(input *ListHostedZonesByNameInput) (*ListHostedZonesByNameOutput, error) {
- req, out := c.ListHostedZonesByNameRequest(input)
- err := req.Send()
- return out, err
- }
- const opListResourceRecordSets = "ListResourceRecordSets"
- // ListResourceRecordSetsRequest generates a "aws/request.Request" representing the
- // client's request for the ListResourceRecordSets operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListResourceRecordSets method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListResourceRecordSetsRequest method.
- // req, resp := client.ListResourceRecordSetsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) ListResourceRecordSetsRequest(input *ListResourceRecordSetsInput) (req *request.Request, output *ListResourceRecordSetsOutput) {
- op := &request.Operation{
- Name: opListResourceRecordSets,
- HTTPMethod: "GET",
- HTTPPath: "/2013-04-01/hostedzone/{Id}/rrset",
- Paginator: &request.Paginator{
- InputTokens: []string{"StartRecordName", "StartRecordType", "StartRecordIdentifier"},
- OutputTokens: []string{"NextRecordName", "NextRecordType", "NextRecordIdentifier"},
- LimitToken: "MaxItems",
- TruncationToken: "IsTruncated",
- },
- }
- if input == nil {
- input = &ListResourceRecordSetsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListResourceRecordSetsOutput{}
- req.Data = output
- return
- }
- // List the resource record sets in a specified hosted zone. Send a GET request
- // to the 2013-04-01/hostedzone/hosted zone ID/rrset resource.
- //
- // ListResourceRecordSets returns up to 100 resource record sets at a time
- // in ASCII order, beginning at a position specified by the name and type elements.
- // The action sorts results first by DNS name with the labels reversed, for
- // example:
- //
- // com.example.www.
- //
- // Note the trailing dot, which can change the sort order in some circumstances.
- // When multiple records have the same DNS name, the action sorts results by
- // the record type.
- //
- // You can use the name and type elements to adjust the beginning position
- // of the list of resource record sets returned:
- //
- // If you do not specify Name or Type: The results begin with the first resource
- // record set that the hosted zone contains. If you specify Name but not Type:
- // The results begin with the first resource record set in the list whose name
- // is greater than or equal to Name. If you specify Type but not Name: Amazon
- // Route 53 returns the InvalidInput error. If you specify both Name and Type:
- // The results begin with the first resource record set in the list whose name
- // is greater than or equal to Name, and whose type is greater than or equal
- // to Type. This action returns the most current version of the records. This
- // includes records that are PENDING, and that are not yet available on all
- // Amazon Route 53 DNS servers.
- //
- // To ensure that you get an accurate listing of the resource record sets for
- // a hosted zone at a point in time, do not submit a ChangeResourceRecordSets
- // request while you are paging through the results of a ListResourceRecordSets
- // request. If you do, some pages may display results without the latest changes
- // while other pages display results with the latest changes.
- func (c *Route53) ListResourceRecordSets(input *ListResourceRecordSetsInput) (*ListResourceRecordSetsOutput, error) {
- req, out := c.ListResourceRecordSetsRequest(input)
- err := req.Send()
- return out, err
- }
- // ListResourceRecordSetsPages iterates over the pages of a ListResourceRecordSets operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListResourceRecordSets method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListResourceRecordSets operation.
- // pageNum := 0
- // err := client.ListResourceRecordSetsPages(params,
- // func(page *ListResourceRecordSetsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *Route53) ListResourceRecordSetsPages(input *ListResourceRecordSetsInput, fn func(p *ListResourceRecordSetsOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.ListResourceRecordSetsRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*ListResourceRecordSetsOutput), lastPage)
- })
- }
- const opListReusableDelegationSets = "ListReusableDelegationSets"
- // ListReusableDelegationSetsRequest generates a "aws/request.Request" representing the
- // client's request for the ListReusableDelegationSets operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListReusableDelegationSets method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListReusableDelegationSetsRequest method.
- // req, resp := client.ListReusableDelegationSetsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) ListReusableDelegationSetsRequest(input *ListReusableDelegationSetsInput) (req *request.Request, output *ListReusableDelegationSetsOutput) {
- op := &request.Operation{
- Name: opListReusableDelegationSets,
- HTTPMethod: "GET",
- HTTPPath: "/2013-04-01/delegationset",
- }
- if input == nil {
- input = &ListReusableDelegationSetsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListReusableDelegationSetsOutput{}
- req.Data = output
- return
- }
- // To retrieve a list of your reusable delegation sets, send a GET request to
- // the /Route 53 API version/delegationset resource. The response to this request
- // includes a DelegationSets element with zero, one, or multiple DelegationSet
- // child elements. By default, the list of delegation sets is displayed on a
- // single page. You can control the length of the page that is displayed by
- // using the MaxItems parameter. You can use the Marker parameter to control
- // the delegation set that the list begins with.
- //
- // Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to
- // a value greater than 100, Amazon Route 53 returns only the first 100.
- func (c *Route53) ListReusableDelegationSets(input *ListReusableDelegationSetsInput) (*ListReusableDelegationSetsOutput, error) {
- req, out := c.ListReusableDelegationSetsRequest(input)
- err := req.Send()
- return out, err
- }
- const opListTagsForResource = "ListTagsForResource"
- // ListTagsForResourceRequest generates a "aws/request.Request" representing the
- // client's request for the ListTagsForResource operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListTagsForResource method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListTagsForResourceRequest method.
- // req, resp := client.ListTagsForResourceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
- op := &request.Operation{
- Name: opListTagsForResource,
- HTTPMethod: "GET",
- HTTPPath: "/2013-04-01/tags/{ResourceType}/{ResourceId}",
- }
- if input == nil {
- input = &ListTagsForResourceInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListTagsForResourceOutput{}
- req.Data = output
- return
- }
- func (c *Route53) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
- req, out := c.ListTagsForResourceRequest(input)
- err := req.Send()
- return out, err
- }
- const opListTagsForResources = "ListTagsForResources"
- // ListTagsForResourcesRequest generates a "aws/request.Request" representing the
- // client's request for the ListTagsForResources operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListTagsForResources method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListTagsForResourcesRequest method.
- // req, resp := client.ListTagsForResourcesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) ListTagsForResourcesRequest(input *ListTagsForResourcesInput) (req *request.Request, output *ListTagsForResourcesOutput) {
- op := &request.Operation{
- Name: opListTagsForResources,
- HTTPMethod: "POST",
- HTTPPath: "/2013-04-01/tags/{ResourceType}",
- }
- if input == nil {
- input = &ListTagsForResourcesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListTagsForResourcesOutput{}
- req.Data = output
- return
- }
- func (c *Route53) ListTagsForResources(input *ListTagsForResourcesInput) (*ListTagsForResourcesOutput, error) {
- req, out := c.ListTagsForResourcesRequest(input)
- err := req.Send()
- return out, err
- }
- const opListTrafficPolicies = "ListTrafficPolicies"
- // ListTrafficPoliciesRequest generates a "aws/request.Request" representing the
- // client's request for the ListTrafficPolicies operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListTrafficPolicies method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListTrafficPoliciesRequest method.
- // req, resp := client.ListTrafficPoliciesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) ListTrafficPoliciesRequest(input *ListTrafficPoliciesInput) (req *request.Request, output *ListTrafficPoliciesOutput) {
- op := &request.Operation{
- Name: opListTrafficPolicies,
- HTTPMethod: "GET",
- HTTPPath: "/2013-04-01/trafficpolicies",
- }
- if input == nil {
- input = &ListTrafficPoliciesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListTrafficPoliciesOutput{}
- req.Data = output
- return
- }
- // Gets information about the latest version for every traffic policy that is
- // associated with the current AWS account. To get the information, send a GET
- // request to the /Route 53 API version/trafficpolicy resource.
- //
- // Amazon Route 53 returns a maximum of 100 items in each response. If you
- // have a lot of traffic policies, you can use the maxitems parameter to list
- // them in groups of up to 100.
- //
- // The response includes three values that help you navigate from one group
- // of maxitems traffic policies to the next:
- //
- // IsTruncated If the value of IsTruncated in the response is true, there
- // are more traffic policies associated with the current AWS account.
- //
- // If IsTruncated is false, this response includes the last traffic policy
- // that is associated with the current account.
- //
- // TrafficPolicyIdMarker If IsTruncated is true, TrafficPolicyIdMarker is the
- // ID of the first traffic policy in the next group of MaxItems traffic policies.
- // If you want to list more traffic policies, make another call to ListTrafficPolicies,
- // and specify the value of the TrafficPolicyIdMarker element from the response
- // in the TrafficPolicyIdMarker request parameter.
- //
- // If IsTruncated is false, the TrafficPolicyIdMarker element is omitted from
- // the response.
- //
- // MaxItems The value that you specified for the MaxItems parameter in the
- // request that produced the current response.
- func (c *Route53) ListTrafficPolicies(input *ListTrafficPoliciesInput) (*ListTrafficPoliciesOutput, error) {
- req, out := c.ListTrafficPoliciesRequest(input)
- err := req.Send()
- return out, err
- }
- const opListTrafficPolicyInstances = "ListTrafficPolicyInstances"
- // ListTrafficPolicyInstancesRequest generates a "aws/request.Request" representing the
- // client's request for the ListTrafficPolicyInstances operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListTrafficPolicyInstances method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListTrafficPolicyInstancesRequest method.
- // req, resp := client.ListTrafficPolicyInstancesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) ListTrafficPolicyInstancesRequest(input *ListTrafficPolicyInstancesInput) (req *request.Request, output *ListTrafficPolicyInstancesOutput) {
- op := &request.Operation{
- Name: opListTrafficPolicyInstances,
- HTTPMethod: "GET",
- HTTPPath: "/2013-04-01/trafficpolicyinstances",
- }
- if input == nil {
- input = &ListTrafficPolicyInstancesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListTrafficPolicyInstancesOutput{}
- req.Data = output
- return
- }
- // Gets information about the traffic policy instances that you created by using
- // the current AWS account.
- //
- // After you submit an UpdateTrafficPolicyInstance request, there's a brief
- // delay while Amazon Route 53 creates the resource record sets that are specified
- // in the traffic policy definition. For more information, see the State response
- // element. To get information about the traffic policy instances that are associated
- // with the current AWS account, send a GET request to the /Route 53 API version/trafficpolicyinstance
- // resource.
- //
- // Amazon Route 53 returns a maximum of 100 items in each response. If you
- // have a lot of traffic policy instances, you can use the MaxItems parameter
- // to list them in groups of up to 100.
- //
- // The response includes five values that help you navigate from one group
- // of MaxItems traffic policy instances to the next:
- //
- // IsTruncated If the value of IsTruncated in the response is true, there
- // are more traffic policy instances associated with the current AWS account.
- //
- // If IsTruncated is false, this response includes the last traffic policy
- // instance that is associated with the current account.
- //
- // MaxItems The value that you specified for the MaxItems parameter in the
- // request that produced the current response.
- //
- // HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker
- // If IsTruncated is true, these three values in the response represent the
- // first traffic policy instance in the next group of MaxItems traffic policy
- // instances. To list more traffic policy instances, make another call to ListTrafficPolicyInstances,
- // and specify these values in the corresponding request parameters.
- //
- // If IsTruncated is false, all three elements are omitted from the response.
- func (c *Route53) ListTrafficPolicyInstances(input *ListTrafficPolicyInstancesInput) (*ListTrafficPolicyInstancesOutput, error) {
- req, out := c.ListTrafficPolicyInstancesRequest(input)
- err := req.Send()
- return out, err
- }
- const opListTrafficPolicyInstancesByHostedZone = "ListTrafficPolicyInstancesByHostedZone"
- // ListTrafficPolicyInstancesByHostedZoneRequest generates a "aws/request.Request" representing the
- // client's request for the ListTrafficPolicyInstancesByHostedZone operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListTrafficPolicyInstancesByHostedZone method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListTrafficPolicyInstancesByHostedZoneRequest method.
- // req, resp := client.ListTrafficPolicyInstancesByHostedZoneRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) ListTrafficPolicyInstancesByHostedZoneRequest(input *ListTrafficPolicyInstancesByHostedZoneInput) (req *request.Request, output *ListTrafficPolicyInstancesByHostedZoneOutput) {
- op := &request.Operation{
- Name: opListTrafficPolicyInstancesByHostedZone,
- HTTPMethod: "GET",
- HTTPPath: "/2013-04-01/trafficpolicyinstances/hostedzone",
- }
- if input == nil {
- input = &ListTrafficPolicyInstancesByHostedZoneInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListTrafficPolicyInstancesByHostedZoneOutput{}
- req.Data = output
- return
- }
- // Gets information about the traffic policy instances that you created in a
- // specified hosted zone.
- //
- // After you submit an UpdateTrafficPolicyInstance request, there's a brief
- // delay while Amazon Route 53 creates the resource record sets that are specified
- // in the traffic policy definition. For more information, see the State response
- // element. To get information about the traffic policy instances that you created
- // in a specified hosted zone, send a GET request to the /Route 53 API version/trafficpolicyinstance
- // resource and include the ID of the hosted zone.
- //
- // Amazon Route 53 returns a maximum of 100 items in each response. If you
- // have a lot of traffic policy instances, you can use the MaxItems parameter
- // to list them in groups of up to 100.
- //
- // The response includes four values that help you navigate from one group
- // of MaxItems traffic policy instances to the next:
- //
- // IsTruncated If the value of IsTruncated in the response is true, there
- // are more traffic policy instances associated with the current AWS account.
- //
- // If IsTruncated is false, this response includes the last traffic policy
- // instance that is associated with the current account.
- //
- // MaxItems The value that you specified for the MaxItems parameter in the
- // request that produced the current response.
- //
- // TrafficPolicyInstanceNameMarker and TrafficPolicyInstanceTypeMarker If IsTruncated
- // is true, these two values in the response represent the first traffic policy
- // instance in the next group of MaxItems traffic policy instances. To list
- // more traffic policy instances, make another call to ListTrafficPolicyInstancesByHostedZone,
- // and specify these values in the corresponding request parameters.
- //
- // If IsTruncated is false, all three elements are omitted from the response.
- func (c *Route53) ListTrafficPolicyInstancesByHostedZone(input *ListTrafficPolicyInstancesByHostedZoneInput) (*ListTrafficPolicyInstancesByHostedZoneOutput, error) {
- req, out := c.ListTrafficPolicyInstancesByHostedZoneRequest(input)
- err := req.Send()
- return out, err
- }
- const opListTrafficPolicyInstancesByPolicy = "ListTrafficPolicyInstancesByPolicy"
- // ListTrafficPolicyInstancesByPolicyRequest generates a "aws/request.Request" representing the
- // client's request for the ListTrafficPolicyInstancesByPolicy operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListTrafficPolicyInstancesByPolicy method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListTrafficPolicyInstancesByPolicyRequest method.
- // req, resp := client.ListTrafficPolicyInstancesByPolicyRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) ListTrafficPolicyInstancesByPolicyRequest(input *ListTrafficPolicyInstancesByPolicyInput) (req *request.Request, output *ListTrafficPolicyInstancesByPolicyOutput) {
- op := &request.Operation{
- Name: opListTrafficPolicyInstancesByPolicy,
- HTTPMethod: "GET",
- HTTPPath: "/2013-04-01/trafficpolicyinstances/trafficpolicy",
- }
- if input == nil {
- input = &ListTrafficPolicyInstancesByPolicyInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListTrafficPolicyInstancesByPolicyOutput{}
- req.Data = output
- return
- }
- // Gets information about the traffic policy instances that you created by using
- // a specify traffic policy version.
- //
- // After you submit a CreateTrafficPolicyInstance or an UpdateTrafficPolicyInstance
- // request, there's a brief delay while Amazon Route 53 creates the resource
- // record sets that are specified in the traffic policy definition. For more
- // information, see the State response element. To get information about the
- // traffic policy instances that you created by using a specify traffic policy
- // version, send a GET request to the /Route 53 API version/trafficpolicyinstance
- // resource and include the ID and version of the traffic policy.
- //
- // Amazon Route 53 returns a maximum of 100 items in each response. If you
- // have a lot of traffic policy instances, you can use the MaxItems parameter
- // to list them in groups of up to 100.
- //
- // The response includes five values that help you navigate from one group
- // of MaxItems traffic policy instances to the next:
- //
- // IsTruncated If the value of IsTruncated in the response is true, there
- // are more traffic policy instances associated with the specified traffic policy.
- //
- // If IsTruncated is false, this response includes the last traffic policy
- // instance that is associated with the specified traffic policy.
- //
- // MaxItems The value that you specified for the MaxItems parameter in the
- // request that produced the current response.
- //
- // HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker
- // If IsTruncated is true, these values in the response represent the first
- // traffic policy instance in the next group of MaxItems traffic policy instances.
- // To list more traffic policy instances, make another call to ListTrafficPolicyInstancesByPolicy,
- // and specify these values in the corresponding request parameters.
- //
- // If IsTruncated is false, all three elements are omitted from the response.
- func (c *Route53) ListTrafficPolicyInstancesByPolicy(input *ListTrafficPolicyInstancesByPolicyInput) (*ListTrafficPolicyInstancesByPolicyOutput, error) {
- req, out := c.ListTrafficPolicyInstancesByPolicyRequest(input)
- err := req.Send()
- return out, err
- }
- const opListTrafficPolicyVersions = "ListTrafficPolicyVersions"
- // ListTrafficPolicyVersionsRequest generates a "aws/request.Request" representing the
- // client's request for the ListTrafficPolicyVersions operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListTrafficPolicyVersions method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListTrafficPolicyVersionsRequest method.
- // req, resp := client.ListTrafficPolicyVersionsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) ListTrafficPolicyVersionsRequest(input *ListTrafficPolicyVersionsInput) (req *request.Request, output *ListTrafficPolicyVersionsOutput) {
- op := &request.Operation{
- Name: opListTrafficPolicyVersions,
- HTTPMethod: "GET",
- HTTPPath: "/2013-04-01/trafficpolicies/{Id}/versions",
- }
- if input == nil {
- input = &ListTrafficPolicyVersionsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListTrafficPolicyVersionsOutput{}
- req.Data = output
- return
- }
- // Gets information about all of the versions for a specified traffic policy.
- // ListTrafficPolicyVersions lists only versions that have not been deleted.
- //
- // Amazon Route 53 returns a maximum of 100 items in each response. If you
- // have a lot of traffic policies, you can use the maxitems parameter to list
- // them in groups of up to 100.
- //
- // The response includes three values that help you navigate from one group
- // of maxitemsmaxitems traffic policies to the next:
- //
- // IsTruncated If the value of IsTruncated in the response is true, there
- // are more traffic policy versions associated with the specified traffic policy.
- //
- // If IsTruncated is false, this response includes the last traffic policy
- // version that is associated with the specified traffic policy.
- //
- // TrafficPolicyVersionMarker The ID of the next traffic policy version that
- // is associated with the current AWS account. If you want to list more traffic
- // policies, make another call to ListTrafficPolicyVersions, and specify the
- // value of the TrafficPolicyVersionMarker element in the TrafficPolicyVersionMarker
- // request parameter.
- //
- // If IsTruncated is false, Amazon Route 53 omits the TrafficPolicyVersionMarker
- // element from the response.
- //
- // MaxItems The value that you specified for the MaxItems parameter in the
- // request that produced the current response.
- func (c *Route53) ListTrafficPolicyVersions(input *ListTrafficPolicyVersionsInput) (*ListTrafficPolicyVersionsOutput, error) {
- req, out := c.ListTrafficPolicyVersionsRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateHealthCheck = "UpdateHealthCheck"
- // UpdateHealthCheckRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateHealthCheck operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateHealthCheck method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdateHealthCheckRequest method.
- // req, resp := client.UpdateHealthCheckRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) UpdateHealthCheckRequest(input *UpdateHealthCheckInput) (req *request.Request, output *UpdateHealthCheckOutput) {
- op := &request.Operation{
- Name: opUpdateHealthCheck,
- HTTPMethod: "POST",
- HTTPPath: "/2013-04-01/healthcheck/{HealthCheckId}",
- }
- if input == nil {
- input = &UpdateHealthCheckInput{}
- }
- req = c.newRequest(op, input, output)
- output = &UpdateHealthCheckOutput{}
- req.Data = output
- return
- }
- // This action updates an existing health check.
- //
- // To update a health check, send a POST request to the /Route 53 API version/healthcheck/health
- // check ID resource. The request body must include a document with an UpdateHealthCheckRequest
- // element. The response returns an UpdateHealthCheckResponse element, which
- // contains metadata about the health check.
- func (c *Route53) UpdateHealthCheck(input *UpdateHealthCheckInput) (*UpdateHealthCheckOutput, error) {
- req, out := c.UpdateHealthCheckRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateHostedZoneComment = "UpdateHostedZoneComment"
- // UpdateHostedZoneCommentRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateHostedZoneComment operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateHostedZoneComment method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdateHostedZoneCommentRequest method.
- // req, resp := client.UpdateHostedZoneCommentRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) UpdateHostedZoneCommentRequest(input *UpdateHostedZoneCommentInput) (req *request.Request, output *UpdateHostedZoneCommentOutput) {
- op := &request.Operation{
- Name: opUpdateHostedZoneComment,
- HTTPMethod: "POST",
- HTTPPath: "/2013-04-01/hostedzone/{Id}",
- }
- if input == nil {
- input = &UpdateHostedZoneCommentInput{}
- }
- req = c.newRequest(op, input, output)
- output = &UpdateHostedZoneCommentOutput{}
- req.Data = output
- return
- }
- // To update the hosted zone comment, send a POST request to the /Route 53 API
- // version/hostedzone/hosted zone ID resource. The request body must include
- // a document with a UpdateHostedZoneCommentRequest element. The response to
- // this request includes the modified HostedZone element.
- //
- // The comment can have a maximum length of 256 characters.
- func (c *Route53) UpdateHostedZoneComment(input *UpdateHostedZoneCommentInput) (*UpdateHostedZoneCommentOutput, error) {
- req, out := c.UpdateHostedZoneCommentRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateTrafficPolicyComment = "UpdateTrafficPolicyComment"
- // UpdateTrafficPolicyCommentRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateTrafficPolicyComment operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateTrafficPolicyComment method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdateTrafficPolicyCommentRequest method.
- // req, resp := client.UpdateTrafficPolicyCommentRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) UpdateTrafficPolicyCommentRequest(input *UpdateTrafficPolicyCommentInput) (req *request.Request, output *UpdateTrafficPolicyCommentOutput) {
- op := &request.Operation{
- Name: opUpdateTrafficPolicyComment,
- HTTPMethod: "POST",
- HTTPPath: "/2013-04-01/trafficpolicy/{Id}/{Version}",
- }
- if input == nil {
- input = &UpdateTrafficPolicyCommentInput{}
- }
- req = c.newRequest(op, input, output)
- output = &UpdateTrafficPolicyCommentOutput{}
- req.Data = output
- return
- }
- // Updates the comment for a specified traffic policy version.
- //
- // To update the comment, send a POST request to the /Route 53 API version/trafficpolicy/
- // resource.
- //
- // The request body must include a document with an UpdateTrafficPolicyCommentRequest
- // element.
- func (c *Route53) UpdateTrafficPolicyComment(input *UpdateTrafficPolicyCommentInput) (*UpdateTrafficPolicyCommentOutput, error) {
- req, out := c.UpdateTrafficPolicyCommentRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateTrafficPolicyInstance = "UpdateTrafficPolicyInstance"
- // UpdateTrafficPolicyInstanceRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateTrafficPolicyInstance operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateTrafficPolicyInstance method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdateTrafficPolicyInstanceRequest method.
- // req, resp := client.UpdateTrafficPolicyInstanceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *Route53) UpdateTrafficPolicyInstanceRequest(input *UpdateTrafficPolicyInstanceInput) (req *request.Request, output *UpdateTrafficPolicyInstanceOutput) {
- op := &request.Operation{
- Name: opUpdateTrafficPolicyInstance,
- HTTPMethod: "POST",
- HTTPPath: "/2013-04-01/trafficpolicyinstance/{Id}",
- }
- if input == nil {
- input = &UpdateTrafficPolicyInstanceInput{}
- }
- req = c.newRequest(op, input, output)
- output = &UpdateTrafficPolicyInstanceOutput{}
- req.Data = output
- return
- }
- // Updates the resource record sets in a specified hosted zone that were created
- // based on the settings in a specified traffic policy version.
- //
- // The DNS type of the resource record sets that you're updating must match
- // the DNS type in the JSON document that is associated with the traffic policy
- // version that you're using to update the traffic policy instance. When you
- // update a traffic policy instance, Amazon Route 53 continues to respond to
- // DNS queries for the root resource record set name (such as example.com) while
- // it replaces one group of resource record sets with another. Amazon Route
- // 53 performs the following operations:
- //
- // Amazon Route 53 creates a new group of resource record sets based on the
- // specified traffic policy. This is true regardless of how substantial the
- // differences are between the existing resource record sets and the new resource
- // record sets. When all of the new resource record sets have been created,
- // Amazon Route 53 starts to respond to DNS queries for the root resource record
- // set name (such as example.com) by using the new resource record sets. Amazon
- // Route 53 deletes the old group of resource record sets that are associated
- // with the root resource record set name. To update a traffic policy instance,
- // send a POST request to the /Route 53 API version/trafficpolicyinstance/traffic
- // policy ID resource. The request body must include a document with an UpdateTrafficPolicyInstanceRequest
- // element.
- func (c *Route53) UpdateTrafficPolicyInstance(input *UpdateTrafficPolicyInstanceInput) (*UpdateTrafficPolicyInstanceOutput, error) {
- req, out := c.UpdateTrafficPolicyInstanceRequest(input)
- err := req.Send()
- return out, err
- }
- // A complex type that contains information to uniquely identify the CloudWatch
- // alarm that you're associating with a Route 53 health check.
- type AlarmIdentifier struct {
- _ struct{} `type:"structure"`
- // The name of the CloudWatch alarm.
- Name *string `min:"1" type:"string" required:"true"`
- // The CloudWatchRegion that the CloudWatch alarm was created in.
- Region *string `min:"1" type:"string" required:"true" enum:"CloudWatchRegion"`
- }
- // String returns the string representation
- func (s AlarmIdentifier) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AlarmIdentifier) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AlarmIdentifier) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AlarmIdentifier"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.Region == nil {
- invalidParams.Add(request.NewErrParamRequired("Region"))
- }
- if s.Region != nil && len(*s.Region) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Region", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Alias resource record sets only: Information about the CloudFront distribution,
- // ELB load balancer, Amazon S3 bucket, or Amazon Route 53 resource record set
- // to which you are routing traffic.
- //
- // If you're creating resource record sets for a private hosted zone, note
- // the following:
- //
- // You can create alias resource record sets only for Amazon Route 53 resource
- // record sets in the same private hosted zone. Creating alias resource record
- // sets for CloudFront distributions, ELB load balancers, and Amazon S3 buckets
- // is not supported. You can't create alias resource record sets for failover,
- // geolocation, or latency resource record sets in a private hosted zone.
- type AliasTarget struct {
- _ struct{} `type:"structure"`
- // Alias resource record sets only: The external DNS name associated with the
- // AWS Resource. The value that you specify depends on where you want to route
- // queries:
- //
- // A CloudFront distribution: Specify the domain name that CloudFront assigned
- // when you created your distribution. Your CloudFront distribution must include
- // an alternate domain name that matches the name of the resource record set.
- // For example, if the name of the resource record set is acme.example.com,
- // your CloudFront distribution must include acme.example.com as one of the
- // alternate domain names. For more information, see Using Alternate Domain
- // Names (CNAMEs) (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html)
- // in the Amazon CloudFront Developer Guide. An ELB load balancer: Specify the
- // DNS name associated with the load balancer. You can get the DNS name by using
- // the AWS Management Console, the ELB API, or the AWS CLI. Use the same method
- // to get values for HostedZoneId and DNSName. If you get one value from the
- // console and the other value from the API or the CLI, creating the resource
- // record set will fail. An Elastic Beanstalk environment: Specify the CNAME
- // attribute for the environment. (The environment must have a regionalized
- // domain name.) An Amazon S3 bucket that is configured as a static website:
- // Specify the domain name of the Amazon S3 website endpoint in which you created
- // the bucket; for example, s3-website-us-east-1.amazonaws.com. For more information
- // about valid values, see the table Amazon Simple Storage Service (S3) Website
- // Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region)
- // in the Amazon Web Services General Reference. For more information about
- // using Amazon S3 buckets for websites, see Hosting a Static Website on Amazon
- // S3 (http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html) in
- // the Amazon Simple Storage Service Developer Guide. Another Amazon Route 53
- // resource record set: Specify the value of the Name element for a resource
- // record set in the current hosted zone.
- DNSName *string `type:"string" required:"true"`
- // Alias resource record sets only: If you set the value of EvaluateTargetHealth
- // to true for the resource record set or sets in an alias, weighted alias,
- // latency alias, or failover alias resource record set, and if you specify
- // a value for HealthCheckId for every resource record set that is referenced
- // by these alias resource record sets, the alias resource record sets inherit
- // the health of the referenced resource record sets.
- //
- // In this configuration, when Amazon Route 53 receives a DNS query for an
- // alias resource record set:
- //
- // Amazon Route 53 looks at the resource record sets that are referenced by
- // the alias resource record sets to determine which health checks they're using.
- // Amazon Route 53 checks the current status of each health check. (Amazon Route
- // 53 periodically checks the health of the endpoint that is specified in a
- // health check; it doesn't perform the health check when the DNS query arrives.)
- // Based on the status of the health checks, Amazon Route 53 determines which
- // resource record sets are healthy. Unhealthy resource record sets are immediately
- // removed from consideration. In addition, if all of the resource record sets
- // that are referenced by an alias resource record set are unhealthy, that alias
- // resource record set also is immediately removed from consideration. Based
- // on the configuration of the alias resource record sets (weighted alias or
- // latency alias, for example) and the configuration of the resource record
- // sets that they reference, Amazon Route 53 chooses a resource record set from
- // the healthy resource record sets, and responds to the query. Note the following:
- //
- // You cannot set EvaluateTargetHealth to true when the alias target is a CloudFront
- // distribution. If the AWS resource that you specify in AliasTarget is a resource
- // record set or a group of resource record sets (for example, a group of weighted
- // resource record sets), but it is not another alias resource record set, we
- // recommend that you associate a health check with all of the resource record
- // sets in the alias target. If you specify an ELB load balancer in AliasTarget,
- // Elastic Load Balancing routes queries only to the healthy Amazon EC2 instances
- // that are registered with the load balancer. If no Amazon EC2 instances are
- // healthy or if the load balancer itself is unhealthy, and if EvaluateTargetHealth
- // is true for the corresponding alias resource record set, Amazon Route 53
- // routes queries to other resources. When you create a load balancer, you configure
- // settings for Elastic Load Balancing health checks; they're not Amazon Route
- // 53 health checks, but they perform a similar function. Do not create Amazon
- // Route 53 health checks for the Amazon EC2 instances that you register with
- // an ELB load balancer. For more information, see How Health Checks Work in
- // More Complex Amazon Route 53 Configurations (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-complex-configs.html)
- // in the Amazon Route 53 Developer Guide. We recommend that you set EvaluateTargetHealth
- // to true only when you have enough idle capacity to handle the failure of
- // one or more endpoints.
- //
- // For more information and examples, see Amazon Route 53 Health Checks and
- // DNS Failover (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html)
- // in the Amazon Route 53 Developer Guide.
- EvaluateTargetHealth *bool `type:"boolean" required:"true"`
- // Alias resource record sets only: The value you use depends on where you want
- // to route queries:
- //
- // A CloudFront distribution: Specify Z2FDTNDATAQYW2. An ELB load balancer:
- // Specify the value of the hosted zone ID for the load balancer. You can get
- // the hosted zone ID by using the AWS Management Console, the ELB API, or the
- // AWS CLI. Use the same method to get values for HostedZoneId and DNSName.
- // If you get one value from the console and the other value from the API or
- // the CLI, creating the resource record set will fail. An Amazon S3 bucket
- // that is configured as a static website: Specify the hosted zone ID for the
- // Amazon S3 website endpoint in which you created the bucket. For more information
- // about valid values, see the table Amazon Simple Storage Service (S3) Website
- // Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region)
- // in the Amazon Web Services General Reference. Another Amazon Route 53 resource
- // record set in your hosted zone: Specify the hosted zone ID of your hosted
- // zone. (An alias resource record set cannot reference a resource record set
- // in a different hosted zone.)
- HostedZoneId *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AliasTarget) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AliasTarget) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AliasTarget) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AliasTarget"}
- if s.DNSName == nil {
- invalidParams.Add(request.NewErrParamRequired("DNSName"))
- }
- if s.EvaluateTargetHealth == nil {
- invalidParams.Add(request.NewErrParamRequired("EvaluateTargetHealth"))
- }
- if s.HostedZoneId == nil {
- invalidParams.Add(request.NewErrParamRequired("HostedZoneId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type that contains information about the request to associate a
- // VPC with an hosted zone.
- type AssociateVPCWithHostedZoneInput struct {
- _ struct{} `locationName:"AssociateVPCWithHostedZoneRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
- // Optional: Any comments you want to include about a AssociateVPCWithHostedZoneRequest.
- Comment *string `type:"string"`
- // The ID of the hosted zone you want to associate your VPC with.
- //
- // Note that you cannot associate a VPC with a hosted zone that doesn't have
- // an existing VPC association.
- HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"`
- // The VPC that you want your hosted zone to be associated with.
- VPC *VPC `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s AssociateVPCWithHostedZoneInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AssociateVPCWithHostedZoneInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AssociateVPCWithHostedZoneInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AssociateVPCWithHostedZoneInput"}
- if s.HostedZoneId == nil {
- invalidParams.Add(request.NewErrParamRequired("HostedZoneId"))
- }
- if s.VPC == nil {
- invalidParams.Add(request.NewErrParamRequired("VPC"))
- }
- if s.VPC != nil {
- if err := s.VPC.Validate(); err != nil {
- invalidParams.AddNested("VPC", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type containing the response information for the request.
- type AssociateVPCWithHostedZoneOutput struct {
- _ struct{} `type:"structure"`
- // A complex type that contains the ID, the status, and the date and time of
- // your AssociateVPCWithHostedZoneRequest.
- ChangeInfo *ChangeInfo `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s AssociateVPCWithHostedZoneOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AssociateVPCWithHostedZoneOutput) GoString() string {
- return s.String()
- }
- // A complex type that contains the information for each change in a change
- // batch request.
- type Change struct {
- _ struct{} `type:"structure"`
- // The action to perform:
- //
- // CREATE: Creates a resource record set that has the specified values. DELETE:
- // Deletes a existing resource record set that has the specified values for
- // Name, Type, SetIdentifier (for latency, weighted, geolocation, and failover
- // resource record sets), and TTL (except alias resource record sets, for which
- // the TTL is determined by the AWS resource that you're routing DNS queries
- // to). UPSERT: If a resource record set does not already exist, Amazon Route
- // 53 creates it. If a resource record set does exist, Amazon Route 53 updates
- // it with the values in the request. Amazon Route 53 can update an existing
- // resource record set only when all of the following values match: Name, Type,
- // and SetIdentifier (for weighted, latency, geolocation, and failover resource
- // record sets).
- Action *string `type:"string" required:"true" enum:"ChangeAction"`
- // Information about the resource record set to create or delete.
- ResourceRecordSet *ResourceRecordSet `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s Change) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Change) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *Change) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Change"}
- if s.Action == nil {
- invalidParams.Add(request.NewErrParamRequired("Action"))
- }
- if s.ResourceRecordSet == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceRecordSet"))
- }
- if s.ResourceRecordSet != nil {
- if err := s.ResourceRecordSet.Validate(); err != nil {
- invalidParams.AddNested("ResourceRecordSet", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type that contains an optional comment and the changes that you
- // want to make with a change batch request.
- type ChangeBatch struct {
- _ struct{} `type:"structure"`
- // A complex type that contains one Change element for each resource record
- // set that you want to create or delete.
- Changes []*Change `locationNameList:"Change" min:"1" type:"list" required:"true"`
- // Optional: Any comments you want to include about a change batch request.
- Comment *string `type:"string"`
- }
- // String returns the string representation
- func (s ChangeBatch) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ChangeBatch) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ChangeBatch) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ChangeBatch"}
- if s.Changes == nil {
- invalidParams.Add(request.NewErrParamRequired("Changes"))
- }
- if s.Changes != nil && len(s.Changes) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Changes", 1))
- }
- if s.Changes != nil {
- for i, v := range s.Changes {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Changes", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type that lists the changes and information for a ChangeBatch.
- type ChangeBatchRecord struct {
- _ struct{} `deprecated:"true" type:"structure"`
- // A list of changes made in the ChangeBatch.
- Changes []*Change `locationNameList:"Change" min:"1" type:"list"`
- // A complex type that describes change information about changes made to your
- // hosted zone.
- //
- // This element contains an ID that you use when performing a GetChange action
- // to get detailed information about the change.
- Comment *string `type:"string"`
- // The ID of the request. Use this ID to track when the change has completed
- // across all Amazon Route 53 DNS servers.
- Id *string `type:"string" required:"true"`
- // The current state of the request. PENDING indicates that this request has
- // not yet been applied to all Amazon Route 53 DNS servers.
- //
- // Valid Values: PENDING | INSYNC
- Status *string `type:"string" required:"true" enum:"ChangeStatus"`
- // The date and time the change was submitted, in the format YYYY-MM-DDThh:mm:ssZ,
- // as specified in the ISO 8601 standard (for example, 2009-11-19T19:37:58Z).
- // The Z after the time indicates that the time is listed in Coordinated Universal
- // Time (UTC).
- SubmittedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"`
- // The AWS account ID attached to the changes.
- Submitter *string `type:"string"`
- }
- // String returns the string representation
- func (s ChangeBatchRecord) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ChangeBatchRecord) GoString() string {
- return s.String()
- }
- // A complex type that describes change information about changes made to your
- // hosted zone.
- //
- // This element contains an ID that you use when performing a GetChange action
- // to get detailed information about the change.
- type ChangeInfo struct {
- _ struct{} `type:"structure"`
- // A complex type that describes change information about changes made to your
- // hosted zone.
- //
- // This element contains an ID that you use when performing a GetChange action
- // to get detailed information about the change.
- Comment *string `type:"string"`
- // The ID of the request. Use this ID to track when the change has completed
- // across all Amazon Route 53 DNS servers.
- Id *string `type:"string" required:"true"`
- // The current state of the request. PENDING indicates that this request has
- // not yet been applied to all Amazon Route 53 DNS servers.
- //
- // Valid Values: PENDING | INSYNC
- Status *string `type:"string" required:"true" enum:"ChangeStatus"`
- // The date and time the change was submitted, in the format YYYY-MM-DDThh:mm:ssZ,
- // as specified in the ISO 8601 standard (for example, 2009-11-19T19:37:58Z).
- // The Z after the time indicates that the time is listed in Coordinated Universal
- // Time (UTC).
- SubmittedAt *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
- }
- // String returns the string representation
- func (s ChangeInfo) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ChangeInfo) GoString() string {
- return s.String()
- }
- // A complex type that contains a change batch.
- type ChangeResourceRecordSetsInput struct {
- _ struct{} `locationName:"ChangeResourceRecordSetsRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
- // A complex type that contains an optional comment and the Changes element.
- ChangeBatch *ChangeBatch `type:"structure" required:"true"`
- // The ID of the hosted zone that contains the resource record sets that you
- // want to change.
- HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ChangeResourceRecordSetsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ChangeResourceRecordSetsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ChangeResourceRecordSetsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ChangeResourceRecordSetsInput"}
- if s.ChangeBatch == nil {
- invalidParams.Add(request.NewErrParamRequired("ChangeBatch"))
- }
- if s.HostedZoneId == nil {
- invalidParams.Add(request.NewErrParamRequired("HostedZoneId"))
- }
- if s.ChangeBatch != nil {
- if err := s.ChangeBatch.Validate(); err != nil {
- invalidParams.AddNested("ChangeBatch", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type containing the response for the request.
- type ChangeResourceRecordSetsOutput struct {
- _ struct{} `type:"structure"`
- // A complex type that contains information about changes made to your hosted
- // zone.
- //
- // This element contains an ID that you use when performing a GetChange action
- // to get detailed information about the change.
- ChangeInfo *ChangeInfo `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s ChangeResourceRecordSetsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ChangeResourceRecordSetsOutput) GoString() string {
- return s.String()
- }
- // A complex type containing information about a request to add, change, or
- // delete the tags that are associated with a resource.
- type ChangeTagsForResourceInput struct {
- _ struct{} `locationName:"ChangeTagsForResourceRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
- // A complex type that contains a list of Tag elements. Each Tag element identifies
- // a tag that you want to add or update for the specified resource.
- AddTags []*Tag `locationNameList:"Tag" min:"1" type:"list"`
- // A list of Tag keys that you want to remove from the specified resource.
- RemoveTagKeys []*string `locationNameList:"Key" min:"1" type:"list"`
- // The ID of the resource for which you want to add, change, or delete tags.
- ResourceId *string `location:"uri" locationName:"ResourceId" type:"string" required:"true"`
- // The type of the resource.
- //
- // - The resource type for health checks is healthcheck.
- //
- // - The resource type for hosted zones is hostedzone.
- ResourceType *string `location:"uri" locationName:"ResourceType" type:"string" required:"true" enum:"TagResourceType"`
- }
- // String returns the string representation
- func (s ChangeTagsForResourceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ChangeTagsForResourceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ChangeTagsForResourceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ChangeTagsForResourceInput"}
- if s.AddTags != nil && len(s.AddTags) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AddTags", 1))
- }
- if s.RemoveTagKeys != nil && len(s.RemoveTagKeys) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RemoveTagKeys", 1))
- }
- if s.ResourceId == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceId"))
- }
- if s.ResourceType == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceType"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Empty response for the request.
- type ChangeTagsForResourceOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s ChangeTagsForResourceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ChangeTagsForResourceOutput) GoString() string {
- return s.String()
- }
- // For CLOUDWATCH_METRIC health checks, a complex type that contains information
- // about the CloudWatch alarm that you're associating with the health check.
- type CloudWatchAlarmConfiguration struct {
- _ struct{} `type:"structure"`
- // The arithmetic operation to use when comparing the specified Statistic and
- // Threshold.
- //
- // Valid Values are GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanThreshold
- // and LessThanOrEqualToThreshold
- ComparisonOperator *string `type:"string" required:"true" enum:"ComparisonOperator"`
- // A list of Dimension elements for the CloudWatch metric that is associated
- // with the CloudWatch alarm. For information about the metrics and dimensions
- // that CloudWatch supports, see Amazon CloudWatch Namespaces, Dimensions, and
- // Metrics Reference (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CW_Support_For_AWS.html).
- Dimensions []*Dimension `locationNameList:"Dimension" type:"list"`
- // The number of periods over which data is compared to the specified threshold.
- EvaluationPeriods *int64 `min:"1" type:"integer" required:"true"`
- // The name of the CloudWatch metric that is associated with the CloudWatch
- // alarm.
- MetricName *string `min:"1" type:"string" required:"true"`
- // The namespace of the CloudWatch metric that is associated with the CloudWatch
- // alarm.
- Namespace *string `min:"1" type:"string" required:"true"`
- // An integer that represents the period in seconds over which the statistic
- // is applied.
- Period *int64 `min:"60" type:"integer" required:"true"`
- // The statistic to apply to the CloudWatch metric that is associated with the
- // CloudWatch alarm.
- //
- // Valid Values are SampleCount, Average, Sum, Minimum and Maximum
- Statistic *string `type:"string" required:"true" enum:"Statistic"`
- // The value that the metric is compared with to determine the state of the
- // alarm. For example, if you want the health check to fail if the average TCP
- // connection time is greater than 500 milliseconds for more than 60 seconds,
- // the threshold is 500.
- Threshold *float64 `type:"double" required:"true"`
- }
- // String returns the string representation
- func (s CloudWatchAlarmConfiguration) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CloudWatchAlarmConfiguration) GoString() string {
- return s.String()
- }
- // >A complex type that contains information about the request to create a health
- // check.
- type CreateHealthCheckInput struct {
- _ struct{} `locationName:"CreateHealthCheckRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
- // A unique string that identifies the request and that allows failed CreateHealthCheck
- // requests to be retried without the risk of executing the operation twice.
- // You must use a unique CallerReference string every time you create a health
- // check. CallerReference can be any unique string; you might choose to use
- // a string that identifies your project.
- //
- // Valid characters are any Unicode code points that are legal in an XML 1.0
- // document. The UTF-8 encoding of the value must be less than 128 bytes.
- CallerReference *string `min:"1" type:"string" required:"true"`
- // A complex type that contains health check configuration.
- HealthCheckConfig *HealthCheckConfig `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s CreateHealthCheckInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateHealthCheckInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateHealthCheckInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateHealthCheckInput"}
- if s.CallerReference == nil {
- invalidParams.Add(request.NewErrParamRequired("CallerReference"))
- }
- if s.CallerReference != nil && len(*s.CallerReference) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("CallerReference", 1))
- }
- if s.HealthCheckConfig == nil {
- invalidParams.Add(request.NewErrParamRequired("HealthCheckConfig"))
- }
- if s.HealthCheckConfig != nil {
- if err := s.HealthCheckConfig.Validate(); err != nil {
- invalidParams.AddNested("HealthCheckConfig", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type containing the response information for the new health check.
- type CreateHealthCheckOutput struct {
- _ struct{} `type:"structure"`
- // A complex type that contains identifying information about the health check.
- HealthCheck *HealthCheck `type:"structure" required:"true"`
- // The unique URL representing the new health check.
- Location *string `location:"header" locationName:"Location" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateHealthCheckOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateHealthCheckOutput) GoString() string {
- return s.String()
- }
- // A complex type that contains information about the request to create a hosted
- // zone.
- type CreateHostedZoneInput struct {
- _ struct{} `locationName:"CreateHostedZoneRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
- // A unique string that identifies the request and that allows failed CreateHostedZone
- // requests to be retried without the risk of executing the operation twice.
- // You must use a unique CallerReference string every time you create a hosted
- // zone. CallerReference can be any unique string; you might choose to use a
- // string that identifies your project, such as DNSMigration_01.
- //
- // Valid characters are any Unicode code points that are legal in an XML 1.0
- // document. The UTF-8 encoding of the value must be less than 128 bytes.
- CallerReference *string `min:"1" type:"string" required:"true"`
- // The delegation set id of the reusable delgation set whose NS records you
- // want to assign to the new hosted zone.
- DelegationSetId *string `type:"string"`
- // A complex type that contains an optional comment about your hosted zone.
- HostedZoneConfig *HostedZoneConfig `type:"structure"`
- // The name of the domain. This must be a fully-specified domain, for example,
- // www.example.com. The trailing dot is optional; Amazon Route 53 assumes that
- // the domain name is fully qualified. This means that Amazon Route 53 treats
- // www.example.com (without a trailing dot) and www.example.com. (with a trailing
- // dot) as identical.
- //
- // This is the name you have registered with your DNS registrar. You should
- // ask your registrar to change the authoritative name servers for your domain
- // to the set of NameServers elements returned in DelegationSet.
- Name *string `type:"string" required:"true"`
- // The VPC that you want your hosted zone to be associated with. By providing
- // this parameter, your newly created hosted cannot be resolved anywhere other
- // than the given VPC.
- VPC *VPC `type:"structure"`
- }
- // String returns the string representation
- func (s CreateHostedZoneInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateHostedZoneInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateHostedZoneInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateHostedZoneInput"}
- if s.CallerReference == nil {
- invalidParams.Add(request.NewErrParamRequired("CallerReference"))
- }
- if s.CallerReference != nil && len(*s.CallerReference) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("CallerReference", 1))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.VPC != nil {
- if err := s.VPC.Validate(); err != nil {
- invalidParams.AddNested("VPC", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type containing the response information for the new hosted zone.
- type CreateHostedZoneOutput struct {
- _ struct{} `type:"structure"`
- // A complex type that contains information about the request to create a hosted
- // zone. This includes an ID that you use when you call the GetChange action
- // to get the current status of the change request.
- ChangeInfo *ChangeInfo `type:"structure" required:"true"`
- // A complex type that contains name server information.
- DelegationSet *DelegationSet `type:"structure" required:"true"`
- // A complex type that contains identifying information about the hosted zone.
- HostedZone *HostedZone `type:"structure" required:"true"`
- // The unique URL representing the new hosted zone.
- Location *string `location:"header" locationName:"Location" type:"string" required:"true"`
- VPC *VPC `type:"structure"`
- }
- // String returns the string representation
- func (s CreateHostedZoneOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateHostedZoneOutput) GoString() string {
- return s.String()
- }
- type CreateReusableDelegationSetInput struct {
- _ struct{} `locationName:"CreateReusableDelegationSetRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
- // A unique string that identifies the request and that allows failed CreateReusableDelegationSet
- // requests to be retried without the risk of executing the operation twice.
- // You must use a unique CallerReference string every time you create a reusable
- // delegation set. CallerReference can be any unique string; you might choose
- // to use a string that identifies your project, such as DNSMigration_01.
- //
- // Valid characters are any Unicode code points that are legal in an XML 1.0
- // document. The UTF-8 encoding of the value must be less than 128 bytes.
- CallerReference *string `min:"1" type:"string" required:"true"`
- // The ID of the hosted zone whose delegation set you want to mark as reusable.
- // It is an optional parameter.
- HostedZoneId *string `type:"string"`
- }
- // String returns the string representation
- func (s CreateReusableDelegationSetInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateReusableDelegationSetInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateReusableDelegationSetInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateReusableDelegationSetInput"}
- if s.CallerReference == nil {
- invalidParams.Add(request.NewErrParamRequired("CallerReference"))
- }
- if s.CallerReference != nil && len(*s.CallerReference) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("CallerReference", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type CreateReusableDelegationSetOutput struct {
- _ struct{} `type:"structure"`
- // A complex type that contains name server information.
- DelegationSet *DelegationSet `type:"structure" required:"true"`
- // The unique URL representing the new reusbale delegation set.
- Location *string `location:"header" locationName:"Location" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateReusableDelegationSetOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateReusableDelegationSetOutput) GoString() string {
- return s.String()
- }
- // A complex type that contains information about the traffic policy that you
- // want to create.
- type CreateTrafficPolicyInput struct {
- _ struct{} `locationName:"CreateTrafficPolicyRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
- // Any comments that you want to include about the traffic policy.
- Comment *string `type:"string"`
- // The definition of this traffic policy in JSON format. For more information,
- // see Traffic Policy Document Format (http://docs.aws.amazon.com/Route53/latest/APIReference/api-policies-traffic-policy-document-format.html)
- // in the Amazon Route 53 API Reference.
- Document *string `type:"string" required:"true"`
- // The name of the traffic policy.
- Name *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateTrafficPolicyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateTrafficPolicyInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateTrafficPolicyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateTrafficPolicyInput"}
- if s.Document == nil {
- invalidParams.Add(request.NewErrParamRequired("Document"))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type that contains information about the resource record sets that
- // you want to create based on a specified traffic policy.
- type CreateTrafficPolicyInstanceInput struct {
- _ struct{} `locationName:"CreateTrafficPolicyInstanceRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
- // The ID of the hosted zone in which you want Amazon Route 53 to create resource
- // record sets by using the configuration in a traffic policy.
- HostedZoneId *string `type:"string" required:"true"`
- // The domain name (such as example.com) or subdomain name (such as www.example.com)
- // for which Amazon Route 53 responds to DNS queries by using the resource record
- // sets that Amazon Route 53 creates for this traffic policy instance.
- Name *string `type:"string" required:"true"`
- // The TTL that you want Amazon Route 53 to assign to all of the resource record
- // sets that it creates in the specified hosted zone.
- TTL *int64 `type:"long" required:"true"`
- // The ID of the traffic policy that you want to use to create resource record
- // sets in the specified hosted zone.
- TrafficPolicyId *string `type:"string" required:"true"`
- // The version of the traffic policy that you want to use to create resource
- // record sets in the specified hosted zone.
- TrafficPolicyVersion *int64 `min:"1" type:"integer" required:"true"`
- }
- // String returns the string representation
- func (s CreateTrafficPolicyInstanceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateTrafficPolicyInstanceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateTrafficPolicyInstanceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateTrafficPolicyInstanceInput"}
- if s.HostedZoneId == nil {
- invalidParams.Add(request.NewErrParamRequired("HostedZoneId"))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.TTL == nil {
- invalidParams.Add(request.NewErrParamRequired("TTL"))
- }
- if s.TrafficPolicyId == nil {
- invalidParams.Add(request.NewErrParamRequired("TrafficPolicyId"))
- }
- if s.TrafficPolicyVersion == nil {
- invalidParams.Add(request.NewErrParamRequired("TrafficPolicyVersion"))
- }
- if s.TrafficPolicyVersion != nil && *s.TrafficPolicyVersion < 1 {
- invalidParams.Add(request.NewErrParamMinValue("TrafficPolicyVersion", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type that contains the response information for the CreateTrafficPolicyInstance
- // request.
- type CreateTrafficPolicyInstanceOutput struct {
- _ struct{} `type:"structure"`
- // A unique URL that represents a new traffic policy instance.
- Location *string `location:"header" locationName:"Location" type:"string" required:"true"`
- // A complex type that contains settings for the new traffic policy instance.
- TrafficPolicyInstance *TrafficPolicyInstance `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s CreateTrafficPolicyInstanceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateTrafficPolicyInstanceOutput) GoString() string {
- return s.String()
- }
- // A complex type that contains the response information for the CreateTrafficPolicy
- // request.
- type CreateTrafficPolicyOutput struct {
- _ struct{} `type:"structure"`
- Location *string `location:"header" locationName:"Location" type:"string" required:"true"`
- // A complex type that contains settings for the new traffic policy.
- TrafficPolicy *TrafficPolicy `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s CreateTrafficPolicyOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateTrafficPolicyOutput) GoString() string {
- return s.String()
- }
- // A complex type that contains information about the traffic policy for which
- // you want to create a new version.
- type CreateTrafficPolicyVersionInput struct {
- _ struct{} `locationName:"CreateTrafficPolicyVersionRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
- // Any comments that you want to include about the new traffic policy version.
- Comment *string `type:"string"`
- // The definition of a new traffic policy version, in JSON format. You must
- // specify the full definition of the new traffic policy. You cannot specify
- // just the differences between the new version and a previous version. For
- // more information, see Traffic Policy Document Format (http://docs.aws.amazon.com/Route53/latest/APIReference/api-policies-traffic-policy-document-format.html)
- // in the Amazon Route 53 API Reference.
- Document *string `type:"string" required:"true"`
- // The ID of the traffic policy for which you want to create a new version.
- Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateTrafficPolicyVersionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateTrafficPolicyVersionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateTrafficPolicyVersionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateTrafficPolicyVersionInput"}
- if s.Document == nil {
- invalidParams.Add(request.NewErrParamRequired("Document"))
- }
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type that contains the response information for the CreateTrafficPolicyVersion
- // request.
- type CreateTrafficPolicyVersionOutput struct {
- _ struct{} `type:"structure"`
- Location *string `location:"header" locationName:"Location" type:"string" required:"true"`
- // A complex type that contains settings for the new version of the traffic
- // policy.
- TrafficPolicy *TrafficPolicy `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s CreateTrafficPolicyVersionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateTrafficPolicyVersionOutput) GoString() string {
- return s.String()
- }
- // A complex type that contains name server information.
- type DelegationSet struct {
- _ struct{} `type:"structure"`
- CallerReference *string `min:"1" type:"string"`
- Id *string `type:"string"`
- // A complex type that contains the authoritative name servers for the hosted
- // zone. Use the method provided by your domain registrar to add an NS record
- // to your domain for each NameServer that is assigned to your hosted zone.
- NameServers []*string `locationNameList:"NameServer" min:"1" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s DelegationSet) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DelegationSet) GoString() string {
- return s.String()
- }
- // A complex type containing the request information for delete health check.
- type DeleteHealthCheckInput struct {
- _ struct{} `type:"structure"`
- // The ID of the health check to delete.
- HealthCheckId *string `location:"uri" locationName:"HealthCheckId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteHealthCheckInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteHealthCheckInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteHealthCheckInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteHealthCheckInput"}
- if s.HealthCheckId == nil {
- invalidParams.Add(request.NewErrParamRequired("HealthCheckId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Empty response for the request.
- type DeleteHealthCheckOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteHealthCheckOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteHealthCheckOutput) GoString() string {
- return s.String()
- }
- // A complex type that contains information about the hosted zone that you want
- // to delete.
- type DeleteHostedZoneInput struct {
- _ struct{} `type:"structure"`
- // The ID of the hosted zone you want to delete.
- Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteHostedZoneInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteHostedZoneInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteHostedZoneInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteHostedZoneInput"}
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type containing the response information for the request.
- type DeleteHostedZoneOutput struct {
- _ struct{} `type:"structure"`
- // A complex type that contains the ID, the status, and the date and time of
- // your delete request.
- ChangeInfo *ChangeInfo `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s DeleteHostedZoneOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteHostedZoneOutput) GoString() string {
- return s.String()
- }
- // A complex type containing the information for the delete request.
- type DeleteReusableDelegationSetInput struct {
- _ struct{} `type:"structure"`
- // The ID of the reusable delegation set you want to delete.
- Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteReusableDelegationSetInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteReusableDelegationSetInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteReusableDelegationSetInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteReusableDelegationSetInput"}
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Empty response for the request.
- type DeleteReusableDelegationSetOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteReusableDelegationSetOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteReusableDelegationSetOutput) GoString() string {
- return s.String()
- }
- // A request to delete a specified traffic policy version.
- type DeleteTrafficPolicyInput struct {
- _ struct{} `type:"structure"`
- // The ID of the traffic policy that you want to delete.
- Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
- // The version number of the traffic policy that you want to delete.
- Version *int64 `location:"uri" locationName:"Version" min:"1" type:"integer" required:"true"`
- }
- // String returns the string representation
- func (s DeleteTrafficPolicyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteTrafficPolicyInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteTrafficPolicyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteTrafficPolicyInput"}
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if s.Version == nil {
- invalidParams.Add(request.NewErrParamRequired("Version"))
- }
- if s.Version != nil && *s.Version < 1 {
- invalidParams.Add(request.NewErrParamMinValue("Version", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type that contains information about the traffic policy instance
- // that you want to delete.
- type DeleteTrafficPolicyInstanceInput struct {
- _ struct{} `type:"structure"`
- // The ID of the traffic policy instance that you want to delete.
- //
- // When you delete a traffic policy instance, Amazon Route 53 also deletes
- // all of the resource record sets that were created when you created the traffic
- // policy instance.
- Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteTrafficPolicyInstanceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteTrafficPolicyInstanceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteTrafficPolicyInstanceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteTrafficPolicyInstanceInput"}
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // An empty element.
- type DeleteTrafficPolicyInstanceOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteTrafficPolicyInstanceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteTrafficPolicyInstanceOutput) GoString() string {
- return s.String()
- }
- // An empty element.
- type DeleteTrafficPolicyOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteTrafficPolicyOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteTrafficPolicyOutput) GoString() string {
- return s.String()
- }
- // The name and value of a dimension for a CloudWatch metric.
- type Dimension struct {
- _ struct{} `type:"structure"`
- // The name of the dimension.
- Name *string `min:"1" type:"string" required:"true"`
- // The value of the dimension.
- Value *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s Dimension) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Dimension) GoString() string {
- return s.String()
- }
- // A complex type that contains information about the request to disassociate
- // a VPC from an hosted zone.
- type DisassociateVPCFromHostedZoneInput struct {
- _ struct{} `locationName:"DisassociateVPCFromHostedZoneRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
- // Optional: Any comments you want to include about a DisassociateVPCFromHostedZoneRequest.
- Comment *string `type:"string"`
- // The ID of the hosted zone you want to disassociate your VPC from.
- //
- // Note that you cannot disassociate the last VPC from a hosted zone.
- HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"`
- // The VPC that you want your hosted zone to be disassociated from.
- VPC *VPC `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s DisassociateVPCFromHostedZoneInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DisassociateVPCFromHostedZoneInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DisassociateVPCFromHostedZoneInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DisassociateVPCFromHostedZoneInput"}
- if s.HostedZoneId == nil {
- invalidParams.Add(request.NewErrParamRequired("HostedZoneId"))
- }
- if s.VPC == nil {
- invalidParams.Add(request.NewErrParamRequired("VPC"))
- }
- if s.VPC != nil {
- if err := s.VPC.Validate(); err != nil {
- invalidParams.AddNested("VPC", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type containing the response information for the request.
- type DisassociateVPCFromHostedZoneOutput struct {
- _ struct{} `type:"structure"`
- // A complex type that contains the ID, the status, and the date and time of
- // your DisassociateVPCFromHostedZoneRequest.
- ChangeInfo *ChangeInfo `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s DisassociateVPCFromHostedZoneOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DisassociateVPCFromHostedZoneOutput) GoString() string {
- return s.String()
- }
- // A complex type that contains information about a geo location.
- type GeoLocation struct {
- _ struct{} `type:"structure"`
- // The code for a continent geo location. Note: only continent locations have
- // a continent code.
- //
- // Valid values: AF | AN | AS | EU | OC | NA | SA
- //
- // Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode
- // returns an InvalidInput error.
- ContinentCode *string `min:"2" type:"string"`
- // The code for a country geo location. The default location uses '*' for the
- // country code and will match all locations that are not matched by a geo location.
- //
- // The default geo location uses a * for the country code. All other country
- // codes follow the ISO 3166 two-character code.
- CountryCode *string `min:"1" type:"string"`
- // The code for a country's subdivision (e.g., a province of Canada). A subdivision
- // code is only valid with the appropriate country code.
- //
- // Constraint: Specifying SubdivisionCode without CountryCode returns an InvalidInput
- // error.
- SubdivisionCode *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s GeoLocation) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GeoLocation) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GeoLocation) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GeoLocation"}
- if s.ContinentCode != nil && len(*s.ContinentCode) < 2 {
- invalidParams.Add(request.NewErrParamMinLen("ContinentCode", 2))
- }
- if s.CountryCode != nil && len(*s.CountryCode) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("CountryCode", 1))
- }
- if s.SubdivisionCode != nil && len(*s.SubdivisionCode) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SubdivisionCode", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type that contains information about a GeoLocation.
- type GeoLocationDetails struct {
- _ struct{} `type:"structure"`
- // The code for a continent geo location. Note: only continent locations have
- // a continent code.
- ContinentCode *string `min:"2" type:"string"`
- // The name of the continent. This element is only present if ContinentCode
- // is also present.
- ContinentName *string `min:"1" type:"string"`
- // The code for a country geo location. The default location uses '*' for the
- // country code and will match all locations that are not matched by a geo location.
- //
- // The default geo location uses a * for the country code. All other country
- // codes follow the ISO 3166 two-character code.
- CountryCode *string `min:"1" type:"string"`
- // The name of the country. This element is only present if CountryCode is also
- // present.
- CountryName *string `min:"1" type:"string"`
- // The code for a country's subdivision (e.g., a province of Canada). A subdivision
- // code is only valid with the appropriate country code.
- SubdivisionCode *string `min:"1" type:"string"`
- // The name of the subdivision. This element is only present if SubdivisionCode
- // is also present.
- SubdivisionName *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s GeoLocationDetails) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GeoLocationDetails) GoString() string {
- return s.String()
- }
- // The input for a GetChangeDetails request.
- type GetChangeDetailsInput struct {
- _ struct{} `deprecated:"true" type:"structure"`
- // The ID of the change batch request. The value that you specify here is the
- // value that ChangeResourceRecordSets returned in the Id element when you submitted
- // the request.
- Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetChangeDetailsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetChangeDetailsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetChangeDetailsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetChangeDetailsInput"}
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type that contains the ChangeBatchRecord element.
- type GetChangeDetailsOutput struct {
- _ struct{} `deprecated:"true" type:"structure"`
- // A complex type that contains information about the specified change batch,
- // including the change batch ID, the status of the change, and the contained
- // changes.
- ChangeBatchRecord *ChangeBatchRecord `deprecated:"true" type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s GetChangeDetailsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetChangeDetailsOutput) GoString() string {
- return s.String()
- }
- // The input for a GetChange request.
- type GetChangeInput struct {
- _ struct{} `type:"structure"`
- // The ID of the change batch request. The value that you specify here is the
- // value that ChangeResourceRecordSets returned in the Id element when you submitted
- // the request.
- Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetChangeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetChangeInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetChangeInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetChangeInput"}
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type that contains the ChangeInfo element.
- type GetChangeOutput struct {
- _ struct{} `type:"structure"`
- // A complex type that contains information about the specified change batch,
- // including the change batch ID, the status of the change, and the date and
- // time of the request.
- ChangeInfo *ChangeInfo `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s GetChangeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetChangeOutput) GoString() string {
- return s.String()
- }
- // Empty request.
- type GetCheckerIpRangesInput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s GetCheckerIpRangesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetCheckerIpRangesInput) GoString() string {
- return s.String()
- }
- // A complex type that contains the CheckerIpRanges element.
- type GetCheckerIpRangesOutput struct {
- _ struct{} `type:"structure"`
- // A complex type that contains sorted list of IP ranges in CIDR format for
- // Amazon Route 53 health checkers.
- CheckerIpRanges []*string `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s GetCheckerIpRangesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetCheckerIpRangesOutput) GoString() string {
- return s.String()
- }
- // A complex type that contains information about the request to get a geo location.
- type GetGeoLocationInput struct {
- _ struct{} `type:"structure"`
- // The code for a continent geo location. Note: only continent locations have
- // a continent code.
- //
- // Valid values: AF | AN | AS | EU | OC | NA | SA
- //
- // Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode
- // returns an InvalidInput error.
- ContinentCode *string `location:"querystring" locationName:"continentcode" min:"2" type:"string"`
- // The code for a country geo location. The default location uses '*' for the
- // country code and will match all locations that are not matched by a geo location.
- //
- // The default geo location uses a * for the country code. All other country
- // codes follow the ISO 3166 two-character code.
- CountryCode *string `location:"querystring" locationName:"countrycode" min:"1" type:"string"`
- // The code for a country's subdivision (e.g., a province of Canada). A subdivision
- // code is only valid with the appropriate country code.
- //
- // Constraint: Specifying SubdivisionCode without CountryCode returns an InvalidInput
- // error.
- SubdivisionCode *string `location:"querystring" locationName:"subdivisioncode" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s GetGeoLocationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetGeoLocationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetGeoLocationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetGeoLocationInput"}
- if s.ContinentCode != nil && len(*s.ContinentCode) < 2 {
- invalidParams.Add(request.NewErrParamMinLen("ContinentCode", 2))
- }
- if s.CountryCode != nil && len(*s.CountryCode) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("CountryCode", 1))
- }
- if s.SubdivisionCode != nil && len(*s.SubdivisionCode) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SubdivisionCode", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type containing information about the specified geo location.
- type GetGeoLocationOutput struct {
- _ struct{} `type:"structure"`
- // A complex type that contains the information about the specified geo location.
- GeoLocationDetails *GeoLocationDetails `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s GetGeoLocationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetGeoLocationOutput) GoString() string {
- return s.String()
- }
- // To retrieve a count of all your health checks, send a GET request to the
- // /Route 53 API version/healthcheckcount resource.
- type GetHealthCheckCountInput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s GetHealthCheckCountInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetHealthCheckCountInput) GoString() string {
- return s.String()
- }
- // A complex type that contains the count of health checks associated with the
- // current AWS account.
- type GetHealthCheckCountOutput struct {
- _ struct{} `type:"structure"`
- // The number of health checks associated with the current AWS account.
- HealthCheckCount *int64 `type:"long" required:"true"`
- }
- // String returns the string representation
- func (s GetHealthCheckCountOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetHealthCheckCountOutput) GoString() string {
- return s.String()
- }
- // A complex type that contains information about the request to get a health
- // check.
- type GetHealthCheckInput struct {
- _ struct{} `type:"structure"`
- // The ID of the health check to retrieve.
- HealthCheckId *string `location:"uri" locationName:"HealthCheckId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetHealthCheckInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetHealthCheckInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetHealthCheckInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetHealthCheckInput"}
- if s.HealthCheckId == nil {
- invalidParams.Add(request.NewErrParamRequired("HealthCheckId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type that contains information about the request to get the most
- // recent failure reason for a health check.
- type GetHealthCheckLastFailureReasonInput struct {
- _ struct{} `type:"structure"`
- // The ID of the health check for which you want to retrieve the reason for
- // the most recent failure.
- HealthCheckId *string `location:"uri" locationName:"HealthCheckId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetHealthCheckLastFailureReasonInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetHealthCheckLastFailureReasonInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetHealthCheckLastFailureReasonInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetHealthCheckLastFailureReasonInput"}
- if s.HealthCheckId == nil {
- invalidParams.Add(request.NewErrParamRequired("HealthCheckId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type that contains information about the most recent failure for
- // the specified health check.
- type GetHealthCheckLastFailureReasonOutput struct {
- _ struct{} `type:"structure"`
- // A list that contains one HealthCheckObservation element for each Amazon Route
- // 53 health checker.
- HealthCheckObservations []*HealthCheckObservation `locationNameList:"HealthCheckObservation" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s GetHealthCheckLastFailureReasonOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetHealthCheckLastFailureReasonOutput) GoString() string {
- return s.String()
- }
- // A complex type containing information about the specified health check.
- type GetHealthCheckOutput struct {
- _ struct{} `type:"structure"`
- // A complex type that contains the information about the specified health check.
- HealthCheck *HealthCheck `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s GetHealthCheckOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetHealthCheckOutput) GoString() string {
- return s.String()
- }
- // A complex type that contains information about the request to get health
- // check status for a health check.
- type GetHealthCheckStatusInput struct {
- _ struct{} `type:"structure"`
- // If you want Amazon Route 53 to return this resource record set in response
- // to a DNS query only when a health check is passing, include the HealthCheckId
- // element and specify the ID of the applicable health check.
- //
- // Amazon Route 53 determines whether a resource record set is healthy by periodically
- // sending a request to the endpoint that is specified in the health check.
- // If that endpoint returns an HTTP status code of 2xx or 3xx, the endpoint
- // is healthy. If the endpoint returns an HTTP status code of 400 or greater,
- // or if the endpoint doesn't respond for a certain amount of time, Amazon Route
- // 53 considers the endpoint unhealthy and also considers the resource record
- // set unhealthy.
- //
- // The HealthCheckId element is only useful when Amazon Route 53 is choosing
- // between two or more resource record sets to respond to a DNS query, and you
- // want Amazon Route 53 to base the choice in part on the status of a health
- // check. Configuring health checks only makes sense in the following configurations:
- //
- // You're checking the health of the resource record sets in a weighted, latency,
- // geolocation, or failover resource record set, and you specify health check
- // IDs for all of the resource record sets. If the health check for one resource
- // record set specifies an endpoint that is not healthy, Amazon Route 53 stops
- // responding to queries using the value for that resource record set. You set
- // EvaluateTargetHealth to true for the resource record sets in an alias, weighted
- // alias, latency alias, geolocation alias, or failover alias resource record
- // set, and you specify health check IDs for all of the resource record sets
- // that are referenced by the alias resource record sets. For more information
- // about this configuration, see EvaluateTargetHealth.
- //
- // Amazon Route 53 doesn't check the health of the endpoint specified in the
- // resource record set, for example, the endpoint specified by the IP address
- // in the Value element. When you add a HealthCheckId element to a resource
- // record set, Amazon Route 53 checks the health of the endpoint that you specified
- // in the health check.
- //
- // For geolocation resource record sets, if an endpoint is unhealthy, Amazon
- // Route 53 looks for a resource record set for the larger, associated geographic
- // region. For example, suppose you have resource record sets for a state in
- // the United States, for the United States, for North America, and for all
- // locations. If the endpoint for the state resource record set is unhealthy,
- // Amazon Route 53 checks the resource record sets for the United States, for
- // North America, and for all locations (a resource record set for which the
- // value of CountryCode is *), in that order, until it finds a resource record
- // set for which the endpoint is healthy.
- //
- // If your health checks specify the endpoint only by domain name, we recommend
- // that you create a separate health check for each endpoint. For example, create
- // a health check for each HTTP server that is serving content for www.example.com.
- // For the value of FullyQualifiedDomainName, specify the domain name of the
- // server (such as us-east-1-www.example.com), not the name of the resource
- // record sets (example.com).
- //
- // In this configuration, if you create a health check for which the value
- // of FullyQualifiedDomainName matches the name of the resource record sets
- // and then associate the health check with those resource record sets, health
- // check results will be unpredictable.
- HealthCheckId *string `location:"uri" locationName:"HealthCheckId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetHealthCheckStatusInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetHealthCheckStatusInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetHealthCheckStatusInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetHealthCheckStatusInput"}
- if s.HealthCheckId == nil {
- invalidParams.Add(request.NewErrParamRequired("HealthCheckId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type that contains information about the status of the specified
- // health check.
- type GetHealthCheckStatusOutput struct {
- _ struct{} `type:"structure"`
- // A list that contains one HealthCheckObservation element for each Amazon Route
- // 53 health checker.
- HealthCheckObservations []*HealthCheckObservation `locationNameList:"HealthCheckObservation" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s GetHealthCheckStatusOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetHealthCheckStatusOutput) GoString() string {
- return s.String()
- }
- // To retrieve a count of all your hosted zones, send a GET request to the /Route
- // 53 API version/hostedzonecount resource.
- type GetHostedZoneCountInput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s GetHostedZoneCountInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetHostedZoneCountInput) GoString() string {
- return s.String()
- }
- // A complex type that contains the count of hosted zones associated with the
- // current AWS account.
- type GetHostedZoneCountOutput struct {
- _ struct{} `type:"structure"`
- // The number of hosted zones associated with the current AWS account.
- HostedZoneCount *int64 `type:"long" required:"true"`
- }
- // String returns the string representation
- func (s GetHostedZoneCountOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetHostedZoneCountOutput) GoString() string {
- return s.String()
- }
- // The input for a GetHostedZone request.
- type GetHostedZoneInput struct {
- _ struct{} `type:"structure"`
- // The ID of the hosted zone for which you want to get a list of the name servers
- // in the delegation set.
- Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetHostedZoneInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetHostedZoneInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetHostedZoneInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetHostedZoneInput"}
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type containing information about the specified hosted zone.
- type GetHostedZoneOutput struct {
- _ struct{} `type:"structure"`
- // A complex type that contains information about the name servers for the specified
- // hosted zone.
- DelegationSet *DelegationSet `type:"structure"`
- // A complex type that contains the information about the specified hosted zone.
- HostedZone *HostedZone `type:"structure" required:"true"`
- // A complex type that contains information about VPCs associated with the specified
- // hosted zone.
- VPCs []*VPC `locationNameList:"VPC" min:"1" type:"list"`
- }
- // String returns the string representation
- func (s GetHostedZoneOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetHostedZoneOutput) GoString() string {
- return s.String()
- }
- // The input for a GetReusableDelegationSet request.
- type GetReusableDelegationSetInput struct {
- _ struct{} `type:"structure"`
- // The ID of the reusable delegation set for which you want to get a list of
- // the name server.
- Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetReusableDelegationSetInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetReusableDelegationSetInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetReusableDelegationSetInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetReusableDelegationSetInput"}
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type containing information about the specified reusable delegation
- // set.
- type GetReusableDelegationSetOutput struct {
- _ struct{} `type:"structure"`
- // A complex type that contains the information about the nameservers for the
- // specified delegation set ID.
- DelegationSet *DelegationSet `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s GetReusableDelegationSetOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetReusableDelegationSetOutput) GoString() string {
- return s.String()
- }
- // Gets information about a specific traffic policy version. To get the information,
- // send a GET request to the /Route 53 API version/trafficpolicy resource, and
- // specify the ID and the version of the traffic policy.
- type GetTrafficPolicyInput struct {
- _ struct{} `type:"structure"`
- // The ID of the traffic policy that you want to get information about.
- Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
- // The version number of the traffic policy that you want to get information
- // about.
- Version *int64 `location:"uri" locationName:"Version" min:"1" type:"integer" required:"true"`
- }
- // String returns the string representation
- func (s GetTrafficPolicyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetTrafficPolicyInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetTrafficPolicyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetTrafficPolicyInput"}
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if s.Version == nil {
- invalidParams.Add(request.NewErrParamRequired("Version"))
- }
- if s.Version != nil && *s.Version < 1 {
- invalidParams.Add(request.NewErrParamMinValue("Version", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // To retrieve a count of all your traffic policy instances, send a GET request
- // to the /Route 53 API version/trafficpolicyinstancecount resource.
- type GetTrafficPolicyInstanceCountInput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s GetTrafficPolicyInstanceCountInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetTrafficPolicyInstanceCountInput) GoString() string {
- return s.String()
- }
- // A complex type that contains information about the number of traffic policy
- // instances that are associated with the current AWS account.
- type GetTrafficPolicyInstanceCountOutput struct {
- _ struct{} `type:"structure"`
- // The number of traffic policy instances that are associated with the current
- // AWS account.
- TrafficPolicyInstanceCount *int64 `type:"integer" required:"true"`
- }
- // String returns the string representation
- func (s GetTrafficPolicyInstanceCountOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetTrafficPolicyInstanceCountOutput) GoString() string {
- return s.String()
- }
- // Gets information about a specified traffic policy instance.
- //
- // To get information about a traffic policy instance, send a GET request to
- // the /Route 53 API version/trafficpolicyinstance/Id resource.
- type GetTrafficPolicyInstanceInput struct {
- _ struct{} `type:"structure"`
- // The ID of the traffic policy instance that you want to get information about.
- Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetTrafficPolicyInstanceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetTrafficPolicyInstanceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetTrafficPolicyInstanceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetTrafficPolicyInstanceInput"}
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type that contains information about the resource record sets that
- // Amazon Route 53 created based on a specified traffic policy.
- type GetTrafficPolicyInstanceOutput struct {
- _ struct{} `type:"structure"`
- // A complex type that contains settings for the traffic policy instance.
- TrafficPolicyInstance *TrafficPolicyInstance `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s GetTrafficPolicyInstanceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetTrafficPolicyInstanceOutput) GoString() string {
- return s.String()
- }
- // A complex type that contains the response information for the request.
- type GetTrafficPolicyOutput struct {
- _ struct{} `type:"structure"`
- // A complex type that contains settings for the specified traffic policy.
- TrafficPolicy *TrafficPolicy `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s GetTrafficPolicyOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetTrafficPolicyOutput) GoString() string {
- return s.String()
- }
- // A complex type that contains identifying information about the health check.
- type HealthCheck struct {
- _ struct{} `type:"structure"`
- // A unique string that identifies the request to create the health check.
- CallerReference *string `min:"1" type:"string" required:"true"`
- // For CLOUDWATCH_METRIC health checks, a complex type that contains information
- // about the CloudWatch alarm that you're associating with the health check.
- CloudWatchAlarmConfiguration *CloudWatchAlarmConfiguration `type:"structure"`
- // A complex type that contains the health check configuration.
- HealthCheckConfig *HealthCheckConfig `type:"structure" required:"true"`
- // The version of the health check. You can optionally pass this value in a
- // call to UpdateHealthCheck to prevent overwriting another change to the health
- // check.
- HealthCheckVersion *int64 `min:"1" type:"long" required:"true"`
- // The ID of the specified health check.
- Id *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s HealthCheck) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s HealthCheck) GoString() string {
- return s.String()
- }
- // A complex type that contains the health check configuration.
- type HealthCheckConfig struct {
- _ struct{} `type:"structure"`
- // A complex type that contains information to uniquely identify the CloudWatch
- // alarm that you're associating with a Route 53 health check.
- AlarmIdentifier *AlarmIdentifier `type:"structure"`
- // For a specified parent health check, a list of HealthCheckId values for the
- // associated child health checks.
- ChildHealthChecks []*string `locationNameList:"ChildHealthCheck" type:"list"`
- // Specify whether you want Amazon Route 53 to send the value of FullyQualifiedDomainName
- // to the endpoint in the client_hello message during TLS negotiation. If you
- // don't specify a value for EnableSNI, Amazon Route 53 defaults to true when
- // Type is HTTPS or HTTPS_STR_MATCH and defaults to false when Type is any other
- // value.
- EnableSNI *bool `type:"boolean"`
- // The number of consecutive health checks that an endpoint must pass or fail
- // for Amazon Route 53 to change the current status of the endpoint from unhealthy
- // to healthy or vice versa.
- //
- // Valid values are integers between 1 and 10. For more information, see "How
- // Amazon Route 53 Determines Whether an Endpoint Is Healthy" in the Amazon
- // Route 53 Developer Guide.
- FailureThreshold *int64 `min:"1" type:"integer"`
- // Fully qualified domain name of the instance to be health checked.
- FullyQualifiedDomainName *string `type:"string"`
- // The minimum number of child health checks that must be healthy for Amazon
- // Route 53 to consider the parent health check to be healthy. Valid values
- // are integers between 0 and 256, inclusive.
- HealthThreshold *int64 `type:"integer"`
- // IP Address of the instance being checked.
- IPAddress *string `type:"string"`
- // The status of the health check when CloudWatch has insufficient data about
- // the state of associated alarm. Valid values are Healthy, Unhealthy and LastKnownStatus.
- InsufficientDataHealthStatus *string `type:"string" enum:"InsufficientDataHealthStatus"`
- // A boolean value that indicates whether the status of health check should
- // be inverted. For example, if a health check is healthy but Inverted is True,
- // then Amazon Route 53 considers the health check to be unhealthy.
- Inverted *bool `type:"boolean"`
- // A Boolean value that indicates whether you want Amazon Route 53 to measure
- // the latency between health checkers in multiple AWS regions and your endpoint
- // and to display CloudWatch latency graphs in the Amazon Route 53 console.
- MeasureLatency *bool `type:"boolean"`
- // Port on which connection will be opened to the instance to health check.
- // For HTTP and HTTP_STR_MATCH this defaults to 80 if the port is not specified.
- // For HTTPS and HTTPS_STR_MATCH this defaults to 443 if the port is not specified.
- Port *int64 `min:"1" type:"integer"`
- // A list of HealthCheckRegion values that you want Amazon Route 53 to use to
- // perform health checks for the specified endpoint. You must specify at least
- // three regions.
- Regions []*string `locationNameList:"Region" min:"1" type:"list"`
- // The number of seconds between the time that Amazon Route 53 gets a response
- // from your endpoint and the time that it sends the next health-check request.
- //
- // Each Amazon Route 53 health checker makes requests at this interval. Valid
- // values are 10 and 30. The default value is 30.
- RequestInterval *int64 `min:"10" type:"integer"`
- // Path to ping on the instance to check the health. Required for HTTP, HTTPS,
- // HTTP_STR_MATCH, and HTTPS_STR_MATCH health checks. The HTTP request is issued
- // to the instance on the given port and path.
- ResourcePath *string `type:"string"`
- // A string to search for in the body of a health check response. Required for
- // HTTP_STR_MATCH and HTTPS_STR_MATCH health checks. Amazon Route 53 considers
- // case when searching for SearchString in the response body.
- SearchString *string `type:"string"`
- // The type of health check to be performed. Currently supported types are TCP,
- // HTTP, HTTPS, HTTP_STR_MATCH, HTTPS_STR_MATCH, CALCULATED and CLOUDWATCH_METRIC.
- Type *string `type:"string" required:"true" enum:"HealthCheckType"`
- }
- // String returns the string representation
- func (s HealthCheckConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s HealthCheckConfig) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *HealthCheckConfig) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "HealthCheckConfig"}
- if s.FailureThreshold != nil && *s.FailureThreshold < 1 {
- invalidParams.Add(request.NewErrParamMinValue("FailureThreshold", 1))
- }
- if s.Port != nil && *s.Port < 1 {
- invalidParams.Add(request.NewErrParamMinValue("Port", 1))
- }
- if s.Regions != nil && len(s.Regions) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Regions", 1))
- }
- if s.RequestInterval != nil && *s.RequestInterval < 10 {
- invalidParams.Add(request.NewErrParamMinValue("RequestInterval", 10))
- }
- if s.Type == nil {
- invalidParams.Add(request.NewErrParamRequired("Type"))
- }
- if s.AlarmIdentifier != nil {
- if err := s.AlarmIdentifier.Validate(); err != nil {
- invalidParams.AddNested("AlarmIdentifier", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type that contains the IP address of a Amazon Route 53 health checker
- // and the reason for the health check status.
- type HealthCheckObservation struct {
- _ struct{} `type:"structure"`
- // The IP address of the Amazon Route 53 health checker that performed this
- // health check.
- IPAddress *string `type:"string"`
- // The HealthCheckRegion of the Amazon Route 53 health checker that performed
- // this health check.
- Region *string `min:"1" type:"string" enum:"HealthCheckRegion"`
- // A complex type that contains information about the health check status for
- // the current observation.
- StatusReport *StatusReport `type:"structure"`
- }
- // String returns the string representation
- func (s HealthCheckObservation) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s HealthCheckObservation) GoString() string {
- return s.String()
- }
- // A complex type that contain information about the specified hosted zone.
- type HostedZone struct {
- _ struct{} `type:"structure"`
- // A unique string that identifies the request to create the hosted zone.
- CallerReference *string `min:"1" type:"string" required:"true"`
- // A complex type that contains the Comment element.
- Config *HostedZoneConfig `type:"structure"`
- // The ID of the specified hosted zone.
- Id *string `type:"string" required:"true"`
- // The name of the domain. This must be a fully-specified domain, for example,
- // www.example.com. The trailing dot is optional; Amazon Route 53 assumes that
- // the domain name is fully qualified. This means that Amazon Route 53 treats
- // www.example.com (without a trailing dot) and www.example.com. (with a trailing
- // dot) as identical.
- //
- // This is the name you have registered with your DNS registrar. You should
- // ask your registrar to change the authoritative name servers for your domain
- // to the set of NameServers elements returned in DelegationSet.
- Name *string `type:"string" required:"true"`
- // Total number of resource record sets in the hosted zone.
- ResourceRecordSetCount *int64 `type:"long"`
- }
- // String returns the string representation
- func (s HostedZone) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s HostedZone) GoString() string {
- return s.String()
- }
- // A complex type that contains an optional comment about your hosted zone.
- // If you don't want to specify a comment, you can omit the HostedZoneConfig
- // and Comment elements from the XML document.
- type HostedZoneConfig struct {
- _ struct{} `type:"structure"`
- // An optional comment about your hosted zone. If you don't want to specify
- // a comment, you can omit the HostedZoneConfig and Comment elements from the
- // XML document.
- Comment *string `type:"string"`
- // GetHostedZone and ListHostedZone responses: A Boolean value that indicates
- // whether a hosted zone is private.
- //
- // CreateHostedZone requests: When you're creating a private hosted zone (when
- // you specify values for VPCId and VPCRegion), you can optionally specify true
- // for PrivateZone.
- PrivateZone *bool `type:"boolean"`
- }
- // String returns the string representation
- func (s HostedZoneConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s HostedZoneConfig) GoString() string {
- return s.String()
- }
- // The input for a ListChangeBatchesByHostedZone request.
- type ListChangeBatchesByHostedZoneInput struct {
- _ struct{} `deprecated:"true" type:"structure"`
- // The end of the time period you want to see changes for.
- EndDate *string `location:"querystring" locationName:"endDate" deprecated:"true" type:"string" required:"true"`
- // The ID of the hosted zone that you want to see changes for.
- HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"`
- // The page marker.
- Marker *string `location:"querystring" locationName:"marker" type:"string"`
- // The maximum number of items on a page.
- MaxItems *string `location:"querystring" locationName:"maxItems" type:"string"`
- // The start of the time period you want to see changes for.
- StartDate *string `location:"querystring" locationName:"startDate" deprecated:"true" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListChangeBatchesByHostedZoneInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListChangeBatchesByHostedZoneInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListChangeBatchesByHostedZoneInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListChangeBatchesByHostedZoneInput"}
- if s.EndDate == nil {
- invalidParams.Add(request.NewErrParamRequired("EndDate"))
- }
- if s.HostedZoneId == nil {
- invalidParams.Add(request.NewErrParamRequired("HostedZoneId"))
- }
- if s.StartDate == nil {
- invalidParams.Add(request.NewErrParamRequired("StartDate"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The input for a ListChangeBatchesByHostedZone request.
- type ListChangeBatchesByHostedZoneOutput struct {
- _ struct{} `deprecated:"true" type:"structure"`
- // The change batches within the given hosted zone and time period.
- ChangeBatchRecords []*ChangeBatchRecord `locationNameList:"ChangeBatchRecord" min:"1" deprecated:"true" type:"list" required:"true"`
- // A flag that indicates if there are more change batches to list.
- IsTruncated *bool `type:"boolean"`
- // The page marker.
- Marker *string `type:"string" required:"true"`
- // The maximum number of items on a page.
- MaxItems *string `type:"string" required:"true"`
- // The next page marker.
- NextMarker *string `type:"string"`
- }
- // String returns the string representation
- func (s ListChangeBatchesByHostedZoneOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListChangeBatchesByHostedZoneOutput) GoString() string {
- return s.String()
- }
- // The input for a ListChangeBatchesByRRSet request.
- type ListChangeBatchesByRRSetInput struct {
- _ struct{} `deprecated:"true" type:"structure"`
- // The end of the time period you want to see changes for.
- EndDate *string `location:"querystring" locationName:"endDate" deprecated:"true" type:"string" required:"true"`
- // The ID of the hosted zone that you want to see changes for.
- HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"`
- // The page marker.
- Marker *string `location:"querystring" locationName:"marker" type:"string"`
- // The maximum number of items on a page.
- MaxItems *string `location:"querystring" locationName:"maxItems" type:"string"`
- // The name of the RRSet that you want to see changes for.
- Name *string `location:"querystring" locationName:"rrSet_name" type:"string" required:"true"`
- // The identifier of the RRSet that you want to see changes for.
- SetIdentifier *string `location:"querystring" locationName:"identifier" min:"1" type:"string"`
- // The start of the time period you want to see changes for.
- StartDate *string `location:"querystring" locationName:"startDate" deprecated:"true" type:"string" required:"true"`
- // The type of the RRSet that you want to see changes for.
- Type *string `location:"querystring" locationName:"type" type:"string" required:"true" enum:"RRType"`
- }
- // String returns the string representation
- func (s ListChangeBatchesByRRSetInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListChangeBatchesByRRSetInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListChangeBatchesByRRSetInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListChangeBatchesByRRSetInput"}
- if s.EndDate == nil {
- invalidParams.Add(request.NewErrParamRequired("EndDate"))
- }
- if s.HostedZoneId == nil {
- invalidParams.Add(request.NewErrParamRequired("HostedZoneId"))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.SetIdentifier != nil && len(*s.SetIdentifier) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SetIdentifier", 1))
- }
- if s.StartDate == nil {
- invalidParams.Add(request.NewErrParamRequired("StartDate"))
- }
- if s.Type == nil {
- invalidParams.Add(request.NewErrParamRequired("Type"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The input for a ListChangeBatchesByRRSet request.
- type ListChangeBatchesByRRSetOutput struct {
- _ struct{} `deprecated:"true" type:"structure"`
- // The change batches within the given hosted zone and time period.
- ChangeBatchRecords []*ChangeBatchRecord `locationNameList:"ChangeBatchRecord" min:"1" deprecated:"true" type:"list" required:"true"`
- // A flag that indicates if there are more change batches to list.
- IsTruncated *bool `type:"boolean"`
- // The page marker.
- Marker *string `type:"string" required:"true"`
- // The maximum number of items on a page.
- MaxItems *string `type:"string" required:"true"`
- // The next page marker.
- NextMarker *string `type:"string"`
- }
- // String returns the string representation
- func (s ListChangeBatchesByRRSetOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListChangeBatchesByRRSetOutput) GoString() string {
- return s.String()
- }
- // The input for a ListGeoLocations request.
- type ListGeoLocationsInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of geo locations you want in the response body.
- MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"`
- // The first continent code in the lexicographic ordering of geo locations that
- // you want the ListGeoLocations request to list. For non-continent geo locations,
- // this should be null.
- //
- // Valid values: AF | AN | AS | EU | OC | NA | SA
- //
- // Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode
- // returns an InvalidInput error.
- StartContinentCode *string `location:"querystring" locationName:"startcontinentcode" min:"2" type:"string"`
- // The first country code in the lexicographic ordering of geo locations that
- // you want the ListGeoLocations request to list.
- //
- // The default geo location uses a * for the country code. All other country
- // codes follow the ISO 3166 two-character code.
- StartCountryCode *string `location:"querystring" locationName:"startcountrycode" min:"1" type:"string"`
- // The first subdivision code in the lexicographic ordering of geo locations
- // that you want the ListGeoLocations request to list.
- //
- // Constraint: Specifying SubdivisionCode without CountryCode returns an InvalidInput
- // error.
- StartSubdivisionCode *string `location:"querystring" locationName:"startsubdivisioncode" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ListGeoLocationsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListGeoLocationsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListGeoLocationsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListGeoLocationsInput"}
- if s.StartContinentCode != nil && len(*s.StartContinentCode) < 2 {
- invalidParams.Add(request.NewErrParamMinLen("StartContinentCode", 2))
- }
- if s.StartCountryCode != nil && len(*s.StartCountryCode) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("StartCountryCode", 1))
- }
- if s.StartSubdivisionCode != nil && len(*s.StartSubdivisionCode) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("StartSubdivisionCode", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type that contains information about the geo locations that are
- // returned by the request and information about the response.
- type ListGeoLocationsOutput struct {
- _ struct{} `type:"structure"`
- // A complex type that contains information about the geo locations that are
- // returned by the request.
- GeoLocationDetailsList []*GeoLocationDetails `locationNameList:"GeoLocationDetails" type:"list" required:"true"`
- // A flag that indicates whether there are more geo locations to be listed.
- // If your results were truncated, you can make a follow-up request for the
- // next page of results by using the values included in the NextContinentCode,
- // NextCountryCode, and NextSubdivisionCode elements.
- //
- // Valid Values: true | false
- IsTruncated *bool `type:"boolean" required:"true"`
- // The maximum number of records you requested. The maximum value of MaxItems
- // is 100.
- MaxItems *string `type:"string" required:"true"`
- // If the results were truncated, the continent code of the next geo location
- // in the list. This element is present only if IsTruncated is true and the
- // next geo location to list is a continent location.
- NextContinentCode *string `min:"2" type:"string"`
- // If the results were truncated, the country code of the next geo location
- // in the list. This element is present only if IsTruncated is true and the
- // next geo location to list is not a continent location.
- NextCountryCode *string `min:"1" type:"string"`
- // If the results were truncated, the subdivision code of the next geo location
- // in the list. This element is present only if IsTruncated is true and the
- // next geo location has a subdivision.
- NextSubdivisionCode *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ListGeoLocationsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListGeoLocationsOutput) GoString() string {
- return s.String()
- }
- // To retrieve a list of your health checks, send a GET request to the /Route
- // 53 API version/healthcheck resource. The response to this request includes
- // a HealthChecks element with zero or more HealthCheck child elements. By default,
- // the list of health checks is displayed on a single page. You can control
- // the length of the page that is displayed by using the MaxItems parameter.
- // You can use the Marker parameter to control the health check that the list
- // begins with.
- //
- // Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to
- // a value greater than 100, Amazon Route 53 returns only the first 100.
- type ListHealthChecksInput struct {
- _ struct{} `type:"structure"`
- // If the request returned more than one page of results, submit another request
- // and specify the value of NextMarker from the last response in the marker
- // parameter to get the next page of results.
- Marker *string `location:"querystring" locationName:"marker" type:"string"`
- // Specify the maximum number of health checks to return per page of results.
- MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"`
- }
- // String returns the string representation
- func (s ListHealthChecksInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListHealthChecksInput) GoString() string {
- return s.String()
- }
- // A complex type that contains the response for the request.
- type ListHealthChecksOutput struct {
- _ struct{} `type:"structure"`
- // A complex type that contains information about the health checks associated
- // with the current AWS account.
- HealthChecks []*HealthCheck `locationNameList:"HealthCheck" type:"list" required:"true"`
- // A flag indicating whether there are more health checks to be listed. If your
- // results were truncated, you can make a follow-up request for the next page
- // of results by using the Marker element.
- //
- // Valid Values: true | false
- IsTruncated *bool `type:"boolean" required:"true"`
- // If the request returned more than one page of results, submit another request
- // and specify the value of NextMarker from the last response in the marker
- // parameter to get the next page of results.
- Marker *string `type:"string" required:"true"`
- // The maximum number of health checks to be included in the response body.
- // If the number of health checks associated with this AWS account exceeds MaxItems,
- // the value of IsTruncated in the response is true. Call ListHealthChecks again
- // and specify the value of NextMarker from the last response in the Marker
- // element of the next request to get the next page of results.
- MaxItems *string `type:"string" required:"true"`
- // Indicates where to continue listing health checks. If IsTruncated is true,
- // make another request to ListHealthChecks and include the value of the NextMarker
- // element in the Marker element to get the next page of results.
- NextMarker *string `type:"string"`
- }
- // String returns the string representation
- func (s ListHealthChecksOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListHealthChecksOutput) GoString() string {
- return s.String()
- }
- // To retrieve a list of your hosted zones in lexicographic order, send a GET
- // request to the /Route 53 API version/hostedzonesbyname resource. The response
- // to this request includes a HostedZones element with zero or more HostedZone
- // child elements lexicographically ordered by DNS name. By default, the list
- // of hosted zones is displayed on a single page. You can control the length
- // of the page that is displayed by using the MaxItems parameter. You can use
- // the DNSName and HostedZoneId parameters to control the hosted zone that the
- // list begins with.
- type ListHostedZonesByNameInput struct {
- _ struct{} `type:"structure"`
- // The first name in the lexicographic ordering of domain names that you want
- // the ListHostedZonesByNameRequest request to list.
- //
- // If the request returned more than one page of results, submit another request
- // and specify the value of NextDNSName and NextHostedZoneId from the last response
- // in the DNSName and HostedZoneId parameters to get the next page of results.
- DNSName *string `location:"querystring" locationName:"dnsname" type:"string"`
- // If the request returned more than one page of results, submit another request
- // and specify the value of NextDNSName and NextHostedZoneId from the last response
- // in the DNSName and HostedZoneId parameters to get the next page of results.
- HostedZoneId *string `location:"querystring" locationName:"hostedzoneid" type:"string"`
- // Specify the maximum number of hosted zones to return per page of results.
- MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"`
- }
- // String returns the string representation
- func (s ListHostedZonesByNameInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListHostedZonesByNameInput) GoString() string {
- return s.String()
- }
- // A complex type that contains the response for the request.
- type ListHostedZonesByNameOutput struct {
- _ struct{} `type:"structure"`
- // The DNSName value sent in the request.
- DNSName *string `type:"string"`
- // The HostedZoneId value sent in the request.
- HostedZoneId *string `type:"string"`
- // A complex type that contains information about the hosted zones associated
- // with the current AWS account.
- HostedZones []*HostedZone `locationNameList:"HostedZone" type:"list" required:"true"`
- // A flag indicating whether there are more hosted zones to be listed. If your
- // results were truncated, you can make a follow-up request for the next page
- // of results by using the NextDNSName and NextHostedZoneId elements.
- //
- // Valid Values: true | false
- IsTruncated *bool `type:"boolean" required:"true"`
- // The maximum number of hosted zones to be included in the response body. If
- // the number of hosted zones associated with this AWS account exceeds MaxItems,
- // the value of IsTruncated in the ListHostedZonesByNameResponse is true. Call
- // ListHostedZonesByName again and specify the value of NextDNSName and NextHostedZoneId
- // elements from the previous response to get the next page of results.
- MaxItems *string `type:"string" required:"true"`
- // If the value of IsTruncated in the ListHostedZonesByNameResponse is true,
- // there are more hosted zones associated with the current AWS account. To get
- // the next page of results, make another request to ListHostedZonesByName.
- // Specify the value of NextDNSName in the DNSName parameter. Specify NextHostedZoneId
- // in the HostedZoneId parameter.
- NextDNSName *string `type:"string"`
- // If the value of IsTruncated in the ListHostedZonesByNameResponse is true,
- // there are more hosted zones associated with the current AWS account. To get
- // the next page of results, make another request to ListHostedZonesByName.
- // Specify the value of NextDNSName in the DNSName parameter. Specify NextHostedZoneId
- // in the HostedZoneId parameter.
- NextHostedZoneId *string `type:"string"`
- }
- // String returns the string representation
- func (s ListHostedZonesByNameOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListHostedZonesByNameOutput) GoString() string {
- return s.String()
- }
- // To retrieve a list of your hosted zones, send a GET request to the /Route
- // 53 API version/hostedzone resource. The response to this request includes
- // a HostedZones element with zero or more HostedZone child elements. By default,
- // the list of hosted zones is displayed on a single page. You can control the
- // length of the page that is displayed by using the MaxItems parameter. You
- // can use the Marker parameter to control the hosted zone that the list begins
- // with.
- //
- // Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to a
- // value greater than 100, Amazon Route 53 returns only the first 100.
- type ListHostedZonesInput struct {
- _ struct{} `type:"structure"`
- DelegationSetId *string `location:"querystring" locationName:"delegationsetid" type:"string"`
- // If the request returned more than one page of results, submit another request
- // and specify the value of NextMarker from the last response in the marker
- // parameter to get the next page of results.
- Marker *string `location:"querystring" locationName:"marker" type:"string"`
- // Specify the maximum number of hosted zones to return per page of results.
- MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"`
- }
- // String returns the string representation
- func (s ListHostedZonesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListHostedZonesInput) GoString() string {
- return s.String()
- }
- // A complex type that contains the response for the request.
- type ListHostedZonesOutput struct {
- _ struct{} `type:"structure"`
- // A complex type that contains information about the hosted zones associated
- // with the current AWS account.
- HostedZones []*HostedZone `locationNameList:"HostedZone" type:"list" required:"true"`
- // A flag indicating whether there are more hosted zones to be listed. If your
- // results were truncated, you can make a follow-up request for the next page
- // of results by using the Marker element.
- //
- // Valid Values: true | false
- IsTruncated *bool `type:"boolean" required:"true"`
- // If the request returned more than one page of results, submit another request
- // and specify the value of NextMarker from the last response in the marker
- // parameter to get the next page of results.
- Marker *string `type:"string" required:"true"`
- // The maximum number of hosted zones to be included in the response body. If
- // the number of hosted zones associated with this AWS account exceeds MaxItems,
- // the value of IsTruncated in the response is true. Call ListHostedZones again
- // and specify the value of NextMarker in the Marker parameter to get the next
- // page of results.
- MaxItems *string `type:"string" required:"true"`
- // Indicates where to continue listing hosted zones. If IsTruncated is true,
- // make another request to ListHostedZones and include the value of the NextMarker
- // element in the Marker element to get the next page of results.
- NextMarker *string `type:"string"`
- }
- // String returns the string representation
- func (s ListHostedZonesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListHostedZonesOutput) GoString() string {
- return s.String()
- }
- // The input for a ListResourceRecordSets request.
- type ListResourceRecordSetsInput struct {
- _ struct{} `type:"structure"`
- // The ID of the hosted zone that contains the resource record sets that you
- // want to get.
- HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"`
- // The maximum number of records you want in the response body.
- MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"`
- // Weighted resource record sets only: If results were truncated for a given
- // DNS name and type, specify the value of NextRecordIdentifier from the previous
- // response to get the next resource record set that has the current DNS name
- // and type.
- StartRecordIdentifier *string `location:"querystring" locationName:"identifier" min:"1" type:"string"`
- // The first name in the lexicographic ordering of domain names that you want
- // the ListResourceRecordSets request to list.
- StartRecordName *string `location:"querystring" locationName:"name" type:"string"`
- // The DNS type at which to begin the listing of resource record sets.
- //
- // Valid values: A | AAAA | CNAME | MX | NS | PTR | SOA | SPF | SRV | TXT
- //
- // Values for Weighted Resource Record Sets: A | AAAA | CNAME | TXT
- //
- // Values for Regional Resource Record Sets: A | AAAA | CNAME | TXT
- //
- // Values for Alias Resource Record Sets: A | AAAA
- //
- // Constraint: Specifying type without specifying name returns an InvalidInput
- // error.
- StartRecordType *string `location:"querystring" locationName:"type" type:"string" enum:"RRType"`
- }
- // String returns the string representation
- func (s ListResourceRecordSetsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListResourceRecordSetsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListResourceRecordSetsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListResourceRecordSetsInput"}
- if s.HostedZoneId == nil {
- invalidParams.Add(request.NewErrParamRequired("HostedZoneId"))
- }
- if s.StartRecordIdentifier != nil && len(*s.StartRecordIdentifier) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("StartRecordIdentifier", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type that contains information about the resource record sets that
- // are returned by the request and information about the response.
- type ListResourceRecordSetsOutput struct {
- _ struct{} `type:"structure"`
- // A flag that indicates whether there are more resource record sets to be listed.
- // If your results were truncated, you can make a follow-up request for the
- // next page of results by using the NextRecordName element.
- //
- // Valid Values: true | false
- IsTruncated *bool `type:"boolean" required:"true"`
- // The maximum number of records you requested. The maximum value of MaxItems
- // is 100.
- MaxItems *string `type:"string" required:"true"`
- // Weighted resource record sets only: If results were truncated for a given
- // DNS name and type, the value of SetIdentifier for the next resource record
- // set that has the current DNS name and type.
- NextRecordIdentifier *string `min:"1" type:"string"`
- // If the results were truncated, the name of the next record in the list. This
- // element is present only if IsTruncated is true.
- NextRecordName *string `type:"string"`
- // If the results were truncated, the type of the next record in the list. This
- // element is present only if IsTruncated is true.
- NextRecordType *string `type:"string" enum:"RRType"`
- // A complex type that contains information about the resource record sets that
- // are returned by the request.
- ResourceRecordSets []*ResourceRecordSet `locationNameList:"ResourceRecordSet" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s ListResourceRecordSetsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListResourceRecordSetsOutput) GoString() string {
- return s.String()
- }
- // To retrieve a list of your reusable delegation sets, send a GET request to
- // the /Route 53 API version/delegationset resource. The response to this request
- // includes a DelegationSets element with zero or more DelegationSet child elements.
- // By default, the list of reusable delegation sets is displayed on a single
- // page. You can control the length of the page that is displayed by using the
- // MaxItems parameter. You can use the Marker parameter to control the delegation
- // set that the list begins with.
- //
- // Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to
- // a value greater than 100, Amazon Route 53 returns only the first 100.
- type ListReusableDelegationSetsInput struct {
- _ struct{} `type:"structure"`
- // If the request returned more than one page of results, submit another request
- // and specify the value of NextMarker from the last response in the marker
- // parameter to get the next page of results.
- Marker *string `location:"querystring" locationName:"marker" type:"string"`
- // Specify the maximum number of reusable delegation sets to return per page
- // of results.
- MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"`
- }
- // String returns the string representation
- func (s ListReusableDelegationSetsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListReusableDelegationSetsInput) GoString() string {
- return s.String()
- }
- // A complex type that contains the response for the request.
- type ListReusableDelegationSetsOutput struct {
- _ struct{} `type:"structure"`
- // A complex type that contains information about the reusable delegation sets
- // associated with the current AWS account.
- DelegationSets []*DelegationSet `locationNameList:"DelegationSet" type:"list" required:"true"`
- // A flag indicating whether there are more reusable delegation sets to be listed.
- // If your results were truncated, you can make a follow-up request for the
- // next page of results by using the Marker element.
- //
- // Valid Values: true | false
- IsTruncated *bool `type:"boolean" required:"true"`
- // If the request returned more than one page of results, submit another request
- // and specify the value of NextMarker from the last response in the marker
- // parameter to get the next page of results.
- Marker *string `type:"string" required:"true"`
- // The maximum number of reusable delegation sets to be included in the response
- // body. If the number of reusable delegation sets associated with this AWS
- // account exceeds MaxItems, the value of IsTruncated in the response is true.
- // To get the next page of results, call ListReusableDelegationSets again and
- // specify the value of NextMarker from the previous response in the Marker
- // element of the request.
- MaxItems *string `type:"string" required:"true"`
- // Indicates where to continue listing reusable delegation sets. If IsTruncated
- // is true, make another request to ListReusableDelegationSets and include the
- // value of the NextMarker element in the Marker element of the previous response
- // to get the next page of results.
- NextMarker *string `type:"string"`
- }
- // String returns the string representation
- func (s ListReusableDelegationSetsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListReusableDelegationSetsOutput) GoString() string {
- return s.String()
- }
- // A complex type containing information about a request for a list of the tags
- // that are associated with an individual resource.
- type ListTagsForResourceInput struct {
- _ struct{} `type:"structure"`
- // The ID of the resource for which you want to retrieve tags.
- ResourceId *string `location:"uri" locationName:"ResourceId" type:"string" required:"true"`
- // The type of the resource.
- //
- // - The resource type for health checks is healthcheck.
- //
- // - The resource type for hosted zones is hostedzone.
- ResourceType *string `location:"uri" locationName:"ResourceType" type:"string" required:"true" enum:"TagResourceType"`
- }
- // String returns the string representation
- func (s ListTagsForResourceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTagsForResourceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListTagsForResourceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
- if s.ResourceId == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceId"))
- }
- if s.ResourceType == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceType"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type containing tags for the specified resource.
- type ListTagsForResourceOutput struct {
- _ struct{} `type:"structure"`
- // A ResourceTagSet containing tags associated with the specified resource.
- ResourceTagSet *ResourceTagSet `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s ListTagsForResourceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTagsForResourceOutput) GoString() string {
- return s.String()
- }
- // A complex type containing information about a request for a list of the tags
- // that are associated with up to 10 specified resources.
- type ListTagsForResourcesInput struct {
- _ struct{} `locationName:"ListTagsForResourcesRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
- // A complex type that contains the ResourceId element for each resource for
- // which you want to get a list of tags.
- ResourceIds []*string `locationNameList:"ResourceId" min:"1" type:"list" required:"true"`
- // The type of the resources.
- //
- // - The resource type for health checks is healthcheck.
- //
- // - The resource type for hosted zones is hostedzone.
- ResourceType *string `location:"uri" locationName:"ResourceType" type:"string" required:"true" enum:"TagResourceType"`
- }
- // String returns the string representation
- func (s ListTagsForResourcesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTagsForResourcesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListTagsForResourcesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourcesInput"}
- if s.ResourceIds == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceIds"))
- }
- if s.ResourceIds != nil && len(s.ResourceIds) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ResourceIds", 1))
- }
- if s.ResourceType == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceType"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type containing tags for the specified resources.
- type ListTagsForResourcesOutput struct {
- _ struct{} `type:"structure"`
- // A list of ResourceTagSets containing tags associated with the specified resources.
- ResourceTagSets []*ResourceTagSet `locationNameList:"ResourceTagSet" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s ListTagsForResourcesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTagsForResourcesOutput) GoString() string {
- return s.String()
- }
- // A complex type that contains the information about the request to list the
- // traffic policies that are associated with the current AWS account.
- type ListTrafficPoliciesInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of traffic policies to be included in the response body
- // for this request. If you have more than MaxItems traffic policies, the value
- // of the IsTruncated element in the response is true, and the value of the
- // TrafficPolicyIdMarker element is the ID of the first traffic policy in the
- // next group of MaxItems traffic policies.
- MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"`
- // For your first request to ListTrafficPolicies, do not include the TrafficPolicyIdMarker
- // parameter.
- //
- // If you have more traffic policies than the value of MaxItems, ListTrafficPolicies
- // returns only the first MaxItems traffic policies. To get the next group of
- // MaxItems policies, submit another request to ListTrafficPolicies. For the
- // value of TrafficPolicyIdMarker, specify the value of the TrafficPolicyIdMarker
- // element that was returned in the previous response.
- //
- // Policies are listed in the order in which they were created.
- TrafficPolicyIdMarker *string `location:"querystring" locationName:"trafficpolicyid" type:"string"`
- }
- // String returns the string representation
- func (s ListTrafficPoliciesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTrafficPoliciesInput) GoString() string {
- return s.String()
- }
- // A complex type that contains the response information for the request.
- type ListTrafficPoliciesOutput struct {
- _ struct{} `type:"structure"`
- // A flag that indicates whether there are more traffic policies to be listed.
- // If the response was truncated, you can get the next group of MaxItems traffic
- // policies by calling ListTrafficPolicies again and specifying the value of
- // the TrafficPolicyIdMarker element in the TrafficPolicyIdMarker request parameter.
- //
- // Valid Values: true | false
- IsTruncated *bool `type:"boolean" required:"true"`
- // The value that you specified for the MaxItems parameter in the call to ListTrafficPolicies
- // that produced the current response.
- MaxItems *string `type:"string" required:"true"`
- // If the value of IsTruncated is true, TrafficPolicyIdMarker is the ID of the
- // first traffic policy in the next group of MaxItems traffic policies.
- TrafficPolicyIdMarker *string `type:"string" required:"true"`
- // A list that contains one TrafficPolicySummary element for each traffic policy
- // that was created by the current AWS account.
- TrafficPolicySummaries []*TrafficPolicySummary `locationNameList:"TrafficPolicySummary" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s ListTrafficPoliciesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTrafficPoliciesOutput) GoString() string {
- return s.String()
- }
- // A request for the traffic policy instances that you created in a specified
- // hosted zone.
- type ListTrafficPolicyInstancesByHostedZoneInput struct {
- _ struct{} `type:"structure"`
- // The ID of the hosted zone for which you want to list traffic policy instances.
- HostedZoneId *string `location:"querystring" locationName:"id" type:"string" required:"true"`
- // The maximum number of traffic policy instances to be included in the response
- // body for this request. If you have more than MaxItems traffic policy instances,
- // the value of the IsTruncated element in the response is true, and the values
- // of HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker
- // represent the first traffic policy instance in the next group of MaxItems
- // traffic policy instances.
- MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"`
- // For the first request to ListTrafficPolicyInstancesByHostedZone, omit this
- // value.
- //
- // If the value of IsTruncated in the previous response was true, TrafficPolicyInstanceNameMarker
- // is the name of the first traffic policy instance in the next group of MaxItems
- // traffic policy instances.
- //
- // If the value of IsTruncated in the previous response was false, there are
- // no more traffic policy instances to get for this hosted zone.
- //
- // If the value of IsTruncated in the previous response was false, omit this
- // value.
- TrafficPolicyInstanceNameMarker *string `location:"querystring" locationName:"trafficpolicyinstancename" type:"string"`
- // For the first request to ListTrafficPolicyInstancesByHostedZone, omit this
- // value.
- //
- // If the value of IsTruncated in the previous response was true, TrafficPolicyInstanceTypeMarker
- // is the DNS type of the first traffic policy instance in the next group of
- // MaxItems traffic policy instances.
- //
- // If the value of IsTruncated in the previous response was false, there are
- // no more traffic policy instances to get for this hosted zone.
- TrafficPolicyInstanceTypeMarker *string `location:"querystring" locationName:"trafficpolicyinstancetype" type:"string" enum:"RRType"`
- }
- // String returns the string representation
- func (s ListTrafficPolicyInstancesByHostedZoneInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTrafficPolicyInstancesByHostedZoneInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListTrafficPolicyInstancesByHostedZoneInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListTrafficPolicyInstancesByHostedZoneInput"}
- if s.HostedZoneId == nil {
- invalidParams.Add(request.NewErrParamRequired("HostedZoneId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type that contains the response information for the request.
- type ListTrafficPolicyInstancesByHostedZoneOutput struct {
- _ struct{} `type:"structure"`
- // A flag that indicates whether there are more traffic policy instances to
- // be listed. If the response was truncated, you can get the next group of MaxItems
- // traffic policy instances by calling ListTrafficPolicyInstancesByHostedZone
- // again and specifying the values of the HostedZoneIdMarker, TrafficPolicyInstanceNameMarker,
- // and TrafficPolicyInstanceTypeMarker elements in the corresponding request
- // parameters.
- //
- // Valid Values: true | false
- IsTruncated *bool `type:"boolean" required:"true"`
- // The value that you specified for the MaxItems parameter in the call to ListTrafficPolicyInstancesByHostedZone
- // that produced the current response.
- MaxItems *string `type:"string" required:"true"`
- // If IsTruncated is true, TrafficPolicyInstanceNameMarker is the name of the
- // first traffic policy instance in the next group of MaxItems traffic policy
- // instances.
- TrafficPolicyInstanceNameMarker *string `type:"string"`
- // If IsTruncated is true, TrafficPolicyInstanceTypeMarker is the DNS type of
- // the resource record sets that are associated with the first traffic policy
- // instance in the next group of MaxItems traffic policy instances.
- TrafficPolicyInstanceTypeMarker *string `type:"string" enum:"RRType"`
- // A list that contains one TrafficPolicyInstance element for each traffic policy
- // instance that matches the elements in the request.
- TrafficPolicyInstances []*TrafficPolicyInstance `locationNameList:"TrafficPolicyInstance" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s ListTrafficPolicyInstancesByHostedZoneOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTrafficPolicyInstancesByHostedZoneOutput) GoString() string {
- return s.String()
- }
- // A complex type that contains the information about the request to list your
- // traffic policy instances.
- type ListTrafficPolicyInstancesByPolicyInput struct {
- _ struct{} `type:"structure"`
- // For the first request to ListTrafficPolicyInstancesByPolicy, omit this value.
- //
- // If the value of IsTruncated in the previous response was true, HostedZoneIdMarker
- // is the ID of the hosted zone for the first traffic policy instance in the
- // next group of MaxItems traffic policy instances.
- //
- // If the value of IsTruncated in the previous response was false, there are
- // no more traffic policy instances to get for this hosted zone.
- //
- // If the value of IsTruncated in the previous response was false, omit this
- // value.
- HostedZoneIdMarker *string `location:"querystring" locationName:"hostedzoneid" type:"string"`
- // The maximum number of traffic policy instances to be included in the response
- // body for this request. If you have more than MaxItems traffic policy instances,
- // the value of the IsTruncated element in the response is true, and the values
- // of HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker
- // represent the first traffic policy instance in the next group of MaxItems
- // traffic policy instances.
- MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"`
- // The ID of the traffic policy for which you want to list traffic policy instances.
- TrafficPolicyId *string `location:"querystring" locationName:"id" type:"string" required:"true"`
- // For the first request to ListTrafficPolicyInstancesByPolicy, omit this value.
- //
- // If the value of IsTruncated in the previous response was true, TrafficPolicyInstanceNameMarker
- // is the name of the first traffic policy instance in the next group of MaxItems
- // traffic policy instances.
- //
- // If the value of IsTruncated in the previous response was false, there are
- // no more traffic policy instances to get for this hosted zone.
- //
- // If the value of IsTruncated in the previous response was false, omit this
- // value.
- TrafficPolicyInstanceNameMarker *string `location:"querystring" locationName:"trafficpolicyinstancename" type:"string"`
- // For the first request to ListTrafficPolicyInstancesByPolicy, omit this value.
- //
- // If the value of IsTruncated in the previous response was true, TrafficPolicyInstanceTypeMarker
- // is the DNS type of the first traffic policy instance in the next group of
- // MaxItems traffic policy instances.
- //
- // If the value of IsTruncated in the previous response was false, there are
- // no more traffic policy instances to get for this hosted zone.
- TrafficPolicyInstanceTypeMarker *string `location:"querystring" locationName:"trafficpolicyinstancetype" type:"string" enum:"RRType"`
- // The version of the traffic policy for which you want to list traffic policy
- // instances. The version must be associated with the traffic policy that is
- // specified by TrafficPolicyId.
- TrafficPolicyVersion *int64 `location:"querystring" locationName:"version" min:"1" type:"integer" required:"true"`
- }
- // String returns the string representation
- func (s ListTrafficPolicyInstancesByPolicyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTrafficPolicyInstancesByPolicyInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListTrafficPolicyInstancesByPolicyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListTrafficPolicyInstancesByPolicyInput"}
- if s.TrafficPolicyId == nil {
- invalidParams.Add(request.NewErrParamRequired("TrafficPolicyId"))
- }
- if s.TrafficPolicyVersion == nil {
- invalidParams.Add(request.NewErrParamRequired("TrafficPolicyVersion"))
- }
- if s.TrafficPolicyVersion != nil && *s.TrafficPolicyVersion < 1 {
- invalidParams.Add(request.NewErrParamMinValue("TrafficPolicyVersion", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type that contains the response information for the request.
- type ListTrafficPolicyInstancesByPolicyOutput struct {
- _ struct{} `type:"structure"`
- // If IsTruncated is true, HostedZoneIdMarker is the ID of the hosted zone of
- // the first traffic policy instance in the next group of MaxItems traffic policy
- // instances.
- HostedZoneIdMarker *string `type:"string"`
- // A flag that indicates whether there are more traffic policy instances to
- // be listed. If the response was truncated, you can get the next group of MaxItems
- // traffic policy instances by calling ListTrafficPolicyInstancesByPolicy again
- // and specifying the values of the HostedZoneIdMarker, TrafficPolicyInstanceNameMarker,
- // and TrafficPolicyInstanceTypeMarker elements in the corresponding request
- // parameters.
- //
- // Valid Values: true | false
- IsTruncated *bool `type:"boolean" required:"true"`
- // The value that you specified for the MaxItems parameter in the call to ListTrafficPolicyInstancesByPolicy
- // that produced the current response.
- MaxItems *string `type:"string" required:"true"`
- // If IsTruncated is true, TrafficPolicyInstanceNameMarker is the name of the
- // first traffic policy instance in the next group of MaxItems traffic policy
- // instances.
- TrafficPolicyInstanceNameMarker *string `type:"string"`
- // If IsTruncated is true, TrafficPolicyInstanceTypeMarker is the DNS type of
- // the resource record sets that are associated with the first traffic policy
- // instance in the next group of MaxItems traffic policy instances.
- TrafficPolicyInstanceTypeMarker *string `type:"string" enum:"RRType"`
- // A list that contains one TrafficPolicyInstance element for each traffic policy
- // instance that matches the elements in the request.
- TrafficPolicyInstances []*TrafficPolicyInstance `locationNameList:"TrafficPolicyInstance" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s ListTrafficPolicyInstancesByPolicyOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTrafficPolicyInstancesByPolicyOutput) GoString() string {
- return s.String()
- }
- // A complex type that contains the information about the request to list your
- // traffic policy instances.
- type ListTrafficPolicyInstancesInput struct {
- _ struct{} `type:"structure"`
- // For the first request to ListTrafficPolicyInstances, omit this value.
- //
- // If the value of IsTruncated in the previous response was true, you have
- // more traffic policy instances. To get the next group of MaxItems traffic
- // policy instances, submit another ListTrafficPolicyInstances request. For
- // the value of HostedZoneIdMarker, specify the value of HostedZoneIdMarker
- // from the previous response, which is the hosted zone ID of the first traffic
- // policy instance in the next group of MaxItems traffic policy instances.
- //
- // If the value of IsTruncated in the previous response was false, there are
- // no more traffic policy instances to get.
- HostedZoneIdMarker *string `location:"querystring" locationName:"hostedzoneid" type:"string"`
- // The maximum number of traffic policy instances to be included in the response
- // body for this request. If you have more than MaxItems traffic policy instances,
- // the value of the IsTruncated element in the response is true, and the values
- // of HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker
- // represent the first traffic policy instance in the next group of MaxItems
- // traffic policy instances.
- MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"`
- // For the first request to ListTrafficPolicyInstances, omit this value.
- //
- // If the value of IsTruncated in the previous response was true, TrafficPolicyInstanceNameMarker
- // is the name of the first traffic policy instance in the next group of MaxItems
- // traffic policy instances.
- //
- // If the value of IsTruncated in the previous response was false, there are
- // no more traffic policy instances to get.
- TrafficPolicyInstanceNameMarker *string `location:"querystring" locationName:"trafficpolicyinstancename" type:"string"`
- // For the first request to ListTrafficPolicyInstances, omit this value.
- //
- // If the value of IsTruncated in the previous response was true, TrafficPolicyInstanceTypeMarker
- // is the DNS type of the first traffic policy instance in the next group of
- // MaxItems traffic policy instances.
- //
- // If the value of IsTruncated in the previous response was false, there are
- // no more traffic policy instances to get.
- TrafficPolicyInstanceTypeMarker *string `location:"querystring" locationName:"trafficpolicyinstancetype" type:"string" enum:"RRType"`
- }
- // String returns the string representation
- func (s ListTrafficPolicyInstancesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTrafficPolicyInstancesInput) GoString() string {
- return s.String()
- }
- // A complex type that contains the response information for the request.
- type ListTrafficPolicyInstancesOutput struct {
- _ struct{} `type:"structure"`
- // If IsTruncated is true, HostedZoneIdMarker is the ID of the hosted zone of
- // the first traffic policy instance in the next group of MaxItems traffic policy
- // instances.
- HostedZoneIdMarker *string `type:"string"`
- // A flag that indicates whether there are more traffic policy instances to
- // be listed. If the response was truncated, you can get the next group of MaxItems
- // traffic policy instances by calling ListTrafficPolicyInstances again and
- // specifying the values of the HostedZoneIdMarker, TrafficPolicyInstanceNameMarker,
- // and TrafficPolicyInstanceTypeMarker elements in the corresponding request
- // parameters.
- //
- // Valid Values: true | false
- IsTruncated *bool `type:"boolean" required:"true"`
- // The value that you specified for the MaxItems parameter in the call to ListTrafficPolicyInstances
- // that produced the current response.
- MaxItems *string `type:"string" required:"true"`
- // If IsTruncated is true, TrafficPolicyInstanceNameMarker is the name of the
- // first traffic policy instance in the next group of MaxItems traffic policy
- // instances.
- TrafficPolicyInstanceNameMarker *string `type:"string"`
- // If IsTruncated is true, TrafficPolicyInstanceTypeMarker is the DNS type of
- // the resource record sets that are associated with the first traffic policy
- // instance in the next group of MaxItems traffic policy instances.
- TrafficPolicyInstanceTypeMarker *string `type:"string" enum:"RRType"`
- // A list that contains one TrafficPolicyInstance element for each traffic policy
- // instance that matches the elements in the request.
- TrafficPolicyInstances []*TrafficPolicyInstance `locationNameList:"TrafficPolicyInstance" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s ListTrafficPolicyInstancesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTrafficPolicyInstancesOutput) GoString() string {
- return s.String()
- }
- // A complex type that contains the information about the request to list your
- // traffic policies.
- type ListTrafficPolicyVersionsInput struct {
- _ struct{} `type:"structure"`
- // Specify the value of Id of the traffic policy for which you want to list
- // all versions.
- Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
- // The maximum number of traffic policy versions that you want Amazon Route
- // 53 to include in the response body for this request. If the specified traffic
- // policy has more than MaxItems versions, the value of the IsTruncated element
- // in the response is true, and the value of the TrafficPolicyVersionMarker
- // element is the ID of the first version in the next group of MaxItems traffic
- // policy versions.
- MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"`
- // For your first request to ListTrafficPolicyVersions, do not include the TrafficPolicyVersionMarker
- // parameter.
- //
- // If you have more traffic policy versions than the value of MaxItems, ListTrafficPolicyVersions
- // returns only the first group of MaxItems versions. To get the next group
- // of MaxItems traffic policy versions, submit another request to ListTrafficPolicyVersions.
- // For the value of TrafficPolicyVersionMarker, specify the value of the TrafficPolicyVersionMarker
- // element that was returned in the previous response.
- //
- // Traffic policy versions are listed in sequential order.
- TrafficPolicyVersionMarker *string `location:"querystring" locationName:"trafficpolicyversion" type:"string"`
- }
- // String returns the string representation
- func (s ListTrafficPolicyVersionsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTrafficPolicyVersionsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListTrafficPolicyVersionsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListTrafficPolicyVersionsInput"}
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type that contains the response information for the request.
- type ListTrafficPolicyVersionsOutput struct {
- _ struct{} `type:"structure"`
- // A flag that indicates whether there are more traffic policies to be listed.
- // If the response was truncated, you can get the next group of maxitems traffic
- // policies by calling ListTrafficPolicyVersions again and specifying the value
- // of the NextMarker element in the marker parameter.
- //
- // Valid Values: true | false
- IsTruncated *bool `type:"boolean" required:"true"`
- // The value that you specified for the maxitems parameter in the call to ListTrafficPolicyVersions
- // that produced the current response.
- MaxItems *string `type:"string" required:"true"`
- // A list that contains one TrafficPolicy element for each traffic policy version
- // that is associated with the specified traffic policy.
- TrafficPolicies []*TrafficPolicy `locationNameList:"TrafficPolicy" type:"list" required:"true"`
- // If IsTruncated is true, the value of TrafficPolicyVersionMarker identifies
- // the first traffic policy in the next group of MaxItems traffic policies.
- // Call ListTrafficPolicyVersions again and specify the value of TrafficPolicyVersionMarker
- // in the TrafficPolicyVersionMarker request parameter.
- //
- // This element is present only if IsTruncated is true.
- TrafficPolicyVersionMarker *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListTrafficPolicyVersionsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTrafficPolicyVersionsOutput) GoString() string {
- return s.String()
- }
- // A complex type that contains the value of the Value element for the current
- // resource record set.
- type ResourceRecord struct {
- _ struct{} `type:"structure"`
- // The current or new DNS record value, not to exceed 4,000 characters. In the
- // case of a DELETE action, if the current value does not match the actual value,
- // an error is returned. For descriptions about how to format Value for different
- // record types, see Supported DNS Resource Record Types (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/ResourceRecordTypes.html)
- // in the Amazon Route 53 Developer Guide.
- //
- // You can specify more than one value for all record types except CNAME and
- // SOA.
- Value *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ResourceRecord) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ResourceRecord) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ResourceRecord) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ResourceRecord"}
- if s.Value == nil {
- invalidParams.Add(request.NewErrParamRequired("Value"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type that contains information about the current resource record
- // set.
- type ResourceRecordSet struct {
- _ struct{} `type:"structure"`
- // Alias resource record sets only: Information about the AWS resource to which
- // you are redirecting traffic.
- AliasTarget *AliasTarget `type:"structure"`
- // Failover resource record sets only: To configure failover, you add the Failover
- // element to two resource record sets. For one resource record set, you specify
- // PRIMARY as the value for Failover; for the other resource record set, you
- // specify SECONDARY. In addition, you include the HealthCheckId element and
- // specify the health check that you want Amazon Route 53 to perform for each
- // resource record set.
- //
- // You can create failover and failover alias resource record sets only in
- // public hosted zones. Except where noted, the following failover behaviors
- // assume that you have included the HealthCheckId element in both resource
- // record sets:
- //
- // When the primary resource record set is healthy, Amazon Route 53 responds
- // to DNS queries with the applicable value from the primary resource record
- // set regardless of the health of the secondary resource record set. When the
- // primary resource record set is unhealthy and the secondary resource record
- // set is healthy, Amazon Route 53 responds to DNS queries with the applicable
- // value from the secondary resource record set. When the secondary resource
- // record set is unhealthy, Amazon Route 53 responds to DNS queries with the
- // applicable value from the primary resource record set regardless of the health
- // of the primary resource record set. If you omit the HealthCheckId element
- // for the secondary resource record set, and if the primary resource record
- // set is unhealthy, Amazon Route 53 always responds to DNS queries with the
- // applicable value from the secondary resource record set. This is true regardless
- // of the health of the associated endpoint. You cannot create non-failover
- // resource record sets that have the same values for the Name and Type elements
- // as failover resource record sets.
- //
- // For failover alias resource record sets, you must also include the EvaluateTargetHealth
- // element and set the value to true.
- //
- // For more information about configuring failover for Amazon Route 53, see
- // Amazon Route 53 Health Checks and DNS Failover (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html)
- // in the Amazon Route 53 Developer Guide.
- //
- // Valid values: PRIMARY | SECONDARY
- Failover *string `type:"string" enum:"ResourceRecordSetFailover"`
- // Geo location resource record sets only: A complex type that lets you control
- // how Amazon Route 53 responds to DNS queries based on the geographic origin
- // of the query. For example, if you want all queries from Africa to be routed
- // to a web server with an IP address of 192.0.2.111, create a resource record
- // set with a Type of A and a ContinentCode of AF.
- //
- // You can create geolocation and geolocation alias resource record sets only
- // in public hosted zones. If you create separate resource record sets for overlapping
- // geographic regions (for example, one resource record set for a continent
- // and one for a country on the same continent), priority goes to the smallest
- // geographic region. This allows you to route most queries for a continent
- // to one resource and to route queries for a country on that continent to a
- // different resource.
- //
- // You cannot create two geolocation resource record sets that specify the
- // same geographic location.
- //
- // The value * in the CountryCode element matches all geographic locations
- // that aren't specified in other geolocation resource record sets that have
- // the same values for the Name and Type elements.
- //
- // Geolocation works by mapping IP addresses to locations. However, some IP
- // addresses aren't mapped to geographic locations, so even if you create geolocation
- // resource record sets that cover all seven continents, Amazon Route 53 will
- // receive some DNS queries from locations that it can't identify. We recommend
- // that you create a resource record set for which the value of CountryCode
- // is *, which handles both queries that come from locations for which you haven't
- // created geolocation resource record sets and queries from IP addresses that
- // aren't mapped to a location. If you don't create a * resource record set,
- // Amazon Route 53 returns a "no answer" response for queries from those locations.
- // You cannot create non-geolocation resource record sets that have the same
- // values for the Name and Type elements as geolocation resource record sets.
- GeoLocation *GeoLocation `type:"structure"`
- // Health Check resource record sets only, not required for alias resource record
- // sets: An identifier that is used to identify health check associated with
- // the resource record set.
- HealthCheckId *string `type:"string"`
- // The name of the domain you want to perform the action on.
- //
- // Enter a fully qualified domain name, for example, www.example.com. You can
- // optionally include a trailing dot. If you omit the trailing dot, Amazon Route
- // 53 still assumes that the domain name that you specify is fully qualified.
- // This means that Amazon Route 53 treats www.example.com (without a trailing
- // dot) and www.example.com. (with a trailing dot) as identical.
- //
- // For information about how to specify characters other than a-z, 0-9, and
- // - (hyphen) and how to specify internationalized domain names, see DNS Domain
- // Name Format (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html)
- // in the Amazon Route 53 Developer Guide.
- //
- // You can use an asterisk (*) character in the name. DNS treats the * character
- // either as a wildcard or as the * character (ASCII 42), depending on where
- // it appears in the name. For more information, see Using an Asterisk (*) in
- // the Names of Hosted Zones and Resource Record Sets (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html#domain-name-format-asterisk)
- // in the Amazon Route 53 Developer Guide
- //
- // You can't use the * wildcard for resource records sets that have a type
- // of NS.
- Name *string `type:"string" required:"true"`
- // Latency-based resource record sets only: The Amazon EC2 region where the
- // resource that is specified in this resource record set resides. The resource
- // typically is an AWS resource, such as an Amazon EC2 instance or an ELB load
- // balancer, and is referred to by an IP address or a DNS domain name, depending
- // on the record type.
- //
- // You can create latency and latency alias resource record sets only in public
- // hosted zones. When Amazon Route 53 receives a DNS query for a domain name
- // and type for which you have created latency resource record sets, Amazon
- // Route 53 selects the latency resource record set that has the lowest latency
- // between the end user and the associated Amazon EC2 region. Amazon Route 53
- // then returns the value that is associated with the selected resource record
- // set.
- //
- // Note the following:
- //
- // You can only specify one ResourceRecord per latency resource record set.
- // You can only create one latency resource record set for each Amazon EC2 region.
- // You are not required to create latency resource record sets for all Amazon
- // EC2 regions. Amazon Route 53 will choose the region with the best latency
- // from among the regions for which you create latency resource record sets.
- // You cannot create non-latency resource record sets that have the same values
- // for the Name and Type elements as latency resource record sets.
- Region *string `min:"1" type:"string" enum:"ResourceRecordSetRegion"`
- // A complex type that contains the resource records for the current resource
- // record set.
- ResourceRecords []*ResourceRecord `locationNameList:"ResourceRecord" min:"1" type:"list"`
- // Weighted, Latency, Geo, and Failover resource record sets only: An identifier
- // that differentiates among multiple resource record sets that have the same
- // combination of DNS name and type. The value of SetIdentifier must be unique
- // for each resource record set that has the same combination of DNS name and
- // type.
- SetIdentifier *string `min:"1" type:"string"`
- // The cache time to live for the current resource record set. Note the following:
- //
- // If you're creating a non-alias resource record set, TTL is required. If
- // you're creating an alias resource record set, omit TTL. Amazon Route 53 uses
- // the value of TTL for the alias target. If you're associating this resource
- // record set with a health check (if you're adding a HealthCheckId element),
- // we recommend that you specify a TTL of 60 seconds or less so clients respond
- // quickly to changes in health status. All of the resource record sets in a
- // group of weighted, latency, geolocation, or failover resource record sets
- // must have the same value for TTL. If a group of weighted resource record
- // sets includes one or more weighted alias resource record sets for which the
- // alias target is an ELB load balancer, we recommend that you specify a TTL
- // of 60 seconds for all of the non-alias weighted resource record sets that
- // have the same name and type. Values other than 60 seconds (the TTL for load
- // balancers) will change the effect of the values that you specify for Weight.
- TTL *int64 `type:"long"`
- TrafficPolicyInstanceId *string `type:"string"`
- // The DNS record type. For information about different record types and how
- // data is encoded for them, see Supported DNS Resource Record Types (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/ResourceRecordTypes.html)
- // in the Amazon Route 53 Developer Guide.
- //
- // Valid values for basic resource record sets: A | AAAA | CNAME | MX | NS
- // | PTR | SOA | SPF | SRV | TXT
- //
- // Values for weighted, latency, geolocation, and failover resource record
- // sets: A | AAAA | CNAME | MX | PTR | SPF | SRV | TXT. When creating a group
- // of weighted, latency, geolocation, or failover resource record sets, specify
- // the same value for all of the resource record sets in the group.
- //
- // SPF records were formerly used to verify the identity of the sender of email
- // messages. However, we no longer recommend that you create resource record
- // sets for which the value of Type is SPF. RFC 7208, Sender Policy Framework
- // (SPF) for Authorizing Use of Domains in Email, Version 1, has been updated
- // to say, "...[I]ts existence and mechanism defined in [RFC4408] have led to
- // some interoperability issues. Accordingly, its use is no longer appropriate
- // for SPF version 1; implementations are not to use it." In RFC 7208, see section
- // 14.1, The SPF DNS Record Type (http://tools.ietf.org/html/rfc7208#section-14.1).
- // Values for alias resource record sets:
- //
- // CloudFront distributions: A ELB load balancers: A | AAAA Amazon S3 buckets:
- // A Another resource record set in this hosted zone: Specify the type of the
- // resource record set for which you're creating the alias. Specify any value
- // except NS or SOA.
- Type *string `type:"string" required:"true" enum:"RRType"`
- // Weighted resource record sets only: Among resource record sets that have
- // the same combination of DNS name and type, a value that determines the proportion
- // of DNS queries that Amazon Route 53 responds to using the current resource
- // record set. Amazon Route 53 calculates the sum of the weights for the resource
- // record sets that have the same combination of DNS name and type. Amazon Route
- // 53 then responds to queries based on the ratio of a resource's weight to
- // the total. Note the following:
- //
- // You must specify a value for the Weight element for every weighted resource
- // record set. You can only specify one ResourceRecord per weighted resource
- // record set. You cannot create latency, failover, or geolocation resource
- // record sets that have the same values for the Name and Type elements as weighted
- // resource record sets. You can create a maximum of 100 weighted resource record
- // sets that have the same values for the Name and Type elements. For weighted
- // (but not weighted alias) resource record sets, if you set Weight to 0 for
- // a resource record set, Amazon Route 53 never responds to queries with the
- // applicable value for that resource record set. However, if you set Weight
- // to 0 for all resource record sets that have the same combination of DNS name
- // and type, traffic is routed to all resources with equal probability.
- //
- // The effect of setting Weight to 0 is different when you associate health
- // checks with weighted resource record sets. For more information, see Options
- // for Configuring Amazon Route 53 Active-Active and Active-Passive Failover
- // (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-configuring-options.html)
- // in the Amazon Route 53 Developer Guide.
- Weight *int64 `type:"long"`
- }
- // String returns the string representation
- func (s ResourceRecordSet) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ResourceRecordSet) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ResourceRecordSet) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ResourceRecordSet"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Region != nil && len(*s.Region) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Region", 1))
- }
- if s.ResourceRecords != nil && len(s.ResourceRecords) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ResourceRecords", 1))
- }
- if s.SetIdentifier != nil && len(*s.SetIdentifier) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SetIdentifier", 1))
- }
- if s.Type == nil {
- invalidParams.Add(request.NewErrParamRequired("Type"))
- }
- if s.AliasTarget != nil {
- if err := s.AliasTarget.Validate(); err != nil {
- invalidParams.AddNested("AliasTarget", err.(request.ErrInvalidParams))
- }
- }
- if s.GeoLocation != nil {
- if err := s.GeoLocation.Validate(); err != nil {
- invalidParams.AddNested("GeoLocation", err.(request.ErrInvalidParams))
- }
- }
- if s.ResourceRecords != nil {
- for i, v := range s.ResourceRecords {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ResourceRecords", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type containing a resource and its associated tags.
- type ResourceTagSet struct {
- _ struct{} `type:"structure"`
- // The ID for the specified resource.
- ResourceId *string `type:"string"`
- // The type of the resource.
- //
- // - The resource type for health checks is healthcheck.
- //
- // - The resource type for hosted zones is hostedzone.
- ResourceType *string `type:"string" enum:"TagResourceType"`
- // The tags associated with the specified resource.
- Tags []*Tag `locationNameList:"Tag" min:"1" type:"list"`
- }
- // String returns the string representation
- func (s ResourceTagSet) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ResourceTagSet) GoString() string {
- return s.String()
- }
- // A complex type that contains information about the health check status for
- // the current observation.
- type StatusReport struct {
- _ struct{} `type:"structure"`
- // The date and time the health check status was observed, in the format YYYY-MM-DDThh:mm:ssZ,
- // as specified in the ISO 8601 standard (for example, 2009-11-19T19:37:58Z).
- // The Z after the time indicates that the time is listed in Coordinated Universal
- // Time (UTC).
- CheckedTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
- // The observed health check status.
- Status *string `type:"string"`
- }
- // String returns the string representation
- func (s StatusReport) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StatusReport) GoString() string {
- return s.String()
- }
- // A single tag containing a key and value.
- type Tag struct {
- _ struct{} `type:"structure"`
- // The key for a Tag.
- Key *string `type:"string"`
- // The value for a Tag.
- Value *string `type:"string"`
- }
- // String returns the string representation
- func (s Tag) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Tag) GoString() string {
- return s.String()
- }
- type TrafficPolicy struct {
- _ struct{} `type:"structure"`
- Comment *string `type:"string"`
- Document *string `type:"string" required:"true"`
- Id *string `type:"string" required:"true"`
- Name *string `type:"string" required:"true"`
- Type *string `type:"string" required:"true" enum:"RRType"`
- Version *int64 `min:"1" type:"integer" required:"true"`
- }
- // String returns the string representation
- func (s TrafficPolicy) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TrafficPolicy) GoString() string {
- return s.String()
- }
- type TrafficPolicyInstance struct {
- _ struct{} `type:"structure"`
- HostedZoneId *string `type:"string" required:"true"`
- Id *string `type:"string" required:"true"`
- Message *string `type:"string" required:"true"`
- Name *string `type:"string" required:"true"`
- State *string `type:"string" required:"true"`
- TTL *int64 `type:"long" required:"true"`
- TrafficPolicyId *string `type:"string" required:"true"`
- TrafficPolicyType *string `type:"string" required:"true" enum:"RRType"`
- TrafficPolicyVersion *int64 `min:"1" type:"integer" required:"true"`
- }
- // String returns the string representation
- func (s TrafficPolicyInstance) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TrafficPolicyInstance) GoString() string {
- return s.String()
- }
- type TrafficPolicySummary struct {
- _ struct{} `type:"structure"`
- Id *string `type:"string" required:"true"`
- LatestVersion *int64 `min:"1" type:"integer" required:"true"`
- Name *string `type:"string" required:"true"`
- TrafficPolicyCount *int64 `min:"1" type:"integer" required:"true"`
- Type *string `type:"string" required:"true" enum:"RRType"`
- }
- // String returns the string representation
- func (s TrafficPolicySummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TrafficPolicySummary) GoString() string {
- return s.String()
- }
- // >A complex type that contains information about the request to update a health
- // check.
- type UpdateHealthCheckInput struct {
- _ struct{} `locationName:"UpdateHealthCheckRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
- // A complex type that contains information to uniquely identify the CloudWatch
- // alarm that you're associating with a Route 53 health check.
- AlarmIdentifier *AlarmIdentifier `type:"structure"`
- // For a specified parent health check, a list of HealthCheckId values for the
- // associated child health checks.
- //
- // Specify this value only if you want to change it.
- ChildHealthChecks []*string `locationNameList:"ChildHealthCheck" type:"list"`
- // Specify whether you want Amazon Route 53 to send the value of FullyQualifiedDomainName
- // to the endpoint in the client_hello message during TLS negotiation. If you
- // don't specify a value for EnableSNI, Amazon Route 53 defaults to true when
- // Type is HTTPS or HTTPS_STR_MATCH and defaults to false when Type is any other
- // value.
- //
- // Specify this value only if you want to change it.
- EnableSNI *bool `type:"boolean"`
- // The number of consecutive health checks that an endpoint must pass or fail
- // for Amazon Route 53 to change the current status of the endpoint from unhealthy
- // to healthy or vice versa.
- //
- // Valid values are integers between 1 and 10. For more information, see "How
- // Amazon Route 53 Determines Whether an Endpoint Is Healthy" in the Amazon
- // Route 53 Developer Guide.
- //
- // Specify this value only if you want to change it.
- FailureThreshold *int64 `min:"1" type:"integer"`
- // Fully qualified domain name of the instance to be health checked.
- //
- // Specify this value only if you want to change it.
- FullyQualifiedDomainName *string `type:"string"`
- // The ID of the health check to update.
- HealthCheckId *string `location:"uri" locationName:"HealthCheckId" type:"string" required:"true"`
- // Optional. When you specify a health check version, Amazon Route 53 compares
- // this value with the current value in the health check, which prevents you
- // from updating the health check when the versions don't match. Using HealthCheckVersion
- // lets you prevent overwriting another change to the health check.
- HealthCheckVersion *int64 `min:"1" type:"long"`
- // The minimum number of child health checks that must be healthy for Amazon
- // Route 53 to consider the parent health check to be healthy. Valid values
- // are integers between 0 and 256, inclusive.
- //
- // Specify this value only if you want to change it.
- HealthThreshold *int64 `type:"integer"`
- // The IP address of the resource that you want to check.
- //
- // Specify this value only if you want to change it.
- IPAddress *string `type:"string"`
- InsufficientDataHealthStatus *string `type:"string" enum:"InsufficientDataHealthStatus"`
- // A boolean value that indicates whether the status of health check should
- // be inverted. For example, if a health check is healthy but Inverted is True,
- // then Amazon Route 53 considers the health check to be unhealthy.
- //
- // Specify this value only if you want to change it.
- Inverted *bool `type:"boolean"`
- // The port on which you want Amazon Route 53 to open a connection to perform
- // health checks.
- //
- // Specify this value only if you want to change it.
- Port *int64 `min:"1" type:"integer"`
- // A list of HealthCheckRegion values that specify the Amazon EC2 regions that
- // you want Amazon Route 53 to use to perform health checks. You must specify
- // at least three regions.
- //
- // When you remove a region from the list, Amazon Route 53 will briefly continue
- // to check your endpoint from that region. Specify this value only if you want
- // to change it.
- Regions []*string `locationNameList:"Region" min:"1" type:"list"`
- // The path that you want Amazon Route 53 to request when performing health
- // checks. The path can be any value for which your endpoint will return an
- // HTTP status code of 2xx or 3xx when the endpoint is healthy, for example
- // the file /docs/route53-health-check.html.
- //
- // Specify this value only if you want to change it.
- ResourcePath *string `type:"string"`
- // If the value of Type is HTTP_STR_MATCH or HTTP_STR_MATCH, the string that
- // you want Amazon Route 53 to search for in the response body from the specified
- // resource. If the string appears in the response body, Amazon Route 53 considers
- // the resource healthy. Amazon Route 53 considers case when searching for SearchString
- // in the response body.
- //
- // Specify this value only if you want to change it.
- SearchString *string `type:"string"`
- }
- // String returns the string representation
- func (s UpdateHealthCheckInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateHealthCheckInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateHealthCheckInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateHealthCheckInput"}
- if s.FailureThreshold != nil && *s.FailureThreshold < 1 {
- invalidParams.Add(request.NewErrParamMinValue("FailureThreshold", 1))
- }
- if s.HealthCheckId == nil {
- invalidParams.Add(request.NewErrParamRequired("HealthCheckId"))
- }
- if s.HealthCheckVersion != nil && *s.HealthCheckVersion < 1 {
- invalidParams.Add(request.NewErrParamMinValue("HealthCheckVersion", 1))
- }
- if s.Port != nil && *s.Port < 1 {
- invalidParams.Add(request.NewErrParamMinValue("Port", 1))
- }
- if s.Regions != nil && len(s.Regions) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Regions", 1))
- }
- if s.AlarmIdentifier != nil {
- if err := s.AlarmIdentifier.Validate(); err != nil {
- invalidParams.AddNested("AlarmIdentifier", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type UpdateHealthCheckOutput struct {
- _ struct{} `type:"structure"`
- // A complex type that contains identifying information about the health check.
- HealthCheck *HealthCheck `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s UpdateHealthCheckOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateHealthCheckOutput) GoString() string {
- return s.String()
- }
- // A complex type that contains information about the request to update a hosted
- // zone comment.
- type UpdateHostedZoneCommentInput struct {
- _ struct{} `locationName:"UpdateHostedZoneCommentRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
- // A comment about your hosted zone.
- Comment *string `type:"string"`
- // The ID of the hosted zone you want to update.
- Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateHostedZoneCommentInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateHostedZoneCommentInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateHostedZoneCommentInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateHostedZoneCommentInput"}
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type containing information about the specified hosted zone after
- // the update.
- type UpdateHostedZoneCommentOutput struct {
- _ struct{} `type:"structure"`
- // A complex type that contain information about the specified hosted zone.
- HostedZone *HostedZone `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s UpdateHostedZoneCommentOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateHostedZoneCommentOutput) GoString() string {
- return s.String()
- }
- // A complex type that contains information about the traffic policy for which
- // you want to update the comment.
- type UpdateTrafficPolicyCommentInput struct {
- _ struct{} `locationName:"UpdateTrafficPolicyCommentRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
- // The new comment for the specified traffic policy and version.
- Comment *string `type:"string" required:"true"`
- // The value of Id for the traffic policy for which you want to update the comment.
- Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
- // The value of Version for the traffic policy for which you want to update
- // the comment.
- Version *int64 `location:"uri" locationName:"Version" min:"1" type:"integer" required:"true"`
- }
- // String returns the string representation
- func (s UpdateTrafficPolicyCommentInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateTrafficPolicyCommentInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateTrafficPolicyCommentInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateTrafficPolicyCommentInput"}
- if s.Comment == nil {
- invalidParams.Add(request.NewErrParamRequired("Comment"))
- }
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if s.Version == nil {
- invalidParams.Add(request.NewErrParamRequired("Version"))
- }
- if s.Version != nil && *s.Version < 1 {
- invalidParams.Add(request.NewErrParamMinValue("Version", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type that contains the response information for the traffic policy.
- type UpdateTrafficPolicyCommentOutput struct {
- _ struct{} `type:"structure"`
- // A complex type that contains settings for the specified traffic policy.
- TrafficPolicy *TrafficPolicy `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s UpdateTrafficPolicyCommentOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateTrafficPolicyCommentOutput) GoString() string {
- return s.String()
- }
- // A complex type that contains information about the resource record sets that
- // you want to update based on a specified traffic policy instance.
- type UpdateTrafficPolicyInstanceInput struct {
- _ struct{} `locationName:"UpdateTrafficPolicyInstanceRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
- // The ID of the traffic policy instance that you want to update.
- Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
- // The TTL that you want Amazon Route 53 to assign to all of the updated resource
- // record sets.
- TTL *int64 `type:"long" required:"true"`
- // The ID of the traffic policy that you want Amazon Route 53 to use to update
- // resource record sets for the specified traffic policy instance.
- TrafficPolicyId *string `type:"string" required:"true"`
- // The version of the traffic policy that you want Amazon Route 53 to use to
- // update resource record sets for the specified traffic policy instance.
- TrafficPolicyVersion *int64 `min:"1" type:"integer" required:"true"`
- }
- // String returns the string representation
- func (s UpdateTrafficPolicyInstanceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateTrafficPolicyInstanceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateTrafficPolicyInstanceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateTrafficPolicyInstanceInput"}
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if s.TTL == nil {
- invalidParams.Add(request.NewErrParamRequired("TTL"))
- }
- if s.TrafficPolicyId == nil {
- invalidParams.Add(request.NewErrParamRequired("TrafficPolicyId"))
- }
- if s.TrafficPolicyVersion == nil {
- invalidParams.Add(request.NewErrParamRequired("TrafficPolicyVersion"))
- }
- if s.TrafficPolicyVersion != nil && *s.TrafficPolicyVersion < 1 {
- invalidParams.Add(request.NewErrParamMinValue("TrafficPolicyVersion", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A complex type that contains information about the resource record sets that
- // Amazon Route 53 created based on a specified traffic policy.
- type UpdateTrafficPolicyInstanceOutput struct {
- _ struct{} `type:"structure"`
- // A complex type that contains settings for the updated traffic policy instance.
- TrafficPolicyInstance *TrafficPolicyInstance `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s UpdateTrafficPolicyInstanceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateTrafficPolicyInstanceOutput) GoString() string {
- return s.String()
- }
- type VPC struct {
- _ struct{} `type:"structure"`
- // A VPC ID
- VPCId *string `type:"string"`
- VPCRegion *string `min:"1" type:"string" enum:"VPCRegion"`
- }
- // String returns the string representation
- func (s VPC) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s VPC) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *VPC) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "VPC"}
- if s.VPCRegion != nil && len(*s.VPCRegion) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("VPCRegion", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- const (
- // @enum ChangeAction
- ChangeActionCreate = "CREATE"
- // @enum ChangeAction
- ChangeActionDelete = "DELETE"
- // @enum ChangeAction
- ChangeActionUpsert = "UPSERT"
- )
- const (
- // @enum ChangeStatus
- ChangeStatusPending = "PENDING"
- // @enum ChangeStatus
- ChangeStatusInsync = "INSYNC"
- )
- const (
- // @enum CloudWatchRegion
- CloudWatchRegionUsEast1 = "us-east-1"
- // @enum CloudWatchRegion
- CloudWatchRegionUsWest1 = "us-west-1"
- // @enum CloudWatchRegion
- CloudWatchRegionUsWest2 = "us-west-2"
- // @enum CloudWatchRegion
- CloudWatchRegionEuCentral1 = "eu-central-1"
- // @enum CloudWatchRegion
- CloudWatchRegionEuWest1 = "eu-west-1"
- // @enum CloudWatchRegion
- CloudWatchRegionApSoutheast1 = "ap-southeast-1"
- // @enum CloudWatchRegion
- CloudWatchRegionApSoutheast2 = "ap-southeast-2"
- // @enum CloudWatchRegion
- CloudWatchRegionApNortheast1 = "ap-northeast-1"
- // @enum CloudWatchRegion
- CloudWatchRegionApNortheast2 = "ap-northeast-2"
- // @enum CloudWatchRegion
- CloudWatchRegionSaEast1 = "sa-east-1"
- )
- const (
- // @enum ComparisonOperator
- ComparisonOperatorGreaterThanOrEqualToThreshold = "GreaterThanOrEqualToThreshold"
- // @enum ComparisonOperator
- ComparisonOperatorGreaterThanThreshold = "GreaterThanThreshold"
- // @enum ComparisonOperator
- ComparisonOperatorLessThanThreshold = "LessThanThreshold"
- // @enum ComparisonOperator
- ComparisonOperatorLessThanOrEqualToThreshold = "LessThanOrEqualToThreshold"
- )
- // An Amazon EC2 region that you want Amazon Route 53 to use to perform health
- // checks.
- const (
- // @enum HealthCheckRegion
- HealthCheckRegionUsEast1 = "us-east-1"
- // @enum HealthCheckRegion
- HealthCheckRegionUsWest1 = "us-west-1"
- // @enum HealthCheckRegion
- HealthCheckRegionUsWest2 = "us-west-2"
- // @enum HealthCheckRegion
- HealthCheckRegionEuWest1 = "eu-west-1"
- // @enum HealthCheckRegion
- HealthCheckRegionApSoutheast1 = "ap-southeast-1"
- // @enum HealthCheckRegion
- HealthCheckRegionApSoutheast2 = "ap-southeast-2"
- // @enum HealthCheckRegion
- HealthCheckRegionApNortheast1 = "ap-northeast-1"
- // @enum HealthCheckRegion
- HealthCheckRegionSaEast1 = "sa-east-1"
- )
- const (
- // @enum HealthCheckType
- HealthCheckTypeHttp = "HTTP"
- // @enum HealthCheckType
- HealthCheckTypeHttps = "HTTPS"
- // @enum HealthCheckType
- HealthCheckTypeHttpStrMatch = "HTTP_STR_MATCH"
- // @enum HealthCheckType
- HealthCheckTypeHttpsStrMatch = "HTTPS_STR_MATCH"
- // @enum HealthCheckType
- HealthCheckTypeTcp = "TCP"
- // @enum HealthCheckType
- HealthCheckTypeCalculated = "CALCULATED"
- // @enum HealthCheckType
- HealthCheckTypeCloudwatchMetric = "CLOUDWATCH_METRIC"
- )
- const (
- // @enum InsufficientDataHealthStatus
- InsufficientDataHealthStatusHealthy = "Healthy"
- // @enum InsufficientDataHealthStatus
- InsufficientDataHealthStatusUnhealthy = "Unhealthy"
- // @enum InsufficientDataHealthStatus
- InsufficientDataHealthStatusLastKnownStatus = "LastKnownStatus"
- )
- const (
- // @enum RRType
- RRTypeSoa = "SOA"
- // @enum RRType
- RRTypeA = "A"
- // @enum RRType
- RRTypeTxt = "TXT"
- // @enum RRType
- RRTypeNs = "NS"
- // @enum RRType
- RRTypeCname = "CNAME"
- // @enum RRType
- RRTypeMx = "MX"
- // @enum RRType
- RRTypePtr = "PTR"
- // @enum RRType
- RRTypeSrv = "SRV"
- // @enum RRType
- RRTypeSpf = "SPF"
- // @enum RRType
- RRTypeAaaa = "AAAA"
- )
- const (
- // @enum ResourceRecordSetFailover
- ResourceRecordSetFailoverPrimary = "PRIMARY"
- // @enum ResourceRecordSetFailover
- ResourceRecordSetFailoverSecondary = "SECONDARY"
- )
- const (
- // @enum ResourceRecordSetRegion
- ResourceRecordSetRegionUsEast1 = "us-east-1"
- // @enum ResourceRecordSetRegion
- ResourceRecordSetRegionUsWest1 = "us-west-1"
- // @enum ResourceRecordSetRegion
- ResourceRecordSetRegionUsWest2 = "us-west-2"
- // @enum ResourceRecordSetRegion
- ResourceRecordSetRegionEuWest1 = "eu-west-1"
- // @enum ResourceRecordSetRegion
- ResourceRecordSetRegionEuCentral1 = "eu-central-1"
- // @enum ResourceRecordSetRegion
- ResourceRecordSetRegionApSoutheast1 = "ap-southeast-1"
- // @enum ResourceRecordSetRegion
- ResourceRecordSetRegionApSoutheast2 = "ap-southeast-2"
- // @enum ResourceRecordSetRegion
- ResourceRecordSetRegionApNortheast1 = "ap-northeast-1"
- // @enum ResourceRecordSetRegion
- ResourceRecordSetRegionApNortheast2 = "ap-northeast-2"
- // @enum ResourceRecordSetRegion
- ResourceRecordSetRegionSaEast1 = "sa-east-1"
- // @enum ResourceRecordSetRegion
- ResourceRecordSetRegionCnNorth1 = "cn-north-1"
- // @enum ResourceRecordSetRegion
- ResourceRecordSetRegionApSouth1 = "ap-south-1"
- )
- const (
- // @enum Statistic
- StatisticAverage = "Average"
- // @enum Statistic
- StatisticSum = "Sum"
- // @enum Statistic
- StatisticSampleCount = "SampleCount"
- // @enum Statistic
- StatisticMaximum = "Maximum"
- // @enum Statistic
- StatisticMinimum = "Minimum"
- )
- const (
- // @enum TagResourceType
- TagResourceTypeHealthcheck = "healthcheck"
- // @enum TagResourceType
- TagResourceTypeHostedzone = "hostedzone"
- )
- const (
- // @enum VPCRegion
- VPCRegionUsEast1 = "us-east-1"
- // @enum VPCRegion
- VPCRegionUsWest1 = "us-west-1"
- // @enum VPCRegion
- VPCRegionUsWest2 = "us-west-2"
- // @enum VPCRegion
- VPCRegionEuWest1 = "eu-west-1"
- // @enum VPCRegion
- VPCRegionEuCentral1 = "eu-central-1"
- // @enum VPCRegion
- VPCRegionApSoutheast1 = "ap-southeast-1"
- // @enum VPCRegion
- VPCRegionApSoutheast2 = "ap-southeast-2"
- // @enum VPCRegion
- VPCRegionApSouth1 = "ap-south-1"
- // @enum VPCRegion
- VPCRegionApNortheast1 = "ap-northeast-1"
- // @enum VPCRegion
- VPCRegionApNortheast2 = "ap-northeast-2"
- // @enum VPCRegion
- VPCRegionSaEast1 = "sa-east-1"
- // @enum VPCRegion
- VPCRegionCnNorth1 = "cn-north-1"
- )
|