api.go 176 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package configservice provides a client for AWS Config.
  3. package configservice
  4. import (
  5. "fmt"
  6. "time"
  7. "github.com/aws/aws-sdk-go/aws/awsutil"
  8. "github.com/aws/aws-sdk-go/aws/request"
  9. "github.com/aws/aws-sdk-go/private/protocol"
  10. "github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
  11. )
  12. const opDeleteConfigRule = "DeleteConfigRule"
  13. // DeleteConfigRuleRequest generates a "aws/request.Request" representing the
  14. // client's request for the DeleteConfigRule operation. The "output" return
  15. // value can be used to capture response data after the request's "Send" method
  16. // is called.
  17. //
  18. // See DeleteConfigRule for usage and error information.
  19. //
  20. // Creating a request object using this method should be used when you want to inject
  21. // custom logic into the request's lifecycle using a custom handler, or if you want to
  22. // access properties on the request object before or after sending the request. If
  23. // you just want the service response, call the DeleteConfigRule method directly
  24. // instead.
  25. //
  26. // Note: You must call the "Send" method on the returned request object in order
  27. // to execute the request.
  28. //
  29. // // Example sending a request using the DeleteConfigRuleRequest method.
  30. // req, resp := client.DeleteConfigRuleRequest(params)
  31. //
  32. // err := req.Send()
  33. // if err == nil { // resp is now filled
  34. // fmt.Println(resp)
  35. // }
  36. //
  37. func (c *ConfigService) DeleteConfigRuleRequest(input *DeleteConfigRuleInput) (req *request.Request, output *DeleteConfigRuleOutput) {
  38. op := &request.Operation{
  39. Name: opDeleteConfigRule,
  40. HTTPMethod: "POST",
  41. HTTPPath: "/",
  42. }
  43. if input == nil {
  44. input = &DeleteConfigRuleInput{}
  45. }
  46. req = c.newRequest(op, input, output)
  47. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  48. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  49. output = &DeleteConfigRuleOutput{}
  50. req.Data = output
  51. return
  52. }
  53. // DeleteConfigRule API operation for AWS Config.
  54. //
  55. // Deletes the specified AWS Config rule and all of its evaluation results.
  56. //
  57. // AWS Config sets the state of a rule to DELETING until the deletion is complete.
  58. // You cannot update a rule while it is in this state. If you make a PutConfigRule
  59. // or DeleteConfigRule request for the rule, you will receive a ResourceInUseException.
  60. //
  61. // You can check the state of a rule by using the DescribeConfigRules request.
  62. //
  63. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  64. // with awserr.Error's Code and Message methods to get detailed information about
  65. // the error.
  66. //
  67. // See the AWS API reference guide for AWS Config's
  68. // API operation DeleteConfigRule for usage and error information.
  69. //
  70. // Returned Error Codes:
  71. // * NoSuchConfigRuleException
  72. // One or more AWS Config rules in the request are invalid. Verify that the
  73. // rule names are correct and try again.
  74. //
  75. // * ResourceInUseException
  76. // The rule is currently being deleted or the rule is deleting your evaluation
  77. // results. Try your request again later.
  78. //
  79. func (c *ConfigService) DeleteConfigRule(input *DeleteConfigRuleInput) (*DeleteConfigRuleOutput, error) {
  80. req, out := c.DeleteConfigRuleRequest(input)
  81. err := req.Send()
  82. return out, err
  83. }
  84. const opDeleteConfigurationRecorder = "DeleteConfigurationRecorder"
  85. // DeleteConfigurationRecorderRequest generates a "aws/request.Request" representing the
  86. // client's request for the DeleteConfigurationRecorder operation. The "output" return
  87. // value can be used to capture response data after the request's "Send" method
  88. // is called.
  89. //
  90. // See DeleteConfigurationRecorder for usage and error information.
  91. //
  92. // Creating a request object using this method should be used when you want to inject
  93. // custom logic into the request's lifecycle using a custom handler, or if you want to
  94. // access properties on the request object before or after sending the request. If
  95. // you just want the service response, call the DeleteConfigurationRecorder method directly
  96. // instead.
  97. //
  98. // Note: You must call the "Send" method on the returned request object in order
  99. // to execute the request.
  100. //
  101. // // Example sending a request using the DeleteConfigurationRecorderRequest method.
  102. // req, resp := client.DeleteConfigurationRecorderRequest(params)
  103. //
  104. // err := req.Send()
  105. // if err == nil { // resp is now filled
  106. // fmt.Println(resp)
  107. // }
  108. //
  109. func (c *ConfigService) DeleteConfigurationRecorderRequest(input *DeleteConfigurationRecorderInput) (req *request.Request, output *DeleteConfigurationRecorderOutput) {
  110. op := &request.Operation{
  111. Name: opDeleteConfigurationRecorder,
  112. HTTPMethod: "POST",
  113. HTTPPath: "/",
  114. }
  115. if input == nil {
  116. input = &DeleteConfigurationRecorderInput{}
  117. }
  118. req = c.newRequest(op, input, output)
  119. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  120. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  121. output = &DeleteConfigurationRecorderOutput{}
  122. req.Data = output
  123. return
  124. }
  125. // DeleteConfigurationRecorder API operation for AWS Config.
  126. //
  127. // Deletes the configuration recorder.
  128. //
  129. // After the configuration recorder is deleted, AWS Config will not record resource
  130. // configuration changes until you create a new configuration recorder.
  131. //
  132. // This action does not delete the configuration information that was previously
  133. // recorded. You will be able to access the previously recorded information
  134. // by using the GetResourceConfigHistory action, but you will not be able to
  135. // access this information in the AWS Config console until you create a new
  136. // configuration recorder.
  137. //
  138. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  139. // with awserr.Error's Code and Message methods to get detailed information about
  140. // the error.
  141. //
  142. // See the AWS API reference guide for AWS Config's
  143. // API operation DeleteConfigurationRecorder for usage and error information.
  144. //
  145. // Returned Error Codes:
  146. // * NoSuchConfigurationRecorderException
  147. // You have specified a configuration recorder that does not exist.
  148. //
  149. func (c *ConfigService) DeleteConfigurationRecorder(input *DeleteConfigurationRecorderInput) (*DeleteConfigurationRecorderOutput, error) {
  150. req, out := c.DeleteConfigurationRecorderRequest(input)
  151. err := req.Send()
  152. return out, err
  153. }
  154. const opDeleteDeliveryChannel = "DeleteDeliveryChannel"
  155. // DeleteDeliveryChannelRequest generates a "aws/request.Request" representing the
  156. // client's request for the DeleteDeliveryChannel operation. The "output" return
  157. // value can be used to capture response data after the request's "Send" method
  158. // is called.
  159. //
  160. // See DeleteDeliveryChannel for usage and error information.
  161. //
  162. // Creating a request object using this method should be used when you want to inject
  163. // custom logic into the request's lifecycle using a custom handler, or if you want to
  164. // access properties on the request object before or after sending the request. If
  165. // you just want the service response, call the DeleteDeliveryChannel method directly
  166. // instead.
  167. //
  168. // Note: You must call the "Send" method on the returned request object in order
  169. // to execute the request.
  170. //
  171. // // Example sending a request using the DeleteDeliveryChannelRequest method.
  172. // req, resp := client.DeleteDeliveryChannelRequest(params)
  173. //
  174. // err := req.Send()
  175. // if err == nil { // resp is now filled
  176. // fmt.Println(resp)
  177. // }
  178. //
  179. func (c *ConfigService) DeleteDeliveryChannelRequest(input *DeleteDeliveryChannelInput) (req *request.Request, output *DeleteDeliveryChannelOutput) {
  180. op := &request.Operation{
  181. Name: opDeleteDeliveryChannel,
  182. HTTPMethod: "POST",
  183. HTTPPath: "/",
  184. }
  185. if input == nil {
  186. input = &DeleteDeliveryChannelInput{}
  187. }
  188. req = c.newRequest(op, input, output)
  189. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  190. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  191. output = &DeleteDeliveryChannelOutput{}
  192. req.Data = output
  193. return
  194. }
  195. // DeleteDeliveryChannel API operation for AWS Config.
  196. //
  197. // Deletes the delivery channel.
  198. //
  199. // Before you can delete the delivery channel, you must stop the configuration
  200. // recorder by using the StopConfigurationRecorder action.
  201. //
  202. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  203. // with awserr.Error's Code and Message methods to get detailed information about
  204. // the error.
  205. //
  206. // See the AWS API reference guide for AWS Config's
  207. // API operation DeleteDeliveryChannel for usage and error information.
  208. //
  209. // Returned Error Codes:
  210. // * NoSuchDeliveryChannelException
  211. // You have specified a delivery channel that does not exist.
  212. //
  213. // * LastDeliveryChannelDeleteFailedException
  214. // You cannot delete the delivery channel you specified because the configuration
  215. // recorder is running.
  216. //
  217. func (c *ConfigService) DeleteDeliveryChannel(input *DeleteDeliveryChannelInput) (*DeleteDeliveryChannelOutput, error) {
  218. req, out := c.DeleteDeliveryChannelRequest(input)
  219. err := req.Send()
  220. return out, err
  221. }
  222. const opDeleteEvaluationResults = "DeleteEvaluationResults"
  223. // DeleteEvaluationResultsRequest generates a "aws/request.Request" representing the
  224. // client's request for the DeleteEvaluationResults operation. The "output" return
  225. // value can be used to capture response data after the request's "Send" method
  226. // is called.
  227. //
  228. // See DeleteEvaluationResults for usage and error information.
  229. //
  230. // Creating a request object using this method should be used when you want to inject
  231. // custom logic into the request's lifecycle using a custom handler, or if you want to
  232. // access properties on the request object before or after sending the request. If
  233. // you just want the service response, call the DeleteEvaluationResults method directly
  234. // instead.
  235. //
  236. // Note: You must call the "Send" method on the returned request object in order
  237. // to execute the request.
  238. //
  239. // // Example sending a request using the DeleteEvaluationResultsRequest method.
  240. // req, resp := client.DeleteEvaluationResultsRequest(params)
  241. //
  242. // err := req.Send()
  243. // if err == nil { // resp is now filled
  244. // fmt.Println(resp)
  245. // }
  246. //
  247. func (c *ConfigService) DeleteEvaluationResultsRequest(input *DeleteEvaluationResultsInput) (req *request.Request, output *DeleteEvaluationResultsOutput) {
  248. op := &request.Operation{
  249. Name: opDeleteEvaluationResults,
  250. HTTPMethod: "POST",
  251. HTTPPath: "/",
  252. }
  253. if input == nil {
  254. input = &DeleteEvaluationResultsInput{}
  255. }
  256. req = c.newRequest(op, input, output)
  257. output = &DeleteEvaluationResultsOutput{}
  258. req.Data = output
  259. return
  260. }
  261. // DeleteEvaluationResults API operation for AWS Config.
  262. //
  263. // Deletes the evaluation results for the specified Config rule. You can specify
  264. // one Config rule per request. After you delete the evaluation results, you
  265. // can call the StartConfigRulesEvaluation API to start evaluating your AWS
  266. // resources against the rule.
  267. //
  268. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  269. // with awserr.Error's Code and Message methods to get detailed information about
  270. // the error.
  271. //
  272. // See the AWS API reference guide for AWS Config's
  273. // API operation DeleteEvaluationResults for usage and error information.
  274. //
  275. // Returned Error Codes:
  276. // * NoSuchConfigRuleException
  277. // One or more AWS Config rules in the request are invalid. Verify that the
  278. // rule names are correct and try again.
  279. //
  280. // * ResourceInUseException
  281. // The rule is currently being deleted or the rule is deleting your evaluation
  282. // results. Try your request again later.
  283. //
  284. func (c *ConfigService) DeleteEvaluationResults(input *DeleteEvaluationResultsInput) (*DeleteEvaluationResultsOutput, error) {
  285. req, out := c.DeleteEvaluationResultsRequest(input)
  286. err := req.Send()
  287. return out, err
  288. }
  289. const opDeliverConfigSnapshot = "DeliverConfigSnapshot"
  290. // DeliverConfigSnapshotRequest generates a "aws/request.Request" representing the
  291. // client's request for the DeliverConfigSnapshot operation. The "output" return
  292. // value can be used to capture response data after the request's "Send" method
  293. // is called.
  294. //
  295. // See DeliverConfigSnapshot for usage and error information.
  296. //
  297. // Creating a request object using this method should be used when you want to inject
  298. // custom logic into the request's lifecycle using a custom handler, or if you want to
  299. // access properties on the request object before or after sending the request. If
  300. // you just want the service response, call the DeliverConfigSnapshot method directly
  301. // instead.
  302. //
  303. // Note: You must call the "Send" method on the returned request object in order
  304. // to execute the request.
  305. //
  306. // // Example sending a request using the DeliverConfigSnapshotRequest method.
  307. // req, resp := client.DeliverConfigSnapshotRequest(params)
  308. //
  309. // err := req.Send()
  310. // if err == nil { // resp is now filled
  311. // fmt.Println(resp)
  312. // }
  313. //
  314. func (c *ConfigService) DeliverConfigSnapshotRequest(input *DeliverConfigSnapshotInput) (req *request.Request, output *DeliverConfigSnapshotOutput) {
  315. op := &request.Operation{
  316. Name: opDeliverConfigSnapshot,
  317. HTTPMethod: "POST",
  318. HTTPPath: "/",
  319. }
  320. if input == nil {
  321. input = &DeliverConfigSnapshotInput{}
  322. }
  323. req = c.newRequest(op, input, output)
  324. output = &DeliverConfigSnapshotOutput{}
  325. req.Data = output
  326. return
  327. }
  328. // DeliverConfigSnapshot API operation for AWS Config.
  329. //
  330. // Schedules delivery of a configuration snapshot to the Amazon S3 bucket in
  331. // the specified delivery channel. After the delivery has started, AWS Config
  332. // sends following notifications using an Amazon SNS topic that you have specified.
  333. //
  334. // * Notification of starting the delivery.
  335. //
  336. // * Notification of delivery completed, if the delivery was successfully
  337. // completed.
  338. //
  339. // * Notification of delivery failure, if the delivery failed to complete.
  340. //
  341. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  342. // with awserr.Error's Code and Message methods to get detailed information about
  343. // the error.
  344. //
  345. // See the AWS API reference guide for AWS Config's
  346. // API operation DeliverConfigSnapshot for usage and error information.
  347. //
  348. // Returned Error Codes:
  349. // * NoSuchDeliveryChannelException
  350. // You have specified a delivery channel that does not exist.
  351. //
  352. // * NoAvailableConfigurationRecorderException
  353. // There are no configuration recorders available to provide the role needed
  354. // to describe your resources. Create a configuration recorder.
  355. //
  356. // * NoRunningConfigurationRecorderException
  357. // There is no configuration recorder running.
  358. //
  359. func (c *ConfigService) DeliverConfigSnapshot(input *DeliverConfigSnapshotInput) (*DeliverConfigSnapshotOutput, error) {
  360. req, out := c.DeliverConfigSnapshotRequest(input)
  361. err := req.Send()
  362. return out, err
  363. }
  364. const opDescribeComplianceByConfigRule = "DescribeComplianceByConfigRule"
  365. // DescribeComplianceByConfigRuleRequest generates a "aws/request.Request" representing the
  366. // client's request for the DescribeComplianceByConfigRule operation. The "output" return
  367. // value can be used to capture response data after the request's "Send" method
  368. // is called.
  369. //
  370. // See DescribeComplianceByConfigRule for usage and error information.
  371. //
  372. // Creating a request object using this method should be used when you want to inject
  373. // custom logic into the request's lifecycle using a custom handler, or if you want to
  374. // access properties on the request object before or after sending the request. If
  375. // you just want the service response, call the DescribeComplianceByConfigRule method directly
  376. // instead.
  377. //
  378. // Note: You must call the "Send" method on the returned request object in order
  379. // to execute the request.
  380. //
  381. // // Example sending a request using the DescribeComplianceByConfigRuleRequest method.
  382. // req, resp := client.DescribeComplianceByConfigRuleRequest(params)
  383. //
  384. // err := req.Send()
  385. // if err == nil { // resp is now filled
  386. // fmt.Println(resp)
  387. // }
  388. //
  389. func (c *ConfigService) DescribeComplianceByConfigRuleRequest(input *DescribeComplianceByConfigRuleInput) (req *request.Request, output *DescribeComplianceByConfigRuleOutput) {
  390. op := &request.Operation{
  391. Name: opDescribeComplianceByConfigRule,
  392. HTTPMethod: "POST",
  393. HTTPPath: "/",
  394. }
  395. if input == nil {
  396. input = &DescribeComplianceByConfigRuleInput{}
  397. }
  398. req = c.newRequest(op, input, output)
  399. output = &DescribeComplianceByConfigRuleOutput{}
  400. req.Data = output
  401. return
  402. }
  403. // DescribeComplianceByConfigRule API operation for AWS Config.
  404. //
  405. // Indicates whether the specified AWS Config rules are compliant. If a rule
  406. // is noncompliant, this action returns the number of AWS resources that do
  407. // not comply with the rule.
  408. //
  409. // A rule is compliant if all of the evaluated resources comply with it, and
  410. // it is noncompliant if any of these resources do not comply.
  411. //
  412. // If AWS Config has no current evaluation results for the rule, it returns
  413. // INSUFFICIENT_DATA. This result might indicate one of the following conditions:
  414. //
  415. // * AWS Config has never invoked an evaluation for the rule. To check whether
  416. // it has, use the DescribeConfigRuleEvaluationStatus action to get the LastSuccessfulInvocationTime
  417. // and LastFailedInvocationTime.
  418. //
  419. // * The rule's AWS Lambda function is failing to send evaluation results
  420. // to AWS Config. Verify that the role that you assigned to your configuration
  421. // recorder includes the config:PutEvaluations permission. If the rule is
  422. // a custom rule, verify that the AWS Lambda execution role includes the
  423. // config:PutEvaluations permission.
  424. //
  425. // * The rule's AWS Lambda function has returned NOT_APPLICABLE for all evaluation
  426. // results. This can occur if the resources were deleted or removed from
  427. // the rule's scope.
  428. //
  429. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  430. // with awserr.Error's Code and Message methods to get detailed information about
  431. // the error.
  432. //
  433. // See the AWS API reference guide for AWS Config's
  434. // API operation DescribeComplianceByConfigRule for usage and error information.
  435. //
  436. // Returned Error Codes:
  437. // * InvalidParameterValueException
  438. // One or more of the specified parameters are invalid. Verify that your parameters
  439. // are valid and try again.
  440. //
  441. // * NoSuchConfigRuleException
  442. // One or more AWS Config rules in the request are invalid. Verify that the
  443. // rule names are correct and try again.
  444. //
  445. func (c *ConfigService) DescribeComplianceByConfigRule(input *DescribeComplianceByConfigRuleInput) (*DescribeComplianceByConfigRuleOutput, error) {
  446. req, out := c.DescribeComplianceByConfigRuleRequest(input)
  447. err := req.Send()
  448. return out, err
  449. }
  450. const opDescribeComplianceByResource = "DescribeComplianceByResource"
  451. // DescribeComplianceByResourceRequest generates a "aws/request.Request" representing the
  452. // client's request for the DescribeComplianceByResource operation. The "output" return
  453. // value can be used to capture response data after the request's "Send" method
  454. // is called.
  455. //
  456. // See DescribeComplianceByResource for usage and error information.
  457. //
  458. // Creating a request object using this method should be used when you want to inject
  459. // custom logic into the request's lifecycle using a custom handler, or if you want to
  460. // access properties on the request object before or after sending the request. If
  461. // you just want the service response, call the DescribeComplianceByResource method directly
  462. // instead.
  463. //
  464. // Note: You must call the "Send" method on the returned request object in order
  465. // to execute the request.
  466. //
  467. // // Example sending a request using the DescribeComplianceByResourceRequest method.
  468. // req, resp := client.DescribeComplianceByResourceRequest(params)
  469. //
  470. // err := req.Send()
  471. // if err == nil { // resp is now filled
  472. // fmt.Println(resp)
  473. // }
  474. //
  475. func (c *ConfigService) DescribeComplianceByResourceRequest(input *DescribeComplianceByResourceInput) (req *request.Request, output *DescribeComplianceByResourceOutput) {
  476. op := &request.Operation{
  477. Name: opDescribeComplianceByResource,
  478. HTTPMethod: "POST",
  479. HTTPPath: "/",
  480. }
  481. if input == nil {
  482. input = &DescribeComplianceByResourceInput{}
  483. }
  484. req = c.newRequest(op, input, output)
  485. output = &DescribeComplianceByResourceOutput{}
  486. req.Data = output
  487. return
  488. }
  489. // DescribeComplianceByResource API operation for AWS Config.
  490. //
  491. // Indicates whether the specified AWS resources are compliant. If a resource
  492. // is noncompliant, this action returns the number of AWS Config rules that
  493. // the resource does not comply with.
  494. //
  495. // A resource is compliant if it complies with all the AWS Config rules that
  496. // evaluate it. It is noncompliant if it does not comply with one or more of
  497. // these rules.
  498. //
  499. // If AWS Config has no current evaluation results for the resource, it returns
  500. // INSUFFICIENT_DATA. This result might indicate one of the following conditions
  501. // about the rules that evaluate the resource:
  502. //
  503. // * AWS Config has never invoked an evaluation for the rule. To check whether
  504. // it has, use the DescribeConfigRuleEvaluationStatus action to get the LastSuccessfulInvocationTime
  505. // and LastFailedInvocationTime.
  506. //
  507. // * The rule's AWS Lambda function is failing to send evaluation results
  508. // to AWS Config. Verify that the role that you assigned to your configuration
  509. // recorder includes the config:PutEvaluations permission. If the rule is
  510. // a custom rule, verify that the AWS Lambda execution role includes the
  511. // config:PutEvaluations permission.
  512. //
  513. // * The rule's AWS Lambda function has returned NOT_APPLICABLE for all evaluation
  514. // results. This can occur if the resources were deleted or removed from
  515. // the rule's scope.
  516. //
  517. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  518. // with awserr.Error's Code and Message methods to get detailed information about
  519. // the error.
  520. //
  521. // See the AWS API reference guide for AWS Config's
  522. // API operation DescribeComplianceByResource for usage and error information.
  523. //
  524. // Returned Error Codes:
  525. // * InvalidParameterValueException
  526. // One or more of the specified parameters are invalid. Verify that your parameters
  527. // are valid and try again.
  528. //
  529. // * InvalidNextTokenException
  530. // The specified next token is invalid. Specify the nextToken string that was
  531. // returned in the previous response to get the next page of results.
  532. //
  533. func (c *ConfigService) DescribeComplianceByResource(input *DescribeComplianceByResourceInput) (*DescribeComplianceByResourceOutput, error) {
  534. req, out := c.DescribeComplianceByResourceRequest(input)
  535. err := req.Send()
  536. return out, err
  537. }
  538. const opDescribeConfigRuleEvaluationStatus = "DescribeConfigRuleEvaluationStatus"
  539. // DescribeConfigRuleEvaluationStatusRequest generates a "aws/request.Request" representing the
  540. // client's request for the DescribeConfigRuleEvaluationStatus operation. The "output" return
  541. // value can be used to capture response data after the request's "Send" method
  542. // is called.
  543. //
  544. // See DescribeConfigRuleEvaluationStatus for usage and error information.
  545. //
  546. // Creating a request object using this method should be used when you want to inject
  547. // custom logic into the request's lifecycle using a custom handler, or if you want to
  548. // access properties on the request object before or after sending the request. If
  549. // you just want the service response, call the DescribeConfigRuleEvaluationStatus method directly
  550. // instead.
  551. //
  552. // Note: You must call the "Send" method on the returned request object in order
  553. // to execute the request.
  554. //
  555. // // Example sending a request using the DescribeConfigRuleEvaluationStatusRequest method.
  556. // req, resp := client.DescribeConfigRuleEvaluationStatusRequest(params)
  557. //
  558. // err := req.Send()
  559. // if err == nil { // resp is now filled
  560. // fmt.Println(resp)
  561. // }
  562. //
  563. func (c *ConfigService) DescribeConfigRuleEvaluationStatusRequest(input *DescribeConfigRuleEvaluationStatusInput) (req *request.Request, output *DescribeConfigRuleEvaluationStatusOutput) {
  564. op := &request.Operation{
  565. Name: opDescribeConfigRuleEvaluationStatus,
  566. HTTPMethod: "POST",
  567. HTTPPath: "/",
  568. }
  569. if input == nil {
  570. input = &DescribeConfigRuleEvaluationStatusInput{}
  571. }
  572. req = c.newRequest(op, input, output)
  573. output = &DescribeConfigRuleEvaluationStatusOutput{}
  574. req.Data = output
  575. return
  576. }
  577. // DescribeConfigRuleEvaluationStatus API operation for AWS Config.
  578. //
  579. // Returns status information for each of your AWS managed Config rules. The
  580. // status includes information such as the last time AWS Config invoked the
  581. // rule, the last time AWS Config failed to invoke the rule, and the related
  582. // error for the last failure.
  583. //
  584. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  585. // with awserr.Error's Code and Message methods to get detailed information about
  586. // the error.
  587. //
  588. // See the AWS API reference guide for AWS Config's
  589. // API operation DescribeConfigRuleEvaluationStatus for usage and error information.
  590. //
  591. // Returned Error Codes:
  592. // * NoSuchConfigRuleException
  593. // One or more AWS Config rules in the request are invalid. Verify that the
  594. // rule names are correct and try again.
  595. //
  596. func (c *ConfigService) DescribeConfigRuleEvaluationStatus(input *DescribeConfigRuleEvaluationStatusInput) (*DescribeConfigRuleEvaluationStatusOutput, error) {
  597. req, out := c.DescribeConfigRuleEvaluationStatusRequest(input)
  598. err := req.Send()
  599. return out, err
  600. }
  601. const opDescribeConfigRules = "DescribeConfigRules"
  602. // DescribeConfigRulesRequest generates a "aws/request.Request" representing the
  603. // client's request for the DescribeConfigRules operation. The "output" return
  604. // value can be used to capture response data after the request's "Send" method
  605. // is called.
  606. //
  607. // See DescribeConfigRules for usage and error information.
  608. //
  609. // Creating a request object using this method should be used when you want to inject
  610. // custom logic into the request's lifecycle using a custom handler, or if you want to
  611. // access properties on the request object before or after sending the request. If
  612. // you just want the service response, call the DescribeConfigRules method directly
  613. // instead.
  614. //
  615. // Note: You must call the "Send" method on the returned request object in order
  616. // to execute the request.
  617. //
  618. // // Example sending a request using the DescribeConfigRulesRequest method.
  619. // req, resp := client.DescribeConfigRulesRequest(params)
  620. //
  621. // err := req.Send()
  622. // if err == nil { // resp is now filled
  623. // fmt.Println(resp)
  624. // }
  625. //
  626. func (c *ConfigService) DescribeConfigRulesRequest(input *DescribeConfigRulesInput) (req *request.Request, output *DescribeConfigRulesOutput) {
  627. op := &request.Operation{
  628. Name: opDescribeConfigRules,
  629. HTTPMethod: "POST",
  630. HTTPPath: "/",
  631. }
  632. if input == nil {
  633. input = &DescribeConfigRulesInput{}
  634. }
  635. req = c.newRequest(op, input, output)
  636. output = &DescribeConfigRulesOutput{}
  637. req.Data = output
  638. return
  639. }
  640. // DescribeConfigRules API operation for AWS Config.
  641. //
  642. // Returns details about your AWS Config rules.
  643. //
  644. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  645. // with awserr.Error's Code and Message methods to get detailed information about
  646. // the error.
  647. //
  648. // See the AWS API reference guide for AWS Config's
  649. // API operation DescribeConfigRules for usage and error information.
  650. //
  651. // Returned Error Codes:
  652. // * NoSuchConfigRuleException
  653. // One or more AWS Config rules in the request are invalid. Verify that the
  654. // rule names are correct and try again.
  655. //
  656. func (c *ConfigService) DescribeConfigRules(input *DescribeConfigRulesInput) (*DescribeConfigRulesOutput, error) {
  657. req, out := c.DescribeConfigRulesRequest(input)
  658. err := req.Send()
  659. return out, err
  660. }
  661. const opDescribeConfigurationRecorderStatus = "DescribeConfigurationRecorderStatus"
  662. // DescribeConfigurationRecorderStatusRequest generates a "aws/request.Request" representing the
  663. // client's request for the DescribeConfigurationRecorderStatus operation. The "output" return
  664. // value can be used to capture response data after the request's "Send" method
  665. // is called.
  666. //
  667. // See DescribeConfigurationRecorderStatus for usage and error information.
  668. //
  669. // Creating a request object using this method should be used when you want to inject
  670. // custom logic into the request's lifecycle using a custom handler, or if you want to
  671. // access properties on the request object before or after sending the request. If
  672. // you just want the service response, call the DescribeConfigurationRecorderStatus method directly
  673. // instead.
  674. //
  675. // Note: You must call the "Send" method on the returned request object in order
  676. // to execute the request.
  677. //
  678. // // Example sending a request using the DescribeConfigurationRecorderStatusRequest method.
  679. // req, resp := client.DescribeConfigurationRecorderStatusRequest(params)
  680. //
  681. // err := req.Send()
  682. // if err == nil { // resp is now filled
  683. // fmt.Println(resp)
  684. // }
  685. //
  686. func (c *ConfigService) DescribeConfigurationRecorderStatusRequest(input *DescribeConfigurationRecorderStatusInput) (req *request.Request, output *DescribeConfigurationRecorderStatusOutput) {
  687. op := &request.Operation{
  688. Name: opDescribeConfigurationRecorderStatus,
  689. HTTPMethod: "POST",
  690. HTTPPath: "/",
  691. }
  692. if input == nil {
  693. input = &DescribeConfigurationRecorderStatusInput{}
  694. }
  695. req = c.newRequest(op, input, output)
  696. output = &DescribeConfigurationRecorderStatusOutput{}
  697. req.Data = output
  698. return
  699. }
  700. // DescribeConfigurationRecorderStatus API operation for AWS Config.
  701. //
  702. // Returns the current status of the specified configuration recorder. If a
  703. // configuration recorder is not specified, this action returns the status of
  704. // all configuration recorder associated with the account.
  705. //
  706. // Currently, you can specify only one configuration recorder per region in
  707. // your account.
  708. //
  709. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  710. // with awserr.Error's Code and Message methods to get detailed information about
  711. // the error.
  712. //
  713. // See the AWS API reference guide for AWS Config's
  714. // API operation DescribeConfigurationRecorderStatus for usage and error information.
  715. //
  716. // Returned Error Codes:
  717. // * NoSuchConfigurationRecorderException
  718. // You have specified a configuration recorder that does not exist.
  719. //
  720. func (c *ConfigService) DescribeConfigurationRecorderStatus(input *DescribeConfigurationRecorderStatusInput) (*DescribeConfigurationRecorderStatusOutput, error) {
  721. req, out := c.DescribeConfigurationRecorderStatusRequest(input)
  722. err := req.Send()
  723. return out, err
  724. }
  725. const opDescribeConfigurationRecorders = "DescribeConfigurationRecorders"
  726. // DescribeConfigurationRecordersRequest generates a "aws/request.Request" representing the
  727. // client's request for the DescribeConfigurationRecorders operation. The "output" return
  728. // value can be used to capture response data after the request's "Send" method
  729. // is called.
  730. //
  731. // See DescribeConfigurationRecorders for usage and error information.
  732. //
  733. // Creating a request object using this method should be used when you want to inject
  734. // custom logic into the request's lifecycle using a custom handler, or if you want to
  735. // access properties on the request object before or after sending the request. If
  736. // you just want the service response, call the DescribeConfigurationRecorders method directly
  737. // instead.
  738. //
  739. // Note: You must call the "Send" method on the returned request object in order
  740. // to execute the request.
  741. //
  742. // // Example sending a request using the DescribeConfigurationRecordersRequest method.
  743. // req, resp := client.DescribeConfigurationRecordersRequest(params)
  744. //
  745. // err := req.Send()
  746. // if err == nil { // resp is now filled
  747. // fmt.Println(resp)
  748. // }
  749. //
  750. func (c *ConfigService) DescribeConfigurationRecordersRequest(input *DescribeConfigurationRecordersInput) (req *request.Request, output *DescribeConfigurationRecordersOutput) {
  751. op := &request.Operation{
  752. Name: opDescribeConfigurationRecorders,
  753. HTTPMethod: "POST",
  754. HTTPPath: "/",
  755. }
  756. if input == nil {
  757. input = &DescribeConfigurationRecordersInput{}
  758. }
  759. req = c.newRequest(op, input, output)
  760. output = &DescribeConfigurationRecordersOutput{}
  761. req.Data = output
  762. return
  763. }
  764. // DescribeConfigurationRecorders API operation for AWS Config.
  765. //
  766. // Returns the details for the specified configuration recorders. If the configuration
  767. // recorder is not specified, this action returns the details for all configuration
  768. // recorders associated with the account.
  769. //
  770. // Currently, you can specify only one configuration recorder per region in
  771. // your account.
  772. //
  773. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  774. // with awserr.Error's Code and Message methods to get detailed information about
  775. // the error.
  776. //
  777. // See the AWS API reference guide for AWS Config's
  778. // API operation DescribeConfigurationRecorders for usage and error information.
  779. //
  780. // Returned Error Codes:
  781. // * NoSuchConfigurationRecorderException
  782. // You have specified a configuration recorder that does not exist.
  783. //
  784. func (c *ConfigService) DescribeConfigurationRecorders(input *DescribeConfigurationRecordersInput) (*DescribeConfigurationRecordersOutput, error) {
  785. req, out := c.DescribeConfigurationRecordersRequest(input)
  786. err := req.Send()
  787. return out, err
  788. }
  789. const opDescribeDeliveryChannelStatus = "DescribeDeliveryChannelStatus"
  790. // DescribeDeliveryChannelStatusRequest generates a "aws/request.Request" representing the
  791. // client's request for the DescribeDeliveryChannelStatus operation. The "output" return
  792. // value can be used to capture response data after the request's "Send" method
  793. // is called.
  794. //
  795. // See DescribeDeliveryChannelStatus for usage and error information.
  796. //
  797. // Creating a request object using this method should be used when you want to inject
  798. // custom logic into the request's lifecycle using a custom handler, or if you want to
  799. // access properties on the request object before or after sending the request. If
  800. // you just want the service response, call the DescribeDeliveryChannelStatus method directly
  801. // instead.
  802. //
  803. // Note: You must call the "Send" method on the returned request object in order
  804. // to execute the request.
  805. //
  806. // // Example sending a request using the DescribeDeliveryChannelStatusRequest method.
  807. // req, resp := client.DescribeDeliveryChannelStatusRequest(params)
  808. //
  809. // err := req.Send()
  810. // if err == nil { // resp is now filled
  811. // fmt.Println(resp)
  812. // }
  813. //
  814. func (c *ConfigService) DescribeDeliveryChannelStatusRequest(input *DescribeDeliveryChannelStatusInput) (req *request.Request, output *DescribeDeliveryChannelStatusOutput) {
  815. op := &request.Operation{
  816. Name: opDescribeDeliveryChannelStatus,
  817. HTTPMethod: "POST",
  818. HTTPPath: "/",
  819. }
  820. if input == nil {
  821. input = &DescribeDeliveryChannelStatusInput{}
  822. }
  823. req = c.newRequest(op, input, output)
  824. output = &DescribeDeliveryChannelStatusOutput{}
  825. req.Data = output
  826. return
  827. }
  828. // DescribeDeliveryChannelStatus API operation for AWS Config.
  829. //
  830. // Returns the current status of the specified delivery channel. If a delivery
  831. // channel is not specified, this action returns the current status of all delivery
  832. // channels associated with the account.
  833. //
  834. // Currently, you can specify only one delivery channel per region in your account.
  835. //
  836. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  837. // with awserr.Error's Code and Message methods to get detailed information about
  838. // the error.
  839. //
  840. // See the AWS API reference guide for AWS Config's
  841. // API operation DescribeDeliveryChannelStatus for usage and error information.
  842. //
  843. // Returned Error Codes:
  844. // * NoSuchDeliveryChannelException
  845. // You have specified a delivery channel that does not exist.
  846. //
  847. func (c *ConfigService) DescribeDeliveryChannelStatus(input *DescribeDeliveryChannelStatusInput) (*DescribeDeliveryChannelStatusOutput, error) {
  848. req, out := c.DescribeDeliveryChannelStatusRequest(input)
  849. err := req.Send()
  850. return out, err
  851. }
  852. const opDescribeDeliveryChannels = "DescribeDeliveryChannels"
  853. // DescribeDeliveryChannelsRequest generates a "aws/request.Request" representing the
  854. // client's request for the DescribeDeliveryChannels operation. The "output" return
  855. // value can be used to capture response data after the request's "Send" method
  856. // is called.
  857. //
  858. // See DescribeDeliveryChannels for usage and error information.
  859. //
  860. // Creating a request object using this method should be used when you want to inject
  861. // custom logic into the request's lifecycle using a custom handler, or if you want to
  862. // access properties on the request object before or after sending the request. If
  863. // you just want the service response, call the DescribeDeliveryChannels method directly
  864. // instead.
  865. //
  866. // Note: You must call the "Send" method on the returned request object in order
  867. // to execute the request.
  868. //
  869. // // Example sending a request using the DescribeDeliveryChannelsRequest method.
  870. // req, resp := client.DescribeDeliveryChannelsRequest(params)
  871. //
  872. // err := req.Send()
  873. // if err == nil { // resp is now filled
  874. // fmt.Println(resp)
  875. // }
  876. //
  877. func (c *ConfigService) DescribeDeliveryChannelsRequest(input *DescribeDeliveryChannelsInput) (req *request.Request, output *DescribeDeliveryChannelsOutput) {
  878. op := &request.Operation{
  879. Name: opDescribeDeliveryChannels,
  880. HTTPMethod: "POST",
  881. HTTPPath: "/",
  882. }
  883. if input == nil {
  884. input = &DescribeDeliveryChannelsInput{}
  885. }
  886. req = c.newRequest(op, input, output)
  887. output = &DescribeDeliveryChannelsOutput{}
  888. req.Data = output
  889. return
  890. }
  891. // DescribeDeliveryChannels API operation for AWS Config.
  892. //
  893. // Returns details about the specified delivery channel. If a delivery channel
  894. // is not specified, this action returns the details of all delivery channels
  895. // associated with the account.
  896. //
  897. // Currently, you can specify only one delivery channel per region in your account.
  898. //
  899. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  900. // with awserr.Error's Code and Message methods to get detailed information about
  901. // the error.
  902. //
  903. // See the AWS API reference guide for AWS Config's
  904. // API operation DescribeDeliveryChannels for usage and error information.
  905. //
  906. // Returned Error Codes:
  907. // * NoSuchDeliveryChannelException
  908. // You have specified a delivery channel that does not exist.
  909. //
  910. func (c *ConfigService) DescribeDeliveryChannels(input *DescribeDeliveryChannelsInput) (*DescribeDeliveryChannelsOutput, error) {
  911. req, out := c.DescribeDeliveryChannelsRequest(input)
  912. err := req.Send()
  913. return out, err
  914. }
  915. const opGetComplianceDetailsByConfigRule = "GetComplianceDetailsByConfigRule"
  916. // GetComplianceDetailsByConfigRuleRequest generates a "aws/request.Request" representing the
  917. // client's request for the GetComplianceDetailsByConfigRule operation. The "output" return
  918. // value can be used to capture response data after the request's "Send" method
  919. // is called.
  920. //
  921. // See GetComplianceDetailsByConfigRule for usage and error information.
  922. //
  923. // Creating a request object using this method should be used when you want to inject
  924. // custom logic into the request's lifecycle using a custom handler, or if you want to
  925. // access properties on the request object before or after sending the request. If
  926. // you just want the service response, call the GetComplianceDetailsByConfigRule method directly
  927. // instead.
  928. //
  929. // Note: You must call the "Send" method on the returned request object in order
  930. // to execute the request.
  931. //
  932. // // Example sending a request using the GetComplianceDetailsByConfigRuleRequest method.
  933. // req, resp := client.GetComplianceDetailsByConfigRuleRequest(params)
  934. //
  935. // err := req.Send()
  936. // if err == nil { // resp is now filled
  937. // fmt.Println(resp)
  938. // }
  939. //
  940. func (c *ConfigService) GetComplianceDetailsByConfigRuleRequest(input *GetComplianceDetailsByConfigRuleInput) (req *request.Request, output *GetComplianceDetailsByConfigRuleOutput) {
  941. op := &request.Operation{
  942. Name: opGetComplianceDetailsByConfigRule,
  943. HTTPMethod: "POST",
  944. HTTPPath: "/",
  945. }
  946. if input == nil {
  947. input = &GetComplianceDetailsByConfigRuleInput{}
  948. }
  949. req = c.newRequest(op, input, output)
  950. output = &GetComplianceDetailsByConfigRuleOutput{}
  951. req.Data = output
  952. return
  953. }
  954. // GetComplianceDetailsByConfigRule API operation for AWS Config.
  955. //
  956. // Returns the evaluation results for the specified AWS Config rule. The results
  957. // indicate which AWS resources were evaluated by the rule, when each resource
  958. // was last evaluated, and whether each resource complies with the rule.
  959. //
  960. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  961. // with awserr.Error's Code and Message methods to get detailed information about
  962. // the error.
  963. //
  964. // See the AWS API reference guide for AWS Config's
  965. // API operation GetComplianceDetailsByConfigRule for usage and error information.
  966. //
  967. // Returned Error Codes:
  968. // * InvalidParameterValueException
  969. // One or more of the specified parameters are invalid. Verify that your parameters
  970. // are valid and try again.
  971. //
  972. // * InvalidNextTokenException
  973. // The specified next token is invalid. Specify the nextToken string that was
  974. // returned in the previous response to get the next page of results.
  975. //
  976. // * NoSuchConfigRuleException
  977. // One or more AWS Config rules in the request are invalid. Verify that the
  978. // rule names are correct and try again.
  979. //
  980. func (c *ConfigService) GetComplianceDetailsByConfigRule(input *GetComplianceDetailsByConfigRuleInput) (*GetComplianceDetailsByConfigRuleOutput, error) {
  981. req, out := c.GetComplianceDetailsByConfigRuleRequest(input)
  982. err := req.Send()
  983. return out, err
  984. }
  985. const opGetComplianceDetailsByResource = "GetComplianceDetailsByResource"
  986. // GetComplianceDetailsByResourceRequest generates a "aws/request.Request" representing the
  987. // client's request for the GetComplianceDetailsByResource operation. The "output" return
  988. // value can be used to capture response data after the request's "Send" method
  989. // is called.
  990. //
  991. // See GetComplianceDetailsByResource for usage and error information.
  992. //
  993. // Creating a request object using this method should be used when you want to inject
  994. // custom logic into the request's lifecycle using a custom handler, or if you want to
  995. // access properties on the request object before or after sending the request. If
  996. // you just want the service response, call the GetComplianceDetailsByResource method directly
  997. // instead.
  998. //
  999. // Note: You must call the "Send" method on the returned request object in order
  1000. // to execute the request.
  1001. //
  1002. // // Example sending a request using the GetComplianceDetailsByResourceRequest method.
  1003. // req, resp := client.GetComplianceDetailsByResourceRequest(params)
  1004. //
  1005. // err := req.Send()
  1006. // if err == nil { // resp is now filled
  1007. // fmt.Println(resp)
  1008. // }
  1009. //
  1010. func (c *ConfigService) GetComplianceDetailsByResourceRequest(input *GetComplianceDetailsByResourceInput) (req *request.Request, output *GetComplianceDetailsByResourceOutput) {
  1011. op := &request.Operation{
  1012. Name: opGetComplianceDetailsByResource,
  1013. HTTPMethod: "POST",
  1014. HTTPPath: "/",
  1015. }
  1016. if input == nil {
  1017. input = &GetComplianceDetailsByResourceInput{}
  1018. }
  1019. req = c.newRequest(op, input, output)
  1020. output = &GetComplianceDetailsByResourceOutput{}
  1021. req.Data = output
  1022. return
  1023. }
  1024. // GetComplianceDetailsByResource API operation for AWS Config.
  1025. //
  1026. // Returns the evaluation results for the specified AWS resource. The results
  1027. // indicate which AWS Config rules were used to evaluate the resource, when
  1028. // each rule was last used, and whether the resource complies with each rule.
  1029. //
  1030. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1031. // with awserr.Error's Code and Message methods to get detailed information about
  1032. // the error.
  1033. //
  1034. // See the AWS API reference guide for AWS Config's
  1035. // API operation GetComplianceDetailsByResource for usage and error information.
  1036. //
  1037. // Returned Error Codes:
  1038. // * InvalidParameterValueException
  1039. // One or more of the specified parameters are invalid. Verify that your parameters
  1040. // are valid and try again.
  1041. //
  1042. func (c *ConfigService) GetComplianceDetailsByResource(input *GetComplianceDetailsByResourceInput) (*GetComplianceDetailsByResourceOutput, error) {
  1043. req, out := c.GetComplianceDetailsByResourceRequest(input)
  1044. err := req.Send()
  1045. return out, err
  1046. }
  1047. const opGetComplianceSummaryByConfigRule = "GetComplianceSummaryByConfigRule"
  1048. // GetComplianceSummaryByConfigRuleRequest generates a "aws/request.Request" representing the
  1049. // client's request for the GetComplianceSummaryByConfigRule operation. The "output" return
  1050. // value can be used to capture response data after the request's "Send" method
  1051. // is called.
  1052. //
  1053. // See GetComplianceSummaryByConfigRule for usage and error information.
  1054. //
  1055. // Creating a request object using this method should be used when you want to inject
  1056. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1057. // access properties on the request object before or after sending the request. If
  1058. // you just want the service response, call the GetComplianceSummaryByConfigRule method directly
  1059. // instead.
  1060. //
  1061. // Note: You must call the "Send" method on the returned request object in order
  1062. // to execute the request.
  1063. //
  1064. // // Example sending a request using the GetComplianceSummaryByConfigRuleRequest method.
  1065. // req, resp := client.GetComplianceSummaryByConfigRuleRequest(params)
  1066. //
  1067. // err := req.Send()
  1068. // if err == nil { // resp is now filled
  1069. // fmt.Println(resp)
  1070. // }
  1071. //
  1072. func (c *ConfigService) GetComplianceSummaryByConfigRuleRequest(input *GetComplianceSummaryByConfigRuleInput) (req *request.Request, output *GetComplianceSummaryByConfigRuleOutput) {
  1073. op := &request.Operation{
  1074. Name: opGetComplianceSummaryByConfigRule,
  1075. HTTPMethod: "POST",
  1076. HTTPPath: "/",
  1077. }
  1078. if input == nil {
  1079. input = &GetComplianceSummaryByConfigRuleInput{}
  1080. }
  1081. req = c.newRequest(op, input, output)
  1082. output = &GetComplianceSummaryByConfigRuleOutput{}
  1083. req.Data = output
  1084. return
  1085. }
  1086. // GetComplianceSummaryByConfigRule API operation for AWS Config.
  1087. //
  1088. // Returns the number of AWS Config rules that are compliant and noncompliant,
  1089. // up to a maximum of 25 for each.
  1090. //
  1091. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1092. // with awserr.Error's Code and Message methods to get detailed information about
  1093. // the error.
  1094. //
  1095. // See the AWS API reference guide for AWS Config's
  1096. // API operation GetComplianceSummaryByConfigRule for usage and error information.
  1097. func (c *ConfigService) GetComplianceSummaryByConfigRule(input *GetComplianceSummaryByConfigRuleInput) (*GetComplianceSummaryByConfigRuleOutput, error) {
  1098. req, out := c.GetComplianceSummaryByConfigRuleRequest(input)
  1099. err := req.Send()
  1100. return out, err
  1101. }
  1102. const opGetComplianceSummaryByResourceType = "GetComplianceSummaryByResourceType"
  1103. // GetComplianceSummaryByResourceTypeRequest generates a "aws/request.Request" representing the
  1104. // client's request for the GetComplianceSummaryByResourceType operation. The "output" return
  1105. // value can be used to capture response data after the request's "Send" method
  1106. // is called.
  1107. //
  1108. // See GetComplianceSummaryByResourceType for usage and error information.
  1109. //
  1110. // Creating a request object using this method should be used when you want to inject
  1111. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1112. // access properties on the request object before or after sending the request. If
  1113. // you just want the service response, call the GetComplianceSummaryByResourceType method directly
  1114. // instead.
  1115. //
  1116. // Note: You must call the "Send" method on the returned request object in order
  1117. // to execute the request.
  1118. //
  1119. // // Example sending a request using the GetComplianceSummaryByResourceTypeRequest method.
  1120. // req, resp := client.GetComplianceSummaryByResourceTypeRequest(params)
  1121. //
  1122. // err := req.Send()
  1123. // if err == nil { // resp is now filled
  1124. // fmt.Println(resp)
  1125. // }
  1126. //
  1127. func (c *ConfigService) GetComplianceSummaryByResourceTypeRequest(input *GetComplianceSummaryByResourceTypeInput) (req *request.Request, output *GetComplianceSummaryByResourceTypeOutput) {
  1128. op := &request.Operation{
  1129. Name: opGetComplianceSummaryByResourceType,
  1130. HTTPMethod: "POST",
  1131. HTTPPath: "/",
  1132. }
  1133. if input == nil {
  1134. input = &GetComplianceSummaryByResourceTypeInput{}
  1135. }
  1136. req = c.newRequest(op, input, output)
  1137. output = &GetComplianceSummaryByResourceTypeOutput{}
  1138. req.Data = output
  1139. return
  1140. }
  1141. // GetComplianceSummaryByResourceType API operation for AWS Config.
  1142. //
  1143. // Returns the number of resources that are compliant and the number that are
  1144. // noncompliant. You can specify one or more resource types to get these numbers
  1145. // for each resource type. The maximum number returned is 100.
  1146. //
  1147. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1148. // with awserr.Error's Code and Message methods to get detailed information about
  1149. // the error.
  1150. //
  1151. // See the AWS API reference guide for AWS Config's
  1152. // API operation GetComplianceSummaryByResourceType for usage and error information.
  1153. //
  1154. // Returned Error Codes:
  1155. // * InvalidParameterValueException
  1156. // One or more of the specified parameters are invalid. Verify that your parameters
  1157. // are valid and try again.
  1158. //
  1159. func (c *ConfigService) GetComplianceSummaryByResourceType(input *GetComplianceSummaryByResourceTypeInput) (*GetComplianceSummaryByResourceTypeOutput, error) {
  1160. req, out := c.GetComplianceSummaryByResourceTypeRequest(input)
  1161. err := req.Send()
  1162. return out, err
  1163. }
  1164. const opGetResourceConfigHistory = "GetResourceConfigHistory"
  1165. // GetResourceConfigHistoryRequest generates a "aws/request.Request" representing the
  1166. // client's request for the GetResourceConfigHistory operation. The "output" return
  1167. // value can be used to capture response data after the request's "Send" method
  1168. // is called.
  1169. //
  1170. // See GetResourceConfigHistory for usage and error information.
  1171. //
  1172. // Creating a request object using this method should be used when you want to inject
  1173. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1174. // access properties on the request object before or after sending the request. If
  1175. // you just want the service response, call the GetResourceConfigHistory method directly
  1176. // instead.
  1177. //
  1178. // Note: You must call the "Send" method on the returned request object in order
  1179. // to execute the request.
  1180. //
  1181. // // Example sending a request using the GetResourceConfigHistoryRequest method.
  1182. // req, resp := client.GetResourceConfigHistoryRequest(params)
  1183. //
  1184. // err := req.Send()
  1185. // if err == nil { // resp is now filled
  1186. // fmt.Println(resp)
  1187. // }
  1188. //
  1189. func (c *ConfigService) GetResourceConfigHistoryRequest(input *GetResourceConfigHistoryInput) (req *request.Request, output *GetResourceConfigHistoryOutput) {
  1190. op := &request.Operation{
  1191. Name: opGetResourceConfigHistory,
  1192. HTTPMethod: "POST",
  1193. HTTPPath: "/",
  1194. Paginator: &request.Paginator{
  1195. InputTokens: []string{"nextToken"},
  1196. OutputTokens: []string{"nextToken"},
  1197. LimitToken: "limit",
  1198. TruncationToken: "",
  1199. },
  1200. }
  1201. if input == nil {
  1202. input = &GetResourceConfigHistoryInput{}
  1203. }
  1204. req = c.newRequest(op, input, output)
  1205. output = &GetResourceConfigHistoryOutput{}
  1206. req.Data = output
  1207. return
  1208. }
  1209. // GetResourceConfigHistory API operation for AWS Config.
  1210. //
  1211. // Returns a list of configuration items for the specified resource. The list
  1212. // contains details about each state of the resource during the specified time
  1213. // interval.
  1214. //
  1215. // The response is paginated, and by default, AWS Config returns a limit of
  1216. // 10 configuration items per page. You can customize this number with the limit
  1217. // parameter. The response includes a nextToken string, and to get the next
  1218. // page of results, run the request again and enter this string for the nextToken
  1219. // parameter.
  1220. //
  1221. // Each call to the API is limited to span a duration of seven days. It is likely
  1222. // that the number of records returned is smaller than the specified limit.
  1223. // In such cases, you can make another call, using the nextToken.
  1224. //
  1225. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1226. // with awserr.Error's Code and Message methods to get detailed information about
  1227. // the error.
  1228. //
  1229. // See the AWS API reference guide for AWS Config's
  1230. // API operation GetResourceConfigHistory for usage and error information.
  1231. //
  1232. // Returned Error Codes:
  1233. // * ValidationException
  1234. // The requested action is not valid.
  1235. //
  1236. // * InvalidTimeRangeException
  1237. // The specified time range is not valid. The earlier time is not chronologically
  1238. // before the later time.
  1239. //
  1240. // * InvalidLimitException
  1241. // The specified limit is outside the allowable range.
  1242. //
  1243. // * InvalidNextTokenException
  1244. // The specified next token is invalid. Specify the nextToken string that was
  1245. // returned in the previous response to get the next page of results.
  1246. //
  1247. // * NoAvailableConfigurationRecorderException
  1248. // There are no configuration recorders available to provide the role needed
  1249. // to describe your resources. Create a configuration recorder.
  1250. //
  1251. // * ResourceNotDiscoveredException
  1252. // You have specified a resource that is either unknown or has not been discovered.
  1253. //
  1254. func (c *ConfigService) GetResourceConfigHistory(input *GetResourceConfigHistoryInput) (*GetResourceConfigHistoryOutput, error) {
  1255. req, out := c.GetResourceConfigHistoryRequest(input)
  1256. err := req.Send()
  1257. return out, err
  1258. }
  1259. // GetResourceConfigHistoryPages iterates over the pages of a GetResourceConfigHistory operation,
  1260. // calling the "fn" function with the response data for each page. To stop
  1261. // iterating, return false from the fn function.
  1262. //
  1263. // See GetResourceConfigHistory method for more information on how to use this operation.
  1264. //
  1265. // Note: This operation can generate multiple requests to a service.
  1266. //
  1267. // // Example iterating over at most 3 pages of a GetResourceConfigHistory operation.
  1268. // pageNum := 0
  1269. // err := client.GetResourceConfigHistoryPages(params,
  1270. // func(page *GetResourceConfigHistoryOutput, lastPage bool) bool {
  1271. // pageNum++
  1272. // fmt.Println(page)
  1273. // return pageNum <= 3
  1274. // })
  1275. //
  1276. func (c *ConfigService) GetResourceConfigHistoryPages(input *GetResourceConfigHistoryInput, fn func(p *GetResourceConfigHistoryOutput, lastPage bool) (shouldContinue bool)) error {
  1277. page, _ := c.GetResourceConfigHistoryRequest(input)
  1278. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1279. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1280. return fn(p.(*GetResourceConfigHistoryOutput), lastPage)
  1281. })
  1282. }
  1283. const opListDiscoveredResources = "ListDiscoveredResources"
  1284. // ListDiscoveredResourcesRequest generates a "aws/request.Request" representing the
  1285. // client's request for the ListDiscoveredResources operation. The "output" return
  1286. // value can be used to capture response data after the request's "Send" method
  1287. // is called.
  1288. //
  1289. // See ListDiscoveredResources for usage and error information.
  1290. //
  1291. // Creating a request object using this method should be used when you want to inject
  1292. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1293. // access properties on the request object before or after sending the request. If
  1294. // you just want the service response, call the ListDiscoveredResources method directly
  1295. // instead.
  1296. //
  1297. // Note: You must call the "Send" method on the returned request object in order
  1298. // to execute the request.
  1299. //
  1300. // // Example sending a request using the ListDiscoveredResourcesRequest method.
  1301. // req, resp := client.ListDiscoveredResourcesRequest(params)
  1302. //
  1303. // err := req.Send()
  1304. // if err == nil { // resp is now filled
  1305. // fmt.Println(resp)
  1306. // }
  1307. //
  1308. func (c *ConfigService) ListDiscoveredResourcesRequest(input *ListDiscoveredResourcesInput) (req *request.Request, output *ListDiscoveredResourcesOutput) {
  1309. op := &request.Operation{
  1310. Name: opListDiscoveredResources,
  1311. HTTPMethod: "POST",
  1312. HTTPPath: "/",
  1313. }
  1314. if input == nil {
  1315. input = &ListDiscoveredResourcesInput{}
  1316. }
  1317. req = c.newRequest(op, input, output)
  1318. output = &ListDiscoveredResourcesOutput{}
  1319. req.Data = output
  1320. return
  1321. }
  1322. // ListDiscoveredResources API operation for AWS Config.
  1323. //
  1324. // Accepts a resource type and returns a list of resource identifiers for the
  1325. // resources of that type. A resource identifier includes the resource type,
  1326. // ID, and (if available) the custom resource name. The results consist of resources
  1327. // that AWS Config has discovered, including those that AWS Config is not currently
  1328. // recording. You can narrow the results to include only resources that have
  1329. // specific resource IDs or a resource name.
  1330. //
  1331. // You can specify either resource IDs or a resource name but not both in the
  1332. // same request.
  1333. //
  1334. // The response is paginated, and by default AWS Config lists 100 resource identifiers
  1335. // on each page. You can customize this number with the limit parameter. The
  1336. // response includes a nextToken string, and to get the next page of results,
  1337. // run the request again and enter this string for the nextToken parameter.
  1338. //
  1339. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1340. // with awserr.Error's Code and Message methods to get detailed information about
  1341. // the error.
  1342. //
  1343. // See the AWS API reference guide for AWS Config's
  1344. // API operation ListDiscoveredResources for usage and error information.
  1345. //
  1346. // Returned Error Codes:
  1347. // * ValidationException
  1348. // The requested action is not valid.
  1349. //
  1350. // * InvalidLimitException
  1351. // The specified limit is outside the allowable range.
  1352. //
  1353. // * InvalidNextTokenException
  1354. // The specified next token is invalid. Specify the nextToken string that was
  1355. // returned in the previous response to get the next page of results.
  1356. //
  1357. // * NoAvailableConfigurationRecorderException
  1358. // There are no configuration recorders available to provide the role needed
  1359. // to describe your resources. Create a configuration recorder.
  1360. //
  1361. func (c *ConfigService) ListDiscoveredResources(input *ListDiscoveredResourcesInput) (*ListDiscoveredResourcesOutput, error) {
  1362. req, out := c.ListDiscoveredResourcesRequest(input)
  1363. err := req.Send()
  1364. return out, err
  1365. }
  1366. const opPutConfigRule = "PutConfigRule"
  1367. // PutConfigRuleRequest generates a "aws/request.Request" representing the
  1368. // client's request for the PutConfigRule operation. The "output" return
  1369. // value can be used to capture response data after the request's "Send" method
  1370. // is called.
  1371. //
  1372. // See PutConfigRule for usage and error information.
  1373. //
  1374. // Creating a request object using this method should be used when you want to inject
  1375. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1376. // access properties on the request object before or after sending the request. If
  1377. // you just want the service response, call the PutConfigRule method directly
  1378. // instead.
  1379. //
  1380. // Note: You must call the "Send" method on the returned request object in order
  1381. // to execute the request.
  1382. //
  1383. // // Example sending a request using the PutConfigRuleRequest method.
  1384. // req, resp := client.PutConfigRuleRequest(params)
  1385. //
  1386. // err := req.Send()
  1387. // if err == nil { // resp is now filled
  1388. // fmt.Println(resp)
  1389. // }
  1390. //
  1391. func (c *ConfigService) PutConfigRuleRequest(input *PutConfigRuleInput) (req *request.Request, output *PutConfigRuleOutput) {
  1392. op := &request.Operation{
  1393. Name: opPutConfigRule,
  1394. HTTPMethod: "POST",
  1395. HTTPPath: "/",
  1396. }
  1397. if input == nil {
  1398. input = &PutConfigRuleInput{}
  1399. }
  1400. req = c.newRequest(op, input, output)
  1401. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  1402. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1403. output = &PutConfigRuleOutput{}
  1404. req.Data = output
  1405. return
  1406. }
  1407. // PutConfigRule API operation for AWS Config.
  1408. //
  1409. // Adds or updates an AWS Config rule for evaluating whether your AWS resources
  1410. // comply with your desired configurations.
  1411. //
  1412. // You can use this action for custom Config rules and AWS managed Config rules.
  1413. // A custom Config rule is a rule that you develop and maintain. An AWS managed
  1414. // Config rule is a customizable, predefined rule that AWS Config provides.
  1415. //
  1416. // If you are adding a new custom Config rule, you must first create the AWS
  1417. // Lambda function that the rule invokes to evaluate your resources. When you
  1418. // use the PutConfigRule action to add the rule to AWS Config, you must specify
  1419. // the Amazon Resource Name (ARN) that AWS Lambda assigns to the function. Specify
  1420. // the ARN for the SourceIdentifier key. This key is part of the Source object,
  1421. // which is part of the ConfigRule object.
  1422. //
  1423. // If you are adding a new AWS managed Config rule, specify the rule's identifier
  1424. // for the SourceIdentifier key. To reference AWS managed Config rule identifiers,
  1425. // see Using AWS Managed Config Rules (http://docs.aws.amazon.com/config/latest/developerguide/evaluate-config_use-managed-rules.html).
  1426. //
  1427. // For any new rule that you add, specify the ConfigRuleName in the ConfigRule
  1428. // object. Do not specify the ConfigRuleArn or the ConfigRuleId. These values
  1429. // are generated by AWS Config for new rules.
  1430. //
  1431. // If you are updating a rule that you added previously, you can specify the
  1432. // rule by ConfigRuleName, ConfigRuleId, or ConfigRuleArn in the ConfigRule
  1433. // data type that you use in this request.
  1434. //
  1435. // The maximum number of rules that AWS Config supports is 25.
  1436. //
  1437. // For more information about developing and using AWS Config rules, see Evaluating
  1438. // AWS Resource Configurations with AWS Config (http://docs.aws.amazon.com/config/latest/developerguide/evaluate-config.html)
  1439. // in the AWS Config Developer Guide.
  1440. //
  1441. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1442. // with awserr.Error's Code and Message methods to get detailed information about
  1443. // the error.
  1444. //
  1445. // See the AWS API reference guide for AWS Config's
  1446. // API operation PutConfigRule for usage and error information.
  1447. //
  1448. // Returned Error Codes:
  1449. // * InvalidParameterValueException
  1450. // One or more of the specified parameters are invalid. Verify that your parameters
  1451. // are valid and try again.
  1452. //
  1453. // * MaxNumberOfConfigRulesExceededException
  1454. // Failed to add the AWS Config rule because the account already contains the
  1455. // maximum number of 25 rules. Consider deleting any deactivated rules before
  1456. // adding new rules.
  1457. //
  1458. // * ResourceInUseException
  1459. // The rule is currently being deleted or the rule is deleting your evaluation
  1460. // results. Try your request again later.
  1461. //
  1462. // * InsufficientPermissionsException
  1463. // Indicates one of the following errors:
  1464. //
  1465. // * The rule cannot be created because the IAM role assigned to AWS Config
  1466. // lacks permissions to perform the config:Put* action.
  1467. //
  1468. // * The AWS Lambda function cannot be invoked. Check the function ARN, and
  1469. // check the function's permissions.
  1470. //
  1471. // * NoAvailableConfigurationRecorderException
  1472. // There are no configuration recorders available to provide the role needed
  1473. // to describe your resources. Create a configuration recorder.
  1474. //
  1475. func (c *ConfigService) PutConfigRule(input *PutConfigRuleInput) (*PutConfigRuleOutput, error) {
  1476. req, out := c.PutConfigRuleRequest(input)
  1477. err := req.Send()
  1478. return out, err
  1479. }
  1480. const opPutConfigurationRecorder = "PutConfigurationRecorder"
  1481. // PutConfigurationRecorderRequest generates a "aws/request.Request" representing the
  1482. // client's request for the PutConfigurationRecorder operation. The "output" return
  1483. // value can be used to capture response data after the request's "Send" method
  1484. // is called.
  1485. //
  1486. // See PutConfigurationRecorder for usage and error information.
  1487. //
  1488. // Creating a request object using this method should be used when you want to inject
  1489. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1490. // access properties on the request object before or after sending the request. If
  1491. // you just want the service response, call the PutConfigurationRecorder method directly
  1492. // instead.
  1493. //
  1494. // Note: You must call the "Send" method on the returned request object in order
  1495. // to execute the request.
  1496. //
  1497. // // Example sending a request using the PutConfigurationRecorderRequest method.
  1498. // req, resp := client.PutConfigurationRecorderRequest(params)
  1499. //
  1500. // err := req.Send()
  1501. // if err == nil { // resp is now filled
  1502. // fmt.Println(resp)
  1503. // }
  1504. //
  1505. func (c *ConfigService) PutConfigurationRecorderRequest(input *PutConfigurationRecorderInput) (req *request.Request, output *PutConfigurationRecorderOutput) {
  1506. op := &request.Operation{
  1507. Name: opPutConfigurationRecorder,
  1508. HTTPMethod: "POST",
  1509. HTTPPath: "/",
  1510. }
  1511. if input == nil {
  1512. input = &PutConfigurationRecorderInput{}
  1513. }
  1514. req = c.newRequest(op, input, output)
  1515. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  1516. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1517. output = &PutConfigurationRecorderOutput{}
  1518. req.Data = output
  1519. return
  1520. }
  1521. // PutConfigurationRecorder API operation for AWS Config.
  1522. //
  1523. // Creates a new configuration recorder to record the selected resource configurations.
  1524. //
  1525. // You can use this action to change the role roleARN and/or the recordingGroup
  1526. // of an existing recorder. To change the role, call the action on the existing
  1527. // configuration recorder and specify a role.
  1528. //
  1529. // Currently, you can specify only one configuration recorder per region in
  1530. // your account.
  1531. //
  1532. // If ConfigurationRecorder does not have the recordingGroup parameter specified,
  1533. // the default is to record all supported resource types.
  1534. //
  1535. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1536. // with awserr.Error's Code and Message methods to get detailed information about
  1537. // the error.
  1538. //
  1539. // See the AWS API reference guide for AWS Config's
  1540. // API operation PutConfigurationRecorder for usage and error information.
  1541. //
  1542. // Returned Error Codes:
  1543. // * MaxNumberOfConfigurationRecordersExceededException
  1544. // You have reached the limit on the number of recorders you can create.
  1545. //
  1546. // * InvalidConfigurationRecorderNameException
  1547. // You have provided a configuration recorder name that is not valid.
  1548. //
  1549. // * InvalidRoleException
  1550. // You have provided a null or empty role ARN.
  1551. //
  1552. // * InvalidRecordingGroupException
  1553. // AWS Config throws an exception if the recording group does not contain a
  1554. // valid list of resource types. Invalid values could also be incorrectly formatted.
  1555. //
  1556. func (c *ConfigService) PutConfigurationRecorder(input *PutConfigurationRecorderInput) (*PutConfigurationRecorderOutput, error) {
  1557. req, out := c.PutConfigurationRecorderRequest(input)
  1558. err := req.Send()
  1559. return out, err
  1560. }
  1561. const opPutDeliveryChannel = "PutDeliveryChannel"
  1562. // PutDeliveryChannelRequest generates a "aws/request.Request" representing the
  1563. // client's request for the PutDeliveryChannel operation. The "output" return
  1564. // value can be used to capture response data after the request's "Send" method
  1565. // is called.
  1566. //
  1567. // See PutDeliveryChannel for usage and error information.
  1568. //
  1569. // Creating a request object using this method should be used when you want to inject
  1570. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1571. // access properties on the request object before or after sending the request. If
  1572. // you just want the service response, call the PutDeliveryChannel method directly
  1573. // instead.
  1574. //
  1575. // Note: You must call the "Send" method on the returned request object in order
  1576. // to execute the request.
  1577. //
  1578. // // Example sending a request using the PutDeliveryChannelRequest method.
  1579. // req, resp := client.PutDeliveryChannelRequest(params)
  1580. //
  1581. // err := req.Send()
  1582. // if err == nil { // resp is now filled
  1583. // fmt.Println(resp)
  1584. // }
  1585. //
  1586. func (c *ConfigService) PutDeliveryChannelRequest(input *PutDeliveryChannelInput) (req *request.Request, output *PutDeliveryChannelOutput) {
  1587. op := &request.Operation{
  1588. Name: opPutDeliveryChannel,
  1589. HTTPMethod: "POST",
  1590. HTTPPath: "/",
  1591. }
  1592. if input == nil {
  1593. input = &PutDeliveryChannelInput{}
  1594. }
  1595. req = c.newRequest(op, input, output)
  1596. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  1597. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1598. output = &PutDeliveryChannelOutput{}
  1599. req.Data = output
  1600. return
  1601. }
  1602. // PutDeliveryChannel API operation for AWS Config.
  1603. //
  1604. // Creates a delivery channel object to deliver configuration information to
  1605. // an Amazon S3 bucket and Amazon SNS topic.
  1606. //
  1607. // Before you can create a delivery channel, you must create a configuration
  1608. // recorder.
  1609. //
  1610. // You can use this action to change the Amazon S3 bucket or an Amazon SNS topic
  1611. // of the existing delivery channel. To change the Amazon S3 bucket or an Amazon
  1612. // SNS topic, call this action and specify the changed values for the S3 bucket
  1613. // and the SNS topic. If you specify a different value for either the S3 bucket
  1614. // or the SNS topic, this action will keep the existing value for the parameter
  1615. // that is not changed.
  1616. //
  1617. // You can have only one delivery channel per region in your account.
  1618. //
  1619. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1620. // with awserr.Error's Code and Message methods to get detailed information about
  1621. // the error.
  1622. //
  1623. // See the AWS API reference guide for AWS Config's
  1624. // API operation PutDeliveryChannel for usage and error information.
  1625. //
  1626. // Returned Error Codes:
  1627. // * MaxNumberOfDeliveryChannelsExceededException
  1628. // You have reached the limit on the number of delivery channels you can create.
  1629. //
  1630. // * NoAvailableConfigurationRecorderException
  1631. // There are no configuration recorders available to provide the role needed
  1632. // to describe your resources. Create a configuration recorder.
  1633. //
  1634. // * InvalidDeliveryChannelNameException
  1635. // The specified delivery channel name is not valid.
  1636. //
  1637. // * NoSuchBucketException
  1638. // The specified Amazon S3 bucket does not exist.
  1639. //
  1640. // * InvalidS3KeyPrefixException
  1641. // The specified Amazon S3 key prefix is not valid.
  1642. //
  1643. // * InvalidSNSTopicARNException
  1644. // The specified Amazon SNS topic does not exist.
  1645. //
  1646. // * InsufficientDeliveryPolicyException
  1647. // Your Amazon S3 bucket policy does not permit AWS Config to write to it.
  1648. //
  1649. func (c *ConfigService) PutDeliveryChannel(input *PutDeliveryChannelInput) (*PutDeliveryChannelOutput, error) {
  1650. req, out := c.PutDeliveryChannelRequest(input)
  1651. err := req.Send()
  1652. return out, err
  1653. }
  1654. const opPutEvaluations = "PutEvaluations"
  1655. // PutEvaluationsRequest generates a "aws/request.Request" representing the
  1656. // client's request for the PutEvaluations operation. The "output" return
  1657. // value can be used to capture response data after the request's "Send" method
  1658. // is called.
  1659. //
  1660. // See PutEvaluations for usage and error information.
  1661. //
  1662. // Creating a request object using this method should be used when you want to inject
  1663. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1664. // access properties on the request object before or after sending the request. If
  1665. // you just want the service response, call the PutEvaluations method directly
  1666. // instead.
  1667. //
  1668. // Note: You must call the "Send" method on the returned request object in order
  1669. // to execute the request.
  1670. //
  1671. // // Example sending a request using the PutEvaluationsRequest method.
  1672. // req, resp := client.PutEvaluationsRequest(params)
  1673. //
  1674. // err := req.Send()
  1675. // if err == nil { // resp is now filled
  1676. // fmt.Println(resp)
  1677. // }
  1678. //
  1679. func (c *ConfigService) PutEvaluationsRequest(input *PutEvaluationsInput) (req *request.Request, output *PutEvaluationsOutput) {
  1680. op := &request.Operation{
  1681. Name: opPutEvaluations,
  1682. HTTPMethod: "POST",
  1683. HTTPPath: "/",
  1684. }
  1685. if input == nil {
  1686. input = &PutEvaluationsInput{}
  1687. }
  1688. req = c.newRequest(op, input, output)
  1689. output = &PutEvaluationsOutput{}
  1690. req.Data = output
  1691. return
  1692. }
  1693. // PutEvaluations API operation for AWS Config.
  1694. //
  1695. // Used by an AWS Lambda function to deliver evaluation results to AWS Config.
  1696. // This action is required in every AWS Lambda function that is invoked by an
  1697. // AWS Config rule.
  1698. //
  1699. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1700. // with awserr.Error's Code and Message methods to get detailed information about
  1701. // the error.
  1702. //
  1703. // See the AWS API reference guide for AWS Config's
  1704. // API operation PutEvaluations for usage and error information.
  1705. //
  1706. // Returned Error Codes:
  1707. // * InvalidParameterValueException
  1708. // One or more of the specified parameters are invalid. Verify that your parameters
  1709. // are valid and try again.
  1710. //
  1711. // * InvalidResultTokenException
  1712. // The result token is invalid.
  1713. //
  1714. // * NoSuchConfigRuleException
  1715. // One or more AWS Config rules in the request are invalid. Verify that the
  1716. // rule names are correct and try again.
  1717. //
  1718. func (c *ConfigService) PutEvaluations(input *PutEvaluationsInput) (*PutEvaluationsOutput, error) {
  1719. req, out := c.PutEvaluationsRequest(input)
  1720. err := req.Send()
  1721. return out, err
  1722. }
  1723. const opStartConfigRulesEvaluation = "StartConfigRulesEvaluation"
  1724. // StartConfigRulesEvaluationRequest generates a "aws/request.Request" representing the
  1725. // client's request for the StartConfigRulesEvaluation operation. The "output" return
  1726. // value can be used to capture response data after the request's "Send" method
  1727. // is called.
  1728. //
  1729. // See StartConfigRulesEvaluation for usage and error information.
  1730. //
  1731. // Creating a request object using this method should be used when you want to inject
  1732. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1733. // access properties on the request object before or after sending the request. If
  1734. // you just want the service response, call the StartConfigRulesEvaluation method directly
  1735. // instead.
  1736. //
  1737. // Note: You must call the "Send" method on the returned request object in order
  1738. // to execute the request.
  1739. //
  1740. // // Example sending a request using the StartConfigRulesEvaluationRequest method.
  1741. // req, resp := client.StartConfigRulesEvaluationRequest(params)
  1742. //
  1743. // err := req.Send()
  1744. // if err == nil { // resp is now filled
  1745. // fmt.Println(resp)
  1746. // }
  1747. //
  1748. func (c *ConfigService) StartConfigRulesEvaluationRequest(input *StartConfigRulesEvaluationInput) (req *request.Request, output *StartConfigRulesEvaluationOutput) {
  1749. op := &request.Operation{
  1750. Name: opStartConfigRulesEvaluation,
  1751. HTTPMethod: "POST",
  1752. HTTPPath: "/",
  1753. }
  1754. if input == nil {
  1755. input = &StartConfigRulesEvaluationInput{}
  1756. }
  1757. req = c.newRequest(op, input, output)
  1758. output = &StartConfigRulesEvaluationOutput{}
  1759. req.Data = output
  1760. return
  1761. }
  1762. // StartConfigRulesEvaluation API operation for AWS Config.
  1763. //
  1764. // Evaluates your resources against the specified Config rules. You can specify
  1765. // up to 25 Config rules per request.
  1766. //
  1767. // An existing StartConfigRulesEvaluation call must complete for the specified
  1768. // rules before you can call the API again. If you chose to have AWS Config
  1769. // stream to an Amazon SNS topic, you will receive a ConfigRuleEvaluationStarted
  1770. // notification when the evaluation starts.
  1771. //
  1772. // You don't need to call the StartConfigRulesEvaluation API to run an evaluation
  1773. // for a new rule. When you create a new rule, AWS Config automatically evaluates
  1774. // your resources against the rule.
  1775. //
  1776. // The StartConfigRulesEvaluation API is useful if you want to run on-demand
  1777. // evaluations, such as the following example:
  1778. //
  1779. // You have a custom rule that evaluates your IAM resources every 24 hours.
  1780. //
  1781. // You update your Lambda function to add additional conditions to your rule.
  1782. //
  1783. // Instead of waiting for the next periodic evaluation, you call the StartConfigRulesEvaluation
  1784. // API.
  1785. //
  1786. // AWS Config invokes your Lambda function and evaluates your IAM resources.
  1787. //
  1788. // Your custom rule will still run periodic evaluations every 24 hours.
  1789. //
  1790. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1791. // with awserr.Error's Code and Message methods to get detailed information about
  1792. // the error.
  1793. //
  1794. // See the AWS API reference guide for AWS Config's
  1795. // API operation StartConfigRulesEvaluation for usage and error information.
  1796. //
  1797. // Returned Error Codes:
  1798. // * NoSuchConfigRuleException
  1799. // One or more AWS Config rules in the request are invalid. Verify that the
  1800. // rule names are correct and try again.
  1801. //
  1802. // * LimitExceededException
  1803. // This exception is thrown if an evaluation is in progress or if you call the
  1804. // StartConfigRulesEvaluation API more than once per minute.
  1805. //
  1806. // * ResourceInUseException
  1807. // The rule is currently being deleted or the rule is deleting your evaluation
  1808. // results. Try your request again later.
  1809. //
  1810. // * InvalidParameterValueException
  1811. // One or more of the specified parameters are invalid. Verify that your parameters
  1812. // are valid and try again.
  1813. //
  1814. func (c *ConfigService) StartConfigRulesEvaluation(input *StartConfigRulesEvaluationInput) (*StartConfigRulesEvaluationOutput, error) {
  1815. req, out := c.StartConfigRulesEvaluationRequest(input)
  1816. err := req.Send()
  1817. return out, err
  1818. }
  1819. const opStartConfigurationRecorder = "StartConfigurationRecorder"
  1820. // StartConfigurationRecorderRequest generates a "aws/request.Request" representing the
  1821. // client's request for the StartConfigurationRecorder operation. The "output" return
  1822. // value can be used to capture response data after the request's "Send" method
  1823. // is called.
  1824. //
  1825. // See StartConfigurationRecorder for usage and error information.
  1826. //
  1827. // Creating a request object using this method should be used when you want to inject
  1828. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1829. // access properties on the request object before or after sending the request. If
  1830. // you just want the service response, call the StartConfigurationRecorder method directly
  1831. // instead.
  1832. //
  1833. // Note: You must call the "Send" method on the returned request object in order
  1834. // to execute the request.
  1835. //
  1836. // // Example sending a request using the StartConfigurationRecorderRequest method.
  1837. // req, resp := client.StartConfigurationRecorderRequest(params)
  1838. //
  1839. // err := req.Send()
  1840. // if err == nil { // resp is now filled
  1841. // fmt.Println(resp)
  1842. // }
  1843. //
  1844. func (c *ConfigService) StartConfigurationRecorderRequest(input *StartConfigurationRecorderInput) (req *request.Request, output *StartConfigurationRecorderOutput) {
  1845. op := &request.Operation{
  1846. Name: opStartConfigurationRecorder,
  1847. HTTPMethod: "POST",
  1848. HTTPPath: "/",
  1849. }
  1850. if input == nil {
  1851. input = &StartConfigurationRecorderInput{}
  1852. }
  1853. req = c.newRequest(op, input, output)
  1854. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  1855. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1856. output = &StartConfigurationRecorderOutput{}
  1857. req.Data = output
  1858. return
  1859. }
  1860. // StartConfigurationRecorder API operation for AWS Config.
  1861. //
  1862. // Starts recording configurations of the AWS resources you have selected to
  1863. // record in your AWS account.
  1864. //
  1865. // You must have created at least one delivery channel to successfully start
  1866. // the configuration recorder.
  1867. //
  1868. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1869. // with awserr.Error's Code and Message methods to get detailed information about
  1870. // the error.
  1871. //
  1872. // See the AWS API reference guide for AWS Config's
  1873. // API operation StartConfigurationRecorder for usage and error information.
  1874. //
  1875. // Returned Error Codes:
  1876. // * NoSuchConfigurationRecorderException
  1877. // You have specified a configuration recorder that does not exist.
  1878. //
  1879. // * NoAvailableDeliveryChannelException
  1880. // There is no delivery channel available to record configurations.
  1881. //
  1882. func (c *ConfigService) StartConfigurationRecorder(input *StartConfigurationRecorderInput) (*StartConfigurationRecorderOutput, error) {
  1883. req, out := c.StartConfigurationRecorderRequest(input)
  1884. err := req.Send()
  1885. return out, err
  1886. }
  1887. const opStopConfigurationRecorder = "StopConfigurationRecorder"
  1888. // StopConfigurationRecorderRequest generates a "aws/request.Request" representing the
  1889. // client's request for the StopConfigurationRecorder operation. The "output" return
  1890. // value can be used to capture response data after the request's "Send" method
  1891. // is called.
  1892. //
  1893. // See StopConfigurationRecorder for usage and error information.
  1894. //
  1895. // Creating a request object using this method should be used when you want to inject
  1896. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1897. // access properties on the request object before or after sending the request. If
  1898. // you just want the service response, call the StopConfigurationRecorder method directly
  1899. // instead.
  1900. //
  1901. // Note: You must call the "Send" method on the returned request object in order
  1902. // to execute the request.
  1903. //
  1904. // // Example sending a request using the StopConfigurationRecorderRequest method.
  1905. // req, resp := client.StopConfigurationRecorderRequest(params)
  1906. //
  1907. // err := req.Send()
  1908. // if err == nil { // resp is now filled
  1909. // fmt.Println(resp)
  1910. // }
  1911. //
  1912. func (c *ConfigService) StopConfigurationRecorderRequest(input *StopConfigurationRecorderInput) (req *request.Request, output *StopConfigurationRecorderOutput) {
  1913. op := &request.Operation{
  1914. Name: opStopConfigurationRecorder,
  1915. HTTPMethod: "POST",
  1916. HTTPPath: "/",
  1917. }
  1918. if input == nil {
  1919. input = &StopConfigurationRecorderInput{}
  1920. }
  1921. req = c.newRequest(op, input, output)
  1922. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  1923. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1924. output = &StopConfigurationRecorderOutput{}
  1925. req.Data = output
  1926. return
  1927. }
  1928. // StopConfigurationRecorder API operation for AWS Config.
  1929. //
  1930. // Stops recording configurations of the AWS resources you have selected to
  1931. // record in your AWS account.
  1932. //
  1933. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1934. // with awserr.Error's Code and Message methods to get detailed information about
  1935. // the error.
  1936. //
  1937. // See the AWS API reference guide for AWS Config's
  1938. // API operation StopConfigurationRecorder for usage and error information.
  1939. //
  1940. // Returned Error Codes:
  1941. // * NoSuchConfigurationRecorderException
  1942. // You have specified a configuration recorder that does not exist.
  1943. //
  1944. func (c *ConfigService) StopConfigurationRecorder(input *StopConfigurationRecorderInput) (*StopConfigurationRecorderOutput, error) {
  1945. req, out := c.StopConfigurationRecorderRequest(input)
  1946. err := req.Send()
  1947. return out, err
  1948. }
  1949. // Indicates whether an AWS resource or AWS Config rule is compliant and provides
  1950. // the number of contributors that affect the compliance.
  1951. type Compliance struct {
  1952. _ struct{} `type:"structure"`
  1953. // The number of AWS resources or AWS Config rules that cause a result of NON_COMPLIANT,
  1954. // up to a maximum number.
  1955. ComplianceContributorCount *ComplianceContributorCount `type:"structure"`
  1956. // Indicates whether an AWS resource or AWS Config rule is compliant.
  1957. //
  1958. // A resource is compliant if it complies with all of the AWS Config rules that
  1959. // evaluate it, and it is noncompliant if it does not comply with one or more
  1960. // of these rules.
  1961. //
  1962. // A rule is compliant if all of the resources that the rule evaluates comply
  1963. // with it, and it is noncompliant if any of these resources do not comply.
  1964. //
  1965. // AWS Config returns the INSUFFICIENT_DATA value when no evaluation results
  1966. // are available for the AWS resource or Config rule.
  1967. //
  1968. // For the Compliance data type, AWS Config supports only COMPLIANT, NON_COMPLIANT,
  1969. // and INSUFFICIENT_DATA values. AWS Config does not support the NOT_APPLICABLE
  1970. // value for the Compliance data type.
  1971. ComplianceType *string `type:"string" enum:"ComplianceType"`
  1972. }
  1973. // String returns the string representation
  1974. func (s Compliance) String() string {
  1975. return awsutil.Prettify(s)
  1976. }
  1977. // GoString returns the string representation
  1978. func (s Compliance) GoString() string {
  1979. return s.String()
  1980. }
  1981. // Indicates whether an AWS Config rule is compliant. A rule is compliant if
  1982. // all of the resources that the rule evaluated comply with it, and it is noncompliant
  1983. // if any of these resources do not comply.
  1984. type ComplianceByConfigRule struct {
  1985. _ struct{} `type:"structure"`
  1986. // Indicates whether the AWS Config rule is compliant.
  1987. Compliance *Compliance `type:"structure"`
  1988. // The name of the AWS Config rule.
  1989. ConfigRuleName *string `min:"1" type:"string"`
  1990. }
  1991. // String returns the string representation
  1992. func (s ComplianceByConfigRule) String() string {
  1993. return awsutil.Prettify(s)
  1994. }
  1995. // GoString returns the string representation
  1996. func (s ComplianceByConfigRule) GoString() string {
  1997. return s.String()
  1998. }
  1999. // Indicates whether an AWS resource that is evaluated according to one or more
  2000. // AWS Config rules is compliant. A resource is compliant if it complies with
  2001. // all of the rules that evaluate it, and it is noncompliant if it does not
  2002. // comply with one or more of these rules.
  2003. type ComplianceByResource struct {
  2004. _ struct{} `type:"structure"`
  2005. // Indicates whether the AWS resource complies with all of the AWS Config rules
  2006. // that evaluated it.
  2007. Compliance *Compliance `type:"structure"`
  2008. // The ID of the AWS resource that was evaluated.
  2009. ResourceId *string `min:"1" type:"string"`
  2010. // The type of the AWS resource that was evaluated.
  2011. ResourceType *string `min:"1" type:"string"`
  2012. }
  2013. // String returns the string representation
  2014. func (s ComplianceByResource) String() string {
  2015. return awsutil.Prettify(s)
  2016. }
  2017. // GoString returns the string representation
  2018. func (s ComplianceByResource) GoString() string {
  2019. return s.String()
  2020. }
  2021. // The number of AWS resources or AWS Config rules responsible for the current
  2022. // compliance of the item, up to a maximum number.
  2023. type ComplianceContributorCount struct {
  2024. _ struct{} `type:"structure"`
  2025. // Indicates whether the maximum count is reached.
  2026. CapExceeded *bool `type:"boolean"`
  2027. // The number of AWS resources or AWS Config rules responsible for the current
  2028. // compliance of the item.
  2029. CappedCount *int64 `type:"integer"`
  2030. }
  2031. // String returns the string representation
  2032. func (s ComplianceContributorCount) String() string {
  2033. return awsutil.Prettify(s)
  2034. }
  2035. // GoString returns the string representation
  2036. func (s ComplianceContributorCount) GoString() string {
  2037. return s.String()
  2038. }
  2039. // The number of AWS Config rules or AWS resources that are compliant and noncompliant,
  2040. // up to a maximum.
  2041. type ComplianceSummary struct {
  2042. _ struct{} `type:"structure"`
  2043. // The time that AWS Config created the compliance summary.
  2044. ComplianceSummaryTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
  2045. // The number of AWS Config rules or AWS resources that are compliant, up to
  2046. // a maximum of 25 for rules and 100 for resources.
  2047. CompliantResourceCount *ComplianceContributorCount `type:"structure"`
  2048. // The number of AWS Config rules or AWS resources that are noncompliant, up
  2049. // to a maximum of 25 for rules and 100 for resources.
  2050. NonCompliantResourceCount *ComplianceContributorCount `type:"structure"`
  2051. }
  2052. // String returns the string representation
  2053. func (s ComplianceSummary) String() string {
  2054. return awsutil.Prettify(s)
  2055. }
  2056. // GoString returns the string representation
  2057. func (s ComplianceSummary) GoString() string {
  2058. return s.String()
  2059. }
  2060. // The number of AWS resources of a specific type that are compliant or noncompliant,
  2061. // up to a maximum of 100 for each compliance.
  2062. type ComplianceSummaryByResourceType struct {
  2063. _ struct{} `type:"structure"`
  2064. // The number of AWS resources that are compliant or noncompliant, up to a maximum
  2065. // of 100 for each compliance.
  2066. ComplianceSummary *ComplianceSummary `type:"structure"`
  2067. // The type of AWS resource.
  2068. ResourceType *string `min:"1" type:"string"`
  2069. }
  2070. // String returns the string representation
  2071. func (s ComplianceSummaryByResourceType) String() string {
  2072. return awsutil.Prettify(s)
  2073. }
  2074. // GoString returns the string representation
  2075. func (s ComplianceSummaryByResourceType) GoString() string {
  2076. return s.String()
  2077. }
  2078. // A list that contains the status of the delivery of either the snapshot or
  2079. // the configuration history to the specified Amazon S3 bucket.
  2080. type ConfigExportDeliveryInfo struct {
  2081. _ struct{} `type:"structure"`
  2082. // The time of the last attempted delivery.
  2083. LastAttemptTime *time.Time `locationName:"lastAttemptTime" type:"timestamp" timestampFormat:"unix"`
  2084. // The error code from the last attempted delivery.
  2085. LastErrorCode *string `locationName:"lastErrorCode" type:"string"`
  2086. // The error message from the last attempted delivery.
  2087. LastErrorMessage *string `locationName:"lastErrorMessage" type:"string"`
  2088. // Status of the last attempted delivery.
  2089. LastStatus *string `locationName:"lastStatus" type:"string" enum:"DeliveryStatus"`
  2090. // The time of the last successful delivery.
  2091. LastSuccessfulTime *time.Time `locationName:"lastSuccessfulTime" type:"timestamp" timestampFormat:"unix"`
  2092. // The time that the next delivery occurs.
  2093. NextDeliveryTime *time.Time `locationName:"nextDeliveryTime" type:"timestamp" timestampFormat:"unix"`
  2094. }
  2095. // String returns the string representation
  2096. func (s ConfigExportDeliveryInfo) String() string {
  2097. return awsutil.Prettify(s)
  2098. }
  2099. // GoString returns the string representation
  2100. func (s ConfigExportDeliveryInfo) GoString() string {
  2101. return s.String()
  2102. }
  2103. // An AWS Config rule represents an AWS Lambda function that you create for
  2104. // a custom rule or a predefined function for an AWS managed rule. The function
  2105. // evaluates configuration items to assess whether your AWS resources comply
  2106. // with your desired configurations. This function can run when AWS Config detects
  2107. // a configuration change to an AWS resource and at a periodic frequency that
  2108. // you choose (for example, every 24 hours).
  2109. //
  2110. // You can use the AWS CLI and AWS SDKs if you want to create a rule that triggers
  2111. // evaluations for your resources when AWS Config delivers the configuration
  2112. // snapshot. For more information, see ConfigSnapshotDeliveryProperties.
  2113. //
  2114. // For more information about developing and using AWS Config rules, see Evaluating
  2115. // AWS Resource Configurations with AWS Config (http://docs.aws.amazon.com/config/latest/developerguide/evaluate-config.html)
  2116. // in the AWS Config Developer Guide.
  2117. type ConfigRule struct {
  2118. _ struct{} `type:"structure"`
  2119. // The Amazon Resource Name (ARN) of the AWS Config rule.
  2120. ConfigRuleArn *string `type:"string"`
  2121. // The ID of the AWS Config rule.
  2122. ConfigRuleId *string `type:"string"`
  2123. // The name that you assign to the AWS Config rule. The name is required if
  2124. // you are adding a new rule.
  2125. ConfigRuleName *string `min:"1" type:"string"`
  2126. // Indicates whether the AWS Config rule is active or is currently being deleted
  2127. // by AWS Config. It can also indicate the evaluation status for the Config
  2128. // rule.
  2129. //
  2130. // AWS Config sets the state of the rule to EVALUATING temporarily after you
  2131. // use the StartConfigRulesEvaluation request to evaluate your resources against
  2132. // the Config rule.
  2133. //
  2134. // AWS Config sets the state of the rule to DELETING_RESULTS temporarily after
  2135. // you use the DeleteEvaluationResults request to delete the current evaluation
  2136. // results for the Config rule.
  2137. //
  2138. // AWS Config sets the state of a rule to DELETING temporarily after you use
  2139. // the DeleteConfigRule request to delete the rule. After AWS Config deletes
  2140. // the rule, the rule and all of its evaluations are erased and are no longer
  2141. // available.
  2142. ConfigRuleState *string `type:"string" enum:"ConfigRuleState"`
  2143. // The description that you provide for the AWS Config rule.
  2144. Description *string `type:"string"`
  2145. // A string in JSON format that is passed to the AWS Config rule Lambda function.
  2146. InputParameters *string `min:"1" type:"string"`
  2147. // The maximum frequency with which AWS Config runs evaluations for a rule.
  2148. // You can specify a value for MaximumExecutionFrequency when:
  2149. //
  2150. // * You are using an AWS managed rule that is triggered at a periodic frequency.
  2151. //
  2152. // * Your custom rule is triggered when AWS Config delivers the configuration
  2153. // snapshot.
  2154. //
  2155. // For more information, see ConfigSnapshotDeliveryProperties.
  2156. MaximumExecutionFrequency *string `type:"string" enum:"MaximumExecutionFrequency"`
  2157. // Defines which resources can trigger an evaluation for the rule. The scope
  2158. // can include one or more resource types, a combination of one resource type
  2159. // and one resource ID, or a combination of a tag key and value. Specify a scope
  2160. // to constrain the resources that can trigger an evaluation for the rule. If
  2161. // you do not specify a scope, evaluations are triggered when any resource in
  2162. // the recording group changes.
  2163. Scope *Scope `type:"structure"`
  2164. // Provides the rule owner (AWS or customer), the rule identifier, and the notifications
  2165. // that cause the function to evaluate your AWS resources.
  2166. //
  2167. // Source is a required field
  2168. Source *Source `type:"structure" required:"true"`
  2169. }
  2170. // String returns the string representation
  2171. func (s ConfigRule) String() string {
  2172. return awsutil.Prettify(s)
  2173. }
  2174. // GoString returns the string representation
  2175. func (s ConfigRule) GoString() string {
  2176. return s.String()
  2177. }
  2178. // Validate inspects the fields of the type to determine if they are valid.
  2179. func (s *ConfigRule) Validate() error {
  2180. invalidParams := request.ErrInvalidParams{Context: "ConfigRule"}
  2181. if s.ConfigRuleName != nil && len(*s.ConfigRuleName) < 1 {
  2182. invalidParams.Add(request.NewErrParamMinLen("ConfigRuleName", 1))
  2183. }
  2184. if s.InputParameters != nil && len(*s.InputParameters) < 1 {
  2185. invalidParams.Add(request.NewErrParamMinLen("InputParameters", 1))
  2186. }
  2187. if s.Source == nil {
  2188. invalidParams.Add(request.NewErrParamRequired("Source"))
  2189. }
  2190. if s.Scope != nil {
  2191. if err := s.Scope.Validate(); err != nil {
  2192. invalidParams.AddNested("Scope", err.(request.ErrInvalidParams))
  2193. }
  2194. }
  2195. if s.Source != nil {
  2196. if err := s.Source.Validate(); err != nil {
  2197. invalidParams.AddNested("Source", err.(request.ErrInvalidParams))
  2198. }
  2199. }
  2200. if invalidParams.Len() > 0 {
  2201. return invalidParams
  2202. }
  2203. return nil
  2204. }
  2205. // Status information for your AWS managed Config rules. The status includes
  2206. // information such as the last time the rule ran, the last time it failed,
  2207. // and the related error for the last failure.
  2208. //
  2209. // This action does not return status information about custom Config rules.
  2210. type ConfigRuleEvaluationStatus struct {
  2211. _ struct{} `type:"structure"`
  2212. // The Amazon Resource Name (ARN) of the AWS Config rule.
  2213. ConfigRuleArn *string `type:"string"`
  2214. // The ID of the AWS Config rule.
  2215. ConfigRuleId *string `type:"string"`
  2216. // The name of the AWS Config rule.
  2217. ConfigRuleName *string `min:"1" type:"string"`
  2218. // The time that you first activated the AWS Config rule.
  2219. FirstActivatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  2220. // Indicates whether AWS Config has evaluated your resources against the rule
  2221. // at least once.
  2222. //
  2223. // * true - AWS Config has evaluated your AWS resources against the rule
  2224. // at least once.
  2225. //
  2226. // * false - AWS Config has not once finished evaluating your AWS resources
  2227. // against the rule.
  2228. FirstEvaluationStarted *bool `type:"boolean"`
  2229. // The error code that AWS Config returned when the rule last failed.
  2230. LastErrorCode *string `type:"string"`
  2231. // The error message that AWS Config returned when the rule last failed.
  2232. LastErrorMessage *string `type:"string"`
  2233. // The time that AWS Config last failed to evaluate your AWS resources against
  2234. // the rule.
  2235. LastFailedEvaluationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  2236. // The time that AWS Config last failed to invoke the AWS Config rule to evaluate
  2237. // your AWS resources.
  2238. LastFailedInvocationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  2239. // The time that AWS Config last successfully evaluated your AWS resources against
  2240. // the rule.
  2241. LastSuccessfulEvaluationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  2242. // The time that AWS Config last successfully invoked the AWS Config rule to
  2243. // evaluate your AWS resources.
  2244. LastSuccessfulInvocationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  2245. }
  2246. // String returns the string representation
  2247. func (s ConfigRuleEvaluationStatus) String() string {
  2248. return awsutil.Prettify(s)
  2249. }
  2250. // GoString returns the string representation
  2251. func (s ConfigRuleEvaluationStatus) GoString() string {
  2252. return s.String()
  2253. }
  2254. // Provides options for how often AWS Config delivers configuration snapshots
  2255. // to the Amazon S3 bucket in your delivery channel.
  2256. //
  2257. // If you want to create a rule that triggers evaluations for your resources
  2258. // when AWS Config delivers the configuration snapshot, see the following:
  2259. //
  2260. // The frequency for a rule that triggers evaluations for your resources when
  2261. // AWS Config delivers the configuration snapshot is set by one of two values,
  2262. // depending on which is less frequent:
  2263. //
  2264. // * The value for the deliveryFrequency parameter within the delivery channel
  2265. // configuration, which sets how often AWS Config delivers configuration
  2266. // snapshots. This value also sets how often AWS Config invokes evaluations
  2267. // for Config rules.
  2268. //
  2269. // * The value for the MaximumExecutionFrequency parameter, which sets the
  2270. // maximum frequency with which AWS Config invokes evaluations for the rule.
  2271. // For more information, see ConfigRule.
  2272. //
  2273. // If the deliveryFrequency value is less frequent than the MaximumExecutionFrequency
  2274. // value for a rule, AWS Config invokes the rule only as often as the deliveryFrequency
  2275. // value.
  2276. //
  2277. // For example, you want your rule to run evaluations when AWS Config delivers
  2278. // the configuration snapshot.
  2279. //
  2280. // You specify the MaximumExecutionFrequency value for Six_Hours.
  2281. //
  2282. // You then specify the delivery channel deliveryFrequency value for TwentyFour_Hours.
  2283. //
  2284. // Because the value for deliveryFrequency is less frequent than MaximumExecutionFrequency,
  2285. // AWS Config invokes evaluations for the rule every 24 hours.
  2286. //
  2287. // You should set the MaximumExecutionFrequency value to be at least as frequent
  2288. // as the deliveryFrequency value. You can view the deliveryFrequency value
  2289. // by using the DescribeDeliveryChannnels action.
  2290. //
  2291. // To update the deliveryFrequency with which AWS Config delivers your configuration
  2292. // snapshots, use the PutDeliveryChannel action.
  2293. type ConfigSnapshotDeliveryProperties struct {
  2294. _ struct{} `type:"structure"`
  2295. // The frequency with which AWS Config delivers configuration snapshots.
  2296. DeliveryFrequency *string `locationName:"deliveryFrequency" type:"string" enum:"MaximumExecutionFrequency"`
  2297. }
  2298. // String returns the string representation
  2299. func (s ConfigSnapshotDeliveryProperties) String() string {
  2300. return awsutil.Prettify(s)
  2301. }
  2302. // GoString returns the string representation
  2303. func (s ConfigSnapshotDeliveryProperties) GoString() string {
  2304. return s.String()
  2305. }
  2306. // A list that contains the status of the delivery of the configuration stream
  2307. // notification to the Amazon SNS topic.
  2308. type ConfigStreamDeliveryInfo struct {
  2309. _ struct{} `type:"structure"`
  2310. // The error code from the last attempted delivery.
  2311. LastErrorCode *string `locationName:"lastErrorCode" type:"string"`
  2312. // The error message from the last attempted delivery.
  2313. LastErrorMessage *string `locationName:"lastErrorMessage" type:"string"`
  2314. // Status of the last attempted delivery.
  2315. //
  2316. // Note Providing an SNS topic on a DeliveryChannel (http://docs.aws.amazon.com/config/latest/APIReference/API_DeliveryChannel.html)
  2317. // for AWS Config is optional. If the SNS delivery is turned off, the last status
  2318. // will be Not_Applicable.
  2319. LastStatus *string `locationName:"lastStatus" type:"string" enum:"DeliveryStatus"`
  2320. // The time from the last status change.
  2321. LastStatusChangeTime *time.Time `locationName:"lastStatusChangeTime" type:"timestamp" timestampFormat:"unix"`
  2322. }
  2323. // String returns the string representation
  2324. func (s ConfigStreamDeliveryInfo) String() string {
  2325. return awsutil.Prettify(s)
  2326. }
  2327. // GoString returns the string representation
  2328. func (s ConfigStreamDeliveryInfo) GoString() string {
  2329. return s.String()
  2330. }
  2331. // A list that contains detailed configurations of a specified resource.
  2332. //
  2333. // Currently, the list does not contain information about non-AWS components
  2334. // (for example, applications on your Amazon EC2 instances).
  2335. type ConfigurationItem struct {
  2336. _ struct{} `type:"structure"`
  2337. // The 12 digit AWS account ID associated with the resource.
  2338. AccountId *string `locationName:"accountId" type:"string"`
  2339. // The Amazon Resource Name (ARN) of the resource.
  2340. Arn *string `locationName:"arn" type:"string"`
  2341. // The Availability Zone associated with the resource.
  2342. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  2343. // The region where the resource resides.
  2344. AwsRegion *string `locationName:"awsRegion" type:"string"`
  2345. // The description of the resource configuration.
  2346. Configuration *string `locationName:"configuration" type:"string"`
  2347. // The time when the configuration recording was initiated.
  2348. ConfigurationItemCaptureTime *time.Time `locationName:"configurationItemCaptureTime" type:"timestamp" timestampFormat:"unix"`
  2349. // Unique MD5 hash that represents the configuration item's state.
  2350. //
  2351. // You can use MD5 hash to compare the states of two or more configuration items
  2352. // that are associated with the same resource.
  2353. ConfigurationItemMD5Hash *string `locationName:"configurationItemMD5Hash" type:"string"`
  2354. // The configuration item status.
  2355. ConfigurationItemStatus *string `locationName:"configurationItemStatus" type:"string" enum:"ConfigurationItemStatus"`
  2356. // An identifier that indicates the ordering of the configuration items of a
  2357. // resource.
  2358. ConfigurationStateId *string `locationName:"configurationStateId" type:"string"`
  2359. // A list of CloudTrail event IDs.
  2360. //
  2361. // A populated field indicates that the current configuration was initiated
  2362. // by the events recorded in the CloudTrail log. For more information about
  2363. // CloudTrail, see What is AWS CloudTrail? (http://docs.aws.amazon.com/awscloudtrail/latest/userguide/what_is_cloud_trail_top_level.html).
  2364. //
  2365. // An empty field indicates that the current configuration was not initiated
  2366. // by any event.
  2367. RelatedEvents []*string `locationName:"relatedEvents" type:"list"`
  2368. // A list of related AWS resources.
  2369. Relationships []*Relationship `locationName:"relationships" type:"list"`
  2370. // The time stamp when the resource was created.
  2371. ResourceCreationTime *time.Time `locationName:"resourceCreationTime" type:"timestamp" timestampFormat:"unix"`
  2372. // The ID of the resource (for example., sg-xxxxxx).
  2373. ResourceId *string `locationName:"resourceId" type:"string"`
  2374. // The custom name of the resource, if available.
  2375. ResourceName *string `locationName:"resourceName" type:"string"`
  2376. // The type of AWS resource.
  2377. ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
  2378. // Configuration attributes that AWS Config returns for certain resource types
  2379. // to supplement the information returned for the configuration parameter.
  2380. SupplementaryConfiguration map[string]*string `locationName:"supplementaryConfiguration" type:"map"`
  2381. // A mapping of key value tags associated with the resource.
  2382. Tags map[string]*string `locationName:"tags" type:"map"`
  2383. // The version number of the resource configuration.
  2384. Version *string `locationName:"version" type:"string"`
  2385. }
  2386. // String returns the string representation
  2387. func (s ConfigurationItem) String() string {
  2388. return awsutil.Prettify(s)
  2389. }
  2390. // GoString returns the string representation
  2391. func (s ConfigurationItem) GoString() string {
  2392. return s.String()
  2393. }
  2394. // An object that represents the recording of configuration changes of an AWS
  2395. // resource.
  2396. type ConfigurationRecorder struct {
  2397. _ struct{} `type:"structure"`
  2398. // The name of the recorder. By default, AWS Config automatically assigns the
  2399. // name "default" when creating the configuration recorder. You cannot change
  2400. // the assigned name.
  2401. Name *string `locationName:"name" min:"1" type:"string"`
  2402. // Specifies the types of AWS resource for which AWS Config records configuration
  2403. // changes.
  2404. RecordingGroup *RecordingGroup `locationName:"recordingGroup" type:"structure"`
  2405. // Amazon Resource Name (ARN) of the IAM role used to describe the AWS resources
  2406. // associated with the account.
  2407. RoleARN *string `locationName:"roleARN" type:"string"`
  2408. }
  2409. // String returns the string representation
  2410. func (s ConfigurationRecorder) String() string {
  2411. return awsutil.Prettify(s)
  2412. }
  2413. // GoString returns the string representation
  2414. func (s ConfigurationRecorder) GoString() string {
  2415. return s.String()
  2416. }
  2417. // Validate inspects the fields of the type to determine if they are valid.
  2418. func (s *ConfigurationRecorder) Validate() error {
  2419. invalidParams := request.ErrInvalidParams{Context: "ConfigurationRecorder"}
  2420. if s.Name != nil && len(*s.Name) < 1 {
  2421. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  2422. }
  2423. if invalidParams.Len() > 0 {
  2424. return invalidParams
  2425. }
  2426. return nil
  2427. }
  2428. // The current status of the configuration recorder.
  2429. type ConfigurationRecorderStatus struct {
  2430. _ struct{} `type:"structure"`
  2431. // The error code indicating that the recording failed.
  2432. LastErrorCode *string `locationName:"lastErrorCode" type:"string"`
  2433. // The message indicating that the recording failed due to an error.
  2434. LastErrorMessage *string `locationName:"lastErrorMessage" type:"string"`
  2435. // The time the recorder was last started.
  2436. LastStartTime *time.Time `locationName:"lastStartTime" type:"timestamp" timestampFormat:"unix"`
  2437. // The last (previous) status of the recorder.
  2438. LastStatus *string `locationName:"lastStatus" type:"string" enum:"RecorderStatus"`
  2439. // The time when the status was last changed.
  2440. LastStatusChangeTime *time.Time `locationName:"lastStatusChangeTime" type:"timestamp" timestampFormat:"unix"`
  2441. // The time the recorder was last stopped.
  2442. LastStopTime *time.Time `locationName:"lastStopTime" type:"timestamp" timestampFormat:"unix"`
  2443. // The name of the configuration recorder.
  2444. Name *string `locationName:"name" type:"string"`
  2445. // Specifies whether the recorder is currently recording or not.
  2446. Recording *bool `locationName:"recording" type:"boolean"`
  2447. }
  2448. // String returns the string representation
  2449. func (s ConfigurationRecorderStatus) String() string {
  2450. return awsutil.Prettify(s)
  2451. }
  2452. // GoString returns the string representation
  2453. func (s ConfigurationRecorderStatus) GoString() string {
  2454. return s.String()
  2455. }
  2456. type DeleteConfigRuleInput struct {
  2457. _ struct{} `type:"structure"`
  2458. // The name of the AWS Config rule that you want to delete.
  2459. //
  2460. // ConfigRuleName is a required field
  2461. ConfigRuleName *string `min:"1" type:"string" required:"true"`
  2462. }
  2463. // String returns the string representation
  2464. func (s DeleteConfigRuleInput) String() string {
  2465. return awsutil.Prettify(s)
  2466. }
  2467. // GoString returns the string representation
  2468. func (s DeleteConfigRuleInput) GoString() string {
  2469. return s.String()
  2470. }
  2471. // Validate inspects the fields of the type to determine if they are valid.
  2472. func (s *DeleteConfigRuleInput) Validate() error {
  2473. invalidParams := request.ErrInvalidParams{Context: "DeleteConfigRuleInput"}
  2474. if s.ConfigRuleName == nil {
  2475. invalidParams.Add(request.NewErrParamRequired("ConfigRuleName"))
  2476. }
  2477. if s.ConfigRuleName != nil && len(*s.ConfigRuleName) < 1 {
  2478. invalidParams.Add(request.NewErrParamMinLen("ConfigRuleName", 1))
  2479. }
  2480. if invalidParams.Len() > 0 {
  2481. return invalidParams
  2482. }
  2483. return nil
  2484. }
  2485. type DeleteConfigRuleOutput struct {
  2486. _ struct{} `type:"structure"`
  2487. }
  2488. // String returns the string representation
  2489. func (s DeleteConfigRuleOutput) String() string {
  2490. return awsutil.Prettify(s)
  2491. }
  2492. // GoString returns the string representation
  2493. func (s DeleteConfigRuleOutput) GoString() string {
  2494. return s.String()
  2495. }
  2496. // The request object for the DeleteConfigurationRecorder action.
  2497. type DeleteConfigurationRecorderInput struct {
  2498. _ struct{} `type:"structure"`
  2499. // The name of the configuration recorder to be deleted. You can retrieve the
  2500. // name of your configuration recorder by using the DescribeConfigurationRecorders
  2501. // action.
  2502. //
  2503. // ConfigurationRecorderName is a required field
  2504. ConfigurationRecorderName *string `min:"1" type:"string" required:"true"`
  2505. }
  2506. // String returns the string representation
  2507. func (s DeleteConfigurationRecorderInput) String() string {
  2508. return awsutil.Prettify(s)
  2509. }
  2510. // GoString returns the string representation
  2511. func (s DeleteConfigurationRecorderInput) GoString() string {
  2512. return s.String()
  2513. }
  2514. // Validate inspects the fields of the type to determine if they are valid.
  2515. func (s *DeleteConfigurationRecorderInput) Validate() error {
  2516. invalidParams := request.ErrInvalidParams{Context: "DeleteConfigurationRecorderInput"}
  2517. if s.ConfigurationRecorderName == nil {
  2518. invalidParams.Add(request.NewErrParamRequired("ConfigurationRecorderName"))
  2519. }
  2520. if s.ConfigurationRecorderName != nil && len(*s.ConfigurationRecorderName) < 1 {
  2521. invalidParams.Add(request.NewErrParamMinLen("ConfigurationRecorderName", 1))
  2522. }
  2523. if invalidParams.Len() > 0 {
  2524. return invalidParams
  2525. }
  2526. return nil
  2527. }
  2528. type DeleteConfigurationRecorderOutput struct {
  2529. _ struct{} `type:"structure"`
  2530. }
  2531. // String returns the string representation
  2532. func (s DeleteConfigurationRecorderOutput) String() string {
  2533. return awsutil.Prettify(s)
  2534. }
  2535. // GoString returns the string representation
  2536. func (s DeleteConfigurationRecorderOutput) GoString() string {
  2537. return s.String()
  2538. }
  2539. // The input for the DeleteDeliveryChannel action. The action accepts the following
  2540. // data in JSON format.
  2541. type DeleteDeliveryChannelInput struct {
  2542. _ struct{} `type:"structure"`
  2543. // The name of the delivery channel to delete.
  2544. //
  2545. // DeliveryChannelName is a required field
  2546. DeliveryChannelName *string `min:"1" type:"string" required:"true"`
  2547. }
  2548. // String returns the string representation
  2549. func (s DeleteDeliveryChannelInput) String() string {
  2550. return awsutil.Prettify(s)
  2551. }
  2552. // GoString returns the string representation
  2553. func (s DeleteDeliveryChannelInput) GoString() string {
  2554. return s.String()
  2555. }
  2556. // Validate inspects the fields of the type to determine if they are valid.
  2557. func (s *DeleteDeliveryChannelInput) Validate() error {
  2558. invalidParams := request.ErrInvalidParams{Context: "DeleteDeliveryChannelInput"}
  2559. if s.DeliveryChannelName == nil {
  2560. invalidParams.Add(request.NewErrParamRequired("DeliveryChannelName"))
  2561. }
  2562. if s.DeliveryChannelName != nil && len(*s.DeliveryChannelName) < 1 {
  2563. invalidParams.Add(request.NewErrParamMinLen("DeliveryChannelName", 1))
  2564. }
  2565. if invalidParams.Len() > 0 {
  2566. return invalidParams
  2567. }
  2568. return nil
  2569. }
  2570. type DeleteDeliveryChannelOutput struct {
  2571. _ struct{} `type:"structure"`
  2572. }
  2573. // String returns the string representation
  2574. func (s DeleteDeliveryChannelOutput) String() string {
  2575. return awsutil.Prettify(s)
  2576. }
  2577. // GoString returns the string representation
  2578. func (s DeleteDeliveryChannelOutput) GoString() string {
  2579. return s.String()
  2580. }
  2581. type DeleteEvaluationResultsInput struct {
  2582. _ struct{} `type:"structure"`
  2583. // The name of the Config rule for which you want to delete the evaluation results.
  2584. //
  2585. // ConfigRuleName is a required field
  2586. ConfigRuleName *string `min:"1" type:"string" required:"true"`
  2587. }
  2588. // String returns the string representation
  2589. func (s DeleteEvaluationResultsInput) String() string {
  2590. return awsutil.Prettify(s)
  2591. }
  2592. // GoString returns the string representation
  2593. func (s DeleteEvaluationResultsInput) GoString() string {
  2594. return s.String()
  2595. }
  2596. // Validate inspects the fields of the type to determine if they are valid.
  2597. func (s *DeleteEvaluationResultsInput) Validate() error {
  2598. invalidParams := request.ErrInvalidParams{Context: "DeleteEvaluationResultsInput"}
  2599. if s.ConfigRuleName == nil {
  2600. invalidParams.Add(request.NewErrParamRequired("ConfigRuleName"))
  2601. }
  2602. if s.ConfigRuleName != nil && len(*s.ConfigRuleName) < 1 {
  2603. invalidParams.Add(request.NewErrParamMinLen("ConfigRuleName", 1))
  2604. }
  2605. if invalidParams.Len() > 0 {
  2606. return invalidParams
  2607. }
  2608. return nil
  2609. }
  2610. // The output when you delete the evaluation results for the specified Config
  2611. // rule.
  2612. type DeleteEvaluationResultsOutput struct {
  2613. _ struct{} `type:"structure"`
  2614. }
  2615. // String returns the string representation
  2616. func (s DeleteEvaluationResultsOutput) String() string {
  2617. return awsutil.Prettify(s)
  2618. }
  2619. // GoString returns the string representation
  2620. func (s DeleteEvaluationResultsOutput) GoString() string {
  2621. return s.String()
  2622. }
  2623. // The input for the DeliverConfigSnapshot action.
  2624. type DeliverConfigSnapshotInput struct {
  2625. _ struct{} `type:"structure"`
  2626. // The name of the delivery channel through which the snapshot is delivered.
  2627. //
  2628. // DeliveryChannelName is a required field
  2629. DeliveryChannelName *string `locationName:"deliveryChannelName" min:"1" type:"string" required:"true"`
  2630. }
  2631. // String returns the string representation
  2632. func (s DeliverConfigSnapshotInput) String() string {
  2633. return awsutil.Prettify(s)
  2634. }
  2635. // GoString returns the string representation
  2636. func (s DeliverConfigSnapshotInput) GoString() string {
  2637. return s.String()
  2638. }
  2639. // Validate inspects the fields of the type to determine if they are valid.
  2640. func (s *DeliverConfigSnapshotInput) Validate() error {
  2641. invalidParams := request.ErrInvalidParams{Context: "DeliverConfigSnapshotInput"}
  2642. if s.DeliveryChannelName == nil {
  2643. invalidParams.Add(request.NewErrParamRequired("DeliveryChannelName"))
  2644. }
  2645. if s.DeliveryChannelName != nil && len(*s.DeliveryChannelName) < 1 {
  2646. invalidParams.Add(request.NewErrParamMinLen("DeliveryChannelName", 1))
  2647. }
  2648. if invalidParams.Len() > 0 {
  2649. return invalidParams
  2650. }
  2651. return nil
  2652. }
  2653. // The output for the DeliverConfigSnapshot action in JSON format.
  2654. type DeliverConfigSnapshotOutput struct {
  2655. _ struct{} `type:"structure"`
  2656. // The ID of the snapshot that is being created.
  2657. ConfigSnapshotId *string `locationName:"configSnapshotId" type:"string"`
  2658. }
  2659. // String returns the string representation
  2660. func (s DeliverConfigSnapshotOutput) String() string {
  2661. return awsutil.Prettify(s)
  2662. }
  2663. // GoString returns the string representation
  2664. func (s DeliverConfigSnapshotOutput) GoString() string {
  2665. return s.String()
  2666. }
  2667. // The channel through which AWS Config delivers notifications and updated configuration
  2668. // states.
  2669. type DeliveryChannel struct {
  2670. _ struct{} `type:"structure"`
  2671. // Provides options for how often AWS Config delivers configuration snapshots
  2672. // to the Amazon S3 bucket in your delivery channel.
  2673. //
  2674. // If you want to create a rule that triggers evaluations for your resources
  2675. // when AWS Config delivers the configuration snapshot, see the following:
  2676. //
  2677. // The frequency for a rule that triggers evaluations for your resources when
  2678. // AWS Config delivers the configuration snapshot is set by one of two values,
  2679. // depending on which is less frequent:
  2680. //
  2681. // * The value for the deliveryFrequency parameter within the delivery channel
  2682. // configuration, which sets how often AWS Config delivers configuration
  2683. // snapshots. This value also sets how often AWS Config invokes evaluations
  2684. // for Config rules.
  2685. //
  2686. // * The value for the MaximumExecutionFrequency parameter, which sets the
  2687. // maximum frequency with which AWS Config invokes evaluations for the rule.
  2688. // For more information, see ConfigRule.
  2689. //
  2690. // If the deliveryFrequency value is less frequent than the MaximumExecutionFrequency
  2691. // value for a rule, AWS Config invokes the rule only as often as the deliveryFrequency
  2692. // value.
  2693. //
  2694. // For example, you want your rule to run evaluations when AWS Config delivers
  2695. // the configuration snapshot.
  2696. //
  2697. // You specify the MaximumExecutionFrequency value for Six_Hours.
  2698. //
  2699. // You then specify the delivery channel deliveryFrequency value for TwentyFour_Hours.
  2700. //
  2701. // Because the value for deliveryFrequency is less frequent than MaximumExecutionFrequency,
  2702. // AWS Config invokes evaluations for the rule every 24 hours.
  2703. //
  2704. // You should set the MaximumExecutionFrequency value to be at least as frequent
  2705. // as the deliveryFrequency value. You can view the deliveryFrequency value
  2706. // by using the DescribeDeliveryChannnels action.
  2707. //
  2708. // To update the deliveryFrequency with which AWS Config delivers your configuration
  2709. // snapshots, use the PutDeliveryChannel action.
  2710. ConfigSnapshotDeliveryProperties *ConfigSnapshotDeliveryProperties `locationName:"configSnapshotDeliveryProperties" type:"structure"`
  2711. // The name of the delivery channel. By default, AWS Config assigns the name
  2712. // "default" when creating the delivery channel. To change the delivery channel
  2713. // name, you must use the DeleteDeliveryChannel action to delete your current
  2714. // delivery channel, and then you must use the PutDeliveryChannel command to
  2715. // create a delivery channel that has the desired name.
  2716. Name *string `locationName:"name" min:"1" type:"string"`
  2717. // The name of the Amazon S3 bucket to which AWS Config delivers configuration
  2718. // snapshots and configuration history files.
  2719. //
  2720. // If you specify a bucket that belongs to another AWS account, that bucket
  2721. // must have policies that grant access permissions to AWS Config. For more
  2722. // information, see Permissions for the Amazon S3 Bucket (http://docs.aws.amazon.com/config/latest/developerguide/s3-bucket-policy.html)
  2723. // in the AWS Config Developer Guide.
  2724. S3BucketName *string `locationName:"s3BucketName" type:"string"`
  2725. // The prefix for the specified Amazon S3 bucket.
  2726. S3KeyPrefix *string `locationName:"s3KeyPrefix" type:"string"`
  2727. // The Amazon Resource Name (ARN) of the Amazon SNS topic to which AWS Config
  2728. // sends notifications about configuration changes.
  2729. //
  2730. // If you choose a topic from another account, the topic must have policies
  2731. // that grant access permissions to AWS Config. For more information, see Permissions
  2732. // for the Amazon SNS Topic (http://docs.aws.amazon.com/config/latest/developerguide/sns-topic-policy.html)
  2733. // in the AWS Config Developer Guide.
  2734. SnsTopicARN *string `locationName:"snsTopicARN" type:"string"`
  2735. }
  2736. // String returns the string representation
  2737. func (s DeliveryChannel) String() string {
  2738. return awsutil.Prettify(s)
  2739. }
  2740. // GoString returns the string representation
  2741. func (s DeliveryChannel) GoString() string {
  2742. return s.String()
  2743. }
  2744. // Validate inspects the fields of the type to determine if they are valid.
  2745. func (s *DeliveryChannel) Validate() error {
  2746. invalidParams := request.ErrInvalidParams{Context: "DeliveryChannel"}
  2747. if s.Name != nil && len(*s.Name) < 1 {
  2748. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  2749. }
  2750. if invalidParams.Len() > 0 {
  2751. return invalidParams
  2752. }
  2753. return nil
  2754. }
  2755. // The status of a specified delivery channel.
  2756. //
  2757. // Valid values: Success | Failure
  2758. type DeliveryChannelStatus struct {
  2759. _ struct{} `type:"structure"`
  2760. // A list that contains the status of the delivery of the configuration history
  2761. // to the specified Amazon S3 bucket.
  2762. ConfigHistoryDeliveryInfo *ConfigExportDeliveryInfo `locationName:"configHistoryDeliveryInfo" type:"structure"`
  2763. // A list containing the status of the delivery of the snapshot to the specified
  2764. // Amazon S3 bucket.
  2765. ConfigSnapshotDeliveryInfo *ConfigExportDeliveryInfo `locationName:"configSnapshotDeliveryInfo" type:"structure"`
  2766. // A list containing the status of the delivery of the configuration stream
  2767. // notification to the specified Amazon SNS topic.
  2768. ConfigStreamDeliveryInfo *ConfigStreamDeliveryInfo `locationName:"configStreamDeliveryInfo" type:"structure"`
  2769. // The name of the delivery channel.
  2770. Name *string `locationName:"name" type:"string"`
  2771. }
  2772. // String returns the string representation
  2773. func (s DeliveryChannelStatus) String() string {
  2774. return awsutil.Prettify(s)
  2775. }
  2776. // GoString returns the string representation
  2777. func (s DeliveryChannelStatus) GoString() string {
  2778. return s.String()
  2779. }
  2780. type DescribeComplianceByConfigRuleInput struct {
  2781. _ struct{} `type:"structure"`
  2782. // Filters the results by compliance.
  2783. //
  2784. // The allowed values are COMPLIANT, NON_COMPLIANT, and INSUFFICIENT_DATA.
  2785. ComplianceTypes []*string `type:"list"`
  2786. // Specify one or more AWS Config rule names to filter the results by rule.
  2787. ConfigRuleNames []*string `type:"list"`
  2788. // The nextToken string returned on a previous page that you use to get the
  2789. // next page of results in a paginated response.
  2790. NextToken *string `type:"string"`
  2791. }
  2792. // String returns the string representation
  2793. func (s DescribeComplianceByConfigRuleInput) String() string {
  2794. return awsutil.Prettify(s)
  2795. }
  2796. // GoString returns the string representation
  2797. func (s DescribeComplianceByConfigRuleInput) GoString() string {
  2798. return s.String()
  2799. }
  2800. type DescribeComplianceByConfigRuleOutput struct {
  2801. _ struct{} `type:"structure"`
  2802. // Indicates whether each of the specified AWS Config rules is compliant.
  2803. ComplianceByConfigRules []*ComplianceByConfigRule `type:"list"`
  2804. // The string that you use in a subsequent request to get the next page of results
  2805. // in a paginated response.
  2806. NextToken *string `type:"string"`
  2807. }
  2808. // String returns the string representation
  2809. func (s DescribeComplianceByConfigRuleOutput) String() string {
  2810. return awsutil.Prettify(s)
  2811. }
  2812. // GoString returns the string representation
  2813. func (s DescribeComplianceByConfigRuleOutput) GoString() string {
  2814. return s.String()
  2815. }
  2816. type DescribeComplianceByResourceInput struct {
  2817. _ struct{} `type:"structure"`
  2818. // Filters the results by compliance.
  2819. //
  2820. // The allowed values are COMPLIANT, NON_COMPLIANT, and INSUFFICIENT_DATA.
  2821. ComplianceTypes []*string `type:"list"`
  2822. // The maximum number of evaluation results returned on each page. The default
  2823. // is 10. You cannot specify a limit greater than 100. If you specify 0, AWS
  2824. // Config uses the default.
  2825. Limit *int64 `type:"integer"`
  2826. // The nextToken string returned on a previous page that you use to get the
  2827. // next page of results in a paginated response.
  2828. NextToken *string `type:"string"`
  2829. // The ID of the AWS resource for which you want compliance information. You
  2830. // can specify only one resource ID. If you specify a resource ID, you must
  2831. // also specify a type for ResourceType.
  2832. ResourceId *string `min:"1" type:"string"`
  2833. // The types of AWS resources for which you want compliance information; for
  2834. // example, AWS::EC2::Instance. For this action, you can specify that the resource
  2835. // type is an AWS account by specifying AWS::::Account.
  2836. ResourceType *string `min:"1" type:"string"`
  2837. }
  2838. // String returns the string representation
  2839. func (s DescribeComplianceByResourceInput) String() string {
  2840. return awsutil.Prettify(s)
  2841. }
  2842. // GoString returns the string representation
  2843. func (s DescribeComplianceByResourceInput) GoString() string {
  2844. return s.String()
  2845. }
  2846. // Validate inspects the fields of the type to determine if they are valid.
  2847. func (s *DescribeComplianceByResourceInput) Validate() error {
  2848. invalidParams := request.ErrInvalidParams{Context: "DescribeComplianceByResourceInput"}
  2849. if s.ResourceId != nil && len(*s.ResourceId) < 1 {
  2850. invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1))
  2851. }
  2852. if s.ResourceType != nil && len(*s.ResourceType) < 1 {
  2853. invalidParams.Add(request.NewErrParamMinLen("ResourceType", 1))
  2854. }
  2855. if invalidParams.Len() > 0 {
  2856. return invalidParams
  2857. }
  2858. return nil
  2859. }
  2860. type DescribeComplianceByResourceOutput struct {
  2861. _ struct{} `type:"structure"`
  2862. // Indicates whether the specified AWS resource complies with all of the AWS
  2863. // Config rules that evaluate it.
  2864. ComplianceByResources []*ComplianceByResource `type:"list"`
  2865. // The string that you use in a subsequent request to get the next page of results
  2866. // in a paginated response.
  2867. NextToken *string `type:"string"`
  2868. }
  2869. // String returns the string representation
  2870. func (s DescribeComplianceByResourceOutput) String() string {
  2871. return awsutil.Prettify(s)
  2872. }
  2873. // GoString returns the string representation
  2874. func (s DescribeComplianceByResourceOutput) GoString() string {
  2875. return s.String()
  2876. }
  2877. type DescribeConfigRuleEvaluationStatusInput struct {
  2878. _ struct{} `type:"structure"`
  2879. // The name of the AWS managed Config rules for which you want status information.
  2880. // If you do not specify any names, AWS Config returns status information for
  2881. // all AWS managed Config rules that you use.
  2882. ConfigRuleNames []*string `type:"list"`
  2883. }
  2884. // String returns the string representation
  2885. func (s DescribeConfigRuleEvaluationStatusInput) String() string {
  2886. return awsutil.Prettify(s)
  2887. }
  2888. // GoString returns the string representation
  2889. func (s DescribeConfigRuleEvaluationStatusInput) GoString() string {
  2890. return s.String()
  2891. }
  2892. type DescribeConfigRuleEvaluationStatusOutput struct {
  2893. _ struct{} `type:"structure"`
  2894. // Status information about your AWS managed Config rules.
  2895. ConfigRulesEvaluationStatus []*ConfigRuleEvaluationStatus `type:"list"`
  2896. }
  2897. // String returns the string representation
  2898. func (s DescribeConfigRuleEvaluationStatusOutput) String() string {
  2899. return awsutil.Prettify(s)
  2900. }
  2901. // GoString returns the string representation
  2902. func (s DescribeConfigRuleEvaluationStatusOutput) GoString() string {
  2903. return s.String()
  2904. }
  2905. type DescribeConfigRulesInput struct {
  2906. _ struct{} `type:"structure"`
  2907. // The names of the AWS Config rules for which you want details. If you do not
  2908. // specify any names, AWS Config returns details for all your rules.
  2909. ConfigRuleNames []*string `type:"list"`
  2910. // The nextToken string returned on a previous page that you use to get the
  2911. // next page of results in a paginated response.
  2912. NextToken *string `type:"string"`
  2913. }
  2914. // String returns the string representation
  2915. func (s DescribeConfigRulesInput) String() string {
  2916. return awsutil.Prettify(s)
  2917. }
  2918. // GoString returns the string representation
  2919. func (s DescribeConfigRulesInput) GoString() string {
  2920. return s.String()
  2921. }
  2922. type DescribeConfigRulesOutput struct {
  2923. _ struct{} `type:"structure"`
  2924. // The details about your AWS Config rules.
  2925. ConfigRules []*ConfigRule `type:"list"`
  2926. // The string that you use in a subsequent request to get the next page of results
  2927. // in a paginated response.
  2928. NextToken *string `type:"string"`
  2929. }
  2930. // String returns the string representation
  2931. func (s DescribeConfigRulesOutput) String() string {
  2932. return awsutil.Prettify(s)
  2933. }
  2934. // GoString returns the string representation
  2935. func (s DescribeConfigRulesOutput) GoString() string {
  2936. return s.String()
  2937. }
  2938. // The input for the DescribeConfigurationRecorderStatus action.
  2939. type DescribeConfigurationRecorderStatusInput struct {
  2940. _ struct{} `type:"structure"`
  2941. // The name(s) of the configuration recorder. If the name is not specified,
  2942. // the action returns the current status of all the configuration recorders
  2943. // associated with the account.
  2944. ConfigurationRecorderNames []*string `type:"list"`
  2945. }
  2946. // String returns the string representation
  2947. func (s DescribeConfigurationRecorderStatusInput) String() string {
  2948. return awsutil.Prettify(s)
  2949. }
  2950. // GoString returns the string representation
  2951. func (s DescribeConfigurationRecorderStatusInput) GoString() string {
  2952. return s.String()
  2953. }
  2954. // The output for the DescribeConfigurationRecorderStatus action in JSON format.
  2955. type DescribeConfigurationRecorderStatusOutput struct {
  2956. _ struct{} `type:"structure"`
  2957. // A list that contains status of the specified recorders.
  2958. ConfigurationRecordersStatus []*ConfigurationRecorderStatus `type:"list"`
  2959. }
  2960. // String returns the string representation
  2961. func (s DescribeConfigurationRecorderStatusOutput) String() string {
  2962. return awsutil.Prettify(s)
  2963. }
  2964. // GoString returns the string representation
  2965. func (s DescribeConfigurationRecorderStatusOutput) GoString() string {
  2966. return s.String()
  2967. }
  2968. // The input for the DescribeConfigurationRecorders action.
  2969. type DescribeConfigurationRecordersInput struct {
  2970. _ struct{} `type:"structure"`
  2971. // A list of configuration recorder names.
  2972. ConfigurationRecorderNames []*string `type:"list"`
  2973. }
  2974. // String returns the string representation
  2975. func (s DescribeConfigurationRecordersInput) String() string {
  2976. return awsutil.Prettify(s)
  2977. }
  2978. // GoString returns the string representation
  2979. func (s DescribeConfigurationRecordersInput) GoString() string {
  2980. return s.String()
  2981. }
  2982. // The output for the DescribeConfigurationRecorders action.
  2983. type DescribeConfigurationRecordersOutput struct {
  2984. _ struct{} `type:"structure"`
  2985. // A list that contains the descriptions of the specified configuration recorders.
  2986. ConfigurationRecorders []*ConfigurationRecorder `type:"list"`
  2987. }
  2988. // String returns the string representation
  2989. func (s DescribeConfigurationRecordersOutput) String() string {
  2990. return awsutil.Prettify(s)
  2991. }
  2992. // GoString returns the string representation
  2993. func (s DescribeConfigurationRecordersOutput) GoString() string {
  2994. return s.String()
  2995. }
  2996. // The input for the DeliveryChannelStatus action.
  2997. type DescribeDeliveryChannelStatusInput struct {
  2998. _ struct{} `type:"structure"`
  2999. // A list of delivery channel names.
  3000. DeliveryChannelNames []*string `type:"list"`
  3001. }
  3002. // String returns the string representation
  3003. func (s DescribeDeliveryChannelStatusInput) String() string {
  3004. return awsutil.Prettify(s)
  3005. }
  3006. // GoString returns the string representation
  3007. func (s DescribeDeliveryChannelStatusInput) GoString() string {
  3008. return s.String()
  3009. }
  3010. // The output for the DescribeDeliveryChannelStatus action.
  3011. type DescribeDeliveryChannelStatusOutput struct {
  3012. _ struct{} `type:"structure"`
  3013. // A list that contains the status of a specified delivery channel.
  3014. DeliveryChannelsStatus []*DeliveryChannelStatus `type:"list"`
  3015. }
  3016. // String returns the string representation
  3017. func (s DescribeDeliveryChannelStatusOutput) String() string {
  3018. return awsutil.Prettify(s)
  3019. }
  3020. // GoString returns the string representation
  3021. func (s DescribeDeliveryChannelStatusOutput) GoString() string {
  3022. return s.String()
  3023. }
  3024. // The input for the DescribeDeliveryChannels action.
  3025. type DescribeDeliveryChannelsInput struct {
  3026. _ struct{} `type:"structure"`
  3027. // A list of delivery channel names.
  3028. DeliveryChannelNames []*string `type:"list"`
  3029. }
  3030. // String returns the string representation
  3031. func (s DescribeDeliveryChannelsInput) String() string {
  3032. return awsutil.Prettify(s)
  3033. }
  3034. // GoString returns the string representation
  3035. func (s DescribeDeliveryChannelsInput) GoString() string {
  3036. return s.String()
  3037. }
  3038. // The output for the DescribeDeliveryChannels action.
  3039. type DescribeDeliveryChannelsOutput struct {
  3040. _ struct{} `type:"structure"`
  3041. // A list that contains the descriptions of the specified delivery channel.
  3042. DeliveryChannels []*DeliveryChannel `type:"list"`
  3043. }
  3044. // String returns the string representation
  3045. func (s DescribeDeliveryChannelsOutput) String() string {
  3046. return awsutil.Prettify(s)
  3047. }
  3048. // GoString returns the string representation
  3049. func (s DescribeDeliveryChannelsOutput) GoString() string {
  3050. return s.String()
  3051. }
  3052. // Identifies an AWS resource and indicates whether it complies with the AWS
  3053. // Config rule that it was evaluated against.
  3054. type Evaluation struct {
  3055. _ struct{} `type:"structure"`
  3056. // Supplementary information about how the evaluation determined the compliance.
  3057. Annotation *string `min:"1" type:"string"`
  3058. // The ID of the AWS resource that was evaluated.
  3059. //
  3060. // ComplianceResourceId is a required field
  3061. ComplianceResourceId *string `min:"1" type:"string" required:"true"`
  3062. // The type of AWS resource that was evaluated.
  3063. //
  3064. // ComplianceResourceType is a required field
  3065. ComplianceResourceType *string `min:"1" type:"string" required:"true"`
  3066. // Indicates whether the AWS resource complies with the AWS Config rule that
  3067. // it was evaluated against.
  3068. //
  3069. // For the Evaluation data type, AWS Config supports only the COMPLIANT, NON_COMPLIANT,
  3070. // and NOT_APPLICABLE values. AWS Config does not support the INSUFFICIENT_DATA
  3071. // value for this data type.
  3072. //
  3073. // Similarly, AWS Config does not accept INSUFFICIENT_DATA as the value for
  3074. // ComplianceType from a PutEvaluations request. For example, an AWS Lambda
  3075. // function for a custom Config rule cannot pass an INSUFFICIENT_DATA value
  3076. // to AWS Config.
  3077. //
  3078. // ComplianceType is a required field
  3079. ComplianceType *string `type:"string" required:"true" enum:"ComplianceType"`
  3080. // The time of the event in AWS Config that triggered the evaluation. For event-based
  3081. // evaluations, the time indicates when AWS Config created the configuration
  3082. // item that triggered the evaluation. For periodic evaluations, the time indicates
  3083. // when AWS Config delivered the configuration snapshot that triggered the evaluation.
  3084. //
  3085. // OrderingTimestamp is a required field
  3086. OrderingTimestamp *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
  3087. }
  3088. // String returns the string representation
  3089. func (s Evaluation) String() string {
  3090. return awsutil.Prettify(s)
  3091. }
  3092. // GoString returns the string representation
  3093. func (s Evaluation) GoString() string {
  3094. return s.String()
  3095. }
  3096. // Validate inspects the fields of the type to determine if they are valid.
  3097. func (s *Evaluation) Validate() error {
  3098. invalidParams := request.ErrInvalidParams{Context: "Evaluation"}
  3099. if s.Annotation != nil && len(*s.Annotation) < 1 {
  3100. invalidParams.Add(request.NewErrParamMinLen("Annotation", 1))
  3101. }
  3102. if s.ComplianceResourceId == nil {
  3103. invalidParams.Add(request.NewErrParamRequired("ComplianceResourceId"))
  3104. }
  3105. if s.ComplianceResourceId != nil && len(*s.ComplianceResourceId) < 1 {
  3106. invalidParams.Add(request.NewErrParamMinLen("ComplianceResourceId", 1))
  3107. }
  3108. if s.ComplianceResourceType == nil {
  3109. invalidParams.Add(request.NewErrParamRequired("ComplianceResourceType"))
  3110. }
  3111. if s.ComplianceResourceType != nil && len(*s.ComplianceResourceType) < 1 {
  3112. invalidParams.Add(request.NewErrParamMinLen("ComplianceResourceType", 1))
  3113. }
  3114. if s.ComplianceType == nil {
  3115. invalidParams.Add(request.NewErrParamRequired("ComplianceType"))
  3116. }
  3117. if s.OrderingTimestamp == nil {
  3118. invalidParams.Add(request.NewErrParamRequired("OrderingTimestamp"))
  3119. }
  3120. if invalidParams.Len() > 0 {
  3121. return invalidParams
  3122. }
  3123. return nil
  3124. }
  3125. // The details of an AWS Config evaluation. Provides the AWS resource that was
  3126. // evaluated, the compliance of the resource, related timestamps, and supplementary
  3127. // information.
  3128. type EvaluationResult struct {
  3129. _ struct{} `type:"structure"`
  3130. // Supplementary information about how the evaluation determined the compliance.
  3131. Annotation *string `min:"1" type:"string"`
  3132. // Indicates whether the AWS resource complies with the AWS Config rule that
  3133. // evaluated it.
  3134. //
  3135. // For the EvaluationResult data type, AWS Config supports only the COMPLIANT,
  3136. // NON_COMPLIANT, and NOT_APPLICABLE values. AWS Config does not support the
  3137. // INSUFFICIENT_DATA value for the EvaluationResult data type.
  3138. ComplianceType *string `type:"string" enum:"ComplianceType"`
  3139. // The time when the AWS Config rule evaluated the AWS resource.
  3140. ConfigRuleInvokedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  3141. // Uniquely identifies the evaluation result.
  3142. EvaluationResultIdentifier *EvaluationResultIdentifier `type:"structure"`
  3143. // The time when AWS Config recorded the evaluation result.
  3144. ResultRecordedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  3145. // An encrypted token that associates an evaluation with an AWS Config rule.
  3146. // The token identifies the rule, the AWS resource being evaluated, and the
  3147. // event that triggered the evaluation.
  3148. ResultToken *string `type:"string"`
  3149. }
  3150. // String returns the string representation
  3151. func (s EvaluationResult) String() string {
  3152. return awsutil.Prettify(s)
  3153. }
  3154. // GoString returns the string representation
  3155. func (s EvaluationResult) GoString() string {
  3156. return s.String()
  3157. }
  3158. // Uniquely identifies an evaluation result.
  3159. type EvaluationResultIdentifier struct {
  3160. _ struct{} `type:"structure"`
  3161. // Identifies an AWS Config rule used to evaluate an AWS resource, and provides
  3162. // the type and ID of the evaluated resource.
  3163. EvaluationResultQualifier *EvaluationResultQualifier `type:"structure"`
  3164. // The time of the event that triggered the evaluation of your AWS resources.
  3165. // The time can indicate when AWS Config delivered a configuration item change
  3166. // notification, or it can indicate when AWS Config delivered the configuration
  3167. // snapshot, depending on which event triggered the evaluation.
  3168. OrderingTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
  3169. }
  3170. // String returns the string representation
  3171. func (s EvaluationResultIdentifier) String() string {
  3172. return awsutil.Prettify(s)
  3173. }
  3174. // GoString returns the string representation
  3175. func (s EvaluationResultIdentifier) GoString() string {
  3176. return s.String()
  3177. }
  3178. // Identifies an AWS Config rule that evaluated an AWS resource, and provides
  3179. // the type and ID of the resource that the rule evaluated.
  3180. type EvaluationResultQualifier struct {
  3181. _ struct{} `type:"structure"`
  3182. // The name of the AWS Config rule that was used in the evaluation.
  3183. ConfigRuleName *string `min:"1" type:"string"`
  3184. // The ID of the evaluated AWS resource.
  3185. ResourceId *string `min:"1" type:"string"`
  3186. // The type of AWS resource that was evaluated.
  3187. ResourceType *string `min:"1" type:"string"`
  3188. }
  3189. // String returns the string representation
  3190. func (s EvaluationResultQualifier) String() string {
  3191. return awsutil.Prettify(s)
  3192. }
  3193. // GoString returns the string representation
  3194. func (s EvaluationResultQualifier) GoString() string {
  3195. return s.String()
  3196. }
  3197. type GetComplianceDetailsByConfigRuleInput struct {
  3198. _ struct{} `type:"structure"`
  3199. // Filters the results by compliance.
  3200. //
  3201. // The allowed values are COMPLIANT, NON_COMPLIANT, and NOT_APPLICABLE.
  3202. ComplianceTypes []*string `type:"list"`
  3203. // The name of the AWS Config rule for which you want compliance information.
  3204. //
  3205. // ConfigRuleName is a required field
  3206. ConfigRuleName *string `min:"1" type:"string" required:"true"`
  3207. // The maximum number of evaluation results returned on each page. The default
  3208. // is 10. You cannot specify a limit greater than 100. If you specify 0, AWS
  3209. // Config uses the default.
  3210. Limit *int64 `type:"integer"`
  3211. // The nextToken string returned on a previous page that you use to get the
  3212. // next page of results in a paginated response.
  3213. NextToken *string `type:"string"`
  3214. }
  3215. // String returns the string representation
  3216. func (s GetComplianceDetailsByConfigRuleInput) String() string {
  3217. return awsutil.Prettify(s)
  3218. }
  3219. // GoString returns the string representation
  3220. func (s GetComplianceDetailsByConfigRuleInput) GoString() string {
  3221. return s.String()
  3222. }
  3223. // Validate inspects the fields of the type to determine if they are valid.
  3224. func (s *GetComplianceDetailsByConfigRuleInput) Validate() error {
  3225. invalidParams := request.ErrInvalidParams{Context: "GetComplianceDetailsByConfigRuleInput"}
  3226. if s.ConfigRuleName == nil {
  3227. invalidParams.Add(request.NewErrParamRequired("ConfigRuleName"))
  3228. }
  3229. if s.ConfigRuleName != nil && len(*s.ConfigRuleName) < 1 {
  3230. invalidParams.Add(request.NewErrParamMinLen("ConfigRuleName", 1))
  3231. }
  3232. if invalidParams.Len() > 0 {
  3233. return invalidParams
  3234. }
  3235. return nil
  3236. }
  3237. type GetComplianceDetailsByConfigRuleOutput struct {
  3238. _ struct{} `type:"structure"`
  3239. // Indicates whether the AWS resource complies with the specified AWS Config
  3240. // rule.
  3241. EvaluationResults []*EvaluationResult `type:"list"`
  3242. // The string that you use in a subsequent request to get the next page of results
  3243. // in a paginated response.
  3244. NextToken *string `type:"string"`
  3245. }
  3246. // String returns the string representation
  3247. func (s GetComplianceDetailsByConfigRuleOutput) String() string {
  3248. return awsutil.Prettify(s)
  3249. }
  3250. // GoString returns the string representation
  3251. func (s GetComplianceDetailsByConfigRuleOutput) GoString() string {
  3252. return s.String()
  3253. }
  3254. type GetComplianceDetailsByResourceInput struct {
  3255. _ struct{} `type:"structure"`
  3256. // Filters the results by compliance.
  3257. //
  3258. // The allowed values are COMPLIANT, NON_COMPLIANT, and NOT_APPLICABLE.
  3259. ComplianceTypes []*string `type:"list"`
  3260. // The nextToken string returned on a previous page that you use to get the
  3261. // next page of results in a paginated response.
  3262. NextToken *string `type:"string"`
  3263. // The ID of the AWS resource for which you want compliance information.
  3264. //
  3265. // ResourceId is a required field
  3266. ResourceId *string `min:"1" type:"string" required:"true"`
  3267. // The type of the AWS resource for which you want compliance information.
  3268. //
  3269. // ResourceType is a required field
  3270. ResourceType *string `min:"1" type:"string" required:"true"`
  3271. }
  3272. // String returns the string representation
  3273. func (s GetComplianceDetailsByResourceInput) String() string {
  3274. return awsutil.Prettify(s)
  3275. }
  3276. // GoString returns the string representation
  3277. func (s GetComplianceDetailsByResourceInput) GoString() string {
  3278. return s.String()
  3279. }
  3280. // Validate inspects the fields of the type to determine if they are valid.
  3281. func (s *GetComplianceDetailsByResourceInput) Validate() error {
  3282. invalidParams := request.ErrInvalidParams{Context: "GetComplianceDetailsByResourceInput"}
  3283. if s.ResourceId == nil {
  3284. invalidParams.Add(request.NewErrParamRequired("ResourceId"))
  3285. }
  3286. if s.ResourceId != nil && len(*s.ResourceId) < 1 {
  3287. invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1))
  3288. }
  3289. if s.ResourceType == nil {
  3290. invalidParams.Add(request.NewErrParamRequired("ResourceType"))
  3291. }
  3292. if s.ResourceType != nil && len(*s.ResourceType) < 1 {
  3293. invalidParams.Add(request.NewErrParamMinLen("ResourceType", 1))
  3294. }
  3295. if invalidParams.Len() > 0 {
  3296. return invalidParams
  3297. }
  3298. return nil
  3299. }
  3300. type GetComplianceDetailsByResourceOutput struct {
  3301. _ struct{} `type:"structure"`
  3302. // Indicates whether the specified AWS resource complies each AWS Config rule.
  3303. EvaluationResults []*EvaluationResult `type:"list"`
  3304. // The string that you use in a subsequent request to get the next page of results
  3305. // in a paginated response.
  3306. NextToken *string `type:"string"`
  3307. }
  3308. // String returns the string representation
  3309. func (s GetComplianceDetailsByResourceOutput) String() string {
  3310. return awsutil.Prettify(s)
  3311. }
  3312. // GoString returns the string representation
  3313. func (s GetComplianceDetailsByResourceOutput) GoString() string {
  3314. return s.String()
  3315. }
  3316. type GetComplianceSummaryByConfigRuleInput struct {
  3317. _ struct{} `type:"structure"`
  3318. }
  3319. // String returns the string representation
  3320. func (s GetComplianceSummaryByConfigRuleInput) String() string {
  3321. return awsutil.Prettify(s)
  3322. }
  3323. // GoString returns the string representation
  3324. func (s GetComplianceSummaryByConfigRuleInput) GoString() string {
  3325. return s.String()
  3326. }
  3327. type GetComplianceSummaryByConfigRuleOutput struct {
  3328. _ struct{} `type:"structure"`
  3329. // The number of AWS Config rules that are compliant and the number that are
  3330. // noncompliant, up to a maximum of 25 for each.
  3331. ComplianceSummary *ComplianceSummary `type:"structure"`
  3332. }
  3333. // String returns the string representation
  3334. func (s GetComplianceSummaryByConfigRuleOutput) String() string {
  3335. return awsutil.Prettify(s)
  3336. }
  3337. // GoString returns the string representation
  3338. func (s GetComplianceSummaryByConfigRuleOutput) GoString() string {
  3339. return s.String()
  3340. }
  3341. type GetComplianceSummaryByResourceTypeInput struct {
  3342. _ struct{} `type:"structure"`
  3343. // Specify one or more resource types to get the number of resources that are
  3344. // compliant and the number that are noncompliant for each resource type.
  3345. //
  3346. // For this request, you can specify an AWS resource type such as AWS::EC2::Instance,
  3347. // and you can specify that the resource type is an AWS account by specifying
  3348. // AWS::::Account.
  3349. ResourceTypes []*string `type:"list"`
  3350. }
  3351. // String returns the string representation
  3352. func (s GetComplianceSummaryByResourceTypeInput) String() string {
  3353. return awsutil.Prettify(s)
  3354. }
  3355. // GoString returns the string representation
  3356. func (s GetComplianceSummaryByResourceTypeInput) GoString() string {
  3357. return s.String()
  3358. }
  3359. type GetComplianceSummaryByResourceTypeOutput struct {
  3360. _ struct{} `type:"structure"`
  3361. // The number of resources that are compliant and the number that are noncompliant.
  3362. // If one or more resource types were provided with the request, the numbers
  3363. // are returned for each resource type. The maximum number returned is 100.
  3364. ComplianceSummariesByResourceType []*ComplianceSummaryByResourceType `type:"list"`
  3365. }
  3366. // String returns the string representation
  3367. func (s GetComplianceSummaryByResourceTypeOutput) String() string {
  3368. return awsutil.Prettify(s)
  3369. }
  3370. // GoString returns the string representation
  3371. func (s GetComplianceSummaryByResourceTypeOutput) GoString() string {
  3372. return s.String()
  3373. }
  3374. // The input for the GetResourceConfigHistory action.
  3375. type GetResourceConfigHistoryInput struct {
  3376. _ struct{} `type:"structure"`
  3377. // The chronological order for configuration items listed. By default the results
  3378. // are listed in reverse chronological order.
  3379. ChronologicalOrder *string `locationName:"chronologicalOrder" type:"string" enum:"ChronologicalOrder"`
  3380. // The time stamp that indicates an earlier time. If not specified, the action
  3381. // returns paginated results that contain configuration items that start from
  3382. // when the first configuration item was recorded.
  3383. EarlierTime *time.Time `locationName:"earlierTime" type:"timestamp" timestampFormat:"unix"`
  3384. // The time stamp that indicates a later time. If not specified, current time
  3385. // is taken.
  3386. LaterTime *time.Time `locationName:"laterTime" type:"timestamp" timestampFormat:"unix"`
  3387. // The maximum number of configuration items returned on each page. The default
  3388. // is 10. You cannot specify a limit greater than 100. If you specify 0, AWS
  3389. // Config uses the default.
  3390. Limit *int64 `locationName:"limit" type:"integer"`
  3391. // The nextToken string returned on a previous page that you use to get the
  3392. // next page of results in a paginated response.
  3393. NextToken *string `locationName:"nextToken" type:"string"`
  3394. // The ID of the resource (for example., sg-xxxxxx).
  3395. //
  3396. // ResourceId is a required field
  3397. ResourceId *string `locationName:"resourceId" type:"string" required:"true"`
  3398. // The resource type.
  3399. //
  3400. // ResourceType is a required field
  3401. ResourceType *string `locationName:"resourceType" type:"string" required:"true" enum:"ResourceType"`
  3402. }
  3403. // String returns the string representation
  3404. func (s GetResourceConfigHistoryInput) String() string {
  3405. return awsutil.Prettify(s)
  3406. }
  3407. // GoString returns the string representation
  3408. func (s GetResourceConfigHistoryInput) GoString() string {
  3409. return s.String()
  3410. }
  3411. // Validate inspects the fields of the type to determine if they are valid.
  3412. func (s *GetResourceConfigHistoryInput) Validate() error {
  3413. invalidParams := request.ErrInvalidParams{Context: "GetResourceConfigHistoryInput"}
  3414. if s.ResourceId == nil {
  3415. invalidParams.Add(request.NewErrParamRequired("ResourceId"))
  3416. }
  3417. if s.ResourceType == nil {
  3418. invalidParams.Add(request.NewErrParamRequired("ResourceType"))
  3419. }
  3420. if invalidParams.Len() > 0 {
  3421. return invalidParams
  3422. }
  3423. return nil
  3424. }
  3425. // The output for the GetResourceConfigHistory action.
  3426. type GetResourceConfigHistoryOutput struct {
  3427. _ struct{} `type:"structure"`
  3428. // A list that contains the configuration history of one or more resources.
  3429. ConfigurationItems []*ConfigurationItem `locationName:"configurationItems" type:"list"`
  3430. // The string that you use in a subsequent request to get the next page of results
  3431. // in a paginated response.
  3432. NextToken *string `locationName:"nextToken" type:"string"`
  3433. }
  3434. // String returns the string representation
  3435. func (s GetResourceConfigHistoryOutput) String() string {
  3436. return awsutil.Prettify(s)
  3437. }
  3438. // GoString returns the string representation
  3439. func (s GetResourceConfigHistoryOutput) GoString() string {
  3440. return s.String()
  3441. }
  3442. type ListDiscoveredResourcesInput struct {
  3443. _ struct{} `type:"structure"`
  3444. // Specifies whether AWS Config includes deleted resources in the results. By
  3445. // default, deleted resources are not included.
  3446. IncludeDeletedResources *bool `locationName:"includeDeletedResources" type:"boolean"`
  3447. // The maximum number of resource identifiers returned on each page. The default
  3448. // is 100. You cannot specify a limit greater than 100. If you specify 0, AWS
  3449. // Config uses the default.
  3450. Limit *int64 `locationName:"limit" type:"integer"`
  3451. // The nextToken string returned on a previous page that you use to get the
  3452. // next page of results in a paginated response.
  3453. NextToken *string `locationName:"nextToken" type:"string"`
  3454. // The IDs of only those resources that you want AWS Config to list in the response.
  3455. // If you do not specify this parameter, AWS Config lists all resources of the
  3456. // specified type that it has discovered.
  3457. ResourceIds []*string `locationName:"resourceIds" type:"list"`
  3458. // The custom name of only those resources that you want AWS Config to list
  3459. // in the response. If you do not specify this parameter, AWS Config lists all
  3460. // resources of the specified type that it has discovered.
  3461. ResourceName *string `locationName:"resourceName" type:"string"`
  3462. // The type of resources that you want AWS Config to list in the response.
  3463. //
  3464. // ResourceType is a required field
  3465. ResourceType *string `locationName:"resourceType" type:"string" required:"true" enum:"ResourceType"`
  3466. }
  3467. // String returns the string representation
  3468. func (s ListDiscoveredResourcesInput) String() string {
  3469. return awsutil.Prettify(s)
  3470. }
  3471. // GoString returns the string representation
  3472. func (s ListDiscoveredResourcesInput) GoString() string {
  3473. return s.String()
  3474. }
  3475. // Validate inspects the fields of the type to determine if they are valid.
  3476. func (s *ListDiscoveredResourcesInput) Validate() error {
  3477. invalidParams := request.ErrInvalidParams{Context: "ListDiscoveredResourcesInput"}
  3478. if s.ResourceType == nil {
  3479. invalidParams.Add(request.NewErrParamRequired("ResourceType"))
  3480. }
  3481. if invalidParams.Len() > 0 {
  3482. return invalidParams
  3483. }
  3484. return nil
  3485. }
  3486. type ListDiscoveredResourcesOutput struct {
  3487. _ struct{} `type:"structure"`
  3488. // The string that you use in a subsequent request to get the next page of results
  3489. // in a paginated response.
  3490. NextToken *string `locationName:"nextToken" type:"string"`
  3491. // The details that identify a resource that is discovered by AWS Config, including
  3492. // the resource type, ID, and (if available) the custom resource name.
  3493. ResourceIdentifiers []*ResourceIdentifier `locationName:"resourceIdentifiers" type:"list"`
  3494. }
  3495. // String returns the string representation
  3496. func (s ListDiscoveredResourcesOutput) String() string {
  3497. return awsutil.Prettify(s)
  3498. }
  3499. // GoString returns the string representation
  3500. func (s ListDiscoveredResourcesOutput) GoString() string {
  3501. return s.String()
  3502. }
  3503. type PutConfigRuleInput struct {
  3504. _ struct{} `type:"structure"`
  3505. // An AWS Config rule represents an AWS Lambda function that you create for
  3506. // a custom rule or a predefined function for an AWS managed rule. The function
  3507. // evaluates configuration items to assess whether your AWS resources comply
  3508. // with your desired configurations. This function can run when AWS Config detects
  3509. // a configuration change to an AWS resource and at a periodic frequency that
  3510. // you choose (for example, every 24 hours).
  3511. //
  3512. // You can use the AWS CLI and AWS SDKs if you want to create a rule that triggers
  3513. // evaluations for your resources when AWS Config delivers the configuration
  3514. // snapshot. For more information, see ConfigSnapshotDeliveryProperties.
  3515. //
  3516. // For more information about developing and using AWS Config rules, see Evaluating
  3517. // AWS Resource Configurations with AWS Config (http://docs.aws.amazon.com/config/latest/developerguide/evaluate-config.html)
  3518. // in the AWS Config Developer Guide.
  3519. //
  3520. // ConfigRule is a required field
  3521. ConfigRule *ConfigRule `type:"structure" required:"true"`
  3522. }
  3523. // String returns the string representation
  3524. func (s PutConfigRuleInput) String() string {
  3525. return awsutil.Prettify(s)
  3526. }
  3527. // GoString returns the string representation
  3528. func (s PutConfigRuleInput) GoString() string {
  3529. return s.String()
  3530. }
  3531. // Validate inspects the fields of the type to determine if they are valid.
  3532. func (s *PutConfigRuleInput) Validate() error {
  3533. invalidParams := request.ErrInvalidParams{Context: "PutConfigRuleInput"}
  3534. if s.ConfigRule == nil {
  3535. invalidParams.Add(request.NewErrParamRequired("ConfigRule"))
  3536. }
  3537. if s.ConfigRule != nil {
  3538. if err := s.ConfigRule.Validate(); err != nil {
  3539. invalidParams.AddNested("ConfigRule", err.(request.ErrInvalidParams))
  3540. }
  3541. }
  3542. if invalidParams.Len() > 0 {
  3543. return invalidParams
  3544. }
  3545. return nil
  3546. }
  3547. type PutConfigRuleOutput struct {
  3548. _ struct{} `type:"structure"`
  3549. }
  3550. // String returns the string representation
  3551. func (s PutConfigRuleOutput) String() string {
  3552. return awsutil.Prettify(s)
  3553. }
  3554. // GoString returns the string representation
  3555. func (s PutConfigRuleOutput) GoString() string {
  3556. return s.String()
  3557. }
  3558. // The input for the PutConfigurationRecorder action.
  3559. type PutConfigurationRecorderInput struct {
  3560. _ struct{} `type:"structure"`
  3561. // The configuration recorder object that records each configuration change
  3562. // made to the resources.
  3563. //
  3564. // ConfigurationRecorder is a required field
  3565. ConfigurationRecorder *ConfigurationRecorder `type:"structure" required:"true"`
  3566. }
  3567. // String returns the string representation
  3568. func (s PutConfigurationRecorderInput) String() string {
  3569. return awsutil.Prettify(s)
  3570. }
  3571. // GoString returns the string representation
  3572. func (s PutConfigurationRecorderInput) GoString() string {
  3573. return s.String()
  3574. }
  3575. // Validate inspects the fields of the type to determine if they are valid.
  3576. func (s *PutConfigurationRecorderInput) Validate() error {
  3577. invalidParams := request.ErrInvalidParams{Context: "PutConfigurationRecorderInput"}
  3578. if s.ConfigurationRecorder == nil {
  3579. invalidParams.Add(request.NewErrParamRequired("ConfigurationRecorder"))
  3580. }
  3581. if s.ConfigurationRecorder != nil {
  3582. if err := s.ConfigurationRecorder.Validate(); err != nil {
  3583. invalidParams.AddNested("ConfigurationRecorder", err.(request.ErrInvalidParams))
  3584. }
  3585. }
  3586. if invalidParams.Len() > 0 {
  3587. return invalidParams
  3588. }
  3589. return nil
  3590. }
  3591. type PutConfigurationRecorderOutput struct {
  3592. _ struct{} `type:"structure"`
  3593. }
  3594. // String returns the string representation
  3595. func (s PutConfigurationRecorderOutput) String() string {
  3596. return awsutil.Prettify(s)
  3597. }
  3598. // GoString returns the string representation
  3599. func (s PutConfigurationRecorderOutput) GoString() string {
  3600. return s.String()
  3601. }
  3602. // The input for the PutDeliveryChannel action.
  3603. type PutDeliveryChannelInput struct {
  3604. _ struct{} `type:"structure"`
  3605. // The configuration delivery channel object that delivers the configuration
  3606. // information to an Amazon S3 bucket, and to an Amazon SNS topic.
  3607. //
  3608. // DeliveryChannel is a required field
  3609. DeliveryChannel *DeliveryChannel `type:"structure" required:"true"`
  3610. }
  3611. // String returns the string representation
  3612. func (s PutDeliveryChannelInput) String() string {
  3613. return awsutil.Prettify(s)
  3614. }
  3615. // GoString returns the string representation
  3616. func (s PutDeliveryChannelInput) GoString() string {
  3617. return s.String()
  3618. }
  3619. // Validate inspects the fields of the type to determine if they are valid.
  3620. func (s *PutDeliveryChannelInput) Validate() error {
  3621. invalidParams := request.ErrInvalidParams{Context: "PutDeliveryChannelInput"}
  3622. if s.DeliveryChannel == nil {
  3623. invalidParams.Add(request.NewErrParamRequired("DeliveryChannel"))
  3624. }
  3625. if s.DeliveryChannel != nil {
  3626. if err := s.DeliveryChannel.Validate(); err != nil {
  3627. invalidParams.AddNested("DeliveryChannel", err.(request.ErrInvalidParams))
  3628. }
  3629. }
  3630. if invalidParams.Len() > 0 {
  3631. return invalidParams
  3632. }
  3633. return nil
  3634. }
  3635. type PutDeliveryChannelOutput struct {
  3636. _ struct{} `type:"structure"`
  3637. }
  3638. // String returns the string representation
  3639. func (s PutDeliveryChannelOutput) String() string {
  3640. return awsutil.Prettify(s)
  3641. }
  3642. // GoString returns the string representation
  3643. func (s PutDeliveryChannelOutput) GoString() string {
  3644. return s.String()
  3645. }
  3646. type PutEvaluationsInput struct {
  3647. _ struct{} `type:"structure"`
  3648. // The assessments that the AWS Lambda function performs. Each evaluation identifies
  3649. // an AWS resource and indicates whether it complies with the AWS Config rule
  3650. // that invokes the AWS Lambda function.
  3651. Evaluations []*Evaluation `type:"list"`
  3652. // An encrypted token that associates an evaluation with an AWS Config rule.
  3653. // Identifies the rule and the event that triggered the evaluation
  3654. //
  3655. // ResultToken is a required field
  3656. ResultToken *string `type:"string" required:"true"`
  3657. }
  3658. // String returns the string representation
  3659. func (s PutEvaluationsInput) String() string {
  3660. return awsutil.Prettify(s)
  3661. }
  3662. // GoString returns the string representation
  3663. func (s PutEvaluationsInput) GoString() string {
  3664. return s.String()
  3665. }
  3666. // Validate inspects the fields of the type to determine if they are valid.
  3667. func (s *PutEvaluationsInput) Validate() error {
  3668. invalidParams := request.ErrInvalidParams{Context: "PutEvaluationsInput"}
  3669. if s.ResultToken == nil {
  3670. invalidParams.Add(request.NewErrParamRequired("ResultToken"))
  3671. }
  3672. if s.Evaluations != nil {
  3673. for i, v := range s.Evaluations {
  3674. if v == nil {
  3675. continue
  3676. }
  3677. if err := v.Validate(); err != nil {
  3678. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Evaluations", i), err.(request.ErrInvalidParams))
  3679. }
  3680. }
  3681. }
  3682. if invalidParams.Len() > 0 {
  3683. return invalidParams
  3684. }
  3685. return nil
  3686. }
  3687. type PutEvaluationsOutput struct {
  3688. _ struct{} `type:"structure"`
  3689. // Requests that failed because of a client or server error.
  3690. FailedEvaluations []*Evaluation `type:"list"`
  3691. }
  3692. // String returns the string representation
  3693. func (s PutEvaluationsOutput) String() string {
  3694. return awsutil.Prettify(s)
  3695. }
  3696. // GoString returns the string representation
  3697. func (s PutEvaluationsOutput) GoString() string {
  3698. return s.String()
  3699. }
  3700. // Specifies the types of AWS resource for which AWS Config records configuration
  3701. // changes.
  3702. //
  3703. // In the recording group, you specify whether all supported types or specific
  3704. // types of resources are recorded.
  3705. //
  3706. // By default, AWS Config records configuration changes for all supported types
  3707. // of regional resources that AWS Config discovers in the region in which it
  3708. // is running. Regional resources are tied to a region and can be used only
  3709. // in that region. Examples of regional resources are EC2 instances and EBS
  3710. // volumes.
  3711. //
  3712. // You can also have AWS Config record configuration changes for supported types
  3713. // of global resources (for example, IAM resources). Global resources are not
  3714. // tied to an individual region and can be used in all regions.
  3715. //
  3716. // The configuration details for any global resource are the same in all regions.
  3717. // If you customize AWS Config in multiple regions to record global resources,
  3718. // it will create multiple configuration items each time a global resource changes:
  3719. // one configuration item for each region. These configuration items will contain
  3720. // identical data. To prevent duplicate configuration items, you should consider
  3721. // customizing AWS Config in only one region to record global resources, unless
  3722. // you want the configuration items to be available in multiple regions.
  3723. //
  3724. // If you don't want AWS Config to record all resources, you can specify which
  3725. // types of resources it will record with the resourceTypes parameter.
  3726. //
  3727. // For a list of supported resource types, see Supported resource types (http://docs.aws.amazon.com/config/latest/developerguide/resource-config-reference.html#supported-resources).
  3728. //
  3729. // For more information, see Selecting Which Resources AWS Config Records (http://docs.aws.amazon.com/config/latest/developerguide/select-resources.html).
  3730. type RecordingGroup struct {
  3731. _ struct{} `type:"structure"`
  3732. // Specifies whether AWS Config records configuration changes for every supported
  3733. // type of regional resource.
  3734. //
  3735. // If you set this option to true, when AWS Config adds support for a new type
  3736. // of regional resource, it automatically starts recording resources of that
  3737. // type.
  3738. //
  3739. // If you set this option to true, you cannot enumerate a list of resourceTypes.
  3740. AllSupported *bool `locationName:"allSupported" type:"boolean"`
  3741. // Specifies whether AWS Config includes all supported types of global resources
  3742. // (for example, IAM resources) with the resources that it records.
  3743. //
  3744. // Before you can set this option to true, you must set the allSupported option
  3745. // to true.
  3746. //
  3747. // If you set this option to true, when AWS Config adds support for a new type
  3748. // of global resource, it automatically starts recording resources of that type.
  3749. //
  3750. // The configuration details for any global resource are the same in all regions.
  3751. // To prevent duplicate configuration items, you should consider customizing
  3752. // AWS Config in only one region to record global resources.
  3753. IncludeGlobalResourceTypes *bool `locationName:"includeGlobalResourceTypes" type:"boolean"`
  3754. // A comma-separated list that specifies the types of AWS resources for which
  3755. // AWS Config records configuration changes (for example, AWS::EC2::Instance
  3756. // or AWS::CloudTrail::Trail).
  3757. //
  3758. // Before you can set this option to true, you must set the allSupported option
  3759. // to false.
  3760. //
  3761. // If you set this option to true, when AWS Config adds support for a new type
  3762. // of resource, it will not record resources of that type unless you manually
  3763. // add that type to your recording group.
  3764. //
  3765. // For a list of valid resourceTypes values, see the resourceType Value column
  3766. // in Supported AWS Resource Types (http://docs.aws.amazon.com/config/latest/developerguide/resource-config-reference.html#supported-resources).
  3767. ResourceTypes []*string `locationName:"resourceTypes" type:"list"`
  3768. }
  3769. // String returns the string representation
  3770. func (s RecordingGroup) String() string {
  3771. return awsutil.Prettify(s)
  3772. }
  3773. // GoString returns the string representation
  3774. func (s RecordingGroup) GoString() string {
  3775. return s.String()
  3776. }
  3777. // The relationship of the related resource to the main resource.
  3778. type Relationship struct {
  3779. _ struct{} `type:"structure"`
  3780. // The type of relationship with the related resource.
  3781. RelationshipName *string `locationName:"relationshipName" type:"string"`
  3782. // The ID of the related resource (for example, sg-xxxxxx).
  3783. ResourceId *string `locationName:"resourceId" type:"string"`
  3784. // The custom name of the related resource, if available.
  3785. ResourceName *string `locationName:"resourceName" type:"string"`
  3786. // The resource type of the related resource.
  3787. ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
  3788. }
  3789. // String returns the string representation
  3790. func (s Relationship) String() string {
  3791. return awsutil.Prettify(s)
  3792. }
  3793. // GoString returns the string representation
  3794. func (s Relationship) GoString() string {
  3795. return s.String()
  3796. }
  3797. // The details that identify a resource that is discovered by AWS Config, including
  3798. // the resource type, ID, and (if available) the custom resource name.
  3799. type ResourceIdentifier struct {
  3800. _ struct{} `type:"structure"`
  3801. // The time that the resource was deleted.
  3802. ResourceDeletionTime *time.Time `locationName:"resourceDeletionTime" type:"timestamp" timestampFormat:"unix"`
  3803. // The ID of the resource (for example., sg-xxxxxx).
  3804. ResourceId *string `locationName:"resourceId" type:"string"`
  3805. // The custom name of the resource (if available).
  3806. ResourceName *string `locationName:"resourceName" type:"string"`
  3807. // The type of resource.
  3808. ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
  3809. }
  3810. // String returns the string representation
  3811. func (s ResourceIdentifier) String() string {
  3812. return awsutil.Prettify(s)
  3813. }
  3814. // GoString returns the string representation
  3815. func (s ResourceIdentifier) GoString() string {
  3816. return s.String()
  3817. }
  3818. // Defines which resources trigger an evaluation for an AWS Config rule. The
  3819. // scope can include one or more resource types, a combination of a tag key
  3820. // and value, or a combination of one resource type and one resource ID. Specify
  3821. // a scope to constrain which resources trigger an evaluation for a rule. Otherwise,
  3822. // evaluations for the rule are triggered when any resource in your recording
  3823. // group changes in configuration.
  3824. type Scope struct {
  3825. _ struct{} `type:"structure"`
  3826. // The IDs of the only AWS resource that you want to trigger an evaluation for
  3827. // the rule. If you specify a resource ID, you must specify one resource type
  3828. // for ComplianceResourceTypes.
  3829. ComplianceResourceId *string `min:"1" type:"string"`
  3830. // The resource types of only those AWS resources that you want to trigger an
  3831. // evaluation for the rule. You can only specify one type if you also specify
  3832. // a resource ID for ComplianceResourceId.
  3833. ComplianceResourceTypes []*string `type:"list"`
  3834. // The tag key that is applied to only those AWS resources that you want you
  3835. // want to trigger an evaluation for the rule.
  3836. TagKey *string `min:"1" type:"string"`
  3837. // The tag value applied to only those AWS resources that you want to trigger
  3838. // an evaluation for the rule. If you specify a value for TagValue, you must
  3839. // also specify a value for TagKey.
  3840. TagValue *string `min:"1" type:"string"`
  3841. }
  3842. // String returns the string representation
  3843. func (s Scope) String() string {
  3844. return awsutil.Prettify(s)
  3845. }
  3846. // GoString returns the string representation
  3847. func (s Scope) GoString() string {
  3848. return s.String()
  3849. }
  3850. // Validate inspects the fields of the type to determine if they are valid.
  3851. func (s *Scope) Validate() error {
  3852. invalidParams := request.ErrInvalidParams{Context: "Scope"}
  3853. if s.ComplianceResourceId != nil && len(*s.ComplianceResourceId) < 1 {
  3854. invalidParams.Add(request.NewErrParamMinLen("ComplianceResourceId", 1))
  3855. }
  3856. if s.TagKey != nil && len(*s.TagKey) < 1 {
  3857. invalidParams.Add(request.NewErrParamMinLen("TagKey", 1))
  3858. }
  3859. if s.TagValue != nil && len(*s.TagValue) < 1 {
  3860. invalidParams.Add(request.NewErrParamMinLen("TagValue", 1))
  3861. }
  3862. if invalidParams.Len() > 0 {
  3863. return invalidParams
  3864. }
  3865. return nil
  3866. }
  3867. // Provides the AWS Config rule owner (AWS or customer), the rule identifier,
  3868. // and the events that trigger the evaluation of your AWS resources.
  3869. type Source struct {
  3870. _ struct{} `type:"structure"`
  3871. // Indicates whether AWS or the customer owns and manages the AWS Config rule.
  3872. Owner *string `type:"string" enum:"Owner"`
  3873. // Provides the source and type of the event that causes AWS Config to evaluate
  3874. // your AWS resources.
  3875. SourceDetails []*SourceDetail `type:"list"`
  3876. // For AWS Config managed rules, a predefined identifier from a list. For example,
  3877. // IAM_PASSWORD_POLICY is a managed rule. To reference a managed rule, see Using
  3878. // AWS Managed Config Rules (http://docs.aws.amazon.com/config/latest/developerguide/evaluate-config_use-managed-rules.html).
  3879. //
  3880. // For custom rules, the identifier is the Amazon Resource Name (ARN) of the
  3881. // rule's AWS Lambda function, such as arn:aws:lambda:us-east-1:123456789012:function:custom_rule_name.
  3882. SourceIdentifier *string `min:"1" type:"string"`
  3883. }
  3884. // String returns the string representation
  3885. func (s Source) String() string {
  3886. return awsutil.Prettify(s)
  3887. }
  3888. // GoString returns the string representation
  3889. func (s Source) GoString() string {
  3890. return s.String()
  3891. }
  3892. // Validate inspects the fields of the type to determine if they are valid.
  3893. func (s *Source) Validate() error {
  3894. invalidParams := request.ErrInvalidParams{Context: "Source"}
  3895. if s.SourceIdentifier != nil && len(*s.SourceIdentifier) < 1 {
  3896. invalidParams.Add(request.NewErrParamMinLen("SourceIdentifier", 1))
  3897. }
  3898. if invalidParams.Len() > 0 {
  3899. return invalidParams
  3900. }
  3901. return nil
  3902. }
  3903. // Provides the source and the message types that trigger AWS Config to evaluate
  3904. // your AWS resources against a rule. It also provides the frequency with which
  3905. // you want AWS Config to run evaluations for the rule if the trigger type is
  3906. // periodic. You can specify the parameter values for SourceDetail only for
  3907. // custom rules.
  3908. type SourceDetail struct {
  3909. _ struct{} `type:"structure"`
  3910. // The source of the event, such as an AWS service, that triggers AWS Config
  3911. // to evaluate your AWS resources.
  3912. EventSource *string `type:"string" enum:"EventSource"`
  3913. // The frequency that you want AWS Config to run evaluations for a rule that
  3914. // is triggered periodically. If you specify a value for MaximumExecutionFrequency,
  3915. // then MessageType must use the ScheduledNotification value.
  3916. MaximumExecutionFrequency *string `type:"string" enum:"MaximumExecutionFrequency"`
  3917. // The type of notification that triggers AWS Config to run an evaluation. You
  3918. // can specify the following notification types:
  3919. //
  3920. // ConfigurationItemChangeNotification - Triggers an evaluation when AWS Config
  3921. // delivers a configuration item change notification.
  3922. //
  3923. // ScheduledNotification - Triggers a periodic evaluation at the frequency specified
  3924. // for MaximumExecutionFrequency.
  3925. //
  3926. // ConfigurationSnapshotDeliveryCompleted - Triggers a periodic evaluation when
  3927. // AWS Config delivers a configuration snapshot.
  3928. MessageType *string `type:"string" enum:"MessageType"`
  3929. }
  3930. // String returns the string representation
  3931. func (s SourceDetail) String() string {
  3932. return awsutil.Prettify(s)
  3933. }
  3934. // GoString returns the string representation
  3935. func (s SourceDetail) GoString() string {
  3936. return s.String()
  3937. }
  3938. type StartConfigRulesEvaluationInput struct {
  3939. _ struct{} `type:"structure"`
  3940. // The list of names of Config rules that you want to run evaluations for.
  3941. ConfigRuleNames []*string `min:"1" type:"list"`
  3942. }
  3943. // String returns the string representation
  3944. func (s StartConfigRulesEvaluationInput) String() string {
  3945. return awsutil.Prettify(s)
  3946. }
  3947. // GoString returns the string representation
  3948. func (s StartConfigRulesEvaluationInput) GoString() string {
  3949. return s.String()
  3950. }
  3951. // Validate inspects the fields of the type to determine if they are valid.
  3952. func (s *StartConfigRulesEvaluationInput) Validate() error {
  3953. invalidParams := request.ErrInvalidParams{Context: "StartConfigRulesEvaluationInput"}
  3954. if s.ConfigRuleNames != nil && len(s.ConfigRuleNames) < 1 {
  3955. invalidParams.Add(request.NewErrParamMinLen("ConfigRuleNames", 1))
  3956. }
  3957. if invalidParams.Len() > 0 {
  3958. return invalidParams
  3959. }
  3960. return nil
  3961. }
  3962. // The output when you start the evaluation for the specified Config rule.
  3963. type StartConfigRulesEvaluationOutput struct {
  3964. _ struct{} `type:"structure"`
  3965. }
  3966. // String returns the string representation
  3967. func (s StartConfigRulesEvaluationOutput) String() string {
  3968. return awsutil.Prettify(s)
  3969. }
  3970. // GoString returns the string representation
  3971. func (s StartConfigRulesEvaluationOutput) GoString() string {
  3972. return s.String()
  3973. }
  3974. // The input for the StartConfigurationRecorder action.
  3975. type StartConfigurationRecorderInput struct {
  3976. _ struct{} `type:"structure"`
  3977. // The name of the recorder object that records each configuration change made
  3978. // to the resources.
  3979. //
  3980. // ConfigurationRecorderName is a required field
  3981. ConfigurationRecorderName *string `min:"1" type:"string" required:"true"`
  3982. }
  3983. // String returns the string representation
  3984. func (s StartConfigurationRecorderInput) String() string {
  3985. return awsutil.Prettify(s)
  3986. }
  3987. // GoString returns the string representation
  3988. func (s StartConfigurationRecorderInput) GoString() string {
  3989. return s.String()
  3990. }
  3991. // Validate inspects the fields of the type to determine if they are valid.
  3992. func (s *StartConfigurationRecorderInput) Validate() error {
  3993. invalidParams := request.ErrInvalidParams{Context: "StartConfigurationRecorderInput"}
  3994. if s.ConfigurationRecorderName == nil {
  3995. invalidParams.Add(request.NewErrParamRequired("ConfigurationRecorderName"))
  3996. }
  3997. if s.ConfigurationRecorderName != nil && len(*s.ConfigurationRecorderName) < 1 {
  3998. invalidParams.Add(request.NewErrParamMinLen("ConfigurationRecorderName", 1))
  3999. }
  4000. if invalidParams.Len() > 0 {
  4001. return invalidParams
  4002. }
  4003. return nil
  4004. }
  4005. type StartConfigurationRecorderOutput struct {
  4006. _ struct{} `type:"structure"`
  4007. }
  4008. // String returns the string representation
  4009. func (s StartConfigurationRecorderOutput) String() string {
  4010. return awsutil.Prettify(s)
  4011. }
  4012. // GoString returns the string representation
  4013. func (s StartConfigurationRecorderOutput) GoString() string {
  4014. return s.String()
  4015. }
  4016. // The input for the StopConfigurationRecorder action.
  4017. type StopConfigurationRecorderInput struct {
  4018. _ struct{} `type:"structure"`
  4019. // The name of the recorder object that records each configuration change made
  4020. // to the resources.
  4021. //
  4022. // ConfigurationRecorderName is a required field
  4023. ConfigurationRecorderName *string `min:"1" type:"string" required:"true"`
  4024. }
  4025. // String returns the string representation
  4026. func (s StopConfigurationRecorderInput) String() string {
  4027. return awsutil.Prettify(s)
  4028. }
  4029. // GoString returns the string representation
  4030. func (s StopConfigurationRecorderInput) GoString() string {
  4031. return s.String()
  4032. }
  4033. // Validate inspects the fields of the type to determine if they are valid.
  4034. func (s *StopConfigurationRecorderInput) Validate() error {
  4035. invalidParams := request.ErrInvalidParams{Context: "StopConfigurationRecorderInput"}
  4036. if s.ConfigurationRecorderName == nil {
  4037. invalidParams.Add(request.NewErrParamRequired("ConfigurationRecorderName"))
  4038. }
  4039. if s.ConfigurationRecorderName != nil && len(*s.ConfigurationRecorderName) < 1 {
  4040. invalidParams.Add(request.NewErrParamMinLen("ConfigurationRecorderName", 1))
  4041. }
  4042. if invalidParams.Len() > 0 {
  4043. return invalidParams
  4044. }
  4045. return nil
  4046. }
  4047. type StopConfigurationRecorderOutput struct {
  4048. _ struct{} `type:"structure"`
  4049. }
  4050. // String returns the string representation
  4051. func (s StopConfigurationRecorderOutput) String() string {
  4052. return awsutil.Prettify(s)
  4053. }
  4054. // GoString returns the string representation
  4055. func (s StopConfigurationRecorderOutput) GoString() string {
  4056. return s.String()
  4057. }
  4058. const (
  4059. // ChronologicalOrderReverse is a ChronologicalOrder enum value
  4060. ChronologicalOrderReverse = "Reverse"
  4061. // ChronologicalOrderForward is a ChronologicalOrder enum value
  4062. ChronologicalOrderForward = "Forward"
  4063. )
  4064. const (
  4065. // ComplianceTypeCompliant is a ComplianceType enum value
  4066. ComplianceTypeCompliant = "COMPLIANT"
  4067. // ComplianceTypeNonCompliant is a ComplianceType enum value
  4068. ComplianceTypeNonCompliant = "NON_COMPLIANT"
  4069. // ComplianceTypeNotApplicable is a ComplianceType enum value
  4070. ComplianceTypeNotApplicable = "NOT_APPLICABLE"
  4071. // ComplianceTypeInsufficientData is a ComplianceType enum value
  4072. ComplianceTypeInsufficientData = "INSUFFICIENT_DATA"
  4073. )
  4074. const (
  4075. // ConfigRuleStateActive is a ConfigRuleState enum value
  4076. ConfigRuleStateActive = "ACTIVE"
  4077. // ConfigRuleStateDeleting is a ConfigRuleState enum value
  4078. ConfigRuleStateDeleting = "DELETING"
  4079. // ConfigRuleStateDeletingResults is a ConfigRuleState enum value
  4080. ConfigRuleStateDeletingResults = "DELETING_RESULTS"
  4081. // ConfigRuleStateEvaluating is a ConfigRuleState enum value
  4082. ConfigRuleStateEvaluating = "EVALUATING"
  4083. )
  4084. const (
  4085. // ConfigurationItemStatusOk is a ConfigurationItemStatus enum value
  4086. ConfigurationItemStatusOk = "Ok"
  4087. // ConfigurationItemStatusFailed is a ConfigurationItemStatus enum value
  4088. ConfigurationItemStatusFailed = "Failed"
  4089. // ConfigurationItemStatusDiscovered is a ConfigurationItemStatus enum value
  4090. ConfigurationItemStatusDiscovered = "Discovered"
  4091. // ConfigurationItemStatusDeleted is a ConfigurationItemStatus enum value
  4092. ConfigurationItemStatusDeleted = "Deleted"
  4093. )
  4094. const (
  4095. // DeliveryStatusSuccess is a DeliveryStatus enum value
  4096. DeliveryStatusSuccess = "Success"
  4097. // DeliveryStatusFailure is a DeliveryStatus enum value
  4098. DeliveryStatusFailure = "Failure"
  4099. // DeliveryStatusNotApplicable is a DeliveryStatus enum value
  4100. DeliveryStatusNotApplicable = "Not_Applicable"
  4101. )
  4102. const (
  4103. // EventSourceAwsConfig is a EventSource enum value
  4104. EventSourceAwsConfig = "aws.config"
  4105. )
  4106. const (
  4107. // MaximumExecutionFrequencyOneHour is a MaximumExecutionFrequency enum value
  4108. MaximumExecutionFrequencyOneHour = "One_Hour"
  4109. // MaximumExecutionFrequencyThreeHours is a MaximumExecutionFrequency enum value
  4110. MaximumExecutionFrequencyThreeHours = "Three_Hours"
  4111. // MaximumExecutionFrequencySixHours is a MaximumExecutionFrequency enum value
  4112. MaximumExecutionFrequencySixHours = "Six_Hours"
  4113. // MaximumExecutionFrequencyTwelveHours is a MaximumExecutionFrequency enum value
  4114. MaximumExecutionFrequencyTwelveHours = "Twelve_Hours"
  4115. // MaximumExecutionFrequencyTwentyFourHours is a MaximumExecutionFrequency enum value
  4116. MaximumExecutionFrequencyTwentyFourHours = "TwentyFour_Hours"
  4117. )
  4118. const (
  4119. // MessageTypeConfigurationItemChangeNotification is a MessageType enum value
  4120. MessageTypeConfigurationItemChangeNotification = "ConfigurationItemChangeNotification"
  4121. // MessageTypeConfigurationSnapshotDeliveryCompleted is a MessageType enum value
  4122. MessageTypeConfigurationSnapshotDeliveryCompleted = "ConfigurationSnapshotDeliveryCompleted"
  4123. // MessageTypeScheduledNotification is a MessageType enum value
  4124. MessageTypeScheduledNotification = "ScheduledNotification"
  4125. )
  4126. const (
  4127. // OwnerCustomLambda is a Owner enum value
  4128. OwnerCustomLambda = "CUSTOM_LAMBDA"
  4129. // OwnerAws is a Owner enum value
  4130. OwnerAws = "AWS"
  4131. )
  4132. const (
  4133. // RecorderStatusPending is a RecorderStatus enum value
  4134. RecorderStatusPending = "Pending"
  4135. // RecorderStatusSuccess is a RecorderStatus enum value
  4136. RecorderStatusSuccess = "Success"
  4137. // RecorderStatusFailure is a RecorderStatus enum value
  4138. RecorderStatusFailure = "Failure"
  4139. )
  4140. const (
  4141. // ResourceTypeAwsEc2CustomerGateway is a ResourceType enum value
  4142. ResourceTypeAwsEc2CustomerGateway = "AWS::EC2::CustomerGateway"
  4143. // ResourceTypeAwsEc2Eip is a ResourceType enum value
  4144. ResourceTypeAwsEc2Eip = "AWS::EC2::EIP"
  4145. // ResourceTypeAwsEc2Host is a ResourceType enum value
  4146. ResourceTypeAwsEc2Host = "AWS::EC2::Host"
  4147. // ResourceTypeAwsEc2Instance is a ResourceType enum value
  4148. ResourceTypeAwsEc2Instance = "AWS::EC2::Instance"
  4149. // ResourceTypeAwsEc2InternetGateway is a ResourceType enum value
  4150. ResourceTypeAwsEc2InternetGateway = "AWS::EC2::InternetGateway"
  4151. // ResourceTypeAwsEc2NetworkAcl is a ResourceType enum value
  4152. ResourceTypeAwsEc2NetworkAcl = "AWS::EC2::NetworkAcl"
  4153. // ResourceTypeAwsEc2NetworkInterface is a ResourceType enum value
  4154. ResourceTypeAwsEc2NetworkInterface = "AWS::EC2::NetworkInterface"
  4155. // ResourceTypeAwsEc2RouteTable is a ResourceType enum value
  4156. ResourceTypeAwsEc2RouteTable = "AWS::EC2::RouteTable"
  4157. // ResourceTypeAwsEc2SecurityGroup is a ResourceType enum value
  4158. ResourceTypeAwsEc2SecurityGroup = "AWS::EC2::SecurityGroup"
  4159. // ResourceTypeAwsEc2Subnet is a ResourceType enum value
  4160. ResourceTypeAwsEc2Subnet = "AWS::EC2::Subnet"
  4161. // ResourceTypeAwsCloudTrailTrail is a ResourceType enum value
  4162. ResourceTypeAwsCloudTrailTrail = "AWS::CloudTrail::Trail"
  4163. // ResourceTypeAwsEc2Volume is a ResourceType enum value
  4164. ResourceTypeAwsEc2Volume = "AWS::EC2::Volume"
  4165. // ResourceTypeAwsEc2Vpc is a ResourceType enum value
  4166. ResourceTypeAwsEc2Vpc = "AWS::EC2::VPC"
  4167. // ResourceTypeAwsEc2Vpnconnection is a ResourceType enum value
  4168. ResourceTypeAwsEc2Vpnconnection = "AWS::EC2::VPNConnection"
  4169. // ResourceTypeAwsEc2Vpngateway is a ResourceType enum value
  4170. ResourceTypeAwsEc2Vpngateway = "AWS::EC2::VPNGateway"
  4171. // ResourceTypeAwsIamGroup is a ResourceType enum value
  4172. ResourceTypeAwsIamGroup = "AWS::IAM::Group"
  4173. // ResourceTypeAwsIamPolicy is a ResourceType enum value
  4174. ResourceTypeAwsIamPolicy = "AWS::IAM::Policy"
  4175. // ResourceTypeAwsIamRole is a ResourceType enum value
  4176. ResourceTypeAwsIamRole = "AWS::IAM::Role"
  4177. // ResourceTypeAwsIamUser is a ResourceType enum value
  4178. ResourceTypeAwsIamUser = "AWS::IAM::User"
  4179. // ResourceTypeAwsAcmCertificate is a ResourceType enum value
  4180. ResourceTypeAwsAcmCertificate = "AWS::ACM::Certificate"
  4181. // ResourceTypeAwsRdsDbinstance is a ResourceType enum value
  4182. ResourceTypeAwsRdsDbinstance = "AWS::RDS::DBInstance"
  4183. // ResourceTypeAwsRdsDbsubnetGroup is a ResourceType enum value
  4184. ResourceTypeAwsRdsDbsubnetGroup = "AWS::RDS::DBSubnetGroup"
  4185. // ResourceTypeAwsRdsDbsecurityGroup is a ResourceType enum value
  4186. ResourceTypeAwsRdsDbsecurityGroup = "AWS::RDS::DBSecurityGroup"
  4187. // ResourceTypeAwsRdsDbsnapshot is a ResourceType enum value
  4188. ResourceTypeAwsRdsDbsnapshot = "AWS::RDS::DBSnapshot"
  4189. // ResourceTypeAwsRdsEventSubscription is a ResourceType enum value
  4190. ResourceTypeAwsRdsEventSubscription = "AWS::RDS::EventSubscription"
  4191. // ResourceTypeAwsElasticLoadBalancingV2LoadBalancer is a ResourceType enum value
  4192. ResourceTypeAwsElasticLoadBalancingV2LoadBalancer = "AWS::ElasticLoadBalancingV2::LoadBalancer"
  4193. // ResourceTypeAwsS3Bucket is a ResourceType enum value
  4194. ResourceTypeAwsS3Bucket = "AWS::S3::Bucket"
  4195. )