api.go 69 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099
  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. "github.com/aws/aws-sdk-go/aws/awsutil"
  6. "github.com/aws/aws-sdk-go/aws/request"
  7. )
  8. const opAllocateConnectionOnInterconnect = "AllocateConnectionOnInterconnect"
  9. // AllocateConnectionOnInterconnectRequest generates a request for the AllocateConnectionOnInterconnect operation.
  10. func (c *DirectConnect) AllocateConnectionOnInterconnectRequest(input *AllocateConnectionOnInterconnectInput) (req *request.Request, output *Connection) {
  11. op := &request.Operation{
  12. Name: opAllocateConnectionOnInterconnect,
  13. HTTPMethod: "POST",
  14. HTTPPath: "/",
  15. }
  16. if input == nil {
  17. input = &AllocateConnectionOnInterconnectInput{}
  18. }
  19. req = c.newRequest(op, input, output)
  20. output = &Connection{}
  21. req.Data = output
  22. return
  23. }
  24. // Creates a hosted connection on an interconnect.
  25. //
  26. // Allocates a VLAN number and a specified amount of bandwidth for use by a
  27. // hosted connection on the given interconnect.
  28. func (c *DirectConnect) AllocateConnectionOnInterconnect(input *AllocateConnectionOnInterconnectInput) (*Connection, error) {
  29. req, out := c.AllocateConnectionOnInterconnectRequest(input)
  30. err := req.Send()
  31. return out, err
  32. }
  33. const opAllocatePrivateVirtualInterface = "AllocatePrivateVirtualInterface"
  34. // AllocatePrivateVirtualInterfaceRequest generates a request for the AllocatePrivateVirtualInterface operation.
  35. func (c *DirectConnect) AllocatePrivateVirtualInterfaceRequest(input *AllocatePrivateVirtualInterfaceInput) (req *request.Request, output *VirtualInterface) {
  36. op := &request.Operation{
  37. Name: opAllocatePrivateVirtualInterface,
  38. HTTPMethod: "POST",
  39. HTTPPath: "/",
  40. }
  41. if input == nil {
  42. input = &AllocatePrivateVirtualInterfaceInput{}
  43. }
  44. req = c.newRequest(op, input, output)
  45. output = &VirtualInterface{}
  46. req.Data = output
  47. return
  48. }
  49. // Provisions a private virtual interface to be owned by a different customer.
  50. //
  51. // The owner of a connection calls this function to provision a private virtual
  52. // interface which will be owned by another AWS customer.
  53. //
  54. // Virtual interfaces created using this function must be confirmed by the
  55. // virtual interface owner by calling ConfirmPrivateVirtualInterface. Until
  56. // this step has been completed, the virtual interface will be in 'Confirming'
  57. // state, and will not be available for handling traffic.
  58. func (c *DirectConnect) AllocatePrivateVirtualInterface(input *AllocatePrivateVirtualInterfaceInput) (*VirtualInterface, error) {
  59. req, out := c.AllocatePrivateVirtualInterfaceRequest(input)
  60. err := req.Send()
  61. return out, err
  62. }
  63. const opAllocatePublicVirtualInterface = "AllocatePublicVirtualInterface"
  64. // AllocatePublicVirtualInterfaceRequest generates a request for the AllocatePublicVirtualInterface operation.
  65. func (c *DirectConnect) AllocatePublicVirtualInterfaceRequest(input *AllocatePublicVirtualInterfaceInput) (req *request.Request, output *VirtualInterface) {
  66. op := &request.Operation{
  67. Name: opAllocatePublicVirtualInterface,
  68. HTTPMethod: "POST",
  69. HTTPPath: "/",
  70. }
  71. if input == nil {
  72. input = &AllocatePublicVirtualInterfaceInput{}
  73. }
  74. req = c.newRequest(op, input, output)
  75. output = &VirtualInterface{}
  76. req.Data = output
  77. return
  78. }
  79. // Provisions a public virtual interface to be owned by a different customer.
  80. //
  81. // The owner of a connection calls this function to provision a public virtual
  82. // interface which will be owned by another AWS customer.
  83. //
  84. // Virtual interfaces created using this function must be confirmed by the
  85. // virtual interface owner by calling ConfirmPublicVirtualInterface. Until this
  86. // step has been completed, the virtual interface will be in 'Confirming' state,
  87. // and will not be available for handling traffic.
  88. func (c *DirectConnect) AllocatePublicVirtualInterface(input *AllocatePublicVirtualInterfaceInput) (*VirtualInterface, error) {
  89. req, out := c.AllocatePublicVirtualInterfaceRequest(input)
  90. err := req.Send()
  91. return out, err
  92. }
  93. const opConfirmConnection = "ConfirmConnection"
  94. // ConfirmConnectionRequest generates a request for the ConfirmConnection operation.
  95. func (c *DirectConnect) ConfirmConnectionRequest(input *ConfirmConnectionInput) (req *request.Request, output *ConfirmConnectionOutput) {
  96. op := &request.Operation{
  97. Name: opConfirmConnection,
  98. HTTPMethod: "POST",
  99. HTTPPath: "/",
  100. }
  101. if input == nil {
  102. input = &ConfirmConnectionInput{}
  103. }
  104. req = c.newRequest(op, input, output)
  105. output = &ConfirmConnectionOutput{}
  106. req.Data = output
  107. return
  108. }
  109. // Confirm the creation of a hosted connection on an interconnect.
  110. //
  111. // Upon creation, the hosted connection is initially in the 'Ordering' state,
  112. // and will remain in this state until the owner calls ConfirmConnection to
  113. // confirm creation of the hosted connection.
  114. func (c *DirectConnect) ConfirmConnection(input *ConfirmConnectionInput) (*ConfirmConnectionOutput, error) {
  115. req, out := c.ConfirmConnectionRequest(input)
  116. err := req.Send()
  117. return out, err
  118. }
  119. const opConfirmPrivateVirtualInterface = "ConfirmPrivateVirtualInterface"
  120. // ConfirmPrivateVirtualInterfaceRequest generates a request for the ConfirmPrivateVirtualInterface operation.
  121. func (c *DirectConnect) ConfirmPrivateVirtualInterfaceRequest(input *ConfirmPrivateVirtualInterfaceInput) (req *request.Request, output *ConfirmPrivateVirtualInterfaceOutput) {
  122. op := &request.Operation{
  123. Name: opConfirmPrivateVirtualInterface,
  124. HTTPMethod: "POST",
  125. HTTPPath: "/",
  126. }
  127. if input == nil {
  128. input = &ConfirmPrivateVirtualInterfaceInput{}
  129. }
  130. req = c.newRequest(op, input, output)
  131. output = &ConfirmPrivateVirtualInterfaceOutput{}
  132. req.Data = output
  133. return
  134. }
  135. // Accept ownership of a private virtual interface created by another customer.
  136. //
  137. // After the virtual interface owner calls this function, the virtual interface
  138. // will be created and attached to the given virtual private gateway, and will
  139. // be available for handling traffic.
  140. func (c *DirectConnect) ConfirmPrivateVirtualInterface(input *ConfirmPrivateVirtualInterfaceInput) (*ConfirmPrivateVirtualInterfaceOutput, error) {
  141. req, out := c.ConfirmPrivateVirtualInterfaceRequest(input)
  142. err := req.Send()
  143. return out, err
  144. }
  145. const opConfirmPublicVirtualInterface = "ConfirmPublicVirtualInterface"
  146. // ConfirmPublicVirtualInterfaceRequest generates a request for the ConfirmPublicVirtualInterface operation.
  147. func (c *DirectConnect) ConfirmPublicVirtualInterfaceRequest(input *ConfirmPublicVirtualInterfaceInput) (req *request.Request, output *ConfirmPublicVirtualInterfaceOutput) {
  148. op := &request.Operation{
  149. Name: opConfirmPublicVirtualInterface,
  150. HTTPMethod: "POST",
  151. HTTPPath: "/",
  152. }
  153. if input == nil {
  154. input = &ConfirmPublicVirtualInterfaceInput{}
  155. }
  156. req = c.newRequest(op, input, output)
  157. output = &ConfirmPublicVirtualInterfaceOutput{}
  158. req.Data = output
  159. return
  160. }
  161. // Accept ownership of a public virtual interface created by another customer.
  162. //
  163. // After the virtual interface owner calls this function, the specified virtual
  164. // interface will be created and made available for handling traffic.
  165. func (c *DirectConnect) ConfirmPublicVirtualInterface(input *ConfirmPublicVirtualInterfaceInput) (*ConfirmPublicVirtualInterfaceOutput, error) {
  166. req, out := c.ConfirmPublicVirtualInterfaceRequest(input)
  167. err := req.Send()
  168. return out, err
  169. }
  170. const opCreateConnection = "CreateConnection"
  171. // CreateConnectionRequest generates a request for the CreateConnection operation.
  172. func (c *DirectConnect) CreateConnectionRequest(input *CreateConnectionInput) (req *request.Request, output *Connection) {
  173. op := &request.Operation{
  174. Name: opCreateConnection,
  175. HTTPMethod: "POST",
  176. HTTPPath: "/",
  177. }
  178. if input == nil {
  179. input = &CreateConnectionInput{}
  180. }
  181. req = c.newRequest(op, input, output)
  182. output = &Connection{}
  183. req.Data = output
  184. return
  185. }
  186. // Creates a new connection between the customer network and a specific AWS
  187. // Direct Connect location.
  188. //
  189. // A connection links your internal network to an AWS Direct Connect location
  190. // over a standard 1 gigabit or 10 gigabit Ethernet fiber-optic cable. One end
  191. // of the cable is connected to your router, the other to an AWS Direct Connect
  192. // router. An AWS Direct Connect location provides access to Amazon Web Services
  193. // in the region it is associated with. You can establish connections with AWS
  194. // Direct Connect locations in multiple regions, but a connection in one region
  195. // does not provide connectivity to other regions.
  196. func (c *DirectConnect) CreateConnection(input *CreateConnectionInput) (*Connection, error) {
  197. req, out := c.CreateConnectionRequest(input)
  198. err := req.Send()
  199. return out, err
  200. }
  201. const opCreateInterconnect = "CreateInterconnect"
  202. // CreateInterconnectRequest generates a request for the CreateInterconnect operation.
  203. func (c *DirectConnect) CreateInterconnectRequest(input *CreateInterconnectInput) (req *request.Request, output *Interconnect) {
  204. op := &request.Operation{
  205. Name: opCreateInterconnect,
  206. HTTPMethod: "POST",
  207. HTTPPath: "/",
  208. }
  209. if input == nil {
  210. input = &CreateInterconnectInput{}
  211. }
  212. req = c.newRequest(op, input, output)
  213. output = &Interconnect{}
  214. req.Data = output
  215. return
  216. }
  217. // Creates a new interconnect between a AWS Direct Connect partner's network
  218. // and a specific AWS Direct Connect location.
  219. //
  220. // An interconnect is a connection which is capable of hosting other connections.
  221. // The AWS Direct Connect partner can use an interconnect to provide sub-1Gbps
  222. // AWS Direct Connect service to tier 2 customers who do not have their own
  223. // connections. Like a standard connection, an interconnect links the AWS Direct
  224. // Connect partner's network to an AWS Direct Connect location over a standard
  225. // 1 Gbps or 10 Gbps Ethernet fiber-optic cable. One end is connected to the
  226. // partner's router, the other to an AWS Direct Connect router.
  227. //
  228. // For each end customer, the AWS Direct Connect partner provisions a connection
  229. // on their interconnect by calling AllocateConnectionOnInterconnect. The end
  230. // customer can then connect to AWS resources by creating a virtual interface
  231. // on their connection, using the VLAN assigned to them by the AWS Direct Connect
  232. // partner.
  233. func (c *DirectConnect) CreateInterconnect(input *CreateInterconnectInput) (*Interconnect, error) {
  234. req, out := c.CreateInterconnectRequest(input)
  235. err := req.Send()
  236. return out, err
  237. }
  238. const opCreatePrivateVirtualInterface = "CreatePrivateVirtualInterface"
  239. // CreatePrivateVirtualInterfaceRequest generates a request for the CreatePrivateVirtualInterface operation.
  240. func (c *DirectConnect) CreatePrivateVirtualInterfaceRequest(input *CreatePrivateVirtualInterfaceInput) (req *request.Request, output *VirtualInterface) {
  241. op := &request.Operation{
  242. Name: opCreatePrivateVirtualInterface,
  243. HTTPMethod: "POST",
  244. HTTPPath: "/",
  245. }
  246. if input == nil {
  247. input = &CreatePrivateVirtualInterfaceInput{}
  248. }
  249. req = c.newRequest(op, input, output)
  250. output = &VirtualInterface{}
  251. req.Data = output
  252. return
  253. }
  254. // Creates a new private virtual interface. A virtual interface is the VLAN
  255. // that transports AWS Direct Connect traffic. A private virtual interface supports
  256. // sending traffic to a single virtual private cloud (VPC).
  257. func (c *DirectConnect) CreatePrivateVirtualInterface(input *CreatePrivateVirtualInterfaceInput) (*VirtualInterface, error) {
  258. req, out := c.CreatePrivateVirtualInterfaceRequest(input)
  259. err := req.Send()
  260. return out, err
  261. }
  262. const opCreatePublicVirtualInterface = "CreatePublicVirtualInterface"
  263. // CreatePublicVirtualInterfaceRequest generates a request for the CreatePublicVirtualInterface operation.
  264. func (c *DirectConnect) CreatePublicVirtualInterfaceRequest(input *CreatePublicVirtualInterfaceInput) (req *request.Request, output *VirtualInterface) {
  265. op := &request.Operation{
  266. Name: opCreatePublicVirtualInterface,
  267. HTTPMethod: "POST",
  268. HTTPPath: "/",
  269. }
  270. if input == nil {
  271. input = &CreatePublicVirtualInterfaceInput{}
  272. }
  273. req = c.newRequest(op, input, output)
  274. output = &VirtualInterface{}
  275. req.Data = output
  276. return
  277. }
  278. // Creates a new public virtual interface. A virtual interface is the VLAN that
  279. // transports AWS Direct Connect traffic. A public virtual interface supports
  280. // sending traffic to public services of AWS such as Amazon Simple Storage Service
  281. // (Amazon S3).
  282. func (c *DirectConnect) CreatePublicVirtualInterface(input *CreatePublicVirtualInterfaceInput) (*VirtualInterface, error) {
  283. req, out := c.CreatePublicVirtualInterfaceRequest(input)
  284. err := req.Send()
  285. return out, err
  286. }
  287. const opDeleteConnection = "DeleteConnection"
  288. // DeleteConnectionRequest generates a request for the DeleteConnection operation.
  289. func (c *DirectConnect) DeleteConnectionRequest(input *DeleteConnectionInput) (req *request.Request, output *Connection) {
  290. op := &request.Operation{
  291. Name: opDeleteConnection,
  292. HTTPMethod: "POST",
  293. HTTPPath: "/",
  294. }
  295. if input == nil {
  296. input = &DeleteConnectionInput{}
  297. }
  298. req = c.newRequest(op, input, output)
  299. output = &Connection{}
  300. req.Data = output
  301. return
  302. }
  303. // Deletes the connection.
  304. //
  305. // Deleting a connection only stops the AWS Direct Connect port hour and data
  306. // transfer charges. You need to cancel separately with the providers any services
  307. // or charges for cross-connects or network circuits that connect you to the
  308. // AWS Direct Connect location.
  309. func (c *DirectConnect) DeleteConnection(input *DeleteConnectionInput) (*Connection, error) {
  310. req, out := c.DeleteConnectionRequest(input)
  311. err := req.Send()
  312. return out, err
  313. }
  314. const opDeleteInterconnect = "DeleteInterconnect"
  315. // DeleteInterconnectRequest generates a request for the DeleteInterconnect operation.
  316. func (c *DirectConnect) DeleteInterconnectRequest(input *DeleteInterconnectInput) (req *request.Request, output *DeleteInterconnectOutput) {
  317. op := &request.Operation{
  318. Name: opDeleteInterconnect,
  319. HTTPMethod: "POST",
  320. HTTPPath: "/",
  321. }
  322. if input == nil {
  323. input = &DeleteInterconnectInput{}
  324. }
  325. req = c.newRequest(op, input, output)
  326. output = &DeleteInterconnectOutput{}
  327. req.Data = output
  328. return
  329. }
  330. // Deletes the specified interconnect.
  331. func (c *DirectConnect) DeleteInterconnect(input *DeleteInterconnectInput) (*DeleteInterconnectOutput, error) {
  332. req, out := c.DeleteInterconnectRequest(input)
  333. err := req.Send()
  334. return out, err
  335. }
  336. const opDeleteVirtualInterface = "DeleteVirtualInterface"
  337. // DeleteVirtualInterfaceRequest generates a request for the DeleteVirtualInterface operation.
  338. func (c *DirectConnect) DeleteVirtualInterfaceRequest(input *DeleteVirtualInterfaceInput) (req *request.Request, output *DeleteVirtualInterfaceOutput) {
  339. op := &request.Operation{
  340. Name: opDeleteVirtualInterface,
  341. HTTPMethod: "POST",
  342. HTTPPath: "/",
  343. }
  344. if input == nil {
  345. input = &DeleteVirtualInterfaceInput{}
  346. }
  347. req = c.newRequest(op, input, output)
  348. output = &DeleteVirtualInterfaceOutput{}
  349. req.Data = output
  350. return
  351. }
  352. // Deletes a virtual interface.
  353. func (c *DirectConnect) DeleteVirtualInterface(input *DeleteVirtualInterfaceInput) (*DeleteVirtualInterfaceOutput, error) {
  354. req, out := c.DeleteVirtualInterfaceRequest(input)
  355. err := req.Send()
  356. return out, err
  357. }
  358. const opDescribeConnections = "DescribeConnections"
  359. // DescribeConnectionsRequest generates a request for the DescribeConnections operation.
  360. func (c *DirectConnect) DescribeConnectionsRequest(input *DescribeConnectionsInput) (req *request.Request, output *Connections) {
  361. op := &request.Operation{
  362. Name: opDescribeConnections,
  363. HTTPMethod: "POST",
  364. HTTPPath: "/",
  365. }
  366. if input == nil {
  367. input = &DescribeConnectionsInput{}
  368. }
  369. req = c.newRequest(op, input, output)
  370. output = &Connections{}
  371. req.Data = output
  372. return
  373. }
  374. // Displays all connections in this region.
  375. //
  376. // If a connection ID is provided, the call returns only that particular connection.
  377. func (c *DirectConnect) DescribeConnections(input *DescribeConnectionsInput) (*Connections, error) {
  378. req, out := c.DescribeConnectionsRequest(input)
  379. err := req.Send()
  380. return out, err
  381. }
  382. const opDescribeConnectionsOnInterconnect = "DescribeConnectionsOnInterconnect"
  383. // DescribeConnectionsOnInterconnectRequest generates a request for the DescribeConnectionsOnInterconnect operation.
  384. func (c *DirectConnect) DescribeConnectionsOnInterconnectRequest(input *DescribeConnectionsOnInterconnectInput) (req *request.Request, output *Connections) {
  385. op := &request.Operation{
  386. Name: opDescribeConnectionsOnInterconnect,
  387. HTTPMethod: "POST",
  388. HTTPPath: "/",
  389. }
  390. if input == nil {
  391. input = &DescribeConnectionsOnInterconnectInput{}
  392. }
  393. req = c.newRequest(op, input, output)
  394. output = &Connections{}
  395. req.Data = output
  396. return
  397. }
  398. // Return a list of connections that have been provisioned on the given interconnect.
  399. func (c *DirectConnect) DescribeConnectionsOnInterconnect(input *DescribeConnectionsOnInterconnectInput) (*Connections, error) {
  400. req, out := c.DescribeConnectionsOnInterconnectRequest(input)
  401. err := req.Send()
  402. return out, err
  403. }
  404. const opDescribeInterconnects = "DescribeInterconnects"
  405. // DescribeInterconnectsRequest generates a request for the DescribeInterconnects operation.
  406. func (c *DirectConnect) DescribeInterconnectsRequest(input *DescribeInterconnectsInput) (req *request.Request, output *DescribeInterconnectsOutput) {
  407. op := &request.Operation{
  408. Name: opDescribeInterconnects,
  409. HTTPMethod: "POST",
  410. HTTPPath: "/",
  411. }
  412. if input == nil {
  413. input = &DescribeInterconnectsInput{}
  414. }
  415. req = c.newRequest(op, input, output)
  416. output = &DescribeInterconnectsOutput{}
  417. req.Data = output
  418. return
  419. }
  420. // Returns a list of interconnects owned by the AWS account.
  421. //
  422. // If an interconnect ID is provided, it will only return this particular interconnect.
  423. func (c *DirectConnect) DescribeInterconnects(input *DescribeInterconnectsInput) (*DescribeInterconnectsOutput, error) {
  424. req, out := c.DescribeInterconnectsRequest(input)
  425. err := req.Send()
  426. return out, err
  427. }
  428. const opDescribeLocations = "DescribeLocations"
  429. // DescribeLocationsRequest generates a request for the DescribeLocations operation.
  430. func (c *DirectConnect) DescribeLocationsRequest(input *DescribeLocationsInput) (req *request.Request, output *DescribeLocationsOutput) {
  431. op := &request.Operation{
  432. Name: opDescribeLocations,
  433. HTTPMethod: "POST",
  434. HTTPPath: "/",
  435. }
  436. if input == nil {
  437. input = &DescribeLocationsInput{}
  438. }
  439. req = c.newRequest(op, input, output)
  440. output = &DescribeLocationsOutput{}
  441. req.Data = output
  442. return
  443. }
  444. // Returns the list of AWS Direct Connect locations in the current AWS region.
  445. // These are the locations that may be selected when calling CreateConnection
  446. // or CreateInterconnect.
  447. func (c *DirectConnect) DescribeLocations(input *DescribeLocationsInput) (*DescribeLocationsOutput, error) {
  448. req, out := c.DescribeLocationsRequest(input)
  449. err := req.Send()
  450. return out, err
  451. }
  452. const opDescribeVirtualGateways = "DescribeVirtualGateways"
  453. // DescribeVirtualGatewaysRequest generates a request for the DescribeVirtualGateways operation.
  454. func (c *DirectConnect) DescribeVirtualGatewaysRequest(input *DescribeVirtualGatewaysInput) (req *request.Request, output *DescribeVirtualGatewaysOutput) {
  455. op := &request.Operation{
  456. Name: opDescribeVirtualGateways,
  457. HTTPMethod: "POST",
  458. HTTPPath: "/",
  459. }
  460. if input == nil {
  461. input = &DescribeVirtualGatewaysInput{}
  462. }
  463. req = c.newRequest(op, input, output)
  464. output = &DescribeVirtualGatewaysOutput{}
  465. req.Data = output
  466. return
  467. }
  468. // Returns a list of virtual private gateways owned by the AWS account.
  469. //
  470. // You can create one or more AWS Direct Connect private virtual interfaces
  471. // linking to a virtual private gateway. A virtual private gateway can be managed
  472. // via Amazon Virtual Private Cloud (VPC) console or the EC2 CreateVpnGateway
  473. // (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-CreateVpnGateway.html)
  474. // action.
  475. func (c *DirectConnect) DescribeVirtualGateways(input *DescribeVirtualGatewaysInput) (*DescribeVirtualGatewaysOutput, error) {
  476. req, out := c.DescribeVirtualGatewaysRequest(input)
  477. err := req.Send()
  478. return out, err
  479. }
  480. const opDescribeVirtualInterfaces = "DescribeVirtualInterfaces"
  481. // DescribeVirtualInterfacesRequest generates a request for the DescribeVirtualInterfaces operation.
  482. func (c *DirectConnect) DescribeVirtualInterfacesRequest(input *DescribeVirtualInterfacesInput) (req *request.Request, output *DescribeVirtualInterfacesOutput) {
  483. op := &request.Operation{
  484. Name: opDescribeVirtualInterfaces,
  485. HTTPMethod: "POST",
  486. HTTPPath: "/",
  487. }
  488. if input == nil {
  489. input = &DescribeVirtualInterfacesInput{}
  490. }
  491. req = c.newRequest(op, input, output)
  492. output = &DescribeVirtualInterfacesOutput{}
  493. req.Data = output
  494. return
  495. }
  496. // Displays all virtual interfaces for an AWS account. Virtual interfaces deleted
  497. // fewer than 15 minutes before DescribeVirtualInterfaces is called are also
  498. // returned. If a connection ID is included then only virtual interfaces associated
  499. // with this connection will be returned. If a virtual interface ID is included
  500. // then only a single virtual interface will be returned.
  501. //
  502. // A virtual interface (VLAN) transmits the traffic between the AWS Direct
  503. // Connect location and the customer.
  504. //
  505. // If a connection ID is provided, only virtual interfaces provisioned on the
  506. // specified connection will be returned. If a virtual interface ID is provided,
  507. // only this particular virtual interface will be returned.
  508. func (c *DirectConnect) DescribeVirtualInterfaces(input *DescribeVirtualInterfacesInput) (*DescribeVirtualInterfacesOutput, error) {
  509. req, out := c.DescribeVirtualInterfacesRequest(input)
  510. err := req.Send()
  511. return out, err
  512. }
  513. // Container for the parameters to the AllocateConnectionOnInterconnect operation.
  514. type AllocateConnectionOnInterconnectInput struct {
  515. // Bandwidth of the connection.
  516. //
  517. // Example: "500Mbps"
  518. //
  519. // Default: None
  520. Bandwidth *string `locationName:"bandwidth" type:"string" required:"true"`
  521. // Name of the provisioned connection.
  522. //
  523. // Example: "500M Connection to AWS"
  524. //
  525. // Default: None
  526. ConnectionName *string `locationName:"connectionName" type:"string" required:"true"`
  527. // ID of the interconnect on which the connection will be provisioned.
  528. //
  529. // Example: dxcon-456abc78
  530. //
  531. // Default: None
  532. InterconnectId *string `locationName:"interconnectId" type:"string" required:"true"`
  533. // Numeric account Id of the customer for whom the connection will be provisioned.
  534. //
  535. // Example: 123443215678
  536. //
  537. // Default: None
  538. OwnerAccount *string `locationName:"ownerAccount" type:"string" required:"true"`
  539. // The dedicated VLAN provisioned to the connection.
  540. //
  541. // Example: 101
  542. //
  543. // Default: None
  544. Vlan *int64 `locationName:"vlan" type:"integer" required:"true"`
  545. metadataAllocateConnectionOnInterconnectInput `json:"-" xml:"-"`
  546. }
  547. type metadataAllocateConnectionOnInterconnectInput struct {
  548. SDKShapeTraits bool `type:"structure"`
  549. }
  550. // String returns the string representation
  551. func (s AllocateConnectionOnInterconnectInput) String() string {
  552. return awsutil.Prettify(s)
  553. }
  554. // GoString returns the string representation
  555. func (s AllocateConnectionOnInterconnectInput) GoString() string {
  556. return s.String()
  557. }
  558. // Container for the parameters to the AllocatePrivateVirtualInterface operation.
  559. type AllocatePrivateVirtualInterfaceInput struct {
  560. // The connection ID on which the private virtual interface is provisioned.
  561. //
  562. // Default: None
  563. ConnectionId *string `locationName:"connectionId" type:"string" required:"true"`
  564. // Detailed information for the private virtual interface to be provisioned.
  565. //
  566. // Default: None
  567. NewPrivateVirtualInterfaceAllocation *NewPrivateVirtualInterfaceAllocation `locationName:"newPrivateVirtualInterfaceAllocation" type:"structure" required:"true"`
  568. // The AWS account that will own the new private virtual interface.
  569. //
  570. // Default: None
  571. OwnerAccount *string `locationName:"ownerAccount" type:"string" required:"true"`
  572. metadataAllocatePrivateVirtualInterfaceInput `json:"-" xml:"-"`
  573. }
  574. type metadataAllocatePrivateVirtualInterfaceInput struct {
  575. SDKShapeTraits bool `type:"structure"`
  576. }
  577. // String returns the string representation
  578. func (s AllocatePrivateVirtualInterfaceInput) String() string {
  579. return awsutil.Prettify(s)
  580. }
  581. // GoString returns the string representation
  582. func (s AllocatePrivateVirtualInterfaceInput) GoString() string {
  583. return s.String()
  584. }
  585. // Container for the parameters to the AllocatePublicVirtualInterface operation.
  586. type AllocatePublicVirtualInterfaceInput struct {
  587. // The connection ID on which the public virtual interface is provisioned.
  588. //
  589. // Default: None
  590. ConnectionId *string `locationName:"connectionId" type:"string" required:"true"`
  591. // Detailed information for the public virtual interface to be provisioned.
  592. //
  593. // Default: None
  594. NewPublicVirtualInterfaceAllocation *NewPublicVirtualInterfaceAllocation `locationName:"newPublicVirtualInterfaceAllocation" type:"structure" required:"true"`
  595. // The AWS account that will own the new public virtual interface.
  596. //
  597. // Default: None
  598. OwnerAccount *string `locationName:"ownerAccount" type:"string" required:"true"`
  599. metadataAllocatePublicVirtualInterfaceInput `json:"-" xml:"-"`
  600. }
  601. type metadataAllocatePublicVirtualInterfaceInput struct {
  602. SDKShapeTraits bool `type:"structure"`
  603. }
  604. // String returns the string representation
  605. func (s AllocatePublicVirtualInterfaceInput) String() string {
  606. return awsutil.Prettify(s)
  607. }
  608. // GoString returns the string representation
  609. func (s AllocatePublicVirtualInterfaceInput) GoString() string {
  610. return s.String()
  611. }
  612. // Container for the parameters to the ConfirmConnection operation.
  613. type ConfirmConnectionInput struct {
  614. // ID of the connection.
  615. //
  616. // Example: dxcon-fg5678gh
  617. //
  618. // Default: None
  619. ConnectionId *string `locationName:"connectionId" type:"string" required:"true"`
  620. metadataConfirmConnectionInput `json:"-" xml:"-"`
  621. }
  622. type metadataConfirmConnectionInput struct {
  623. SDKShapeTraits bool `type:"structure"`
  624. }
  625. // String returns the string representation
  626. func (s ConfirmConnectionInput) String() string {
  627. return awsutil.Prettify(s)
  628. }
  629. // GoString returns the string representation
  630. func (s ConfirmConnectionInput) GoString() string {
  631. return s.String()
  632. }
  633. // The response received when ConfirmConnection is called.
  634. type ConfirmConnectionOutput struct {
  635. // State of the connection. Ordering: The initial state of a hosted connection
  636. // provisioned on an interconnect. The connection stays in the ordering state
  637. // until the owner of the hosted connection confirms or declines the connection
  638. // order. Requested: The initial state of a standard connection. The connection
  639. // stays in the requested state until the Letter of Authorization (LOA) is sent
  640. // to the customer. Pending: The connection has been approved, and is being
  641. // initialized. Available: The network link is up, and the connection is ready
  642. // for use. Down: The network link is down. Deleted: The connection has been
  643. // deleted. Rejected: A hosted connection in the 'Ordering' state will enter
  644. // the 'Rejected' state if it is deleted by the end customer.
  645. ConnectionState *string `locationName:"connectionState" type:"string" enum:"ConnectionState"`
  646. metadataConfirmConnectionOutput `json:"-" xml:"-"`
  647. }
  648. type metadataConfirmConnectionOutput struct {
  649. SDKShapeTraits bool `type:"structure"`
  650. }
  651. // String returns the string representation
  652. func (s ConfirmConnectionOutput) String() string {
  653. return awsutil.Prettify(s)
  654. }
  655. // GoString returns the string representation
  656. func (s ConfirmConnectionOutput) GoString() string {
  657. return s.String()
  658. }
  659. // Container for the parameters to the ConfirmPrivateVirtualInterface operation.
  660. type ConfirmPrivateVirtualInterfaceInput struct {
  661. // ID of the virtual private gateway that will be attached to the virtual interface.
  662. //
  663. // A virtual private gateway can be managed via the Amazon Virtual Private
  664. // Cloud (VPC) console or the EC2 CreateVpnGateway (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-CreateVpnGateway.html)
  665. // action.
  666. //
  667. // Default: None
  668. VirtualGatewayId *string `locationName:"virtualGatewayId" type:"string" required:"true"`
  669. // ID of the virtual interface.
  670. //
  671. // Example: dxvif-123dfg56
  672. //
  673. // Default: None
  674. VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string" required:"true"`
  675. metadataConfirmPrivateVirtualInterfaceInput `json:"-" xml:"-"`
  676. }
  677. type metadataConfirmPrivateVirtualInterfaceInput struct {
  678. SDKShapeTraits bool `type:"structure"`
  679. }
  680. // String returns the string representation
  681. func (s ConfirmPrivateVirtualInterfaceInput) String() string {
  682. return awsutil.Prettify(s)
  683. }
  684. // GoString returns the string representation
  685. func (s ConfirmPrivateVirtualInterfaceInput) GoString() string {
  686. return s.String()
  687. }
  688. // The response received when ConfirmPrivateVirtualInterface is called.
  689. type ConfirmPrivateVirtualInterfaceOutput struct {
  690. // State of the virtual interface. Confirming: The creation of the virtual
  691. // interface is pending confirmation from the virtual interface owner. If the
  692. // owner of the virtual interface is different from the owner of the connection
  693. // on which it is provisioned, then the virtual interface will remain in this
  694. // state until it is confirmed by the virtual interface owner. Verifying: This
  695. // state only applies to public virtual interfaces. Each public virtual interface
  696. // needs validation before the virtual interface can be created. Pending: A
  697. // virtual interface is in this state from the time that it is created until
  698. // the virtual interface is ready to forward traffic. Available: A virtual
  699. // interface that is able to forward traffic. Deleting: A virtual interface
  700. // is in this state immediately after calling DeleteVirtualInterface until it
  701. // can no longer forward traffic. Deleted: A virtual interface that cannot
  702. // forward traffic. Rejected: The virtual interface owner has declined creation
  703. // of the virtual interface. If a virtual interface in the 'Confirming' state
  704. // is deleted by the virtual interface owner, the virtual interface will enter
  705. // the 'Rejected' state.
  706. VirtualInterfaceState *string `locationName:"virtualInterfaceState" type:"string" enum:"VirtualInterfaceState"`
  707. metadataConfirmPrivateVirtualInterfaceOutput `json:"-" xml:"-"`
  708. }
  709. type metadataConfirmPrivateVirtualInterfaceOutput struct {
  710. SDKShapeTraits bool `type:"structure"`
  711. }
  712. // String returns the string representation
  713. func (s ConfirmPrivateVirtualInterfaceOutput) String() string {
  714. return awsutil.Prettify(s)
  715. }
  716. // GoString returns the string representation
  717. func (s ConfirmPrivateVirtualInterfaceOutput) GoString() string {
  718. return s.String()
  719. }
  720. // Container for the parameters to the ConfirmPublicVirtualInterface operation.
  721. type ConfirmPublicVirtualInterfaceInput struct {
  722. // ID of the virtual interface.
  723. //
  724. // Example: dxvif-123dfg56
  725. //
  726. // Default: None
  727. VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string" required:"true"`
  728. metadataConfirmPublicVirtualInterfaceInput `json:"-" xml:"-"`
  729. }
  730. type metadataConfirmPublicVirtualInterfaceInput struct {
  731. SDKShapeTraits bool `type:"structure"`
  732. }
  733. // String returns the string representation
  734. func (s ConfirmPublicVirtualInterfaceInput) String() string {
  735. return awsutil.Prettify(s)
  736. }
  737. // GoString returns the string representation
  738. func (s ConfirmPublicVirtualInterfaceInput) GoString() string {
  739. return s.String()
  740. }
  741. // The response received when ConfirmPublicVirtualInterface is called.
  742. type ConfirmPublicVirtualInterfaceOutput struct {
  743. // State of the virtual interface. Confirming: The creation of the virtual
  744. // interface is pending confirmation from the virtual interface owner. If the
  745. // owner of the virtual interface is different from the owner of the connection
  746. // on which it is provisioned, then the virtual interface will remain in this
  747. // state until it is confirmed by the virtual interface owner. Verifying: This
  748. // state only applies to public virtual interfaces. Each public virtual interface
  749. // needs validation before the virtual interface can be created. Pending: A
  750. // virtual interface is in this state from the time that it is created until
  751. // the virtual interface is ready to forward traffic. Available: A virtual
  752. // interface that is able to forward traffic. Deleting: A virtual interface
  753. // is in this state immediately after calling DeleteVirtualInterface until it
  754. // can no longer forward traffic. Deleted: A virtual interface that cannot
  755. // forward traffic. Rejected: The virtual interface owner has declined creation
  756. // of the virtual interface. If a virtual interface in the 'Confirming' state
  757. // is deleted by the virtual interface owner, the virtual interface will enter
  758. // the 'Rejected' state.
  759. VirtualInterfaceState *string `locationName:"virtualInterfaceState" type:"string" enum:"VirtualInterfaceState"`
  760. metadataConfirmPublicVirtualInterfaceOutput `json:"-" xml:"-"`
  761. }
  762. type metadataConfirmPublicVirtualInterfaceOutput struct {
  763. SDKShapeTraits bool `type:"structure"`
  764. }
  765. // String returns the string representation
  766. func (s ConfirmPublicVirtualInterfaceOutput) String() string {
  767. return awsutil.Prettify(s)
  768. }
  769. // GoString returns the string representation
  770. func (s ConfirmPublicVirtualInterfaceOutput) GoString() string {
  771. return s.String()
  772. }
  773. // A connection represents the physical network connection between the AWS Direct
  774. // Connect location and the customer.
  775. type Connection struct {
  776. // Bandwidth of the connection.
  777. //
  778. // Example: 1Gbps (for regular connections), or 500Mbps (for hosted connections)
  779. //
  780. // Default: None
  781. Bandwidth *string `locationName:"bandwidth" type:"string"`
  782. // ID of the connection.
  783. //
  784. // Example: dxcon-fg5678gh
  785. //
  786. // Default: None
  787. ConnectionId *string `locationName:"connectionId" type:"string"`
  788. // The name of the connection.
  789. //
  790. // Example: "My Connection to AWS"
  791. //
  792. // Default: None
  793. ConnectionName *string `locationName:"connectionName" type:"string"`
  794. // State of the connection. Ordering: The initial state of a hosted connection
  795. // provisioned on an interconnect. The connection stays in the ordering state
  796. // until the owner of the hosted connection confirms or declines the connection
  797. // order. Requested: The initial state of a standard connection. The connection
  798. // stays in the requested state until the Letter of Authorization (LOA) is sent
  799. // to the customer. Pending: The connection has been approved, and is being
  800. // initialized. Available: The network link is up, and the connection is ready
  801. // for use. Down: The network link is down. Deleted: The connection has been
  802. // deleted. Rejected: A hosted connection in the 'Ordering' state will enter
  803. // the 'Rejected' state if it is deleted by the end customer.
  804. ConnectionState *string `locationName:"connectionState" type:"string" enum:"ConnectionState"`
  805. // Where the connection is located.
  806. //
  807. // Example: EqSV5
  808. //
  809. // Default: None
  810. Location *string `locationName:"location" type:"string"`
  811. OwnerAccount *string `locationName:"ownerAccount" type:"string"`
  812. PartnerName *string `locationName:"partnerName" type:"string"`
  813. // The AWS region where the connection is located.
  814. //
  815. // Example: us-east-1
  816. //
  817. // Default: None
  818. Region *string `locationName:"region" type:"string"`
  819. // The VLAN ID.
  820. //
  821. // Example: 101
  822. Vlan *int64 `locationName:"vlan" type:"integer"`
  823. metadataConnection `json:"-" xml:"-"`
  824. }
  825. type metadataConnection struct {
  826. SDKShapeTraits bool `type:"structure"`
  827. }
  828. // String returns the string representation
  829. func (s Connection) String() string {
  830. return awsutil.Prettify(s)
  831. }
  832. // GoString returns the string representation
  833. func (s Connection) GoString() string {
  834. return s.String()
  835. }
  836. // A structure containing a list of connections.
  837. type Connections struct {
  838. // A list of connections.
  839. Connections []*Connection `locationName:"connections" type:"list"`
  840. metadataConnections `json:"-" xml:"-"`
  841. }
  842. type metadataConnections struct {
  843. SDKShapeTraits bool `type:"structure"`
  844. }
  845. // String returns the string representation
  846. func (s Connections) String() string {
  847. return awsutil.Prettify(s)
  848. }
  849. // GoString returns the string representation
  850. func (s Connections) GoString() string {
  851. return s.String()
  852. }
  853. // Container for the parameters to the CreateConnection operation.
  854. type CreateConnectionInput struct {
  855. // Bandwidth of the connection.
  856. //
  857. // Example: 1Gbps
  858. //
  859. // Default: None
  860. Bandwidth *string `locationName:"bandwidth" type:"string" required:"true"`
  861. // The name of the connection.
  862. //
  863. // Example: "My Connection to AWS"
  864. //
  865. // Default: None
  866. ConnectionName *string `locationName:"connectionName" type:"string" required:"true"`
  867. // Where the connection is located.
  868. //
  869. // Example: EqSV5
  870. //
  871. // Default: None
  872. Location *string `locationName:"location" type:"string" required:"true"`
  873. metadataCreateConnectionInput `json:"-" xml:"-"`
  874. }
  875. type metadataCreateConnectionInput struct {
  876. SDKShapeTraits bool `type:"structure"`
  877. }
  878. // String returns the string representation
  879. func (s CreateConnectionInput) String() string {
  880. return awsutil.Prettify(s)
  881. }
  882. // GoString returns the string representation
  883. func (s CreateConnectionInput) GoString() string {
  884. return s.String()
  885. }
  886. // Container for the parameters to the CreateInterconnect operation.
  887. type CreateInterconnectInput struct {
  888. // The port bandwidth
  889. //
  890. // Example: 1Gbps
  891. //
  892. // Default: None
  893. //
  894. // Available values: 1Gbps,10Gbps
  895. Bandwidth *string `locationName:"bandwidth" type:"string" required:"true"`
  896. // The name of the interconnect.
  897. //
  898. // Example: "1G Interconnect to AWS"
  899. //
  900. // Default: None
  901. InterconnectName *string `locationName:"interconnectName" type:"string" required:"true"`
  902. // Where the interconnect is located
  903. //
  904. // Example: EqSV5
  905. //
  906. // Default: None
  907. Location *string `locationName:"location" type:"string" required:"true"`
  908. metadataCreateInterconnectInput `json:"-" xml:"-"`
  909. }
  910. type metadataCreateInterconnectInput struct {
  911. SDKShapeTraits bool `type:"structure"`
  912. }
  913. // String returns the string representation
  914. func (s CreateInterconnectInput) String() string {
  915. return awsutil.Prettify(s)
  916. }
  917. // GoString returns the string representation
  918. func (s CreateInterconnectInput) GoString() string {
  919. return s.String()
  920. }
  921. // Container for the parameters to the CreatePrivateVirtualInterface operation.
  922. type CreatePrivateVirtualInterfaceInput struct {
  923. // ID of the connection.
  924. //
  925. // Example: dxcon-fg5678gh
  926. //
  927. // Default: None
  928. ConnectionId *string `locationName:"connectionId" type:"string" required:"true"`
  929. // Detailed information for the private virtual interface to be created.
  930. //
  931. // Default: None
  932. NewPrivateVirtualInterface *NewPrivateVirtualInterface `locationName:"newPrivateVirtualInterface" type:"structure" required:"true"`
  933. metadataCreatePrivateVirtualInterfaceInput `json:"-" xml:"-"`
  934. }
  935. type metadataCreatePrivateVirtualInterfaceInput struct {
  936. SDKShapeTraits bool `type:"structure"`
  937. }
  938. // String returns the string representation
  939. func (s CreatePrivateVirtualInterfaceInput) String() string {
  940. return awsutil.Prettify(s)
  941. }
  942. // GoString returns the string representation
  943. func (s CreatePrivateVirtualInterfaceInput) GoString() string {
  944. return s.String()
  945. }
  946. // Container for the parameters to the CreatePublicVirtualInterface operation.
  947. type CreatePublicVirtualInterfaceInput struct {
  948. // ID of the connection.
  949. //
  950. // Example: dxcon-fg5678gh
  951. //
  952. // Default: None
  953. ConnectionId *string `locationName:"connectionId" type:"string" required:"true"`
  954. // Detailed information for the public virtual interface to be created.
  955. //
  956. // Default: None
  957. NewPublicVirtualInterface *NewPublicVirtualInterface `locationName:"newPublicVirtualInterface" type:"structure" required:"true"`
  958. metadataCreatePublicVirtualInterfaceInput `json:"-" xml:"-"`
  959. }
  960. type metadataCreatePublicVirtualInterfaceInput struct {
  961. SDKShapeTraits bool `type:"structure"`
  962. }
  963. // String returns the string representation
  964. func (s CreatePublicVirtualInterfaceInput) String() string {
  965. return awsutil.Prettify(s)
  966. }
  967. // GoString returns the string representation
  968. func (s CreatePublicVirtualInterfaceInput) GoString() string {
  969. return s.String()
  970. }
  971. // Container for the parameters to the DeleteConnection operation.
  972. type DeleteConnectionInput struct {
  973. // ID of the connection.
  974. //
  975. // Example: dxcon-fg5678gh
  976. //
  977. // Default: None
  978. ConnectionId *string `locationName:"connectionId" type:"string" required:"true"`
  979. metadataDeleteConnectionInput `json:"-" xml:"-"`
  980. }
  981. type metadataDeleteConnectionInput struct {
  982. SDKShapeTraits bool `type:"structure"`
  983. }
  984. // String returns the string representation
  985. func (s DeleteConnectionInput) String() string {
  986. return awsutil.Prettify(s)
  987. }
  988. // GoString returns the string representation
  989. func (s DeleteConnectionInput) GoString() string {
  990. return s.String()
  991. }
  992. // Container for the parameters to the DeleteInterconnect operation.
  993. type DeleteInterconnectInput struct {
  994. // The ID of the interconnect.
  995. //
  996. // Example: dxcon-abc123
  997. InterconnectId *string `locationName:"interconnectId" type:"string" required:"true"`
  998. metadataDeleteInterconnectInput `json:"-" xml:"-"`
  999. }
  1000. type metadataDeleteInterconnectInput struct {
  1001. SDKShapeTraits bool `type:"structure"`
  1002. }
  1003. // String returns the string representation
  1004. func (s DeleteInterconnectInput) String() string {
  1005. return awsutil.Prettify(s)
  1006. }
  1007. // GoString returns the string representation
  1008. func (s DeleteInterconnectInput) GoString() string {
  1009. return s.String()
  1010. }
  1011. // The response received when DeleteInterconnect is called.
  1012. type DeleteInterconnectOutput struct {
  1013. // State of the interconnect. Requested: The initial state of an interconnect.
  1014. // The interconnect stays in the requested state until the Letter of Authorization
  1015. // (LOA) is sent to the customer. Pending: The interconnect has been approved,
  1016. // and is being initialized. Available: The network link is up, and the interconnect
  1017. // is ready for use. Down: The network link is down. Deleted: The interconnect
  1018. // has been deleted.
  1019. InterconnectState *string `locationName:"interconnectState" type:"string" enum:"InterconnectState"`
  1020. metadataDeleteInterconnectOutput `json:"-" xml:"-"`
  1021. }
  1022. type metadataDeleteInterconnectOutput struct {
  1023. SDKShapeTraits bool `type:"structure"`
  1024. }
  1025. // String returns the string representation
  1026. func (s DeleteInterconnectOutput) String() string {
  1027. return awsutil.Prettify(s)
  1028. }
  1029. // GoString returns the string representation
  1030. func (s DeleteInterconnectOutput) GoString() string {
  1031. return s.String()
  1032. }
  1033. // Container for the parameters to the DeleteVirtualInterface operation.
  1034. type DeleteVirtualInterfaceInput struct {
  1035. // ID of the virtual interface.
  1036. //
  1037. // Example: dxvif-123dfg56
  1038. //
  1039. // Default: None
  1040. VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string" required:"true"`
  1041. metadataDeleteVirtualInterfaceInput `json:"-" xml:"-"`
  1042. }
  1043. type metadataDeleteVirtualInterfaceInput struct {
  1044. SDKShapeTraits bool `type:"structure"`
  1045. }
  1046. // String returns the string representation
  1047. func (s DeleteVirtualInterfaceInput) String() string {
  1048. return awsutil.Prettify(s)
  1049. }
  1050. // GoString returns the string representation
  1051. func (s DeleteVirtualInterfaceInput) GoString() string {
  1052. return s.String()
  1053. }
  1054. // The response received when DeleteVirtualInterface is called.
  1055. type DeleteVirtualInterfaceOutput struct {
  1056. // State of the virtual interface. Confirming: The creation of the virtual
  1057. // interface is pending confirmation from the virtual interface owner. If the
  1058. // owner of the virtual interface is different from the owner of the connection
  1059. // on which it is provisioned, then the virtual interface will remain in this
  1060. // state until it is confirmed by the virtual interface owner. Verifying: This
  1061. // state only applies to public virtual interfaces. Each public virtual interface
  1062. // needs validation before the virtual interface can be created. Pending: A
  1063. // virtual interface is in this state from the time that it is created until
  1064. // the virtual interface is ready to forward traffic. Available: A virtual
  1065. // interface that is able to forward traffic. Deleting: A virtual interface
  1066. // is in this state immediately after calling DeleteVirtualInterface until it
  1067. // can no longer forward traffic. Deleted: A virtual interface that cannot
  1068. // forward traffic. Rejected: The virtual interface owner has declined creation
  1069. // of the virtual interface. If a virtual interface in the 'Confirming' state
  1070. // is deleted by the virtual interface owner, the virtual interface will enter
  1071. // the 'Rejected' state.
  1072. VirtualInterfaceState *string `locationName:"virtualInterfaceState" type:"string" enum:"VirtualInterfaceState"`
  1073. metadataDeleteVirtualInterfaceOutput `json:"-" xml:"-"`
  1074. }
  1075. type metadataDeleteVirtualInterfaceOutput struct {
  1076. SDKShapeTraits bool `type:"structure"`
  1077. }
  1078. // String returns the string representation
  1079. func (s DeleteVirtualInterfaceOutput) String() string {
  1080. return awsutil.Prettify(s)
  1081. }
  1082. // GoString returns the string representation
  1083. func (s DeleteVirtualInterfaceOutput) GoString() string {
  1084. return s.String()
  1085. }
  1086. // Container for the parameters to the DescribeConnections operation.
  1087. type DescribeConnectionsInput struct {
  1088. // ID of the connection.
  1089. //
  1090. // Example: dxcon-fg5678gh
  1091. //
  1092. // Default: None
  1093. ConnectionId *string `locationName:"connectionId" type:"string"`
  1094. metadataDescribeConnectionsInput `json:"-" xml:"-"`
  1095. }
  1096. type metadataDescribeConnectionsInput struct {
  1097. SDKShapeTraits bool `type:"structure"`
  1098. }
  1099. // String returns the string representation
  1100. func (s DescribeConnectionsInput) String() string {
  1101. return awsutil.Prettify(s)
  1102. }
  1103. // GoString returns the string representation
  1104. func (s DescribeConnectionsInput) GoString() string {
  1105. return s.String()
  1106. }
  1107. // Container for the parameters to the DescribeConnectionsOnInterconnect operation.
  1108. type DescribeConnectionsOnInterconnectInput struct {
  1109. // ID of the interconnect on which a list of connection is provisioned.
  1110. //
  1111. // Example: dxcon-abc123
  1112. //
  1113. // Default: None
  1114. InterconnectId *string `locationName:"interconnectId" type:"string" required:"true"`
  1115. metadataDescribeConnectionsOnInterconnectInput `json:"-" xml:"-"`
  1116. }
  1117. type metadataDescribeConnectionsOnInterconnectInput struct {
  1118. SDKShapeTraits bool `type:"structure"`
  1119. }
  1120. // String returns the string representation
  1121. func (s DescribeConnectionsOnInterconnectInput) String() string {
  1122. return awsutil.Prettify(s)
  1123. }
  1124. // GoString returns the string representation
  1125. func (s DescribeConnectionsOnInterconnectInput) GoString() string {
  1126. return s.String()
  1127. }
  1128. // Container for the parameters to the DescribeInterconnects operation.
  1129. type DescribeInterconnectsInput struct {
  1130. // The ID of the interconnect.
  1131. //
  1132. // Example: dxcon-abc123
  1133. InterconnectId *string `locationName:"interconnectId" type:"string"`
  1134. metadataDescribeInterconnectsInput `json:"-" xml:"-"`
  1135. }
  1136. type metadataDescribeInterconnectsInput struct {
  1137. SDKShapeTraits bool `type:"structure"`
  1138. }
  1139. // String returns the string representation
  1140. func (s DescribeInterconnectsInput) String() string {
  1141. return awsutil.Prettify(s)
  1142. }
  1143. // GoString returns the string representation
  1144. func (s DescribeInterconnectsInput) GoString() string {
  1145. return s.String()
  1146. }
  1147. // A structure containing a list of interconnects.
  1148. type DescribeInterconnectsOutput struct {
  1149. // A list of interconnects.
  1150. Interconnects []*Interconnect `locationName:"interconnects" type:"list"`
  1151. metadataDescribeInterconnectsOutput `json:"-" xml:"-"`
  1152. }
  1153. type metadataDescribeInterconnectsOutput struct {
  1154. SDKShapeTraits bool `type:"structure"`
  1155. }
  1156. // String returns the string representation
  1157. func (s DescribeInterconnectsOutput) String() string {
  1158. return awsutil.Prettify(s)
  1159. }
  1160. // GoString returns the string representation
  1161. func (s DescribeInterconnectsOutput) GoString() string {
  1162. return s.String()
  1163. }
  1164. type DescribeLocationsInput struct {
  1165. metadataDescribeLocationsInput `json:"-" xml:"-"`
  1166. }
  1167. type metadataDescribeLocationsInput struct {
  1168. SDKShapeTraits bool `type:"structure"`
  1169. }
  1170. // String returns the string representation
  1171. func (s DescribeLocationsInput) String() string {
  1172. return awsutil.Prettify(s)
  1173. }
  1174. // GoString returns the string representation
  1175. func (s DescribeLocationsInput) GoString() string {
  1176. return s.String()
  1177. }
  1178. type DescribeLocationsOutput struct {
  1179. Locations []*Location `locationName:"locations" type:"list"`
  1180. metadataDescribeLocationsOutput `json:"-" xml:"-"`
  1181. }
  1182. type metadataDescribeLocationsOutput struct {
  1183. SDKShapeTraits bool `type:"structure"`
  1184. }
  1185. // String returns the string representation
  1186. func (s DescribeLocationsOutput) String() string {
  1187. return awsutil.Prettify(s)
  1188. }
  1189. // GoString returns the string representation
  1190. func (s DescribeLocationsOutput) GoString() string {
  1191. return s.String()
  1192. }
  1193. type DescribeVirtualGatewaysInput struct {
  1194. metadataDescribeVirtualGatewaysInput `json:"-" xml:"-"`
  1195. }
  1196. type metadataDescribeVirtualGatewaysInput struct {
  1197. SDKShapeTraits bool `type:"structure"`
  1198. }
  1199. // String returns the string representation
  1200. func (s DescribeVirtualGatewaysInput) String() string {
  1201. return awsutil.Prettify(s)
  1202. }
  1203. // GoString returns the string representation
  1204. func (s DescribeVirtualGatewaysInput) GoString() string {
  1205. return s.String()
  1206. }
  1207. // A structure containing a list of virtual private gateways.
  1208. type DescribeVirtualGatewaysOutput struct {
  1209. // A list of virtual private gateways.
  1210. VirtualGateways []*VirtualGateway `locationName:"virtualGateways" type:"list"`
  1211. metadataDescribeVirtualGatewaysOutput `json:"-" xml:"-"`
  1212. }
  1213. type metadataDescribeVirtualGatewaysOutput struct {
  1214. SDKShapeTraits bool `type:"structure"`
  1215. }
  1216. // String returns the string representation
  1217. func (s DescribeVirtualGatewaysOutput) String() string {
  1218. return awsutil.Prettify(s)
  1219. }
  1220. // GoString returns the string representation
  1221. func (s DescribeVirtualGatewaysOutput) GoString() string {
  1222. return s.String()
  1223. }
  1224. // Container for the parameters to the DescribeVirtualInterfaces operation.
  1225. type DescribeVirtualInterfacesInput struct {
  1226. // ID of the connection.
  1227. //
  1228. // Example: dxcon-fg5678gh
  1229. //
  1230. // Default: None
  1231. ConnectionId *string `locationName:"connectionId" type:"string"`
  1232. // ID of the virtual interface.
  1233. //
  1234. // Example: dxvif-123dfg56
  1235. //
  1236. // Default: None
  1237. VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string"`
  1238. metadataDescribeVirtualInterfacesInput `json:"-" xml:"-"`
  1239. }
  1240. type metadataDescribeVirtualInterfacesInput struct {
  1241. SDKShapeTraits bool `type:"structure"`
  1242. }
  1243. // String returns the string representation
  1244. func (s DescribeVirtualInterfacesInput) String() string {
  1245. return awsutil.Prettify(s)
  1246. }
  1247. // GoString returns the string representation
  1248. func (s DescribeVirtualInterfacesInput) GoString() string {
  1249. return s.String()
  1250. }
  1251. // A structure containing a list of virtual interfaces.
  1252. type DescribeVirtualInterfacesOutput struct {
  1253. // A list of virtual interfaces.
  1254. VirtualInterfaces []*VirtualInterface `locationName:"virtualInterfaces" type:"list"`
  1255. metadataDescribeVirtualInterfacesOutput `json:"-" xml:"-"`
  1256. }
  1257. type metadataDescribeVirtualInterfacesOutput struct {
  1258. SDKShapeTraits bool `type:"structure"`
  1259. }
  1260. // String returns the string representation
  1261. func (s DescribeVirtualInterfacesOutput) String() string {
  1262. return awsutil.Prettify(s)
  1263. }
  1264. // GoString returns the string representation
  1265. func (s DescribeVirtualInterfacesOutput) GoString() string {
  1266. return s.String()
  1267. }
  1268. // An interconnect is a connection that can host other connections.
  1269. //
  1270. // Like a standard AWS Direct Connect connection, an interconnect represents
  1271. // the physical connection between an AWS Direct Connect partner's network and
  1272. // a specific Direct Connect location. An AWS Direct Connect partner who owns
  1273. // an interconnect can provision hosted connections on the interconnect for
  1274. // their end customers, thereby providing the end customers with connectivity
  1275. // to AWS services.
  1276. //
  1277. // The resources of the interconnect, including bandwidth and VLAN numbers,
  1278. // are shared by all of the hosted connections on the interconnect, and the
  1279. // owner of the interconnect determines how these resources are assigned.
  1280. type Interconnect struct {
  1281. // Bandwidth of the connection.
  1282. //
  1283. // Example: 1Gbps
  1284. //
  1285. // Default: None
  1286. Bandwidth *string `locationName:"bandwidth" type:"string"`
  1287. // The ID of the interconnect.
  1288. //
  1289. // Example: dxcon-abc123
  1290. InterconnectId *string `locationName:"interconnectId" type:"string"`
  1291. // The name of the interconnect.
  1292. //
  1293. // Example: "1G Interconnect to AWS"
  1294. InterconnectName *string `locationName:"interconnectName" type:"string"`
  1295. // State of the interconnect. Requested: The initial state of an interconnect.
  1296. // The interconnect stays in the requested state until the Letter of Authorization
  1297. // (LOA) is sent to the customer. Pending: The interconnect has been approved,
  1298. // and is being initialized. Available: The network link is up, and the interconnect
  1299. // is ready for use. Down: The network link is down. Deleted: The interconnect
  1300. // has been deleted.
  1301. InterconnectState *string `locationName:"interconnectState" type:"string" enum:"InterconnectState"`
  1302. // Where the connection is located.
  1303. //
  1304. // Example: EqSV5
  1305. //
  1306. // Default: None
  1307. Location *string `locationName:"location" type:"string"`
  1308. // The AWS region where the connection is located.
  1309. //
  1310. // Example: us-east-1
  1311. //
  1312. // Default: None
  1313. Region *string `locationName:"region" type:"string"`
  1314. metadataInterconnect `json:"-" xml:"-"`
  1315. }
  1316. type metadataInterconnect struct {
  1317. SDKShapeTraits bool `type:"structure"`
  1318. }
  1319. // String returns the string representation
  1320. func (s Interconnect) String() string {
  1321. return awsutil.Prettify(s)
  1322. }
  1323. // GoString returns the string representation
  1324. func (s Interconnect) GoString() string {
  1325. return s.String()
  1326. }
  1327. // An AWS Direct Connect location where connections and interconnects can be
  1328. // requested.
  1329. type Location struct {
  1330. // The code used to indicate the AWS Direct Connect location.
  1331. LocationCode *string `locationName:"locationCode" type:"string"`
  1332. // The name of the AWS Direct Connect location. The name includes the colocation
  1333. // partner name and the physical site of the lit building.
  1334. LocationName *string `locationName:"locationName" type:"string"`
  1335. metadataLocation `json:"-" xml:"-"`
  1336. }
  1337. type metadataLocation struct {
  1338. SDKShapeTraits bool `type:"structure"`
  1339. }
  1340. // String returns the string representation
  1341. func (s Location) String() string {
  1342. return awsutil.Prettify(s)
  1343. }
  1344. // GoString returns the string representation
  1345. func (s Location) GoString() string {
  1346. return s.String()
  1347. }
  1348. // A structure containing information about a new private virtual interface.
  1349. type NewPrivateVirtualInterface struct {
  1350. // IP address assigned to the Amazon interface.
  1351. //
  1352. // Example: 192.168.1.1/30
  1353. AmazonAddress *string `locationName:"amazonAddress" type:"string"`
  1354. // Autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
  1355. //
  1356. // Example: 65000
  1357. Asn *int64 `locationName:"asn" type:"integer" required:"true"`
  1358. // Authentication key for BGP configuration.
  1359. //
  1360. // Example: asdf34example
  1361. AuthKey *string `locationName:"authKey" type:"string"`
  1362. // IP address assigned to the customer interface.
  1363. //
  1364. // Example: 192.168.1.2/30
  1365. CustomerAddress *string `locationName:"customerAddress" type:"string"`
  1366. // The ID of the virtual private gateway to a VPC. This only applies to private
  1367. // virtual interfaces.
  1368. //
  1369. // Example: vgw-123er56
  1370. VirtualGatewayId *string `locationName:"virtualGatewayId" type:"string" required:"true"`
  1371. // The name of the virtual interface assigned by the customer.
  1372. //
  1373. // Example: "My VPC"
  1374. VirtualInterfaceName *string `locationName:"virtualInterfaceName" type:"string" required:"true"`
  1375. // The VLAN ID.
  1376. //
  1377. // Example: 101
  1378. Vlan *int64 `locationName:"vlan" type:"integer" required:"true"`
  1379. metadataNewPrivateVirtualInterface `json:"-" xml:"-"`
  1380. }
  1381. type metadataNewPrivateVirtualInterface struct {
  1382. SDKShapeTraits bool `type:"structure"`
  1383. }
  1384. // String returns the string representation
  1385. func (s NewPrivateVirtualInterface) String() string {
  1386. return awsutil.Prettify(s)
  1387. }
  1388. // GoString returns the string representation
  1389. func (s NewPrivateVirtualInterface) GoString() string {
  1390. return s.String()
  1391. }
  1392. // A structure containing information about a private virtual interface that
  1393. // will be provisioned on a connection.
  1394. type NewPrivateVirtualInterfaceAllocation struct {
  1395. // IP address assigned to the Amazon interface.
  1396. //
  1397. // Example: 192.168.1.1/30
  1398. AmazonAddress *string `locationName:"amazonAddress" type:"string"`
  1399. // Autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
  1400. //
  1401. // Example: 65000
  1402. Asn *int64 `locationName:"asn" type:"integer" required:"true"`
  1403. // Authentication key for BGP configuration.
  1404. //
  1405. // Example: asdf34example
  1406. AuthKey *string `locationName:"authKey" type:"string"`
  1407. // IP address assigned to the customer interface.
  1408. //
  1409. // Example: 192.168.1.2/30
  1410. CustomerAddress *string `locationName:"customerAddress" type:"string"`
  1411. // The name of the virtual interface assigned by the customer.
  1412. //
  1413. // Example: "My VPC"
  1414. VirtualInterfaceName *string `locationName:"virtualInterfaceName" type:"string" required:"true"`
  1415. // The VLAN ID.
  1416. //
  1417. // Example: 101
  1418. Vlan *int64 `locationName:"vlan" type:"integer" required:"true"`
  1419. metadataNewPrivateVirtualInterfaceAllocation `json:"-" xml:"-"`
  1420. }
  1421. type metadataNewPrivateVirtualInterfaceAllocation struct {
  1422. SDKShapeTraits bool `type:"structure"`
  1423. }
  1424. // String returns the string representation
  1425. func (s NewPrivateVirtualInterfaceAllocation) String() string {
  1426. return awsutil.Prettify(s)
  1427. }
  1428. // GoString returns the string representation
  1429. func (s NewPrivateVirtualInterfaceAllocation) GoString() string {
  1430. return s.String()
  1431. }
  1432. // A structure containing information about a new public virtual interface.
  1433. type NewPublicVirtualInterface struct {
  1434. // IP address assigned to the Amazon interface.
  1435. //
  1436. // Example: 192.168.1.1/30
  1437. AmazonAddress *string `locationName:"amazonAddress" type:"string" required:"true"`
  1438. // Autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
  1439. //
  1440. // Example: 65000
  1441. Asn *int64 `locationName:"asn" type:"integer" required:"true"`
  1442. // Authentication key for BGP configuration.
  1443. //
  1444. // Example: asdf34example
  1445. AuthKey *string `locationName:"authKey" type:"string"`
  1446. // IP address assigned to the customer interface.
  1447. //
  1448. // Example: 192.168.1.2/30
  1449. CustomerAddress *string `locationName:"customerAddress" type:"string" required:"true"`
  1450. // A list of routes to be advertised to the AWS network in this region (public
  1451. // virtual interface) or your VPC (private virtual interface).
  1452. RouteFilterPrefixes []*RouteFilterPrefix `locationName:"routeFilterPrefixes" type:"list" required:"true"`
  1453. // The name of the virtual interface assigned by the customer.
  1454. //
  1455. // Example: "My VPC"
  1456. VirtualInterfaceName *string `locationName:"virtualInterfaceName" type:"string" required:"true"`
  1457. // The VLAN ID.
  1458. //
  1459. // Example: 101
  1460. Vlan *int64 `locationName:"vlan" type:"integer" required:"true"`
  1461. metadataNewPublicVirtualInterface `json:"-" xml:"-"`
  1462. }
  1463. type metadataNewPublicVirtualInterface struct {
  1464. SDKShapeTraits bool `type:"structure"`
  1465. }
  1466. // String returns the string representation
  1467. func (s NewPublicVirtualInterface) String() string {
  1468. return awsutil.Prettify(s)
  1469. }
  1470. // GoString returns the string representation
  1471. func (s NewPublicVirtualInterface) GoString() string {
  1472. return s.String()
  1473. }
  1474. // A structure containing information about a public virtual interface that
  1475. // will be provisioned on a connection.
  1476. type NewPublicVirtualInterfaceAllocation struct {
  1477. // IP address assigned to the Amazon interface.
  1478. //
  1479. // Example: 192.168.1.1/30
  1480. AmazonAddress *string `locationName:"amazonAddress" type:"string" required:"true"`
  1481. // Autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
  1482. //
  1483. // Example: 65000
  1484. Asn *int64 `locationName:"asn" type:"integer" required:"true"`
  1485. // Authentication key for BGP configuration.
  1486. //
  1487. // Example: asdf34example
  1488. AuthKey *string `locationName:"authKey" type:"string"`
  1489. // IP address assigned to the customer interface.
  1490. //
  1491. // Example: 192.168.1.2/30
  1492. CustomerAddress *string `locationName:"customerAddress" type:"string" required:"true"`
  1493. // A list of routes to be advertised to the AWS network in this region (public
  1494. // virtual interface) or your VPC (private virtual interface).
  1495. RouteFilterPrefixes []*RouteFilterPrefix `locationName:"routeFilterPrefixes" type:"list" required:"true"`
  1496. // The name of the virtual interface assigned by the customer.
  1497. //
  1498. // Example: "My VPC"
  1499. VirtualInterfaceName *string `locationName:"virtualInterfaceName" type:"string" required:"true"`
  1500. // The VLAN ID.
  1501. //
  1502. // Example: 101
  1503. Vlan *int64 `locationName:"vlan" type:"integer" required:"true"`
  1504. metadataNewPublicVirtualInterfaceAllocation `json:"-" xml:"-"`
  1505. }
  1506. type metadataNewPublicVirtualInterfaceAllocation struct {
  1507. SDKShapeTraits bool `type:"structure"`
  1508. }
  1509. // String returns the string representation
  1510. func (s NewPublicVirtualInterfaceAllocation) String() string {
  1511. return awsutil.Prettify(s)
  1512. }
  1513. // GoString returns the string representation
  1514. func (s NewPublicVirtualInterfaceAllocation) GoString() string {
  1515. return s.String()
  1516. }
  1517. // A route filter prefix that the customer can advertise through Border Gateway
  1518. // Protocol (BGP) over a public virtual interface.
  1519. type RouteFilterPrefix struct {
  1520. // CIDR notation for the advertised route. Multiple routes are separated by
  1521. // commas.
  1522. //
  1523. // Example: 10.10.10.0/24,10.10.11.0/24
  1524. Cidr *string `locationName:"cidr" type:"string"`
  1525. metadataRouteFilterPrefix `json:"-" xml:"-"`
  1526. }
  1527. type metadataRouteFilterPrefix struct {
  1528. SDKShapeTraits bool `type:"structure"`
  1529. }
  1530. // String returns the string representation
  1531. func (s RouteFilterPrefix) String() string {
  1532. return awsutil.Prettify(s)
  1533. }
  1534. // GoString returns the string representation
  1535. func (s RouteFilterPrefix) GoString() string {
  1536. return s.String()
  1537. }
  1538. // You can create one or more AWS Direct Connect private virtual interfaces
  1539. // linking to your virtual private gateway.
  1540. //
  1541. // Virtual private gateways can be managed using the Amazon Virtual Private
  1542. // Cloud (Amazon VPC) console or the Amazon EC2 CreateVpnGateway action (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-CreateVpnGateway.html).
  1543. type VirtualGateway struct {
  1544. // The ID of the virtual private gateway to a VPC. This only applies to private
  1545. // virtual interfaces.
  1546. //
  1547. // Example: vgw-123er56
  1548. VirtualGatewayId *string `locationName:"virtualGatewayId" type:"string"`
  1549. // State of the virtual private gateway. Pending: This is the initial state
  1550. // after calling CreateVpnGateway. Available: Ready for use by a private virtual
  1551. // interface. Deleting: This is the initial state after calling DeleteVpnGateway.
  1552. // Deleted: In this state, a private virtual interface is unable to send traffic
  1553. // over this gateway.
  1554. VirtualGatewayState *string `locationName:"virtualGatewayState" type:"string"`
  1555. metadataVirtualGateway `json:"-" xml:"-"`
  1556. }
  1557. type metadataVirtualGateway struct {
  1558. SDKShapeTraits bool `type:"structure"`
  1559. }
  1560. // String returns the string representation
  1561. func (s VirtualGateway) String() string {
  1562. return awsutil.Prettify(s)
  1563. }
  1564. // GoString returns the string representation
  1565. func (s VirtualGateway) GoString() string {
  1566. return s.String()
  1567. }
  1568. // A virtual interface (VLAN) transmits the traffic between the AWS Direct Connect
  1569. // location and the customer.
  1570. type VirtualInterface struct {
  1571. // IP address assigned to the Amazon interface.
  1572. //
  1573. // Example: 192.168.1.1/30
  1574. AmazonAddress *string `locationName:"amazonAddress" type:"string"`
  1575. // Autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
  1576. //
  1577. // Example: 65000
  1578. Asn *int64 `locationName:"asn" type:"integer"`
  1579. // Authentication key for BGP configuration.
  1580. //
  1581. // Example: asdf34example
  1582. AuthKey *string `locationName:"authKey" type:"string"`
  1583. // ID of the connection.
  1584. //
  1585. // Example: dxcon-fg5678gh
  1586. //
  1587. // Default: None
  1588. ConnectionId *string `locationName:"connectionId" type:"string"`
  1589. // IP address assigned to the customer interface.
  1590. //
  1591. // Example: 192.168.1.2/30
  1592. CustomerAddress *string `locationName:"customerAddress" type:"string"`
  1593. // Information for generating the customer router configuration.
  1594. CustomerRouterConfig *string `locationName:"customerRouterConfig" type:"string"`
  1595. // Where the connection is located.
  1596. //
  1597. // Example: EqSV5
  1598. //
  1599. // Default: None
  1600. Location *string `locationName:"location" type:"string"`
  1601. OwnerAccount *string `locationName:"ownerAccount" type:"string"`
  1602. // A list of routes to be advertised to the AWS network in this region (public
  1603. // virtual interface) or your VPC (private virtual interface).
  1604. RouteFilterPrefixes []*RouteFilterPrefix `locationName:"routeFilterPrefixes" type:"list"`
  1605. // The ID of the virtual private gateway to a VPC. This only applies to private
  1606. // virtual interfaces.
  1607. //
  1608. // Example: vgw-123er56
  1609. VirtualGatewayId *string `locationName:"virtualGatewayId" type:"string"`
  1610. // ID of the virtual interface.
  1611. //
  1612. // Example: dxvif-123dfg56
  1613. //
  1614. // Default: None
  1615. VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string"`
  1616. // The name of the virtual interface assigned by the customer.
  1617. //
  1618. // Example: "My VPC"
  1619. VirtualInterfaceName *string `locationName:"virtualInterfaceName" type:"string"`
  1620. // State of the virtual interface. Confirming: The creation of the virtual
  1621. // interface is pending confirmation from the virtual interface owner. If the
  1622. // owner of the virtual interface is different from the owner of the connection
  1623. // on which it is provisioned, then the virtual interface will remain in this
  1624. // state until it is confirmed by the virtual interface owner. Verifying: This
  1625. // state only applies to public virtual interfaces. Each public virtual interface
  1626. // needs validation before the virtual interface can be created. Pending: A
  1627. // virtual interface is in this state from the time that it is created until
  1628. // the virtual interface is ready to forward traffic. Available: A virtual
  1629. // interface that is able to forward traffic. Deleting: A virtual interface
  1630. // is in this state immediately after calling DeleteVirtualInterface until it
  1631. // can no longer forward traffic. Deleted: A virtual interface that cannot
  1632. // forward traffic. Rejected: The virtual interface owner has declined creation
  1633. // of the virtual interface. If a virtual interface in the 'Confirming' state
  1634. // is deleted by the virtual interface owner, the virtual interface will enter
  1635. // the 'Rejected' state.
  1636. VirtualInterfaceState *string `locationName:"virtualInterfaceState" type:"string" enum:"VirtualInterfaceState"`
  1637. // The type of virtual interface.
  1638. //
  1639. // Example: private (Amazon VPC) or public (Amazon S3, Amazon DynamoDB, and
  1640. // so on.)
  1641. VirtualInterfaceType *string `locationName:"virtualInterfaceType" type:"string"`
  1642. // The VLAN ID.
  1643. //
  1644. // Example: 101
  1645. Vlan *int64 `locationName:"vlan" type:"integer"`
  1646. metadataVirtualInterface `json:"-" xml:"-"`
  1647. }
  1648. type metadataVirtualInterface struct {
  1649. SDKShapeTraits bool `type:"structure"`
  1650. }
  1651. // String returns the string representation
  1652. func (s VirtualInterface) String() string {
  1653. return awsutil.Prettify(s)
  1654. }
  1655. // GoString returns the string representation
  1656. func (s VirtualInterface) GoString() string {
  1657. return s.String()
  1658. }
  1659. // State of the connection. Ordering: The initial state of a hosted connection
  1660. // provisioned on an interconnect. The connection stays in the ordering state
  1661. // until the owner of the hosted connection confirms or declines the connection
  1662. // order. Requested: The initial state of a standard connection. The connection
  1663. // stays in the requested state until the Letter of Authorization (LOA) is sent
  1664. // to the customer. Pending: The connection has been approved, and is being
  1665. // initialized. Available: The network link is up, and the connection is ready
  1666. // for use. Down: The network link is down. Deleted: The connection has been
  1667. // deleted. Rejected: A hosted connection in the 'Ordering' state will enter
  1668. // the 'Rejected' state if it is deleted by the end customer.
  1669. const (
  1670. // @enum ConnectionState
  1671. ConnectionStateOrdering = "ordering"
  1672. // @enum ConnectionState
  1673. ConnectionStateRequested = "requested"
  1674. // @enum ConnectionState
  1675. ConnectionStatePending = "pending"
  1676. // @enum ConnectionState
  1677. ConnectionStateAvailable = "available"
  1678. // @enum ConnectionState
  1679. ConnectionStateDown = "down"
  1680. // @enum ConnectionState
  1681. ConnectionStateDeleting = "deleting"
  1682. // @enum ConnectionState
  1683. ConnectionStateDeleted = "deleted"
  1684. // @enum ConnectionState
  1685. ConnectionStateRejected = "rejected"
  1686. )
  1687. // State of the interconnect. Requested: The initial state of an interconnect.
  1688. // The interconnect stays in the requested state until the Letter of Authorization
  1689. // (LOA) is sent to the customer. Pending: The interconnect has been approved,
  1690. // and is being initialized. Available: The network link is up, and the interconnect
  1691. // is ready for use. Down: The network link is down. Deleted: The interconnect
  1692. // has been deleted.
  1693. const (
  1694. // @enum InterconnectState
  1695. InterconnectStateRequested = "requested"
  1696. // @enum InterconnectState
  1697. InterconnectStatePending = "pending"
  1698. // @enum InterconnectState
  1699. InterconnectStateAvailable = "available"
  1700. // @enum InterconnectState
  1701. InterconnectStateDown = "down"
  1702. // @enum InterconnectState
  1703. InterconnectStateDeleting = "deleting"
  1704. // @enum InterconnectState
  1705. InterconnectStateDeleted = "deleted"
  1706. )
  1707. // State of the virtual interface. Confirming: The creation of the virtual
  1708. // interface is pending confirmation from the virtual interface owner. If the
  1709. // owner of the virtual interface is different from the owner of the connection
  1710. // on which it is provisioned, then the virtual interface will remain in this
  1711. // state until it is confirmed by the virtual interface owner. Verifying: This
  1712. // state only applies to public virtual interfaces. Each public virtual interface
  1713. // needs validation before the virtual interface can be created. Pending: A
  1714. // virtual interface is in this state from the time that it is created until
  1715. // the virtual interface is ready to forward traffic. Available: A virtual
  1716. // interface that is able to forward traffic. Deleting: A virtual interface
  1717. // is in this state immediately after calling DeleteVirtualInterface until it
  1718. // can no longer forward traffic. Deleted: A virtual interface that cannot
  1719. // forward traffic. Rejected: The virtual interface owner has declined creation
  1720. // of the virtual interface. If a virtual interface in the 'Confirming' state
  1721. // is deleted by the virtual interface owner, the virtual interface will enter
  1722. // the 'Rejected' state.
  1723. const (
  1724. // @enum VirtualInterfaceState
  1725. VirtualInterfaceStateConfirming = "confirming"
  1726. // @enum VirtualInterfaceState
  1727. VirtualInterfaceStateVerifying = "verifying"
  1728. // @enum VirtualInterfaceState
  1729. VirtualInterfaceStatePending = "pending"
  1730. // @enum VirtualInterfaceState
  1731. VirtualInterfaceStateAvailable = "available"
  1732. // @enum VirtualInterfaceState
  1733. VirtualInterfaceStateDeleting = "deleting"
  1734. // @enum VirtualInterfaceState
  1735. VirtualInterfaceStateDeleted = "deleted"
  1736. // @enum VirtualInterfaceState
  1737. VirtualInterfaceStateRejected = "rejected"
  1738. )