api.go 62 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package sms provides a client for AWS Server Migration Service.
  3. package sms
  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 opCreateReplicationJob = "CreateReplicationJob"
  10. // CreateReplicationJobRequest generates a "aws/request.Request" representing the
  11. // client's request for the CreateReplicationJob 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 CreateReplicationJob 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 CreateReplicationJob 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 CreateReplicationJobRequest method.
  27. // req, resp := client.CreateReplicationJobRequest(params)
  28. //
  29. // err := req.Send()
  30. // if err == nil { // resp is now filled
  31. // fmt.Println(resp)
  32. // }
  33. //
  34. func (c *SMS) CreateReplicationJobRequest(input *CreateReplicationJobInput) (req *request.Request, output *CreateReplicationJobOutput) {
  35. op := &request.Operation{
  36. Name: opCreateReplicationJob,
  37. HTTPMethod: "POST",
  38. HTTPPath: "/",
  39. }
  40. if input == nil {
  41. input = &CreateReplicationJobInput{}
  42. }
  43. req = c.newRequest(op, input, output)
  44. output = &CreateReplicationJobOutput{}
  45. req.Data = output
  46. return
  47. }
  48. // CreateReplicationJob API operation for AWS Server Migration Service.
  49. //
  50. // The CreateReplicationJob API is used to create a ReplicationJob to replicate
  51. // a server on AWS. Call this API to first create a ReplicationJob, which will
  52. // then schedule periodic ReplicationRuns to replicate your server to AWS. Each
  53. // ReplicationRun will result in the creation of an AWS AMI.
  54. //
  55. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  56. // with awserr.Error's Code and Message methods to get detailed information about
  57. // the error.
  58. //
  59. // See the AWS API reference guide for AWS Server Migration Service's
  60. // API operation CreateReplicationJob for usage and error information.
  61. //
  62. // Returned Error Codes:
  63. // * InvalidParameterException
  64. // A parameter specified in the request is not valid, is unsupported, or cannot
  65. // be used.
  66. //
  67. // * MissingRequiredParameterException
  68. // The request is missing a required parameter. Ensure that you have supplied
  69. // all the required parameters for the request.
  70. //
  71. // * UnauthorizedOperationException
  72. // This user does not have permissions to perform this operation.
  73. //
  74. // * OperationNotPermittedException
  75. // The specified operation is not allowed. This error can occur for a number
  76. // of reasons; for example, you might be trying to start a Replication Run before
  77. // seed Replication Run.
  78. //
  79. // * ServerCannotBeReplicatedException
  80. // The provided server cannot be replicated.
  81. //
  82. // * ReplicationJobAlreadyExistsException
  83. // An active Replication Job already exists for the specified server.
  84. //
  85. // * NoConnectorsAvailableException
  86. // No connectors are available to handle this request. Please associate connector(s)
  87. // and verify any existing connectors are healthy and can respond to requests.
  88. //
  89. // * InternalError
  90. // An internal error has occured.
  91. //
  92. func (c *SMS) CreateReplicationJob(input *CreateReplicationJobInput) (*CreateReplicationJobOutput, error) {
  93. req, out := c.CreateReplicationJobRequest(input)
  94. err := req.Send()
  95. return out, err
  96. }
  97. const opDeleteReplicationJob = "DeleteReplicationJob"
  98. // DeleteReplicationJobRequest generates a "aws/request.Request" representing the
  99. // client's request for the DeleteReplicationJob operation. The "output" return
  100. // value can be used to capture response data after the request's "Send" method
  101. // is called.
  102. //
  103. // See DeleteReplicationJob for usage and error information.
  104. //
  105. // Creating a request object using this method should be used when you want to inject
  106. // custom logic into the request's lifecycle using a custom handler, or if you want to
  107. // access properties on the request object before or after sending the request. If
  108. // you just want the service response, call the DeleteReplicationJob method directly
  109. // instead.
  110. //
  111. // Note: You must call the "Send" method on the returned request object in order
  112. // to execute the request.
  113. //
  114. // // Example sending a request using the DeleteReplicationJobRequest method.
  115. // req, resp := client.DeleteReplicationJobRequest(params)
  116. //
  117. // err := req.Send()
  118. // if err == nil { // resp is now filled
  119. // fmt.Println(resp)
  120. // }
  121. //
  122. func (c *SMS) DeleteReplicationJobRequest(input *DeleteReplicationJobInput) (req *request.Request, output *DeleteReplicationJobOutput) {
  123. op := &request.Operation{
  124. Name: opDeleteReplicationJob,
  125. HTTPMethod: "POST",
  126. HTTPPath: "/",
  127. }
  128. if input == nil {
  129. input = &DeleteReplicationJobInput{}
  130. }
  131. req = c.newRequest(op, input, output)
  132. output = &DeleteReplicationJobOutput{}
  133. req.Data = output
  134. return
  135. }
  136. // DeleteReplicationJob API operation for AWS Server Migration Service.
  137. //
  138. // The DeleteReplicationJob API is used to delete a ReplicationJob, resulting
  139. // in no further ReplicationRuns. This will delete the contents of the S3 bucket
  140. // used to store SMS artifacts, but will not delete any AMIs created by the
  141. // SMS service.
  142. //
  143. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  144. // with awserr.Error's Code and Message methods to get detailed information about
  145. // the error.
  146. //
  147. // See the AWS API reference guide for AWS Server Migration Service's
  148. // API operation DeleteReplicationJob for usage and error information.
  149. //
  150. // Returned Error Codes:
  151. // * InvalidParameterException
  152. // A parameter specified in the request is not valid, is unsupported, or cannot
  153. // be used.
  154. //
  155. // * MissingRequiredParameterException
  156. // The request is missing a required parameter. Ensure that you have supplied
  157. // all the required parameters for the request.
  158. //
  159. // * UnauthorizedOperationException
  160. // This user does not have permissions to perform this operation.
  161. //
  162. // * OperationNotPermittedException
  163. // The specified operation is not allowed. This error can occur for a number
  164. // of reasons; for example, you might be trying to start a Replication Run before
  165. // seed Replication Run.
  166. //
  167. // * ReplicationJobNotFoundException
  168. // The specified Replication Job cannot be found.
  169. //
  170. func (c *SMS) DeleteReplicationJob(input *DeleteReplicationJobInput) (*DeleteReplicationJobOutput, error) {
  171. req, out := c.DeleteReplicationJobRequest(input)
  172. err := req.Send()
  173. return out, err
  174. }
  175. const opDeleteServerCatalog = "DeleteServerCatalog"
  176. // DeleteServerCatalogRequest generates a "aws/request.Request" representing the
  177. // client's request for the DeleteServerCatalog operation. The "output" return
  178. // value can be used to capture response data after the request's "Send" method
  179. // is called.
  180. //
  181. // See DeleteServerCatalog for usage and error information.
  182. //
  183. // Creating a request object using this method should be used when you want to inject
  184. // custom logic into the request's lifecycle using a custom handler, or if you want to
  185. // access properties on the request object before or after sending the request. If
  186. // you just want the service response, call the DeleteServerCatalog method directly
  187. // instead.
  188. //
  189. // Note: You must call the "Send" method on the returned request object in order
  190. // to execute the request.
  191. //
  192. // // Example sending a request using the DeleteServerCatalogRequest method.
  193. // req, resp := client.DeleteServerCatalogRequest(params)
  194. //
  195. // err := req.Send()
  196. // if err == nil { // resp is now filled
  197. // fmt.Println(resp)
  198. // }
  199. //
  200. func (c *SMS) DeleteServerCatalogRequest(input *DeleteServerCatalogInput) (req *request.Request, output *DeleteServerCatalogOutput) {
  201. op := &request.Operation{
  202. Name: opDeleteServerCatalog,
  203. HTTPMethod: "POST",
  204. HTTPPath: "/",
  205. }
  206. if input == nil {
  207. input = &DeleteServerCatalogInput{}
  208. }
  209. req = c.newRequest(op, input, output)
  210. output = &DeleteServerCatalogOutput{}
  211. req.Data = output
  212. return
  213. }
  214. // DeleteServerCatalog API operation for AWS Server Migration Service.
  215. //
  216. // The DeleteServerCatalog API clears all servers from your server catalog.
  217. // This means that these servers will no longer be accessible to the Server
  218. // Migration Service.
  219. //
  220. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  221. // with awserr.Error's Code and Message methods to get detailed information about
  222. // the error.
  223. //
  224. // See the AWS API reference guide for AWS Server Migration Service's
  225. // API operation DeleteServerCatalog for usage and error information.
  226. //
  227. // Returned Error Codes:
  228. // * UnauthorizedOperationException
  229. // This user does not have permissions to perform this operation.
  230. //
  231. // * OperationNotPermittedException
  232. // The specified operation is not allowed. This error can occur for a number
  233. // of reasons; for example, you might be trying to start a Replication Run before
  234. // seed Replication Run.
  235. //
  236. // * InvalidParameterException
  237. // A parameter specified in the request is not valid, is unsupported, or cannot
  238. // be used.
  239. //
  240. // * MissingRequiredParameterException
  241. // The request is missing a required parameter. Ensure that you have supplied
  242. // all the required parameters for the request.
  243. //
  244. func (c *SMS) DeleteServerCatalog(input *DeleteServerCatalogInput) (*DeleteServerCatalogOutput, error) {
  245. req, out := c.DeleteServerCatalogRequest(input)
  246. err := req.Send()
  247. return out, err
  248. }
  249. const opDisassociateConnector = "DisassociateConnector"
  250. // DisassociateConnectorRequest generates a "aws/request.Request" representing the
  251. // client's request for the DisassociateConnector operation. The "output" return
  252. // value can be used to capture response data after the request's "Send" method
  253. // is called.
  254. //
  255. // See DisassociateConnector for usage and error information.
  256. //
  257. // Creating a request object using this method should be used when you want to inject
  258. // custom logic into the request's lifecycle using a custom handler, or if you want to
  259. // access properties on the request object before or after sending the request. If
  260. // you just want the service response, call the DisassociateConnector method directly
  261. // instead.
  262. //
  263. // Note: You must call the "Send" method on the returned request object in order
  264. // to execute the request.
  265. //
  266. // // Example sending a request using the DisassociateConnectorRequest method.
  267. // req, resp := client.DisassociateConnectorRequest(params)
  268. //
  269. // err := req.Send()
  270. // if err == nil { // resp is now filled
  271. // fmt.Println(resp)
  272. // }
  273. //
  274. func (c *SMS) DisassociateConnectorRequest(input *DisassociateConnectorInput) (req *request.Request, output *DisassociateConnectorOutput) {
  275. op := &request.Operation{
  276. Name: opDisassociateConnector,
  277. HTTPMethod: "POST",
  278. HTTPPath: "/",
  279. }
  280. if input == nil {
  281. input = &DisassociateConnectorInput{}
  282. }
  283. req = c.newRequest(op, input, output)
  284. output = &DisassociateConnectorOutput{}
  285. req.Data = output
  286. return
  287. }
  288. // DisassociateConnector API operation for AWS Server Migration Service.
  289. //
  290. // The DisassociateConnector API will disassociate a connector from the Server
  291. // Migration Service, rendering it unavailable to support replication jobs.
  292. //
  293. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  294. // with awserr.Error's Code and Message methods to get detailed information about
  295. // the error.
  296. //
  297. // See the AWS API reference guide for AWS Server Migration Service's
  298. // API operation DisassociateConnector for usage and error information.
  299. //
  300. // Returned Error Codes:
  301. // * MissingRequiredParameterException
  302. // The request is missing a required parameter. Ensure that you have supplied
  303. // all the required parameters for the request.
  304. //
  305. // * UnauthorizedOperationException
  306. // This user does not have permissions to perform this operation.
  307. //
  308. // * OperationNotPermittedException
  309. // The specified operation is not allowed. This error can occur for a number
  310. // of reasons; for example, you might be trying to start a Replication Run before
  311. // seed Replication Run.
  312. //
  313. // * InvalidParameterException
  314. // A parameter specified in the request is not valid, is unsupported, or cannot
  315. // be used.
  316. //
  317. func (c *SMS) DisassociateConnector(input *DisassociateConnectorInput) (*DisassociateConnectorOutput, error) {
  318. req, out := c.DisassociateConnectorRequest(input)
  319. err := req.Send()
  320. return out, err
  321. }
  322. const opGetConnectors = "GetConnectors"
  323. // GetConnectorsRequest generates a "aws/request.Request" representing the
  324. // client's request for the GetConnectors operation. The "output" return
  325. // value can be used to capture response data after the request's "Send" method
  326. // is called.
  327. //
  328. // See GetConnectors for usage and error information.
  329. //
  330. // Creating a request object using this method should be used when you want to inject
  331. // custom logic into the request's lifecycle using a custom handler, or if you want to
  332. // access properties on the request object before or after sending the request. If
  333. // you just want the service response, call the GetConnectors method directly
  334. // instead.
  335. //
  336. // Note: You must call the "Send" method on the returned request object in order
  337. // to execute the request.
  338. //
  339. // // Example sending a request using the GetConnectorsRequest method.
  340. // req, resp := client.GetConnectorsRequest(params)
  341. //
  342. // err := req.Send()
  343. // if err == nil { // resp is now filled
  344. // fmt.Println(resp)
  345. // }
  346. //
  347. func (c *SMS) GetConnectorsRequest(input *GetConnectorsInput) (req *request.Request, output *GetConnectorsOutput) {
  348. op := &request.Operation{
  349. Name: opGetConnectors,
  350. HTTPMethod: "POST",
  351. HTTPPath: "/",
  352. Paginator: &request.Paginator{
  353. InputTokens: []string{"nextToken"},
  354. OutputTokens: []string{"nextToken"},
  355. LimitToken: "maxResults",
  356. TruncationToken: "",
  357. },
  358. }
  359. if input == nil {
  360. input = &GetConnectorsInput{}
  361. }
  362. req = c.newRequest(op, input, output)
  363. output = &GetConnectorsOutput{}
  364. req.Data = output
  365. return
  366. }
  367. // GetConnectors API operation for AWS Server Migration Service.
  368. //
  369. // The GetConnectors API returns a list of connectors that are registered with
  370. // the Server Migration Service.
  371. //
  372. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  373. // with awserr.Error's Code and Message methods to get detailed information about
  374. // the error.
  375. //
  376. // See the AWS API reference guide for AWS Server Migration Service's
  377. // API operation GetConnectors for usage and error information.
  378. //
  379. // Returned Error Codes:
  380. // * UnauthorizedOperationException
  381. // This user does not have permissions to perform this operation.
  382. //
  383. func (c *SMS) GetConnectors(input *GetConnectorsInput) (*GetConnectorsOutput, error) {
  384. req, out := c.GetConnectorsRequest(input)
  385. err := req.Send()
  386. return out, err
  387. }
  388. // GetConnectorsPages iterates over the pages of a GetConnectors operation,
  389. // calling the "fn" function with the response data for each page. To stop
  390. // iterating, return false from the fn function.
  391. //
  392. // See GetConnectors method for more information on how to use this operation.
  393. //
  394. // Note: This operation can generate multiple requests to a service.
  395. //
  396. // // Example iterating over at most 3 pages of a GetConnectors operation.
  397. // pageNum := 0
  398. // err := client.GetConnectorsPages(params,
  399. // func(page *GetConnectorsOutput, lastPage bool) bool {
  400. // pageNum++
  401. // fmt.Println(page)
  402. // return pageNum <= 3
  403. // })
  404. //
  405. func (c *SMS) GetConnectorsPages(input *GetConnectorsInput, fn func(p *GetConnectorsOutput, lastPage bool) (shouldContinue bool)) error {
  406. page, _ := c.GetConnectorsRequest(input)
  407. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  408. return page.EachPage(func(p interface{}, lastPage bool) bool {
  409. return fn(p.(*GetConnectorsOutput), lastPage)
  410. })
  411. }
  412. const opGetReplicationJobs = "GetReplicationJobs"
  413. // GetReplicationJobsRequest generates a "aws/request.Request" representing the
  414. // client's request for the GetReplicationJobs operation. The "output" return
  415. // value can be used to capture response data after the request's "Send" method
  416. // is called.
  417. //
  418. // See GetReplicationJobs for usage and error information.
  419. //
  420. // Creating a request object using this method should be used when you want to inject
  421. // custom logic into the request's lifecycle using a custom handler, or if you want to
  422. // access properties on the request object before or after sending the request. If
  423. // you just want the service response, call the GetReplicationJobs method directly
  424. // instead.
  425. //
  426. // Note: You must call the "Send" method on the returned request object in order
  427. // to execute the request.
  428. //
  429. // // Example sending a request using the GetReplicationJobsRequest method.
  430. // req, resp := client.GetReplicationJobsRequest(params)
  431. //
  432. // err := req.Send()
  433. // if err == nil { // resp is now filled
  434. // fmt.Println(resp)
  435. // }
  436. //
  437. func (c *SMS) GetReplicationJobsRequest(input *GetReplicationJobsInput) (req *request.Request, output *GetReplicationJobsOutput) {
  438. op := &request.Operation{
  439. Name: opGetReplicationJobs,
  440. HTTPMethod: "POST",
  441. HTTPPath: "/",
  442. Paginator: &request.Paginator{
  443. InputTokens: []string{"nextToken"},
  444. OutputTokens: []string{"nextToken"},
  445. LimitToken: "maxResults",
  446. TruncationToken: "",
  447. },
  448. }
  449. if input == nil {
  450. input = &GetReplicationJobsInput{}
  451. }
  452. req = c.newRequest(op, input, output)
  453. output = &GetReplicationJobsOutput{}
  454. req.Data = output
  455. return
  456. }
  457. // GetReplicationJobs API operation for AWS Server Migration Service.
  458. //
  459. // The GetReplicationJobs API will return all of your ReplicationJobs and their
  460. // details. This API returns a paginated list, that may be consecutively called
  461. // with nextToken to retrieve all ReplicationJobs.
  462. //
  463. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  464. // with awserr.Error's Code and Message methods to get detailed information about
  465. // the error.
  466. //
  467. // See the AWS API reference guide for AWS Server Migration Service's
  468. // API operation GetReplicationJobs for usage and error information.
  469. //
  470. // Returned Error Codes:
  471. // * InvalidParameterException
  472. // A parameter specified in the request is not valid, is unsupported, or cannot
  473. // be used.
  474. //
  475. // * MissingRequiredParameterException
  476. // The request is missing a required parameter. Ensure that you have supplied
  477. // all the required parameters for the request.
  478. //
  479. // * UnauthorizedOperationException
  480. // This user does not have permissions to perform this operation.
  481. //
  482. func (c *SMS) GetReplicationJobs(input *GetReplicationJobsInput) (*GetReplicationJobsOutput, error) {
  483. req, out := c.GetReplicationJobsRequest(input)
  484. err := req.Send()
  485. return out, err
  486. }
  487. // GetReplicationJobsPages iterates over the pages of a GetReplicationJobs operation,
  488. // calling the "fn" function with the response data for each page. To stop
  489. // iterating, return false from the fn function.
  490. //
  491. // See GetReplicationJobs method for more information on how to use this operation.
  492. //
  493. // Note: This operation can generate multiple requests to a service.
  494. //
  495. // // Example iterating over at most 3 pages of a GetReplicationJobs operation.
  496. // pageNum := 0
  497. // err := client.GetReplicationJobsPages(params,
  498. // func(page *GetReplicationJobsOutput, lastPage bool) bool {
  499. // pageNum++
  500. // fmt.Println(page)
  501. // return pageNum <= 3
  502. // })
  503. //
  504. func (c *SMS) GetReplicationJobsPages(input *GetReplicationJobsInput, fn func(p *GetReplicationJobsOutput, lastPage bool) (shouldContinue bool)) error {
  505. page, _ := c.GetReplicationJobsRequest(input)
  506. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  507. return page.EachPage(func(p interface{}, lastPage bool) bool {
  508. return fn(p.(*GetReplicationJobsOutput), lastPage)
  509. })
  510. }
  511. const opGetReplicationRuns = "GetReplicationRuns"
  512. // GetReplicationRunsRequest generates a "aws/request.Request" representing the
  513. // client's request for the GetReplicationRuns operation. The "output" return
  514. // value can be used to capture response data after the request's "Send" method
  515. // is called.
  516. //
  517. // See GetReplicationRuns for usage and error information.
  518. //
  519. // Creating a request object using this method should be used when you want to inject
  520. // custom logic into the request's lifecycle using a custom handler, or if you want to
  521. // access properties on the request object before or after sending the request. If
  522. // you just want the service response, call the GetReplicationRuns method directly
  523. // instead.
  524. //
  525. // Note: You must call the "Send" method on the returned request object in order
  526. // to execute the request.
  527. //
  528. // // Example sending a request using the GetReplicationRunsRequest method.
  529. // req, resp := client.GetReplicationRunsRequest(params)
  530. //
  531. // err := req.Send()
  532. // if err == nil { // resp is now filled
  533. // fmt.Println(resp)
  534. // }
  535. //
  536. func (c *SMS) GetReplicationRunsRequest(input *GetReplicationRunsInput) (req *request.Request, output *GetReplicationRunsOutput) {
  537. op := &request.Operation{
  538. Name: opGetReplicationRuns,
  539. HTTPMethod: "POST",
  540. HTTPPath: "/",
  541. Paginator: &request.Paginator{
  542. InputTokens: []string{"nextToken"},
  543. OutputTokens: []string{"nextToken"},
  544. LimitToken: "maxResults",
  545. TruncationToken: "",
  546. },
  547. }
  548. if input == nil {
  549. input = &GetReplicationRunsInput{}
  550. }
  551. req = c.newRequest(op, input, output)
  552. output = &GetReplicationRunsOutput{}
  553. req.Data = output
  554. return
  555. }
  556. // GetReplicationRuns API operation for AWS Server Migration Service.
  557. //
  558. // The GetReplicationRuns API will return all ReplicationRuns for a given ReplicationJob.
  559. // This API returns a paginated list, that may be consecutively called with
  560. // nextToken to retrieve all ReplicationRuns for a ReplicationJob.
  561. //
  562. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  563. // with awserr.Error's Code and Message methods to get detailed information about
  564. // the error.
  565. //
  566. // See the AWS API reference guide for AWS Server Migration Service's
  567. // API operation GetReplicationRuns for usage and error information.
  568. //
  569. // Returned Error Codes:
  570. // * InvalidParameterException
  571. // A parameter specified in the request is not valid, is unsupported, or cannot
  572. // be used.
  573. //
  574. // * MissingRequiredParameterException
  575. // The request is missing a required parameter. Ensure that you have supplied
  576. // all the required parameters for the request.
  577. //
  578. // * UnauthorizedOperationException
  579. // This user does not have permissions to perform this operation.
  580. //
  581. func (c *SMS) GetReplicationRuns(input *GetReplicationRunsInput) (*GetReplicationRunsOutput, error) {
  582. req, out := c.GetReplicationRunsRequest(input)
  583. err := req.Send()
  584. return out, err
  585. }
  586. // GetReplicationRunsPages iterates over the pages of a GetReplicationRuns operation,
  587. // calling the "fn" function with the response data for each page. To stop
  588. // iterating, return false from the fn function.
  589. //
  590. // See GetReplicationRuns method for more information on how to use this operation.
  591. //
  592. // Note: This operation can generate multiple requests to a service.
  593. //
  594. // // Example iterating over at most 3 pages of a GetReplicationRuns operation.
  595. // pageNum := 0
  596. // err := client.GetReplicationRunsPages(params,
  597. // func(page *GetReplicationRunsOutput, lastPage bool) bool {
  598. // pageNum++
  599. // fmt.Println(page)
  600. // return pageNum <= 3
  601. // })
  602. //
  603. func (c *SMS) GetReplicationRunsPages(input *GetReplicationRunsInput, fn func(p *GetReplicationRunsOutput, lastPage bool) (shouldContinue bool)) error {
  604. page, _ := c.GetReplicationRunsRequest(input)
  605. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  606. return page.EachPage(func(p interface{}, lastPage bool) bool {
  607. return fn(p.(*GetReplicationRunsOutput), lastPage)
  608. })
  609. }
  610. const opGetServers = "GetServers"
  611. // GetServersRequest generates a "aws/request.Request" representing the
  612. // client's request for the GetServers operation. The "output" return
  613. // value can be used to capture response data after the request's "Send" method
  614. // is called.
  615. //
  616. // See GetServers for usage and error information.
  617. //
  618. // Creating a request object using this method should be used when you want to inject
  619. // custom logic into the request's lifecycle using a custom handler, or if you want to
  620. // access properties on the request object before or after sending the request. If
  621. // you just want the service response, call the GetServers method directly
  622. // instead.
  623. //
  624. // Note: You must call the "Send" method on the returned request object in order
  625. // to execute the request.
  626. //
  627. // // Example sending a request using the GetServersRequest method.
  628. // req, resp := client.GetServersRequest(params)
  629. //
  630. // err := req.Send()
  631. // if err == nil { // resp is now filled
  632. // fmt.Println(resp)
  633. // }
  634. //
  635. func (c *SMS) GetServersRequest(input *GetServersInput) (req *request.Request, output *GetServersOutput) {
  636. op := &request.Operation{
  637. Name: opGetServers,
  638. HTTPMethod: "POST",
  639. HTTPPath: "/",
  640. Paginator: &request.Paginator{
  641. InputTokens: []string{"nextToken"},
  642. OutputTokens: []string{"nextToken"},
  643. LimitToken: "maxResults",
  644. TruncationToken: "",
  645. },
  646. }
  647. if input == nil {
  648. input = &GetServersInput{}
  649. }
  650. req = c.newRequest(op, input, output)
  651. output = &GetServersOutput{}
  652. req.Data = output
  653. return
  654. }
  655. // GetServers API operation for AWS Server Migration Service.
  656. //
  657. // The GetServers API returns a list of all servers in your server catalog.
  658. // For this call to succeed, you must previously have called ImportServerCatalog.
  659. //
  660. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  661. // with awserr.Error's Code and Message methods to get detailed information about
  662. // the error.
  663. //
  664. // See the AWS API reference guide for AWS Server Migration Service's
  665. // API operation GetServers for usage and error information.
  666. //
  667. // Returned Error Codes:
  668. // * UnauthorizedOperationException
  669. // This user does not have permissions to perform this operation.
  670. //
  671. func (c *SMS) GetServers(input *GetServersInput) (*GetServersOutput, error) {
  672. req, out := c.GetServersRequest(input)
  673. err := req.Send()
  674. return out, err
  675. }
  676. // GetServersPages iterates over the pages of a GetServers operation,
  677. // calling the "fn" function with the response data for each page. To stop
  678. // iterating, return false from the fn function.
  679. //
  680. // See GetServers method for more information on how to use this operation.
  681. //
  682. // Note: This operation can generate multiple requests to a service.
  683. //
  684. // // Example iterating over at most 3 pages of a GetServers operation.
  685. // pageNum := 0
  686. // err := client.GetServersPages(params,
  687. // func(page *GetServersOutput, lastPage bool) bool {
  688. // pageNum++
  689. // fmt.Println(page)
  690. // return pageNum <= 3
  691. // })
  692. //
  693. func (c *SMS) GetServersPages(input *GetServersInput, fn func(p *GetServersOutput, lastPage bool) (shouldContinue bool)) error {
  694. page, _ := c.GetServersRequest(input)
  695. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  696. return page.EachPage(func(p interface{}, lastPage bool) bool {
  697. return fn(p.(*GetServersOutput), lastPage)
  698. })
  699. }
  700. const opImportServerCatalog = "ImportServerCatalog"
  701. // ImportServerCatalogRequest generates a "aws/request.Request" representing the
  702. // client's request for the ImportServerCatalog operation. The "output" return
  703. // value can be used to capture response data after the request's "Send" method
  704. // is called.
  705. //
  706. // See ImportServerCatalog for usage and error information.
  707. //
  708. // Creating a request object using this method should be used when you want to inject
  709. // custom logic into the request's lifecycle using a custom handler, or if you want to
  710. // access properties on the request object before or after sending the request. If
  711. // you just want the service response, call the ImportServerCatalog method directly
  712. // instead.
  713. //
  714. // Note: You must call the "Send" method on the returned request object in order
  715. // to execute the request.
  716. //
  717. // // Example sending a request using the ImportServerCatalogRequest method.
  718. // req, resp := client.ImportServerCatalogRequest(params)
  719. //
  720. // err := req.Send()
  721. // if err == nil { // resp is now filled
  722. // fmt.Println(resp)
  723. // }
  724. //
  725. func (c *SMS) ImportServerCatalogRequest(input *ImportServerCatalogInput) (req *request.Request, output *ImportServerCatalogOutput) {
  726. op := &request.Operation{
  727. Name: opImportServerCatalog,
  728. HTTPMethod: "POST",
  729. HTTPPath: "/",
  730. }
  731. if input == nil {
  732. input = &ImportServerCatalogInput{}
  733. }
  734. req = c.newRequest(op, input, output)
  735. output = &ImportServerCatalogOutput{}
  736. req.Data = output
  737. return
  738. }
  739. // ImportServerCatalog API operation for AWS Server Migration Service.
  740. //
  741. // The ImportServerCatalog API is used to gather the complete list of on-premises
  742. // servers on your premises. This API call requires connectors to be installed
  743. // and monitoring all servers you would like imported. This API call returns
  744. // immediately, but may take some time to retrieve all of the servers.
  745. //
  746. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  747. // with awserr.Error's Code and Message methods to get detailed information about
  748. // the error.
  749. //
  750. // See the AWS API reference guide for AWS Server Migration Service's
  751. // API operation ImportServerCatalog for usage and error information.
  752. //
  753. // Returned Error Codes:
  754. // * UnauthorizedOperationException
  755. // This user does not have permissions to perform this operation.
  756. //
  757. // * OperationNotPermittedException
  758. // The specified operation is not allowed. This error can occur for a number
  759. // of reasons; for example, you might be trying to start a Replication Run before
  760. // seed Replication Run.
  761. //
  762. // * InvalidParameterException
  763. // A parameter specified in the request is not valid, is unsupported, or cannot
  764. // be used.
  765. //
  766. // * MissingRequiredParameterException
  767. // The request is missing a required parameter. Ensure that you have supplied
  768. // all the required parameters for the request.
  769. //
  770. // * NoConnectorsAvailableException
  771. // No connectors are available to handle this request. Please associate connector(s)
  772. // and verify any existing connectors are healthy and can respond to requests.
  773. //
  774. func (c *SMS) ImportServerCatalog(input *ImportServerCatalogInput) (*ImportServerCatalogOutput, error) {
  775. req, out := c.ImportServerCatalogRequest(input)
  776. err := req.Send()
  777. return out, err
  778. }
  779. const opStartOnDemandReplicationRun = "StartOnDemandReplicationRun"
  780. // StartOnDemandReplicationRunRequest generates a "aws/request.Request" representing the
  781. // client's request for the StartOnDemandReplicationRun operation. The "output" return
  782. // value can be used to capture response data after the request's "Send" method
  783. // is called.
  784. //
  785. // See StartOnDemandReplicationRun for usage and error information.
  786. //
  787. // Creating a request object using this method should be used when you want to inject
  788. // custom logic into the request's lifecycle using a custom handler, or if you want to
  789. // access properties on the request object before or after sending the request. If
  790. // you just want the service response, call the StartOnDemandReplicationRun method directly
  791. // instead.
  792. //
  793. // Note: You must call the "Send" method on the returned request object in order
  794. // to execute the request.
  795. //
  796. // // Example sending a request using the StartOnDemandReplicationRunRequest method.
  797. // req, resp := client.StartOnDemandReplicationRunRequest(params)
  798. //
  799. // err := req.Send()
  800. // if err == nil { // resp is now filled
  801. // fmt.Println(resp)
  802. // }
  803. //
  804. func (c *SMS) StartOnDemandReplicationRunRequest(input *StartOnDemandReplicationRunInput) (req *request.Request, output *StartOnDemandReplicationRunOutput) {
  805. op := &request.Operation{
  806. Name: opStartOnDemandReplicationRun,
  807. HTTPMethod: "POST",
  808. HTTPPath: "/",
  809. }
  810. if input == nil {
  811. input = &StartOnDemandReplicationRunInput{}
  812. }
  813. req = c.newRequest(op, input, output)
  814. output = &StartOnDemandReplicationRunOutput{}
  815. req.Data = output
  816. return
  817. }
  818. // StartOnDemandReplicationRun API operation for AWS Server Migration Service.
  819. //
  820. // The StartOnDemandReplicationRun API is used to start a ReplicationRun on
  821. // demand (in addition to those that are scheduled based on your frequency).
  822. // This ReplicationRun will start immediately. StartOnDemandReplicationRun is
  823. // subject to limits on how many on demand ReplicationRuns you may call per
  824. // 24-hour period.
  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 Server Migration Service's
  831. // API operation StartOnDemandReplicationRun for usage and error information.
  832. //
  833. // Returned Error Codes:
  834. // * InvalidParameterException
  835. // A parameter specified in the request is not valid, is unsupported, or cannot
  836. // be used.
  837. //
  838. // * MissingRequiredParameterException
  839. // The request is missing a required parameter. Ensure that you have supplied
  840. // all the required parameters for the request.
  841. //
  842. // * UnauthorizedOperationException
  843. // This user does not have permissions to perform this operation.
  844. //
  845. // * OperationNotPermittedException
  846. // The specified operation is not allowed. This error can occur for a number
  847. // of reasons; for example, you might be trying to start a Replication Run before
  848. // seed Replication Run.
  849. //
  850. // * ReplicationRunLimitExceededException
  851. // This user has exceeded the maximum allowed Replication Run limit.
  852. //
  853. func (c *SMS) StartOnDemandReplicationRun(input *StartOnDemandReplicationRunInput) (*StartOnDemandReplicationRunOutput, error) {
  854. req, out := c.StartOnDemandReplicationRunRequest(input)
  855. err := req.Send()
  856. return out, err
  857. }
  858. const opUpdateReplicationJob = "UpdateReplicationJob"
  859. // UpdateReplicationJobRequest generates a "aws/request.Request" representing the
  860. // client's request for the UpdateReplicationJob operation. The "output" return
  861. // value can be used to capture response data after the request's "Send" method
  862. // is called.
  863. //
  864. // See UpdateReplicationJob for usage and error information.
  865. //
  866. // Creating a request object using this method should be used when you want to inject
  867. // custom logic into the request's lifecycle using a custom handler, or if you want to
  868. // access properties on the request object before or after sending the request. If
  869. // you just want the service response, call the UpdateReplicationJob method directly
  870. // instead.
  871. //
  872. // Note: You must call the "Send" method on the returned request object in order
  873. // to execute the request.
  874. //
  875. // // Example sending a request using the UpdateReplicationJobRequest method.
  876. // req, resp := client.UpdateReplicationJobRequest(params)
  877. //
  878. // err := req.Send()
  879. // if err == nil { // resp is now filled
  880. // fmt.Println(resp)
  881. // }
  882. //
  883. func (c *SMS) UpdateReplicationJobRequest(input *UpdateReplicationJobInput) (req *request.Request, output *UpdateReplicationJobOutput) {
  884. op := &request.Operation{
  885. Name: opUpdateReplicationJob,
  886. HTTPMethod: "POST",
  887. HTTPPath: "/",
  888. }
  889. if input == nil {
  890. input = &UpdateReplicationJobInput{}
  891. }
  892. req = c.newRequest(op, input, output)
  893. output = &UpdateReplicationJobOutput{}
  894. req.Data = output
  895. return
  896. }
  897. // UpdateReplicationJob API operation for AWS Server Migration Service.
  898. //
  899. // The UpdateReplicationJob API is used to change the settings of your existing
  900. // ReplicationJob created using CreateReplicationJob. Calling this API will
  901. // affect the next scheduled ReplicationRun.
  902. //
  903. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  904. // with awserr.Error's Code and Message methods to get detailed information about
  905. // the error.
  906. //
  907. // See the AWS API reference guide for AWS Server Migration Service's
  908. // API operation UpdateReplicationJob for usage and error information.
  909. //
  910. // Returned Error Codes:
  911. // * InvalidParameterException
  912. // A parameter specified in the request is not valid, is unsupported, or cannot
  913. // be used.
  914. //
  915. // * MissingRequiredParameterException
  916. // The request is missing a required parameter. Ensure that you have supplied
  917. // all the required parameters for the request.
  918. //
  919. // * OperationNotPermittedException
  920. // The specified operation is not allowed. This error can occur for a number
  921. // of reasons; for example, you might be trying to start a Replication Run before
  922. // seed Replication Run.
  923. //
  924. // * UnauthorizedOperationException
  925. // This user does not have permissions to perform this operation.
  926. //
  927. // * ServerCannotBeReplicatedException
  928. // The provided server cannot be replicated.
  929. //
  930. // * ReplicationJobNotFoundException
  931. // The specified Replication Job cannot be found.
  932. //
  933. // * InternalError
  934. // An internal error has occured.
  935. //
  936. func (c *SMS) UpdateReplicationJob(input *UpdateReplicationJobInput) (*UpdateReplicationJobOutput, error) {
  937. req, out := c.UpdateReplicationJobRequest(input)
  938. err := req.Send()
  939. return out, err
  940. }
  941. // Object representing a Connector
  942. type Connector struct {
  943. _ struct{} `type:"structure"`
  944. // Timestamp of an operation
  945. AssociatedOn *time.Time `locationName:"associatedOn" type:"timestamp" timestampFormat:"unix"`
  946. // List of Connector Capabilities
  947. CapabilityList []*string `locationName:"capabilityList" locationNameList:"item" type:"list"`
  948. // Unique Identifier for Connector
  949. ConnectorId *string `locationName:"connectorId" type:"string"`
  950. // Internet Protocol (IP) Address
  951. IpAddress *string `locationName:"ipAddress" type:"string"`
  952. // Hardware (MAC) address
  953. MacAddress *string `locationName:"macAddress" type:"string"`
  954. // Status of on-premise Connector
  955. Status *string `locationName:"status" type:"string" enum:"ConnectorStatus"`
  956. // Connector version string
  957. Version *string `locationName:"version" type:"string"`
  958. // Unique Identifier for VM Manager
  959. VmManagerId *string `locationName:"vmManagerId" type:"string"`
  960. // VM Manager Name
  961. VmManagerName *string `locationName:"vmManagerName" type:"string"`
  962. // VM Management Product
  963. VmManagerType *string `locationName:"vmManagerType" type:"string" enum:"VmManagerType"`
  964. }
  965. // String returns the string representation
  966. func (s Connector) String() string {
  967. return awsutil.Prettify(s)
  968. }
  969. // GoString returns the string representation
  970. func (s Connector) GoString() string {
  971. return s.String()
  972. }
  973. type CreateReplicationJobInput struct {
  974. _ struct{} `type:"structure"`
  975. // The description for a Replication Job/Run.
  976. Description *string `locationName:"description" type:"string"`
  977. // Interval between Replication Runs. This value is specified in hours, and
  978. // represents the time between consecutive Replication Runs.
  979. //
  980. // Frequency is a required field
  981. Frequency *int64 `locationName:"frequency" type:"integer" required:"true"`
  982. // The license type to be used for the Amazon Machine Image (AMI) created after
  983. // a successful ReplicationRun.
  984. LicenseType *string `locationName:"licenseType" type:"string" enum:"LicenseType"`
  985. // Name of service role in customer's account to be used by SMS service.
  986. RoleName *string `locationName:"roleName" type:"string"`
  987. // Timestamp of an operation
  988. //
  989. // SeedReplicationTime is a required field
  990. SeedReplicationTime *time.Time `locationName:"seedReplicationTime" type:"timestamp" timestampFormat:"unix" required:"true"`
  991. // Unique Identifier for a server
  992. //
  993. // ServerId is a required field
  994. ServerId *string `locationName:"serverId" type:"string" required:"true"`
  995. }
  996. // String returns the string representation
  997. func (s CreateReplicationJobInput) String() string {
  998. return awsutil.Prettify(s)
  999. }
  1000. // GoString returns the string representation
  1001. func (s CreateReplicationJobInput) GoString() string {
  1002. return s.String()
  1003. }
  1004. // Validate inspects the fields of the type to determine if they are valid.
  1005. func (s *CreateReplicationJobInput) Validate() error {
  1006. invalidParams := request.ErrInvalidParams{Context: "CreateReplicationJobInput"}
  1007. if s.Frequency == nil {
  1008. invalidParams.Add(request.NewErrParamRequired("Frequency"))
  1009. }
  1010. if s.SeedReplicationTime == nil {
  1011. invalidParams.Add(request.NewErrParamRequired("SeedReplicationTime"))
  1012. }
  1013. if s.ServerId == nil {
  1014. invalidParams.Add(request.NewErrParamRequired("ServerId"))
  1015. }
  1016. if invalidParams.Len() > 0 {
  1017. return invalidParams
  1018. }
  1019. return nil
  1020. }
  1021. type CreateReplicationJobOutput struct {
  1022. _ struct{} `type:"structure"`
  1023. // The unique identifier for a Replication Job.
  1024. ReplicationJobId *string `locationName:"replicationJobId" type:"string"`
  1025. }
  1026. // String returns the string representation
  1027. func (s CreateReplicationJobOutput) String() string {
  1028. return awsutil.Prettify(s)
  1029. }
  1030. // GoString returns the string representation
  1031. func (s CreateReplicationJobOutput) GoString() string {
  1032. return s.String()
  1033. }
  1034. type DeleteReplicationJobInput struct {
  1035. _ struct{} `type:"structure"`
  1036. // The unique identifier for a Replication Job.
  1037. //
  1038. // ReplicationJobId is a required field
  1039. ReplicationJobId *string `locationName:"replicationJobId" type:"string" required:"true"`
  1040. }
  1041. // String returns the string representation
  1042. func (s DeleteReplicationJobInput) String() string {
  1043. return awsutil.Prettify(s)
  1044. }
  1045. // GoString returns the string representation
  1046. func (s DeleteReplicationJobInput) GoString() string {
  1047. return s.String()
  1048. }
  1049. // Validate inspects the fields of the type to determine if they are valid.
  1050. func (s *DeleteReplicationJobInput) Validate() error {
  1051. invalidParams := request.ErrInvalidParams{Context: "DeleteReplicationJobInput"}
  1052. if s.ReplicationJobId == nil {
  1053. invalidParams.Add(request.NewErrParamRequired("ReplicationJobId"))
  1054. }
  1055. if invalidParams.Len() > 0 {
  1056. return invalidParams
  1057. }
  1058. return nil
  1059. }
  1060. type DeleteReplicationJobOutput struct {
  1061. _ struct{} `type:"structure"`
  1062. }
  1063. // String returns the string representation
  1064. func (s DeleteReplicationJobOutput) String() string {
  1065. return awsutil.Prettify(s)
  1066. }
  1067. // GoString returns the string representation
  1068. func (s DeleteReplicationJobOutput) GoString() string {
  1069. return s.String()
  1070. }
  1071. type DeleteServerCatalogInput struct {
  1072. _ struct{} `type:"structure"`
  1073. }
  1074. // String returns the string representation
  1075. func (s DeleteServerCatalogInput) String() string {
  1076. return awsutil.Prettify(s)
  1077. }
  1078. // GoString returns the string representation
  1079. func (s DeleteServerCatalogInput) GoString() string {
  1080. return s.String()
  1081. }
  1082. type DeleteServerCatalogOutput struct {
  1083. _ struct{} `type:"structure"`
  1084. }
  1085. // String returns the string representation
  1086. func (s DeleteServerCatalogOutput) String() string {
  1087. return awsutil.Prettify(s)
  1088. }
  1089. // GoString returns the string representation
  1090. func (s DeleteServerCatalogOutput) GoString() string {
  1091. return s.String()
  1092. }
  1093. type DisassociateConnectorInput struct {
  1094. _ struct{} `type:"structure"`
  1095. // Unique Identifier for Connector
  1096. //
  1097. // ConnectorId is a required field
  1098. ConnectorId *string `locationName:"connectorId" type:"string" required:"true"`
  1099. }
  1100. // String returns the string representation
  1101. func (s DisassociateConnectorInput) String() string {
  1102. return awsutil.Prettify(s)
  1103. }
  1104. // GoString returns the string representation
  1105. func (s DisassociateConnectorInput) GoString() string {
  1106. return s.String()
  1107. }
  1108. // Validate inspects the fields of the type to determine if they are valid.
  1109. func (s *DisassociateConnectorInput) Validate() error {
  1110. invalidParams := request.ErrInvalidParams{Context: "DisassociateConnectorInput"}
  1111. if s.ConnectorId == nil {
  1112. invalidParams.Add(request.NewErrParamRequired("ConnectorId"))
  1113. }
  1114. if invalidParams.Len() > 0 {
  1115. return invalidParams
  1116. }
  1117. return nil
  1118. }
  1119. type DisassociateConnectorOutput struct {
  1120. _ struct{} `type:"structure"`
  1121. }
  1122. // String returns the string representation
  1123. func (s DisassociateConnectorOutput) String() string {
  1124. return awsutil.Prettify(s)
  1125. }
  1126. // GoString returns the string representation
  1127. func (s DisassociateConnectorOutput) GoString() string {
  1128. return s.String()
  1129. }
  1130. type GetConnectorsInput struct {
  1131. _ struct{} `type:"structure"`
  1132. // The maximum number of results to return in one API call. If left empty, this
  1133. // will default to 50.
  1134. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  1135. // Pagination token to pass as input to API call
  1136. NextToken *string `locationName:"nextToken" type:"string"`
  1137. }
  1138. // String returns the string representation
  1139. func (s GetConnectorsInput) String() string {
  1140. return awsutil.Prettify(s)
  1141. }
  1142. // GoString returns the string representation
  1143. func (s GetConnectorsInput) GoString() string {
  1144. return s.String()
  1145. }
  1146. type GetConnectorsOutput struct {
  1147. _ struct{} `type:"structure"`
  1148. // List of connectors
  1149. ConnectorList []*Connector `locationName:"connectorList" locationNameList:"item" type:"list"`
  1150. // Pagination token to pass as input to API call
  1151. NextToken *string `locationName:"nextToken" type:"string"`
  1152. }
  1153. // String returns the string representation
  1154. func (s GetConnectorsOutput) String() string {
  1155. return awsutil.Prettify(s)
  1156. }
  1157. // GoString returns the string representation
  1158. func (s GetConnectorsOutput) GoString() string {
  1159. return s.String()
  1160. }
  1161. type GetReplicationJobsInput struct {
  1162. _ struct{} `type:"structure"`
  1163. // The maximum number of results to return in one API call. If left empty, this
  1164. // will default to 50.
  1165. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  1166. // Pagination token to pass as input to API call
  1167. NextToken *string `locationName:"nextToken" type:"string"`
  1168. // The unique identifier for a Replication Job.
  1169. ReplicationJobId *string `locationName:"replicationJobId" type:"string"`
  1170. }
  1171. // String returns the string representation
  1172. func (s GetReplicationJobsInput) String() string {
  1173. return awsutil.Prettify(s)
  1174. }
  1175. // GoString returns the string representation
  1176. func (s GetReplicationJobsInput) GoString() string {
  1177. return s.String()
  1178. }
  1179. type GetReplicationJobsOutput struct {
  1180. _ struct{} `type:"structure"`
  1181. // Pagination token to pass as input to API call
  1182. NextToken *string `locationName:"nextToken" type:"string"`
  1183. // List of Replication Jobs
  1184. ReplicationJobList []*ReplicationJob `locationName:"replicationJobList" locationNameList:"item" type:"list"`
  1185. }
  1186. // String returns the string representation
  1187. func (s GetReplicationJobsOutput) String() string {
  1188. return awsutil.Prettify(s)
  1189. }
  1190. // GoString returns the string representation
  1191. func (s GetReplicationJobsOutput) GoString() string {
  1192. return s.String()
  1193. }
  1194. type GetReplicationRunsInput struct {
  1195. _ struct{} `type:"structure"`
  1196. // The maximum number of results to return in one API call. If left empty, this
  1197. // will default to 50.
  1198. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  1199. // Pagination token to pass as input to API call
  1200. NextToken *string `locationName:"nextToken" type:"string"`
  1201. // The unique identifier for a Replication Job.
  1202. //
  1203. // ReplicationJobId is a required field
  1204. ReplicationJobId *string `locationName:"replicationJobId" type:"string" required:"true"`
  1205. }
  1206. // String returns the string representation
  1207. func (s GetReplicationRunsInput) String() string {
  1208. return awsutil.Prettify(s)
  1209. }
  1210. // GoString returns the string representation
  1211. func (s GetReplicationRunsInput) GoString() string {
  1212. return s.String()
  1213. }
  1214. // Validate inspects the fields of the type to determine if they are valid.
  1215. func (s *GetReplicationRunsInput) Validate() error {
  1216. invalidParams := request.ErrInvalidParams{Context: "GetReplicationRunsInput"}
  1217. if s.ReplicationJobId == nil {
  1218. invalidParams.Add(request.NewErrParamRequired("ReplicationJobId"))
  1219. }
  1220. if invalidParams.Len() > 0 {
  1221. return invalidParams
  1222. }
  1223. return nil
  1224. }
  1225. type GetReplicationRunsOutput struct {
  1226. _ struct{} `type:"structure"`
  1227. // Pagination token to pass as input to API call
  1228. NextToken *string `locationName:"nextToken" type:"string"`
  1229. // Object representing a Replication Job
  1230. ReplicationJob *ReplicationJob `locationName:"replicationJob" type:"structure"`
  1231. // List of Replication Runs
  1232. ReplicationRunList []*ReplicationRun `locationName:"replicationRunList" locationNameList:"item" type:"list"`
  1233. }
  1234. // String returns the string representation
  1235. func (s GetReplicationRunsOutput) String() string {
  1236. return awsutil.Prettify(s)
  1237. }
  1238. // GoString returns the string representation
  1239. func (s GetReplicationRunsOutput) GoString() string {
  1240. return s.String()
  1241. }
  1242. type GetServersInput struct {
  1243. _ struct{} `type:"structure"`
  1244. // The maximum number of results to return in one API call. If left empty, this
  1245. // will default to 50.
  1246. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  1247. // Pagination token to pass as input to API call
  1248. NextToken *string `locationName:"nextToken" type:"string"`
  1249. }
  1250. // String returns the string representation
  1251. func (s GetServersInput) String() string {
  1252. return awsutil.Prettify(s)
  1253. }
  1254. // GoString returns the string representation
  1255. func (s GetServersInput) GoString() string {
  1256. return s.String()
  1257. }
  1258. type GetServersOutput struct {
  1259. _ struct{} `type:"structure"`
  1260. // Timestamp of an operation
  1261. LastModifiedOn *time.Time `locationName:"lastModifiedOn" type:"timestamp" timestampFormat:"unix"`
  1262. // Pagination token to pass as input to API call
  1263. NextToken *string `locationName:"nextToken" type:"string"`
  1264. // Status of Server catalog
  1265. ServerCatalogStatus *string `locationName:"serverCatalogStatus" type:"string" enum:"ServerCatalogStatus"`
  1266. // List of servers from catalog
  1267. ServerList []*Server `locationName:"serverList" locationNameList:"item" type:"list"`
  1268. }
  1269. // String returns the string representation
  1270. func (s GetServersOutput) String() string {
  1271. return awsutil.Prettify(s)
  1272. }
  1273. // GoString returns the string representation
  1274. func (s GetServersOutput) GoString() string {
  1275. return s.String()
  1276. }
  1277. type ImportServerCatalogInput struct {
  1278. _ struct{} `type:"structure"`
  1279. }
  1280. // String returns the string representation
  1281. func (s ImportServerCatalogInput) String() string {
  1282. return awsutil.Prettify(s)
  1283. }
  1284. // GoString returns the string representation
  1285. func (s ImportServerCatalogInput) GoString() string {
  1286. return s.String()
  1287. }
  1288. type ImportServerCatalogOutput struct {
  1289. _ struct{} `type:"structure"`
  1290. }
  1291. // String returns the string representation
  1292. func (s ImportServerCatalogOutput) String() string {
  1293. return awsutil.Prettify(s)
  1294. }
  1295. // GoString returns the string representation
  1296. func (s ImportServerCatalogOutput) GoString() string {
  1297. return s.String()
  1298. }
  1299. // Object representing a Replication Job
  1300. type ReplicationJob struct {
  1301. _ struct{} `type:"structure"`
  1302. // The description for a Replication Job/Run.
  1303. Description *string `locationName:"description" type:"string"`
  1304. // Interval between Replication Runs. This value is specified in hours, and
  1305. // represents the time between consecutive Replication Runs.
  1306. Frequency *int64 `locationName:"frequency" type:"integer"`
  1307. // The AMI id for the image resulting from a Replication Run.
  1308. LatestAmiId *string `locationName:"latestAmiId" type:"string"`
  1309. // The license type to be used for the Amazon Machine Image (AMI) created after
  1310. // a successful ReplicationRun.
  1311. LicenseType *string `locationName:"licenseType" type:"string" enum:"LicenseType"`
  1312. // Timestamp of an operation
  1313. NextReplicationRunStartTime *time.Time `locationName:"nextReplicationRunStartTime" type:"timestamp" timestampFormat:"unix"`
  1314. // The unique identifier for a Replication Job.
  1315. ReplicationJobId *string `locationName:"replicationJobId" type:"string"`
  1316. // List of Replication Runs
  1317. ReplicationRunList []*ReplicationRun `locationName:"replicationRunList" locationNameList:"item" type:"list"`
  1318. // Name of service role in customer's account to be used by SMS service.
  1319. RoleName *string `locationName:"roleName" type:"string"`
  1320. // Timestamp of an operation
  1321. SeedReplicationTime *time.Time `locationName:"seedReplicationTime" type:"timestamp" timestampFormat:"unix"`
  1322. // Unique Identifier for a server
  1323. ServerId *string `locationName:"serverId" type:"string"`
  1324. // Type of server.
  1325. ServerType *string `locationName:"serverType" type:"string" enum:"ServerType"`
  1326. // Current state of Replication Job
  1327. State *string `locationName:"state" type:"string" enum:"ReplicationJobState"`
  1328. // String describing current status of Replication Job
  1329. StatusMessage *string `locationName:"statusMessage" type:"string"`
  1330. // Object representing a VM server
  1331. VmServer *VmServer `locationName:"vmServer" type:"structure"`
  1332. }
  1333. // String returns the string representation
  1334. func (s ReplicationJob) String() string {
  1335. return awsutil.Prettify(s)
  1336. }
  1337. // GoString returns the string representation
  1338. func (s ReplicationJob) GoString() string {
  1339. return s.String()
  1340. }
  1341. // Object representing a Replication Run
  1342. type ReplicationRun struct {
  1343. _ struct{} `type:"structure"`
  1344. // The AMI id for the image resulting from a Replication Run.
  1345. AmiId *string `locationName:"amiId" type:"string"`
  1346. // Timestamp of an operation
  1347. CompletedTime *time.Time `locationName:"completedTime" type:"timestamp" timestampFormat:"unix"`
  1348. // The description for a Replication Job/Run.
  1349. Description *string `locationName:"description" type:"string"`
  1350. // The unique identifier for a Replication Run.
  1351. ReplicationRunId *string `locationName:"replicationRunId" type:"string"`
  1352. // Timestamp of an operation
  1353. ScheduledStartTime *time.Time `locationName:"scheduledStartTime" type:"timestamp" timestampFormat:"unix"`
  1354. // Current state of Replication Run
  1355. State *string `locationName:"state" type:"string" enum:"ReplicationRunState"`
  1356. // String describing current status of Replication Run
  1357. StatusMessage *string `locationName:"statusMessage" type:"string"`
  1358. // Type of Replication Run
  1359. Type *string `locationName:"type" type:"string" enum:"ReplicationRunType"`
  1360. }
  1361. // String returns the string representation
  1362. func (s ReplicationRun) String() string {
  1363. return awsutil.Prettify(s)
  1364. }
  1365. // GoString returns the string representation
  1366. func (s ReplicationRun) GoString() string {
  1367. return s.String()
  1368. }
  1369. // Object representing a server
  1370. type Server struct {
  1371. _ struct{} `type:"structure"`
  1372. // The unique identifier for a Replication Job.
  1373. ReplicationJobId *string `locationName:"replicationJobId" type:"string"`
  1374. // An indicator of the Replication Job being deleted or failed.
  1375. ReplicationJobTerminated *bool `locationName:"replicationJobTerminated" type:"boolean"`
  1376. // Unique Identifier for a server
  1377. ServerId *string `locationName:"serverId" type:"string"`
  1378. // Type of server.
  1379. ServerType *string `locationName:"serverType" type:"string" enum:"ServerType"`
  1380. // Object representing a VM server
  1381. VmServer *VmServer `locationName:"vmServer" type:"structure"`
  1382. }
  1383. // String returns the string representation
  1384. func (s Server) String() string {
  1385. return awsutil.Prettify(s)
  1386. }
  1387. // GoString returns the string representation
  1388. func (s Server) GoString() string {
  1389. return s.String()
  1390. }
  1391. type StartOnDemandReplicationRunInput struct {
  1392. _ struct{} `type:"structure"`
  1393. // The description for a Replication Job/Run.
  1394. Description *string `locationName:"description" type:"string"`
  1395. // The unique identifier for a Replication Job.
  1396. //
  1397. // ReplicationJobId is a required field
  1398. ReplicationJobId *string `locationName:"replicationJobId" type:"string" required:"true"`
  1399. }
  1400. // String returns the string representation
  1401. func (s StartOnDemandReplicationRunInput) String() string {
  1402. return awsutil.Prettify(s)
  1403. }
  1404. // GoString returns the string representation
  1405. func (s StartOnDemandReplicationRunInput) GoString() string {
  1406. return s.String()
  1407. }
  1408. // Validate inspects the fields of the type to determine if they are valid.
  1409. func (s *StartOnDemandReplicationRunInput) Validate() error {
  1410. invalidParams := request.ErrInvalidParams{Context: "StartOnDemandReplicationRunInput"}
  1411. if s.ReplicationJobId == nil {
  1412. invalidParams.Add(request.NewErrParamRequired("ReplicationJobId"))
  1413. }
  1414. if invalidParams.Len() > 0 {
  1415. return invalidParams
  1416. }
  1417. return nil
  1418. }
  1419. type StartOnDemandReplicationRunOutput struct {
  1420. _ struct{} `type:"structure"`
  1421. // The unique identifier for a Replication Run.
  1422. ReplicationRunId *string `locationName:"replicationRunId" type:"string"`
  1423. }
  1424. // String returns the string representation
  1425. func (s StartOnDemandReplicationRunOutput) String() string {
  1426. return awsutil.Prettify(s)
  1427. }
  1428. // GoString returns the string representation
  1429. func (s StartOnDemandReplicationRunOutput) GoString() string {
  1430. return s.String()
  1431. }
  1432. type UpdateReplicationJobInput struct {
  1433. _ struct{} `type:"structure"`
  1434. // The description for a Replication Job/Run.
  1435. Description *string `locationName:"description" type:"string"`
  1436. // Interval between Replication Runs. This value is specified in hours, and
  1437. // represents the time between consecutive Replication Runs.
  1438. Frequency *int64 `locationName:"frequency" type:"integer"`
  1439. // The license type to be used for the Amazon Machine Image (AMI) created after
  1440. // a successful ReplicationRun.
  1441. LicenseType *string `locationName:"licenseType" type:"string" enum:"LicenseType"`
  1442. // Timestamp of an operation
  1443. NextReplicationRunStartTime *time.Time `locationName:"nextReplicationRunStartTime" type:"timestamp" timestampFormat:"unix"`
  1444. // The unique identifier for a Replication Job.
  1445. //
  1446. // ReplicationJobId is a required field
  1447. ReplicationJobId *string `locationName:"replicationJobId" type:"string" required:"true"`
  1448. // Name of service role in customer's account to be used by SMS service.
  1449. RoleName *string `locationName:"roleName" type:"string"`
  1450. }
  1451. // String returns the string representation
  1452. func (s UpdateReplicationJobInput) String() string {
  1453. return awsutil.Prettify(s)
  1454. }
  1455. // GoString returns the string representation
  1456. func (s UpdateReplicationJobInput) GoString() string {
  1457. return s.String()
  1458. }
  1459. // Validate inspects the fields of the type to determine if they are valid.
  1460. func (s *UpdateReplicationJobInput) Validate() error {
  1461. invalidParams := request.ErrInvalidParams{Context: "UpdateReplicationJobInput"}
  1462. if s.ReplicationJobId == nil {
  1463. invalidParams.Add(request.NewErrParamRequired("ReplicationJobId"))
  1464. }
  1465. if invalidParams.Len() > 0 {
  1466. return invalidParams
  1467. }
  1468. return nil
  1469. }
  1470. type UpdateReplicationJobOutput struct {
  1471. _ struct{} `type:"structure"`
  1472. }
  1473. // String returns the string representation
  1474. func (s UpdateReplicationJobOutput) String() string {
  1475. return awsutil.Prettify(s)
  1476. }
  1477. // GoString returns the string representation
  1478. func (s UpdateReplicationJobOutput) GoString() string {
  1479. return s.String()
  1480. }
  1481. // Object representing a VM server
  1482. type VmServer struct {
  1483. _ struct{} `type:"structure"`
  1484. // VM Manager Name
  1485. VmManagerName *string `locationName:"vmManagerName" type:"string"`
  1486. // VM Management Product
  1487. VmManagerType *string `locationName:"vmManagerType" type:"string" enum:"VmManagerType"`
  1488. // Name of Virtual Machine
  1489. VmName *string `locationName:"vmName" type:"string"`
  1490. // Path to VM
  1491. VmPath *string `locationName:"vmPath" type:"string"`
  1492. // Object representing a server's location
  1493. VmServerAddress *VmServerAddress `locationName:"vmServerAddress" type:"structure"`
  1494. }
  1495. // String returns the string representation
  1496. func (s VmServer) String() string {
  1497. return awsutil.Prettify(s)
  1498. }
  1499. // GoString returns the string representation
  1500. func (s VmServer) GoString() string {
  1501. return s.String()
  1502. }
  1503. // Object representing a server's location
  1504. type VmServerAddress struct {
  1505. _ struct{} `type:"structure"`
  1506. // Unique Identifier for a VM
  1507. VmId *string `locationName:"vmId" type:"string"`
  1508. // Unique Identifier for VM Manager
  1509. VmManagerId *string `locationName:"vmManagerId" type:"string"`
  1510. }
  1511. // String returns the string representation
  1512. func (s VmServerAddress) String() string {
  1513. return awsutil.Prettify(s)
  1514. }
  1515. // GoString returns the string representation
  1516. func (s VmServerAddress) GoString() string {
  1517. return s.String()
  1518. }
  1519. // Capabilities for a Connector
  1520. const (
  1521. // ConnectorCapabilityVsphere is a ConnectorCapability enum value
  1522. ConnectorCapabilityVsphere = "VSPHERE"
  1523. )
  1524. // Status of on-premise Connector
  1525. const (
  1526. // ConnectorStatusHealthy is a ConnectorStatus enum value
  1527. ConnectorStatusHealthy = "HEALTHY"
  1528. // ConnectorStatusUnhealthy is a ConnectorStatus enum value
  1529. ConnectorStatusUnhealthy = "UNHEALTHY"
  1530. )
  1531. // The license type to be used for the Amazon Machine Image (AMI) created after
  1532. // a successful ReplicationRun.
  1533. const (
  1534. // LicenseTypeAws is a LicenseType enum value
  1535. LicenseTypeAws = "AWS"
  1536. // LicenseTypeByol is a LicenseType enum value
  1537. LicenseTypeByol = "BYOL"
  1538. )
  1539. // Current state of Replication Job
  1540. const (
  1541. // ReplicationJobStatePending is a ReplicationJobState enum value
  1542. ReplicationJobStatePending = "PENDING"
  1543. // ReplicationJobStateActive is a ReplicationJobState enum value
  1544. ReplicationJobStateActive = "ACTIVE"
  1545. // ReplicationJobStateFailed is a ReplicationJobState enum value
  1546. ReplicationJobStateFailed = "FAILED"
  1547. // ReplicationJobStateDeleting is a ReplicationJobState enum value
  1548. ReplicationJobStateDeleting = "DELETING"
  1549. // ReplicationJobStateDeleted is a ReplicationJobState enum value
  1550. ReplicationJobStateDeleted = "DELETED"
  1551. )
  1552. // Current state of Replication Run
  1553. const (
  1554. // ReplicationRunStatePending is a ReplicationRunState enum value
  1555. ReplicationRunStatePending = "PENDING"
  1556. // ReplicationRunStateMissed is a ReplicationRunState enum value
  1557. ReplicationRunStateMissed = "MISSED"
  1558. // ReplicationRunStateActive is a ReplicationRunState enum value
  1559. ReplicationRunStateActive = "ACTIVE"
  1560. // ReplicationRunStateFailed is a ReplicationRunState enum value
  1561. ReplicationRunStateFailed = "FAILED"
  1562. // ReplicationRunStateCompleted is a ReplicationRunState enum value
  1563. ReplicationRunStateCompleted = "COMPLETED"
  1564. // ReplicationRunStateDeleting is a ReplicationRunState enum value
  1565. ReplicationRunStateDeleting = "DELETING"
  1566. // ReplicationRunStateDeleted is a ReplicationRunState enum value
  1567. ReplicationRunStateDeleted = "DELETED"
  1568. )
  1569. // Type of Replication Run
  1570. const (
  1571. // ReplicationRunTypeOnDemand is a ReplicationRunType enum value
  1572. ReplicationRunTypeOnDemand = "ON_DEMAND"
  1573. // ReplicationRunTypeAutomatic is a ReplicationRunType enum value
  1574. ReplicationRunTypeAutomatic = "AUTOMATIC"
  1575. )
  1576. // Status of Server catalog
  1577. const (
  1578. // ServerCatalogStatusNotImported is a ServerCatalogStatus enum value
  1579. ServerCatalogStatusNotImported = "NOT_IMPORTED"
  1580. // ServerCatalogStatusImporting is a ServerCatalogStatus enum value
  1581. ServerCatalogStatusImporting = "IMPORTING"
  1582. // ServerCatalogStatusAvailable is a ServerCatalogStatus enum value
  1583. ServerCatalogStatusAvailable = "AVAILABLE"
  1584. // ServerCatalogStatusDeleted is a ServerCatalogStatus enum value
  1585. ServerCatalogStatusDeleted = "DELETED"
  1586. // ServerCatalogStatusExpired is a ServerCatalogStatus enum value
  1587. ServerCatalogStatusExpired = "EXPIRED"
  1588. )
  1589. // Type of server.
  1590. const (
  1591. // ServerTypeVirtualMachine is a ServerType enum value
  1592. ServerTypeVirtualMachine = "VIRTUAL_MACHINE"
  1593. )
  1594. // VM Management Product
  1595. const (
  1596. // VmManagerTypeVsphere is a VmManagerType enum value
  1597. VmManagerTypeVsphere = "VSPHERE"
  1598. )