api.go 166 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package databasemigrationservice provides a client for AWS Database Migration Service.
  3. package databasemigrationservice
  4. import (
  5. "fmt"
  6. "time"
  7. "github.com/aws/aws-sdk-go/aws/awsutil"
  8. "github.com/aws/aws-sdk-go/aws/request"
  9. )
  10. const opAddTagsToResource = "AddTagsToResource"
  11. // AddTagsToResourceRequest generates a "aws/request.Request" representing the
  12. // client's request for the AddTagsToResource operation. The "output" return
  13. // value can be used to capture response data after the request's "Send" method
  14. // is called.
  15. //
  16. // See AddTagsToResource for usage and error information.
  17. //
  18. // Creating a request object using this method should be used when you want to inject
  19. // custom logic into the request's lifecycle using a custom handler, or if you want to
  20. // access properties on the request object before or after sending the request. If
  21. // you just want the service response, call the AddTagsToResource method directly
  22. // instead.
  23. //
  24. // Note: You must call the "Send" method on the returned request object in order
  25. // to execute the request.
  26. //
  27. // // Example sending a request using the AddTagsToResourceRequest method.
  28. // req, resp := client.AddTagsToResourceRequest(params)
  29. //
  30. // err := req.Send()
  31. // if err == nil { // resp is now filled
  32. // fmt.Println(resp)
  33. // }
  34. //
  35. func (c *DatabaseMigrationService) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *request.Request, output *AddTagsToResourceOutput) {
  36. op := &request.Operation{
  37. Name: opAddTagsToResource,
  38. HTTPMethod: "POST",
  39. HTTPPath: "/",
  40. }
  41. if input == nil {
  42. input = &AddTagsToResourceInput{}
  43. }
  44. req = c.newRequest(op, input, output)
  45. output = &AddTagsToResourceOutput{}
  46. req.Data = output
  47. return
  48. }
  49. // AddTagsToResource API operation for AWS Database Migration Service.
  50. //
  51. // Adds metadata tags to a DMS resource, including replication instance, endpoint,
  52. // security group, and migration task. These tags can also be used with cost
  53. // allocation reporting to track cost associated with DMS resources, or used
  54. // in a Condition statement in an IAM policy for DMS.
  55. //
  56. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  57. // with awserr.Error's Code and Message methods to get detailed information about
  58. // the error.
  59. //
  60. // See the AWS API reference guide for AWS Database Migration Service's
  61. // API operation AddTagsToResource for usage and error information.
  62. //
  63. // Returned Error Codes:
  64. // * ResourceNotFoundFault
  65. // The resource could not be found.
  66. //
  67. func (c *DatabaseMigrationService) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) {
  68. req, out := c.AddTagsToResourceRequest(input)
  69. err := req.Send()
  70. return out, err
  71. }
  72. const opCreateEndpoint = "CreateEndpoint"
  73. // CreateEndpointRequest generates a "aws/request.Request" representing the
  74. // client's request for the CreateEndpoint operation. The "output" return
  75. // value can be used to capture response data after the request's "Send" method
  76. // is called.
  77. //
  78. // See CreateEndpoint for usage and error information.
  79. //
  80. // Creating a request object using this method should be used when you want to inject
  81. // custom logic into the request's lifecycle using a custom handler, or if you want to
  82. // access properties on the request object before or after sending the request. If
  83. // you just want the service response, call the CreateEndpoint method directly
  84. // instead.
  85. //
  86. // Note: You must call the "Send" method on the returned request object in order
  87. // to execute the request.
  88. //
  89. // // Example sending a request using the CreateEndpointRequest method.
  90. // req, resp := client.CreateEndpointRequest(params)
  91. //
  92. // err := req.Send()
  93. // if err == nil { // resp is now filled
  94. // fmt.Println(resp)
  95. // }
  96. //
  97. func (c *DatabaseMigrationService) CreateEndpointRequest(input *CreateEndpointInput) (req *request.Request, output *CreateEndpointOutput) {
  98. op := &request.Operation{
  99. Name: opCreateEndpoint,
  100. HTTPMethod: "POST",
  101. HTTPPath: "/",
  102. }
  103. if input == nil {
  104. input = &CreateEndpointInput{}
  105. }
  106. req = c.newRequest(op, input, output)
  107. output = &CreateEndpointOutput{}
  108. req.Data = output
  109. return
  110. }
  111. // CreateEndpoint API operation for AWS Database Migration Service.
  112. //
  113. // Creates an endpoint using the provided settings.
  114. //
  115. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  116. // with awserr.Error's Code and Message methods to get detailed information about
  117. // the error.
  118. //
  119. // See the AWS API reference guide for AWS Database Migration Service's
  120. // API operation CreateEndpoint for usage and error information.
  121. //
  122. // Returned Error Codes:
  123. // * KMSKeyNotAccessibleFault
  124. // AWS DMS cannot access the KMS key.
  125. //
  126. // * ResourceAlreadyExistsFault
  127. // The resource you are attempting to create already exists.
  128. //
  129. // * ResourceQuotaExceededFault
  130. // The quota for this resource quota has been exceeded.
  131. //
  132. // * InvalidResourceStateFault
  133. // The resource is in a state that prevents it from being used for database
  134. // migration.
  135. //
  136. // * ResourceNotFoundFault
  137. // The resource could not be found.
  138. //
  139. func (c *DatabaseMigrationService) CreateEndpoint(input *CreateEndpointInput) (*CreateEndpointOutput, error) {
  140. req, out := c.CreateEndpointRequest(input)
  141. err := req.Send()
  142. return out, err
  143. }
  144. const opCreateReplicationInstance = "CreateReplicationInstance"
  145. // CreateReplicationInstanceRequest generates a "aws/request.Request" representing the
  146. // client's request for the CreateReplicationInstance operation. The "output" return
  147. // value can be used to capture response data after the request's "Send" method
  148. // is called.
  149. //
  150. // See CreateReplicationInstance for usage and error information.
  151. //
  152. // Creating a request object using this method should be used when you want to inject
  153. // custom logic into the request's lifecycle using a custom handler, or if you want to
  154. // access properties on the request object before or after sending the request. If
  155. // you just want the service response, call the CreateReplicationInstance method directly
  156. // instead.
  157. //
  158. // Note: You must call the "Send" method on the returned request object in order
  159. // to execute the request.
  160. //
  161. // // Example sending a request using the CreateReplicationInstanceRequest method.
  162. // req, resp := client.CreateReplicationInstanceRequest(params)
  163. //
  164. // err := req.Send()
  165. // if err == nil { // resp is now filled
  166. // fmt.Println(resp)
  167. // }
  168. //
  169. func (c *DatabaseMigrationService) CreateReplicationInstanceRequest(input *CreateReplicationInstanceInput) (req *request.Request, output *CreateReplicationInstanceOutput) {
  170. op := &request.Operation{
  171. Name: opCreateReplicationInstance,
  172. HTTPMethod: "POST",
  173. HTTPPath: "/",
  174. }
  175. if input == nil {
  176. input = &CreateReplicationInstanceInput{}
  177. }
  178. req = c.newRequest(op, input, output)
  179. output = &CreateReplicationInstanceOutput{}
  180. req.Data = output
  181. return
  182. }
  183. // CreateReplicationInstance API operation for AWS Database Migration Service.
  184. //
  185. // Creates the replication instance using the specified parameters.
  186. //
  187. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  188. // with awserr.Error's Code and Message methods to get detailed information about
  189. // the error.
  190. //
  191. // See the AWS API reference guide for AWS Database Migration Service's
  192. // API operation CreateReplicationInstance for usage and error information.
  193. //
  194. // Returned Error Codes:
  195. // * AccessDeniedFault
  196. // AWS DMS was denied access to the endpoint.
  197. //
  198. // * ResourceAlreadyExistsFault
  199. // The resource you are attempting to create already exists.
  200. //
  201. // * InsufficientResourceCapacityFault
  202. // There are not enough resources allocated to the database migration.
  203. //
  204. // * ResourceQuotaExceededFault
  205. // The quota for this resource quota has been exceeded.
  206. //
  207. // * StorageQuotaExceededFault
  208. // The storage quota has been exceeded.
  209. //
  210. // * ResourceNotFoundFault
  211. // The resource could not be found.
  212. //
  213. // * ReplicationSubnetGroupDoesNotCoverEnoughAZs
  214. // The replication subnet group does not cover enough Availability Zones (AZs).
  215. // Edit the replication subnet group and add more AZs.
  216. //
  217. // * InvalidResourceStateFault
  218. // The resource is in a state that prevents it from being used for database
  219. // migration.
  220. //
  221. // * InvalidSubnet
  222. // The subnet provided is invalid.
  223. //
  224. // * KMSKeyNotAccessibleFault
  225. // AWS DMS cannot access the KMS key.
  226. //
  227. func (c *DatabaseMigrationService) CreateReplicationInstance(input *CreateReplicationInstanceInput) (*CreateReplicationInstanceOutput, error) {
  228. req, out := c.CreateReplicationInstanceRequest(input)
  229. err := req.Send()
  230. return out, err
  231. }
  232. const opCreateReplicationSubnetGroup = "CreateReplicationSubnetGroup"
  233. // CreateReplicationSubnetGroupRequest generates a "aws/request.Request" representing the
  234. // client's request for the CreateReplicationSubnetGroup operation. The "output" return
  235. // value can be used to capture response data after the request's "Send" method
  236. // is called.
  237. //
  238. // See CreateReplicationSubnetGroup for usage and error information.
  239. //
  240. // Creating a request object using this method should be used when you want to inject
  241. // custom logic into the request's lifecycle using a custom handler, or if you want to
  242. // access properties on the request object before or after sending the request. If
  243. // you just want the service response, call the CreateReplicationSubnetGroup method directly
  244. // instead.
  245. //
  246. // Note: You must call the "Send" method on the returned request object in order
  247. // to execute the request.
  248. //
  249. // // Example sending a request using the CreateReplicationSubnetGroupRequest method.
  250. // req, resp := client.CreateReplicationSubnetGroupRequest(params)
  251. //
  252. // err := req.Send()
  253. // if err == nil { // resp is now filled
  254. // fmt.Println(resp)
  255. // }
  256. //
  257. func (c *DatabaseMigrationService) CreateReplicationSubnetGroupRequest(input *CreateReplicationSubnetGroupInput) (req *request.Request, output *CreateReplicationSubnetGroupOutput) {
  258. op := &request.Operation{
  259. Name: opCreateReplicationSubnetGroup,
  260. HTTPMethod: "POST",
  261. HTTPPath: "/",
  262. }
  263. if input == nil {
  264. input = &CreateReplicationSubnetGroupInput{}
  265. }
  266. req = c.newRequest(op, input, output)
  267. output = &CreateReplicationSubnetGroupOutput{}
  268. req.Data = output
  269. return
  270. }
  271. // CreateReplicationSubnetGroup API operation for AWS Database Migration Service.
  272. //
  273. // Creates a replication subnet group given a list of the subnet IDs in a VPC.
  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 Database Migration Service's
  280. // API operation CreateReplicationSubnetGroup for usage and error information.
  281. //
  282. // Returned Error Codes:
  283. // * AccessDeniedFault
  284. // AWS DMS was denied access to the endpoint.
  285. //
  286. // * ResourceAlreadyExistsFault
  287. // The resource you are attempting to create already exists.
  288. //
  289. // * ResourceNotFoundFault
  290. // The resource could not be found.
  291. //
  292. // * ResourceQuotaExceededFault
  293. // The quota for this resource quota has been exceeded.
  294. //
  295. // * ReplicationSubnetGroupDoesNotCoverEnoughAZs
  296. // The replication subnet group does not cover enough Availability Zones (AZs).
  297. // Edit the replication subnet group and add more AZs.
  298. //
  299. // * InvalidSubnet
  300. // The subnet provided is invalid.
  301. //
  302. func (c *DatabaseMigrationService) CreateReplicationSubnetGroup(input *CreateReplicationSubnetGroupInput) (*CreateReplicationSubnetGroupOutput, error) {
  303. req, out := c.CreateReplicationSubnetGroupRequest(input)
  304. err := req.Send()
  305. return out, err
  306. }
  307. const opCreateReplicationTask = "CreateReplicationTask"
  308. // CreateReplicationTaskRequest generates a "aws/request.Request" representing the
  309. // client's request for the CreateReplicationTask operation. The "output" return
  310. // value can be used to capture response data after the request's "Send" method
  311. // is called.
  312. //
  313. // See CreateReplicationTask for usage and error information.
  314. //
  315. // Creating a request object using this method should be used when you want to inject
  316. // custom logic into the request's lifecycle using a custom handler, or if you want to
  317. // access properties on the request object before or after sending the request. If
  318. // you just want the service response, call the CreateReplicationTask method directly
  319. // instead.
  320. //
  321. // Note: You must call the "Send" method on the returned request object in order
  322. // to execute the request.
  323. //
  324. // // Example sending a request using the CreateReplicationTaskRequest method.
  325. // req, resp := client.CreateReplicationTaskRequest(params)
  326. //
  327. // err := req.Send()
  328. // if err == nil { // resp is now filled
  329. // fmt.Println(resp)
  330. // }
  331. //
  332. func (c *DatabaseMigrationService) CreateReplicationTaskRequest(input *CreateReplicationTaskInput) (req *request.Request, output *CreateReplicationTaskOutput) {
  333. op := &request.Operation{
  334. Name: opCreateReplicationTask,
  335. HTTPMethod: "POST",
  336. HTTPPath: "/",
  337. }
  338. if input == nil {
  339. input = &CreateReplicationTaskInput{}
  340. }
  341. req = c.newRequest(op, input, output)
  342. output = &CreateReplicationTaskOutput{}
  343. req.Data = output
  344. return
  345. }
  346. // CreateReplicationTask API operation for AWS Database Migration Service.
  347. //
  348. // Creates a replication task using the specified parameters.
  349. //
  350. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  351. // with awserr.Error's Code and Message methods to get detailed information about
  352. // the error.
  353. //
  354. // See the AWS API reference guide for AWS Database Migration Service's
  355. // API operation CreateReplicationTask for usage and error information.
  356. //
  357. // Returned Error Codes:
  358. // * InvalidResourceStateFault
  359. // The resource is in a state that prevents it from being used for database
  360. // migration.
  361. //
  362. // * ResourceAlreadyExistsFault
  363. // The resource you are attempting to create already exists.
  364. //
  365. // * ResourceNotFoundFault
  366. // The resource could not be found.
  367. //
  368. // * KMSKeyNotAccessibleFault
  369. // AWS DMS cannot access the KMS key.
  370. //
  371. // * ResourceQuotaExceededFault
  372. // The quota for this resource quota has been exceeded.
  373. //
  374. func (c *DatabaseMigrationService) CreateReplicationTask(input *CreateReplicationTaskInput) (*CreateReplicationTaskOutput, error) {
  375. req, out := c.CreateReplicationTaskRequest(input)
  376. err := req.Send()
  377. return out, err
  378. }
  379. const opDeleteCertificate = "DeleteCertificate"
  380. // DeleteCertificateRequest generates a "aws/request.Request" representing the
  381. // client's request for the DeleteCertificate operation. The "output" return
  382. // value can be used to capture response data after the request's "Send" method
  383. // is called.
  384. //
  385. // See DeleteCertificate for usage and error information.
  386. //
  387. // Creating a request object using this method should be used when you want to inject
  388. // custom logic into the request's lifecycle using a custom handler, or if you want to
  389. // access properties on the request object before or after sending the request. If
  390. // you just want the service response, call the DeleteCertificate method directly
  391. // instead.
  392. //
  393. // Note: You must call the "Send" method on the returned request object in order
  394. // to execute the request.
  395. //
  396. // // Example sending a request using the DeleteCertificateRequest method.
  397. // req, resp := client.DeleteCertificateRequest(params)
  398. //
  399. // err := req.Send()
  400. // if err == nil { // resp is now filled
  401. // fmt.Println(resp)
  402. // }
  403. //
  404. func (c *DatabaseMigrationService) DeleteCertificateRequest(input *DeleteCertificateInput) (req *request.Request, output *DeleteCertificateOutput) {
  405. op := &request.Operation{
  406. Name: opDeleteCertificate,
  407. HTTPMethod: "POST",
  408. HTTPPath: "/",
  409. }
  410. if input == nil {
  411. input = &DeleteCertificateInput{}
  412. }
  413. req = c.newRequest(op, input, output)
  414. output = &DeleteCertificateOutput{}
  415. req.Data = output
  416. return
  417. }
  418. // DeleteCertificate API operation for AWS Database Migration Service.
  419. //
  420. // Deletes the specified certificate.
  421. //
  422. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  423. // with awserr.Error's Code and Message methods to get detailed information about
  424. // the error.
  425. //
  426. // See the AWS API reference guide for AWS Database Migration Service's
  427. // API operation DeleteCertificate for usage and error information.
  428. //
  429. // Returned Error Codes:
  430. // * ResourceNotFoundFault
  431. // The resource could not be found.
  432. //
  433. // * InvalidResourceStateFault
  434. // The resource is in a state that prevents it from being used for database
  435. // migration.
  436. //
  437. func (c *DatabaseMigrationService) DeleteCertificate(input *DeleteCertificateInput) (*DeleteCertificateOutput, error) {
  438. req, out := c.DeleteCertificateRequest(input)
  439. err := req.Send()
  440. return out, err
  441. }
  442. const opDeleteEndpoint = "DeleteEndpoint"
  443. // DeleteEndpointRequest generates a "aws/request.Request" representing the
  444. // client's request for the DeleteEndpoint operation. The "output" return
  445. // value can be used to capture response data after the request's "Send" method
  446. // is called.
  447. //
  448. // See DeleteEndpoint for usage and error information.
  449. //
  450. // Creating a request object using this method should be used when you want to inject
  451. // custom logic into the request's lifecycle using a custom handler, or if you want to
  452. // access properties on the request object before or after sending the request. If
  453. // you just want the service response, call the DeleteEndpoint method directly
  454. // instead.
  455. //
  456. // Note: You must call the "Send" method on the returned request object in order
  457. // to execute the request.
  458. //
  459. // // Example sending a request using the DeleteEndpointRequest method.
  460. // req, resp := client.DeleteEndpointRequest(params)
  461. //
  462. // err := req.Send()
  463. // if err == nil { // resp is now filled
  464. // fmt.Println(resp)
  465. // }
  466. //
  467. func (c *DatabaseMigrationService) DeleteEndpointRequest(input *DeleteEndpointInput) (req *request.Request, output *DeleteEndpointOutput) {
  468. op := &request.Operation{
  469. Name: opDeleteEndpoint,
  470. HTTPMethod: "POST",
  471. HTTPPath: "/",
  472. }
  473. if input == nil {
  474. input = &DeleteEndpointInput{}
  475. }
  476. req = c.newRequest(op, input, output)
  477. output = &DeleteEndpointOutput{}
  478. req.Data = output
  479. return
  480. }
  481. // DeleteEndpoint API operation for AWS Database Migration Service.
  482. //
  483. // Deletes the specified endpoint.
  484. //
  485. // All tasks associated with the endpoint must be deleted before you can delete
  486. // the endpoint.
  487. //
  488. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  489. // with awserr.Error's Code and Message methods to get detailed information about
  490. // the error.
  491. //
  492. // See the AWS API reference guide for AWS Database Migration Service's
  493. // API operation DeleteEndpoint for usage and error information.
  494. //
  495. // Returned Error Codes:
  496. // * ResourceNotFoundFault
  497. // The resource could not be found.
  498. //
  499. // * InvalidResourceStateFault
  500. // The resource is in a state that prevents it from being used for database
  501. // migration.
  502. //
  503. func (c *DatabaseMigrationService) DeleteEndpoint(input *DeleteEndpointInput) (*DeleteEndpointOutput, error) {
  504. req, out := c.DeleteEndpointRequest(input)
  505. err := req.Send()
  506. return out, err
  507. }
  508. const opDeleteReplicationInstance = "DeleteReplicationInstance"
  509. // DeleteReplicationInstanceRequest generates a "aws/request.Request" representing the
  510. // client's request for the DeleteReplicationInstance operation. The "output" return
  511. // value can be used to capture response data after the request's "Send" method
  512. // is called.
  513. //
  514. // See DeleteReplicationInstance for usage and error information.
  515. //
  516. // Creating a request object using this method should be used when you want to inject
  517. // custom logic into the request's lifecycle using a custom handler, or if you want to
  518. // access properties on the request object before or after sending the request. If
  519. // you just want the service response, call the DeleteReplicationInstance method directly
  520. // instead.
  521. //
  522. // Note: You must call the "Send" method on the returned request object in order
  523. // to execute the request.
  524. //
  525. // // Example sending a request using the DeleteReplicationInstanceRequest method.
  526. // req, resp := client.DeleteReplicationInstanceRequest(params)
  527. //
  528. // err := req.Send()
  529. // if err == nil { // resp is now filled
  530. // fmt.Println(resp)
  531. // }
  532. //
  533. func (c *DatabaseMigrationService) DeleteReplicationInstanceRequest(input *DeleteReplicationInstanceInput) (req *request.Request, output *DeleteReplicationInstanceOutput) {
  534. op := &request.Operation{
  535. Name: opDeleteReplicationInstance,
  536. HTTPMethod: "POST",
  537. HTTPPath: "/",
  538. }
  539. if input == nil {
  540. input = &DeleteReplicationInstanceInput{}
  541. }
  542. req = c.newRequest(op, input, output)
  543. output = &DeleteReplicationInstanceOutput{}
  544. req.Data = output
  545. return
  546. }
  547. // DeleteReplicationInstance API operation for AWS Database Migration Service.
  548. //
  549. // Deletes the specified replication instance.
  550. //
  551. // You must delete any migration tasks that are associated with the replication
  552. // instance before you can delete it.
  553. //
  554. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  555. // with awserr.Error's Code and Message methods to get detailed information about
  556. // the error.
  557. //
  558. // See the AWS API reference guide for AWS Database Migration Service's
  559. // API operation DeleteReplicationInstance for usage and error information.
  560. //
  561. // Returned Error Codes:
  562. // * InvalidResourceStateFault
  563. // The resource is in a state that prevents it from being used for database
  564. // migration.
  565. //
  566. // * ResourceNotFoundFault
  567. // The resource could not be found.
  568. //
  569. func (c *DatabaseMigrationService) DeleteReplicationInstance(input *DeleteReplicationInstanceInput) (*DeleteReplicationInstanceOutput, error) {
  570. req, out := c.DeleteReplicationInstanceRequest(input)
  571. err := req.Send()
  572. return out, err
  573. }
  574. const opDeleteReplicationSubnetGroup = "DeleteReplicationSubnetGroup"
  575. // DeleteReplicationSubnetGroupRequest generates a "aws/request.Request" representing the
  576. // client's request for the DeleteReplicationSubnetGroup operation. The "output" return
  577. // value can be used to capture response data after the request's "Send" method
  578. // is called.
  579. //
  580. // See DeleteReplicationSubnetGroup for usage and error information.
  581. //
  582. // Creating a request object using this method should be used when you want to inject
  583. // custom logic into the request's lifecycle using a custom handler, or if you want to
  584. // access properties on the request object before or after sending the request. If
  585. // you just want the service response, call the DeleteReplicationSubnetGroup method directly
  586. // instead.
  587. //
  588. // Note: You must call the "Send" method on the returned request object in order
  589. // to execute the request.
  590. //
  591. // // Example sending a request using the DeleteReplicationSubnetGroupRequest method.
  592. // req, resp := client.DeleteReplicationSubnetGroupRequest(params)
  593. //
  594. // err := req.Send()
  595. // if err == nil { // resp is now filled
  596. // fmt.Println(resp)
  597. // }
  598. //
  599. func (c *DatabaseMigrationService) DeleteReplicationSubnetGroupRequest(input *DeleteReplicationSubnetGroupInput) (req *request.Request, output *DeleteReplicationSubnetGroupOutput) {
  600. op := &request.Operation{
  601. Name: opDeleteReplicationSubnetGroup,
  602. HTTPMethod: "POST",
  603. HTTPPath: "/",
  604. }
  605. if input == nil {
  606. input = &DeleteReplicationSubnetGroupInput{}
  607. }
  608. req = c.newRequest(op, input, output)
  609. output = &DeleteReplicationSubnetGroupOutput{}
  610. req.Data = output
  611. return
  612. }
  613. // DeleteReplicationSubnetGroup API operation for AWS Database Migration Service.
  614. //
  615. // Deletes a subnet group.
  616. //
  617. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  618. // with awserr.Error's Code and Message methods to get detailed information about
  619. // the error.
  620. //
  621. // See the AWS API reference guide for AWS Database Migration Service's
  622. // API operation DeleteReplicationSubnetGroup for usage and error information.
  623. //
  624. // Returned Error Codes:
  625. // * InvalidResourceStateFault
  626. // The resource is in a state that prevents it from being used for database
  627. // migration.
  628. //
  629. // * ResourceNotFoundFault
  630. // The resource could not be found.
  631. //
  632. func (c *DatabaseMigrationService) DeleteReplicationSubnetGroup(input *DeleteReplicationSubnetGroupInput) (*DeleteReplicationSubnetGroupOutput, error) {
  633. req, out := c.DeleteReplicationSubnetGroupRequest(input)
  634. err := req.Send()
  635. return out, err
  636. }
  637. const opDeleteReplicationTask = "DeleteReplicationTask"
  638. // DeleteReplicationTaskRequest generates a "aws/request.Request" representing the
  639. // client's request for the DeleteReplicationTask operation. The "output" return
  640. // value can be used to capture response data after the request's "Send" method
  641. // is called.
  642. //
  643. // See DeleteReplicationTask for usage and error information.
  644. //
  645. // Creating a request object using this method should be used when you want to inject
  646. // custom logic into the request's lifecycle using a custom handler, or if you want to
  647. // access properties on the request object before or after sending the request. If
  648. // you just want the service response, call the DeleteReplicationTask method directly
  649. // instead.
  650. //
  651. // Note: You must call the "Send" method on the returned request object in order
  652. // to execute the request.
  653. //
  654. // // Example sending a request using the DeleteReplicationTaskRequest method.
  655. // req, resp := client.DeleteReplicationTaskRequest(params)
  656. //
  657. // err := req.Send()
  658. // if err == nil { // resp is now filled
  659. // fmt.Println(resp)
  660. // }
  661. //
  662. func (c *DatabaseMigrationService) DeleteReplicationTaskRequest(input *DeleteReplicationTaskInput) (req *request.Request, output *DeleteReplicationTaskOutput) {
  663. op := &request.Operation{
  664. Name: opDeleteReplicationTask,
  665. HTTPMethod: "POST",
  666. HTTPPath: "/",
  667. }
  668. if input == nil {
  669. input = &DeleteReplicationTaskInput{}
  670. }
  671. req = c.newRequest(op, input, output)
  672. output = &DeleteReplicationTaskOutput{}
  673. req.Data = output
  674. return
  675. }
  676. // DeleteReplicationTask API operation for AWS Database Migration Service.
  677. //
  678. // Deletes the specified replication task.
  679. //
  680. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  681. // with awserr.Error's Code and Message methods to get detailed information about
  682. // the error.
  683. //
  684. // See the AWS API reference guide for AWS Database Migration Service's
  685. // API operation DeleteReplicationTask for usage and error information.
  686. //
  687. // Returned Error Codes:
  688. // * ResourceNotFoundFault
  689. // The resource could not be found.
  690. //
  691. // * InvalidResourceStateFault
  692. // The resource is in a state that prevents it from being used for database
  693. // migration.
  694. //
  695. func (c *DatabaseMigrationService) DeleteReplicationTask(input *DeleteReplicationTaskInput) (*DeleteReplicationTaskOutput, error) {
  696. req, out := c.DeleteReplicationTaskRequest(input)
  697. err := req.Send()
  698. return out, err
  699. }
  700. const opDescribeAccountAttributes = "DescribeAccountAttributes"
  701. // DescribeAccountAttributesRequest generates a "aws/request.Request" representing the
  702. // client's request for the DescribeAccountAttributes operation. The "output" return
  703. // value can be used to capture response data after the request's "Send" method
  704. // is called.
  705. //
  706. // See DescribeAccountAttributes for usage and error information.
  707. //
  708. // Creating a request object using this method should be used when you want to inject
  709. // custom logic into the request's lifecycle using a custom handler, or if you want to
  710. // access properties on the request object before or after sending the request. If
  711. // you just want the service response, call the DescribeAccountAttributes method directly
  712. // instead.
  713. //
  714. // Note: You must call the "Send" method on the returned request object in order
  715. // to execute the request.
  716. //
  717. // // Example sending a request using the DescribeAccountAttributesRequest method.
  718. // req, resp := client.DescribeAccountAttributesRequest(params)
  719. //
  720. // err := req.Send()
  721. // if err == nil { // resp is now filled
  722. // fmt.Println(resp)
  723. // }
  724. //
  725. func (c *DatabaseMigrationService) DescribeAccountAttributesRequest(input *DescribeAccountAttributesInput) (req *request.Request, output *DescribeAccountAttributesOutput) {
  726. op := &request.Operation{
  727. Name: opDescribeAccountAttributes,
  728. HTTPMethod: "POST",
  729. HTTPPath: "/",
  730. }
  731. if input == nil {
  732. input = &DescribeAccountAttributesInput{}
  733. }
  734. req = c.newRequest(op, input, output)
  735. output = &DescribeAccountAttributesOutput{}
  736. req.Data = output
  737. return
  738. }
  739. // DescribeAccountAttributes API operation for AWS Database Migration Service.
  740. //
  741. // Lists all of the AWS DMS attributes for a customer account. The attributes
  742. // include AWS DMS quotas for the account, such as the number of replication
  743. // instances allowed. The description for a quota includes the quota name, current
  744. // usage toward that quota, and the quota's maximum value.
  745. //
  746. // This command does not take any parameters.
  747. //
  748. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  749. // with awserr.Error's Code and Message methods to get detailed information about
  750. // the error.
  751. //
  752. // See the AWS API reference guide for AWS Database Migration Service's
  753. // API operation DescribeAccountAttributes for usage and error information.
  754. func (c *DatabaseMigrationService) DescribeAccountAttributes(input *DescribeAccountAttributesInput) (*DescribeAccountAttributesOutput, error) {
  755. req, out := c.DescribeAccountAttributesRequest(input)
  756. err := req.Send()
  757. return out, err
  758. }
  759. const opDescribeCertificates = "DescribeCertificates"
  760. // DescribeCertificatesRequest generates a "aws/request.Request" representing the
  761. // client's request for the DescribeCertificates operation. The "output" return
  762. // value can be used to capture response data after the request's "Send" method
  763. // is called.
  764. //
  765. // See DescribeCertificates for usage and error information.
  766. //
  767. // Creating a request object using this method should be used when you want to inject
  768. // custom logic into the request's lifecycle using a custom handler, or if you want to
  769. // access properties on the request object before or after sending the request. If
  770. // you just want the service response, call the DescribeCertificates method directly
  771. // instead.
  772. //
  773. // Note: You must call the "Send" method on the returned request object in order
  774. // to execute the request.
  775. //
  776. // // Example sending a request using the DescribeCertificatesRequest method.
  777. // req, resp := client.DescribeCertificatesRequest(params)
  778. //
  779. // err := req.Send()
  780. // if err == nil { // resp is now filled
  781. // fmt.Println(resp)
  782. // }
  783. //
  784. func (c *DatabaseMigrationService) DescribeCertificatesRequest(input *DescribeCertificatesInput) (req *request.Request, output *DescribeCertificatesOutput) {
  785. op := &request.Operation{
  786. Name: opDescribeCertificates,
  787. HTTPMethod: "POST",
  788. HTTPPath: "/",
  789. }
  790. if input == nil {
  791. input = &DescribeCertificatesInput{}
  792. }
  793. req = c.newRequest(op, input, output)
  794. output = &DescribeCertificatesOutput{}
  795. req.Data = output
  796. return
  797. }
  798. // DescribeCertificates API operation for AWS Database Migration Service.
  799. //
  800. // Provides a description of the certificate.
  801. //
  802. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  803. // with awserr.Error's Code and Message methods to get detailed information about
  804. // the error.
  805. //
  806. // See the AWS API reference guide for AWS Database Migration Service's
  807. // API operation DescribeCertificates for usage and error information.
  808. //
  809. // Returned Error Codes:
  810. // * ResourceNotFoundFault
  811. // The resource could not be found.
  812. //
  813. func (c *DatabaseMigrationService) DescribeCertificates(input *DescribeCertificatesInput) (*DescribeCertificatesOutput, error) {
  814. req, out := c.DescribeCertificatesRequest(input)
  815. err := req.Send()
  816. return out, err
  817. }
  818. const opDescribeConnections = "DescribeConnections"
  819. // DescribeConnectionsRequest generates a "aws/request.Request" representing the
  820. // client's request for the DescribeConnections operation. The "output" return
  821. // value can be used to capture response data after the request's "Send" method
  822. // is called.
  823. //
  824. // See DescribeConnections for usage and error information.
  825. //
  826. // Creating a request object using this method should be used when you want to inject
  827. // custom logic into the request's lifecycle using a custom handler, or if you want to
  828. // access properties on the request object before or after sending the request. If
  829. // you just want the service response, call the DescribeConnections method directly
  830. // instead.
  831. //
  832. // Note: You must call the "Send" method on the returned request object in order
  833. // to execute the request.
  834. //
  835. // // Example sending a request using the DescribeConnectionsRequest method.
  836. // req, resp := client.DescribeConnectionsRequest(params)
  837. //
  838. // err := req.Send()
  839. // if err == nil { // resp is now filled
  840. // fmt.Println(resp)
  841. // }
  842. //
  843. func (c *DatabaseMigrationService) DescribeConnectionsRequest(input *DescribeConnectionsInput) (req *request.Request, output *DescribeConnectionsOutput) {
  844. op := &request.Operation{
  845. Name: opDescribeConnections,
  846. HTTPMethod: "POST",
  847. HTTPPath: "/",
  848. }
  849. if input == nil {
  850. input = &DescribeConnectionsInput{}
  851. }
  852. req = c.newRequest(op, input, output)
  853. output = &DescribeConnectionsOutput{}
  854. req.Data = output
  855. return
  856. }
  857. // DescribeConnections API operation for AWS Database Migration Service.
  858. //
  859. // Describes the status of the connections that have been made between the replication
  860. // instance and an endpoint. Connections are created when you test an endpoint.
  861. //
  862. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  863. // with awserr.Error's Code and Message methods to get detailed information about
  864. // the error.
  865. //
  866. // See the AWS API reference guide for AWS Database Migration Service's
  867. // API operation DescribeConnections for usage and error information.
  868. //
  869. // Returned Error Codes:
  870. // * ResourceNotFoundFault
  871. // The resource could not be found.
  872. //
  873. func (c *DatabaseMigrationService) DescribeConnections(input *DescribeConnectionsInput) (*DescribeConnectionsOutput, error) {
  874. req, out := c.DescribeConnectionsRequest(input)
  875. err := req.Send()
  876. return out, err
  877. }
  878. const opDescribeEndpointTypes = "DescribeEndpointTypes"
  879. // DescribeEndpointTypesRequest generates a "aws/request.Request" representing the
  880. // client's request for the DescribeEndpointTypes operation. The "output" return
  881. // value can be used to capture response data after the request's "Send" method
  882. // is called.
  883. //
  884. // See DescribeEndpointTypes for usage and error information.
  885. //
  886. // Creating a request object using this method should be used when you want to inject
  887. // custom logic into the request's lifecycle using a custom handler, or if you want to
  888. // access properties on the request object before or after sending the request. If
  889. // you just want the service response, call the DescribeEndpointTypes method directly
  890. // instead.
  891. //
  892. // Note: You must call the "Send" method on the returned request object in order
  893. // to execute the request.
  894. //
  895. // // Example sending a request using the DescribeEndpointTypesRequest method.
  896. // req, resp := client.DescribeEndpointTypesRequest(params)
  897. //
  898. // err := req.Send()
  899. // if err == nil { // resp is now filled
  900. // fmt.Println(resp)
  901. // }
  902. //
  903. func (c *DatabaseMigrationService) DescribeEndpointTypesRequest(input *DescribeEndpointTypesInput) (req *request.Request, output *DescribeEndpointTypesOutput) {
  904. op := &request.Operation{
  905. Name: opDescribeEndpointTypes,
  906. HTTPMethod: "POST",
  907. HTTPPath: "/",
  908. }
  909. if input == nil {
  910. input = &DescribeEndpointTypesInput{}
  911. }
  912. req = c.newRequest(op, input, output)
  913. output = &DescribeEndpointTypesOutput{}
  914. req.Data = output
  915. return
  916. }
  917. // DescribeEndpointTypes API operation for AWS Database Migration Service.
  918. //
  919. // Returns information about the type of endpoints available.
  920. //
  921. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  922. // with awserr.Error's Code and Message methods to get detailed information about
  923. // the error.
  924. //
  925. // See the AWS API reference guide for AWS Database Migration Service's
  926. // API operation DescribeEndpointTypes for usage and error information.
  927. func (c *DatabaseMigrationService) DescribeEndpointTypes(input *DescribeEndpointTypesInput) (*DescribeEndpointTypesOutput, error) {
  928. req, out := c.DescribeEndpointTypesRequest(input)
  929. err := req.Send()
  930. return out, err
  931. }
  932. const opDescribeEndpoints = "DescribeEndpoints"
  933. // DescribeEndpointsRequest generates a "aws/request.Request" representing the
  934. // client's request for the DescribeEndpoints operation. The "output" return
  935. // value can be used to capture response data after the request's "Send" method
  936. // is called.
  937. //
  938. // See DescribeEndpoints for usage and error information.
  939. //
  940. // Creating a request object using this method should be used when you want to inject
  941. // custom logic into the request's lifecycle using a custom handler, or if you want to
  942. // access properties on the request object before or after sending the request. If
  943. // you just want the service response, call the DescribeEndpoints method directly
  944. // instead.
  945. //
  946. // Note: You must call the "Send" method on the returned request object in order
  947. // to execute the request.
  948. //
  949. // // Example sending a request using the DescribeEndpointsRequest method.
  950. // req, resp := client.DescribeEndpointsRequest(params)
  951. //
  952. // err := req.Send()
  953. // if err == nil { // resp is now filled
  954. // fmt.Println(resp)
  955. // }
  956. //
  957. func (c *DatabaseMigrationService) DescribeEndpointsRequest(input *DescribeEndpointsInput) (req *request.Request, output *DescribeEndpointsOutput) {
  958. op := &request.Operation{
  959. Name: opDescribeEndpoints,
  960. HTTPMethod: "POST",
  961. HTTPPath: "/",
  962. }
  963. if input == nil {
  964. input = &DescribeEndpointsInput{}
  965. }
  966. req = c.newRequest(op, input, output)
  967. output = &DescribeEndpointsOutput{}
  968. req.Data = output
  969. return
  970. }
  971. // DescribeEndpoints API operation for AWS Database Migration Service.
  972. //
  973. // Returns information about the endpoints for your account in the current region.
  974. //
  975. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  976. // with awserr.Error's Code and Message methods to get detailed information about
  977. // the error.
  978. //
  979. // See the AWS API reference guide for AWS Database Migration Service's
  980. // API operation DescribeEndpoints for usage and error information.
  981. //
  982. // Returned Error Codes:
  983. // * ResourceNotFoundFault
  984. // The resource could not be found.
  985. //
  986. func (c *DatabaseMigrationService) DescribeEndpoints(input *DescribeEndpointsInput) (*DescribeEndpointsOutput, error) {
  987. req, out := c.DescribeEndpointsRequest(input)
  988. err := req.Send()
  989. return out, err
  990. }
  991. const opDescribeOrderableReplicationInstances = "DescribeOrderableReplicationInstances"
  992. // DescribeOrderableReplicationInstancesRequest generates a "aws/request.Request" representing the
  993. // client's request for the DescribeOrderableReplicationInstances operation. The "output" return
  994. // value can be used to capture response data after the request's "Send" method
  995. // is called.
  996. //
  997. // See DescribeOrderableReplicationInstances for usage and error information.
  998. //
  999. // Creating a request object using this method should be used when you want to inject
  1000. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1001. // access properties on the request object before or after sending the request. If
  1002. // you just want the service response, call the DescribeOrderableReplicationInstances method directly
  1003. // instead.
  1004. //
  1005. // Note: You must call the "Send" method on the returned request object in order
  1006. // to execute the request.
  1007. //
  1008. // // Example sending a request using the DescribeOrderableReplicationInstancesRequest method.
  1009. // req, resp := client.DescribeOrderableReplicationInstancesRequest(params)
  1010. //
  1011. // err := req.Send()
  1012. // if err == nil { // resp is now filled
  1013. // fmt.Println(resp)
  1014. // }
  1015. //
  1016. func (c *DatabaseMigrationService) DescribeOrderableReplicationInstancesRequest(input *DescribeOrderableReplicationInstancesInput) (req *request.Request, output *DescribeOrderableReplicationInstancesOutput) {
  1017. op := &request.Operation{
  1018. Name: opDescribeOrderableReplicationInstances,
  1019. HTTPMethod: "POST",
  1020. HTTPPath: "/",
  1021. }
  1022. if input == nil {
  1023. input = &DescribeOrderableReplicationInstancesInput{}
  1024. }
  1025. req = c.newRequest(op, input, output)
  1026. output = &DescribeOrderableReplicationInstancesOutput{}
  1027. req.Data = output
  1028. return
  1029. }
  1030. // DescribeOrderableReplicationInstances API operation for AWS Database Migration Service.
  1031. //
  1032. // Returns information about the replication instance types that can be created
  1033. // in the specified region.
  1034. //
  1035. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1036. // with awserr.Error's Code and Message methods to get detailed information about
  1037. // the error.
  1038. //
  1039. // See the AWS API reference guide for AWS Database Migration Service's
  1040. // API operation DescribeOrderableReplicationInstances for usage and error information.
  1041. func (c *DatabaseMigrationService) DescribeOrderableReplicationInstances(input *DescribeOrderableReplicationInstancesInput) (*DescribeOrderableReplicationInstancesOutput, error) {
  1042. req, out := c.DescribeOrderableReplicationInstancesRequest(input)
  1043. err := req.Send()
  1044. return out, err
  1045. }
  1046. const opDescribeRefreshSchemasStatus = "DescribeRefreshSchemasStatus"
  1047. // DescribeRefreshSchemasStatusRequest generates a "aws/request.Request" representing the
  1048. // client's request for the DescribeRefreshSchemasStatus operation. The "output" return
  1049. // value can be used to capture response data after the request's "Send" method
  1050. // is called.
  1051. //
  1052. // See DescribeRefreshSchemasStatus for usage and error information.
  1053. //
  1054. // Creating a request object using this method should be used when you want to inject
  1055. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1056. // access properties on the request object before or after sending the request. If
  1057. // you just want the service response, call the DescribeRefreshSchemasStatus method directly
  1058. // instead.
  1059. //
  1060. // Note: You must call the "Send" method on the returned request object in order
  1061. // to execute the request.
  1062. //
  1063. // // Example sending a request using the DescribeRefreshSchemasStatusRequest method.
  1064. // req, resp := client.DescribeRefreshSchemasStatusRequest(params)
  1065. //
  1066. // err := req.Send()
  1067. // if err == nil { // resp is now filled
  1068. // fmt.Println(resp)
  1069. // }
  1070. //
  1071. func (c *DatabaseMigrationService) DescribeRefreshSchemasStatusRequest(input *DescribeRefreshSchemasStatusInput) (req *request.Request, output *DescribeRefreshSchemasStatusOutput) {
  1072. op := &request.Operation{
  1073. Name: opDescribeRefreshSchemasStatus,
  1074. HTTPMethod: "POST",
  1075. HTTPPath: "/",
  1076. }
  1077. if input == nil {
  1078. input = &DescribeRefreshSchemasStatusInput{}
  1079. }
  1080. req = c.newRequest(op, input, output)
  1081. output = &DescribeRefreshSchemasStatusOutput{}
  1082. req.Data = output
  1083. return
  1084. }
  1085. // DescribeRefreshSchemasStatus API operation for AWS Database Migration Service.
  1086. //
  1087. // Returns the status of the RefreshSchemas operation.
  1088. //
  1089. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1090. // with awserr.Error's Code and Message methods to get detailed information about
  1091. // the error.
  1092. //
  1093. // See the AWS API reference guide for AWS Database Migration Service's
  1094. // API operation DescribeRefreshSchemasStatus for usage and error information.
  1095. //
  1096. // Returned Error Codes:
  1097. // * InvalidResourceStateFault
  1098. // The resource is in a state that prevents it from being used for database
  1099. // migration.
  1100. //
  1101. // * ResourceNotFoundFault
  1102. // The resource could not be found.
  1103. //
  1104. func (c *DatabaseMigrationService) DescribeRefreshSchemasStatus(input *DescribeRefreshSchemasStatusInput) (*DescribeRefreshSchemasStatusOutput, error) {
  1105. req, out := c.DescribeRefreshSchemasStatusRequest(input)
  1106. err := req.Send()
  1107. return out, err
  1108. }
  1109. const opDescribeReplicationInstances = "DescribeReplicationInstances"
  1110. // DescribeReplicationInstancesRequest generates a "aws/request.Request" representing the
  1111. // client's request for the DescribeReplicationInstances operation. The "output" return
  1112. // value can be used to capture response data after the request's "Send" method
  1113. // is called.
  1114. //
  1115. // See DescribeReplicationInstances for usage and error information.
  1116. //
  1117. // Creating a request object using this method should be used when you want to inject
  1118. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1119. // access properties on the request object before or after sending the request. If
  1120. // you just want the service response, call the DescribeReplicationInstances method directly
  1121. // instead.
  1122. //
  1123. // Note: You must call the "Send" method on the returned request object in order
  1124. // to execute the request.
  1125. //
  1126. // // Example sending a request using the DescribeReplicationInstancesRequest method.
  1127. // req, resp := client.DescribeReplicationInstancesRequest(params)
  1128. //
  1129. // err := req.Send()
  1130. // if err == nil { // resp is now filled
  1131. // fmt.Println(resp)
  1132. // }
  1133. //
  1134. func (c *DatabaseMigrationService) DescribeReplicationInstancesRequest(input *DescribeReplicationInstancesInput) (req *request.Request, output *DescribeReplicationInstancesOutput) {
  1135. op := &request.Operation{
  1136. Name: opDescribeReplicationInstances,
  1137. HTTPMethod: "POST",
  1138. HTTPPath: "/",
  1139. }
  1140. if input == nil {
  1141. input = &DescribeReplicationInstancesInput{}
  1142. }
  1143. req = c.newRequest(op, input, output)
  1144. output = &DescribeReplicationInstancesOutput{}
  1145. req.Data = output
  1146. return
  1147. }
  1148. // DescribeReplicationInstances API operation for AWS Database Migration Service.
  1149. //
  1150. // Returns information about replication instances for your account in the current
  1151. // region.
  1152. //
  1153. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1154. // with awserr.Error's Code and Message methods to get detailed information about
  1155. // the error.
  1156. //
  1157. // See the AWS API reference guide for AWS Database Migration Service's
  1158. // API operation DescribeReplicationInstances for usage and error information.
  1159. //
  1160. // Returned Error Codes:
  1161. // * ResourceNotFoundFault
  1162. // The resource could not be found.
  1163. //
  1164. func (c *DatabaseMigrationService) DescribeReplicationInstances(input *DescribeReplicationInstancesInput) (*DescribeReplicationInstancesOutput, error) {
  1165. req, out := c.DescribeReplicationInstancesRequest(input)
  1166. err := req.Send()
  1167. return out, err
  1168. }
  1169. const opDescribeReplicationSubnetGroups = "DescribeReplicationSubnetGroups"
  1170. // DescribeReplicationSubnetGroupsRequest generates a "aws/request.Request" representing the
  1171. // client's request for the DescribeReplicationSubnetGroups operation. The "output" return
  1172. // value can be used to capture response data after the request's "Send" method
  1173. // is called.
  1174. //
  1175. // See DescribeReplicationSubnetGroups for usage and error information.
  1176. //
  1177. // Creating a request object using this method should be used when you want to inject
  1178. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1179. // access properties on the request object before or after sending the request. If
  1180. // you just want the service response, call the DescribeReplicationSubnetGroups method directly
  1181. // instead.
  1182. //
  1183. // Note: You must call the "Send" method on the returned request object in order
  1184. // to execute the request.
  1185. //
  1186. // // Example sending a request using the DescribeReplicationSubnetGroupsRequest method.
  1187. // req, resp := client.DescribeReplicationSubnetGroupsRequest(params)
  1188. //
  1189. // err := req.Send()
  1190. // if err == nil { // resp is now filled
  1191. // fmt.Println(resp)
  1192. // }
  1193. //
  1194. func (c *DatabaseMigrationService) DescribeReplicationSubnetGroupsRequest(input *DescribeReplicationSubnetGroupsInput) (req *request.Request, output *DescribeReplicationSubnetGroupsOutput) {
  1195. op := &request.Operation{
  1196. Name: opDescribeReplicationSubnetGroups,
  1197. HTTPMethod: "POST",
  1198. HTTPPath: "/",
  1199. }
  1200. if input == nil {
  1201. input = &DescribeReplicationSubnetGroupsInput{}
  1202. }
  1203. req = c.newRequest(op, input, output)
  1204. output = &DescribeReplicationSubnetGroupsOutput{}
  1205. req.Data = output
  1206. return
  1207. }
  1208. // DescribeReplicationSubnetGroups API operation for AWS Database Migration Service.
  1209. //
  1210. // Returns information about the replication subnet groups.
  1211. //
  1212. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1213. // with awserr.Error's Code and Message methods to get detailed information about
  1214. // the error.
  1215. //
  1216. // See the AWS API reference guide for AWS Database Migration Service's
  1217. // API operation DescribeReplicationSubnetGroups for usage and error information.
  1218. //
  1219. // Returned Error Codes:
  1220. // * ResourceNotFoundFault
  1221. // The resource could not be found.
  1222. //
  1223. func (c *DatabaseMigrationService) DescribeReplicationSubnetGroups(input *DescribeReplicationSubnetGroupsInput) (*DescribeReplicationSubnetGroupsOutput, error) {
  1224. req, out := c.DescribeReplicationSubnetGroupsRequest(input)
  1225. err := req.Send()
  1226. return out, err
  1227. }
  1228. const opDescribeReplicationTasks = "DescribeReplicationTasks"
  1229. // DescribeReplicationTasksRequest generates a "aws/request.Request" representing the
  1230. // client's request for the DescribeReplicationTasks operation. The "output" return
  1231. // value can be used to capture response data after the request's "Send" method
  1232. // is called.
  1233. //
  1234. // See DescribeReplicationTasks for usage and error information.
  1235. //
  1236. // Creating a request object using this method should be used when you want to inject
  1237. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1238. // access properties on the request object before or after sending the request. If
  1239. // you just want the service response, call the DescribeReplicationTasks method directly
  1240. // instead.
  1241. //
  1242. // Note: You must call the "Send" method on the returned request object in order
  1243. // to execute the request.
  1244. //
  1245. // // Example sending a request using the DescribeReplicationTasksRequest method.
  1246. // req, resp := client.DescribeReplicationTasksRequest(params)
  1247. //
  1248. // err := req.Send()
  1249. // if err == nil { // resp is now filled
  1250. // fmt.Println(resp)
  1251. // }
  1252. //
  1253. func (c *DatabaseMigrationService) DescribeReplicationTasksRequest(input *DescribeReplicationTasksInput) (req *request.Request, output *DescribeReplicationTasksOutput) {
  1254. op := &request.Operation{
  1255. Name: opDescribeReplicationTasks,
  1256. HTTPMethod: "POST",
  1257. HTTPPath: "/",
  1258. }
  1259. if input == nil {
  1260. input = &DescribeReplicationTasksInput{}
  1261. }
  1262. req = c.newRequest(op, input, output)
  1263. output = &DescribeReplicationTasksOutput{}
  1264. req.Data = output
  1265. return
  1266. }
  1267. // DescribeReplicationTasks API operation for AWS Database Migration Service.
  1268. //
  1269. // Returns information about replication tasks for your account in the current
  1270. // region.
  1271. //
  1272. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1273. // with awserr.Error's Code and Message methods to get detailed information about
  1274. // the error.
  1275. //
  1276. // See the AWS API reference guide for AWS Database Migration Service's
  1277. // API operation DescribeReplicationTasks for usage and error information.
  1278. //
  1279. // Returned Error Codes:
  1280. // * ResourceNotFoundFault
  1281. // The resource could not be found.
  1282. //
  1283. func (c *DatabaseMigrationService) DescribeReplicationTasks(input *DescribeReplicationTasksInput) (*DescribeReplicationTasksOutput, error) {
  1284. req, out := c.DescribeReplicationTasksRequest(input)
  1285. err := req.Send()
  1286. return out, err
  1287. }
  1288. const opDescribeSchemas = "DescribeSchemas"
  1289. // DescribeSchemasRequest generates a "aws/request.Request" representing the
  1290. // client's request for the DescribeSchemas operation. The "output" return
  1291. // value can be used to capture response data after the request's "Send" method
  1292. // is called.
  1293. //
  1294. // See DescribeSchemas for usage and error information.
  1295. //
  1296. // Creating a request object using this method should be used when you want to inject
  1297. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1298. // access properties on the request object before or after sending the request. If
  1299. // you just want the service response, call the DescribeSchemas method directly
  1300. // instead.
  1301. //
  1302. // Note: You must call the "Send" method on the returned request object in order
  1303. // to execute the request.
  1304. //
  1305. // // Example sending a request using the DescribeSchemasRequest method.
  1306. // req, resp := client.DescribeSchemasRequest(params)
  1307. //
  1308. // err := req.Send()
  1309. // if err == nil { // resp is now filled
  1310. // fmt.Println(resp)
  1311. // }
  1312. //
  1313. func (c *DatabaseMigrationService) DescribeSchemasRequest(input *DescribeSchemasInput) (req *request.Request, output *DescribeSchemasOutput) {
  1314. op := &request.Operation{
  1315. Name: opDescribeSchemas,
  1316. HTTPMethod: "POST",
  1317. HTTPPath: "/",
  1318. }
  1319. if input == nil {
  1320. input = &DescribeSchemasInput{}
  1321. }
  1322. req = c.newRequest(op, input, output)
  1323. output = &DescribeSchemasOutput{}
  1324. req.Data = output
  1325. return
  1326. }
  1327. // DescribeSchemas API operation for AWS Database Migration Service.
  1328. //
  1329. // Returns information about the schema for the specified endpoint.
  1330. //
  1331. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1332. // with awserr.Error's Code and Message methods to get detailed information about
  1333. // the error.
  1334. //
  1335. // See the AWS API reference guide for AWS Database Migration Service's
  1336. // API operation DescribeSchemas for usage and error information.
  1337. //
  1338. // Returned Error Codes:
  1339. // * InvalidResourceStateFault
  1340. // The resource is in a state that prevents it from being used for database
  1341. // migration.
  1342. //
  1343. // * ResourceNotFoundFault
  1344. // The resource could not be found.
  1345. //
  1346. func (c *DatabaseMigrationService) DescribeSchemas(input *DescribeSchemasInput) (*DescribeSchemasOutput, error) {
  1347. req, out := c.DescribeSchemasRequest(input)
  1348. err := req.Send()
  1349. return out, err
  1350. }
  1351. const opDescribeTableStatistics = "DescribeTableStatistics"
  1352. // DescribeTableStatisticsRequest generates a "aws/request.Request" representing the
  1353. // client's request for the DescribeTableStatistics operation. The "output" return
  1354. // value can be used to capture response data after the request's "Send" method
  1355. // is called.
  1356. //
  1357. // See DescribeTableStatistics for usage and error information.
  1358. //
  1359. // Creating a request object using this method should be used when you want to inject
  1360. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1361. // access properties on the request object before or after sending the request. If
  1362. // you just want the service response, call the DescribeTableStatistics method directly
  1363. // instead.
  1364. //
  1365. // Note: You must call the "Send" method on the returned request object in order
  1366. // to execute the request.
  1367. //
  1368. // // Example sending a request using the DescribeTableStatisticsRequest method.
  1369. // req, resp := client.DescribeTableStatisticsRequest(params)
  1370. //
  1371. // err := req.Send()
  1372. // if err == nil { // resp is now filled
  1373. // fmt.Println(resp)
  1374. // }
  1375. //
  1376. func (c *DatabaseMigrationService) DescribeTableStatisticsRequest(input *DescribeTableStatisticsInput) (req *request.Request, output *DescribeTableStatisticsOutput) {
  1377. op := &request.Operation{
  1378. Name: opDescribeTableStatistics,
  1379. HTTPMethod: "POST",
  1380. HTTPPath: "/",
  1381. }
  1382. if input == nil {
  1383. input = &DescribeTableStatisticsInput{}
  1384. }
  1385. req = c.newRequest(op, input, output)
  1386. output = &DescribeTableStatisticsOutput{}
  1387. req.Data = output
  1388. return
  1389. }
  1390. // DescribeTableStatistics API operation for AWS Database Migration Service.
  1391. //
  1392. // Returns table statistics on the database migration task, including table
  1393. // name, rows inserted, rows updated, and rows deleted.
  1394. //
  1395. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1396. // with awserr.Error's Code and Message methods to get detailed information about
  1397. // the error.
  1398. //
  1399. // See the AWS API reference guide for AWS Database Migration Service's
  1400. // API operation DescribeTableStatistics for usage and error information.
  1401. //
  1402. // Returned Error Codes:
  1403. // * ResourceNotFoundFault
  1404. // The resource could not be found.
  1405. //
  1406. // * InvalidResourceStateFault
  1407. // The resource is in a state that prevents it from being used for database
  1408. // migration.
  1409. //
  1410. func (c *DatabaseMigrationService) DescribeTableStatistics(input *DescribeTableStatisticsInput) (*DescribeTableStatisticsOutput, error) {
  1411. req, out := c.DescribeTableStatisticsRequest(input)
  1412. err := req.Send()
  1413. return out, err
  1414. }
  1415. const opImportCertificate = "ImportCertificate"
  1416. // ImportCertificateRequest generates a "aws/request.Request" representing the
  1417. // client's request for the ImportCertificate operation. The "output" return
  1418. // value can be used to capture response data after the request's "Send" method
  1419. // is called.
  1420. //
  1421. // See ImportCertificate for usage and error information.
  1422. //
  1423. // Creating a request object using this method should be used when you want to inject
  1424. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1425. // access properties on the request object before or after sending the request. If
  1426. // you just want the service response, call the ImportCertificate method directly
  1427. // instead.
  1428. //
  1429. // Note: You must call the "Send" method on the returned request object in order
  1430. // to execute the request.
  1431. //
  1432. // // Example sending a request using the ImportCertificateRequest method.
  1433. // req, resp := client.ImportCertificateRequest(params)
  1434. //
  1435. // err := req.Send()
  1436. // if err == nil { // resp is now filled
  1437. // fmt.Println(resp)
  1438. // }
  1439. //
  1440. func (c *DatabaseMigrationService) ImportCertificateRequest(input *ImportCertificateInput) (req *request.Request, output *ImportCertificateOutput) {
  1441. op := &request.Operation{
  1442. Name: opImportCertificate,
  1443. HTTPMethod: "POST",
  1444. HTTPPath: "/",
  1445. }
  1446. if input == nil {
  1447. input = &ImportCertificateInput{}
  1448. }
  1449. req = c.newRequest(op, input, output)
  1450. output = &ImportCertificateOutput{}
  1451. req.Data = output
  1452. return
  1453. }
  1454. // ImportCertificate API operation for AWS Database Migration Service.
  1455. //
  1456. // Uploads the specified certificate.
  1457. //
  1458. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1459. // with awserr.Error's Code and Message methods to get detailed information about
  1460. // the error.
  1461. //
  1462. // See the AWS API reference guide for AWS Database Migration Service's
  1463. // API operation ImportCertificate for usage and error information.
  1464. //
  1465. // Returned Error Codes:
  1466. // * ResourceAlreadyExistsFault
  1467. // The resource you are attempting to create already exists.
  1468. //
  1469. // * InvalidCertificateFault
  1470. // The certificate was not valid.
  1471. //
  1472. func (c *DatabaseMigrationService) ImportCertificate(input *ImportCertificateInput) (*ImportCertificateOutput, error) {
  1473. req, out := c.ImportCertificateRequest(input)
  1474. err := req.Send()
  1475. return out, err
  1476. }
  1477. const opListTagsForResource = "ListTagsForResource"
  1478. // ListTagsForResourceRequest generates a "aws/request.Request" representing the
  1479. // client's request for the ListTagsForResource operation. The "output" return
  1480. // value can be used to capture response data after the request's "Send" method
  1481. // is called.
  1482. //
  1483. // See ListTagsForResource for usage and error information.
  1484. //
  1485. // Creating a request object using this method should be used when you want to inject
  1486. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1487. // access properties on the request object before or after sending the request. If
  1488. // you just want the service response, call the ListTagsForResource method directly
  1489. // instead.
  1490. //
  1491. // Note: You must call the "Send" method on the returned request object in order
  1492. // to execute the request.
  1493. //
  1494. // // Example sending a request using the ListTagsForResourceRequest method.
  1495. // req, resp := client.ListTagsForResourceRequest(params)
  1496. //
  1497. // err := req.Send()
  1498. // if err == nil { // resp is now filled
  1499. // fmt.Println(resp)
  1500. // }
  1501. //
  1502. func (c *DatabaseMigrationService) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
  1503. op := &request.Operation{
  1504. Name: opListTagsForResource,
  1505. HTTPMethod: "POST",
  1506. HTTPPath: "/",
  1507. }
  1508. if input == nil {
  1509. input = &ListTagsForResourceInput{}
  1510. }
  1511. req = c.newRequest(op, input, output)
  1512. output = &ListTagsForResourceOutput{}
  1513. req.Data = output
  1514. return
  1515. }
  1516. // ListTagsForResource API operation for AWS Database Migration Service.
  1517. //
  1518. // Lists all tags for an AWS DMS resource.
  1519. //
  1520. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1521. // with awserr.Error's Code and Message methods to get detailed information about
  1522. // the error.
  1523. //
  1524. // See the AWS API reference guide for AWS Database Migration Service's
  1525. // API operation ListTagsForResource for usage and error information.
  1526. //
  1527. // Returned Error Codes:
  1528. // * ResourceNotFoundFault
  1529. // The resource could not be found.
  1530. //
  1531. func (c *DatabaseMigrationService) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
  1532. req, out := c.ListTagsForResourceRequest(input)
  1533. err := req.Send()
  1534. return out, err
  1535. }
  1536. const opModifyEndpoint = "ModifyEndpoint"
  1537. // ModifyEndpointRequest generates a "aws/request.Request" representing the
  1538. // client's request for the ModifyEndpoint operation. The "output" return
  1539. // value can be used to capture response data after the request's "Send" method
  1540. // is called.
  1541. //
  1542. // See ModifyEndpoint for usage and error information.
  1543. //
  1544. // Creating a request object using this method should be used when you want to inject
  1545. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1546. // access properties on the request object before or after sending the request. If
  1547. // you just want the service response, call the ModifyEndpoint method directly
  1548. // instead.
  1549. //
  1550. // Note: You must call the "Send" method on the returned request object in order
  1551. // to execute the request.
  1552. //
  1553. // // Example sending a request using the ModifyEndpointRequest method.
  1554. // req, resp := client.ModifyEndpointRequest(params)
  1555. //
  1556. // err := req.Send()
  1557. // if err == nil { // resp is now filled
  1558. // fmt.Println(resp)
  1559. // }
  1560. //
  1561. func (c *DatabaseMigrationService) ModifyEndpointRequest(input *ModifyEndpointInput) (req *request.Request, output *ModifyEndpointOutput) {
  1562. op := &request.Operation{
  1563. Name: opModifyEndpoint,
  1564. HTTPMethod: "POST",
  1565. HTTPPath: "/",
  1566. }
  1567. if input == nil {
  1568. input = &ModifyEndpointInput{}
  1569. }
  1570. req = c.newRequest(op, input, output)
  1571. output = &ModifyEndpointOutput{}
  1572. req.Data = output
  1573. return
  1574. }
  1575. // ModifyEndpoint API operation for AWS Database Migration Service.
  1576. //
  1577. // Modifies the specified endpoint.
  1578. //
  1579. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1580. // with awserr.Error's Code and Message methods to get detailed information about
  1581. // the error.
  1582. //
  1583. // See the AWS API reference guide for AWS Database Migration Service's
  1584. // API operation ModifyEndpoint for usage and error information.
  1585. //
  1586. // Returned Error Codes:
  1587. // * InvalidResourceStateFault
  1588. // The resource is in a state that prevents it from being used for database
  1589. // migration.
  1590. //
  1591. // * ResourceNotFoundFault
  1592. // The resource could not be found.
  1593. //
  1594. // * ResourceAlreadyExistsFault
  1595. // The resource you are attempting to create already exists.
  1596. //
  1597. // * KMSKeyNotAccessibleFault
  1598. // AWS DMS cannot access the KMS key.
  1599. //
  1600. func (c *DatabaseMigrationService) ModifyEndpoint(input *ModifyEndpointInput) (*ModifyEndpointOutput, error) {
  1601. req, out := c.ModifyEndpointRequest(input)
  1602. err := req.Send()
  1603. return out, err
  1604. }
  1605. const opModifyReplicationInstance = "ModifyReplicationInstance"
  1606. // ModifyReplicationInstanceRequest generates a "aws/request.Request" representing the
  1607. // client's request for the ModifyReplicationInstance operation. The "output" return
  1608. // value can be used to capture response data after the request's "Send" method
  1609. // is called.
  1610. //
  1611. // See ModifyReplicationInstance for usage and error information.
  1612. //
  1613. // Creating a request object using this method should be used when you want to inject
  1614. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1615. // access properties on the request object before or after sending the request. If
  1616. // you just want the service response, call the ModifyReplicationInstance method directly
  1617. // instead.
  1618. //
  1619. // Note: You must call the "Send" method on the returned request object in order
  1620. // to execute the request.
  1621. //
  1622. // // Example sending a request using the ModifyReplicationInstanceRequest method.
  1623. // req, resp := client.ModifyReplicationInstanceRequest(params)
  1624. //
  1625. // err := req.Send()
  1626. // if err == nil { // resp is now filled
  1627. // fmt.Println(resp)
  1628. // }
  1629. //
  1630. func (c *DatabaseMigrationService) ModifyReplicationInstanceRequest(input *ModifyReplicationInstanceInput) (req *request.Request, output *ModifyReplicationInstanceOutput) {
  1631. op := &request.Operation{
  1632. Name: opModifyReplicationInstance,
  1633. HTTPMethod: "POST",
  1634. HTTPPath: "/",
  1635. }
  1636. if input == nil {
  1637. input = &ModifyReplicationInstanceInput{}
  1638. }
  1639. req = c.newRequest(op, input, output)
  1640. output = &ModifyReplicationInstanceOutput{}
  1641. req.Data = output
  1642. return
  1643. }
  1644. // ModifyReplicationInstance API operation for AWS Database Migration Service.
  1645. //
  1646. // Modifies the replication instance to apply new settings. You can change one
  1647. // or more parameters by specifying these parameters and the new values in the
  1648. // request.
  1649. //
  1650. // Some settings are applied during the maintenance window.
  1651. //
  1652. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1653. // with awserr.Error's Code and Message methods to get detailed information about
  1654. // the error.
  1655. //
  1656. // See the AWS API reference guide for AWS Database Migration Service's
  1657. // API operation ModifyReplicationInstance for usage and error information.
  1658. //
  1659. // Returned Error Codes:
  1660. // * InvalidResourceStateFault
  1661. // The resource is in a state that prevents it from being used for database
  1662. // migration.
  1663. //
  1664. // * ResourceAlreadyExistsFault
  1665. // The resource you are attempting to create already exists.
  1666. //
  1667. // * ResourceNotFoundFault
  1668. // The resource could not be found.
  1669. //
  1670. // * InsufficientResourceCapacityFault
  1671. // There are not enough resources allocated to the database migration.
  1672. //
  1673. // * StorageQuotaExceededFault
  1674. // The storage quota has been exceeded.
  1675. //
  1676. // * UpgradeDependencyFailureFault
  1677. // An upgrade dependency is preventing the database migration.
  1678. //
  1679. func (c *DatabaseMigrationService) ModifyReplicationInstance(input *ModifyReplicationInstanceInput) (*ModifyReplicationInstanceOutput, error) {
  1680. req, out := c.ModifyReplicationInstanceRequest(input)
  1681. err := req.Send()
  1682. return out, err
  1683. }
  1684. const opModifyReplicationSubnetGroup = "ModifyReplicationSubnetGroup"
  1685. // ModifyReplicationSubnetGroupRequest generates a "aws/request.Request" representing the
  1686. // client's request for the ModifyReplicationSubnetGroup operation. The "output" return
  1687. // value can be used to capture response data after the request's "Send" method
  1688. // is called.
  1689. //
  1690. // See ModifyReplicationSubnetGroup for usage and error information.
  1691. //
  1692. // Creating a request object using this method should be used when you want to inject
  1693. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1694. // access properties on the request object before or after sending the request. If
  1695. // you just want the service response, call the ModifyReplicationSubnetGroup method directly
  1696. // instead.
  1697. //
  1698. // Note: You must call the "Send" method on the returned request object in order
  1699. // to execute the request.
  1700. //
  1701. // // Example sending a request using the ModifyReplicationSubnetGroupRequest method.
  1702. // req, resp := client.ModifyReplicationSubnetGroupRequest(params)
  1703. //
  1704. // err := req.Send()
  1705. // if err == nil { // resp is now filled
  1706. // fmt.Println(resp)
  1707. // }
  1708. //
  1709. func (c *DatabaseMigrationService) ModifyReplicationSubnetGroupRequest(input *ModifyReplicationSubnetGroupInput) (req *request.Request, output *ModifyReplicationSubnetGroupOutput) {
  1710. op := &request.Operation{
  1711. Name: opModifyReplicationSubnetGroup,
  1712. HTTPMethod: "POST",
  1713. HTTPPath: "/",
  1714. }
  1715. if input == nil {
  1716. input = &ModifyReplicationSubnetGroupInput{}
  1717. }
  1718. req = c.newRequest(op, input, output)
  1719. output = &ModifyReplicationSubnetGroupOutput{}
  1720. req.Data = output
  1721. return
  1722. }
  1723. // ModifyReplicationSubnetGroup API operation for AWS Database Migration Service.
  1724. //
  1725. // Modifies the settings for the specified replication subnet group.
  1726. //
  1727. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1728. // with awserr.Error's Code and Message methods to get detailed information about
  1729. // the error.
  1730. //
  1731. // See the AWS API reference guide for AWS Database Migration Service's
  1732. // API operation ModifyReplicationSubnetGroup for usage and error information.
  1733. //
  1734. // Returned Error Codes:
  1735. // * AccessDeniedFault
  1736. // AWS DMS was denied access to the endpoint.
  1737. //
  1738. // * ResourceNotFoundFault
  1739. // The resource could not be found.
  1740. //
  1741. // * ResourceQuotaExceededFault
  1742. // The quota for this resource quota has been exceeded.
  1743. //
  1744. // * SubnetAlreadyInUse
  1745. // The specified subnet is already in use.
  1746. //
  1747. // * ReplicationSubnetGroupDoesNotCoverEnoughAZs
  1748. // The replication subnet group does not cover enough Availability Zones (AZs).
  1749. // Edit the replication subnet group and add more AZs.
  1750. //
  1751. // * InvalidSubnet
  1752. // The subnet provided is invalid.
  1753. //
  1754. func (c *DatabaseMigrationService) ModifyReplicationSubnetGroup(input *ModifyReplicationSubnetGroupInput) (*ModifyReplicationSubnetGroupOutput, error) {
  1755. req, out := c.ModifyReplicationSubnetGroupRequest(input)
  1756. err := req.Send()
  1757. return out, err
  1758. }
  1759. const opRefreshSchemas = "RefreshSchemas"
  1760. // RefreshSchemasRequest generates a "aws/request.Request" representing the
  1761. // client's request for the RefreshSchemas operation. The "output" return
  1762. // value can be used to capture response data after the request's "Send" method
  1763. // is called.
  1764. //
  1765. // See RefreshSchemas for usage and error information.
  1766. //
  1767. // Creating a request object using this method should be used when you want to inject
  1768. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1769. // access properties on the request object before or after sending the request. If
  1770. // you just want the service response, call the RefreshSchemas method directly
  1771. // instead.
  1772. //
  1773. // Note: You must call the "Send" method on the returned request object in order
  1774. // to execute the request.
  1775. //
  1776. // // Example sending a request using the RefreshSchemasRequest method.
  1777. // req, resp := client.RefreshSchemasRequest(params)
  1778. //
  1779. // err := req.Send()
  1780. // if err == nil { // resp is now filled
  1781. // fmt.Println(resp)
  1782. // }
  1783. //
  1784. func (c *DatabaseMigrationService) RefreshSchemasRequest(input *RefreshSchemasInput) (req *request.Request, output *RefreshSchemasOutput) {
  1785. op := &request.Operation{
  1786. Name: opRefreshSchemas,
  1787. HTTPMethod: "POST",
  1788. HTTPPath: "/",
  1789. }
  1790. if input == nil {
  1791. input = &RefreshSchemasInput{}
  1792. }
  1793. req = c.newRequest(op, input, output)
  1794. output = &RefreshSchemasOutput{}
  1795. req.Data = output
  1796. return
  1797. }
  1798. // RefreshSchemas API operation for AWS Database Migration Service.
  1799. //
  1800. // Populates the schema for the specified endpoint. This is an asynchronous
  1801. // operation and can take several minutes. You can check the status of this
  1802. // operation by calling the DescribeRefreshSchemasStatus operation.
  1803. //
  1804. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1805. // with awserr.Error's Code and Message methods to get detailed information about
  1806. // the error.
  1807. //
  1808. // See the AWS API reference guide for AWS Database Migration Service's
  1809. // API operation RefreshSchemas for usage and error information.
  1810. //
  1811. // Returned Error Codes:
  1812. // * InvalidResourceStateFault
  1813. // The resource is in a state that prevents it from being used for database
  1814. // migration.
  1815. //
  1816. // * ResourceNotFoundFault
  1817. // The resource could not be found.
  1818. //
  1819. // * KMSKeyNotAccessibleFault
  1820. // AWS DMS cannot access the KMS key.
  1821. //
  1822. // * ResourceQuotaExceededFault
  1823. // The quota for this resource quota has been exceeded.
  1824. //
  1825. func (c *DatabaseMigrationService) RefreshSchemas(input *RefreshSchemasInput) (*RefreshSchemasOutput, error) {
  1826. req, out := c.RefreshSchemasRequest(input)
  1827. err := req.Send()
  1828. return out, err
  1829. }
  1830. const opRemoveTagsFromResource = "RemoveTagsFromResource"
  1831. // RemoveTagsFromResourceRequest generates a "aws/request.Request" representing the
  1832. // client's request for the RemoveTagsFromResource operation. The "output" return
  1833. // value can be used to capture response data after the request's "Send" method
  1834. // is called.
  1835. //
  1836. // See RemoveTagsFromResource for usage and error information.
  1837. //
  1838. // Creating a request object using this method should be used when you want to inject
  1839. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1840. // access properties on the request object before or after sending the request. If
  1841. // you just want the service response, call the RemoveTagsFromResource method directly
  1842. // instead.
  1843. //
  1844. // Note: You must call the "Send" method on the returned request object in order
  1845. // to execute the request.
  1846. //
  1847. // // Example sending a request using the RemoveTagsFromResourceRequest method.
  1848. // req, resp := client.RemoveTagsFromResourceRequest(params)
  1849. //
  1850. // err := req.Send()
  1851. // if err == nil { // resp is now filled
  1852. // fmt.Println(resp)
  1853. // }
  1854. //
  1855. func (c *DatabaseMigrationService) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) (req *request.Request, output *RemoveTagsFromResourceOutput) {
  1856. op := &request.Operation{
  1857. Name: opRemoveTagsFromResource,
  1858. HTTPMethod: "POST",
  1859. HTTPPath: "/",
  1860. }
  1861. if input == nil {
  1862. input = &RemoveTagsFromResourceInput{}
  1863. }
  1864. req = c.newRequest(op, input, output)
  1865. output = &RemoveTagsFromResourceOutput{}
  1866. req.Data = output
  1867. return
  1868. }
  1869. // RemoveTagsFromResource API operation for AWS Database Migration Service.
  1870. //
  1871. // Removes metadata tags from a DMS resource.
  1872. //
  1873. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1874. // with awserr.Error's Code and Message methods to get detailed information about
  1875. // the error.
  1876. //
  1877. // See the AWS API reference guide for AWS Database Migration Service's
  1878. // API operation RemoveTagsFromResource for usage and error information.
  1879. //
  1880. // Returned Error Codes:
  1881. // * ResourceNotFoundFault
  1882. // The resource could not be found.
  1883. //
  1884. func (c *DatabaseMigrationService) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) {
  1885. req, out := c.RemoveTagsFromResourceRequest(input)
  1886. err := req.Send()
  1887. return out, err
  1888. }
  1889. const opStartReplicationTask = "StartReplicationTask"
  1890. // StartReplicationTaskRequest generates a "aws/request.Request" representing the
  1891. // client's request for the StartReplicationTask operation. The "output" return
  1892. // value can be used to capture response data after the request's "Send" method
  1893. // is called.
  1894. //
  1895. // See StartReplicationTask for usage and error information.
  1896. //
  1897. // Creating a request object using this method should be used when you want to inject
  1898. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1899. // access properties on the request object before or after sending the request. If
  1900. // you just want the service response, call the StartReplicationTask method directly
  1901. // instead.
  1902. //
  1903. // Note: You must call the "Send" method on the returned request object in order
  1904. // to execute the request.
  1905. //
  1906. // // Example sending a request using the StartReplicationTaskRequest method.
  1907. // req, resp := client.StartReplicationTaskRequest(params)
  1908. //
  1909. // err := req.Send()
  1910. // if err == nil { // resp is now filled
  1911. // fmt.Println(resp)
  1912. // }
  1913. //
  1914. func (c *DatabaseMigrationService) StartReplicationTaskRequest(input *StartReplicationTaskInput) (req *request.Request, output *StartReplicationTaskOutput) {
  1915. op := &request.Operation{
  1916. Name: opStartReplicationTask,
  1917. HTTPMethod: "POST",
  1918. HTTPPath: "/",
  1919. }
  1920. if input == nil {
  1921. input = &StartReplicationTaskInput{}
  1922. }
  1923. req = c.newRequest(op, input, output)
  1924. output = &StartReplicationTaskOutput{}
  1925. req.Data = output
  1926. return
  1927. }
  1928. // StartReplicationTask API operation for AWS Database Migration Service.
  1929. //
  1930. // Starts the replication task.
  1931. //
  1932. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1933. // with awserr.Error's Code and Message methods to get detailed information about
  1934. // the error.
  1935. //
  1936. // See the AWS API reference guide for AWS Database Migration Service's
  1937. // API operation StartReplicationTask for usage and error information.
  1938. //
  1939. // Returned Error Codes:
  1940. // * ResourceNotFoundFault
  1941. // The resource could not be found.
  1942. //
  1943. // * InvalidResourceStateFault
  1944. // The resource is in a state that prevents it from being used for database
  1945. // migration.
  1946. //
  1947. func (c *DatabaseMigrationService) StartReplicationTask(input *StartReplicationTaskInput) (*StartReplicationTaskOutput, error) {
  1948. req, out := c.StartReplicationTaskRequest(input)
  1949. err := req.Send()
  1950. return out, err
  1951. }
  1952. const opStopReplicationTask = "StopReplicationTask"
  1953. // StopReplicationTaskRequest generates a "aws/request.Request" representing the
  1954. // client's request for the StopReplicationTask operation. The "output" return
  1955. // value can be used to capture response data after the request's "Send" method
  1956. // is called.
  1957. //
  1958. // See StopReplicationTask for usage and error information.
  1959. //
  1960. // Creating a request object using this method should be used when you want to inject
  1961. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1962. // access properties on the request object before or after sending the request. If
  1963. // you just want the service response, call the StopReplicationTask method directly
  1964. // instead.
  1965. //
  1966. // Note: You must call the "Send" method on the returned request object in order
  1967. // to execute the request.
  1968. //
  1969. // // Example sending a request using the StopReplicationTaskRequest method.
  1970. // req, resp := client.StopReplicationTaskRequest(params)
  1971. //
  1972. // err := req.Send()
  1973. // if err == nil { // resp is now filled
  1974. // fmt.Println(resp)
  1975. // }
  1976. //
  1977. func (c *DatabaseMigrationService) StopReplicationTaskRequest(input *StopReplicationTaskInput) (req *request.Request, output *StopReplicationTaskOutput) {
  1978. op := &request.Operation{
  1979. Name: opStopReplicationTask,
  1980. HTTPMethod: "POST",
  1981. HTTPPath: "/",
  1982. }
  1983. if input == nil {
  1984. input = &StopReplicationTaskInput{}
  1985. }
  1986. req = c.newRequest(op, input, output)
  1987. output = &StopReplicationTaskOutput{}
  1988. req.Data = output
  1989. return
  1990. }
  1991. // StopReplicationTask API operation for AWS Database Migration Service.
  1992. //
  1993. // Stops the replication task.
  1994. //
  1995. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1996. // with awserr.Error's Code and Message methods to get detailed information about
  1997. // the error.
  1998. //
  1999. // See the AWS API reference guide for AWS Database Migration Service's
  2000. // API operation StopReplicationTask for usage and error information.
  2001. //
  2002. // Returned Error Codes:
  2003. // * ResourceNotFoundFault
  2004. // The resource could not be found.
  2005. //
  2006. // * InvalidResourceStateFault
  2007. // The resource is in a state that prevents it from being used for database
  2008. // migration.
  2009. //
  2010. func (c *DatabaseMigrationService) StopReplicationTask(input *StopReplicationTaskInput) (*StopReplicationTaskOutput, error) {
  2011. req, out := c.StopReplicationTaskRequest(input)
  2012. err := req.Send()
  2013. return out, err
  2014. }
  2015. const opTestConnection = "TestConnection"
  2016. // TestConnectionRequest generates a "aws/request.Request" representing the
  2017. // client's request for the TestConnection operation. The "output" return
  2018. // value can be used to capture response data after the request's "Send" method
  2019. // is called.
  2020. //
  2021. // See TestConnection for usage and error information.
  2022. //
  2023. // Creating a request object using this method should be used when you want to inject
  2024. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2025. // access properties on the request object before or after sending the request. If
  2026. // you just want the service response, call the TestConnection method directly
  2027. // instead.
  2028. //
  2029. // Note: You must call the "Send" method on the returned request object in order
  2030. // to execute the request.
  2031. //
  2032. // // Example sending a request using the TestConnectionRequest method.
  2033. // req, resp := client.TestConnectionRequest(params)
  2034. //
  2035. // err := req.Send()
  2036. // if err == nil { // resp is now filled
  2037. // fmt.Println(resp)
  2038. // }
  2039. //
  2040. func (c *DatabaseMigrationService) TestConnectionRequest(input *TestConnectionInput) (req *request.Request, output *TestConnectionOutput) {
  2041. op := &request.Operation{
  2042. Name: opTestConnection,
  2043. HTTPMethod: "POST",
  2044. HTTPPath: "/",
  2045. }
  2046. if input == nil {
  2047. input = &TestConnectionInput{}
  2048. }
  2049. req = c.newRequest(op, input, output)
  2050. output = &TestConnectionOutput{}
  2051. req.Data = output
  2052. return
  2053. }
  2054. // TestConnection API operation for AWS Database Migration Service.
  2055. //
  2056. // Tests the connection between the replication instance and the endpoint.
  2057. //
  2058. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2059. // with awserr.Error's Code and Message methods to get detailed information about
  2060. // the error.
  2061. //
  2062. // See the AWS API reference guide for AWS Database Migration Service's
  2063. // API operation TestConnection for usage and error information.
  2064. //
  2065. // Returned Error Codes:
  2066. // * ResourceNotFoundFault
  2067. // The resource could not be found.
  2068. //
  2069. // * InvalidResourceStateFault
  2070. // The resource is in a state that prevents it from being used for database
  2071. // migration.
  2072. //
  2073. // * KMSKeyNotAccessibleFault
  2074. // AWS DMS cannot access the KMS key.
  2075. //
  2076. // * ResourceQuotaExceededFault
  2077. // The quota for this resource quota has been exceeded.
  2078. //
  2079. func (c *DatabaseMigrationService) TestConnection(input *TestConnectionInput) (*TestConnectionOutput, error) {
  2080. req, out := c.TestConnectionRequest(input)
  2081. err := req.Send()
  2082. return out, err
  2083. }
  2084. // Describes a quota for an AWS account, for example, the number of replication
  2085. // instances allowed.
  2086. type AccountQuota struct {
  2087. _ struct{} `type:"structure"`
  2088. // The name of the AWS DMS quota for this AWS account.
  2089. AccountQuotaName *string `type:"string"`
  2090. // The maximum allowed value for the quota.
  2091. Max *int64 `type:"long"`
  2092. // The amount currently used toward the quota maximum.
  2093. Used *int64 `type:"long"`
  2094. }
  2095. // String returns the string representation
  2096. func (s AccountQuota) String() string {
  2097. return awsutil.Prettify(s)
  2098. }
  2099. // GoString returns the string representation
  2100. func (s AccountQuota) GoString() string {
  2101. return s.String()
  2102. }
  2103. type AddTagsToResourceInput struct {
  2104. _ struct{} `type:"structure"`
  2105. // The Amazon Resource Name (ARN) of the AWS DMS resource the tag is to be added
  2106. // to. AWS DMS resources include a replication instance, endpoint, and a replication
  2107. // task.
  2108. //
  2109. // ResourceArn is a required field
  2110. ResourceArn *string `type:"string" required:"true"`
  2111. // The tag to be assigned to the DMS resource.
  2112. //
  2113. // Tags is a required field
  2114. Tags []*Tag `locationNameList:"Tag" type:"list" required:"true"`
  2115. }
  2116. // String returns the string representation
  2117. func (s AddTagsToResourceInput) String() string {
  2118. return awsutil.Prettify(s)
  2119. }
  2120. // GoString returns the string representation
  2121. func (s AddTagsToResourceInput) GoString() string {
  2122. return s.String()
  2123. }
  2124. // Validate inspects the fields of the type to determine if they are valid.
  2125. func (s *AddTagsToResourceInput) Validate() error {
  2126. invalidParams := request.ErrInvalidParams{Context: "AddTagsToResourceInput"}
  2127. if s.ResourceArn == nil {
  2128. invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  2129. }
  2130. if s.Tags == nil {
  2131. invalidParams.Add(request.NewErrParamRequired("Tags"))
  2132. }
  2133. if invalidParams.Len() > 0 {
  2134. return invalidParams
  2135. }
  2136. return nil
  2137. }
  2138. type AddTagsToResourceOutput struct {
  2139. _ struct{} `type:"structure"`
  2140. }
  2141. // String returns the string representation
  2142. func (s AddTagsToResourceOutput) String() string {
  2143. return awsutil.Prettify(s)
  2144. }
  2145. // GoString returns the string representation
  2146. func (s AddTagsToResourceOutput) GoString() string {
  2147. return s.String()
  2148. }
  2149. type AvailabilityZone struct {
  2150. _ struct{} `type:"structure"`
  2151. // The name of the availability zone.
  2152. Name *string `type:"string"`
  2153. }
  2154. // String returns the string representation
  2155. func (s AvailabilityZone) String() string {
  2156. return awsutil.Prettify(s)
  2157. }
  2158. // GoString returns the string representation
  2159. func (s AvailabilityZone) GoString() string {
  2160. return s.String()
  2161. }
  2162. // The SSL certificate that can be used to encrypt connections between the endpoints
  2163. // and the replication instance.
  2164. type Certificate struct {
  2165. _ struct{} `type:"structure"`
  2166. // The Amazon Resource Name (ARN) for the certificate.
  2167. CertificateArn *string `type:"string"`
  2168. // the date the certificate was created.
  2169. CertificateCreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  2170. // The customer-assigned name of the certificate. Valid characters are [A-z_0-9].
  2171. CertificateIdentifier *string `type:"string"`
  2172. // The owner of the certificate.
  2173. CertificateOwner *string `type:"string"`
  2174. // The contents of the .pem X.509 certificate file.
  2175. CertificatePem *string `type:"string"`
  2176. // The key length of the cryptographic algorithm being used.
  2177. KeyLength *int64 `type:"integer"`
  2178. // The signing algorithm for the certificate.
  2179. SigningAlgorithm *string `type:"string"`
  2180. // The beginning date the certificate is valid.
  2181. ValidFromDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  2182. // the final date the certificate is valid.
  2183. ValidToDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  2184. }
  2185. // String returns the string representation
  2186. func (s Certificate) String() string {
  2187. return awsutil.Prettify(s)
  2188. }
  2189. // GoString returns the string representation
  2190. func (s Certificate) GoString() string {
  2191. return s.String()
  2192. }
  2193. type Connection struct {
  2194. _ struct{} `type:"structure"`
  2195. // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
  2196. EndpointArn *string `type:"string"`
  2197. // The identifier of the endpoint. Identifiers must begin with a letter; must
  2198. // contain only ASCII letters, digits, and hyphens; and must not end with a
  2199. // hyphen or contain two consecutive hyphens.
  2200. EndpointIdentifier *string `type:"string"`
  2201. // The error message when the connection last failed.
  2202. LastFailureMessage *string `type:"string"`
  2203. // The Amazon Resource Name (ARN) of the replication instance.
  2204. ReplicationInstanceArn *string `type:"string"`
  2205. // The replication instance identifier. This parameter is stored as a lowercase
  2206. // string.
  2207. ReplicationInstanceIdentifier *string `type:"string"`
  2208. // The connection status.
  2209. Status *string `type:"string"`
  2210. }
  2211. // String returns the string representation
  2212. func (s Connection) String() string {
  2213. return awsutil.Prettify(s)
  2214. }
  2215. // GoString returns the string representation
  2216. func (s Connection) GoString() string {
  2217. return s.String()
  2218. }
  2219. type CreateEndpointInput struct {
  2220. _ struct{} `type:"structure"`
  2221. // The Amazon Resource Number (ARN) for the certificate.
  2222. CertificateArn *string `type:"string"`
  2223. // The name of the endpoint database.
  2224. DatabaseName *string `type:"string"`
  2225. // The database endpoint identifier. Identifiers must begin with a letter; must
  2226. // contain only ASCII letters, digits, and hyphens; and must not end with a
  2227. // hyphen or contain two consecutive hyphens.
  2228. //
  2229. // EndpointIdentifier is a required field
  2230. EndpointIdentifier *string `type:"string" required:"true"`
  2231. // The type of endpoint.
  2232. //
  2233. // EndpointType is a required field
  2234. EndpointType *string `type:"string" required:"true" enum:"ReplicationEndpointTypeValue"`
  2235. // The type of engine for the endpoint. Valid values include MYSQL, ORACLE,
  2236. // POSTGRES, MARIADB, AURORA, REDSHIFT, and SQLSERVER.
  2237. //
  2238. // EngineName is a required field
  2239. EngineName *string `type:"string" required:"true"`
  2240. // Additional attributes associated with the connection.
  2241. ExtraConnectionAttributes *string `type:"string"`
  2242. // The KMS key identifier that will be used to encrypt the connection parameters.
  2243. // If you do not specify a value for the KmsKeyId parameter, then AWS DMS will
  2244. // use your default encryption key. AWS KMS creates the default encryption key
  2245. // for your AWS account. Your AWS account has a different default encryption
  2246. // key for each AWS region.
  2247. KmsKeyId *string `type:"string"`
  2248. // The password to be used to login to the endpoint database.
  2249. //
  2250. // Password is a required field
  2251. Password *string `type:"string" required:"true"`
  2252. // The port used by the endpoint database.
  2253. //
  2254. // Port is a required field
  2255. Port *int64 `type:"integer" required:"true"`
  2256. // The name of the server where the endpoint database resides.
  2257. //
  2258. // ServerName is a required field
  2259. ServerName *string `type:"string" required:"true"`
  2260. // The SSL mode to use for the SSL connection.
  2261. //
  2262. // SSL mode can be one of four values: none, require, verify-ca, verify-full.
  2263. //
  2264. // The default value is none.
  2265. SslMode *string `type:"string" enum:"DmsSslModeValue"`
  2266. // Tags to be added to the endpoint.
  2267. Tags []*Tag `locationNameList:"Tag" type:"list"`
  2268. // The user name to be used to login to the endpoint database.
  2269. //
  2270. // Username is a required field
  2271. Username *string `type:"string" required:"true"`
  2272. }
  2273. // String returns the string representation
  2274. func (s CreateEndpointInput) String() string {
  2275. return awsutil.Prettify(s)
  2276. }
  2277. // GoString returns the string representation
  2278. func (s CreateEndpointInput) GoString() string {
  2279. return s.String()
  2280. }
  2281. // Validate inspects the fields of the type to determine if they are valid.
  2282. func (s *CreateEndpointInput) Validate() error {
  2283. invalidParams := request.ErrInvalidParams{Context: "CreateEndpointInput"}
  2284. if s.EndpointIdentifier == nil {
  2285. invalidParams.Add(request.NewErrParamRequired("EndpointIdentifier"))
  2286. }
  2287. if s.EndpointType == nil {
  2288. invalidParams.Add(request.NewErrParamRequired("EndpointType"))
  2289. }
  2290. if s.EngineName == nil {
  2291. invalidParams.Add(request.NewErrParamRequired("EngineName"))
  2292. }
  2293. if s.Password == nil {
  2294. invalidParams.Add(request.NewErrParamRequired("Password"))
  2295. }
  2296. if s.Port == nil {
  2297. invalidParams.Add(request.NewErrParamRequired("Port"))
  2298. }
  2299. if s.ServerName == nil {
  2300. invalidParams.Add(request.NewErrParamRequired("ServerName"))
  2301. }
  2302. if s.Username == nil {
  2303. invalidParams.Add(request.NewErrParamRequired("Username"))
  2304. }
  2305. if invalidParams.Len() > 0 {
  2306. return invalidParams
  2307. }
  2308. return nil
  2309. }
  2310. type CreateEndpointOutput struct {
  2311. _ struct{} `type:"structure"`
  2312. // The endpoint that was created.
  2313. Endpoint *Endpoint `type:"structure"`
  2314. }
  2315. // String returns the string representation
  2316. func (s CreateEndpointOutput) String() string {
  2317. return awsutil.Prettify(s)
  2318. }
  2319. // GoString returns the string representation
  2320. func (s CreateEndpointOutput) GoString() string {
  2321. return s.String()
  2322. }
  2323. type CreateReplicationInstanceInput struct {
  2324. _ struct{} `type:"structure"`
  2325. // The amount of storage (in gigabytes) to be initially allocated for the replication
  2326. // instance.
  2327. AllocatedStorage *int64 `type:"integer"`
  2328. // Indicates that minor engine upgrades will be applied automatically to the
  2329. // replication instance during the maintenance window.
  2330. //
  2331. // Default: true
  2332. AutoMinorVersionUpgrade *bool `type:"boolean"`
  2333. // The EC2 Availability Zone that the replication instance will be created in.
  2334. //
  2335. // Default: A random, system-chosen Availability Zone in the endpoint's region.
  2336. //
  2337. // Example: us-east-1d
  2338. AvailabilityZone *string `type:"string"`
  2339. // The engine version number of the replication instance.
  2340. EngineVersion *string `type:"string"`
  2341. // The KMS key identifier that will be used to encrypt the content on the replication
  2342. // instance. If you do not specify a value for the KmsKeyId parameter, then
  2343. // AWS DMS will use your default encryption key. AWS KMS creates the default
  2344. // encryption key for your AWS account. Your AWS account has a different default
  2345. // encryption key for each AWS region.
  2346. KmsKeyId *string `type:"string"`
  2347. // Specifies if the replication instance is a Multi-AZ deployment. You cannot
  2348. // set the AvailabilityZone parameter if the Multi-AZ parameter is set to true.
  2349. MultiAZ *bool `type:"boolean"`
  2350. // The weekly time range during which system maintenance can occur, in Universal
  2351. // Coordinated Time (UTC).
  2352. //
  2353. // Format: ddd:hh24:mi-ddd:hh24:mi
  2354. //
  2355. // Default: A 30-minute window selected at random from an 8-hour block of time
  2356. // per region, occurring on a random day of the week.
  2357. //
  2358. // Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
  2359. //
  2360. // Constraints: Minimum 30-minute window.
  2361. PreferredMaintenanceWindow *string `type:"string"`
  2362. // Specifies the accessibility options for the replication instance. A value
  2363. // of true represents an instance with a public IP address. A value of false
  2364. // represents an instance with a private IP address. The default value is true.
  2365. PubliclyAccessible *bool `type:"boolean"`
  2366. // The compute and memory capacity of the replication instance as specified
  2367. // by the replication instance class.
  2368. //
  2369. // Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large
  2370. // | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge
  2371. //
  2372. // ReplicationInstanceClass is a required field
  2373. ReplicationInstanceClass *string `type:"string" required:"true"`
  2374. // The replication instance identifier. This parameter is stored as a lowercase
  2375. // string.
  2376. //
  2377. // Constraints:
  2378. //
  2379. // * Must contain from 1 to 63 alphanumeric characters or hyphens.
  2380. //
  2381. // * First character must be a letter.
  2382. //
  2383. // * Cannot end with a hyphen or contain two consecutive hyphens.
  2384. //
  2385. // Example: myrepinstance
  2386. //
  2387. // ReplicationInstanceIdentifier is a required field
  2388. ReplicationInstanceIdentifier *string `type:"string" required:"true"`
  2389. // A subnet group to associate with the replication instance.
  2390. ReplicationSubnetGroupIdentifier *string `type:"string"`
  2391. // Tags to be associated with the replication instance.
  2392. Tags []*Tag `locationNameList:"Tag" type:"list"`
  2393. // Specifies the VPC security group to be used with the replication instance.
  2394. // The VPC security group must work with the VPC containing the replication
  2395. // instance.
  2396. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  2397. }
  2398. // String returns the string representation
  2399. func (s CreateReplicationInstanceInput) String() string {
  2400. return awsutil.Prettify(s)
  2401. }
  2402. // GoString returns the string representation
  2403. func (s CreateReplicationInstanceInput) GoString() string {
  2404. return s.String()
  2405. }
  2406. // Validate inspects the fields of the type to determine if they are valid.
  2407. func (s *CreateReplicationInstanceInput) Validate() error {
  2408. invalidParams := request.ErrInvalidParams{Context: "CreateReplicationInstanceInput"}
  2409. if s.ReplicationInstanceClass == nil {
  2410. invalidParams.Add(request.NewErrParamRequired("ReplicationInstanceClass"))
  2411. }
  2412. if s.ReplicationInstanceIdentifier == nil {
  2413. invalidParams.Add(request.NewErrParamRequired("ReplicationInstanceIdentifier"))
  2414. }
  2415. if invalidParams.Len() > 0 {
  2416. return invalidParams
  2417. }
  2418. return nil
  2419. }
  2420. type CreateReplicationInstanceOutput struct {
  2421. _ struct{} `type:"structure"`
  2422. // The replication instance that was created.
  2423. ReplicationInstance *ReplicationInstance `type:"structure"`
  2424. }
  2425. // String returns the string representation
  2426. func (s CreateReplicationInstanceOutput) String() string {
  2427. return awsutil.Prettify(s)
  2428. }
  2429. // GoString returns the string representation
  2430. func (s CreateReplicationInstanceOutput) GoString() string {
  2431. return s.String()
  2432. }
  2433. type CreateReplicationSubnetGroupInput struct {
  2434. _ struct{} `type:"structure"`
  2435. // The description for the subnet group.
  2436. //
  2437. // ReplicationSubnetGroupDescription is a required field
  2438. ReplicationSubnetGroupDescription *string `type:"string" required:"true"`
  2439. // The name for the replication subnet group. This value is stored as a lowercase
  2440. // string.
  2441. //
  2442. // Constraints: Must contain no more than 255 alphanumeric characters, periods,
  2443. // spaces, underscores, or hyphens. Must not be "default".
  2444. //
  2445. // Example: mySubnetgroup
  2446. //
  2447. // ReplicationSubnetGroupIdentifier is a required field
  2448. ReplicationSubnetGroupIdentifier *string `type:"string" required:"true"`
  2449. // The EC2 subnet IDs for the subnet group.
  2450. //
  2451. // SubnetIds is a required field
  2452. SubnetIds []*string `locationNameList:"SubnetIdentifier" type:"list" required:"true"`
  2453. // The tag to be assigned to the subnet group.
  2454. Tags []*Tag `locationNameList:"Tag" type:"list"`
  2455. }
  2456. // String returns the string representation
  2457. func (s CreateReplicationSubnetGroupInput) String() string {
  2458. return awsutil.Prettify(s)
  2459. }
  2460. // GoString returns the string representation
  2461. func (s CreateReplicationSubnetGroupInput) GoString() string {
  2462. return s.String()
  2463. }
  2464. // Validate inspects the fields of the type to determine if they are valid.
  2465. func (s *CreateReplicationSubnetGroupInput) Validate() error {
  2466. invalidParams := request.ErrInvalidParams{Context: "CreateReplicationSubnetGroupInput"}
  2467. if s.ReplicationSubnetGroupDescription == nil {
  2468. invalidParams.Add(request.NewErrParamRequired("ReplicationSubnetGroupDescription"))
  2469. }
  2470. if s.ReplicationSubnetGroupIdentifier == nil {
  2471. invalidParams.Add(request.NewErrParamRequired("ReplicationSubnetGroupIdentifier"))
  2472. }
  2473. if s.SubnetIds == nil {
  2474. invalidParams.Add(request.NewErrParamRequired("SubnetIds"))
  2475. }
  2476. if invalidParams.Len() > 0 {
  2477. return invalidParams
  2478. }
  2479. return nil
  2480. }
  2481. type CreateReplicationSubnetGroupOutput struct {
  2482. _ struct{} `type:"structure"`
  2483. // The replication subnet group that was created.
  2484. ReplicationSubnetGroup *ReplicationSubnetGroup `type:"structure"`
  2485. }
  2486. // String returns the string representation
  2487. func (s CreateReplicationSubnetGroupOutput) String() string {
  2488. return awsutil.Prettify(s)
  2489. }
  2490. // GoString returns the string representation
  2491. func (s CreateReplicationSubnetGroupOutput) GoString() string {
  2492. return s.String()
  2493. }
  2494. type CreateReplicationTaskInput struct {
  2495. _ struct{} `type:"structure"`
  2496. // The start time for the Change Data Capture (CDC) operation.
  2497. CdcStartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  2498. // The migration type.
  2499. //
  2500. // MigrationType is a required field
  2501. MigrationType *string `type:"string" required:"true" enum:"MigrationTypeValue"`
  2502. // The Amazon Resource Name (ARN) of the replication instance.
  2503. //
  2504. // ReplicationInstanceArn is a required field
  2505. ReplicationInstanceArn *string `type:"string" required:"true"`
  2506. // The replication task identifier.
  2507. //
  2508. // Constraints:
  2509. //
  2510. // * Must contain from 1 to 63 alphanumeric characters or hyphens.
  2511. //
  2512. // * First character must be a letter.
  2513. //
  2514. // * Cannot end with a hyphen or contain two consecutive hyphens.
  2515. //
  2516. // ReplicationTaskIdentifier is a required field
  2517. ReplicationTaskIdentifier *string `type:"string" required:"true"`
  2518. // Settings for the task, such as target metadata settings.
  2519. ReplicationTaskSettings *string `type:"string"`
  2520. // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
  2521. //
  2522. // SourceEndpointArn is a required field
  2523. SourceEndpointArn *string `type:"string" required:"true"`
  2524. // The path of the JSON file that contains the table mappings. Preceed the path
  2525. // with "file://".
  2526. //
  2527. // For example, --table-mappings file://mappingfile.json
  2528. //
  2529. // TableMappings is a required field
  2530. TableMappings *string `type:"string" required:"true"`
  2531. // Tags to be added to the replication instance.
  2532. Tags []*Tag `locationNameList:"Tag" type:"list"`
  2533. // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
  2534. //
  2535. // TargetEndpointArn is a required field
  2536. TargetEndpointArn *string `type:"string" required:"true"`
  2537. }
  2538. // String returns the string representation
  2539. func (s CreateReplicationTaskInput) String() string {
  2540. return awsutil.Prettify(s)
  2541. }
  2542. // GoString returns the string representation
  2543. func (s CreateReplicationTaskInput) GoString() string {
  2544. return s.String()
  2545. }
  2546. // Validate inspects the fields of the type to determine if they are valid.
  2547. func (s *CreateReplicationTaskInput) Validate() error {
  2548. invalidParams := request.ErrInvalidParams{Context: "CreateReplicationTaskInput"}
  2549. if s.MigrationType == nil {
  2550. invalidParams.Add(request.NewErrParamRequired("MigrationType"))
  2551. }
  2552. if s.ReplicationInstanceArn == nil {
  2553. invalidParams.Add(request.NewErrParamRequired("ReplicationInstanceArn"))
  2554. }
  2555. if s.ReplicationTaskIdentifier == nil {
  2556. invalidParams.Add(request.NewErrParamRequired("ReplicationTaskIdentifier"))
  2557. }
  2558. if s.SourceEndpointArn == nil {
  2559. invalidParams.Add(request.NewErrParamRequired("SourceEndpointArn"))
  2560. }
  2561. if s.TableMappings == nil {
  2562. invalidParams.Add(request.NewErrParamRequired("TableMappings"))
  2563. }
  2564. if s.TargetEndpointArn == nil {
  2565. invalidParams.Add(request.NewErrParamRequired("TargetEndpointArn"))
  2566. }
  2567. if invalidParams.Len() > 0 {
  2568. return invalidParams
  2569. }
  2570. return nil
  2571. }
  2572. type CreateReplicationTaskOutput struct {
  2573. _ struct{} `type:"structure"`
  2574. // The replication task that was created.
  2575. ReplicationTask *ReplicationTask `type:"structure"`
  2576. }
  2577. // String returns the string representation
  2578. func (s CreateReplicationTaskOutput) String() string {
  2579. return awsutil.Prettify(s)
  2580. }
  2581. // GoString returns the string representation
  2582. func (s CreateReplicationTaskOutput) GoString() string {
  2583. return s.String()
  2584. }
  2585. type DeleteCertificateInput struct {
  2586. _ struct{} `type:"structure"`
  2587. // the Amazon Resource Name (ARN) of the deleted certificate.
  2588. //
  2589. // CertificateArn is a required field
  2590. CertificateArn *string `type:"string" required:"true"`
  2591. }
  2592. // String returns the string representation
  2593. func (s DeleteCertificateInput) String() string {
  2594. return awsutil.Prettify(s)
  2595. }
  2596. // GoString returns the string representation
  2597. func (s DeleteCertificateInput) GoString() string {
  2598. return s.String()
  2599. }
  2600. // Validate inspects the fields of the type to determine if they are valid.
  2601. func (s *DeleteCertificateInput) Validate() error {
  2602. invalidParams := request.ErrInvalidParams{Context: "DeleteCertificateInput"}
  2603. if s.CertificateArn == nil {
  2604. invalidParams.Add(request.NewErrParamRequired("CertificateArn"))
  2605. }
  2606. if invalidParams.Len() > 0 {
  2607. return invalidParams
  2608. }
  2609. return nil
  2610. }
  2611. type DeleteCertificateOutput struct {
  2612. _ struct{} `type:"structure"`
  2613. // The SSL certificate.
  2614. Certificate *Certificate `type:"structure"`
  2615. }
  2616. // String returns the string representation
  2617. func (s DeleteCertificateOutput) String() string {
  2618. return awsutil.Prettify(s)
  2619. }
  2620. // GoString returns the string representation
  2621. func (s DeleteCertificateOutput) GoString() string {
  2622. return s.String()
  2623. }
  2624. type DeleteEndpointInput struct {
  2625. _ struct{} `type:"structure"`
  2626. // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
  2627. //
  2628. // EndpointArn is a required field
  2629. EndpointArn *string `type:"string" required:"true"`
  2630. }
  2631. // String returns the string representation
  2632. func (s DeleteEndpointInput) String() string {
  2633. return awsutil.Prettify(s)
  2634. }
  2635. // GoString returns the string representation
  2636. func (s DeleteEndpointInput) GoString() string {
  2637. return s.String()
  2638. }
  2639. // Validate inspects the fields of the type to determine if they are valid.
  2640. func (s *DeleteEndpointInput) Validate() error {
  2641. invalidParams := request.ErrInvalidParams{Context: "DeleteEndpointInput"}
  2642. if s.EndpointArn == nil {
  2643. invalidParams.Add(request.NewErrParamRequired("EndpointArn"))
  2644. }
  2645. if invalidParams.Len() > 0 {
  2646. return invalidParams
  2647. }
  2648. return nil
  2649. }
  2650. type DeleteEndpointOutput struct {
  2651. _ struct{} `type:"structure"`
  2652. // The endpoint that was deleted.
  2653. Endpoint *Endpoint `type:"structure"`
  2654. }
  2655. // String returns the string representation
  2656. func (s DeleteEndpointOutput) String() string {
  2657. return awsutil.Prettify(s)
  2658. }
  2659. // GoString returns the string representation
  2660. func (s DeleteEndpointOutput) GoString() string {
  2661. return s.String()
  2662. }
  2663. type DeleteReplicationInstanceInput struct {
  2664. _ struct{} `type:"structure"`
  2665. // The Amazon Resource Name (ARN) of the replication instance to be deleted.
  2666. //
  2667. // ReplicationInstanceArn is a required field
  2668. ReplicationInstanceArn *string `type:"string" required:"true"`
  2669. }
  2670. // String returns the string representation
  2671. func (s DeleteReplicationInstanceInput) String() string {
  2672. return awsutil.Prettify(s)
  2673. }
  2674. // GoString returns the string representation
  2675. func (s DeleteReplicationInstanceInput) GoString() string {
  2676. return s.String()
  2677. }
  2678. // Validate inspects the fields of the type to determine if they are valid.
  2679. func (s *DeleteReplicationInstanceInput) Validate() error {
  2680. invalidParams := request.ErrInvalidParams{Context: "DeleteReplicationInstanceInput"}
  2681. if s.ReplicationInstanceArn == nil {
  2682. invalidParams.Add(request.NewErrParamRequired("ReplicationInstanceArn"))
  2683. }
  2684. if invalidParams.Len() > 0 {
  2685. return invalidParams
  2686. }
  2687. return nil
  2688. }
  2689. type DeleteReplicationInstanceOutput struct {
  2690. _ struct{} `type:"structure"`
  2691. // The replication instance that was deleted.
  2692. ReplicationInstance *ReplicationInstance `type:"structure"`
  2693. }
  2694. // String returns the string representation
  2695. func (s DeleteReplicationInstanceOutput) String() string {
  2696. return awsutil.Prettify(s)
  2697. }
  2698. // GoString returns the string representation
  2699. func (s DeleteReplicationInstanceOutput) GoString() string {
  2700. return s.String()
  2701. }
  2702. type DeleteReplicationSubnetGroupInput struct {
  2703. _ struct{} `type:"structure"`
  2704. // The subnet group name of the replication instance.
  2705. //
  2706. // ReplicationSubnetGroupIdentifier is a required field
  2707. ReplicationSubnetGroupIdentifier *string `type:"string" required:"true"`
  2708. }
  2709. // String returns the string representation
  2710. func (s DeleteReplicationSubnetGroupInput) String() string {
  2711. return awsutil.Prettify(s)
  2712. }
  2713. // GoString returns the string representation
  2714. func (s DeleteReplicationSubnetGroupInput) GoString() string {
  2715. return s.String()
  2716. }
  2717. // Validate inspects the fields of the type to determine if they are valid.
  2718. func (s *DeleteReplicationSubnetGroupInput) Validate() error {
  2719. invalidParams := request.ErrInvalidParams{Context: "DeleteReplicationSubnetGroupInput"}
  2720. if s.ReplicationSubnetGroupIdentifier == nil {
  2721. invalidParams.Add(request.NewErrParamRequired("ReplicationSubnetGroupIdentifier"))
  2722. }
  2723. if invalidParams.Len() > 0 {
  2724. return invalidParams
  2725. }
  2726. return nil
  2727. }
  2728. type DeleteReplicationSubnetGroupOutput struct {
  2729. _ struct{} `type:"structure"`
  2730. }
  2731. // String returns the string representation
  2732. func (s DeleteReplicationSubnetGroupOutput) String() string {
  2733. return awsutil.Prettify(s)
  2734. }
  2735. // GoString returns the string representation
  2736. func (s DeleteReplicationSubnetGroupOutput) GoString() string {
  2737. return s.String()
  2738. }
  2739. type DeleteReplicationTaskInput struct {
  2740. _ struct{} `type:"structure"`
  2741. // The Amazon Resource Name (ARN) of the replication task to be deleted.
  2742. //
  2743. // ReplicationTaskArn is a required field
  2744. ReplicationTaskArn *string `type:"string" required:"true"`
  2745. }
  2746. // String returns the string representation
  2747. func (s DeleteReplicationTaskInput) String() string {
  2748. return awsutil.Prettify(s)
  2749. }
  2750. // GoString returns the string representation
  2751. func (s DeleteReplicationTaskInput) GoString() string {
  2752. return s.String()
  2753. }
  2754. // Validate inspects the fields of the type to determine if they are valid.
  2755. func (s *DeleteReplicationTaskInput) Validate() error {
  2756. invalidParams := request.ErrInvalidParams{Context: "DeleteReplicationTaskInput"}
  2757. if s.ReplicationTaskArn == nil {
  2758. invalidParams.Add(request.NewErrParamRequired("ReplicationTaskArn"))
  2759. }
  2760. if invalidParams.Len() > 0 {
  2761. return invalidParams
  2762. }
  2763. return nil
  2764. }
  2765. type DeleteReplicationTaskOutput struct {
  2766. _ struct{} `type:"structure"`
  2767. // The deleted replication task.
  2768. ReplicationTask *ReplicationTask `type:"structure"`
  2769. }
  2770. // String returns the string representation
  2771. func (s DeleteReplicationTaskOutput) String() string {
  2772. return awsutil.Prettify(s)
  2773. }
  2774. // GoString returns the string representation
  2775. func (s DeleteReplicationTaskOutput) GoString() string {
  2776. return s.String()
  2777. }
  2778. type DescribeAccountAttributesInput struct {
  2779. _ struct{} `type:"structure"`
  2780. }
  2781. // String returns the string representation
  2782. func (s DescribeAccountAttributesInput) String() string {
  2783. return awsutil.Prettify(s)
  2784. }
  2785. // GoString returns the string representation
  2786. func (s DescribeAccountAttributesInput) GoString() string {
  2787. return s.String()
  2788. }
  2789. type DescribeAccountAttributesOutput struct {
  2790. _ struct{} `type:"structure"`
  2791. // Account quota information.
  2792. AccountQuotas []*AccountQuota `locationNameList:"AccountQuota" type:"list"`
  2793. }
  2794. // String returns the string representation
  2795. func (s DescribeAccountAttributesOutput) String() string {
  2796. return awsutil.Prettify(s)
  2797. }
  2798. // GoString returns the string representation
  2799. func (s DescribeAccountAttributesOutput) GoString() string {
  2800. return s.String()
  2801. }
  2802. type DescribeCertificatesInput struct {
  2803. _ struct{} `type:"structure"`
  2804. // Filters applied to the certificate described in the form of key-value pairs.
  2805. Filters []*Filter `locationNameList:"Filter" type:"list"`
  2806. // An optional pagination token provided by a previous request. If this parameter
  2807. // is specified, the response includes only records beyond the marker, up to
  2808. // the value specified by MaxRecords.
  2809. Marker *string `type:"string"`
  2810. // The maximum number of records to include in the response. If more records
  2811. // exist than the specified MaxRecords value, a pagination token called a marker
  2812. // is included in the response so that the remaining results can be retrieved.
  2813. //
  2814. // Default: 10
  2815. MaxRecords *int64 `type:"integer"`
  2816. }
  2817. // String returns the string representation
  2818. func (s DescribeCertificatesInput) String() string {
  2819. return awsutil.Prettify(s)
  2820. }
  2821. // GoString returns the string representation
  2822. func (s DescribeCertificatesInput) GoString() string {
  2823. return s.String()
  2824. }
  2825. // Validate inspects the fields of the type to determine if they are valid.
  2826. func (s *DescribeCertificatesInput) Validate() error {
  2827. invalidParams := request.ErrInvalidParams{Context: "DescribeCertificatesInput"}
  2828. if s.Filters != nil {
  2829. for i, v := range s.Filters {
  2830. if v == nil {
  2831. continue
  2832. }
  2833. if err := v.Validate(); err != nil {
  2834. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  2835. }
  2836. }
  2837. }
  2838. if invalidParams.Len() > 0 {
  2839. return invalidParams
  2840. }
  2841. return nil
  2842. }
  2843. type DescribeCertificatesOutput struct {
  2844. _ struct{} `type:"structure"`
  2845. // The SSL certificates associated with the replication instance.
  2846. Certificates []*Certificate `locationNameList:"Certificate" type:"list"`
  2847. // The pagination token.
  2848. Marker *string `type:"string"`
  2849. }
  2850. // String returns the string representation
  2851. func (s DescribeCertificatesOutput) String() string {
  2852. return awsutil.Prettify(s)
  2853. }
  2854. // GoString returns the string representation
  2855. func (s DescribeCertificatesOutput) GoString() string {
  2856. return s.String()
  2857. }
  2858. type DescribeConnectionsInput struct {
  2859. _ struct{} `type:"structure"`
  2860. // The filters applied to the connection.
  2861. //
  2862. // Valid filter names: endpoint-arn | replication-instance-arn
  2863. Filters []*Filter `locationNameList:"Filter" type:"list"`
  2864. // An optional pagination token provided by a previous request. If this parameter
  2865. // is specified, the response includes only records beyond the marker, up to
  2866. // the value specified by MaxRecords.
  2867. Marker *string `type:"string"`
  2868. // The maximum number of records to include in the response. If more records
  2869. // exist than the specified MaxRecords value, a pagination token called a marker
  2870. // is included in the response so that the remaining results can be retrieved.
  2871. //
  2872. // Default: 100
  2873. //
  2874. // Constraints: Minimum 20, maximum 100.
  2875. MaxRecords *int64 `type:"integer"`
  2876. }
  2877. // String returns the string representation
  2878. func (s DescribeConnectionsInput) String() string {
  2879. return awsutil.Prettify(s)
  2880. }
  2881. // GoString returns the string representation
  2882. func (s DescribeConnectionsInput) GoString() string {
  2883. return s.String()
  2884. }
  2885. // Validate inspects the fields of the type to determine if they are valid.
  2886. func (s *DescribeConnectionsInput) Validate() error {
  2887. invalidParams := request.ErrInvalidParams{Context: "DescribeConnectionsInput"}
  2888. if s.Filters != nil {
  2889. for i, v := range s.Filters {
  2890. if v == nil {
  2891. continue
  2892. }
  2893. if err := v.Validate(); err != nil {
  2894. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  2895. }
  2896. }
  2897. }
  2898. if invalidParams.Len() > 0 {
  2899. return invalidParams
  2900. }
  2901. return nil
  2902. }
  2903. type DescribeConnectionsOutput struct {
  2904. _ struct{} `type:"structure"`
  2905. // A description of the connections.
  2906. Connections []*Connection `locationNameList:"Connection" type:"list"`
  2907. // An optional pagination token provided by a previous request. If this parameter
  2908. // is specified, the response includes only records beyond the marker, up to
  2909. // the value specified by MaxRecords.
  2910. Marker *string `type:"string"`
  2911. }
  2912. // String returns the string representation
  2913. func (s DescribeConnectionsOutput) String() string {
  2914. return awsutil.Prettify(s)
  2915. }
  2916. // GoString returns the string representation
  2917. func (s DescribeConnectionsOutput) GoString() string {
  2918. return s.String()
  2919. }
  2920. type DescribeEndpointTypesInput struct {
  2921. _ struct{} `type:"structure"`
  2922. // Filters applied to the describe action.
  2923. //
  2924. // Valid filter names: engine-name | endpoint-type
  2925. Filters []*Filter `locationNameList:"Filter" type:"list"`
  2926. // An optional pagination token provided by a previous request. If this parameter
  2927. // is specified, the response includes only records beyond the marker, up to
  2928. // the value specified by MaxRecords.
  2929. Marker *string `type:"string"`
  2930. // The maximum number of records to include in the response. If more records
  2931. // exist than the specified MaxRecords value, a pagination token called a marker
  2932. // is included in the response so that the remaining results can be retrieved.
  2933. //
  2934. // Default: 100
  2935. //
  2936. // Constraints: Minimum 20, maximum 100.
  2937. MaxRecords *int64 `type:"integer"`
  2938. }
  2939. // String returns the string representation
  2940. func (s DescribeEndpointTypesInput) String() string {
  2941. return awsutil.Prettify(s)
  2942. }
  2943. // GoString returns the string representation
  2944. func (s DescribeEndpointTypesInput) GoString() string {
  2945. return s.String()
  2946. }
  2947. // Validate inspects the fields of the type to determine if they are valid.
  2948. func (s *DescribeEndpointTypesInput) Validate() error {
  2949. invalidParams := request.ErrInvalidParams{Context: "DescribeEndpointTypesInput"}
  2950. if s.Filters != nil {
  2951. for i, v := range s.Filters {
  2952. if v == nil {
  2953. continue
  2954. }
  2955. if err := v.Validate(); err != nil {
  2956. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  2957. }
  2958. }
  2959. }
  2960. if invalidParams.Len() > 0 {
  2961. return invalidParams
  2962. }
  2963. return nil
  2964. }
  2965. type DescribeEndpointTypesOutput struct {
  2966. _ struct{} `type:"structure"`
  2967. // An optional pagination token provided by a previous request. If this parameter
  2968. // is specified, the response includes only records beyond the marker, up to
  2969. // the value specified by MaxRecords.
  2970. Marker *string `type:"string"`
  2971. // The type of endpoints that are supported.
  2972. SupportedEndpointTypes []*SupportedEndpointType `locationNameList:"SupportedEndpointType" type:"list"`
  2973. }
  2974. // String returns the string representation
  2975. func (s DescribeEndpointTypesOutput) String() string {
  2976. return awsutil.Prettify(s)
  2977. }
  2978. // GoString returns the string representation
  2979. func (s DescribeEndpointTypesOutput) GoString() string {
  2980. return s.String()
  2981. }
  2982. type DescribeEndpointsInput struct {
  2983. _ struct{} `type:"structure"`
  2984. // Filters applied to the describe action.
  2985. //
  2986. // Valid filter names: endpoint-arn | endpoint-type | endpoint-id | engine-name
  2987. Filters []*Filter `locationNameList:"Filter" type:"list"`
  2988. // An optional pagination token provided by a previous request. If this parameter
  2989. // is specified, the response includes only records beyond the marker, up to
  2990. // the value specified by MaxRecords.
  2991. Marker *string `type:"string"`
  2992. // The maximum number of records to include in the response. If more records
  2993. // exist than the specified MaxRecords value, a pagination token called a marker
  2994. // is included in the response so that the remaining results can be retrieved.
  2995. //
  2996. // Default: 100
  2997. //
  2998. // Constraints: Minimum 20, maximum 100.
  2999. MaxRecords *int64 `type:"integer"`
  3000. }
  3001. // String returns the string representation
  3002. func (s DescribeEndpointsInput) String() string {
  3003. return awsutil.Prettify(s)
  3004. }
  3005. // GoString returns the string representation
  3006. func (s DescribeEndpointsInput) GoString() string {
  3007. return s.String()
  3008. }
  3009. // Validate inspects the fields of the type to determine if they are valid.
  3010. func (s *DescribeEndpointsInput) Validate() error {
  3011. invalidParams := request.ErrInvalidParams{Context: "DescribeEndpointsInput"}
  3012. if s.Filters != nil {
  3013. for i, v := range s.Filters {
  3014. if v == nil {
  3015. continue
  3016. }
  3017. if err := v.Validate(); err != nil {
  3018. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  3019. }
  3020. }
  3021. }
  3022. if invalidParams.Len() > 0 {
  3023. return invalidParams
  3024. }
  3025. return nil
  3026. }
  3027. type DescribeEndpointsOutput struct {
  3028. _ struct{} `type:"structure"`
  3029. // Endpoint description.
  3030. Endpoints []*Endpoint `locationNameList:"Endpoint" type:"list"`
  3031. // An optional pagination token provided by a previous request. If this parameter
  3032. // is specified, the response includes only records beyond the marker, up to
  3033. // the value specified by MaxRecords.
  3034. Marker *string `type:"string"`
  3035. }
  3036. // String returns the string representation
  3037. func (s DescribeEndpointsOutput) String() string {
  3038. return awsutil.Prettify(s)
  3039. }
  3040. // GoString returns the string representation
  3041. func (s DescribeEndpointsOutput) GoString() string {
  3042. return s.String()
  3043. }
  3044. type DescribeOrderableReplicationInstancesInput struct {
  3045. _ struct{} `type:"structure"`
  3046. // An optional pagination token provided by a previous request. If this parameter
  3047. // is specified, the response includes only records beyond the marker, up to
  3048. // the value specified by MaxRecords.
  3049. Marker *string `type:"string"`
  3050. // The maximum number of records to include in the response. If more records
  3051. // exist than the specified MaxRecords value, a pagination token called a marker
  3052. // is included in the response so that the remaining results can be retrieved.
  3053. //
  3054. // Default: 100
  3055. //
  3056. // Constraints: Minimum 20, maximum 100.
  3057. MaxRecords *int64 `type:"integer"`
  3058. }
  3059. // String returns the string representation
  3060. func (s DescribeOrderableReplicationInstancesInput) String() string {
  3061. return awsutil.Prettify(s)
  3062. }
  3063. // GoString returns the string representation
  3064. func (s DescribeOrderableReplicationInstancesInput) GoString() string {
  3065. return s.String()
  3066. }
  3067. type DescribeOrderableReplicationInstancesOutput struct {
  3068. _ struct{} `type:"structure"`
  3069. // An optional pagination token provided by a previous request. If this parameter
  3070. // is specified, the response includes only records beyond the marker, up to
  3071. // the value specified by MaxRecords.
  3072. Marker *string `type:"string"`
  3073. // The order-able replication instances available.
  3074. OrderableReplicationInstances []*OrderableReplicationInstance `locationNameList:"OrderableReplicationInstance" type:"list"`
  3075. }
  3076. // String returns the string representation
  3077. func (s DescribeOrderableReplicationInstancesOutput) String() string {
  3078. return awsutil.Prettify(s)
  3079. }
  3080. // GoString returns the string representation
  3081. func (s DescribeOrderableReplicationInstancesOutput) GoString() string {
  3082. return s.String()
  3083. }
  3084. type DescribeRefreshSchemasStatusInput struct {
  3085. _ struct{} `type:"structure"`
  3086. // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
  3087. //
  3088. // EndpointArn is a required field
  3089. EndpointArn *string `type:"string" required:"true"`
  3090. }
  3091. // String returns the string representation
  3092. func (s DescribeRefreshSchemasStatusInput) String() string {
  3093. return awsutil.Prettify(s)
  3094. }
  3095. // GoString returns the string representation
  3096. func (s DescribeRefreshSchemasStatusInput) GoString() string {
  3097. return s.String()
  3098. }
  3099. // Validate inspects the fields of the type to determine if they are valid.
  3100. func (s *DescribeRefreshSchemasStatusInput) Validate() error {
  3101. invalidParams := request.ErrInvalidParams{Context: "DescribeRefreshSchemasStatusInput"}
  3102. if s.EndpointArn == nil {
  3103. invalidParams.Add(request.NewErrParamRequired("EndpointArn"))
  3104. }
  3105. if invalidParams.Len() > 0 {
  3106. return invalidParams
  3107. }
  3108. return nil
  3109. }
  3110. type DescribeRefreshSchemasStatusOutput struct {
  3111. _ struct{} `type:"structure"`
  3112. // The status of the schema.
  3113. RefreshSchemasStatus *RefreshSchemasStatus `type:"structure"`
  3114. }
  3115. // String returns the string representation
  3116. func (s DescribeRefreshSchemasStatusOutput) String() string {
  3117. return awsutil.Prettify(s)
  3118. }
  3119. // GoString returns the string representation
  3120. func (s DescribeRefreshSchemasStatusOutput) GoString() string {
  3121. return s.String()
  3122. }
  3123. type DescribeReplicationInstancesInput struct {
  3124. _ struct{} `type:"structure"`
  3125. // Filters applied to the describe action.
  3126. //
  3127. // Valid filter names: replication-instance-arn | replication-instance-id |
  3128. // replication-instance-class | engine-version
  3129. Filters []*Filter `locationNameList:"Filter" type:"list"`
  3130. // An optional pagination token provided by a previous request. If this parameter
  3131. // is specified, the response includes only records beyond the marker, up to
  3132. // the value specified by MaxRecords.
  3133. Marker *string `type:"string"`
  3134. // The maximum number of records to include in the response. If more records
  3135. // exist than the specified MaxRecords value, a pagination token called a marker
  3136. // is included in the response so that the remaining results can be retrieved.
  3137. //
  3138. // Default: 100
  3139. //
  3140. // Constraints: Minimum 20, maximum 100.
  3141. MaxRecords *int64 `type:"integer"`
  3142. }
  3143. // String returns the string representation
  3144. func (s DescribeReplicationInstancesInput) String() string {
  3145. return awsutil.Prettify(s)
  3146. }
  3147. // GoString returns the string representation
  3148. func (s DescribeReplicationInstancesInput) GoString() string {
  3149. return s.String()
  3150. }
  3151. // Validate inspects the fields of the type to determine if they are valid.
  3152. func (s *DescribeReplicationInstancesInput) Validate() error {
  3153. invalidParams := request.ErrInvalidParams{Context: "DescribeReplicationInstancesInput"}
  3154. if s.Filters != nil {
  3155. for i, v := range s.Filters {
  3156. if v == nil {
  3157. continue
  3158. }
  3159. if err := v.Validate(); err != nil {
  3160. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  3161. }
  3162. }
  3163. }
  3164. if invalidParams.Len() > 0 {
  3165. return invalidParams
  3166. }
  3167. return nil
  3168. }
  3169. type DescribeReplicationInstancesOutput struct {
  3170. _ struct{} `type:"structure"`
  3171. // An optional pagination token provided by a previous request. If this parameter
  3172. // is specified, the response includes only records beyond the marker, up to
  3173. // the value specified by MaxRecords.
  3174. Marker *string `type:"string"`
  3175. // The replication instances described.
  3176. ReplicationInstances []*ReplicationInstance `locationNameList:"ReplicationInstance" type:"list"`
  3177. }
  3178. // String returns the string representation
  3179. func (s DescribeReplicationInstancesOutput) String() string {
  3180. return awsutil.Prettify(s)
  3181. }
  3182. // GoString returns the string representation
  3183. func (s DescribeReplicationInstancesOutput) GoString() string {
  3184. return s.String()
  3185. }
  3186. type DescribeReplicationSubnetGroupsInput struct {
  3187. _ struct{} `type:"structure"`
  3188. // Filters applied to the describe action.
  3189. Filters []*Filter `locationNameList:"Filter" type:"list"`
  3190. // An optional pagination token provided by a previous request. If this parameter
  3191. // is specified, the response includes only records beyond the marker, up to
  3192. // the value specified by MaxRecords.
  3193. Marker *string `type:"string"`
  3194. // The maximum number of records to include in the response. If more records
  3195. // exist than the specified MaxRecords value, a pagination token called a marker
  3196. // is included in the response so that the remaining results can be retrieved.
  3197. //
  3198. // Default: 100
  3199. //
  3200. // Constraints: Minimum 20, maximum 100.
  3201. MaxRecords *int64 `type:"integer"`
  3202. }
  3203. // String returns the string representation
  3204. func (s DescribeReplicationSubnetGroupsInput) String() string {
  3205. return awsutil.Prettify(s)
  3206. }
  3207. // GoString returns the string representation
  3208. func (s DescribeReplicationSubnetGroupsInput) GoString() string {
  3209. return s.String()
  3210. }
  3211. // Validate inspects the fields of the type to determine if they are valid.
  3212. func (s *DescribeReplicationSubnetGroupsInput) Validate() error {
  3213. invalidParams := request.ErrInvalidParams{Context: "DescribeReplicationSubnetGroupsInput"}
  3214. if s.Filters != nil {
  3215. for i, v := range s.Filters {
  3216. if v == nil {
  3217. continue
  3218. }
  3219. if err := v.Validate(); err != nil {
  3220. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  3221. }
  3222. }
  3223. }
  3224. if invalidParams.Len() > 0 {
  3225. return invalidParams
  3226. }
  3227. return nil
  3228. }
  3229. type DescribeReplicationSubnetGroupsOutput struct {
  3230. _ struct{} `type:"structure"`
  3231. // An optional pagination token provided by a previous request. If this parameter
  3232. // is specified, the response includes only records beyond the marker, up to
  3233. // the value specified by MaxRecords.
  3234. Marker *string `type:"string"`
  3235. // A description of the replication subnet groups.
  3236. ReplicationSubnetGroups []*ReplicationSubnetGroup `locationNameList:"ReplicationSubnetGroup" type:"list"`
  3237. }
  3238. // String returns the string representation
  3239. func (s DescribeReplicationSubnetGroupsOutput) String() string {
  3240. return awsutil.Prettify(s)
  3241. }
  3242. // GoString returns the string representation
  3243. func (s DescribeReplicationSubnetGroupsOutput) GoString() string {
  3244. return s.String()
  3245. }
  3246. type DescribeReplicationTasksInput struct {
  3247. _ struct{} `type:"structure"`
  3248. // Filters applied to the describe action.
  3249. //
  3250. // Valid filter names: replication-task-arn | replication-task-id | migration-type
  3251. // | endpoint-arn | replication-instance-arn
  3252. Filters []*Filter `locationNameList:"Filter" type:"list"`
  3253. // An optional pagination token provided by a previous request. If this parameter
  3254. // is specified, the response includes only records beyond the marker, up to
  3255. // the value specified by MaxRecords.
  3256. Marker *string `type:"string"`
  3257. // The maximum number of records to include in the response. If more records
  3258. // exist than the specified MaxRecords value, a pagination token called a marker
  3259. // is included in the response so that the remaining results can be retrieved.
  3260. //
  3261. // Default: 100
  3262. //
  3263. // Constraints: Minimum 20, maximum 100.
  3264. MaxRecords *int64 `type:"integer"`
  3265. }
  3266. // String returns the string representation
  3267. func (s DescribeReplicationTasksInput) String() string {
  3268. return awsutil.Prettify(s)
  3269. }
  3270. // GoString returns the string representation
  3271. func (s DescribeReplicationTasksInput) GoString() string {
  3272. return s.String()
  3273. }
  3274. // Validate inspects the fields of the type to determine if they are valid.
  3275. func (s *DescribeReplicationTasksInput) Validate() error {
  3276. invalidParams := request.ErrInvalidParams{Context: "DescribeReplicationTasksInput"}
  3277. if s.Filters != nil {
  3278. for i, v := range s.Filters {
  3279. if v == nil {
  3280. continue
  3281. }
  3282. if err := v.Validate(); err != nil {
  3283. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  3284. }
  3285. }
  3286. }
  3287. if invalidParams.Len() > 0 {
  3288. return invalidParams
  3289. }
  3290. return nil
  3291. }
  3292. type DescribeReplicationTasksOutput struct {
  3293. _ struct{} `type:"structure"`
  3294. // An optional pagination token provided by a previous request. If this parameter
  3295. // is specified, the response includes only records beyond the marker, up to
  3296. // the value specified by MaxRecords.
  3297. Marker *string `type:"string"`
  3298. // A description of the replication tasks.
  3299. ReplicationTasks []*ReplicationTask `locationNameList:"ReplicationTask" type:"list"`
  3300. }
  3301. // String returns the string representation
  3302. func (s DescribeReplicationTasksOutput) String() string {
  3303. return awsutil.Prettify(s)
  3304. }
  3305. // GoString returns the string representation
  3306. func (s DescribeReplicationTasksOutput) GoString() string {
  3307. return s.String()
  3308. }
  3309. type DescribeSchemasInput struct {
  3310. _ struct{} `type:"structure"`
  3311. // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
  3312. //
  3313. // EndpointArn is a required field
  3314. EndpointArn *string `type:"string" required:"true"`
  3315. // An optional pagination token provided by a previous request. If this parameter
  3316. // is specified, the response includes only records beyond the marker, up to
  3317. // the value specified by MaxRecords.
  3318. Marker *string `type:"string"`
  3319. // The maximum number of records to include in the response. If more records
  3320. // exist than the specified MaxRecords value, a pagination token called a marker
  3321. // is included in the response so that the remaining results can be retrieved.
  3322. //
  3323. // Default: 100
  3324. //
  3325. // Constraints: Minimum 20, maximum 100.
  3326. MaxRecords *int64 `type:"integer"`
  3327. }
  3328. // String returns the string representation
  3329. func (s DescribeSchemasInput) String() string {
  3330. return awsutil.Prettify(s)
  3331. }
  3332. // GoString returns the string representation
  3333. func (s DescribeSchemasInput) GoString() string {
  3334. return s.String()
  3335. }
  3336. // Validate inspects the fields of the type to determine if they are valid.
  3337. func (s *DescribeSchemasInput) Validate() error {
  3338. invalidParams := request.ErrInvalidParams{Context: "DescribeSchemasInput"}
  3339. if s.EndpointArn == nil {
  3340. invalidParams.Add(request.NewErrParamRequired("EndpointArn"))
  3341. }
  3342. if invalidParams.Len() > 0 {
  3343. return invalidParams
  3344. }
  3345. return nil
  3346. }
  3347. type DescribeSchemasOutput struct {
  3348. _ struct{} `type:"structure"`
  3349. // An optional pagination token provided by a previous request. If this parameter
  3350. // is specified, the response includes only records beyond the marker, up to
  3351. // the value specified by MaxRecords.
  3352. Marker *string `type:"string"`
  3353. // The described schema.
  3354. Schemas []*string `type:"list"`
  3355. }
  3356. // String returns the string representation
  3357. func (s DescribeSchemasOutput) String() string {
  3358. return awsutil.Prettify(s)
  3359. }
  3360. // GoString returns the string representation
  3361. func (s DescribeSchemasOutput) GoString() string {
  3362. return s.String()
  3363. }
  3364. type DescribeTableStatisticsInput struct {
  3365. _ struct{} `type:"structure"`
  3366. // An optional pagination token provided by a previous request. If this parameter
  3367. // is specified, the response includes only records beyond the marker, up to
  3368. // the value specified by MaxRecords.
  3369. Marker *string `type:"string"`
  3370. // The maximum number of records to include in the response. If more records
  3371. // exist than the specified MaxRecords value, a pagination token called a marker
  3372. // is included in the response so that the remaining results can be retrieved.
  3373. //
  3374. // Default: 100
  3375. //
  3376. // Constraints: Minimum 20, maximum 100.
  3377. MaxRecords *int64 `type:"integer"`
  3378. // The Amazon Resource Name (ARN) of the replication task.
  3379. //
  3380. // ReplicationTaskArn is a required field
  3381. ReplicationTaskArn *string `type:"string" required:"true"`
  3382. }
  3383. // String returns the string representation
  3384. func (s DescribeTableStatisticsInput) String() string {
  3385. return awsutil.Prettify(s)
  3386. }
  3387. // GoString returns the string representation
  3388. func (s DescribeTableStatisticsInput) GoString() string {
  3389. return s.String()
  3390. }
  3391. // Validate inspects the fields of the type to determine if they are valid.
  3392. func (s *DescribeTableStatisticsInput) Validate() error {
  3393. invalidParams := request.ErrInvalidParams{Context: "DescribeTableStatisticsInput"}
  3394. if s.ReplicationTaskArn == nil {
  3395. invalidParams.Add(request.NewErrParamRequired("ReplicationTaskArn"))
  3396. }
  3397. if invalidParams.Len() > 0 {
  3398. return invalidParams
  3399. }
  3400. return nil
  3401. }
  3402. type DescribeTableStatisticsOutput struct {
  3403. _ struct{} `type:"structure"`
  3404. // An optional pagination token provided by a previous request. If this parameter
  3405. // is specified, the response includes only records beyond the marker, up to
  3406. // the value specified by MaxRecords.
  3407. Marker *string `type:"string"`
  3408. // The Amazon Resource Name (ARN) of the replication task.
  3409. ReplicationTaskArn *string `type:"string"`
  3410. // The table statistics.
  3411. TableStatistics []*TableStatistics `type:"list"`
  3412. }
  3413. // String returns the string representation
  3414. func (s DescribeTableStatisticsOutput) String() string {
  3415. return awsutil.Prettify(s)
  3416. }
  3417. // GoString returns the string representation
  3418. func (s DescribeTableStatisticsOutput) GoString() string {
  3419. return s.String()
  3420. }
  3421. type Endpoint struct {
  3422. _ struct{} `type:"structure"`
  3423. // The Amazon Resource Name (ARN) used for SSL connection to the endpoint.
  3424. CertificateArn *string `type:"string"`
  3425. // The name of the database at the endpoint.
  3426. DatabaseName *string `type:"string"`
  3427. // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
  3428. EndpointArn *string `type:"string"`
  3429. // The database endpoint identifier. Identifiers must begin with a letter; must
  3430. // contain only ASCII letters, digits, and hyphens; and must not end with a
  3431. // hyphen or contain two consecutive hyphens.
  3432. EndpointIdentifier *string `type:"string"`
  3433. // The type of endpoint.
  3434. EndpointType *string `type:"string" enum:"ReplicationEndpointTypeValue"`
  3435. // The database engine name.
  3436. EngineName *string `type:"string"`
  3437. // Additional connection attributes used to connect to the endpoint.
  3438. ExtraConnectionAttributes *string `type:"string"`
  3439. // The KMS key identifier that will be used to encrypt the connection parameters.
  3440. // If you do not specify a value for the KmsKeyId parameter, then AWS DMS will
  3441. // use your default encryption key. AWS KMS creates the default encryption key
  3442. // for your AWS account. Your AWS account has a different default encryption
  3443. // key for each AWS region.
  3444. KmsKeyId *string `type:"string"`
  3445. // The port value used to access the endpoint.
  3446. Port *int64 `type:"integer"`
  3447. // The name of the server at the endpoint.
  3448. ServerName *string `type:"string"`
  3449. // The SSL mode used to connect to the endpoint.
  3450. //
  3451. // SSL mode can be one of four values: none, require, verify-ca, verify-full.
  3452. //
  3453. // The default value is none.
  3454. SslMode *string `type:"string" enum:"DmsSslModeValue"`
  3455. // The status of the endpoint.
  3456. Status *string `type:"string"`
  3457. // The user name used to connect to the endpoint.
  3458. Username *string `type:"string"`
  3459. }
  3460. // String returns the string representation
  3461. func (s Endpoint) String() string {
  3462. return awsutil.Prettify(s)
  3463. }
  3464. // GoString returns the string representation
  3465. func (s Endpoint) GoString() string {
  3466. return s.String()
  3467. }
  3468. type Filter struct {
  3469. _ struct{} `type:"structure"`
  3470. // The name of the filter.
  3471. //
  3472. // Name is a required field
  3473. Name *string `type:"string" required:"true"`
  3474. // The filter value.
  3475. //
  3476. // Values is a required field
  3477. Values []*string `locationNameList:"Value" type:"list" required:"true"`
  3478. }
  3479. // String returns the string representation
  3480. func (s Filter) String() string {
  3481. return awsutil.Prettify(s)
  3482. }
  3483. // GoString returns the string representation
  3484. func (s Filter) GoString() string {
  3485. return s.String()
  3486. }
  3487. // Validate inspects the fields of the type to determine if they are valid.
  3488. func (s *Filter) Validate() error {
  3489. invalidParams := request.ErrInvalidParams{Context: "Filter"}
  3490. if s.Name == nil {
  3491. invalidParams.Add(request.NewErrParamRequired("Name"))
  3492. }
  3493. if s.Values == nil {
  3494. invalidParams.Add(request.NewErrParamRequired("Values"))
  3495. }
  3496. if invalidParams.Len() > 0 {
  3497. return invalidParams
  3498. }
  3499. return nil
  3500. }
  3501. type ImportCertificateInput struct {
  3502. _ struct{} `type:"structure"`
  3503. // The customer-assigned name of the certificate. Valid characters are [A-z_0-9].
  3504. //
  3505. // CertificateIdentifier is a required field
  3506. CertificateIdentifier *string `type:"string" required:"true"`
  3507. // The contents of the .pem X.509 certificate file.
  3508. CertificatePem *string `type:"string"`
  3509. }
  3510. // String returns the string representation
  3511. func (s ImportCertificateInput) String() string {
  3512. return awsutil.Prettify(s)
  3513. }
  3514. // GoString returns the string representation
  3515. func (s ImportCertificateInput) GoString() string {
  3516. return s.String()
  3517. }
  3518. // Validate inspects the fields of the type to determine if they are valid.
  3519. func (s *ImportCertificateInput) Validate() error {
  3520. invalidParams := request.ErrInvalidParams{Context: "ImportCertificateInput"}
  3521. if s.CertificateIdentifier == nil {
  3522. invalidParams.Add(request.NewErrParamRequired("CertificateIdentifier"))
  3523. }
  3524. if invalidParams.Len() > 0 {
  3525. return invalidParams
  3526. }
  3527. return nil
  3528. }
  3529. type ImportCertificateOutput struct {
  3530. _ struct{} `type:"structure"`
  3531. // The certificate to be uploaded.
  3532. Certificate *Certificate `type:"structure"`
  3533. }
  3534. // String returns the string representation
  3535. func (s ImportCertificateOutput) String() string {
  3536. return awsutil.Prettify(s)
  3537. }
  3538. // GoString returns the string representation
  3539. func (s ImportCertificateOutput) GoString() string {
  3540. return s.String()
  3541. }
  3542. type ListTagsForResourceInput struct {
  3543. _ struct{} `type:"structure"`
  3544. // The Amazon Resource Name (ARN) string that uniquely identifies the AWS DMS
  3545. // resource.
  3546. //
  3547. // ResourceArn is a required field
  3548. ResourceArn *string `type:"string" required:"true"`
  3549. }
  3550. // String returns the string representation
  3551. func (s ListTagsForResourceInput) String() string {
  3552. return awsutil.Prettify(s)
  3553. }
  3554. // GoString returns the string representation
  3555. func (s ListTagsForResourceInput) GoString() string {
  3556. return s.String()
  3557. }
  3558. // Validate inspects the fields of the type to determine if they are valid.
  3559. func (s *ListTagsForResourceInput) Validate() error {
  3560. invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
  3561. if s.ResourceArn == nil {
  3562. invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  3563. }
  3564. if invalidParams.Len() > 0 {
  3565. return invalidParams
  3566. }
  3567. return nil
  3568. }
  3569. type ListTagsForResourceOutput struct {
  3570. _ struct{} `type:"structure"`
  3571. // A list of tags for the resource.
  3572. TagList []*Tag `locationNameList:"Tag" type:"list"`
  3573. }
  3574. // String returns the string representation
  3575. func (s ListTagsForResourceOutput) String() string {
  3576. return awsutil.Prettify(s)
  3577. }
  3578. // GoString returns the string representation
  3579. func (s ListTagsForResourceOutput) GoString() string {
  3580. return s.String()
  3581. }
  3582. type ModifyEndpointInput struct {
  3583. _ struct{} `type:"structure"`
  3584. // The Amazon Resource Name (ARN) of the certificate used for SSL connection.
  3585. CertificateArn *string `type:"string"`
  3586. // The name of the endpoint database.
  3587. DatabaseName *string `type:"string"`
  3588. // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
  3589. //
  3590. // EndpointArn is a required field
  3591. EndpointArn *string `type:"string" required:"true"`
  3592. // The database endpoint identifier. Identifiers must begin with a letter; must
  3593. // contain only ASCII letters, digits, and hyphens; and must not end with a
  3594. // hyphen or contain two consecutive hyphens.
  3595. EndpointIdentifier *string `type:"string"`
  3596. // The type of endpoint.
  3597. EndpointType *string `type:"string" enum:"ReplicationEndpointTypeValue"`
  3598. // The type of engine for the endpoint. Valid values include MYSQL, ORACLE,
  3599. // POSTGRES, MARIADB, AURORA, REDSHIFT, and SQLSERVER.
  3600. EngineName *string `type:"string"`
  3601. // Additional attributes associated with the connection.
  3602. ExtraConnectionAttributes *string `type:"string"`
  3603. // The password to be used to login to the endpoint database.
  3604. Password *string `type:"string"`
  3605. // The port used by the endpoint database.
  3606. Port *int64 `type:"integer"`
  3607. // The name of the server where the endpoint database resides.
  3608. ServerName *string `type:"string"`
  3609. // The SSL mode to be used.
  3610. //
  3611. // SSL mode can be one of four values: none, require, verify-ca, verify-full.
  3612. //
  3613. // The default value is none.
  3614. SslMode *string `type:"string" enum:"DmsSslModeValue"`
  3615. // The user name to be used to login to the endpoint database.
  3616. Username *string `type:"string"`
  3617. }
  3618. // String returns the string representation
  3619. func (s ModifyEndpointInput) String() string {
  3620. return awsutil.Prettify(s)
  3621. }
  3622. // GoString returns the string representation
  3623. func (s ModifyEndpointInput) GoString() string {
  3624. return s.String()
  3625. }
  3626. // Validate inspects the fields of the type to determine if they are valid.
  3627. func (s *ModifyEndpointInput) Validate() error {
  3628. invalidParams := request.ErrInvalidParams{Context: "ModifyEndpointInput"}
  3629. if s.EndpointArn == nil {
  3630. invalidParams.Add(request.NewErrParamRequired("EndpointArn"))
  3631. }
  3632. if invalidParams.Len() > 0 {
  3633. return invalidParams
  3634. }
  3635. return nil
  3636. }
  3637. type ModifyEndpointOutput struct {
  3638. _ struct{} `type:"structure"`
  3639. // The modified endpoint.
  3640. Endpoint *Endpoint `type:"structure"`
  3641. }
  3642. // String returns the string representation
  3643. func (s ModifyEndpointOutput) String() string {
  3644. return awsutil.Prettify(s)
  3645. }
  3646. // GoString returns the string representation
  3647. func (s ModifyEndpointOutput) GoString() string {
  3648. return s.String()
  3649. }
  3650. type ModifyReplicationInstanceInput struct {
  3651. _ struct{} `type:"structure"`
  3652. // The amount of storage (in gigabytes) to be allocated for the replication
  3653. // instance.
  3654. AllocatedStorage *int64 `type:"integer"`
  3655. // Indicates that major version upgrades are allowed. Changing this parameter
  3656. // does not result in an outage and the change is asynchronously applied as
  3657. // soon as possible.
  3658. //
  3659. // Constraints: This parameter must be set to true when specifying a value for
  3660. // the EngineVersion parameter that is a different major version than the replication
  3661. // instance's current version.
  3662. AllowMajorVersionUpgrade *bool `type:"boolean"`
  3663. // Indicates whether the changes should be applied immediately or during the
  3664. // next maintenance window.
  3665. ApplyImmediately *bool `type:"boolean"`
  3666. // Indicates that minor version upgrades will be applied automatically to the
  3667. // replication instance during the maintenance window. Changing this parameter
  3668. // does not result in an outage except in the following case and the change
  3669. // is asynchronously applied as soon as possible. An outage will result if this
  3670. // parameter is set to true during the maintenance window, and a newer minor
  3671. // version is available, and AWS DMS has enabled auto patching for that engine
  3672. // version.
  3673. AutoMinorVersionUpgrade *bool `type:"boolean"`
  3674. // The engine version number of the replication instance.
  3675. EngineVersion *string `type:"string"`
  3676. // Specifies if the replication instance is a Multi-AZ deployment. You cannot
  3677. // set the AvailabilityZone parameter if the Multi-AZ parameter is set to true.
  3678. MultiAZ *bool `type:"boolean"`
  3679. // The weekly time range (in UTC) during which system maintenance can occur,
  3680. // which might result in an outage. Changing this parameter does not result
  3681. // in an outage, except in the following situation, and the change is asynchronously
  3682. // applied as soon as possible. If moving this window to the current time, there
  3683. // must be at least 30 minutes between the current time and end of the window
  3684. // to ensure pending changes are applied.
  3685. //
  3686. // Default: Uses existing setting
  3687. //
  3688. // Format: ddd:hh24:mi-ddd:hh24:mi
  3689. //
  3690. // Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun
  3691. //
  3692. // Constraints: Must be at least 30 minutes
  3693. PreferredMaintenanceWindow *string `type:"string"`
  3694. // The Amazon Resource Name (ARN) of the replication instance.
  3695. //
  3696. // ReplicationInstanceArn is a required field
  3697. ReplicationInstanceArn *string `type:"string" required:"true"`
  3698. // The compute and memory capacity of the replication instance.
  3699. //
  3700. // Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large
  3701. // | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge
  3702. ReplicationInstanceClass *string `type:"string"`
  3703. // The replication instance identifier. This parameter is stored as a lowercase
  3704. // string.
  3705. ReplicationInstanceIdentifier *string `type:"string"`
  3706. // Specifies the VPC security group to be used with the replication instance.
  3707. // The VPC security group must work with the VPC containing the replication
  3708. // instance.
  3709. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  3710. }
  3711. // String returns the string representation
  3712. func (s ModifyReplicationInstanceInput) String() string {
  3713. return awsutil.Prettify(s)
  3714. }
  3715. // GoString returns the string representation
  3716. func (s ModifyReplicationInstanceInput) GoString() string {
  3717. return s.String()
  3718. }
  3719. // Validate inspects the fields of the type to determine if they are valid.
  3720. func (s *ModifyReplicationInstanceInput) Validate() error {
  3721. invalidParams := request.ErrInvalidParams{Context: "ModifyReplicationInstanceInput"}
  3722. if s.ReplicationInstanceArn == nil {
  3723. invalidParams.Add(request.NewErrParamRequired("ReplicationInstanceArn"))
  3724. }
  3725. if invalidParams.Len() > 0 {
  3726. return invalidParams
  3727. }
  3728. return nil
  3729. }
  3730. type ModifyReplicationInstanceOutput struct {
  3731. _ struct{} `type:"structure"`
  3732. // The modified replication instance.
  3733. ReplicationInstance *ReplicationInstance `type:"structure"`
  3734. }
  3735. // String returns the string representation
  3736. func (s ModifyReplicationInstanceOutput) String() string {
  3737. return awsutil.Prettify(s)
  3738. }
  3739. // GoString returns the string representation
  3740. func (s ModifyReplicationInstanceOutput) GoString() string {
  3741. return s.String()
  3742. }
  3743. type ModifyReplicationSubnetGroupInput struct {
  3744. _ struct{} `type:"structure"`
  3745. // The description of the replication instance subnet group.
  3746. ReplicationSubnetGroupDescription *string `type:"string"`
  3747. // The name of the replication instance subnet group.
  3748. //
  3749. // ReplicationSubnetGroupIdentifier is a required field
  3750. ReplicationSubnetGroupIdentifier *string `type:"string" required:"true"`
  3751. // A list of subnet IDs.
  3752. //
  3753. // SubnetIds is a required field
  3754. SubnetIds []*string `locationNameList:"SubnetIdentifier" type:"list" required:"true"`
  3755. }
  3756. // String returns the string representation
  3757. func (s ModifyReplicationSubnetGroupInput) String() string {
  3758. return awsutil.Prettify(s)
  3759. }
  3760. // GoString returns the string representation
  3761. func (s ModifyReplicationSubnetGroupInput) GoString() string {
  3762. return s.String()
  3763. }
  3764. // Validate inspects the fields of the type to determine if they are valid.
  3765. func (s *ModifyReplicationSubnetGroupInput) Validate() error {
  3766. invalidParams := request.ErrInvalidParams{Context: "ModifyReplicationSubnetGroupInput"}
  3767. if s.ReplicationSubnetGroupIdentifier == nil {
  3768. invalidParams.Add(request.NewErrParamRequired("ReplicationSubnetGroupIdentifier"))
  3769. }
  3770. if s.SubnetIds == nil {
  3771. invalidParams.Add(request.NewErrParamRequired("SubnetIds"))
  3772. }
  3773. if invalidParams.Len() > 0 {
  3774. return invalidParams
  3775. }
  3776. return nil
  3777. }
  3778. type ModifyReplicationSubnetGroupOutput struct {
  3779. _ struct{} `type:"structure"`
  3780. // The modified replication subnet group.
  3781. ReplicationSubnetGroup *ReplicationSubnetGroup `type:"structure"`
  3782. }
  3783. // String returns the string representation
  3784. func (s ModifyReplicationSubnetGroupOutput) String() string {
  3785. return awsutil.Prettify(s)
  3786. }
  3787. // GoString returns the string representation
  3788. func (s ModifyReplicationSubnetGroupOutput) GoString() string {
  3789. return s.String()
  3790. }
  3791. type OrderableReplicationInstance struct {
  3792. _ struct{} `type:"structure"`
  3793. // The default amount of storage (in gigabytes) that is allocated for the replication
  3794. // instance.
  3795. DefaultAllocatedStorage *int64 `type:"integer"`
  3796. // The version of the replication engine.
  3797. EngineVersion *string `type:"string"`
  3798. // The amount of storage (in gigabytes) that is allocated for the replication
  3799. // instance.
  3800. IncludedAllocatedStorage *int64 `type:"integer"`
  3801. // The minimum amount of storage (in gigabytes) that can be allocated for the
  3802. // replication instance.
  3803. MaxAllocatedStorage *int64 `type:"integer"`
  3804. // The minimum amount of storage (in gigabytes) that can be allocated for the
  3805. // replication instance.
  3806. MinAllocatedStorage *int64 `type:"integer"`
  3807. // The compute and memory capacity of the replication instance.
  3808. //
  3809. // Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large
  3810. // | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge
  3811. ReplicationInstanceClass *string `type:"string"`
  3812. // The type of storage used by the replication instance.
  3813. StorageType *string `type:"string"`
  3814. }
  3815. // String returns the string representation
  3816. func (s OrderableReplicationInstance) String() string {
  3817. return awsutil.Prettify(s)
  3818. }
  3819. // GoString returns the string representation
  3820. func (s OrderableReplicationInstance) GoString() string {
  3821. return s.String()
  3822. }
  3823. type RefreshSchemasInput struct {
  3824. _ struct{} `type:"structure"`
  3825. // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
  3826. //
  3827. // EndpointArn is a required field
  3828. EndpointArn *string `type:"string" required:"true"`
  3829. // The Amazon Resource Name (ARN) of the replication instance.
  3830. //
  3831. // ReplicationInstanceArn is a required field
  3832. ReplicationInstanceArn *string `type:"string" required:"true"`
  3833. }
  3834. // String returns the string representation
  3835. func (s RefreshSchemasInput) String() string {
  3836. return awsutil.Prettify(s)
  3837. }
  3838. // GoString returns the string representation
  3839. func (s RefreshSchemasInput) GoString() string {
  3840. return s.String()
  3841. }
  3842. // Validate inspects the fields of the type to determine if they are valid.
  3843. func (s *RefreshSchemasInput) Validate() error {
  3844. invalidParams := request.ErrInvalidParams{Context: "RefreshSchemasInput"}
  3845. if s.EndpointArn == nil {
  3846. invalidParams.Add(request.NewErrParamRequired("EndpointArn"))
  3847. }
  3848. if s.ReplicationInstanceArn == nil {
  3849. invalidParams.Add(request.NewErrParamRequired("ReplicationInstanceArn"))
  3850. }
  3851. if invalidParams.Len() > 0 {
  3852. return invalidParams
  3853. }
  3854. return nil
  3855. }
  3856. type RefreshSchemasOutput struct {
  3857. _ struct{} `type:"structure"`
  3858. // The status of the refreshed schema.
  3859. RefreshSchemasStatus *RefreshSchemasStatus `type:"structure"`
  3860. }
  3861. // String returns the string representation
  3862. func (s RefreshSchemasOutput) String() string {
  3863. return awsutil.Prettify(s)
  3864. }
  3865. // GoString returns the string representation
  3866. func (s RefreshSchemasOutput) GoString() string {
  3867. return s.String()
  3868. }
  3869. type RefreshSchemasStatus struct {
  3870. _ struct{} `type:"structure"`
  3871. // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
  3872. EndpointArn *string `type:"string"`
  3873. // The last failure message for the schema.
  3874. LastFailureMessage *string `type:"string"`
  3875. // The date the schema was last refreshed.
  3876. LastRefreshDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  3877. // The Amazon Resource Name (ARN) of the replication instance.
  3878. ReplicationInstanceArn *string `type:"string"`
  3879. // The status of the schema.
  3880. Status *string `type:"string" enum:"RefreshSchemasStatusTypeValue"`
  3881. }
  3882. // String returns the string representation
  3883. func (s RefreshSchemasStatus) String() string {
  3884. return awsutil.Prettify(s)
  3885. }
  3886. // GoString returns the string representation
  3887. func (s RefreshSchemasStatus) GoString() string {
  3888. return s.String()
  3889. }
  3890. type RemoveTagsFromResourceInput struct {
  3891. _ struct{} `type:"structure"`
  3892. // >The Amazon Resource Name (ARN) of the AWS DMS resource the tag is to be
  3893. // removed from.
  3894. //
  3895. // ResourceArn is a required field
  3896. ResourceArn *string `type:"string" required:"true"`
  3897. // The tag key (name) of the tag to be removed.
  3898. //
  3899. // TagKeys is a required field
  3900. TagKeys []*string `type:"list" required:"true"`
  3901. }
  3902. // String returns the string representation
  3903. func (s RemoveTagsFromResourceInput) String() string {
  3904. return awsutil.Prettify(s)
  3905. }
  3906. // GoString returns the string representation
  3907. func (s RemoveTagsFromResourceInput) GoString() string {
  3908. return s.String()
  3909. }
  3910. // Validate inspects the fields of the type to determine if they are valid.
  3911. func (s *RemoveTagsFromResourceInput) Validate() error {
  3912. invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromResourceInput"}
  3913. if s.ResourceArn == nil {
  3914. invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  3915. }
  3916. if s.TagKeys == nil {
  3917. invalidParams.Add(request.NewErrParamRequired("TagKeys"))
  3918. }
  3919. if invalidParams.Len() > 0 {
  3920. return invalidParams
  3921. }
  3922. return nil
  3923. }
  3924. type RemoveTagsFromResourceOutput struct {
  3925. _ struct{} `type:"structure"`
  3926. }
  3927. // String returns the string representation
  3928. func (s RemoveTagsFromResourceOutput) String() string {
  3929. return awsutil.Prettify(s)
  3930. }
  3931. // GoString returns the string representation
  3932. func (s RemoveTagsFromResourceOutput) GoString() string {
  3933. return s.String()
  3934. }
  3935. type ReplicationInstance struct {
  3936. _ struct{} `type:"structure"`
  3937. // The amount of storage (in gigabytes) that is allocated for the replication
  3938. // instance.
  3939. AllocatedStorage *int64 `type:"integer"`
  3940. // Boolean value indicating if minor version upgrades will be automatically
  3941. // applied to the instance.
  3942. AutoMinorVersionUpgrade *bool `type:"boolean"`
  3943. // The Availability Zone for the instance.
  3944. AvailabilityZone *string `type:"string"`
  3945. // The engine version number of the replication instance.
  3946. EngineVersion *string `type:"string"`
  3947. // The time the replication instance was created.
  3948. InstanceCreateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  3949. // The KMS key identifier that is used to encrypt the content on the replication
  3950. // instance. If you do not specify a value for the KmsKeyId parameter, then
  3951. // AWS DMS will use your default encryption key. AWS KMS creates the default
  3952. // encryption key for your AWS account. Your AWS account has a different default
  3953. // encryption key for each AWS region.
  3954. KmsKeyId *string `type:"string"`
  3955. // Specifies if the replication instance is a Multi-AZ deployment. You cannot
  3956. // set the AvailabilityZone parameter if the Multi-AZ parameter is set to true.
  3957. MultiAZ *bool `type:"boolean"`
  3958. // The pending modification values.
  3959. PendingModifiedValues *ReplicationPendingModifiedValues `type:"structure"`
  3960. // The maintenance window times for the replication instance.
  3961. PreferredMaintenanceWindow *string `type:"string"`
  3962. // Specifies the accessibility options for the replication instance. A value
  3963. // of true represents an instance with a public IP address. A value of false
  3964. // represents an instance with a private IP address. The default value is true.
  3965. PubliclyAccessible *bool `type:"boolean"`
  3966. // The Amazon Resource Name (ARN) of the replication instance.
  3967. ReplicationInstanceArn *string `type:"string"`
  3968. // The compute and memory capacity of the replication instance.
  3969. //
  3970. // Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large
  3971. // | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge
  3972. ReplicationInstanceClass *string `type:"string"`
  3973. // The replication instance identifier. This parameter is stored as a lowercase
  3974. // string.
  3975. //
  3976. // Constraints:
  3977. //
  3978. // * Must contain from 1 to 63 alphanumeric characters or hyphens.
  3979. //
  3980. // * First character must be a letter.
  3981. //
  3982. // * Cannot end with a hyphen or contain two consecutive hyphens.
  3983. //
  3984. // Example: myrepinstance
  3985. ReplicationInstanceIdentifier *string `type:"string"`
  3986. // The private IP address of the replication instance.
  3987. ReplicationInstancePrivateIpAddress *string `deprecated:"true" type:"string"`
  3988. // The private IP address of the replication instance.
  3989. ReplicationInstancePrivateIpAddresses []*string `type:"list"`
  3990. // The public IP address of the replication instance.
  3991. ReplicationInstancePublicIpAddress *string `deprecated:"true" type:"string"`
  3992. // The public IP address of the replication instance.
  3993. ReplicationInstancePublicIpAddresses []*string `type:"list"`
  3994. // The status of the replication instance.
  3995. ReplicationInstanceStatus *string `type:"string"`
  3996. // The subnet group for the replication instance.
  3997. ReplicationSubnetGroup *ReplicationSubnetGroup `type:"structure"`
  3998. // The VPC security group for the instance.
  3999. VpcSecurityGroups []*VpcSecurityGroupMembership `locationNameList:"VpcSecurityGroupMembership" type:"list"`
  4000. }
  4001. // String returns the string representation
  4002. func (s ReplicationInstance) String() string {
  4003. return awsutil.Prettify(s)
  4004. }
  4005. // GoString returns the string representation
  4006. func (s ReplicationInstance) GoString() string {
  4007. return s.String()
  4008. }
  4009. type ReplicationPendingModifiedValues struct {
  4010. _ struct{} `type:"structure"`
  4011. // The amount of storage (in gigabytes) that is allocated for the replication
  4012. // instance.
  4013. AllocatedStorage *int64 `type:"integer"`
  4014. // The engine version number of the replication instance.
  4015. EngineVersion *string `type:"string"`
  4016. // Specifies if the replication instance is a Multi-AZ deployment. You cannot
  4017. // set the AvailabilityZone parameter if the Multi-AZ parameter is set to true.
  4018. MultiAZ *bool `type:"boolean"`
  4019. // The compute and memory capacity of the replication instance.
  4020. //
  4021. // Valid Values: dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large
  4022. // | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge
  4023. ReplicationInstanceClass *string `type:"string"`
  4024. }
  4025. // String returns the string representation
  4026. func (s ReplicationPendingModifiedValues) String() string {
  4027. return awsutil.Prettify(s)
  4028. }
  4029. // GoString returns the string representation
  4030. func (s ReplicationPendingModifiedValues) GoString() string {
  4031. return s.String()
  4032. }
  4033. type ReplicationSubnetGroup struct {
  4034. _ struct{} `type:"structure"`
  4035. // The description of the replication subnet group.
  4036. ReplicationSubnetGroupDescription *string `type:"string"`
  4037. // The identifier of the replication instance subnet group.
  4038. ReplicationSubnetGroupIdentifier *string `type:"string"`
  4039. // The status of the subnet group.
  4040. SubnetGroupStatus *string `type:"string"`
  4041. // The subnets that are in the subnet group.
  4042. Subnets []*Subnet `locationNameList:"Subnet" type:"list"`
  4043. // The ID of the VPC.
  4044. VpcId *string `type:"string"`
  4045. }
  4046. // String returns the string representation
  4047. func (s ReplicationSubnetGroup) String() string {
  4048. return awsutil.Prettify(s)
  4049. }
  4050. // GoString returns the string representation
  4051. func (s ReplicationSubnetGroup) GoString() string {
  4052. return s.String()
  4053. }
  4054. type ReplicationTask struct {
  4055. _ struct{} `type:"structure"`
  4056. // The last error (failure) message generated for the replication instance.
  4057. LastFailureMessage *string `type:"string"`
  4058. // The type of migration.
  4059. MigrationType *string `type:"string" enum:"MigrationTypeValue"`
  4060. // The Amazon Resource Name (ARN) of the replication instance.
  4061. ReplicationInstanceArn *string `type:"string"`
  4062. // The Amazon Resource Name (ARN) of the replication task.
  4063. ReplicationTaskArn *string `type:"string"`
  4064. // The date the replication task was created.
  4065. ReplicationTaskCreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  4066. // The replication task identifier.
  4067. //
  4068. // Constraints:
  4069. //
  4070. // * Must contain from 1 to 63 alphanumeric characters or hyphens.
  4071. //
  4072. // * First character must be a letter.
  4073. //
  4074. // * Cannot end with a hyphen or contain two consecutive hyphens.
  4075. ReplicationTaskIdentifier *string `type:"string"`
  4076. // The settings for the replication task.
  4077. ReplicationTaskSettings *string `type:"string"`
  4078. // The date the replication task is scheduled to start.
  4079. ReplicationTaskStartDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  4080. // The statistics for the task, including elapsed time, tables loaded, and table
  4081. // errors.
  4082. ReplicationTaskStats *ReplicationTaskStats `type:"structure"`
  4083. // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
  4084. SourceEndpointArn *string `type:"string"`
  4085. // The status of the replication task.
  4086. Status *string `type:"string"`
  4087. // Table mappings specified in the task.
  4088. TableMappings *string `type:"string"`
  4089. // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
  4090. TargetEndpointArn *string `type:"string"`
  4091. }
  4092. // String returns the string representation
  4093. func (s ReplicationTask) String() string {
  4094. return awsutil.Prettify(s)
  4095. }
  4096. // GoString returns the string representation
  4097. func (s ReplicationTask) GoString() string {
  4098. return s.String()
  4099. }
  4100. type ReplicationTaskStats struct {
  4101. _ struct{} `type:"structure"`
  4102. // The elapsed time of the task, in milliseconds.
  4103. ElapsedTimeMillis *int64 `type:"long"`
  4104. // The percent complete for the full load migration task.
  4105. FullLoadProgressPercent *int64 `type:"integer"`
  4106. // The number of errors that have occurred during this task.
  4107. TablesErrored *int64 `type:"integer"`
  4108. // The number of tables loaded for this task.
  4109. TablesLoaded *int64 `type:"integer"`
  4110. // The number of tables currently loading for this task.
  4111. TablesLoading *int64 `type:"integer"`
  4112. // The number of tables queued for this task.
  4113. TablesQueued *int64 `type:"integer"`
  4114. }
  4115. // String returns the string representation
  4116. func (s ReplicationTaskStats) String() string {
  4117. return awsutil.Prettify(s)
  4118. }
  4119. // GoString returns the string representation
  4120. func (s ReplicationTaskStats) GoString() string {
  4121. return s.String()
  4122. }
  4123. type StartReplicationTaskInput struct {
  4124. _ struct{} `type:"structure"`
  4125. // The start time for the Change Data Capture (CDC) operation.
  4126. CdcStartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  4127. // The Amazon Resource Number (ARN) of the replication task to be started.
  4128. //
  4129. // ReplicationTaskArn is a required field
  4130. ReplicationTaskArn *string `type:"string" required:"true"`
  4131. // The type of replication task.
  4132. //
  4133. // StartReplicationTaskType is a required field
  4134. StartReplicationTaskType *string `type:"string" required:"true" enum:"StartReplicationTaskTypeValue"`
  4135. }
  4136. // String returns the string representation
  4137. func (s StartReplicationTaskInput) String() string {
  4138. return awsutil.Prettify(s)
  4139. }
  4140. // GoString returns the string representation
  4141. func (s StartReplicationTaskInput) GoString() string {
  4142. return s.String()
  4143. }
  4144. // Validate inspects the fields of the type to determine if they are valid.
  4145. func (s *StartReplicationTaskInput) Validate() error {
  4146. invalidParams := request.ErrInvalidParams{Context: "StartReplicationTaskInput"}
  4147. if s.ReplicationTaskArn == nil {
  4148. invalidParams.Add(request.NewErrParamRequired("ReplicationTaskArn"))
  4149. }
  4150. if s.StartReplicationTaskType == nil {
  4151. invalidParams.Add(request.NewErrParamRequired("StartReplicationTaskType"))
  4152. }
  4153. if invalidParams.Len() > 0 {
  4154. return invalidParams
  4155. }
  4156. return nil
  4157. }
  4158. type StartReplicationTaskOutput struct {
  4159. _ struct{} `type:"structure"`
  4160. // The replication task started.
  4161. ReplicationTask *ReplicationTask `type:"structure"`
  4162. }
  4163. // String returns the string representation
  4164. func (s StartReplicationTaskOutput) String() string {
  4165. return awsutil.Prettify(s)
  4166. }
  4167. // GoString returns the string representation
  4168. func (s StartReplicationTaskOutput) GoString() string {
  4169. return s.String()
  4170. }
  4171. type StopReplicationTaskInput struct {
  4172. _ struct{} `type:"structure"`
  4173. // The Amazon Resource Number(ARN) of the replication task to be stopped.
  4174. //
  4175. // ReplicationTaskArn is a required field
  4176. ReplicationTaskArn *string `type:"string" required:"true"`
  4177. }
  4178. // String returns the string representation
  4179. func (s StopReplicationTaskInput) String() string {
  4180. return awsutil.Prettify(s)
  4181. }
  4182. // GoString returns the string representation
  4183. func (s StopReplicationTaskInput) GoString() string {
  4184. return s.String()
  4185. }
  4186. // Validate inspects the fields of the type to determine if they are valid.
  4187. func (s *StopReplicationTaskInput) Validate() error {
  4188. invalidParams := request.ErrInvalidParams{Context: "StopReplicationTaskInput"}
  4189. if s.ReplicationTaskArn == nil {
  4190. invalidParams.Add(request.NewErrParamRequired("ReplicationTaskArn"))
  4191. }
  4192. if invalidParams.Len() > 0 {
  4193. return invalidParams
  4194. }
  4195. return nil
  4196. }
  4197. type StopReplicationTaskOutput struct {
  4198. _ struct{} `type:"structure"`
  4199. // The replication task stopped.
  4200. ReplicationTask *ReplicationTask `type:"structure"`
  4201. }
  4202. // String returns the string representation
  4203. func (s StopReplicationTaskOutput) String() string {
  4204. return awsutil.Prettify(s)
  4205. }
  4206. // GoString returns the string representation
  4207. func (s StopReplicationTaskOutput) GoString() string {
  4208. return s.String()
  4209. }
  4210. type Subnet struct {
  4211. _ struct{} `type:"structure"`
  4212. // The Availability Zone of the subnet.
  4213. SubnetAvailabilityZone *AvailabilityZone `type:"structure"`
  4214. // The subnet identifier.
  4215. SubnetIdentifier *string `type:"string"`
  4216. // The status of the subnet.
  4217. SubnetStatus *string `type:"string"`
  4218. }
  4219. // String returns the string representation
  4220. func (s Subnet) String() string {
  4221. return awsutil.Prettify(s)
  4222. }
  4223. // GoString returns the string representation
  4224. func (s Subnet) GoString() string {
  4225. return s.String()
  4226. }
  4227. type SupportedEndpointType struct {
  4228. _ struct{} `type:"structure"`
  4229. // The type of endpoint.
  4230. EndpointType *string `type:"string" enum:"ReplicationEndpointTypeValue"`
  4231. // The database engine name.
  4232. EngineName *string `type:"string"`
  4233. // Indicates if Change Data Capture (CDC) is supported.
  4234. SupportsCDC *bool `type:"boolean"`
  4235. }
  4236. // String returns the string representation
  4237. func (s SupportedEndpointType) String() string {
  4238. return awsutil.Prettify(s)
  4239. }
  4240. // GoString returns the string representation
  4241. func (s SupportedEndpointType) GoString() string {
  4242. return s.String()
  4243. }
  4244. type TableStatistics struct {
  4245. _ struct{} `type:"structure"`
  4246. // The Data Definition Language (DDL) used to build and modify the structure
  4247. // of your tables.
  4248. Ddls *int64 `type:"long"`
  4249. // The number of delete actions performed on a table.
  4250. Deletes *int64 `type:"long"`
  4251. // The number of rows added during the Full Load operation.
  4252. FullLoadRows *int64 `type:"long"`
  4253. // The number of insert actions performed on a table.
  4254. Inserts *int64 `type:"long"`
  4255. // The last time the table was updated.
  4256. LastUpdateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  4257. // The schema name.
  4258. SchemaName *string `type:"string"`
  4259. // The name of the table.
  4260. TableName *string `type:"string"`
  4261. // The state of the table.
  4262. TableState *string `type:"string"`
  4263. // The number of update actions performed on a table.
  4264. Updates *int64 `type:"long"`
  4265. }
  4266. // String returns the string representation
  4267. func (s TableStatistics) String() string {
  4268. return awsutil.Prettify(s)
  4269. }
  4270. // GoString returns the string representation
  4271. func (s TableStatistics) GoString() string {
  4272. return s.String()
  4273. }
  4274. type Tag struct {
  4275. _ struct{} `type:"structure"`
  4276. // A key is the required name of the tag. The string value can be from 1 to
  4277. // 128 Unicode characters in length and cannot be prefixed with "aws:" or "dms:".
  4278. // The string can only contain only the set of Unicode letters, digits, white-space,
  4279. // '_', '.', '/', '=', '+', '-' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$").
  4280. Key *string `type:"string"`
  4281. // A value is the optional value of the tag. The string value can be from 1
  4282. // to 256 Unicode characters in length and cannot be prefixed with "aws:" or
  4283. // "dms:". The string can only contain only the set of Unicode letters, digits,
  4284. // white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$").
  4285. Value *string `type:"string"`
  4286. }
  4287. // String returns the string representation
  4288. func (s Tag) String() string {
  4289. return awsutil.Prettify(s)
  4290. }
  4291. // GoString returns the string representation
  4292. func (s Tag) GoString() string {
  4293. return s.String()
  4294. }
  4295. type TestConnectionInput struct {
  4296. _ struct{} `type:"structure"`
  4297. // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
  4298. //
  4299. // EndpointArn is a required field
  4300. EndpointArn *string `type:"string" required:"true"`
  4301. // The Amazon Resource Name (ARN) of the replication instance.
  4302. //
  4303. // ReplicationInstanceArn is a required field
  4304. ReplicationInstanceArn *string `type:"string" required:"true"`
  4305. }
  4306. // String returns the string representation
  4307. func (s TestConnectionInput) String() string {
  4308. return awsutil.Prettify(s)
  4309. }
  4310. // GoString returns the string representation
  4311. func (s TestConnectionInput) GoString() string {
  4312. return s.String()
  4313. }
  4314. // Validate inspects the fields of the type to determine if they are valid.
  4315. func (s *TestConnectionInput) Validate() error {
  4316. invalidParams := request.ErrInvalidParams{Context: "TestConnectionInput"}
  4317. if s.EndpointArn == nil {
  4318. invalidParams.Add(request.NewErrParamRequired("EndpointArn"))
  4319. }
  4320. if s.ReplicationInstanceArn == nil {
  4321. invalidParams.Add(request.NewErrParamRequired("ReplicationInstanceArn"))
  4322. }
  4323. if invalidParams.Len() > 0 {
  4324. return invalidParams
  4325. }
  4326. return nil
  4327. }
  4328. type TestConnectionOutput struct {
  4329. _ struct{} `type:"structure"`
  4330. // The connection tested.
  4331. Connection *Connection `type:"structure"`
  4332. }
  4333. // String returns the string representation
  4334. func (s TestConnectionOutput) String() string {
  4335. return awsutil.Prettify(s)
  4336. }
  4337. // GoString returns the string representation
  4338. func (s TestConnectionOutput) GoString() string {
  4339. return s.String()
  4340. }
  4341. type VpcSecurityGroupMembership struct {
  4342. _ struct{} `type:"structure"`
  4343. // The status of the VPC security group.
  4344. Status *string `type:"string"`
  4345. // The VPC security group Id.
  4346. VpcSecurityGroupId *string `type:"string"`
  4347. }
  4348. // String returns the string representation
  4349. func (s VpcSecurityGroupMembership) String() string {
  4350. return awsutil.Prettify(s)
  4351. }
  4352. // GoString returns the string representation
  4353. func (s VpcSecurityGroupMembership) GoString() string {
  4354. return s.String()
  4355. }
  4356. const (
  4357. // DmsSslModeValueNone is a DmsSslModeValue enum value
  4358. DmsSslModeValueNone = "none"
  4359. // DmsSslModeValueRequire is a DmsSslModeValue enum value
  4360. DmsSslModeValueRequire = "require"
  4361. // DmsSslModeValueVerifyCa is a DmsSslModeValue enum value
  4362. DmsSslModeValueVerifyCa = "verify-ca"
  4363. // DmsSslModeValueVerifyFull is a DmsSslModeValue enum value
  4364. DmsSslModeValueVerifyFull = "verify-full"
  4365. )
  4366. const (
  4367. // MigrationTypeValueFullLoad is a MigrationTypeValue enum value
  4368. MigrationTypeValueFullLoad = "full-load"
  4369. // MigrationTypeValueCdc is a MigrationTypeValue enum value
  4370. MigrationTypeValueCdc = "cdc"
  4371. // MigrationTypeValueFullLoadAndCdc is a MigrationTypeValue enum value
  4372. MigrationTypeValueFullLoadAndCdc = "full-load-and-cdc"
  4373. )
  4374. const (
  4375. // RefreshSchemasStatusTypeValueSuccessful is a RefreshSchemasStatusTypeValue enum value
  4376. RefreshSchemasStatusTypeValueSuccessful = "successful"
  4377. // RefreshSchemasStatusTypeValueFailed is a RefreshSchemasStatusTypeValue enum value
  4378. RefreshSchemasStatusTypeValueFailed = "failed"
  4379. // RefreshSchemasStatusTypeValueRefreshing is a RefreshSchemasStatusTypeValue enum value
  4380. RefreshSchemasStatusTypeValueRefreshing = "refreshing"
  4381. )
  4382. const (
  4383. // ReplicationEndpointTypeValueSource is a ReplicationEndpointTypeValue enum value
  4384. ReplicationEndpointTypeValueSource = "source"
  4385. // ReplicationEndpointTypeValueTarget is a ReplicationEndpointTypeValue enum value
  4386. ReplicationEndpointTypeValueTarget = "target"
  4387. )
  4388. const (
  4389. // StartReplicationTaskTypeValueStartReplication is a StartReplicationTaskTypeValue enum value
  4390. StartReplicationTaskTypeValueStartReplication = "start-replication"
  4391. // StartReplicationTaskTypeValueResumeProcessing is a StartReplicationTaskTypeValue enum value
  4392. StartReplicationTaskTypeValueResumeProcessing = "resume-processing"
  4393. // StartReplicationTaskTypeValueReloadTarget is a StartReplicationTaskTypeValue enum value
  4394. StartReplicationTaskTypeValueReloadTarget = "reload-target"
  4395. )