api.go 104 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package directconnect provides a client for AWS Direct Connect.
  3. package directconnect
  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 opAllocateConnectionOnInterconnect = "AllocateConnectionOnInterconnect"
  10. // AllocateConnectionOnInterconnectRequest generates a "aws/request.Request" representing the
  11. // client's request for the AllocateConnectionOnInterconnect operation. The "output" return
  12. // value can be used to capture response data after the request's "Send" method
  13. // is called.
  14. //
  15. // Creating a request object using this method should be used when you want to inject
  16. // custom logic into the request's lifecycle using a custom handler, or if you want to
  17. // access properties on the request object before or after sending the request. If
  18. // you just want the service response, call the AllocateConnectionOnInterconnect method directly
  19. // instead.
  20. //
  21. // Note: You must call the "Send" method on the returned request object in order
  22. // to execute the request.
  23. //
  24. // // Example sending a request using the AllocateConnectionOnInterconnectRequest method.
  25. // req, resp := client.AllocateConnectionOnInterconnectRequest(params)
  26. //
  27. // err := req.Send()
  28. // if err == nil { // resp is now filled
  29. // fmt.Println(resp)
  30. // }
  31. //
  32. func (c *DirectConnect) AllocateConnectionOnInterconnectRequest(input *AllocateConnectionOnInterconnectInput) (req *request.Request, output *Connection) {
  33. op := &request.Operation{
  34. Name: opAllocateConnectionOnInterconnect,
  35. HTTPMethod: "POST",
  36. HTTPPath: "/",
  37. }
  38. if input == nil {
  39. input = &AllocateConnectionOnInterconnectInput{}
  40. }
  41. req = c.newRequest(op, input, output)
  42. output = &Connection{}
  43. req.Data = output
  44. return
  45. }
  46. // Creates a hosted connection on an interconnect.
  47. //
  48. // Allocates a VLAN number and a specified amount of bandwidth for use by a
  49. // hosted connection on the given interconnect.
  50. //
  51. // This is intended for use by AWS Direct Connect partners only.
  52. func (c *DirectConnect) AllocateConnectionOnInterconnect(input *AllocateConnectionOnInterconnectInput) (*Connection, error) {
  53. req, out := c.AllocateConnectionOnInterconnectRequest(input)
  54. err := req.Send()
  55. return out, err
  56. }
  57. const opAllocatePrivateVirtualInterface = "AllocatePrivateVirtualInterface"
  58. // AllocatePrivateVirtualInterfaceRequest generates a "aws/request.Request" representing the
  59. // client's request for the AllocatePrivateVirtualInterface operation. The "output" return
  60. // value can be used to capture response data after the request's "Send" method
  61. // is called.
  62. //
  63. // Creating a request object using this method should be used when you want to inject
  64. // custom logic into the request's lifecycle using a custom handler, or if you want to
  65. // access properties on the request object before or after sending the request. If
  66. // you just want the service response, call the AllocatePrivateVirtualInterface method directly
  67. // instead.
  68. //
  69. // Note: You must call the "Send" method on the returned request object in order
  70. // to execute the request.
  71. //
  72. // // Example sending a request using the AllocatePrivateVirtualInterfaceRequest method.
  73. // req, resp := client.AllocatePrivateVirtualInterfaceRequest(params)
  74. //
  75. // err := req.Send()
  76. // if err == nil { // resp is now filled
  77. // fmt.Println(resp)
  78. // }
  79. //
  80. func (c *DirectConnect) AllocatePrivateVirtualInterfaceRequest(input *AllocatePrivateVirtualInterfaceInput) (req *request.Request, output *VirtualInterface) {
  81. op := &request.Operation{
  82. Name: opAllocatePrivateVirtualInterface,
  83. HTTPMethod: "POST",
  84. HTTPPath: "/",
  85. }
  86. if input == nil {
  87. input = &AllocatePrivateVirtualInterfaceInput{}
  88. }
  89. req = c.newRequest(op, input, output)
  90. output = &VirtualInterface{}
  91. req.Data = output
  92. return
  93. }
  94. // Provisions a private virtual interface to be owned by a different customer.
  95. //
  96. // The owner of a connection calls this function to provision a private virtual
  97. // interface which will be owned by another AWS customer.
  98. //
  99. // Virtual interfaces created using this function must be confirmed by the
  100. // virtual interface owner by calling ConfirmPrivateVirtualInterface. Until
  101. // this step has been completed, the virtual interface will be in 'Confirming'
  102. // state, and will not be available for handling traffic.
  103. func (c *DirectConnect) AllocatePrivateVirtualInterface(input *AllocatePrivateVirtualInterfaceInput) (*VirtualInterface, error) {
  104. req, out := c.AllocatePrivateVirtualInterfaceRequest(input)
  105. err := req.Send()
  106. return out, err
  107. }
  108. const opAllocatePublicVirtualInterface = "AllocatePublicVirtualInterface"
  109. // AllocatePublicVirtualInterfaceRequest generates a "aws/request.Request" representing the
  110. // client's request for the AllocatePublicVirtualInterface operation. The "output" return
  111. // value can be used to capture response data after the request's "Send" method
  112. // is called.
  113. //
  114. // Creating a request object using this method should be used when you want to inject
  115. // custom logic into the request's lifecycle using a custom handler, or if you want to
  116. // access properties on the request object before or after sending the request. If
  117. // you just want the service response, call the AllocatePublicVirtualInterface method directly
  118. // instead.
  119. //
  120. // Note: You must call the "Send" method on the returned request object in order
  121. // to execute the request.
  122. //
  123. // // Example sending a request using the AllocatePublicVirtualInterfaceRequest method.
  124. // req, resp := client.AllocatePublicVirtualInterfaceRequest(params)
  125. //
  126. // err := req.Send()
  127. // if err == nil { // resp is now filled
  128. // fmt.Println(resp)
  129. // }
  130. //
  131. func (c *DirectConnect) AllocatePublicVirtualInterfaceRequest(input *AllocatePublicVirtualInterfaceInput) (req *request.Request, output *VirtualInterface) {
  132. op := &request.Operation{
  133. Name: opAllocatePublicVirtualInterface,
  134. HTTPMethod: "POST",
  135. HTTPPath: "/",
  136. }
  137. if input == nil {
  138. input = &AllocatePublicVirtualInterfaceInput{}
  139. }
  140. req = c.newRequest(op, input, output)
  141. output = &VirtualInterface{}
  142. req.Data = output
  143. return
  144. }
  145. // Provisions a public virtual interface to be owned by a different customer.
  146. //
  147. // The owner of a connection calls this function to provision a public virtual
  148. // interface which will be owned by another AWS customer.
  149. //
  150. // Virtual interfaces created using this function must be confirmed by the
  151. // virtual interface owner by calling ConfirmPublicVirtualInterface. Until this
  152. // step has been completed, the virtual interface will be in 'Confirming' state,
  153. // and will not be available for handling traffic.
  154. func (c *DirectConnect) AllocatePublicVirtualInterface(input *AllocatePublicVirtualInterfaceInput) (*VirtualInterface, error) {
  155. req, out := c.AllocatePublicVirtualInterfaceRequest(input)
  156. err := req.Send()
  157. return out, err
  158. }
  159. const opConfirmConnection = "ConfirmConnection"
  160. // ConfirmConnectionRequest generates a "aws/request.Request" representing the
  161. // client's request for the ConfirmConnection operation. The "output" return
  162. // value can be used to capture response data after the request's "Send" method
  163. // is called.
  164. //
  165. // Creating a request object using this method should be used when you want to inject
  166. // custom logic into the request's lifecycle using a custom handler, or if you want to
  167. // access properties on the request object before or after sending the request. If
  168. // you just want the service response, call the ConfirmConnection method directly
  169. // instead.
  170. //
  171. // Note: You must call the "Send" method on the returned request object in order
  172. // to execute the request.
  173. //
  174. // // Example sending a request using the ConfirmConnectionRequest method.
  175. // req, resp := client.ConfirmConnectionRequest(params)
  176. //
  177. // err := req.Send()
  178. // if err == nil { // resp is now filled
  179. // fmt.Println(resp)
  180. // }
  181. //
  182. func (c *DirectConnect) ConfirmConnectionRequest(input *ConfirmConnectionInput) (req *request.Request, output *ConfirmConnectionOutput) {
  183. op := &request.Operation{
  184. Name: opConfirmConnection,
  185. HTTPMethod: "POST",
  186. HTTPPath: "/",
  187. }
  188. if input == nil {
  189. input = &ConfirmConnectionInput{}
  190. }
  191. req = c.newRequest(op, input, output)
  192. output = &ConfirmConnectionOutput{}
  193. req.Data = output
  194. return
  195. }
  196. // Confirm the creation of a hosted connection on an interconnect.
  197. //
  198. // Upon creation, the hosted connection is initially in the 'Ordering' state,
  199. // and will remain in this state until the owner calls ConfirmConnection to
  200. // confirm creation of the hosted connection.
  201. func (c *DirectConnect) ConfirmConnection(input *ConfirmConnectionInput) (*ConfirmConnectionOutput, error) {
  202. req, out := c.ConfirmConnectionRequest(input)
  203. err := req.Send()
  204. return out, err
  205. }
  206. const opConfirmPrivateVirtualInterface = "ConfirmPrivateVirtualInterface"
  207. // ConfirmPrivateVirtualInterfaceRequest generates a "aws/request.Request" representing the
  208. // client's request for the ConfirmPrivateVirtualInterface operation. The "output" return
  209. // value can be used to capture response data after the request's "Send" method
  210. // is called.
  211. //
  212. // Creating a request object using this method should be used when you want to inject
  213. // custom logic into the request's lifecycle using a custom handler, or if you want to
  214. // access properties on the request object before or after sending the request. If
  215. // you just want the service response, call the ConfirmPrivateVirtualInterface method directly
  216. // instead.
  217. //
  218. // Note: You must call the "Send" method on the returned request object in order
  219. // to execute the request.
  220. //
  221. // // Example sending a request using the ConfirmPrivateVirtualInterfaceRequest method.
  222. // req, resp := client.ConfirmPrivateVirtualInterfaceRequest(params)
  223. //
  224. // err := req.Send()
  225. // if err == nil { // resp is now filled
  226. // fmt.Println(resp)
  227. // }
  228. //
  229. func (c *DirectConnect) ConfirmPrivateVirtualInterfaceRequest(input *ConfirmPrivateVirtualInterfaceInput) (req *request.Request, output *ConfirmPrivateVirtualInterfaceOutput) {
  230. op := &request.Operation{
  231. Name: opConfirmPrivateVirtualInterface,
  232. HTTPMethod: "POST",
  233. HTTPPath: "/",
  234. }
  235. if input == nil {
  236. input = &ConfirmPrivateVirtualInterfaceInput{}
  237. }
  238. req = c.newRequest(op, input, output)
  239. output = &ConfirmPrivateVirtualInterfaceOutput{}
  240. req.Data = output
  241. return
  242. }
  243. // Accept ownership of a private virtual interface created by another customer.
  244. //
  245. // After the virtual interface owner calls this function, the virtual interface
  246. // will be created and attached to the given virtual private gateway, and will
  247. // be available for handling traffic.
  248. func (c *DirectConnect) ConfirmPrivateVirtualInterface(input *ConfirmPrivateVirtualInterfaceInput) (*ConfirmPrivateVirtualInterfaceOutput, error) {
  249. req, out := c.ConfirmPrivateVirtualInterfaceRequest(input)
  250. err := req.Send()
  251. return out, err
  252. }
  253. const opConfirmPublicVirtualInterface = "ConfirmPublicVirtualInterface"
  254. // ConfirmPublicVirtualInterfaceRequest generates a "aws/request.Request" representing the
  255. // client's request for the ConfirmPublicVirtualInterface operation. The "output" return
  256. // value can be used to capture response data after the request's "Send" method
  257. // is called.
  258. //
  259. // Creating a request object using this method should be used when you want to inject
  260. // custom logic into the request's lifecycle using a custom handler, or if you want to
  261. // access properties on the request object before or after sending the request. If
  262. // you just want the service response, call the ConfirmPublicVirtualInterface method directly
  263. // instead.
  264. //
  265. // Note: You must call the "Send" method on the returned request object in order
  266. // to execute the request.
  267. //
  268. // // Example sending a request using the ConfirmPublicVirtualInterfaceRequest method.
  269. // req, resp := client.ConfirmPublicVirtualInterfaceRequest(params)
  270. //
  271. // err := req.Send()
  272. // if err == nil { // resp is now filled
  273. // fmt.Println(resp)
  274. // }
  275. //
  276. func (c *DirectConnect) ConfirmPublicVirtualInterfaceRequest(input *ConfirmPublicVirtualInterfaceInput) (req *request.Request, output *ConfirmPublicVirtualInterfaceOutput) {
  277. op := &request.Operation{
  278. Name: opConfirmPublicVirtualInterface,
  279. HTTPMethod: "POST",
  280. HTTPPath: "/",
  281. }
  282. if input == nil {
  283. input = &ConfirmPublicVirtualInterfaceInput{}
  284. }
  285. req = c.newRequest(op, input, output)
  286. output = &ConfirmPublicVirtualInterfaceOutput{}
  287. req.Data = output
  288. return
  289. }
  290. // Accept ownership of a public virtual interface created by another customer.
  291. //
  292. // After the virtual interface owner calls this function, the specified virtual
  293. // interface will be created and made available for handling traffic.
  294. func (c *DirectConnect) ConfirmPublicVirtualInterface(input *ConfirmPublicVirtualInterfaceInput) (*ConfirmPublicVirtualInterfaceOutput, error) {
  295. req, out := c.ConfirmPublicVirtualInterfaceRequest(input)
  296. err := req.Send()
  297. return out, err
  298. }
  299. const opCreateConnection = "CreateConnection"
  300. // CreateConnectionRequest generates a "aws/request.Request" representing the
  301. // client's request for the CreateConnection operation. The "output" return
  302. // value can be used to capture response data after the request's "Send" method
  303. // is called.
  304. //
  305. // Creating a request object using this method should be used when you want to inject
  306. // custom logic into the request's lifecycle using a custom handler, or if you want to
  307. // access properties on the request object before or after sending the request. If
  308. // you just want the service response, call the CreateConnection method directly
  309. // instead.
  310. //
  311. // Note: You must call the "Send" method on the returned request object in order
  312. // to execute the request.
  313. //
  314. // // Example sending a request using the CreateConnectionRequest method.
  315. // req, resp := client.CreateConnectionRequest(params)
  316. //
  317. // err := req.Send()
  318. // if err == nil { // resp is now filled
  319. // fmt.Println(resp)
  320. // }
  321. //
  322. func (c *DirectConnect) CreateConnectionRequest(input *CreateConnectionInput) (req *request.Request, output *Connection) {
  323. op := &request.Operation{
  324. Name: opCreateConnection,
  325. HTTPMethod: "POST",
  326. HTTPPath: "/",
  327. }
  328. if input == nil {
  329. input = &CreateConnectionInput{}
  330. }
  331. req = c.newRequest(op, input, output)
  332. output = &Connection{}
  333. req.Data = output
  334. return
  335. }
  336. // Creates a new connection between the customer network and a specific AWS
  337. // Direct Connect location.
  338. //
  339. // A connection links your internal network to an AWS Direct Connect location
  340. // over a standard 1 gigabit or 10 gigabit Ethernet fiber-optic cable. One end
  341. // of the cable is connected to your router, the other to an AWS Direct Connect
  342. // router. An AWS Direct Connect location provides access to Amazon Web Services
  343. // in the region it is associated with. You can establish connections with AWS
  344. // Direct Connect locations in multiple regions, but a connection in one region
  345. // does not provide connectivity to other regions.
  346. func (c *DirectConnect) CreateConnection(input *CreateConnectionInput) (*Connection, error) {
  347. req, out := c.CreateConnectionRequest(input)
  348. err := req.Send()
  349. return out, err
  350. }
  351. const opCreateInterconnect = "CreateInterconnect"
  352. // CreateInterconnectRequest generates a "aws/request.Request" representing the
  353. // client's request for the CreateInterconnect operation. The "output" return
  354. // value can be used to capture response data after the request's "Send" method
  355. // is called.
  356. //
  357. // Creating a request object using this method should be used when you want to inject
  358. // custom logic into the request's lifecycle using a custom handler, or if you want to
  359. // access properties on the request object before or after sending the request. If
  360. // you just want the service response, call the CreateInterconnect method directly
  361. // instead.
  362. //
  363. // Note: You must call the "Send" method on the returned request object in order
  364. // to execute the request.
  365. //
  366. // // Example sending a request using the CreateInterconnectRequest method.
  367. // req, resp := client.CreateInterconnectRequest(params)
  368. //
  369. // err := req.Send()
  370. // if err == nil { // resp is now filled
  371. // fmt.Println(resp)
  372. // }
  373. //
  374. func (c *DirectConnect) CreateInterconnectRequest(input *CreateInterconnectInput) (req *request.Request, output *Interconnect) {
  375. op := &request.Operation{
  376. Name: opCreateInterconnect,
  377. HTTPMethod: "POST",
  378. HTTPPath: "/",
  379. }
  380. if input == nil {
  381. input = &CreateInterconnectInput{}
  382. }
  383. req = c.newRequest(op, input, output)
  384. output = &Interconnect{}
  385. req.Data = output
  386. return
  387. }
  388. // Creates a new interconnect between a AWS Direct Connect partner's network
  389. // and a specific AWS Direct Connect location.
  390. //
  391. // An interconnect is a connection which is capable of hosting other connections.
  392. // The AWS Direct Connect partner can use an interconnect to provide sub-1Gbps
  393. // AWS Direct Connect service to tier 2 customers who do not have their own
  394. // connections. Like a standard connection, an interconnect links the AWS Direct
  395. // Connect partner's network to an AWS Direct Connect location over a standard
  396. // 1 Gbps or 10 Gbps Ethernet fiber-optic cable. One end is connected to the
  397. // partner's router, the other to an AWS Direct Connect router.
  398. //
  399. // For each end customer, the AWS Direct Connect partner provisions a connection
  400. // on their interconnect by calling AllocateConnectionOnInterconnect. The end
  401. // customer can then connect to AWS resources by creating a virtual interface
  402. // on their connection, using the VLAN assigned to them by the AWS Direct Connect
  403. // partner.
  404. //
  405. // This is intended for use by AWS Direct Connect partners only.
  406. func (c *DirectConnect) CreateInterconnect(input *CreateInterconnectInput) (*Interconnect, error) {
  407. req, out := c.CreateInterconnectRequest(input)
  408. err := req.Send()
  409. return out, err
  410. }
  411. const opCreatePrivateVirtualInterface = "CreatePrivateVirtualInterface"
  412. // CreatePrivateVirtualInterfaceRequest generates a "aws/request.Request" representing the
  413. // client's request for the CreatePrivateVirtualInterface operation. The "output" return
  414. // value can be used to capture response data after the request's "Send" method
  415. // is called.
  416. //
  417. // Creating a request object using this method should be used when you want to inject
  418. // custom logic into the request's lifecycle using a custom handler, or if you want to
  419. // access properties on the request object before or after sending the request. If
  420. // you just want the service response, call the CreatePrivateVirtualInterface method directly
  421. // instead.
  422. //
  423. // Note: You must call the "Send" method on the returned request object in order
  424. // to execute the request.
  425. //
  426. // // Example sending a request using the CreatePrivateVirtualInterfaceRequest method.
  427. // req, resp := client.CreatePrivateVirtualInterfaceRequest(params)
  428. //
  429. // err := req.Send()
  430. // if err == nil { // resp is now filled
  431. // fmt.Println(resp)
  432. // }
  433. //
  434. func (c *DirectConnect) CreatePrivateVirtualInterfaceRequest(input *CreatePrivateVirtualInterfaceInput) (req *request.Request, output *VirtualInterface) {
  435. op := &request.Operation{
  436. Name: opCreatePrivateVirtualInterface,
  437. HTTPMethod: "POST",
  438. HTTPPath: "/",
  439. }
  440. if input == nil {
  441. input = &CreatePrivateVirtualInterfaceInput{}
  442. }
  443. req = c.newRequest(op, input, output)
  444. output = &VirtualInterface{}
  445. req.Data = output
  446. return
  447. }
  448. // Creates a new private virtual interface. A virtual interface is the VLAN
  449. // that transports AWS Direct Connect traffic. A private virtual interface supports
  450. // sending traffic to a single virtual private cloud (VPC).
  451. func (c *DirectConnect) CreatePrivateVirtualInterface(input *CreatePrivateVirtualInterfaceInput) (*VirtualInterface, error) {
  452. req, out := c.CreatePrivateVirtualInterfaceRequest(input)
  453. err := req.Send()
  454. return out, err
  455. }
  456. const opCreatePublicVirtualInterface = "CreatePublicVirtualInterface"
  457. // CreatePublicVirtualInterfaceRequest generates a "aws/request.Request" representing the
  458. // client's request for the CreatePublicVirtualInterface operation. The "output" return
  459. // value can be used to capture response data after the request's "Send" method
  460. // is called.
  461. //
  462. // Creating a request object using this method should be used when you want to inject
  463. // custom logic into the request's lifecycle using a custom handler, or if you want to
  464. // access properties on the request object before or after sending the request. If
  465. // you just want the service response, call the CreatePublicVirtualInterface method directly
  466. // instead.
  467. //
  468. // Note: You must call the "Send" method on the returned request object in order
  469. // to execute the request.
  470. //
  471. // // Example sending a request using the CreatePublicVirtualInterfaceRequest method.
  472. // req, resp := client.CreatePublicVirtualInterfaceRequest(params)
  473. //
  474. // err := req.Send()
  475. // if err == nil { // resp is now filled
  476. // fmt.Println(resp)
  477. // }
  478. //
  479. func (c *DirectConnect) CreatePublicVirtualInterfaceRequest(input *CreatePublicVirtualInterfaceInput) (req *request.Request, output *VirtualInterface) {
  480. op := &request.Operation{
  481. Name: opCreatePublicVirtualInterface,
  482. HTTPMethod: "POST",
  483. HTTPPath: "/",
  484. }
  485. if input == nil {
  486. input = &CreatePublicVirtualInterfaceInput{}
  487. }
  488. req = c.newRequest(op, input, output)
  489. output = &VirtualInterface{}
  490. req.Data = output
  491. return
  492. }
  493. // Creates a new public virtual interface. A virtual interface is the VLAN that
  494. // transports AWS Direct Connect traffic. A public virtual interface supports
  495. // sending traffic to public services of AWS such as Amazon Simple Storage Service
  496. // (Amazon S3).
  497. func (c *DirectConnect) CreatePublicVirtualInterface(input *CreatePublicVirtualInterfaceInput) (*VirtualInterface, error) {
  498. req, out := c.CreatePublicVirtualInterfaceRequest(input)
  499. err := req.Send()
  500. return out, err
  501. }
  502. const opDeleteConnection = "DeleteConnection"
  503. // DeleteConnectionRequest generates a "aws/request.Request" representing the
  504. // client's request for the DeleteConnection operation. The "output" return
  505. // value can be used to capture response data after the request's "Send" method
  506. // is called.
  507. //
  508. // Creating a request object using this method should be used when you want to inject
  509. // custom logic into the request's lifecycle using a custom handler, or if you want to
  510. // access properties on the request object before or after sending the request. If
  511. // you just want the service response, call the DeleteConnection method directly
  512. // instead.
  513. //
  514. // Note: You must call the "Send" method on the returned request object in order
  515. // to execute the request.
  516. //
  517. // // Example sending a request using the DeleteConnectionRequest method.
  518. // req, resp := client.DeleteConnectionRequest(params)
  519. //
  520. // err := req.Send()
  521. // if err == nil { // resp is now filled
  522. // fmt.Println(resp)
  523. // }
  524. //
  525. func (c *DirectConnect) DeleteConnectionRequest(input *DeleteConnectionInput) (req *request.Request, output *Connection) {
  526. op := &request.Operation{
  527. Name: opDeleteConnection,
  528. HTTPMethod: "POST",
  529. HTTPPath: "/",
  530. }
  531. if input == nil {
  532. input = &DeleteConnectionInput{}
  533. }
  534. req = c.newRequest(op, input, output)
  535. output = &Connection{}
  536. req.Data = output
  537. return
  538. }
  539. // Deletes the connection.
  540. //
  541. // Deleting a connection only stops the AWS Direct Connect port hour and data
  542. // transfer charges. You need to cancel separately with the providers any services
  543. // or charges for cross-connects or network circuits that connect you to the
  544. // AWS Direct Connect location.
  545. func (c *DirectConnect) DeleteConnection(input *DeleteConnectionInput) (*Connection, error) {
  546. req, out := c.DeleteConnectionRequest(input)
  547. err := req.Send()
  548. return out, err
  549. }
  550. const opDeleteInterconnect = "DeleteInterconnect"
  551. // DeleteInterconnectRequest generates a "aws/request.Request" representing the
  552. // client's request for the DeleteInterconnect operation. The "output" return
  553. // value can be used to capture response data after the request's "Send" method
  554. // is called.
  555. //
  556. // Creating a request object using this method should be used when you want to inject
  557. // custom logic into the request's lifecycle using a custom handler, or if you want to
  558. // access properties on the request object before or after sending the request. If
  559. // you just want the service response, call the DeleteInterconnect method directly
  560. // instead.
  561. //
  562. // Note: You must call the "Send" method on the returned request object in order
  563. // to execute the request.
  564. //
  565. // // Example sending a request using the DeleteInterconnectRequest method.
  566. // req, resp := client.DeleteInterconnectRequest(params)
  567. //
  568. // err := req.Send()
  569. // if err == nil { // resp is now filled
  570. // fmt.Println(resp)
  571. // }
  572. //
  573. func (c *DirectConnect) DeleteInterconnectRequest(input *DeleteInterconnectInput) (req *request.Request, output *DeleteInterconnectOutput) {
  574. op := &request.Operation{
  575. Name: opDeleteInterconnect,
  576. HTTPMethod: "POST",
  577. HTTPPath: "/",
  578. }
  579. if input == nil {
  580. input = &DeleteInterconnectInput{}
  581. }
  582. req = c.newRequest(op, input, output)
  583. output = &DeleteInterconnectOutput{}
  584. req.Data = output
  585. return
  586. }
  587. // Deletes the specified interconnect.
  588. //
  589. // This is intended for use by AWS Direct Connect partners only.
  590. func (c *DirectConnect) DeleteInterconnect(input *DeleteInterconnectInput) (*DeleteInterconnectOutput, error) {
  591. req, out := c.DeleteInterconnectRequest(input)
  592. err := req.Send()
  593. return out, err
  594. }
  595. const opDeleteVirtualInterface = "DeleteVirtualInterface"
  596. // DeleteVirtualInterfaceRequest generates a "aws/request.Request" representing the
  597. // client's request for the DeleteVirtualInterface operation. The "output" return
  598. // value can be used to capture response data after the request's "Send" method
  599. // is called.
  600. //
  601. // Creating a request object using this method should be used when you want to inject
  602. // custom logic into the request's lifecycle using a custom handler, or if you want to
  603. // access properties on the request object before or after sending the request. If
  604. // you just want the service response, call the DeleteVirtualInterface method directly
  605. // instead.
  606. //
  607. // Note: You must call the "Send" method on the returned request object in order
  608. // to execute the request.
  609. //
  610. // // Example sending a request using the DeleteVirtualInterfaceRequest method.
  611. // req, resp := client.DeleteVirtualInterfaceRequest(params)
  612. //
  613. // err := req.Send()
  614. // if err == nil { // resp is now filled
  615. // fmt.Println(resp)
  616. // }
  617. //
  618. func (c *DirectConnect) DeleteVirtualInterfaceRequest(input *DeleteVirtualInterfaceInput) (req *request.Request, output *DeleteVirtualInterfaceOutput) {
  619. op := &request.Operation{
  620. Name: opDeleteVirtualInterface,
  621. HTTPMethod: "POST",
  622. HTTPPath: "/",
  623. }
  624. if input == nil {
  625. input = &DeleteVirtualInterfaceInput{}
  626. }
  627. req = c.newRequest(op, input, output)
  628. output = &DeleteVirtualInterfaceOutput{}
  629. req.Data = output
  630. return
  631. }
  632. // Deletes a virtual interface.
  633. func (c *DirectConnect) DeleteVirtualInterface(input *DeleteVirtualInterfaceInput) (*DeleteVirtualInterfaceOutput, error) {
  634. req, out := c.DeleteVirtualInterfaceRequest(input)
  635. err := req.Send()
  636. return out, err
  637. }
  638. const opDescribeConnectionLoa = "DescribeConnectionLoa"
  639. // DescribeConnectionLoaRequest generates a "aws/request.Request" representing the
  640. // client's request for the DescribeConnectionLoa operation. The "output" return
  641. // value can be used to capture response data after the request's "Send" method
  642. // is called.
  643. //
  644. // Creating a request object using this method should be used when you want to inject
  645. // custom logic into the request's lifecycle using a custom handler, or if you want to
  646. // access properties on the request object before or after sending the request. If
  647. // you just want the service response, call the DescribeConnectionLoa method directly
  648. // instead.
  649. //
  650. // Note: You must call the "Send" method on the returned request object in order
  651. // to execute the request.
  652. //
  653. // // Example sending a request using the DescribeConnectionLoaRequest method.
  654. // req, resp := client.DescribeConnectionLoaRequest(params)
  655. //
  656. // err := req.Send()
  657. // if err == nil { // resp is now filled
  658. // fmt.Println(resp)
  659. // }
  660. //
  661. func (c *DirectConnect) DescribeConnectionLoaRequest(input *DescribeConnectionLoaInput) (req *request.Request, output *DescribeConnectionLoaOutput) {
  662. op := &request.Operation{
  663. Name: opDescribeConnectionLoa,
  664. HTTPMethod: "POST",
  665. HTTPPath: "/",
  666. }
  667. if input == nil {
  668. input = &DescribeConnectionLoaInput{}
  669. }
  670. req = c.newRequest(op, input, output)
  671. output = &DescribeConnectionLoaOutput{}
  672. req.Data = output
  673. return
  674. }
  675. // Returns the LOA-CFA for a Connection.
  676. //
  677. // The Letter of Authorization - Connecting Facility Assignment (LOA-CFA) is
  678. // a document that your APN partner or service provider uses when establishing
  679. // your cross connect to AWS at the colocation facility. For more information,
  680. // see Requesting Cross Connects at AWS Direct Connect Locations (http://docs.aws.amazon.com/directconnect/latest/UserGuide/Colocation.html)
  681. // in the AWS Direct Connect user guide.
  682. func (c *DirectConnect) DescribeConnectionLoa(input *DescribeConnectionLoaInput) (*DescribeConnectionLoaOutput, error) {
  683. req, out := c.DescribeConnectionLoaRequest(input)
  684. err := req.Send()
  685. return out, err
  686. }
  687. const opDescribeConnections = "DescribeConnections"
  688. // DescribeConnectionsRequest generates a "aws/request.Request" representing the
  689. // client's request for the DescribeConnections operation. The "output" return
  690. // value can be used to capture response data after the request's "Send" method
  691. // is called.
  692. //
  693. // Creating a request object using this method should be used when you want to inject
  694. // custom logic into the request's lifecycle using a custom handler, or if you want to
  695. // access properties on the request object before or after sending the request. If
  696. // you just want the service response, call the DescribeConnections method directly
  697. // instead.
  698. //
  699. // Note: You must call the "Send" method on the returned request object in order
  700. // to execute the request.
  701. //
  702. // // Example sending a request using the DescribeConnectionsRequest method.
  703. // req, resp := client.DescribeConnectionsRequest(params)
  704. //
  705. // err := req.Send()
  706. // if err == nil { // resp is now filled
  707. // fmt.Println(resp)
  708. // }
  709. //
  710. func (c *DirectConnect) DescribeConnectionsRequest(input *DescribeConnectionsInput) (req *request.Request, output *Connections) {
  711. op := &request.Operation{
  712. Name: opDescribeConnections,
  713. HTTPMethod: "POST",
  714. HTTPPath: "/",
  715. }
  716. if input == nil {
  717. input = &DescribeConnectionsInput{}
  718. }
  719. req = c.newRequest(op, input, output)
  720. output = &Connections{}
  721. req.Data = output
  722. return
  723. }
  724. // Displays all connections in this region.
  725. //
  726. // If a connection ID is provided, the call returns only that particular connection.
  727. func (c *DirectConnect) DescribeConnections(input *DescribeConnectionsInput) (*Connections, error) {
  728. req, out := c.DescribeConnectionsRequest(input)
  729. err := req.Send()
  730. return out, err
  731. }
  732. const opDescribeConnectionsOnInterconnect = "DescribeConnectionsOnInterconnect"
  733. // DescribeConnectionsOnInterconnectRequest generates a "aws/request.Request" representing the
  734. // client's request for the DescribeConnectionsOnInterconnect operation. The "output" return
  735. // value can be used to capture response data after the request's "Send" method
  736. // is called.
  737. //
  738. // Creating a request object using this method should be used when you want to inject
  739. // custom logic into the request's lifecycle using a custom handler, or if you want to
  740. // access properties on the request object before or after sending the request. If
  741. // you just want the service response, call the DescribeConnectionsOnInterconnect method directly
  742. // instead.
  743. //
  744. // Note: You must call the "Send" method on the returned request object in order
  745. // to execute the request.
  746. //
  747. // // Example sending a request using the DescribeConnectionsOnInterconnectRequest method.
  748. // req, resp := client.DescribeConnectionsOnInterconnectRequest(params)
  749. //
  750. // err := req.Send()
  751. // if err == nil { // resp is now filled
  752. // fmt.Println(resp)
  753. // }
  754. //
  755. func (c *DirectConnect) DescribeConnectionsOnInterconnectRequest(input *DescribeConnectionsOnInterconnectInput) (req *request.Request, output *Connections) {
  756. op := &request.Operation{
  757. Name: opDescribeConnectionsOnInterconnect,
  758. HTTPMethod: "POST",
  759. HTTPPath: "/",
  760. }
  761. if input == nil {
  762. input = &DescribeConnectionsOnInterconnectInput{}
  763. }
  764. req = c.newRequest(op, input, output)
  765. output = &Connections{}
  766. req.Data = output
  767. return
  768. }
  769. // Return a list of connections that have been provisioned on the given interconnect.
  770. //
  771. // This is intended for use by AWS Direct Connect partners only.
  772. func (c *DirectConnect) DescribeConnectionsOnInterconnect(input *DescribeConnectionsOnInterconnectInput) (*Connections, error) {
  773. req, out := c.DescribeConnectionsOnInterconnectRequest(input)
  774. err := req.Send()
  775. return out, err
  776. }
  777. const opDescribeInterconnectLoa = "DescribeInterconnectLoa"
  778. // DescribeInterconnectLoaRequest generates a "aws/request.Request" representing the
  779. // client's request for the DescribeInterconnectLoa operation. The "output" return
  780. // value can be used to capture response data after the request's "Send" method
  781. // is called.
  782. //
  783. // Creating a request object using this method should be used when you want to inject
  784. // custom logic into the request's lifecycle using a custom handler, or if you want to
  785. // access properties on the request object before or after sending the request. If
  786. // you just want the service response, call the DescribeInterconnectLoa method directly
  787. // instead.
  788. //
  789. // Note: You must call the "Send" method on the returned request object in order
  790. // to execute the request.
  791. //
  792. // // Example sending a request using the DescribeInterconnectLoaRequest method.
  793. // req, resp := client.DescribeInterconnectLoaRequest(params)
  794. //
  795. // err := req.Send()
  796. // if err == nil { // resp is now filled
  797. // fmt.Println(resp)
  798. // }
  799. //
  800. func (c *DirectConnect) DescribeInterconnectLoaRequest(input *DescribeInterconnectLoaInput) (req *request.Request, output *DescribeInterconnectLoaOutput) {
  801. op := &request.Operation{
  802. Name: opDescribeInterconnectLoa,
  803. HTTPMethod: "POST",
  804. HTTPPath: "/",
  805. }
  806. if input == nil {
  807. input = &DescribeInterconnectLoaInput{}
  808. }
  809. req = c.newRequest(op, input, output)
  810. output = &DescribeInterconnectLoaOutput{}
  811. req.Data = output
  812. return
  813. }
  814. // Returns the LOA-CFA for an Interconnect.
  815. //
  816. // The Letter of Authorization - Connecting Facility Assignment (LOA-CFA) is
  817. // a document that is used when establishing your cross connect to AWS at the
  818. // colocation facility. For more information, see Requesting Cross Connects
  819. // at AWS Direct Connect Locations (http://docs.aws.amazon.com/directconnect/latest/UserGuide/Colocation.html)
  820. // in the AWS Direct Connect user guide.
  821. func (c *DirectConnect) DescribeInterconnectLoa(input *DescribeInterconnectLoaInput) (*DescribeInterconnectLoaOutput, error) {
  822. req, out := c.DescribeInterconnectLoaRequest(input)
  823. err := req.Send()
  824. return out, err
  825. }
  826. const opDescribeInterconnects = "DescribeInterconnects"
  827. // DescribeInterconnectsRequest generates a "aws/request.Request" representing the
  828. // client's request for the DescribeInterconnects operation. The "output" return
  829. // value can be used to capture response data after the request's "Send" method
  830. // is called.
  831. //
  832. // Creating a request object using this method should be used when you want to inject
  833. // custom logic into the request's lifecycle using a custom handler, or if you want to
  834. // access properties on the request object before or after sending the request. If
  835. // you just want the service response, call the DescribeInterconnects method directly
  836. // instead.
  837. //
  838. // Note: You must call the "Send" method on the returned request object in order
  839. // to execute the request.
  840. //
  841. // // Example sending a request using the DescribeInterconnectsRequest method.
  842. // req, resp := client.DescribeInterconnectsRequest(params)
  843. //
  844. // err := req.Send()
  845. // if err == nil { // resp is now filled
  846. // fmt.Println(resp)
  847. // }
  848. //
  849. func (c *DirectConnect) DescribeInterconnectsRequest(input *DescribeInterconnectsInput) (req *request.Request, output *DescribeInterconnectsOutput) {
  850. op := &request.Operation{
  851. Name: opDescribeInterconnects,
  852. HTTPMethod: "POST",
  853. HTTPPath: "/",
  854. }
  855. if input == nil {
  856. input = &DescribeInterconnectsInput{}
  857. }
  858. req = c.newRequest(op, input, output)
  859. output = &DescribeInterconnectsOutput{}
  860. req.Data = output
  861. return
  862. }
  863. // Returns a list of interconnects owned by the AWS account.
  864. //
  865. // If an interconnect ID is provided, it will only return this particular interconnect.
  866. func (c *DirectConnect) DescribeInterconnects(input *DescribeInterconnectsInput) (*DescribeInterconnectsOutput, error) {
  867. req, out := c.DescribeInterconnectsRequest(input)
  868. err := req.Send()
  869. return out, err
  870. }
  871. const opDescribeLocations = "DescribeLocations"
  872. // DescribeLocationsRequest generates a "aws/request.Request" representing the
  873. // client's request for the DescribeLocations operation. The "output" return
  874. // value can be used to capture response data after the request's "Send" method
  875. // is called.
  876. //
  877. // Creating a request object using this method should be used when you want to inject
  878. // custom logic into the request's lifecycle using a custom handler, or if you want to
  879. // access properties on the request object before or after sending the request. If
  880. // you just want the service response, call the DescribeLocations method directly
  881. // instead.
  882. //
  883. // Note: You must call the "Send" method on the returned request object in order
  884. // to execute the request.
  885. //
  886. // // Example sending a request using the DescribeLocationsRequest method.
  887. // req, resp := client.DescribeLocationsRequest(params)
  888. //
  889. // err := req.Send()
  890. // if err == nil { // resp is now filled
  891. // fmt.Println(resp)
  892. // }
  893. //
  894. func (c *DirectConnect) DescribeLocationsRequest(input *DescribeLocationsInput) (req *request.Request, output *DescribeLocationsOutput) {
  895. op := &request.Operation{
  896. Name: opDescribeLocations,
  897. HTTPMethod: "POST",
  898. HTTPPath: "/",
  899. }
  900. if input == nil {
  901. input = &DescribeLocationsInput{}
  902. }
  903. req = c.newRequest(op, input, output)
  904. output = &DescribeLocationsOutput{}
  905. req.Data = output
  906. return
  907. }
  908. // Returns the list of AWS Direct Connect locations in the current AWS region.
  909. // These are the locations that may be selected when calling CreateConnection
  910. // or CreateInterconnect.
  911. func (c *DirectConnect) DescribeLocations(input *DescribeLocationsInput) (*DescribeLocationsOutput, error) {
  912. req, out := c.DescribeLocationsRequest(input)
  913. err := req.Send()
  914. return out, err
  915. }
  916. const opDescribeVirtualGateways = "DescribeVirtualGateways"
  917. // DescribeVirtualGatewaysRequest generates a "aws/request.Request" representing the
  918. // client's request for the DescribeVirtualGateways operation. The "output" return
  919. // value can be used to capture response data after the request's "Send" method
  920. // is called.
  921. //
  922. // Creating a request object using this method should be used when you want to inject
  923. // custom logic into the request's lifecycle using a custom handler, or if you want to
  924. // access properties on the request object before or after sending the request. If
  925. // you just want the service response, call the DescribeVirtualGateways method directly
  926. // instead.
  927. //
  928. // Note: You must call the "Send" method on the returned request object in order
  929. // to execute the request.
  930. //
  931. // // Example sending a request using the DescribeVirtualGatewaysRequest method.
  932. // req, resp := client.DescribeVirtualGatewaysRequest(params)
  933. //
  934. // err := req.Send()
  935. // if err == nil { // resp is now filled
  936. // fmt.Println(resp)
  937. // }
  938. //
  939. func (c *DirectConnect) DescribeVirtualGatewaysRequest(input *DescribeVirtualGatewaysInput) (req *request.Request, output *DescribeVirtualGatewaysOutput) {
  940. op := &request.Operation{
  941. Name: opDescribeVirtualGateways,
  942. HTTPMethod: "POST",
  943. HTTPPath: "/",
  944. }
  945. if input == nil {
  946. input = &DescribeVirtualGatewaysInput{}
  947. }
  948. req = c.newRequest(op, input, output)
  949. output = &DescribeVirtualGatewaysOutput{}
  950. req.Data = output
  951. return
  952. }
  953. // Returns a list of virtual private gateways owned by the AWS account.
  954. //
  955. // You can create one or more AWS Direct Connect private virtual interfaces
  956. // linking to a virtual private gateway. A virtual private gateway can be managed
  957. // via Amazon Virtual Private Cloud (VPC) console or the EC2 CreateVpnGateway
  958. // (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-CreateVpnGateway.html)
  959. // action.
  960. func (c *DirectConnect) DescribeVirtualGateways(input *DescribeVirtualGatewaysInput) (*DescribeVirtualGatewaysOutput, error) {
  961. req, out := c.DescribeVirtualGatewaysRequest(input)
  962. err := req.Send()
  963. return out, err
  964. }
  965. const opDescribeVirtualInterfaces = "DescribeVirtualInterfaces"
  966. // DescribeVirtualInterfacesRequest generates a "aws/request.Request" representing the
  967. // client's request for the DescribeVirtualInterfaces operation. The "output" return
  968. // value can be used to capture response data after the request's "Send" method
  969. // is called.
  970. //
  971. // Creating a request object using this method should be used when you want to inject
  972. // custom logic into the request's lifecycle using a custom handler, or if you want to
  973. // access properties on the request object before or after sending the request. If
  974. // you just want the service response, call the DescribeVirtualInterfaces method directly
  975. // instead.
  976. //
  977. // Note: You must call the "Send" method on the returned request object in order
  978. // to execute the request.
  979. //
  980. // // Example sending a request using the DescribeVirtualInterfacesRequest method.
  981. // req, resp := client.DescribeVirtualInterfacesRequest(params)
  982. //
  983. // err := req.Send()
  984. // if err == nil { // resp is now filled
  985. // fmt.Println(resp)
  986. // }
  987. //
  988. func (c *DirectConnect) DescribeVirtualInterfacesRequest(input *DescribeVirtualInterfacesInput) (req *request.Request, output *DescribeVirtualInterfacesOutput) {
  989. op := &request.Operation{
  990. Name: opDescribeVirtualInterfaces,
  991. HTTPMethod: "POST",
  992. HTTPPath: "/",
  993. }
  994. if input == nil {
  995. input = &DescribeVirtualInterfacesInput{}
  996. }
  997. req = c.newRequest(op, input, output)
  998. output = &DescribeVirtualInterfacesOutput{}
  999. req.Data = output
  1000. return
  1001. }
  1002. // Displays all virtual interfaces for an AWS account. Virtual interfaces deleted
  1003. // fewer than 15 minutes before DescribeVirtualInterfaces is called are also
  1004. // returned. If a connection ID is included then only virtual interfaces associated
  1005. // with this connection will be returned. If a virtual interface ID is included
  1006. // then only a single virtual interface will be returned.
  1007. //
  1008. // A virtual interface (VLAN) transmits the traffic between the AWS Direct
  1009. // Connect location and the customer.
  1010. //
  1011. // If a connection ID is provided, only virtual interfaces provisioned on the
  1012. // specified connection will be returned. If a virtual interface ID is provided,
  1013. // only this particular virtual interface will be returned.
  1014. func (c *DirectConnect) DescribeVirtualInterfaces(input *DescribeVirtualInterfacesInput) (*DescribeVirtualInterfacesOutput, error) {
  1015. req, out := c.DescribeVirtualInterfacesRequest(input)
  1016. err := req.Send()
  1017. return out, err
  1018. }
  1019. // Container for the parameters to the AllocateConnectionOnInterconnect operation.
  1020. type AllocateConnectionOnInterconnectInput struct {
  1021. _ struct{} `type:"structure"`
  1022. // Bandwidth of the connection.
  1023. //
  1024. // Example: "500Mbps"
  1025. //
  1026. // Default: None
  1027. //
  1028. // Values: 50M, 100M, 200M, 300M, 400M, or 500M
  1029. Bandwidth *string `locationName:"bandwidth" type:"string" required:"true"`
  1030. // Name of the provisioned connection.
  1031. //
  1032. // Example: "500M Connection to AWS"
  1033. //
  1034. // Default: None
  1035. ConnectionName *string `locationName:"connectionName" type:"string" required:"true"`
  1036. // ID of the interconnect on which the connection will be provisioned.
  1037. //
  1038. // Example: dxcon-456abc78
  1039. //
  1040. // Default: None
  1041. InterconnectId *string `locationName:"interconnectId" type:"string" required:"true"`
  1042. // Numeric account Id of the customer for whom the connection will be provisioned.
  1043. //
  1044. // Example: 123443215678
  1045. //
  1046. // Default: None
  1047. OwnerAccount *string `locationName:"ownerAccount" type:"string" required:"true"`
  1048. // The dedicated VLAN provisioned to the connection.
  1049. //
  1050. // Example: 101
  1051. //
  1052. // Default: None
  1053. Vlan *int64 `locationName:"vlan" type:"integer" required:"true"`
  1054. }
  1055. // String returns the string representation
  1056. func (s AllocateConnectionOnInterconnectInput) String() string {
  1057. return awsutil.Prettify(s)
  1058. }
  1059. // GoString returns the string representation
  1060. func (s AllocateConnectionOnInterconnectInput) GoString() string {
  1061. return s.String()
  1062. }
  1063. // Validate inspects the fields of the type to determine if they are valid.
  1064. func (s *AllocateConnectionOnInterconnectInput) Validate() error {
  1065. invalidParams := request.ErrInvalidParams{Context: "AllocateConnectionOnInterconnectInput"}
  1066. if s.Bandwidth == nil {
  1067. invalidParams.Add(request.NewErrParamRequired("Bandwidth"))
  1068. }
  1069. if s.ConnectionName == nil {
  1070. invalidParams.Add(request.NewErrParamRequired("ConnectionName"))
  1071. }
  1072. if s.InterconnectId == nil {
  1073. invalidParams.Add(request.NewErrParamRequired("InterconnectId"))
  1074. }
  1075. if s.OwnerAccount == nil {
  1076. invalidParams.Add(request.NewErrParamRequired("OwnerAccount"))
  1077. }
  1078. if s.Vlan == nil {
  1079. invalidParams.Add(request.NewErrParamRequired("Vlan"))
  1080. }
  1081. if invalidParams.Len() > 0 {
  1082. return invalidParams
  1083. }
  1084. return nil
  1085. }
  1086. // Container for the parameters to the AllocatePrivateVirtualInterface operation.
  1087. type AllocatePrivateVirtualInterfaceInput struct {
  1088. _ struct{} `type:"structure"`
  1089. // The connection ID on which the private virtual interface is provisioned.
  1090. //
  1091. // Default: None
  1092. ConnectionId *string `locationName:"connectionId" type:"string" required:"true"`
  1093. // Detailed information for the private virtual interface to be provisioned.
  1094. //
  1095. // Default: None
  1096. NewPrivateVirtualInterfaceAllocation *NewPrivateVirtualInterfaceAllocation `locationName:"newPrivateVirtualInterfaceAllocation" type:"structure" required:"true"`
  1097. // The AWS account that will own the new private virtual interface.
  1098. //
  1099. // Default: None
  1100. OwnerAccount *string `locationName:"ownerAccount" type:"string" required:"true"`
  1101. }
  1102. // String returns the string representation
  1103. func (s AllocatePrivateVirtualInterfaceInput) String() string {
  1104. return awsutil.Prettify(s)
  1105. }
  1106. // GoString returns the string representation
  1107. func (s AllocatePrivateVirtualInterfaceInput) GoString() string {
  1108. return s.String()
  1109. }
  1110. // Validate inspects the fields of the type to determine if they are valid.
  1111. func (s *AllocatePrivateVirtualInterfaceInput) Validate() error {
  1112. invalidParams := request.ErrInvalidParams{Context: "AllocatePrivateVirtualInterfaceInput"}
  1113. if s.ConnectionId == nil {
  1114. invalidParams.Add(request.NewErrParamRequired("ConnectionId"))
  1115. }
  1116. if s.NewPrivateVirtualInterfaceAllocation == nil {
  1117. invalidParams.Add(request.NewErrParamRequired("NewPrivateVirtualInterfaceAllocation"))
  1118. }
  1119. if s.OwnerAccount == nil {
  1120. invalidParams.Add(request.NewErrParamRequired("OwnerAccount"))
  1121. }
  1122. if s.NewPrivateVirtualInterfaceAllocation != nil {
  1123. if err := s.NewPrivateVirtualInterfaceAllocation.Validate(); err != nil {
  1124. invalidParams.AddNested("NewPrivateVirtualInterfaceAllocation", err.(request.ErrInvalidParams))
  1125. }
  1126. }
  1127. if invalidParams.Len() > 0 {
  1128. return invalidParams
  1129. }
  1130. return nil
  1131. }
  1132. // Container for the parameters to the AllocatePublicVirtualInterface operation.
  1133. type AllocatePublicVirtualInterfaceInput struct {
  1134. _ struct{} `type:"structure"`
  1135. // The connection ID on which the public virtual interface is provisioned.
  1136. //
  1137. // Default: None
  1138. ConnectionId *string `locationName:"connectionId" type:"string" required:"true"`
  1139. // Detailed information for the public virtual interface to be provisioned.
  1140. //
  1141. // Default: None
  1142. NewPublicVirtualInterfaceAllocation *NewPublicVirtualInterfaceAllocation `locationName:"newPublicVirtualInterfaceAllocation" type:"structure" required:"true"`
  1143. // The AWS account that will own the new public virtual interface.
  1144. //
  1145. // Default: None
  1146. OwnerAccount *string `locationName:"ownerAccount" type:"string" required:"true"`
  1147. }
  1148. // String returns the string representation
  1149. func (s AllocatePublicVirtualInterfaceInput) String() string {
  1150. return awsutil.Prettify(s)
  1151. }
  1152. // GoString returns the string representation
  1153. func (s AllocatePublicVirtualInterfaceInput) GoString() string {
  1154. return s.String()
  1155. }
  1156. // Validate inspects the fields of the type to determine if they are valid.
  1157. func (s *AllocatePublicVirtualInterfaceInput) Validate() error {
  1158. invalidParams := request.ErrInvalidParams{Context: "AllocatePublicVirtualInterfaceInput"}
  1159. if s.ConnectionId == nil {
  1160. invalidParams.Add(request.NewErrParamRequired("ConnectionId"))
  1161. }
  1162. if s.NewPublicVirtualInterfaceAllocation == nil {
  1163. invalidParams.Add(request.NewErrParamRequired("NewPublicVirtualInterfaceAllocation"))
  1164. }
  1165. if s.OwnerAccount == nil {
  1166. invalidParams.Add(request.NewErrParamRequired("OwnerAccount"))
  1167. }
  1168. if s.NewPublicVirtualInterfaceAllocation != nil {
  1169. if err := s.NewPublicVirtualInterfaceAllocation.Validate(); err != nil {
  1170. invalidParams.AddNested("NewPublicVirtualInterfaceAllocation", err.(request.ErrInvalidParams))
  1171. }
  1172. }
  1173. if invalidParams.Len() > 0 {
  1174. return invalidParams
  1175. }
  1176. return nil
  1177. }
  1178. // Container for the parameters to the ConfirmConnection operation.
  1179. type ConfirmConnectionInput struct {
  1180. _ struct{} `type:"structure"`
  1181. // ID of the connection.
  1182. //
  1183. // Example: dxcon-fg5678gh
  1184. //
  1185. // Default: None
  1186. ConnectionId *string `locationName:"connectionId" type:"string" required:"true"`
  1187. }
  1188. // String returns the string representation
  1189. func (s ConfirmConnectionInput) String() string {
  1190. return awsutil.Prettify(s)
  1191. }
  1192. // GoString returns the string representation
  1193. func (s ConfirmConnectionInput) GoString() string {
  1194. return s.String()
  1195. }
  1196. // Validate inspects the fields of the type to determine if they are valid.
  1197. func (s *ConfirmConnectionInput) Validate() error {
  1198. invalidParams := request.ErrInvalidParams{Context: "ConfirmConnectionInput"}
  1199. if s.ConnectionId == nil {
  1200. invalidParams.Add(request.NewErrParamRequired("ConnectionId"))
  1201. }
  1202. if invalidParams.Len() > 0 {
  1203. return invalidParams
  1204. }
  1205. return nil
  1206. }
  1207. // The response received when ConfirmConnection is called.
  1208. type ConfirmConnectionOutput struct {
  1209. _ struct{} `type:"structure"`
  1210. // State of the connection.
  1211. //
  1212. // Ordering: The initial state of a hosted connection provisioned on an
  1213. // interconnect. The connection stays in the ordering state until the owner
  1214. // of the hosted connection confirms or declines the connection order.
  1215. //
  1216. // Requested: The initial state of a standard connection. The connection
  1217. // stays in the requested state until the Letter of Authorization (LOA) is sent
  1218. // to the customer.
  1219. //
  1220. // Pending: The connection has been approved, and is being initialized.
  1221. //
  1222. // Available: The network link is up, and the connection is ready for use.
  1223. //
  1224. // Down: The network link is down.
  1225. //
  1226. // Deleting: The connection is in the process of being deleted.
  1227. //
  1228. // Deleted: The connection has been deleted.
  1229. //
  1230. // Rejected: A hosted connection in the 'Ordering' state will enter the
  1231. // 'Rejected' state if it is deleted by the end customer.
  1232. ConnectionState *string `locationName:"connectionState" type:"string" enum:"ConnectionState"`
  1233. }
  1234. // String returns the string representation
  1235. func (s ConfirmConnectionOutput) String() string {
  1236. return awsutil.Prettify(s)
  1237. }
  1238. // GoString returns the string representation
  1239. func (s ConfirmConnectionOutput) GoString() string {
  1240. return s.String()
  1241. }
  1242. // Container for the parameters to the ConfirmPrivateVirtualInterface operation.
  1243. type ConfirmPrivateVirtualInterfaceInput struct {
  1244. _ struct{} `type:"structure"`
  1245. // ID of the virtual private gateway that will be attached to the virtual interface.
  1246. //
  1247. // A virtual private gateway can be managed via the Amazon Virtual Private
  1248. // Cloud (VPC) console or the EC2 CreateVpnGateway (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-CreateVpnGateway.html)
  1249. // action.
  1250. //
  1251. // Default: None
  1252. VirtualGatewayId *string `locationName:"virtualGatewayId" type:"string" required:"true"`
  1253. // ID of the virtual interface.
  1254. //
  1255. // Example: dxvif-123dfg56
  1256. //
  1257. // Default: None
  1258. VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string" required:"true"`
  1259. }
  1260. // String returns the string representation
  1261. func (s ConfirmPrivateVirtualInterfaceInput) String() string {
  1262. return awsutil.Prettify(s)
  1263. }
  1264. // GoString returns the string representation
  1265. func (s ConfirmPrivateVirtualInterfaceInput) GoString() string {
  1266. return s.String()
  1267. }
  1268. // Validate inspects the fields of the type to determine if they are valid.
  1269. func (s *ConfirmPrivateVirtualInterfaceInput) Validate() error {
  1270. invalidParams := request.ErrInvalidParams{Context: "ConfirmPrivateVirtualInterfaceInput"}
  1271. if s.VirtualGatewayId == nil {
  1272. invalidParams.Add(request.NewErrParamRequired("VirtualGatewayId"))
  1273. }
  1274. if s.VirtualInterfaceId == nil {
  1275. invalidParams.Add(request.NewErrParamRequired("VirtualInterfaceId"))
  1276. }
  1277. if invalidParams.Len() > 0 {
  1278. return invalidParams
  1279. }
  1280. return nil
  1281. }
  1282. // The response received when ConfirmPrivateVirtualInterface is called.
  1283. type ConfirmPrivateVirtualInterfaceOutput struct {
  1284. _ struct{} `type:"structure"`
  1285. // State of the virtual interface.
  1286. //
  1287. // Confirming: The creation of the virtual interface is pending confirmation
  1288. // from the virtual interface owner. If the owner of the virtual interface is
  1289. // different from the owner of the connection on which it is provisioned, then
  1290. // the virtual interface will remain in this state until it is confirmed by
  1291. // the virtual interface owner.
  1292. //
  1293. // Verifying: This state only applies to public virtual interfaces. Each
  1294. // public virtual interface needs validation before the virtual interface can
  1295. // be created.
  1296. //
  1297. // Pending: A virtual interface is in this state from the time that it is
  1298. // created until the virtual interface is ready to forward traffic.
  1299. //
  1300. // Available: A virtual interface that is able to forward traffic.
  1301. //
  1302. // Down: A virtual interface that is BGP down.
  1303. //
  1304. // Deleting: A virtual interface is in this state immediately after calling
  1305. // DeleteVirtualInterface until it can no longer forward traffic.
  1306. //
  1307. // Deleted: A virtual interface that cannot forward traffic.
  1308. //
  1309. // Rejected: The virtual interface owner has declined creation of the virtual
  1310. // interface. If a virtual interface in the 'Confirming' state is deleted by
  1311. // the virtual interface owner, the virtual interface will enter the 'Rejected'
  1312. // state.
  1313. VirtualInterfaceState *string `locationName:"virtualInterfaceState" type:"string" enum:"VirtualInterfaceState"`
  1314. }
  1315. // String returns the string representation
  1316. func (s ConfirmPrivateVirtualInterfaceOutput) String() string {
  1317. return awsutil.Prettify(s)
  1318. }
  1319. // GoString returns the string representation
  1320. func (s ConfirmPrivateVirtualInterfaceOutput) GoString() string {
  1321. return s.String()
  1322. }
  1323. // Container for the parameters to the ConfirmPublicVirtualInterface operation.
  1324. type ConfirmPublicVirtualInterfaceInput struct {
  1325. _ struct{} `type:"structure"`
  1326. // ID of the virtual interface.
  1327. //
  1328. // Example: dxvif-123dfg56
  1329. //
  1330. // Default: None
  1331. VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string" required:"true"`
  1332. }
  1333. // String returns the string representation
  1334. func (s ConfirmPublicVirtualInterfaceInput) String() string {
  1335. return awsutil.Prettify(s)
  1336. }
  1337. // GoString returns the string representation
  1338. func (s ConfirmPublicVirtualInterfaceInput) GoString() string {
  1339. return s.String()
  1340. }
  1341. // Validate inspects the fields of the type to determine if they are valid.
  1342. func (s *ConfirmPublicVirtualInterfaceInput) Validate() error {
  1343. invalidParams := request.ErrInvalidParams{Context: "ConfirmPublicVirtualInterfaceInput"}
  1344. if s.VirtualInterfaceId == nil {
  1345. invalidParams.Add(request.NewErrParamRequired("VirtualInterfaceId"))
  1346. }
  1347. if invalidParams.Len() > 0 {
  1348. return invalidParams
  1349. }
  1350. return nil
  1351. }
  1352. // The response received when ConfirmPublicVirtualInterface is called.
  1353. type ConfirmPublicVirtualInterfaceOutput struct {
  1354. _ struct{} `type:"structure"`
  1355. // State of the virtual interface.
  1356. //
  1357. // Confirming: The creation of the virtual interface is pending confirmation
  1358. // from the virtual interface owner. If the owner of the virtual interface is
  1359. // different from the owner of the connection on which it is provisioned, then
  1360. // the virtual interface will remain in this state until it is confirmed by
  1361. // the virtual interface owner.
  1362. //
  1363. // Verifying: This state only applies to public virtual interfaces. Each
  1364. // public virtual interface needs validation before the virtual interface can
  1365. // be created.
  1366. //
  1367. // Pending: A virtual interface is in this state from the time that it is
  1368. // created until the virtual interface is ready to forward traffic.
  1369. //
  1370. // Available: A virtual interface that is able to forward traffic.
  1371. //
  1372. // Down: A virtual interface that is BGP down.
  1373. //
  1374. // Deleting: A virtual interface is in this state immediately after calling
  1375. // DeleteVirtualInterface until it can no longer forward traffic.
  1376. //
  1377. // Deleted: A virtual interface that cannot forward traffic.
  1378. //
  1379. // Rejected: The virtual interface owner has declined creation of the virtual
  1380. // interface. If a virtual interface in the 'Confirming' state is deleted by
  1381. // the virtual interface owner, the virtual interface will enter the 'Rejected'
  1382. // state.
  1383. VirtualInterfaceState *string `locationName:"virtualInterfaceState" type:"string" enum:"VirtualInterfaceState"`
  1384. }
  1385. // String returns the string representation
  1386. func (s ConfirmPublicVirtualInterfaceOutput) String() string {
  1387. return awsutil.Prettify(s)
  1388. }
  1389. // GoString returns the string representation
  1390. func (s ConfirmPublicVirtualInterfaceOutput) GoString() string {
  1391. return s.String()
  1392. }
  1393. // A connection represents the physical network connection between the AWS Direct
  1394. // Connect location and the customer.
  1395. type Connection struct {
  1396. _ struct{} `type:"structure"`
  1397. // Bandwidth of the connection.
  1398. //
  1399. // Example: 1Gbps (for regular connections), or 500Mbps (for hosted connections)
  1400. //
  1401. // Default: None
  1402. Bandwidth *string `locationName:"bandwidth" type:"string"`
  1403. // ID of the connection.
  1404. //
  1405. // Example: dxcon-fg5678gh
  1406. //
  1407. // Default: None
  1408. ConnectionId *string `locationName:"connectionId" type:"string"`
  1409. // The name of the connection.
  1410. //
  1411. // Example: "My Connection to AWS"
  1412. //
  1413. // Default: None
  1414. ConnectionName *string `locationName:"connectionName" type:"string"`
  1415. // State of the connection.
  1416. //
  1417. // Ordering: The initial state of a hosted connection provisioned on an
  1418. // interconnect. The connection stays in the ordering state until the owner
  1419. // of the hosted connection confirms or declines the connection order.
  1420. //
  1421. // Requested: The initial state of a standard connection. The connection
  1422. // stays in the requested state until the Letter of Authorization (LOA) is sent
  1423. // to the customer.
  1424. //
  1425. // Pending: The connection has been approved, and is being initialized.
  1426. //
  1427. // Available: The network link is up, and the connection is ready for use.
  1428. //
  1429. // Down: The network link is down.
  1430. //
  1431. // Deleting: The connection is in the process of being deleted.
  1432. //
  1433. // Deleted: The connection has been deleted.
  1434. //
  1435. // Rejected: A hosted connection in the 'Ordering' state will enter the
  1436. // 'Rejected' state if it is deleted by the end customer.
  1437. ConnectionState *string `locationName:"connectionState" type:"string" enum:"ConnectionState"`
  1438. // The time of the most recent call to DescribeConnectionLoa for this Connection.
  1439. LoaIssueTime *time.Time `locationName:"loaIssueTime" type:"timestamp" timestampFormat:"unix"`
  1440. // Where the connection is located.
  1441. //
  1442. // Example: EqSV5
  1443. //
  1444. // Default: None
  1445. Location *string `locationName:"location" type:"string"`
  1446. // The AWS account that will own the new connection.
  1447. OwnerAccount *string `locationName:"ownerAccount" type:"string"`
  1448. // The name of the AWS Direct Connect service provider associated with the connection.
  1449. PartnerName *string `locationName:"partnerName" type:"string"`
  1450. // The AWS region where the connection is located.
  1451. //
  1452. // Example: us-east-1
  1453. //
  1454. // Default: None
  1455. Region *string `locationName:"region" type:"string"`
  1456. // The VLAN ID.
  1457. //
  1458. // Example: 101
  1459. Vlan *int64 `locationName:"vlan" type:"integer"`
  1460. }
  1461. // String returns the string representation
  1462. func (s Connection) String() string {
  1463. return awsutil.Prettify(s)
  1464. }
  1465. // GoString returns the string representation
  1466. func (s Connection) GoString() string {
  1467. return s.String()
  1468. }
  1469. // A structure containing a list of connections.
  1470. type Connections struct {
  1471. _ struct{} `type:"structure"`
  1472. // A list of connections.
  1473. Connections []*Connection `locationName:"connections" type:"list"`
  1474. }
  1475. // String returns the string representation
  1476. func (s Connections) String() string {
  1477. return awsutil.Prettify(s)
  1478. }
  1479. // GoString returns the string representation
  1480. func (s Connections) GoString() string {
  1481. return s.String()
  1482. }
  1483. // Container for the parameters to the CreateConnection operation.
  1484. type CreateConnectionInput struct {
  1485. _ struct{} `type:"structure"`
  1486. // Bandwidth of the connection.
  1487. //
  1488. // Example: 1Gbps
  1489. //
  1490. // Default: None
  1491. Bandwidth *string `locationName:"bandwidth" type:"string" required:"true"`
  1492. // The name of the connection.
  1493. //
  1494. // Example: "My Connection to AWS"
  1495. //
  1496. // Default: None
  1497. ConnectionName *string `locationName:"connectionName" type:"string" required:"true"`
  1498. // Where the connection is located.
  1499. //
  1500. // Example: EqSV5
  1501. //
  1502. // Default: None
  1503. Location *string `locationName:"location" type:"string" required:"true"`
  1504. }
  1505. // String returns the string representation
  1506. func (s CreateConnectionInput) String() string {
  1507. return awsutil.Prettify(s)
  1508. }
  1509. // GoString returns the string representation
  1510. func (s CreateConnectionInput) GoString() string {
  1511. return s.String()
  1512. }
  1513. // Validate inspects the fields of the type to determine if they are valid.
  1514. func (s *CreateConnectionInput) Validate() error {
  1515. invalidParams := request.ErrInvalidParams{Context: "CreateConnectionInput"}
  1516. if s.Bandwidth == nil {
  1517. invalidParams.Add(request.NewErrParamRequired("Bandwidth"))
  1518. }
  1519. if s.ConnectionName == nil {
  1520. invalidParams.Add(request.NewErrParamRequired("ConnectionName"))
  1521. }
  1522. if s.Location == nil {
  1523. invalidParams.Add(request.NewErrParamRequired("Location"))
  1524. }
  1525. if invalidParams.Len() > 0 {
  1526. return invalidParams
  1527. }
  1528. return nil
  1529. }
  1530. // Container for the parameters to the CreateInterconnect operation.
  1531. type CreateInterconnectInput struct {
  1532. _ struct{} `type:"structure"`
  1533. // The port bandwidth
  1534. //
  1535. // Example: 1Gbps
  1536. //
  1537. // Default: None
  1538. //
  1539. // Available values: 1Gbps,10Gbps
  1540. Bandwidth *string `locationName:"bandwidth" type:"string" required:"true"`
  1541. // The name of the interconnect.
  1542. //
  1543. // Example: "1G Interconnect to AWS"
  1544. //
  1545. // Default: None
  1546. InterconnectName *string `locationName:"interconnectName" type:"string" required:"true"`
  1547. // Where the interconnect is located
  1548. //
  1549. // Example: EqSV5
  1550. //
  1551. // Default: None
  1552. Location *string `locationName:"location" type:"string" required:"true"`
  1553. }
  1554. // String returns the string representation
  1555. func (s CreateInterconnectInput) String() string {
  1556. return awsutil.Prettify(s)
  1557. }
  1558. // GoString returns the string representation
  1559. func (s CreateInterconnectInput) GoString() string {
  1560. return s.String()
  1561. }
  1562. // Validate inspects the fields of the type to determine if they are valid.
  1563. func (s *CreateInterconnectInput) Validate() error {
  1564. invalidParams := request.ErrInvalidParams{Context: "CreateInterconnectInput"}
  1565. if s.Bandwidth == nil {
  1566. invalidParams.Add(request.NewErrParamRequired("Bandwidth"))
  1567. }
  1568. if s.InterconnectName == nil {
  1569. invalidParams.Add(request.NewErrParamRequired("InterconnectName"))
  1570. }
  1571. if s.Location == nil {
  1572. invalidParams.Add(request.NewErrParamRequired("Location"))
  1573. }
  1574. if invalidParams.Len() > 0 {
  1575. return invalidParams
  1576. }
  1577. return nil
  1578. }
  1579. // Container for the parameters to the CreatePrivateVirtualInterface operation.
  1580. type CreatePrivateVirtualInterfaceInput struct {
  1581. _ struct{} `type:"structure"`
  1582. // ID of the connection.
  1583. //
  1584. // Example: dxcon-fg5678gh
  1585. //
  1586. // Default: None
  1587. ConnectionId *string `locationName:"connectionId" type:"string" required:"true"`
  1588. // Detailed information for the private virtual interface to be created.
  1589. //
  1590. // Default: None
  1591. NewPrivateVirtualInterface *NewPrivateVirtualInterface `locationName:"newPrivateVirtualInterface" type:"structure" required:"true"`
  1592. }
  1593. // String returns the string representation
  1594. func (s CreatePrivateVirtualInterfaceInput) String() string {
  1595. return awsutil.Prettify(s)
  1596. }
  1597. // GoString returns the string representation
  1598. func (s CreatePrivateVirtualInterfaceInput) GoString() string {
  1599. return s.String()
  1600. }
  1601. // Validate inspects the fields of the type to determine if they are valid.
  1602. func (s *CreatePrivateVirtualInterfaceInput) Validate() error {
  1603. invalidParams := request.ErrInvalidParams{Context: "CreatePrivateVirtualInterfaceInput"}
  1604. if s.ConnectionId == nil {
  1605. invalidParams.Add(request.NewErrParamRequired("ConnectionId"))
  1606. }
  1607. if s.NewPrivateVirtualInterface == nil {
  1608. invalidParams.Add(request.NewErrParamRequired("NewPrivateVirtualInterface"))
  1609. }
  1610. if s.NewPrivateVirtualInterface != nil {
  1611. if err := s.NewPrivateVirtualInterface.Validate(); err != nil {
  1612. invalidParams.AddNested("NewPrivateVirtualInterface", err.(request.ErrInvalidParams))
  1613. }
  1614. }
  1615. if invalidParams.Len() > 0 {
  1616. return invalidParams
  1617. }
  1618. return nil
  1619. }
  1620. // Container for the parameters to the CreatePublicVirtualInterface operation.
  1621. type CreatePublicVirtualInterfaceInput struct {
  1622. _ struct{} `type:"structure"`
  1623. // ID of the connection.
  1624. //
  1625. // Example: dxcon-fg5678gh
  1626. //
  1627. // Default: None
  1628. ConnectionId *string `locationName:"connectionId" type:"string" required:"true"`
  1629. // Detailed information for the public virtual interface to be created.
  1630. //
  1631. // Default: None
  1632. NewPublicVirtualInterface *NewPublicVirtualInterface `locationName:"newPublicVirtualInterface" type:"structure" required:"true"`
  1633. }
  1634. // String returns the string representation
  1635. func (s CreatePublicVirtualInterfaceInput) String() string {
  1636. return awsutil.Prettify(s)
  1637. }
  1638. // GoString returns the string representation
  1639. func (s CreatePublicVirtualInterfaceInput) GoString() string {
  1640. return s.String()
  1641. }
  1642. // Validate inspects the fields of the type to determine if they are valid.
  1643. func (s *CreatePublicVirtualInterfaceInput) Validate() error {
  1644. invalidParams := request.ErrInvalidParams{Context: "CreatePublicVirtualInterfaceInput"}
  1645. if s.ConnectionId == nil {
  1646. invalidParams.Add(request.NewErrParamRequired("ConnectionId"))
  1647. }
  1648. if s.NewPublicVirtualInterface == nil {
  1649. invalidParams.Add(request.NewErrParamRequired("NewPublicVirtualInterface"))
  1650. }
  1651. if s.NewPublicVirtualInterface != nil {
  1652. if err := s.NewPublicVirtualInterface.Validate(); err != nil {
  1653. invalidParams.AddNested("NewPublicVirtualInterface", err.(request.ErrInvalidParams))
  1654. }
  1655. }
  1656. if invalidParams.Len() > 0 {
  1657. return invalidParams
  1658. }
  1659. return nil
  1660. }
  1661. // Container for the parameters to the DeleteConnection operation.
  1662. type DeleteConnectionInput struct {
  1663. _ struct{} `type:"structure"`
  1664. // ID of the connection.
  1665. //
  1666. // Example: dxcon-fg5678gh
  1667. //
  1668. // Default: None
  1669. ConnectionId *string `locationName:"connectionId" type:"string" required:"true"`
  1670. }
  1671. // String returns the string representation
  1672. func (s DeleteConnectionInput) String() string {
  1673. return awsutil.Prettify(s)
  1674. }
  1675. // GoString returns the string representation
  1676. func (s DeleteConnectionInput) GoString() string {
  1677. return s.String()
  1678. }
  1679. // Validate inspects the fields of the type to determine if they are valid.
  1680. func (s *DeleteConnectionInput) Validate() error {
  1681. invalidParams := request.ErrInvalidParams{Context: "DeleteConnectionInput"}
  1682. if s.ConnectionId == nil {
  1683. invalidParams.Add(request.NewErrParamRequired("ConnectionId"))
  1684. }
  1685. if invalidParams.Len() > 0 {
  1686. return invalidParams
  1687. }
  1688. return nil
  1689. }
  1690. // Container for the parameters to the DeleteInterconnect operation.
  1691. type DeleteInterconnectInput struct {
  1692. _ struct{} `type:"structure"`
  1693. // The ID of the interconnect.
  1694. //
  1695. // Example: dxcon-abc123
  1696. InterconnectId *string `locationName:"interconnectId" type:"string" required:"true"`
  1697. }
  1698. // String returns the string representation
  1699. func (s DeleteInterconnectInput) String() string {
  1700. return awsutil.Prettify(s)
  1701. }
  1702. // GoString returns the string representation
  1703. func (s DeleteInterconnectInput) GoString() string {
  1704. return s.String()
  1705. }
  1706. // Validate inspects the fields of the type to determine if they are valid.
  1707. func (s *DeleteInterconnectInput) Validate() error {
  1708. invalidParams := request.ErrInvalidParams{Context: "DeleteInterconnectInput"}
  1709. if s.InterconnectId == nil {
  1710. invalidParams.Add(request.NewErrParamRequired("InterconnectId"))
  1711. }
  1712. if invalidParams.Len() > 0 {
  1713. return invalidParams
  1714. }
  1715. return nil
  1716. }
  1717. // The response received when DeleteInterconnect is called.
  1718. type DeleteInterconnectOutput struct {
  1719. _ struct{} `type:"structure"`
  1720. // State of the interconnect.
  1721. //
  1722. // Requested: The initial state of an interconnect. The interconnect stays
  1723. // in the requested state until the Letter of Authorization (LOA) is sent to
  1724. // the customer.
  1725. //
  1726. // Pending>: The interconnect has been approved, and is being initialized.
  1727. //
  1728. // Available: The network link is up, and the interconnect is ready for
  1729. // use.
  1730. //
  1731. // Down: The network link is down.
  1732. //
  1733. // Deleting: The interconnect is in the process of being deleted.
  1734. //
  1735. // Deleted: The interconnect has been deleted.
  1736. InterconnectState *string `locationName:"interconnectState" type:"string" enum:"InterconnectState"`
  1737. }
  1738. // String returns the string representation
  1739. func (s DeleteInterconnectOutput) String() string {
  1740. return awsutil.Prettify(s)
  1741. }
  1742. // GoString returns the string representation
  1743. func (s DeleteInterconnectOutput) GoString() string {
  1744. return s.String()
  1745. }
  1746. // Container for the parameters to the DeleteVirtualInterface operation.
  1747. type DeleteVirtualInterfaceInput struct {
  1748. _ struct{} `type:"structure"`
  1749. // ID of the virtual interface.
  1750. //
  1751. // Example: dxvif-123dfg56
  1752. //
  1753. // Default: None
  1754. VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string" required:"true"`
  1755. }
  1756. // String returns the string representation
  1757. func (s DeleteVirtualInterfaceInput) String() string {
  1758. return awsutil.Prettify(s)
  1759. }
  1760. // GoString returns the string representation
  1761. func (s DeleteVirtualInterfaceInput) GoString() string {
  1762. return s.String()
  1763. }
  1764. // Validate inspects the fields of the type to determine if they are valid.
  1765. func (s *DeleteVirtualInterfaceInput) Validate() error {
  1766. invalidParams := request.ErrInvalidParams{Context: "DeleteVirtualInterfaceInput"}
  1767. if s.VirtualInterfaceId == nil {
  1768. invalidParams.Add(request.NewErrParamRequired("VirtualInterfaceId"))
  1769. }
  1770. if invalidParams.Len() > 0 {
  1771. return invalidParams
  1772. }
  1773. return nil
  1774. }
  1775. // The response received when DeleteVirtualInterface is called.
  1776. type DeleteVirtualInterfaceOutput struct {
  1777. _ struct{} `type:"structure"`
  1778. // State of the virtual interface.
  1779. //
  1780. // Confirming: The creation of the virtual interface is pending confirmation
  1781. // from the virtual interface owner. If the owner of the virtual interface is
  1782. // different from the owner of the connection on which it is provisioned, then
  1783. // the virtual interface will remain in this state until it is confirmed by
  1784. // the virtual interface owner.
  1785. //
  1786. // Verifying: This state only applies to public virtual interfaces. Each
  1787. // public virtual interface needs validation before the virtual interface can
  1788. // be created.
  1789. //
  1790. // Pending: A virtual interface is in this state from the time that it is
  1791. // created until the virtual interface is ready to forward traffic.
  1792. //
  1793. // Available: A virtual interface that is able to forward traffic.
  1794. //
  1795. // Down: A virtual interface that is BGP down.
  1796. //
  1797. // Deleting: A virtual interface is in this state immediately after calling
  1798. // DeleteVirtualInterface until it can no longer forward traffic.
  1799. //
  1800. // Deleted: A virtual interface that cannot forward traffic.
  1801. //
  1802. // Rejected: The virtual interface owner has declined creation of the virtual
  1803. // interface. If a virtual interface in the 'Confirming' state is deleted by
  1804. // the virtual interface owner, the virtual interface will enter the 'Rejected'
  1805. // state.
  1806. VirtualInterfaceState *string `locationName:"virtualInterfaceState" type:"string" enum:"VirtualInterfaceState"`
  1807. }
  1808. // String returns the string representation
  1809. func (s DeleteVirtualInterfaceOutput) String() string {
  1810. return awsutil.Prettify(s)
  1811. }
  1812. // GoString returns the string representation
  1813. func (s DeleteVirtualInterfaceOutput) GoString() string {
  1814. return s.String()
  1815. }
  1816. // Container for the parameters to the DescribeConnectionLoa operation.
  1817. type DescribeConnectionLoaInput struct {
  1818. _ struct{} `type:"structure"`
  1819. // ID of the connection.
  1820. //
  1821. // Example: dxcon-fg5678gh
  1822. //
  1823. // Default: None
  1824. ConnectionId *string `locationName:"connectionId" type:"string" required:"true"`
  1825. // A standard media type indicating the content type of the LOA-CFA document.
  1826. // Currently, the only supported value is "application/pdf".
  1827. //
  1828. // Default: application/pdf
  1829. LoaContentType *string `locationName:"loaContentType" type:"string" enum:"LoaContentType"`
  1830. // The name of the APN partner or service provider who establishes connectivity
  1831. // on your behalf. If you supply this parameter, the LOA-CFA lists the provider
  1832. // name alongside your company name as the requester of the cross connect.
  1833. //
  1834. // Default: None
  1835. ProviderName *string `locationName:"providerName" type:"string"`
  1836. }
  1837. // String returns the string representation
  1838. func (s DescribeConnectionLoaInput) String() string {
  1839. return awsutil.Prettify(s)
  1840. }
  1841. // GoString returns the string representation
  1842. func (s DescribeConnectionLoaInput) GoString() string {
  1843. return s.String()
  1844. }
  1845. // Validate inspects the fields of the type to determine if they are valid.
  1846. func (s *DescribeConnectionLoaInput) Validate() error {
  1847. invalidParams := request.ErrInvalidParams{Context: "DescribeConnectionLoaInput"}
  1848. if s.ConnectionId == nil {
  1849. invalidParams.Add(request.NewErrParamRequired("ConnectionId"))
  1850. }
  1851. if invalidParams.Len() > 0 {
  1852. return invalidParams
  1853. }
  1854. return nil
  1855. }
  1856. // The response received when DescribeConnectionLoa is called.
  1857. type DescribeConnectionLoaOutput struct {
  1858. _ struct{} `type:"structure"`
  1859. // A structure containing the Letter of Authorization - Connecting Facility
  1860. // Assignment (LOA-CFA) for a connection.
  1861. Loa *Loa `locationName:"loa" type:"structure"`
  1862. }
  1863. // String returns the string representation
  1864. func (s DescribeConnectionLoaOutput) String() string {
  1865. return awsutil.Prettify(s)
  1866. }
  1867. // GoString returns the string representation
  1868. func (s DescribeConnectionLoaOutput) GoString() string {
  1869. return s.String()
  1870. }
  1871. // Container for the parameters to the DescribeConnections operation.
  1872. type DescribeConnectionsInput struct {
  1873. _ struct{} `type:"structure"`
  1874. // ID of the connection.
  1875. //
  1876. // Example: dxcon-fg5678gh
  1877. //
  1878. // Default: None
  1879. ConnectionId *string `locationName:"connectionId" type:"string"`
  1880. }
  1881. // String returns the string representation
  1882. func (s DescribeConnectionsInput) String() string {
  1883. return awsutil.Prettify(s)
  1884. }
  1885. // GoString returns the string representation
  1886. func (s DescribeConnectionsInput) GoString() string {
  1887. return s.String()
  1888. }
  1889. // Container for the parameters to the DescribeConnectionsOnInterconnect operation.
  1890. type DescribeConnectionsOnInterconnectInput struct {
  1891. _ struct{} `type:"structure"`
  1892. // ID of the interconnect on which a list of connection is provisioned.
  1893. //
  1894. // Example: dxcon-abc123
  1895. //
  1896. // Default: None
  1897. InterconnectId *string `locationName:"interconnectId" type:"string" required:"true"`
  1898. }
  1899. // String returns the string representation
  1900. func (s DescribeConnectionsOnInterconnectInput) String() string {
  1901. return awsutil.Prettify(s)
  1902. }
  1903. // GoString returns the string representation
  1904. func (s DescribeConnectionsOnInterconnectInput) GoString() string {
  1905. return s.String()
  1906. }
  1907. // Validate inspects the fields of the type to determine if they are valid.
  1908. func (s *DescribeConnectionsOnInterconnectInput) Validate() error {
  1909. invalidParams := request.ErrInvalidParams{Context: "DescribeConnectionsOnInterconnectInput"}
  1910. if s.InterconnectId == nil {
  1911. invalidParams.Add(request.NewErrParamRequired("InterconnectId"))
  1912. }
  1913. if invalidParams.Len() > 0 {
  1914. return invalidParams
  1915. }
  1916. return nil
  1917. }
  1918. // Container for the parameters to the DescribeInterconnectLoa operation.
  1919. type DescribeInterconnectLoaInput struct {
  1920. _ struct{} `type:"structure"`
  1921. // The ID of the interconnect.
  1922. //
  1923. // Example: dxcon-abc123
  1924. InterconnectId *string `locationName:"interconnectId" type:"string" required:"true"`
  1925. // A standard media type indicating the content type of the LOA-CFA document.
  1926. // Currently, the only supported value is "application/pdf".
  1927. //
  1928. // Default: application/pdf
  1929. LoaContentType *string `locationName:"loaContentType" type:"string" enum:"LoaContentType"`
  1930. // The name of the service provider who establishes connectivity on your behalf.
  1931. // If you supply this parameter, the LOA-CFA lists the provider name alongside
  1932. // your company name as the requester of the cross connect.
  1933. //
  1934. // Default: None
  1935. ProviderName *string `locationName:"providerName" type:"string"`
  1936. }
  1937. // String returns the string representation
  1938. func (s DescribeInterconnectLoaInput) String() string {
  1939. return awsutil.Prettify(s)
  1940. }
  1941. // GoString returns the string representation
  1942. func (s DescribeInterconnectLoaInput) GoString() string {
  1943. return s.String()
  1944. }
  1945. // Validate inspects the fields of the type to determine if they are valid.
  1946. func (s *DescribeInterconnectLoaInput) Validate() error {
  1947. invalidParams := request.ErrInvalidParams{Context: "DescribeInterconnectLoaInput"}
  1948. if s.InterconnectId == nil {
  1949. invalidParams.Add(request.NewErrParamRequired("InterconnectId"))
  1950. }
  1951. if invalidParams.Len() > 0 {
  1952. return invalidParams
  1953. }
  1954. return nil
  1955. }
  1956. // The response received when DescribeInterconnectLoa is called.
  1957. type DescribeInterconnectLoaOutput struct {
  1958. _ struct{} `type:"structure"`
  1959. // A structure containing the Letter of Authorization - Connecting Facility
  1960. // Assignment (LOA-CFA) for a connection.
  1961. Loa *Loa `locationName:"loa" type:"structure"`
  1962. }
  1963. // String returns the string representation
  1964. func (s DescribeInterconnectLoaOutput) String() string {
  1965. return awsutil.Prettify(s)
  1966. }
  1967. // GoString returns the string representation
  1968. func (s DescribeInterconnectLoaOutput) GoString() string {
  1969. return s.String()
  1970. }
  1971. // Container for the parameters to the DescribeInterconnects operation.
  1972. type DescribeInterconnectsInput struct {
  1973. _ struct{} `type:"structure"`
  1974. // The ID of the interconnect.
  1975. //
  1976. // Example: dxcon-abc123
  1977. InterconnectId *string `locationName:"interconnectId" type:"string"`
  1978. }
  1979. // String returns the string representation
  1980. func (s DescribeInterconnectsInput) String() string {
  1981. return awsutil.Prettify(s)
  1982. }
  1983. // GoString returns the string representation
  1984. func (s DescribeInterconnectsInput) GoString() string {
  1985. return s.String()
  1986. }
  1987. // A structure containing a list of interconnects.
  1988. type DescribeInterconnectsOutput struct {
  1989. _ struct{} `type:"structure"`
  1990. // A list of interconnects.
  1991. Interconnects []*Interconnect `locationName:"interconnects" type:"list"`
  1992. }
  1993. // String returns the string representation
  1994. func (s DescribeInterconnectsOutput) String() string {
  1995. return awsutil.Prettify(s)
  1996. }
  1997. // GoString returns the string representation
  1998. func (s DescribeInterconnectsOutput) GoString() string {
  1999. return s.String()
  2000. }
  2001. type DescribeLocationsInput struct {
  2002. _ struct{} `type:"structure"`
  2003. }
  2004. // String returns the string representation
  2005. func (s DescribeLocationsInput) String() string {
  2006. return awsutil.Prettify(s)
  2007. }
  2008. // GoString returns the string representation
  2009. func (s DescribeLocationsInput) GoString() string {
  2010. return s.String()
  2011. }
  2012. // A location is a network facility where AWS Direct Connect routers are available
  2013. // to be connected. Generally, these are colocation hubs where many network
  2014. // providers have equipment, and where cross connects can be delivered. Locations
  2015. // include a name and facility code, and must be provided when creating a connection.
  2016. type DescribeLocationsOutput struct {
  2017. _ struct{} `type:"structure"`
  2018. // A list of colocation hubs where network providers have equipment. Most regions
  2019. // have multiple locations available.
  2020. Locations []*Location `locationName:"locations" type:"list"`
  2021. }
  2022. // String returns the string representation
  2023. func (s DescribeLocationsOutput) String() string {
  2024. return awsutil.Prettify(s)
  2025. }
  2026. // GoString returns the string representation
  2027. func (s DescribeLocationsOutput) GoString() string {
  2028. return s.String()
  2029. }
  2030. type DescribeVirtualGatewaysInput struct {
  2031. _ struct{} `type:"structure"`
  2032. }
  2033. // String returns the string representation
  2034. func (s DescribeVirtualGatewaysInput) String() string {
  2035. return awsutil.Prettify(s)
  2036. }
  2037. // GoString returns the string representation
  2038. func (s DescribeVirtualGatewaysInput) GoString() string {
  2039. return s.String()
  2040. }
  2041. // A structure containing a list of virtual private gateways.
  2042. type DescribeVirtualGatewaysOutput struct {
  2043. _ struct{} `type:"structure"`
  2044. // A list of virtual private gateways.
  2045. VirtualGateways []*VirtualGateway `locationName:"virtualGateways" type:"list"`
  2046. }
  2047. // String returns the string representation
  2048. func (s DescribeVirtualGatewaysOutput) String() string {
  2049. return awsutil.Prettify(s)
  2050. }
  2051. // GoString returns the string representation
  2052. func (s DescribeVirtualGatewaysOutput) GoString() string {
  2053. return s.String()
  2054. }
  2055. // Container for the parameters to the DescribeVirtualInterfaces operation.
  2056. type DescribeVirtualInterfacesInput struct {
  2057. _ struct{} `type:"structure"`
  2058. // ID of the connection.
  2059. //
  2060. // Example: dxcon-fg5678gh
  2061. //
  2062. // Default: None
  2063. ConnectionId *string `locationName:"connectionId" type:"string"`
  2064. // ID of the virtual interface.
  2065. //
  2066. // Example: dxvif-123dfg56
  2067. //
  2068. // Default: None
  2069. VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string"`
  2070. }
  2071. // String returns the string representation
  2072. func (s DescribeVirtualInterfacesInput) String() string {
  2073. return awsutil.Prettify(s)
  2074. }
  2075. // GoString returns the string representation
  2076. func (s DescribeVirtualInterfacesInput) GoString() string {
  2077. return s.String()
  2078. }
  2079. // A structure containing a list of virtual interfaces.
  2080. type DescribeVirtualInterfacesOutput struct {
  2081. _ struct{} `type:"structure"`
  2082. // A list of virtual interfaces.
  2083. VirtualInterfaces []*VirtualInterface `locationName:"virtualInterfaces" type:"list"`
  2084. }
  2085. // String returns the string representation
  2086. func (s DescribeVirtualInterfacesOutput) String() string {
  2087. return awsutil.Prettify(s)
  2088. }
  2089. // GoString returns the string representation
  2090. func (s DescribeVirtualInterfacesOutput) GoString() string {
  2091. return s.String()
  2092. }
  2093. // An interconnect is a connection that can host other connections.
  2094. //
  2095. // Like a standard AWS Direct Connect connection, an interconnect represents
  2096. // the physical connection between an AWS Direct Connect partner's network and
  2097. // a specific Direct Connect location. An AWS Direct Connect partner who owns
  2098. // an interconnect can provision hosted connections on the interconnect for
  2099. // their end customers, thereby providing the end customers with connectivity
  2100. // to AWS services.
  2101. //
  2102. // The resources of the interconnect, including bandwidth and VLAN numbers,
  2103. // are shared by all of the hosted connections on the interconnect, and the
  2104. // owner of the interconnect determines how these resources are assigned.
  2105. type Interconnect struct {
  2106. _ struct{} `type:"structure"`
  2107. // Bandwidth of the connection.
  2108. //
  2109. // Example: 1Gbps
  2110. //
  2111. // Default: None
  2112. Bandwidth *string `locationName:"bandwidth" type:"string"`
  2113. // The ID of the interconnect.
  2114. //
  2115. // Example: dxcon-abc123
  2116. InterconnectId *string `locationName:"interconnectId" type:"string"`
  2117. // The name of the interconnect.
  2118. //
  2119. // Example: "1G Interconnect to AWS"
  2120. InterconnectName *string `locationName:"interconnectName" type:"string"`
  2121. // State of the interconnect.
  2122. //
  2123. // Requested: The initial state of an interconnect. The interconnect stays
  2124. // in the requested state until the Letter of Authorization (LOA) is sent to
  2125. // the customer.
  2126. //
  2127. // Pending>: The interconnect has been approved, and is being initialized.
  2128. //
  2129. // Available: The network link is up, and the interconnect is ready for
  2130. // use.
  2131. //
  2132. // Down: The network link is down.
  2133. //
  2134. // Deleting: The interconnect is in the process of being deleted.
  2135. //
  2136. // Deleted: The interconnect has been deleted.
  2137. InterconnectState *string `locationName:"interconnectState" type:"string" enum:"InterconnectState"`
  2138. // The time of the most recent call to DescribeInterconnectLoa for this Interconnect.
  2139. LoaIssueTime *time.Time `locationName:"loaIssueTime" type:"timestamp" timestampFormat:"unix"`
  2140. // Where the connection is located.
  2141. //
  2142. // Example: EqSV5
  2143. //
  2144. // Default: None
  2145. Location *string `locationName:"location" type:"string"`
  2146. // The AWS region where the connection is located.
  2147. //
  2148. // Example: us-east-1
  2149. //
  2150. // Default: None
  2151. Region *string `locationName:"region" type:"string"`
  2152. }
  2153. // String returns the string representation
  2154. func (s Interconnect) String() string {
  2155. return awsutil.Prettify(s)
  2156. }
  2157. // GoString returns the string representation
  2158. func (s Interconnect) GoString() string {
  2159. return s.String()
  2160. }
  2161. // A structure containing the Letter of Authorization - Connecting Facility
  2162. // Assignment (LOA-CFA) for a connection.
  2163. type Loa struct {
  2164. _ struct{} `type:"structure"`
  2165. // The binary contents of the LOA-CFA document.
  2166. //
  2167. // LoaContent is automatically base64 encoded/decoded by the SDK.
  2168. LoaContent []byte `locationName:"loaContent" type:"blob"`
  2169. // A standard media type indicating the content type of the LOA-CFA document.
  2170. // Currently, the only supported value is "application/pdf".
  2171. //
  2172. // Default: application/pdf
  2173. LoaContentType *string `locationName:"loaContentType" type:"string" enum:"LoaContentType"`
  2174. }
  2175. // String returns the string representation
  2176. func (s Loa) String() string {
  2177. return awsutil.Prettify(s)
  2178. }
  2179. // GoString returns the string representation
  2180. func (s Loa) GoString() string {
  2181. return s.String()
  2182. }
  2183. // An AWS Direct Connect location where connections and interconnects can be
  2184. // requested.
  2185. type Location struct {
  2186. _ struct{} `type:"structure"`
  2187. // The code used to indicate the AWS Direct Connect location.
  2188. LocationCode *string `locationName:"locationCode" type:"string"`
  2189. // The name of the AWS Direct Connect location. The name includes the colocation
  2190. // partner name and the physical site of the lit building.
  2191. LocationName *string `locationName:"locationName" type:"string"`
  2192. }
  2193. // String returns the string representation
  2194. func (s Location) String() string {
  2195. return awsutil.Prettify(s)
  2196. }
  2197. // GoString returns the string representation
  2198. func (s Location) GoString() string {
  2199. return s.String()
  2200. }
  2201. // A structure containing information about a new private virtual interface.
  2202. type NewPrivateVirtualInterface struct {
  2203. _ struct{} `type:"structure"`
  2204. // IP address assigned to the Amazon interface.
  2205. //
  2206. // Example: 192.168.1.1/30
  2207. AmazonAddress *string `locationName:"amazonAddress" type:"string"`
  2208. // Autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
  2209. //
  2210. // Example: 65000
  2211. Asn *int64 `locationName:"asn" type:"integer" required:"true"`
  2212. // Authentication key for BGP configuration.
  2213. //
  2214. // Example: asdf34example
  2215. AuthKey *string `locationName:"authKey" type:"string"`
  2216. // IP address assigned to the customer interface.
  2217. //
  2218. // Example: 192.168.1.2/30
  2219. CustomerAddress *string `locationName:"customerAddress" type:"string"`
  2220. // The ID of the virtual private gateway to a VPC. This only applies to private
  2221. // virtual interfaces.
  2222. //
  2223. // Example: vgw-123er56
  2224. VirtualGatewayId *string `locationName:"virtualGatewayId" type:"string" required:"true"`
  2225. // The name of the virtual interface assigned by the customer.
  2226. //
  2227. // Example: "My VPC"
  2228. VirtualInterfaceName *string `locationName:"virtualInterfaceName" type:"string" required:"true"`
  2229. // The VLAN ID.
  2230. //
  2231. // Example: 101
  2232. Vlan *int64 `locationName:"vlan" type:"integer" required:"true"`
  2233. }
  2234. // String returns the string representation
  2235. func (s NewPrivateVirtualInterface) String() string {
  2236. return awsutil.Prettify(s)
  2237. }
  2238. // GoString returns the string representation
  2239. func (s NewPrivateVirtualInterface) GoString() string {
  2240. return s.String()
  2241. }
  2242. // Validate inspects the fields of the type to determine if they are valid.
  2243. func (s *NewPrivateVirtualInterface) Validate() error {
  2244. invalidParams := request.ErrInvalidParams{Context: "NewPrivateVirtualInterface"}
  2245. if s.Asn == nil {
  2246. invalidParams.Add(request.NewErrParamRequired("Asn"))
  2247. }
  2248. if s.VirtualGatewayId == nil {
  2249. invalidParams.Add(request.NewErrParamRequired("VirtualGatewayId"))
  2250. }
  2251. if s.VirtualInterfaceName == nil {
  2252. invalidParams.Add(request.NewErrParamRequired("VirtualInterfaceName"))
  2253. }
  2254. if s.Vlan == nil {
  2255. invalidParams.Add(request.NewErrParamRequired("Vlan"))
  2256. }
  2257. if invalidParams.Len() > 0 {
  2258. return invalidParams
  2259. }
  2260. return nil
  2261. }
  2262. // A structure containing information about a private virtual interface that
  2263. // will be provisioned on a connection.
  2264. type NewPrivateVirtualInterfaceAllocation struct {
  2265. _ struct{} `type:"structure"`
  2266. // IP address assigned to the Amazon interface.
  2267. //
  2268. // Example: 192.168.1.1/30
  2269. AmazonAddress *string `locationName:"amazonAddress" type:"string"`
  2270. // Autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
  2271. //
  2272. // Example: 65000
  2273. Asn *int64 `locationName:"asn" type:"integer" required:"true"`
  2274. // Authentication key for BGP configuration.
  2275. //
  2276. // Example: asdf34example
  2277. AuthKey *string `locationName:"authKey" type:"string"`
  2278. // IP address assigned to the customer interface.
  2279. //
  2280. // Example: 192.168.1.2/30
  2281. CustomerAddress *string `locationName:"customerAddress" type:"string"`
  2282. // The name of the virtual interface assigned by the customer.
  2283. //
  2284. // Example: "My VPC"
  2285. VirtualInterfaceName *string `locationName:"virtualInterfaceName" type:"string" required:"true"`
  2286. // The VLAN ID.
  2287. //
  2288. // Example: 101
  2289. Vlan *int64 `locationName:"vlan" type:"integer" required:"true"`
  2290. }
  2291. // String returns the string representation
  2292. func (s NewPrivateVirtualInterfaceAllocation) String() string {
  2293. return awsutil.Prettify(s)
  2294. }
  2295. // GoString returns the string representation
  2296. func (s NewPrivateVirtualInterfaceAllocation) GoString() string {
  2297. return s.String()
  2298. }
  2299. // Validate inspects the fields of the type to determine if they are valid.
  2300. func (s *NewPrivateVirtualInterfaceAllocation) Validate() error {
  2301. invalidParams := request.ErrInvalidParams{Context: "NewPrivateVirtualInterfaceAllocation"}
  2302. if s.Asn == nil {
  2303. invalidParams.Add(request.NewErrParamRequired("Asn"))
  2304. }
  2305. if s.VirtualInterfaceName == nil {
  2306. invalidParams.Add(request.NewErrParamRequired("VirtualInterfaceName"))
  2307. }
  2308. if s.Vlan == nil {
  2309. invalidParams.Add(request.NewErrParamRequired("Vlan"))
  2310. }
  2311. if invalidParams.Len() > 0 {
  2312. return invalidParams
  2313. }
  2314. return nil
  2315. }
  2316. // A structure containing information about a new public virtual interface.
  2317. type NewPublicVirtualInterface struct {
  2318. _ struct{} `type:"structure"`
  2319. // IP address assigned to the Amazon interface.
  2320. //
  2321. // Example: 192.168.1.1/30
  2322. AmazonAddress *string `locationName:"amazonAddress" type:"string" required:"true"`
  2323. // Autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
  2324. //
  2325. // Example: 65000
  2326. Asn *int64 `locationName:"asn" type:"integer" required:"true"`
  2327. // Authentication key for BGP configuration.
  2328. //
  2329. // Example: asdf34example
  2330. AuthKey *string `locationName:"authKey" type:"string"`
  2331. // IP address assigned to the customer interface.
  2332. //
  2333. // Example: 192.168.1.2/30
  2334. CustomerAddress *string `locationName:"customerAddress" type:"string" required:"true"`
  2335. // A list of routes to be advertised to the AWS network in this region (public
  2336. // virtual interface).
  2337. RouteFilterPrefixes []*RouteFilterPrefix `locationName:"routeFilterPrefixes" type:"list" required:"true"`
  2338. // The name of the virtual interface assigned by the customer.
  2339. //
  2340. // Example: "My VPC"
  2341. VirtualInterfaceName *string `locationName:"virtualInterfaceName" type:"string" required:"true"`
  2342. // The VLAN ID.
  2343. //
  2344. // Example: 101
  2345. Vlan *int64 `locationName:"vlan" type:"integer" required:"true"`
  2346. }
  2347. // String returns the string representation
  2348. func (s NewPublicVirtualInterface) String() string {
  2349. return awsutil.Prettify(s)
  2350. }
  2351. // GoString returns the string representation
  2352. func (s NewPublicVirtualInterface) GoString() string {
  2353. return s.String()
  2354. }
  2355. // Validate inspects the fields of the type to determine if they are valid.
  2356. func (s *NewPublicVirtualInterface) Validate() error {
  2357. invalidParams := request.ErrInvalidParams{Context: "NewPublicVirtualInterface"}
  2358. if s.AmazonAddress == nil {
  2359. invalidParams.Add(request.NewErrParamRequired("AmazonAddress"))
  2360. }
  2361. if s.Asn == nil {
  2362. invalidParams.Add(request.NewErrParamRequired("Asn"))
  2363. }
  2364. if s.CustomerAddress == nil {
  2365. invalidParams.Add(request.NewErrParamRequired("CustomerAddress"))
  2366. }
  2367. if s.RouteFilterPrefixes == nil {
  2368. invalidParams.Add(request.NewErrParamRequired("RouteFilterPrefixes"))
  2369. }
  2370. if s.VirtualInterfaceName == nil {
  2371. invalidParams.Add(request.NewErrParamRequired("VirtualInterfaceName"))
  2372. }
  2373. if s.Vlan == nil {
  2374. invalidParams.Add(request.NewErrParamRequired("Vlan"))
  2375. }
  2376. if invalidParams.Len() > 0 {
  2377. return invalidParams
  2378. }
  2379. return nil
  2380. }
  2381. // A structure containing information about a public virtual interface that
  2382. // will be provisioned on a connection.
  2383. type NewPublicVirtualInterfaceAllocation struct {
  2384. _ struct{} `type:"structure"`
  2385. // IP address assigned to the Amazon interface.
  2386. //
  2387. // Example: 192.168.1.1/30
  2388. AmazonAddress *string `locationName:"amazonAddress" type:"string" required:"true"`
  2389. // Autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
  2390. //
  2391. // Example: 65000
  2392. Asn *int64 `locationName:"asn" type:"integer" required:"true"`
  2393. // Authentication key for BGP configuration.
  2394. //
  2395. // Example: asdf34example
  2396. AuthKey *string `locationName:"authKey" type:"string"`
  2397. // IP address assigned to the customer interface.
  2398. //
  2399. // Example: 192.168.1.2/30
  2400. CustomerAddress *string `locationName:"customerAddress" type:"string" required:"true"`
  2401. // A list of routes to be advertised to the AWS network in this region (public
  2402. // virtual interface).
  2403. RouteFilterPrefixes []*RouteFilterPrefix `locationName:"routeFilterPrefixes" type:"list" required:"true"`
  2404. // The name of the virtual interface assigned by the customer.
  2405. //
  2406. // Example: "My VPC"
  2407. VirtualInterfaceName *string `locationName:"virtualInterfaceName" type:"string" required:"true"`
  2408. // The VLAN ID.
  2409. //
  2410. // Example: 101
  2411. Vlan *int64 `locationName:"vlan" type:"integer" required:"true"`
  2412. }
  2413. // String returns the string representation
  2414. func (s NewPublicVirtualInterfaceAllocation) String() string {
  2415. return awsutil.Prettify(s)
  2416. }
  2417. // GoString returns the string representation
  2418. func (s NewPublicVirtualInterfaceAllocation) GoString() string {
  2419. return s.String()
  2420. }
  2421. // Validate inspects the fields of the type to determine if they are valid.
  2422. func (s *NewPublicVirtualInterfaceAllocation) Validate() error {
  2423. invalidParams := request.ErrInvalidParams{Context: "NewPublicVirtualInterfaceAllocation"}
  2424. if s.AmazonAddress == nil {
  2425. invalidParams.Add(request.NewErrParamRequired("AmazonAddress"))
  2426. }
  2427. if s.Asn == nil {
  2428. invalidParams.Add(request.NewErrParamRequired("Asn"))
  2429. }
  2430. if s.CustomerAddress == nil {
  2431. invalidParams.Add(request.NewErrParamRequired("CustomerAddress"))
  2432. }
  2433. if s.RouteFilterPrefixes == nil {
  2434. invalidParams.Add(request.NewErrParamRequired("RouteFilterPrefixes"))
  2435. }
  2436. if s.VirtualInterfaceName == nil {
  2437. invalidParams.Add(request.NewErrParamRequired("VirtualInterfaceName"))
  2438. }
  2439. if s.Vlan == nil {
  2440. invalidParams.Add(request.NewErrParamRequired("Vlan"))
  2441. }
  2442. if invalidParams.Len() > 0 {
  2443. return invalidParams
  2444. }
  2445. return nil
  2446. }
  2447. // A route filter prefix that the customer can advertise through Border Gateway
  2448. // Protocol (BGP) over a public virtual interface.
  2449. type RouteFilterPrefix struct {
  2450. _ struct{} `type:"structure"`
  2451. // CIDR notation for the advertised route. Multiple routes are separated by
  2452. // commas.
  2453. //
  2454. // Example: 10.10.10.0/24,10.10.11.0/24
  2455. Cidr *string `locationName:"cidr" type:"string"`
  2456. }
  2457. // String returns the string representation
  2458. func (s RouteFilterPrefix) String() string {
  2459. return awsutil.Prettify(s)
  2460. }
  2461. // GoString returns the string representation
  2462. func (s RouteFilterPrefix) GoString() string {
  2463. return s.String()
  2464. }
  2465. // You can create one or more AWS Direct Connect private virtual interfaces
  2466. // linking to your virtual private gateway.
  2467. //
  2468. // Virtual private gateways can be managed using the Amazon Virtual Private
  2469. // Cloud (Amazon VPC) console or the Amazon EC2 CreateVpnGateway action (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-CreateVpnGateway.html).
  2470. type VirtualGateway struct {
  2471. _ struct{} `type:"structure"`
  2472. // The ID of the virtual private gateway to a VPC. This only applies to private
  2473. // virtual interfaces.
  2474. //
  2475. // Example: vgw-123er56
  2476. VirtualGatewayId *string `locationName:"virtualGatewayId" type:"string"`
  2477. // State of the virtual private gateway.
  2478. //
  2479. // Pending: This is the initial state after calling CreateVpnGateway.
  2480. //
  2481. // Available: Ready for use by a private virtual interface.
  2482. //
  2483. // Deleting: This is the initial state after calling DeleteVpnGateway.
  2484. //
  2485. // Deleted: In this state, a private virtual interface is unable to send
  2486. // traffic over this gateway.
  2487. VirtualGatewayState *string `locationName:"virtualGatewayState" type:"string"`
  2488. }
  2489. // String returns the string representation
  2490. func (s VirtualGateway) String() string {
  2491. return awsutil.Prettify(s)
  2492. }
  2493. // GoString returns the string representation
  2494. func (s VirtualGateway) GoString() string {
  2495. return s.String()
  2496. }
  2497. // A virtual interface (VLAN) transmits the traffic between the AWS Direct Connect
  2498. // location and the customer.
  2499. type VirtualInterface struct {
  2500. _ struct{} `type:"structure"`
  2501. // IP address assigned to the Amazon interface.
  2502. //
  2503. // Example: 192.168.1.1/30
  2504. AmazonAddress *string `locationName:"amazonAddress" type:"string"`
  2505. // Autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
  2506. //
  2507. // Example: 65000
  2508. Asn *int64 `locationName:"asn" type:"integer"`
  2509. // Authentication key for BGP configuration.
  2510. //
  2511. // Example: asdf34example
  2512. AuthKey *string `locationName:"authKey" type:"string"`
  2513. // ID of the connection.
  2514. //
  2515. // Example: dxcon-fg5678gh
  2516. //
  2517. // Default: None
  2518. ConnectionId *string `locationName:"connectionId" type:"string"`
  2519. // IP address assigned to the customer interface.
  2520. //
  2521. // Example: 192.168.1.2/30
  2522. CustomerAddress *string `locationName:"customerAddress" type:"string"`
  2523. // Information for generating the customer router configuration.
  2524. CustomerRouterConfig *string `locationName:"customerRouterConfig" type:"string"`
  2525. // Where the connection is located.
  2526. //
  2527. // Example: EqSV5
  2528. //
  2529. // Default: None
  2530. Location *string `locationName:"location" type:"string"`
  2531. // The AWS account that will own the new virtual interface.
  2532. OwnerAccount *string `locationName:"ownerAccount" type:"string"`
  2533. // A list of routes to be advertised to the AWS network in this region (public
  2534. // virtual interface).
  2535. RouteFilterPrefixes []*RouteFilterPrefix `locationName:"routeFilterPrefixes" type:"list"`
  2536. // The ID of the virtual private gateway to a VPC. This only applies to private
  2537. // virtual interfaces.
  2538. //
  2539. // Example: vgw-123er56
  2540. VirtualGatewayId *string `locationName:"virtualGatewayId" type:"string"`
  2541. // ID of the virtual interface.
  2542. //
  2543. // Example: dxvif-123dfg56
  2544. //
  2545. // Default: None
  2546. VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string"`
  2547. // The name of the virtual interface assigned by the customer.
  2548. //
  2549. // Example: "My VPC"
  2550. VirtualInterfaceName *string `locationName:"virtualInterfaceName" type:"string"`
  2551. // State of the virtual interface.
  2552. //
  2553. // Confirming: The creation of the virtual interface is pending confirmation
  2554. // from the virtual interface owner. If the owner of the virtual interface is
  2555. // different from the owner of the connection on which it is provisioned, then
  2556. // the virtual interface will remain in this state until it is confirmed by
  2557. // the virtual interface owner.
  2558. //
  2559. // Verifying: This state only applies to public virtual interfaces. Each
  2560. // public virtual interface needs validation before the virtual interface can
  2561. // be created.
  2562. //
  2563. // Pending: A virtual interface is in this state from the time that it is
  2564. // created until the virtual interface is ready to forward traffic.
  2565. //
  2566. // Available: A virtual interface that is able to forward traffic.
  2567. //
  2568. // Down: A virtual interface that is BGP down.
  2569. //
  2570. // Deleting: A virtual interface is in this state immediately after calling
  2571. // DeleteVirtualInterface until it can no longer forward traffic.
  2572. //
  2573. // Deleted: A virtual interface that cannot forward traffic.
  2574. //
  2575. // Rejected: The virtual interface owner has declined creation of the virtual
  2576. // interface. If a virtual interface in the 'Confirming' state is deleted by
  2577. // the virtual interface owner, the virtual interface will enter the 'Rejected'
  2578. // state.
  2579. VirtualInterfaceState *string `locationName:"virtualInterfaceState" type:"string" enum:"VirtualInterfaceState"`
  2580. // The type of virtual interface.
  2581. //
  2582. // Example: private (Amazon VPC) or public (Amazon S3, Amazon DynamoDB, and
  2583. // so on.)
  2584. VirtualInterfaceType *string `locationName:"virtualInterfaceType" type:"string"`
  2585. // The VLAN ID.
  2586. //
  2587. // Example: 101
  2588. Vlan *int64 `locationName:"vlan" type:"integer"`
  2589. }
  2590. // String returns the string representation
  2591. func (s VirtualInterface) String() string {
  2592. return awsutil.Prettify(s)
  2593. }
  2594. // GoString returns the string representation
  2595. func (s VirtualInterface) GoString() string {
  2596. return s.String()
  2597. }
  2598. // State of the connection.
  2599. //
  2600. // Ordering: The initial state of a hosted connection provisioned on an
  2601. // interconnect. The connection stays in the ordering state until the owner
  2602. // of the hosted connection confirms or declines the connection order.
  2603. //
  2604. // Requested: The initial state of a standard connection. The connection
  2605. // stays in the requested state until the Letter of Authorization (LOA) is sent
  2606. // to the customer.
  2607. //
  2608. // Pending: The connection has been approved, and is being initialized.
  2609. //
  2610. // Available: The network link is up, and the connection is ready for use.
  2611. //
  2612. // Down: The network link is down.
  2613. //
  2614. // Deleting: The connection is in the process of being deleted.
  2615. //
  2616. // Deleted: The connection has been deleted.
  2617. //
  2618. // Rejected: A hosted connection in the 'Ordering' state will enter the
  2619. // 'Rejected' state if it is deleted by the end customer.
  2620. const (
  2621. // @enum ConnectionState
  2622. ConnectionStateOrdering = "ordering"
  2623. // @enum ConnectionState
  2624. ConnectionStateRequested = "requested"
  2625. // @enum ConnectionState
  2626. ConnectionStatePending = "pending"
  2627. // @enum ConnectionState
  2628. ConnectionStateAvailable = "available"
  2629. // @enum ConnectionState
  2630. ConnectionStateDown = "down"
  2631. // @enum ConnectionState
  2632. ConnectionStateDeleting = "deleting"
  2633. // @enum ConnectionState
  2634. ConnectionStateDeleted = "deleted"
  2635. // @enum ConnectionState
  2636. ConnectionStateRejected = "rejected"
  2637. )
  2638. // State of the interconnect.
  2639. //
  2640. // Requested: The initial state of an interconnect. The interconnect stays
  2641. // in the requested state until the Letter of Authorization (LOA) is sent to
  2642. // the customer.
  2643. //
  2644. // Pending>: The interconnect has been approved, and is being initialized.
  2645. //
  2646. // Available: The network link is up, and the interconnect is ready for
  2647. // use.
  2648. //
  2649. // Down: The network link is down.
  2650. //
  2651. // Deleting: The interconnect is in the process of being deleted.
  2652. //
  2653. // Deleted: The interconnect has been deleted.
  2654. const (
  2655. // @enum InterconnectState
  2656. InterconnectStateRequested = "requested"
  2657. // @enum InterconnectState
  2658. InterconnectStatePending = "pending"
  2659. // @enum InterconnectState
  2660. InterconnectStateAvailable = "available"
  2661. // @enum InterconnectState
  2662. InterconnectStateDown = "down"
  2663. // @enum InterconnectState
  2664. InterconnectStateDeleting = "deleting"
  2665. // @enum InterconnectState
  2666. InterconnectStateDeleted = "deleted"
  2667. )
  2668. // A standard media type indicating the content type of the LOA-CFA document.
  2669. // Currently, the only supported value is "application/pdf".
  2670. //
  2671. // Default: application/pdf
  2672. const (
  2673. // @enum LoaContentType
  2674. LoaContentTypeApplicationPdf = "application/pdf"
  2675. )
  2676. // State of the virtual interface.
  2677. //
  2678. // Confirming: The creation of the virtual interface is pending confirmation
  2679. // from the virtual interface owner. If the owner of the virtual interface is
  2680. // different from the owner of the connection on which it is provisioned, then
  2681. // the virtual interface will remain in this state until it is confirmed by
  2682. // the virtual interface owner.
  2683. //
  2684. // Verifying: This state only applies to public virtual interfaces. Each
  2685. // public virtual interface needs validation before the virtual interface can
  2686. // be created.
  2687. //
  2688. // Pending: A virtual interface is in this state from the time that it is
  2689. // created until the virtual interface is ready to forward traffic.
  2690. //
  2691. // Available: A virtual interface that is able to forward traffic.
  2692. //
  2693. // Down: A virtual interface that is BGP down.
  2694. //
  2695. // Deleting: A virtual interface is in this state immediately after calling
  2696. // DeleteVirtualInterface until it can no longer forward traffic.
  2697. //
  2698. // Deleted: A virtual interface that cannot forward traffic.
  2699. //
  2700. // Rejected: The virtual interface owner has declined creation of the virtual
  2701. // interface. If a virtual interface in the 'Confirming' state is deleted by
  2702. // the virtual interface owner, the virtual interface will enter the 'Rejected'
  2703. // state.
  2704. const (
  2705. // @enum VirtualInterfaceState
  2706. VirtualInterfaceStateConfirming = "confirming"
  2707. // @enum VirtualInterfaceState
  2708. VirtualInterfaceStateVerifying = "verifying"
  2709. // @enum VirtualInterfaceState
  2710. VirtualInterfaceStatePending = "pending"
  2711. // @enum VirtualInterfaceState
  2712. VirtualInterfaceStateAvailable = "available"
  2713. // @enum VirtualInterfaceState
  2714. VirtualInterfaceStateDown = "down"
  2715. // @enum VirtualInterfaceState
  2716. VirtualInterfaceStateDeleting = "deleting"
  2717. // @enum VirtualInterfaceState
  2718. VirtualInterfaceStateDeleted = "deleted"
  2719. // @enum VirtualInterfaceState
  2720. VirtualInterfaceStateRejected = "rejected"
  2721. )