api.go 129 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package route53 provides a client for Amazon Route 53.
  3. package route53
  4. import (
  5. "time"
  6. "github.com/aws/aws-sdk-go/aws/awsutil"
  7. "github.com/aws/aws-sdk-go/aws/request"
  8. )
  9. const opAssociateVPCWithHostedZone = "AssociateVPCWithHostedZone"
  10. // AssociateVPCWithHostedZoneRequest generates a request for the AssociateVPCWithHostedZone operation.
  11. func (c *Route53) AssociateVPCWithHostedZoneRequest(input *AssociateVPCWithHostedZoneInput) (req *request.Request, output *AssociateVPCWithHostedZoneOutput) {
  12. op := &request.Operation{
  13. Name: opAssociateVPCWithHostedZone,
  14. HTTPMethod: "POST",
  15. HTTPPath: "/2013-04-01/hostedzone/{Id}/associatevpc",
  16. }
  17. if input == nil {
  18. input = &AssociateVPCWithHostedZoneInput{}
  19. }
  20. req = c.newRequest(op, input, output)
  21. output = &AssociateVPCWithHostedZoneOutput{}
  22. req.Data = output
  23. return
  24. }
  25. // This action associates a VPC with an hosted zone.
  26. //
  27. // To associate a VPC with an hosted zone, send a POST request to the 2013-04-01/hostedzone/hosted
  28. // zone ID/associatevpc resource. The request body must include an XML document
  29. // with a AssociateVPCWithHostedZoneRequest element. The response returns the
  30. // AssociateVPCWithHostedZoneResponse element that contains ChangeInfo for you
  31. // to track the progress of the AssociateVPCWithHostedZoneRequest you made.
  32. // See GetChange operation for how to track the progress of your change.
  33. func (c *Route53) AssociateVPCWithHostedZone(input *AssociateVPCWithHostedZoneInput) (*AssociateVPCWithHostedZoneOutput, error) {
  34. req, out := c.AssociateVPCWithHostedZoneRequest(input)
  35. err := req.Send()
  36. return out, err
  37. }
  38. const opChangeResourceRecordSets = "ChangeResourceRecordSets"
  39. // ChangeResourceRecordSetsRequest generates a request for the ChangeResourceRecordSets operation.
  40. func (c *Route53) ChangeResourceRecordSetsRequest(input *ChangeResourceRecordSetsInput) (req *request.Request, output *ChangeResourceRecordSetsOutput) {
  41. op := &request.Operation{
  42. Name: opChangeResourceRecordSets,
  43. HTTPMethod: "POST",
  44. HTTPPath: "/2013-04-01/hostedzone/{Id}/rrset/",
  45. }
  46. if input == nil {
  47. input = &ChangeResourceRecordSetsInput{}
  48. }
  49. req = c.newRequest(op, input, output)
  50. output = &ChangeResourceRecordSetsOutput{}
  51. req.Data = output
  52. return
  53. }
  54. // Use this action to create or change your authoritative DNS information. To
  55. // use this action, send a POST request to the 2013-04-01/hostedzone/hosted
  56. // Zone ID/rrset resource. The request body must include an XML document with
  57. // a ChangeResourceRecordSetsRequest element.
  58. //
  59. // Changes are a list of change items and are considered transactional. For
  60. // more information on transactional changes, also known as change batches,
  61. // see Creating, Changing, and Deleting Resource Record Sets Using the Route
  62. // 53 API (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/RRSchanges.html#RRSchanges_API)
  63. // in the Amazon Route 53 Developer Guide.
  64. //
  65. // Due to the nature of transactional changes, you cannot delete the same resource
  66. // record set more than once in a single change batch. If you attempt to delete
  67. // the same change batch more than once, Route 53 returns an InvalidChangeBatch
  68. // error. In response to a ChangeResourceRecordSets request, your DNS data is
  69. // changed on all Route 53 DNS servers. Initially, the status of a change is
  70. // PENDING. This means the change has not yet propagated to all the authoritative
  71. // Route 53 DNS servers. When the change is propagated to all hosts, the change
  72. // returns a status of INSYNC.
  73. //
  74. // Note the following limitations on a ChangeResourceRecordSets request:
  75. //
  76. // - A request cannot contain more than 100 Change elements.
  77. //
  78. // - A request cannot contain more than 1000 ResourceRecord elements.
  79. //
  80. // The sum of the number of characters (including spaces) in all Value elements
  81. // in a request cannot exceed 32,000 characters.
  82. func (c *Route53) ChangeResourceRecordSets(input *ChangeResourceRecordSetsInput) (*ChangeResourceRecordSetsOutput, error) {
  83. req, out := c.ChangeResourceRecordSetsRequest(input)
  84. err := req.Send()
  85. return out, err
  86. }
  87. const opChangeTagsForResource = "ChangeTagsForResource"
  88. // ChangeTagsForResourceRequest generates a request for the ChangeTagsForResource operation.
  89. func (c *Route53) ChangeTagsForResourceRequest(input *ChangeTagsForResourceInput) (req *request.Request, output *ChangeTagsForResourceOutput) {
  90. op := &request.Operation{
  91. Name: opChangeTagsForResource,
  92. HTTPMethod: "POST",
  93. HTTPPath: "/2013-04-01/tags/{ResourceType}/{ResourceId}",
  94. }
  95. if input == nil {
  96. input = &ChangeTagsForResourceInput{}
  97. }
  98. req = c.newRequest(op, input, output)
  99. output = &ChangeTagsForResourceOutput{}
  100. req.Data = output
  101. return
  102. }
  103. func (c *Route53) ChangeTagsForResource(input *ChangeTagsForResourceInput) (*ChangeTagsForResourceOutput, error) {
  104. req, out := c.ChangeTagsForResourceRequest(input)
  105. err := req.Send()
  106. return out, err
  107. }
  108. const opCreateHealthCheck = "CreateHealthCheck"
  109. // CreateHealthCheckRequest generates a request for the CreateHealthCheck operation.
  110. func (c *Route53) CreateHealthCheckRequest(input *CreateHealthCheckInput) (req *request.Request, output *CreateHealthCheckOutput) {
  111. op := &request.Operation{
  112. Name: opCreateHealthCheck,
  113. HTTPMethod: "POST",
  114. HTTPPath: "/2013-04-01/healthcheck",
  115. }
  116. if input == nil {
  117. input = &CreateHealthCheckInput{}
  118. }
  119. req = c.newRequest(op, input, output)
  120. output = &CreateHealthCheckOutput{}
  121. req.Data = output
  122. return
  123. }
  124. // This action creates a new health check.
  125. //
  126. // To create a new health check, send a POST request to the 2013-04-01/healthcheck
  127. // resource. The request body must include an XML document with a CreateHealthCheckRequest
  128. // element. The response returns the CreateHealthCheckResponse element that
  129. // contains metadata about the health check.
  130. func (c *Route53) CreateHealthCheck(input *CreateHealthCheckInput) (*CreateHealthCheckOutput, error) {
  131. req, out := c.CreateHealthCheckRequest(input)
  132. err := req.Send()
  133. return out, err
  134. }
  135. const opCreateHostedZone = "CreateHostedZone"
  136. // CreateHostedZoneRequest generates a request for the CreateHostedZone operation.
  137. func (c *Route53) CreateHostedZoneRequest(input *CreateHostedZoneInput) (req *request.Request, output *CreateHostedZoneOutput) {
  138. op := &request.Operation{
  139. Name: opCreateHostedZone,
  140. HTTPMethod: "POST",
  141. HTTPPath: "/2013-04-01/hostedzone",
  142. }
  143. if input == nil {
  144. input = &CreateHostedZoneInput{}
  145. }
  146. req = c.newRequest(op, input, output)
  147. output = &CreateHostedZoneOutput{}
  148. req.Data = output
  149. return
  150. }
  151. // This action creates a new hosted zone.
  152. //
  153. // To create a new hosted zone, send a POST request to the 2013-04-01/hostedzone
  154. // resource. The request body must include an XML document with a CreateHostedZoneRequest
  155. // element. The response returns the CreateHostedZoneResponse element that contains
  156. // metadata about the hosted zone.
  157. //
  158. // Route 53 automatically creates a default SOA record and four NS records
  159. // for the zone. The NS records in the hosted zone are the name servers you
  160. // give your registrar to delegate your domain to. For more information about
  161. // SOA and NS records, see NS and SOA Records that Route 53 Creates for a Hosted
  162. // Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/SOA-NSrecords.html)
  163. // in the Amazon Route 53 Developer Guide.
  164. //
  165. // When you create a zone, its initial status is PENDING. This means that it
  166. // is not yet available on all DNS servers. The status of the zone changes to
  167. // INSYNC when the NS and SOA records are available on all Route 53 DNS servers.
  168. //
  169. // When trying to create a hosted zone using a reusable delegation set, you
  170. // could specify an optional DelegationSetId, and Route53 would assign those
  171. // 4 NS records for the zone, instead of alloting a new one.
  172. func (c *Route53) CreateHostedZone(input *CreateHostedZoneInput) (*CreateHostedZoneOutput, error) {
  173. req, out := c.CreateHostedZoneRequest(input)
  174. err := req.Send()
  175. return out, err
  176. }
  177. const opCreateReusableDelegationSet = "CreateReusableDelegationSet"
  178. // CreateReusableDelegationSetRequest generates a request for the CreateReusableDelegationSet operation.
  179. func (c *Route53) CreateReusableDelegationSetRequest(input *CreateReusableDelegationSetInput) (req *request.Request, output *CreateReusableDelegationSetOutput) {
  180. op := &request.Operation{
  181. Name: opCreateReusableDelegationSet,
  182. HTTPMethod: "POST",
  183. HTTPPath: "/2013-04-01/delegationset",
  184. }
  185. if input == nil {
  186. input = &CreateReusableDelegationSetInput{}
  187. }
  188. req = c.newRequest(op, input, output)
  189. output = &CreateReusableDelegationSetOutput{}
  190. req.Data = output
  191. return
  192. }
  193. // This action creates a reusable delegationSet.
  194. //
  195. // To create a new reusable delegationSet, send a POST request to the 2013-04-01/delegationset
  196. // resource. The request body must include an XML document with a CreateReusableDelegationSetRequest
  197. // element. The response returns the CreateReusableDelegationSetResponse element
  198. // that contains metadata about the delegationSet.
  199. //
  200. // If the optional parameter HostedZoneId is specified, it marks the delegationSet
  201. // associated with that particular hosted zone as reusable.
  202. func (c *Route53) CreateReusableDelegationSet(input *CreateReusableDelegationSetInput) (*CreateReusableDelegationSetOutput, error) {
  203. req, out := c.CreateReusableDelegationSetRequest(input)
  204. err := req.Send()
  205. return out, err
  206. }
  207. const opDeleteHealthCheck = "DeleteHealthCheck"
  208. // DeleteHealthCheckRequest generates a request for the DeleteHealthCheck operation.
  209. func (c *Route53) DeleteHealthCheckRequest(input *DeleteHealthCheckInput) (req *request.Request, output *DeleteHealthCheckOutput) {
  210. op := &request.Operation{
  211. Name: opDeleteHealthCheck,
  212. HTTPMethod: "DELETE",
  213. HTTPPath: "/2013-04-01/healthcheck/{HealthCheckId}",
  214. }
  215. if input == nil {
  216. input = &DeleteHealthCheckInput{}
  217. }
  218. req = c.newRequest(op, input, output)
  219. output = &DeleteHealthCheckOutput{}
  220. req.Data = output
  221. return
  222. }
  223. // This action deletes a health check. To delete a health check, send a DELETE
  224. // request to the 2013-04-01/healthcheck/health check ID resource.
  225. //
  226. // You can delete a health check only if there are no resource record sets
  227. // associated with this health check. If resource record sets are associated
  228. // with this health check, you must disassociate them before you can delete
  229. // your health check. If you try to delete a health check that is associated
  230. // with resource record sets, Route 53 will deny your request with a HealthCheckInUse
  231. // error. For information about disassociating the records from your health
  232. // check, see ChangeResourceRecordSets.
  233. func (c *Route53) DeleteHealthCheck(input *DeleteHealthCheckInput) (*DeleteHealthCheckOutput, error) {
  234. req, out := c.DeleteHealthCheckRequest(input)
  235. err := req.Send()
  236. return out, err
  237. }
  238. const opDeleteHostedZone = "DeleteHostedZone"
  239. // DeleteHostedZoneRequest generates a request for the DeleteHostedZone operation.
  240. func (c *Route53) DeleteHostedZoneRequest(input *DeleteHostedZoneInput) (req *request.Request, output *DeleteHostedZoneOutput) {
  241. op := &request.Operation{
  242. Name: opDeleteHostedZone,
  243. HTTPMethod: "DELETE",
  244. HTTPPath: "/2013-04-01/hostedzone/{Id}",
  245. }
  246. if input == nil {
  247. input = &DeleteHostedZoneInput{}
  248. }
  249. req = c.newRequest(op, input, output)
  250. output = &DeleteHostedZoneOutput{}
  251. req.Data = output
  252. return
  253. }
  254. // This action deletes a hosted zone. To delete a hosted zone, send a DELETE
  255. // request to the 2013-04-01/hostedzone/hosted zone ID resource.
  256. //
  257. // For more information about deleting a hosted zone, see Deleting a Hosted
  258. // Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DeleteHostedZone.html)
  259. // in the Amazon Route 53 Developer Guide.
  260. //
  261. // You can delete a hosted zone only if there are no resource record sets
  262. // other than the default SOA record and NS resource record sets. If your hosted
  263. // zone contains other resource record sets, you must delete them before you
  264. // can delete your hosted zone. If you try to delete a hosted zone that contains
  265. // other resource record sets, Route 53 will deny your request with a HostedZoneNotEmpty
  266. // error. For information about deleting records from your hosted zone, see
  267. // ChangeResourceRecordSets.
  268. func (c *Route53) DeleteHostedZone(input *DeleteHostedZoneInput) (*DeleteHostedZoneOutput, error) {
  269. req, out := c.DeleteHostedZoneRequest(input)
  270. err := req.Send()
  271. return out, err
  272. }
  273. const opDeleteReusableDelegationSet = "DeleteReusableDelegationSet"
  274. // DeleteReusableDelegationSetRequest generates a request for the DeleteReusableDelegationSet operation.
  275. func (c *Route53) DeleteReusableDelegationSetRequest(input *DeleteReusableDelegationSetInput) (req *request.Request, output *DeleteReusableDelegationSetOutput) {
  276. op := &request.Operation{
  277. Name: opDeleteReusableDelegationSet,
  278. HTTPMethod: "DELETE",
  279. HTTPPath: "/2013-04-01/delegationset/{Id}",
  280. }
  281. if input == nil {
  282. input = &DeleteReusableDelegationSetInput{}
  283. }
  284. req = c.newRequest(op, input, output)
  285. output = &DeleteReusableDelegationSetOutput{}
  286. req.Data = output
  287. return
  288. }
  289. // This action deletes a reusable delegation set. To delete a reusable delegation
  290. // set, send a DELETE request to the 2013-04-01/delegationset/delegation set
  291. // ID resource.
  292. //
  293. // You can delete a reusable delegation set only if there are no associated
  294. // hosted zones. If your reusable delegation set contains associated hosted
  295. // zones, you must delete them before you can delete your reusable delegation
  296. // set. If you try to delete a reusable delegation set that contains associated
  297. // hosted zones, Route 53 will deny your request with a DelegationSetInUse error.
  298. func (c *Route53) DeleteReusableDelegationSet(input *DeleteReusableDelegationSetInput) (*DeleteReusableDelegationSetOutput, error) {
  299. req, out := c.DeleteReusableDelegationSetRequest(input)
  300. err := req.Send()
  301. return out, err
  302. }
  303. const opDisassociateVPCFromHostedZone = "DisassociateVPCFromHostedZone"
  304. // DisassociateVPCFromHostedZoneRequest generates a request for the DisassociateVPCFromHostedZone operation.
  305. func (c *Route53) DisassociateVPCFromHostedZoneRequest(input *DisassociateVPCFromHostedZoneInput) (req *request.Request, output *DisassociateVPCFromHostedZoneOutput) {
  306. op := &request.Operation{
  307. Name: opDisassociateVPCFromHostedZone,
  308. HTTPMethod: "POST",
  309. HTTPPath: "/2013-04-01/hostedzone/{Id}/disassociatevpc",
  310. }
  311. if input == nil {
  312. input = &DisassociateVPCFromHostedZoneInput{}
  313. }
  314. req = c.newRequest(op, input, output)
  315. output = &DisassociateVPCFromHostedZoneOutput{}
  316. req.Data = output
  317. return
  318. }
  319. // This action disassociates a VPC from an hosted zone.
  320. //
  321. // To disassociate a VPC to a hosted zone, send a POST request to the 2013-04-01/hostedzone/hosted
  322. // zone ID/disassociatevpc resource. The request body must include an XML document
  323. // with a DisassociateVPCFromHostedZoneRequest element. The response returns
  324. // the DisassociateVPCFromHostedZoneResponse element that contains ChangeInfo
  325. // for you to track the progress of the DisassociateVPCFromHostedZoneRequest
  326. // you made. See GetChange operation for how to track the progress of your change.
  327. func (c *Route53) DisassociateVPCFromHostedZone(input *DisassociateVPCFromHostedZoneInput) (*DisassociateVPCFromHostedZoneOutput, error) {
  328. req, out := c.DisassociateVPCFromHostedZoneRequest(input)
  329. err := req.Send()
  330. return out, err
  331. }
  332. const opGetChange = "GetChange"
  333. // GetChangeRequest generates a request for the GetChange operation.
  334. func (c *Route53) GetChangeRequest(input *GetChangeInput) (req *request.Request, output *GetChangeOutput) {
  335. op := &request.Operation{
  336. Name: opGetChange,
  337. HTTPMethod: "GET",
  338. HTTPPath: "/2013-04-01/change/{Id}",
  339. }
  340. if input == nil {
  341. input = &GetChangeInput{}
  342. }
  343. req = c.newRequest(op, input, output)
  344. output = &GetChangeOutput{}
  345. req.Data = output
  346. return
  347. }
  348. // This action returns the current status of a change batch request. The status
  349. // is one of the following values:
  350. //
  351. // - PENDING indicates that the changes in this request have not replicated
  352. // to all Route 53 DNS servers. This is the initial status of all change batch
  353. // requests.
  354. //
  355. // - INSYNC indicates that the changes have replicated to all Amazon Route
  356. // 53 DNS servers.
  357. func (c *Route53) GetChange(input *GetChangeInput) (*GetChangeOutput, error) {
  358. req, out := c.GetChangeRequest(input)
  359. err := req.Send()
  360. return out, err
  361. }
  362. const opGetCheckerIpRanges = "GetCheckerIpRanges"
  363. // GetCheckerIpRangesRequest generates a request for the GetCheckerIpRanges operation.
  364. func (c *Route53) GetCheckerIpRangesRequest(input *GetCheckerIpRangesInput) (req *request.Request, output *GetCheckerIpRangesOutput) {
  365. op := &request.Operation{
  366. Name: opGetCheckerIpRanges,
  367. HTTPMethod: "GET",
  368. HTTPPath: "/2013-04-01/checkeripranges",
  369. }
  370. if input == nil {
  371. input = &GetCheckerIpRangesInput{}
  372. }
  373. req = c.newRequest(op, input, output)
  374. output = &GetCheckerIpRangesOutput{}
  375. req.Data = output
  376. return
  377. }
  378. // To retrieve a list of the IP ranges used by Amazon Route 53 health checkers
  379. // to check the health of your resources, send a GET request to the 2013-04-01/checkeripranges
  380. // resource. You can use these IP addresses to configure router and firewall
  381. // rules to allow health checkers to check the health of your resources.
  382. func (c *Route53) GetCheckerIpRanges(input *GetCheckerIpRangesInput) (*GetCheckerIpRangesOutput, error) {
  383. req, out := c.GetCheckerIpRangesRequest(input)
  384. err := req.Send()
  385. return out, err
  386. }
  387. const opGetGeoLocation = "GetGeoLocation"
  388. // GetGeoLocationRequest generates a request for the GetGeoLocation operation.
  389. func (c *Route53) GetGeoLocationRequest(input *GetGeoLocationInput) (req *request.Request, output *GetGeoLocationOutput) {
  390. op := &request.Operation{
  391. Name: opGetGeoLocation,
  392. HTTPMethod: "GET",
  393. HTTPPath: "/2013-04-01/geolocation",
  394. }
  395. if input == nil {
  396. input = &GetGeoLocationInput{}
  397. }
  398. req = c.newRequest(op, input, output)
  399. output = &GetGeoLocationOutput{}
  400. req.Data = output
  401. return
  402. }
  403. // To retrieve a single geo location, send a GET request to the 2013-04-01/geolocation
  404. // resource with one of these options: continentcode | countrycode | countrycode
  405. // and subdivisioncode.
  406. func (c *Route53) GetGeoLocation(input *GetGeoLocationInput) (*GetGeoLocationOutput, error) {
  407. req, out := c.GetGeoLocationRequest(input)
  408. err := req.Send()
  409. return out, err
  410. }
  411. const opGetHealthCheck = "GetHealthCheck"
  412. // GetHealthCheckRequest generates a request for the GetHealthCheck operation.
  413. func (c *Route53) GetHealthCheckRequest(input *GetHealthCheckInput) (req *request.Request, output *GetHealthCheckOutput) {
  414. op := &request.Operation{
  415. Name: opGetHealthCheck,
  416. HTTPMethod: "GET",
  417. HTTPPath: "/2013-04-01/healthcheck/{HealthCheckId}",
  418. }
  419. if input == nil {
  420. input = &GetHealthCheckInput{}
  421. }
  422. req = c.newRequest(op, input, output)
  423. output = &GetHealthCheckOutput{}
  424. req.Data = output
  425. return
  426. }
  427. // To retrieve the health check, send a GET request to the 2013-04-01/healthcheck/health
  428. // check ID resource.
  429. func (c *Route53) GetHealthCheck(input *GetHealthCheckInput) (*GetHealthCheckOutput, error) {
  430. req, out := c.GetHealthCheckRequest(input)
  431. err := req.Send()
  432. return out, err
  433. }
  434. const opGetHealthCheckCount = "GetHealthCheckCount"
  435. // GetHealthCheckCountRequest generates a request for the GetHealthCheckCount operation.
  436. func (c *Route53) GetHealthCheckCountRequest(input *GetHealthCheckCountInput) (req *request.Request, output *GetHealthCheckCountOutput) {
  437. op := &request.Operation{
  438. Name: opGetHealthCheckCount,
  439. HTTPMethod: "GET",
  440. HTTPPath: "/2013-04-01/healthcheckcount",
  441. }
  442. if input == nil {
  443. input = &GetHealthCheckCountInput{}
  444. }
  445. req = c.newRequest(op, input, output)
  446. output = &GetHealthCheckCountOutput{}
  447. req.Data = output
  448. return
  449. }
  450. // To retrieve a count of all your health checks, send a GET request to the
  451. // 2013-04-01/healthcheckcount resource.
  452. func (c *Route53) GetHealthCheckCount(input *GetHealthCheckCountInput) (*GetHealthCheckCountOutput, error) {
  453. req, out := c.GetHealthCheckCountRequest(input)
  454. err := req.Send()
  455. return out, err
  456. }
  457. const opGetHealthCheckLastFailureReason = "GetHealthCheckLastFailureReason"
  458. // GetHealthCheckLastFailureReasonRequest generates a request for the GetHealthCheckLastFailureReason operation.
  459. func (c *Route53) GetHealthCheckLastFailureReasonRequest(input *GetHealthCheckLastFailureReasonInput) (req *request.Request, output *GetHealthCheckLastFailureReasonOutput) {
  460. op := &request.Operation{
  461. Name: opGetHealthCheckLastFailureReason,
  462. HTTPMethod: "GET",
  463. HTTPPath: "/2013-04-01/healthcheck/{HealthCheckId}/lastfailurereason",
  464. }
  465. if input == nil {
  466. input = &GetHealthCheckLastFailureReasonInput{}
  467. }
  468. req = c.newRequest(op, input, output)
  469. output = &GetHealthCheckLastFailureReasonOutput{}
  470. req.Data = output
  471. return
  472. }
  473. // If you want to learn why a health check is currently failing or why it failed
  474. // most recently (if at all), you can get the failure reason for the most recent
  475. // failure. Send a GET request to the 2013-04-01/healthcheck/health check ID/lastfailurereason
  476. // resource.
  477. func (c *Route53) GetHealthCheckLastFailureReason(input *GetHealthCheckLastFailureReasonInput) (*GetHealthCheckLastFailureReasonOutput, error) {
  478. req, out := c.GetHealthCheckLastFailureReasonRequest(input)
  479. err := req.Send()
  480. return out, err
  481. }
  482. const opGetHealthCheckStatus = "GetHealthCheckStatus"
  483. // GetHealthCheckStatusRequest generates a request for the GetHealthCheckStatus operation.
  484. func (c *Route53) GetHealthCheckStatusRequest(input *GetHealthCheckStatusInput) (req *request.Request, output *GetHealthCheckStatusOutput) {
  485. op := &request.Operation{
  486. Name: opGetHealthCheckStatus,
  487. HTTPMethod: "GET",
  488. HTTPPath: "/2013-04-01/healthcheck/{HealthCheckId}/status",
  489. }
  490. if input == nil {
  491. input = &GetHealthCheckStatusInput{}
  492. }
  493. req = c.newRequest(op, input, output)
  494. output = &GetHealthCheckStatusOutput{}
  495. req.Data = output
  496. return
  497. }
  498. // To retrieve the health check status, send a GET request to the 2013-04-01/healthcheck/health
  499. // check ID/status resource. You can use this call to get a health check's current
  500. // status.
  501. func (c *Route53) GetHealthCheckStatus(input *GetHealthCheckStatusInput) (*GetHealthCheckStatusOutput, error) {
  502. req, out := c.GetHealthCheckStatusRequest(input)
  503. err := req.Send()
  504. return out, err
  505. }
  506. const opGetHostedZone = "GetHostedZone"
  507. // GetHostedZoneRequest generates a request for the GetHostedZone operation.
  508. func (c *Route53) GetHostedZoneRequest(input *GetHostedZoneInput) (req *request.Request, output *GetHostedZoneOutput) {
  509. op := &request.Operation{
  510. Name: opGetHostedZone,
  511. HTTPMethod: "GET",
  512. HTTPPath: "/2013-04-01/hostedzone/{Id}",
  513. }
  514. if input == nil {
  515. input = &GetHostedZoneInput{}
  516. }
  517. req = c.newRequest(op, input, output)
  518. output = &GetHostedZoneOutput{}
  519. req.Data = output
  520. return
  521. }
  522. // To retrieve the delegation set for a hosted zone, send a GET request to the
  523. // 2013-04-01/hostedzone/hosted zone ID resource. The delegation set is the
  524. // four Route 53 name servers that were assigned to the hosted zone when you
  525. // created it.
  526. func (c *Route53) GetHostedZone(input *GetHostedZoneInput) (*GetHostedZoneOutput, error) {
  527. req, out := c.GetHostedZoneRequest(input)
  528. err := req.Send()
  529. return out, err
  530. }
  531. const opGetHostedZoneCount = "GetHostedZoneCount"
  532. // GetHostedZoneCountRequest generates a request for the GetHostedZoneCount operation.
  533. func (c *Route53) GetHostedZoneCountRequest(input *GetHostedZoneCountInput) (req *request.Request, output *GetHostedZoneCountOutput) {
  534. op := &request.Operation{
  535. Name: opGetHostedZoneCount,
  536. HTTPMethod: "GET",
  537. HTTPPath: "/2013-04-01/hostedzonecount",
  538. }
  539. if input == nil {
  540. input = &GetHostedZoneCountInput{}
  541. }
  542. req = c.newRequest(op, input, output)
  543. output = &GetHostedZoneCountOutput{}
  544. req.Data = output
  545. return
  546. }
  547. // To retrieve a count of all your hosted zones, send a GET request to the 2013-04-01/hostedzonecount
  548. // resource.
  549. func (c *Route53) GetHostedZoneCount(input *GetHostedZoneCountInput) (*GetHostedZoneCountOutput, error) {
  550. req, out := c.GetHostedZoneCountRequest(input)
  551. err := req.Send()
  552. return out, err
  553. }
  554. const opGetReusableDelegationSet = "GetReusableDelegationSet"
  555. // GetReusableDelegationSetRequest generates a request for the GetReusableDelegationSet operation.
  556. func (c *Route53) GetReusableDelegationSetRequest(input *GetReusableDelegationSetInput) (req *request.Request, output *GetReusableDelegationSetOutput) {
  557. op := &request.Operation{
  558. Name: opGetReusableDelegationSet,
  559. HTTPMethod: "GET",
  560. HTTPPath: "/2013-04-01/delegationset/{Id}",
  561. }
  562. if input == nil {
  563. input = &GetReusableDelegationSetInput{}
  564. }
  565. req = c.newRequest(op, input, output)
  566. output = &GetReusableDelegationSetOutput{}
  567. req.Data = output
  568. return
  569. }
  570. // To retrieve the reusable delegation set, send a GET request to the 2013-04-01/delegationset/delegation
  571. // set ID resource.
  572. func (c *Route53) GetReusableDelegationSet(input *GetReusableDelegationSetInput) (*GetReusableDelegationSetOutput, error) {
  573. req, out := c.GetReusableDelegationSetRequest(input)
  574. err := req.Send()
  575. return out, err
  576. }
  577. const opListGeoLocations = "ListGeoLocations"
  578. // ListGeoLocationsRequest generates a request for the ListGeoLocations operation.
  579. func (c *Route53) ListGeoLocationsRequest(input *ListGeoLocationsInput) (req *request.Request, output *ListGeoLocationsOutput) {
  580. op := &request.Operation{
  581. Name: opListGeoLocations,
  582. HTTPMethod: "GET",
  583. HTTPPath: "/2013-04-01/geolocations",
  584. }
  585. if input == nil {
  586. input = &ListGeoLocationsInput{}
  587. }
  588. req = c.newRequest(op, input, output)
  589. output = &ListGeoLocationsOutput{}
  590. req.Data = output
  591. return
  592. }
  593. // To retrieve a list of supported geo locations, send a GET request to the
  594. // 2013-04-01/geolocations resource. The response to this request includes a
  595. // GeoLocationDetailsList element with zero, one, or multiple GeoLocationDetails
  596. // child elements. The list is sorted by country code, and then subdivision
  597. // code, followed by continents at the end of the list.
  598. //
  599. // By default, the list of geo locations is displayed on a single page. You
  600. // can control the length of the page that is displayed by using the MaxItems
  601. // parameter. If the list is truncated, IsTruncated will be set to true and
  602. // a combination of NextContinentCode, NextCountryCode, NextSubdivisionCode
  603. // will be populated. You can pass these as parameters to StartContinentCode,
  604. // StartCountryCode, StartSubdivisionCode to control the geo location that the
  605. // list begins with.
  606. func (c *Route53) ListGeoLocations(input *ListGeoLocationsInput) (*ListGeoLocationsOutput, error) {
  607. req, out := c.ListGeoLocationsRequest(input)
  608. err := req.Send()
  609. return out, err
  610. }
  611. const opListHealthChecks = "ListHealthChecks"
  612. // ListHealthChecksRequest generates a request for the ListHealthChecks operation.
  613. func (c *Route53) ListHealthChecksRequest(input *ListHealthChecksInput) (req *request.Request, output *ListHealthChecksOutput) {
  614. op := &request.Operation{
  615. Name: opListHealthChecks,
  616. HTTPMethod: "GET",
  617. HTTPPath: "/2013-04-01/healthcheck",
  618. Paginator: &request.Paginator{
  619. InputTokens: []string{"Marker"},
  620. OutputTokens: []string{"NextMarker"},
  621. LimitToken: "MaxItems",
  622. TruncationToken: "IsTruncated",
  623. },
  624. }
  625. if input == nil {
  626. input = &ListHealthChecksInput{}
  627. }
  628. req = c.newRequest(op, input, output)
  629. output = &ListHealthChecksOutput{}
  630. req.Data = output
  631. return
  632. }
  633. // To retrieve a list of your health checks, send a GET request to the 2013-04-01/healthcheck
  634. // resource. The response to this request includes a HealthChecks element with
  635. // zero, one, or multiple HealthCheck child elements. By default, the list of
  636. // health checks is displayed on a single page. You can control the length of
  637. // the page that is displayed by using the MaxItems parameter. You can use the
  638. // Marker parameter to control the health check that the list begins with.
  639. //
  640. // Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to
  641. // a value greater than 100, Amazon Route 53 returns only the first 100.
  642. func (c *Route53) ListHealthChecks(input *ListHealthChecksInput) (*ListHealthChecksOutput, error) {
  643. req, out := c.ListHealthChecksRequest(input)
  644. err := req.Send()
  645. return out, err
  646. }
  647. func (c *Route53) ListHealthChecksPages(input *ListHealthChecksInput, fn func(p *ListHealthChecksOutput, lastPage bool) (shouldContinue bool)) error {
  648. page, _ := c.ListHealthChecksRequest(input)
  649. return page.EachPage(func(p interface{}, lastPage bool) bool {
  650. return fn(p.(*ListHealthChecksOutput), lastPage)
  651. })
  652. }
  653. const opListHostedZones = "ListHostedZones"
  654. // ListHostedZonesRequest generates a request for the ListHostedZones operation.
  655. func (c *Route53) ListHostedZonesRequest(input *ListHostedZonesInput) (req *request.Request, output *ListHostedZonesOutput) {
  656. op := &request.Operation{
  657. Name: opListHostedZones,
  658. HTTPMethod: "GET",
  659. HTTPPath: "/2013-04-01/hostedzone",
  660. Paginator: &request.Paginator{
  661. InputTokens: []string{"Marker"},
  662. OutputTokens: []string{"NextMarker"},
  663. LimitToken: "MaxItems",
  664. TruncationToken: "IsTruncated",
  665. },
  666. }
  667. if input == nil {
  668. input = &ListHostedZonesInput{}
  669. }
  670. req = c.newRequest(op, input, output)
  671. output = &ListHostedZonesOutput{}
  672. req.Data = output
  673. return
  674. }
  675. // To retrieve a list of your hosted zones, send a GET request to the 2013-04-01/hostedzone
  676. // resource. The response to this request includes a HostedZones element with
  677. // zero, one, or multiple HostedZone child elements. By default, the list of
  678. // hosted zones is displayed on a single page. You can control the length of
  679. // the page that is displayed by using the MaxItems parameter. You can use the
  680. // Marker parameter to control the hosted zone that the list begins with.
  681. //
  682. // Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to
  683. // a value greater than 100, Amazon Route 53 returns only the first 100.
  684. func (c *Route53) ListHostedZones(input *ListHostedZonesInput) (*ListHostedZonesOutput, error) {
  685. req, out := c.ListHostedZonesRequest(input)
  686. err := req.Send()
  687. return out, err
  688. }
  689. func (c *Route53) ListHostedZonesPages(input *ListHostedZonesInput, fn func(p *ListHostedZonesOutput, lastPage bool) (shouldContinue bool)) error {
  690. page, _ := c.ListHostedZonesRequest(input)
  691. return page.EachPage(func(p interface{}, lastPage bool) bool {
  692. return fn(p.(*ListHostedZonesOutput), lastPage)
  693. })
  694. }
  695. const opListHostedZonesByName = "ListHostedZonesByName"
  696. // ListHostedZonesByNameRequest generates a request for the ListHostedZonesByName operation.
  697. func (c *Route53) ListHostedZonesByNameRequest(input *ListHostedZonesByNameInput) (req *request.Request, output *ListHostedZonesByNameOutput) {
  698. op := &request.Operation{
  699. Name: opListHostedZonesByName,
  700. HTTPMethod: "GET",
  701. HTTPPath: "/2013-04-01/hostedzonesbyname",
  702. }
  703. if input == nil {
  704. input = &ListHostedZonesByNameInput{}
  705. }
  706. req = c.newRequest(op, input, output)
  707. output = &ListHostedZonesByNameOutput{}
  708. req.Data = output
  709. return
  710. }
  711. // To retrieve a list of your hosted zones in lexicographic order, send a GET
  712. // request to the 2013-04-01/hostedzonesbyname resource. The response to this
  713. // request includes a HostedZones element with zero or more HostedZone child
  714. // elements lexicographically ordered by DNS name. By default, the list of hosted
  715. // zones is displayed on a single page. You can control the length of the page
  716. // that is displayed by using the MaxItems parameter. You can use the DNSName
  717. // and HostedZoneId parameters to control the hosted zone that the list begins
  718. // with.
  719. //
  720. // Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to
  721. // a value greater than 100, Amazon Route 53 returns only the first 100.
  722. func (c *Route53) ListHostedZonesByName(input *ListHostedZonesByNameInput) (*ListHostedZonesByNameOutput, error) {
  723. req, out := c.ListHostedZonesByNameRequest(input)
  724. err := req.Send()
  725. return out, err
  726. }
  727. const opListResourceRecordSets = "ListResourceRecordSets"
  728. // ListResourceRecordSetsRequest generates a request for the ListResourceRecordSets operation.
  729. func (c *Route53) ListResourceRecordSetsRequest(input *ListResourceRecordSetsInput) (req *request.Request, output *ListResourceRecordSetsOutput) {
  730. op := &request.Operation{
  731. Name: opListResourceRecordSets,
  732. HTTPMethod: "GET",
  733. HTTPPath: "/2013-04-01/hostedzone/{Id}/rrset",
  734. Paginator: &request.Paginator{
  735. InputTokens: []string{"StartRecordName", "StartRecordType", "StartRecordIdentifier"},
  736. OutputTokens: []string{"NextRecordName", "NextRecordType", "NextRecordIdentifier"},
  737. LimitToken: "MaxItems",
  738. TruncationToken: "IsTruncated",
  739. },
  740. }
  741. if input == nil {
  742. input = &ListResourceRecordSetsInput{}
  743. }
  744. req = c.newRequest(op, input, output)
  745. output = &ListResourceRecordSetsOutput{}
  746. req.Data = output
  747. return
  748. }
  749. // Imagine all the resource record sets in a zone listed out in front of you.
  750. // Imagine them sorted lexicographically first by DNS name (with the labels
  751. // reversed, like "com.amazon.www" for example), and secondarily, lexicographically
  752. // by record type. This operation retrieves at most MaxItems resource record
  753. // sets from this list, in order, starting at a position specified by the Name
  754. // and Type arguments:
  755. //
  756. // If both Name and Type are omitted, this means start the results at the
  757. // first RRSET in the HostedZone. If Name is specified but Type is omitted,
  758. // this means start the results at the first RRSET in the list whose name is
  759. // greater than or equal to Name. If both Name and Type are specified, this
  760. // means start the results at the first RRSET in the list whose name is greater
  761. // than or equal to Name and whose type is greater than or equal to Type. It
  762. // is an error to specify the Type but not the Name. Use ListResourceRecordSets
  763. // to retrieve a single known record set by specifying the record set's name
  764. // and type, and setting MaxItems = 1
  765. //
  766. // To retrieve all the records in a HostedZone, first pause any processes making
  767. // calls to ChangeResourceRecordSets. Initially call ListResourceRecordSets
  768. // without a Name and Type to get the first page of record sets. For subsequent
  769. // calls, set Name and Type to the NextName and NextType values returned by
  770. // the previous response.
  771. //
  772. // In the presence of concurrent ChangeResourceRecordSets calls, there is no
  773. // consistency of results across calls to ListResourceRecordSets. The only way
  774. // to get a consistent multi-page snapshot of all RRSETs in a zone is to stop
  775. // making changes while pagination is in progress.
  776. //
  777. // However, the results from ListResourceRecordSets are consistent within a
  778. // page. If MakeChange calls are taking place concurrently, the result of each
  779. // one will either be completely visible in your results or not at all. You
  780. // will not see partial changes, or changes that do not ultimately succeed.
  781. // (This follows from the fact that MakeChange is atomic)
  782. //
  783. // The results from ListResourceRecordSets are strongly consistent with ChangeResourceRecordSets.
  784. // To be precise, if a single process makes a call to ChangeResourceRecordSets
  785. // and receives a successful response, the effects of that change will be visible
  786. // in a subsequent call to ListResourceRecordSets by that process.
  787. func (c *Route53) ListResourceRecordSets(input *ListResourceRecordSetsInput) (*ListResourceRecordSetsOutput, error) {
  788. req, out := c.ListResourceRecordSetsRequest(input)
  789. err := req.Send()
  790. return out, err
  791. }
  792. func (c *Route53) ListResourceRecordSetsPages(input *ListResourceRecordSetsInput, fn func(p *ListResourceRecordSetsOutput, lastPage bool) (shouldContinue bool)) error {
  793. page, _ := c.ListResourceRecordSetsRequest(input)
  794. return page.EachPage(func(p interface{}, lastPage bool) bool {
  795. return fn(p.(*ListResourceRecordSetsOutput), lastPage)
  796. })
  797. }
  798. const opListReusableDelegationSets = "ListReusableDelegationSets"
  799. // ListReusableDelegationSetsRequest generates a request for the ListReusableDelegationSets operation.
  800. func (c *Route53) ListReusableDelegationSetsRequest(input *ListReusableDelegationSetsInput) (req *request.Request, output *ListReusableDelegationSetsOutput) {
  801. op := &request.Operation{
  802. Name: opListReusableDelegationSets,
  803. HTTPMethod: "GET",
  804. HTTPPath: "/2013-04-01/delegationset",
  805. }
  806. if input == nil {
  807. input = &ListReusableDelegationSetsInput{}
  808. }
  809. req = c.newRequest(op, input, output)
  810. output = &ListReusableDelegationSetsOutput{}
  811. req.Data = output
  812. return
  813. }
  814. // To retrieve a list of your reusable delegation sets, send a GET request to
  815. // the 2013-04-01/delegationset resource. The response to this request includes
  816. // a DelegationSets element with zero, one, or multiple DelegationSet child
  817. // elements. By default, the list of delegation sets is displayed on a single
  818. // page. You can control the length of the page that is displayed by using the
  819. // MaxItems parameter. You can use the Marker parameter to control the delegation
  820. // set that the list begins with.
  821. //
  822. // Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to
  823. // a value greater than 100, Amazon Route 53 returns only the first 100.
  824. func (c *Route53) ListReusableDelegationSets(input *ListReusableDelegationSetsInput) (*ListReusableDelegationSetsOutput, error) {
  825. req, out := c.ListReusableDelegationSetsRequest(input)
  826. err := req.Send()
  827. return out, err
  828. }
  829. const opListTagsForResource = "ListTagsForResource"
  830. // ListTagsForResourceRequest generates a request for the ListTagsForResource operation.
  831. func (c *Route53) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
  832. op := &request.Operation{
  833. Name: opListTagsForResource,
  834. HTTPMethod: "GET",
  835. HTTPPath: "/2013-04-01/tags/{ResourceType}/{ResourceId}",
  836. }
  837. if input == nil {
  838. input = &ListTagsForResourceInput{}
  839. }
  840. req = c.newRequest(op, input, output)
  841. output = &ListTagsForResourceOutput{}
  842. req.Data = output
  843. return
  844. }
  845. func (c *Route53) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
  846. req, out := c.ListTagsForResourceRequest(input)
  847. err := req.Send()
  848. return out, err
  849. }
  850. const opListTagsForResources = "ListTagsForResources"
  851. // ListTagsForResourcesRequest generates a request for the ListTagsForResources operation.
  852. func (c *Route53) ListTagsForResourcesRequest(input *ListTagsForResourcesInput) (req *request.Request, output *ListTagsForResourcesOutput) {
  853. op := &request.Operation{
  854. Name: opListTagsForResources,
  855. HTTPMethod: "POST",
  856. HTTPPath: "/2013-04-01/tags/{ResourceType}",
  857. }
  858. if input == nil {
  859. input = &ListTagsForResourcesInput{}
  860. }
  861. req = c.newRequest(op, input, output)
  862. output = &ListTagsForResourcesOutput{}
  863. req.Data = output
  864. return
  865. }
  866. func (c *Route53) ListTagsForResources(input *ListTagsForResourcesInput) (*ListTagsForResourcesOutput, error) {
  867. req, out := c.ListTagsForResourcesRequest(input)
  868. err := req.Send()
  869. return out, err
  870. }
  871. const opUpdateHealthCheck = "UpdateHealthCheck"
  872. // UpdateHealthCheckRequest generates a request for the UpdateHealthCheck operation.
  873. func (c *Route53) UpdateHealthCheckRequest(input *UpdateHealthCheckInput) (req *request.Request, output *UpdateHealthCheckOutput) {
  874. op := &request.Operation{
  875. Name: opUpdateHealthCheck,
  876. HTTPMethod: "POST",
  877. HTTPPath: "/2013-04-01/healthcheck/{HealthCheckId}",
  878. }
  879. if input == nil {
  880. input = &UpdateHealthCheckInput{}
  881. }
  882. req = c.newRequest(op, input, output)
  883. output = &UpdateHealthCheckOutput{}
  884. req.Data = output
  885. return
  886. }
  887. // This action updates an existing health check.
  888. //
  889. // To update a health check, send a POST request to the 2013-04-01/healthcheck/health
  890. // check ID resource. The request body must include an XML document with an
  891. // UpdateHealthCheckRequest element. The response returns an UpdateHealthCheckResponse
  892. // element, which contains metadata about the health check.
  893. func (c *Route53) UpdateHealthCheck(input *UpdateHealthCheckInput) (*UpdateHealthCheckOutput, error) {
  894. req, out := c.UpdateHealthCheckRequest(input)
  895. err := req.Send()
  896. return out, err
  897. }
  898. const opUpdateHostedZoneComment = "UpdateHostedZoneComment"
  899. // UpdateHostedZoneCommentRequest generates a request for the UpdateHostedZoneComment operation.
  900. func (c *Route53) UpdateHostedZoneCommentRequest(input *UpdateHostedZoneCommentInput) (req *request.Request, output *UpdateHostedZoneCommentOutput) {
  901. op := &request.Operation{
  902. Name: opUpdateHostedZoneComment,
  903. HTTPMethod: "POST",
  904. HTTPPath: "/2013-04-01/hostedzone/{Id}",
  905. }
  906. if input == nil {
  907. input = &UpdateHostedZoneCommentInput{}
  908. }
  909. req = c.newRequest(op, input, output)
  910. output = &UpdateHostedZoneCommentOutput{}
  911. req.Data = output
  912. return
  913. }
  914. // To update the hosted zone comment, send a POST request to the 2013-04-01/hostedzone/hosted
  915. // zone ID resource. The request body must include an XML document with a UpdateHostedZoneCommentRequest
  916. // element. The response to this request includes the modified HostedZone element.
  917. //
  918. // The comment can have a maximum length of 256 characters.
  919. func (c *Route53) UpdateHostedZoneComment(input *UpdateHostedZoneCommentInput) (*UpdateHostedZoneCommentOutput, error) {
  920. req, out := c.UpdateHostedZoneCommentRequest(input)
  921. err := req.Send()
  922. return out, err
  923. }
  924. // Alias resource record sets only: Information about the domain to which you
  925. // are redirecting traffic.
  926. //
  927. // For more information and an example, see Creating Alias Resource Record
  928. // Sets (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/CreatingAliasRRSets.html)
  929. // in the Amazon Route 53 Developer Guide
  930. //
  931. // .
  932. type AliasTarget struct {
  933. // Alias resource record sets only: The external DNS name associated with the
  934. // AWS Resource.
  935. //
  936. // For more information and an example, see Creating Alias Resource Record
  937. // Sets (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/CreatingAliasRRSets.html)
  938. // in the Amazon Route 53 Developer Guide
  939. //
  940. // .
  941. DNSName *string `type:"string" required:"true"`
  942. // Alias resource record sets only: A boolean value that indicates whether this
  943. // Resource Record Set should respect the health status of any health checks
  944. // associated with the ALIAS target record which it is linked to.
  945. //
  946. // For more information and an example, see Creating Alias Resource Record
  947. // Sets (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/CreatingAliasRRSets.html)
  948. // in the Amazon Route 53 Developer Guide
  949. //
  950. // .
  951. EvaluateTargetHealth *bool `type:"boolean" required:"true"`
  952. // Alias resource record sets only: The value of the hosted zone ID for the
  953. // AWS resource.
  954. //
  955. // For more information and an example, see Creating Alias Resource Record
  956. // Sets (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/CreatingAliasRRSets.html)
  957. // in the Amazon Route 53 Developer Guide
  958. //
  959. // .
  960. HostedZoneId *string `type:"string" required:"true"`
  961. metadataAliasTarget `json:"-" xml:"-"`
  962. }
  963. type metadataAliasTarget struct {
  964. SDKShapeTraits bool `type:"structure"`
  965. }
  966. // String returns the string representation
  967. func (s AliasTarget) String() string {
  968. return awsutil.Prettify(s)
  969. }
  970. // GoString returns the string representation
  971. func (s AliasTarget) GoString() string {
  972. return s.String()
  973. }
  974. // A complex type that contains information about the request to associate a
  975. // VPC with an hosted zone.
  976. type AssociateVPCWithHostedZoneInput struct {
  977. // Optional: Any comments you want to include about a AssociateVPCWithHostedZoneRequest.
  978. Comment *string `type:"string"`
  979. // The ID of the hosted zone you want to associate your VPC with.
  980. //
  981. // Note that you cannot associate a VPC with a hosted zone that doesn't have
  982. // an existing VPC association.
  983. HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  984. // The VPC that you want your hosted zone to be associated with.
  985. VPC *VPC `type:"structure" required:"true"`
  986. metadataAssociateVPCWithHostedZoneInput `json:"-" xml:"-"`
  987. }
  988. type metadataAssociateVPCWithHostedZoneInput struct {
  989. SDKShapeTraits bool `locationName:"AssociateVPCWithHostedZoneRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
  990. }
  991. // String returns the string representation
  992. func (s AssociateVPCWithHostedZoneInput) String() string {
  993. return awsutil.Prettify(s)
  994. }
  995. // GoString returns the string representation
  996. func (s AssociateVPCWithHostedZoneInput) GoString() string {
  997. return s.String()
  998. }
  999. // A complex type containing the response information for the request.
  1000. type AssociateVPCWithHostedZoneOutput struct {
  1001. // A complex type that contains the ID, the status, and the date and time of
  1002. // your AssociateVPCWithHostedZoneRequest.
  1003. ChangeInfo *ChangeInfo `type:"structure" required:"true"`
  1004. metadataAssociateVPCWithHostedZoneOutput `json:"-" xml:"-"`
  1005. }
  1006. type metadataAssociateVPCWithHostedZoneOutput struct {
  1007. SDKShapeTraits bool `type:"structure"`
  1008. }
  1009. // String returns the string representation
  1010. func (s AssociateVPCWithHostedZoneOutput) String() string {
  1011. return awsutil.Prettify(s)
  1012. }
  1013. // GoString returns the string representation
  1014. func (s AssociateVPCWithHostedZoneOutput) GoString() string {
  1015. return s.String()
  1016. }
  1017. // A complex type that contains the information for each change in a change
  1018. // batch request.
  1019. type Change struct {
  1020. // The action to perform.
  1021. //
  1022. // Valid values: CREATE | DELETE | UPSERT
  1023. Action *string `type:"string" required:"true" enum:"ChangeAction"`
  1024. // Information about the resource record set to create or delete.
  1025. ResourceRecordSet *ResourceRecordSet `type:"structure" required:"true"`
  1026. metadataChange `json:"-" xml:"-"`
  1027. }
  1028. type metadataChange struct {
  1029. SDKShapeTraits bool `type:"structure"`
  1030. }
  1031. // String returns the string representation
  1032. func (s Change) String() string {
  1033. return awsutil.Prettify(s)
  1034. }
  1035. // GoString returns the string representation
  1036. func (s Change) GoString() string {
  1037. return s.String()
  1038. }
  1039. // A complex type that contains an optional comment and the changes that you
  1040. // want to make with a change batch request.
  1041. type ChangeBatch struct {
  1042. // A complex type that contains one Change element for each resource record
  1043. // set that you want to create or delete.
  1044. Changes []*Change `locationNameList:"Change" type:"list" required:"true"`
  1045. // Optional: Any comments you want to include about a change batch request.
  1046. Comment *string `type:"string"`
  1047. metadataChangeBatch `json:"-" xml:"-"`
  1048. }
  1049. type metadataChangeBatch struct {
  1050. SDKShapeTraits bool `type:"structure"`
  1051. }
  1052. // String returns the string representation
  1053. func (s ChangeBatch) String() string {
  1054. return awsutil.Prettify(s)
  1055. }
  1056. // GoString returns the string representation
  1057. func (s ChangeBatch) GoString() string {
  1058. return s.String()
  1059. }
  1060. // A complex type that describes change information about changes made to your
  1061. // hosted zone.
  1062. //
  1063. // This element contains an ID that you use when performing a GetChange action
  1064. // to get detailed information about the change.
  1065. type ChangeInfo struct {
  1066. // A complex type that describes change information about changes made to your
  1067. // hosted zone.
  1068. //
  1069. // This element contains an ID that you use when performing a GetChange action
  1070. // to get detailed information about the change.
  1071. Comment *string `type:"string"`
  1072. // The ID of the request. Use this ID to track when the change has completed
  1073. // across all Amazon Route 53 DNS servers.
  1074. Id *string `type:"string" required:"true"`
  1075. // The current state of the request. PENDING indicates that this request has
  1076. // not yet been applied to all Amazon Route 53 DNS servers.
  1077. //
  1078. // Valid Values: PENDING | INSYNC
  1079. Status *string `type:"string" required:"true" enum:"ChangeStatus"`
  1080. // The date and time the change was submitted, in the format YYYY-MM-DDThh:mm:ssZ,
  1081. // as specified in the ISO 8601 standard (for example, 2009-11-19T19:37:58Z).
  1082. // The Z after the time indicates that the time is listed in Coordinated Universal
  1083. // Time (UTC), which is synonymous with Greenwich Mean Time in this context.
  1084. SubmittedAt *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
  1085. metadataChangeInfo `json:"-" xml:"-"`
  1086. }
  1087. type metadataChangeInfo struct {
  1088. SDKShapeTraits bool `type:"structure"`
  1089. }
  1090. // String returns the string representation
  1091. func (s ChangeInfo) String() string {
  1092. return awsutil.Prettify(s)
  1093. }
  1094. // GoString returns the string representation
  1095. func (s ChangeInfo) GoString() string {
  1096. return s.String()
  1097. }
  1098. // A complex type that contains a change batch.
  1099. type ChangeResourceRecordSetsInput struct {
  1100. // A complex type that contains an optional comment and the Changes element.
  1101. ChangeBatch *ChangeBatch `type:"structure" required:"true"`
  1102. // The ID of the hosted zone that contains the resource record sets that you
  1103. // want to change.
  1104. HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  1105. metadataChangeResourceRecordSetsInput `json:"-" xml:"-"`
  1106. }
  1107. type metadataChangeResourceRecordSetsInput struct {
  1108. SDKShapeTraits bool `locationName:"ChangeResourceRecordSetsRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
  1109. }
  1110. // String returns the string representation
  1111. func (s ChangeResourceRecordSetsInput) String() string {
  1112. return awsutil.Prettify(s)
  1113. }
  1114. // GoString returns the string representation
  1115. func (s ChangeResourceRecordSetsInput) GoString() string {
  1116. return s.String()
  1117. }
  1118. // A complex type containing the response for the request.
  1119. type ChangeResourceRecordSetsOutput struct {
  1120. // A complex type that contains information about changes made to your hosted
  1121. // zone.
  1122. //
  1123. // This element contains an ID that you use when performing a GetChange action
  1124. // to get detailed information about the change.
  1125. ChangeInfo *ChangeInfo `type:"structure" required:"true"`
  1126. metadataChangeResourceRecordSetsOutput `json:"-" xml:"-"`
  1127. }
  1128. type metadataChangeResourceRecordSetsOutput struct {
  1129. SDKShapeTraits bool `type:"structure"`
  1130. }
  1131. // String returns the string representation
  1132. func (s ChangeResourceRecordSetsOutput) String() string {
  1133. return awsutil.Prettify(s)
  1134. }
  1135. // GoString returns the string representation
  1136. func (s ChangeResourceRecordSetsOutput) GoString() string {
  1137. return s.String()
  1138. }
  1139. // A complex type containing information about a request to add, change, or
  1140. // delete the tags that are associated with a resource.
  1141. type ChangeTagsForResourceInput struct {
  1142. // A complex type that contains a list of Tag elements. Each Tag element identifies
  1143. // a tag that you want to add or update for the specified resource.
  1144. AddTags []*Tag `locationNameList:"Tag" type:"list"`
  1145. // A list of Tag keys that you want to remove from the specified resource.
  1146. RemoveTagKeys []*string `locationNameList:"Key" type:"list"`
  1147. // The ID of the resource for which you want to add, change, or delete tags.
  1148. ResourceId *string `location:"uri" locationName:"ResourceId" type:"string" required:"true"`
  1149. // The type of the resource.
  1150. //
  1151. // - The resource type for health checks is healthcheck.
  1152. //
  1153. // - The resource type for hosted zones is hostedzone.
  1154. ResourceType *string `location:"uri" locationName:"ResourceType" type:"string" required:"true" enum:"TagResourceType"`
  1155. metadataChangeTagsForResourceInput `json:"-" xml:"-"`
  1156. }
  1157. type metadataChangeTagsForResourceInput struct {
  1158. SDKShapeTraits bool `locationName:"ChangeTagsForResourceRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
  1159. }
  1160. // String returns the string representation
  1161. func (s ChangeTagsForResourceInput) String() string {
  1162. return awsutil.Prettify(s)
  1163. }
  1164. // GoString returns the string representation
  1165. func (s ChangeTagsForResourceInput) GoString() string {
  1166. return s.String()
  1167. }
  1168. // Empty response for the request.
  1169. type ChangeTagsForResourceOutput struct {
  1170. metadataChangeTagsForResourceOutput `json:"-" xml:"-"`
  1171. }
  1172. type metadataChangeTagsForResourceOutput struct {
  1173. SDKShapeTraits bool `type:"structure"`
  1174. }
  1175. // String returns the string representation
  1176. func (s ChangeTagsForResourceOutput) String() string {
  1177. return awsutil.Prettify(s)
  1178. }
  1179. // GoString returns the string representation
  1180. func (s ChangeTagsForResourceOutput) GoString() string {
  1181. return s.String()
  1182. }
  1183. // >A complex type that contains information about the request to create a health
  1184. // check.
  1185. type CreateHealthCheckInput struct {
  1186. // A unique string that identifies the request and that allows failed CreateHealthCheck
  1187. // requests to be retried without the risk of executing the operation twice.
  1188. // You must use a unique CallerReference string every time you create a health
  1189. // check. CallerReference can be any unique string; you might choose to use
  1190. // a string that identifies your project.
  1191. //
  1192. // Valid characters are any Unicode code points that are legal in an XML 1.0
  1193. // document. The UTF-8 encoding of the value must be less than 128 bytes.
  1194. CallerReference *string `type:"string" required:"true"`
  1195. // A complex type that contains health check configuration.
  1196. HealthCheckConfig *HealthCheckConfig `type:"structure" required:"true"`
  1197. metadataCreateHealthCheckInput `json:"-" xml:"-"`
  1198. }
  1199. type metadataCreateHealthCheckInput struct {
  1200. SDKShapeTraits bool `locationName:"CreateHealthCheckRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
  1201. }
  1202. // String returns the string representation
  1203. func (s CreateHealthCheckInput) String() string {
  1204. return awsutil.Prettify(s)
  1205. }
  1206. // GoString returns the string representation
  1207. func (s CreateHealthCheckInput) GoString() string {
  1208. return s.String()
  1209. }
  1210. // A complex type containing the response information for the new health check.
  1211. type CreateHealthCheckOutput struct {
  1212. // A complex type that contains identifying information about the health check.
  1213. HealthCheck *HealthCheck `type:"structure" required:"true"`
  1214. // The unique URL representing the new health check.
  1215. Location *string `location:"header" locationName:"Location" type:"string" required:"true"`
  1216. metadataCreateHealthCheckOutput `json:"-" xml:"-"`
  1217. }
  1218. type metadataCreateHealthCheckOutput struct {
  1219. SDKShapeTraits bool `type:"structure"`
  1220. }
  1221. // String returns the string representation
  1222. func (s CreateHealthCheckOutput) String() string {
  1223. return awsutil.Prettify(s)
  1224. }
  1225. // GoString returns the string representation
  1226. func (s CreateHealthCheckOutput) GoString() string {
  1227. return s.String()
  1228. }
  1229. // A complex type that contains information about the request to create a hosted
  1230. // zone.
  1231. type CreateHostedZoneInput struct {
  1232. // A unique string that identifies the request and that allows failed CreateHostedZone
  1233. // requests to be retried without the risk of executing the operation twice.
  1234. // You must use a unique CallerReference string every time you create a hosted
  1235. // zone. CallerReference can be any unique string; you might choose to use a
  1236. // string that identifies your project, such as DNSMigration_01.
  1237. //
  1238. // Valid characters are any Unicode code points that are legal in an XML 1.0
  1239. // document. The UTF-8 encoding of the value must be less than 128 bytes.
  1240. CallerReference *string `type:"string" required:"true"`
  1241. // The delegation set id of the reusable delgation set whose NS records you
  1242. // want to assign to the new hosted zone.
  1243. DelegationSetId *string `type:"string"`
  1244. // A complex type that contains an optional comment about your hosted zone.
  1245. HostedZoneConfig *HostedZoneConfig `type:"structure"`
  1246. // The name of the domain. This must be a fully-specified domain, for example,
  1247. // www.example.com. The trailing dot is optional; Route 53 assumes that the
  1248. // domain name is fully qualified. This means that Route 53 treats www.example.com
  1249. // (without a trailing dot) and www.example.com. (with a trailing dot) as identical.
  1250. //
  1251. // This is the name you have registered with your DNS registrar. You should
  1252. // ask your registrar to change the authoritative name servers for your domain
  1253. // to the set of NameServers elements returned in DelegationSet.
  1254. Name *string `type:"string" required:"true"`
  1255. // The VPC that you want your hosted zone to be associated with. By providing
  1256. // this parameter, your newly created hosted cannot be resolved anywhere other
  1257. // than the given VPC.
  1258. VPC *VPC `type:"structure"`
  1259. metadataCreateHostedZoneInput `json:"-" xml:"-"`
  1260. }
  1261. type metadataCreateHostedZoneInput struct {
  1262. SDKShapeTraits bool `locationName:"CreateHostedZoneRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
  1263. }
  1264. // String returns the string representation
  1265. func (s CreateHostedZoneInput) String() string {
  1266. return awsutil.Prettify(s)
  1267. }
  1268. // GoString returns the string representation
  1269. func (s CreateHostedZoneInput) GoString() string {
  1270. return s.String()
  1271. }
  1272. // A complex type containing the response information for the new hosted zone.
  1273. type CreateHostedZoneOutput struct {
  1274. // A complex type that contains information about the request to create a hosted
  1275. // zone. This includes an ID that you use when you call the GetChange action
  1276. // to get the current status of the change request.
  1277. ChangeInfo *ChangeInfo `type:"structure" required:"true"`
  1278. // A complex type that contains name server information.
  1279. DelegationSet *DelegationSet `type:"structure" required:"true"`
  1280. // A complex type that contains identifying information about the hosted zone.
  1281. HostedZone *HostedZone `type:"structure" required:"true"`
  1282. // The unique URL representing the new hosted zone.
  1283. Location *string `location:"header" locationName:"Location" type:"string" required:"true"`
  1284. VPC *VPC `type:"structure"`
  1285. metadataCreateHostedZoneOutput `json:"-" xml:"-"`
  1286. }
  1287. type metadataCreateHostedZoneOutput struct {
  1288. SDKShapeTraits bool `type:"structure"`
  1289. }
  1290. // String returns the string representation
  1291. func (s CreateHostedZoneOutput) String() string {
  1292. return awsutil.Prettify(s)
  1293. }
  1294. // GoString returns the string representation
  1295. func (s CreateHostedZoneOutput) GoString() string {
  1296. return s.String()
  1297. }
  1298. type CreateReusableDelegationSetInput struct {
  1299. // A unique string that identifies the request and that allows failed CreateReusableDelegationSet
  1300. // requests to be retried without the risk of executing the operation twice.
  1301. // You must use a unique CallerReference string every time you create a reusable
  1302. // delegation set. CallerReference can be any unique string; you might choose
  1303. // to use a string that identifies your project, such as DNSMigration_01.
  1304. //
  1305. // Valid characters are any Unicode code points that are legal in an XML 1.0
  1306. // document. The UTF-8 encoding of the value must be less than 128 bytes.
  1307. CallerReference *string `type:"string" required:"true"`
  1308. // The ID of the hosted zone whose delegation set you want to mark as reusable.
  1309. // It is an optional parameter.
  1310. HostedZoneId *string `type:"string"`
  1311. metadataCreateReusableDelegationSetInput `json:"-" xml:"-"`
  1312. }
  1313. type metadataCreateReusableDelegationSetInput struct {
  1314. SDKShapeTraits bool `locationName:"CreateReusableDelegationSetRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
  1315. }
  1316. // String returns the string representation
  1317. func (s CreateReusableDelegationSetInput) String() string {
  1318. return awsutil.Prettify(s)
  1319. }
  1320. // GoString returns the string representation
  1321. func (s CreateReusableDelegationSetInput) GoString() string {
  1322. return s.String()
  1323. }
  1324. type CreateReusableDelegationSetOutput struct {
  1325. // A complex type that contains name server information.
  1326. DelegationSet *DelegationSet `type:"structure" required:"true"`
  1327. // The unique URL representing the new reusbale delegation set.
  1328. Location *string `location:"header" locationName:"Location" type:"string" required:"true"`
  1329. metadataCreateReusableDelegationSetOutput `json:"-" xml:"-"`
  1330. }
  1331. type metadataCreateReusableDelegationSetOutput struct {
  1332. SDKShapeTraits bool `type:"structure"`
  1333. }
  1334. // String returns the string representation
  1335. func (s CreateReusableDelegationSetOutput) String() string {
  1336. return awsutil.Prettify(s)
  1337. }
  1338. // GoString returns the string representation
  1339. func (s CreateReusableDelegationSetOutput) GoString() string {
  1340. return s.String()
  1341. }
  1342. // A complex type that contains name server information.
  1343. type DelegationSet struct {
  1344. CallerReference *string `type:"string"`
  1345. Id *string `type:"string"`
  1346. // A complex type that contains the authoritative name servers for the hosted
  1347. // zone. Use the method provided by your domain registrar to add an NS record
  1348. // to your domain for each NameServer that is assigned to your hosted zone.
  1349. NameServers []*string `locationNameList:"NameServer" type:"list" required:"true"`
  1350. metadataDelegationSet `json:"-" xml:"-"`
  1351. }
  1352. type metadataDelegationSet struct {
  1353. SDKShapeTraits bool `type:"structure"`
  1354. }
  1355. // String returns the string representation
  1356. func (s DelegationSet) String() string {
  1357. return awsutil.Prettify(s)
  1358. }
  1359. // GoString returns the string representation
  1360. func (s DelegationSet) GoString() string {
  1361. return s.String()
  1362. }
  1363. // A complex type containing the request information for delete health check.
  1364. type DeleteHealthCheckInput struct {
  1365. // The ID of the health check to delete.
  1366. HealthCheckId *string `location:"uri" locationName:"HealthCheckId" type:"string" required:"true"`
  1367. metadataDeleteHealthCheckInput `json:"-" xml:"-"`
  1368. }
  1369. type metadataDeleteHealthCheckInput struct {
  1370. SDKShapeTraits bool `type:"structure"`
  1371. }
  1372. // String returns the string representation
  1373. func (s DeleteHealthCheckInput) String() string {
  1374. return awsutil.Prettify(s)
  1375. }
  1376. // GoString returns the string representation
  1377. func (s DeleteHealthCheckInput) GoString() string {
  1378. return s.String()
  1379. }
  1380. // Empty response for the request.
  1381. type DeleteHealthCheckOutput struct {
  1382. metadataDeleteHealthCheckOutput `json:"-" xml:"-"`
  1383. }
  1384. type metadataDeleteHealthCheckOutput struct {
  1385. SDKShapeTraits bool `type:"structure"`
  1386. }
  1387. // String returns the string representation
  1388. func (s DeleteHealthCheckOutput) String() string {
  1389. return awsutil.Prettify(s)
  1390. }
  1391. // GoString returns the string representation
  1392. func (s DeleteHealthCheckOutput) GoString() string {
  1393. return s.String()
  1394. }
  1395. // A complex type that contains information about the hosted zone that you want
  1396. // to delete.
  1397. type DeleteHostedZoneInput struct {
  1398. // The ID of the hosted zone you want to delete.
  1399. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  1400. metadataDeleteHostedZoneInput `json:"-" xml:"-"`
  1401. }
  1402. type metadataDeleteHostedZoneInput struct {
  1403. SDKShapeTraits bool `type:"structure"`
  1404. }
  1405. // String returns the string representation
  1406. func (s DeleteHostedZoneInput) String() string {
  1407. return awsutil.Prettify(s)
  1408. }
  1409. // GoString returns the string representation
  1410. func (s DeleteHostedZoneInput) GoString() string {
  1411. return s.String()
  1412. }
  1413. // A complex type containing the response information for the request.
  1414. type DeleteHostedZoneOutput struct {
  1415. // A complex type that contains the ID, the status, and the date and time of
  1416. // your delete request.
  1417. ChangeInfo *ChangeInfo `type:"structure" required:"true"`
  1418. metadataDeleteHostedZoneOutput `json:"-" xml:"-"`
  1419. }
  1420. type metadataDeleteHostedZoneOutput struct {
  1421. SDKShapeTraits bool `type:"structure"`
  1422. }
  1423. // String returns the string representation
  1424. func (s DeleteHostedZoneOutput) String() string {
  1425. return awsutil.Prettify(s)
  1426. }
  1427. // GoString returns the string representation
  1428. func (s DeleteHostedZoneOutput) GoString() string {
  1429. return s.String()
  1430. }
  1431. // A complex type containing the information for the delete request.
  1432. type DeleteReusableDelegationSetInput struct {
  1433. // The ID of the reusable delegation set you want to delete.
  1434. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  1435. metadataDeleteReusableDelegationSetInput `json:"-" xml:"-"`
  1436. }
  1437. type metadataDeleteReusableDelegationSetInput struct {
  1438. SDKShapeTraits bool `type:"structure"`
  1439. }
  1440. // String returns the string representation
  1441. func (s DeleteReusableDelegationSetInput) String() string {
  1442. return awsutil.Prettify(s)
  1443. }
  1444. // GoString returns the string representation
  1445. func (s DeleteReusableDelegationSetInput) GoString() string {
  1446. return s.String()
  1447. }
  1448. // Empty response for the request.
  1449. type DeleteReusableDelegationSetOutput struct {
  1450. metadataDeleteReusableDelegationSetOutput `json:"-" xml:"-"`
  1451. }
  1452. type metadataDeleteReusableDelegationSetOutput struct {
  1453. SDKShapeTraits bool `type:"structure"`
  1454. }
  1455. // String returns the string representation
  1456. func (s DeleteReusableDelegationSetOutput) String() string {
  1457. return awsutil.Prettify(s)
  1458. }
  1459. // GoString returns the string representation
  1460. func (s DeleteReusableDelegationSetOutput) GoString() string {
  1461. return s.String()
  1462. }
  1463. // A complex type that contains information about the request to disassociate
  1464. // a VPC from an hosted zone.
  1465. type DisassociateVPCFromHostedZoneInput struct {
  1466. // Optional: Any comments you want to include about a DisassociateVPCFromHostedZoneRequest.
  1467. Comment *string `type:"string"`
  1468. // The ID of the hosted zone you want to disassociate your VPC from.
  1469. //
  1470. // Note that you cannot disassociate the last VPC from a hosted zone.
  1471. HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  1472. // The VPC that you want your hosted zone to be disassociated from.
  1473. VPC *VPC `type:"structure" required:"true"`
  1474. metadataDisassociateVPCFromHostedZoneInput `json:"-" xml:"-"`
  1475. }
  1476. type metadataDisassociateVPCFromHostedZoneInput struct {
  1477. SDKShapeTraits bool `locationName:"DisassociateVPCFromHostedZoneRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
  1478. }
  1479. // String returns the string representation
  1480. func (s DisassociateVPCFromHostedZoneInput) String() string {
  1481. return awsutil.Prettify(s)
  1482. }
  1483. // GoString returns the string representation
  1484. func (s DisassociateVPCFromHostedZoneInput) GoString() string {
  1485. return s.String()
  1486. }
  1487. // A complex type containing the response information for the request.
  1488. type DisassociateVPCFromHostedZoneOutput struct {
  1489. // A complex type that contains the ID, the status, and the date and time of
  1490. // your DisassociateVPCFromHostedZoneRequest.
  1491. ChangeInfo *ChangeInfo `type:"structure" required:"true"`
  1492. metadataDisassociateVPCFromHostedZoneOutput `json:"-" xml:"-"`
  1493. }
  1494. type metadataDisassociateVPCFromHostedZoneOutput struct {
  1495. SDKShapeTraits bool `type:"structure"`
  1496. }
  1497. // String returns the string representation
  1498. func (s DisassociateVPCFromHostedZoneOutput) String() string {
  1499. return awsutil.Prettify(s)
  1500. }
  1501. // GoString returns the string representation
  1502. func (s DisassociateVPCFromHostedZoneOutput) GoString() string {
  1503. return s.String()
  1504. }
  1505. // A complex type that contains information about a geo location.
  1506. type GeoLocation struct {
  1507. // The code for a continent geo location. Note: only continent locations have
  1508. // a continent code.
  1509. //
  1510. // Valid values: AF | AN | AS | EU | OC | NA | SA
  1511. //
  1512. // Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode
  1513. // returns an InvalidInput error.
  1514. ContinentCode *string `type:"string"`
  1515. // The code for a country geo location. The default location uses '*' for the
  1516. // country code and will match all locations that are not matched by a geo location.
  1517. //
  1518. // The default geo location uses a * for the country code. All other country
  1519. // codes follow the ISO 3166 two-character code.
  1520. CountryCode *string `type:"string"`
  1521. // The code for a country's subdivision (e.g., a province of Canada). A subdivision
  1522. // code is only valid with the appropriate country code.
  1523. //
  1524. // Constraint: Specifying SubdivisionCode without CountryCode returns an InvalidInput
  1525. // error.
  1526. SubdivisionCode *string `type:"string"`
  1527. metadataGeoLocation `json:"-" xml:"-"`
  1528. }
  1529. type metadataGeoLocation struct {
  1530. SDKShapeTraits bool `type:"structure"`
  1531. }
  1532. // String returns the string representation
  1533. func (s GeoLocation) String() string {
  1534. return awsutil.Prettify(s)
  1535. }
  1536. // GoString returns the string representation
  1537. func (s GeoLocation) GoString() string {
  1538. return s.String()
  1539. }
  1540. // A complex type that contains information about a GeoLocation.
  1541. type GeoLocationDetails struct {
  1542. // The code for a continent geo location. Note: only continent locations have
  1543. // a continent code.
  1544. ContinentCode *string `type:"string"`
  1545. // The name of the continent. This element is only present if ContinentCode
  1546. // is also present.
  1547. ContinentName *string `type:"string"`
  1548. // The code for a country geo location. The default location uses '*' for the
  1549. // country code and will match all locations that are not matched by a geo location.
  1550. //
  1551. // The default geo location uses a * for the country code. All other country
  1552. // codes follow the ISO 3166 two-character code.
  1553. CountryCode *string `type:"string"`
  1554. // The name of the country. This element is only present if CountryCode is also
  1555. // present.
  1556. CountryName *string `type:"string"`
  1557. // The code for a country's subdivision (e.g., a province of Canada). A subdivision
  1558. // code is only valid with the appropriate country code.
  1559. SubdivisionCode *string `type:"string"`
  1560. // The name of the subdivision. This element is only present if SubdivisionCode
  1561. // is also present.
  1562. SubdivisionName *string `type:"string"`
  1563. metadataGeoLocationDetails `json:"-" xml:"-"`
  1564. }
  1565. type metadataGeoLocationDetails struct {
  1566. SDKShapeTraits bool `type:"structure"`
  1567. }
  1568. // String returns the string representation
  1569. func (s GeoLocationDetails) String() string {
  1570. return awsutil.Prettify(s)
  1571. }
  1572. // GoString returns the string representation
  1573. func (s GeoLocationDetails) GoString() string {
  1574. return s.String()
  1575. }
  1576. // The input for a GetChange request.
  1577. type GetChangeInput struct {
  1578. // The ID of the change batch request. The value that you specify here is the
  1579. // value that ChangeResourceRecordSets returned in the Id element when you submitted
  1580. // the request.
  1581. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  1582. metadataGetChangeInput `json:"-" xml:"-"`
  1583. }
  1584. type metadataGetChangeInput struct {
  1585. SDKShapeTraits bool `type:"structure"`
  1586. }
  1587. // String returns the string representation
  1588. func (s GetChangeInput) String() string {
  1589. return awsutil.Prettify(s)
  1590. }
  1591. // GoString returns the string representation
  1592. func (s GetChangeInput) GoString() string {
  1593. return s.String()
  1594. }
  1595. // A complex type that contains the ChangeInfo element.
  1596. type GetChangeOutput struct {
  1597. // A complex type that contains information about the specified change batch,
  1598. // including the change batch ID, the status of the change, and the date and
  1599. // time of the request.
  1600. ChangeInfo *ChangeInfo `type:"structure" required:"true"`
  1601. metadataGetChangeOutput `json:"-" xml:"-"`
  1602. }
  1603. type metadataGetChangeOutput struct {
  1604. SDKShapeTraits bool `type:"structure"`
  1605. }
  1606. // String returns the string representation
  1607. func (s GetChangeOutput) String() string {
  1608. return awsutil.Prettify(s)
  1609. }
  1610. // GoString returns the string representation
  1611. func (s GetChangeOutput) GoString() string {
  1612. return s.String()
  1613. }
  1614. // Empty request.
  1615. type GetCheckerIpRangesInput struct {
  1616. metadataGetCheckerIpRangesInput `json:"-" xml:"-"`
  1617. }
  1618. type metadataGetCheckerIpRangesInput struct {
  1619. SDKShapeTraits bool `type:"structure"`
  1620. }
  1621. // String returns the string representation
  1622. func (s GetCheckerIpRangesInput) String() string {
  1623. return awsutil.Prettify(s)
  1624. }
  1625. // GoString returns the string representation
  1626. func (s GetCheckerIpRangesInput) GoString() string {
  1627. return s.String()
  1628. }
  1629. // A complex type that contains the CheckerIpRanges element.
  1630. type GetCheckerIpRangesOutput struct {
  1631. // A complex type that contains sorted list of IP ranges in CIDR format for
  1632. // Amazon Route 53 health checkers.
  1633. CheckerIpRanges []*string `type:"list" required:"true"`
  1634. metadataGetCheckerIpRangesOutput `json:"-" xml:"-"`
  1635. }
  1636. type metadataGetCheckerIpRangesOutput struct {
  1637. SDKShapeTraits bool `type:"structure"`
  1638. }
  1639. // String returns the string representation
  1640. func (s GetCheckerIpRangesOutput) String() string {
  1641. return awsutil.Prettify(s)
  1642. }
  1643. // GoString returns the string representation
  1644. func (s GetCheckerIpRangesOutput) GoString() string {
  1645. return s.String()
  1646. }
  1647. // A complex type that contains information about the request to get a geo location.
  1648. type GetGeoLocationInput struct {
  1649. // The code for a continent geo location. Note: only continent locations have
  1650. // a continent code.
  1651. //
  1652. // Valid values: AF | AN | AS | EU | OC | NA | SA
  1653. //
  1654. // Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode
  1655. // returns an InvalidInput error.
  1656. ContinentCode *string `location:"querystring" locationName:"continentcode" type:"string"`
  1657. // The code for a country geo location. The default location uses '*' for the
  1658. // country code and will match all locations that are not matched by a geo location.
  1659. //
  1660. // The default geo location uses a * for the country code. All other country
  1661. // codes follow the ISO 3166 two-character code.
  1662. CountryCode *string `location:"querystring" locationName:"countrycode" type:"string"`
  1663. // The code for a country's subdivision (e.g., a province of Canada). A subdivision
  1664. // code is only valid with the appropriate country code.
  1665. //
  1666. // Constraint: Specifying SubdivisionCode without CountryCode returns an InvalidInput
  1667. // error.
  1668. SubdivisionCode *string `location:"querystring" locationName:"subdivisioncode" type:"string"`
  1669. metadataGetGeoLocationInput `json:"-" xml:"-"`
  1670. }
  1671. type metadataGetGeoLocationInput struct {
  1672. SDKShapeTraits bool `type:"structure"`
  1673. }
  1674. // String returns the string representation
  1675. func (s GetGeoLocationInput) String() string {
  1676. return awsutil.Prettify(s)
  1677. }
  1678. // GoString returns the string representation
  1679. func (s GetGeoLocationInput) GoString() string {
  1680. return s.String()
  1681. }
  1682. // A complex type containing information about the specified geo location.
  1683. type GetGeoLocationOutput struct {
  1684. // A complex type that contains the information about the specified geo location.
  1685. GeoLocationDetails *GeoLocationDetails `type:"structure" required:"true"`
  1686. metadataGetGeoLocationOutput `json:"-" xml:"-"`
  1687. }
  1688. type metadataGetGeoLocationOutput struct {
  1689. SDKShapeTraits bool `type:"structure"`
  1690. }
  1691. // String returns the string representation
  1692. func (s GetGeoLocationOutput) String() string {
  1693. return awsutil.Prettify(s)
  1694. }
  1695. // GoString returns the string representation
  1696. func (s GetGeoLocationOutput) GoString() string {
  1697. return s.String()
  1698. }
  1699. // To retrieve a count of all your health checks, send a GET request to the
  1700. // 2013-04-01/healthcheckcount resource.
  1701. type GetHealthCheckCountInput struct {
  1702. metadataGetHealthCheckCountInput `json:"-" xml:"-"`
  1703. }
  1704. type metadataGetHealthCheckCountInput struct {
  1705. SDKShapeTraits bool `type:"structure"`
  1706. }
  1707. // String returns the string representation
  1708. func (s GetHealthCheckCountInput) String() string {
  1709. return awsutil.Prettify(s)
  1710. }
  1711. // GoString returns the string representation
  1712. func (s GetHealthCheckCountInput) GoString() string {
  1713. return s.String()
  1714. }
  1715. // A complex type that contains the count of health checks associated with the
  1716. // current AWS account.
  1717. type GetHealthCheckCountOutput struct {
  1718. // The number of health checks associated with the current AWS account.
  1719. HealthCheckCount *int64 `type:"long" required:"true"`
  1720. metadataGetHealthCheckCountOutput `json:"-" xml:"-"`
  1721. }
  1722. type metadataGetHealthCheckCountOutput struct {
  1723. SDKShapeTraits bool `type:"structure"`
  1724. }
  1725. // String returns the string representation
  1726. func (s GetHealthCheckCountOutput) String() string {
  1727. return awsutil.Prettify(s)
  1728. }
  1729. // GoString returns the string representation
  1730. func (s GetHealthCheckCountOutput) GoString() string {
  1731. return s.String()
  1732. }
  1733. // A complex type that contains information about the request to get a health
  1734. // check.
  1735. type GetHealthCheckInput struct {
  1736. // The ID of the health check to retrieve.
  1737. HealthCheckId *string `location:"uri" locationName:"HealthCheckId" type:"string" required:"true"`
  1738. metadataGetHealthCheckInput `json:"-" xml:"-"`
  1739. }
  1740. type metadataGetHealthCheckInput struct {
  1741. SDKShapeTraits bool `type:"structure"`
  1742. }
  1743. // String returns the string representation
  1744. func (s GetHealthCheckInput) String() string {
  1745. return awsutil.Prettify(s)
  1746. }
  1747. // GoString returns the string representation
  1748. func (s GetHealthCheckInput) GoString() string {
  1749. return s.String()
  1750. }
  1751. // A complex type that contains information about the request to get the most
  1752. // recent failure reason for a health check.
  1753. type GetHealthCheckLastFailureReasonInput struct {
  1754. // The ID of the health check for which you want to retrieve the reason for
  1755. // the most recent failure.
  1756. HealthCheckId *string `location:"uri" locationName:"HealthCheckId" type:"string" required:"true"`
  1757. metadataGetHealthCheckLastFailureReasonInput `json:"-" xml:"-"`
  1758. }
  1759. type metadataGetHealthCheckLastFailureReasonInput struct {
  1760. SDKShapeTraits bool `type:"structure"`
  1761. }
  1762. // String returns the string representation
  1763. func (s GetHealthCheckLastFailureReasonInput) String() string {
  1764. return awsutil.Prettify(s)
  1765. }
  1766. // GoString returns the string representation
  1767. func (s GetHealthCheckLastFailureReasonInput) GoString() string {
  1768. return s.String()
  1769. }
  1770. // A complex type that contains information about the most recent failure for
  1771. // the specified health check.
  1772. type GetHealthCheckLastFailureReasonOutput struct {
  1773. // A list that contains one HealthCheckObservation element for each Route 53
  1774. // health checker.
  1775. HealthCheckObservations []*HealthCheckObservation `locationNameList:"HealthCheckObservation" type:"list" required:"true"`
  1776. metadataGetHealthCheckLastFailureReasonOutput `json:"-" xml:"-"`
  1777. }
  1778. type metadataGetHealthCheckLastFailureReasonOutput struct {
  1779. SDKShapeTraits bool `type:"structure"`
  1780. }
  1781. // String returns the string representation
  1782. func (s GetHealthCheckLastFailureReasonOutput) String() string {
  1783. return awsutil.Prettify(s)
  1784. }
  1785. // GoString returns the string representation
  1786. func (s GetHealthCheckLastFailureReasonOutput) GoString() string {
  1787. return s.String()
  1788. }
  1789. // A complex type containing information about the specified health check.
  1790. type GetHealthCheckOutput struct {
  1791. // A complex type that contains the information about the specified health check.
  1792. HealthCheck *HealthCheck `type:"structure" required:"true"`
  1793. metadataGetHealthCheckOutput `json:"-" xml:"-"`
  1794. }
  1795. type metadataGetHealthCheckOutput struct {
  1796. SDKShapeTraits bool `type:"structure"`
  1797. }
  1798. // String returns the string representation
  1799. func (s GetHealthCheckOutput) String() string {
  1800. return awsutil.Prettify(s)
  1801. }
  1802. // GoString returns the string representation
  1803. func (s GetHealthCheckOutput) GoString() string {
  1804. return s.String()
  1805. }
  1806. // A complex type that contains information about the request to get health
  1807. // check status for a health check.
  1808. type GetHealthCheckStatusInput struct {
  1809. // The ID of the health check for which you want to retrieve the most recent
  1810. // status.
  1811. HealthCheckId *string `location:"uri" locationName:"HealthCheckId" type:"string" required:"true"`
  1812. metadataGetHealthCheckStatusInput `json:"-" xml:"-"`
  1813. }
  1814. type metadataGetHealthCheckStatusInput struct {
  1815. SDKShapeTraits bool `type:"structure"`
  1816. }
  1817. // String returns the string representation
  1818. func (s GetHealthCheckStatusInput) String() string {
  1819. return awsutil.Prettify(s)
  1820. }
  1821. // GoString returns the string representation
  1822. func (s GetHealthCheckStatusInput) GoString() string {
  1823. return s.String()
  1824. }
  1825. // A complex type that contains information about the status of the specified
  1826. // health check.
  1827. type GetHealthCheckStatusOutput struct {
  1828. // A list that contains one HealthCheckObservation element for each Route 53
  1829. // health checker.
  1830. HealthCheckObservations []*HealthCheckObservation `locationNameList:"HealthCheckObservation" type:"list" required:"true"`
  1831. metadataGetHealthCheckStatusOutput `json:"-" xml:"-"`
  1832. }
  1833. type metadataGetHealthCheckStatusOutput struct {
  1834. SDKShapeTraits bool `type:"structure"`
  1835. }
  1836. // String returns the string representation
  1837. func (s GetHealthCheckStatusOutput) String() string {
  1838. return awsutil.Prettify(s)
  1839. }
  1840. // GoString returns the string representation
  1841. func (s GetHealthCheckStatusOutput) GoString() string {
  1842. return s.String()
  1843. }
  1844. // To retrieve a count of all your hosted zones, send a GET request to the 2013-04-01/hostedzonecount
  1845. // resource.
  1846. type GetHostedZoneCountInput struct {
  1847. metadataGetHostedZoneCountInput `json:"-" xml:"-"`
  1848. }
  1849. type metadataGetHostedZoneCountInput struct {
  1850. SDKShapeTraits bool `type:"structure"`
  1851. }
  1852. // String returns the string representation
  1853. func (s GetHostedZoneCountInput) String() string {
  1854. return awsutil.Prettify(s)
  1855. }
  1856. // GoString returns the string representation
  1857. func (s GetHostedZoneCountInput) GoString() string {
  1858. return s.String()
  1859. }
  1860. // A complex type that contains the count of hosted zones associated with the
  1861. // current AWS account.
  1862. type GetHostedZoneCountOutput struct {
  1863. // The number of hosted zones associated with the current AWS account.
  1864. HostedZoneCount *int64 `type:"long" required:"true"`
  1865. metadataGetHostedZoneCountOutput `json:"-" xml:"-"`
  1866. }
  1867. type metadataGetHostedZoneCountOutput struct {
  1868. SDKShapeTraits bool `type:"structure"`
  1869. }
  1870. // String returns the string representation
  1871. func (s GetHostedZoneCountOutput) String() string {
  1872. return awsutil.Prettify(s)
  1873. }
  1874. // GoString returns the string representation
  1875. func (s GetHostedZoneCountOutput) GoString() string {
  1876. return s.String()
  1877. }
  1878. // The input for a GetHostedZone request.
  1879. type GetHostedZoneInput struct {
  1880. // The ID of the hosted zone for which you want to get a list of the name servers
  1881. // in the delegation set.
  1882. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  1883. metadataGetHostedZoneInput `json:"-" xml:"-"`
  1884. }
  1885. type metadataGetHostedZoneInput struct {
  1886. SDKShapeTraits bool `type:"structure"`
  1887. }
  1888. // String returns the string representation
  1889. func (s GetHostedZoneInput) String() string {
  1890. return awsutil.Prettify(s)
  1891. }
  1892. // GoString returns the string representation
  1893. func (s GetHostedZoneInput) GoString() string {
  1894. return s.String()
  1895. }
  1896. // A complex type containing information about the specified hosted zone.
  1897. type GetHostedZoneOutput struct {
  1898. // A complex type that contains information about the name servers for the specified
  1899. // hosted zone.
  1900. DelegationSet *DelegationSet `type:"structure"`
  1901. // A complex type that contains the information about the specified hosted zone.
  1902. HostedZone *HostedZone `type:"structure" required:"true"`
  1903. // A complex type that contains information about VPCs associated with the specified
  1904. // hosted zone.
  1905. VPCs []*VPC `locationNameList:"VPC" type:"list"`
  1906. metadataGetHostedZoneOutput `json:"-" xml:"-"`
  1907. }
  1908. type metadataGetHostedZoneOutput struct {
  1909. SDKShapeTraits bool `type:"structure"`
  1910. }
  1911. // String returns the string representation
  1912. func (s GetHostedZoneOutput) String() string {
  1913. return awsutil.Prettify(s)
  1914. }
  1915. // GoString returns the string representation
  1916. func (s GetHostedZoneOutput) GoString() string {
  1917. return s.String()
  1918. }
  1919. // The input for a GetReusableDelegationSet request.
  1920. type GetReusableDelegationSetInput struct {
  1921. // The ID of the reusable delegation set for which you want to get a list of
  1922. // the name server.
  1923. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  1924. metadataGetReusableDelegationSetInput `json:"-" xml:"-"`
  1925. }
  1926. type metadataGetReusableDelegationSetInput struct {
  1927. SDKShapeTraits bool `type:"structure"`
  1928. }
  1929. // String returns the string representation
  1930. func (s GetReusableDelegationSetInput) String() string {
  1931. return awsutil.Prettify(s)
  1932. }
  1933. // GoString returns the string representation
  1934. func (s GetReusableDelegationSetInput) GoString() string {
  1935. return s.String()
  1936. }
  1937. // A complex type containing information about the specified reusable delegation
  1938. // set.
  1939. type GetReusableDelegationSetOutput struct {
  1940. // A complex type that contains the information about the nameservers for the
  1941. // specified delegation set ID.
  1942. DelegationSet *DelegationSet `type:"structure" required:"true"`
  1943. metadataGetReusableDelegationSetOutput `json:"-" xml:"-"`
  1944. }
  1945. type metadataGetReusableDelegationSetOutput struct {
  1946. SDKShapeTraits bool `type:"structure"`
  1947. }
  1948. // String returns the string representation
  1949. func (s GetReusableDelegationSetOutput) String() string {
  1950. return awsutil.Prettify(s)
  1951. }
  1952. // GoString returns the string representation
  1953. func (s GetReusableDelegationSetOutput) GoString() string {
  1954. return s.String()
  1955. }
  1956. // A complex type that contains identifying information about the health check.
  1957. type HealthCheck struct {
  1958. // A unique string that identifies the request to create the health check.
  1959. CallerReference *string `type:"string" required:"true"`
  1960. // A complex type that contains the health check configuration.
  1961. HealthCheckConfig *HealthCheckConfig `type:"structure" required:"true"`
  1962. // The version of the health check. You can optionally pass this value in a
  1963. // call to UpdateHealthCheck to prevent overwriting another change to the health
  1964. // check.
  1965. HealthCheckVersion *int64 `type:"long" required:"true"`
  1966. // The ID of the specified health check.
  1967. Id *string `type:"string" required:"true"`
  1968. metadataHealthCheck `json:"-" xml:"-"`
  1969. }
  1970. type metadataHealthCheck struct {
  1971. SDKShapeTraits bool `type:"structure"`
  1972. }
  1973. // String returns the string representation
  1974. func (s HealthCheck) String() string {
  1975. return awsutil.Prettify(s)
  1976. }
  1977. // GoString returns the string representation
  1978. func (s HealthCheck) GoString() string {
  1979. return s.String()
  1980. }
  1981. // A complex type that contains the health check configuration.
  1982. type HealthCheckConfig struct {
  1983. // The number of consecutive health checks that an endpoint must pass or fail
  1984. // for Route 53 to change the current status of the endpoint from unhealthy
  1985. // to healthy or vice versa.
  1986. //
  1987. // Valid values are integers between 1 and 10. For more information, see "How
  1988. // Amazon Route 53 Determines Whether an Endpoint Is Healthy" in the Amazon
  1989. // Route 53 Developer Guide.
  1990. FailureThreshold *int64 `type:"integer"`
  1991. // Fully qualified domain name of the instance to be health checked.
  1992. FullyQualifiedDomainName *string `type:"string"`
  1993. // IP Address of the instance being checked.
  1994. IPAddress *string `type:"string"`
  1995. // Port on which connection will be opened to the instance to health check.
  1996. // For HTTP and HTTP_STR_MATCH this defaults to 80 if the port is not specified.
  1997. // For HTTPS and HTTPS_STR_MATCH this defaults to 443 if the port is not specified.
  1998. Port *int64 `type:"integer"`
  1999. // The number of seconds between the time that Route 53 gets a response from
  2000. // your endpoint and the time that it sends the next health-check request.
  2001. //
  2002. // Each Route 53 health checker makes requests at this interval. Valid values
  2003. // are 10 and 30. The default value is 30.
  2004. RequestInterval *int64 `type:"integer"`
  2005. // Path to ping on the instance to check the health. Required for HTTP, HTTPS,
  2006. // HTTP_STR_MATCH, and HTTPS_STR_MATCH health checks, HTTP request is issued
  2007. // to the instance on the given port and path.
  2008. ResourcePath *string `type:"string"`
  2009. // A string to search for in the body of a health check response. Required for
  2010. // HTTP_STR_MATCH and HTTPS_STR_MATCH health checks.
  2011. SearchString *string `type:"string"`
  2012. // The type of health check to be performed. Currently supported types are TCP,
  2013. // HTTP, HTTPS, HTTP_STR_MATCH, and HTTPS_STR_MATCH.
  2014. Type *string `type:"string" required:"true" enum:"HealthCheckType"`
  2015. metadataHealthCheckConfig `json:"-" xml:"-"`
  2016. }
  2017. type metadataHealthCheckConfig struct {
  2018. SDKShapeTraits bool `type:"structure"`
  2019. }
  2020. // String returns the string representation
  2021. func (s HealthCheckConfig) String() string {
  2022. return awsutil.Prettify(s)
  2023. }
  2024. // GoString returns the string representation
  2025. func (s HealthCheckConfig) GoString() string {
  2026. return s.String()
  2027. }
  2028. // A complex type that contains the IP address of a Route 53 health checker
  2029. // and the reason for the health check status.
  2030. type HealthCheckObservation struct {
  2031. // The IP address of the Route 53 health checker that performed the health check.
  2032. IPAddress *string `type:"string"`
  2033. // A complex type that contains information about the health check status for
  2034. // the current observation.
  2035. StatusReport *StatusReport `type:"structure"`
  2036. metadataHealthCheckObservation `json:"-" xml:"-"`
  2037. }
  2038. type metadataHealthCheckObservation struct {
  2039. SDKShapeTraits bool `type:"structure"`
  2040. }
  2041. // String returns the string representation
  2042. func (s HealthCheckObservation) String() string {
  2043. return awsutil.Prettify(s)
  2044. }
  2045. // GoString returns the string representation
  2046. func (s HealthCheckObservation) GoString() string {
  2047. return s.String()
  2048. }
  2049. // A complex type that contain information about the specified hosted zone.
  2050. type HostedZone struct {
  2051. // A unique string that identifies the request to create the hosted zone.
  2052. CallerReference *string `type:"string" required:"true"`
  2053. // A complex type that contains the Comment element.
  2054. Config *HostedZoneConfig `type:"structure"`
  2055. // The ID of the specified hosted zone.
  2056. Id *string `type:"string" required:"true"`
  2057. // The name of the domain. This must be a fully-specified domain, for example,
  2058. // www.example.com. The trailing dot is optional; Route 53 assumes that the
  2059. // domain name is fully qualified. This means that Route 53 treats www.example.com
  2060. // (without a trailing dot) and www.example.com. (with a trailing dot) as identical.
  2061. //
  2062. // This is the name you have registered with your DNS registrar. You should
  2063. // ask your registrar to change the authoritative name servers for your domain
  2064. // to the set of NameServers elements returned in DelegationSet.
  2065. Name *string `type:"string" required:"true"`
  2066. // Total number of resource record sets in the hosted zone.
  2067. ResourceRecordSetCount *int64 `type:"long"`
  2068. metadataHostedZone `json:"-" xml:"-"`
  2069. }
  2070. type metadataHostedZone struct {
  2071. SDKShapeTraits bool `type:"structure"`
  2072. }
  2073. // String returns the string representation
  2074. func (s HostedZone) String() string {
  2075. return awsutil.Prettify(s)
  2076. }
  2077. // GoString returns the string representation
  2078. func (s HostedZone) GoString() string {
  2079. return s.String()
  2080. }
  2081. // A complex type that contains an optional comment about your hosted zone.
  2082. // If you don't want to specify a comment, you can omit the HostedZoneConfig
  2083. // and Comment elements from the XML document.
  2084. type HostedZoneConfig struct {
  2085. // An optional comment about your hosted zone. If you don't want to specify
  2086. // a comment, you can omit the HostedZoneConfig and Comment elements from the
  2087. // XML document.
  2088. Comment *string `type:"string"`
  2089. // A value that indicates whether this is a private hosted zone. The value is
  2090. // returned in the response; do not specify it in the request.
  2091. PrivateZone *bool `type:"boolean"`
  2092. metadataHostedZoneConfig `json:"-" xml:"-"`
  2093. }
  2094. type metadataHostedZoneConfig struct {
  2095. SDKShapeTraits bool `type:"structure"`
  2096. }
  2097. // String returns the string representation
  2098. func (s HostedZoneConfig) String() string {
  2099. return awsutil.Prettify(s)
  2100. }
  2101. // GoString returns the string representation
  2102. func (s HostedZoneConfig) GoString() string {
  2103. return s.String()
  2104. }
  2105. // The input for a ListGeoLocations request.
  2106. type ListGeoLocationsInput struct {
  2107. // The maximum number of geo locations you want in the response body.
  2108. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"`
  2109. // The first continent code in the lexicographic ordering of geo locations that
  2110. // you want the ListGeoLocations request to list. For non-continent geo locations,
  2111. // this should be null.
  2112. //
  2113. // Valid values: AF | AN | AS | EU | OC | NA | SA
  2114. //
  2115. // Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode
  2116. // returns an InvalidInput error.
  2117. StartContinentCode *string `location:"querystring" locationName:"startcontinentcode" type:"string"`
  2118. // The first country code in the lexicographic ordering of geo locations that
  2119. // you want the ListGeoLocations request to list.
  2120. //
  2121. // The default geo location uses a * for the country code. All other country
  2122. // codes follow the ISO 3166 two-character code.
  2123. StartCountryCode *string `location:"querystring" locationName:"startcountrycode" type:"string"`
  2124. // The first subdivision code in the lexicographic ordering of geo locations
  2125. // that you want the ListGeoLocations request to list.
  2126. //
  2127. // Constraint: Specifying SubdivisionCode without CountryCode returns an InvalidInput
  2128. // error.
  2129. StartSubdivisionCode *string `location:"querystring" locationName:"startsubdivisioncode" type:"string"`
  2130. metadataListGeoLocationsInput `json:"-" xml:"-"`
  2131. }
  2132. type metadataListGeoLocationsInput struct {
  2133. SDKShapeTraits bool `type:"structure"`
  2134. }
  2135. // String returns the string representation
  2136. func (s ListGeoLocationsInput) String() string {
  2137. return awsutil.Prettify(s)
  2138. }
  2139. // GoString returns the string representation
  2140. func (s ListGeoLocationsInput) GoString() string {
  2141. return s.String()
  2142. }
  2143. // A complex type that contains information about the geo locations that are
  2144. // returned by the request and information about the response.
  2145. type ListGeoLocationsOutput struct {
  2146. // A complex type that contains information about the geo locations that are
  2147. // returned by the request.
  2148. GeoLocationDetailsList []*GeoLocationDetails `locationNameList:"GeoLocationDetails" type:"list" required:"true"`
  2149. // A flag that indicates whether there are more geo locations to be listed.
  2150. // If your results were truncated, you can make a follow-up request for the
  2151. // next page of results by using the values included in the ListGeoLocationsResponse$NextContinentCode,
  2152. // ListGeoLocationsResponse$NextCountryCode and ListGeoLocationsResponse$NextSubdivisionCode
  2153. // elements.
  2154. //
  2155. // Valid Values: true | false
  2156. IsTruncated *bool `type:"boolean" required:"true"`
  2157. // The maximum number of records you requested. The maximum value of MaxItems
  2158. // is 100.
  2159. MaxItems *string `type:"string" required:"true"`
  2160. // If the results were truncated, the continent code of the next geo location
  2161. // in the list. This element is present only if ListGeoLocationsResponse$IsTruncated
  2162. // is true and the next geo location to list is a continent location.
  2163. NextContinentCode *string `type:"string"`
  2164. // If the results were truncated, the country code of the next geo location
  2165. // in the list. This element is present only if ListGeoLocationsResponse$IsTruncated
  2166. // is true and the next geo location to list is not a continent location.
  2167. NextCountryCode *string `type:"string"`
  2168. // If the results were truncated, the subdivision code of the next geo location
  2169. // in the list. This element is present only if ListGeoLocationsResponse$IsTruncated
  2170. // is true and the next geo location has a subdivision.
  2171. NextSubdivisionCode *string `type:"string"`
  2172. metadataListGeoLocationsOutput `json:"-" xml:"-"`
  2173. }
  2174. type metadataListGeoLocationsOutput struct {
  2175. SDKShapeTraits bool `type:"structure"`
  2176. }
  2177. // String returns the string representation
  2178. func (s ListGeoLocationsOutput) String() string {
  2179. return awsutil.Prettify(s)
  2180. }
  2181. // GoString returns the string representation
  2182. func (s ListGeoLocationsOutput) GoString() string {
  2183. return s.String()
  2184. }
  2185. // To retrieve a list of your health checks, send a GET request to the 2013-04-01/healthcheck
  2186. // resource. The response to this request includes a HealthChecks element with
  2187. // zero or more HealthCheck child elements. By default, the list of health checks
  2188. // is displayed on a single page. You can control the length of the page that
  2189. // is displayed by using the MaxItems parameter. You can use the Marker parameter
  2190. // to control the health check that the list begins with.
  2191. //
  2192. // Route 53 returns a maximum of 100 items. If you set MaxItems to a value
  2193. // greater than 100, Route 53 returns only the first 100.
  2194. type ListHealthChecksInput struct {
  2195. // If the request returned more than one page of results, submit another request
  2196. // and specify the value of NextMarker from the last response in the marker
  2197. // parameter to get the next page of results.
  2198. Marker *string `location:"querystring" locationName:"marker" type:"string"`
  2199. // Specify the maximum number of health checks to return per page of results.
  2200. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"`
  2201. metadataListHealthChecksInput `json:"-" xml:"-"`
  2202. }
  2203. type metadataListHealthChecksInput struct {
  2204. SDKShapeTraits bool `type:"structure"`
  2205. }
  2206. // String returns the string representation
  2207. func (s ListHealthChecksInput) String() string {
  2208. return awsutil.Prettify(s)
  2209. }
  2210. // GoString returns the string representation
  2211. func (s ListHealthChecksInput) GoString() string {
  2212. return s.String()
  2213. }
  2214. // A complex type that contains the response for the request.
  2215. type ListHealthChecksOutput struct {
  2216. // A complex type that contains information about the health checks associated
  2217. // with the current AWS account.
  2218. HealthChecks []*HealthCheck `locationNameList:"HealthCheck" type:"list" required:"true"`
  2219. // A flag indicating whether there are more health checks to be listed. If your
  2220. // results were truncated, you can make a follow-up request for the next page
  2221. // of results by using the Marker element.
  2222. //
  2223. // Valid Values: true | false
  2224. IsTruncated *bool `type:"boolean" required:"true"`
  2225. // If the request returned more than one page of results, submit another request
  2226. // and specify the value of NextMarker from the last response in the marker
  2227. // parameter to get the next page of results.
  2228. Marker *string `type:"string" required:"true"`
  2229. // The maximum number of health checks to be included in the response body.
  2230. // If the number of health checks associated with this AWS account exceeds MaxItems,
  2231. // the value of ListHealthChecksResponse$IsTruncated in the response is true.
  2232. // Call ListHealthChecks again and specify the value of ListHealthChecksResponse$NextMarker
  2233. // in the ListHostedZonesRequest$Marker element to get the next page of results.
  2234. MaxItems *string `type:"string" required:"true"`
  2235. // Indicates where to continue listing health checks. If ListHealthChecksResponse$IsTruncated
  2236. // is true, make another request to ListHealthChecks and include the value of
  2237. // the NextMarker element in the Marker element to get the next page of results.
  2238. NextMarker *string `type:"string"`
  2239. metadataListHealthChecksOutput `json:"-" xml:"-"`
  2240. }
  2241. type metadataListHealthChecksOutput struct {
  2242. SDKShapeTraits bool `type:"structure"`
  2243. }
  2244. // String returns the string representation
  2245. func (s ListHealthChecksOutput) String() string {
  2246. return awsutil.Prettify(s)
  2247. }
  2248. // GoString returns the string representation
  2249. func (s ListHealthChecksOutput) GoString() string {
  2250. return s.String()
  2251. }
  2252. // To retrieve a list of your hosted zones in lexicographic order, send a GET
  2253. // request to the 2013-04-01/hostedzonesbyname resource. The response to this
  2254. // request includes a HostedZones element with zero or more HostedZone child
  2255. // elements lexicographically ordered by DNS name. By default, the list of hosted
  2256. // zones is displayed on a single page. You can control the length of the page
  2257. // that is displayed by using the MaxItems parameter. You can use the DNSName
  2258. // and HostedZoneId parameters to control the hosted zone that the list begins
  2259. // with.
  2260. //
  2261. // For more information about listing hosted zones, see Listing the Hosted
  2262. // Zones for an AWS Account (http://docs.amazonwebservices.com/Route53/latest/DeveloperGuide/ListInfoOnHostedZone.html)
  2263. // in the Amazon Route 53 Developer Guide.
  2264. type ListHostedZonesByNameInput struct {
  2265. // The first name in the lexicographic ordering of domain names that you want
  2266. // the ListHostedZonesByNameRequest request to list.
  2267. //
  2268. // If the request returned more than one page of results, submit another request
  2269. // and specify the value of NextDNSName and NextHostedZoneId from the last response
  2270. // in the DNSName and HostedZoneId parameters to get the next page of results.
  2271. DNSName *string `location:"querystring" locationName:"dnsname" type:"string"`
  2272. // If the request returned more than one page of results, submit another request
  2273. // and specify the value of NextDNSName and NextHostedZoneId from the last response
  2274. // in the DNSName and HostedZoneId parameters to get the next page of results.
  2275. HostedZoneId *string `location:"querystring" locationName:"hostedzoneid" type:"string"`
  2276. // Specify the maximum number of hosted zones to return per page of results.
  2277. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"`
  2278. metadataListHostedZonesByNameInput `json:"-" xml:"-"`
  2279. }
  2280. type metadataListHostedZonesByNameInput struct {
  2281. SDKShapeTraits bool `type:"structure"`
  2282. }
  2283. // String returns the string representation
  2284. func (s ListHostedZonesByNameInput) String() string {
  2285. return awsutil.Prettify(s)
  2286. }
  2287. // GoString returns the string representation
  2288. func (s ListHostedZonesByNameInput) GoString() string {
  2289. return s.String()
  2290. }
  2291. // A complex type that contains the response for the request.
  2292. type ListHostedZonesByNameOutput struct {
  2293. // The DNSName value sent in the request.
  2294. DNSName *string `type:"string"`
  2295. // The HostedZoneId value sent in the request.
  2296. HostedZoneId *string `type:"string"`
  2297. // A complex type that contains information about the hosted zones associated
  2298. // with the current AWS account.
  2299. HostedZones []*HostedZone `locationNameList:"HostedZone" type:"list" required:"true"`
  2300. // A flag indicating whether there are more hosted zones to be listed. If your
  2301. // results were truncated, you can make a follow-up request for the next page
  2302. // of results by using the NextDNSName and NextHostedZoneId elements.
  2303. //
  2304. // Valid Values: true | false
  2305. IsTruncated *bool `type:"boolean" required:"true"`
  2306. // The maximum number of hosted zones to be included in the response body. If
  2307. // the number of hosted zones associated with this AWS account exceeds MaxItems,
  2308. // the value of ListHostedZonesByNameResponse$IsTruncated in the response is
  2309. // true. Call ListHostedZonesByName again and specify the value of ListHostedZonesByNameResponse$NextDNSName
  2310. // and ListHostedZonesByNameResponse$NextHostedZoneId elements respectively
  2311. // to get the next page of results.
  2312. MaxItems *string `type:"string" required:"true"`
  2313. // If ListHostedZonesByNameResponse$IsTruncated is true, there are more hosted
  2314. // zones associated with the current AWS account. To get the next page of results,
  2315. // make another request to ListHostedZonesByName. Specify the value of ListHostedZonesByNameResponse$NextDNSName
  2316. // in the ListHostedZonesByNameRequest$DNSName element and ListHostedZonesByNameResponse$NextHostedZoneId
  2317. // in the ListHostedZonesByNameRequest$HostedZoneId element.
  2318. NextDNSName *string `type:"string"`
  2319. // If ListHostedZonesByNameResponse$IsTruncated is true, there are more hosted
  2320. // zones associated with the current AWS account. To get the next page of results,
  2321. // make another request to ListHostedZonesByName. Specify the value of ListHostedZonesByNameResponse$NextDNSName
  2322. // in the ListHostedZonesByNameRequest$DNSName element and ListHostedZonesByNameResponse$NextHostedZoneId
  2323. // in the ListHostedZonesByNameRequest$HostedZoneId element.
  2324. NextHostedZoneId *string `type:"string"`
  2325. metadataListHostedZonesByNameOutput `json:"-" xml:"-"`
  2326. }
  2327. type metadataListHostedZonesByNameOutput struct {
  2328. SDKShapeTraits bool `type:"structure"`
  2329. }
  2330. // String returns the string representation
  2331. func (s ListHostedZonesByNameOutput) String() string {
  2332. return awsutil.Prettify(s)
  2333. }
  2334. // GoString returns the string representation
  2335. func (s ListHostedZonesByNameOutput) GoString() string {
  2336. return s.String()
  2337. }
  2338. // To retrieve a list of your hosted zones, send a GET request to the 2013-04-01/hostedzone
  2339. // resource. The response to this request includes a HostedZones element with
  2340. // zero or more HostedZone child elements. By default, the list of hosted zones
  2341. // is displayed on a single page. You can control the length of the page that
  2342. // is displayed by using the MaxItems parameter. You can use the Marker parameter
  2343. // to control the hosted zone that the list begins with. For more information
  2344. // about listing hosted zones, see Listing the Hosted Zones for an AWS Account
  2345. // (http://docs.amazonwebservices.com/Route53/latest/DeveloperGuide/ListInfoOnHostedZone.html)
  2346. // in the Amazon Route 53 Developer Guide.
  2347. //
  2348. // Route 53 returns a maximum of 100 items. If you set MaxItems to a value
  2349. // greater than 100, Route 53 returns only the first 100.
  2350. type ListHostedZonesInput struct {
  2351. DelegationSetId *string `location:"querystring" locationName:"delegationsetid" type:"string"`
  2352. // If the request returned more than one page of results, submit another request
  2353. // and specify the value of NextMarker from the last response in the marker
  2354. // parameter to get the next page of results.
  2355. Marker *string `location:"querystring" locationName:"marker" type:"string"`
  2356. // Specify the maximum number of hosted zones to return per page of results.
  2357. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"`
  2358. metadataListHostedZonesInput `json:"-" xml:"-"`
  2359. }
  2360. type metadataListHostedZonesInput struct {
  2361. SDKShapeTraits bool `type:"structure"`
  2362. }
  2363. // String returns the string representation
  2364. func (s ListHostedZonesInput) String() string {
  2365. return awsutil.Prettify(s)
  2366. }
  2367. // GoString returns the string representation
  2368. func (s ListHostedZonesInput) GoString() string {
  2369. return s.String()
  2370. }
  2371. // A complex type that contains the response for the request.
  2372. type ListHostedZonesOutput struct {
  2373. // A complex type that contains information about the hosted zones associated
  2374. // with the current AWS account.
  2375. HostedZones []*HostedZone `locationNameList:"HostedZone" type:"list" required:"true"`
  2376. // A flag indicating whether there are more hosted zones to be listed. If your
  2377. // results were truncated, you can make a follow-up request for the next page
  2378. // of results by using the Marker element.
  2379. //
  2380. // Valid Values: true | false
  2381. IsTruncated *bool `type:"boolean" required:"true"`
  2382. // If the request returned more than one page of results, submit another request
  2383. // and specify the value of NextMarker from the last response in the marker
  2384. // parameter to get the next page of results.
  2385. Marker *string `type:"string" required:"true"`
  2386. // The maximum number of hosted zones to be included in the response body. If
  2387. // the number of hosted zones associated with this AWS account exceeds MaxItems,
  2388. // the value of ListHostedZonesResponse$IsTruncated in the response is true.
  2389. // Call ListHostedZones again and specify the value of ListHostedZonesResponse$NextMarker
  2390. // in the ListHostedZonesRequest$Marker element to get the next page of results.
  2391. MaxItems *string `type:"string" required:"true"`
  2392. // Indicates where to continue listing hosted zones. If ListHostedZonesResponse$IsTruncated
  2393. // is true, make another request to ListHostedZones and include the value of
  2394. // the NextMarker element in the Marker element to get the next page of results.
  2395. NextMarker *string `type:"string"`
  2396. metadataListHostedZonesOutput `json:"-" xml:"-"`
  2397. }
  2398. type metadataListHostedZonesOutput struct {
  2399. SDKShapeTraits bool `type:"structure"`
  2400. }
  2401. // String returns the string representation
  2402. func (s ListHostedZonesOutput) String() string {
  2403. return awsutil.Prettify(s)
  2404. }
  2405. // GoString returns the string representation
  2406. func (s ListHostedZonesOutput) GoString() string {
  2407. return s.String()
  2408. }
  2409. // The input for a ListResourceRecordSets request.
  2410. type ListResourceRecordSetsInput struct {
  2411. // The ID of the hosted zone that contains the resource record sets that you
  2412. // want to get.
  2413. HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  2414. // The maximum number of records you want in the response body.
  2415. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"`
  2416. // Weighted resource record sets only: If results were truncated for a given
  2417. // DNS name and type, specify the value of ListResourceRecordSetsResponse$NextRecordIdentifier
  2418. // from the previous response to get the next resource record set that has the
  2419. // current DNS name and type.
  2420. StartRecordIdentifier *string `location:"querystring" locationName:"identifier" type:"string"`
  2421. // The first name in the lexicographic ordering of domain names that you want
  2422. // the ListResourceRecordSets request to list.
  2423. StartRecordName *string `location:"querystring" locationName:"name" type:"string"`
  2424. // The DNS type at which to begin the listing of resource record sets.
  2425. //
  2426. // Valid values: A | AAAA | CNAME | MX | NS | PTR | SOA | SPF | SRV | TXT
  2427. //
  2428. // Values for Weighted Resource Record Sets: A | AAAA | CNAME | TXT
  2429. //
  2430. // Values for Regional Resource Record Sets: A | AAAA | CNAME | TXT
  2431. //
  2432. // Values for Alias Resource Record Sets: A | AAAA
  2433. //
  2434. // Constraint: Specifying type without specifying name returns an InvalidInput
  2435. // error.
  2436. StartRecordType *string `location:"querystring" locationName:"type" type:"string" enum:"RRType"`
  2437. metadataListResourceRecordSetsInput `json:"-" xml:"-"`
  2438. }
  2439. type metadataListResourceRecordSetsInput struct {
  2440. SDKShapeTraits bool `type:"structure"`
  2441. }
  2442. // String returns the string representation
  2443. func (s ListResourceRecordSetsInput) String() string {
  2444. return awsutil.Prettify(s)
  2445. }
  2446. // GoString returns the string representation
  2447. func (s ListResourceRecordSetsInput) GoString() string {
  2448. return s.String()
  2449. }
  2450. // A complex type that contains information about the resource record sets that
  2451. // are returned by the request and information about the response.
  2452. type ListResourceRecordSetsOutput struct {
  2453. // A flag that indicates whether there are more resource record sets to be listed.
  2454. // If your results were truncated, you can make a follow-up request for the
  2455. // next page of results by using the ListResourceRecordSetsResponse$NextRecordName
  2456. // element.
  2457. //
  2458. // Valid Values: true | false
  2459. IsTruncated *bool `type:"boolean" required:"true"`
  2460. // The maximum number of records you requested. The maximum value of MaxItems
  2461. // is 100.
  2462. MaxItems *string `type:"string" required:"true"`
  2463. // Weighted resource record sets only: If results were truncated for a given
  2464. // DNS name and type, the value of SetIdentifier for the next resource record
  2465. // set that has the current DNS name and type.
  2466. NextRecordIdentifier *string `type:"string"`
  2467. // If the results were truncated, the name of the next record in the list. This
  2468. // element is present only if ListResourceRecordSetsResponse$IsTruncated is
  2469. // true.
  2470. NextRecordName *string `type:"string"`
  2471. // If the results were truncated, the type of the next record in the list. This
  2472. // element is present only if ListResourceRecordSetsResponse$IsTruncated is
  2473. // true.
  2474. NextRecordType *string `type:"string" enum:"RRType"`
  2475. // A complex type that contains information about the resource record sets that
  2476. // are returned by the request.
  2477. ResourceRecordSets []*ResourceRecordSet `locationNameList:"ResourceRecordSet" type:"list" required:"true"`
  2478. metadataListResourceRecordSetsOutput `json:"-" xml:"-"`
  2479. }
  2480. type metadataListResourceRecordSetsOutput struct {
  2481. SDKShapeTraits bool `type:"structure"`
  2482. }
  2483. // String returns the string representation
  2484. func (s ListResourceRecordSetsOutput) String() string {
  2485. return awsutil.Prettify(s)
  2486. }
  2487. // GoString returns the string representation
  2488. func (s ListResourceRecordSetsOutput) GoString() string {
  2489. return s.String()
  2490. }
  2491. // To retrieve a list of your reusable delegation sets, send a GET request to
  2492. // the 2013-04-01/delegationset resource. The response to this request includes
  2493. // a DelegationSets element with zero or more DelegationSet child elements.
  2494. // By default, the list of reusable delegation sets is displayed on a single
  2495. // page. You can control the length of the page that is displayed by using the
  2496. // MaxItems parameter. You can use the Marker parameter to control the delegation
  2497. // set that the list begins with.
  2498. //
  2499. // Route 53 returns a maximum of 100 items. If you set MaxItems to a value
  2500. // greater than 100, Route 53 returns only the first 100.
  2501. type ListReusableDelegationSetsInput struct {
  2502. // If the request returned more than one page of results, submit another request
  2503. // and specify the value of NextMarker from the last response in the marker
  2504. // parameter to get the next page of results.
  2505. Marker *string `location:"querystring" locationName:"marker" type:"string"`
  2506. // Specify the maximum number of reusable delegation sets to return per page
  2507. // of results.
  2508. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"`
  2509. metadataListReusableDelegationSetsInput `json:"-" xml:"-"`
  2510. }
  2511. type metadataListReusableDelegationSetsInput struct {
  2512. SDKShapeTraits bool `type:"structure"`
  2513. }
  2514. // String returns the string representation
  2515. func (s ListReusableDelegationSetsInput) String() string {
  2516. return awsutil.Prettify(s)
  2517. }
  2518. // GoString returns the string representation
  2519. func (s ListReusableDelegationSetsInput) GoString() string {
  2520. return s.String()
  2521. }
  2522. // A complex type that contains the response for the request.
  2523. type ListReusableDelegationSetsOutput struct {
  2524. // A complex type that contains information about the reusable delegation sets
  2525. // associated with the current AWS account.
  2526. DelegationSets []*DelegationSet `locationNameList:"DelegationSet" type:"list" required:"true"`
  2527. // A flag indicating whether there are more reusable delegation sets to be listed.
  2528. // If your results were truncated, you can make a follow-up request for the
  2529. // next page of results by using the Marker element.
  2530. //
  2531. // Valid Values: true | false
  2532. IsTruncated *bool `type:"boolean" required:"true"`
  2533. // If the request returned more than one page of results, submit another request
  2534. // and specify the value of NextMarker from the last response in the marker
  2535. // parameter to get the next page of results.
  2536. Marker *string `type:"string" required:"true"`
  2537. // The maximum number of reusable delegation sets to be included in the response
  2538. // body. If the number of reusable delegation sets associated with this AWS
  2539. // account exceeds MaxItems, the value of ListReusablDelegationSetsResponse$IsTruncated
  2540. // in the response is true. Call ListReusableDelegationSets again and specify
  2541. // the value of ListReusableDelegationSetsResponse$NextMarker in the ListReusableDelegationSetsRequest$Marker
  2542. // element to get the next page of results.
  2543. MaxItems *string `type:"string" required:"true"`
  2544. // Indicates where to continue listing reusable delegation sets. If ListReusableDelegationSetsResponse$IsTruncated
  2545. // is true, make another request to ListReusableDelegationSets and include the
  2546. // value of the NextMarker element in the Marker element to get the next page
  2547. // of results.
  2548. NextMarker *string `type:"string"`
  2549. metadataListReusableDelegationSetsOutput `json:"-" xml:"-"`
  2550. }
  2551. type metadataListReusableDelegationSetsOutput struct {
  2552. SDKShapeTraits bool `type:"structure"`
  2553. }
  2554. // String returns the string representation
  2555. func (s ListReusableDelegationSetsOutput) String() string {
  2556. return awsutil.Prettify(s)
  2557. }
  2558. // GoString returns the string representation
  2559. func (s ListReusableDelegationSetsOutput) GoString() string {
  2560. return s.String()
  2561. }
  2562. // A complex type containing information about a request for a list of the tags
  2563. // that are associated with an individual resource.
  2564. type ListTagsForResourceInput struct {
  2565. // The ID of the resource for which you want to retrieve tags.
  2566. ResourceId *string `location:"uri" locationName:"ResourceId" type:"string" required:"true"`
  2567. // The type of the resource.
  2568. //
  2569. // - The resource type for health checks is healthcheck.
  2570. //
  2571. // - The resource type for hosted zones is hostedzone.
  2572. ResourceType *string `location:"uri" locationName:"ResourceType" type:"string" required:"true" enum:"TagResourceType"`
  2573. metadataListTagsForResourceInput `json:"-" xml:"-"`
  2574. }
  2575. type metadataListTagsForResourceInput struct {
  2576. SDKShapeTraits bool `type:"structure"`
  2577. }
  2578. // String returns the string representation
  2579. func (s ListTagsForResourceInput) String() string {
  2580. return awsutil.Prettify(s)
  2581. }
  2582. // GoString returns the string representation
  2583. func (s ListTagsForResourceInput) GoString() string {
  2584. return s.String()
  2585. }
  2586. // A complex type containing tags for the specified resource.
  2587. type ListTagsForResourceOutput struct {
  2588. // A ResourceTagSet containing tags associated with the specified resource.
  2589. ResourceTagSet *ResourceTagSet `type:"structure" required:"true"`
  2590. metadataListTagsForResourceOutput `json:"-" xml:"-"`
  2591. }
  2592. type metadataListTagsForResourceOutput struct {
  2593. SDKShapeTraits bool `type:"structure"`
  2594. }
  2595. // String returns the string representation
  2596. func (s ListTagsForResourceOutput) String() string {
  2597. return awsutil.Prettify(s)
  2598. }
  2599. // GoString returns the string representation
  2600. func (s ListTagsForResourceOutput) GoString() string {
  2601. return s.String()
  2602. }
  2603. // A complex type containing information about a request for a list of the tags
  2604. // that are associated with up to 10 specified resources.
  2605. type ListTagsForResourcesInput struct {
  2606. // A complex type that contains the ResourceId element for each resource for
  2607. // which you want to get a list of tags.
  2608. ResourceIds []*string `locationNameList:"ResourceId" type:"list" required:"true"`
  2609. // The type of the resources.
  2610. //
  2611. // - The resource type for health checks is healthcheck.
  2612. //
  2613. // - The resource type for hosted zones is hostedzone.
  2614. ResourceType *string `location:"uri" locationName:"ResourceType" type:"string" required:"true" enum:"TagResourceType"`
  2615. metadataListTagsForResourcesInput `json:"-" xml:"-"`
  2616. }
  2617. type metadataListTagsForResourcesInput struct {
  2618. SDKShapeTraits bool `locationName:"ListTagsForResourcesRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
  2619. }
  2620. // String returns the string representation
  2621. func (s ListTagsForResourcesInput) String() string {
  2622. return awsutil.Prettify(s)
  2623. }
  2624. // GoString returns the string representation
  2625. func (s ListTagsForResourcesInput) GoString() string {
  2626. return s.String()
  2627. }
  2628. // A complex type containing tags for the specified resources.
  2629. type ListTagsForResourcesOutput struct {
  2630. // A list of ResourceTagSets containing tags associated with the specified resources.
  2631. ResourceTagSets []*ResourceTagSet `locationNameList:"ResourceTagSet" type:"list" required:"true"`
  2632. metadataListTagsForResourcesOutput `json:"-" xml:"-"`
  2633. }
  2634. type metadataListTagsForResourcesOutput struct {
  2635. SDKShapeTraits bool `type:"structure"`
  2636. }
  2637. // String returns the string representation
  2638. func (s ListTagsForResourcesOutput) String() string {
  2639. return awsutil.Prettify(s)
  2640. }
  2641. // GoString returns the string representation
  2642. func (s ListTagsForResourcesOutput) GoString() string {
  2643. return s.String()
  2644. }
  2645. // A complex type that contains the value of the Value element for the current
  2646. // resource record set.
  2647. type ResourceRecord struct {
  2648. // The value of the Value element for the current resource record set.
  2649. Value *string `type:"string" required:"true"`
  2650. metadataResourceRecord `json:"-" xml:"-"`
  2651. }
  2652. type metadataResourceRecord struct {
  2653. SDKShapeTraits bool `type:"structure"`
  2654. }
  2655. // String returns the string representation
  2656. func (s ResourceRecord) String() string {
  2657. return awsutil.Prettify(s)
  2658. }
  2659. // GoString returns the string representation
  2660. func (s ResourceRecord) GoString() string {
  2661. return s.String()
  2662. }
  2663. // A complex type that contains information about the current resource record
  2664. // set.
  2665. type ResourceRecordSet struct {
  2666. // Alias resource record sets only: Information about the AWS resource to which
  2667. // you are redirecting traffic.
  2668. AliasTarget *AliasTarget `type:"structure"`
  2669. // Failover resource record sets only: Among resource record sets that have
  2670. // the same combination of DNS name and type, a value that indicates whether
  2671. // the current resource record set is a primary or secondary resource record
  2672. // set. A failover set may contain at most one resource record set marked as
  2673. // primary and one resource record set marked as secondary. A resource record
  2674. // set marked as primary will be returned if any of the following are true:
  2675. // (1) an associated health check is passing, (2) if the resource record set
  2676. // is an alias with the evaluate target health and at least one target resource
  2677. // record set is healthy, (3) both the primary and secondary resource record
  2678. // set are failing health checks or (4) there is no secondary resource record
  2679. // set. A secondary resource record set will be returned if: (1) the primary
  2680. // is failing a health check and either the secondary is passing a health check
  2681. // or has no associated health check, or (2) there is no primary resource record
  2682. // set.
  2683. //
  2684. // Valid values: PRIMARY | SECONDARY
  2685. Failover *string `type:"string" enum:"ResourceRecordSetFailover"`
  2686. // Geo location resource record sets only: Among resource record sets that have
  2687. // the same combination of DNS name and type, a value that specifies the geo
  2688. // location for the current resource record set.
  2689. GeoLocation *GeoLocation `type:"structure"`
  2690. // Health Check resource record sets only, not required for alias resource record
  2691. // sets: An identifier that is used to identify health check associated with
  2692. // the resource record set.
  2693. HealthCheckId *string `type:"string"`
  2694. // The domain name of the current resource record set.
  2695. Name *string `type:"string" required:"true"`
  2696. // Latency-based resource record sets only: Among resource record sets that
  2697. // have the same combination of DNS name and type, a value that specifies the
  2698. // AWS region for the current resource record set.
  2699. Region *string `type:"string" enum:"ResourceRecordSetRegion"`
  2700. // A complex type that contains the resource records for the current resource
  2701. // record set.
  2702. ResourceRecords []*ResourceRecord `locationNameList:"ResourceRecord" type:"list"`
  2703. // Weighted, Latency, Geo, and Failover resource record sets only: An identifier
  2704. // that differentiates among multiple resource record sets that have the same
  2705. // combination of DNS name and type.
  2706. SetIdentifier *string `type:"string"`
  2707. // The cache time to live for the current resource record set.
  2708. TTL *int64 `type:"long"`
  2709. // The type of the current resource record set.
  2710. Type *string `type:"string" required:"true" enum:"RRType"`
  2711. // Weighted resource record sets only: Among resource record sets that have
  2712. // the same combination of DNS name and type, a value that determines what portion
  2713. // of traffic for the current resource record set is routed to the associated
  2714. // location.
  2715. Weight *int64 `type:"long"`
  2716. metadataResourceRecordSet `json:"-" xml:"-"`
  2717. }
  2718. type metadataResourceRecordSet struct {
  2719. SDKShapeTraits bool `type:"structure"`
  2720. }
  2721. // String returns the string representation
  2722. func (s ResourceRecordSet) String() string {
  2723. return awsutil.Prettify(s)
  2724. }
  2725. // GoString returns the string representation
  2726. func (s ResourceRecordSet) GoString() string {
  2727. return s.String()
  2728. }
  2729. // A complex type containing a resource and its associated tags.
  2730. type ResourceTagSet struct {
  2731. // The ID for the specified resource.
  2732. ResourceId *string `type:"string"`
  2733. // The type of the resource.
  2734. //
  2735. // - The resource type for health checks is healthcheck.
  2736. //
  2737. // - The resource type for hosted zones is hostedzone.
  2738. ResourceType *string `type:"string" enum:"TagResourceType"`
  2739. // The tags associated with the specified resource.
  2740. Tags []*Tag `locationNameList:"Tag" type:"list"`
  2741. metadataResourceTagSet `json:"-" xml:"-"`
  2742. }
  2743. type metadataResourceTagSet struct {
  2744. SDKShapeTraits bool `type:"structure"`
  2745. }
  2746. // String returns the string representation
  2747. func (s ResourceTagSet) String() string {
  2748. return awsutil.Prettify(s)
  2749. }
  2750. // GoString returns the string representation
  2751. func (s ResourceTagSet) GoString() string {
  2752. return s.String()
  2753. }
  2754. // A complex type that contains information about the health check status for
  2755. // the current observation.
  2756. type StatusReport struct {
  2757. // The date and time the health check status was observed, in the format YYYY-MM-DDThh:mm:ssZ,
  2758. // as specified in the ISO 8601 standard (for example, 2009-11-19T19:37:58Z).
  2759. // The Z after the time indicates that the time is listed in Coordinated Universal
  2760. // Time (UTC), which is synonymous with Greenwich Mean Time in this context.
  2761. CheckedTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  2762. // The observed health check status.
  2763. Status *string `type:"string"`
  2764. metadataStatusReport `json:"-" xml:"-"`
  2765. }
  2766. type metadataStatusReport struct {
  2767. SDKShapeTraits bool `type:"structure"`
  2768. }
  2769. // String returns the string representation
  2770. func (s StatusReport) String() string {
  2771. return awsutil.Prettify(s)
  2772. }
  2773. // GoString returns the string representation
  2774. func (s StatusReport) GoString() string {
  2775. return s.String()
  2776. }
  2777. // A single tag containing a key and value.
  2778. type Tag struct {
  2779. // The key for a Tag.
  2780. Key *string `type:"string"`
  2781. // The value for a Tag.
  2782. Value *string `type:"string"`
  2783. metadataTag `json:"-" xml:"-"`
  2784. }
  2785. type metadataTag struct {
  2786. SDKShapeTraits bool `type:"structure"`
  2787. }
  2788. // String returns the string representation
  2789. func (s Tag) String() string {
  2790. return awsutil.Prettify(s)
  2791. }
  2792. // GoString returns the string representation
  2793. func (s Tag) GoString() string {
  2794. return s.String()
  2795. }
  2796. // >A complex type that contains information about the request to update a health
  2797. // check.
  2798. type UpdateHealthCheckInput struct {
  2799. // The number of consecutive health checks that an endpoint must pass or fail
  2800. // for Route 53 to change the current status of the endpoint from unhealthy
  2801. // to healthy or vice versa.
  2802. //
  2803. // Valid values are integers between 1 and 10. For more information, see "How
  2804. // Amazon Route 53 Determines Whether an Endpoint Is Healthy" in the Amazon
  2805. // Route 53 Developer Guide.
  2806. //
  2807. // Specify this value only if you want to change it.
  2808. FailureThreshold *int64 `type:"integer"`
  2809. // Fully qualified domain name of the instance to be health checked.
  2810. //
  2811. // Specify this value only if you want to change it.
  2812. FullyQualifiedDomainName *string `type:"string"`
  2813. // The ID of the health check to update.
  2814. HealthCheckId *string `location:"uri" locationName:"HealthCheckId" type:"string" required:"true"`
  2815. // Optional. When you specify a health check version, Route 53 compares this
  2816. // value with the current value in the health check, which prevents you from
  2817. // updating the health check when the versions don't match. Using HealthCheckVersion
  2818. // lets you prevent overwriting another change to the health check.
  2819. HealthCheckVersion *int64 `type:"long"`
  2820. // The IP address of the resource that you want to check.
  2821. //
  2822. // Specify this value only if you want to change it.
  2823. IPAddress *string `type:"string"`
  2824. // The port on which you want Route 53 to open a connection to perform health
  2825. // checks.
  2826. //
  2827. // Specify this value only if you want to change it.
  2828. Port *int64 `type:"integer"`
  2829. // The path that you want Amazon Route 53 to request when performing health
  2830. // checks. The path can be any value for which your endpoint will return an
  2831. // HTTP status code of 2xx or 3xx when the endpoint is healthy, for example
  2832. // the file /docs/route53-health-check.html.
  2833. //
  2834. // Specify this value only if you want to change it.
  2835. ResourcePath *string `type:"string"`
  2836. // If the value of Type is HTTP_STR_MATCH or HTTP_STR_MATCH, the string that
  2837. // you want Route 53 to search for in the response body from the specified resource.
  2838. // If the string appears in the response body, Route 53 considers the resource
  2839. // healthy.
  2840. //
  2841. // Specify this value only if you want to change it.
  2842. SearchString *string `type:"string"`
  2843. metadataUpdateHealthCheckInput `json:"-" xml:"-"`
  2844. }
  2845. type metadataUpdateHealthCheckInput struct {
  2846. SDKShapeTraits bool `locationName:"UpdateHealthCheckRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
  2847. }
  2848. // String returns the string representation
  2849. func (s UpdateHealthCheckInput) String() string {
  2850. return awsutil.Prettify(s)
  2851. }
  2852. // GoString returns the string representation
  2853. func (s UpdateHealthCheckInput) GoString() string {
  2854. return s.String()
  2855. }
  2856. type UpdateHealthCheckOutput struct {
  2857. // A complex type that contains identifying information about the health check.
  2858. HealthCheck *HealthCheck `type:"structure" required:"true"`
  2859. metadataUpdateHealthCheckOutput `json:"-" xml:"-"`
  2860. }
  2861. type metadataUpdateHealthCheckOutput struct {
  2862. SDKShapeTraits bool `type:"structure"`
  2863. }
  2864. // String returns the string representation
  2865. func (s UpdateHealthCheckOutput) String() string {
  2866. return awsutil.Prettify(s)
  2867. }
  2868. // GoString returns the string representation
  2869. func (s UpdateHealthCheckOutput) GoString() string {
  2870. return s.String()
  2871. }
  2872. // A complex type that contains information about the request to update a hosted
  2873. // zone comment.
  2874. type UpdateHostedZoneCommentInput struct {
  2875. // A comment about your hosted zone.
  2876. Comment *string `type:"string"`
  2877. // The ID of the hosted zone you want to update.
  2878. Id *string `location:"uri" locationName:"Id" type:"string" required:"true"`
  2879. metadataUpdateHostedZoneCommentInput `json:"-" xml:"-"`
  2880. }
  2881. type metadataUpdateHostedZoneCommentInput struct {
  2882. SDKShapeTraits bool `locationName:"UpdateHostedZoneCommentRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
  2883. }
  2884. // String returns the string representation
  2885. func (s UpdateHostedZoneCommentInput) String() string {
  2886. return awsutil.Prettify(s)
  2887. }
  2888. // GoString returns the string representation
  2889. func (s UpdateHostedZoneCommentInput) GoString() string {
  2890. return s.String()
  2891. }
  2892. // A complex type containing information about the specified hosted zone after
  2893. // the update.
  2894. type UpdateHostedZoneCommentOutput struct {
  2895. // A complex type that contain information about the specified hosted zone.
  2896. HostedZone *HostedZone `type:"structure" required:"true"`
  2897. metadataUpdateHostedZoneCommentOutput `json:"-" xml:"-"`
  2898. }
  2899. type metadataUpdateHostedZoneCommentOutput struct {
  2900. SDKShapeTraits bool `type:"structure"`
  2901. }
  2902. // String returns the string representation
  2903. func (s UpdateHostedZoneCommentOutput) String() string {
  2904. return awsutil.Prettify(s)
  2905. }
  2906. // GoString returns the string representation
  2907. func (s UpdateHostedZoneCommentOutput) GoString() string {
  2908. return s.String()
  2909. }
  2910. type VPC struct {
  2911. // A VPC ID
  2912. VPCId *string `type:"string"`
  2913. VPCRegion *string `type:"string" enum:"VPCRegion"`
  2914. metadataVPC `json:"-" xml:"-"`
  2915. }
  2916. type metadataVPC struct {
  2917. SDKShapeTraits bool `type:"structure"`
  2918. }
  2919. // String returns the string representation
  2920. func (s VPC) String() string {
  2921. return awsutil.Prettify(s)
  2922. }
  2923. // GoString returns the string representation
  2924. func (s VPC) GoString() string {
  2925. return s.String()
  2926. }
  2927. const (
  2928. // @enum ChangeAction
  2929. ChangeActionCreate = "CREATE"
  2930. // @enum ChangeAction
  2931. ChangeActionDelete = "DELETE"
  2932. // @enum ChangeAction
  2933. ChangeActionUpsert = "UPSERT"
  2934. )
  2935. const (
  2936. // @enum ChangeStatus
  2937. ChangeStatusPending = "PENDING"
  2938. // @enum ChangeStatus
  2939. ChangeStatusInsync = "INSYNC"
  2940. )
  2941. const (
  2942. // @enum HealthCheckType
  2943. HealthCheckTypeHttp = "HTTP"
  2944. // @enum HealthCheckType
  2945. HealthCheckTypeHttps = "HTTPS"
  2946. // @enum HealthCheckType
  2947. HealthCheckTypeHttpStrMatch = "HTTP_STR_MATCH"
  2948. // @enum HealthCheckType
  2949. HealthCheckTypeHttpsStrMatch = "HTTPS_STR_MATCH"
  2950. // @enum HealthCheckType
  2951. HealthCheckTypeTcp = "TCP"
  2952. )
  2953. const (
  2954. // @enum RRType
  2955. RRTypeSoa = "SOA"
  2956. // @enum RRType
  2957. RRTypeA = "A"
  2958. // @enum RRType
  2959. RRTypeTxt = "TXT"
  2960. // @enum RRType
  2961. RRTypeNs = "NS"
  2962. // @enum RRType
  2963. RRTypeCname = "CNAME"
  2964. // @enum RRType
  2965. RRTypeMx = "MX"
  2966. // @enum RRType
  2967. RRTypePtr = "PTR"
  2968. // @enum RRType
  2969. RRTypeSrv = "SRV"
  2970. // @enum RRType
  2971. RRTypeSpf = "SPF"
  2972. // @enum RRType
  2973. RRTypeAaaa = "AAAA"
  2974. )
  2975. const (
  2976. // @enum ResourceRecordSetFailover
  2977. ResourceRecordSetFailoverPrimary = "PRIMARY"
  2978. // @enum ResourceRecordSetFailover
  2979. ResourceRecordSetFailoverSecondary = "SECONDARY"
  2980. )
  2981. const (
  2982. // @enum ResourceRecordSetRegion
  2983. ResourceRecordSetRegionUsEast1 = "us-east-1"
  2984. // @enum ResourceRecordSetRegion
  2985. ResourceRecordSetRegionUsWest1 = "us-west-1"
  2986. // @enum ResourceRecordSetRegion
  2987. ResourceRecordSetRegionUsWest2 = "us-west-2"
  2988. // @enum ResourceRecordSetRegion
  2989. ResourceRecordSetRegionEuWest1 = "eu-west-1"
  2990. // @enum ResourceRecordSetRegion
  2991. ResourceRecordSetRegionEuCentral1 = "eu-central-1"
  2992. // @enum ResourceRecordSetRegion
  2993. ResourceRecordSetRegionApSoutheast1 = "ap-southeast-1"
  2994. // @enum ResourceRecordSetRegion
  2995. ResourceRecordSetRegionApSoutheast2 = "ap-southeast-2"
  2996. // @enum ResourceRecordSetRegion
  2997. ResourceRecordSetRegionApNortheast1 = "ap-northeast-1"
  2998. // @enum ResourceRecordSetRegion
  2999. ResourceRecordSetRegionSaEast1 = "sa-east-1"
  3000. // @enum ResourceRecordSetRegion
  3001. ResourceRecordSetRegionCnNorth1 = "cn-north-1"
  3002. )
  3003. const (
  3004. // @enum TagResourceType
  3005. TagResourceTypeHealthcheck = "healthcheck"
  3006. // @enum TagResourceType
  3007. TagResourceTypeHostedzone = "hostedzone"
  3008. )
  3009. const (
  3010. // @enum VPCRegion
  3011. VPCRegionUsEast1 = "us-east-1"
  3012. // @enum VPCRegion
  3013. VPCRegionUsWest1 = "us-west-1"
  3014. // @enum VPCRegion
  3015. VPCRegionUsWest2 = "us-west-2"
  3016. // @enum VPCRegion
  3017. VPCRegionEuWest1 = "eu-west-1"
  3018. // @enum VPCRegion
  3019. VPCRegionEuCentral1 = "eu-central-1"
  3020. // @enum VPCRegion
  3021. VPCRegionApSoutheast1 = "ap-southeast-1"
  3022. // @enum VPCRegion
  3023. VPCRegionApSoutheast2 = "ap-southeast-2"
  3024. // @enum VPCRegion
  3025. VPCRegionApNortheast1 = "ap-northeast-1"
  3026. // @enum VPCRegion
  3027. VPCRegionSaEast1 = "sa-east-1"
  3028. // @enum VPCRegion
  3029. VPCRegionCnNorth1 = "cn-north-1"
  3030. )