api.go 135 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706
  1. // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
  2. package migrationhub
  3. import (
  4. "fmt"
  5. "time"
  6. "github.com/aws/aws-sdk-go/aws"
  7. "github.com/aws/aws-sdk-go/aws/awsutil"
  8. "github.com/aws/aws-sdk-go/aws/request"
  9. "github.com/aws/aws-sdk-go/private/protocol"
  10. "github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
  11. )
  12. const opAssociateCreatedArtifact = "AssociateCreatedArtifact"
  13. // AssociateCreatedArtifactRequest generates a "aws/request.Request" representing the
  14. // client's request for the AssociateCreatedArtifact operation. The "output" return
  15. // value will be populated with the request's response once the request completes
  16. // successfully.
  17. //
  18. // Use "Send" method on the returned Request to send the API call to the service.
  19. // the "output" return value is not valid until after Send returns without error.
  20. //
  21. // See AssociateCreatedArtifact for more information on using the AssociateCreatedArtifact
  22. // API call, and error handling.
  23. //
  24. // This method is useful when you want to inject custom logic or configuration
  25. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  26. //
  27. //
  28. // // Example sending a request using the AssociateCreatedArtifactRequest method.
  29. // req, resp := client.AssociateCreatedArtifactRequest(params)
  30. //
  31. // err := req.Send()
  32. // if err == nil { // resp is now filled
  33. // fmt.Println(resp)
  34. // }
  35. //
  36. // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/AssociateCreatedArtifact
  37. func (c *MigrationHub) AssociateCreatedArtifactRequest(input *AssociateCreatedArtifactInput) (req *request.Request, output *AssociateCreatedArtifactOutput) {
  38. op := &request.Operation{
  39. Name: opAssociateCreatedArtifact,
  40. HTTPMethod: "POST",
  41. HTTPPath: "/",
  42. }
  43. if input == nil {
  44. input = &AssociateCreatedArtifactInput{}
  45. }
  46. output = &AssociateCreatedArtifactOutput{}
  47. req = c.newRequest(op, input, output)
  48. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  49. return
  50. }
  51. // AssociateCreatedArtifact API operation for AWS Migration Hub.
  52. //
  53. // Associates a created artifact of an AWS cloud resource, the target receiving
  54. // the migration, with the migration task performed by a migration tool. This
  55. // API has the following traits:
  56. //
  57. // * Migration tools can call the AssociateCreatedArtifact operation to indicate
  58. // which AWS artifact is associated with a migration task.
  59. //
  60. // * The created artifact name must be provided in ARN (Amazon Resource Name)
  61. // format which will contain information about type and region; for example:
  62. // arn:aws:ec2:us-east-1:488216288981:image/ami-6d0ba87b.
  63. //
  64. // * Examples of the AWS resource behind the created artifact are, AMI's,
  65. // EC2 instance, or DMS endpoint, etc.
  66. //
  67. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  68. // with awserr.Error's Code and Message methods to get detailed information about
  69. // the error.
  70. //
  71. // See the AWS API reference guide for AWS Migration Hub's
  72. // API operation AssociateCreatedArtifact for usage and error information.
  73. //
  74. // Returned Error Codes:
  75. // * ErrCodeAccessDeniedException "AccessDeniedException"
  76. // You do not have sufficient access to perform this action.
  77. //
  78. // * ErrCodeInternalServerError "InternalServerError"
  79. // Exception raised when there is an internal, configuration, or dependency
  80. // error encountered.
  81. //
  82. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  83. // Exception raised when there is an internal, configuration, or dependency
  84. // error encountered.
  85. //
  86. // * ErrCodeDryRunOperation "DryRunOperation"
  87. // Exception raised to indicate a successfully authorized action when the DryRun
  88. // flag is set to "true".
  89. //
  90. // * ErrCodeUnauthorizedOperation "UnauthorizedOperation"
  91. // Exception raised to indicate a request was not authorized when the DryRun
  92. // flag is set to "true".
  93. //
  94. // * ErrCodeInvalidInputException "InvalidInputException"
  95. // Exception raised when the provided input violates a policy constraint or
  96. // is entered in the wrong format or data type.
  97. //
  98. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  99. // Exception raised when the request references a resource (ADS configuration,
  100. // update stream, migration task, etc.) that does not exist in ADS (Application
  101. // Discovery Service) or in Migration Hub's repository.
  102. //
  103. // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/AssociateCreatedArtifact
  104. func (c *MigrationHub) AssociateCreatedArtifact(input *AssociateCreatedArtifactInput) (*AssociateCreatedArtifactOutput, error) {
  105. req, out := c.AssociateCreatedArtifactRequest(input)
  106. return out, req.Send()
  107. }
  108. // AssociateCreatedArtifactWithContext is the same as AssociateCreatedArtifact with the addition of
  109. // the ability to pass a context and additional request options.
  110. //
  111. // See AssociateCreatedArtifact for details on how to use this API operation.
  112. //
  113. // The context must be non-nil and will be used for request cancellation. If
  114. // the context is nil a panic will occur. In the future the SDK may create
  115. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  116. // for more information on using Contexts.
  117. func (c *MigrationHub) AssociateCreatedArtifactWithContext(ctx aws.Context, input *AssociateCreatedArtifactInput, opts ...request.Option) (*AssociateCreatedArtifactOutput, error) {
  118. req, out := c.AssociateCreatedArtifactRequest(input)
  119. req.SetContext(ctx)
  120. req.ApplyOptions(opts...)
  121. return out, req.Send()
  122. }
  123. const opAssociateDiscoveredResource = "AssociateDiscoveredResource"
  124. // AssociateDiscoveredResourceRequest generates a "aws/request.Request" representing the
  125. // client's request for the AssociateDiscoveredResource operation. The "output" return
  126. // value will be populated with the request's response once the request completes
  127. // successfully.
  128. //
  129. // Use "Send" method on the returned Request to send the API call to the service.
  130. // the "output" return value is not valid until after Send returns without error.
  131. //
  132. // See AssociateDiscoveredResource for more information on using the AssociateDiscoveredResource
  133. // API call, and error handling.
  134. //
  135. // This method is useful when you want to inject custom logic or configuration
  136. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  137. //
  138. //
  139. // // Example sending a request using the AssociateDiscoveredResourceRequest method.
  140. // req, resp := client.AssociateDiscoveredResourceRequest(params)
  141. //
  142. // err := req.Send()
  143. // if err == nil { // resp is now filled
  144. // fmt.Println(resp)
  145. // }
  146. //
  147. // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/AssociateDiscoveredResource
  148. func (c *MigrationHub) AssociateDiscoveredResourceRequest(input *AssociateDiscoveredResourceInput) (req *request.Request, output *AssociateDiscoveredResourceOutput) {
  149. op := &request.Operation{
  150. Name: opAssociateDiscoveredResource,
  151. HTTPMethod: "POST",
  152. HTTPPath: "/",
  153. }
  154. if input == nil {
  155. input = &AssociateDiscoveredResourceInput{}
  156. }
  157. output = &AssociateDiscoveredResourceOutput{}
  158. req = c.newRequest(op, input, output)
  159. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  160. return
  161. }
  162. // AssociateDiscoveredResource API operation for AWS Migration Hub.
  163. //
  164. // Associates a discovered resource ID from Application Discovery Service (ADS)
  165. // with a migration task.
  166. //
  167. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  168. // with awserr.Error's Code and Message methods to get detailed information about
  169. // the error.
  170. //
  171. // See the AWS API reference guide for AWS Migration Hub's
  172. // API operation AssociateDiscoveredResource for usage and error information.
  173. //
  174. // Returned Error Codes:
  175. // * ErrCodeAccessDeniedException "AccessDeniedException"
  176. // You do not have sufficient access to perform this action.
  177. //
  178. // * ErrCodeInternalServerError "InternalServerError"
  179. // Exception raised when there is an internal, configuration, or dependency
  180. // error encountered.
  181. //
  182. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  183. // Exception raised when there is an internal, configuration, or dependency
  184. // error encountered.
  185. //
  186. // * ErrCodeDryRunOperation "DryRunOperation"
  187. // Exception raised to indicate a successfully authorized action when the DryRun
  188. // flag is set to "true".
  189. //
  190. // * ErrCodeUnauthorizedOperation "UnauthorizedOperation"
  191. // Exception raised to indicate a request was not authorized when the DryRun
  192. // flag is set to "true".
  193. //
  194. // * ErrCodeInvalidInputException "InvalidInputException"
  195. // Exception raised when the provided input violates a policy constraint or
  196. // is entered in the wrong format or data type.
  197. //
  198. // * ErrCodePolicyErrorException "PolicyErrorException"
  199. // Exception raised when there are problems accessing ADS (Application Discovery
  200. // Service); most likely due to a misconfigured policy or the migrationhub-discovery
  201. // role is missing or not configured correctly.
  202. //
  203. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  204. // Exception raised when the request references a resource (ADS configuration,
  205. // update stream, migration task, etc.) that does not exist in ADS (Application
  206. // Discovery Service) or in Migration Hub's repository.
  207. //
  208. // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/AssociateDiscoveredResource
  209. func (c *MigrationHub) AssociateDiscoveredResource(input *AssociateDiscoveredResourceInput) (*AssociateDiscoveredResourceOutput, error) {
  210. req, out := c.AssociateDiscoveredResourceRequest(input)
  211. return out, req.Send()
  212. }
  213. // AssociateDiscoveredResourceWithContext is the same as AssociateDiscoveredResource with the addition of
  214. // the ability to pass a context and additional request options.
  215. //
  216. // See AssociateDiscoveredResource for details on how to use this API operation.
  217. //
  218. // The context must be non-nil and will be used for request cancellation. If
  219. // the context is nil a panic will occur. In the future the SDK may create
  220. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  221. // for more information on using Contexts.
  222. func (c *MigrationHub) AssociateDiscoveredResourceWithContext(ctx aws.Context, input *AssociateDiscoveredResourceInput, opts ...request.Option) (*AssociateDiscoveredResourceOutput, error) {
  223. req, out := c.AssociateDiscoveredResourceRequest(input)
  224. req.SetContext(ctx)
  225. req.ApplyOptions(opts...)
  226. return out, req.Send()
  227. }
  228. const opCreateProgressUpdateStream = "CreateProgressUpdateStream"
  229. // CreateProgressUpdateStreamRequest generates a "aws/request.Request" representing the
  230. // client's request for the CreateProgressUpdateStream operation. The "output" return
  231. // value will be populated with the request's response once the request completes
  232. // successfully.
  233. //
  234. // Use "Send" method on the returned Request to send the API call to the service.
  235. // the "output" return value is not valid until after Send returns without error.
  236. //
  237. // See CreateProgressUpdateStream for more information on using the CreateProgressUpdateStream
  238. // API call, and error handling.
  239. //
  240. // This method is useful when you want to inject custom logic or configuration
  241. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  242. //
  243. //
  244. // // Example sending a request using the CreateProgressUpdateStreamRequest method.
  245. // req, resp := client.CreateProgressUpdateStreamRequest(params)
  246. //
  247. // err := req.Send()
  248. // if err == nil { // resp is now filled
  249. // fmt.Println(resp)
  250. // }
  251. //
  252. // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/CreateProgressUpdateStream
  253. func (c *MigrationHub) CreateProgressUpdateStreamRequest(input *CreateProgressUpdateStreamInput) (req *request.Request, output *CreateProgressUpdateStreamOutput) {
  254. op := &request.Operation{
  255. Name: opCreateProgressUpdateStream,
  256. HTTPMethod: "POST",
  257. HTTPPath: "/",
  258. }
  259. if input == nil {
  260. input = &CreateProgressUpdateStreamInput{}
  261. }
  262. output = &CreateProgressUpdateStreamOutput{}
  263. req = c.newRequest(op, input, output)
  264. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  265. return
  266. }
  267. // CreateProgressUpdateStream API operation for AWS Migration Hub.
  268. //
  269. // Creates a progress update stream which is an AWS resource used for access
  270. // control as well as a namespace for migration task names that is implicitly
  271. // linked to your AWS account. It must uniquely identify the migration tool
  272. // as it is used for all updates made by the tool; however, it does not need
  273. // to be unique for each AWS account because it is scoped to the AWS account.
  274. //
  275. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  276. // with awserr.Error's Code and Message methods to get detailed information about
  277. // the error.
  278. //
  279. // See the AWS API reference guide for AWS Migration Hub's
  280. // API operation CreateProgressUpdateStream for usage and error information.
  281. //
  282. // Returned Error Codes:
  283. // * ErrCodeAccessDeniedException "AccessDeniedException"
  284. // You do not have sufficient access to perform this action.
  285. //
  286. // * ErrCodeInternalServerError "InternalServerError"
  287. // Exception raised when there is an internal, configuration, or dependency
  288. // error encountered.
  289. //
  290. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  291. // Exception raised when there is an internal, configuration, or dependency
  292. // error encountered.
  293. //
  294. // * ErrCodeDryRunOperation "DryRunOperation"
  295. // Exception raised to indicate a successfully authorized action when the DryRun
  296. // flag is set to "true".
  297. //
  298. // * ErrCodeUnauthorizedOperation "UnauthorizedOperation"
  299. // Exception raised to indicate a request was not authorized when the DryRun
  300. // flag is set to "true".
  301. //
  302. // * ErrCodeInvalidInputException "InvalidInputException"
  303. // Exception raised when the provided input violates a policy constraint or
  304. // is entered in the wrong format or data type.
  305. //
  306. // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/CreateProgressUpdateStream
  307. func (c *MigrationHub) CreateProgressUpdateStream(input *CreateProgressUpdateStreamInput) (*CreateProgressUpdateStreamOutput, error) {
  308. req, out := c.CreateProgressUpdateStreamRequest(input)
  309. return out, req.Send()
  310. }
  311. // CreateProgressUpdateStreamWithContext is the same as CreateProgressUpdateStream with the addition of
  312. // the ability to pass a context and additional request options.
  313. //
  314. // See CreateProgressUpdateStream for details on how to use this API operation.
  315. //
  316. // The context must be non-nil and will be used for request cancellation. If
  317. // the context is nil a panic will occur. In the future the SDK may create
  318. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  319. // for more information on using Contexts.
  320. func (c *MigrationHub) CreateProgressUpdateStreamWithContext(ctx aws.Context, input *CreateProgressUpdateStreamInput, opts ...request.Option) (*CreateProgressUpdateStreamOutput, error) {
  321. req, out := c.CreateProgressUpdateStreamRequest(input)
  322. req.SetContext(ctx)
  323. req.ApplyOptions(opts...)
  324. return out, req.Send()
  325. }
  326. const opDeleteProgressUpdateStream = "DeleteProgressUpdateStream"
  327. // DeleteProgressUpdateStreamRequest generates a "aws/request.Request" representing the
  328. // client's request for the DeleteProgressUpdateStream operation. The "output" return
  329. // value will be populated with the request's response once the request completes
  330. // successfully.
  331. //
  332. // Use "Send" method on the returned Request to send the API call to the service.
  333. // the "output" return value is not valid until after Send returns without error.
  334. //
  335. // See DeleteProgressUpdateStream for more information on using the DeleteProgressUpdateStream
  336. // API call, and error handling.
  337. //
  338. // This method is useful when you want to inject custom logic or configuration
  339. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  340. //
  341. //
  342. // // Example sending a request using the DeleteProgressUpdateStreamRequest method.
  343. // req, resp := client.DeleteProgressUpdateStreamRequest(params)
  344. //
  345. // err := req.Send()
  346. // if err == nil { // resp is now filled
  347. // fmt.Println(resp)
  348. // }
  349. //
  350. // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/DeleteProgressUpdateStream
  351. func (c *MigrationHub) DeleteProgressUpdateStreamRequest(input *DeleteProgressUpdateStreamInput) (req *request.Request, output *DeleteProgressUpdateStreamOutput) {
  352. op := &request.Operation{
  353. Name: opDeleteProgressUpdateStream,
  354. HTTPMethod: "POST",
  355. HTTPPath: "/",
  356. }
  357. if input == nil {
  358. input = &DeleteProgressUpdateStreamInput{}
  359. }
  360. output = &DeleteProgressUpdateStreamOutput{}
  361. req = c.newRequest(op, input, output)
  362. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  363. return
  364. }
  365. // DeleteProgressUpdateStream API operation for AWS Migration Hub.
  366. //
  367. // Deletes a progress update stream, including all of its tasks, which was previously
  368. // created as an AWS resource used for access control. This API has the following
  369. // traits:
  370. //
  371. // * The only parameter needed for DeleteProgressUpdateStream is the stream
  372. // name (same as a CreateProgressUpdateStream call).
  373. //
  374. // * The call will return, and a background process will asynchronously delete
  375. // the stream and all of its resources (tasks, associated resources, resource
  376. // attributes, created artifacts).
  377. //
  378. // * If the stream takes time to be deleted, it might still show up on a
  379. // ListProgressUpdateStreams call.
  380. //
  381. // * CreateProgressUpdateStream, ImportMigrationTask, NotifyMigrationTaskState,
  382. // and all Associate[*] APIs realted to the tasks belonging to the stream
  383. // will throw "InvalidInputException" if the stream of the same name is in
  384. // the process of being deleted.
  385. //
  386. // * Once the stream and all of its resources are deleted, CreateProgressUpdateStream
  387. // for a stream of the same name will succeed, and that stream will be an
  388. // entirely new logical resource (without any resources associated with the
  389. // old stream).
  390. //
  391. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  392. // with awserr.Error's Code and Message methods to get detailed information about
  393. // the error.
  394. //
  395. // See the AWS API reference guide for AWS Migration Hub's
  396. // API operation DeleteProgressUpdateStream for usage and error information.
  397. //
  398. // Returned Error Codes:
  399. // * ErrCodeAccessDeniedException "AccessDeniedException"
  400. // You do not have sufficient access to perform this action.
  401. //
  402. // * ErrCodeInternalServerError "InternalServerError"
  403. // Exception raised when there is an internal, configuration, or dependency
  404. // error encountered.
  405. //
  406. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  407. // Exception raised when there is an internal, configuration, or dependency
  408. // error encountered.
  409. //
  410. // * ErrCodeDryRunOperation "DryRunOperation"
  411. // Exception raised to indicate a successfully authorized action when the DryRun
  412. // flag is set to "true".
  413. //
  414. // * ErrCodeUnauthorizedOperation "UnauthorizedOperation"
  415. // Exception raised to indicate a request was not authorized when the DryRun
  416. // flag is set to "true".
  417. //
  418. // * ErrCodeInvalidInputException "InvalidInputException"
  419. // Exception raised when the provided input violates a policy constraint or
  420. // is entered in the wrong format or data type.
  421. //
  422. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  423. // Exception raised when the request references a resource (ADS configuration,
  424. // update stream, migration task, etc.) that does not exist in ADS (Application
  425. // Discovery Service) or in Migration Hub's repository.
  426. //
  427. // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/DeleteProgressUpdateStream
  428. func (c *MigrationHub) DeleteProgressUpdateStream(input *DeleteProgressUpdateStreamInput) (*DeleteProgressUpdateStreamOutput, error) {
  429. req, out := c.DeleteProgressUpdateStreamRequest(input)
  430. return out, req.Send()
  431. }
  432. // DeleteProgressUpdateStreamWithContext is the same as DeleteProgressUpdateStream with the addition of
  433. // the ability to pass a context and additional request options.
  434. //
  435. // See DeleteProgressUpdateStream for details on how to use this API operation.
  436. //
  437. // The context must be non-nil and will be used for request cancellation. If
  438. // the context is nil a panic will occur. In the future the SDK may create
  439. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  440. // for more information on using Contexts.
  441. func (c *MigrationHub) DeleteProgressUpdateStreamWithContext(ctx aws.Context, input *DeleteProgressUpdateStreamInput, opts ...request.Option) (*DeleteProgressUpdateStreamOutput, error) {
  442. req, out := c.DeleteProgressUpdateStreamRequest(input)
  443. req.SetContext(ctx)
  444. req.ApplyOptions(opts...)
  445. return out, req.Send()
  446. }
  447. const opDescribeApplicationState = "DescribeApplicationState"
  448. // DescribeApplicationStateRequest generates a "aws/request.Request" representing the
  449. // client's request for the DescribeApplicationState operation. The "output" return
  450. // value will be populated with the request's response once the request completes
  451. // successfully.
  452. //
  453. // Use "Send" method on the returned Request to send the API call to the service.
  454. // the "output" return value is not valid until after Send returns without error.
  455. //
  456. // See DescribeApplicationState for more information on using the DescribeApplicationState
  457. // API call, and error handling.
  458. //
  459. // This method is useful when you want to inject custom logic or configuration
  460. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  461. //
  462. //
  463. // // Example sending a request using the DescribeApplicationStateRequest method.
  464. // req, resp := client.DescribeApplicationStateRequest(params)
  465. //
  466. // err := req.Send()
  467. // if err == nil { // resp is now filled
  468. // fmt.Println(resp)
  469. // }
  470. //
  471. // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/DescribeApplicationState
  472. func (c *MigrationHub) DescribeApplicationStateRequest(input *DescribeApplicationStateInput) (req *request.Request, output *DescribeApplicationStateOutput) {
  473. op := &request.Operation{
  474. Name: opDescribeApplicationState,
  475. HTTPMethod: "POST",
  476. HTTPPath: "/",
  477. }
  478. if input == nil {
  479. input = &DescribeApplicationStateInput{}
  480. }
  481. output = &DescribeApplicationStateOutput{}
  482. req = c.newRequest(op, input, output)
  483. return
  484. }
  485. // DescribeApplicationState API operation for AWS Migration Hub.
  486. //
  487. // Gets the migration status of an application.
  488. //
  489. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  490. // with awserr.Error's Code and Message methods to get detailed information about
  491. // the error.
  492. //
  493. // See the AWS API reference guide for AWS Migration Hub's
  494. // API operation DescribeApplicationState for usage and error information.
  495. //
  496. // Returned Error Codes:
  497. // * ErrCodeAccessDeniedException "AccessDeniedException"
  498. // You do not have sufficient access to perform this action.
  499. //
  500. // * ErrCodeInternalServerError "InternalServerError"
  501. // Exception raised when there is an internal, configuration, or dependency
  502. // error encountered.
  503. //
  504. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  505. // Exception raised when there is an internal, configuration, or dependency
  506. // error encountered.
  507. //
  508. // * ErrCodeInvalidInputException "InvalidInputException"
  509. // Exception raised when the provided input violates a policy constraint or
  510. // is entered in the wrong format or data type.
  511. //
  512. // * ErrCodePolicyErrorException "PolicyErrorException"
  513. // Exception raised when there are problems accessing ADS (Application Discovery
  514. // Service); most likely due to a misconfigured policy or the migrationhub-discovery
  515. // role is missing or not configured correctly.
  516. //
  517. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  518. // Exception raised when the request references a resource (ADS configuration,
  519. // update stream, migration task, etc.) that does not exist in ADS (Application
  520. // Discovery Service) or in Migration Hub's repository.
  521. //
  522. // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/DescribeApplicationState
  523. func (c *MigrationHub) DescribeApplicationState(input *DescribeApplicationStateInput) (*DescribeApplicationStateOutput, error) {
  524. req, out := c.DescribeApplicationStateRequest(input)
  525. return out, req.Send()
  526. }
  527. // DescribeApplicationStateWithContext is the same as DescribeApplicationState with the addition of
  528. // the ability to pass a context and additional request options.
  529. //
  530. // See DescribeApplicationState for details on how to use this API operation.
  531. //
  532. // The context must be non-nil and will be used for request cancellation. If
  533. // the context is nil a panic will occur. In the future the SDK may create
  534. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  535. // for more information on using Contexts.
  536. func (c *MigrationHub) DescribeApplicationStateWithContext(ctx aws.Context, input *DescribeApplicationStateInput, opts ...request.Option) (*DescribeApplicationStateOutput, error) {
  537. req, out := c.DescribeApplicationStateRequest(input)
  538. req.SetContext(ctx)
  539. req.ApplyOptions(opts...)
  540. return out, req.Send()
  541. }
  542. const opDescribeMigrationTask = "DescribeMigrationTask"
  543. // DescribeMigrationTaskRequest generates a "aws/request.Request" representing the
  544. // client's request for the DescribeMigrationTask operation. The "output" return
  545. // value will be populated with the request's response once the request completes
  546. // successfully.
  547. //
  548. // Use "Send" method on the returned Request to send the API call to the service.
  549. // the "output" return value is not valid until after Send returns without error.
  550. //
  551. // See DescribeMigrationTask for more information on using the DescribeMigrationTask
  552. // API call, and error handling.
  553. //
  554. // This method is useful when you want to inject custom logic or configuration
  555. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  556. //
  557. //
  558. // // Example sending a request using the DescribeMigrationTaskRequest method.
  559. // req, resp := client.DescribeMigrationTaskRequest(params)
  560. //
  561. // err := req.Send()
  562. // if err == nil { // resp is now filled
  563. // fmt.Println(resp)
  564. // }
  565. //
  566. // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/DescribeMigrationTask
  567. func (c *MigrationHub) DescribeMigrationTaskRequest(input *DescribeMigrationTaskInput) (req *request.Request, output *DescribeMigrationTaskOutput) {
  568. op := &request.Operation{
  569. Name: opDescribeMigrationTask,
  570. HTTPMethod: "POST",
  571. HTTPPath: "/",
  572. }
  573. if input == nil {
  574. input = &DescribeMigrationTaskInput{}
  575. }
  576. output = &DescribeMigrationTaskOutput{}
  577. req = c.newRequest(op, input, output)
  578. return
  579. }
  580. // DescribeMigrationTask API operation for AWS Migration Hub.
  581. //
  582. // Retrieves a list of all attributes associated with a specific migration task.
  583. //
  584. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  585. // with awserr.Error's Code and Message methods to get detailed information about
  586. // the error.
  587. //
  588. // See the AWS API reference guide for AWS Migration Hub's
  589. // API operation DescribeMigrationTask for usage and error information.
  590. //
  591. // Returned Error Codes:
  592. // * ErrCodeAccessDeniedException "AccessDeniedException"
  593. // You do not have sufficient access to perform this action.
  594. //
  595. // * ErrCodeInternalServerError "InternalServerError"
  596. // Exception raised when there is an internal, configuration, or dependency
  597. // error encountered.
  598. //
  599. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  600. // Exception raised when there is an internal, configuration, or dependency
  601. // error encountered.
  602. //
  603. // * ErrCodeInvalidInputException "InvalidInputException"
  604. // Exception raised when the provided input violates a policy constraint or
  605. // is entered in the wrong format or data type.
  606. //
  607. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  608. // Exception raised when the request references a resource (ADS configuration,
  609. // update stream, migration task, etc.) that does not exist in ADS (Application
  610. // Discovery Service) or in Migration Hub's repository.
  611. //
  612. // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/DescribeMigrationTask
  613. func (c *MigrationHub) DescribeMigrationTask(input *DescribeMigrationTaskInput) (*DescribeMigrationTaskOutput, error) {
  614. req, out := c.DescribeMigrationTaskRequest(input)
  615. return out, req.Send()
  616. }
  617. // DescribeMigrationTaskWithContext is the same as DescribeMigrationTask with the addition of
  618. // the ability to pass a context and additional request options.
  619. //
  620. // See DescribeMigrationTask for details on how to use this API operation.
  621. //
  622. // The context must be non-nil and will be used for request cancellation. If
  623. // the context is nil a panic will occur. In the future the SDK may create
  624. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  625. // for more information on using Contexts.
  626. func (c *MigrationHub) DescribeMigrationTaskWithContext(ctx aws.Context, input *DescribeMigrationTaskInput, opts ...request.Option) (*DescribeMigrationTaskOutput, error) {
  627. req, out := c.DescribeMigrationTaskRequest(input)
  628. req.SetContext(ctx)
  629. req.ApplyOptions(opts...)
  630. return out, req.Send()
  631. }
  632. const opDisassociateCreatedArtifact = "DisassociateCreatedArtifact"
  633. // DisassociateCreatedArtifactRequest generates a "aws/request.Request" representing the
  634. // client's request for the DisassociateCreatedArtifact operation. The "output" return
  635. // value will be populated with the request's response once the request completes
  636. // successfully.
  637. //
  638. // Use "Send" method on the returned Request to send the API call to the service.
  639. // the "output" return value is not valid until after Send returns without error.
  640. //
  641. // See DisassociateCreatedArtifact for more information on using the DisassociateCreatedArtifact
  642. // API call, and error handling.
  643. //
  644. // This method is useful when you want to inject custom logic or configuration
  645. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  646. //
  647. //
  648. // // Example sending a request using the DisassociateCreatedArtifactRequest method.
  649. // req, resp := client.DisassociateCreatedArtifactRequest(params)
  650. //
  651. // err := req.Send()
  652. // if err == nil { // resp is now filled
  653. // fmt.Println(resp)
  654. // }
  655. //
  656. // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/DisassociateCreatedArtifact
  657. func (c *MigrationHub) DisassociateCreatedArtifactRequest(input *DisassociateCreatedArtifactInput) (req *request.Request, output *DisassociateCreatedArtifactOutput) {
  658. op := &request.Operation{
  659. Name: opDisassociateCreatedArtifact,
  660. HTTPMethod: "POST",
  661. HTTPPath: "/",
  662. }
  663. if input == nil {
  664. input = &DisassociateCreatedArtifactInput{}
  665. }
  666. output = &DisassociateCreatedArtifactOutput{}
  667. req = c.newRequest(op, input, output)
  668. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  669. return
  670. }
  671. // DisassociateCreatedArtifact API operation for AWS Migration Hub.
  672. //
  673. // Disassociates a created artifact of an AWS resource with a migration task
  674. // performed by a migration tool that was previously associated. This API has
  675. // the following traits:
  676. //
  677. // * A migration user can call the DisassociateCreatedArtifacts operation
  678. // to disassociate a created AWS Artifact from a migration task.
  679. //
  680. // * The created artifact name must be provided in ARN (Amazon Resource Name)
  681. // format which will contain information about type and region; for example:
  682. // arn:aws:ec2:us-east-1:488216288981:image/ami-6d0ba87b.
  683. //
  684. // * Examples of the AWS resource behind the created artifact are, AMI's,
  685. // EC2 instance, or RDS instance, etc.
  686. //
  687. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  688. // with awserr.Error's Code and Message methods to get detailed information about
  689. // the error.
  690. //
  691. // See the AWS API reference guide for AWS Migration Hub's
  692. // API operation DisassociateCreatedArtifact for usage and error information.
  693. //
  694. // Returned Error Codes:
  695. // * ErrCodeAccessDeniedException "AccessDeniedException"
  696. // You do not have sufficient access to perform this action.
  697. //
  698. // * ErrCodeInternalServerError "InternalServerError"
  699. // Exception raised when there is an internal, configuration, or dependency
  700. // error encountered.
  701. //
  702. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  703. // Exception raised when there is an internal, configuration, or dependency
  704. // error encountered.
  705. //
  706. // * ErrCodeDryRunOperation "DryRunOperation"
  707. // Exception raised to indicate a successfully authorized action when the DryRun
  708. // flag is set to "true".
  709. //
  710. // * ErrCodeUnauthorizedOperation "UnauthorizedOperation"
  711. // Exception raised to indicate a request was not authorized when the DryRun
  712. // flag is set to "true".
  713. //
  714. // * ErrCodeInvalidInputException "InvalidInputException"
  715. // Exception raised when the provided input violates a policy constraint or
  716. // is entered in the wrong format or data type.
  717. //
  718. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  719. // Exception raised when the request references a resource (ADS configuration,
  720. // update stream, migration task, etc.) that does not exist in ADS (Application
  721. // Discovery Service) or in Migration Hub's repository.
  722. //
  723. // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/DisassociateCreatedArtifact
  724. func (c *MigrationHub) DisassociateCreatedArtifact(input *DisassociateCreatedArtifactInput) (*DisassociateCreatedArtifactOutput, error) {
  725. req, out := c.DisassociateCreatedArtifactRequest(input)
  726. return out, req.Send()
  727. }
  728. // DisassociateCreatedArtifactWithContext is the same as DisassociateCreatedArtifact with the addition of
  729. // the ability to pass a context and additional request options.
  730. //
  731. // See DisassociateCreatedArtifact for details on how to use this API operation.
  732. //
  733. // The context must be non-nil and will be used for request cancellation. If
  734. // the context is nil a panic will occur. In the future the SDK may create
  735. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  736. // for more information on using Contexts.
  737. func (c *MigrationHub) DisassociateCreatedArtifactWithContext(ctx aws.Context, input *DisassociateCreatedArtifactInput, opts ...request.Option) (*DisassociateCreatedArtifactOutput, error) {
  738. req, out := c.DisassociateCreatedArtifactRequest(input)
  739. req.SetContext(ctx)
  740. req.ApplyOptions(opts...)
  741. return out, req.Send()
  742. }
  743. const opDisassociateDiscoveredResource = "DisassociateDiscoveredResource"
  744. // DisassociateDiscoveredResourceRequest generates a "aws/request.Request" representing the
  745. // client's request for the DisassociateDiscoveredResource operation. The "output" return
  746. // value will be populated with the request's response once the request completes
  747. // successfully.
  748. //
  749. // Use "Send" method on the returned Request to send the API call to the service.
  750. // the "output" return value is not valid until after Send returns without error.
  751. //
  752. // See DisassociateDiscoveredResource for more information on using the DisassociateDiscoveredResource
  753. // API call, and error handling.
  754. //
  755. // This method is useful when you want to inject custom logic or configuration
  756. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  757. //
  758. //
  759. // // Example sending a request using the DisassociateDiscoveredResourceRequest method.
  760. // req, resp := client.DisassociateDiscoveredResourceRequest(params)
  761. //
  762. // err := req.Send()
  763. // if err == nil { // resp is now filled
  764. // fmt.Println(resp)
  765. // }
  766. //
  767. // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/DisassociateDiscoveredResource
  768. func (c *MigrationHub) DisassociateDiscoveredResourceRequest(input *DisassociateDiscoveredResourceInput) (req *request.Request, output *DisassociateDiscoveredResourceOutput) {
  769. op := &request.Operation{
  770. Name: opDisassociateDiscoveredResource,
  771. HTTPMethod: "POST",
  772. HTTPPath: "/",
  773. }
  774. if input == nil {
  775. input = &DisassociateDiscoveredResourceInput{}
  776. }
  777. output = &DisassociateDiscoveredResourceOutput{}
  778. req = c.newRequest(op, input, output)
  779. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  780. return
  781. }
  782. // DisassociateDiscoveredResource API operation for AWS Migration Hub.
  783. //
  784. // Disassociate an Application Discovery Service (ADS) discovered resource from
  785. // a migration task.
  786. //
  787. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  788. // with awserr.Error's Code and Message methods to get detailed information about
  789. // the error.
  790. //
  791. // See the AWS API reference guide for AWS Migration Hub's
  792. // API operation DisassociateDiscoveredResource for usage and error information.
  793. //
  794. // Returned Error Codes:
  795. // * ErrCodeAccessDeniedException "AccessDeniedException"
  796. // You do not have sufficient access to perform this action.
  797. //
  798. // * ErrCodeInternalServerError "InternalServerError"
  799. // Exception raised when there is an internal, configuration, or dependency
  800. // error encountered.
  801. //
  802. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  803. // Exception raised when there is an internal, configuration, or dependency
  804. // error encountered.
  805. //
  806. // * ErrCodeDryRunOperation "DryRunOperation"
  807. // Exception raised to indicate a successfully authorized action when the DryRun
  808. // flag is set to "true".
  809. //
  810. // * ErrCodeUnauthorizedOperation "UnauthorizedOperation"
  811. // Exception raised to indicate a request was not authorized when the DryRun
  812. // flag is set to "true".
  813. //
  814. // * ErrCodeInvalidInputException "InvalidInputException"
  815. // Exception raised when the provided input violates a policy constraint or
  816. // is entered in the wrong format or data type.
  817. //
  818. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  819. // Exception raised when the request references a resource (ADS configuration,
  820. // update stream, migration task, etc.) that does not exist in ADS (Application
  821. // Discovery Service) or in Migration Hub's repository.
  822. //
  823. // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/DisassociateDiscoveredResource
  824. func (c *MigrationHub) DisassociateDiscoveredResource(input *DisassociateDiscoveredResourceInput) (*DisassociateDiscoveredResourceOutput, error) {
  825. req, out := c.DisassociateDiscoveredResourceRequest(input)
  826. return out, req.Send()
  827. }
  828. // DisassociateDiscoveredResourceWithContext is the same as DisassociateDiscoveredResource with the addition of
  829. // the ability to pass a context and additional request options.
  830. //
  831. // See DisassociateDiscoveredResource for details on how to use this API operation.
  832. //
  833. // The context must be non-nil and will be used for request cancellation. If
  834. // the context is nil a panic will occur. In the future the SDK may create
  835. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  836. // for more information on using Contexts.
  837. func (c *MigrationHub) DisassociateDiscoveredResourceWithContext(ctx aws.Context, input *DisassociateDiscoveredResourceInput, opts ...request.Option) (*DisassociateDiscoveredResourceOutput, error) {
  838. req, out := c.DisassociateDiscoveredResourceRequest(input)
  839. req.SetContext(ctx)
  840. req.ApplyOptions(opts...)
  841. return out, req.Send()
  842. }
  843. const opImportMigrationTask = "ImportMigrationTask"
  844. // ImportMigrationTaskRequest generates a "aws/request.Request" representing the
  845. // client's request for the ImportMigrationTask operation. The "output" return
  846. // value will be populated with the request's response once the request completes
  847. // successfully.
  848. //
  849. // Use "Send" method on the returned Request to send the API call to the service.
  850. // the "output" return value is not valid until after Send returns without error.
  851. //
  852. // See ImportMigrationTask for more information on using the ImportMigrationTask
  853. // API call, and error handling.
  854. //
  855. // This method is useful when you want to inject custom logic or configuration
  856. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  857. //
  858. //
  859. // // Example sending a request using the ImportMigrationTaskRequest method.
  860. // req, resp := client.ImportMigrationTaskRequest(params)
  861. //
  862. // err := req.Send()
  863. // if err == nil { // resp is now filled
  864. // fmt.Println(resp)
  865. // }
  866. //
  867. // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/ImportMigrationTask
  868. func (c *MigrationHub) ImportMigrationTaskRequest(input *ImportMigrationTaskInput) (req *request.Request, output *ImportMigrationTaskOutput) {
  869. op := &request.Operation{
  870. Name: opImportMigrationTask,
  871. HTTPMethod: "POST",
  872. HTTPPath: "/",
  873. }
  874. if input == nil {
  875. input = &ImportMigrationTaskInput{}
  876. }
  877. output = &ImportMigrationTaskOutput{}
  878. req = c.newRequest(op, input, output)
  879. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  880. return
  881. }
  882. // ImportMigrationTask API operation for AWS Migration Hub.
  883. //
  884. // Registers a new migration task which represents a server, database, etc.,
  885. // being migrated to AWS by a migration tool.
  886. //
  887. // This API is a prerequisite to calling the NotifyMigrationTaskState API as
  888. // the migration tool must first register the migration task with Migration
  889. // Hub.
  890. //
  891. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  892. // with awserr.Error's Code and Message methods to get detailed information about
  893. // the error.
  894. //
  895. // See the AWS API reference guide for AWS Migration Hub's
  896. // API operation ImportMigrationTask for usage and error information.
  897. //
  898. // Returned Error Codes:
  899. // * ErrCodeAccessDeniedException "AccessDeniedException"
  900. // You do not have sufficient access to perform this action.
  901. //
  902. // * ErrCodeInternalServerError "InternalServerError"
  903. // Exception raised when there is an internal, configuration, or dependency
  904. // error encountered.
  905. //
  906. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  907. // Exception raised when there is an internal, configuration, or dependency
  908. // error encountered.
  909. //
  910. // * ErrCodeDryRunOperation "DryRunOperation"
  911. // Exception raised to indicate a successfully authorized action when the DryRun
  912. // flag is set to "true".
  913. //
  914. // * ErrCodeUnauthorizedOperation "UnauthorizedOperation"
  915. // Exception raised to indicate a request was not authorized when the DryRun
  916. // flag is set to "true".
  917. //
  918. // * ErrCodeInvalidInputException "InvalidInputException"
  919. // Exception raised when the provided input violates a policy constraint or
  920. // is entered in the wrong format or data type.
  921. //
  922. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  923. // Exception raised when the request references a resource (ADS configuration,
  924. // update stream, migration task, etc.) that does not exist in ADS (Application
  925. // Discovery Service) or in Migration Hub's repository.
  926. //
  927. // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/ImportMigrationTask
  928. func (c *MigrationHub) ImportMigrationTask(input *ImportMigrationTaskInput) (*ImportMigrationTaskOutput, error) {
  929. req, out := c.ImportMigrationTaskRequest(input)
  930. return out, req.Send()
  931. }
  932. // ImportMigrationTaskWithContext is the same as ImportMigrationTask with the addition of
  933. // the ability to pass a context and additional request options.
  934. //
  935. // See ImportMigrationTask for details on how to use this API operation.
  936. //
  937. // The context must be non-nil and will be used for request cancellation. If
  938. // the context is nil a panic will occur. In the future the SDK may create
  939. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  940. // for more information on using Contexts.
  941. func (c *MigrationHub) ImportMigrationTaskWithContext(ctx aws.Context, input *ImportMigrationTaskInput, opts ...request.Option) (*ImportMigrationTaskOutput, error) {
  942. req, out := c.ImportMigrationTaskRequest(input)
  943. req.SetContext(ctx)
  944. req.ApplyOptions(opts...)
  945. return out, req.Send()
  946. }
  947. const opListCreatedArtifacts = "ListCreatedArtifacts"
  948. // ListCreatedArtifactsRequest generates a "aws/request.Request" representing the
  949. // client's request for the ListCreatedArtifacts operation. The "output" return
  950. // value will be populated with the request's response once the request completes
  951. // successfully.
  952. //
  953. // Use "Send" method on the returned Request to send the API call to the service.
  954. // the "output" return value is not valid until after Send returns without error.
  955. //
  956. // See ListCreatedArtifacts for more information on using the ListCreatedArtifacts
  957. // API call, and error handling.
  958. //
  959. // This method is useful when you want to inject custom logic or configuration
  960. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  961. //
  962. //
  963. // // Example sending a request using the ListCreatedArtifactsRequest method.
  964. // req, resp := client.ListCreatedArtifactsRequest(params)
  965. //
  966. // err := req.Send()
  967. // if err == nil { // resp is now filled
  968. // fmt.Println(resp)
  969. // }
  970. //
  971. // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/ListCreatedArtifacts
  972. func (c *MigrationHub) ListCreatedArtifactsRequest(input *ListCreatedArtifactsInput) (req *request.Request, output *ListCreatedArtifactsOutput) {
  973. op := &request.Operation{
  974. Name: opListCreatedArtifacts,
  975. HTTPMethod: "POST",
  976. HTTPPath: "/",
  977. }
  978. if input == nil {
  979. input = &ListCreatedArtifactsInput{}
  980. }
  981. output = &ListCreatedArtifactsOutput{}
  982. req = c.newRequest(op, input, output)
  983. return
  984. }
  985. // ListCreatedArtifacts API operation for AWS Migration Hub.
  986. //
  987. // Lists the created artifacts attached to a given migration task in an update
  988. // stream. This API has the following traits:
  989. //
  990. // * Gets the list of the created artifacts while migration is taking place.
  991. //
  992. // * Shows the artifacts created by the migration tool that was associated
  993. // by the AssociateCreatedArtifact API.
  994. //
  995. // * Lists created artifacts in a paginated interface.
  996. //
  997. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  998. // with awserr.Error's Code and Message methods to get detailed information about
  999. // the error.
  1000. //
  1001. // See the AWS API reference guide for AWS Migration Hub's
  1002. // API operation ListCreatedArtifacts for usage and error information.
  1003. //
  1004. // Returned Error Codes:
  1005. // * ErrCodeAccessDeniedException "AccessDeniedException"
  1006. // You do not have sufficient access to perform this action.
  1007. //
  1008. // * ErrCodeInternalServerError "InternalServerError"
  1009. // Exception raised when there is an internal, configuration, or dependency
  1010. // error encountered.
  1011. //
  1012. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  1013. // Exception raised when there is an internal, configuration, or dependency
  1014. // error encountered.
  1015. //
  1016. // * ErrCodeInvalidInputException "InvalidInputException"
  1017. // Exception raised when the provided input violates a policy constraint or
  1018. // is entered in the wrong format or data type.
  1019. //
  1020. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1021. // Exception raised when the request references a resource (ADS configuration,
  1022. // update stream, migration task, etc.) that does not exist in ADS (Application
  1023. // Discovery Service) or in Migration Hub's repository.
  1024. //
  1025. // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/ListCreatedArtifacts
  1026. func (c *MigrationHub) ListCreatedArtifacts(input *ListCreatedArtifactsInput) (*ListCreatedArtifactsOutput, error) {
  1027. req, out := c.ListCreatedArtifactsRequest(input)
  1028. return out, req.Send()
  1029. }
  1030. // ListCreatedArtifactsWithContext is the same as ListCreatedArtifacts with the addition of
  1031. // the ability to pass a context and additional request options.
  1032. //
  1033. // See ListCreatedArtifacts for details on how to use this API operation.
  1034. //
  1035. // The context must be non-nil and will be used for request cancellation. If
  1036. // the context is nil a panic will occur. In the future the SDK may create
  1037. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1038. // for more information on using Contexts.
  1039. func (c *MigrationHub) ListCreatedArtifactsWithContext(ctx aws.Context, input *ListCreatedArtifactsInput, opts ...request.Option) (*ListCreatedArtifactsOutput, error) {
  1040. req, out := c.ListCreatedArtifactsRequest(input)
  1041. req.SetContext(ctx)
  1042. req.ApplyOptions(opts...)
  1043. return out, req.Send()
  1044. }
  1045. const opListDiscoveredResources = "ListDiscoveredResources"
  1046. // ListDiscoveredResourcesRequest generates a "aws/request.Request" representing the
  1047. // client's request for the ListDiscoveredResources operation. The "output" return
  1048. // value will be populated with the request's response once the request completes
  1049. // successfully.
  1050. //
  1051. // Use "Send" method on the returned Request to send the API call to the service.
  1052. // the "output" return value is not valid until after Send returns without error.
  1053. //
  1054. // See ListDiscoveredResources for more information on using the ListDiscoveredResources
  1055. // API call, and error handling.
  1056. //
  1057. // This method is useful when you want to inject custom logic or configuration
  1058. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1059. //
  1060. //
  1061. // // Example sending a request using the ListDiscoveredResourcesRequest method.
  1062. // req, resp := client.ListDiscoveredResourcesRequest(params)
  1063. //
  1064. // err := req.Send()
  1065. // if err == nil { // resp is now filled
  1066. // fmt.Println(resp)
  1067. // }
  1068. //
  1069. // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/ListDiscoveredResources
  1070. func (c *MigrationHub) ListDiscoveredResourcesRequest(input *ListDiscoveredResourcesInput) (req *request.Request, output *ListDiscoveredResourcesOutput) {
  1071. op := &request.Operation{
  1072. Name: opListDiscoveredResources,
  1073. HTTPMethod: "POST",
  1074. HTTPPath: "/",
  1075. }
  1076. if input == nil {
  1077. input = &ListDiscoveredResourcesInput{}
  1078. }
  1079. output = &ListDiscoveredResourcesOutput{}
  1080. req = c.newRequest(op, input, output)
  1081. return
  1082. }
  1083. // ListDiscoveredResources API operation for AWS Migration Hub.
  1084. //
  1085. // Lists discovered resources associated with the given MigrationTask.
  1086. //
  1087. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1088. // with awserr.Error's Code and Message methods to get detailed information about
  1089. // the error.
  1090. //
  1091. // See the AWS API reference guide for AWS Migration Hub's
  1092. // API operation ListDiscoveredResources for usage and error information.
  1093. //
  1094. // Returned Error Codes:
  1095. // * ErrCodeAccessDeniedException "AccessDeniedException"
  1096. // You do not have sufficient access to perform this action.
  1097. //
  1098. // * ErrCodeInternalServerError "InternalServerError"
  1099. // Exception raised when there is an internal, configuration, or dependency
  1100. // error encountered.
  1101. //
  1102. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  1103. // Exception raised when there is an internal, configuration, or dependency
  1104. // error encountered.
  1105. //
  1106. // * ErrCodeInvalidInputException "InvalidInputException"
  1107. // Exception raised when the provided input violates a policy constraint or
  1108. // is entered in the wrong format or data type.
  1109. //
  1110. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1111. // Exception raised when the request references a resource (ADS configuration,
  1112. // update stream, migration task, etc.) that does not exist in ADS (Application
  1113. // Discovery Service) or in Migration Hub's repository.
  1114. //
  1115. // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/ListDiscoveredResources
  1116. func (c *MigrationHub) ListDiscoveredResources(input *ListDiscoveredResourcesInput) (*ListDiscoveredResourcesOutput, error) {
  1117. req, out := c.ListDiscoveredResourcesRequest(input)
  1118. return out, req.Send()
  1119. }
  1120. // ListDiscoveredResourcesWithContext is the same as ListDiscoveredResources with the addition of
  1121. // the ability to pass a context and additional request options.
  1122. //
  1123. // See ListDiscoveredResources for details on how to use this API operation.
  1124. //
  1125. // The context must be non-nil and will be used for request cancellation. If
  1126. // the context is nil a panic will occur. In the future the SDK may create
  1127. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1128. // for more information on using Contexts.
  1129. func (c *MigrationHub) ListDiscoveredResourcesWithContext(ctx aws.Context, input *ListDiscoveredResourcesInput, opts ...request.Option) (*ListDiscoveredResourcesOutput, error) {
  1130. req, out := c.ListDiscoveredResourcesRequest(input)
  1131. req.SetContext(ctx)
  1132. req.ApplyOptions(opts...)
  1133. return out, req.Send()
  1134. }
  1135. const opListMigrationTasks = "ListMigrationTasks"
  1136. // ListMigrationTasksRequest generates a "aws/request.Request" representing the
  1137. // client's request for the ListMigrationTasks operation. The "output" return
  1138. // value will be populated with the request's response once the request completes
  1139. // successfully.
  1140. //
  1141. // Use "Send" method on the returned Request to send the API call to the service.
  1142. // the "output" return value is not valid until after Send returns without error.
  1143. //
  1144. // See ListMigrationTasks for more information on using the ListMigrationTasks
  1145. // API call, and error handling.
  1146. //
  1147. // This method is useful when you want to inject custom logic or configuration
  1148. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1149. //
  1150. //
  1151. // // Example sending a request using the ListMigrationTasksRequest method.
  1152. // req, resp := client.ListMigrationTasksRequest(params)
  1153. //
  1154. // err := req.Send()
  1155. // if err == nil { // resp is now filled
  1156. // fmt.Println(resp)
  1157. // }
  1158. //
  1159. // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/ListMigrationTasks
  1160. func (c *MigrationHub) ListMigrationTasksRequest(input *ListMigrationTasksInput) (req *request.Request, output *ListMigrationTasksOutput) {
  1161. op := &request.Operation{
  1162. Name: opListMigrationTasks,
  1163. HTTPMethod: "POST",
  1164. HTTPPath: "/",
  1165. }
  1166. if input == nil {
  1167. input = &ListMigrationTasksInput{}
  1168. }
  1169. output = &ListMigrationTasksOutput{}
  1170. req = c.newRequest(op, input, output)
  1171. return
  1172. }
  1173. // ListMigrationTasks API operation for AWS Migration Hub.
  1174. //
  1175. // Lists all, or filtered by resource name, migration tasks associated with
  1176. // the user account making this call. This API has the following traits:
  1177. //
  1178. // * Can show a summary list of the most recent migration tasks.
  1179. //
  1180. // * Can show a summary list of migration tasks associated with a given discovered
  1181. // resource.
  1182. //
  1183. // * Lists migration tasks in a paginated interface.
  1184. //
  1185. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1186. // with awserr.Error's Code and Message methods to get detailed information about
  1187. // the error.
  1188. //
  1189. // See the AWS API reference guide for AWS Migration Hub's
  1190. // API operation ListMigrationTasks for usage and error information.
  1191. //
  1192. // Returned Error Codes:
  1193. // * ErrCodeAccessDeniedException "AccessDeniedException"
  1194. // You do not have sufficient access to perform this action.
  1195. //
  1196. // * ErrCodeInternalServerError "InternalServerError"
  1197. // Exception raised when there is an internal, configuration, or dependency
  1198. // error encountered.
  1199. //
  1200. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  1201. // Exception raised when there is an internal, configuration, or dependency
  1202. // error encountered.
  1203. //
  1204. // * ErrCodeInvalidInputException "InvalidInputException"
  1205. // Exception raised when the provided input violates a policy constraint or
  1206. // is entered in the wrong format or data type.
  1207. //
  1208. // * ErrCodePolicyErrorException "PolicyErrorException"
  1209. // Exception raised when there are problems accessing ADS (Application Discovery
  1210. // Service); most likely due to a misconfigured policy or the migrationhub-discovery
  1211. // role is missing or not configured correctly.
  1212. //
  1213. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1214. // Exception raised when the request references a resource (ADS configuration,
  1215. // update stream, migration task, etc.) that does not exist in ADS (Application
  1216. // Discovery Service) or in Migration Hub's repository.
  1217. //
  1218. // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/ListMigrationTasks
  1219. func (c *MigrationHub) ListMigrationTasks(input *ListMigrationTasksInput) (*ListMigrationTasksOutput, error) {
  1220. req, out := c.ListMigrationTasksRequest(input)
  1221. return out, req.Send()
  1222. }
  1223. // ListMigrationTasksWithContext is the same as ListMigrationTasks with the addition of
  1224. // the ability to pass a context and additional request options.
  1225. //
  1226. // See ListMigrationTasks for details on how to use this API operation.
  1227. //
  1228. // The context must be non-nil and will be used for request cancellation. If
  1229. // the context is nil a panic will occur. In the future the SDK may create
  1230. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1231. // for more information on using Contexts.
  1232. func (c *MigrationHub) ListMigrationTasksWithContext(ctx aws.Context, input *ListMigrationTasksInput, opts ...request.Option) (*ListMigrationTasksOutput, error) {
  1233. req, out := c.ListMigrationTasksRequest(input)
  1234. req.SetContext(ctx)
  1235. req.ApplyOptions(opts...)
  1236. return out, req.Send()
  1237. }
  1238. const opListProgressUpdateStreams = "ListProgressUpdateStreams"
  1239. // ListProgressUpdateStreamsRequest generates a "aws/request.Request" representing the
  1240. // client's request for the ListProgressUpdateStreams operation. The "output" return
  1241. // value will be populated with the request's response once the request completes
  1242. // successfully.
  1243. //
  1244. // Use "Send" method on the returned Request to send the API call to the service.
  1245. // the "output" return value is not valid until after Send returns without error.
  1246. //
  1247. // See ListProgressUpdateStreams for more information on using the ListProgressUpdateStreams
  1248. // API call, and error handling.
  1249. //
  1250. // This method is useful when you want to inject custom logic or configuration
  1251. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1252. //
  1253. //
  1254. // // Example sending a request using the ListProgressUpdateStreamsRequest method.
  1255. // req, resp := client.ListProgressUpdateStreamsRequest(params)
  1256. //
  1257. // err := req.Send()
  1258. // if err == nil { // resp is now filled
  1259. // fmt.Println(resp)
  1260. // }
  1261. //
  1262. // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/ListProgressUpdateStreams
  1263. func (c *MigrationHub) ListProgressUpdateStreamsRequest(input *ListProgressUpdateStreamsInput) (req *request.Request, output *ListProgressUpdateStreamsOutput) {
  1264. op := &request.Operation{
  1265. Name: opListProgressUpdateStreams,
  1266. HTTPMethod: "POST",
  1267. HTTPPath: "/",
  1268. }
  1269. if input == nil {
  1270. input = &ListProgressUpdateStreamsInput{}
  1271. }
  1272. output = &ListProgressUpdateStreamsOutput{}
  1273. req = c.newRequest(op, input, output)
  1274. return
  1275. }
  1276. // ListProgressUpdateStreams API operation for AWS Migration Hub.
  1277. //
  1278. // Lists progress update streams associated with the user account making this
  1279. // call.
  1280. //
  1281. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1282. // with awserr.Error's Code and Message methods to get detailed information about
  1283. // the error.
  1284. //
  1285. // See the AWS API reference guide for AWS Migration Hub's
  1286. // API operation ListProgressUpdateStreams for usage and error information.
  1287. //
  1288. // Returned Error Codes:
  1289. // * ErrCodeAccessDeniedException "AccessDeniedException"
  1290. // You do not have sufficient access to perform this action.
  1291. //
  1292. // * ErrCodeInternalServerError "InternalServerError"
  1293. // Exception raised when there is an internal, configuration, or dependency
  1294. // error encountered.
  1295. //
  1296. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  1297. // Exception raised when there is an internal, configuration, or dependency
  1298. // error encountered.
  1299. //
  1300. // * ErrCodeInvalidInputException "InvalidInputException"
  1301. // Exception raised when the provided input violates a policy constraint or
  1302. // is entered in the wrong format or data type.
  1303. //
  1304. // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/ListProgressUpdateStreams
  1305. func (c *MigrationHub) ListProgressUpdateStreams(input *ListProgressUpdateStreamsInput) (*ListProgressUpdateStreamsOutput, error) {
  1306. req, out := c.ListProgressUpdateStreamsRequest(input)
  1307. return out, req.Send()
  1308. }
  1309. // ListProgressUpdateStreamsWithContext is the same as ListProgressUpdateStreams with the addition of
  1310. // the ability to pass a context and additional request options.
  1311. //
  1312. // See ListProgressUpdateStreams for details on how to use this API operation.
  1313. //
  1314. // The context must be non-nil and will be used for request cancellation. If
  1315. // the context is nil a panic will occur. In the future the SDK may create
  1316. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1317. // for more information on using Contexts.
  1318. func (c *MigrationHub) ListProgressUpdateStreamsWithContext(ctx aws.Context, input *ListProgressUpdateStreamsInput, opts ...request.Option) (*ListProgressUpdateStreamsOutput, error) {
  1319. req, out := c.ListProgressUpdateStreamsRequest(input)
  1320. req.SetContext(ctx)
  1321. req.ApplyOptions(opts...)
  1322. return out, req.Send()
  1323. }
  1324. const opNotifyApplicationState = "NotifyApplicationState"
  1325. // NotifyApplicationStateRequest generates a "aws/request.Request" representing the
  1326. // client's request for the NotifyApplicationState operation. The "output" return
  1327. // value will be populated with the request's response once the request completes
  1328. // successfully.
  1329. //
  1330. // Use "Send" method on the returned Request to send the API call to the service.
  1331. // the "output" return value is not valid until after Send returns without error.
  1332. //
  1333. // See NotifyApplicationState for more information on using the NotifyApplicationState
  1334. // API call, and error handling.
  1335. //
  1336. // This method is useful when you want to inject custom logic or configuration
  1337. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1338. //
  1339. //
  1340. // // Example sending a request using the NotifyApplicationStateRequest method.
  1341. // req, resp := client.NotifyApplicationStateRequest(params)
  1342. //
  1343. // err := req.Send()
  1344. // if err == nil { // resp is now filled
  1345. // fmt.Println(resp)
  1346. // }
  1347. //
  1348. // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/NotifyApplicationState
  1349. func (c *MigrationHub) NotifyApplicationStateRequest(input *NotifyApplicationStateInput) (req *request.Request, output *NotifyApplicationStateOutput) {
  1350. op := &request.Operation{
  1351. Name: opNotifyApplicationState,
  1352. HTTPMethod: "POST",
  1353. HTTPPath: "/",
  1354. }
  1355. if input == nil {
  1356. input = &NotifyApplicationStateInput{}
  1357. }
  1358. output = &NotifyApplicationStateOutput{}
  1359. req = c.newRequest(op, input, output)
  1360. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1361. return
  1362. }
  1363. // NotifyApplicationState API operation for AWS Migration Hub.
  1364. //
  1365. // Sets the migration state of an application. For a given application identified
  1366. // by the value passed to ApplicationId, its status is set or updated by passing
  1367. // one of three values to Status: NOT_STARTED | IN_PROGRESS | COMPLETED.
  1368. //
  1369. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1370. // with awserr.Error's Code and Message methods to get detailed information about
  1371. // the error.
  1372. //
  1373. // See the AWS API reference guide for AWS Migration Hub's
  1374. // API operation NotifyApplicationState for usage and error information.
  1375. //
  1376. // Returned Error Codes:
  1377. // * ErrCodeAccessDeniedException "AccessDeniedException"
  1378. // You do not have sufficient access to perform this action.
  1379. //
  1380. // * ErrCodeInternalServerError "InternalServerError"
  1381. // Exception raised when there is an internal, configuration, or dependency
  1382. // error encountered.
  1383. //
  1384. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  1385. // Exception raised when there is an internal, configuration, or dependency
  1386. // error encountered.
  1387. //
  1388. // * ErrCodeDryRunOperation "DryRunOperation"
  1389. // Exception raised to indicate a successfully authorized action when the DryRun
  1390. // flag is set to "true".
  1391. //
  1392. // * ErrCodeUnauthorizedOperation "UnauthorizedOperation"
  1393. // Exception raised to indicate a request was not authorized when the DryRun
  1394. // flag is set to "true".
  1395. //
  1396. // * ErrCodeInvalidInputException "InvalidInputException"
  1397. // Exception raised when the provided input violates a policy constraint or
  1398. // is entered in the wrong format or data type.
  1399. //
  1400. // * ErrCodePolicyErrorException "PolicyErrorException"
  1401. // Exception raised when there are problems accessing ADS (Application Discovery
  1402. // Service); most likely due to a misconfigured policy or the migrationhub-discovery
  1403. // role is missing or not configured correctly.
  1404. //
  1405. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1406. // Exception raised when the request references a resource (ADS configuration,
  1407. // update stream, migration task, etc.) that does not exist in ADS (Application
  1408. // Discovery Service) or in Migration Hub's repository.
  1409. //
  1410. // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/NotifyApplicationState
  1411. func (c *MigrationHub) NotifyApplicationState(input *NotifyApplicationStateInput) (*NotifyApplicationStateOutput, error) {
  1412. req, out := c.NotifyApplicationStateRequest(input)
  1413. return out, req.Send()
  1414. }
  1415. // NotifyApplicationStateWithContext is the same as NotifyApplicationState with the addition of
  1416. // the ability to pass a context and additional request options.
  1417. //
  1418. // See NotifyApplicationState for details on how to use this API operation.
  1419. //
  1420. // The context must be non-nil and will be used for request cancellation. If
  1421. // the context is nil a panic will occur. In the future the SDK may create
  1422. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1423. // for more information on using Contexts.
  1424. func (c *MigrationHub) NotifyApplicationStateWithContext(ctx aws.Context, input *NotifyApplicationStateInput, opts ...request.Option) (*NotifyApplicationStateOutput, error) {
  1425. req, out := c.NotifyApplicationStateRequest(input)
  1426. req.SetContext(ctx)
  1427. req.ApplyOptions(opts...)
  1428. return out, req.Send()
  1429. }
  1430. const opNotifyMigrationTaskState = "NotifyMigrationTaskState"
  1431. // NotifyMigrationTaskStateRequest generates a "aws/request.Request" representing the
  1432. // client's request for the NotifyMigrationTaskState operation. The "output" return
  1433. // value will be populated with the request's response once the request completes
  1434. // successfully.
  1435. //
  1436. // Use "Send" method on the returned Request to send the API call to the service.
  1437. // the "output" return value is not valid until after Send returns without error.
  1438. //
  1439. // See NotifyMigrationTaskState for more information on using the NotifyMigrationTaskState
  1440. // API call, and error handling.
  1441. //
  1442. // This method is useful when you want to inject custom logic or configuration
  1443. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1444. //
  1445. //
  1446. // // Example sending a request using the NotifyMigrationTaskStateRequest method.
  1447. // req, resp := client.NotifyMigrationTaskStateRequest(params)
  1448. //
  1449. // err := req.Send()
  1450. // if err == nil { // resp is now filled
  1451. // fmt.Println(resp)
  1452. // }
  1453. //
  1454. // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/NotifyMigrationTaskState
  1455. func (c *MigrationHub) NotifyMigrationTaskStateRequest(input *NotifyMigrationTaskStateInput) (req *request.Request, output *NotifyMigrationTaskStateOutput) {
  1456. op := &request.Operation{
  1457. Name: opNotifyMigrationTaskState,
  1458. HTTPMethod: "POST",
  1459. HTTPPath: "/",
  1460. }
  1461. if input == nil {
  1462. input = &NotifyMigrationTaskStateInput{}
  1463. }
  1464. output = &NotifyMigrationTaskStateOutput{}
  1465. req = c.newRequest(op, input, output)
  1466. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1467. return
  1468. }
  1469. // NotifyMigrationTaskState API operation for AWS Migration Hub.
  1470. //
  1471. // Notifies Migration Hub of the current status, progress, or other detail regarding
  1472. // a migration task. This API has the following traits:
  1473. //
  1474. // * Migration tools will call the NotifyMigrationTaskState API to share
  1475. // the latest progress and status.
  1476. //
  1477. // * MigrationTaskName is used for addressing updates to the correct target.
  1478. //
  1479. // * ProgressUpdateStream is used for access control and to provide a namespace
  1480. // for each migration tool.
  1481. //
  1482. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1483. // with awserr.Error's Code and Message methods to get detailed information about
  1484. // the error.
  1485. //
  1486. // See the AWS API reference guide for AWS Migration Hub's
  1487. // API operation NotifyMigrationTaskState for usage and error information.
  1488. //
  1489. // Returned Error Codes:
  1490. // * ErrCodeAccessDeniedException "AccessDeniedException"
  1491. // You do not have sufficient access to perform this action.
  1492. //
  1493. // * ErrCodeInternalServerError "InternalServerError"
  1494. // Exception raised when there is an internal, configuration, or dependency
  1495. // error encountered.
  1496. //
  1497. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  1498. // Exception raised when there is an internal, configuration, or dependency
  1499. // error encountered.
  1500. //
  1501. // * ErrCodeDryRunOperation "DryRunOperation"
  1502. // Exception raised to indicate a successfully authorized action when the DryRun
  1503. // flag is set to "true".
  1504. //
  1505. // * ErrCodeUnauthorizedOperation "UnauthorizedOperation"
  1506. // Exception raised to indicate a request was not authorized when the DryRun
  1507. // flag is set to "true".
  1508. //
  1509. // * ErrCodeInvalidInputException "InvalidInputException"
  1510. // Exception raised when the provided input violates a policy constraint or
  1511. // is entered in the wrong format or data type.
  1512. //
  1513. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1514. // Exception raised when the request references a resource (ADS configuration,
  1515. // update stream, migration task, etc.) that does not exist in ADS (Application
  1516. // Discovery Service) or in Migration Hub's repository.
  1517. //
  1518. // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/NotifyMigrationTaskState
  1519. func (c *MigrationHub) NotifyMigrationTaskState(input *NotifyMigrationTaskStateInput) (*NotifyMigrationTaskStateOutput, error) {
  1520. req, out := c.NotifyMigrationTaskStateRequest(input)
  1521. return out, req.Send()
  1522. }
  1523. // NotifyMigrationTaskStateWithContext is the same as NotifyMigrationTaskState with the addition of
  1524. // the ability to pass a context and additional request options.
  1525. //
  1526. // See NotifyMigrationTaskState for details on how to use this API operation.
  1527. //
  1528. // The context must be non-nil and will be used for request cancellation. If
  1529. // the context is nil a panic will occur. In the future the SDK may create
  1530. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1531. // for more information on using Contexts.
  1532. func (c *MigrationHub) NotifyMigrationTaskStateWithContext(ctx aws.Context, input *NotifyMigrationTaskStateInput, opts ...request.Option) (*NotifyMigrationTaskStateOutput, error) {
  1533. req, out := c.NotifyMigrationTaskStateRequest(input)
  1534. req.SetContext(ctx)
  1535. req.ApplyOptions(opts...)
  1536. return out, req.Send()
  1537. }
  1538. const opPutResourceAttributes = "PutResourceAttributes"
  1539. // PutResourceAttributesRequest generates a "aws/request.Request" representing the
  1540. // client's request for the PutResourceAttributes operation. The "output" return
  1541. // value will be populated with the request's response once the request completes
  1542. // successfully.
  1543. //
  1544. // Use "Send" method on the returned Request to send the API call to the service.
  1545. // the "output" return value is not valid until after Send returns without error.
  1546. //
  1547. // See PutResourceAttributes for more information on using the PutResourceAttributes
  1548. // API call, and error handling.
  1549. //
  1550. // This method is useful when you want to inject custom logic or configuration
  1551. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1552. //
  1553. //
  1554. // // Example sending a request using the PutResourceAttributesRequest method.
  1555. // req, resp := client.PutResourceAttributesRequest(params)
  1556. //
  1557. // err := req.Send()
  1558. // if err == nil { // resp is now filled
  1559. // fmt.Println(resp)
  1560. // }
  1561. //
  1562. // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/PutResourceAttributes
  1563. func (c *MigrationHub) PutResourceAttributesRequest(input *PutResourceAttributesInput) (req *request.Request, output *PutResourceAttributesOutput) {
  1564. op := &request.Operation{
  1565. Name: opPutResourceAttributes,
  1566. HTTPMethod: "POST",
  1567. HTTPPath: "/",
  1568. }
  1569. if input == nil {
  1570. input = &PutResourceAttributesInput{}
  1571. }
  1572. output = &PutResourceAttributesOutput{}
  1573. req = c.newRequest(op, input, output)
  1574. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1575. return
  1576. }
  1577. // PutResourceAttributes API operation for AWS Migration Hub.
  1578. //
  1579. // Provides identifying details of the resource being migrated so that it can
  1580. // be associated in the Application Discovery Service (ADS)'s repository. This
  1581. // association occurs asynchronously after PutResourceAttributes returns.
  1582. //
  1583. // Keep in mind that subsequent calls to PutResourceAttributes will override
  1584. // previously stored attributes. For example, if it is first called with a MAC
  1585. // address, but later, it is desired to add an IP address, it will then be required
  1586. // to call it with both the IP and MAC addresses to prevent overiding the MAC
  1587. // address.
  1588. //
  1589. // Note the instructions regarding the special use case of the ResourceAttributeList
  1590. // (https://docs.aws.amazon.com/migrationhub/latest/ug/API_PutResourceAttributes.html#migrationhub-PutResourceAttributes-request-ResourceAttributeList)
  1591. // parameter when specifying any "VM" related value.
  1592. //
  1593. // Because this is an asynchronous call, it will always return 200, whether
  1594. // an association occurs or not. To confirm if an association was found based
  1595. // on the provided details, call ListDiscoveredResources.
  1596. //
  1597. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1598. // with awserr.Error's Code and Message methods to get detailed information about
  1599. // the error.
  1600. //
  1601. // See the AWS API reference guide for AWS Migration Hub's
  1602. // API operation PutResourceAttributes for usage and error information.
  1603. //
  1604. // Returned Error Codes:
  1605. // * ErrCodeAccessDeniedException "AccessDeniedException"
  1606. // You do not have sufficient access to perform this action.
  1607. //
  1608. // * ErrCodeInternalServerError "InternalServerError"
  1609. // Exception raised when there is an internal, configuration, or dependency
  1610. // error encountered.
  1611. //
  1612. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  1613. // Exception raised when there is an internal, configuration, or dependency
  1614. // error encountered.
  1615. //
  1616. // * ErrCodeDryRunOperation "DryRunOperation"
  1617. // Exception raised to indicate a successfully authorized action when the DryRun
  1618. // flag is set to "true".
  1619. //
  1620. // * ErrCodeUnauthorizedOperation "UnauthorizedOperation"
  1621. // Exception raised to indicate a request was not authorized when the DryRun
  1622. // flag is set to "true".
  1623. //
  1624. // * ErrCodeInvalidInputException "InvalidInputException"
  1625. // Exception raised when the provided input violates a policy constraint or
  1626. // is entered in the wrong format or data type.
  1627. //
  1628. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1629. // Exception raised when the request references a resource (ADS configuration,
  1630. // update stream, migration task, etc.) that does not exist in ADS (Application
  1631. // Discovery Service) or in Migration Hub's repository.
  1632. //
  1633. // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/PutResourceAttributes
  1634. func (c *MigrationHub) PutResourceAttributes(input *PutResourceAttributesInput) (*PutResourceAttributesOutput, error) {
  1635. req, out := c.PutResourceAttributesRequest(input)
  1636. return out, req.Send()
  1637. }
  1638. // PutResourceAttributesWithContext is the same as PutResourceAttributes with the addition of
  1639. // the ability to pass a context and additional request options.
  1640. //
  1641. // See PutResourceAttributes for details on how to use this API operation.
  1642. //
  1643. // The context must be non-nil and will be used for request cancellation. If
  1644. // the context is nil a panic will occur. In the future the SDK may create
  1645. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1646. // for more information on using Contexts.
  1647. func (c *MigrationHub) PutResourceAttributesWithContext(ctx aws.Context, input *PutResourceAttributesInput, opts ...request.Option) (*PutResourceAttributesOutput, error) {
  1648. req, out := c.PutResourceAttributesRequest(input)
  1649. req.SetContext(ctx)
  1650. req.ApplyOptions(opts...)
  1651. return out, req.Send()
  1652. }
  1653. type AssociateCreatedArtifactInput struct {
  1654. _ struct{} `type:"structure"`
  1655. // An ARN of the AWS resource related to the migration (e.g., AMI, EC2 instance,
  1656. // RDS instance, etc.)
  1657. //
  1658. // CreatedArtifact is a required field
  1659. CreatedArtifact *CreatedArtifact `type:"structure" required:"true"`
  1660. // Optional boolean flag to indicate whether any effect should take place. Used
  1661. // to test if the caller has permission to make the call.
  1662. DryRun *bool `type:"boolean"`
  1663. // Unique identifier that references the migration task.
  1664. //
  1665. // MigrationTaskName is a required field
  1666. MigrationTaskName *string `min:"1" type:"string" required:"true"`
  1667. // The name of the ProgressUpdateStream.
  1668. //
  1669. // ProgressUpdateStream is a required field
  1670. ProgressUpdateStream *string `min:"1" type:"string" required:"true"`
  1671. }
  1672. // String returns the string representation
  1673. func (s AssociateCreatedArtifactInput) String() string {
  1674. return awsutil.Prettify(s)
  1675. }
  1676. // GoString returns the string representation
  1677. func (s AssociateCreatedArtifactInput) GoString() string {
  1678. return s.String()
  1679. }
  1680. // Validate inspects the fields of the type to determine if they are valid.
  1681. func (s *AssociateCreatedArtifactInput) Validate() error {
  1682. invalidParams := request.ErrInvalidParams{Context: "AssociateCreatedArtifactInput"}
  1683. if s.CreatedArtifact == nil {
  1684. invalidParams.Add(request.NewErrParamRequired("CreatedArtifact"))
  1685. }
  1686. if s.MigrationTaskName == nil {
  1687. invalidParams.Add(request.NewErrParamRequired("MigrationTaskName"))
  1688. }
  1689. if s.MigrationTaskName != nil && len(*s.MigrationTaskName) < 1 {
  1690. invalidParams.Add(request.NewErrParamMinLen("MigrationTaskName", 1))
  1691. }
  1692. if s.ProgressUpdateStream == nil {
  1693. invalidParams.Add(request.NewErrParamRequired("ProgressUpdateStream"))
  1694. }
  1695. if s.ProgressUpdateStream != nil && len(*s.ProgressUpdateStream) < 1 {
  1696. invalidParams.Add(request.NewErrParamMinLen("ProgressUpdateStream", 1))
  1697. }
  1698. if s.CreatedArtifact != nil {
  1699. if err := s.CreatedArtifact.Validate(); err != nil {
  1700. invalidParams.AddNested("CreatedArtifact", err.(request.ErrInvalidParams))
  1701. }
  1702. }
  1703. if invalidParams.Len() > 0 {
  1704. return invalidParams
  1705. }
  1706. return nil
  1707. }
  1708. // SetCreatedArtifact sets the CreatedArtifact field's value.
  1709. func (s *AssociateCreatedArtifactInput) SetCreatedArtifact(v *CreatedArtifact) *AssociateCreatedArtifactInput {
  1710. s.CreatedArtifact = v
  1711. return s
  1712. }
  1713. // SetDryRun sets the DryRun field's value.
  1714. func (s *AssociateCreatedArtifactInput) SetDryRun(v bool) *AssociateCreatedArtifactInput {
  1715. s.DryRun = &v
  1716. return s
  1717. }
  1718. // SetMigrationTaskName sets the MigrationTaskName field's value.
  1719. func (s *AssociateCreatedArtifactInput) SetMigrationTaskName(v string) *AssociateCreatedArtifactInput {
  1720. s.MigrationTaskName = &v
  1721. return s
  1722. }
  1723. // SetProgressUpdateStream sets the ProgressUpdateStream field's value.
  1724. func (s *AssociateCreatedArtifactInput) SetProgressUpdateStream(v string) *AssociateCreatedArtifactInput {
  1725. s.ProgressUpdateStream = &v
  1726. return s
  1727. }
  1728. type AssociateCreatedArtifactOutput struct {
  1729. _ struct{} `type:"structure"`
  1730. }
  1731. // String returns the string representation
  1732. func (s AssociateCreatedArtifactOutput) String() string {
  1733. return awsutil.Prettify(s)
  1734. }
  1735. // GoString returns the string representation
  1736. func (s AssociateCreatedArtifactOutput) GoString() string {
  1737. return s.String()
  1738. }
  1739. type AssociateDiscoveredResourceInput struct {
  1740. _ struct{} `type:"structure"`
  1741. // Object representing a Resource.
  1742. //
  1743. // DiscoveredResource is a required field
  1744. DiscoveredResource *DiscoveredResource `type:"structure" required:"true"`
  1745. // Optional boolean flag to indicate whether any effect should take place. Used
  1746. // to test if the caller has permission to make the call.
  1747. DryRun *bool `type:"boolean"`
  1748. // The identifier given to the MigrationTask.
  1749. //
  1750. // MigrationTaskName is a required field
  1751. MigrationTaskName *string `min:"1" type:"string" required:"true"`
  1752. // The name of the ProgressUpdateStream.
  1753. //
  1754. // ProgressUpdateStream is a required field
  1755. ProgressUpdateStream *string `min:"1" type:"string" required:"true"`
  1756. }
  1757. // String returns the string representation
  1758. func (s AssociateDiscoveredResourceInput) String() string {
  1759. return awsutil.Prettify(s)
  1760. }
  1761. // GoString returns the string representation
  1762. func (s AssociateDiscoveredResourceInput) GoString() string {
  1763. return s.String()
  1764. }
  1765. // Validate inspects the fields of the type to determine if they are valid.
  1766. func (s *AssociateDiscoveredResourceInput) Validate() error {
  1767. invalidParams := request.ErrInvalidParams{Context: "AssociateDiscoveredResourceInput"}
  1768. if s.DiscoveredResource == nil {
  1769. invalidParams.Add(request.NewErrParamRequired("DiscoveredResource"))
  1770. }
  1771. if s.MigrationTaskName == nil {
  1772. invalidParams.Add(request.NewErrParamRequired("MigrationTaskName"))
  1773. }
  1774. if s.MigrationTaskName != nil && len(*s.MigrationTaskName) < 1 {
  1775. invalidParams.Add(request.NewErrParamMinLen("MigrationTaskName", 1))
  1776. }
  1777. if s.ProgressUpdateStream == nil {
  1778. invalidParams.Add(request.NewErrParamRequired("ProgressUpdateStream"))
  1779. }
  1780. if s.ProgressUpdateStream != nil && len(*s.ProgressUpdateStream) < 1 {
  1781. invalidParams.Add(request.NewErrParamMinLen("ProgressUpdateStream", 1))
  1782. }
  1783. if s.DiscoveredResource != nil {
  1784. if err := s.DiscoveredResource.Validate(); err != nil {
  1785. invalidParams.AddNested("DiscoveredResource", err.(request.ErrInvalidParams))
  1786. }
  1787. }
  1788. if invalidParams.Len() > 0 {
  1789. return invalidParams
  1790. }
  1791. return nil
  1792. }
  1793. // SetDiscoveredResource sets the DiscoveredResource field's value.
  1794. func (s *AssociateDiscoveredResourceInput) SetDiscoveredResource(v *DiscoveredResource) *AssociateDiscoveredResourceInput {
  1795. s.DiscoveredResource = v
  1796. return s
  1797. }
  1798. // SetDryRun sets the DryRun field's value.
  1799. func (s *AssociateDiscoveredResourceInput) SetDryRun(v bool) *AssociateDiscoveredResourceInput {
  1800. s.DryRun = &v
  1801. return s
  1802. }
  1803. // SetMigrationTaskName sets the MigrationTaskName field's value.
  1804. func (s *AssociateDiscoveredResourceInput) SetMigrationTaskName(v string) *AssociateDiscoveredResourceInput {
  1805. s.MigrationTaskName = &v
  1806. return s
  1807. }
  1808. // SetProgressUpdateStream sets the ProgressUpdateStream field's value.
  1809. func (s *AssociateDiscoveredResourceInput) SetProgressUpdateStream(v string) *AssociateDiscoveredResourceInput {
  1810. s.ProgressUpdateStream = &v
  1811. return s
  1812. }
  1813. type AssociateDiscoveredResourceOutput struct {
  1814. _ struct{} `type:"structure"`
  1815. }
  1816. // String returns the string representation
  1817. func (s AssociateDiscoveredResourceOutput) String() string {
  1818. return awsutil.Prettify(s)
  1819. }
  1820. // GoString returns the string representation
  1821. func (s AssociateDiscoveredResourceOutput) GoString() string {
  1822. return s.String()
  1823. }
  1824. type CreateProgressUpdateStreamInput struct {
  1825. _ struct{} `type:"structure"`
  1826. // Optional boolean flag to indicate whether any effect should take place. Used
  1827. // to test if the caller has permission to make the call.
  1828. DryRun *bool `type:"boolean"`
  1829. // The name of the ProgressUpdateStream.
  1830. //
  1831. // ProgressUpdateStreamName is a required field
  1832. ProgressUpdateStreamName *string `min:"1" type:"string" required:"true"`
  1833. }
  1834. // String returns the string representation
  1835. func (s CreateProgressUpdateStreamInput) String() string {
  1836. return awsutil.Prettify(s)
  1837. }
  1838. // GoString returns the string representation
  1839. func (s CreateProgressUpdateStreamInput) GoString() string {
  1840. return s.String()
  1841. }
  1842. // Validate inspects the fields of the type to determine if they are valid.
  1843. func (s *CreateProgressUpdateStreamInput) Validate() error {
  1844. invalidParams := request.ErrInvalidParams{Context: "CreateProgressUpdateStreamInput"}
  1845. if s.ProgressUpdateStreamName == nil {
  1846. invalidParams.Add(request.NewErrParamRequired("ProgressUpdateStreamName"))
  1847. }
  1848. if s.ProgressUpdateStreamName != nil && len(*s.ProgressUpdateStreamName) < 1 {
  1849. invalidParams.Add(request.NewErrParamMinLen("ProgressUpdateStreamName", 1))
  1850. }
  1851. if invalidParams.Len() > 0 {
  1852. return invalidParams
  1853. }
  1854. return nil
  1855. }
  1856. // SetDryRun sets the DryRun field's value.
  1857. func (s *CreateProgressUpdateStreamInput) SetDryRun(v bool) *CreateProgressUpdateStreamInput {
  1858. s.DryRun = &v
  1859. return s
  1860. }
  1861. // SetProgressUpdateStreamName sets the ProgressUpdateStreamName field's value.
  1862. func (s *CreateProgressUpdateStreamInput) SetProgressUpdateStreamName(v string) *CreateProgressUpdateStreamInput {
  1863. s.ProgressUpdateStreamName = &v
  1864. return s
  1865. }
  1866. type CreateProgressUpdateStreamOutput struct {
  1867. _ struct{} `type:"structure"`
  1868. }
  1869. // String returns the string representation
  1870. func (s CreateProgressUpdateStreamOutput) String() string {
  1871. return awsutil.Prettify(s)
  1872. }
  1873. // GoString returns the string representation
  1874. func (s CreateProgressUpdateStreamOutput) GoString() string {
  1875. return s.String()
  1876. }
  1877. // An ARN of the AWS cloud resource target receiving the migration (e.g., AMI,
  1878. // EC2 instance, RDS instance, etc.).
  1879. type CreatedArtifact struct {
  1880. _ struct{} `type:"structure"`
  1881. // A description that can be free-form text to record additional detail about
  1882. // the artifact for clarity or for later reference.
  1883. Description *string `type:"string"`
  1884. // An ARN that uniquely identifies the result of a migration task.
  1885. //
  1886. // Name is a required field
  1887. Name *string `min:"1" type:"string" required:"true"`
  1888. }
  1889. // String returns the string representation
  1890. func (s CreatedArtifact) String() string {
  1891. return awsutil.Prettify(s)
  1892. }
  1893. // GoString returns the string representation
  1894. func (s CreatedArtifact) GoString() string {
  1895. return s.String()
  1896. }
  1897. // Validate inspects the fields of the type to determine if they are valid.
  1898. func (s *CreatedArtifact) Validate() error {
  1899. invalidParams := request.ErrInvalidParams{Context: "CreatedArtifact"}
  1900. if s.Name == nil {
  1901. invalidParams.Add(request.NewErrParamRequired("Name"))
  1902. }
  1903. if s.Name != nil && len(*s.Name) < 1 {
  1904. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  1905. }
  1906. if invalidParams.Len() > 0 {
  1907. return invalidParams
  1908. }
  1909. return nil
  1910. }
  1911. // SetDescription sets the Description field's value.
  1912. func (s *CreatedArtifact) SetDescription(v string) *CreatedArtifact {
  1913. s.Description = &v
  1914. return s
  1915. }
  1916. // SetName sets the Name field's value.
  1917. func (s *CreatedArtifact) SetName(v string) *CreatedArtifact {
  1918. s.Name = &v
  1919. return s
  1920. }
  1921. type DeleteProgressUpdateStreamInput struct {
  1922. _ struct{} `type:"structure"`
  1923. // Optional boolean flag to indicate whether any effect should take place. Used
  1924. // to test if the caller has permission to make the call.
  1925. DryRun *bool `type:"boolean"`
  1926. // The name of the ProgressUpdateStream.
  1927. //
  1928. // ProgressUpdateStreamName is a required field
  1929. ProgressUpdateStreamName *string `min:"1" type:"string" required:"true"`
  1930. }
  1931. // String returns the string representation
  1932. func (s DeleteProgressUpdateStreamInput) String() string {
  1933. return awsutil.Prettify(s)
  1934. }
  1935. // GoString returns the string representation
  1936. func (s DeleteProgressUpdateStreamInput) GoString() string {
  1937. return s.String()
  1938. }
  1939. // Validate inspects the fields of the type to determine if they are valid.
  1940. func (s *DeleteProgressUpdateStreamInput) Validate() error {
  1941. invalidParams := request.ErrInvalidParams{Context: "DeleteProgressUpdateStreamInput"}
  1942. if s.ProgressUpdateStreamName == nil {
  1943. invalidParams.Add(request.NewErrParamRequired("ProgressUpdateStreamName"))
  1944. }
  1945. if s.ProgressUpdateStreamName != nil && len(*s.ProgressUpdateStreamName) < 1 {
  1946. invalidParams.Add(request.NewErrParamMinLen("ProgressUpdateStreamName", 1))
  1947. }
  1948. if invalidParams.Len() > 0 {
  1949. return invalidParams
  1950. }
  1951. return nil
  1952. }
  1953. // SetDryRun sets the DryRun field's value.
  1954. func (s *DeleteProgressUpdateStreamInput) SetDryRun(v bool) *DeleteProgressUpdateStreamInput {
  1955. s.DryRun = &v
  1956. return s
  1957. }
  1958. // SetProgressUpdateStreamName sets the ProgressUpdateStreamName field's value.
  1959. func (s *DeleteProgressUpdateStreamInput) SetProgressUpdateStreamName(v string) *DeleteProgressUpdateStreamInput {
  1960. s.ProgressUpdateStreamName = &v
  1961. return s
  1962. }
  1963. type DeleteProgressUpdateStreamOutput struct {
  1964. _ struct{} `type:"structure"`
  1965. }
  1966. // String returns the string representation
  1967. func (s DeleteProgressUpdateStreamOutput) String() string {
  1968. return awsutil.Prettify(s)
  1969. }
  1970. // GoString returns the string representation
  1971. func (s DeleteProgressUpdateStreamOutput) GoString() string {
  1972. return s.String()
  1973. }
  1974. type DescribeApplicationStateInput struct {
  1975. _ struct{} `type:"structure"`
  1976. // The configurationId in ADS that uniquely identifies the grouped application.
  1977. //
  1978. // ApplicationId is a required field
  1979. ApplicationId *string `min:"1" type:"string" required:"true"`
  1980. }
  1981. // String returns the string representation
  1982. func (s DescribeApplicationStateInput) String() string {
  1983. return awsutil.Prettify(s)
  1984. }
  1985. // GoString returns the string representation
  1986. func (s DescribeApplicationStateInput) GoString() string {
  1987. return s.String()
  1988. }
  1989. // Validate inspects the fields of the type to determine if they are valid.
  1990. func (s *DescribeApplicationStateInput) Validate() error {
  1991. invalidParams := request.ErrInvalidParams{Context: "DescribeApplicationStateInput"}
  1992. if s.ApplicationId == nil {
  1993. invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
  1994. }
  1995. if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
  1996. invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
  1997. }
  1998. if invalidParams.Len() > 0 {
  1999. return invalidParams
  2000. }
  2001. return nil
  2002. }
  2003. // SetApplicationId sets the ApplicationId field's value.
  2004. func (s *DescribeApplicationStateInput) SetApplicationId(v string) *DescribeApplicationStateInput {
  2005. s.ApplicationId = &v
  2006. return s
  2007. }
  2008. type DescribeApplicationStateOutput struct {
  2009. _ struct{} `type:"structure"`
  2010. // Status of the application - Not Started, In-Progress, Complete.
  2011. ApplicationStatus *string `type:"string" enum:"ApplicationStatus"`
  2012. // The timestamp when the application status was last updated.
  2013. LastUpdatedTime *time.Time `type:"timestamp"`
  2014. }
  2015. // String returns the string representation
  2016. func (s DescribeApplicationStateOutput) String() string {
  2017. return awsutil.Prettify(s)
  2018. }
  2019. // GoString returns the string representation
  2020. func (s DescribeApplicationStateOutput) GoString() string {
  2021. return s.String()
  2022. }
  2023. // SetApplicationStatus sets the ApplicationStatus field's value.
  2024. func (s *DescribeApplicationStateOutput) SetApplicationStatus(v string) *DescribeApplicationStateOutput {
  2025. s.ApplicationStatus = &v
  2026. return s
  2027. }
  2028. // SetLastUpdatedTime sets the LastUpdatedTime field's value.
  2029. func (s *DescribeApplicationStateOutput) SetLastUpdatedTime(v time.Time) *DescribeApplicationStateOutput {
  2030. s.LastUpdatedTime = &v
  2031. return s
  2032. }
  2033. type DescribeMigrationTaskInput struct {
  2034. _ struct{} `type:"structure"`
  2035. // The identifier given to the MigrationTask.
  2036. //
  2037. // MigrationTaskName is a required field
  2038. MigrationTaskName *string `min:"1" type:"string" required:"true"`
  2039. // The name of the ProgressUpdateStream.
  2040. //
  2041. // ProgressUpdateStream is a required field
  2042. ProgressUpdateStream *string `min:"1" type:"string" required:"true"`
  2043. }
  2044. // String returns the string representation
  2045. func (s DescribeMigrationTaskInput) String() string {
  2046. return awsutil.Prettify(s)
  2047. }
  2048. // GoString returns the string representation
  2049. func (s DescribeMigrationTaskInput) GoString() string {
  2050. return s.String()
  2051. }
  2052. // Validate inspects the fields of the type to determine if they are valid.
  2053. func (s *DescribeMigrationTaskInput) Validate() error {
  2054. invalidParams := request.ErrInvalidParams{Context: "DescribeMigrationTaskInput"}
  2055. if s.MigrationTaskName == nil {
  2056. invalidParams.Add(request.NewErrParamRequired("MigrationTaskName"))
  2057. }
  2058. if s.MigrationTaskName != nil && len(*s.MigrationTaskName) < 1 {
  2059. invalidParams.Add(request.NewErrParamMinLen("MigrationTaskName", 1))
  2060. }
  2061. if s.ProgressUpdateStream == nil {
  2062. invalidParams.Add(request.NewErrParamRequired("ProgressUpdateStream"))
  2063. }
  2064. if s.ProgressUpdateStream != nil && len(*s.ProgressUpdateStream) < 1 {
  2065. invalidParams.Add(request.NewErrParamMinLen("ProgressUpdateStream", 1))
  2066. }
  2067. if invalidParams.Len() > 0 {
  2068. return invalidParams
  2069. }
  2070. return nil
  2071. }
  2072. // SetMigrationTaskName sets the MigrationTaskName field's value.
  2073. func (s *DescribeMigrationTaskInput) SetMigrationTaskName(v string) *DescribeMigrationTaskInput {
  2074. s.MigrationTaskName = &v
  2075. return s
  2076. }
  2077. // SetProgressUpdateStream sets the ProgressUpdateStream field's value.
  2078. func (s *DescribeMigrationTaskInput) SetProgressUpdateStream(v string) *DescribeMigrationTaskInput {
  2079. s.ProgressUpdateStream = &v
  2080. return s
  2081. }
  2082. type DescribeMigrationTaskOutput struct {
  2083. _ struct{} `type:"structure"`
  2084. // Object encapsulating information about the migration task.
  2085. MigrationTask *MigrationTask `type:"structure"`
  2086. }
  2087. // String returns the string representation
  2088. func (s DescribeMigrationTaskOutput) String() string {
  2089. return awsutil.Prettify(s)
  2090. }
  2091. // GoString returns the string representation
  2092. func (s DescribeMigrationTaskOutput) GoString() string {
  2093. return s.String()
  2094. }
  2095. // SetMigrationTask sets the MigrationTask field's value.
  2096. func (s *DescribeMigrationTaskOutput) SetMigrationTask(v *MigrationTask) *DescribeMigrationTaskOutput {
  2097. s.MigrationTask = v
  2098. return s
  2099. }
  2100. type DisassociateCreatedArtifactInput struct {
  2101. _ struct{} `type:"structure"`
  2102. // An ARN of the AWS resource related to the migration (e.g., AMI, EC2 instance,
  2103. // RDS instance, etc.)
  2104. //
  2105. // CreatedArtifactName is a required field
  2106. CreatedArtifactName *string `min:"1" type:"string" required:"true"`
  2107. // Optional boolean flag to indicate whether any effect should take place. Used
  2108. // to test if the caller has permission to make the call.
  2109. DryRun *bool `type:"boolean"`
  2110. // Unique identifier that references the migration task to be disassociated
  2111. // with the artifact.
  2112. //
  2113. // MigrationTaskName is a required field
  2114. MigrationTaskName *string `min:"1" type:"string" required:"true"`
  2115. // The name of the ProgressUpdateStream.
  2116. //
  2117. // ProgressUpdateStream is a required field
  2118. ProgressUpdateStream *string `min:"1" type:"string" required:"true"`
  2119. }
  2120. // String returns the string representation
  2121. func (s DisassociateCreatedArtifactInput) String() string {
  2122. return awsutil.Prettify(s)
  2123. }
  2124. // GoString returns the string representation
  2125. func (s DisassociateCreatedArtifactInput) GoString() string {
  2126. return s.String()
  2127. }
  2128. // Validate inspects the fields of the type to determine if they are valid.
  2129. func (s *DisassociateCreatedArtifactInput) Validate() error {
  2130. invalidParams := request.ErrInvalidParams{Context: "DisassociateCreatedArtifactInput"}
  2131. if s.CreatedArtifactName == nil {
  2132. invalidParams.Add(request.NewErrParamRequired("CreatedArtifactName"))
  2133. }
  2134. if s.CreatedArtifactName != nil && len(*s.CreatedArtifactName) < 1 {
  2135. invalidParams.Add(request.NewErrParamMinLen("CreatedArtifactName", 1))
  2136. }
  2137. if s.MigrationTaskName == nil {
  2138. invalidParams.Add(request.NewErrParamRequired("MigrationTaskName"))
  2139. }
  2140. if s.MigrationTaskName != nil && len(*s.MigrationTaskName) < 1 {
  2141. invalidParams.Add(request.NewErrParamMinLen("MigrationTaskName", 1))
  2142. }
  2143. if s.ProgressUpdateStream == nil {
  2144. invalidParams.Add(request.NewErrParamRequired("ProgressUpdateStream"))
  2145. }
  2146. if s.ProgressUpdateStream != nil && len(*s.ProgressUpdateStream) < 1 {
  2147. invalidParams.Add(request.NewErrParamMinLen("ProgressUpdateStream", 1))
  2148. }
  2149. if invalidParams.Len() > 0 {
  2150. return invalidParams
  2151. }
  2152. return nil
  2153. }
  2154. // SetCreatedArtifactName sets the CreatedArtifactName field's value.
  2155. func (s *DisassociateCreatedArtifactInput) SetCreatedArtifactName(v string) *DisassociateCreatedArtifactInput {
  2156. s.CreatedArtifactName = &v
  2157. return s
  2158. }
  2159. // SetDryRun sets the DryRun field's value.
  2160. func (s *DisassociateCreatedArtifactInput) SetDryRun(v bool) *DisassociateCreatedArtifactInput {
  2161. s.DryRun = &v
  2162. return s
  2163. }
  2164. // SetMigrationTaskName sets the MigrationTaskName field's value.
  2165. func (s *DisassociateCreatedArtifactInput) SetMigrationTaskName(v string) *DisassociateCreatedArtifactInput {
  2166. s.MigrationTaskName = &v
  2167. return s
  2168. }
  2169. // SetProgressUpdateStream sets the ProgressUpdateStream field's value.
  2170. func (s *DisassociateCreatedArtifactInput) SetProgressUpdateStream(v string) *DisassociateCreatedArtifactInput {
  2171. s.ProgressUpdateStream = &v
  2172. return s
  2173. }
  2174. type DisassociateCreatedArtifactOutput struct {
  2175. _ struct{} `type:"structure"`
  2176. }
  2177. // String returns the string representation
  2178. func (s DisassociateCreatedArtifactOutput) String() string {
  2179. return awsutil.Prettify(s)
  2180. }
  2181. // GoString returns the string representation
  2182. func (s DisassociateCreatedArtifactOutput) GoString() string {
  2183. return s.String()
  2184. }
  2185. type DisassociateDiscoveredResourceInput struct {
  2186. _ struct{} `type:"structure"`
  2187. // ConfigurationId of the ADS resource to be disassociated.
  2188. //
  2189. // ConfigurationId is a required field
  2190. ConfigurationId *string `min:"1" type:"string" required:"true"`
  2191. // Optional boolean flag to indicate whether any effect should take place. Used
  2192. // to test if the caller has permission to make the call.
  2193. DryRun *bool `type:"boolean"`
  2194. // The identifier given to the MigrationTask.
  2195. //
  2196. // MigrationTaskName is a required field
  2197. MigrationTaskName *string `min:"1" type:"string" required:"true"`
  2198. // The name of the ProgressUpdateStream.
  2199. //
  2200. // ProgressUpdateStream is a required field
  2201. ProgressUpdateStream *string `min:"1" type:"string" required:"true"`
  2202. }
  2203. // String returns the string representation
  2204. func (s DisassociateDiscoveredResourceInput) String() string {
  2205. return awsutil.Prettify(s)
  2206. }
  2207. // GoString returns the string representation
  2208. func (s DisassociateDiscoveredResourceInput) GoString() string {
  2209. return s.String()
  2210. }
  2211. // Validate inspects the fields of the type to determine if they are valid.
  2212. func (s *DisassociateDiscoveredResourceInput) Validate() error {
  2213. invalidParams := request.ErrInvalidParams{Context: "DisassociateDiscoveredResourceInput"}
  2214. if s.ConfigurationId == nil {
  2215. invalidParams.Add(request.NewErrParamRequired("ConfigurationId"))
  2216. }
  2217. if s.ConfigurationId != nil && len(*s.ConfigurationId) < 1 {
  2218. invalidParams.Add(request.NewErrParamMinLen("ConfigurationId", 1))
  2219. }
  2220. if s.MigrationTaskName == nil {
  2221. invalidParams.Add(request.NewErrParamRequired("MigrationTaskName"))
  2222. }
  2223. if s.MigrationTaskName != nil && len(*s.MigrationTaskName) < 1 {
  2224. invalidParams.Add(request.NewErrParamMinLen("MigrationTaskName", 1))
  2225. }
  2226. if s.ProgressUpdateStream == nil {
  2227. invalidParams.Add(request.NewErrParamRequired("ProgressUpdateStream"))
  2228. }
  2229. if s.ProgressUpdateStream != nil && len(*s.ProgressUpdateStream) < 1 {
  2230. invalidParams.Add(request.NewErrParamMinLen("ProgressUpdateStream", 1))
  2231. }
  2232. if invalidParams.Len() > 0 {
  2233. return invalidParams
  2234. }
  2235. return nil
  2236. }
  2237. // SetConfigurationId sets the ConfigurationId field's value.
  2238. func (s *DisassociateDiscoveredResourceInput) SetConfigurationId(v string) *DisassociateDiscoveredResourceInput {
  2239. s.ConfigurationId = &v
  2240. return s
  2241. }
  2242. // SetDryRun sets the DryRun field's value.
  2243. func (s *DisassociateDiscoveredResourceInput) SetDryRun(v bool) *DisassociateDiscoveredResourceInput {
  2244. s.DryRun = &v
  2245. return s
  2246. }
  2247. // SetMigrationTaskName sets the MigrationTaskName field's value.
  2248. func (s *DisassociateDiscoveredResourceInput) SetMigrationTaskName(v string) *DisassociateDiscoveredResourceInput {
  2249. s.MigrationTaskName = &v
  2250. return s
  2251. }
  2252. // SetProgressUpdateStream sets the ProgressUpdateStream field's value.
  2253. func (s *DisassociateDiscoveredResourceInput) SetProgressUpdateStream(v string) *DisassociateDiscoveredResourceInput {
  2254. s.ProgressUpdateStream = &v
  2255. return s
  2256. }
  2257. type DisassociateDiscoveredResourceOutput struct {
  2258. _ struct{} `type:"structure"`
  2259. }
  2260. // String returns the string representation
  2261. func (s DisassociateDiscoveredResourceOutput) String() string {
  2262. return awsutil.Prettify(s)
  2263. }
  2264. // GoString returns the string representation
  2265. func (s DisassociateDiscoveredResourceOutput) GoString() string {
  2266. return s.String()
  2267. }
  2268. // Object representing the on-premises resource being migrated.
  2269. type DiscoveredResource struct {
  2270. _ struct{} `type:"structure"`
  2271. // The configurationId in ADS that uniquely identifies the on-premise resource.
  2272. //
  2273. // ConfigurationId is a required field
  2274. ConfigurationId *string `min:"1" type:"string" required:"true"`
  2275. // A description that can be free-form text to record additional detail about
  2276. // the discovered resource for clarity or later reference.
  2277. Description *string `type:"string"`
  2278. }
  2279. // String returns the string representation
  2280. func (s DiscoveredResource) String() string {
  2281. return awsutil.Prettify(s)
  2282. }
  2283. // GoString returns the string representation
  2284. func (s DiscoveredResource) GoString() string {
  2285. return s.String()
  2286. }
  2287. // Validate inspects the fields of the type to determine if they are valid.
  2288. func (s *DiscoveredResource) Validate() error {
  2289. invalidParams := request.ErrInvalidParams{Context: "DiscoveredResource"}
  2290. if s.ConfigurationId == nil {
  2291. invalidParams.Add(request.NewErrParamRequired("ConfigurationId"))
  2292. }
  2293. if s.ConfigurationId != nil && len(*s.ConfigurationId) < 1 {
  2294. invalidParams.Add(request.NewErrParamMinLen("ConfigurationId", 1))
  2295. }
  2296. if invalidParams.Len() > 0 {
  2297. return invalidParams
  2298. }
  2299. return nil
  2300. }
  2301. // SetConfigurationId sets the ConfigurationId field's value.
  2302. func (s *DiscoveredResource) SetConfigurationId(v string) *DiscoveredResource {
  2303. s.ConfigurationId = &v
  2304. return s
  2305. }
  2306. // SetDescription sets the Description field's value.
  2307. func (s *DiscoveredResource) SetDescription(v string) *DiscoveredResource {
  2308. s.Description = &v
  2309. return s
  2310. }
  2311. type ImportMigrationTaskInput struct {
  2312. _ struct{} `type:"structure"`
  2313. // Optional boolean flag to indicate whether any effect should take place. Used
  2314. // to test if the caller has permission to make the call.
  2315. DryRun *bool `type:"boolean"`
  2316. // Unique identifier that references the migration task.
  2317. //
  2318. // MigrationTaskName is a required field
  2319. MigrationTaskName *string `min:"1" type:"string" required:"true"`
  2320. // The name of the ProgressUpdateStream.
  2321. //
  2322. // ProgressUpdateStream is a required field
  2323. ProgressUpdateStream *string `min:"1" type:"string" required:"true"`
  2324. }
  2325. // String returns the string representation
  2326. func (s ImportMigrationTaskInput) String() string {
  2327. return awsutil.Prettify(s)
  2328. }
  2329. // GoString returns the string representation
  2330. func (s ImportMigrationTaskInput) GoString() string {
  2331. return s.String()
  2332. }
  2333. // Validate inspects the fields of the type to determine if they are valid.
  2334. func (s *ImportMigrationTaskInput) Validate() error {
  2335. invalidParams := request.ErrInvalidParams{Context: "ImportMigrationTaskInput"}
  2336. if s.MigrationTaskName == nil {
  2337. invalidParams.Add(request.NewErrParamRequired("MigrationTaskName"))
  2338. }
  2339. if s.MigrationTaskName != nil && len(*s.MigrationTaskName) < 1 {
  2340. invalidParams.Add(request.NewErrParamMinLen("MigrationTaskName", 1))
  2341. }
  2342. if s.ProgressUpdateStream == nil {
  2343. invalidParams.Add(request.NewErrParamRequired("ProgressUpdateStream"))
  2344. }
  2345. if s.ProgressUpdateStream != nil && len(*s.ProgressUpdateStream) < 1 {
  2346. invalidParams.Add(request.NewErrParamMinLen("ProgressUpdateStream", 1))
  2347. }
  2348. if invalidParams.Len() > 0 {
  2349. return invalidParams
  2350. }
  2351. return nil
  2352. }
  2353. // SetDryRun sets the DryRun field's value.
  2354. func (s *ImportMigrationTaskInput) SetDryRun(v bool) *ImportMigrationTaskInput {
  2355. s.DryRun = &v
  2356. return s
  2357. }
  2358. // SetMigrationTaskName sets the MigrationTaskName field's value.
  2359. func (s *ImportMigrationTaskInput) SetMigrationTaskName(v string) *ImportMigrationTaskInput {
  2360. s.MigrationTaskName = &v
  2361. return s
  2362. }
  2363. // SetProgressUpdateStream sets the ProgressUpdateStream field's value.
  2364. func (s *ImportMigrationTaskInput) SetProgressUpdateStream(v string) *ImportMigrationTaskInput {
  2365. s.ProgressUpdateStream = &v
  2366. return s
  2367. }
  2368. type ImportMigrationTaskOutput struct {
  2369. _ struct{} `type:"structure"`
  2370. }
  2371. // String returns the string representation
  2372. func (s ImportMigrationTaskOutput) String() string {
  2373. return awsutil.Prettify(s)
  2374. }
  2375. // GoString returns the string representation
  2376. func (s ImportMigrationTaskOutput) GoString() string {
  2377. return s.String()
  2378. }
  2379. type ListCreatedArtifactsInput struct {
  2380. _ struct{} `type:"structure"`
  2381. // Maximum number of results to be returned per page.
  2382. MaxResults *int64 `min:"1" type:"integer"`
  2383. // Unique identifier that references the migration task.
  2384. //
  2385. // MigrationTaskName is a required field
  2386. MigrationTaskName *string `min:"1" type:"string" required:"true"`
  2387. // If a NextToken was returned by a previous call, there are more results available.
  2388. // To retrieve the next page of results, make the call again using the returned
  2389. // token in NextToken.
  2390. NextToken *string `type:"string"`
  2391. // The name of the ProgressUpdateStream.
  2392. //
  2393. // ProgressUpdateStream is a required field
  2394. ProgressUpdateStream *string `min:"1" type:"string" required:"true"`
  2395. }
  2396. // String returns the string representation
  2397. func (s ListCreatedArtifactsInput) String() string {
  2398. return awsutil.Prettify(s)
  2399. }
  2400. // GoString returns the string representation
  2401. func (s ListCreatedArtifactsInput) GoString() string {
  2402. return s.String()
  2403. }
  2404. // Validate inspects the fields of the type to determine if they are valid.
  2405. func (s *ListCreatedArtifactsInput) Validate() error {
  2406. invalidParams := request.ErrInvalidParams{Context: "ListCreatedArtifactsInput"}
  2407. if s.MaxResults != nil && *s.MaxResults < 1 {
  2408. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  2409. }
  2410. if s.MigrationTaskName == nil {
  2411. invalidParams.Add(request.NewErrParamRequired("MigrationTaskName"))
  2412. }
  2413. if s.MigrationTaskName != nil && len(*s.MigrationTaskName) < 1 {
  2414. invalidParams.Add(request.NewErrParamMinLen("MigrationTaskName", 1))
  2415. }
  2416. if s.ProgressUpdateStream == nil {
  2417. invalidParams.Add(request.NewErrParamRequired("ProgressUpdateStream"))
  2418. }
  2419. if s.ProgressUpdateStream != nil && len(*s.ProgressUpdateStream) < 1 {
  2420. invalidParams.Add(request.NewErrParamMinLen("ProgressUpdateStream", 1))
  2421. }
  2422. if invalidParams.Len() > 0 {
  2423. return invalidParams
  2424. }
  2425. return nil
  2426. }
  2427. // SetMaxResults sets the MaxResults field's value.
  2428. func (s *ListCreatedArtifactsInput) SetMaxResults(v int64) *ListCreatedArtifactsInput {
  2429. s.MaxResults = &v
  2430. return s
  2431. }
  2432. // SetMigrationTaskName sets the MigrationTaskName field's value.
  2433. func (s *ListCreatedArtifactsInput) SetMigrationTaskName(v string) *ListCreatedArtifactsInput {
  2434. s.MigrationTaskName = &v
  2435. return s
  2436. }
  2437. // SetNextToken sets the NextToken field's value.
  2438. func (s *ListCreatedArtifactsInput) SetNextToken(v string) *ListCreatedArtifactsInput {
  2439. s.NextToken = &v
  2440. return s
  2441. }
  2442. // SetProgressUpdateStream sets the ProgressUpdateStream field's value.
  2443. func (s *ListCreatedArtifactsInput) SetProgressUpdateStream(v string) *ListCreatedArtifactsInput {
  2444. s.ProgressUpdateStream = &v
  2445. return s
  2446. }
  2447. type ListCreatedArtifactsOutput struct {
  2448. _ struct{} `type:"structure"`
  2449. // List of created artifacts up to the maximum number of results specified in
  2450. // the request.
  2451. CreatedArtifactList []*CreatedArtifact `type:"list"`
  2452. // If there are more created artifacts than the max result, return the next
  2453. // token to be passed to the next call as a bookmark of where to start from.
  2454. NextToken *string `type:"string"`
  2455. }
  2456. // String returns the string representation
  2457. func (s ListCreatedArtifactsOutput) String() string {
  2458. return awsutil.Prettify(s)
  2459. }
  2460. // GoString returns the string representation
  2461. func (s ListCreatedArtifactsOutput) GoString() string {
  2462. return s.String()
  2463. }
  2464. // SetCreatedArtifactList sets the CreatedArtifactList field's value.
  2465. func (s *ListCreatedArtifactsOutput) SetCreatedArtifactList(v []*CreatedArtifact) *ListCreatedArtifactsOutput {
  2466. s.CreatedArtifactList = v
  2467. return s
  2468. }
  2469. // SetNextToken sets the NextToken field's value.
  2470. func (s *ListCreatedArtifactsOutput) SetNextToken(v string) *ListCreatedArtifactsOutput {
  2471. s.NextToken = &v
  2472. return s
  2473. }
  2474. type ListDiscoveredResourcesInput struct {
  2475. _ struct{} `type:"structure"`
  2476. // The maximum number of results returned per page.
  2477. MaxResults *int64 `min:"1" type:"integer"`
  2478. // The name of the MigrationTask.
  2479. //
  2480. // MigrationTaskName is a required field
  2481. MigrationTaskName *string `min:"1" type:"string" required:"true"`
  2482. // If a NextToken was returned by a previous call, there are more results available.
  2483. // To retrieve the next page of results, make the call again using the returned
  2484. // token in NextToken.
  2485. NextToken *string `type:"string"`
  2486. // The name of the ProgressUpdateStream.
  2487. //
  2488. // ProgressUpdateStream is a required field
  2489. ProgressUpdateStream *string `min:"1" type:"string" required:"true"`
  2490. }
  2491. // String returns the string representation
  2492. func (s ListDiscoveredResourcesInput) String() string {
  2493. return awsutil.Prettify(s)
  2494. }
  2495. // GoString returns the string representation
  2496. func (s ListDiscoveredResourcesInput) GoString() string {
  2497. return s.String()
  2498. }
  2499. // Validate inspects the fields of the type to determine if they are valid.
  2500. func (s *ListDiscoveredResourcesInput) Validate() error {
  2501. invalidParams := request.ErrInvalidParams{Context: "ListDiscoveredResourcesInput"}
  2502. if s.MaxResults != nil && *s.MaxResults < 1 {
  2503. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  2504. }
  2505. if s.MigrationTaskName == nil {
  2506. invalidParams.Add(request.NewErrParamRequired("MigrationTaskName"))
  2507. }
  2508. if s.MigrationTaskName != nil && len(*s.MigrationTaskName) < 1 {
  2509. invalidParams.Add(request.NewErrParamMinLen("MigrationTaskName", 1))
  2510. }
  2511. if s.ProgressUpdateStream == nil {
  2512. invalidParams.Add(request.NewErrParamRequired("ProgressUpdateStream"))
  2513. }
  2514. if s.ProgressUpdateStream != nil && len(*s.ProgressUpdateStream) < 1 {
  2515. invalidParams.Add(request.NewErrParamMinLen("ProgressUpdateStream", 1))
  2516. }
  2517. if invalidParams.Len() > 0 {
  2518. return invalidParams
  2519. }
  2520. return nil
  2521. }
  2522. // SetMaxResults sets the MaxResults field's value.
  2523. func (s *ListDiscoveredResourcesInput) SetMaxResults(v int64) *ListDiscoveredResourcesInput {
  2524. s.MaxResults = &v
  2525. return s
  2526. }
  2527. // SetMigrationTaskName sets the MigrationTaskName field's value.
  2528. func (s *ListDiscoveredResourcesInput) SetMigrationTaskName(v string) *ListDiscoveredResourcesInput {
  2529. s.MigrationTaskName = &v
  2530. return s
  2531. }
  2532. // SetNextToken sets the NextToken field's value.
  2533. func (s *ListDiscoveredResourcesInput) SetNextToken(v string) *ListDiscoveredResourcesInput {
  2534. s.NextToken = &v
  2535. return s
  2536. }
  2537. // SetProgressUpdateStream sets the ProgressUpdateStream field's value.
  2538. func (s *ListDiscoveredResourcesInput) SetProgressUpdateStream(v string) *ListDiscoveredResourcesInput {
  2539. s.ProgressUpdateStream = &v
  2540. return s
  2541. }
  2542. type ListDiscoveredResourcesOutput struct {
  2543. _ struct{} `type:"structure"`
  2544. // Returned list of discovered resources associated with the given MigrationTask.
  2545. DiscoveredResourceList []*DiscoveredResource `type:"list"`
  2546. // If there are more discovered resources than the max result, return the next
  2547. // token to be passed to the next call as a bookmark of where to start from.
  2548. NextToken *string `type:"string"`
  2549. }
  2550. // String returns the string representation
  2551. func (s ListDiscoveredResourcesOutput) String() string {
  2552. return awsutil.Prettify(s)
  2553. }
  2554. // GoString returns the string representation
  2555. func (s ListDiscoveredResourcesOutput) GoString() string {
  2556. return s.String()
  2557. }
  2558. // SetDiscoveredResourceList sets the DiscoveredResourceList field's value.
  2559. func (s *ListDiscoveredResourcesOutput) SetDiscoveredResourceList(v []*DiscoveredResource) *ListDiscoveredResourcesOutput {
  2560. s.DiscoveredResourceList = v
  2561. return s
  2562. }
  2563. // SetNextToken sets the NextToken field's value.
  2564. func (s *ListDiscoveredResourcesOutput) SetNextToken(v string) *ListDiscoveredResourcesOutput {
  2565. s.NextToken = &v
  2566. return s
  2567. }
  2568. type ListMigrationTasksInput struct {
  2569. _ struct{} `type:"structure"`
  2570. // Value to specify how many results are returned per page.
  2571. MaxResults *int64 `min:"1" type:"integer"`
  2572. // If a NextToken was returned by a previous call, there are more results available.
  2573. // To retrieve the next page of results, make the call again using the returned
  2574. // token in NextToken.
  2575. NextToken *string `type:"string"`
  2576. // Filter migration tasks by discovered resource name.
  2577. ResourceName *string `min:"1" type:"string"`
  2578. }
  2579. // String returns the string representation
  2580. func (s ListMigrationTasksInput) String() string {
  2581. return awsutil.Prettify(s)
  2582. }
  2583. // GoString returns the string representation
  2584. func (s ListMigrationTasksInput) GoString() string {
  2585. return s.String()
  2586. }
  2587. // Validate inspects the fields of the type to determine if they are valid.
  2588. func (s *ListMigrationTasksInput) Validate() error {
  2589. invalidParams := request.ErrInvalidParams{Context: "ListMigrationTasksInput"}
  2590. if s.MaxResults != nil && *s.MaxResults < 1 {
  2591. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  2592. }
  2593. if s.ResourceName != nil && len(*s.ResourceName) < 1 {
  2594. invalidParams.Add(request.NewErrParamMinLen("ResourceName", 1))
  2595. }
  2596. if invalidParams.Len() > 0 {
  2597. return invalidParams
  2598. }
  2599. return nil
  2600. }
  2601. // SetMaxResults sets the MaxResults field's value.
  2602. func (s *ListMigrationTasksInput) SetMaxResults(v int64) *ListMigrationTasksInput {
  2603. s.MaxResults = &v
  2604. return s
  2605. }
  2606. // SetNextToken sets the NextToken field's value.
  2607. func (s *ListMigrationTasksInput) SetNextToken(v string) *ListMigrationTasksInput {
  2608. s.NextToken = &v
  2609. return s
  2610. }
  2611. // SetResourceName sets the ResourceName field's value.
  2612. func (s *ListMigrationTasksInput) SetResourceName(v string) *ListMigrationTasksInput {
  2613. s.ResourceName = &v
  2614. return s
  2615. }
  2616. type ListMigrationTasksOutput struct {
  2617. _ struct{} `type:"structure"`
  2618. // Lists the migration task's summary which includes: MigrationTaskName, ProgressPercent,
  2619. // ProgressUpdateStream, Status, and the UpdateDateTime for each task.
  2620. MigrationTaskSummaryList []*MigrationTaskSummary `type:"list"`
  2621. // If there are more migration tasks than the max result, return the next token
  2622. // to be passed to the next call as a bookmark of where to start from.
  2623. NextToken *string `type:"string"`
  2624. }
  2625. // String returns the string representation
  2626. func (s ListMigrationTasksOutput) String() string {
  2627. return awsutil.Prettify(s)
  2628. }
  2629. // GoString returns the string representation
  2630. func (s ListMigrationTasksOutput) GoString() string {
  2631. return s.String()
  2632. }
  2633. // SetMigrationTaskSummaryList sets the MigrationTaskSummaryList field's value.
  2634. func (s *ListMigrationTasksOutput) SetMigrationTaskSummaryList(v []*MigrationTaskSummary) *ListMigrationTasksOutput {
  2635. s.MigrationTaskSummaryList = v
  2636. return s
  2637. }
  2638. // SetNextToken sets the NextToken field's value.
  2639. func (s *ListMigrationTasksOutput) SetNextToken(v string) *ListMigrationTasksOutput {
  2640. s.NextToken = &v
  2641. return s
  2642. }
  2643. type ListProgressUpdateStreamsInput struct {
  2644. _ struct{} `type:"structure"`
  2645. // Filter to limit the maximum number of results to list per page.
  2646. MaxResults *int64 `min:"1" type:"integer"`
  2647. // If a NextToken was returned by a previous call, there are more results available.
  2648. // To retrieve the next page of results, make the call again using the returned
  2649. // token in NextToken.
  2650. NextToken *string `type:"string"`
  2651. }
  2652. // String returns the string representation
  2653. func (s ListProgressUpdateStreamsInput) String() string {
  2654. return awsutil.Prettify(s)
  2655. }
  2656. // GoString returns the string representation
  2657. func (s ListProgressUpdateStreamsInput) GoString() string {
  2658. return s.String()
  2659. }
  2660. // Validate inspects the fields of the type to determine if they are valid.
  2661. func (s *ListProgressUpdateStreamsInput) Validate() error {
  2662. invalidParams := request.ErrInvalidParams{Context: "ListProgressUpdateStreamsInput"}
  2663. if s.MaxResults != nil && *s.MaxResults < 1 {
  2664. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  2665. }
  2666. if invalidParams.Len() > 0 {
  2667. return invalidParams
  2668. }
  2669. return nil
  2670. }
  2671. // SetMaxResults sets the MaxResults field's value.
  2672. func (s *ListProgressUpdateStreamsInput) SetMaxResults(v int64) *ListProgressUpdateStreamsInput {
  2673. s.MaxResults = &v
  2674. return s
  2675. }
  2676. // SetNextToken sets the NextToken field's value.
  2677. func (s *ListProgressUpdateStreamsInput) SetNextToken(v string) *ListProgressUpdateStreamsInput {
  2678. s.NextToken = &v
  2679. return s
  2680. }
  2681. type ListProgressUpdateStreamsOutput struct {
  2682. _ struct{} `type:"structure"`
  2683. // If there are more streams created than the max result, return the next token
  2684. // to be passed to the next call as a bookmark of where to start from.
  2685. NextToken *string `type:"string"`
  2686. // List of progress update streams up to the max number of results passed in
  2687. // the input.
  2688. ProgressUpdateStreamSummaryList []*ProgressUpdateStreamSummary `type:"list"`
  2689. }
  2690. // String returns the string representation
  2691. func (s ListProgressUpdateStreamsOutput) String() string {
  2692. return awsutil.Prettify(s)
  2693. }
  2694. // GoString returns the string representation
  2695. func (s ListProgressUpdateStreamsOutput) GoString() string {
  2696. return s.String()
  2697. }
  2698. // SetNextToken sets the NextToken field's value.
  2699. func (s *ListProgressUpdateStreamsOutput) SetNextToken(v string) *ListProgressUpdateStreamsOutput {
  2700. s.NextToken = &v
  2701. return s
  2702. }
  2703. // SetProgressUpdateStreamSummaryList sets the ProgressUpdateStreamSummaryList field's value.
  2704. func (s *ListProgressUpdateStreamsOutput) SetProgressUpdateStreamSummaryList(v []*ProgressUpdateStreamSummary) *ListProgressUpdateStreamsOutput {
  2705. s.ProgressUpdateStreamSummaryList = v
  2706. return s
  2707. }
  2708. // Represents a migration task in a migration tool.
  2709. type MigrationTask struct {
  2710. _ struct{} `type:"structure"`
  2711. // Unique identifier that references the migration task.
  2712. MigrationTaskName *string `min:"1" type:"string"`
  2713. // A name that identifies the vendor of the migration tool being used.
  2714. ProgressUpdateStream *string `min:"1" type:"string"`
  2715. ResourceAttributeList []*ResourceAttribute `type:"list"`
  2716. // Task object encapsulating task information.
  2717. Task *Task `type:"structure"`
  2718. // The timestamp when the task was gathered.
  2719. UpdateDateTime *time.Time `type:"timestamp"`
  2720. }
  2721. // String returns the string representation
  2722. func (s MigrationTask) String() string {
  2723. return awsutil.Prettify(s)
  2724. }
  2725. // GoString returns the string representation
  2726. func (s MigrationTask) GoString() string {
  2727. return s.String()
  2728. }
  2729. // SetMigrationTaskName sets the MigrationTaskName field's value.
  2730. func (s *MigrationTask) SetMigrationTaskName(v string) *MigrationTask {
  2731. s.MigrationTaskName = &v
  2732. return s
  2733. }
  2734. // SetProgressUpdateStream sets the ProgressUpdateStream field's value.
  2735. func (s *MigrationTask) SetProgressUpdateStream(v string) *MigrationTask {
  2736. s.ProgressUpdateStream = &v
  2737. return s
  2738. }
  2739. // SetResourceAttributeList sets the ResourceAttributeList field's value.
  2740. func (s *MigrationTask) SetResourceAttributeList(v []*ResourceAttribute) *MigrationTask {
  2741. s.ResourceAttributeList = v
  2742. return s
  2743. }
  2744. // SetTask sets the Task field's value.
  2745. func (s *MigrationTask) SetTask(v *Task) *MigrationTask {
  2746. s.Task = v
  2747. return s
  2748. }
  2749. // SetUpdateDateTime sets the UpdateDateTime field's value.
  2750. func (s *MigrationTask) SetUpdateDateTime(v time.Time) *MigrationTask {
  2751. s.UpdateDateTime = &v
  2752. return s
  2753. }
  2754. // MigrationTaskSummary includes MigrationTaskName, ProgressPercent, ProgressUpdateStream,
  2755. // Status, and UpdateDateTime for each task.
  2756. type MigrationTaskSummary struct {
  2757. _ struct{} `type:"structure"`
  2758. // Unique identifier that references the migration task.
  2759. MigrationTaskName *string `min:"1" type:"string"`
  2760. ProgressPercent *int64 `type:"integer"`
  2761. // An AWS resource used for access control. It should uniquely identify the
  2762. // migration tool as it is used for all updates made by the tool.
  2763. ProgressUpdateStream *string `min:"1" type:"string"`
  2764. // Status of the task.
  2765. Status *string `type:"string" enum:"Status"`
  2766. // Detail information of what is being done within the overall status state.
  2767. StatusDetail *string `type:"string"`
  2768. // The timestamp when the task was gathered.
  2769. UpdateDateTime *time.Time `type:"timestamp"`
  2770. }
  2771. // String returns the string representation
  2772. func (s MigrationTaskSummary) String() string {
  2773. return awsutil.Prettify(s)
  2774. }
  2775. // GoString returns the string representation
  2776. func (s MigrationTaskSummary) GoString() string {
  2777. return s.String()
  2778. }
  2779. // SetMigrationTaskName sets the MigrationTaskName field's value.
  2780. func (s *MigrationTaskSummary) SetMigrationTaskName(v string) *MigrationTaskSummary {
  2781. s.MigrationTaskName = &v
  2782. return s
  2783. }
  2784. // SetProgressPercent sets the ProgressPercent field's value.
  2785. func (s *MigrationTaskSummary) SetProgressPercent(v int64) *MigrationTaskSummary {
  2786. s.ProgressPercent = &v
  2787. return s
  2788. }
  2789. // SetProgressUpdateStream sets the ProgressUpdateStream field's value.
  2790. func (s *MigrationTaskSummary) SetProgressUpdateStream(v string) *MigrationTaskSummary {
  2791. s.ProgressUpdateStream = &v
  2792. return s
  2793. }
  2794. // SetStatus sets the Status field's value.
  2795. func (s *MigrationTaskSummary) SetStatus(v string) *MigrationTaskSummary {
  2796. s.Status = &v
  2797. return s
  2798. }
  2799. // SetStatusDetail sets the StatusDetail field's value.
  2800. func (s *MigrationTaskSummary) SetStatusDetail(v string) *MigrationTaskSummary {
  2801. s.StatusDetail = &v
  2802. return s
  2803. }
  2804. // SetUpdateDateTime sets the UpdateDateTime field's value.
  2805. func (s *MigrationTaskSummary) SetUpdateDateTime(v time.Time) *MigrationTaskSummary {
  2806. s.UpdateDateTime = &v
  2807. return s
  2808. }
  2809. type NotifyApplicationStateInput struct {
  2810. _ struct{} `type:"structure"`
  2811. // The configurationId in ADS that uniquely identifies the grouped application.
  2812. //
  2813. // ApplicationId is a required field
  2814. ApplicationId *string `min:"1" type:"string" required:"true"`
  2815. // Optional boolean flag to indicate whether any effect should take place. Used
  2816. // to test if the caller has permission to make the call.
  2817. DryRun *bool `type:"boolean"`
  2818. // Status of the application - Not Started, In-Progress, Complete.
  2819. //
  2820. // Status is a required field
  2821. Status *string `type:"string" required:"true" enum:"ApplicationStatus"`
  2822. }
  2823. // String returns the string representation
  2824. func (s NotifyApplicationStateInput) String() string {
  2825. return awsutil.Prettify(s)
  2826. }
  2827. // GoString returns the string representation
  2828. func (s NotifyApplicationStateInput) GoString() string {
  2829. return s.String()
  2830. }
  2831. // Validate inspects the fields of the type to determine if they are valid.
  2832. func (s *NotifyApplicationStateInput) Validate() error {
  2833. invalidParams := request.ErrInvalidParams{Context: "NotifyApplicationStateInput"}
  2834. if s.ApplicationId == nil {
  2835. invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
  2836. }
  2837. if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
  2838. invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
  2839. }
  2840. if s.Status == nil {
  2841. invalidParams.Add(request.NewErrParamRequired("Status"))
  2842. }
  2843. if invalidParams.Len() > 0 {
  2844. return invalidParams
  2845. }
  2846. return nil
  2847. }
  2848. // SetApplicationId sets the ApplicationId field's value.
  2849. func (s *NotifyApplicationStateInput) SetApplicationId(v string) *NotifyApplicationStateInput {
  2850. s.ApplicationId = &v
  2851. return s
  2852. }
  2853. // SetDryRun sets the DryRun field's value.
  2854. func (s *NotifyApplicationStateInput) SetDryRun(v bool) *NotifyApplicationStateInput {
  2855. s.DryRun = &v
  2856. return s
  2857. }
  2858. // SetStatus sets the Status field's value.
  2859. func (s *NotifyApplicationStateInput) SetStatus(v string) *NotifyApplicationStateInput {
  2860. s.Status = &v
  2861. return s
  2862. }
  2863. type NotifyApplicationStateOutput struct {
  2864. _ struct{} `type:"structure"`
  2865. }
  2866. // String returns the string representation
  2867. func (s NotifyApplicationStateOutput) String() string {
  2868. return awsutil.Prettify(s)
  2869. }
  2870. // GoString returns the string representation
  2871. func (s NotifyApplicationStateOutput) GoString() string {
  2872. return s.String()
  2873. }
  2874. type NotifyMigrationTaskStateInput struct {
  2875. _ struct{} `type:"structure"`
  2876. // Optional boolean flag to indicate whether any effect should take place. Used
  2877. // to test if the caller has permission to make the call.
  2878. DryRun *bool `type:"boolean"`
  2879. // Unique identifier that references the migration task.
  2880. //
  2881. // MigrationTaskName is a required field
  2882. MigrationTaskName *string `min:"1" type:"string" required:"true"`
  2883. // Number of seconds after the UpdateDateTime within which the Migration Hub
  2884. // can expect an update. If Migration Hub does not receive an update within
  2885. // the specified interval, then the migration task will be considered stale.
  2886. //
  2887. // NextUpdateSeconds is a required field
  2888. NextUpdateSeconds *int64 `type:"integer" required:"true"`
  2889. // The name of the ProgressUpdateStream.
  2890. //
  2891. // ProgressUpdateStream is a required field
  2892. ProgressUpdateStream *string `min:"1" type:"string" required:"true"`
  2893. // Information about the task's progress and status.
  2894. //
  2895. // Task is a required field
  2896. Task *Task `type:"structure" required:"true"`
  2897. // The timestamp when the task was gathered.
  2898. //
  2899. // UpdateDateTime is a required field
  2900. UpdateDateTime *time.Time `type:"timestamp" required:"true"`
  2901. }
  2902. // String returns the string representation
  2903. func (s NotifyMigrationTaskStateInput) String() string {
  2904. return awsutil.Prettify(s)
  2905. }
  2906. // GoString returns the string representation
  2907. func (s NotifyMigrationTaskStateInput) GoString() string {
  2908. return s.String()
  2909. }
  2910. // Validate inspects the fields of the type to determine if they are valid.
  2911. func (s *NotifyMigrationTaskStateInput) Validate() error {
  2912. invalidParams := request.ErrInvalidParams{Context: "NotifyMigrationTaskStateInput"}
  2913. if s.MigrationTaskName == nil {
  2914. invalidParams.Add(request.NewErrParamRequired("MigrationTaskName"))
  2915. }
  2916. if s.MigrationTaskName != nil && len(*s.MigrationTaskName) < 1 {
  2917. invalidParams.Add(request.NewErrParamMinLen("MigrationTaskName", 1))
  2918. }
  2919. if s.NextUpdateSeconds == nil {
  2920. invalidParams.Add(request.NewErrParamRequired("NextUpdateSeconds"))
  2921. }
  2922. if s.ProgressUpdateStream == nil {
  2923. invalidParams.Add(request.NewErrParamRequired("ProgressUpdateStream"))
  2924. }
  2925. if s.ProgressUpdateStream != nil && len(*s.ProgressUpdateStream) < 1 {
  2926. invalidParams.Add(request.NewErrParamMinLen("ProgressUpdateStream", 1))
  2927. }
  2928. if s.Task == nil {
  2929. invalidParams.Add(request.NewErrParamRequired("Task"))
  2930. }
  2931. if s.UpdateDateTime == nil {
  2932. invalidParams.Add(request.NewErrParamRequired("UpdateDateTime"))
  2933. }
  2934. if s.Task != nil {
  2935. if err := s.Task.Validate(); err != nil {
  2936. invalidParams.AddNested("Task", err.(request.ErrInvalidParams))
  2937. }
  2938. }
  2939. if invalidParams.Len() > 0 {
  2940. return invalidParams
  2941. }
  2942. return nil
  2943. }
  2944. // SetDryRun sets the DryRun field's value.
  2945. func (s *NotifyMigrationTaskStateInput) SetDryRun(v bool) *NotifyMigrationTaskStateInput {
  2946. s.DryRun = &v
  2947. return s
  2948. }
  2949. // SetMigrationTaskName sets the MigrationTaskName field's value.
  2950. func (s *NotifyMigrationTaskStateInput) SetMigrationTaskName(v string) *NotifyMigrationTaskStateInput {
  2951. s.MigrationTaskName = &v
  2952. return s
  2953. }
  2954. // SetNextUpdateSeconds sets the NextUpdateSeconds field's value.
  2955. func (s *NotifyMigrationTaskStateInput) SetNextUpdateSeconds(v int64) *NotifyMigrationTaskStateInput {
  2956. s.NextUpdateSeconds = &v
  2957. return s
  2958. }
  2959. // SetProgressUpdateStream sets the ProgressUpdateStream field's value.
  2960. func (s *NotifyMigrationTaskStateInput) SetProgressUpdateStream(v string) *NotifyMigrationTaskStateInput {
  2961. s.ProgressUpdateStream = &v
  2962. return s
  2963. }
  2964. // SetTask sets the Task field's value.
  2965. func (s *NotifyMigrationTaskStateInput) SetTask(v *Task) *NotifyMigrationTaskStateInput {
  2966. s.Task = v
  2967. return s
  2968. }
  2969. // SetUpdateDateTime sets the UpdateDateTime field's value.
  2970. func (s *NotifyMigrationTaskStateInput) SetUpdateDateTime(v time.Time) *NotifyMigrationTaskStateInput {
  2971. s.UpdateDateTime = &v
  2972. return s
  2973. }
  2974. type NotifyMigrationTaskStateOutput struct {
  2975. _ struct{} `type:"structure"`
  2976. }
  2977. // String returns the string representation
  2978. func (s NotifyMigrationTaskStateOutput) String() string {
  2979. return awsutil.Prettify(s)
  2980. }
  2981. // GoString returns the string representation
  2982. func (s NotifyMigrationTaskStateOutput) GoString() string {
  2983. return s.String()
  2984. }
  2985. // Summary of the AWS resource used for access control that is implicitly linked
  2986. // to your AWS account.
  2987. type ProgressUpdateStreamSummary struct {
  2988. _ struct{} `type:"structure"`
  2989. // The name of the ProgressUpdateStream.
  2990. ProgressUpdateStreamName *string `min:"1" type:"string"`
  2991. }
  2992. // String returns the string representation
  2993. func (s ProgressUpdateStreamSummary) String() string {
  2994. return awsutil.Prettify(s)
  2995. }
  2996. // GoString returns the string representation
  2997. func (s ProgressUpdateStreamSummary) GoString() string {
  2998. return s.String()
  2999. }
  3000. // SetProgressUpdateStreamName sets the ProgressUpdateStreamName field's value.
  3001. func (s *ProgressUpdateStreamSummary) SetProgressUpdateStreamName(v string) *ProgressUpdateStreamSummary {
  3002. s.ProgressUpdateStreamName = &v
  3003. return s
  3004. }
  3005. type PutResourceAttributesInput struct {
  3006. _ struct{} `type:"structure"`
  3007. // Optional boolean flag to indicate whether any effect should take place. Used
  3008. // to test if the caller has permission to make the call.
  3009. DryRun *bool `type:"boolean"`
  3010. // Unique identifier that references the migration task.
  3011. //
  3012. // MigrationTaskName is a required field
  3013. MigrationTaskName *string `min:"1" type:"string" required:"true"`
  3014. // The name of the ProgressUpdateStream.
  3015. //
  3016. // ProgressUpdateStream is a required field
  3017. ProgressUpdateStream *string `min:"1" type:"string" required:"true"`
  3018. // Information about the resource that is being migrated. This data will be
  3019. // used to map the task to a resource in the Application Discovery Service (ADS)'s
  3020. // repository.
  3021. //
  3022. // Takes the object array of ResourceAttribute where the Type field is reserved
  3023. // for the following values: IPV4_ADDRESS | IPV6_ADDRESS | MAC_ADDRESS | FQDN
  3024. // | VM_MANAGER_ID | VM_MANAGED_OBJECT_REFERENCE | VM_NAME | VM_PATH | BIOS_ID
  3025. // | MOTHERBOARD_SERIAL_NUMBER where the identifying value can be a string up
  3026. // to 256 characters.
  3027. //
  3028. // If any "VM" related value is set for a ResourceAttribute object, it is required
  3029. // that VM_MANAGER_ID, as a minimum, is always set. If VM_MANAGER_ID is not
  3030. // set, then all "VM" fields will be discarded and "VM" fields will not be used
  3031. // for matching the migration task to a server in Application Discovery Service
  3032. // (ADS)'s repository. See the Example (https://docs.aws.amazon.com/migrationhub/latest/ug/API_PutResourceAttributes.html#API_PutResourceAttributes_Examples)
  3033. // section below for a use case of specifying "VM" related values.
  3034. //
  3035. // If a server you are trying to match has multiple IP or MAC addresses, you
  3036. // should provide as many as you know in separate type/value pairs passed to
  3037. // the ResourceAttributeList parameter to maximize the chances of matching.
  3038. //
  3039. // ResourceAttributeList is a required field
  3040. ResourceAttributeList []*ResourceAttribute `min:"1" type:"list" required:"true"`
  3041. }
  3042. // String returns the string representation
  3043. func (s PutResourceAttributesInput) String() string {
  3044. return awsutil.Prettify(s)
  3045. }
  3046. // GoString returns the string representation
  3047. func (s PutResourceAttributesInput) GoString() string {
  3048. return s.String()
  3049. }
  3050. // Validate inspects the fields of the type to determine if they are valid.
  3051. func (s *PutResourceAttributesInput) Validate() error {
  3052. invalidParams := request.ErrInvalidParams{Context: "PutResourceAttributesInput"}
  3053. if s.MigrationTaskName == nil {
  3054. invalidParams.Add(request.NewErrParamRequired("MigrationTaskName"))
  3055. }
  3056. if s.MigrationTaskName != nil && len(*s.MigrationTaskName) < 1 {
  3057. invalidParams.Add(request.NewErrParamMinLen("MigrationTaskName", 1))
  3058. }
  3059. if s.ProgressUpdateStream == nil {
  3060. invalidParams.Add(request.NewErrParamRequired("ProgressUpdateStream"))
  3061. }
  3062. if s.ProgressUpdateStream != nil && len(*s.ProgressUpdateStream) < 1 {
  3063. invalidParams.Add(request.NewErrParamMinLen("ProgressUpdateStream", 1))
  3064. }
  3065. if s.ResourceAttributeList == nil {
  3066. invalidParams.Add(request.NewErrParamRequired("ResourceAttributeList"))
  3067. }
  3068. if s.ResourceAttributeList != nil && len(s.ResourceAttributeList) < 1 {
  3069. invalidParams.Add(request.NewErrParamMinLen("ResourceAttributeList", 1))
  3070. }
  3071. if s.ResourceAttributeList != nil {
  3072. for i, v := range s.ResourceAttributeList {
  3073. if v == nil {
  3074. continue
  3075. }
  3076. if err := v.Validate(); err != nil {
  3077. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ResourceAttributeList", i), err.(request.ErrInvalidParams))
  3078. }
  3079. }
  3080. }
  3081. if invalidParams.Len() > 0 {
  3082. return invalidParams
  3083. }
  3084. return nil
  3085. }
  3086. // SetDryRun sets the DryRun field's value.
  3087. func (s *PutResourceAttributesInput) SetDryRun(v bool) *PutResourceAttributesInput {
  3088. s.DryRun = &v
  3089. return s
  3090. }
  3091. // SetMigrationTaskName sets the MigrationTaskName field's value.
  3092. func (s *PutResourceAttributesInput) SetMigrationTaskName(v string) *PutResourceAttributesInput {
  3093. s.MigrationTaskName = &v
  3094. return s
  3095. }
  3096. // SetProgressUpdateStream sets the ProgressUpdateStream field's value.
  3097. func (s *PutResourceAttributesInput) SetProgressUpdateStream(v string) *PutResourceAttributesInput {
  3098. s.ProgressUpdateStream = &v
  3099. return s
  3100. }
  3101. // SetResourceAttributeList sets the ResourceAttributeList field's value.
  3102. func (s *PutResourceAttributesInput) SetResourceAttributeList(v []*ResourceAttribute) *PutResourceAttributesInput {
  3103. s.ResourceAttributeList = v
  3104. return s
  3105. }
  3106. type PutResourceAttributesOutput struct {
  3107. _ struct{} `type:"structure"`
  3108. }
  3109. // String returns the string representation
  3110. func (s PutResourceAttributesOutput) String() string {
  3111. return awsutil.Prettify(s)
  3112. }
  3113. // GoString returns the string representation
  3114. func (s PutResourceAttributesOutput) GoString() string {
  3115. return s.String()
  3116. }
  3117. // Attribute associated with a resource.
  3118. //
  3119. // Note the corresponding format required per type listed below:
  3120. //
  3121. // IPV4x.x.x.x
  3122. //
  3123. // where x is an integer in the range [0,255]
  3124. //
  3125. // IPV6y : y : y : y : y : y : y : y
  3126. //
  3127. // where y is a hexadecimal between 0 and FFFF. [0, FFFF]
  3128. //
  3129. // MAC_ADDRESS^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$
  3130. //
  3131. // FQDN^[^<>{}\\\\/?,=\\p{Cntrl}]{1,256}$
  3132. type ResourceAttribute struct {
  3133. _ struct{} `type:"structure"`
  3134. // Type of resource.
  3135. //
  3136. // Type is a required field
  3137. Type *string `type:"string" required:"true" enum:"ResourceAttributeType"`
  3138. // Value of the resource type.
  3139. //
  3140. // Value is a required field
  3141. Value *string `min:"1" type:"string" required:"true"`
  3142. }
  3143. // String returns the string representation
  3144. func (s ResourceAttribute) String() string {
  3145. return awsutil.Prettify(s)
  3146. }
  3147. // GoString returns the string representation
  3148. func (s ResourceAttribute) GoString() string {
  3149. return s.String()
  3150. }
  3151. // Validate inspects the fields of the type to determine if they are valid.
  3152. func (s *ResourceAttribute) Validate() error {
  3153. invalidParams := request.ErrInvalidParams{Context: "ResourceAttribute"}
  3154. if s.Type == nil {
  3155. invalidParams.Add(request.NewErrParamRequired("Type"))
  3156. }
  3157. if s.Value == nil {
  3158. invalidParams.Add(request.NewErrParamRequired("Value"))
  3159. }
  3160. if s.Value != nil && len(*s.Value) < 1 {
  3161. invalidParams.Add(request.NewErrParamMinLen("Value", 1))
  3162. }
  3163. if invalidParams.Len() > 0 {
  3164. return invalidParams
  3165. }
  3166. return nil
  3167. }
  3168. // SetType sets the Type field's value.
  3169. func (s *ResourceAttribute) SetType(v string) *ResourceAttribute {
  3170. s.Type = &v
  3171. return s
  3172. }
  3173. // SetValue sets the Value field's value.
  3174. func (s *ResourceAttribute) SetValue(v string) *ResourceAttribute {
  3175. s.Value = &v
  3176. return s
  3177. }
  3178. // Task object encapsulating task information.
  3179. type Task struct {
  3180. _ struct{} `type:"structure"`
  3181. // Indication of the percentage completion of the task.
  3182. ProgressPercent *int64 `type:"integer"`
  3183. // Status of the task - Not Started, In-Progress, Complete.
  3184. //
  3185. // Status is a required field
  3186. Status *string `type:"string" required:"true" enum:"Status"`
  3187. // Details of task status as notified by a migration tool. A tool might use
  3188. // this field to provide clarifying information about the status that is unique
  3189. // to that tool or that explains an error state.
  3190. StatusDetail *string `type:"string"`
  3191. }
  3192. // String returns the string representation
  3193. func (s Task) String() string {
  3194. return awsutil.Prettify(s)
  3195. }
  3196. // GoString returns the string representation
  3197. func (s Task) GoString() string {
  3198. return s.String()
  3199. }
  3200. // Validate inspects the fields of the type to determine if they are valid.
  3201. func (s *Task) Validate() error {
  3202. invalidParams := request.ErrInvalidParams{Context: "Task"}
  3203. if s.Status == nil {
  3204. invalidParams.Add(request.NewErrParamRequired("Status"))
  3205. }
  3206. if invalidParams.Len() > 0 {
  3207. return invalidParams
  3208. }
  3209. return nil
  3210. }
  3211. // SetProgressPercent sets the ProgressPercent field's value.
  3212. func (s *Task) SetProgressPercent(v int64) *Task {
  3213. s.ProgressPercent = &v
  3214. return s
  3215. }
  3216. // SetStatus sets the Status field's value.
  3217. func (s *Task) SetStatus(v string) *Task {
  3218. s.Status = &v
  3219. return s
  3220. }
  3221. // SetStatusDetail sets the StatusDetail field's value.
  3222. func (s *Task) SetStatusDetail(v string) *Task {
  3223. s.StatusDetail = &v
  3224. return s
  3225. }
  3226. const (
  3227. // ApplicationStatusNotStarted is a ApplicationStatus enum value
  3228. ApplicationStatusNotStarted = "NOT_STARTED"
  3229. // ApplicationStatusInProgress is a ApplicationStatus enum value
  3230. ApplicationStatusInProgress = "IN_PROGRESS"
  3231. // ApplicationStatusCompleted is a ApplicationStatus enum value
  3232. ApplicationStatusCompleted = "COMPLETED"
  3233. )
  3234. const (
  3235. // ResourceAttributeTypeIpv4Address is a ResourceAttributeType enum value
  3236. ResourceAttributeTypeIpv4Address = "IPV4_ADDRESS"
  3237. // ResourceAttributeTypeIpv6Address is a ResourceAttributeType enum value
  3238. ResourceAttributeTypeIpv6Address = "IPV6_ADDRESS"
  3239. // ResourceAttributeTypeMacAddress is a ResourceAttributeType enum value
  3240. ResourceAttributeTypeMacAddress = "MAC_ADDRESS"
  3241. // ResourceAttributeTypeFqdn is a ResourceAttributeType enum value
  3242. ResourceAttributeTypeFqdn = "FQDN"
  3243. // ResourceAttributeTypeVmManagerId is a ResourceAttributeType enum value
  3244. ResourceAttributeTypeVmManagerId = "VM_MANAGER_ID"
  3245. // ResourceAttributeTypeVmManagedObjectReference is a ResourceAttributeType enum value
  3246. ResourceAttributeTypeVmManagedObjectReference = "VM_MANAGED_OBJECT_REFERENCE"
  3247. // ResourceAttributeTypeVmName is a ResourceAttributeType enum value
  3248. ResourceAttributeTypeVmName = "VM_NAME"
  3249. // ResourceAttributeTypeVmPath is a ResourceAttributeType enum value
  3250. ResourceAttributeTypeVmPath = "VM_PATH"
  3251. // ResourceAttributeTypeBiosId is a ResourceAttributeType enum value
  3252. ResourceAttributeTypeBiosId = "BIOS_ID"
  3253. // ResourceAttributeTypeMotherboardSerialNumber is a ResourceAttributeType enum value
  3254. ResourceAttributeTypeMotherboardSerialNumber = "MOTHERBOARD_SERIAL_NUMBER"
  3255. )
  3256. const (
  3257. // StatusNotStarted is a Status enum value
  3258. StatusNotStarted = "NOT_STARTED"
  3259. // StatusInProgress is a Status enum value
  3260. StatusInProgress = "IN_PROGRESS"
  3261. // StatusFailed is a Status enum value
  3262. StatusFailed = "FAILED"
  3263. // StatusCompleted is a Status enum value
  3264. StatusCompleted = "COMPLETED"
  3265. )