api.go 124 KB

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