| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057 |
- // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
- // Package ssm provides a client for Amazon Simple Systems Management Service.
- package ssm
- import (
- "fmt"
- "time"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/request"
- )
- const opAddTagsToResource = "AddTagsToResource"
- // AddTagsToResourceRequest generates a "aws/request.Request" representing the
- // client's request for the AddTagsToResource operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the AddTagsToResource method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the AddTagsToResourceRequest method.
- // req, resp := client.AddTagsToResourceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *SSM) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *request.Request, output *AddTagsToResourceOutput) {
- op := &request.Operation{
- Name: opAddTagsToResource,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AddTagsToResourceInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AddTagsToResourceOutput{}
- req.Data = output
- return
- }
- // Adds or overwrites one or more tags for the specified resource. Tags are
- // metadata that you assign to your managed instances. Tags enable you to categorize
- // your managed instances in different ways, for example, by purpose, owner,
- // or environment. Each tag consists of a key and an optional value, both of
- // which you define. For example, you could define a set of tags for your account's
- // managed instances that helps you track each instance's owner and stack level.
- // For example: Key=Owner and Value=DbAdmin, SysAdmin, or Dev. Or Key=Stack
- // and Value=Production, Pre-Production, or Test. Each resource can have a maximum
- // of 10 tags.
- //
- // We recommend that you devise a set of tag keys that meets your needs for
- // each resource type. Using a consistent set of tag keys makes it easier for
- // you to manage your resources. You can search and filter the resources based
- // on the tags you add. Tags don't have any semantic meaning to Amazon EC2 and
- // are interpreted strictly as a string of characters.
- //
- // For more information about tags, see Tagging Your Amazon EC2 Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html)
- // in the Amazon EC2 User Guide.
- func (c *SSM) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) {
- req, out := c.AddTagsToResourceRequest(input)
- err := req.Send()
- return out, err
- }
- const opCancelCommand = "CancelCommand"
- // CancelCommandRequest generates a "aws/request.Request" representing the
- // client's request for the CancelCommand operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CancelCommand method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CancelCommandRequest method.
- // req, resp := client.CancelCommandRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *SSM) CancelCommandRequest(input *CancelCommandInput) (req *request.Request, output *CancelCommandOutput) {
- op := &request.Operation{
- Name: opCancelCommand,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CancelCommandInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CancelCommandOutput{}
- req.Data = output
- return
- }
- // Attempts to cancel the command specified by the Command ID. There is no guarantee
- // that the command will be terminated and the underlying process stopped.
- func (c *SSM) CancelCommand(input *CancelCommandInput) (*CancelCommandOutput, error) {
- req, out := c.CancelCommandRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateActivation = "CreateActivation"
- // CreateActivationRequest generates a "aws/request.Request" representing the
- // client's request for the CreateActivation operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateActivation method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateActivationRequest method.
- // req, resp := client.CreateActivationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *SSM) CreateActivationRequest(input *CreateActivationInput) (req *request.Request, output *CreateActivationOutput) {
- op := &request.Operation{
- Name: opCreateActivation,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateActivationInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateActivationOutput{}
- req.Data = output
- return
- }
- // Registers your on-premises server or virtual machine with Amazon EC2 so that
- // you can manage these resources using Run Command. An on-premises server or
- // virtual machine that has been registered with EC2 is called a managed instance.
- // For more information about activations, see Setting Up Managed Instances
- // (Linux) (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/managed-instances.html)
- // or Setting Up Managed Instances (Windows) (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/managed-instances.html)
- // in the Amazon EC2 User Guide.
- func (c *SSM) CreateActivation(input *CreateActivationInput) (*CreateActivationOutput, error) {
- req, out := c.CreateActivationRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateAssociation = "CreateAssociation"
- // CreateAssociationRequest generates a "aws/request.Request" representing the
- // client's request for the CreateAssociation operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateAssociation method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateAssociationRequest method.
- // req, resp := client.CreateAssociationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *SSM) CreateAssociationRequest(input *CreateAssociationInput) (req *request.Request, output *CreateAssociationOutput) {
- op := &request.Operation{
- Name: opCreateAssociation,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateAssociationInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateAssociationOutput{}
- req.Data = output
- return
- }
- // Associates the specified SSM document with the specified instance.
- //
- // When you associate an SSM document with an instance, the configuration agent
- // on the instance processes the document and configures the instance as specified.
- //
- // If you associate a document with an instance that already has an associated
- // document, the system throws the AssociationAlreadyExists exception.
- func (c *SSM) CreateAssociation(input *CreateAssociationInput) (*CreateAssociationOutput, error) {
- req, out := c.CreateAssociationRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateAssociationBatch = "CreateAssociationBatch"
- // CreateAssociationBatchRequest generates a "aws/request.Request" representing the
- // client's request for the CreateAssociationBatch operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateAssociationBatch method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateAssociationBatchRequest method.
- // req, resp := client.CreateAssociationBatchRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *SSM) CreateAssociationBatchRequest(input *CreateAssociationBatchInput) (req *request.Request, output *CreateAssociationBatchOutput) {
- op := &request.Operation{
- Name: opCreateAssociationBatch,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateAssociationBatchInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateAssociationBatchOutput{}
- req.Data = output
- return
- }
- // Associates the specified SSM document with the specified instances.
- //
- // When you associate an SSM document with an instance, the configuration agent
- // on the instance processes the document and configures the instance as specified.
- //
- // If you associate a document with an instance that already has an associated
- // document, the system throws the AssociationAlreadyExists exception.
- func (c *SSM) CreateAssociationBatch(input *CreateAssociationBatchInput) (*CreateAssociationBatchOutput, error) {
- req, out := c.CreateAssociationBatchRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateDocument = "CreateDocument"
- // CreateDocumentRequest generates a "aws/request.Request" representing the
- // client's request for the CreateDocument operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateDocument method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateDocumentRequest method.
- // req, resp := client.CreateDocumentRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *SSM) CreateDocumentRequest(input *CreateDocumentInput) (req *request.Request, output *CreateDocumentOutput) {
- op := &request.Operation{
- Name: opCreateDocument,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateDocumentInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateDocumentOutput{}
- req.Data = output
- return
- }
- // Creates an SSM document.
- //
- // After you create an SSM document, you can use CreateAssociation to associate
- // it with one or more running instances.
- func (c *SSM) CreateDocument(input *CreateDocumentInput) (*CreateDocumentOutput, error) {
- req, out := c.CreateDocumentRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteActivation = "DeleteActivation"
- // DeleteActivationRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteActivation operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteActivation method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteActivationRequest method.
- // req, resp := client.DeleteActivationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *SSM) DeleteActivationRequest(input *DeleteActivationInput) (req *request.Request, output *DeleteActivationOutput) {
- op := &request.Operation{
- Name: opDeleteActivation,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteActivationInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteActivationOutput{}
- req.Data = output
- return
- }
- // Deletes an activation. You are not required to delete an activation. If you
- // delete an activation, you can no longer use it to register additional managed
- // instances. Deleting an activation does not de-register managed instances.
- // You must manually de-register managed instances.
- func (c *SSM) DeleteActivation(input *DeleteActivationInput) (*DeleteActivationOutput, error) {
- req, out := c.DeleteActivationRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteAssociation = "DeleteAssociation"
- // DeleteAssociationRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteAssociation operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteAssociation method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteAssociationRequest method.
- // req, resp := client.DeleteAssociationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *SSM) DeleteAssociationRequest(input *DeleteAssociationInput) (req *request.Request, output *DeleteAssociationOutput) {
- op := &request.Operation{
- Name: opDeleteAssociation,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteAssociationInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteAssociationOutput{}
- req.Data = output
- return
- }
- // Disassociates the specified SSM document from the specified instance.
- //
- // When you disassociate an SSM document from an instance, it does not change
- // the configuration of the instance. To change the configuration state of an
- // instance after you disassociate a document, you must create a new document
- // with the desired configuration and associate it with the instance.
- func (c *SSM) DeleteAssociation(input *DeleteAssociationInput) (*DeleteAssociationOutput, error) {
- req, out := c.DeleteAssociationRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteDocument = "DeleteDocument"
- // DeleteDocumentRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteDocument operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteDocument method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteDocumentRequest method.
- // req, resp := client.DeleteDocumentRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *SSM) DeleteDocumentRequest(input *DeleteDocumentInput) (req *request.Request, output *DeleteDocumentOutput) {
- op := &request.Operation{
- Name: opDeleteDocument,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteDocumentInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteDocumentOutput{}
- req.Data = output
- return
- }
- // Deletes the SSM document and all instance associations to the document.
- //
- // Before you delete the SSM document, we recommend that you use DeleteAssociation
- // to disassociate all instances that are associated with the document.
- func (c *SSM) DeleteDocument(input *DeleteDocumentInput) (*DeleteDocumentOutput, error) {
- req, out := c.DeleteDocumentRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeregisterManagedInstance = "DeregisterManagedInstance"
- // DeregisterManagedInstanceRequest generates a "aws/request.Request" representing the
- // client's request for the DeregisterManagedInstance operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeregisterManagedInstance method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeregisterManagedInstanceRequest method.
- // req, resp := client.DeregisterManagedInstanceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *SSM) DeregisterManagedInstanceRequest(input *DeregisterManagedInstanceInput) (req *request.Request, output *DeregisterManagedInstanceOutput) {
- op := &request.Operation{
- Name: opDeregisterManagedInstance,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeregisterManagedInstanceInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeregisterManagedInstanceOutput{}
- req.Data = output
- return
- }
- // Removes the server or virtual machine from the list of registered servers.
- // You can reregister the instance again at any time. If you don’t plan to use
- // Run Command on the server, we suggest uninstalling the SSM agent first.
- func (c *SSM) DeregisterManagedInstance(input *DeregisterManagedInstanceInput) (*DeregisterManagedInstanceOutput, error) {
- req, out := c.DeregisterManagedInstanceRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeActivations = "DescribeActivations"
- // DescribeActivationsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeActivations operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeActivations method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DescribeActivationsRequest method.
- // req, resp := client.DescribeActivationsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *SSM) DescribeActivationsRequest(input *DescribeActivationsInput) (req *request.Request, output *DescribeActivationsOutput) {
- op := &request.Operation{
- Name: opDescribeActivations,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"NextToken"},
- OutputTokens: []string{"NextToken"},
- LimitToken: "MaxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &DescribeActivationsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeActivationsOutput{}
- req.Data = output
- return
- }
- // Details about the activation, including: the date and time the activation
- // was created, the expiration date, the IAM role assigned to the instances
- // in the activation, and the number of instances activated by this registration.
- func (c *SSM) DescribeActivations(input *DescribeActivationsInput) (*DescribeActivationsOutput, error) {
- req, out := c.DescribeActivationsRequest(input)
- err := req.Send()
- return out, err
- }
- // DescribeActivationsPages iterates over the pages of a DescribeActivations operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See DescribeActivations method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a DescribeActivations operation.
- // pageNum := 0
- // err := client.DescribeActivationsPages(params,
- // func(page *DescribeActivationsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *SSM) DescribeActivationsPages(input *DescribeActivationsInput, fn func(p *DescribeActivationsOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.DescribeActivationsRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*DescribeActivationsOutput), lastPage)
- })
- }
- const opDescribeAssociation = "DescribeAssociation"
- // DescribeAssociationRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeAssociation operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeAssociation method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DescribeAssociationRequest method.
- // req, resp := client.DescribeAssociationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *SSM) DescribeAssociationRequest(input *DescribeAssociationInput) (req *request.Request, output *DescribeAssociationOutput) {
- op := &request.Operation{
- Name: opDescribeAssociation,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeAssociationInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeAssociationOutput{}
- req.Data = output
- return
- }
- // Describes the associations for the specified SSM document or instance.
- func (c *SSM) DescribeAssociation(input *DescribeAssociationInput) (*DescribeAssociationOutput, error) {
- req, out := c.DescribeAssociationRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeDocument = "DescribeDocument"
- // DescribeDocumentRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeDocument operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeDocument method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DescribeDocumentRequest method.
- // req, resp := client.DescribeDocumentRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *SSM) DescribeDocumentRequest(input *DescribeDocumentInput) (req *request.Request, output *DescribeDocumentOutput) {
- op := &request.Operation{
- Name: opDescribeDocument,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeDocumentInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeDocumentOutput{}
- req.Data = output
- return
- }
- // Describes the specified SSM document.
- func (c *SSM) DescribeDocument(input *DescribeDocumentInput) (*DescribeDocumentOutput, error) {
- req, out := c.DescribeDocumentRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeDocumentPermission = "DescribeDocumentPermission"
- // DescribeDocumentPermissionRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeDocumentPermission operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeDocumentPermission method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DescribeDocumentPermissionRequest method.
- // req, resp := client.DescribeDocumentPermissionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *SSM) DescribeDocumentPermissionRequest(input *DescribeDocumentPermissionInput) (req *request.Request, output *DescribeDocumentPermissionOutput) {
- op := &request.Operation{
- Name: opDescribeDocumentPermission,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeDocumentPermissionInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeDocumentPermissionOutput{}
- req.Data = output
- return
- }
- // Describes the permissions for an SSM document. If you created the document,
- // you are the owner. If a document is shared, it can either be shared privately
- // (by specifying a user’s AWS account ID) or publicly (All).
- func (c *SSM) DescribeDocumentPermission(input *DescribeDocumentPermissionInput) (*DescribeDocumentPermissionOutput, error) {
- req, out := c.DescribeDocumentPermissionRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeInstanceInformation = "DescribeInstanceInformation"
- // DescribeInstanceInformationRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeInstanceInformation operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeInstanceInformation method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DescribeInstanceInformationRequest method.
- // req, resp := client.DescribeInstanceInformationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *SSM) DescribeInstanceInformationRequest(input *DescribeInstanceInformationInput) (req *request.Request, output *DescribeInstanceInformationOutput) {
- op := &request.Operation{
- Name: opDescribeInstanceInformation,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"NextToken"},
- OutputTokens: []string{"NextToken"},
- LimitToken: "MaxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &DescribeInstanceInformationInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeInstanceInformationOutput{}
- req.Data = output
- return
- }
- // Describes one or more of your instances. You can use this to get information
- // about instances like the operating system platform, the SSM agent version,
- // status etc. If you specify one or more instance IDs, it returns information
- // for those instances. If you do not specify instance IDs, it returns information
- // for all your instances. If you specify an instance ID that is not valid or
- // an instance that you do not own, you receive an error.
- func (c *SSM) DescribeInstanceInformation(input *DescribeInstanceInformationInput) (*DescribeInstanceInformationOutput, error) {
- req, out := c.DescribeInstanceInformationRequest(input)
- err := req.Send()
- return out, err
- }
- // DescribeInstanceInformationPages iterates over the pages of a DescribeInstanceInformation operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See DescribeInstanceInformation method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a DescribeInstanceInformation operation.
- // pageNum := 0
- // err := client.DescribeInstanceInformationPages(params,
- // func(page *DescribeInstanceInformationOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *SSM) DescribeInstanceInformationPages(input *DescribeInstanceInformationInput, fn func(p *DescribeInstanceInformationOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.DescribeInstanceInformationRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*DescribeInstanceInformationOutput), lastPage)
- })
- }
- const opGetDocument = "GetDocument"
- // GetDocumentRequest generates a "aws/request.Request" representing the
- // client's request for the GetDocument operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetDocument method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetDocumentRequest method.
- // req, resp := client.GetDocumentRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *SSM) GetDocumentRequest(input *GetDocumentInput) (req *request.Request, output *GetDocumentOutput) {
- op := &request.Operation{
- Name: opGetDocument,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetDocumentInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetDocumentOutput{}
- req.Data = output
- return
- }
- // Gets the contents of the specified SSM document.
- func (c *SSM) GetDocument(input *GetDocumentInput) (*GetDocumentOutput, error) {
- req, out := c.GetDocumentRequest(input)
- err := req.Send()
- return out, err
- }
- const opListAssociations = "ListAssociations"
- // ListAssociationsRequest generates a "aws/request.Request" representing the
- // client's request for the ListAssociations operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListAssociations method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListAssociationsRequest method.
- // req, resp := client.ListAssociationsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *SSM) ListAssociationsRequest(input *ListAssociationsInput) (req *request.Request, output *ListAssociationsOutput) {
- op := &request.Operation{
- Name: opListAssociations,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"NextToken"},
- OutputTokens: []string{"NextToken"},
- LimitToken: "MaxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListAssociationsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListAssociationsOutput{}
- req.Data = output
- return
- }
- // Lists the associations for the specified SSM document or instance.
- func (c *SSM) ListAssociations(input *ListAssociationsInput) (*ListAssociationsOutput, error) {
- req, out := c.ListAssociationsRequest(input)
- err := req.Send()
- return out, err
- }
- // ListAssociationsPages iterates over the pages of a ListAssociations operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListAssociations method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListAssociations operation.
- // pageNum := 0
- // err := client.ListAssociationsPages(params,
- // func(page *ListAssociationsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *SSM) ListAssociationsPages(input *ListAssociationsInput, fn func(p *ListAssociationsOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.ListAssociationsRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*ListAssociationsOutput), lastPage)
- })
- }
- const opListCommandInvocations = "ListCommandInvocations"
- // ListCommandInvocationsRequest generates a "aws/request.Request" representing the
- // client's request for the ListCommandInvocations operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListCommandInvocations method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListCommandInvocationsRequest method.
- // req, resp := client.ListCommandInvocationsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *SSM) ListCommandInvocationsRequest(input *ListCommandInvocationsInput) (req *request.Request, output *ListCommandInvocationsOutput) {
- op := &request.Operation{
- Name: opListCommandInvocations,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"NextToken"},
- OutputTokens: []string{"NextToken"},
- LimitToken: "MaxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListCommandInvocationsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListCommandInvocationsOutput{}
- req.Data = output
- return
- }
- // An invocation is copy of a command sent to a specific instance. A command
- // can apply to one or more instances. A command invocation applies to one instance.
- // For example, if a user executes SendCommand against three instances, then
- // a command invocation is created for each requested instance ID. ListCommandInvocations
- // provide status about command execution.
- func (c *SSM) ListCommandInvocations(input *ListCommandInvocationsInput) (*ListCommandInvocationsOutput, error) {
- req, out := c.ListCommandInvocationsRequest(input)
- err := req.Send()
- return out, err
- }
- // ListCommandInvocationsPages iterates over the pages of a ListCommandInvocations operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListCommandInvocations method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListCommandInvocations operation.
- // pageNum := 0
- // err := client.ListCommandInvocationsPages(params,
- // func(page *ListCommandInvocationsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *SSM) ListCommandInvocationsPages(input *ListCommandInvocationsInput, fn func(p *ListCommandInvocationsOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.ListCommandInvocationsRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*ListCommandInvocationsOutput), lastPage)
- })
- }
- const opListCommands = "ListCommands"
- // ListCommandsRequest generates a "aws/request.Request" representing the
- // client's request for the ListCommands operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListCommands method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListCommandsRequest method.
- // req, resp := client.ListCommandsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *SSM) ListCommandsRequest(input *ListCommandsInput) (req *request.Request, output *ListCommandsOutput) {
- op := &request.Operation{
- Name: opListCommands,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"NextToken"},
- OutputTokens: []string{"NextToken"},
- LimitToken: "MaxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListCommandsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListCommandsOutput{}
- req.Data = output
- return
- }
- // Lists the commands requested by users of the AWS account.
- func (c *SSM) ListCommands(input *ListCommandsInput) (*ListCommandsOutput, error) {
- req, out := c.ListCommandsRequest(input)
- err := req.Send()
- return out, err
- }
- // ListCommandsPages iterates over the pages of a ListCommands operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListCommands method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListCommands operation.
- // pageNum := 0
- // err := client.ListCommandsPages(params,
- // func(page *ListCommandsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *SSM) ListCommandsPages(input *ListCommandsInput, fn func(p *ListCommandsOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.ListCommandsRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*ListCommandsOutput), lastPage)
- })
- }
- const opListDocuments = "ListDocuments"
- // ListDocumentsRequest generates a "aws/request.Request" representing the
- // client's request for the ListDocuments operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListDocuments method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListDocumentsRequest method.
- // req, resp := client.ListDocumentsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *SSM) ListDocumentsRequest(input *ListDocumentsInput) (req *request.Request, output *ListDocumentsOutput) {
- op := &request.Operation{
- Name: opListDocuments,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"NextToken"},
- OutputTokens: []string{"NextToken"},
- LimitToken: "MaxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListDocumentsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListDocumentsOutput{}
- req.Data = output
- return
- }
- // Describes one or more of your SSM documents.
- func (c *SSM) ListDocuments(input *ListDocumentsInput) (*ListDocumentsOutput, error) {
- req, out := c.ListDocumentsRequest(input)
- err := req.Send()
- return out, err
- }
- // ListDocumentsPages iterates over the pages of a ListDocuments operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListDocuments method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListDocuments operation.
- // pageNum := 0
- // err := client.ListDocumentsPages(params,
- // func(page *ListDocumentsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *SSM) ListDocumentsPages(input *ListDocumentsInput, fn func(p *ListDocumentsOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.ListDocumentsRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*ListDocumentsOutput), lastPage)
- })
- }
- const opListTagsForResource = "ListTagsForResource"
- // ListTagsForResourceRequest generates a "aws/request.Request" representing the
- // client's request for the ListTagsForResource operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListTagsForResource method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListTagsForResourceRequest method.
- // req, resp := client.ListTagsForResourceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *SSM) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
- op := &request.Operation{
- Name: opListTagsForResource,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListTagsForResourceInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListTagsForResourceOutput{}
- req.Data = output
- return
- }
- // Returns a list of the tags assigned to the specified resource.
- func (c *SSM) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
- req, out := c.ListTagsForResourceRequest(input)
- err := req.Send()
- return out, err
- }
- const opModifyDocumentPermission = "ModifyDocumentPermission"
- // ModifyDocumentPermissionRequest generates a "aws/request.Request" representing the
- // client's request for the ModifyDocumentPermission operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ModifyDocumentPermission method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ModifyDocumentPermissionRequest method.
- // req, resp := client.ModifyDocumentPermissionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *SSM) ModifyDocumentPermissionRequest(input *ModifyDocumentPermissionInput) (req *request.Request, output *ModifyDocumentPermissionOutput) {
- op := &request.Operation{
- Name: opModifyDocumentPermission,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ModifyDocumentPermissionInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ModifyDocumentPermissionOutput{}
- req.Data = output
- return
- }
- // Share a document publicly or privately. If you share a document privately,
- // you must specify the AWS user account IDs for those people who can use the
- // document. If you share a document publicly, you must specify All as the account
- // ID.
- func (c *SSM) ModifyDocumentPermission(input *ModifyDocumentPermissionInput) (*ModifyDocumentPermissionOutput, error) {
- req, out := c.ModifyDocumentPermissionRequest(input)
- err := req.Send()
- return out, err
- }
- const opRemoveTagsFromResource = "RemoveTagsFromResource"
- // RemoveTagsFromResourceRequest generates a "aws/request.Request" representing the
- // client's request for the RemoveTagsFromResource operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the RemoveTagsFromResource method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the RemoveTagsFromResourceRequest method.
- // req, resp := client.RemoveTagsFromResourceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *SSM) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) (req *request.Request, output *RemoveTagsFromResourceOutput) {
- op := &request.Operation{
- Name: opRemoveTagsFromResource,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &RemoveTagsFromResourceInput{}
- }
- req = c.newRequest(op, input, output)
- output = &RemoveTagsFromResourceOutput{}
- req.Data = output
- return
- }
- // Removes all tags from the specified resource.
- func (c *SSM) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) {
- req, out := c.RemoveTagsFromResourceRequest(input)
- err := req.Send()
- return out, err
- }
- const opSendCommand = "SendCommand"
- // SendCommandRequest generates a "aws/request.Request" representing the
- // client's request for the SendCommand operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the SendCommand method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the SendCommandRequest method.
- // req, resp := client.SendCommandRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *SSM) SendCommandRequest(input *SendCommandInput) (req *request.Request, output *SendCommandOutput) {
- op := &request.Operation{
- Name: opSendCommand,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &SendCommandInput{}
- }
- req = c.newRequest(op, input, output)
- output = &SendCommandOutput{}
- req.Data = output
- return
- }
- // Executes commands on one or more remote instances.
- func (c *SSM) SendCommand(input *SendCommandInput) (*SendCommandOutput, error) {
- req, out := c.SendCommandRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateAssociationStatus = "UpdateAssociationStatus"
- // UpdateAssociationStatusRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateAssociationStatus operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateAssociationStatus method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdateAssociationStatusRequest method.
- // req, resp := client.UpdateAssociationStatusRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *SSM) UpdateAssociationStatusRequest(input *UpdateAssociationStatusInput) (req *request.Request, output *UpdateAssociationStatusOutput) {
- op := &request.Operation{
- Name: opUpdateAssociationStatus,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateAssociationStatusInput{}
- }
- req = c.newRequest(op, input, output)
- output = &UpdateAssociationStatusOutput{}
- req.Data = output
- return
- }
- // Updates the status of the SSM document associated with the specified instance.
- func (c *SSM) UpdateAssociationStatus(input *UpdateAssociationStatusInput) (*UpdateAssociationStatusOutput, error) {
- req, out := c.UpdateAssociationStatusRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateManagedInstanceRole = "UpdateManagedInstanceRole"
- // UpdateManagedInstanceRoleRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateManagedInstanceRole operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateManagedInstanceRole method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdateManagedInstanceRoleRequest method.
- // req, resp := client.UpdateManagedInstanceRoleRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *SSM) UpdateManagedInstanceRoleRequest(input *UpdateManagedInstanceRoleInput) (req *request.Request, output *UpdateManagedInstanceRoleOutput) {
- op := &request.Operation{
- Name: opUpdateManagedInstanceRole,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateManagedInstanceRoleInput{}
- }
- req = c.newRequest(op, input, output)
- output = &UpdateManagedInstanceRoleOutput{}
- req.Data = output
- return
- }
- // Assigns or changes an Amazon Identity and Access Management (IAM) role to
- // the managed instance.
- func (c *SSM) UpdateManagedInstanceRole(input *UpdateManagedInstanceRoleInput) (*UpdateManagedInstanceRoleOutput, error) {
- req, out := c.UpdateManagedInstanceRoleRequest(input)
- err := req.Send()
- return out, err
- }
- // An activation registers one or more on-premises servers or virtual machines
- // (VMs) with AWS so that you can configure those servers or VMs using Run Command.
- // A server or VM that has been registered with AWS is called a managed instance.
- type Activation struct {
- _ struct{} `type:"structure"`
- // The ID created by SSM when you submitted the activation.
- ActivationId *string `type:"string"`
- // The date the activation was created.
- CreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
- // A name for the managed instance when it is created.
- DefaultInstanceName *string `type:"string"`
- // A user defined description of the activation.
- Description *string `type:"string"`
- // The date when this activation can no longer be used to register managed instances.
- ExpirationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
- // Whether or not the activation is expired.
- Expired *bool `type:"boolean"`
- // The Amazon Identity and Access Management (IAM) role to assign to the managed
- // instance.
- IamRole *string `type:"string"`
- // The maximum number of managed instances that can be registered using this
- // activation.
- RegistrationLimit *int64 `min:"1" type:"integer"`
- // The number of managed instances already registered with this activation.
- RegistrationsCount *int64 `min:"1" type:"integer"`
- }
- // String returns the string representation
- func (s Activation) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Activation) GoString() string {
- return s.String()
- }
- type AddTagsToResourceInput struct {
- _ struct{} `type:"structure"`
- // The resource ID you want to tag.
- ResourceId *string `type:"string" required:"true"`
- // Specifies the type of resource you are tagging.
- ResourceType *string `type:"string" required:"true" enum:"ResourceTypeForTagging"`
- // One or more tags. The value parameter is required, but if you don't want
- // the tag to have a value, specify the parameter with no value, and we set
- // the value to an empty string.
- Tags []*Tag `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s AddTagsToResourceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddTagsToResourceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AddTagsToResourceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AddTagsToResourceInput"}
- if s.ResourceId == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceId"))
- }
- if s.ResourceType == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceType"))
- }
- if s.Tags == nil {
- invalidParams.Add(request.NewErrParamRequired("Tags"))
- }
- if s.Tags != nil {
- for i, v := range s.Tags {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type AddTagsToResourceOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s AddTagsToResourceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddTagsToResourceOutput) GoString() string {
- return s.String()
- }
- // Describes an association of an SSM document and an instance.
- type Association struct {
- _ struct{} `type:"structure"`
- // The ID of the instance.
- InstanceId *string `type:"string"`
- // The name of the SSM document.
- Name *string `type:"string"`
- }
- // String returns the string representation
- func (s Association) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Association) GoString() string {
- return s.String()
- }
- // Describes the parameters for a document.
- type AssociationDescription struct {
- _ struct{} `type:"structure"`
- // The date when the association was made.
- Date *time.Time `type:"timestamp" timestampFormat:"unix"`
- // The ID of the instance.
- InstanceId *string `type:"string"`
- // The name of the SSM document.
- Name *string `type:"string"`
- // A description of the parameters for a document.
- Parameters map[string][]*string `type:"map"`
- // The association status.
- Status *AssociationStatus `type:"structure"`
- }
- // String returns the string representation
- func (s AssociationDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AssociationDescription) GoString() string {
- return s.String()
- }
- // Describes a filter.
- type AssociationFilter struct {
- _ struct{} `type:"structure"`
- // The name of the filter.
- Key *string `locationName:"key" type:"string" required:"true" enum:"AssociationFilterKey"`
- // The filter value.
- Value *string `locationName:"value" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AssociationFilter) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AssociationFilter) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AssociationFilter) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AssociationFilter"}
- if s.Key == nil {
- invalidParams.Add(request.NewErrParamRequired("Key"))
- }
- if s.Value == nil {
- invalidParams.Add(request.NewErrParamRequired("Value"))
- }
- if s.Value != nil && len(*s.Value) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Value", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Describes an association status.
- type AssociationStatus struct {
- _ struct{} `type:"structure"`
- // A user-defined string.
- AdditionalInfo *string `type:"string"`
- // The date when the status changed.
- Date *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
- // The reason for the status.
- Message *string `type:"string" required:"true"`
- // The status.
- Name *string `type:"string" required:"true" enum:"AssociationStatusName"`
- }
- // String returns the string representation
- func (s AssociationStatus) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AssociationStatus) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AssociationStatus) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AssociationStatus"}
- if s.Date == nil {
- invalidParams.Add(request.NewErrParamRequired("Date"))
- }
- if s.Message == nil {
- invalidParams.Add(request.NewErrParamRequired("Message"))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type CancelCommandInput struct {
- _ struct{} `type:"structure"`
- // The ID of the command you want to cancel.
- CommandId *string `min:"36" type:"string" required:"true"`
- // (Optional) A list of instance IDs on which you want to cancel the command.
- // If not provided, the command is canceled on every instance on which it was
- // requested.
- InstanceIds []*string `min:"1" type:"list"`
- }
- // String returns the string representation
- func (s CancelCommandInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CancelCommandInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CancelCommandInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CancelCommandInput"}
- if s.CommandId == nil {
- invalidParams.Add(request.NewErrParamRequired("CommandId"))
- }
- if s.CommandId != nil && len(*s.CommandId) < 36 {
- invalidParams.Add(request.NewErrParamMinLen("CommandId", 36))
- }
- if s.InstanceIds != nil && len(s.InstanceIds) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("InstanceIds", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Whether or not the command was successfully canceled. There is no guarantee
- // that a request can be canceled.
- type CancelCommandOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s CancelCommandOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CancelCommandOutput) GoString() string {
- return s.String()
- }
- // Describes a command request.
- type Command struct {
- _ struct{} `type:"structure"`
- // A unique identifier for this command.
- CommandId *string `min:"36" type:"string"`
- // User-specified information about the command, such as a brief description
- // of what the command should do.
- Comment *string `type:"string"`
- // The name of the SSM document requested for execution.
- DocumentName *string `type:"string"`
- // If this time is reached and the command has not already started executing,
- // it will not execute. Calculated based on the ExpiresAfter user input provided
- // as part of the SendCommand API.
- ExpiresAfter *time.Time `type:"timestamp" timestampFormat:"unix"`
- // The instance IDs against which this command was requested.
- InstanceIds []*string `min:"1" type:"list"`
- // Configurations for sending notifications about command status changes.
- NotificationConfig *NotificationConfig `type:"structure"`
- // The S3 bucket where the responses to the command executions should be stored.
- // This was requested when issuing the command.
- OutputS3BucketName *string `min:"3" type:"string"`
- // The S3 directory path inside the bucket where the responses to the command
- // executions should be stored. This was requested when issuing the command.
- OutputS3KeyPrefix *string `type:"string"`
- // The parameter values to be inserted in the SSM document when executing the
- // command.
- Parameters map[string][]*string `type:"map"`
- // The date and time the command was requested.
- RequestedDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
- // The IAM service role that SSM uses to act on your behalf when sending notifications
- // about command status changes.
- ServiceRole *string `type:"string"`
- // The status of the command.
- Status *string `type:"string" enum:"CommandStatus"`
- }
- // String returns the string representation
- func (s Command) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Command) GoString() string {
- return s.String()
- }
- // Describes a command filter.
- type CommandFilter struct {
- _ struct{} `type:"structure"`
- // The name of the filter. For example, requested date and time.
- Key *string `locationName:"key" type:"string" required:"true" enum:"CommandFilterKey"`
- // The filter value. For example: June 30, 2015.
- Value *string `locationName:"value" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CommandFilter) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CommandFilter) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CommandFilter) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CommandFilter"}
- if s.Key == nil {
- invalidParams.Add(request.NewErrParamRequired("Key"))
- }
- if s.Value == nil {
- invalidParams.Add(request.NewErrParamRequired("Value"))
- }
- if s.Value != nil && len(*s.Value) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Value", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // An invocation is copy of a command sent to a specific instance. A command
- // can apply to one or more instances. A command invocation applies to one instance.
- // For example, if a user executes SendCommand against three instances, then
- // a command invocation is created for each requested instance ID. A command
- // invocation returns status and detail information about a command you executed.
- type CommandInvocation struct {
- _ struct{} `type:"structure"`
- // The command against which this invocation was requested.
- CommandId *string `min:"36" type:"string"`
- CommandPlugins []*CommandPlugin `type:"list"`
- // User-specified information about the command, such as a brief description
- // of what the command should do.
- Comment *string `type:"string"`
- // The document name that was requested for execution.
- DocumentName *string `type:"string"`
- // The instance ID in which this invocation was requested.
- InstanceId *string `type:"string"`
- // Configurations for sending notifications about command status changes on
- // a per instance basis.
- NotificationConfig *NotificationConfig `type:"structure"`
- // The time and date the request was sent to this instance.
- RequestedDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
- // The IAM service role that SSM uses to act on your behalf when sending notifications
- // about command status changes on a per instance basis.
- ServiceRole *string `type:"string"`
- // Whether or not the invocation succeeded, failed, or is pending.
- Status *string `type:"string" enum:"CommandInvocationStatus"`
- // Gets the trace output sent by the agent.
- TraceOutput *string `type:"string"`
- }
- // String returns the string representation
- func (s CommandInvocation) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CommandInvocation) GoString() string {
- return s.String()
- }
- // Describes plugin details.
- type CommandPlugin struct {
- _ struct{} `type:"structure"`
- // The name of the plugin. Must be one of the following: aws:updateAgent, aws:domainjoin,
- // aws:applications, aws:runPowerShellScript, aws:psmodule, aws:cloudWatch,
- // aws:runShellScript, or aws:updateSSMAgent.
- Name *string `min:"4" type:"string"`
- // Output of the plugin execution.
- Output *string `type:"string"`
- // The S3 bucket where the responses to the command executions should be stored.
- // This was requested when issuing the command.
- OutputS3BucketName *string `min:"3" type:"string"`
- // The S3 directory path inside the bucket where the responses to the command
- // executions should be stored. This was requested when issuing the command.
- OutputS3KeyPrefix *string `type:"string"`
- // A numeric response code generated after executing the plugin.
- ResponseCode *int64 `type:"integer"`
- // The time the plugin stopped executing. Could stop prematurely if, for example,
- // a cancel command was sent.
- ResponseFinishDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
- // The time the plugin started executing.
- ResponseStartDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
- // The status of this plugin. You can execute a document with multiple plugins.
- Status *string `type:"string" enum:"CommandPluginStatus"`
- }
- // String returns the string representation
- func (s CommandPlugin) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CommandPlugin) GoString() string {
- return s.String()
- }
- type CreateActivationInput struct {
- _ struct{} `type:"structure"`
- // The name of the registered, managed instance as it will appear in the Amazon
- // EC2 console or when you use the AWS command line tools to list EC2 resources.
- DefaultInstanceName *string `type:"string"`
- // A user-defined description of the resource that you want to register with
- // Amazon EC2.
- Description *string `type:"string"`
- // The date by which this activation request should expire. The default value
- // is 24 hours.
- ExpirationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
- // The Amazon Identity and Access Management (IAM) role that you want to assign
- // to the managed instance.
- IamRole *string `type:"string" required:"true"`
- // Specify the maximum number of managed instances you want to register. The
- // default value is 1 instance.
- RegistrationLimit *int64 `min:"1" type:"integer"`
- }
- // String returns the string representation
- func (s CreateActivationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateActivationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateActivationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateActivationInput"}
- if s.IamRole == nil {
- invalidParams.Add(request.NewErrParamRequired("IamRole"))
- }
- if s.RegistrationLimit != nil && *s.RegistrationLimit < 1 {
- invalidParams.Add(request.NewErrParamMinValue("RegistrationLimit", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type CreateActivationOutput struct {
- _ struct{} `type:"structure"`
- // The code the system generates when it processes the activation. The activation
- // code functions like a password to validate the activation ID.
- ActivationCode *string `min:"20" type:"string"`
- // The ID number generated by the system when it processed the activation. The
- // activation ID functions like a user name.
- ActivationId *string `type:"string"`
- }
- // String returns the string representation
- func (s CreateActivationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateActivationOutput) GoString() string {
- return s.String()
- }
- type CreateAssociationBatchInput struct {
- _ struct{} `type:"structure"`
- // One or more associations.
- Entries []*CreateAssociationBatchRequestEntry `locationNameList:"entries" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s CreateAssociationBatchInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateAssociationBatchInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateAssociationBatchInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateAssociationBatchInput"}
- if s.Entries == nil {
- invalidParams.Add(request.NewErrParamRequired("Entries"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type CreateAssociationBatchOutput struct {
- _ struct{} `type:"structure"`
- // Information about the associations that failed.
- Failed []*FailedCreateAssociation `locationNameList:"FailedCreateAssociationEntry" type:"list"`
- // Information about the associations that succeeded.
- Successful []*AssociationDescription `locationNameList:"AssociationDescription" type:"list"`
- }
- // String returns the string representation
- func (s CreateAssociationBatchOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateAssociationBatchOutput) GoString() string {
- return s.String()
- }
- // Describes the association of an SSM document and an instance.
- type CreateAssociationBatchRequestEntry struct {
- _ struct{} `type:"structure"`
- // The ID of the instance.
- InstanceId *string `type:"string"`
- // The name of the configuration document.
- Name *string `type:"string"`
- // A description of the parameters for a document.
- Parameters map[string][]*string `type:"map"`
- }
- // String returns the string representation
- func (s CreateAssociationBatchRequestEntry) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateAssociationBatchRequestEntry) GoString() string {
- return s.String()
- }
- type CreateAssociationInput struct {
- _ struct{} `type:"structure"`
- // The instance ID.
- InstanceId *string `type:"string" required:"true"`
- // The name of the SSM document.
- Name *string `type:"string" required:"true"`
- // The parameters for the documents runtime configuration.
- Parameters map[string][]*string `type:"map"`
- }
- // String returns the string representation
- func (s CreateAssociationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateAssociationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateAssociationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateAssociationInput"}
- if s.InstanceId == nil {
- invalidParams.Add(request.NewErrParamRequired("InstanceId"))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type CreateAssociationOutput struct {
- _ struct{} `type:"structure"`
- // Information about the association.
- AssociationDescription *AssociationDescription `type:"structure"`
- }
- // String returns the string representation
- func (s CreateAssociationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateAssociationOutput) GoString() string {
- return s.String()
- }
- type CreateDocumentInput struct {
- _ struct{} `type:"structure"`
- // A valid JSON string.
- Content *string `min:"1" type:"string" required:"true"`
- // A name for the SSM document.
- Name *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateDocumentInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateDocumentInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateDocumentInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateDocumentInput"}
- if s.Content == nil {
- invalidParams.Add(request.NewErrParamRequired("Content"))
- }
- if s.Content != nil && len(*s.Content) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Content", 1))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type CreateDocumentOutput struct {
- _ struct{} `type:"structure"`
- // Information about the SSM document.
- DocumentDescription *DocumentDescription `type:"structure"`
- }
- // String returns the string representation
- func (s CreateDocumentOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateDocumentOutput) GoString() string {
- return s.String()
- }
- type DeleteActivationInput struct {
- _ struct{} `type:"structure"`
- // The ID of the activation that you want to delete.
- ActivationId *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteActivationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteActivationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteActivationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteActivationInput"}
- if s.ActivationId == nil {
- invalidParams.Add(request.NewErrParamRequired("ActivationId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DeleteActivationOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteActivationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteActivationOutput) GoString() string {
- return s.String()
- }
- type DeleteAssociationInput struct {
- _ struct{} `type:"structure"`
- // The ID of the instance.
- InstanceId *string `type:"string" required:"true"`
- // The name of the SSM document.
- Name *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteAssociationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteAssociationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteAssociationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteAssociationInput"}
- if s.InstanceId == nil {
- invalidParams.Add(request.NewErrParamRequired("InstanceId"))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DeleteAssociationOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteAssociationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteAssociationOutput) GoString() string {
- return s.String()
- }
- type DeleteDocumentInput struct {
- _ struct{} `type:"structure"`
- // The name of the SSM document.
- Name *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteDocumentInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteDocumentInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteDocumentInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteDocumentInput"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DeleteDocumentOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteDocumentOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteDocumentOutput) GoString() string {
- return s.String()
- }
- type DeregisterManagedInstanceInput struct {
- _ struct{} `type:"structure"`
- // The ID assigned to the managed instance when you registered it using the
- // activation process.
- InstanceId *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeregisterManagedInstanceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeregisterManagedInstanceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeregisterManagedInstanceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeregisterManagedInstanceInput"}
- if s.InstanceId == nil {
- invalidParams.Add(request.NewErrParamRequired("InstanceId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DeregisterManagedInstanceOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeregisterManagedInstanceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeregisterManagedInstanceOutput) GoString() string {
- return s.String()
- }
- // Filter for the DescribeActivation API.
- type DescribeActivationsFilter struct {
- _ struct{} `type:"structure"`
- // The name of the filter.
- FilterKey *string `type:"string" enum:"DescribeActivationsFilterKeys"`
- // The filter values.
- FilterValues []*string `type:"list"`
- }
- // String returns the string representation
- func (s DescribeActivationsFilter) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeActivationsFilter) GoString() string {
- return s.String()
- }
- type DescribeActivationsInput struct {
- _ struct{} `type:"structure"`
- // A filter to view information about your activations.
- Filters []*DescribeActivationsFilter `type:"list"`
- // The maximum number of items to return for this call. The call also returns
- // a token that you can specify in a subsequent call to get the next set of
- // results.
- MaxResults *int64 `min:"1" type:"integer"`
- // A token to start the list. Use this token to get the next set of results.
- NextToken *string `type:"string"`
- }
- // String returns the string representation
- func (s DescribeActivationsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeActivationsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeActivationsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeActivationsInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DescribeActivationsOutput struct {
- _ struct{} `type:"structure"`
- // A list of activations for your AWS account.
- ActivationList []*Activation `type:"list"`
- // The token for the next set of items to return. Use this token to get the
- // next set of results.
- NextToken *string `type:"string"`
- }
- // String returns the string representation
- func (s DescribeActivationsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeActivationsOutput) GoString() string {
- return s.String()
- }
- type DescribeAssociationInput struct {
- _ struct{} `type:"structure"`
- // The instance ID.
- InstanceId *string `type:"string" required:"true"`
- // The name of the SSM document.
- Name *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeAssociationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeAssociationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeAssociationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeAssociationInput"}
- if s.InstanceId == nil {
- invalidParams.Add(request.NewErrParamRequired("InstanceId"))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DescribeAssociationOutput struct {
- _ struct{} `type:"structure"`
- // Information about the association.
- AssociationDescription *AssociationDescription `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeAssociationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeAssociationOutput) GoString() string {
- return s.String()
- }
- type DescribeDocumentInput struct {
- _ struct{} `type:"structure"`
- // The name of the SSM document.
- Name *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeDocumentInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeDocumentInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeDocumentInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeDocumentInput"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DescribeDocumentOutput struct {
- _ struct{} `type:"structure"`
- // Information about the SSM document.
- Document *DocumentDescription `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeDocumentOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeDocumentOutput) GoString() string {
- return s.String()
- }
- type DescribeDocumentPermissionInput struct {
- _ struct{} `type:"structure"`
- // The name of the document for which you are the owner.
- Name *string `type:"string" required:"true"`
- // The permission type for the document. The permission type can be Share.
- PermissionType *string `type:"string" required:"true" enum:"DocumentPermissionType"`
- }
- // String returns the string representation
- func (s DescribeDocumentPermissionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeDocumentPermissionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeDocumentPermissionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeDocumentPermissionInput"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.PermissionType == nil {
- invalidParams.Add(request.NewErrParamRequired("PermissionType"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DescribeDocumentPermissionOutput struct {
- _ struct{} `type:"structure"`
- // The account IDs that have permission to use this document. The ID can be
- // either an AWS account or All.
- AccountIds []*string `locationNameList:"AccountId" type:"list"`
- }
- // String returns the string representation
- func (s DescribeDocumentPermissionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeDocumentPermissionOutput) GoString() string {
- return s.String()
- }
- type DescribeInstanceInformationInput struct {
- _ struct{} `type:"structure"`
- // One or more filters. Use a filter to return a more specific list of instances.
- InstanceInformationFilterList []*InstanceInformationFilter `locationNameList:"InstanceInformationFilter" min:"1" type:"list"`
- // The maximum number of items to return for this call. The call also returns
- // a token that you can specify in a subsequent call to get the next set of
- // results.
- MaxResults *int64 `min:"5" type:"integer"`
- // The token for the next set of items to return. (You received this token from
- // a previous call.)
- NextToken *string `type:"string"`
- }
- // String returns the string representation
- func (s DescribeInstanceInformationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeInstanceInformationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeInstanceInformationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeInstanceInformationInput"}
- if s.InstanceInformationFilterList != nil && len(s.InstanceInformationFilterList) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("InstanceInformationFilterList", 1))
- }
- if s.MaxResults != nil && *s.MaxResults < 5 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
- }
- if s.InstanceInformationFilterList != nil {
- for i, v := range s.InstanceInformationFilterList {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InstanceInformationFilterList", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DescribeInstanceInformationOutput struct {
- _ struct{} `type:"structure"`
- // The instance information list.
- InstanceInformationList []*InstanceInformation `locationNameList:"InstanceInformation" type:"list"`
- // The token to use when requesting the next set of items. If there are no additional
- // items to return, the string is empty.
- NextToken *string `type:"string"`
- }
- // String returns the string representation
- func (s DescribeInstanceInformationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeInstanceInformationOutput) GoString() string {
- return s.String()
- }
- // Describes an SSM document.
- type DocumentDescription struct {
- _ struct{} `type:"structure"`
- // The date when the SSM document was created.
- CreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
- // A description of the document.
- Description *string `type:"string"`
- // The Sha256 or Sha1 hash created by the system when the document was created.
- //
- // Sha1 hashes have been deprecated.
- Hash *string `type:"string"`
- // Sha256 or Sha1.
- //
- // Sha1 hashes have been deprecated.
- HashType *string `type:"string" enum:"DocumentHashType"`
- // The name of the SSM document.
- Name *string `type:"string"`
- // The AWS user account of the person who created the document.
- Owner *string `type:"string"`
- // A description of the parameters for a document.
- Parameters []*DocumentParameter `locationNameList:"DocumentParameter" type:"list"`
- // The list of OS platforms compatible with this SSM document.
- PlatformTypes []*string `locationNameList:"PlatformType" type:"list"`
- // The SHA1 hash of the document, which you can use for verification purposes.
- Sha1 *string `type:"string"`
- // The status of the SSM document.
- Status *string `type:"string" enum:"DocumentStatus"`
- }
- // String returns the string representation
- func (s DocumentDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DocumentDescription) GoString() string {
- return s.String()
- }
- // Describes a filter.
- type DocumentFilter struct {
- _ struct{} `type:"structure"`
- // The name of the filter.
- Key *string `locationName:"key" type:"string" required:"true" enum:"DocumentFilterKey"`
- // The value of the filter.
- Value *string `locationName:"value" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DocumentFilter) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DocumentFilter) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DocumentFilter) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DocumentFilter"}
- if s.Key == nil {
- invalidParams.Add(request.NewErrParamRequired("Key"))
- }
- if s.Value == nil {
- invalidParams.Add(request.NewErrParamRequired("Value"))
- }
- if s.Value != nil && len(*s.Value) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Value", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Describes the name of an SSM document.
- type DocumentIdentifier struct {
- _ struct{} `type:"structure"`
- // The name of the SSM document.
- Name *string `type:"string"`
- // The AWS user account of the person who created the document.
- Owner *string `type:"string"`
- // The operating system platform.
- PlatformTypes []*string `locationNameList:"PlatformType" type:"list"`
- }
- // String returns the string representation
- func (s DocumentIdentifier) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DocumentIdentifier) GoString() string {
- return s.String()
- }
- // Parameters specified in the SSM document that execute on the server when
- // the command is run.
- type DocumentParameter struct {
- _ struct{} `type:"structure"`
- // If specified, the default values for the parameters. Parameters without a
- // default value are required. Parameters with a default value are optional.
- DefaultValue *string `type:"string"`
- // A description of what the parameter does, how to use it, the default value,
- // and whether or not the parameter is optional.
- Description *string `type:"string"`
- // The name of the parameter.
- Name *string `type:"string"`
- // The type of parameter. The type can be either “String” or “StringList”.
- Type *string `type:"string" enum:"DocumentParameterType"`
- }
- // String returns the string representation
- func (s DocumentParameter) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DocumentParameter) GoString() string {
- return s.String()
- }
- // Describes a failed association.
- type FailedCreateAssociation struct {
- _ struct{} `type:"structure"`
- // The association.
- Entry *CreateAssociationBatchRequestEntry `type:"structure"`
- // The source of the failure.
- Fault *string `type:"string" enum:"Fault"`
- // A description of the failure.
- Message *string `type:"string"`
- }
- // String returns the string representation
- func (s FailedCreateAssociation) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s FailedCreateAssociation) GoString() string {
- return s.String()
- }
- type GetDocumentInput struct {
- _ struct{} `type:"structure"`
- // The name of the SSM document.
- Name *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetDocumentInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetDocumentInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetDocumentInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetDocumentInput"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type GetDocumentOutput struct {
- _ struct{} `type:"structure"`
- // The contents of the SSM document.
- Content *string `min:"1" type:"string"`
- // The name of the SSM document.
- Name *string `type:"string"`
- }
- // String returns the string representation
- func (s GetDocumentOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetDocumentOutput) GoString() string {
- return s.String()
- }
- // Describes a filter for a specific list of instances.
- type InstanceInformation struct {
- _ struct{} `type:"structure"`
- // The activation ID created by SSM when the server or VM was registered.
- ActivationId *string `type:"string"`
- // The version of the SSM agent running on your instance.
- AgentVersion *string `type:"string"`
- // The fully qualified host name of the managed instance.
- ComputerName *string `min:"1" type:"string"`
- // The IP address of the managed instance.
- IPAddress *string `min:"1" type:"string"`
- // The Amazon Identity and Access Management (IAM) role assigned to EC2 instances
- // or managed instances.
- IamRole *string `type:"string"`
- // The instance ID.
- InstanceId *string `type:"string"`
- // Indicates whether latest version of the SSM agent is running on your instance.
- IsLatestVersion *bool `type:"boolean"`
- // The date and time when agent last pinged SSM service.
- LastPingDateTime *time.Time `type:"timestamp" timestampFormat:"unix"`
- // The name of the managed instance.
- Name *string `type:"string"`
- // Connection status of the SSM agent.
- PingStatus *string `type:"string" enum:"PingStatus"`
- // The name of the operating system platform running on your instance.
- PlatformName *string `type:"string"`
- // The operating system platform type.
- PlatformType *string `type:"string" enum:"PlatformType"`
- // The version of the OS platform running on your instance.
- PlatformVersion *string `type:"string"`
- // The date the server or VM was registered with AWS as a managed instance.
- RegistrationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
- // The type of instance. Instances are either EC2 instances or managed instances.
- ResourceType *string `type:"string" enum:"ResourceType"`
- }
- // String returns the string representation
- func (s InstanceInformation) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s InstanceInformation) GoString() string {
- return s.String()
- }
- // Describes a filter for a specific list of instances.
- type InstanceInformationFilter struct {
- _ struct{} `type:"structure"`
- // The name of the filter.
- Key *string `locationName:"key" type:"string" required:"true" enum:"InstanceInformationFilterKey"`
- // The filter values.
- ValueSet []*string `locationName:"valueSet" locationNameList:"InstanceInformationFilterValue" min:"1" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s InstanceInformationFilter) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s InstanceInformationFilter) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *InstanceInformationFilter) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "InstanceInformationFilter"}
- if s.Key == nil {
- invalidParams.Add(request.NewErrParamRequired("Key"))
- }
- if s.ValueSet == nil {
- invalidParams.Add(request.NewErrParamRequired("ValueSet"))
- }
- if s.ValueSet != nil && len(s.ValueSet) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ValueSet", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type ListAssociationsInput struct {
- _ struct{} `type:"structure"`
- // One or more filters. Use a filter to return a more specific list of results.
- AssociationFilterList []*AssociationFilter `locationNameList:"AssociationFilter" min:"1" type:"list" required:"true"`
- // The maximum number of items to return for this call. The call also returns
- // a token that you can specify in a subsequent call to get the next set of
- // results.
- MaxResults *int64 `min:"1" type:"integer"`
- // The token for the next set of items to return. (You received this token from
- // a previous call.)
- NextToken *string `type:"string"`
- }
- // String returns the string representation
- func (s ListAssociationsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListAssociationsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListAssociationsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListAssociationsInput"}
- if s.AssociationFilterList == nil {
- invalidParams.Add(request.NewErrParamRequired("AssociationFilterList"))
- }
- if s.AssociationFilterList != nil && len(s.AssociationFilterList) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AssociationFilterList", 1))
- }
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.AssociationFilterList != nil {
- for i, v := range s.AssociationFilterList {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AssociationFilterList", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type ListAssociationsOutput struct {
- _ struct{} `type:"structure"`
- // The associations.
- Associations []*Association `locationNameList:"Association" type:"list"`
- // The token to use when requesting the next set of items. If there are no additional
- // items to return, the string is empty.
- NextToken *string `type:"string"`
- }
- // String returns the string representation
- func (s ListAssociationsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListAssociationsOutput) GoString() string {
- return s.String()
- }
- type ListCommandInvocationsInput struct {
- _ struct{} `type:"structure"`
- // (Optional) The invocations for a specific command ID.
- CommandId *string `min:"36" type:"string"`
- // (Optional) If set this returns the response of the command executions and
- // any command output. By default this is set to False.
- Details *bool `type:"boolean"`
- // (Optional) One or more filters. Use a filter to return a more specific list
- // of results.
- Filters []*CommandFilter `min:"1" type:"list"`
- // (Optional) The command execution details for a specific instance ID.
- InstanceId *string `type:"string"`
- // (Optional) The maximum number of items to return for this call. The call
- // also returns a token that you can specify in a subsequent call to get the
- // next set of results.
- MaxResults *int64 `min:"1" type:"integer"`
- // (Optional) The token for the next set of items to return. (You received this
- // token from a previous call.)
- NextToken *string `type:"string"`
- }
- // String returns the string representation
- func (s ListCommandInvocationsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListCommandInvocationsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListCommandInvocationsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListCommandInvocationsInput"}
- if s.CommandId != nil && len(*s.CommandId) < 36 {
- invalidParams.Add(request.NewErrParamMinLen("CommandId", 36))
- }
- if s.Filters != nil && len(s.Filters) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Filters", 1))
- }
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.Filters != nil {
- for i, v := range s.Filters {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type ListCommandInvocationsOutput struct {
- _ struct{} `type:"structure"`
- // (Optional) A list of all invocations.
- CommandInvocations []*CommandInvocation `type:"list"`
- // (Optional) The token for the next set of items to return. (You received this
- // token from a previous call.)
- NextToken *string `type:"string"`
- }
- // String returns the string representation
- func (s ListCommandInvocationsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListCommandInvocationsOutput) GoString() string {
- return s.String()
- }
- type ListCommandsInput struct {
- _ struct{} `type:"structure"`
- // (Optional) If provided, lists only the specified command.
- CommandId *string `min:"36" type:"string"`
- // (Optional) One or more filters. Use a filter to return a more specific list
- // of results.
- Filters []*CommandFilter `min:"1" type:"list"`
- // (Optional) Lists commands issued against this instance ID.
- InstanceId *string `type:"string"`
- // (Optional) The maximum number of items to return for this call. The call
- // also returns a token that you can specify in a subsequent call to get the
- // next set of results.
- MaxResults *int64 `min:"1" type:"integer"`
- // (Optional) The token for the next set of items to return. (You received this
- // token from a previous call.)
- NextToken *string `type:"string"`
- }
- // String returns the string representation
- func (s ListCommandsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListCommandsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListCommandsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListCommandsInput"}
- if s.CommandId != nil && len(*s.CommandId) < 36 {
- invalidParams.Add(request.NewErrParamMinLen("CommandId", 36))
- }
- if s.Filters != nil && len(s.Filters) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Filters", 1))
- }
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.Filters != nil {
- for i, v := range s.Filters {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type ListCommandsOutput struct {
- _ struct{} `type:"structure"`
- // (Optional) The list of commands requested by the user.
- Commands []*Command `type:"list"`
- // (Optional) The token for the next set of items to return. (You received this
- // token from a previous call.)
- NextToken *string `type:"string"`
- }
- // String returns the string representation
- func (s ListCommandsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListCommandsOutput) GoString() string {
- return s.String()
- }
- type ListDocumentsInput struct {
- _ struct{} `type:"structure"`
- // One or more filters. Use a filter to return a more specific list of results.
- DocumentFilterList []*DocumentFilter `locationNameList:"DocumentFilter" min:"1" type:"list"`
- // The maximum number of items to return for this call. The call also returns
- // a token that you can specify in a subsequent call to get the next set of
- // results.
- MaxResults *int64 `min:"1" type:"integer"`
- // The token for the next set of items to return. (You received this token from
- // a previous call.)
- NextToken *string `type:"string"`
- }
- // String returns the string representation
- func (s ListDocumentsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListDocumentsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListDocumentsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListDocumentsInput"}
- if s.DocumentFilterList != nil && len(s.DocumentFilterList) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DocumentFilterList", 1))
- }
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.DocumentFilterList != nil {
- for i, v := range s.DocumentFilterList {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DocumentFilterList", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type ListDocumentsOutput struct {
- _ struct{} `type:"structure"`
- // The names of the SSM documents.
- DocumentIdentifiers []*DocumentIdentifier `locationNameList:"DocumentIdentifier" type:"list"`
- // The token to use when requesting the next set of items. If there are no additional
- // items to return, the string is empty.
- NextToken *string `type:"string"`
- }
- // String returns the string representation
- func (s ListDocumentsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListDocumentsOutput) GoString() string {
- return s.String()
- }
- type ListTagsForResourceInput struct {
- _ struct{} `type:"structure"`
- // The resource ID for which you want to see a list of tags.
- ResourceId *string `type:"string" required:"true"`
- // Returns a list of tags for a specific resource type.
- ResourceType *string `type:"string" required:"true" enum:"ResourceTypeForTagging"`
- }
- // String returns the string representation
- func (s ListTagsForResourceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTagsForResourceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListTagsForResourceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
- if s.ResourceId == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceId"))
- }
- if s.ResourceType == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceType"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type ListTagsForResourceOutput struct {
- _ struct{} `type:"structure"`
- // A list of tags.
- TagList []*Tag `type:"list"`
- }
- // String returns the string representation
- func (s ListTagsForResourceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTagsForResourceOutput) GoString() string {
- return s.String()
- }
- type ModifyDocumentPermissionInput struct {
- _ struct{} `type:"structure"`
- // The AWS user accounts that should have access to the document. The account
- // IDs can either be a group of account IDs or All.
- AccountIdsToAdd []*string `locationNameList:"AccountId" type:"list"`
- // The AWS user accounts that should no longer have access to the document.
- // The AWS user account can either be a group of account IDs or All. This action
- // has a higher priority than AccountIdsToAdd. If you specify an account ID
- // to add and the same ID to remove, the system removes access to the document.
- AccountIdsToRemove []*string `locationNameList:"AccountId" type:"list"`
- // The name of the document that you want to share.
- Name *string `type:"string" required:"true"`
- // The permission type for the document. The permission type can be Share.
- PermissionType *string `type:"string" required:"true" enum:"DocumentPermissionType"`
- }
- // String returns the string representation
- func (s ModifyDocumentPermissionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyDocumentPermissionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ModifyDocumentPermissionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ModifyDocumentPermissionInput"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.PermissionType == nil {
- invalidParams.Add(request.NewErrParamRequired("PermissionType"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type ModifyDocumentPermissionOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s ModifyDocumentPermissionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyDocumentPermissionOutput) GoString() string {
- return s.String()
- }
- // Configurations for sending notifications.
- type NotificationConfig struct {
- _ struct{} `type:"structure"`
- // An Amazon Resource Name (ARN) for a Simple Notification Service (SNS) topic.
- // SSM pushes notifications about command status changes to this topic.
- NotificationArn *string `type:"string"`
- // The different events for which you can receive notifications. These events
- // include the following: All (events), InProgress, Success, TimedOut, Cancelled,
- // Failed. To learn more about these events, see Monitoring Commands (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitor-commands.html)
- // in the Amazon Elastic Compute Cloud User Guide .
- NotificationEvents []*string `type:"list"`
- // Command: Receive notification when the status of a command changes. Invocation:
- // For commands sent to multiple instances, receive notification on a per-instance
- // basis when the status of a command changes.
- NotificationType *string `type:"string" enum:"NotificationType"`
- }
- // String returns the string representation
- func (s NotificationConfig) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s NotificationConfig) GoString() string {
- return s.String()
- }
- type RemoveTagsFromResourceInput struct {
- _ struct{} `type:"structure"`
- // The resource ID for which you want to remove tags.
- ResourceId *string `type:"string" required:"true"`
- // The type of resource of which you want to remove a tag.
- ResourceType *string `type:"string" required:"true" enum:"ResourceTypeForTagging"`
- // Tag keys that you want to remove from the specified resource.
- TagKeys []*string `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s RemoveTagsFromResourceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RemoveTagsFromResourceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RemoveTagsFromResourceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromResourceInput"}
- if s.ResourceId == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceId"))
- }
- if s.ResourceType == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceType"))
- }
- if s.TagKeys == nil {
- invalidParams.Add(request.NewErrParamRequired("TagKeys"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type RemoveTagsFromResourceOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s RemoveTagsFromResourceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RemoveTagsFromResourceOutput) GoString() string {
- return s.String()
- }
- type SendCommandInput struct {
- _ struct{} `type:"structure"`
- // User-specified information about the command, such as a brief description
- // of what the command should do.
- Comment *string `type:"string"`
- // The Sha256 or Sha1 hash created by the system when the document was created.
- //
- // Sha1 hashes have been deprecated.
- DocumentHash *string `type:"string"`
- // Sha256 or Sha1.
- //
- // Sha1 hashes have been deprecated.
- DocumentHashType *string `type:"string" enum:"DocumentHashType"`
- // Required. The name of the SSM document to execute. This can be an SSM public
- // document or a custom document.
- DocumentName *string `type:"string" required:"true"`
- // Required. The instance IDs where the command should execute. You can specify
- // a maximum of 50 IDs.
- InstanceIds []*string `min:"1" type:"list" required:"true"`
- // Configurations for sending notifications.
- NotificationConfig *NotificationConfig `type:"structure"`
- // The name of the S3 bucket where command execution responses should be stored.
- OutputS3BucketName *string `min:"3" type:"string"`
- // The directory structure within the S3 bucket where the responses should be
- // stored.
- OutputS3KeyPrefix *string `type:"string"`
- // The required and optional parameters specified in the SSM document being
- // executed.
- Parameters map[string][]*string `type:"map"`
- // The IAM role that SSM uses to send notifications.
- ServiceRoleArn *string `type:"string"`
- // If this time is reached and the command has not already started executing,
- // it will not execute.
- TimeoutSeconds *int64 `min:"30" type:"integer"`
- }
- // String returns the string representation
- func (s SendCommandInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SendCommandInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SendCommandInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SendCommandInput"}
- if s.DocumentName == nil {
- invalidParams.Add(request.NewErrParamRequired("DocumentName"))
- }
- if s.InstanceIds == nil {
- invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
- }
- if s.InstanceIds != nil && len(s.InstanceIds) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("InstanceIds", 1))
- }
- if s.OutputS3BucketName != nil && len(*s.OutputS3BucketName) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("OutputS3BucketName", 3))
- }
- if s.TimeoutSeconds != nil && *s.TimeoutSeconds < 30 {
- invalidParams.Add(request.NewErrParamMinValue("TimeoutSeconds", 30))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type SendCommandOutput struct {
- _ struct{} `type:"structure"`
- // The request as it was received by SSM. Also provides the command ID which
- // can be used future references to this request.
- Command *Command `type:"structure"`
- }
- // String returns the string representation
- func (s SendCommandOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SendCommandOutput) GoString() string {
- return s.String()
- }
- // Metadata that you assign to your managed instances. Tags enable you to categorize
- // your managed instances in different ways, for example, by purpose, owner,
- // or environment.
- type Tag struct {
- _ struct{} `type:"structure"`
- // The name of the tag.
- Key *string `min:"1" type:"string" required:"true"`
- // The value of the tag.
- Value *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s Tag) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Tag) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *Tag) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Tag"}
- if s.Key == nil {
- invalidParams.Add(request.NewErrParamRequired("Key"))
- }
- if s.Key != nil && len(*s.Key) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Key", 1))
- }
- if s.Value == nil {
- invalidParams.Add(request.NewErrParamRequired("Value"))
- }
- if s.Value != nil && len(*s.Value) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Value", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type UpdateAssociationStatusInput struct {
- _ struct{} `type:"structure"`
- // The association status.
- AssociationStatus *AssociationStatus `type:"structure" required:"true"`
- // The ID of the instance.
- InstanceId *string `type:"string" required:"true"`
- // The name of the SSM document.
- Name *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateAssociationStatusInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateAssociationStatusInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateAssociationStatusInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateAssociationStatusInput"}
- if s.AssociationStatus == nil {
- invalidParams.Add(request.NewErrParamRequired("AssociationStatus"))
- }
- if s.InstanceId == nil {
- invalidParams.Add(request.NewErrParamRequired("InstanceId"))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.AssociationStatus != nil {
- if err := s.AssociationStatus.Validate(); err != nil {
- invalidParams.AddNested("AssociationStatus", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type UpdateAssociationStatusOutput struct {
- _ struct{} `type:"structure"`
- // Information about the association.
- AssociationDescription *AssociationDescription `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateAssociationStatusOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateAssociationStatusOutput) GoString() string {
- return s.String()
- }
- type UpdateManagedInstanceRoleInput struct {
- _ struct{} `type:"structure"`
- // The IAM role you want to assign or change.
- IamRole *string `type:"string" required:"true"`
- // The ID of the managed instance where you want to update the role.
- InstanceId *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateManagedInstanceRoleInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateManagedInstanceRoleInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateManagedInstanceRoleInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateManagedInstanceRoleInput"}
- if s.IamRole == nil {
- invalidParams.Add(request.NewErrParamRequired("IamRole"))
- }
- if s.InstanceId == nil {
- invalidParams.Add(request.NewErrParamRequired("InstanceId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type UpdateManagedInstanceRoleOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateManagedInstanceRoleOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateManagedInstanceRoleOutput) GoString() string {
- return s.String()
- }
- const (
- // @enum AssociationFilterKey
- AssociationFilterKeyInstanceId = "InstanceId"
- // @enum AssociationFilterKey
- AssociationFilterKeyName = "Name"
- )
- const (
- // @enum AssociationStatusName
- AssociationStatusNamePending = "Pending"
- // @enum AssociationStatusName
- AssociationStatusNameSuccess = "Success"
- // @enum AssociationStatusName
- AssociationStatusNameFailed = "Failed"
- )
- const (
- // @enum CommandFilterKey
- CommandFilterKeyInvokedAfter = "InvokedAfter"
- // @enum CommandFilterKey
- CommandFilterKeyInvokedBefore = "InvokedBefore"
- // @enum CommandFilterKey
- CommandFilterKeyStatus = "Status"
- )
- const (
- // @enum CommandInvocationStatus
- CommandInvocationStatusPending = "Pending"
- // @enum CommandInvocationStatus
- CommandInvocationStatusInProgress = "InProgress"
- // @enum CommandInvocationStatus
- CommandInvocationStatusCancelling = "Cancelling"
- // @enum CommandInvocationStatus
- CommandInvocationStatusSuccess = "Success"
- // @enum CommandInvocationStatus
- CommandInvocationStatusTimedOut = "TimedOut"
- // @enum CommandInvocationStatus
- CommandInvocationStatusCancelled = "Cancelled"
- // @enum CommandInvocationStatus
- CommandInvocationStatusFailed = "Failed"
- )
- const (
- // @enum CommandPluginStatus
- CommandPluginStatusPending = "Pending"
- // @enum CommandPluginStatus
- CommandPluginStatusInProgress = "InProgress"
- // @enum CommandPluginStatus
- CommandPluginStatusSuccess = "Success"
- // @enum CommandPluginStatus
- CommandPluginStatusTimedOut = "TimedOut"
- // @enum CommandPluginStatus
- CommandPluginStatusCancelled = "Cancelled"
- // @enum CommandPluginStatus
- CommandPluginStatusFailed = "Failed"
- )
- const (
- // @enum CommandStatus
- CommandStatusPending = "Pending"
- // @enum CommandStatus
- CommandStatusInProgress = "InProgress"
- // @enum CommandStatus
- CommandStatusCancelling = "Cancelling"
- // @enum CommandStatus
- CommandStatusSuccess = "Success"
- // @enum CommandStatus
- CommandStatusTimedOut = "TimedOut"
- // @enum CommandStatus
- CommandStatusCancelled = "Cancelled"
- // @enum CommandStatus
- CommandStatusFailed = "Failed"
- )
- const (
- // @enum DescribeActivationsFilterKeys
- DescribeActivationsFilterKeysActivationIds = "ActivationIds"
- // @enum DescribeActivationsFilterKeys
- DescribeActivationsFilterKeysDefaultInstanceName = "DefaultInstanceName"
- // @enum DescribeActivationsFilterKeys
- DescribeActivationsFilterKeysIamRole = "IamRole"
- )
- const (
- // @enum DocumentFilterKey
- DocumentFilterKeyName = "Name"
- // @enum DocumentFilterKey
- DocumentFilterKeyOwner = "Owner"
- // @enum DocumentFilterKey
- DocumentFilterKeyPlatformTypes = "PlatformTypes"
- )
- const (
- // @enum DocumentHashType
- DocumentHashTypeSha256 = "Sha256"
- // @enum DocumentHashType
- DocumentHashTypeSha1 = "Sha1"
- )
- const (
- // @enum DocumentParameterType
- DocumentParameterTypeString = "String"
- // @enum DocumentParameterType
- DocumentParameterTypeStringList = "StringList"
- )
- const (
- // @enum DocumentPermissionType
- DocumentPermissionTypeShare = "Share"
- )
- const (
- // @enum DocumentStatus
- DocumentStatusCreating = "Creating"
- // @enum DocumentStatus
- DocumentStatusActive = "Active"
- // @enum DocumentStatus
- DocumentStatusDeleting = "Deleting"
- )
- const (
- // @enum Fault
- FaultClient = "Client"
- // @enum Fault
- FaultServer = "Server"
- // @enum Fault
- FaultUnknown = "Unknown"
- )
- const (
- // @enum InstanceInformationFilterKey
- InstanceInformationFilterKeyInstanceIds = "InstanceIds"
- // @enum InstanceInformationFilterKey
- InstanceInformationFilterKeyAgentVersion = "AgentVersion"
- // @enum InstanceInformationFilterKey
- InstanceInformationFilterKeyPingStatus = "PingStatus"
- // @enum InstanceInformationFilterKey
- InstanceInformationFilterKeyPlatformTypes = "PlatformTypes"
- // @enum InstanceInformationFilterKey
- InstanceInformationFilterKeyActivationIds = "ActivationIds"
- // @enum InstanceInformationFilterKey
- InstanceInformationFilterKeyIamRole = "IamRole"
- // @enum InstanceInformationFilterKey
- InstanceInformationFilterKeyResourceType = "ResourceType"
- )
- const (
- // @enum NotificationEvent
- NotificationEventAll = "All"
- // @enum NotificationEvent
- NotificationEventInProgress = "InProgress"
- // @enum NotificationEvent
- NotificationEventSuccess = "Success"
- // @enum NotificationEvent
- NotificationEventTimedOut = "TimedOut"
- // @enum NotificationEvent
- NotificationEventCancelled = "Cancelled"
- // @enum NotificationEvent
- NotificationEventFailed = "Failed"
- )
- const (
- // @enum NotificationType
- NotificationTypeCommand = "Command"
- // @enum NotificationType
- NotificationTypeInvocation = "Invocation"
- )
- const (
- // @enum PingStatus
- PingStatusOnline = "Online"
- // @enum PingStatus
- PingStatusConnectionLost = "ConnectionLost"
- // @enum PingStatus
- PingStatusInactive = "Inactive"
- )
- const (
- // @enum PlatformType
- PlatformTypeWindows = "Windows"
- // @enum PlatformType
- PlatformTypeLinux = "Linux"
- )
- const (
- // @enum ResourceType
- ResourceTypeManagedInstance = "ManagedInstance"
- // @enum ResourceType
- ResourceTypeDocument = "Document"
- // @enum ResourceType
- ResourceTypeEc2instance = "EC2Instance"
- )
- const (
- // @enum ResourceTypeForTagging
- ResourceTypeForTaggingManagedInstance = "ManagedInstance"
- )
|