api.go 127 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package ssm provides a client for Amazon Simple Systems Management Service.
  3. package ssm
  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. // Creating a request object using this method should be used when you want to inject
  17. // custom logic into the request's lifecycle using a custom handler, or if you want to
  18. // access properties on the request object before or after sending the request. If
  19. // you just want the service response, call the AddTagsToResource method directly
  20. // instead.
  21. //
  22. // Note: You must call the "Send" method on the returned request object in order
  23. // to execute the request.
  24. //
  25. // // Example sending a request using the AddTagsToResourceRequest method.
  26. // req, resp := client.AddTagsToResourceRequest(params)
  27. //
  28. // err := req.Send()
  29. // if err == nil { // resp is now filled
  30. // fmt.Println(resp)
  31. // }
  32. //
  33. func (c *SSM) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *request.Request, output *AddTagsToResourceOutput) {
  34. op := &request.Operation{
  35. Name: opAddTagsToResource,
  36. HTTPMethod: "POST",
  37. HTTPPath: "/",
  38. }
  39. if input == nil {
  40. input = &AddTagsToResourceInput{}
  41. }
  42. req = c.newRequest(op, input, output)
  43. output = &AddTagsToResourceOutput{}
  44. req.Data = output
  45. return
  46. }
  47. // Adds or overwrites one or more tags for the specified resource. Tags are
  48. // metadata that you assign to your managed instances. Tags enable you to categorize
  49. // your managed instances in different ways, for example, by purpose, owner,
  50. // or environment. Each tag consists of a key and an optional value, both of
  51. // which you define. For example, you could define a set of tags for your account's
  52. // managed instances that helps you track each instance's owner and stack level.
  53. // For example: Key=Owner and Value=DbAdmin, SysAdmin, or Dev. Or Key=Stack
  54. // and Value=Production, Pre-Production, or Test. Each resource can have a maximum
  55. // of 10 tags.
  56. //
  57. // We recommend that you devise a set of tag keys that meets your needs for
  58. // each resource type. Using a consistent set of tag keys makes it easier for
  59. // you to manage your resources. You can search and filter the resources based
  60. // on the tags you add. Tags don't have any semantic meaning to Amazon EC2 and
  61. // are interpreted strictly as a string of characters.
  62. //
  63. // For more information about tags, see Tagging Your Amazon EC2 Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html)
  64. // in the Amazon EC2 User Guide.
  65. func (c *SSM) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) {
  66. req, out := c.AddTagsToResourceRequest(input)
  67. err := req.Send()
  68. return out, err
  69. }
  70. const opCancelCommand = "CancelCommand"
  71. // CancelCommandRequest generates a "aws/request.Request" representing the
  72. // client's request for the CancelCommand operation. The "output" return
  73. // value can be used to capture response data after the request's "Send" method
  74. // is called.
  75. //
  76. // Creating a request object using this method should be used when you want to inject
  77. // custom logic into the request's lifecycle using a custom handler, or if you want to
  78. // access properties on the request object before or after sending the request. If
  79. // you just want the service response, call the CancelCommand method directly
  80. // instead.
  81. //
  82. // Note: You must call the "Send" method on the returned request object in order
  83. // to execute the request.
  84. //
  85. // // Example sending a request using the CancelCommandRequest method.
  86. // req, resp := client.CancelCommandRequest(params)
  87. //
  88. // err := req.Send()
  89. // if err == nil { // resp is now filled
  90. // fmt.Println(resp)
  91. // }
  92. //
  93. func (c *SSM) CancelCommandRequest(input *CancelCommandInput) (req *request.Request, output *CancelCommandOutput) {
  94. op := &request.Operation{
  95. Name: opCancelCommand,
  96. HTTPMethod: "POST",
  97. HTTPPath: "/",
  98. }
  99. if input == nil {
  100. input = &CancelCommandInput{}
  101. }
  102. req = c.newRequest(op, input, output)
  103. output = &CancelCommandOutput{}
  104. req.Data = output
  105. return
  106. }
  107. // Attempts to cancel the command specified by the Command ID. There is no guarantee
  108. // that the command will be terminated and the underlying process stopped.
  109. func (c *SSM) CancelCommand(input *CancelCommandInput) (*CancelCommandOutput, error) {
  110. req, out := c.CancelCommandRequest(input)
  111. err := req.Send()
  112. return out, err
  113. }
  114. const opCreateActivation = "CreateActivation"
  115. // CreateActivationRequest generates a "aws/request.Request" representing the
  116. // client's request for the CreateActivation operation. The "output" return
  117. // value can be used to capture response data after the request's "Send" method
  118. // is called.
  119. //
  120. // Creating a request object using this method should be used when you want to inject
  121. // custom logic into the request's lifecycle using a custom handler, or if you want to
  122. // access properties on the request object before or after sending the request. If
  123. // you just want the service response, call the CreateActivation method directly
  124. // instead.
  125. //
  126. // Note: You must call the "Send" method on the returned request object in order
  127. // to execute the request.
  128. //
  129. // // Example sending a request using the CreateActivationRequest method.
  130. // req, resp := client.CreateActivationRequest(params)
  131. //
  132. // err := req.Send()
  133. // if err == nil { // resp is now filled
  134. // fmt.Println(resp)
  135. // }
  136. //
  137. func (c *SSM) CreateActivationRequest(input *CreateActivationInput) (req *request.Request, output *CreateActivationOutput) {
  138. op := &request.Operation{
  139. Name: opCreateActivation,
  140. HTTPMethod: "POST",
  141. HTTPPath: "/",
  142. }
  143. if input == nil {
  144. input = &CreateActivationInput{}
  145. }
  146. req = c.newRequest(op, input, output)
  147. output = &CreateActivationOutput{}
  148. req.Data = output
  149. return
  150. }
  151. // Registers your on-premises server or virtual machine with Amazon EC2 so that
  152. // you can manage these resources using Run Command. An on-premises server or
  153. // virtual machine that has been registered with EC2 is called a managed instance.
  154. // For more information about activations, see Setting Up Managed Instances
  155. // (Linux) (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/managed-instances.html)
  156. // or Setting Up Managed Instances (Windows) (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/managed-instances.html)
  157. // in the Amazon EC2 User Guide.
  158. func (c *SSM) CreateActivation(input *CreateActivationInput) (*CreateActivationOutput, error) {
  159. req, out := c.CreateActivationRequest(input)
  160. err := req.Send()
  161. return out, err
  162. }
  163. const opCreateAssociation = "CreateAssociation"
  164. // CreateAssociationRequest generates a "aws/request.Request" representing the
  165. // client's request for the CreateAssociation operation. The "output" return
  166. // value can be used to capture response data after the request's "Send" method
  167. // is called.
  168. //
  169. // Creating a request object using this method should be used when you want to inject
  170. // custom logic into the request's lifecycle using a custom handler, or if you want to
  171. // access properties on the request object before or after sending the request. If
  172. // you just want the service response, call the CreateAssociation method directly
  173. // instead.
  174. //
  175. // Note: You must call the "Send" method on the returned request object in order
  176. // to execute the request.
  177. //
  178. // // Example sending a request using the CreateAssociationRequest method.
  179. // req, resp := client.CreateAssociationRequest(params)
  180. //
  181. // err := req.Send()
  182. // if err == nil { // resp is now filled
  183. // fmt.Println(resp)
  184. // }
  185. //
  186. func (c *SSM) CreateAssociationRequest(input *CreateAssociationInput) (req *request.Request, output *CreateAssociationOutput) {
  187. op := &request.Operation{
  188. Name: opCreateAssociation,
  189. HTTPMethod: "POST",
  190. HTTPPath: "/",
  191. }
  192. if input == nil {
  193. input = &CreateAssociationInput{}
  194. }
  195. req = c.newRequest(op, input, output)
  196. output = &CreateAssociationOutput{}
  197. req.Data = output
  198. return
  199. }
  200. // Associates the specified SSM document with the specified instance.
  201. //
  202. // When you associate an SSM document with an instance, the configuration agent
  203. // on the instance processes the document and configures the instance as specified.
  204. //
  205. // If you associate a document with an instance that already has an associated
  206. // document, the system throws the AssociationAlreadyExists exception.
  207. func (c *SSM) CreateAssociation(input *CreateAssociationInput) (*CreateAssociationOutput, error) {
  208. req, out := c.CreateAssociationRequest(input)
  209. err := req.Send()
  210. return out, err
  211. }
  212. const opCreateAssociationBatch = "CreateAssociationBatch"
  213. // CreateAssociationBatchRequest generates a "aws/request.Request" representing the
  214. // client's request for the CreateAssociationBatch operation. The "output" return
  215. // value can be used to capture response data after the request's "Send" method
  216. // is called.
  217. //
  218. // Creating a request object using this method should be used when you want to inject
  219. // custom logic into the request's lifecycle using a custom handler, or if you want to
  220. // access properties on the request object before or after sending the request. If
  221. // you just want the service response, call the CreateAssociationBatch method directly
  222. // instead.
  223. //
  224. // Note: You must call the "Send" method on the returned request object in order
  225. // to execute the request.
  226. //
  227. // // Example sending a request using the CreateAssociationBatchRequest method.
  228. // req, resp := client.CreateAssociationBatchRequest(params)
  229. //
  230. // err := req.Send()
  231. // if err == nil { // resp is now filled
  232. // fmt.Println(resp)
  233. // }
  234. //
  235. func (c *SSM) CreateAssociationBatchRequest(input *CreateAssociationBatchInput) (req *request.Request, output *CreateAssociationBatchOutput) {
  236. op := &request.Operation{
  237. Name: opCreateAssociationBatch,
  238. HTTPMethod: "POST",
  239. HTTPPath: "/",
  240. }
  241. if input == nil {
  242. input = &CreateAssociationBatchInput{}
  243. }
  244. req = c.newRequest(op, input, output)
  245. output = &CreateAssociationBatchOutput{}
  246. req.Data = output
  247. return
  248. }
  249. // Associates the specified SSM document with the specified instances.
  250. //
  251. // When you associate an SSM document with an instance, the configuration agent
  252. // on the instance processes the document and configures the instance as specified.
  253. //
  254. // If you associate a document with an instance that already has an associated
  255. // document, the system throws the AssociationAlreadyExists exception.
  256. func (c *SSM) CreateAssociationBatch(input *CreateAssociationBatchInput) (*CreateAssociationBatchOutput, error) {
  257. req, out := c.CreateAssociationBatchRequest(input)
  258. err := req.Send()
  259. return out, err
  260. }
  261. const opCreateDocument = "CreateDocument"
  262. // CreateDocumentRequest generates a "aws/request.Request" representing the
  263. // client's request for the CreateDocument operation. The "output" return
  264. // value can be used to capture response data after the request's "Send" method
  265. // is called.
  266. //
  267. // Creating a request object using this method should be used when you want to inject
  268. // custom logic into the request's lifecycle using a custom handler, or if you want to
  269. // access properties on the request object before or after sending the request. If
  270. // you just want the service response, call the CreateDocument method directly
  271. // instead.
  272. //
  273. // Note: You must call the "Send" method on the returned request object in order
  274. // to execute the request.
  275. //
  276. // // Example sending a request using the CreateDocumentRequest method.
  277. // req, resp := client.CreateDocumentRequest(params)
  278. //
  279. // err := req.Send()
  280. // if err == nil { // resp is now filled
  281. // fmt.Println(resp)
  282. // }
  283. //
  284. func (c *SSM) CreateDocumentRequest(input *CreateDocumentInput) (req *request.Request, output *CreateDocumentOutput) {
  285. op := &request.Operation{
  286. Name: opCreateDocument,
  287. HTTPMethod: "POST",
  288. HTTPPath: "/",
  289. }
  290. if input == nil {
  291. input = &CreateDocumentInput{}
  292. }
  293. req = c.newRequest(op, input, output)
  294. output = &CreateDocumentOutput{}
  295. req.Data = output
  296. return
  297. }
  298. // Creates an SSM document.
  299. //
  300. // After you create an SSM document, you can use CreateAssociation to associate
  301. // it with one or more running instances.
  302. func (c *SSM) CreateDocument(input *CreateDocumentInput) (*CreateDocumentOutput, error) {
  303. req, out := c.CreateDocumentRequest(input)
  304. err := req.Send()
  305. return out, err
  306. }
  307. const opDeleteActivation = "DeleteActivation"
  308. // DeleteActivationRequest generates a "aws/request.Request" representing the
  309. // client's request for the DeleteActivation operation. The "output" return
  310. // value can be used to capture response data after the request's "Send" method
  311. // is called.
  312. //
  313. // Creating a request object using this method should be used when you want to inject
  314. // custom logic into the request's lifecycle using a custom handler, or if you want to
  315. // access properties on the request object before or after sending the request. If
  316. // you just want the service response, call the DeleteActivation method directly
  317. // instead.
  318. //
  319. // Note: You must call the "Send" method on the returned request object in order
  320. // to execute the request.
  321. //
  322. // // Example sending a request using the DeleteActivationRequest method.
  323. // req, resp := client.DeleteActivationRequest(params)
  324. //
  325. // err := req.Send()
  326. // if err == nil { // resp is now filled
  327. // fmt.Println(resp)
  328. // }
  329. //
  330. func (c *SSM) DeleteActivationRequest(input *DeleteActivationInput) (req *request.Request, output *DeleteActivationOutput) {
  331. op := &request.Operation{
  332. Name: opDeleteActivation,
  333. HTTPMethod: "POST",
  334. HTTPPath: "/",
  335. }
  336. if input == nil {
  337. input = &DeleteActivationInput{}
  338. }
  339. req = c.newRequest(op, input, output)
  340. output = &DeleteActivationOutput{}
  341. req.Data = output
  342. return
  343. }
  344. // Deletes an activation. You are not required to delete an activation. If you
  345. // delete an activation, you can no longer use it to register additional managed
  346. // instances. Deleting an activation does not de-register managed instances.
  347. // You must manually de-register managed instances.
  348. func (c *SSM) DeleteActivation(input *DeleteActivationInput) (*DeleteActivationOutput, error) {
  349. req, out := c.DeleteActivationRequest(input)
  350. err := req.Send()
  351. return out, err
  352. }
  353. const opDeleteAssociation = "DeleteAssociation"
  354. // DeleteAssociationRequest generates a "aws/request.Request" representing the
  355. // client's request for the DeleteAssociation operation. The "output" return
  356. // value can be used to capture response data after the request's "Send" method
  357. // is called.
  358. //
  359. // Creating a request object using this method should be used when you want to inject
  360. // custom logic into the request's lifecycle using a custom handler, or if you want to
  361. // access properties on the request object before or after sending the request. If
  362. // you just want the service response, call the DeleteAssociation method directly
  363. // instead.
  364. //
  365. // Note: You must call the "Send" method on the returned request object in order
  366. // to execute the request.
  367. //
  368. // // Example sending a request using the DeleteAssociationRequest method.
  369. // req, resp := client.DeleteAssociationRequest(params)
  370. //
  371. // err := req.Send()
  372. // if err == nil { // resp is now filled
  373. // fmt.Println(resp)
  374. // }
  375. //
  376. func (c *SSM) DeleteAssociationRequest(input *DeleteAssociationInput) (req *request.Request, output *DeleteAssociationOutput) {
  377. op := &request.Operation{
  378. Name: opDeleteAssociation,
  379. HTTPMethod: "POST",
  380. HTTPPath: "/",
  381. }
  382. if input == nil {
  383. input = &DeleteAssociationInput{}
  384. }
  385. req = c.newRequest(op, input, output)
  386. output = &DeleteAssociationOutput{}
  387. req.Data = output
  388. return
  389. }
  390. // Disassociates the specified SSM document from the specified instance.
  391. //
  392. // When you disassociate an SSM document from an instance, it does not change
  393. // the configuration of the instance. To change the configuration state of an
  394. // instance after you disassociate a document, you must create a new document
  395. // with the desired configuration and associate it with the instance.
  396. func (c *SSM) DeleteAssociation(input *DeleteAssociationInput) (*DeleteAssociationOutput, error) {
  397. req, out := c.DeleteAssociationRequest(input)
  398. err := req.Send()
  399. return out, err
  400. }
  401. const opDeleteDocument = "DeleteDocument"
  402. // DeleteDocumentRequest generates a "aws/request.Request" representing the
  403. // client's request for the DeleteDocument operation. The "output" return
  404. // value can be used to capture response data after the request's "Send" method
  405. // is called.
  406. //
  407. // Creating a request object using this method should be used when you want to inject
  408. // custom logic into the request's lifecycle using a custom handler, or if you want to
  409. // access properties on the request object before or after sending the request. If
  410. // you just want the service response, call the DeleteDocument method directly
  411. // instead.
  412. //
  413. // Note: You must call the "Send" method on the returned request object in order
  414. // to execute the request.
  415. //
  416. // // Example sending a request using the DeleteDocumentRequest method.
  417. // req, resp := client.DeleteDocumentRequest(params)
  418. //
  419. // err := req.Send()
  420. // if err == nil { // resp is now filled
  421. // fmt.Println(resp)
  422. // }
  423. //
  424. func (c *SSM) DeleteDocumentRequest(input *DeleteDocumentInput) (req *request.Request, output *DeleteDocumentOutput) {
  425. op := &request.Operation{
  426. Name: opDeleteDocument,
  427. HTTPMethod: "POST",
  428. HTTPPath: "/",
  429. }
  430. if input == nil {
  431. input = &DeleteDocumentInput{}
  432. }
  433. req = c.newRequest(op, input, output)
  434. output = &DeleteDocumentOutput{}
  435. req.Data = output
  436. return
  437. }
  438. // Deletes the SSM document and all instance associations to the document.
  439. //
  440. // Before you delete the SSM document, we recommend that you use DeleteAssociation
  441. // to disassociate all instances that are associated with the document.
  442. func (c *SSM) DeleteDocument(input *DeleteDocumentInput) (*DeleteDocumentOutput, error) {
  443. req, out := c.DeleteDocumentRequest(input)
  444. err := req.Send()
  445. return out, err
  446. }
  447. const opDeregisterManagedInstance = "DeregisterManagedInstance"
  448. // DeregisterManagedInstanceRequest generates a "aws/request.Request" representing the
  449. // client's request for the DeregisterManagedInstance operation. The "output" return
  450. // value can be used to capture response data after the request's "Send" method
  451. // is called.
  452. //
  453. // Creating a request object using this method should be used when you want to inject
  454. // custom logic into the request's lifecycle using a custom handler, or if you want to
  455. // access properties on the request object before or after sending the request. If
  456. // you just want the service response, call the DeregisterManagedInstance method directly
  457. // instead.
  458. //
  459. // Note: You must call the "Send" method on the returned request object in order
  460. // to execute the request.
  461. //
  462. // // Example sending a request using the DeregisterManagedInstanceRequest method.
  463. // req, resp := client.DeregisterManagedInstanceRequest(params)
  464. //
  465. // err := req.Send()
  466. // if err == nil { // resp is now filled
  467. // fmt.Println(resp)
  468. // }
  469. //
  470. func (c *SSM) DeregisterManagedInstanceRequest(input *DeregisterManagedInstanceInput) (req *request.Request, output *DeregisterManagedInstanceOutput) {
  471. op := &request.Operation{
  472. Name: opDeregisterManagedInstance,
  473. HTTPMethod: "POST",
  474. HTTPPath: "/",
  475. }
  476. if input == nil {
  477. input = &DeregisterManagedInstanceInput{}
  478. }
  479. req = c.newRequest(op, input, output)
  480. output = &DeregisterManagedInstanceOutput{}
  481. req.Data = output
  482. return
  483. }
  484. // Removes the server or virtual machine from the list of registered servers.
  485. // You can reregister the instance again at any time. If you don’t plan to use
  486. // Run Command on the server, we suggest uninstalling the SSM agent first.
  487. func (c *SSM) DeregisterManagedInstance(input *DeregisterManagedInstanceInput) (*DeregisterManagedInstanceOutput, error) {
  488. req, out := c.DeregisterManagedInstanceRequest(input)
  489. err := req.Send()
  490. return out, err
  491. }
  492. const opDescribeActivations = "DescribeActivations"
  493. // DescribeActivationsRequest generates a "aws/request.Request" representing the
  494. // client's request for the DescribeActivations operation. The "output" return
  495. // value can be used to capture response data after the request's "Send" method
  496. // is called.
  497. //
  498. // Creating a request object using this method should be used when you want to inject
  499. // custom logic into the request's lifecycle using a custom handler, or if you want to
  500. // access properties on the request object before or after sending the request. If
  501. // you just want the service response, call the DescribeActivations method directly
  502. // instead.
  503. //
  504. // Note: You must call the "Send" method on the returned request object in order
  505. // to execute the request.
  506. //
  507. // // Example sending a request using the DescribeActivationsRequest method.
  508. // req, resp := client.DescribeActivationsRequest(params)
  509. //
  510. // err := req.Send()
  511. // if err == nil { // resp is now filled
  512. // fmt.Println(resp)
  513. // }
  514. //
  515. func (c *SSM) DescribeActivationsRequest(input *DescribeActivationsInput) (req *request.Request, output *DescribeActivationsOutput) {
  516. op := &request.Operation{
  517. Name: opDescribeActivations,
  518. HTTPMethod: "POST",
  519. HTTPPath: "/",
  520. Paginator: &request.Paginator{
  521. InputTokens: []string{"NextToken"},
  522. OutputTokens: []string{"NextToken"},
  523. LimitToken: "MaxResults",
  524. TruncationToken: "",
  525. },
  526. }
  527. if input == nil {
  528. input = &DescribeActivationsInput{}
  529. }
  530. req = c.newRequest(op, input, output)
  531. output = &DescribeActivationsOutput{}
  532. req.Data = output
  533. return
  534. }
  535. // Details about the activation, including: the date and time the activation
  536. // was created, the expiration date, the IAM role assigned to the instances
  537. // in the activation, and the number of instances activated by this registration.
  538. func (c *SSM) DescribeActivations(input *DescribeActivationsInput) (*DescribeActivationsOutput, error) {
  539. req, out := c.DescribeActivationsRequest(input)
  540. err := req.Send()
  541. return out, err
  542. }
  543. // DescribeActivationsPages iterates over the pages of a DescribeActivations operation,
  544. // calling the "fn" function with the response data for each page. To stop
  545. // iterating, return false from the fn function.
  546. //
  547. // See DescribeActivations method for more information on how to use this operation.
  548. //
  549. // Note: This operation can generate multiple requests to a service.
  550. //
  551. // // Example iterating over at most 3 pages of a DescribeActivations operation.
  552. // pageNum := 0
  553. // err := client.DescribeActivationsPages(params,
  554. // func(page *DescribeActivationsOutput, lastPage bool) bool {
  555. // pageNum++
  556. // fmt.Println(page)
  557. // return pageNum <= 3
  558. // })
  559. //
  560. func (c *SSM) DescribeActivationsPages(input *DescribeActivationsInput, fn func(p *DescribeActivationsOutput, lastPage bool) (shouldContinue bool)) error {
  561. page, _ := c.DescribeActivationsRequest(input)
  562. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  563. return page.EachPage(func(p interface{}, lastPage bool) bool {
  564. return fn(p.(*DescribeActivationsOutput), lastPage)
  565. })
  566. }
  567. const opDescribeAssociation = "DescribeAssociation"
  568. // DescribeAssociationRequest generates a "aws/request.Request" representing the
  569. // client's request for the DescribeAssociation operation. The "output" return
  570. // value can be used to capture response data after the request's "Send" method
  571. // is called.
  572. //
  573. // Creating a request object using this method should be used when you want to inject
  574. // custom logic into the request's lifecycle using a custom handler, or if you want to
  575. // access properties on the request object before or after sending the request. If
  576. // you just want the service response, call the DescribeAssociation method directly
  577. // instead.
  578. //
  579. // Note: You must call the "Send" method on the returned request object in order
  580. // to execute the request.
  581. //
  582. // // Example sending a request using the DescribeAssociationRequest method.
  583. // req, resp := client.DescribeAssociationRequest(params)
  584. //
  585. // err := req.Send()
  586. // if err == nil { // resp is now filled
  587. // fmt.Println(resp)
  588. // }
  589. //
  590. func (c *SSM) DescribeAssociationRequest(input *DescribeAssociationInput) (req *request.Request, output *DescribeAssociationOutput) {
  591. op := &request.Operation{
  592. Name: opDescribeAssociation,
  593. HTTPMethod: "POST",
  594. HTTPPath: "/",
  595. }
  596. if input == nil {
  597. input = &DescribeAssociationInput{}
  598. }
  599. req = c.newRequest(op, input, output)
  600. output = &DescribeAssociationOutput{}
  601. req.Data = output
  602. return
  603. }
  604. // Describes the associations for the specified SSM document or instance.
  605. func (c *SSM) DescribeAssociation(input *DescribeAssociationInput) (*DescribeAssociationOutput, error) {
  606. req, out := c.DescribeAssociationRequest(input)
  607. err := req.Send()
  608. return out, err
  609. }
  610. const opDescribeDocument = "DescribeDocument"
  611. // DescribeDocumentRequest generates a "aws/request.Request" representing the
  612. // client's request for the DescribeDocument operation. The "output" return
  613. // value can be used to capture response data after the request's "Send" method
  614. // is called.
  615. //
  616. // Creating a request object using this method should be used when you want to inject
  617. // custom logic into the request's lifecycle using a custom handler, or if you want to
  618. // access properties on the request object before or after sending the request. If
  619. // you just want the service response, call the DescribeDocument method directly
  620. // instead.
  621. //
  622. // Note: You must call the "Send" method on the returned request object in order
  623. // to execute the request.
  624. //
  625. // // Example sending a request using the DescribeDocumentRequest method.
  626. // req, resp := client.DescribeDocumentRequest(params)
  627. //
  628. // err := req.Send()
  629. // if err == nil { // resp is now filled
  630. // fmt.Println(resp)
  631. // }
  632. //
  633. func (c *SSM) DescribeDocumentRequest(input *DescribeDocumentInput) (req *request.Request, output *DescribeDocumentOutput) {
  634. op := &request.Operation{
  635. Name: opDescribeDocument,
  636. HTTPMethod: "POST",
  637. HTTPPath: "/",
  638. }
  639. if input == nil {
  640. input = &DescribeDocumentInput{}
  641. }
  642. req = c.newRequest(op, input, output)
  643. output = &DescribeDocumentOutput{}
  644. req.Data = output
  645. return
  646. }
  647. // Describes the specified SSM document.
  648. func (c *SSM) DescribeDocument(input *DescribeDocumentInput) (*DescribeDocumentOutput, error) {
  649. req, out := c.DescribeDocumentRequest(input)
  650. err := req.Send()
  651. return out, err
  652. }
  653. const opDescribeDocumentPermission = "DescribeDocumentPermission"
  654. // DescribeDocumentPermissionRequest generates a "aws/request.Request" representing the
  655. // client's request for the DescribeDocumentPermission operation. The "output" return
  656. // value can be used to capture response data after the request's "Send" method
  657. // is called.
  658. //
  659. // Creating a request object using this method should be used when you want to inject
  660. // custom logic into the request's lifecycle using a custom handler, or if you want to
  661. // access properties on the request object before or after sending the request. If
  662. // you just want the service response, call the DescribeDocumentPermission method directly
  663. // instead.
  664. //
  665. // Note: You must call the "Send" method on the returned request object in order
  666. // to execute the request.
  667. //
  668. // // Example sending a request using the DescribeDocumentPermissionRequest method.
  669. // req, resp := client.DescribeDocumentPermissionRequest(params)
  670. //
  671. // err := req.Send()
  672. // if err == nil { // resp is now filled
  673. // fmt.Println(resp)
  674. // }
  675. //
  676. func (c *SSM) DescribeDocumentPermissionRequest(input *DescribeDocumentPermissionInput) (req *request.Request, output *DescribeDocumentPermissionOutput) {
  677. op := &request.Operation{
  678. Name: opDescribeDocumentPermission,
  679. HTTPMethod: "POST",
  680. HTTPPath: "/",
  681. }
  682. if input == nil {
  683. input = &DescribeDocumentPermissionInput{}
  684. }
  685. req = c.newRequest(op, input, output)
  686. output = &DescribeDocumentPermissionOutput{}
  687. req.Data = output
  688. return
  689. }
  690. // Describes the permissions for an SSM document. If you created the document,
  691. // you are the owner. If a document is shared, it can either be shared privately
  692. // (by specifying a user’s AWS account ID) or publicly (All).
  693. func (c *SSM) DescribeDocumentPermission(input *DescribeDocumentPermissionInput) (*DescribeDocumentPermissionOutput, error) {
  694. req, out := c.DescribeDocumentPermissionRequest(input)
  695. err := req.Send()
  696. return out, err
  697. }
  698. const opDescribeInstanceInformation = "DescribeInstanceInformation"
  699. // DescribeInstanceInformationRequest generates a "aws/request.Request" representing the
  700. // client's request for the DescribeInstanceInformation operation. The "output" return
  701. // value can be used to capture response data after the request's "Send" method
  702. // is called.
  703. //
  704. // Creating a request object using this method should be used when you want to inject
  705. // custom logic into the request's lifecycle using a custom handler, or if you want to
  706. // access properties on the request object before or after sending the request. If
  707. // you just want the service response, call the DescribeInstanceInformation method directly
  708. // instead.
  709. //
  710. // Note: You must call the "Send" method on the returned request object in order
  711. // to execute the request.
  712. //
  713. // // Example sending a request using the DescribeInstanceInformationRequest method.
  714. // req, resp := client.DescribeInstanceInformationRequest(params)
  715. //
  716. // err := req.Send()
  717. // if err == nil { // resp is now filled
  718. // fmt.Println(resp)
  719. // }
  720. //
  721. func (c *SSM) DescribeInstanceInformationRequest(input *DescribeInstanceInformationInput) (req *request.Request, output *DescribeInstanceInformationOutput) {
  722. op := &request.Operation{
  723. Name: opDescribeInstanceInformation,
  724. HTTPMethod: "POST",
  725. HTTPPath: "/",
  726. Paginator: &request.Paginator{
  727. InputTokens: []string{"NextToken"},
  728. OutputTokens: []string{"NextToken"},
  729. LimitToken: "MaxResults",
  730. TruncationToken: "",
  731. },
  732. }
  733. if input == nil {
  734. input = &DescribeInstanceInformationInput{}
  735. }
  736. req = c.newRequest(op, input, output)
  737. output = &DescribeInstanceInformationOutput{}
  738. req.Data = output
  739. return
  740. }
  741. // Describes one or more of your instances. You can use this to get information
  742. // about instances like the operating system platform, the SSM agent version,
  743. // status etc. If you specify one or more instance IDs, it returns information
  744. // for those instances. If you do not specify instance IDs, it returns information
  745. // for all your instances. If you specify an instance ID that is not valid or
  746. // an instance that you do not own, you receive an error.
  747. func (c *SSM) DescribeInstanceInformation(input *DescribeInstanceInformationInput) (*DescribeInstanceInformationOutput, error) {
  748. req, out := c.DescribeInstanceInformationRequest(input)
  749. err := req.Send()
  750. return out, err
  751. }
  752. // DescribeInstanceInformationPages iterates over the pages of a DescribeInstanceInformation operation,
  753. // calling the "fn" function with the response data for each page. To stop
  754. // iterating, return false from the fn function.
  755. //
  756. // See DescribeInstanceInformation method for more information on how to use this operation.
  757. //
  758. // Note: This operation can generate multiple requests to a service.
  759. //
  760. // // Example iterating over at most 3 pages of a DescribeInstanceInformation operation.
  761. // pageNum := 0
  762. // err := client.DescribeInstanceInformationPages(params,
  763. // func(page *DescribeInstanceInformationOutput, lastPage bool) bool {
  764. // pageNum++
  765. // fmt.Println(page)
  766. // return pageNum <= 3
  767. // })
  768. //
  769. func (c *SSM) DescribeInstanceInformationPages(input *DescribeInstanceInformationInput, fn func(p *DescribeInstanceInformationOutput, lastPage bool) (shouldContinue bool)) error {
  770. page, _ := c.DescribeInstanceInformationRequest(input)
  771. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  772. return page.EachPage(func(p interface{}, lastPage bool) bool {
  773. return fn(p.(*DescribeInstanceInformationOutput), lastPage)
  774. })
  775. }
  776. const opGetDocument = "GetDocument"
  777. // GetDocumentRequest generates a "aws/request.Request" representing the
  778. // client's request for the GetDocument operation. The "output" return
  779. // value can be used to capture response data after the request's "Send" method
  780. // is called.
  781. //
  782. // Creating a request object using this method should be used when you want to inject
  783. // custom logic into the request's lifecycle using a custom handler, or if you want to
  784. // access properties on the request object before or after sending the request. If
  785. // you just want the service response, call the GetDocument method directly
  786. // instead.
  787. //
  788. // Note: You must call the "Send" method on the returned request object in order
  789. // to execute the request.
  790. //
  791. // // Example sending a request using the GetDocumentRequest method.
  792. // req, resp := client.GetDocumentRequest(params)
  793. //
  794. // err := req.Send()
  795. // if err == nil { // resp is now filled
  796. // fmt.Println(resp)
  797. // }
  798. //
  799. func (c *SSM) GetDocumentRequest(input *GetDocumentInput) (req *request.Request, output *GetDocumentOutput) {
  800. op := &request.Operation{
  801. Name: opGetDocument,
  802. HTTPMethod: "POST",
  803. HTTPPath: "/",
  804. }
  805. if input == nil {
  806. input = &GetDocumentInput{}
  807. }
  808. req = c.newRequest(op, input, output)
  809. output = &GetDocumentOutput{}
  810. req.Data = output
  811. return
  812. }
  813. // Gets the contents of the specified SSM document.
  814. func (c *SSM) GetDocument(input *GetDocumentInput) (*GetDocumentOutput, error) {
  815. req, out := c.GetDocumentRequest(input)
  816. err := req.Send()
  817. return out, err
  818. }
  819. const opListAssociations = "ListAssociations"
  820. // ListAssociationsRequest generates a "aws/request.Request" representing the
  821. // client's request for the ListAssociations operation. The "output" return
  822. // value can be used to capture response data after the request's "Send" method
  823. // is called.
  824. //
  825. // Creating a request object using this method should be used when you want to inject
  826. // custom logic into the request's lifecycle using a custom handler, or if you want to
  827. // access properties on the request object before or after sending the request. If
  828. // you just want the service response, call the ListAssociations method directly
  829. // instead.
  830. //
  831. // Note: You must call the "Send" method on the returned request object in order
  832. // to execute the request.
  833. //
  834. // // Example sending a request using the ListAssociationsRequest method.
  835. // req, resp := client.ListAssociationsRequest(params)
  836. //
  837. // err := req.Send()
  838. // if err == nil { // resp is now filled
  839. // fmt.Println(resp)
  840. // }
  841. //
  842. func (c *SSM) ListAssociationsRequest(input *ListAssociationsInput) (req *request.Request, output *ListAssociationsOutput) {
  843. op := &request.Operation{
  844. Name: opListAssociations,
  845. HTTPMethod: "POST",
  846. HTTPPath: "/",
  847. Paginator: &request.Paginator{
  848. InputTokens: []string{"NextToken"},
  849. OutputTokens: []string{"NextToken"},
  850. LimitToken: "MaxResults",
  851. TruncationToken: "",
  852. },
  853. }
  854. if input == nil {
  855. input = &ListAssociationsInput{}
  856. }
  857. req = c.newRequest(op, input, output)
  858. output = &ListAssociationsOutput{}
  859. req.Data = output
  860. return
  861. }
  862. // Lists the associations for the specified SSM document or instance.
  863. func (c *SSM) ListAssociations(input *ListAssociationsInput) (*ListAssociationsOutput, error) {
  864. req, out := c.ListAssociationsRequest(input)
  865. err := req.Send()
  866. return out, err
  867. }
  868. // ListAssociationsPages iterates over the pages of a ListAssociations operation,
  869. // calling the "fn" function with the response data for each page. To stop
  870. // iterating, return false from the fn function.
  871. //
  872. // See ListAssociations method for more information on how to use this operation.
  873. //
  874. // Note: This operation can generate multiple requests to a service.
  875. //
  876. // // Example iterating over at most 3 pages of a ListAssociations operation.
  877. // pageNum := 0
  878. // err := client.ListAssociationsPages(params,
  879. // func(page *ListAssociationsOutput, lastPage bool) bool {
  880. // pageNum++
  881. // fmt.Println(page)
  882. // return pageNum <= 3
  883. // })
  884. //
  885. func (c *SSM) ListAssociationsPages(input *ListAssociationsInput, fn func(p *ListAssociationsOutput, lastPage bool) (shouldContinue bool)) error {
  886. page, _ := c.ListAssociationsRequest(input)
  887. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  888. return page.EachPage(func(p interface{}, lastPage bool) bool {
  889. return fn(p.(*ListAssociationsOutput), lastPage)
  890. })
  891. }
  892. const opListCommandInvocations = "ListCommandInvocations"
  893. // ListCommandInvocationsRequest generates a "aws/request.Request" representing the
  894. // client's request for the ListCommandInvocations operation. The "output" return
  895. // value can be used to capture response data after the request's "Send" method
  896. // is called.
  897. //
  898. // Creating a request object using this method should be used when you want to inject
  899. // custom logic into the request's lifecycle using a custom handler, or if you want to
  900. // access properties on the request object before or after sending the request. If
  901. // you just want the service response, call the ListCommandInvocations method directly
  902. // instead.
  903. //
  904. // Note: You must call the "Send" method on the returned request object in order
  905. // to execute the request.
  906. //
  907. // // Example sending a request using the ListCommandInvocationsRequest method.
  908. // req, resp := client.ListCommandInvocationsRequest(params)
  909. //
  910. // err := req.Send()
  911. // if err == nil { // resp is now filled
  912. // fmt.Println(resp)
  913. // }
  914. //
  915. func (c *SSM) ListCommandInvocationsRequest(input *ListCommandInvocationsInput) (req *request.Request, output *ListCommandInvocationsOutput) {
  916. op := &request.Operation{
  917. Name: opListCommandInvocations,
  918. HTTPMethod: "POST",
  919. HTTPPath: "/",
  920. Paginator: &request.Paginator{
  921. InputTokens: []string{"NextToken"},
  922. OutputTokens: []string{"NextToken"},
  923. LimitToken: "MaxResults",
  924. TruncationToken: "",
  925. },
  926. }
  927. if input == nil {
  928. input = &ListCommandInvocationsInput{}
  929. }
  930. req = c.newRequest(op, input, output)
  931. output = &ListCommandInvocationsOutput{}
  932. req.Data = output
  933. return
  934. }
  935. // An invocation is copy of a command sent to a specific instance. A command
  936. // can apply to one or more instances. A command invocation applies to one instance.
  937. // For example, if a user executes SendCommand against three instances, then
  938. // a command invocation is created for each requested instance ID. ListCommandInvocations
  939. // provide status about command execution.
  940. func (c *SSM) ListCommandInvocations(input *ListCommandInvocationsInput) (*ListCommandInvocationsOutput, error) {
  941. req, out := c.ListCommandInvocationsRequest(input)
  942. err := req.Send()
  943. return out, err
  944. }
  945. // ListCommandInvocationsPages iterates over the pages of a ListCommandInvocations operation,
  946. // calling the "fn" function with the response data for each page. To stop
  947. // iterating, return false from the fn function.
  948. //
  949. // See ListCommandInvocations method for more information on how to use this operation.
  950. //
  951. // Note: This operation can generate multiple requests to a service.
  952. //
  953. // // Example iterating over at most 3 pages of a ListCommandInvocations operation.
  954. // pageNum := 0
  955. // err := client.ListCommandInvocationsPages(params,
  956. // func(page *ListCommandInvocationsOutput, lastPage bool) bool {
  957. // pageNum++
  958. // fmt.Println(page)
  959. // return pageNum <= 3
  960. // })
  961. //
  962. func (c *SSM) ListCommandInvocationsPages(input *ListCommandInvocationsInput, fn func(p *ListCommandInvocationsOutput, lastPage bool) (shouldContinue bool)) error {
  963. page, _ := c.ListCommandInvocationsRequest(input)
  964. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  965. return page.EachPage(func(p interface{}, lastPage bool) bool {
  966. return fn(p.(*ListCommandInvocationsOutput), lastPage)
  967. })
  968. }
  969. const opListCommands = "ListCommands"
  970. // ListCommandsRequest generates a "aws/request.Request" representing the
  971. // client's request for the ListCommands operation. The "output" return
  972. // value can be used to capture response data after the request's "Send" method
  973. // is called.
  974. //
  975. // Creating a request object using this method should be used when you want to inject
  976. // custom logic into the request's lifecycle using a custom handler, or if you want to
  977. // access properties on the request object before or after sending the request. If
  978. // you just want the service response, call the ListCommands method directly
  979. // instead.
  980. //
  981. // Note: You must call the "Send" method on the returned request object in order
  982. // to execute the request.
  983. //
  984. // // Example sending a request using the ListCommandsRequest method.
  985. // req, resp := client.ListCommandsRequest(params)
  986. //
  987. // err := req.Send()
  988. // if err == nil { // resp is now filled
  989. // fmt.Println(resp)
  990. // }
  991. //
  992. func (c *SSM) ListCommandsRequest(input *ListCommandsInput) (req *request.Request, output *ListCommandsOutput) {
  993. op := &request.Operation{
  994. Name: opListCommands,
  995. HTTPMethod: "POST",
  996. HTTPPath: "/",
  997. Paginator: &request.Paginator{
  998. InputTokens: []string{"NextToken"},
  999. OutputTokens: []string{"NextToken"},
  1000. LimitToken: "MaxResults",
  1001. TruncationToken: "",
  1002. },
  1003. }
  1004. if input == nil {
  1005. input = &ListCommandsInput{}
  1006. }
  1007. req = c.newRequest(op, input, output)
  1008. output = &ListCommandsOutput{}
  1009. req.Data = output
  1010. return
  1011. }
  1012. // Lists the commands requested by users of the AWS account.
  1013. func (c *SSM) ListCommands(input *ListCommandsInput) (*ListCommandsOutput, error) {
  1014. req, out := c.ListCommandsRequest(input)
  1015. err := req.Send()
  1016. return out, err
  1017. }
  1018. // ListCommandsPages iterates over the pages of a ListCommands operation,
  1019. // calling the "fn" function with the response data for each page. To stop
  1020. // iterating, return false from the fn function.
  1021. //
  1022. // See ListCommands method for more information on how to use this operation.
  1023. //
  1024. // Note: This operation can generate multiple requests to a service.
  1025. //
  1026. // // Example iterating over at most 3 pages of a ListCommands operation.
  1027. // pageNum := 0
  1028. // err := client.ListCommandsPages(params,
  1029. // func(page *ListCommandsOutput, lastPage bool) bool {
  1030. // pageNum++
  1031. // fmt.Println(page)
  1032. // return pageNum <= 3
  1033. // })
  1034. //
  1035. func (c *SSM) ListCommandsPages(input *ListCommandsInput, fn func(p *ListCommandsOutput, lastPage bool) (shouldContinue bool)) error {
  1036. page, _ := c.ListCommandsRequest(input)
  1037. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1038. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1039. return fn(p.(*ListCommandsOutput), lastPage)
  1040. })
  1041. }
  1042. const opListDocuments = "ListDocuments"
  1043. // ListDocumentsRequest generates a "aws/request.Request" representing the
  1044. // client's request for the ListDocuments operation. The "output" return
  1045. // value can be used to capture response data after the request's "Send" method
  1046. // is called.
  1047. //
  1048. // Creating a request object using this method should be used when you want to inject
  1049. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1050. // access properties on the request object before or after sending the request. If
  1051. // you just want the service response, call the ListDocuments method directly
  1052. // instead.
  1053. //
  1054. // Note: You must call the "Send" method on the returned request object in order
  1055. // to execute the request.
  1056. //
  1057. // // Example sending a request using the ListDocumentsRequest method.
  1058. // req, resp := client.ListDocumentsRequest(params)
  1059. //
  1060. // err := req.Send()
  1061. // if err == nil { // resp is now filled
  1062. // fmt.Println(resp)
  1063. // }
  1064. //
  1065. func (c *SSM) ListDocumentsRequest(input *ListDocumentsInput) (req *request.Request, output *ListDocumentsOutput) {
  1066. op := &request.Operation{
  1067. Name: opListDocuments,
  1068. HTTPMethod: "POST",
  1069. HTTPPath: "/",
  1070. Paginator: &request.Paginator{
  1071. InputTokens: []string{"NextToken"},
  1072. OutputTokens: []string{"NextToken"},
  1073. LimitToken: "MaxResults",
  1074. TruncationToken: "",
  1075. },
  1076. }
  1077. if input == nil {
  1078. input = &ListDocumentsInput{}
  1079. }
  1080. req = c.newRequest(op, input, output)
  1081. output = &ListDocumentsOutput{}
  1082. req.Data = output
  1083. return
  1084. }
  1085. // Describes one or more of your SSM documents.
  1086. func (c *SSM) ListDocuments(input *ListDocumentsInput) (*ListDocumentsOutput, error) {
  1087. req, out := c.ListDocumentsRequest(input)
  1088. err := req.Send()
  1089. return out, err
  1090. }
  1091. // ListDocumentsPages iterates over the pages of a ListDocuments operation,
  1092. // calling the "fn" function with the response data for each page. To stop
  1093. // iterating, return false from the fn function.
  1094. //
  1095. // See ListDocuments method for more information on how to use this operation.
  1096. //
  1097. // Note: This operation can generate multiple requests to a service.
  1098. //
  1099. // // Example iterating over at most 3 pages of a ListDocuments operation.
  1100. // pageNum := 0
  1101. // err := client.ListDocumentsPages(params,
  1102. // func(page *ListDocumentsOutput, lastPage bool) bool {
  1103. // pageNum++
  1104. // fmt.Println(page)
  1105. // return pageNum <= 3
  1106. // })
  1107. //
  1108. func (c *SSM) ListDocumentsPages(input *ListDocumentsInput, fn func(p *ListDocumentsOutput, lastPage bool) (shouldContinue bool)) error {
  1109. page, _ := c.ListDocumentsRequest(input)
  1110. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1111. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1112. return fn(p.(*ListDocumentsOutput), lastPage)
  1113. })
  1114. }
  1115. const opListTagsForResource = "ListTagsForResource"
  1116. // ListTagsForResourceRequest generates a "aws/request.Request" representing the
  1117. // client's request for the ListTagsForResource operation. The "output" return
  1118. // value can be used to capture response data after the request's "Send" method
  1119. // is called.
  1120. //
  1121. // Creating a request object using this method should be used when you want to inject
  1122. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1123. // access properties on the request object before or after sending the request. If
  1124. // you just want the service response, call the ListTagsForResource method directly
  1125. // instead.
  1126. //
  1127. // Note: You must call the "Send" method on the returned request object in order
  1128. // to execute the request.
  1129. //
  1130. // // Example sending a request using the ListTagsForResourceRequest method.
  1131. // req, resp := client.ListTagsForResourceRequest(params)
  1132. //
  1133. // err := req.Send()
  1134. // if err == nil { // resp is now filled
  1135. // fmt.Println(resp)
  1136. // }
  1137. //
  1138. func (c *SSM) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
  1139. op := &request.Operation{
  1140. Name: opListTagsForResource,
  1141. HTTPMethod: "POST",
  1142. HTTPPath: "/",
  1143. }
  1144. if input == nil {
  1145. input = &ListTagsForResourceInput{}
  1146. }
  1147. req = c.newRequest(op, input, output)
  1148. output = &ListTagsForResourceOutput{}
  1149. req.Data = output
  1150. return
  1151. }
  1152. // Returns a list of the tags assigned to the specified resource.
  1153. func (c *SSM) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
  1154. req, out := c.ListTagsForResourceRequest(input)
  1155. err := req.Send()
  1156. return out, err
  1157. }
  1158. const opModifyDocumentPermission = "ModifyDocumentPermission"
  1159. // ModifyDocumentPermissionRequest generates a "aws/request.Request" representing the
  1160. // client's request for the ModifyDocumentPermission operation. The "output" return
  1161. // value can be used to capture response data after the request's "Send" method
  1162. // is called.
  1163. //
  1164. // Creating a request object using this method should be used when you want to inject
  1165. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1166. // access properties on the request object before or after sending the request. If
  1167. // you just want the service response, call the ModifyDocumentPermission method directly
  1168. // instead.
  1169. //
  1170. // Note: You must call the "Send" method on the returned request object in order
  1171. // to execute the request.
  1172. //
  1173. // // Example sending a request using the ModifyDocumentPermissionRequest method.
  1174. // req, resp := client.ModifyDocumentPermissionRequest(params)
  1175. //
  1176. // err := req.Send()
  1177. // if err == nil { // resp is now filled
  1178. // fmt.Println(resp)
  1179. // }
  1180. //
  1181. func (c *SSM) ModifyDocumentPermissionRequest(input *ModifyDocumentPermissionInput) (req *request.Request, output *ModifyDocumentPermissionOutput) {
  1182. op := &request.Operation{
  1183. Name: opModifyDocumentPermission,
  1184. HTTPMethod: "POST",
  1185. HTTPPath: "/",
  1186. }
  1187. if input == nil {
  1188. input = &ModifyDocumentPermissionInput{}
  1189. }
  1190. req = c.newRequest(op, input, output)
  1191. output = &ModifyDocumentPermissionOutput{}
  1192. req.Data = output
  1193. return
  1194. }
  1195. // Share a document publicly or privately. If you share a document privately,
  1196. // you must specify the AWS user account IDs for those people who can use the
  1197. // document. If you share a document publicly, you must specify All as the account
  1198. // ID.
  1199. func (c *SSM) ModifyDocumentPermission(input *ModifyDocumentPermissionInput) (*ModifyDocumentPermissionOutput, error) {
  1200. req, out := c.ModifyDocumentPermissionRequest(input)
  1201. err := req.Send()
  1202. return out, err
  1203. }
  1204. const opRemoveTagsFromResource = "RemoveTagsFromResource"
  1205. // RemoveTagsFromResourceRequest generates a "aws/request.Request" representing the
  1206. // client's request for the RemoveTagsFromResource operation. The "output" return
  1207. // value can be used to capture response data after the request's "Send" method
  1208. // is called.
  1209. //
  1210. // Creating a request object using this method should be used when you want to inject
  1211. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1212. // access properties on the request object before or after sending the request. If
  1213. // you just want the service response, call the RemoveTagsFromResource method directly
  1214. // instead.
  1215. //
  1216. // Note: You must call the "Send" method on the returned request object in order
  1217. // to execute the request.
  1218. //
  1219. // // Example sending a request using the RemoveTagsFromResourceRequest method.
  1220. // req, resp := client.RemoveTagsFromResourceRequest(params)
  1221. //
  1222. // err := req.Send()
  1223. // if err == nil { // resp is now filled
  1224. // fmt.Println(resp)
  1225. // }
  1226. //
  1227. func (c *SSM) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) (req *request.Request, output *RemoveTagsFromResourceOutput) {
  1228. op := &request.Operation{
  1229. Name: opRemoveTagsFromResource,
  1230. HTTPMethod: "POST",
  1231. HTTPPath: "/",
  1232. }
  1233. if input == nil {
  1234. input = &RemoveTagsFromResourceInput{}
  1235. }
  1236. req = c.newRequest(op, input, output)
  1237. output = &RemoveTagsFromResourceOutput{}
  1238. req.Data = output
  1239. return
  1240. }
  1241. // Removes all tags from the specified resource.
  1242. func (c *SSM) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) {
  1243. req, out := c.RemoveTagsFromResourceRequest(input)
  1244. err := req.Send()
  1245. return out, err
  1246. }
  1247. const opSendCommand = "SendCommand"
  1248. // SendCommandRequest generates a "aws/request.Request" representing the
  1249. // client's request for the SendCommand operation. The "output" return
  1250. // value can be used to capture response data after the request's "Send" method
  1251. // is called.
  1252. //
  1253. // Creating a request object using this method should be used when you want to inject
  1254. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1255. // access properties on the request object before or after sending the request. If
  1256. // you just want the service response, call the SendCommand method directly
  1257. // instead.
  1258. //
  1259. // Note: You must call the "Send" method on the returned request object in order
  1260. // to execute the request.
  1261. //
  1262. // // Example sending a request using the SendCommandRequest method.
  1263. // req, resp := client.SendCommandRequest(params)
  1264. //
  1265. // err := req.Send()
  1266. // if err == nil { // resp is now filled
  1267. // fmt.Println(resp)
  1268. // }
  1269. //
  1270. func (c *SSM) SendCommandRequest(input *SendCommandInput) (req *request.Request, output *SendCommandOutput) {
  1271. op := &request.Operation{
  1272. Name: opSendCommand,
  1273. HTTPMethod: "POST",
  1274. HTTPPath: "/",
  1275. }
  1276. if input == nil {
  1277. input = &SendCommandInput{}
  1278. }
  1279. req = c.newRequest(op, input, output)
  1280. output = &SendCommandOutput{}
  1281. req.Data = output
  1282. return
  1283. }
  1284. // Executes commands on one or more remote instances.
  1285. func (c *SSM) SendCommand(input *SendCommandInput) (*SendCommandOutput, error) {
  1286. req, out := c.SendCommandRequest(input)
  1287. err := req.Send()
  1288. return out, err
  1289. }
  1290. const opUpdateAssociationStatus = "UpdateAssociationStatus"
  1291. // UpdateAssociationStatusRequest generates a "aws/request.Request" representing the
  1292. // client's request for the UpdateAssociationStatus operation. The "output" return
  1293. // value can be used to capture response data after the request's "Send" method
  1294. // is called.
  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 UpdateAssociationStatus 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 UpdateAssociationStatusRequest method.
  1306. // req, resp := client.UpdateAssociationStatusRequest(params)
  1307. //
  1308. // err := req.Send()
  1309. // if err == nil { // resp is now filled
  1310. // fmt.Println(resp)
  1311. // }
  1312. //
  1313. func (c *SSM) UpdateAssociationStatusRequest(input *UpdateAssociationStatusInput) (req *request.Request, output *UpdateAssociationStatusOutput) {
  1314. op := &request.Operation{
  1315. Name: opUpdateAssociationStatus,
  1316. HTTPMethod: "POST",
  1317. HTTPPath: "/",
  1318. }
  1319. if input == nil {
  1320. input = &UpdateAssociationStatusInput{}
  1321. }
  1322. req = c.newRequest(op, input, output)
  1323. output = &UpdateAssociationStatusOutput{}
  1324. req.Data = output
  1325. return
  1326. }
  1327. // Updates the status of the SSM document associated with the specified instance.
  1328. func (c *SSM) UpdateAssociationStatus(input *UpdateAssociationStatusInput) (*UpdateAssociationStatusOutput, error) {
  1329. req, out := c.UpdateAssociationStatusRequest(input)
  1330. err := req.Send()
  1331. return out, err
  1332. }
  1333. const opUpdateManagedInstanceRole = "UpdateManagedInstanceRole"
  1334. // UpdateManagedInstanceRoleRequest generates a "aws/request.Request" representing the
  1335. // client's request for the UpdateManagedInstanceRole operation. The "output" return
  1336. // value can be used to capture response data after the request's "Send" method
  1337. // is called.
  1338. //
  1339. // Creating a request object using this method should be used when you want to inject
  1340. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1341. // access properties on the request object before or after sending the request. If
  1342. // you just want the service response, call the UpdateManagedInstanceRole method directly
  1343. // instead.
  1344. //
  1345. // Note: You must call the "Send" method on the returned request object in order
  1346. // to execute the request.
  1347. //
  1348. // // Example sending a request using the UpdateManagedInstanceRoleRequest method.
  1349. // req, resp := client.UpdateManagedInstanceRoleRequest(params)
  1350. //
  1351. // err := req.Send()
  1352. // if err == nil { // resp is now filled
  1353. // fmt.Println(resp)
  1354. // }
  1355. //
  1356. func (c *SSM) UpdateManagedInstanceRoleRequest(input *UpdateManagedInstanceRoleInput) (req *request.Request, output *UpdateManagedInstanceRoleOutput) {
  1357. op := &request.Operation{
  1358. Name: opUpdateManagedInstanceRole,
  1359. HTTPMethod: "POST",
  1360. HTTPPath: "/",
  1361. }
  1362. if input == nil {
  1363. input = &UpdateManagedInstanceRoleInput{}
  1364. }
  1365. req = c.newRequest(op, input, output)
  1366. output = &UpdateManagedInstanceRoleOutput{}
  1367. req.Data = output
  1368. return
  1369. }
  1370. // Assigns or changes an Amazon Identity and Access Management (IAM) role to
  1371. // the managed instance.
  1372. func (c *SSM) UpdateManagedInstanceRole(input *UpdateManagedInstanceRoleInput) (*UpdateManagedInstanceRoleOutput, error) {
  1373. req, out := c.UpdateManagedInstanceRoleRequest(input)
  1374. err := req.Send()
  1375. return out, err
  1376. }
  1377. // An activation registers one or more on-premises servers or virtual machines
  1378. // (VMs) with AWS so that you can configure those servers or VMs using Run Command.
  1379. // A server or VM that has been registered with AWS is called a managed instance.
  1380. type Activation struct {
  1381. _ struct{} `type:"structure"`
  1382. // The ID created by SSM when you submitted the activation.
  1383. ActivationId *string `type:"string"`
  1384. // The date the activation was created.
  1385. CreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  1386. // A name for the managed instance when it is created.
  1387. DefaultInstanceName *string `type:"string"`
  1388. // A user defined description of the activation.
  1389. Description *string `type:"string"`
  1390. // The date when this activation can no longer be used to register managed instances.
  1391. ExpirationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  1392. // Whether or not the activation is expired.
  1393. Expired *bool `type:"boolean"`
  1394. // The Amazon Identity and Access Management (IAM) role to assign to the managed
  1395. // instance.
  1396. IamRole *string `type:"string"`
  1397. // The maximum number of managed instances that can be registered using this
  1398. // activation.
  1399. RegistrationLimit *int64 `min:"1" type:"integer"`
  1400. // The number of managed instances already registered with this activation.
  1401. RegistrationsCount *int64 `min:"1" type:"integer"`
  1402. }
  1403. // String returns the string representation
  1404. func (s Activation) String() string {
  1405. return awsutil.Prettify(s)
  1406. }
  1407. // GoString returns the string representation
  1408. func (s Activation) GoString() string {
  1409. return s.String()
  1410. }
  1411. type AddTagsToResourceInput struct {
  1412. _ struct{} `type:"structure"`
  1413. // The resource ID you want to tag.
  1414. ResourceId *string `type:"string" required:"true"`
  1415. // Specifies the type of resource you are tagging.
  1416. ResourceType *string `type:"string" required:"true" enum:"ResourceTypeForTagging"`
  1417. // One or more tags. The value parameter is required, but if you don't want
  1418. // the tag to have a value, specify the parameter with no value, and we set
  1419. // the value to an empty string.
  1420. Tags []*Tag `type:"list" required:"true"`
  1421. }
  1422. // String returns the string representation
  1423. func (s AddTagsToResourceInput) String() string {
  1424. return awsutil.Prettify(s)
  1425. }
  1426. // GoString returns the string representation
  1427. func (s AddTagsToResourceInput) GoString() string {
  1428. return s.String()
  1429. }
  1430. // Validate inspects the fields of the type to determine if they are valid.
  1431. func (s *AddTagsToResourceInput) Validate() error {
  1432. invalidParams := request.ErrInvalidParams{Context: "AddTagsToResourceInput"}
  1433. if s.ResourceId == nil {
  1434. invalidParams.Add(request.NewErrParamRequired("ResourceId"))
  1435. }
  1436. if s.ResourceType == nil {
  1437. invalidParams.Add(request.NewErrParamRequired("ResourceType"))
  1438. }
  1439. if s.Tags == nil {
  1440. invalidParams.Add(request.NewErrParamRequired("Tags"))
  1441. }
  1442. if s.Tags != nil {
  1443. for i, v := range s.Tags {
  1444. if v == nil {
  1445. continue
  1446. }
  1447. if err := v.Validate(); err != nil {
  1448. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  1449. }
  1450. }
  1451. }
  1452. if invalidParams.Len() > 0 {
  1453. return invalidParams
  1454. }
  1455. return nil
  1456. }
  1457. type AddTagsToResourceOutput struct {
  1458. _ struct{} `type:"structure"`
  1459. }
  1460. // String returns the string representation
  1461. func (s AddTagsToResourceOutput) String() string {
  1462. return awsutil.Prettify(s)
  1463. }
  1464. // GoString returns the string representation
  1465. func (s AddTagsToResourceOutput) GoString() string {
  1466. return s.String()
  1467. }
  1468. // Describes an association of an SSM document and an instance.
  1469. type Association struct {
  1470. _ struct{} `type:"structure"`
  1471. // The ID of the instance.
  1472. InstanceId *string `type:"string"`
  1473. // The name of the SSM document.
  1474. Name *string `type:"string"`
  1475. }
  1476. // String returns the string representation
  1477. func (s Association) String() string {
  1478. return awsutil.Prettify(s)
  1479. }
  1480. // GoString returns the string representation
  1481. func (s Association) GoString() string {
  1482. return s.String()
  1483. }
  1484. // Describes the parameters for a document.
  1485. type AssociationDescription struct {
  1486. _ struct{} `type:"structure"`
  1487. // The date when the association was made.
  1488. Date *time.Time `type:"timestamp" timestampFormat:"unix"`
  1489. // The ID of the instance.
  1490. InstanceId *string `type:"string"`
  1491. // The name of the SSM document.
  1492. Name *string `type:"string"`
  1493. // A description of the parameters for a document.
  1494. Parameters map[string][]*string `type:"map"`
  1495. // The association status.
  1496. Status *AssociationStatus `type:"structure"`
  1497. }
  1498. // String returns the string representation
  1499. func (s AssociationDescription) String() string {
  1500. return awsutil.Prettify(s)
  1501. }
  1502. // GoString returns the string representation
  1503. func (s AssociationDescription) GoString() string {
  1504. return s.String()
  1505. }
  1506. // Describes a filter.
  1507. type AssociationFilter struct {
  1508. _ struct{} `type:"structure"`
  1509. // The name of the filter.
  1510. Key *string `locationName:"key" type:"string" required:"true" enum:"AssociationFilterKey"`
  1511. // The filter value.
  1512. Value *string `locationName:"value" min:"1" type:"string" required:"true"`
  1513. }
  1514. // String returns the string representation
  1515. func (s AssociationFilter) String() string {
  1516. return awsutil.Prettify(s)
  1517. }
  1518. // GoString returns the string representation
  1519. func (s AssociationFilter) GoString() string {
  1520. return s.String()
  1521. }
  1522. // Validate inspects the fields of the type to determine if they are valid.
  1523. func (s *AssociationFilter) Validate() error {
  1524. invalidParams := request.ErrInvalidParams{Context: "AssociationFilter"}
  1525. if s.Key == nil {
  1526. invalidParams.Add(request.NewErrParamRequired("Key"))
  1527. }
  1528. if s.Value == nil {
  1529. invalidParams.Add(request.NewErrParamRequired("Value"))
  1530. }
  1531. if s.Value != nil && len(*s.Value) < 1 {
  1532. invalidParams.Add(request.NewErrParamMinLen("Value", 1))
  1533. }
  1534. if invalidParams.Len() > 0 {
  1535. return invalidParams
  1536. }
  1537. return nil
  1538. }
  1539. // Describes an association status.
  1540. type AssociationStatus struct {
  1541. _ struct{} `type:"structure"`
  1542. // A user-defined string.
  1543. AdditionalInfo *string `type:"string"`
  1544. // The date when the status changed.
  1545. Date *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
  1546. // The reason for the status.
  1547. Message *string `type:"string" required:"true"`
  1548. // The status.
  1549. Name *string `type:"string" required:"true" enum:"AssociationStatusName"`
  1550. }
  1551. // String returns the string representation
  1552. func (s AssociationStatus) String() string {
  1553. return awsutil.Prettify(s)
  1554. }
  1555. // GoString returns the string representation
  1556. func (s AssociationStatus) GoString() string {
  1557. return s.String()
  1558. }
  1559. // Validate inspects the fields of the type to determine if they are valid.
  1560. func (s *AssociationStatus) Validate() error {
  1561. invalidParams := request.ErrInvalidParams{Context: "AssociationStatus"}
  1562. if s.Date == nil {
  1563. invalidParams.Add(request.NewErrParamRequired("Date"))
  1564. }
  1565. if s.Message == nil {
  1566. invalidParams.Add(request.NewErrParamRequired("Message"))
  1567. }
  1568. if s.Name == nil {
  1569. invalidParams.Add(request.NewErrParamRequired("Name"))
  1570. }
  1571. if invalidParams.Len() > 0 {
  1572. return invalidParams
  1573. }
  1574. return nil
  1575. }
  1576. type CancelCommandInput struct {
  1577. _ struct{} `type:"structure"`
  1578. // The ID of the command you want to cancel.
  1579. CommandId *string `min:"36" type:"string" required:"true"`
  1580. // (Optional) A list of instance IDs on which you want to cancel the command.
  1581. // If not provided, the command is canceled on every instance on which it was
  1582. // requested.
  1583. InstanceIds []*string `min:"1" type:"list"`
  1584. }
  1585. // String returns the string representation
  1586. func (s CancelCommandInput) String() string {
  1587. return awsutil.Prettify(s)
  1588. }
  1589. // GoString returns the string representation
  1590. func (s CancelCommandInput) GoString() string {
  1591. return s.String()
  1592. }
  1593. // Validate inspects the fields of the type to determine if they are valid.
  1594. func (s *CancelCommandInput) Validate() error {
  1595. invalidParams := request.ErrInvalidParams{Context: "CancelCommandInput"}
  1596. if s.CommandId == nil {
  1597. invalidParams.Add(request.NewErrParamRequired("CommandId"))
  1598. }
  1599. if s.CommandId != nil && len(*s.CommandId) < 36 {
  1600. invalidParams.Add(request.NewErrParamMinLen("CommandId", 36))
  1601. }
  1602. if s.InstanceIds != nil && len(s.InstanceIds) < 1 {
  1603. invalidParams.Add(request.NewErrParamMinLen("InstanceIds", 1))
  1604. }
  1605. if invalidParams.Len() > 0 {
  1606. return invalidParams
  1607. }
  1608. return nil
  1609. }
  1610. // Whether or not the command was successfully canceled. There is no guarantee
  1611. // that a request can be canceled.
  1612. type CancelCommandOutput struct {
  1613. _ struct{} `type:"structure"`
  1614. }
  1615. // String returns the string representation
  1616. func (s CancelCommandOutput) String() string {
  1617. return awsutil.Prettify(s)
  1618. }
  1619. // GoString returns the string representation
  1620. func (s CancelCommandOutput) GoString() string {
  1621. return s.String()
  1622. }
  1623. // Describes a command request.
  1624. type Command struct {
  1625. _ struct{} `type:"structure"`
  1626. // A unique identifier for this command.
  1627. CommandId *string `min:"36" type:"string"`
  1628. // User-specified information about the command, such as a brief description
  1629. // of what the command should do.
  1630. Comment *string `type:"string"`
  1631. // The name of the SSM document requested for execution.
  1632. DocumentName *string `type:"string"`
  1633. // If this time is reached and the command has not already started executing,
  1634. // it will not execute. Calculated based on the ExpiresAfter user input provided
  1635. // as part of the SendCommand API.
  1636. ExpiresAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
  1637. // The instance IDs against which this command was requested.
  1638. InstanceIds []*string `min:"1" type:"list"`
  1639. // Configurations for sending notifications about command status changes.
  1640. NotificationConfig *NotificationConfig `type:"structure"`
  1641. // The S3 bucket where the responses to the command executions should be stored.
  1642. // This was requested when issuing the command.
  1643. OutputS3BucketName *string `min:"3" type:"string"`
  1644. // The S3 directory path inside the bucket where the responses to the command
  1645. // executions should be stored. This was requested when issuing the command.
  1646. OutputS3KeyPrefix *string `type:"string"`
  1647. // The parameter values to be inserted in the SSM document when executing the
  1648. // command.
  1649. Parameters map[string][]*string `type:"map"`
  1650. // The date and time the command was requested.
  1651. RequestedDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  1652. // The IAM service role that SSM uses to act on your behalf when sending notifications
  1653. // about command status changes.
  1654. ServiceRole *string `type:"string"`
  1655. // The status of the command.
  1656. Status *string `type:"string" enum:"CommandStatus"`
  1657. }
  1658. // String returns the string representation
  1659. func (s Command) String() string {
  1660. return awsutil.Prettify(s)
  1661. }
  1662. // GoString returns the string representation
  1663. func (s Command) GoString() string {
  1664. return s.String()
  1665. }
  1666. // Describes a command filter.
  1667. type CommandFilter struct {
  1668. _ struct{} `type:"structure"`
  1669. // The name of the filter. For example, requested date and time.
  1670. Key *string `locationName:"key" type:"string" required:"true" enum:"CommandFilterKey"`
  1671. // The filter value. For example: June 30, 2015.
  1672. Value *string `locationName:"value" min:"1" type:"string" required:"true"`
  1673. }
  1674. // String returns the string representation
  1675. func (s CommandFilter) String() string {
  1676. return awsutil.Prettify(s)
  1677. }
  1678. // GoString returns the string representation
  1679. func (s CommandFilter) GoString() string {
  1680. return s.String()
  1681. }
  1682. // Validate inspects the fields of the type to determine if they are valid.
  1683. func (s *CommandFilter) Validate() error {
  1684. invalidParams := request.ErrInvalidParams{Context: "CommandFilter"}
  1685. if s.Key == nil {
  1686. invalidParams.Add(request.NewErrParamRequired("Key"))
  1687. }
  1688. if s.Value == nil {
  1689. invalidParams.Add(request.NewErrParamRequired("Value"))
  1690. }
  1691. if s.Value != nil && len(*s.Value) < 1 {
  1692. invalidParams.Add(request.NewErrParamMinLen("Value", 1))
  1693. }
  1694. if invalidParams.Len() > 0 {
  1695. return invalidParams
  1696. }
  1697. return nil
  1698. }
  1699. // An invocation is copy of a command sent to a specific instance. A command
  1700. // can apply to one or more instances. A command invocation applies to one instance.
  1701. // For example, if a user executes SendCommand against three instances, then
  1702. // a command invocation is created for each requested instance ID. A command
  1703. // invocation returns status and detail information about a command you executed.
  1704. type CommandInvocation struct {
  1705. _ struct{} `type:"structure"`
  1706. // The command against which this invocation was requested.
  1707. CommandId *string `min:"36" type:"string"`
  1708. CommandPlugins []*CommandPlugin `type:"list"`
  1709. // User-specified information about the command, such as a brief description
  1710. // of what the command should do.
  1711. Comment *string `type:"string"`
  1712. // The document name that was requested for execution.
  1713. DocumentName *string `type:"string"`
  1714. // The instance ID in which this invocation was requested.
  1715. InstanceId *string `type:"string"`
  1716. // Configurations for sending notifications about command status changes on
  1717. // a per instance basis.
  1718. NotificationConfig *NotificationConfig `type:"structure"`
  1719. // The time and date the request was sent to this instance.
  1720. RequestedDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  1721. // The IAM service role that SSM uses to act on your behalf when sending notifications
  1722. // about command status changes on a per instance basis.
  1723. ServiceRole *string `type:"string"`
  1724. // Whether or not the invocation succeeded, failed, or is pending.
  1725. Status *string `type:"string" enum:"CommandInvocationStatus"`
  1726. // Gets the trace output sent by the agent.
  1727. TraceOutput *string `type:"string"`
  1728. }
  1729. // String returns the string representation
  1730. func (s CommandInvocation) String() string {
  1731. return awsutil.Prettify(s)
  1732. }
  1733. // GoString returns the string representation
  1734. func (s CommandInvocation) GoString() string {
  1735. return s.String()
  1736. }
  1737. // Describes plugin details.
  1738. type CommandPlugin struct {
  1739. _ struct{} `type:"structure"`
  1740. // The name of the plugin. Must be one of the following: aws:updateAgent, aws:domainjoin,
  1741. // aws:applications, aws:runPowerShellScript, aws:psmodule, aws:cloudWatch,
  1742. // aws:runShellScript, or aws:updateSSMAgent.
  1743. Name *string `min:"4" type:"string"`
  1744. // Output of the plugin execution.
  1745. Output *string `type:"string"`
  1746. // The S3 bucket where the responses to the command executions should be stored.
  1747. // This was requested when issuing the command.
  1748. OutputS3BucketName *string `min:"3" type:"string"`
  1749. // The S3 directory path inside the bucket where the responses to the command
  1750. // executions should be stored. This was requested when issuing the command.
  1751. OutputS3KeyPrefix *string `type:"string"`
  1752. // A numeric response code generated after executing the plugin.
  1753. ResponseCode *int64 `type:"integer"`
  1754. // The time the plugin stopped executing. Could stop prematurely if, for example,
  1755. // a cancel command was sent.
  1756. ResponseFinishDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  1757. // The time the plugin started executing.
  1758. ResponseStartDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  1759. // The status of this plugin. You can execute a document with multiple plugins.
  1760. Status *string `type:"string" enum:"CommandPluginStatus"`
  1761. }
  1762. // String returns the string representation
  1763. func (s CommandPlugin) String() string {
  1764. return awsutil.Prettify(s)
  1765. }
  1766. // GoString returns the string representation
  1767. func (s CommandPlugin) GoString() string {
  1768. return s.String()
  1769. }
  1770. type CreateActivationInput struct {
  1771. _ struct{} `type:"structure"`
  1772. // The name of the registered, managed instance as it will appear in the Amazon
  1773. // EC2 console or when you use the AWS command line tools to list EC2 resources.
  1774. DefaultInstanceName *string `type:"string"`
  1775. // A user-defined description of the resource that you want to register with
  1776. // Amazon EC2.
  1777. Description *string `type:"string"`
  1778. // The date by which this activation request should expire. The default value
  1779. // is 24 hours.
  1780. ExpirationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  1781. // The Amazon Identity and Access Management (IAM) role that you want to assign
  1782. // to the managed instance.
  1783. IamRole *string `type:"string" required:"true"`
  1784. // Specify the maximum number of managed instances you want to register. The
  1785. // default value is 1 instance.
  1786. RegistrationLimit *int64 `min:"1" type:"integer"`
  1787. }
  1788. // String returns the string representation
  1789. func (s CreateActivationInput) String() string {
  1790. return awsutil.Prettify(s)
  1791. }
  1792. // GoString returns the string representation
  1793. func (s CreateActivationInput) GoString() string {
  1794. return s.String()
  1795. }
  1796. // Validate inspects the fields of the type to determine if they are valid.
  1797. func (s *CreateActivationInput) Validate() error {
  1798. invalidParams := request.ErrInvalidParams{Context: "CreateActivationInput"}
  1799. if s.IamRole == nil {
  1800. invalidParams.Add(request.NewErrParamRequired("IamRole"))
  1801. }
  1802. if s.RegistrationLimit != nil && *s.RegistrationLimit < 1 {
  1803. invalidParams.Add(request.NewErrParamMinValue("RegistrationLimit", 1))
  1804. }
  1805. if invalidParams.Len() > 0 {
  1806. return invalidParams
  1807. }
  1808. return nil
  1809. }
  1810. type CreateActivationOutput struct {
  1811. _ struct{} `type:"structure"`
  1812. // The code the system generates when it processes the activation. The activation
  1813. // code functions like a password to validate the activation ID.
  1814. ActivationCode *string `min:"20" type:"string"`
  1815. // The ID number generated by the system when it processed the activation. The
  1816. // activation ID functions like a user name.
  1817. ActivationId *string `type:"string"`
  1818. }
  1819. // String returns the string representation
  1820. func (s CreateActivationOutput) String() string {
  1821. return awsutil.Prettify(s)
  1822. }
  1823. // GoString returns the string representation
  1824. func (s CreateActivationOutput) GoString() string {
  1825. return s.String()
  1826. }
  1827. type CreateAssociationBatchInput struct {
  1828. _ struct{} `type:"structure"`
  1829. // One or more associations.
  1830. Entries []*CreateAssociationBatchRequestEntry `locationNameList:"entries" type:"list" required:"true"`
  1831. }
  1832. // String returns the string representation
  1833. func (s CreateAssociationBatchInput) String() string {
  1834. return awsutil.Prettify(s)
  1835. }
  1836. // GoString returns the string representation
  1837. func (s CreateAssociationBatchInput) GoString() string {
  1838. return s.String()
  1839. }
  1840. // Validate inspects the fields of the type to determine if they are valid.
  1841. func (s *CreateAssociationBatchInput) Validate() error {
  1842. invalidParams := request.ErrInvalidParams{Context: "CreateAssociationBatchInput"}
  1843. if s.Entries == nil {
  1844. invalidParams.Add(request.NewErrParamRequired("Entries"))
  1845. }
  1846. if invalidParams.Len() > 0 {
  1847. return invalidParams
  1848. }
  1849. return nil
  1850. }
  1851. type CreateAssociationBatchOutput struct {
  1852. _ struct{} `type:"structure"`
  1853. // Information about the associations that failed.
  1854. Failed []*FailedCreateAssociation `locationNameList:"FailedCreateAssociationEntry" type:"list"`
  1855. // Information about the associations that succeeded.
  1856. Successful []*AssociationDescription `locationNameList:"AssociationDescription" type:"list"`
  1857. }
  1858. // String returns the string representation
  1859. func (s CreateAssociationBatchOutput) String() string {
  1860. return awsutil.Prettify(s)
  1861. }
  1862. // GoString returns the string representation
  1863. func (s CreateAssociationBatchOutput) GoString() string {
  1864. return s.String()
  1865. }
  1866. // Describes the association of an SSM document and an instance.
  1867. type CreateAssociationBatchRequestEntry struct {
  1868. _ struct{} `type:"structure"`
  1869. // The ID of the instance.
  1870. InstanceId *string `type:"string"`
  1871. // The name of the configuration document.
  1872. Name *string `type:"string"`
  1873. // A description of the parameters for a document.
  1874. Parameters map[string][]*string `type:"map"`
  1875. }
  1876. // String returns the string representation
  1877. func (s CreateAssociationBatchRequestEntry) String() string {
  1878. return awsutil.Prettify(s)
  1879. }
  1880. // GoString returns the string representation
  1881. func (s CreateAssociationBatchRequestEntry) GoString() string {
  1882. return s.String()
  1883. }
  1884. type CreateAssociationInput struct {
  1885. _ struct{} `type:"structure"`
  1886. // The instance ID.
  1887. InstanceId *string `type:"string" required:"true"`
  1888. // The name of the SSM document.
  1889. Name *string `type:"string" required:"true"`
  1890. // The parameters for the documents runtime configuration.
  1891. Parameters map[string][]*string `type:"map"`
  1892. }
  1893. // String returns the string representation
  1894. func (s CreateAssociationInput) String() string {
  1895. return awsutil.Prettify(s)
  1896. }
  1897. // GoString returns the string representation
  1898. func (s CreateAssociationInput) GoString() string {
  1899. return s.String()
  1900. }
  1901. // Validate inspects the fields of the type to determine if they are valid.
  1902. func (s *CreateAssociationInput) Validate() error {
  1903. invalidParams := request.ErrInvalidParams{Context: "CreateAssociationInput"}
  1904. if s.InstanceId == nil {
  1905. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  1906. }
  1907. if s.Name == nil {
  1908. invalidParams.Add(request.NewErrParamRequired("Name"))
  1909. }
  1910. if invalidParams.Len() > 0 {
  1911. return invalidParams
  1912. }
  1913. return nil
  1914. }
  1915. type CreateAssociationOutput struct {
  1916. _ struct{} `type:"structure"`
  1917. // Information about the association.
  1918. AssociationDescription *AssociationDescription `type:"structure"`
  1919. }
  1920. // String returns the string representation
  1921. func (s CreateAssociationOutput) String() string {
  1922. return awsutil.Prettify(s)
  1923. }
  1924. // GoString returns the string representation
  1925. func (s CreateAssociationOutput) GoString() string {
  1926. return s.String()
  1927. }
  1928. type CreateDocumentInput struct {
  1929. _ struct{} `type:"structure"`
  1930. // A valid JSON string.
  1931. Content *string `min:"1" type:"string" required:"true"`
  1932. // A name for the SSM document.
  1933. Name *string `type:"string" required:"true"`
  1934. }
  1935. // String returns the string representation
  1936. func (s CreateDocumentInput) String() string {
  1937. return awsutil.Prettify(s)
  1938. }
  1939. // GoString returns the string representation
  1940. func (s CreateDocumentInput) GoString() string {
  1941. return s.String()
  1942. }
  1943. // Validate inspects the fields of the type to determine if they are valid.
  1944. func (s *CreateDocumentInput) Validate() error {
  1945. invalidParams := request.ErrInvalidParams{Context: "CreateDocumentInput"}
  1946. if s.Content == nil {
  1947. invalidParams.Add(request.NewErrParamRequired("Content"))
  1948. }
  1949. if s.Content != nil && len(*s.Content) < 1 {
  1950. invalidParams.Add(request.NewErrParamMinLen("Content", 1))
  1951. }
  1952. if s.Name == nil {
  1953. invalidParams.Add(request.NewErrParamRequired("Name"))
  1954. }
  1955. if invalidParams.Len() > 0 {
  1956. return invalidParams
  1957. }
  1958. return nil
  1959. }
  1960. type CreateDocumentOutput struct {
  1961. _ struct{} `type:"structure"`
  1962. // Information about the SSM document.
  1963. DocumentDescription *DocumentDescription `type:"structure"`
  1964. }
  1965. // String returns the string representation
  1966. func (s CreateDocumentOutput) String() string {
  1967. return awsutil.Prettify(s)
  1968. }
  1969. // GoString returns the string representation
  1970. func (s CreateDocumentOutput) GoString() string {
  1971. return s.String()
  1972. }
  1973. type DeleteActivationInput struct {
  1974. _ struct{} `type:"structure"`
  1975. // The ID of the activation that you want to delete.
  1976. ActivationId *string `type:"string" required:"true"`
  1977. }
  1978. // String returns the string representation
  1979. func (s DeleteActivationInput) String() string {
  1980. return awsutil.Prettify(s)
  1981. }
  1982. // GoString returns the string representation
  1983. func (s DeleteActivationInput) GoString() string {
  1984. return s.String()
  1985. }
  1986. // Validate inspects the fields of the type to determine if they are valid.
  1987. func (s *DeleteActivationInput) Validate() error {
  1988. invalidParams := request.ErrInvalidParams{Context: "DeleteActivationInput"}
  1989. if s.ActivationId == nil {
  1990. invalidParams.Add(request.NewErrParamRequired("ActivationId"))
  1991. }
  1992. if invalidParams.Len() > 0 {
  1993. return invalidParams
  1994. }
  1995. return nil
  1996. }
  1997. type DeleteActivationOutput struct {
  1998. _ struct{} `type:"structure"`
  1999. }
  2000. // String returns the string representation
  2001. func (s DeleteActivationOutput) String() string {
  2002. return awsutil.Prettify(s)
  2003. }
  2004. // GoString returns the string representation
  2005. func (s DeleteActivationOutput) GoString() string {
  2006. return s.String()
  2007. }
  2008. type DeleteAssociationInput struct {
  2009. _ struct{} `type:"structure"`
  2010. // The ID of the instance.
  2011. InstanceId *string `type:"string" required:"true"`
  2012. // The name of the SSM document.
  2013. Name *string `type:"string" required:"true"`
  2014. }
  2015. // String returns the string representation
  2016. func (s DeleteAssociationInput) String() string {
  2017. return awsutil.Prettify(s)
  2018. }
  2019. // GoString returns the string representation
  2020. func (s DeleteAssociationInput) GoString() string {
  2021. return s.String()
  2022. }
  2023. // Validate inspects the fields of the type to determine if they are valid.
  2024. func (s *DeleteAssociationInput) Validate() error {
  2025. invalidParams := request.ErrInvalidParams{Context: "DeleteAssociationInput"}
  2026. if s.InstanceId == nil {
  2027. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  2028. }
  2029. if s.Name == nil {
  2030. invalidParams.Add(request.NewErrParamRequired("Name"))
  2031. }
  2032. if invalidParams.Len() > 0 {
  2033. return invalidParams
  2034. }
  2035. return nil
  2036. }
  2037. type DeleteAssociationOutput struct {
  2038. _ struct{} `type:"structure"`
  2039. }
  2040. // String returns the string representation
  2041. func (s DeleteAssociationOutput) String() string {
  2042. return awsutil.Prettify(s)
  2043. }
  2044. // GoString returns the string representation
  2045. func (s DeleteAssociationOutput) GoString() string {
  2046. return s.String()
  2047. }
  2048. type DeleteDocumentInput struct {
  2049. _ struct{} `type:"structure"`
  2050. // The name of the SSM document.
  2051. Name *string `type:"string" required:"true"`
  2052. }
  2053. // String returns the string representation
  2054. func (s DeleteDocumentInput) String() string {
  2055. return awsutil.Prettify(s)
  2056. }
  2057. // GoString returns the string representation
  2058. func (s DeleteDocumentInput) GoString() string {
  2059. return s.String()
  2060. }
  2061. // Validate inspects the fields of the type to determine if they are valid.
  2062. func (s *DeleteDocumentInput) Validate() error {
  2063. invalidParams := request.ErrInvalidParams{Context: "DeleteDocumentInput"}
  2064. if s.Name == nil {
  2065. invalidParams.Add(request.NewErrParamRequired("Name"))
  2066. }
  2067. if invalidParams.Len() > 0 {
  2068. return invalidParams
  2069. }
  2070. return nil
  2071. }
  2072. type DeleteDocumentOutput struct {
  2073. _ struct{} `type:"structure"`
  2074. }
  2075. // String returns the string representation
  2076. func (s DeleteDocumentOutput) String() string {
  2077. return awsutil.Prettify(s)
  2078. }
  2079. // GoString returns the string representation
  2080. func (s DeleteDocumentOutput) GoString() string {
  2081. return s.String()
  2082. }
  2083. type DeregisterManagedInstanceInput struct {
  2084. _ struct{} `type:"structure"`
  2085. // The ID assigned to the managed instance when you registered it using the
  2086. // activation process.
  2087. InstanceId *string `type:"string" required:"true"`
  2088. }
  2089. // String returns the string representation
  2090. func (s DeregisterManagedInstanceInput) String() string {
  2091. return awsutil.Prettify(s)
  2092. }
  2093. // GoString returns the string representation
  2094. func (s DeregisterManagedInstanceInput) GoString() string {
  2095. return s.String()
  2096. }
  2097. // Validate inspects the fields of the type to determine if they are valid.
  2098. func (s *DeregisterManagedInstanceInput) Validate() error {
  2099. invalidParams := request.ErrInvalidParams{Context: "DeregisterManagedInstanceInput"}
  2100. if s.InstanceId == nil {
  2101. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  2102. }
  2103. if invalidParams.Len() > 0 {
  2104. return invalidParams
  2105. }
  2106. return nil
  2107. }
  2108. type DeregisterManagedInstanceOutput struct {
  2109. _ struct{} `type:"structure"`
  2110. }
  2111. // String returns the string representation
  2112. func (s DeregisterManagedInstanceOutput) String() string {
  2113. return awsutil.Prettify(s)
  2114. }
  2115. // GoString returns the string representation
  2116. func (s DeregisterManagedInstanceOutput) GoString() string {
  2117. return s.String()
  2118. }
  2119. // Filter for the DescribeActivation API.
  2120. type DescribeActivationsFilter struct {
  2121. _ struct{} `type:"structure"`
  2122. // The name of the filter.
  2123. FilterKey *string `type:"string" enum:"DescribeActivationsFilterKeys"`
  2124. // The filter values.
  2125. FilterValues []*string `type:"list"`
  2126. }
  2127. // String returns the string representation
  2128. func (s DescribeActivationsFilter) String() string {
  2129. return awsutil.Prettify(s)
  2130. }
  2131. // GoString returns the string representation
  2132. func (s DescribeActivationsFilter) GoString() string {
  2133. return s.String()
  2134. }
  2135. type DescribeActivationsInput struct {
  2136. _ struct{} `type:"structure"`
  2137. // A filter to view information about your activations.
  2138. Filters []*DescribeActivationsFilter `type:"list"`
  2139. // The maximum number of items to return for this call. The call also returns
  2140. // a token that you can specify in a subsequent call to get the next set of
  2141. // results.
  2142. MaxResults *int64 `min:"1" type:"integer"`
  2143. // A token to start the list. Use this token to get the next set of results.
  2144. NextToken *string `type:"string"`
  2145. }
  2146. // String returns the string representation
  2147. func (s DescribeActivationsInput) String() string {
  2148. return awsutil.Prettify(s)
  2149. }
  2150. // GoString returns the string representation
  2151. func (s DescribeActivationsInput) GoString() string {
  2152. return s.String()
  2153. }
  2154. // Validate inspects the fields of the type to determine if they are valid.
  2155. func (s *DescribeActivationsInput) Validate() error {
  2156. invalidParams := request.ErrInvalidParams{Context: "DescribeActivationsInput"}
  2157. if s.MaxResults != nil && *s.MaxResults < 1 {
  2158. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  2159. }
  2160. if invalidParams.Len() > 0 {
  2161. return invalidParams
  2162. }
  2163. return nil
  2164. }
  2165. type DescribeActivationsOutput struct {
  2166. _ struct{} `type:"structure"`
  2167. // A list of activations for your AWS account.
  2168. ActivationList []*Activation `type:"list"`
  2169. // The token for the next set of items to return. Use this token to get the
  2170. // next set of results.
  2171. NextToken *string `type:"string"`
  2172. }
  2173. // String returns the string representation
  2174. func (s DescribeActivationsOutput) String() string {
  2175. return awsutil.Prettify(s)
  2176. }
  2177. // GoString returns the string representation
  2178. func (s DescribeActivationsOutput) GoString() string {
  2179. return s.String()
  2180. }
  2181. type DescribeAssociationInput struct {
  2182. _ struct{} `type:"structure"`
  2183. // The instance ID.
  2184. InstanceId *string `type:"string" required:"true"`
  2185. // The name of the SSM document.
  2186. Name *string `type:"string" required:"true"`
  2187. }
  2188. // String returns the string representation
  2189. func (s DescribeAssociationInput) String() string {
  2190. return awsutil.Prettify(s)
  2191. }
  2192. // GoString returns the string representation
  2193. func (s DescribeAssociationInput) GoString() string {
  2194. return s.String()
  2195. }
  2196. // Validate inspects the fields of the type to determine if they are valid.
  2197. func (s *DescribeAssociationInput) Validate() error {
  2198. invalidParams := request.ErrInvalidParams{Context: "DescribeAssociationInput"}
  2199. if s.InstanceId == nil {
  2200. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  2201. }
  2202. if s.Name == nil {
  2203. invalidParams.Add(request.NewErrParamRequired("Name"))
  2204. }
  2205. if invalidParams.Len() > 0 {
  2206. return invalidParams
  2207. }
  2208. return nil
  2209. }
  2210. type DescribeAssociationOutput struct {
  2211. _ struct{} `type:"structure"`
  2212. // Information about the association.
  2213. AssociationDescription *AssociationDescription `type:"structure"`
  2214. }
  2215. // String returns the string representation
  2216. func (s DescribeAssociationOutput) String() string {
  2217. return awsutil.Prettify(s)
  2218. }
  2219. // GoString returns the string representation
  2220. func (s DescribeAssociationOutput) GoString() string {
  2221. return s.String()
  2222. }
  2223. type DescribeDocumentInput struct {
  2224. _ struct{} `type:"structure"`
  2225. // The name of the SSM document.
  2226. Name *string `type:"string" required:"true"`
  2227. }
  2228. // String returns the string representation
  2229. func (s DescribeDocumentInput) String() string {
  2230. return awsutil.Prettify(s)
  2231. }
  2232. // GoString returns the string representation
  2233. func (s DescribeDocumentInput) GoString() string {
  2234. return s.String()
  2235. }
  2236. // Validate inspects the fields of the type to determine if they are valid.
  2237. func (s *DescribeDocumentInput) Validate() error {
  2238. invalidParams := request.ErrInvalidParams{Context: "DescribeDocumentInput"}
  2239. if s.Name == nil {
  2240. invalidParams.Add(request.NewErrParamRequired("Name"))
  2241. }
  2242. if invalidParams.Len() > 0 {
  2243. return invalidParams
  2244. }
  2245. return nil
  2246. }
  2247. type DescribeDocumentOutput struct {
  2248. _ struct{} `type:"structure"`
  2249. // Information about the SSM document.
  2250. Document *DocumentDescription `type:"structure"`
  2251. }
  2252. // String returns the string representation
  2253. func (s DescribeDocumentOutput) String() string {
  2254. return awsutil.Prettify(s)
  2255. }
  2256. // GoString returns the string representation
  2257. func (s DescribeDocumentOutput) GoString() string {
  2258. return s.String()
  2259. }
  2260. type DescribeDocumentPermissionInput struct {
  2261. _ struct{} `type:"structure"`
  2262. // The name of the document for which you are the owner.
  2263. Name *string `type:"string" required:"true"`
  2264. // The permission type for the document. The permission type can be Share.
  2265. PermissionType *string `type:"string" required:"true" enum:"DocumentPermissionType"`
  2266. }
  2267. // String returns the string representation
  2268. func (s DescribeDocumentPermissionInput) String() string {
  2269. return awsutil.Prettify(s)
  2270. }
  2271. // GoString returns the string representation
  2272. func (s DescribeDocumentPermissionInput) GoString() string {
  2273. return s.String()
  2274. }
  2275. // Validate inspects the fields of the type to determine if they are valid.
  2276. func (s *DescribeDocumentPermissionInput) Validate() error {
  2277. invalidParams := request.ErrInvalidParams{Context: "DescribeDocumentPermissionInput"}
  2278. if s.Name == nil {
  2279. invalidParams.Add(request.NewErrParamRequired("Name"))
  2280. }
  2281. if s.PermissionType == nil {
  2282. invalidParams.Add(request.NewErrParamRequired("PermissionType"))
  2283. }
  2284. if invalidParams.Len() > 0 {
  2285. return invalidParams
  2286. }
  2287. return nil
  2288. }
  2289. type DescribeDocumentPermissionOutput struct {
  2290. _ struct{} `type:"structure"`
  2291. // The account IDs that have permission to use this document. The ID can be
  2292. // either an AWS account or All.
  2293. AccountIds []*string `locationNameList:"AccountId" type:"list"`
  2294. }
  2295. // String returns the string representation
  2296. func (s DescribeDocumentPermissionOutput) String() string {
  2297. return awsutil.Prettify(s)
  2298. }
  2299. // GoString returns the string representation
  2300. func (s DescribeDocumentPermissionOutput) GoString() string {
  2301. return s.String()
  2302. }
  2303. type DescribeInstanceInformationInput struct {
  2304. _ struct{} `type:"structure"`
  2305. // One or more filters. Use a filter to return a more specific list of instances.
  2306. InstanceInformationFilterList []*InstanceInformationFilter `locationNameList:"InstanceInformationFilter" min:"1" type:"list"`
  2307. // The maximum number of items to return for this call. The call also returns
  2308. // a token that you can specify in a subsequent call to get the next set of
  2309. // results.
  2310. MaxResults *int64 `min:"5" type:"integer"`
  2311. // The token for the next set of items to return. (You received this token from
  2312. // a previous call.)
  2313. NextToken *string `type:"string"`
  2314. }
  2315. // String returns the string representation
  2316. func (s DescribeInstanceInformationInput) String() string {
  2317. return awsutil.Prettify(s)
  2318. }
  2319. // GoString returns the string representation
  2320. func (s DescribeInstanceInformationInput) GoString() string {
  2321. return s.String()
  2322. }
  2323. // Validate inspects the fields of the type to determine if they are valid.
  2324. func (s *DescribeInstanceInformationInput) Validate() error {
  2325. invalidParams := request.ErrInvalidParams{Context: "DescribeInstanceInformationInput"}
  2326. if s.InstanceInformationFilterList != nil && len(s.InstanceInformationFilterList) < 1 {
  2327. invalidParams.Add(request.NewErrParamMinLen("InstanceInformationFilterList", 1))
  2328. }
  2329. if s.MaxResults != nil && *s.MaxResults < 5 {
  2330. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  2331. }
  2332. if s.InstanceInformationFilterList != nil {
  2333. for i, v := range s.InstanceInformationFilterList {
  2334. if v == nil {
  2335. continue
  2336. }
  2337. if err := v.Validate(); err != nil {
  2338. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InstanceInformationFilterList", i), err.(request.ErrInvalidParams))
  2339. }
  2340. }
  2341. }
  2342. if invalidParams.Len() > 0 {
  2343. return invalidParams
  2344. }
  2345. return nil
  2346. }
  2347. type DescribeInstanceInformationOutput struct {
  2348. _ struct{} `type:"structure"`
  2349. // The instance information list.
  2350. InstanceInformationList []*InstanceInformation `locationNameList:"InstanceInformation" type:"list"`
  2351. // The token to use when requesting the next set of items. If there are no additional
  2352. // items to return, the string is empty.
  2353. NextToken *string `type:"string"`
  2354. }
  2355. // String returns the string representation
  2356. func (s DescribeInstanceInformationOutput) String() string {
  2357. return awsutil.Prettify(s)
  2358. }
  2359. // GoString returns the string representation
  2360. func (s DescribeInstanceInformationOutput) GoString() string {
  2361. return s.String()
  2362. }
  2363. // Describes an SSM document.
  2364. type DocumentDescription struct {
  2365. _ struct{} `type:"structure"`
  2366. // The date when the SSM document was created.
  2367. CreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  2368. // A description of the document.
  2369. Description *string `type:"string"`
  2370. // The Sha256 or Sha1 hash created by the system when the document was created.
  2371. //
  2372. // Sha1 hashes have been deprecated.
  2373. Hash *string `type:"string"`
  2374. // Sha256 or Sha1.
  2375. //
  2376. // Sha1 hashes have been deprecated.
  2377. HashType *string `type:"string" enum:"DocumentHashType"`
  2378. // The name of the SSM document.
  2379. Name *string `type:"string"`
  2380. // The AWS user account of the person who created the document.
  2381. Owner *string `type:"string"`
  2382. // A description of the parameters for a document.
  2383. Parameters []*DocumentParameter `locationNameList:"DocumentParameter" type:"list"`
  2384. // The list of OS platforms compatible with this SSM document.
  2385. PlatformTypes []*string `locationNameList:"PlatformType" type:"list"`
  2386. // The SHA1 hash of the document, which you can use for verification purposes.
  2387. Sha1 *string `type:"string"`
  2388. // The status of the SSM document.
  2389. Status *string `type:"string" enum:"DocumentStatus"`
  2390. }
  2391. // String returns the string representation
  2392. func (s DocumentDescription) String() string {
  2393. return awsutil.Prettify(s)
  2394. }
  2395. // GoString returns the string representation
  2396. func (s DocumentDescription) GoString() string {
  2397. return s.String()
  2398. }
  2399. // Describes a filter.
  2400. type DocumentFilter struct {
  2401. _ struct{} `type:"structure"`
  2402. // The name of the filter.
  2403. Key *string `locationName:"key" type:"string" required:"true" enum:"DocumentFilterKey"`
  2404. // The value of the filter.
  2405. Value *string `locationName:"value" min:"1" type:"string" required:"true"`
  2406. }
  2407. // String returns the string representation
  2408. func (s DocumentFilter) String() string {
  2409. return awsutil.Prettify(s)
  2410. }
  2411. // GoString returns the string representation
  2412. func (s DocumentFilter) GoString() string {
  2413. return s.String()
  2414. }
  2415. // Validate inspects the fields of the type to determine if they are valid.
  2416. func (s *DocumentFilter) Validate() error {
  2417. invalidParams := request.ErrInvalidParams{Context: "DocumentFilter"}
  2418. if s.Key == nil {
  2419. invalidParams.Add(request.NewErrParamRequired("Key"))
  2420. }
  2421. if s.Value == nil {
  2422. invalidParams.Add(request.NewErrParamRequired("Value"))
  2423. }
  2424. if s.Value != nil && len(*s.Value) < 1 {
  2425. invalidParams.Add(request.NewErrParamMinLen("Value", 1))
  2426. }
  2427. if invalidParams.Len() > 0 {
  2428. return invalidParams
  2429. }
  2430. return nil
  2431. }
  2432. // Describes the name of an SSM document.
  2433. type DocumentIdentifier struct {
  2434. _ struct{} `type:"structure"`
  2435. // The name of the SSM document.
  2436. Name *string `type:"string"`
  2437. // The AWS user account of the person who created the document.
  2438. Owner *string `type:"string"`
  2439. // The operating system platform.
  2440. PlatformTypes []*string `locationNameList:"PlatformType" type:"list"`
  2441. }
  2442. // String returns the string representation
  2443. func (s DocumentIdentifier) String() string {
  2444. return awsutil.Prettify(s)
  2445. }
  2446. // GoString returns the string representation
  2447. func (s DocumentIdentifier) GoString() string {
  2448. return s.String()
  2449. }
  2450. // Parameters specified in the SSM document that execute on the server when
  2451. // the command is run.
  2452. type DocumentParameter struct {
  2453. _ struct{} `type:"structure"`
  2454. // If specified, the default values for the parameters. Parameters without a
  2455. // default value are required. Parameters with a default value are optional.
  2456. DefaultValue *string `type:"string"`
  2457. // A description of what the parameter does, how to use it, the default value,
  2458. // and whether or not the parameter is optional.
  2459. Description *string `type:"string"`
  2460. // The name of the parameter.
  2461. Name *string `type:"string"`
  2462. // The type of parameter. The type can be either “String” or “StringList”.
  2463. Type *string `type:"string" enum:"DocumentParameterType"`
  2464. }
  2465. // String returns the string representation
  2466. func (s DocumentParameter) String() string {
  2467. return awsutil.Prettify(s)
  2468. }
  2469. // GoString returns the string representation
  2470. func (s DocumentParameter) GoString() string {
  2471. return s.String()
  2472. }
  2473. // Describes a failed association.
  2474. type FailedCreateAssociation struct {
  2475. _ struct{} `type:"structure"`
  2476. // The association.
  2477. Entry *CreateAssociationBatchRequestEntry `type:"structure"`
  2478. // The source of the failure.
  2479. Fault *string `type:"string" enum:"Fault"`
  2480. // A description of the failure.
  2481. Message *string `type:"string"`
  2482. }
  2483. // String returns the string representation
  2484. func (s FailedCreateAssociation) String() string {
  2485. return awsutil.Prettify(s)
  2486. }
  2487. // GoString returns the string representation
  2488. func (s FailedCreateAssociation) GoString() string {
  2489. return s.String()
  2490. }
  2491. type GetDocumentInput struct {
  2492. _ struct{} `type:"structure"`
  2493. // The name of the SSM document.
  2494. Name *string `type:"string" required:"true"`
  2495. }
  2496. // String returns the string representation
  2497. func (s GetDocumentInput) String() string {
  2498. return awsutil.Prettify(s)
  2499. }
  2500. // GoString returns the string representation
  2501. func (s GetDocumentInput) GoString() string {
  2502. return s.String()
  2503. }
  2504. // Validate inspects the fields of the type to determine if they are valid.
  2505. func (s *GetDocumentInput) Validate() error {
  2506. invalidParams := request.ErrInvalidParams{Context: "GetDocumentInput"}
  2507. if s.Name == nil {
  2508. invalidParams.Add(request.NewErrParamRequired("Name"))
  2509. }
  2510. if invalidParams.Len() > 0 {
  2511. return invalidParams
  2512. }
  2513. return nil
  2514. }
  2515. type GetDocumentOutput struct {
  2516. _ struct{} `type:"structure"`
  2517. // The contents of the SSM document.
  2518. Content *string `min:"1" type:"string"`
  2519. // The name of the SSM document.
  2520. Name *string `type:"string"`
  2521. }
  2522. // String returns the string representation
  2523. func (s GetDocumentOutput) String() string {
  2524. return awsutil.Prettify(s)
  2525. }
  2526. // GoString returns the string representation
  2527. func (s GetDocumentOutput) GoString() string {
  2528. return s.String()
  2529. }
  2530. // Describes a filter for a specific list of instances.
  2531. type InstanceInformation struct {
  2532. _ struct{} `type:"structure"`
  2533. // The activation ID created by SSM when the server or VM was registered.
  2534. ActivationId *string `type:"string"`
  2535. // The version of the SSM agent running on your instance.
  2536. AgentVersion *string `type:"string"`
  2537. // The fully qualified host name of the managed instance.
  2538. ComputerName *string `min:"1" type:"string"`
  2539. // The IP address of the managed instance.
  2540. IPAddress *string `min:"1" type:"string"`
  2541. // The Amazon Identity and Access Management (IAM) role assigned to EC2 instances
  2542. // or managed instances.
  2543. IamRole *string `type:"string"`
  2544. // The instance ID.
  2545. InstanceId *string `type:"string"`
  2546. // Indicates whether latest version of the SSM agent is running on your instance.
  2547. IsLatestVersion *bool `type:"boolean"`
  2548. // The date and time when agent last pinged SSM service.
  2549. LastPingDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  2550. // The name of the managed instance.
  2551. Name *string `type:"string"`
  2552. // Connection status of the SSM agent.
  2553. PingStatus *string `type:"string" enum:"PingStatus"`
  2554. // The name of the operating system platform running on your instance.
  2555. PlatformName *string `type:"string"`
  2556. // The operating system platform type.
  2557. PlatformType *string `type:"string" enum:"PlatformType"`
  2558. // The version of the OS platform running on your instance.
  2559. PlatformVersion *string `type:"string"`
  2560. // The date the server or VM was registered with AWS as a managed instance.
  2561. RegistrationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  2562. // The type of instance. Instances are either EC2 instances or managed instances.
  2563. ResourceType *string `type:"string" enum:"ResourceType"`
  2564. }
  2565. // String returns the string representation
  2566. func (s InstanceInformation) String() string {
  2567. return awsutil.Prettify(s)
  2568. }
  2569. // GoString returns the string representation
  2570. func (s InstanceInformation) GoString() string {
  2571. return s.String()
  2572. }
  2573. // Describes a filter for a specific list of instances.
  2574. type InstanceInformationFilter struct {
  2575. _ struct{} `type:"structure"`
  2576. // The name of the filter.
  2577. Key *string `locationName:"key" type:"string" required:"true" enum:"InstanceInformationFilterKey"`
  2578. // The filter values.
  2579. ValueSet []*string `locationName:"valueSet" locationNameList:"InstanceInformationFilterValue" min:"1" type:"list" required:"true"`
  2580. }
  2581. // String returns the string representation
  2582. func (s InstanceInformationFilter) String() string {
  2583. return awsutil.Prettify(s)
  2584. }
  2585. // GoString returns the string representation
  2586. func (s InstanceInformationFilter) GoString() string {
  2587. return s.String()
  2588. }
  2589. // Validate inspects the fields of the type to determine if they are valid.
  2590. func (s *InstanceInformationFilter) Validate() error {
  2591. invalidParams := request.ErrInvalidParams{Context: "InstanceInformationFilter"}
  2592. if s.Key == nil {
  2593. invalidParams.Add(request.NewErrParamRequired("Key"))
  2594. }
  2595. if s.ValueSet == nil {
  2596. invalidParams.Add(request.NewErrParamRequired("ValueSet"))
  2597. }
  2598. if s.ValueSet != nil && len(s.ValueSet) < 1 {
  2599. invalidParams.Add(request.NewErrParamMinLen("ValueSet", 1))
  2600. }
  2601. if invalidParams.Len() > 0 {
  2602. return invalidParams
  2603. }
  2604. return nil
  2605. }
  2606. type ListAssociationsInput struct {
  2607. _ struct{} `type:"structure"`
  2608. // One or more filters. Use a filter to return a more specific list of results.
  2609. AssociationFilterList []*AssociationFilter `locationNameList:"AssociationFilter" min:"1" type:"list" required:"true"`
  2610. // The maximum number of items to return for this call. The call also returns
  2611. // a token that you can specify in a subsequent call to get the next set of
  2612. // results.
  2613. MaxResults *int64 `min:"1" type:"integer"`
  2614. // The token for the next set of items to return. (You received this token from
  2615. // a previous call.)
  2616. NextToken *string `type:"string"`
  2617. }
  2618. // String returns the string representation
  2619. func (s ListAssociationsInput) String() string {
  2620. return awsutil.Prettify(s)
  2621. }
  2622. // GoString returns the string representation
  2623. func (s ListAssociationsInput) GoString() string {
  2624. return s.String()
  2625. }
  2626. // Validate inspects the fields of the type to determine if they are valid.
  2627. func (s *ListAssociationsInput) Validate() error {
  2628. invalidParams := request.ErrInvalidParams{Context: "ListAssociationsInput"}
  2629. if s.AssociationFilterList == nil {
  2630. invalidParams.Add(request.NewErrParamRequired("AssociationFilterList"))
  2631. }
  2632. if s.AssociationFilterList != nil && len(s.AssociationFilterList) < 1 {
  2633. invalidParams.Add(request.NewErrParamMinLen("AssociationFilterList", 1))
  2634. }
  2635. if s.MaxResults != nil && *s.MaxResults < 1 {
  2636. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  2637. }
  2638. if s.AssociationFilterList != nil {
  2639. for i, v := range s.AssociationFilterList {
  2640. if v == nil {
  2641. continue
  2642. }
  2643. if err := v.Validate(); err != nil {
  2644. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AssociationFilterList", i), err.(request.ErrInvalidParams))
  2645. }
  2646. }
  2647. }
  2648. if invalidParams.Len() > 0 {
  2649. return invalidParams
  2650. }
  2651. return nil
  2652. }
  2653. type ListAssociationsOutput struct {
  2654. _ struct{} `type:"structure"`
  2655. // The associations.
  2656. Associations []*Association `locationNameList:"Association" type:"list"`
  2657. // The token to use when requesting the next set of items. If there are no additional
  2658. // items to return, the string is empty.
  2659. NextToken *string `type:"string"`
  2660. }
  2661. // String returns the string representation
  2662. func (s ListAssociationsOutput) String() string {
  2663. return awsutil.Prettify(s)
  2664. }
  2665. // GoString returns the string representation
  2666. func (s ListAssociationsOutput) GoString() string {
  2667. return s.String()
  2668. }
  2669. type ListCommandInvocationsInput struct {
  2670. _ struct{} `type:"structure"`
  2671. // (Optional) The invocations for a specific command ID.
  2672. CommandId *string `min:"36" type:"string"`
  2673. // (Optional) If set this returns the response of the command executions and
  2674. // any command output. By default this is set to False.
  2675. Details *bool `type:"boolean"`
  2676. // (Optional) One or more filters. Use a filter to return a more specific list
  2677. // of results.
  2678. Filters []*CommandFilter `min:"1" type:"list"`
  2679. // (Optional) The command execution details for a specific instance ID.
  2680. InstanceId *string `type:"string"`
  2681. // (Optional) The maximum number of items to return for this call. The call
  2682. // also returns a token that you can specify in a subsequent call to get the
  2683. // next set of results.
  2684. MaxResults *int64 `min:"1" type:"integer"`
  2685. // (Optional) The token for the next set of items to return. (You received this
  2686. // token from a previous call.)
  2687. NextToken *string `type:"string"`
  2688. }
  2689. // String returns the string representation
  2690. func (s ListCommandInvocationsInput) String() string {
  2691. return awsutil.Prettify(s)
  2692. }
  2693. // GoString returns the string representation
  2694. func (s ListCommandInvocationsInput) GoString() string {
  2695. return s.String()
  2696. }
  2697. // Validate inspects the fields of the type to determine if they are valid.
  2698. func (s *ListCommandInvocationsInput) Validate() error {
  2699. invalidParams := request.ErrInvalidParams{Context: "ListCommandInvocationsInput"}
  2700. if s.CommandId != nil && len(*s.CommandId) < 36 {
  2701. invalidParams.Add(request.NewErrParamMinLen("CommandId", 36))
  2702. }
  2703. if s.Filters != nil && len(s.Filters) < 1 {
  2704. invalidParams.Add(request.NewErrParamMinLen("Filters", 1))
  2705. }
  2706. if s.MaxResults != nil && *s.MaxResults < 1 {
  2707. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  2708. }
  2709. if s.Filters != nil {
  2710. for i, v := range s.Filters {
  2711. if v == nil {
  2712. continue
  2713. }
  2714. if err := v.Validate(); err != nil {
  2715. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  2716. }
  2717. }
  2718. }
  2719. if invalidParams.Len() > 0 {
  2720. return invalidParams
  2721. }
  2722. return nil
  2723. }
  2724. type ListCommandInvocationsOutput struct {
  2725. _ struct{} `type:"structure"`
  2726. // (Optional) A list of all invocations.
  2727. CommandInvocations []*CommandInvocation `type:"list"`
  2728. // (Optional) The token for the next set of items to return. (You received this
  2729. // token from a previous call.)
  2730. NextToken *string `type:"string"`
  2731. }
  2732. // String returns the string representation
  2733. func (s ListCommandInvocationsOutput) String() string {
  2734. return awsutil.Prettify(s)
  2735. }
  2736. // GoString returns the string representation
  2737. func (s ListCommandInvocationsOutput) GoString() string {
  2738. return s.String()
  2739. }
  2740. type ListCommandsInput struct {
  2741. _ struct{} `type:"structure"`
  2742. // (Optional) If provided, lists only the specified command.
  2743. CommandId *string `min:"36" type:"string"`
  2744. // (Optional) One or more filters. Use a filter to return a more specific list
  2745. // of results.
  2746. Filters []*CommandFilter `min:"1" type:"list"`
  2747. // (Optional) Lists commands issued against this instance ID.
  2748. InstanceId *string `type:"string"`
  2749. // (Optional) The maximum number of items to return for this call. The call
  2750. // also returns a token that you can specify in a subsequent call to get the
  2751. // next set of results.
  2752. MaxResults *int64 `min:"1" type:"integer"`
  2753. // (Optional) The token for the next set of items to return. (You received this
  2754. // token from a previous call.)
  2755. NextToken *string `type:"string"`
  2756. }
  2757. // String returns the string representation
  2758. func (s ListCommandsInput) String() string {
  2759. return awsutil.Prettify(s)
  2760. }
  2761. // GoString returns the string representation
  2762. func (s ListCommandsInput) GoString() string {
  2763. return s.String()
  2764. }
  2765. // Validate inspects the fields of the type to determine if they are valid.
  2766. func (s *ListCommandsInput) Validate() error {
  2767. invalidParams := request.ErrInvalidParams{Context: "ListCommandsInput"}
  2768. if s.CommandId != nil && len(*s.CommandId) < 36 {
  2769. invalidParams.Add(request.NewErrParamMinLen("CommandId", 36))
  2770. }
  2771. if s.Filters != nil && len(s.Filters) < 1 {
  2772. invalidParams.Add(request.NewErrParamMinLen("Filters", 1))
  2773. }
  2774. if s.MaxResults != nil && *s.MaxResults < 1 {
  2775. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  2776. }
  2777. if s.Filters != nil {
  2778. for i, v := range s.Filters {
  2779. if v == nil {
  2780. continue
  2781. }
  2782. if err := v.Validate(); err != nil {
  2783. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  2784. }
  2785. }
  2786. }
  2787. if invalidParams.Len() > 0 {
  2788. return invalidParams
  2789. }
  2790. return nil
  2791. }
  2792. type ListCommandsOutput struct {
  2793. _ struct{} `type:"structure"`
  2794. // (Optional) The list of commands requested by the user.
  2795. Commands []*Command `type:"list"`
  2796. // (Optional) The token for the next set of items to return. (You received this
  2797. // token from a previous call.)
  2798. NextToken *string `type:"string"`
  2799. }
  2800. // String returns the string representation
  2801. func (s ListCommandsOutput) String() string {
  2802. return awsutil.Prettify(s)
  2803. }
  2804. // GoString returns the string representation
  2805. func (s ListCommandsOutput) GoString() string {
  2806. return s.String()
  2807. }
  2808. type ListDocumentsInput struct {
  2809. _ struct{} `type:"structure"`
  2810. // One or more filters. Use a filter to return a more specific list of results.
  2811. DocumentFilterList []*DocumentFilter `locationNameList:"DocumentFilter" min:"1" type:"list"`
  2812. // The maximum number of items to return for this call. The call also returns
  2813. // a token that you can specify in a subsequent call to get the next set of
  2814. // results.
  2815. MaxResults *int64 `min:"1" type:"integer"`
  2816. // The token for the next set of items to return. (You received this token from
  2817. // a previous call.)
  2818. NextToken *string `type:"string"`
  2819. }
  2820. // String returns the string representation
  2821. func (s ListDocumentsInput) String() string {
  2822. return awsutil.Prettify(s)
  2823. }
  2824. // GoString returns the string representation
  2825. func (s ListDocumentsInput) GoString() string {
  2826. return s.String()
  2827. }
  2828. // Validate inspects the fields of the type to determine if they are valid.
  2829. func (s *ListDocumentsInput) Validate() error {
  2830. invalidParams := request.ErrInvalidParams{Context: "ListDocumentsInput"}
  2831. if s.DocumentFilterList != nil && len(s.DocumentFilterList) < 1 {
  2832. invalidParams.Add(request.NewErrParamMinLen("DocumentFilterList", 1))
  2833. }
  2834. if s.MaxResults != nil && *s.MaxResults < 1 {
  2835. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  2836. }
  2837. if s.DocumentFilterList != nil {
  2838. for i, v := range s.DocumentFilterList {
  2839. if v == nil {
  2840. continue
  2841. }
  2842. if err := v.Validate(); err != nil {
  2843. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DocumentFilterList", i), err.(request.ErrInvalidParams))
  2844. }
  2845. }
  2846. }
  2847. if invalidParams.Len() > 0 {
  2848. return invalidParams
  2849. }
  2850. return nil
  2851. }
  2852. type ListDocumentsOutput struct {
  2853. _ struct{} `type:"structure"`
  2854. // The names of the SSM documents.
  2855. DocumentIdentifiers []*DocumentIdentifier `locationNameList:"DocumentIdentifier" type:"list"`
  2856. // The token to use when requesting the next set of items. If there are no additional
  2857. // items to return, the string is empty.
  2858. NextToken *string `type:"string"`
  2859. }
  2860. // String returns the string representation
  2861. func (s ListDocumentsOutput) String() string {
  2862. return awsutil.Prettify(s)
  2863. }
  2864. // GoString returns the string representation
  2865. func (s ListDocumentsOutput) GoString() string {
  2866. return s.String()
  2867. }
  2868. type ListTagsForResourceInput struct {
  2869. _ struct{} `type:"structure"`
  2870. // The resource ID for which you want to see a list of tags.
  2871. ResourceId *string `type:"string" required:"true"`
  2872. // Returns a list of tags for a specific resource type.
  2873. ResourceType *string `type:"string" required:"true" enum:"ResourceTypeForTagging"`
  2874. }
  2875. // String returns the string representation
  2876. func (s ListTagsForResourceInput) String() string {
  2877. return awsutil.Prettify(s)
  2878. }
  2879. // GoString returns the string representation
  2880. func (s ListTagsForResourceInput) GoString() string {
  2881. return s.String()
  2882. }
  2883. // Validate inspects the fields of the type to determine if they are valid.
  2884. func (s *ListTagsForResourceInput) Validate() error {
  2885. invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
  2886. if s.ResourceId == nil {
  2887. invalidParams.Add(request.NewErrParamRequired("ResourceId"))
  2888. }
  2889. if s.ResourceType == nil {
  2890. invalidParams.Add(request.NewErrParamRequired("ResourceType"))
  2891. }
  2892. if invalidParams.Len() > 0 {
  2893. return invalidParams
  2894. }
  2895. return nil
  2896. }
  2897. type ListTagsForResourceOutput struct {
  2898. _ struct{} `type:"structure"`
  2899. // A list of tags.
  2900. TagList []*Tag `type:"list"`
  2901. }
  2902. // String returns the string representation
  2903. func (s ListTagsForResourceOutput) String() string {
  2904. return awsutil.Prettify(s)
  2905. }
  2906. // GoString returns the string representation
  2907. func (s ListTagsForResourceOutput) GoString() string {
  2908. return s.String()
  2909. }
  2910. type ModifyDocumentPermissionInput struct {
  2911. _ struct{} `type:"structure"`
  2912. // The AWS user accounts that should have access to the document. The account
  2913. // IDs can either be a group of account IDs or All.
  2914. AccountIdsToAdd []*string `locationNameList:"AccountId" type:"list"`
  2915. // The AWS user accounts that should no longer have access to the document.
  2916. // The AWS user account can either be a group of account IDs or All. This action
  2917. // has a higher priority than AccountIdsToAdd. If you specify an account ID
  2918. // to add and the same ID to remove, the system removes access to the document.
  2919. AccountIdsToRemove []*string `locationNameList:"AccountId" type:"list"`
  2920. // The name of the document that you want to share.
  2921. Name *string `type:"string" required:"true"`
  2922. // The permission type for the document. The permission type can be Share.
  2923. PermissionType *string `type:"string" required:"true" enum:"DocumentPermissionType"`
  2924. }
  2925. // String returns the string representation
  2926. func (s ModifyDocumentPermissionInput) String() string {
  2927. return awsutil.Prettify(s)
  2928. }
  2929. // GoString returns the string representation
  2930. func (s ModifyDocumentPermissionInput) GoString() string {
  2931. return s.String()
  2932. }
  2933. // Validate inspects the fields of the type to determine if they are valid.
  2934. func (s *ModifyDocumentPermissionInput) Validate() error {
  2935. invalidParams := request.ErrInvalidParams{Context: "ModifyDocumentPermissionInput"}
  2936. if s.Name == nil {
  2937. invalidParams.Add(request.NewErrParamRequired("Name"))
  2938. }
  2939. if s.PermissionType == nil {
  2940. invalidParams.Add(request.NewErrParamRequired("PermissionType"))
  2941. }
  2942. if invalidParams.Len() > 0 {
  2943. return invalidParams
  2944. }
  2945. return nil
  2946. }
  2947. type ModifyDocumentPermissionOutput struct {
  2948. _ struct{} `type:"structure"`
  2949. }
  2950. // String returns the string representation
  2951. func (s ModifyDocumentPermissionOutput) String() string {
  2952. return awsutil.Prettify(s)
  2953. }
  2954. // GoString returns the string representation
  2955. func (s ModifyDocumentPermissionOutput) GoString() string {
  2956. return s.String()
  2957. }
  2958. // Configurations for sending notifications.
  2959. type NotificationConfig struct {
  2960. _ struct{} `type:"structure"`
  2961. // An Amazon Resource Name (ARN) for a Simple Notification Service (SNS) topic.
  2962. // SSM pushes notifications about command status changes to this topic.
  2963. NotificationArn *string `type:"string"`
  2964. // The different events for which you can receive notifications. These events
  2965. // include the following: All (events), InProgress, Success, TimedOut, Cancelled,
  2966. // Failed. To learn more about these events, see Monitoring Commands (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitor-commands.html)
  2967. // in the Amazon Elastic Compute Cloud User Guide .
  2968. NotificationEvents []*string `type:"list"`
  2969. // Command: Receive notification when the status of a command changes. Invocation:
  2970. // For commands sent to multiple instances, receive notification on a per-instance
  2971. // basis when the status of a command changes.
  2972. NotificationType *string `type:"string" enum:"NotificationType"`
  2973. }
  2974. // String returns the string representation
  2975. func (s NotificationConfig) String() string {
  2976. return awsutil.Prettify(s)
  2977. }
  2978. // GoString returns the string representation
  2979. func (s NotificationConfig) GoString() string {
  2980. return s.String()
  2981. }
  2982. type RemoveTagsFromResourceInput struct {
  2983. _ struct{} `type:"structure"`
  2984. // The resource ID for which you want to remove tags.
  2985. ResourceId *string `type:"string" required:"true"`
  2986. // The type of resource of which you want to remove a tag.
  2987. ResourceType *string `type:"string" required:"true" enum:"ResourceTypeForTagging"`
  2988. // Tag keys that you want to remove from the specified resource.
  2989. TagKeys []*string `type:"list" required:"true"`
  2990. }
  2991. // String returns the string representation
  2992. func (s RemoveTagsFromResourceInput) String() string {
  2993. return awsutil.Prettify(s)
  2994. }
  2995. // GoString returns the string representation
  2996. func (s RemoveTagsFromResourceInput) GoString() string {
  2997. return s.String()
  2998. }
  2999. // Validate inspects the fields of the type to determine if they are valid.
  3000. func (s *RemoveTagsFromResourceInput) Validate() error {
  3001. invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromResourceInput"}
  3002. if s.ResourceId == nil {
  3003. invalidParams.Add(request.NewErrParamRequired("ResourceId"))
  3004. }
  3005. if s.ResourceType == nil {
  3006. invalidParams.Add(request.NewErrParamRequired("ResourceType"))
  3007. }
  3008. if s.TagKeys == nil {
  3009. invalidParams.Add(request.NewErrParamRequired("TagKeys"))
  3010. }
  3011. if invalidParams.Len() > 0 {
  3012. return invalidParams
  3013. }
  3014. return nil
  3015. }
  3016. type RemoveTagsFromResourceOutput struct {
  3017. _ struct{} `type:"structure"`
  3018. }
  3019. // String returns the string representation
  3020. func (s RemoveTagsFromResourceOutput) String() string {
  3021. return awsutil.Prettify(s)
  3022. }
  3023. // GoString returns the string representation
  3024. func (s RemoveTagsFromResourceOutput) GoString() string {
  3025. return s.String()
  3026. }
  3027. type SendCommandInput struct {
  3028. _ struct{} `type:"structure"`
  3029. // User-specified information about the command, such as a brief description
  3030. // of what the command should do.
  3031. Comment *string `type:"string"`
  3032. // The Sha256 or Sha1 hash created by the system when the document was created.
  3033. //
  3034. // Sha1 hashes have been deprecated.
  3035. DocumentHash *string `type:"string"`
  3036. // Sha256 or Sha1.
  3037. //
  3038. // Sha1 hashes have been deprecated.
  3039. DocumentHashType *string `type:"string" enum:"DocumentHashType"`
  3040. // Required. The name of the SSM document to execute. This can be an SSM public
  3041. // document or a custom document.
  3042. DocumentName *string `type:"string" required:"true"`
  3043. // Required. The instance IDs where the command should execute. You can specify
  3044. // a maximum of 50 IDs.
  3045. InstanceIds []*string `min:"1" type:"list" required:"true"`
  3046. // Configurations for sending notifications.
  3047. NotificationConfig *NotificationConfig `type:"structure"`
  3048. // The name of the S3 bucket where command execution responses should be stored.
  3049. OutputS3BucketName *string `min:"3" type:"string"`
  3050. // The directory structure within the S3 bucket where the responses should be
  3051. // stored.
  3052. OutputS3KeyPrefix *string `type:"string"`
  3053. // The required and optional parameters specified in the SSM document being
  3054. // executed.
  3055. Parameters map[string][]*string `type:"map"`
  3056. // The IAM role that SSM uses to send notifications.
  3057. ServiceRoleArn *string `type:"string"`
  3058. // If this time is reached and the command has not already started executing,
  3059. // it will not execute.
  3060. TimeoutSeconds *int64 `min:"30" type:"integer"`
  3061. }
  3062. // String returns the string representation
  3063. func (s SendCommandInput) String() string {
  3064. return awsutil.Prettify(s)
  3065. }
  3066. // GoString returns the string representation
  3067. func (s SendCommandInput) GoString() string {
  3068. return s.String()
  3069. }
  3070. // Validate inspects the fields of the type to determine if they are valid.
  3071. func (s *SendCommandInput) Validate() error {
  3072. invalidParams := request.ErrInvalidParams{Context: "SendCommandInput"}
  3073. if s.DocumentName == nil {
  3074. invalidParams.Add(request.NewErrParamRequired("DocumentName"))
  3075. }
  3076. if s.InstanceIds == nil {
  3077. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  3078. }
  3079. if s.InstanceIds != nil && len(s.InstanceIds) < 1 {
  3080. invalidParams.Add(request.NewErrParamMinLen("InstanceIds", 1))
  3081. }
  3082. if s.OutputS3BucketName != nil && len(*s.OutputS3BucketName) < 3 {
  3083. invalidParams.Add(request.NewErrParamMinLen("OutputS3BucketName", 3))
  3084. }
  3085. if s.TimeoutSeconds != nil && *s.TimeoutSeconds < 30 {
  3086. invalidParams.Add(request.NewErrParamMinValue("TimeoutSeconds", 30))
  3087. }
  3088. if invalidParams.Len() > 0 {
  3089. return invalidParams
  3090. }
  3091. return nil
  3092. }
  3093. type SendCommandOutput struct {
  3094. _ struct{} `type:"structure"`
  3095. // The request as it was received by SSM. Also provides the command ID which
  3096. // can be used future references to this request.
  3097. Command *Command `type:"structure"`
  3098. }
  3099. // String returns the string representation
  3100. func (s SendCommandOutput) String() string {
  3101. return awsutil.Prettify(s)
  3102. }
  3103. // GoString returns the string representation
  3104. func (s SendCommandOutput) GoString() string {
  3105. return s.String()
  3106. }
  3107. // Metadata that you assign to your managed instances. Tags enable you to categorize
  3108. // your managed instances in different ways, for example, by purpose, owner,
  3109. // or environment.
  3110. type Tag struct {
  3111. _ struct{} `type:"structure"`
  3112. // The name of the tag.
  3113. Key *string `min:"1" type:"string" required:"true"`
  3114. // The value of the tag.
  3115. Value *string `min:"1" type:"string" required:"true"`
  3116. }
  3117. // String returns the string representation
  3118. func (s Tag) String() string {
  3119. return awsutil.Prettify(s)
  3120. }
  3121. // GoString returns the string representation
  3122. func (s Tag) GoString() string {
  3123. return s.String()
  3124. }
  3125. // Validate inspects the fields of the type to determine if they are valid.
  3126. func (s *Tag) Validate() error {
  3127. invalidParams := request.ErrInvalidParams{Context: "Tag"}
  3128. if s.Key == nil {
  3129. invalidParams.Add(request.NewErrParamRequired("Key"))
  3130. }
  3131. if s.Key != nil && len(*s.Key) < 1 {
  3132. invalidParams.Add(request.NewErrParamMinLen("Key", 1))
  3133. }
  3134. if s.Value == nil {
  3135. invalidParams.Add(request.NewErrParamRequired("Value"))
  3136. }
  3137. if s.Value != nil && len(*s.Value) < 1 {
  3138. invalidParams.Add(request.NewErrParamMinLen("Value", 1))
  3139. }
  3140. if invalidParams.Len() > 0 {
  3141. return invalidParams
  3142. }
  3143. return nil
  3144. }
  3145. type UpdateAssociationStatusInput struct {
  3146. _ struct{} `type:"structure"`
  3147. // The association status.
  3148. AssociationStatus *AssociationStatus `type:"structure" required:"true"`
  3149. // The ID of the instance.
  3150. InstanceId *string `type:"string" required:"true"`
  3151. // The name of the SSM document.
  3152. Name *string `type:"string" required:"true"`
  3153. }
  3154. // String returns the string representation
  3155. func (s UpdateAssociationStatusInput) String() string {
  3156. return awsutil.Prettify(s)
  3157. }
  3158. // GoString returns the string representation
  3159. func (s UpdateAssociationStatusInput) GoString() string {
  3160. return s.String()
  3161. }
  3162. // Validate inspects the fields of the type to determine if they are valid.
  3163. func (s *UpdateAssociationStatusInput) Validate() error {
  3164. invalidParams := request.ErrInvalidParams{Context: "UpdateAssociationStatusInput"}
  3165. if s.AssociationStatus == nil {
  3166. invalidParams.Add(request.NewErrParamRequired("AssociationStatus"))
  3167. }
  3168. if s.InstanceId == nil {
  3169. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  3170. }
  3171. if s.Name == nil {
  3172. invalidParams.Add(request.NewErrParamRequired("Name"))
  3173. }
  3174. if s.AssociationStatus != nil {
  3175. if err := s.AssociationStatus.Validate(); err != nil {
  3176. invalidParams.AddNested("AssociationStatus", err.(request.ErrInvalidParams))
  3177. }
  3178. }
  3179. if invalidParams.Len() > 0 {
  3180. return invalidParams
  3181. }
  3182. return nil
  3183. }
  3184. type UpdateAssociationStatusOutput struct {
  3185. _ struct{} `type:"structure"`
  3186. // Information about the association.
  3187. AssociationDescription *AssociationDescription `type:"structure"`
  3188. }
  3189. // String returns the string representation
  3190. func (s UpdateAssociationStatusOutput) String() string {
  3191. return awsutil.Prettify(s)
  3192. }
  3193. // GoString returns the string representation
  3194. func (s UpdateAssociationStatusOutput) GoString() string {
  3195. return s.String()
  3196. }
  3197. type UpdateManagedInstanceRoleInput struct {
  3198. _ struct{} `type:"structure"`
  3199. // The IAM role you want to assign or change.
  3200. IamRole *string `type:"string" required:"true"`
  3201. // The ID of the managed instance where you want to update the role.
  3202. InstanceId *string `type:"string" required:"true"`
  3203. }
  3204. // String returns the string representation
  3205. func (s UpdateManagedInstanceRoleInput) String() string {
  3206. return awsutil.Prettify(s)
  3207. }
  3208. // GoString returns the string representation
  3209. func (s UpdateManagedInstanceRoleInput) GoString() string {
  3210. return s.String()
  3211. }
  3212. // Validate inspects the fields of the type to determine if they are valid.
  3213. func (s *UpdateManagedInstanceRoleInput) Validate() error {
  3214. invalidParams := request.ErrInvalidParams{Context: "UpdateManagedInstanceRoleInput"}
  3215. if s.IamRole == nil {
  3216. invalidParams.Add(request.NewErrParamRequired("IamRole"))
  3217. }
  3218. if s.InstanceId == nil {
  3219. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  3220. }
  3221. if invalidParams.Len() > 0 {
  3222. return invalidParams
  3223. }
  3224. return nil
  3225. }
  3226. type UpdateManagedInstanceRoleOutput struct {
  3227. _ struct{} `type:"structure"`
  3228. }
  3229. // String returns the string representation
  3230. func (s UpdateManagedInstanceRoleOutput) String() string {
  3231. return awsutil.Prettify(s)
  3232. }
  3233. // GoString returns the string representation
  3234. func (s UpdateManagedInstanceRoleOutput) GoString() string {
  3235. return s.String()
  3236. }
  3237. const (
  3238. // @enum AssociationFilterKey
  3239. AssociationFilterKeyInstanceId = "InstanceId"
  3240. // @enum AssociationFilterKey
  3241. AssociationFilterKeyName = "Name"
  3242. )
  3243. const (
  3244. // @enum AssociationStatusName
  3245. AssociationStatusNamePending = "Pending"
  3246. // @enum AssociationStatusName
  3247. AssociationStatusNameSuccess = "Success"
  3248. // @enum AssociationStatusName
  3249. AssociationStatusNameFailed = "Failed"
  3250. )
  3251. const (
  3252. // @enum CommandFilterKey
  3253. CommandFilterKeyInvokedAfter = "InvokedAfter"
  3254. // @enum CommandFilterKey
  3255. CommandFilterKeyInvokedBefore = "InvokedBefore"
  3256. // @enum CommandFilterKey
  3257. CommandFilterKeyStatus = "Status"
  3258. )
  3259. const (
  3260. // @enum CommandInvocationStatus
  3261. CommandInvocationStatusPending = "Pending"
  3262. // @enum CommandInvocationStatus
  3263. CommandInvocationStatusInProgress = "InProgress"
  3264. // @enum CommandInvocationStatus
  3265. CommandInvocationStatusCancelling = "Cancelling"
  3266. // @enum CommandInvocationStatus
  3267. CommandInvocationStatusSuccess = "Success"
  3268. // @enum CommandInvocationStatus
  3269. CommandInvocationStatusTimedOut = "TimedOut"
  3270. // @enum CommandInvocationStatus
  3271. CommandInvocationStatusCancelled = "Cancelled"
  3272. // @enum CommandInvocationStatus
  3273. CommandInvocationStatusFailed = "Failed"
  3274. )
  3275. const (
  3276. // @enum CommandPluginStatus
  3277. CommandPluginStatusPending = "Pending"
  3278. // @enum CommandPluginStatus
  3279. CommandPluginStatusInProgress = "InProgress"
  3280. // @enum CommandPluginStatus
  3281. CommandPluginStatusSuccess = "Success"
  3282. // @enum CommandPluginStatus
  3283. CommandPluginStatusTimedOut = "TimedOut"
  3284. // @enum CommandPluginStatus
  3285. CommandPluginStatusCancelled = "Cancelled"
  3286. // @enum CommandPluginStatus
  3287. CommandPluginStatusFailed = "Failed"
  3288. )
  3289. const (
  3290. // @enum CommandStatus
  3291. CommandStatusPending = "Pending"
  3292. // @enum CommandStatus
  3293. CommandStatusInProgress = "InProgress"
  3294. // @enum CommandStatus
  3295. CommandStatusCancelling = "Cancelling"
  3296. // @enum CommandStatus
  3297. CommandStatusSuccess = "Success"
  3298. // @enum CommandStatus
  3299. CommandStatusTimedOut = "TimedOut"
  3300. // @enum CommandStatus
  3301. CommandStatusCancelled = "Cancelled"
  3302. // @enum CommandStatus
  3303. CommandStatusFailed = "Failed"
  3304. )
  3305. const (
  3306. // @enum DescribeActivationsFilterKeys
  3307. DescribeActivationsFilterKeysActivationIds = "ActivationIds"
  3308. // @enum DescribeActivationsFilterKeys
  3309. DescribeActivationsFilterKeysDefaultInstanceName = "DefaultInstanceName"
  3310. // @enum DescribeActivationsFilterKeys
  3311. DescribeActivationsFilterKeysIamRole = "IamRole"
  3312. )
  3313. const (
  3314. // @enum DocumentFilterKey
  3315. DocumentFilterKeyName = "Name"
  3316. // @enum DocumentFilterKey
  3317. DocumentFilterKeyOwner = "Owner"
  3318. // @enum DocumentFilterKey
  3319. DocumentFilterKeyPlatformTypes = "PlatformTypes"
  3320. )
  3321. const (
  3322. // @enum DocumentHashType
  3323. DocumentHashTypeSha256 = "Sha256"
  3324. // @enum DocumentHashType
  3325. DocumentHashTypeSha1 = "Sha1"
  3326. )
  3327. const (
  3328. // @enum DocumentParameterType
  3329. DocumentParameterTypeString = "String"
  3330. // @enum DocumentParameterType
  3331. DocumentParameterTypeStringList = "StringList"
  3332. )
  3333. const (
  3334. // @enum DocumentPermissionType
  3335. DocumentPermissionTypeShare = "Share"
  3336. )
  3337. const (
  3338. // @enum DocumentStatus
  3339. DocumentStatusCreating = "Creating"
  3340. // @enum DocumentStatus
  3341. DocumentStatusActive = "Active"
  3342. // @enum DocumentStatus
  3343. DocumentStatusDeleting = "Deleting"
  3344. )
  3345. const (
  3346. // @enum Fault
  3347. FaultClient = "Client"
  3348. // @enum Fault
  3349. FaultServer = "Server"
  3350. // @enum Fault
  3351. FaultUnknown = "Unknown"
  3352. )
  3353. const (
  3354. // @enum InstanceInformationFilterKey
  3355. InstanceInformationFilterKeyInstanceIds = "InstanceIds"
  3356. // @enum InstanceInformationFilterKey
  3357. InstanceInformationFilterKeyAgentVersion = "AgentVersion"
  3358. // @enum InstanceInformationFilterKey
  3359. InstanceInformationFilterKeyPingStatus = "PingStatus"
  3360. // @enum InstanceInformationFilterKey
  3361. InstanceInformationFilterKeyPlatformTypes = "PlatformTypes"
  3362. // @enum InstanceInformationFilterKey
  3363. InstanceInformationFilterKeyActivationIds = "ActivationIds"
  3364. // @enum InstanceInformationFilterKey
  3365. InstanceInformationFilterKeyIamRole = "IamRole"
  3366. // @enum InstanceInformationFilterKey
  3367. InstanceInformationFilterKeyResourceType = "ResourceType"
  3368. )
  3369. const (
  3370. // @enum NotificationEvent
  3371. NotificationEventAll = "All"
  3372. // @enum NotificationEvent
  3373. NotificationEventInProgress = "InProgress"
  3374. // @enum NotificationEvent
  3375. NotificationEventSuccess = "Success"
  3376. // @enum NotificationEvent
  3377. NotificationEventTimedOut = "TimedOut"
  3378. // @enum NotificationEvent
  3379. NotificationEventCancelled = "Cancelled"
  3380. // @enum NotificationEvent
  3381. NotificationEventFailed = "Failed"
  3382. )
  3383. const (
  3384. // @enum NotificationType
  3385. NotificationTypeCommand = "Command"
  3386. // @enum NotificationType
  3387. NotificationTypeInvocation = "Invocation"
  3388. )
  3389. const (
  3390. // @enum PingStatus
  3391. PingStatusOnline = "Online"
  3392. // @enum PingStatus
  3393. PingStatusConnectionLost = "ConnectionLost"
  3394. // @enum PingStatus
  3395. PingStatusInactive = "Inactive"
  3396. )
  3397. const (
  3398. // @enum PlatformType
  3399. PlatformTypeWindows = "Windows"
  3400. // @enum PlatformType
  3401. PlatformTypeLinux = "Linux"
  3402. )
  3403. const (
  3404. // @enum ResourceType
  3405. ResourceTypeManagedInstance = "ManagedInstance"
  3406. // @enum ResourceType
  3407. ResourceTypeDocument = "Document"
  3408. // @enum ResourceType
  3409. ResourceTypeEc2instance = "EC2Instance"
  3410. )
  3411. const (
  3412. // @enum ResourceTypeForTagging
  3413. ResourceTypeForTaggingManagedInstance = "ManagedInstance"
  3414. )