api.go 252 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805
  1. // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
  2. package securityhub
  3. import (
  4. "fmt"
  5. "time"
  6. "github.com/aws/aws-sdk-go/aws"
  7. "github.com/aws/aws-sdk-go/aws/awsutil"
  8. "github.com/aws/aws-sdk-go/aws/request"
  9. "github.com/aws/aws-sdk-go/private/protocol"
  10. "github.com/aws/aws-sdk-go/private/protocol/restjson"
  11. )
  12. const opAcceptInvitation = "AcceptInvitation"
  13. // AcceptInvitationRequest generates a "aws/request.Request" representing the
  14. // client's request for the AcceptInvitation operation. The "output" return
  15. // value will be populated with the request's response once the request completes
  16. // successfully.
  17. //
  18. // Use "Send" method on the returned Request to send the API call to the service.
  19. // the "output" return value is not valid until after Send returns without error.
  20. //
  21. // See AcceptInvitation for more information on using the AcceptInvitation
  22. // API call, and error handling.
  23. //
  24. // This method is useful when you want to inject custom logic or configuration
  25. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  26. //
  27. //
  28. // // Example sending a request using the AcceptInvitationRequest method.
  29. // req, resp := client.AcceptInvitationRequest(params)
  30. //
  31. // err := req.Send()
  32. // if err == nil { // resp is now filled
  33. // fmt.Println(resp)
  34. // }
  35. //
  36. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/AcceptInvitation
  37. func (c *SecurityHub) AcceptInvitationRequest(input *AcceptInvitationInput) (req *request.Request, output *AcceptInvitationOutput) {
  38. op := &request.Operation{
  39. Name: opAcceptInvitation,
  40. HTTPMethod: "POST",
  41. HTTPPath: "/master",
  42. }
  43. if input == nil {
  44. input = &AcceptInvitationInput{}
  45. }
  46. output = &AcceptInvitationOutput{}
  47. req = c.newRequest(op, input, output)
  48. req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  49. return
  50. }
  51. // AcceptInvitation API operation for AWS SecurityHub.
  52. //
  53. // Accepts the invitation to be monitored by a master SecurityHub account.
  54. //
  55. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  56. // with awserr.Error's Code and Message methods to get detailed information about
  57. // the error.
  58. //
  59. // See the AWS API reference guide for AWS SecurityHub's
  60. // API operation AcceptInvitation for usage and error information.
  61. //
  62. // Returned Error Codes:
  63. // * ErrCodeInternalException "InternalException"
  64. // Internal server error.
  65. //
  66. // * ErrCodeInvalidInputException "InvalidInputException"
  67. // The request was rejected because an invalid or out-of-range value was supplied
  68. // for an input parameter.
  69. //
  70. // * ErrCodeLimitExceededException "LimitExceededException"
  71. // The request was rejected because it attempted to create resources beyond
  72. // the current AWS account limits. The error code describes the limit exceeded.
  73. //
  74. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  75. // The request was rejected because the specified resource cannot be found.
  76. //
  77. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/AcceptInvitation
  78. func (c *SecurityHub) AcceptInvitation(input *AcceptInvitationInput) (*AcceptInvitationOutput, error) {
  79. req, out := c.AcceptInvitationRequest(input)
  80. return out, req.Send()
  81. }
  82. // AcceptInvitationWithContext is the same as AcceptInvitation with the addition of
  83. // the ability to pass a context and additional request options.
  84. //
  85. // See AcceptInvitation for details on how to use this API operation.
  86. //
  87. // The context must be non-nil and will be used for request cancellation. If
  88. // the context is nil a panic will occur. In the future the SDK may create
  89. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  90. // for more information on using Contexts.
  91. func (c *SecurityHub) AcceptInvitationWithContext(ctx aws.Context, input *AcceptInvitationInput, opts ...request.Option) (*AcceptInvitationOutput, error) {
  92. req, out := c.AcceptInvitationRequest(input)
  93. req.SetContext(ctx)
  94. req.ApplyOptions(opts...)
  95. return out, req.Send()
  96. }
  97. const opBatchDisableStandards = "BatchDisableStandards"
  98. // BatchDisableStandardsRequest generates a "aws/request.Request" representing the
  99. // client's request for the BatchDisableStandards operation. The "output" return
  100. // value will be populated with the request's response once the request completes
  101. // successfully.
  102. //
  103. // Use "Send" method on the returned Request to send the API call to the service.
  104. // the "output" return value is not valid until after Send returns without error.
  105. //
  106. // See BatchDisableStandards for more information on using the BatchDisableStandards
  107. // API call, and error handling.
  108. //
  109. // This method is useful when you want to inject custom logic or configuration
  110. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  111. //
  112. //
  113. // // Example sending a request using the BatchDisableStandardsRequest method.
  114. // req, resp := client.BatchDisableStandardsRequest(params)
  115. //
  116. // err := req.Send()
  117. // if err == nil { // resp is now filled
  118. // fmt.Println(resp)
  119. // }
  120. //
  121. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/BatchDisableStandards
  122. func (c *SecurityHub) BatchDisableStandardsRequest(input *BatchDisableStandardsInput) (req *request.Request, output *BatchDisableStandardsOutput) {
  123. op := &request.Operation{
  124. Name: opBatchDisableStandards,
  125. HTTPMethod: "POST",
  126. HTTPPath: "/standards/deregister",
  127. }
  128. if input == nil {
  129. input = &BatchDisableStandardsInput{}
  130. }
  131. output = &BatchDisableStandardsOutput{}
  132. req = c.newRequest(op, input, output)
  133. return
  134. }
  135. // BatchDisableStandards API operation for AWS SecurityHub.
  136. //
  137. // Disables the standards specified by the standards subscription ARNs. In the
  138. // context of Security Hub, supported standards (for example, CIS AWS Foundations)
  139. // are automated and continuous checks that help determine your compliance status
  140. // against security industry (including AWS) best practices.
  141. //
  142. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  143. // with awserr.Error's Code and Message methods to get detailed information about
  144. // the error.
  145. //
  146. // See the AWS API reference guide for AWS SecurityHub's
  147. // API operation BatchDisableStandards for usage and error information.
  148. //
  149. // Returned Error Codes:
  150. // * ErrCodeInternalException "InternalException"
  151. // Internal server error.
  152. //
  153. // * ErrCodeInvalidInputException "InvalidInputException"
  154. // The request was rejected because an invalid or out-of-range value was supplied
  155. // for an input parameter.
  156. //
  157. // * ErrCodeLimitExceededException "LimitExceededException"
  158. // The request was rejected because it attempted to create resources beyond
  159. // the current AWS account limits. The error code describes the limit exceeded.
  160. //
  161. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/BatchDisableStandards
  162. func (c *SecurityHub) BatchDisableStandards(input *BatchDisableStandardsInput) (*BatchDisableStandardsOutput, error) {
  163. req, out := c.BatchDisableStandardsRequest(input)
  164. return out, req.Send()
  165. }
  166. // BatchDisableStandardsWithContext is the same as BatchDisableStandards with the addition of
  167. // the ability to pass a context and additional request options.
  168. //
  169. // See BatchDisableStandards for details on how to use this API operation.
  170. //
  171. // The context must be non-nil and will be used for request cancellation. If
  172. // the context is nil a panic will occur. In the future the SDK may create
  173. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  174. // for more information on using Contexts.
  175. func (c *SecurityHub) BatchDisableStandardsWithContext(ctx aws.Context, input *BatchDisableStandardsInput, opts ...request.Option) (*BatchDisableStandardsOutput, error) {
  176. req, out := c.BatchDisableStandardsRequest(input)
  177. req.SetContext(ctx)
  178. req.ApplyOptions(opts...)
  179. return out, req.Send()
  180. }
  181. const opBatchEnableStandards = "BatchEnableStandards"
  182. // BatchEnableStandardsRequest generates a "aws/request.Request" representing the
  183. // client's request for the BatchEnableStandards operation. The "output" return
  184. // value will be populated with the request's response once the request completes
  185. // successfully.
  186. //
  187. // Use "Send" method on the returned Request to send the API call to the service.
  188. // the "output" return value is not valid until after Send returns without error.
  189. //
  190. // See BatchEnableStandards for more information on using the BatchEnableStandards
  191. // API call, and error handling.
  192. //
  193. // This method is useful when you want to inject custom logic or configuration
  194. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  195. //
  196. //
  197. // // Example sending a request using the BatchEnableStandardsRequest method.
  198. // req, resp := client.BatchEnableStandardsRequest(params)
  199. //
  200. // err := req.Send()
  201. // if err == nil { // resp is now filled
  202. // fmt.Println(resp)
  203. // }
  204. //
  205. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/BatchEnableStandards
  206. func (c *SecurityHub) BatchEnableStandardsRequest(input *BatchEnableStandardsInput) (req *request.Request, output *BatchEnableStandardsOutput) {
  207. op := &request.Operation{
  208. Name: opBatchEnableStandards,
  209. HTTPMethod: "POST",
  210. HTTPPath: "/standards/register",
  211. }
  212. if input == nil {
  213. input = &BatchEnableStandardsInput{}
  214. }
  215. output = &BatchEnableStandardsOutput{}
  216. req = c.newRequest(op, input, output)
  217. return
  218. }
  219. // BatchEnableStandards API operation for AWS SecurityHub.
  220. //
  221. // Enables the standards specified by the standards ARNs. In the context of
  222. // Security Hub, supported standards (for example, CIS AWS Foundations) are
  223. // automated and continuous checks that help determine your compliance status
  224. // against security industry (including AWS) best practices.
  225. //
  226. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  227. // with awserr.Error's Code and Message methods to get detailed information about
  228. // the error.
  229. //
  230. // See the AWS API reference guide for AWS SecurityHub's
  231. // API operation BatchEnableStandards for usage and error information.
  232. //
  233. // Returned Error Codes:
  234. // * ErrCodeInternalException "InternalException"
  235. // Internal server error.
  236. //
  237. // * ErrCodeInvalidInputException "InvalidInputException"
  238. // The request was rejected because an invalid or out-of-range value was supplied
  239. // for an input parameter.
  240. //
  241. // * ErrCodeLimitExceededException "LimitExceededException"
  242. // The request was rejected because it attempted to create resources beyond
  243. // the current AWS account limits. The error code describes the limit exceeded.
  244. //
  245. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/BatchEnableStandards
  246. func (c *SecurityHub) BatchEnableStandards(input *BatchEnableStandardsInput) (*BatchEnableStandardsOutput, error) {
  247. req, out := c.BatchEnableStandardsRequest(input)
  248. return out, req.Send()
  249. }
  250. // BatchEnableStandardsWithContext is the same as BatchEnableStandards with the addition of
  251. // the ability to pass a context and additional request options.
  252. //
  253. // See BatchEnableStandards for details on how to use this API operation.
  254. //
  255. // The context must be non-nil and will be used for request cancellation. If
  256. // the context is nil a panic will occur. In the future the SDK may create
  257. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  258. // for more information on using Contexts.
  259. func (c *SecurityHub) BatchEnableStandardsWithContext(ctx aws.Context, input *BatchEnableStandardsInput, opts ...request.Option) (*BatchEnableStandardsOutput, error) {
  260. req, out := c.BatchEnableStandardsRequest(input)
  261. req.SetContext(ctx)
  262. req.ApplyOptions(opts...)
  263. return out, req.Send()
  264. }
  265. const opBatchImportFindings = "BatchImportFindings"
  266. // BatchImportFindingsRequest generates a "aws/request.Request" representing the
  267. // client's request for the BatchImportFindings operation. The "output" return
  268. // value will be populated with the request's response once the request completes
  269. // successfully.
  270. //
  271. // Use "Send" method on the returned Request to send the API call to the service.
  272. // the "output" return value is not valid until after Send returns without error.
  273. //
  274. // See BatchImportFindings for more information on using the BatchImportFindings
  275. // API call, and error handling.
  276. //
  277. // This method is useful when you want to inject custom logic or configuration
  278. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  279. //
  280. //
  281. // // Example sending a request using the BatchImportFindingsRequest method.
  282. // req, resp := client.BatchImportFindingsRequest(params)
  283. //
  284. // err := req.Send()
  285. // if err == nil { // resp is now filled
  286. // fmt.Println(resp)
  287. // }
  288. //
  289. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/BatchImportFindings
  290. func (c *SecurityHub) BatchImportFindingsRequest(input *BatchImportFindingsInput) (req *request.Request, output *BatchImportFindingsOutput) {
  291. op := &request.Operation{
  292. Name: opBatchImportFindings,
  293. HTTPMethod: "POST",
  294. HTTPPath: "/findings/import",
  295. }
  296. if input == nil {
  297. input = &BatchImportFindingsInput{}
  298. }
  299. output = &BatchImportFindingsOutput{}
  300. req = c.newRequest(op, input, output)
  301. return
  302. }
  303. // BatchImportFindings API operation for AWS SecurityHub.
  304. //
  305. // Imports security findings that are generated by the integrated third-party
  306. // products into Security Hub.
  307. //
  308. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  309. // with awserr.Error's Code and Message methods to get detailed information about
  310. // the error.
  311. //
  312. // See the AWS API reference guide for AWS SecurityHub's
  313. // API operation BatchImportFindings for usage and error information.
  314. //
  315. // Returned Error Codes:
  316. // * ErrCodeInternalException "InternalException"
  317. // Internal server error.
  318. //
  319. // * ErrCodeInvalidInputException "InvalidInputException"
  320. // The request was rejected because an invalid or out-of-range value was supplied
  321. // for an input parameter.
  322. //
  323. // * ErrCodeLimitExceededException "LimitExceededException"
  324. // The request was rejected because it attempted to create resources beyond
  325. // the current AWS account limits. The error code describes the limit exceeded.
  326. //
  327. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/BatchImportFindings
  328. func (c *SecurityHub) BatchImportFindings(input *BatchImportFindingsInput) (*BatchImportFindingsOutput, error) {
  329. req, out := c.BatchImportFindingsRequest(input)
  330. return out, req.Send()
  331. }
  332. // BatchImportFindingsWithContext is the same as BatchImportFindings with the addition of
  333. // the ability to pass a context and additional request options.
  334. //
  335. // See BatchImportFindings for details on how to use this API operation.
  336. //
  337. // The context must be non-nil and will be used for request cancellation. If
  338. // the context is nil a panic will occur. In the future the SDK may create
  339. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  340. // for more information on using Contexts.
  341. func (c *SecurityHub) BatchImportFindingsWithContext(ctx aws.Context, input *BatchImportFindingsInput, opts ...request.Option) (*BatchImportFindingsOutput, error) {
  342. req, out := c.BatchImportFindingsRequest(input)
  343. req.SetContext(ctx)
  344. req.ApplyOptions(opts...)
  345. return out, req.Send()
  346. }
  347. const opCreateInsight = "CreateInsight"
  348. // CreateInsightRequest generates a "aws/request.Request" representing the
  349. // client's request for the CreateInsight operation. The "output" return
  350. // value will be populated with the request's response once the request completes
  351. // successfully.
  352. //
  353. // Use "Send" method on the returned Request to send the API call to the service.
  354. // the "output" return value is not valid until after Send returns without error.
  355. //
  356. // See CreateInsight for more information on using the CreateInsight
  357. // API call, and error handling.
  358. //
  359. // This method is useful when you want to inject custom logic or configuration
  360. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  361. //
  362. //
  363. // // Example sending a request using the CreateInsightRequest method.
  364. // req, resp := client.CreateInsightRequest(params)
  365. //
  366. // err := req.Send()
  367. // if err == nil { // resp is now filled
  368. // fmt.Println(resp)
  369. // }
  370. //
  371. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/CreateInsight
  372. func (c *SecurityHub) CreateInsightRequest(input *CreateInsightInput) (req *request.Request, output *CreateInsightOutput) {
  373. op := &request.Operation{
  374. Name: opCreateInsight,
  375. HTTPMethod: "POST",
  376. HTTPPath: "/insights",
  377. }
  378. if input == nil {
  379. input = &CreateInsightInput{}
  380. }
  381. output = &CreateInsightOutput{}
  382. req = c.newRequest(op, input, output)
  383. return
  384. }
  385. // CreateInsight API operation for AWS SecurityHub.
  386. //
  387. // Creates an insight, which is a consolidation of findings that identifies
  388. // a security area that requires attention or intervention.
  389. //
  390. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  391. // with awserr.Error's Code and Message methods to get detailed information about
  392. // the error.
  393. //
  394. // See the AWS API reference guide for AWS SecurityHub's
  395. // API operation CreateInsight for usage and error information.
  396. //
  397. // Returned Error Codes:
  398. // * ErrCodeInternalException "InternalException"
  399. // Internal server error.
  400. //
  401. // * ErrCodeInvalidInputException "InvalidInputException"
  402. // The request was rejected because an invalid or out-of-range value was supplied
  403. // for an input parameter.
  404. //
  405. // * ErrCodeLimitExceededException "LimitExceededException"
  406. // The request was rejected because it attempted to create resources beyond
  407. // the current AWS account limits. The error code describes the limit exceeded.
  408. //
  409. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/CreateInsight
  410. func (c *SecurityHub) CreateInsight(input *CreateInsightInput) (*CreateInsightOutput, error) {
  411. req, out := c.CreateInsightRequest(input)
  412. return out, req.Send()
  413. }
  414. // CreateInsightWithContext is the same as CreateInsight with the addition of
  415. // the ability to pass a context and additional request options.
  416. //
  417. // See CreateInsight for details on how to use this API operation.
  418. //
  419. // The context must be non-nil and will be used for request cancellation. If
  420. // the context is nil a panic will occur. In the future the SDK may create
  421. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  422. // for more information on using Contexts.
  423. func (c *SecurityHub) CreateInsightWithContext(ctx aws.Context, input *CreateInsightInput, opts ...request.Option) (*CreateInsightOutput, error) {
  424. req, out := c.CreateInsightRequest(input)
  425. req.SetContext(ctx)
  426. req.ApplyOptions(opts...)
  427. return out, req.Send()
  428. }
  429. const opCreateMembers = "CreateMembers"
  430. // CreateMembersRequest generates a "aws/request.Request" representing the
  431. // client's request for the CreateMembers operation. The "output" return
  432. // value will be populated with the request's response once the request completes
  433. // successfully.
  434. //
  435. // Use "Send" method on the returned Request to send the API call to the service.
  436. // the "output" return value is not valid until after Send returns without error.
  437. //
  438. // See CreateMembers for more information on using the CreateMembers
  439. // API call, and error handling.
  440. //
  441. // This method is useful when you want to inject custom logic or configuration
  442. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  443. //
  444. //
  445. // // Example sending a request using the CreateMembersRequest method.
  446. // req, resp := client.CreateMembersRequest(params)
  447. //
  448. // err := req.Send()
  449. // if err == nil { // resp is now filled
  450. // fmt.Println(resp)
  451. // }
  452. //
  453. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/CreateMembers
  454. func (c *SecurityHub) CreateMembersRequest(input *CreateMembersInput) (req *request.Request, output *CreateMembersOutput) {
  455. op := &request.Operation{
  456. Name: opCreateMembers,
  457. HTTPMethod: "POST",
  458. HTTPPath: "/members",
  459. }
  460. if input == nil {
  461. input = &CreateMembersInput{}
  462. }
  463. output = &CreateMembersOutput{}
  464. req = c.newRequest(op, input, output)
  465. return
  466. }
  467. // CreateMembers API operation for AWS SecurityHub.
  468. //
  469. // Creates member Security Hub accounts in the current AWS account (which becomes
  470. // the master Security Hub account) that has Security Hub enabled.
  471. //
  472. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  473. // with awserr.Error's Code and Message methods to get detailed information about
  474. // the error.
  475. //
  476. // See the AWS API reference guide for AWS SecurityHub's
  477. // API operation CreateMembers for usage and error information.
  478. //
  479. // Returned Error Codes:
  480. // * ErrCodeInternalException "InternalException"
  481. // Internal server error.
  482. //
  483. // * ErrCodeInvalidInputException "InvalidInputException"
  484. // The request was rejected because an invalid or out-of-range value was supplied
  485. // for an input parameter.
  486. //
  487. // * ErrCodeLimitExceededException "LimitExceededException"
  488. // The request was rejected because it attempted to create resources beyond
  489. // the current AWS account limits. The error code describes the limit exceeded.
  490. //
  491. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/CreateMembers
  492. func (c *SecurityHub) CreateMembers(input *CreateMembersInput) (*CreateMembersOutput, error) {
  493. req, out := c.CreateMembersRequest(input)
  494. return out, req.Send()
  495. }
  496. // CreateMembersWithContext is the same as CreateMembers with the addition of
  497. // the ability to pass a context and additional request options.
  498. //
  499. // See CreateMembers for details on how to use this API operation.
  500. //
  501. // The context must be non-nil and will be used for request cancellation. If
  502. // the context is nil a panic will occur. In the future the SDK may create
  503. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  504. // for more information on using Contexts.
  505. func (c *SecurityHub) CreateMembersWithContext(ctx aws.Context, input *CreateMembersInput, opts ...request.Option) (*CreateMembersOutput, error) {
  506. req, out := c.CreateMembersRequest(input)
  507. req.SetContext(ctx)
  508. req.ApplyOptions(opts...)
  509. return out, req.Send()
  510. }
  511. const opDeclineInvitations = "DeclineInvitations"
  512. // DeclineInvitationsRequest generates a "aws/request.Request" representing the
  513. // client's request for the DeclineInvitations operation. The "output" return
  514. // value will be populated with the request's response once the request completes
  515. // successfully.
  516. //
  517. // Use "Send" method on the returned Request to send the API call to the service.
  518. // the "output" return value is not valid until after Send returns without error.
  519. //
  520. // See DeclineInvitations for more information on using the DeclineInvitations
  521. // API call, and error handling.
  522. //
  523. // This method is useful when you want to inject custom logic or configuration
  524. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  525. //
  526. //
  527. // // Example sending a request using the DeclineInvitationsRequest method.
  528. // req, resp := client.DeclineInvitationsRequest(params)
  529. //
  530. // err := req.Send()
  531. // if err == nil { // resp is now filled
  532. // fmt.Println(resp)
  533. // }
  534. //
  535. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DeclineInvitations
  536. func (c *SecurityHub) DeclineInvitationsRequest(input *DeclineInvitationsInput) (req *request.Request, output *DeclineInvitationsOutput) {
  537. op := &request.Operation{
  538. Name: opDeclineInvitations,
  539. HTTPMethod: "POST",
  540. HTTPPath: "/invitations/decline",
  541. }
  542. if input == nil {
  543. input = &DeclineInvitationsInput{}
  544. }
  545. output = &DeclineInvitationsOutput{}
  546. req = c.newRequest(op, input, output)
  547. return
  548. }
  549. // DeclineInvitations API operation for AWS SecurityHub.
  550. //
  551. // Declines invitations that are sent to this AWS account (invitee) by the AWS
  552. // accounts (inviters) that are specified by the account IDs.
  553. //
  554. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  555. // with awserr.Error's Code and Message methods to get detailed information about
  556. // the error.
  557. //
  558. // See the AWS API reference guide for AWS SecurityHub's
  559. // API operation DeclineInvitations for usage and error information.
  560. //
  561. // Returned Error Codes:
  562. // * ErrCodeInternalException "InternalException"
  563. // Internal server error.
  564. //
  565. // * ErrCodeInvalidInputException "InvalidInputException"
  566. // The request was rejected because an invalid or out-of-range value was supplied
  567. // for an input parameter.
  568. //
  569. // * ErrCodeLimitExceededException "LimitExceededException"
  570. // The request was rejected because it attempted to create resources beyond
  571. // the current AWS account limits. The error code describes the limit exceeded.
  572. //
  573. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  574. // The request was rejected because the specified resource cannot be found.
  575. //
  576. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DeclineInvitations
  577. func (c *SecurityHub) DeclineInvitations(input *DeclineInvitationsInput) (*DeclineInvitationsOutput, error) {
  578. req, out := c.DeclineInvitationsRequest(input)
  579. return out, req.Send()
  580. }
  581. // DeclineInvitationsWithContext is the same as DeclineInvitations with the addition of
  582. // the ability to pass a context and additional request options.
  583. //
  584. // See DeclineInvitations for details on how to use this API operation.
  585. //
  586. // The context must be non-nil and will be used for request cancellation. If
  587. // the context is nil a panic will occur. In the future the SDK may create
  588. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  589. // for more information on using Contexts.
  590. func (c *SecurityHub) DeclineInvitationsWithContext(ctx aws.Context, input *DeclineInvitationsInput, opts ...request.Option) (*DeclineInvitationsOutput, error) {
  591. req, out := c.DeclineInvitationsRequest(input)
  592. req.SetContext(ctx)
  593. req.ApplyOptions(opts...)
  594. return out, req.Send()
  595. }
  596. const opDeleteInsight = "DeleteInsight"
  597. // DeleteInsightRequest generates a "aws/request.Request" representing the
  598. // client's request for the DeleteInsight operation. The "output" return
  599. // value will be populated with the request's response once the request completes
  600. // successfully.
  601. //
  602. // Use "Send" method on the returned Request to send the API call to the service.
  603. // the "output" return value is not valid until after Send returns without error.
  604. //
  605. // See DeleteInsight for more information on using the DeleteInsight
  606. // API call, and error handling.
  607. //
  608. // This method is useful when you want to inject custom logic or configuration
  609. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  610. //
  611. //
  612. // // Example sending a request using the DeleteInsightRequest method.
  613. // req, resp := client.DeleteInsightRequest(params)
  614. //
  615. // err := req.Send()
  616. // if err == nil { // resp is now filled
  617. // fmt.Println(resp)
  618. // }
  619. //
  620. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DeleteInsight
  621. func (c *SecurityHub) DeleteInsightRequest(input *DeleteInsightInput) (req *request.Request, output *DeleteInsightOutput) {
  622. op := &request.Operation{
  623. Name: opDeleteInsight,
  624. HTTPMethod: "DELETE",
  625. HTTPPath: "/insights/{InsightArn+}",
  626. }
  627. if input == nil {
  628. input = &DeleteInsightInput{}
  629. }
  630. output = &DeleteInsightOutput{}
  631. req = c.newRequest(op, input, output)
  632. return
  633. }
  634. // DeleteInsight API operation for AWS SecurityHub.
  635. //
  636. // Deletes an insight that is specified by the insight ARN.
  637. //
  638. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  639. // with awserr.Error's Code and Message methods to get detailed information about
  640. // the error.
  641. //
  642. // See the AWS API reference guide for AWS SecurityHub's
  643. // API operation DeleteInsight for usage and error information.
  644. //
  645. // Returned Error Codes:
  646. // * ErrCodeInternalException "InternalException"
  647. // Internal server error.
  648. //
  649. // * ErrCodeInvalidInputException "InvalidInputException"
  650. // The request was rejected because an invalid or out-of-range value was supplied
  651. // for an input parameter.
  652. //
  653. // * ErrCodeLimitExceededException "LimitExceededException"
  654. // The request was rejected because it attempted to create resources beyond
  655. // the current AWS account limits. The error code describes the limit exceeded.
  656. //
  657. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DeleteInsight
  658. func (c *SecurityHub) DeleteInsight(input *DeleteInsightInput) (*DeleteInsightOutput, error) {
  659. req, out := c.DeleteInsightRequest(input)
  660. return out, req.Send()
  661. }
  662. // DeleteInsightWithContext is the same as DeleteInsight with the addition of
  663. // the ability to pass a context and additional request options.
  664. //
  665. // See DeleteInsight for details on how to use this API operation.
  666. //
  667. // The context must be non-nil and will be used for request cancellation. If
  668. // the context is nil a panic will occur. In the future the SDK may create
  669. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  670. // for more information on using Contexts.
  671. func (c *SecurityHub) DeleteInsightWithContext(ctx aws.Context, input *DeleteInsightInput, opts ...request.Option) (*DeleteInsightOutput, error) {
  672. req, out := c.DeleteInsightRequest(input)
  673. req.SetContext(ctx)
  674. req.ApplyOptions(opts...)
  675. return out, req.Send()
  676. }
  677. const opDeleteInvitations = "DeleteInvitations"
  678. // DeleteInvitationsRequest generates a "aws/request.Request" representing the
  679. // client's request for the DeleteInvitations operation. The "output" return
  680. // value will be populated with the request's response once the request completes
  681. // successfully.
  682. //
  683. // Use "Send" method on the returned Request to send the API call to the service.
  684. // the "output" return value is not valid until after Send returns without error.
  685. //
  686. // See DeleteInvitations for more information on using the DeleteInvitations
  687. // API call, and error handling.
  688. //
  689. // This method is useful when you want to inject custom logic or configuration
  690. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  691. //
  692. //
  693. // // Example sending a request using the DeleteInvitationsRequest method.
  694. // req, resp := client.DeleteInvitationsRequest(params)
  695. //
  696. // err := req.Send()
  697. // if err == nil { // resp is now filled
  698. // fmt.Println(resp)
  699. // }
  700. //
  701. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DeleteInvitations
  702. func (c *SecurityHub) DeleteInvitationsRequest(input *DeleteInvitationsInput) (req *request.Request, output *DeleteInvitationsOutput) {
  703. op := &request.Operation{
  704. Name: opDeleteInvitations,
  705. HTTPMethod: "POST",
  706. HTTPPath: "/invitations/delete",
  707. }
  708. if input == nil {
  709. input = &DeleteInvitationsInput{}
  710. }
  711. output = &DeleteInvitationsOutput{}
  712. req = c.newRequest(op, input, output)
  713. return
  714. }
  715. // DeleteInvitations API operation for AWS SecurityHub.
  716. //
  717. // Deletes invitations that are sent to this AWS account (invitee) by the AWS
  718. // accounts (inviters) that are specified by their account IDs.
  719. //
  720. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  721. // with awserr.Error's Code and Message methods to get detailed information about
  722. // the error.
  723. //
  724. // See the AWS API reference guide for AWS SecurityHub's
  725. // API operation DeleteInvitations for usage and error information.
  726. //
  727. // Returned Error Codes:
  728. // * ErrCodeInternalException "InternalException"
  729. // Internal server error.
  730. //
  731. // * ErrCodeInvalidInputException "InvalidInputException"
  732. // The request was rejected because an invalid or out-of-range value was supplied
  733. // for an input parameter.
  734. //
  735. // * ErrCodeLimitExceededException "LimitExceededException"
  736. // The request was rejected because it attempted to create resources beyond
  737. // the current AWS account limits. The error code describes the limit exceeded.
  738. //
  739. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  740. // The request was rejected because the specified resource cannot be found.
  741. //
  742. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DeleteInvitations
  743. func (c *SecurityHub) DeleteInvitations(input *DeleteInvitationsInput) (*DeleteInvitationsOutput, error) {
  744. req, out := c.DeleteInvitationsRequest(input)
  745. return out, req.Send()
  746. }
  747. // DeleteInvitationsWithContext is the same as DeleteInvitations with the addition of
  748. // the ability to pass a context and additional request options.
  749. //
  750. // See DeleteInvitations for details on how to use this API operation.
  751. //
  752. // The context must be non-nil and will be used for request cancellation. If
  753. // the context is nil a panic will occur. In the future the SDK may create
  754. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  755. // for more information on using Contexts.
  756. func (c *SecurityHub) DeleteInvitationsWithContext(ctx aws.Context, input *DeleteInvitationsInput, opts ...request.Option) (*DeleteInvitationsOutput, error) {
  757. req, out := c.DeleteInvitationsRequest(input)
  758. req.SetContext(ctx)
  759. req.ApplyOptions(opts...)
  760. return out, req.Send()
  761. }
  762. const opDeleteMembers = "DeleteMembers"
  763. // DeleteMembersRequest generates a "aws/request.Request" representing the
  764. // client's request for the DeleteMembers operation. The "output" return
  765. // value will be populated with the request's response once the request completes
  766. // successfully.
  767. //
  768. // Use "Send" method on the returned Request to send the API call to the service.
  769. // the "output" return value is not valid until after Send returns without error.
  770. //
  771. // See DeleteMembers for more information on using the DeleteMembers
  772. // API call, and error handling.
  773. //
  774. // This method is useful when you want to inject custom logic or configuration
  775. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  776. //
  777. //
  778. // // Example sending a request using the DeleteMembersRequest method.
  779. // req, resp := client.DeleteMembersRequest(params)
  780. //
  781. // err := req.Send()
  782. // if err == nil { // resp is now filled
  783. // fmt.Println(resp)
  784. // }
  785. //
  786. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DeleteMembers
  787. func (c *SecurityHub) DeleteMembersRequest(input *DeleteMembersInput) (req *request.Request, output *DeleteMembersOutput) {
  788. op := &request.Operation{
  789. Name: opDeleteMembers,
  790. HTTPMethod: "POST",
  791. HTTPPath: "/members/delete",
  792. }
  793. if input == nil {
  794. input = &DeleteMembersInput{}
  795. }
  796. output = &DeleteMembersOutput{}
  797. req = c.newRequest(op, input, output)
  798. return
  799. }
  800. // DeleteMembers API operation for AWS SecurityHub.
  801. //
  802. // Deletes the Security Hub member accounts that are specified by the account
  803. // IDs.
  804. //
  805. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  806. // with awserr.Error's Code and Message methods to get detailed information about
  807. // the error.
  808. //
  809. // See the AWS API reference guide for AWS SecurityHub's
  810. // API operation DeleteMembers for usage and error information.
  811. //
  812. // Returned Error Codes:
  813. // * ErrCodeInternalException "InternalException"
  814. // Internal server error.
  815. //
  816. // * ErrCodeInvalidInputException "InvalidInputException"
  817. // The request was rejected because an invalid or out-of-range value was supplied
  818. // for an input parameter.
  819. //
  820. // * ErrCodeLimitExceededException "LimitExceededException"
  821. // The request was rejected because it attempted to create resources beyond
  822. // the current AWS account limits. The error code describes the limit exceeded.
  823. //
  824. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  825. // The request was rejected because the specified resource cannot be found.
  826. //
  827. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DeleteMembers
  828. func (c *SecurityHub) DeleteMembers(input *DeleteMembersInput) (*DeleteMembersOutput, error) {
  829. req, out := c.DeleteMembersRequest(input)
  830. return out, req.Send()
  831. }
  832. // DeleteMembersWithContext is the same as DeleteMembers with the addition of
  833. // the ability to pass a context and additional request options.
  834. //
  835. // See DeleteMembers for details on how to use this API operation.
  836. //
  837. // The context must be non-nil and will be used for request cancellation. If
  838. // the context is nil a panic will occur. In the future the SDK may create
  839. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  840. // for more information on using Contexts.
  841. func (c *SecurityHub) DeleteMembersWithContext(ctx aws.Context, input *DeleteMembersInput, opts ...request.Option) (*DeleteMembersOutput, error) {
  842. req, out := c.DeleteMembersRequest(input)
  843. req.SetContext(ctx)
  844. req.ApplyOptions(opts...)
  845. return out, req.Send()
  846. }
  847. const opDisableImportFindingsForProduct = "DisableImportFindingsForProduct"
  848. // DisableImportFindingsForProductRequest generates a "aws/request.Request" representing the
  849. // client's request for the DisableImportFindingsForProduct operation. The "output" return
  850. // value will be populated with the request's response once the request completes
  851. // successfully.
  852. //
  853. // Use "Send" method on the returned Request to send the API call to the service.
  854. // the "output" return value is not valid until after Send returns without error.
  855. //
  856. // See DisableImportFindingsForProduct for more information on using the DisableImportFindingsForProduct
  857. // API call, and error handling.
  858. //
  859. // This method is useful when you want to inject custom logic or configuration
  860. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  861. //
  862. //
  863. // // Example sending a request using the DisableImportFindingsForProductRequest method.
  864. // req, resp := client.DisableImportFindingsForProductRequest(params)
  865. //
  866. // err := req.Send()
  867. // if err == nil { // resp is now filled
  868. // fmt.Println(resp)
  869. // }
  870. //
  871. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DisableImportFindingsForProduct
  872. func (c *SecurityHub) DisableImportFindingsForProductRequest(input *DisableImportFindingsForProductInput) (req *request.Request, output *DisableImportFindingsForProductOutput) {
  873. op := &request.Operation{
  874. Name: opDisableImportFindingsForProduct,
  875. HTTPMethod: "DELETE",
  876. HTTPPath: "/productSubscriptions/{ProductSubscriptionArn+}",
  877. }
  878. if input == nil {
  879. input = &DisableImportFindingsForProductInput{}
  880. }
  881. output = &DisableImportFindingsForProductOutput{}
  882. req = c.newRequest(op, input, output)
  883. req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  884. return
  885. }
  886. // DisableImportFindingsForProduct API operation for AWS SecurityHub.
  887. //
  888. // Stops you from being able to import findings generated by integrated third-party
  889. // providers into Security Hub.
  890. //
  891. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  892. // with awserr.Error's Code and Message methods to get detailed information about
  893. // the error.
  894. //
  895. // See the AWS API reference guide for AWS SecurityHub's
  896. // API operation DisableImportFindingsForProduct for usage and error information.
  897. //
  898. // Returned Error Codes:
  899. // * ErrCodeInternalException "InternalException"
  900. // Internal server error.
  901. //
  902. // * ErrCodeInvalidInputException "InvalidInputException"
  903. // The request was rejected because an invalid or out-of-range value was supplied
  904. // for an input parameter.
  905. //
  906. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  907. // The request was rejected because the specified resource cannot be found.
  908. //
  909. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DisableImportFindingsForProduct
  910. func (c *SecurityHub) DisableImportFindingsForProduct(input *DisableImportFindingsForProductInput) (*DisableImportFindingsForProductOutput, error) {
  911. req, out := c.DisableImportFindingsForProductRequest(input)
  912. return out, req.Send()
  913. }
  914. // DisableImportFindingsForProductWithContext is the same as DisableImportFindingsForProduct with the addition of
  915. // the ability to pass a context and additional request options.
  916. //
  917. // See DisableImportFindingsForProduct for details on how to use this API operation.
  918. //
  919. // The context must be non-nil and will be used for request cancellation. If
  920. // the context is nil a panic will occur. In the future the SDK may create
  921. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  922. // for more information on using Contexts.
  923. func (c *SecurityHub) DisableImportFindingsForProductWithContext(ctx aws.Context, input *DisableImportFindingsForProductInput, opts ...request.Option) (*DisableImportFindingsForProductOutput, error) {
  924. req, out := c.DisableImportFindingsForProductRequest(input)
  925. req.SetContext(ctx)
  926. req.ApplyOptions(opts...)
  927. return out, req.Send()
  928. }
  929. const opDisableSecurityHub = "DisableSecurityHub"
  930. // DisableSecurityHubRequest generates a "aws/request.Request" representing the
  931. // client's request for the DisableSecurityHub operation. The "output" return
  932. // value will be populated with the request's response once the request completes
  933. // successfully.
  934. //
  935. // Use "Send" method on the returned Request to send the API call to the service.
  936. // the "output" return value is not valid until after Send returns without error.
  937. //
  938. // See DisableSecurityHub for more information on using the DisableSecurityHub
  939. // API call, and error handling.
  940. //
  941. // This method is useful when you want to inject custom logic or configuration
  942. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  943. //
  944. //
  945. // // Example sending a request using the DisableSecurityHubRequest method.
  946. // req, resp := client.DisableSecurityHubRequest(params)
  947. //
  948. // err := req.Send()
  949. // if err == nil { // resp is now filled
  950. // fmt.Println(resp)
  951. // }
  952. //
  953. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DisableSecurityHub
  954. func (c *SecurityHub) DisableSecurityHubRequest(input *DisableSecurityHubInput) (req *request.Request, output *DisableSecurityHubOutput) {
  955. op := &request.Operation{
  956. Name: opDisableSecurityHub,
  957. HTTPMethod: "DELETE",
  958. HTTPPath: "/accounts",
  959. }
  960. if input == nil {
  961. input = &DisableSecurityHubInput{}
  962. }
  963. output = &DisableSecurityHubOutput{}
  964. req = c.newRequest(op, input, output)
  965. req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  966. return
  967. }
  968. // DisableSecurityHub API operation for AWS SecurityHub.
  969. //
  970. // Disables the AWS Security Hub Service.
  971. //
  972. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  973. // with awserr.Error's Code and Message methods to get detailed information about
  974. // the error.
  975. //
  976. // See the AWS API reference guide for AWS SecurityHub's
  977. // API operation DisableSecurityHub for usage and error information.
  978. //
  979. // Returned Error Codes:
  980. // * ErrCodeInternalException "InternalException"
  981. // Internal server error.
  982. //
  983. // * ErrCodeLimitExceededException "LimitExceededException"
  984. // The request was rejected because it attempted to create resources beyond
  985. // the current AWS account limits. The error code describes the limit exceeded.
  986. //
  987. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DisableSecurityHub
  988. func (c *SecurityHub) DisableSecurityHub(input *DisableSecurityHubInput) (*DisableSecurityHubOutput, error) {
  989. req, out := c.DisableSecurityHubRequest(input)
  990. return out, req.Send()
  991. }
  992. // DisableSecurityHubWithContext is the same as DisableSecurityHub with the addition of
  993. // the ability to pass a context and additional request options.
  994. //
  995. // See DisableSecurityHub for details on how to use this API operation.
  996. //
  997. // The context must be non-nil and will be used for request cancellation. If
  998. // the context is nil a panic will occur. In the future the SDK may create
  999. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1000. // for more information on using Contexts.
  1001. func (c *SecurityHub) DisableSecurityHubWithContext(ctx aws.Context, input *DisableSecurityHubInput, opts ...request.Option) (*DisableSecurityHubOutput, error) {
  1002. req, out := c.DisableSecurityHubRequest(input)
  1003. req.SetContext(ctx)
  1004. req.ApplyOptions(opts...)
  1005. return out, req.Send()
  1006. }
  1007. const opDisassociateFromMasterAccount = "DisassociateFromMasterAccount"
  1008. // DisassociateFromMasterAccountRequest generates a "aws/request.Request" representing the
  1009. // client's request for the DisassociateFromMasterAccount operation. The "output" return
  1010. // value will be populated with the request's response once the request completes
  1011. // successfully.
  1012. //
  1013. // Use "Send" method on the returned Request to send the API call to the service.
  1014. // the "output" return value is not valid until after Send returns without error.
  1015. //
  1016. // See DisassociateFromMasterAccount for more information on using the DisassociateFromMasterAccount
  1017. // API call, and error handling.
  1018. //
  1019. // This method is useful when you want to inject custom logic or configuration
  1020. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1021. //
  1022. //
  1023. // // Example sending a request using the DisassociateFromMasterAccountRequest method.
  1024. // req, resp := client.DisassociateFromMasterAccountRequest(params)
  1025. //
  1026. // err := req.Send()
  1027. // if err == nil { // resp is now filled
  1028. // fmt.Println(resp)
  1029. // }
  1030. //
  1031. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DisassociateFromMasterAccount
  1032. func (c *SecurityHub) DisassociateFromMasterAccountRequest(input *DisassociateFromMasterAccountInput) (req *request.Request, output *DisassociateFromMasterAccountOutput) {
  1033. op := &request.Operation{
  1034. Name: opDisassociateFromMasterAccount,
  1035. HTTPMethod: "POST",
  1036. HTTPPath: "/master/disassociate",
  1037. }
  1038. if input == nil {
  1039. input = &DisassociateFromMasterAccountInput{}
  1040. }
  1041. output = &DisassociateFromMasterAccountOutput{}
  1042. req = c.newRequest(op, input, output)
  1043. req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1044. return
  1045. }
  1046. // DisassociateFromMasterAccount API operation for AWS SecurityHub.
  1047. //
  1048. // Disassociates the current Security Hub member account from its master account.
  1049. //
  1050. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1051. // with awserr.Error's Code and Message methods to get detailed information about
  1052. // the error.
  1053. //
  1054. // See the AWS API reference guide for AWS SecurityHub's
  1055. // API operation DisassociateFromMasterAccount for usage and error information.
  1056. //
  1057. // Returned Error Codes:
  1058. // * ErrCodeInternalException "InternalException"
  1059. // Internal server error.
  1060. //
  1061. // * ErrCodeInvalidInputException "InvalidInputException"
  1062. // The request was rejected because an invalid or out-of-range value was supplied
  1063. // for an input parameter.
  1064. //
  1065. // * ErrCodeLimitExceededException "LimitExceededException"
  1066. // The request was rejected because it attempted to create resources beyond
  1067. // the current AWS account limits. The error code describes the limit exceeded.
  1068. //
  1069. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1070. // The request was rejected because the specified resource cannot be found.
  1071. //
  1072. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DisassociateFromMasterAccount
  1073. func (c *SecurityHub) DisassociateFromMasterAccount(input *DisassociateFromMasterAccountInput) (*DisassociateFromMasterAccountOutput, error) {
  1074. req, out := c.DisassociateFromMasterAccountRequest(input)
  1075. return out, req.Send()
  1076. }
  1077. // DisassociateFromMasterAccountWithContext is the same as DisassociateFromMasterAccount with the addition of
  1078. // the ability to pass a context and additional request options.
  1079. //
  1080. // See DisassociateFromMasterAccount for details on how to use this API operation.
  1081. //
  1082. // The context must be non-nil and will be used for request cancellation. If
  1083. // the context is nil a panic will occur. In the future the SDK may create
  1084. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1085. // for more information on using Contexts.
  1086. func (c *SecurityHub) DisassociateFromMasterAccountWithContext(ctx aws.Context, input *DisassociateFromMasterAccountInput, opts ...request.Option) (*DisassociateFromMasterAccountOutput, error) {
  1087. req, out := c.DisassociateFromMasterAccountRequest(input)
  1088. req.SetContext(ctx)
  1089. req.ApplyOptions(opts...)
  1090. return out, req.Send()
  1091. }
  1092. const opDisassociateMembers = "DisassociateMembers"
  1093. // DisassociateMembersRequest generates a "aws/request.Request" representing the
  1094. // client's request for the DisassociateMembers operation. The "output" return
  1095. // value will be populated with the request's response once the request completes
  1096. // successfully.
  1097. //
  1098. // Use "Send" method on the returned Request to send the API call to the service.
  1099. // the "output" return value is not valid until after Send returns without error.
  1100. //
  1101. // See DisassociateMembers for more information on using the DisassociateMembers
  1102. // API call, and error handling.
  1103. //
  1104. // This method is useful when you want to inject custom logic or configuration
  1105. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1106. //
  1107. //
  1108. // // Example sending a request using the DisassociateMembersRequest method.
  1109. // req, resp := client.DisassociateMembersRequest(params)
  1110. //
  1111. // err := req.Send()
  1112. // if err == nil { // resp is now filled
  1113. // fmt.Println(resp)
  1114. // }
  1115. //
  1116. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DisassociateMembers
  1117. func (c *SecurityHub) DisassociateMembersRequest(input *DisassociateMembersInput) (req *request.Request, output *DisassociateMembersOutput) {
  1118. op := &request.Operation{
  1119. Name: opDisassociateMembers,
  1120. HTTPMethod: "POST",
  1121. HTTPPath: "/members/disassociate",
  1122. }
  1123. if input == nil {
  1124. input = &DisassociateMembersInput{}
  1125. }
  1126. output = &DisassociateMembersOutput{}
  1127. req = c.newRequest(op, input, output)
  1128. req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1129. return
  1130. }
  1131. // DisassociateMembers API operation for AWS SecurityHub.
  1132. //
  1133. // Disassociates the Security Hub member accounts that are specified by the
  1134. // account IDs from their master account.
  1135. //
  1136. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1137. // with awserr.Error's Code and Message methods to get detailed information about
  1138. // the error.
  1139. //
  1140. // See the AWS API reference guide for AWS SecurityHub's
  1141. // API operation DisassociateMembers for usage and error information.
  1142. //
  1143. // Returned Error Codes:
  1144. // * ErrCodeInternalException "InternalException"
  1145. // Internal server error.
  1146. //
  1147. // * ErrCodeInvalidInputException "InvalidInputException"
  1148. // The request was rejected because an invalid or out-of-range value was supplied
  1149. // for an input parameter.
  1150. //
  1151. // * ErrCodeLimitExceededException "LimitExceededException"
  1152. // The request was rejected because it attempted to create resources beyond
  1153. // the current AWS account limits. The error code describes the limit exceeded.
  1154. //
  1155. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1156. // The request was rejected because the specified resource cannot be found.
  1157. //
  1158. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DisassociateMembers
  1159. func (c *SecurityHub) DisassociateMembers(input *DisassociateMembersInput) (*DisassociateMembersOutput, error) {
  1160. req, out := c.DisassociateMembersRequest(input)
  1161. return out, req.Send()
  1162. }
  1163. // DisassociateMembersWithContext is the same as DisassociateMembers with the addition of
  1164. // the ability to pass a context and additional request options.
  1165. //
  1166. // See DisassociateMembers for details on how to use this API operation.
  1167. //
  1168. // The context must be non-nil and will be used for request cancellation. If
  1169. // the context is nil a panic will occur. In the future the SDK may create
  1170. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1171. // for more information on using Contexts.
  1172. func (c *SecurityHub) DisassociateMembersWithContext(ctx aws.Context, input *DisassociateMembersInput, opts ...request.Option) (*DisassociateMembersOutput, error) {
  1173. req, out := c.DisassociateMembersRequest(input)
  1174. req.SetContext(ctx)
  1175. req.ApplyOptions(opts...)
  1176. return out, req.Send()
  1177. }
  1178. const opEnableImportFindingsForProduct = "EnableImportFindingsForProduct"
  1179. // EnableImportFindingsForProductRequest generates a "aws/request.Request" representing the
  1180. // client's request for the EnableImportFindingsForProduct operation. The "output" return
  1181. // value will be populated with the request's response once the request completes
  1182. // successfully.
  1183. //
  1184. // Use "Send" method on the returned Request to send the API call to the service.
  1185. // the "output" return value is not valid until after Send returns without error.
  1186. //
  1187. // See EnableImportFindingsForProduct for more information on using the EnableImportFindingsForProduct
  1188. // API call, and error handling.
  1189. //
  1190. // This method is useful when you want to inject custom logic or configuration
  1191. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1192. //
  1193. //
  1194. // // Example sending a request using the EnableImportFindingsForProductRequest method.
  1195. // req, resp := client.EnableImportFindingsForProductRequest(params)
  1196. //
  1197. // err := req.Send()
  1198. // if err == nil { // resp is now filled
  1199. // fmt.Println(resp)
  1200. // }
  1201. //
  1202. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/EnableImportFindingsForProduct
  1203. func (c *SecurityHub) EnableImportFindingsForProductRequest(input *EnableImportFindingsForProductInput) (req *request.Request, output *EnableImportFindingsForProductOutput) {
  1204. op := &request.Operation{
  1205. Name: opEnableImportFindingsForProduct,
  1206. HTTPMethod: "POST",
  1207. HTTPPath: "/productSubscriptions",
  1208. }
  1209. if input == nil {
  1210. input = &EnableImportFindingsForProductInput{}
  1211. }
  1212. output = &EnableImportFindingsForProductOutput{}
  1213. req = c.newRequest(op, input, output)
  1214. return
  1215. }
  1216. // EnableImportFindingsForProduct API operation for AWS SecurityHub.
  1217. //
  1218. // Enables you to import findings generated by integrated third-party providers
  1219. // into Security Hub.
  1220. //
  1221. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1222. // with awserr.Error's Code and Message methods to get detailed information about
  1223. // the error.
  1224. //
  1225. // See the AWS API reference guide for AWS SecurityHub's
  1226. // API operation EnableImportFindingsForProduct for usage and error information.
  1227. //
  1228. // Returned Error Codes:
  1229. // * ErrCodeInternalException "InternalException"
  1230. // Internal server error.
  1231. //
  1232. // * ErrCodeInvalidInputException "InvalidInputException"
  1233. // The request was rejected because an invalid or out-of-range value was supplied
  1234. // for an input parameter.
  1235. //
  1236. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/EnableImportFindingsForProduct
  1237. func (c *SecurityHub) EnableImportFindingsForProduct(input *EnableImportFindingsForProductInput) (*EnableImportFindingsForProductOutput, error) {
  1238. req, out := c.EnableImportFindingsForProductRequest(input)
  1239. return out, req.Send()
  1240. }
  1241. // EnableImportFindingsForProductWithContext is the same as EnableImportFindingsForProduct with the addition of
  1242. // the ability to pass a context and additional request options.
  1243. //
  1244. // See EnableImportFindingsForProduct for details on how to use this API operation.
  1245. //
  1246. // The context must be non-nil and will be used for request cancellation. If
  1247. // the context is nil a panic will occur. In the future the SDK may create
  1248. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1249. // for more information on using Contexts.
  1250. func (c *SecurityHub) EnableImportFindingsForProductWithContext(ctx aws.Context, input *EnableImportFindingsForProductInput, opts ...request.Option) (*EnableImportFindingsForProductOutput, error) {
  1251. req, out := c.EnableImportFindingsForProductRequest(input)
  1252. req.SetContext(ctx)
  1253. req.ApplyOptions(opts...)
  1254. return out, req.Send()
  1255. }
  1256. const opEnableSecurityHub = "EnableSecurityHub"
  1257. // EnableSecurityHubRequest generates a "aws/request.Request" representing the
  1258. // client's request for the EnableSecurityHub operation. The "output" return
  1259. // value will be populated with the request's response once the request completes
  1260. // successfully.
  1261. //
  1262. // Use "Send" method on the returned Request to send the API call to the service.
  1263. // the "output" return value is not valid until after Send returns without error.
  1264. //
  1265. // See EnableSecurityHub for more information on using the EnableSecurityHub
  1266. // API call, and error handling.
  1267. //
  1268. // This method is useful when you want to inject custom logic or configuration
  1269. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1270. //
  1271. //
  1272. // // Example sending a request using the EnableSecurityHubRequest method.
  1273. // req, resp := client.EnableSecurityHubRequest(params)
  1274. //
  1275. // err := req.Send()
  1276. // if err == nil { // resp is now filled
  1277. // fmt.Println(resp)
  1278. // }
  1279. //
  1280. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/EnableSecurityHub
  1281. func (c *SecurityHub) EnableSecurityHubRequest(input *EnableSecurityHubInput) (req *request.Request, output *EnableSecurityHubOutput) {
  1282. op := &request.Operation{
  1283. Name: opEnableSecurityHub,
  1284. HTTPMethod: "POST",
  1285. HTTPPath: "/accounts",
  1286. }
  1287. if input == nil {
  1288. input = &EnableSecurityHubInput{}
  1289. }
  1290. output = &EnableSecurityHubOutput{}
  1291. req = c.newRequest(op, input, output)
  1292. req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1293. return
  1294. }
  1295. // EnableSecurityHub API operation for AWS SecurityHub.
  1296. //
  1297. // Enables the AWS Security Hub service.
  1298. //
  1299. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1300. // with awserr.Error's Code and Message methods to get detailed information about
  1301. // the error.
  1302. //
  1303. // See the AWS API reference guide for AWS SecurityHub's
  1304. // API operation EnableSecurityHub for usage and error information.
  1305. //
  1306. // Returned Error Codes:
  1307. // * ErrCodeInternalException "InternalException"
  1308. // Internal server error.
  1309. //
  1310. // * ErrCodeLimitExceededException "LimitExceededException"
  1311. // The request was rejected because it attempted to create resources beyond
  1312. // the current AWS account limits. The error code describes the limit exceeded.
  1313. //
  1314. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/EnableSecurityHub
  1315. func (c *SecurityHub) EnableSecurityHub(input *EnableSecurityHubInput) (*EnableSecurityHubOutput, error) {
  1316. req, out := c.EnableSecurityHubRequest(input)
  1317. return out, req.Send()
  1318. }
  1319. // EnableSecurityHubWithContext is the same as EnableSecurityHub with the addition of
  1320. // the ability to pass a context and additional request options.
  1321. //
  1322. // See EnableSecurityHub for details on how to use this API operation.
  1323. //
  1324. // The context must be non-nil and will be used for request cancellation. If
  1325. // the context is nil a panic will occur. In the future the SDK may create
  1326. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1327. // for more information on using Contexts.
  1328. func (c *SecurityHub) EnableSecurityHubWithContext(ctx aws.Context, input *EnableSecurityHubInput, opts ...request.Option) (*EnableSecurityHubOutput, error) {
  1329. req, out := c.EnableSecurityHubRequest(input)
  1330. req.SetContext(ctx)
  1331. req.ApplyOptions(opts...)
  1332. return out, req.Send()
  1333. }
  1334. const opGetEnabledStandards = "GetEnabledStandards"
  1335. // GetEnabledStandardsRequest generates a "aws/request.Request" representing the
  1336. // client's request for the GetEnabledStandards operation. The "output" return
  1337. // value will be populated with the request's response once the request completes
  1338. // successfully.
  1339. //
  1340. // Use "Send" method on the returned Request to send the API call to the service.
  1341. // the "output" return value is not valid until after Send returns without error.
  1342. //
  1343. // See GetEnabledStandards for more information on using the GetEnabledStandards
  1344. // API call, and error handling.
  1345. //
  1346. // This method is useful when you want to inject custom logic or configuration
  1347. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1348. //
  1349. //
  1350. // // Example sending a request using the GetEnabledStandardsRequest method.
  1351. // req, resp := client.GetEnabledStandardsRequest(params)
  1352. //
  1353. // err := req.Send()
  1354. // if err == nil { // resp is now filled
  1355. // fmt.Println(resp)
  1356. // }
  1357. //
  1358. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetEnabledStandards
  1359. func (c *SecurityHub) GetEnabledStandardsRequest(input *GetEnabledStandardsInput) (req *request.Request, output *GetEnabledStandardsOutput) {
  1360. op := &request.Operation{
  1361. Name: opGetEnabledStandards,
  1362. HTTPMethod: "POST",
  1363. HTTPPath: "/standards/get",
  1364. }
  1365. if input == nil {
  1366. input = &GetEnabledStandardsInput{}
  1367. }
  1368. output = &GetEnabledStandardsOutput{}
  1369. req = c.newRequest(op, input, output)
  1370. return
  1371. }
  1372. // GetEnabledStandards API operation for AWS SecurityHub.
  1373. //
  1374. // Lists and describes enabled standards.
  1375. //
  1376. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1377. // with awserr.Error's Code and Message methods to get detailed information about
  1378. // the error.
  1379. //
  1380. // See the AWS API reference guide for AWS SecurityHub's
  1381. // API operation GetEnabledStandards for usage and error information.
  1382. //
  1383. // Returned Error Codes:
  1384. // * ErrCodeInternalException "InternalException"
  1385. // Internal server error.
  1386. //
  1387. // * ErrCodeInvalidInputException "InvalidInputException"
  1388. // The request was rejected because an invalid or out-of-range value was supplied
  1389. // for an input parameter.
  1390. //
  1391. // * ErrCodeLimitExceededException "LimitExceededException"
  1392. // The request was rejected because it attempted to create resources beyond
  1393. // the current AWS account limits. The error code describes the limit exceeded.
  1394. //
  1395. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetEnabledStandards
  1396. func (c *SecurityHub) GetEnabledStandards(input *GetEnabledStandardsInput) (*GetEnabledStandardsOutput, error) {
  1397. req, out := c.GetEnabledStandardsRequest(input)
  1398. return out, req.Send()
  1399. }
  1400. // GetEnabledStandardsWithContext is the same as GetEnabledStandards with the addition of
  1401. // the ability to pass a context and additional request options.
  1402. //
  1403. // See GetEnabledStandards for details on how to use this API operation.
  1404. //
  1405. // The context must be non-nil and will be used for request cancellation. If
  1406. // the context is nil a panic will occur. In the future the SDK may create
  1407. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1408. // for more information on using Contexts.
  1409. func (c *SecurityHub) GetEnabledStandardsWithContext(ctx aws.Context, input *GetEnabledStandardsInput, opts ...request.Option) (*GetEnabledStandardsOutput, error) {
  1410. req, out := c.GetEnabledStandardsRequest(input)
  1411. req.SetContext(ctx)
  1412. req.ApplyOptions(opts...)
  1413. return out, req.Send()
  1414. }
  1415. const opGetFindings = "GetFindings"
  1416. // GetFindingsRequest generates a "aws/request.Request" representing the
  1417. // client's request for the GetFindings operation. The "output" return
  1418. // value will be populated with the request's response once the request completes
  1419. // successfully.
  1420. //
  1421. // Use "Send" method on the returned Request to send the API call to the service.
  1422. // the "output" return value is not valid until after Send returns without error.
  1423. //
  1424. // See GetFindings for more information on using the GetFindings
  1425. // API call, and error handling.
  1426. //
  1427. // This method is useful when you want to inject custom logic or configuration
  1428. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1429. //
  1430. //
  1431. // // Example sending a request using the GetFindingsRequest method.
  1432. // req, resp := client.GetFindingsRequest(params)
  1433. //
  1434. // err := req.Send()
  1435. // if err == nil { // resp is now filled
  1436. // fmt.Println(resp)
  1437. // }
  1438. //
  1439. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetFindings
  1440. func (c *SecurityHub) GetFindingsRequest(input *GetFindingsInput) (req *request.Request, output *GetFindingsOutput) {
  1441. op := &request.Operation{
  1442. Name: opGetFindings,
  1443. HTTPMethod: "POST",
  1444. HTTPPath: "/findings",
  1445. Paginator: &request.Paginator{
  1446. InputTokens: []string{"NextToken"},
  1447. OutputTokens: []string{"NextToken"},
  1448. LimitToken: "MaxResults",
  1449. TruncationToken: "",
  1450. },
  1451. }
  1452. if input == nil {
  1453. input = &GetFindingsInput{}
  1454. }
  1455. output = &GetFindingsOutput{}
  1456. req = c.newRequest(op, input, output)
  1457. return
  1458. }
  1459. // GetFindings API operation for AWS SecurityHub.
  1460. //
  1461. // Lists and describes Security Hub-aggregated findings that are specified by
  1462. // filter attributes.
  1463. //
  1464. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1465. // with awserr.Error's Code and Message methods to get detailed information about
  1466. // the error.
  1467. //
  1468. // See the AWS API reference guide for AWS SecurityHub's
  1469. // API operation GetFindings for usage and error information.
  1470. //
  1471. // Returned Error Codes:
  1472. // * ErrCodeInternalException "InternalException"
  1473. // Internal server error.
  1474. //
  1475. // * ErrCodeInvalidInputException "InvalidInputException"
  1476. // The request was rejected because an invalid or out-of-range value was supplied
  1477. // for an input parameter.
  1478. //
  1479. // * ErrCodeLimitExceededException "LimitExceededException"
  1480. // The request was rejected because it attempted to create resources beyond
  1481. // the current AWS account limits. The error code describes the limit exceeded.
  1482. //
  1483. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1484. // The request was rejected because the specified resource cannot be found.
  1485. //
  1486. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetFindings
  1487. func (c *SecurityHub) GetFindings(input *GetFindingsInput) (*GetFindingsOutput, error) {
  1488. req, out := c.GetFindingsRequest(input)
  1489. return out, req.Send()
  1490. }
  1491. // GetFindingsWithContext is the same as GetFindings with the addition of
  1492. // the ability to pass a context and additional request options.
  1493. //
  1494. // See GetFindings for details on how to use this API operation.
  1495. //
  1496. // The context must be non-nil and will be used for request cancellation. If
  1497. // the context is nil a panic will occur. In the future the SDK may create
  1498. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1499. // for more information on using Contexts.
  1500. func (c *SecurityHub) GetFindingsWithContext(ctx aws.Context, input *GetFindingsInput, opts ...request.Option) (*GetFindingsOutput, error) {
  1501. req, out := c.GetFindingsRequest(input)
  1502. req.SetContext(ctx)
  1503. req.ApplyOptions(opts...)
  1504. return out, req.Send()
  1505. }
  1506. // GetFindingsPages iterates over the pages of a GetFindings operation,
  1507. // calling the "fn" function with the response data for each page. To stop
  1508. // iterating, return false from the fn function.
  1509. //
  1510. // See GetFindings method for more information on how to use this operation.
  1511. //
  1512. // Note: This operation can generate multiple requests to a service.
  1513. //
  1514. // // Example iterating over at most 3 pages of a GetFindings operation.
  1515. // pageNum := 0
  1516. // err := client.GetFindingsPages(params,
  1517. // func(page *GetFindingsOutput, lastPage bool) bool {
  1518. // pageNum++
  1519. // fmt.Println(page)
  1520. // return pageNum <= 3
  1521. // })
  1522. //
  1523. func (c *SecurityHub) GetFindingsPages(input *GetFindingsInput, fn func(*GetFindingsOutput, bool) bool) error {
  1524. return c.GetFindingsPagesWithContext(aws.BackgroundContext(), input, fn)
  1525. }
  1526. // GetFindingsPagesWithContext same as GetFindingsPages except
  1527. // it takes a Context and allows setting request options on the pages.
  1528. //
  1529. // The context must be non-nil and will be used for request cancellation. If
  1530. // the context is nil a panic will occur. In the future the SDK may create
  1531. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1532. // for more information on using Contexts.
  1533. func (c *SecurityHub) GetFindingsPagesWithContext(ctx aws.Context, input *GetFindingsInput, fn func(*GetFindingsOutput, bool) bool, opts ...request.Option) error {
  1534. p := request.Pagination{
  1535. NewRequest: func() (*request.Request, error) {
  1536. var inCpy *GetFindingsInput
  1537. if input != nil {
  1538. tmp := *input
  1539. inCpy = &tmp
  1540. }
  1541. req, _ := c.GetFindingsRequest(inCpy)
  1542. req.SetContext(ctx)
  1543. req.ApplyOptions(opts...)
  1544. return req, nil
  1545. },
  1546. }
  1547. cont := true
  1548. for p.Next() && cont {
  1549. cont = fn(p.Page().(*GetFindingsOutput), !p.HasNextPage())
  1550. }
  1551. return p.Err()
  1552. }
  1553. const opGetInsightResults = "GetInsightResults"
  1554. // GetInsightResultsRequest generates a "aws/request.Request" representing the
  1555. // client's request for the GetInsightResults operation. The "output" return
  1556. // value will be populated with the request's response once the request completes
  1557. // successfully.
  1558. //
  1559. // Use "Send" method on the returned Request to send the API call to the service.
  1560. // the "output" return value is not valid until after Send returns without error.
  1561. //
  1562. // See GetInsightResults for more information on using the GetInsightResults
  1563. // API call, and error handling.
  1564. //
  1565. // This method is useful when you want to inject custom logic or configuration
  1566. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1567. //
  1568. //
  1569. // // Example sending a request using the GetInsightResultsRequest method.
  1570. // req, resp := client.GetInsightResultsRequest(params)
  1571. //
  1572. // err := req.Send()
  1573. // if err == nil { // resp is now filled
  1574. // fmt.Println(resp)
  1575. // }
  1576. //
  1577. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetInsightResults
  1578. func (c *SecurityHub) GetInsightResultsRequest(input *GetInsightResultsInput) (req *request.Request, output *GetInsightResultsOutput) {
  1579. op := &request.Operation{
  1580. Name: opGetInsightResults,
  1581. HTTPMethod: "GET",
  1582. HTTPPath: "/insights/results/{InsightArn+}",
  1583. }
  1584. if input == nil {
  1585. input = &GetInsightResultsInput{}
  1586. }
  1587. output = &GetInsightResultsOutput{}
  1588. req = c.newRequest(op, input, output)
  1589. return
  1590. }
  1591. // GetInsightResults API operation for AWS SecurityHub.
  1592. //
  1593. // Lists the results of the Security Hub insight specified by the insight ARN.
  1594. //
  1595. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1596. // with awserr.Error's Code and Message methods to get detailed information about
  1597. // the error.
  1598. //
  1599. // See the AWS API reference guide for AWS SecurityHub's
  1600. // API operation GetInsightResults for usage and error information.
  1601. //
  1602. // Returned Error Codes:
  1603. // * ErrCodeInternalException "InternalException"
  1604. // Internal server error.
  1605. //
  1606. // * ErrCodeInvalidInputException "InvalidInputException"
  1607. // The request was rejected because an invalid or out-of-range value was supplied
  1608. // for an input parameter.
  1609. //
  1610. // * ErrCodeLimitExceededException "LimitExceededException"
  1611. // The request was rejected because it attempted to create resources beyond
  1612. // the current AWS account limits. The error code describes the limit exceeded.
  1613. //
  1614. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetInsightResults
  1615. func (c *SecurityHub) GetInsightResults(input *GetInsightResultsInput) (*GetInsightResultsOutput, error) {
  1616. req, out := c.GetInsightResultsRequest(input)
  1617. return out, req.Send()
  1618. }
  1619. // GetInsightResultsWithContext is the same as GetInsightResults with the addition of
  1620. // the ability to pass a context and additional request options.
  1621. //
  1622. // See GetInsightResults for details on how to use this API operation.
  1623. //
  1624. // The context must be non-nil and will be used for request cancellation. If
  1625. // the context is nil a panic will occur. In the future the SDK may create
  1626. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1627. // for more information on using Contexts.
  1628. func (c *SecurityHub) GetInsightResultsWithContext(ctx aws.Context, input *GetInsightResultsInput, opts ...request.Option) (*GetInsightResultsOutput, error) {
  1629. req, out := c.GetInsightResultsRequest(input)
  1630. req.SetContext(ctx)
  1631. req.ApplyOptions(opts...)
  1632. return out, req.Send()
  1633. }
  1634. const opGetInsights = "GetInsights"
  1635. // GetInsightsRequest generates a "aws/request.Request" representing the
  1636. // client's request for the GetInsights operation. The "output" return
  1637. // value will be populated with the request's response once the request completes
  1638. // successfully.
  1639. //
  1640. // Use "Send" method on the returned Request to send the API call to the service.
  1641. // the "output" return value is not valid until after Send returns without error.
  1642. //
  1643. // See GetInsights for more information on using the GetInsights
  1644. // API call, and error handling.
  1645. //
  1646. // This method is useful when you want to inject custom logic or configuration
  1647. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1648. //
  1649. //
  1650. // // Example sending a request using the GetInsightsRequest method.
  1651. // req, resp := client.GetInsightsRequest(params)
  1652. //
  1653. // err := req.Send()
  1654. // if err == nil { // resp is now filled
  1655. // fmt.Println(resp)
  1656. // }
  1657. //
  1658. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetInsights
  1659. func (c *SecurityHub) GetInsightsRequest(input *GetInsightsInput) (req *request.Request, output *GetInsightsOutput) {
  1660. op := &request.Operation{
  1661. Name: opGetInsights,
  1662. HTTPMethod: "POST",
  1663. HTTPPath: "/insights/get",
  1664. Paginator: &request.Paginator{
  1665. InputTokens: []string{"NextToken"},
  1666. OutputTokens: []string{"NextToken"},
  1667. LimitToken: "MaxResults",
  1668. TruncationToken: "",
  1669. },
  1670. }
  1671. if input == nil {
  1672. input = &GetInsightsInput{}
  1673. }
  1674. output = &GetInsightsOutput{}
  1675. req = c.newRequest(op, input, output)
  1676. return
  1677. }
  1678. // GetInsights API operation for AWS SecurityHub.
  1679. //
  1680. // Lists and describes insights that are specified by insight ARNs.
  1681. //
  1682. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1683. // with awserr.Error's Code and Message methods to get detailed information about
  1684. // the error.
  1685. //
  1686. // See the AWS API reference guide for AWS SecurityHub's
  1687. // API operation GetInsights for usage and error information.
  1688. //
  1689. // Returned Error Codes:
  1690. // * ErrCodeInternalException "InternalException"
  1691. // Internal server error.
  1692. //
  1693. // * ErrCodeInvalidInputException "InvalidInputException"
  1694. // The request was rejected because an invalid or out-of-range value was supplied
  1695. // for an input parameter.
  1696. //
  1697. // * ErrCodeLimitExceededException "LimitExceededException"
  1698. // The request was rejected because it attempted to create resources beyond
  1699. // the current AWS account limits. The error code describes the limit exceeded.
  1700. //
  1701. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetInsights
  1702. func (c *SecurityHub) GetInsights(input *GetInsightsInput) (*GetInsightsOutput, error) {
  1703. req, out := c.GetInsightsRequest(input)
  1704. return out, req.Send()
  1705. }
  1706. // GetInsightsWithContext is the same as GetInsights with the addition of
  1707. // the ability to pass a context and additional request options.
  1708. //
  1709. // See GetInsights for details on how to use this API operation.
  1710. //
  1711. // The context must be non-nil and will be used for request cancellation. If
  1712. // the context is nil a panic will occur. In the future the SDK may create
  1713. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1714. // for more information on using Contexts.
  1715. func (c *SecurityHub) GetInsightsWithContext(ctx aws.Context, input *GetInsightsInput, opts ...request.Option) (*GetInsightsOutput, error) {
  1716. req, out := c.GetInsightsRequest(input)
  1717. req.SetContext(ctx)
  1718. req.ApplyOptions(opts...)
  1719. return out, req.Send()
  1720. }
  1721. // GetInsightsPages iterates over the pages of a GetInsights operation,
  1722. // calling the "fn" function with the response data for each page. To stop
  1723. // iterating, return false from the fn function.
  1724. //
  1725. // See GetInsights method for more information on how to use this operation.
  1726. //
  1727. // Note: This operation can generate multiple requests to a service.
  1728. //
  1729. // // Example iterating over at most 3 pages of a GetInsights operation.
  1730. // pageNum := 0
  1731. // err := client.GetInsightsPages(params,
  1732. // func(page *GetInsightsOutput, lastPage bool) bool {
  1733. // pageNum++
  1734. // fmt.Println(page)
  1735. // return pageNum <= 3
  1736. // })
  1737. //
  1738. func (c *SecurityHub) GetInsightsPages(input *GetInsightsInput, fn func(*GetInsightsOutput, bool) bool) error {
  1739. return c.GetInsightsPagesWithContext(aws.BackgroundContext(), input, fn)
  1740. }
  1741. // GetInsightsPagesWithContext same as GetInsightsPages except
  1742. // it takes a Context and allows setting request options on the pages.
  1743. //
  1744. // The context must be non-nil and will be used for request cancellation. If
  1745. // the context is nil a panic will occur. In the future the SDK may create
  1746. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1747. // for more information on using Contexts.
  1748. func (c *SecurityHub) GetInsightsPagesWithContext(ctx aws.Context, input *GetInsightsInput, fn func(*GetInsightsOutput, bool) bool, opts ...request.Option) error {
  1749. p := request.Pagination{
  1750. NewRequest: func() (*request.Request, error) {
  1751. var inCpy *GetInsightsInput
  1752. if input != nil {
  1753. tmp := *input
  1754. inCpy = &tmp
  1755. }
  1756. req, _ := c.GetInsightsRequest(inCpy)
  1757. req.SetContext(ctx)
  1758. req.ApplyOptions(opts...)
  1759. return req, nil
  1760. },
  1761. }
  1762. cont := true
  1763. for p.Next() && cont {
  1764. cont = fn(p.Page().(*GetInsightsOutput), !p.HasNextPage())
  1765. }
  1766. return p.Err()
  1767. }
  1768. const opGetInvitationsCount = "GetInvitationsCount"
  1769. // GetInvitationsCountRequest generates a "aws/request.Request" representing the
  1770. // client's request for the GetInvitationsCount operation. The "output" return
  1771. // value will be populated with the request's response once the request completes
  1772. // successfully.
  1773. //
  1774. // Use "Send" method on the returned Request to send the API call to the service.
  1775. // the "output" return value is not valid until after Send returns without error.
  1776. //
  1777. // See GetInvitationsCount for more information on using the GetInvitationsCount
  1778. // API call, and error handling.
  1779. //
  1780. // This method is useful when you want to inject custom logic or configuration
  1781. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1782. //
  1783. //
  1784. // // Example sending a request using the GetInvitationsCountRequest method.
  1785. // req, resp := client.GetInvitationsCountRequest(params)
  1786. //
  1787. // err := req.Send()
  1788. // if err == nil { // resp is now filled
  1789. // fmt.Println(resp)
  1790. // }
  1791. //
  1792. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetInvitationsCount
  1793. func (c *SecurityHub) GetInvitationsCountRequest(input *GetInvitationsCountInput) (req *request.Request, output *GetInvitationsCountOutput) {
  1794. op := &request.Operation{
  1795. Name: opGetInvitationsCount,
  1796. HTTPMethod: "GET",
  1797. HTTPPath: "/invitations/count",
  1798. }
  1799. if input == nil {
  1800. input = &GetInvitationsCountInput{}
  1801. }
  1802. output = &GetInvitationsCountOutput{}
  1803. req = c.newRequest(op, input, output)
  1804. return
  1805. }
  1806. // GetInvitationsCount API operation for AWS SecurityHub.
  1807. //
  1808. // Returns the count of all Security Hub membership invitations that were sent
  1809. // to the current member account, not including the currently accepted invitation.
  1810. //
  1811. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1812. // with awserr.Error's Code and Message methods to get detailed information about
  1813. // the error.
  1814. //
  1815. // See the AWS API reference guide for AWS SecurityHub's
  1816. // API operation GetInvitationsCount for usage and error information.
  1817. //
  1818. // Returned Error Codes:
  1819. // * ErrCodeInternalException "InternalException"
  1820. // Internal server error.
  1821. //
  1822. // * ErrCodeInvalidInputException "InvalidInputException"
  1823. // The request was rejected because an invalid or out-of-range value was supplied
  1824. // for an input parameter.
  1825. //
  1826. // * ErrCodeLimitExceededException "LimitExceededException"
  1827. // The request was rejected because it attempted to create resources beyond
  1828. // the current AWS account limits. The error code describes the limit exceeded.
  1829. //
  1830. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1831. // The request was rejected because the specified resource cannot be found.
  1832. //
  1833. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetInvitationsCount
  1834. func (c *SecurityHub) GetInvitationsCount(input *GetInvitationsCountInput) (*GetInvitationsCountOutput, error) {
  1835. req, out := c.GetInvitationsCountRequest(input)
  1836. return out, req.Send()
  1837. }
  1838. // GetInvitationsCountWithContext is the same as GetInvitationsCount with the addition of
  1839. // the ability to pass a context and additional request options.
  1840. //
  1841. // See GetInvitationsCount for details on how to use this API operation.
  1842. //
  1843. // The context must be non-nil and will be used for request cancellation. If
  1844. // the context is nil a panic will occur. In the future the SDK may create
  1845. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1846. // for more information on using Contexts.
  1847. func (c *SecurityHub) GetInvitationsCountWithContext(ctx aws.Context, input *GetInvitationsCountInput, opts ...request.Option) (*GetInvitationsCountOutput, error) {
  1848. req, out := c.GetInvitationsCountRequest(input)
  1849. req.SetContext(ctx)
  1850. req.ApplyOptions(opts...)
  1851. return out, req.Send()
  1852. }
  1853. const opGetMasterAccount = "GetMasterAccount"
  1854. // GetMasterAccountRequest generates a "aws/request.Request" representing the
  1855. // client's request for the GetMasterAccount operation. The "output" return
  1856. // value will be populated with the request's response once the request completes
  1857. // successfully.
  1858. //
  1859. // Use "Send" method on the returned Request to send the API call to the service.
  1860. // the "output" return value is not valid until after Send returns without error.
  1861. //
  1862. // See GetMasterAccount for more information on using the GetMasterAccount
  1863. // API call, and error handling.
  1864. //
  1865. // This method is useful when you want to inject custom logic or configuration
  1866. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1867. //
  1868. //
  1869. // // Example sending a request using the GetMasterAccountRequest method.
  1870. // req, resp := client.GetMasterAccountRequest(params)
  1871. //
  1872. // err := req.Send()
  1873. // if err == nil { // resp is now filled
  1874. // fmt.Println(resp)
  1875. // }
  1876. //
  1877. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetMasterAccount
  1878. func (c *SecurityHub) GetMasterAccountRequest(input *GetMasterAccountInput) (req *request.Request, output *GetMasterAccountOutput) {
  1879. op := &request.Operation{
  1880. Name: opGetMasterAccount,
  1881. HTTPMethod: "GET",
  1882. HTTPPath: "/master",
  1883. }
  1884. if input == nil {
  1885. input = &GetMasterAccountInput{}
  1886. }
  1887. output = &GetMasterAccountOutput{}
  1888. req = c.newRequest(op, input, output)
  1889. return
  1890. }
  1891. // GetMasterAccount API operation for AWS SecurityHub.
  1892. //
  1893. // Provides the details for the Security Hub master account to the current member
  1894. // account.
  1895. //
  1896. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1897. // with awserr.Error's Code and Message methods to get detailed information about
  1898. // the error.
  1899. //
  1900. // See the AWS API reference guide for AWS SecurityHub's
  1901. // API operation GetMasterAccount for usage and error information.
  1902. //
  1903. // Returned Error Codes:
  1904. // * ErrCodeInternalException "InternalException"
  1905. // Internal server error.
  1906. //
  1907. // * ErrCodeInvalidInputException "InvalidInputException"
  1908. // The request was rejected because an invalid or out-of-range value was supplied
  1909. // for an input parameter.
  1910. //
  1911. // * ErrCodeLimitExceededException "LimitExceededException"
  1912. // The request was rejected because it attempted to create resources beyond
  1913. // the current AWS account limits. The error code describes the limit exceeded.
  1914. //
  1915. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1916. // The request was rejected because the specified resource cannot be found.
  1917. //
  1918. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetMasterAccount
  1919. func (c *SecurityHub) GetMasterAccount(input *GetMasterAccountInput) (*GetMasterAccountOutput, error) {
  1920. req, out := c.GetMasterAccountRequest(input)
  1921. return out, req.Send()
  1922. }
  1923. // GetMasterAccountWithContext is the same as GetMasterAccount with the addition of
  1924. // the ability to pass a context and additional request options.
  1925. //
  1926. // See GetMasterAccount for details on how to use this API operation.
  1927. //
  1928. // The context must be non-nil and will be used for request cancellation. If
  1929. // the context is nil a panic will occur. In the future the SDK may create
  1930. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1931. // for more information on using Contexts.
  1932. func (c *SecurityHub) GetMasterAccountWithContext(ctx aws.Context, input *GetMasterAccountInput, opts ...request.Option) (*GetMasterAccountOutput, error) {
  1933. req, out := c.GetMasterAccountRequest(input)
  1934. req.SetContext(ctx)
  1935. req.ApplyOptions(opts...)
  1936. return out, req.Send()
  1937. }
  1938. const opGetMembers = "GetMembers"
  1939. // GetMembersRequest generates a "aws/request.Request" representing the
  1940. // client's request for the GetMembers operation. The "output" return
  1941. // value will be populated with the request's response once the request completes
  1942. // successfully.
  1943. //
  1944. // Use "Send" method on the returned Request to send the API call to the service.
  1945. // the "output" return value is not valid until after Send returns without error.
  1946. //
  1947. // See GetMembers for more information on using the GetMembers
  1948. // API call, and error handling.
  1949. //
  1950. // This method is useful when you want to inject custom logic or configuration
  1951. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1952. //
  1953. //
  1954. // // Example sending a request using the GetMembersRequest method.
  1955. // req, resp := client.GetMembersRequest(params)
  1956. //
  1957. // err := req.Send()
  1958. // if err == nil { // resp is now filled
  1959. // fmt.Println(resp)
  1960. // }
  1961. //
  1962. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetMembers
  1963. func (c *SecurityHub) GetMembersRequest(input *GetMembersInput) (req *request.Request, output *GetMembersOutput) {
  1964. op := &request.Operation{
  1965. Name: opGetMembers,
  1966. HTTPMethod: "POST",
  1967. HTTPPath: "/members/get",
  1968. }
  1969. if input == nil {
  1970. input = &GetMembersInput{}
  1971. }
  1972. output = &GetMembersOutput{}
  1973. req = c.newRequest(op, input, output)
  1974. return
  1975. }
  1976. // GetMembers API operation for AWS SecurityHub.
  1977. //
  1978. // Returns the details on the Security Hub member accounts that are specified
  1979. // by the account IDs.
  1980. //
  1981. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1982. // with awserr.Error's Code and Message methods to get detailed information about
  1983. // the error.
  1984. //
  1985. // See the AWS API reference guide for AWS SecurityHub's
  1986. // API operation GetMembers for usage and error information.
  1987. //
  1988. // Returned Error Codes:
  1989. // * ErrCodeInternalException "InternalException"
  1990. // Internal server error.
  1991. //
  1992. // * ErrCodeInvalidInputException "InvalidInputException"
  1993. // The request was rejected because an invalid or out-of-range value was supplied
  1994. // for an input parameter.
  1995. //
  1996. // * ErrCodeLimitExceededException "LimitExceededException"
  1997. // The request was rejected because it attempted to create resources beyond
  1998. // the current AWS account limits. The error code describes the limit exceeded.
  1999. //
  2000. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  2001. // The request was rejected because the specified resource cannot be found.
  2002. //
  2003. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetMembers
  2004. func (c *SecurityHub) GetMembers(input *GetMembersInput) (*GetMembersOutput, error) {
  2005. req, out := c.GetMembersRequest(input)
  2006. return out, req.Send()
  2007. }
  2008. // GetMembersWithContext is the same as GetMembers with the addition of
  2009. // the ability to pass a context and additional request options.
  2010. //
  2011. // See GetMembers for details on how to use this API operation.
  2012. //
  2013. // The context must be non-nil and will be used for request cancellation. If
  2014. // the context is nil a panic will occur. In the future the SDK may create
  2015. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2016. // for more information on using Contexts.
  2017. func (c *SecurityHub) GetMembersWithContext(ctx aws.Context, input *GetMembersInput, opts ...request.Option) (*GetMembersOutput, error) {
  2018. req, out := c.GetMembersRequest(input)
  2019. req.SetContext(ctx)
  2020. req.ApplyOptions(opts...)
  2021. return out, req.Send()
  2022. }
  2023. const opInviteMembers = "InviteMembers"
  2024. // InviteMembersRequest generates a "aws/request.Request" representing the
  2025. // client's request for the InviteMembers operation. The "output" return
  2026. // value will be populated with the request's response once the request completes
  2027. // successfully.
  2028. //
  2029. // Use "Send" method on the returned Request to send the API call to the service.
  2030. // the "output" return value is not valid until after Send returns without error.
  2031. //
  2032. // See InviteMembers for more information on using the InviteMembers
  2033. // API call, and error handling.
  2034. //
  2035. // This method is useful when you want to inject custom logic or configuration
  2036. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2037. //
  2038. //
  2039. // // Example sending a request using the InviteMembersRequest method.
  2040. // req, resp := client.InviteMembersRequest(params)
  2041. //
  2042. // err := req.Send()
  2043. // if err == nil { // resp is now filled
  2044. // fmt.Println(resp)
  2045. // }
  2046. //
  2047. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/InviteMembers
  2048. func (c *SecurityHub) InviteMembersRequest(input *InviteMembersInput) (req *request.Request, output *InviteMembersOutput) {
  2049. op := &request.Operation{
  2050. Name: opInviteMembers,
  2051. HTTPMethod: "POST",
  2052. HTTPPath: "/members/invite",
  2053. }
  2054. if input == nil {
  2055. input = &InviteMembersInput{}
  2056. }
  2057. output = &InviteMembersOutput{}
  2058. req = c.newRequest(op, input, output)
  2059. return
  2060. }
  2061. // InviteMembers API operation for AWS SecurityHub.
  2062. //
  2063. // Invites other AWS accounts to enable Security Hub and become Security Hub
  2064. // member accounts. When an account accepts the invitation and becomes a member
  2065. // account, the master account can view Security Hub findings of the member
  2066. // account.
  2067. //
  2068. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2069. // with awserr.Error's Code and Message methods to get detailed information about
  2070. // the error.
  2071. //
  2072. // See the AWS API reference guide for AWS SecurityHub's
  2073. // API operation InviteMembers for usage and error information.
  2074. //
  2075. // Returned Error Codes:
  2076. // * ErrCodeInternalException "InternalException"
  2077. // Internal server error.
  2078. //
  2079. // * ErrCodeInvalidInputException "InvalidInputException"
  2080. // The request was rejected because an invalid or out-of-range value was supplied
  2081. // for an input parameter.
  2082. //
  2083. // * ErrCodeLimitExceededException "LimitExceededException"
  2084. // The request was rejected because it attempted to create resources beyond
  2085. // the current AWS account limits. The error code describes the limit exceeded.
  2086. //
  2087. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  2088. // The request was rejected because the specified resource cannot be found.
  2089. //
  2090. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/InviteMembers
  2091. func (c *SecurityHub) InviteMembers(input *InviteMembersInput) (*InviteMembersOutput, error) {
  2092. req, out := c.InviteMembersRequest(input)
  2093. return out, req.Send()
  2094. }
  2095. // InviteMembersWithContext is the same as InviteMembers with the addition of
  2096. // the ability to pass a context and additional request options.
  2097. //
  2098. // See InviteMembers for details on how to use this API operation.
  2099. //
  2100. // The context must be non-nil and will be used for request cancellation. If
  2101. // the context is nil a panic will occur. In the future the SDK may create
  2102. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2103. // for more information on using Contexts.
  2104. func (c *SecurityHub) InviteMembersWithContext(ctx aws.Context, input *InviteMembersInput, opts ...request.Option) (*InviteMembersOutput, error) {
  2105. req, out := c.InviteMembersRequest(input)
  2106. req.SetContext(ctx)
  2107. req.ApplyOptions(opts...)
  2108. return out, req.Send()
  2109. }
  2110. const opListEnabledProductsForImport = "ListEnabledProductsForImport"
  2111. // ListEnabledProductsForImportRequest generates a "aws/request.Request" representing the
  2112. // client's request for the ListEnabledProductsForImport operation. The "output" return
  2113. // value will be populated with the request's response once the request completes
  2114. // successfully.
  2115. //
  2116. // Use "Send" method on the returned Request to send the API call to the service.
  2117. // the "output" return value is not valid until after Send returns without error.
  2118. //
  2119. // See ListEnabledProductsForImport for more information on using the ListEnabledProductsForImport
  2120. // API call, and error handling.
  2121. //
  2122. // This method is useful when you want to inject custom logic or configuration
  2123. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2124. //
  2125. //
  2126. // // Example sending a request using the ListEnabledProductsForImportRequest method.
  2127. // req, resp := client.ListEnabledProductsForImportRequest(params)
  2128. //
  2129. // err := req.Send()
  2130. // if err == nil { // resp is now filled
  2131. // fmt.Println(resp)
  2132. // }
  2133. //
  2134. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/ListEnabledProductsForImport
  2135. func (c *SecurityHub) ListEnabledProductsForImportRequest(input *ListEnabledProductsForImportInput) (req *request.Request, output *ListEnabledProductsForImportOutput) {
  2136. op := &request.Operation{
  2137. Name: opListEnabledProductsForImport,
  2138. HTTPMethod: "GET",
  2139. HTTPPath: "/productSubscriptions",
  2140. Paginator: &request.Paginator{
  2141. InputTokens: []string{"NextToken"},
  2142. OutputTokens: []string{"NextToken"},
  2143. LimitToken: "MaxResults",
  2144. TruncationToken: "",
  2145. },
  2146. }
  2147. if input == nil {
  2148. input = &ListEnabledProductsForImportInput{}
  2149. }
  2150. output = &ListEnabledProductsForImportOutput{}
  2151. req = c.newRequest(op, input, output)
  2152. return
  2153. }
  2154. // ListEnabledProductsForImport API operation for AWS SecurityHub.
  2155. //
  2156. // Lists all Security Hub-integrated third-party findings providers.
  2157. //
  2158. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2159. // with awserr.Error's Code and Message methods to get detailed information about
  2160. // the error.
  2161. //
  2162. // See the AWS API reference guide for AWS SecurityHub's
  2163. // API operation ListEnabledProductsForImport for usage and error information.
  2164. //
  2165. // Returned Error Codes:
  2166. // * ErrCodeInternalException "InternalException"
  2167. // Internal server error.
  2168. //
  2169. // * ErrCodeLimitExceededException "LimitExceededException"
  2170. // The request was rejected because it attempted to create resources beyond
  2171. // the current AWS account limits. The error code describes the limit exceeded.
  2172. //
  2173. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/ListEnabledProductsForImport
  2174. func (c *SecurityHub) ListEnabledProductsForImport(input *ListEnabledProductsForImportInput) (*ListEnabledProductsForImportOutput, error) {
  2175. req, out := c.ListEnabledProductsForImportRequest(input)
  2176. return out, req.Send()
  2177. }
  2178. // ListEnabledProductsForImportWithContext is the same as ListEnabledProductsForImport with the addition of
  2179. // the ability to pass a context and additional request options.
  2180. //
  2181. // See ListEnabledProductsForImport for details on how to use this API operation.
  2182. //
  2183. // The context must be non-nil and will be used for request cancellation. If
  2184. // the context is nil a panic will occur. In the future the SDK may create
  2185. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2186. // for more information on using Contexts.
  2187. func (c *SecurityHub) ListEnabledProductsForImportWithContext(ctx aws.Context, input *ListEnabledProductsForImportInput, opts ...request.Option) (*ListEnabledProductsForImportOutput, error) {
  2188. req, out := c.ListEnabledProductsForImportRequest(input)
  2189. req.SetContext(ctx)
  2190. req.ApplyOptions(opts...)
  2191. return out, req.Send()
  2192. }
  2193. // ListEnabledProductsForImportPages iterates over the pages of a ListEnabledProductsForImport operation,
  2194. // calling the "fn" function with the response data for each page. To stop
  2195. // iterating, return false from the fn function.
  2196. //
  2197. // See ListEnabledProductsForImport method for more information on how to use this operation.
  2198. //
  2199. // Note: This operation can generate multiple requests to a service.
  2200. //
  2201. // // Example iterating over at most 3 pages of a ListEnabledProductsForImport operation.
  2202. // pageNum := 0
  2203. // err := client.ListEnabledProductsForImportPages(params,
  2204. // func(page *ListEnabledProductsForImportOutput, lastPage bool) bool {
  2205. // pageNum++
  2206. // fmt.Println(page)
  2207. // return pageNum <= 3
  2208. // })
  2209. //
  2210. func (c *SecurityHub) ListEnabledProductsForImportPages(input *ListEnabledProductsForImportInput, fn func(*ListEnabledProductsForImportOutput, bool) bool) error {
  2211. return c.ListEnabledProductsForImportPagesWithContext(aws.BackgroundContext(), input, fn)
  2212. }
  2213. // ListEnabledProductsForImportPagesWithContext same as ListEnabledProductsForImportPages except
  2214. // it takes a Context and allows setting request options on the pages.
  2215. //
  2216. // The context must be non-nil and will be used for request cancellation. If
  2217. // the context is nil a panic will occur. In the future the SDK may create
  2218. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2219. // for more information on using Contexts.
  2220. func (c *SecurityHub) ListEnabledProductsForImportPagesWithContext(ctx aws.Context, input *ListEnabledProductsForImportInput, fn func(*ListEnabledProductsForImportOutput, bool) bool, opts ...request.Option) error {
  2221. p := request.Pagination{
  2222. NewRequest: func() (*request.Request, error) {
  2223. var inCpy *ListEnabledProductsForImportInput
  2224. if input != nil {
  2225. tmp := *input
  2226. inCpy = &tmp
  2227. }
  2228. req, _ := c.ListEnabledProductsForImportRequest(inCpy)
  2229. req.SetContext(ctx)
  2230. req.ApplyOptions(opts...)
  2231. return req, nil
  2232. },
  2233. }
  2234. cont := true
  2235. for p.Next() && cont {
  2236. cont = fn(p.Page().(*ListEnabledProductsForImportOutput), !p.HasNextPage())
  2237. }
  2238. return p.Err()
  2239. }
  2240. const opListInvitations = "ListInvitations"
  2241. // ListInvitationsRequest generates a "aws/request.Request" representing the
  2242. // client's request for the ListInvitations operation. The "output" return
  2243. // value will be populated with the request's response once the request completes
  2244. // successfully.
  2245. //
  2246. // Use "Send" method on the returned Request to send the API call to the service.
  2247. // the "output" return value is not valid until after Send returns without error.
  2248. //
  2249. // See ListInvitations for more information on using the ListInvitations
  2250. // API call, and error handling.
  2251. //
  2252. // This method is useful when you want to inject custom logic or configuration
  2253. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2254. //
  2255. //
  2256. // // Example sending a request using the ListInvitationsRequest method.
  2257. // req, resp := client.ListInvitationsRequest(params)
  2258. //
  2259. // err := req.Send()
  2260. // if err == nil { // resp is now filled
  2261. // fmt.Println(resp)
  2262. // }
  2263. //
  2264. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/ListInvitations
  2265. func (c *SecurityHub) ListInvitationsRequest(input *ListInvitationsInput) (req *request.Request, output *ListInvitationsOutput) {
  2266. op := &request.Operation{
  2267. Name: opListInvitations,
  2268. HTTPMethod: "GET",
  2269. HTTPPath: "/invitations",
  2270. }
  2271. if input == nil {
  2272. input = &ListInvitationsInput{}
  2273. }
  2274. output = &ListInvitationsOutput{}
  2275. req = c.newRequest(op, input, output)
  2276. return
  2277. }
  2278. // ListInvitations API operation for AWS SecurityHub.
  2279. //
  2280. // Lists all Security Hub membership invitations that were sent to the current
  2281. // AWS account.
  2282. //
  2283. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2284. // with awserr.Error's Code and Message methods to get detailed information about
  2285. // the error.
  2286. //
  2287. // See the AWS API reference guide for AWS SecurityHub's
  2288. // API operation ListInvitations for usage and error information.
  2289. //
  2290. // Returned Error Codes:
  2291. // * ErrCodeInternalException "InternalException"
  2292. // Internal server error.
  2293. //
  2294. // * ErrCodeInvalidInputException "InvalidInputException"
  2295. // The request was rejected because an invalid or out-of-range value was supplied
  2296. // for an input parameter.
  2297. //
  2298. // * ErrCodeLimitExceededException "LimitExceededException"
  2299. // The request was rejected because it attempted to create resources beyond
  2300. // the current AWS account limits. The error code describes the limit exceeded.
  2301. //
  2302. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  2303. // The request was rejected because the specified resource cannot be found.
  2304. //
  2305. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/ListInvitations
  2306. func (c *SecurityHub) ListInvitations(input *ListInvitationsInput) (*ListInvitationsOutput, error) {
  2307. req, out := c.ListInvitationsRequest(input)
  2308. return out, req.Send()
  2309. }
  2310. // ListInvitationsWithContext is the same as ListInvitations with the addition of
  2311. // the ability to pass a context and additional request options.
  2312. //
  2313. // See ListInvitations for details on how to use this API operation.
  2314. //
  2315. // The context must be non-nil and will be used for request cancellation. If
  2316. // the context is nil a panic will occur. In the future the SDK may create
  2317. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2318. // for more information on using Contexts.
  2319. func (c *SecurityHub) ListInvitationsWithContext(ctx aws.Context, input *ListInvitationsInput, opts ...request.Option) (*ListInvitationsOutput, error) {
  2320. req, out := c.ListInvitationsRequest(input)
  2321. req.SetContext(ctx)
  2322. req.ApplyOptions(opts...)
  2323. return out, req.Send()
  2324. }
  2325. const opListMembers = "ListMembers"
  2326. // ListMembersRequest generates a "aws/request.Request" representing the
  2327. // client's request for the ListMembers operation. The "output" return
  2328. // value will be populated with the request's response once the request completes
  2329. // successfully.
  2330. //
  2331. // Use "Send" method on the returned Request to send the API call to the service.
  2332. // the "output" return value is not valid until after Send returns without error.
  2333. //
  2334. // See ListMembers for more information on using the ListMembers
  2335. // API call, and error handling.
  2336. //
  2337. // This method is useful when you want to inject custom logic or configuration
  2338. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2339. //
  2340. //
  2341. // // Example sending a request using the ListMembersRequest method.
  2342. // req, resp := client.ListMembersRequest(params)
  2343. //
  2344. // err := req.Send()
  2345. // if err == nil { // resp is now filled
  2346. // fmt.Println(resp)
  2347. // }
  2348. //
  2349. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/ListMembers
  2350. func (c *SecurityHub) ListMembersRequest(input *ListMembersInput) (req *request.Request, output *ListMembersOutput) {
  2351. op := &request.Operation{
  2352. Name: opListMembers,
  2353. HTTPMethod: "GET",
  2354. HTTPPath: "/members",
  2355. }
  2356. if input == nil {
  2357. input = &ListMembersInput{}
  2358. }
  2359. output = &ListMembersOutput{}
  2360. req = c.newRequest(op, input, output)
  2361. return
  2362. }
  2363. // ListMembers API operation for AWS SecurityHub.
  2364. //
  2365. // Lists details about all member accounts for the current Security Hub master
  2366. // account.
  2367. //
  2368. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2369. // with awserr.Error's Code and Message methods to get detailed information about
  2370. // the error.
  2371. //
  2372. // See the AWS API reference guide for AWS SecurityHub's
  2373. // API operation ListMembers for usage and error information.
  2374. //
  2375. // Returned Error Codes:
  2376. // * ErrCodeInternalException "InternalException"
  2377. // Internal server error.
  2378. //
  2379. // * ErrCodeInvalidInputException "InvalidInputException"
  2380. // The request was rejected because an invalid or out-of-range value was supplied
  2381. // for an input parameter.
  2382. //
  2383. // * ErrCodeLimitExceededException "LimitExceededException"
  2384. // The request was rejected because it attempted to create resources beyond
  2385. // the current AWS account limits. The error code describes the limit exceeded.
  2386. //
  2387. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  2388. // The request was rejected because the specified resource cannot be found.
  2389. //
  2390. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/ListMembers
  2391. func (c *SecurityHub) ListMembers(input *ListMembersInput) (*ListMembersOutput, error) {
  2392. req, out := c.ListMembersRequest(input)
  2393. return out, req.Send()
  2394. }
  2395. // ListMembersWithContext is the same as ListMembers with the addition of
  2396. // the ability to pass a context and additional request options.
  2397. //
  2398. // See ListMembers for details on how to use this API operation.
  2399. //
  2400. // The context must be non-nil and will be used for request cancellation. If
  2401. // the context is nil a panic will occur. In the future the SDK may create
  2402. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2403. // for more information on using Contexts.
  2404. func (c *SecurityHub) ListMembersWithContext(ctx aws.Context, input *ListMembersInput, opts ...request.Option) (*ListMembersOutput, error) {
  2405. req, out := c.ListMembersRequest(input)
  2406. req.SetContext(ctx)
  2407. req.ApplyOptions(opts...)
  2408. return out, req.Send()
  2409. }
  2410. const opUpdateFindings = "UpdateFindings"
  2411. // UpdateFindingsRequest generates a "aws/request.Request" representing the
  2412. // client's request for the UpdateFindings operation. The "output" return
  2413. // value will be populated with the request's response once the request completes
  2414. // successfully.
  2415. //
  2416. // Use "Send" method on the returned Request to send the API call to the service.
  2417. // the "output" return value is not valid until after Send returns without error.
  2418. //
  2419. // See UpdateFindings for more information on using the UpdateFindings
  2420. // API call, and error handling.
  2421. //
  2422. // This method is useful when you want to inject custom logic or configuration
  2423. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2424. //
  2425. //
  2426. // // Example sending a request using the UpdateFindingsRequest method.
  2427. // req, resp := client.UpdateFindingsRequest(params)
  2428. //
  2429. // err := req.Send()
  2430. // if err == nil { // resp is now filled
  2431. // fmt.Println(resp)
  2432. // }
  2433. //
  2434. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/UpdateFindings
  2435. func (c *SecurityHub) UpdateFindingsRequest(input *UpdateFindingsInput) (req *request.Request, output *UpdateFindingsOutput) {
  2436. op := &request.Operation{
  2437. Name: opUpdateFindings,
  2438. HTTPMethod: "PATCH",
  2439. HTTPPath: "/findings",
  2440. }
  2441. if input == nil {
  2442. input = &UpdateFindingsInput{}
  2443. }
  2444. output = &UpdateFindingsOutput{}
  2445. req = c.newRequest(op, input, output)
  2446. req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2447. return
  2448. }
  2449. // UpdateFindings API operation for AWS SecurityHub.
  2450. //
  2451. // Updates the AWS Security Hub-aggregated findings specified by the filter
  2452. // attributes.
  2453. //
  2454. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2455. // with awserr.Error's Code and Message methods to get detailed information about
  2456. // the error.
  2457. //
  2458. // See the AWS API reference guide for AWS SecurityHub's
  2459. // API operation UpdateFindings for usage and error information.
  2460. //
  2461. // Returned Error Codes:
  2462. // * ErrCodeInternalException "InternalException"
  2463. // Internal server error.
  2464. //
  2465. // * ErrCodeInvalidInputException "InvalidInputException"
  2466. // The request was rejected because an invalid or out-of-range value was supplied
  2467. // for an input parameter.
  2468. //
  2469. // * ErrCodeLimitExceededException "LimitExceededException"
  2470. // The request was rejected because it attempted to create resources beyond
  2471. // the current AWS account limits. The error code describes the limit exceeded.
  2472. //
  2473. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  2474. // The request was rejected because the specified resource cannot be found.
  2475. //
  2476. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/UpdateFindings
  2477. func (c *SecurityHub) UpdateFindings(input *UpdateFindingsInput) (*UpdateFindingsOutput, error) {
  2478. req, out := c.UpdateFindingsRequest(input)
  2479. return out, req.Send()
  2480. }
  2481. // UpdateFindingsWithContext is the same as UpdateFindings with the addition of
  2482. // the ability to pass a context and additional request options.
  2483. //
  2484. // See UpdateFindings for details on how to use this API operation.
  2485. //
  2486. // The context must be non-nil and will be used for request cancellation. If
  2487. // the context is nil a panic will occur. In the future the SDK may create
  2488. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2489. // for more information on using Contexts.
  2490. func (c *SecurityHub) UpdateFindingsWithContext(ctx aws.Context, input *UpdateFindingsInput, opts ...request.Option) (*UpdateFindingsOutput, error) {
  2491. req, out := c.UpdateFindingsRequest(input)
  2492. req.SetContext(ctx)
  2493. req.ApplyOptions(opts...)
  2494. return out, req.Send()
  2495. }
  2496. const opUpdateInsight = "UpdateInsight"
  2497. // UpdateInsightRequest generates a "aws/request.Request" representing the
  2498. // client's request for the UpdateInsight operation. The "output" return
  2499. // value will be populated with the request's response once the request completes
  2500. // successfully.
  2501. //
  2502. // Use "Send" method on the returned Request to send the API call to the service.
  2503. // the "output" return value is not valid until after Send returns without error.
  2504. //
  2505. // See UpdateInsight for more information on using the UpdateInsight
  2506. // API call, and error handling.
  2507. //
  2508. // This method is useful when you want to inject custom logic or configuration
  2509. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2510. //
  2511. //
  2512. // // Example sending a request using the UpdateInsightRequest method.
  2513. // req, resp := client.UpdateInsightRequest(params)
  2514. //
  2515. // err := req.Send()
  2516. // if err == nil { // resp is now filled
  2517. // fmt.Println(resp)
  2518. // }
  2519. //
  2520. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/UpdateInsight
  2521. func (c *SecurityHub) UpdateInsightRequest(input *UpdateInsightInput) (req *request.Request, output *UpdateInsightOutput) {
  2522. op := &request.Operation{
  2523. Name: opUpdateInsight,
  2524. HTTPMethod: "PATCH",
  2525. HTTPPath: "/insights/{InsightArn+}",
  2526. }
  2527. if input == nil {
  2528. input = &UpdateInsightInput{}
  2529. }
  2530. output = &UpdateInsightOutput{}
  2531. req = c.newRequest(op, input, output)
  2532. req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2533. return
  2534. }
  2535. // UpdateInsight API operation for AWS SecurityHub.
  2536. //
  2537. // Updates the AWS Security Hub insight specified by the insight ARN.
  2538. //
  2539. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2540. // with awserr.Error's Code and Message methods to get detailed information about
  2541. // the error.
  2542. //
  2543. // See the AWS API reference guide for AWS SecurityHub's
  2544. // API operation UpdateInsight for usage and error information.
  2545. //
  2546. // Returned Error Codes:
  2547. // * ErrCodeInternalException "InternalException"
  2548. // Internal server error.
  2549. //
  2550. // * ErrCodeInvalidInputException "InvalidInputException"
  2551. // The request was rejected because an invalid or out-of-range value was supplied
  2552. // for an input parameter.
  2553. //
  2554. // * ErrCodeLimitExceededException "LimitExceededException"
  2555. // The request was rejected because it attempted to create resources beyond
  2556. // the current AWS account limits. The error code describes the limit exceeded.
  2557. //
  2558. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  2559. // The request was rejected because the specified resource cannot be found.
  2560. //
  2561. // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/UpdateInsight
  2562. func (c *SecurityHub) UpdateInsight(input *UpdateInsightInput) (*UpdateInsightOutput, error) {
  2563. req, out := c.UpdateInsightRequest(input)
  2564. return out, req.Send()
  2565. }
  2566. // UpdateInsightWithContext is the same as UpdateInsight with the addition of
  2567. // the ability to pass a context and additional request options.
  2568. //
  2569. // See UpdateInsight for details on how to use this API operation.
  2570. //
  2571. // The context must be non-nil and will be used for request cancellation. If
  2572. // the context is nil a panic will occur. In the future the SDK may create
  2573. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2574. // for more information on using Contexts.
  2575. func (c *SecurityHub) UpdateInsightWithContext(ctx aws.Context, input *UpdateInsightInput, opts ...request.Option) (*UpdateInsightOutput, error) {
  2576. req, out := c.UpdateInsightRequest(input)
  2577. req.SetContext(ctx)
  2578. req.ApplyOptions(opts...)
  2579. return out, req.Send()
  2580. }
  2581. type AcceptInvitationInput struct {
  2582. _ struct{} `type:"structure"`
  2583. // The ID of the invitation that is sent to the AWS account by the Security
  2584. // Hub master account.
  2585. InvitationId *string `type:"string"`
  2586. // The account ID of the master Security Hub account whose invitation you're
  2587. // accepting.
  2588. MasterId *string `type:"string"`
  2589. }
  2590. // String returns the string representation
  2591. func (s AcceptInvitationInput) String() string {
  2592. return awsutil.Prettify(s)
  2593. }
  2594. // GoString returns the string representation
  2595. func (s AcceptInvitationInput) GoString() string {
  2596. return s.String()
  2597. }
  2598. // SetInvitationId sets the InvitationId field's value.
  2599. func (s *AcceptInvitationInput) SetInvitationId(v string) *AcceptInvitationInput {
  2600. s.InvitationId = &v
  2601. return s
  2602. }
  2603. // SetMasterId sets the MasterId field's value.
  2604. func (s *AcceptInvitationInput) SetMasterId(v string) *AcceptInvitationInput {
  2605. s.MasterId = &v
  2606. return s
  2607. }
  2608. type AcceptInvitationOutput struct {
  2609. _ struct{} `type:"structure"`
  2610. }
  2611. // String returns the string representation
  2612. func (s AcceptInvitationOutput) String() string {
  2613. return awsutil.Prettify(s)
  2614. }
  2615. // GoString returns the string representation
  2616. func (s AcceptInvitationOutput) GoString() string {
  2617. return s.String()
  2618. }
  2619. // The details of an AWS account.
  2620. type AccountDetails struct {
  2621. _ struct{} `type:"structure"`
  2622. // The ID of an AWS account.
  2623. AccountId *string `type:"string"`
  2624. // The email of an AWS account.
  2625. Email *string `type:"string"`
  2626. }
  2627. // String returns the string representation
  2628. func (s AccountDetails) String() string {
  2629. return awsutil.Prettify(s)
  2630. }
  2631. // GoString returns the string representation
  2632. func (s AccountDetails) GoString() string {
  2633. return s.String()
  2634. }
  2635. // SetAccountId sets the AccountId field's value.
  2636. func (s *AccountDetails) SetAccountId(v string) *AccountDetails {
  2637. s.AccountId = &v
  2638. return s
  2639. }
  2640. // SetEmail sets the Email field's value.
  2641. func (s *AccountDetails) SetEmail(v string) *AccountDetails {
  2642. s.Email = &v
  2643. return s
  2644. }
  2645. // The details of an AWS EC2 instance.
  2646. type AwsEc2InstanceDetails struct {
  2647. _ struct{} `type:"structure"`
  2648. // The IAM profile ARN of the instance.
  2649. IamInstanceProfileArn *string `type:"string"`
  2650. // The Amazon Machine Image (AMI) ID of the instance.
  2651. ImageId *string `type:"string"`
  2652. // The IPv4 addresses associated with the instance.
  2653. IpV4Addresses []*string `type:"list"`
  2654. // The IPv6 addresses associated with the instance.
  2655. IpV6Addresses []*string `type:"list"`
  2656. // The key name associated with the instance.
  2657. KeyName *string `type:"string"`
  2658. // The date/time the instance was launched.
  2659. LaunchedAt *string `type:"string"`
  2660. // The identifier of the subnet in which the instance was launched.
  2661. SubnetId *string `type:"string"`
  2662. // The instance type of the instance.
  2663. Type *string `type:"string"`
  2664. // The identifier of the VPC in which the instance was launched.
  2665. VpcId *string `type:"string"`
  2666. }
  2667. // String returns the string representation
  2668. func (s AwsEc2InstanceDetails) String() string {
  2669. return awsutil.Prettify(s)
  2670. }
  2671. // GoString returns the string representation
  2672. func (s AwsEc2InstanceDetails) GoString() string {
  2673. return s.String()
  2674. }
  2675. // SetIamInstanceProfileArn sets the IamInstanceProfileArn field's value.
  2676. func (s *AwsEc2InstanceDetails) SetIamInstanceProfileArn(v string) *AwsEc2InstanceDetails {
  2677. s.IamInstanceProfileArn = &v
  2678. return s
  2679. }
  2680. // SetImageId sets the ImageId field's value.
  2681. func (s *AwsEc2InstanceDetails) SetImageId(v string) *AwsEc2InstanceDetails {
  2682. s.ImageId = &v
  2683. return s
  2684. }
  2685. // SetIpV4Addresses sets the IpV4Addresses field's value.
  2686. func (s *AwsEc2InstanceDetails) SetIpV4Addresses(v []*string) *AwsEc2InstanceDetails {
  2687. s.IpV4Addresses = v
  2688. return s
  2689. }
  2690. // SetIpV6Addresses sets the IpV6Addresses field's value.
  2691. func (s *AwsEc2InstanceDetails) SetIpV6Addresses(v []*string) *AwsEc2InstanceDetails {
  2692. s.IpV6Addresses = v
  2693. return s
  2694. }
  2695. // SetKeyName sets the KeyName field's value.
  2696. func (s *AwsEc2InstanceDetails) SetKeyName(v string) *AwsEc2InstanceDetails {
  2697. s.KeyName = &v
  2698. return s
  2699. }
  2700. // SetLaunchedAt sets the LaunchedAt field's value.
  2701. func (s *AwsEc2InstanceDetails) SetLaunchedAt(v string) *AwsEc2InstanceDetails {
  2702. s.LaunchedAt = &v
  2703. return s
  2704. }
  2705. // SetSubnetId sets the SubnetId field's value.
  2706. func (s *AwsEc2InstanceDetails) SetSubnetId(v string) *AwsEc2InstanceDetails {
  2707. s.SubnetId = &v
  2708. return s
  2709. }
  2710. // SetType sets the Type field's value.
  2711. func (s *AwsEc2InstanceDetails) SetType(v string) *AwsEc2InstanceDetails {
  2712. s.Type = &v
  2713. return s
  2714. }
  2715. // SetVpcId sets the VpcId field's value.
  2716. func (s *AwsEc2InstanceDetails) SetVpcId(v string) *AwsEc2InstanceDetails {
  2717. s.VpcId = &v
  2718. return s
  2719. }
  2720. // AWS IAM access key details related to a finding.
  2721. type AwsIamAccessKeyDetails struct {
  2722. _ struct{} `type:"structure"`
  2723. // The creation date/time of the IAM access key related to a finding.
  2724. CreatedAt *string `type:"string"`
  2725. // The status of the IAM access key related to a finding.
  2726. Status *string `type:"string" enum:"AwsIamAccessKeyStatus"`
  2727. // The user associated with the IAM access key related to a finding.
  2728. UserName *string `type:"string"`
  2729. }
  2730. // String returns the string representation
  2731. func (s AwsIamAccessKeyDetails) String() string {
  2732. return awsutil.Prettify(s)
  2733. }
  2734. // GoString returns the string representation
  2735. func (s AwsIamAccessKeyDetails) GoString() string {
  2736. return s.String()
  2737. }
  2738. // SetCreatedAt sets the CreatedAt field's value.
  2739. func (s *AwsIamAccessKeyDetails) SetCreatedAt(v string) *AwsIamAccessKeyDetails {
  2740. s.CreatedAt = &v
  2741. return s
  2742. }
  2743. // SetStatus sets the Status field's value.
  2744. func (s *AwsIamAccessKeyDetails) SetStatus(v string) *AwsIamAccessKeyDetails {
  2745. s.Status = &v
  2746. return s
  2747. }
  2748. // SetUserName sets the UserName field's value.
  2749. func (s *AwsIamAccessKeyDetails) SetUserName(v string) *AwsIamAccessKeyDetails {
  2750. s.UserName = &v
  2751. return s
  2752. }
  2753. // The details of an AWS S3 Bucket.
  2754. type AwsS3BucketDetails struct {
  2755. _ struct{} `type:"structure"`
  2756. // The canonical user ID of the owner of the S3 bucket.
  2757. OwnerId *string `type:"string"`
  2758. // The display name of the owner of the S3 bucket.
  2759. OwnerName *string `type:"string"`
  2760. }
  2761. // String returns the string representation
  2762. func (s AwsS3BucketDetails) String() string {
  2763. return awsutil.Prettify(s)
  2764. }
  2765. // GoString returns the string representation
  2766. func (s AwsS3BucketDetails) GoString() string {
  2767. return s.String()
  2768. }
  2769. // SetOwnerId sets the OwnerId field's value.
  2770. func (s *AwsS3BucketDetails) SetOwnerId(v string) *AwsS3BucketDetails {
  2771. s.OwnerId = &v
  2772. return s
  2773. }
  2774. // SetOwnerName sets the OwnerName field's value.
  2775. func (s *AwsS3BucketDetails) SetOwnerName(v string) *AwsS3BucketDetails {
  2776. s.OwnerName = &v
  2777. return s
  2778. }
  2779. // Provides consistent format for the contents of the Security Hub-aggregated
  2780. // findings. AwsSecurityFinding format enables you to share findings between
  2781. // AWS security services and third-party solutions, and compliance checks.
  2782. //
  2783. // A finding is a potential security issue generated either by AWS services
  2784. // (GuardDuty, Inspector, Macie) or by the integrated third-party solutions
  2785. // and compliance checks.
  2786. type AwsSecurityFinding struct {
  2787. _ struct{} `type:"structure"`
  2788. // The AWS account ID in which a finding is generated.
  2789. //
  2790. // AwsAccountId is a required field
  2791. AwsAccountId *string `type:"string" required:"true"`
  2792. // This data type is exclusive to findings that are generated as the result
  2793. // of a check run against a specific rule in a supported standard (for example,
  2794. // AWS CIS Foundations). Contains compliance-related finding details.
  2795. Compliance *Compliance `type:"structure"`
  2796. // A finding's confidence. Confidence is defined as the likelihood that a finding
  2797. // accurately identifies the behavior or issue that it was intended to identify.
  2798. // Confidence is scored on a 0-100 basis using a ratio scale. 0 equates zero
  2799. // percent confidence and 100 equates to 100 percent confidence.
  2800. Confidence *int64 `type:"integer"`
  2801. // An ISO8601-formatted timestamp that indicates when the potential security
  2802. // issue captured by a finding was created by the security findings provider.
  2803. //
  2804. // CreatedAt is a required field
  2805. CreatedAt *string `type:"string" required:"true"`
  2806. // The level of importance assigned to the resources associated with the finding.
  2807. // A score of 0 means the underlying resources have no criticality, and a score
  2808. // of 100 is reserved for the most critical resources.
  2809. Criticality *int64 `type:"integer"`
  2810. // A finding's description.
  2811. Description *string `type:"string"`
  2812. // An ISO8601-formatted timestamp that indicates when the potential security
  2813. // issue captured by a finding was first observed by the security findings provider.
  2814. FirstObservedAt *string `type:"string"`
  2815. // This is the identifier for the solution-specific component (a discrete unit
  2816. // of logic) that generated a finding. In various security findings provider's
  2817. // solutions, this generator can be called a rule, a check, a detector, a plug-in,
  2818. // etc.
  2819. //
  2820. // GeneratorId is a required field
  2821. GeneratorId *string `type:"string" required:"true"`
  2822. // The security findings provider-specific identifier for a finding.
  2823. //
  2824. // Id is a required field
  2825. Id *string `type:"string" required:"true"`
  2826. // An ISO8601-formatted timestamp that indicates when the potential security
  2827. // issue captured by a finding was most recently observed by the security findings
  2828. // provider.
  2829. LastObservedAt *string `type:"string"`
  2830. // A list of malware related to a finding.
  2831. Malware []*Malware `type:"list"`
  2832. // The details of network-related information about a finding.
  2833. Network *Network `type:"structure"`
  2834. // A user-defined note added to a finding.
  2835. Note *Note `type:"structure"`
  2836. // The details of process-related information about a finding.
  2837. Process *ProcessDetails `type:"structure"`
  2838. // The ARN generated by Security Hub that uniquely identifies a third-party
  2839. // company (security findings provider) once this provider's product (solution
  2840. // that generates findings) is registered with Security Hub.
  2841. //
  2842. // ProductArn is a required field
  2843. ProductArn *string `type:"string" required:"true"`
  2844. // A data type where security findings providers can include additional solution-specific
  2845. // details that are not part of the defined AwsSecurityFinding format.
  2846. ProductFields map[string]*string `type:"map"`
  2847. // The record state of a finding.
  2848. RecordState *string `type:"string" enum:"RecordState"`
  2849. // A list of related findings.
  2850. RelatedFindings []*RelatedFinding `type:"list"`
  2851. // An data type that describes the remediation options for a finding.
  2852. Remediation *Remediation `type:"structure"`
  2853. // A set of resource data types that describe the resources to which the finding
  2854. // refers.
  2855. //
  2856. // Resources is a required field
  2857. Resources []*Resource `type:"list" required:"true"`
  2858. // The schema version for which a finding is formatted.
  2859. //
  2860. // SchemaVersion is a required field
  2861. SchemaVersion *string `type:"string" required:"true"`
  2862. // A finding's severity.
  2863. //
  2864. // Severity is a required field
  2865. Severity *Severity `type:"structure" required:"true"`
  2866. // A URL that links to a page about the current finding in the security findings
  2867. // provider's solution.
  2868. SourceUrl *string `type:"string"`
  2869. // Threat intel details related to a finding.
  2870. ThreatIntelIndicators []*ThreatIntelIndicator `type:"list"`
  2871. // A finding's title.
  2872. Title *string `type:"string"`
  2873. // One or more finding types in the format of 'namespace/category/classifier'
  2874. // that classify a finding.
  2875. //
  2876. // Valid namespace values are: Software and Configuration Checks | TTPs | Effects
  2877. // | Unusual Behaviors | Sensitive Data Identifications
  2878. //
  2879. // Types is a required field
  2880. Types []*string `type:"list" required:"true"`
  2881. // An ISO8601-formatted timestamp that indicates when the finding record was
  2882. // last updated by the security findings provider.
  2883. //
  2884. // UpdatedAt is a required field
  2885. UpdatedAt *string `type:"string" required:"true"`
  2886. // A list of name/value string pairs associated with the finding. These are
  2887. // custom, user-defined fields added to a finding.
  2888. UserDefinedFields map[string]*string `type:"map"`
  2889. // Indicates the veracity of a finding.
  2890. VerificationState *string `type:"string" enum:"VerificationState"`
  2891. // The workflow state of a finding.
  2892. WorkflowState *string `type:"string" enum:"WorkflowState"`
  2893. }
  2894. // String returns the string representation
  2895. func (s AwsSecurityFinding) String() string {
  2896. return awsutil.Prettify(s)
  2897. }
  2898. // GoString returns the string representation
  2899. func (s AwsSecurityFinding) GoString() string {
  2900. return s.String()
  2901. }
  2902. // Validate inspects the fields of the type to determine if they are valid.
  2903. func (s *AwsSecurityFinding) Validate() error {
  2904. invalidParams := request.ErrInvalidParams{Context: "AwsSecurityFinding"}
  2905. if s.AwsAccountId == nil {
  2906. invalidParams.Add(request.NewErrParamRequired("AwsAccountId"))
  2907. }
  2908. if s.CreatedAt == nil {
  2909. invalidParams.Add(request.NewErrParamRequired("CreatedAt"))
  2910. }
  2911. if s.GeneratorId == nil {
  2912. invalidParams.Add(request.NewErrParamRequired("GeneratorId"))
  2913. }
  2914. if s.Id == nil {
  2915. invalidParams.Add(request.NewErrParamRequired("Id"))
  2916. }
  2917. if s.ProductArn == nil {
  2918. invalidParams.Add(request.NewErrParamRequired("ProductArn"))
  2919. }
  2920. if s.Resources == nil {
  2921. invalidParams.Add(request.NewErrParamRequired("Resources"))
  2922. }
  2923. if s.SchemaVersion == nil {
  2924. invalidParams.Add(request.NewErrParamRequired("SchemaVersion"))
  2925. }
  2926. if s.Severity == nil {
  2927. invalidParams.Add(request.NewErrParamRequired("Severity"))
  2928. }
  2929. if s.Types == nil {
  2930. invalidParams.Add(request.NewErrParamRequired("Types"))
  2931. }
  2932. if s.UpdatedAt == nil {
  2933. invalidParams.Add(request.NewErrParamRequired("UpdatedAt"))
  2934. }
  2935. if s.Malware != nil {
  2936. for i, v := range s.Malware {
  2937. if v == nil {
  2938. continue
  2939. }
  2940. if err := v.Validate(); err != nil {
  2941. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Malware", i), err.(request.ErrInvalidParams))
  2942. }
  2943. }
  2944. }
  2945. if s.Note != nil {
  2946. if err := s.Note.Validate(); err != nil {
  2947. invalidParams.AddNested("Note", err.(request.ErrInvalidParams))
  2948. }
  2949. }
  2950. if s.RelatedFindings != nil {
  2951. for i, v := range s.RelatedFindings {
  2952. if v == nil {
  2953. continue
  2954. }
  2955. if err := v.Validate(); err != nil {
  2956. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RelatedFindings", i), err.(request.ErrInvalidParams))
  2957. }
  2958. }
  2959. }
  2960. if s.Resources != nil {
  2961. for i, v := range s.Resources {
  2962. if v == nil {
  2963. continue
  2964. }
  2965. if err := v.Validate(); err != nil {
  2966. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Resources", i), err.(request.ErrInvalidParams))
  2967. }
  2968. }
  2969. }
  2970. if s.Severity != nil {
  2971. if err := s.Severity.Validate(); err != nil {
  2972. invalidParams.AddNested("Severity", err.(request.ErrInvalidParams))
  2973. }
  2974. }
  2975. if invalidParams.Len() > 0 {
  2976. return invalidParams
  2977. }
  2978. return nil
  2979. }
  2980. // SetAwsAccountId sets the AwsAccountId field's value.
  2981. func (s *AwsSecurityFinding) SetAwsAccountId(v string) *AwsSecurityFinding {
  2982. s.AwsAccountId = &v
  2983. return s
  2984. }
  2985. // SetCompliance sets the Compliance field's value.
  2986. func (s *AwsSecurityFinding) SetCompliance(v *Compliance) *AwsSecurityFinding {
  2987. s.Compliance = v
  2988. return s
  2989. }
  2990. // SetConfidence sets the Confidence field's value.
  2991. func (s *AwsSecurityFinding) SetConfidence(v int64) *AwsSecurityFinding {
  2992. s.Confidence = &v
  2993. return s
  2994. }
  2995. // SetCreatedAt sets the CreatedAt field's value.
  2996. func (s *AwsSecurityFinding) SetCreatedAt(v string) *AwsSecurityFinding {
  2997. s.CreatedAt = &v
  2998. return s
  2999. }
  3000. // SetCriticality sets the Criticality field's value.
  3001. func (s *AwsSecurityFinding) SetCriticality(v int64) *AwsSecurityFinding {
  3002. s.Criticality = &v
  3003. return s
  3004. }
  3005. // SetDescription sets the Description field's value.
  3006. func (s *AwsSecurityFinding) SetDescription(v string) *AwsSecurityFinding {
  3007. s.Description = &v
  3008. return s
  3009. }
  3010. // SetFirstObservedAt sets the FirstObservedAt field's value.
  3011. func (s *AwsSecurityFinding) SetFirstObservedAt(v string) *AwsSecurityFinding {
  3012. s.FirstObservedAt = &v
  3013. return s
  3014. }
  3015. // SetGeneratorId sets the GeneratorId field's value.
  3016. func (s *AwsSecurityFinding) SetGeneratorId(v string) *AwsSecurityFinding {
  3017. s.GeneratorId = &v
  3018. return s
  3019. }
  3020. // SetId sets the Id field's value.
  3021. func (s *AwsSecurityFinding) SetId(v string) *AwsSecurityFinding {
  3022. s.Id = &v
  3023. return s
  3024. }
  3025. // SetLastObservedAt sets the LastObservedAt field's value.
  3026. func (s *AwsSecurityFinding) SetLastObservedAt(v string) *AwsSecurityFinding {
  3027. s.LastObservedAt = &v
  3028. return s
  3029. }
  3030. // SetMalware sets the Malware field's value.
  3031. func (s *AwsSecurityFinding) SetMalware(v []*Malware) *AwsSecurityFinding {
  3032. s.Malware = v
  3033. return s
  3034. }
  3035. // SetNetwork sets the Network field's value.
  3036. func (s *AwsSecurityFinding) SetNetwork(v *Network) *AwsSecurityFinding {
  3037. s.Network = v
  3038. return s
  3039. }
  3040. // SetNote sets the Note field's value.
  3041. func (s *AwsSecurityFinding) SetNote(v *Note) *AwsSecurityFinding {
  3042. s.Note = v
  3043. return s
  3044. }
  3045. // SetProcess sets the Process field's value.
  3046. func (s *AwsSecurityFinding) SetProcess(v *ProcessDetails) *AwsSecurityFinding {
  3047. s.Process = v
  3048. return s
  3049. }
  3050. // SetProductArn sets the ProductArn field's value.
  3051. func (s *AwsSecurityFinding) SetProductArn(v string) *AwsSecurityFinding {
  3052. s.ProductArn = &v
  3053. return s
  3054. }
  3055. // SetProductFields sets the ProductFields field's value.
  3056. func (s *AwsSecurityFinding) SetProductFields(v map[string]*string) *AwsSecurityFinding {
  3057. s.ProductFields = v
  3058. return s
  3059. }
  3060. // SetRecordState sets the RecordState field's value.
  3061. func (s *AwsSecurityFinding) SetRecordState(v string) *AwsSecurityFinding {
  3062. s.RecordState = &v
  3063. return s
  3064. }
  3065. // SetRelatedFindings sets the RelatedFindings field's value.
  3066. func (s *AwsSecurityFinding) SetRelatedFindings(v []*RelatedFinding) *AwsSecurityFinding {
  3067. s.RelatedFindings = v
  3068. return s
  3069. }
  3070. // SetRemediation sets the Remediation field's value.
  3071. func (s *AwsSecurityFinding) SetRemediation(v *Remediation) *AwsSecurityFinding {
  3072. s.Remediation = v
  3073. return s
  3074. }
  3075. // SetResources sets the Resources field's value.
  3076. func (s *AwsSecurityFinding) SetResources(v []*Resource) *AwsSecurityFinding {
  3077. s.Resources = v
  3078. return s
  3079. }
  3080. // SetSchemaVersion sets the SchemaVersion field's value.
  3081. func (s *AwsSecurityFinding) SetSchemaVersion(v string) *AwsSecurityFinding {
  3082. s.SchemaVersion = &v
  3083. return s
  3084. }
  3085. // SetSeverity sets the Severity field's value.
  3086. func (s *AwsSecurityFinding) SetSeverity(v *Severity) *AwsSecurityFinding {
  3087. s.Severity = v
  3088. return s
  3089. }
  3090. // SetSourceUrl sets the SourceUrl field's value.
  3091. func (s *AwsSecurityFinding) SetSourceUrl(v string) *AwsSecurityFinding {
  3092. s.SourceUrl = &v
  3093. return s
  3094. }
  3095. // SetThreatIntelIndicators sets the ThreatIntelIndicators field's value.
  3096. func (s *AwsSecurityFinding) SetThreatIntelIndicators(v []*ThreatIntelIndicator) *AwsSecurityFinding {
  3097. s.ThreatIntelIndicators = v
  3098. return s
  3099. }
  3100. // SetTitle sets the Title field's value.
  3101. func (s *AwsSecurityFinding) SetTitle(v string) *AwsSecurityFinding {
  3102. s.Title = &v
  3103. return s
  3104. }
  3105. // SetTypes sets the Types field's value.
  3106. func (s *AwsSecurityFinding) SetTypes(v []*string) *AwsSecurityFinding {
  3107. s.Types = v
  3108. return s
  3109. }
  3110. // SetUpdatedAt sets the UpdatedAt field's value.
  3111. func (s *AwsSecurityFinding) SetUpdatedAt(v string) *AwsSecurityFinding {
  3112. s.UpdatedAt = &v
  3113. return s
  3114. }
  3115. // SetUserDefinedFields sets the UserDefinedFields field's value.
  3116. func (s *AwsSecurityFinding) SetUserDefinedFields(v map[string]*string) *AwsSecurityFinding {
  3117. s.UserDefinedFields = v
  3118. return s
  3119. }
  3120. // SetVerificationState sets the VerificationState field's value.
  3121. func (s *AwsSecurityFinding) SetVerificationState(v string) *AwsSecurityFinding {
  3122. s.VerificationState = &v
  3123. return s
  3124. }
  3125. // SetWorkflowState sets the WorkflowState field's value.
  3126. func (s *AwsSecurityFinding) SetWorkflowState(v string) *AwsSecurityFinding {
  3127. s.WorkflowState = &v
  3128. return s
  3129. }
  3130. // A collection of attributes that are applied to all active Security Hub-aggregated
  3131. // findings and that result in a subset of findings that are included in this
  3132. // insight.
  3133. type AwsSecurityFindingFilters struct {
  3134. _ struct{} `type:"structure"`
  3135. // The AWS account ID in which a finding is generated.
  3136. AwsAccountId []*StringFilter `type:"list"`
  3137. // The name of the findings provider (company) that owns the solution (product)
  3138. // that generates findings.
  3139. CompanyName []*StringFilter `type:"list"`
  3140. // Exclusive to findings that are generated as the result of a check run against
  3141. // a specific rule in a supported standard (for example, AWS CIS Foundations).
  3142. // Contains compliance-related finding details.
  3143. ComplianceStatus []*StringFilter `type:"list"`
  3144. // A finding's confidence. Confidence is defined as the likelihood that a finding
  3145. // accurately identifies the behavior or issue that it was intended to identify.
  3146. // Confidence is scored on a 0-100 basis using a ratio scale. 0 equates zero
  3147. // percent confidence and 100 equates to 100 percent confidence.
  3148. Confidence []*NumberFilter `type:"list"`
  3149. // An ISO8601-formatted timestamp that indicates when the potential security
  3150. // issue captured by a finding was created by the security findings provider.
  3151. CreatedAt []*DateFilter `type:"list"`
  3152. // The level of importance assigned to the resources associated with the finding.
  3153. // A score of 0 means the underlying resources have no criticality, and a score
  3154. // of 100 is reserved for the most critical resources.
  3155. Criticality []*NumberFilter `type:"list"`
  3156. // A finding's description.
  3157. Description []*StringFilter `type:"list"`
  3158. // An ISO8601-formatted timestamp that indicates when the potential security
  3159. // issue captured by a finding was first observed by the security findings provider.
  3160. FirstObservedAt []*DateFilter `type:"list"`
  3161. // This is the identifier for the solution-specific component (a discrete unit
  3162. // of logic) that generated a finding. In various security findings provider's
  3163. // solutions, this generator can be called a rule, a check, a detector, a plug-in,
  3164. // etc.
  3165. GeneratorId []*StringFilter `type:"list"`
  3166. // The security findings provider-specific identifier for a finding.
  3167. Id []*StringFilter `type:"list"`
  3168. // A keyword for a finding.
  3169. Keyword []*KeywordFilter `type:"list"`
  3170. // An ISO8601-formatted timestamp that indicates when the potential security
  3171. // issue captured by a finding was most recently observed by the security findings
  3172. // provider.
  3173. LastObservedAt []*DateFilter `type:"list"`
  3174. // The name of the malware that was observed.
  3175. MalwareName []*StringFilter `type:"list"`
  3176. // The filesystem path of the malware that was observed.
  3177. MalwarePath []*StringFilter `type:"list"`
  3178. // The state of the malware that was observed.
  3179. MalwareState []*StringFilter `type:"list"`
  3180. // The type of the malware that was observed.
  3181. MalwareType []*StringFilter `type:"list"`
  3182. // The destination domain of network-related information about a finding.
  3183. NetworkDestinationDomain []*StringFilter `type:"list"`
  3184. // The destination IPv4 address of network-related information about a finding.
  3185. NetworkDestinationIpV4 []*IpFilter `type:"list"`
  3186. // The destination IPv6 address of network-related information about a finding.
  3187. NetworkDestinationIpV6 []*IpFilter `type:"list"`
  3188. // The destination port of network-related information about a finding.
  3189. NetworkDestinationPort []*NumberFilter `type:"list"`
  3190. // Indicates the direction of network traffic associated with a finding.
  3191. NetworkDirection []*StringFilter `type:"list"`
  3192. // The protocol of network-related information about a finding.
  3193. NetworkProtocol []*StringFilter `type:"list"`
  3194. // The source domain of network-related information about a finding.
  3195. NetworkSourceDomain []*StringFilter `type:"list"`
  3196. // The source IPv4 address of network-related information about a finding.
  3197. NetworkSourceIpV4 []*IpFilter `type:"list"`
  3198. // The source IPv6 address of network-related information about a finding.
  3199. NetworkSourceIpV6 []*IpFilter `type:"list"`
  3200. // The source media access control (MAC) address of network-related information
  3201. // about a finding.
  3202. NetworkSourceMac []*StringFilter `type:"list"`
  3203. // The source port of network-related information about a finding.
  3204. NetworkSourcePort []*NumberFilter `type:"list"`
  3205. // The text of a note.
  3206. NoteText []*StringFilter `type:"list"`
  3207. // The timestamp of when the note was updated.
  3208. NoteUpdatedAt []*DateFilter `type:"list"`
  3209. // The principal that created a note.
  3210. NoteUpdatedBy []*StringFilter `type:"list"`
  3211. // The date/time that the process was launched.
  3212. ProcessLaunchedAt []*DateFilter `type:"list"`
  3213. // The name of the process.
  3214. ProcessName []*StringFilter `type:"list"`
  3215. // The parent process ID.
  3216. ProcessParentPid []*NumberFilter `type:"list"`
  3217. // The path to the process executable.
  3218. ProcessPath []*StringFilter `type:"list"`
  3219. // The process ID.
  3220. ProcessPid []*NumberFilter `type:"list"`
  3221. // The date/time that the process was terminated.
  3222. ProcessTerminatedAt []*DateFilter `type:"list"`
  3223. // The ARN generated by Security Hub that uniquely identifies a third-party
  3224. // company (security findings provider) once this provider's product (solution
  3225. // that generates findings) is registered with Security Hub.
  3226. ProductArn []*StringFilter `type:"list"`
  3227. // A data type where security findings providers can include additional solution-specific
  3228. // details that are not part of the defined AwsSecurityFinding format.
  3229. ProductFields []*MapFilter `type:"list"`
  3230. // The name of the solution (product) that generates findings.
  3231. ProductName []*StringFilter `type:"list"`
  3232. // The recommendation of what to do about the issue described in a finding.
  3233. RecommendationText []*StringFilter `type:"list"`
  3234. // The updated record state for the finding.
  3235. RecordState []*StringFilter `type:"list"`
  3236. // The solution-generated identifier for a related finding.
  3237. RelatedFindingsId []*StringFilter `type:"list"`
  3238. // The ARN of the solution that generated a related finding.
  3239. RelatedFindingsProductArn []*StringFilter `type:"list"`
  3240. // The IAM profile ARN of the instance.
  3241. ResourceAwsEc2InstanceIamInstanceProfileArn []*StringFilter `type:"list"`
  3242. // The Amazon Machine Image (AMI) ID of the instance.
  3243. ResourceAwsEc2InstanceImageId []*StringFilter `type:"list"`
  3244. // The IPv4 addresses associated with the instance.
  3245. ResourceAwsEc2InstanceIpV4Addresses []*IpFilter `type:"list"`
  3246. // The IPv6 addresses associated with the instance.
  3247. ResourceAwsEc2InstanceIpV6Addresses []*IpFilter `type:"list"`
  3248. // The key name associated with the instance.
  3249. ResourceAwsEc2InstanceKeyName []*StringFilter `type:"list"`
  3250. // The date/time the instance was launched.
  3251. ResourceAwsEc2InstanceLaunchedAt []*DateFilter `type:"list"`
  3252. // The identifier of the subnet in which the instance was launched.
  3253. ResourceAwsEc2InstanceSubnetId []*StringFilter `type:"list"`
  3254. // The instance type of the instance.
  3255. ResourceAwsEc2InstanceType []*StringFilter `type:"list"`
  3256. // The identifier of the VPC in which the instance was launched.
  3257. ResourceAwsEc2InstanceVpcId []*StringFilter `type:"list"`
  3258. // The creation date/time of the IAM access key related to a finding.
  3259. ResourceAwsIamAccessKeyCreatedAt []*DateFilter `type:"list"`
  3260. // The status of the IAM access key related to a finding.
  3261. ResourceAwsIamAccessKeyStatus []*StringFilter `type:"list"`
  3262. // The user associated with the IAM access key related to a finding.
  3263. ResourceAwsIamAccessKeyUserName []*StringFilter `type:"list"`
  3264. // The canonical user ID of the owner of the S3 bucket.
  3265. ResourceAwsS3BucketOwnerId []*StringFilter `type:"list"`
  3266. // The display name of the owner of the S3 bucket.
  3267. ResourceAwsS3BucketOwnerName []*StringFilter `type:"list"`
  3268. // The identifier of the image related to a finding.
  3269. ResourceContainerImageId []*StringFilter `type:"list"`
  3270. // The name of the image related to a finding.
  3271. ResourceContainerImageName []*StringFilter `type:"list"`
  3272. // The date/time that the container was started.
  3273. ResourceContainerLaunchedAt []*DateFilter `type:"list"`
  3274. // The name of the container related to a finding.
  3275. ResourceContainerName []*StringFilter `type:"list"`
  3276. // The details of a resource that does not have a specific sub-field for the
  3277. // resource type defined.
  3278. ResourceDetailsOther []*MapFilter `type:"list"`
  3279. // The canonical identifier for the given resource type.
  3280. ResourceId []*StringFilter `type:"list"`
  3281. // The canonical AWS partition name to which the region is assigned.
  3282. ResourcePartition []*StringFilter `type:"list"`
  3283. // The canonical AWS external region name where this resource is located.
  3284. ResourceRegion []*StringFilter `type:"list"`
  3285. // A list of AWS tags associated with a resource at the time the finding was
  3286. // processed.
  3287. ResourceTags []*MapFilter `type:"list"`
  3288. // Specifies the type of the resource for which details are provided.
  3289. ResourceType []*StringFilter `type:"list"`
  3290. // The label of a finding's severity.
  3291. SeverityLabel []*StringFilter `type:"list"`
  3292. // The normalized severity of a finding.
  3293. SeverityNormalized []*NumberFilter `type:"list"`
  3294. // The native severity as defined by the security findings provider's solution
  3295. // that generated the finding.
  3296. SeverityProduct []*NumberFilter `type:"list"`
  3297. // A URL that links to a page about the current finding in the security findings
  3298. // provider's solution.
  3299. SourceUrl []*StringFilter `type:"list"`
  3300. // The category of a threat intel indicator.
  3301. ThreatIntelIndicatorCategory []*StringFilter `type:"list"`
  3302. // The date/time of the last observation of a threat intel indicator.
  3303. ThreatIntelIndicatorLastObservedAt []*DateFilter `type:"list"`
  3304. // The source of the threat intel.
  3305. ThreatIntelIndicatorSource []*StringFilter `type:"list"`
  3306. // The URL for more details from the source of the threat intel.
  3307. ThreatIntelIndicatorSourceUrl []*StringFilter `type:"list"`
  3308. // The type of a threat intel indicator.
  3309. ThreatIntelIndicatorType []*StringFilter `type:"list"`
  3310. // The value of a threat intel indicator.
  3311. ThreatIntelIndicatorValue []*StringFilter `type:"list"`
  3312. // A finding's title.
  3313. Title []*StringFilter `type:"list"`
  3314. // A finding type in the format of 'namespace/category/classifier' that classifies
  3315. // a finding.
  3316. Type []*StringFilter `type:"list"`
  3317. // An ISO8601-formatted timestamp that indicates when the finding record was
  3318. // last updated by the security findings provider.
  3319. UpdatedAt []*DateFilter `type:"list"`
  3320. // A list of name/value string pairs associated with the finding. These are
  3321. // custom, user-defined fields added to a finding.
  3322. UserDefinedFields []*MapFilter `type:"list"`
  3323. // Indicates the veracity of a finding.
  3324. VerificationState []*StringFilter `type:"list"`
  3325. // The workflow state of a finding.
  3326. WorkflowState []*StringFilter `type:"list"`
  3327. }
  3328. // String returns the string representation
  3329. func (s AwsSecurityFindingFilters) String() string {
  3330. return awsutil.Prettify(s)
  3331. }
  3332. // GoString returns the string representation
  3333. func (s AwsSecurityFindingFilters) GoString() string {
  3334. return s.String()
  3335. }
  3336. // SetAwsAccountId sets the AwsAccountId field's value.
  3337. func (s *AwsSecurityFindingFilters) SetAwsAccountId(v []*StringFilter) *AwsSecurityFindingFilters {
  3338. s.AwsAccountId = v
  3339. return s
  3340. }
  3341. // SetCompanyName sets the CompanyName field's value.
  3342. func (s *AwsSecurityFindingFilters) SetCompanyName(v []*StringFilter) *AwsSecurityFindingFilters {
  3343. s.CompanyName = v
  3344. return s
  3345. }
  3346. // SetComplianceStatus sets the ComplianceStatus field's value.
  3347. func (s *AwsSecurityFindingFilters) SetComplianceStatus(v []*StringFilter) *AwsSecurityFindingFilters {
  3348. s.ComplianceStatus = v
  3349. return s
  3350. }
  3351. // SetConfidence sets the Confidence field's value.
  3352. func (s *AwsSecurityFindingFilters) SetConfidence(v []*NumberFilter) *AwsSecurityFindingFilters {
  3353. s.Confidence = v
  3354. return s
  3355. }
  3356. // SetCreatedAt sets the CreatedAt field's value.
  3357. func (s *AwsSecurityFindingFilters) SetCreatedAt(v []*DateFilter) *AwsSecurityFindingFilters {
  3358. s.CreatedAt = v
  3359. return s
  3360. }
  3361. // SetCriticality sets the Criticality field's value.
  3362. func (s *AwsSecurityFindingFilters) SetCriticality(v []*NumberFilter) *AwsSecurityFindingFilters {
  3363. s.Criticality = v
  3364. return s
  3365. }
  3366. // SetDescription sets the Description field's value.
  3367. func (s *AwsSecurityFindingFilters) SetDescription(v []*StringFilter) *AwsSecurityFindingFilters {
  3368. s.Description = v
  3369. return s
  3370. }
  3371. // SetFirstObservedAt sets the FirstObservedAt field's value.
  3372. func (s *AwsSecurityFindingFilters) SetFirstObservedAt(v []*DateFilter) *AwsSecurityFindingFilters {
  3373. s.FirstObservedAt = v
  3374. return s
  3375. }
  3376. // SetGeneratorId sets the GeneratorId field's value.
  3377. func (s *AwsSecurityFindingFilters) SetGeneratorId(v []*StringFilter) *AwsSecurityFindingFilters {
  3378. s.GeneratorId = v
  3379. return s
  3380. }
  3381. // SetId sets the Id field's value.
  3382. func (s *AwsSecurityFindingFilters) SetId(v []*StringFilter) *AwsSecurityFindingFilters {
  3383. s.Id = v
  3384. return s
  3385. }
  3386. // SetKeyword sets the Keyword field's value.
  3387. func (s *AwsSecurityFindingFilters) SetKeyword(v []*KeywordFilter) *AwsSecurityFindingFilters {
  3388. s.Keyword = v
  3389. return s
  3390. }
  3391. // SetLastObservedAt sets the LastObservedAt field's value.
  3392. func (s *AwsSecurityFindingFilters) SetLastObservedAt(v []*DateFilter) *AwsSecurityFindingFilters {
  3393. s.LastObservedAt = v
  3394. return s
  3395. }
  3396. // SetMalwareName sets the MalwareName field's value.
  3397. func (s *AwsSecurityFindingFilters) SetMalwareName(v []*StringFilter) *AwsSecurityFindingFilters {
  3398. s.MalwareName = v
  3399. return s
  3400. }
  3401. // SetMalwarePath sets the MalwarePath field's value.
  3402. func (s *AwsSecurityFindingFilters) SetMalwarePath(v []*StringFilter) *AwsSecurityFindingFilters {
  3403. s.MalwarePath = v
  3404. return s
  3405. }
  3406. // SetMalwareState sets the MalwareState field's value.
  3407. func (s *AwsSecurityFindingFilters) SetMalwareState(v []*StringFilter) *AwsSecurityFindingFilters {
  3408. s.MalwareState = v
  3409. return s
  3410. }
  3411. // SetMalwareType sets the MalwareType field's value.
  3412. func (s *AwsSecurityFindingFilters) SetMalwareType(v []*StringFilter) *AwsSecurityFindingFilters {
  3413. s.MalwareType = v
  3414. return s
  3415. }
  3416. // SetNetworkDestinationDomain sets the NetworkDestinationDomain field's value.
  3417. func (s *AwsSecurityFindingFilters) SetNetworkDestinationDomain(v []*StringFilter) *AwsSecurityFindingFilters {
  3418. s.NetworkDestinationDomain = v
  3419. return s
  3420. }
  3421. // SetNetworkDestinationIpV4 sets the NetworkDestinationIpV4 field's value.
  3422. func (s *AwsSecurityFindingFilters) SetNetworkDestinationIpV4(v []*IpFilter) *AwsSecurityFindingFilters {
  3423. s.NetworkDestinationIpV4 = v
  3424. return s
  3425. }
  3426. // SetNetworkDestinationIpV6 sets the NetworkDestinationIpV6 field's value.
  3427. func (s *AwsSecurityFindingFilters) SetNetworkDestinationIpV6(v []*IpFilter) *AwsSecurityFindingFilters {
  3428. s.NetworkDestinationIpV6 = v
  3429. return s
  3430. }
  3431. // SetNetworkDestinationPort sets the NetworkDestinationPort field's value.
  3432. func (s *AwsSecurityFindingFilters) SetNetworkDestinationPort(v []*NumberFilter) *AwsSecurityFindingFilters {
  3433. s.NetworkDestinationPort = v
  3434. return s
  3435. }
  3436. // SetNetworkDirection sets the NetworkDirection field's value.
  3437. func (s *AwsSecurityFindingFilters) SetNetworkDirection(v []*StringFilter) *AwsSecurityFindingFilters {
  3438. s.NetworkDirection = v
  3439. return s
  3440. }
  3441. // SetNetworkProtocol sets the NetworkProtocol field's value.
  3442. func (s *AwsSecurityFindingFilters) SetNetworkProtocol(v []*StringFilter) *AwsSecurityFindingFilters {
  3443. s.NetworkProtocol = v
  3444. return s
  3445. }
  3446. // SetNetworkSourceDomain sets the NetworkSourceDomain field's value.
  3447. func (s *AwsSecurityFindingFilters) SetNetworkSourceDomain(v []*StringFilter) *AwsSecurityFindingFilters {
  3448. s.NetworkSourceDomain = v
  3449. return s
  3450. }
  3451. // SetNetworkSourceIpV4 sets the NetworkSourceIpV4 field's value.
  3452. func (s *AwsSecurityFindingFilters) SetNetworkSourceIpV4(v []*IpFilter) *AwsSecurityFindingFilters {
  3453. s.NetworkSourceIpV4 = v
  3454. return s
  3455. }
  3456. // SetNetworkSourceIpV6 sets the NetworkSourceIpV6 field's value.
  3457. func (s *AwsSecurityFindingFilters) SetNetworkSourceIpV6(v []*IpFilter) *AwsSecurityFindingFilters {
  3458. s.NetworkSourceIpV6 = v
  3459. return s
  3460. }
  3461. // SetNetworkSourceMac sets the NetworkSourceMac field's value.
  3462. func (s *AwsSecurityFindingFilters) SetNetworkSourceMac(v []*StringFilter) *AwsSecurityFindingFilters {
  3463. s.NetworkSourceMac = v
  3464. return s
  3465. }
  3466. // SetNetworkSourcePort sets the NetworkSourcePort field's value.
  3467. func (s *AwsSecurityFindingFilters) SetNetworkSourcePort(v []*NumberFilter) *AwsSecurityFindingFilters {
  3468. s.NetworkSourcePort = v
  3469. return s
  3470. }
  3471. // SetNoteText sets the NoteText field's value.
  3472. func (s *AwsSecurityFindingFilters) SetNoteText(v []*StringFilter) *AwsSecurityFindingFilters {
  3473. s.NoteText = v
  3474. return s
  3475. }
  3476. // SetNoteUpdatedAt sets the NoteUpdatedAt field's value.
  3477. func (s *AwsSecurityFindingFilters) SetNoteUpdatedAt(v []*DateFilter) *AwsSecurityFindingFilters {
  3478. s.NoteUpdatedAt = v
  3479. return s
  3480. }
  3481. // SetNoteUpdatedBy sets the NoteUpdatedBy field's value.
  3482. func (s *AwsSecurityFindingFilters) SetNoteUpdatedBy(v []*StringFilter) *AwsSecurityFindingFilters {
  3483. s.NoteUpdatedBy = v
  3484. return s
  3485. }
  3486. // SetProcessLaunchedAt sets the ProcessLaunchedAt field's value.
  3487. func (s *AwsSecurityFindingFilters) SetProcessLaunchedAt(v []*DateFilter) *AwsSecurityFindingFilters {
  3488. s.ProcessLaunchedAt = v
  3489. return s
  3490. }
  3491. // SetProcessName sets the ProcessName field's value.
  3492. func (s *AwsSecurityFindingFilters) SetProcessName(v []*StringFilter) *AwsSecurityFindingFilters {
  3493. s.ProcessName = v
  3494. return s
  3495. }
  3496. // SetProcessParentPid sets the ProcessParentPid field's value.
  3497. func (s *AwsSecurityFindingFilters) SetProcessParentPid(v []*NumberFilter) *AwsSecurityFindingFilters {
  3498. s.ProcessParentPid = v
  3499. return s
  3500. }
  3501. // SetProcessPath sets the ProcessPath field's value.
  3502. func (s *AwsSecurityFindingFilters) SetProcessPath(v []*StringFilter) *AwsSecurityFindingFilters {
  3503. s.ProcessPath = v
  3504. return s
  3505. }
  3506. // SetProcessPid sets the ProcessPid field's value.
  3507. func (s *AwsSecurityFindingFilters) SetProcessPid(v []*NumberFilter) *AwsSecurityFindingFilters {
  3508. s.ProcessPid = v
  3509. return s
  3510. }
  3511. // SetProcessTerminatedAt sets the ProcessTerminatedAt field's value.
  3512. func (s *AwsSecurityFindingFilters) SetProcessTerminatedAt(v []*DateFilter) *AwsSecurityFindingFilters {
  3513. s.ProcessTerminatedAt = v
  3514. return s
  3515. }
  3516. // SetProductArn sets the ProductArn field's value.
  3517. func (s *AwsSecurityFindingFilters) SetProductArn(v []*StringFilter) *AwsSecurityFindingFilters {
  3518. s.ProductArn = v
  3519. return s
  3520. }
  3521. // SetProductFields sets the ProductFields field's value.
  3522. func (s *AwsSecurityFindingFilters) SetProductFields(v []*MapFilter) *AwsSecurityFindingFilters {
  3523. s.ProductFields = v
  3524. return s
  3525. }
  3526. // SetProductName sets the ProductName field's value.
  3527. func (s *AwsSecurityFindingFilters) SetProductName(v []*StringFilter) *AwsSecurityFindingFilters {
  3528. s.ProductName = v
  3529. return s
  3530. }
  3531. // SetRecommendationText sets the RecommendationText field's value.
  3532. func (s *AwsSecurityFindingFilters) SetRecommendationText(v []*StringFilter) *AwsSecurityFindingFilters {
  3533. s.RecommendationText = v
  3534. return s
  3535. }
  3536. // SetRecordState sets the RecordState field's value.
  3537. func (s *AwsSecurityFindingFilters) SetRecordState(v []*StringFilter) *AwsSecurityFindingFilters {
  3538. s.RecordState = v
  3539. return s
  3540. }
  3541. // SetRelatedFindingsId sets the RelatedFindingsId field's value.
  3542. func (s *AwsSecurityFindingFilters) SetRelatedFindingsId(v []*StringFilter) *AwsSecurityFindingFilters {
  3543. s.RelatedFindingsId = v
  3544. return s
  3545. }
  3546. // SetRelatedFindingsProductArn sets the RelatedFindingsProductArn field's value.
  3547. func (s *AwsSecurityFindingFilters) SetRelatedFindingsProductArn(v []*StringFilter) *AwsSecurityFindingFilters {
  3548. s.RelatedFindingsProductArn = v
  3549. return s
  3550. }
  3551. // SetResourceAwsEc2InstanceIamInstanceProfileArn sets the ResourceAwsEc2InstanceIamInstanceProfileArn field's value.
  3552. func (s *AwsSecurityFindingFilters) SetResourceAwsEc2InstanceIamInstanceProfileArn(v []*StringFilter) *AwsSecurityFindingFilters {
  3553. s.ResourceAwsEc2InstanceIamInstanceProfileArn = v
  3554. return s
  3555. }
  3556. // SetResourceAwsEc2InstanceImageId sets the ResourceAwsEc2InstanceImageId field's value.
  3557. func (s *AwsSecurityFindingFilters) SetResourceAwsEc2InstanceImageId(v []*StringFilter) *AwsSecurityFindingFilters {
  3558. s.ResourceAwsEc2InstanceImageId = v
  3559. return s
  3560. }
  3561. // SetResourceAwsEc2InstanceIpV4Addresses sets the ResourceAwsEc2InstanceIpV4Addresses field's value.
  3562. func (s *AwsSecurityFindingFilters) SetResourceAwsEc2InstanceIpV4Addresses(v []*IpFilter) *AwsSecurityFindingFilters {
  3563. s.ResourceAwsEc2InstanceIpV4Addresses = v
  3564. return s
  3565. }
  3566. // SetResourceAwsEc2InstanceIpV6Addresses sets the ResourceAwsEc2InstanceIpV6Addresses field's value.
  3567. func (s *AwsSecurityFindingFilters) SetResourceAwsEc2InstanceIpV6Addresses(v []*IpFilter) *AwsSecurityFindingFilters {
  3568. s.ResourceAwsEc2InstanceIpV6Addresses = v
  3569. return s
  3570. }
  3571. // SetResourceAwsEc2InstanceKeyName sets the ResourceAwsEc2InstanceKeyName field's value.
  3572. func (s *AwsSecurityFindingFilters) SetResourceAwsEc2InstanceKeyName(v []*StringFilter) *AwsSecurityFindingFilters {
  3573. s.ResourceAwsEc2InstanceKeyName = v
  3574. return s
  3575. }
  3576. // SetResourceAwsEc2InstanceLaunchedAt sets the ResourceAwsEc2InstanceLaunchedAt field's value.
  3577. func (s *AwsSecurityFindingFilters) SetResourceAwsEc2InstanceLaunchedAt(v []*DateFilter) *AwsSecurityFindingFilters {
  3578. s.ResourceAwsEc2InstanceLaunchedAt = v
  3579. return s
  3580. }
  3581. // SetResourceAwsEc2InstanceSubnetId sets the ResourceAwsEc2InstanceSubnetId field's value.
  3582. func (s *AwsSecurityFindingFilters) SetResourceAwsEc2InstanceSubnetId(v []*StringFilter) *AwsSecurityFindingFilters {
  3583. s.ResourceAwsEc2InstanceSubnetId = v
  3584. return s
  3585. }
  3586. // SetResourceAwsEc2InstanceType sets the ResourceAwsEc2InstanceType field's value.
  3587. func (s *AwsSecurityFindingFilters) SetResourceAwsEc2InstanceType(v []*StringFilter) *AwsSecurityFindingFilters {
  3588. s.ResourceAwsEc2InstanceType = v
  3589. return s
  3590. }
  3591. // SetResourceAwsEc2InstanceVpcId sets the ResourceAwsEc2InstanceVpcId field's value.
  3592. func (s *AwsSecurityFindingFilters) SetResourceAwsEc2InstanceVpcId(v []*StringFilter) *AwsSecurityFindingFilters {
  3593. s.ResourceAwsEc2InstanceVpcId = v
  3594. return s
  3595. }
  3596. // SetResourceAwsIamAccessKeyCreatedAt sets the ResourceAwsIamAccessKeyCreatedAt field's value.
  3597. func (s *AwsSecurityFindingFilters) SetResourceAwsIamAccessKeyCreatedAt(v []*DateFilter) *AwsSecurityFindingFilters {
  3598. s.ResourceAwsIamAccessKeyCreatedAt = v
  3599. return s
  3600. }
  3601. // SetResourceAwsIamAccessKeyStatus sets the ResourceAwsIamAccessKeyStatus field's value.
  3602. func (s *AwsSecurityFindingFilters) SetResourceAwsIamAccessKeyStatus(v []*StringFilter) *AwsSecurityFindingFilters {
  3603. s.ResourceAwsIamAccessKeyStatus = v
  3604. return s
  3605. }
  3606. // SetResourceAwsIamAccessKeyUserName sets the ResourceAwsIamAccessKeyUserName field's value.
  3607. func (s *AwsSecurityFindingFilters) SetResourceAwsIamAccessKeyUserName(v []*StringFilter) *AwsSecurityFindingFilters {
  3608. s.ResourceAwsIamAccessKeyUserName = v
  3609. return s
  3610. }
  3611. // SetResourceAwsS3BucketOwnerId sets the ResourceAwsS3BucketOwnerId field's value.
  3612. func (s *AwsSecurityFindingFilters) SetResourceAwsS3BucketOwnerId(v []*StringFilter) *AwsSecurityFindingFilters {
  3613. s.ResourceAwsS3BucketOwnerId = v
  3614. return s
  3615. }
  3616. // SetResourceAwsS3BucketOwnerName sets the ResourceAwsS3BucketOwnerName field's value.
  3617. func (s *AwsSecurityFindingFilters) SetResourceAwsS3BucketOwnerName(v []*StringFilter) *AwsSecurityFindingFilters {
  3618. s.ResourceAwsS3BucketOwnerName = v
  3619. return s
  3620. }
  3621. // SetResourceContainerImageId sets the ResourceContainerImageId field's value.
  3622. func (s *AwsSecurityFindingFilters) SetResourceContainerImageId(v []*StringFilter) *AwsSecurityFindingFilters {
  3623. s.ResourceContainerImageId = v
  3624. return s
  3625. }
  3626. // SetResourceContainerImageName sets the ResourceContainerImageName field's value.
  3627. func (s *AwsSecurityFindingFilters) SetResourceContainerImageName(v []*StringFilter) *AwsSecurityFindingFilters {
  3628. s.ResourceContainerImageName = v
  3629. return s
  3630. }
  3631. // SetResourceContainerLaunchedAt sets the ResourceContainerLaunchedAt field's value.
  3632. func (s *AwsSecurityFindingFilters) SetResourceContainerLaunchedAt(v []*DateFilter) *AwsSecurityFindingFilters {
  3633. s.ResourceContainerLaunchedAt = v
  3634. return s
  3635. }
  3636. // SetResourceContainerName sets the ResourceContainerName field's value.
  3637. func (s *AwsSecurityFindingFilters) SetResourceContainerName(v []*StringFilter) *AwsSecurityFindingFilters {
  3638. s.ResourceContainerName = v
  3639. return s
  3640. }
  3641. // SetResourceDetailsOther sets the ResourceDetailsOther field's value.
  3642. func (s *AwsSecurityFindingFilters) SetResourceDetailsOther(v []*MapFilter) *AwsSecurityFindingFilters {
  3643. s.ResourceDetailsOther = v
  3644. return s
  3645. }
  3646. // SetResourceId sets the ResourceId field's value.
  3647. func (s *AwsSecurityFindingFilters) SetResourceId(v []*StringFilter) *AwsSecurityFindingFilters {
  3648. s.ResourceId = v
  3649. return s
  3650. }
  3651. // SetResourcePartition sets the ResourcePartition field's value.
  3652. func (s *AwsSecurityFindingFilters) SetResourcePartition(v []*StringFilter) *AwsSecurityFindingFilters {
  3653. s.ResourcePartition = v
  3654. return s
  3655. }
  3656. // SetResourceRegion sets the ResourceRegion field's value.
  3657. func (s *AwsSecurityFindingFilters) SetResourceRegion(v []*StringFilter) *AwsSecurityFindingFilters {
  3658. s.ResourceRegion = v
  3659. return s
  3660. }
  3661. // SetResourceTags sets the ResourceTags field's value.
  3662. func (s *AwsSecurityFindingFilters) SetResourceTags(v []*MapFilter) *AwsSecurityFindingFilters {
  3663. s.ResourceTags = v
  3664. return s
  3665. }
  3666. // SetResourceType sets the ResourceType field's value.
  3667. func (s *AwsSecurityFindingFilters) SetResourceType(v []*StringFilter) *AwsSecurityFindingFilters {
  3668. s.ResourceType = v
  3669. return s
  3670. }
  3671. // SetSeverityLabel sets the SeverityLabel field's value.
  3672. func (s *AwsSecurityFindingFilters) SetSeverityLabel(v []*StringFilter) *AwsSecurityFindingFilters {
  3673. s.SeverityLabel = v
  3674. return s
  3675. }
  3676. // SetSeverityNormalized sets the SeverityNormalized field's value.
  3677. func (s *AwsSecurityFindingFilters) SetSeverityNormalized(v []*NumberFilter) *AwsSecurityFindingFilters {
  3678. s.SeverityNormalized = v
  3679. return s
  3680. }
  3681. // SetSeverityProduct sets the SeverityProduct field's value.
  3682. func (s *AwsSecurityFindingFilters) SetSeverityProduct(v []*NumberFilter) *AwsSecurityFindingFilters {
  3683. s.SeverityProduct = v
  3684. return s
  3685. }
  3686. // SetSourceUrl sets the SourceUrl field's value.
  3687. func (s *AwsSecurityFindingFilters) SetSourceUrl(v []*StringFilter) *AwsSecurityFindingFilters {
  3688. s.SourceUrl = v
  3689. return s
  3690. }
  3691. // SetThreatIntelIndicatorCategory sets the ThreatIntelIndicatorCategory field's value.
  3692. func (s *AwsSecurityFindingFilters) SetThreatIntelIndicatorCategory(v []*StringFilter) *AwsSecurityFindingFilters {
  3693. s.ThreatIntelIndicatorCategory = v
  3694. return s
  3695. }
  3696. // SetThreatIntelIndicatorLastObservedAt sets the ThreatIntelIndicatorLastObservedAt field's value.
  3697. func (s *AwsSecurityFindingFilters) SetThreatIntelIndicatorLastObservedAt(v []*DateFilter) *AwsSecurityFindingFilters {
  3698. s.ThreatIntelIndicatorLastObservedAt = v
  3699. return s
  3700. }
  3701. // SetThreatIntelIndicatorSource sets the ThreatIntelIndicatorSource field's value.
  3702. func (s *AwsSecurityFindingFilters) SetThreatIntelIndicatorSource(v []*StringFilter) *AwsSecurityFindingFilters {
  3703. s.ThreatIntelIndicatorSource = v
  3704. return s
  3705. }
  3706. // SetThreatIntelIndicatorSourceUrl sets the ThreatIntelIndicatorSourceUrl field's value.
  3707. func (s *AwsSecurityFindingFilters) SetThreatIntelIndicatorSourceUrl(v []*StringFilter) *AwsSecurityFindingFilters {
  3708. s.ThreatIntelIndicatorSourceUrl = v
  3709. return s
  3710. }
  3711. // SetThreatIntelIndicatorType sets the ThreatIntelIndicatorType field's value.
  3712. func (s *AwsSecurityFindingFilters) SetThreatIntelIndicatorType(v []*StringFilter) *AwsSecurityFindingFilters {
  3713. s.ThreatIntelIndicatorType = v
  3714. return s
  3715. }
  3716. // SetThreatIntelIndicatorValue sets the ThreatIntelIndicatorValue field's value.
  3717. func (s *AwsSecurityFindingFilters) SetThreatIntelIndicatorValue(v []*StringFilter) *AwsSecurityFindingFilters {
  3718. s.ThreatIntelIndicatorValue = v
  3719. return s
  3720. }
  3721. // SetTitle sets the Title field's value.
  3722. func (s *AwsSecurityFindingFilters) SetTitle(v []*StringFilter) *AwsSecurityFindingFilters {
  3723. s.Title = v
  3724. return s
  3725. }
  3726. // SetType sets the Type field's value.
  3727. func (s *AwsSecurityFindingFilters) SetType(v []*StringFilter) *AwsSecurityFindingFilters {
  3728. s.Type = v
  3729. return s
  3730. }
  3731. // SetUpdatedAt sets the UpdatedAt field's value.
  3732. func (s *AwsSecurityFindingFilters) SetUpdatedAt(v []*DateFilter) *AwsSecurityFindingFilters {
  3733. s.UpdatedAt = v
  3734. return s
  3735. }
  3736. // SetUserDefinedFields sets the UserDefinedFields field's value.
  3737. func (s *AwsSecurityFindingFilters) SetUserDefinedFields(v []*MapFilter) *AwsSecurityFindingFilters {
  3738. s.UserDefinedFields = v
  3739. return s
  3740. }
  3741. // SetVerificationState sets the VerificationState field's value.
  3742. func (s *AwsSecurityFindingFilters) SetVerificationState(v []*StringFilter) *AwsSecurityFindingFilters {
  3743. s.VerificationState = v
  3744. return s
  3745. }
  3746. // SetWorkflowState sets the WorkflowState field's value.
  3747. func (s *AwsSecurityFindingFilters) SetWorkflowState(v []*StringFilter) *AwsSecurityFindingFilters {
  3748. s.WorkflowState = v
  3749. return s
  3750. }
  3751. type BatchDisableStandardsInput struct {
  3752. _ struct{} `type:"structure"`
  3753. // The ARNS of the standards subscriptions that you want to disable.
  3754. //
  3755. // StandardsSubscriptionArns is a required field
  3756. StandardsSubscriptionArns []*string `min:"1" type:"list" required:"true"`
  3757. }
  3758. // String returns the string representation
  3759. func (s BatchDisableStandardsInput) String() string {
  3760. return awsutil.Prettify(s)
  3761. }
  3762. // GoString returns the string representation
  3763. func (s BatchDisableStandardsInput) GoString() string {
  3764. return s.String()
  3765. }
  3766. // Validate inspects the fields of the type to determine if they are valid.
  3767. func (s *BatchDisableStandardsInput) Validate() error {
  3768. invalidParams := request.ErrInvalidParams{Context: "BatchDisableStandardsInput"}
  3769. if s.StandardsSubscriptionArns == nil {
  3770. invalidParams.Add(request.NewErrParamRequired("StandardsSubscriptionArns"))
  3771. }
  3772. if s.StandardsSubscriptionArns != nil && len(s.StandardsSubscriptionArns) < 1 {
  3773. invalidParams.Add(request.NewErrParamMinLen("StandardsSubscriptionArns", 1))
  3774. }
  3775. if invalidParams.Len() > 0 {
  3776. return invalidParams
  3777. }
  3778. return nil
  3779. }
  3780. // SetStandardsSubscriptionArns sets the StandardsSubscriptionArns field's value.
  3781. func (s *BatchDisableStandardsInput) SetStandardsSubscriptionArns(v []*string) *BatchDisableStandardsInput {
  3782. s.StandardsSubscriptionArns = v
  3783. return s
  3784. }
  3785. type BatchDisableStandardsOutput struct {
  3786. _ struct{} `type:"structure"`
  3787. // The details of the standards subscriptions that were disabled.
  3788. StandardsSubscriptions []*StandardsSubscription `type:"list"`
  3789. }
  3790. // String returns the string representation
  3791. func (s BatchDisableStandardsOutput) String() string {
  3792. return awsutil.Prettify(s)
  3793. }
  3794. // GoString returns the string representation
  3795. func (s BatchDisableStandardsOutput) GoString() string {
  3796. return s.String()
  3797. }
  3798. // SetStandardsSubscriptions sets the StandardsSubscriptions field's value.
  3799. func (s *BatchDisableStandardsOutput) SetStandardsSubscriptions(v []*StandardsSubscription) *BatchDisableStandardsOutput {
  3800. s.StandardsSubscriptions = v
  3801. return s
  3802. }
  3803. type BatchEnableStandardsInput struct {
  3804. _ struct{} `type:"structure"`
  3805. // The list of standards that you want to enable.
  3806. //
  3807. // StandardsSubscriptionRequests is a required field
  3808. StandardsSubscriptionRequests []*StandardsSubscriptionRequest `min:"1" type:"list" required:"true"`
  3809. }
  3810. // String returns the string representation
  3811. func (s BatchEnableStandardsInput) String() string {
  3812. return awsutil.Prettify(s)
  3813. }
  3814. // GoString returns the string representation
  3815. func (s BatchEnableStandardsInput) GoString() string {
  3816. return s.String()
  3817. }
  3818. // Validate inspects the fields of the type to determine if they are valid.
  3819. func (s *BatchEnableStandardsInput) Validate() error {
  3820. invalidParams := request.ErrInvalidParams{Context: "BatchEnableStandardsInput"}
  3821. if s.StandardsSubscriptionRequests == nil {
  3822. invalidParams.Add(request.NewErrParamRequired("StandardsSubscriptionRequests"))
  3823. }
  3824. if s.StandardsSubscriptionRequests != nil && len(s.StandardsSubscriptionRequests) < 1 {
  3825. invalidParams.Add(request.NewErrParamMinLen("StandardsSubscriptionRequests", 1))
  3826. }
  3827. if s.StandardsSubscriptionRequests != nil {
  3828. for i, v := range s.StandardsSubscriptionRequests {
  3829. if v == nil {
  3830. continue
  3831. }
  3832. if err := v.Validate(); err != nil {
  3833. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "StandardsSubscriptionRequests", i), err.(request.ErrInvalidParams))
  3834. }
  3835. }
  3836. }
  3837. if invalidParams.Len() > 0 {
  3838. return invalidParams
  3839. }
  3840. return nil
  3841. }
  3842. // SetStandardsSubscriptionRequests sets the StandardsSubscriptionRequests field's value.
  3843. func (s *BatchEnableStandardsInput) SetStandardsSubscriptionRequests(v []*StandardsSubscriptionRequest) *BatchEnableStandardsInput {
  3844. s.StandardsSubscriptionRequests = v
  3845. return s
  3846. }
  3847. type BatchEnableStandardsOutput struct {
  3848. _ struct{} `type:"structure"`
  3849. // The details of the standards subscriptions that were enabled.
  3850. StandardsSubscriptions []*StandardsSubscription `type:"list"`
  3851. }
  3852. // String returns the string representation
  3853. func (s BatchEnableStandardsOutput) String() string {
  3854. return awsutil.Prettify(s)
  3855. }
  3856. // GoString returns the string representation
  3857. func (s BatchEnableStandardsOutput) GoString() string {
  3858. return s.String()
  3859. }
  3860. // SetStandardsSubscriptions sets the StandardsSubscriptions field's value.
  3861. func (s *BatchEnableStandardsOutput) SetStandardsSubscriptions(v []*StandardsSubscription) *BatchEnableStandardsOutput {
  3862. s.StandardsSubscriptions = v
  3863. return s
  3864. }
  3865. type BatchImportFindingsInput struct {
  3866. _ struct{} `type:"structure"`
  3867. // A list of findings that you want to import. Must be submitted in the AWSSecurityFinding
  3868. // format.
  3869. //
  3870. // Findings is a required field
  3871. Findings []*AwsSecurityFinding `type:"list" required:"true"`
  3872. }
  3873. // String returns the string representation
  3874. func (s BatchImportFindingsInput) String() string {
  3875. return awsutil.Prettify(s)
  3876. }
  3877. // GoString returns the string representation
  3878. func (s BatchImportFindingsInput) GoString() string {
  3879. return s.String()
  3880. }
  3881. // Validate inspects the fields of the type to determine if they are valid.
  3882. func (s *BatchImportFindingsInput) Validate() error {
  3883. invalidParams := request.ErrInvalidParams{Context: "BatchImportFindingsInput"}
  3884. if s.Findings == nil {
  3885. invalidParams.Add(request.NewErrParamRequired("Findings"))
  3886. }
  3887. if s.Findings != nil {
  3888. for i, v := range s.Findings {
  3889. if v == nil {
  3890. continue
  3891. }
  3892. if err := v.Validate(); err != nil {
  3893. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Findings", i), err.(request.ErrInvalidParams))
  3894. }
  3895. }
  3896. }
  3897. if invalidParams.Len() > 0 {
  3898. return invalidParams
  3899. }
  3900. return nil
  3901. }
  3902. // SetFindings sets the Findings field's value.
  3903. func (s *BatchImportFindingsInput) SetFindings(v []*AwsSecurityFinding) *BatchImportFindingsInput {
  3904. s.Findings = v
  3905. return s
  3906. }
  3907. type BatchImportFindingsOutput struct {
  3908. _ struct{} `type:"structure"`
  3909. // The number of findings that cannot be imported.
  3910. //
  3911. // FailedCount is a required field
  3912. FailedCount *int64 `type:"integer" required:"true"`
  3913. // The list of the findings that cannot be imported.
  3914. FailedFindings []*ImportFindingsError `type:"list"`
  3915. // The number of findings that were successfully imported
  3916. //
  3917. // SuccessCount is a required field
  3918. SuccessCount *int64 `type:"integer" required:"true"`
  3919. }
  3920. // String returns the string representation
  3921. func (s BatchImportFindingsOutput) String() string {
  3922. return awsutil.Prettify(s)
  3923. }
  3924. // GoString returns the string representation
  3925. func (s BatchImportFindingsOutput) GoString() string {
  3926. return s.String()
  3927. }
  3928. // SetFailedCount sets the FailedCount field's value.
  3929. func (s *BatchImportFindingsOutput) SetFailedCount(v int64) *BatchImportFindingsOutput {
  3930. s.FailedCount = &v
  3931. return s
  3932. }
  3933. // SetFailedFindings sets the FailedFindings field's value.
  3934. func (s *BatchImportFindingsOutput) SetFailedFindings(v []*ImportFindingsError) *BatchImportFindingsOutput {
  3935. s.FailedFindings = v
  3936. return s
  3937. }
  3938. // SetSuccessCount sets the SuccessCount field's value.
  3939. func (s *BatchImportFindingsOutput) SetSuccessCount(v int64) *BatchImportFindingsOutput {
  3940. s.SuccessCount = &v
  3941. return s
  3942. }
  3943. // Exclusive to findings that are generated as the result of a check run against
  3944. // a specific rule in a supported standard (for example, AWS CIS Foundations).
  3945. // Contains compliance-related finding details.
  3946. type Compliance struct {
  3947. _ struct{} `type:"structure"`
  3948. // Indicates the result of a compliance check.
  3949. Status *string `type:"string" enum:"ComplianceStatus"`
  3950. }
  3951. // String returns the string representation
  3952. func (s Compliance) String() string {
  3953. return awsutil.Prettify(s)
  3954. }
  3955. // GoString returns the string representation
  3956. func (s Compliance) GoString() string {
  3957. return s.String()
  3958. }
  3959. // SetStatus sets the Status field's value.
  3960. func (s *Compliance) SetStatus(v string) *Compliance {
  3961. s.Status = &v
  3962. return s
  3963. }
  3964. // Container details related to a finding.
  3965. type ContainerDetails struct {
  3966. _ struct{} `type:"structure"`
  3967. // The identifier of the image related to a finding.
  3968. ImageId *string `type:"string"`
  3969. // The name of the image related to a finding.
  3970. ImageName *string `type:"string"`
  3971. // The date/time that the container was started.
  3972. LaunchedAt *string `type:"string"`
  3973. // The name of the container related to a finding.
  3974. Name *string `type:"string"`
  3975. }
  3976. // String returns the string representation
  3977. func (s ContainerDetails) String() string {
  3978. return awsutil.Prettify(s)
  3979. }
  3980. // GoString returns the string representation
  3981. func (s ContainerDetails) GoString() string {
  3982. return s.String()
  3983. }
  3984. // SetImageId sets the ImageId field's value.
  3985. func (s *ContainerDetails) SetImageId(v string) *ContainerDetails {
  3986. s.ImageId = &v
  3987. return s
  3988. }
  3989. // SetImageName sets the ImageName field's value.
  3990. func (s *ContainerDetails) SetImageName(v string) *ContainerDetails {
  3991. s.ImageName = &v
  3992. return s
  3993. }
  3994. // SetLaunchedAt sets the LaunchedAt field's value.
  3995. func (s *ContainerDetails) SetLaunchedAt(v string) *ContainerDetails {
  3996. s.LaunchedAt = &v
  3997. return s
  3998. }
  3999. // SetName sets the Name field's value.
  4000. func (s *ContainerDetails) SetName(v string) *ContainerDetails {
  4001. s.Name = &v
  4002. return s
  4003. }
  4004. type CreateInsightInput struct {
  4005. _ struct{} `type:"structure"`
  4006. // A collection of attributes that are applied to all active Security Hub-aggregated
  4007. // findings and that result in a subset of findings that are included in this
  4008. // insight.
  4009. //
  4010. // Filters is a required field
  4011. Filters *AwsSecurityFindingFilters `type:"structure" required:"true"`
  4012. // The attribute by which the insight's findings are grouped. This attribute
  4013. // is used as a findings aggregator for the purposes of viewing and managing
  4014. // multiple related findings under a single operand.
  4015. //
  4016. // GroupByAttribute is a required field
  4017. GroupByAttribute *string `type:"string" required:"true"`
  4018. // The user-defined name that identifies the insight that you want to create.
  4019. //
  4020. // Name is a required field
  4021. Name *string `type:"string" required:"true"`
  4022. }
  4023. // String returns the string representation
  4024. func (s CreateInsightInput) String() string {
  4025. return awsutil.Prettify(s)
  4026. }
  4027. // GoString returns the string representation
  4028. func (s CreateInsightInput) GoString() string {
  4029. return s.String()
  4030. }
  4031. // Validate inspects the fields of the type to determine if they are valid.
  4032. func (s *CreateInsightInput) Validate() error {
  4033. invalidParams := request.ErrInvalidParams{Context: "CreateInsightInput"}
  4034. if s.Filters == nil {
  4035. invalidParams.Add(request.NewErrParamRequired("Filters"))
  4036. }
  4037. if s.GroupByAttribute == nil {
  4038. invalidParams.Add(request.NewErrParamRequired("GroupByAttribute"))
  4039. }
  4040. if s.Name == nil {
  4041. invalidParams.Add(request.NewErrParamRequired("Name"))
  4042. }
  4043. if invalidParams.Len() > 0 {
  4044. return invalidParams
  4045. }
  4046. return nil
  4047. }
  4048. // SetFilters sets the Filters field's value.
  4049. func (s *CreateInsightInput) SetFilters(v *AwsSecurityFindingFilters) *CreateInsightInput {
  4050. s.Filters = v
  4051. return s
  4052. }
  4053. // SetGroupByAttribute sets the GroupByAttribute field's value.
  4054. func (s *CreateInsightInput) SetGroupByAttribute(v string) *CreateInsightInput {
  4055. s.GroupByAttribute = &v
  4056. return s
  4057. }
  4058. // SetName sets the Name field's value.
  4059. func (s *CreateInsightInput) SetName(v string) *CreateInsightInput {
  4060. s.Name = &v
  4061. return s
  4062. }
  4063. type CreateInsightOutput struct {
  4064. _ struct{} `type:"structure"`
  4065. // The ARN Of the created insight.
  4066. //
  4067. // InsightArn is a required field
  4068. InsightArn *string `type:"string" required:"true"`
  4069. }
  4070. // String returns the string representation
  4071. func (s CreateInsightOutput) String() string {
  4072. return awsutil.Prettify(s)
  4073. }
  4074. // GoString returns the string representation
  4075. func (s CreateInsightOutput) GoString() string {
  4076. return s.String()
  4077. }
  4078. // SetInsightArn sets the InsightArn field's value.
  4079. func (s *CreateInsightOutput) SetInsightArn(v string) *CreateInsightOutput {
  4080. s.InsightArn = &v
  4081. return s
  4082. }
  4083. type CreateMembersInput struct {
  4084. _ struct{} `type:"structure"`
  4085. // A list of account ID and email address pairs of the accounts that you want
  4086. // to associate with the master Security Hub account.
  4087. AccountDetails []*AccountDetails `type:"list"`
  4088. }
  4089. // String returns the string representation
  4090. func (s CreateMembersInput) String() string {
  4091. return awsutil.Prettify(s)
  4092. }
  4093. // GoString returns the string representation
  4094. func (s CreateMembersInput) GoString() string {
  4095. return s.String()
  4096. }
  4097. // SetAccountDetails sets the AccountDetails field's value.
  4098. func (s *CreateMembersInput) SetAccountDetails(v []*AccountDetails) *CreateMembersInput {
  4099. s.AccountDetails = v
  4100. return s
  4101. }
  4102. type CreateMembersOutput struct {
  4103. _ struct{} `type:"structure"`
  4104. // A list of account ID and email address pairs of the AWS accounts that could
  4105. // not be processed.
  4106. UnprocessedAccounts []*Result `type:"list"`
  4107. }
  4108. // String returns the string representation
  4109. func (s CreateMembersOutput) String() string {
  4110. return awsutil.Prettify(s)
  4111. }
  4112. // GoString returns the string representation
  4113. func (s CreateMembersOutput) GoString() string {
  4114. return s.String()
  4115. }
  4116. // SetUnprocessedAccounts sets the UnprocessedAccounts field's value.
  4117. func (s *CreateMembersOutput) SetUnprocessedAccounts(v []*Result) *CreateMembersOutput {
  4118. s.UnprocessedAccounts = v
  4119. return s
  4120. }
  4121. // A date filter for querying findings.
  4122. type DateFilter struct {
  4123. _ struct{} `type:"structure"`
  4124. // A date range for the date filter.
  4125. DateRange *DateRange `type:"structure"`
  4126. // An end date for the date filter.
  4127. End *string `type:"string"`
  4128. // A start date for the date filter.
  4129. Start *string `type:"string"`
  4130. }
  4131. // String returns the string representation
  4132. func (s DateFilter) String() string {
  4133. return awsutil.Prettify(s)
  4134. }
  4135. // GoString returns the string representation
  4136. func (s DateFilter) GoString() string {
  4137. return s.String()
  4138. }
  4139. // SetDateRange sets the DateRange field's value.
  4140. func (s *DateFilter) SetDateRange(v *DateRange) *DateFilter {
  4141. s.DateRange = v
  4142. return s
  4143. }
  4144. // SetEnd sets the End field's value.
  4145. func (s *DateFilter) SetEnd(v string) *DateFilter {
  4146. s.End = &v
  4147. return s
  4148. }
  4149. // SetStart sets the Start field's value.
  4150. func (s *DateFilter) SetStart(v string) *DateFilter {
  4151. s.Start = &v
  4152. return s
  4153. }
  4154. // A date range for the date filter.
  4155. type DateRange struct {
  4156. _ struct{} `type:"structure"`
  4157. // A date range unit for the date filter.
  4158. Unit *string `type:"string" enum:"DateRangeUnit"`
  4159. // A date range value for the date filter.
  4160. Value *int64 `type:"integer"`
  4161. }
  4162. // String returns the string representation
  4163. func (s DateRange) String() string {
  4164. return awsutil.Prettify(s)
  4165. }
  4166. // GoString returns the string representation
  4167. func (s DateRange) GoString() string {
  4168. return s.String()
  4169. }
  4170. // SetUnit sets the Unit field's value.
  4171. func (s *DateRange) SetUnit(v string) *DateRange {
  4172. s.Unit = &v
  4173. return s
  4174. }
  4175. // SetValue sets the Value field's value.
  4176. func (s *DateRange) SetValue(v int64) *DateRange {
  4177. s.Value = &v
  4178. return s
  4179. }
  4180. type DeclineInvitationsInput struct {
  4181. _ struct{} `type:"structure"`
  4182. // A list of account IDs specifying accounts whose invitations to Security Hub
  4183. // you want to decline.
  4184. AccountIds []*string `type:"list"`
  4185. }
  4186. // String returns the string representation
  4187. func (s DeclineInvitationsInput) String() string {
  4188. return awsutil.Prettify(s)
  4189. }
  4190. // GoString returns the string representation
  4191. func (s DeclineInvitationsInput) GoString() string {
  4192. return s.String()
  4193. }
  4194. // SetAccountIds sets the AccountIds field's value.
  4195. func (s *DeclineInvitationsInput) SetAccountIds(v []*string) *DeclineInvitationsInput {
  4196. s.AccountIds = v
  4197. return s
  4198. }
  4199. type DeclineInvitationsOutput struct {
  4200. _ struct{} `type:"structure"`
  4201. // A list of account ID and email address pairs of the AWS accounts that could
  4202. // not be processed.
  4203. UnprocessedAccounts []*Result `type:"list"`
  4204. }
  4205. // String returns the string representation
  4206. func (s DeclineInvitationsOutput) String() string {
  4207. return awsutil.Prettify(s)
  4208. }
  4209. // GoString returns the string representation
  4210. func (s DeclineInvitationsOutput) GoString() string {
  4211. return s.String()
  4212. }
  4213. // SetUnprocessedAccounts sets the UnprocessedAccounts field's value.
  4214. func (s *DeclineInvitationsOutput) SetUnprocessedAccounts(v []*Result) *DeclineInvitationsOutput {
  4215. s.UnprocessedAccounts = v
  4216. return s
  4217. }
  4218. type DeleteInsightInput struct {
  4219. _ struct{} `type:"structure"`
  4220. // The ARN of the insight that you want to delete.
  4221. //
  4222. // InsightArn is a required field
  4223. InsightArn *string `location:"uri" locationName:"InsightArn" type:"string" required:"true"`
  4224. }
  4225. // String returns the string representation
  4226. func (s DeleteInsightInput) String() string {
  4227. return awsutil.Prettify(s)
  4228. }
  4229. // GoString returns the string representation
  4230. func (s DeleteInsightInput) GoString() string {
  4231. return s.String()
  4232. }
  4233. // Validate inspects the fields of the type to determine if they are valid.
  4234. func (s *DeleteInsightInput) Validate() error {
  4235. invalidParams := request.ErrInvalidParams{Context: "DeleteInsightInput"}
  4236. if s.InsightArn == nil {
  4237. invalidParams.Add(request.NewErrParamRequired("InsightArn"))
  4238. }
  4239. if s.InsightArn != nil && len(*s.InsightArn) < 1 {
  4240. invalidParams.Add(request.NewErrParamMinLen("InsightArn", 1))
  4241. }
  4242. if invalidParams.Len() > 0 {
  4243. return invalidParams
  4244. }
  4245. return nil
  4246. }
  4247. // SetInsightArn sets the InsightArn field's value.
  4248. func (s *DeleteInsightInput) SetInsightArn(v string) *DeleteInsightInput {
  4249. s.InsightArn = &v
  4250. return s
  4251. }
  4252. type DeleteInsightOutput struct {
  4253. _ struct{} `type:"structure"`
  4254. // The ARN of the insight that was deleted.
  4255. //
  4256. // InsightArn is a required field
  4257. InsightArn *string `type:"string" required:"true"`
  4258. }
  4259. // String returns the string representation
  4260. func (s DeleteInsightOutput) String() string {
  4261. return awsutil.Prettify(s)
  4262. }
  4263. // GoString returns the string representation
  4264. func (s DeleteInsightOutput) GoString() string {
  4265. return s.String()
  4266. }
  4267. // SetInsightArn sets the InsightArn field's value.
  4268. func (s *DeleteInsightOutput) SetInsightArn(v string) *DeleteInsightOutput {
  4269. s.InsightArn = &v
  4270. return s
  4271. }
  4272. type DeleteInvitationsInput struct {
  4273. _ struct{} `type:"structure"`
  4274. // A list of account IDs specifying accounts whose invitations to Security Hub
  4275. // you want to delete.
  4276. AccountIds []*string `type:"list"`
  4277. }
  4278. // String returns the string representation
  4279. func (s DeleteInvitationsInput) String() string {
  4280. return awsutil.Prettify(s)
  4281. }
  4282. // GoString returns the string representation
  4283. func (s DeleteInvitationsInput) GoString() string {
  4284. return s.String()
  4285. }
  4286. // SetAccountIds sets the AccountIds field's value.
  4287. func (s *DeleteInvitationsInput) SetAccountIds(v []*string) *DeleteInvitationsInput {
  4288. s.AccountIds = v
  4289. return s
  4290. }
  4291. type DeleteInvitationsOutput struct {
  4292. _ struct{} `type:"structure"`
  4293. // A list of account ID and email address pairs of the AWS accounts that could
  4294. // not be processed.
  4295. UnprocessedAccounts []*Result `type:"list"`
  4296. }
  4297. // String returns the string representation
  4298. func (s DeleteInvitationsOutput) String() string {
  4299. return awsutil.Prettify(s)
  4300. }
  4301. // GoString returns the string representation
  4302. func (s DeleteInvitationsOutput) GoString() string {
  4303. return s.String()
  4304. }
  4305. // SetUnprocessedAccounts sets the UnprocessedAccounts field's value.
  4306. func (s *DeleteInvitationsOutput) SetUnprocessedAccounts(v []*Result) *DeleteInvitationsOutput {
  4307. s.UnprocessedAccounts = v
  4308. return s
  4309. }
  4310. type DeleteMembersInput struct {
  4311. _ struct{} `type:"structure"`
  4312. // A list of account IDs of the Security Hub member accounts that you want to
  4313. // delete.
  4314. AccountIds []*string `type:"list"`
  4315. }
  4316. // String returns the string representation
  4317. func (s DeleteMembersInput) String() string {
  4318. return awsutil.Prettify(s)
  4319. }
  4320. // GoString returns the string representation
  4321. func (s DeleteMembersInput) GoString() string {
  4322. return s.String()
  4323. }
  4324. // SetAccountIds sets the AccountIds field's value.
  4325. func (s *DeleteMembersInput) SetAccountIds(v []*string) *DeleteMembersInput {
  4326. s.AccountIds = v
  4327. return s
  4328. }
  4329. type DeleteMembersOutput struct {
  4330. _ struct{} `type:"structure"`
  4331. // A list of account ID and email address pairs of the AWS accounts that could
  4332. // not be processed.
  4333. UnprocessedAccounts []*Result `type:"list"`
  4334. }
  4335. // String returns the string representation
  4336. func (s DeleteMembersOutput) String() string {
  4337. return awsutil.Prettify(s)
  4338. }
  4339. // GoString returns the string representation
  4340. func (s DeleteMembersOutput) GoString() string {
  4341. return s.String()
  4342. }
  4343. // SetUnprocessedAccounts sets the UnprocessedAccounts field's value.
  4344. func (s *DeleteMembersOutput) SetUnprocessedAccounts(v []*Result) *DeleteMembersOutput {
  4345. s.UnprocessedAccounts = v
  4346. return s
  4347. }
  4348. type DisableImportFindingsForProductInput struct {
  4349. _ struct{} `type:"structure"`
  4350. // The ARN of a resource that represents your subscription to a supported product.
  4351. //
  4352. // ProductSubscriptionArn is a required field
  4353. ProductSubscriptionArn *string `location:"uri" locationName:"ProductSubscriptionArn" type:"string" required:"true"`
  4354. }
  4355. // String returns the string representation
  4356. func (s DisableImportFindingsForProductInput) String() string {
  4357. return awsutil.Prettify(s)
  4358. }
  4359. // GoString returns the string representation
  4360. func (s DisableImportFindingsForProductInput) GoString() string {
  4361. return s.String()
  4362. }
  4363. // Validate inspects the fields of the type to determine if they are valid.
  4364. func (s *DisableImportFindingsForProductInput) Validate() error {
  4365. invalidParams := request.ErrInvalidParams{Context: "DisableImportFindingsForProductInput"}
  4366. if s.ProductSubscriptionArn == nil {
  4367. invalidParams.Add(request.NewErrParamRequired("ProductSubscriptionArn"))
  4368. }
  4369. if s.ProductSubscriptionArn != nil && len(*s.ProductSubscriptionArn) < 1 {
  4370. invalidParams.Add(request.NewErrParamMinLen("ProductSubscriptionArn", 1))
  4371. }
  4372. if invalidParams.Len() > 0 {
  4373. return invalidParams
  4374. }
  4375. return nil
  4376. }
  4377. // SetProductSubscriptionArn sets the ProductSubscriptionArn field's value.
  4378. func (s *DisableImportFindingsForProductInput) SetProductSubscriptionArn(v string) *DisableImportFindingsForProductInput {
  4379. s.ProductSubscriptionArn = &v
  4380. return s
  4381. }
  4382. type DisableImportFindingsForProductOutput struct {
  4383. _ struct{} `type:"structure"`
  4384. }
  4385. // String returns the string representation
  4386. func (s DisableImportFindingsForProductOutput) String() string {
  4387. return awsutil.Prettify(s)
  4388. }
  4389. // GoString returns the string representation
  4390. func (s DisableImportFindingsForProductOutput) GoString() string {
  4391. return s.String()
  4392. }
  4393. type DisableSecurityHubInput struct {
  4394. _ struct{} `type:"structure"`
  4395. }
  4396. // String returns the string representation
  4397. func (s DisableSecurityHubInput) String() string {
  4398. return awsutil.Prettify(s)
  4399. }
  4400. // GoString returns the string representation
  4401. func (s DisableSecurityHubInput) GoString() string {
  4402. return s.String()
  4403. }
  4404. type DisableSecurityHubOutput struct {
  4405. _ struct{} `type:"structure"`
  4406. }
  4407. // String returns the string representation
  4408. func (s DisableSecurityHubOutput) String() string {
  4409. return awsutil.Prettify(s)
  4410. }
  4411. // GoString returns the string representation
  4412. func (s DisableSecurityHubOutput) GoString() string {
  4413. return s.String()
  4414. }
  4415. type DisassociateFromMasterAccountInput struct {
  4416. _ struct{} `type:"structure"`
  4417. }
  4418. // String returns the string representation
  4419. func (s DisassociateFromMasterAccountInput) String() string {
  4420. return awsutil.Prettify(s)
  4421. }
  4422. // GoString returns the string representation
  4423. func (s DisassociateFromMasterAccountInput) GoString() string {
  4424. return s.String()
  4425. }
  4426. type DisassociateFromMasterAccountOutput struct {
  4427. _ struct{} `type:"structure"`
  4428. }
  4429. // String returns the string representation
  4430. func (s DisassociateFromMasterAccountOutput) String() string {
  4431. return awsutil.Prettify(s)
  4432. }
  4433. // GoString returns the string representation
  4434. func (s DisassociateFromMasterAccountOutput) GoString() string {
  4435. return s.String()
  4436. }
  4437. type DisassociateMembersInput struct {
  4438. _ struct{} `type:"structure"`
  4439. // The account IDs of the member accounts that you want to disassociate from
  4440. // the master account.
  4441. AccountIds []*string `type:"list"`
  4442. }
  4443. // String returns the string representation
  4444. func (s DisassociateMembersInput) String() string {
  4445. return awsutil.Prettify(s)
  4446. }
  4447. // GoString returns the string representation
  4448. func (s DisassociateMembersInput) GoString() string {
  4449. return s.String()
  4450. }
  4451. // SetAccountIds sets the AccountIds field's value.
  4452. func (s *DisassociateMembersInput) SetAccountIds(v []*string) *DisassociateMembersInput {
  4453. s.AccountIds = v
  4454. return s
  4455. }
  4456. type DisassociateMembersOutput struct {
  4457. _ struct{} `type:"structure"`
  4458. }
  4459. // String returns the string representation
  4460. func (s DisassociateMembersOutput) String() string {
  4461. return awsutil.Prettify(s)
  4462. }
  4463. // GoString returns the string representation
  4464. func (s DisassociateMembersOutput) GoString() string {
  4465. return s.String()
  4466. }
  4467. type EnableImportFindingsForProductInput struct {
  4468. _ struct{} `type:"structure"`
  4469. // The ARN of the product that generates findings that you want to import into
  4470. // Security Hub.
  4471. //
  4472. // ProductArn is a required field
  4473. ProductArn *string `type:"string" required:"true"`
  4474. }
  4475. // String returns the string representation
  4476. func (s EnableImportFindingsForProductInput) String() string {
  4477. return awsutil.Prettify(s)
  4478. }
  4479. // GoString returns the string representation
  4480. func (s EnableImportFindingsForProductInput) GoString() string {
  4481. return s.String()
  4482. }
  4483. // Validate inspects the fields of the type to determine if they are valid.
  4484. func (s *EnableImportFindingsForProductInput) Validate() error {
  4485. invalidParams := request.ErrInvalidParams{Context: "EnableImportFindingsForProductInput"}
  4486. if s.ProductArn == nil {
  4487. invalidParams.Add(request.NewErrParamRequired("ProductArn"))
  4488. }
  4489. if invalidParams.Len() > 0 {
  4490. return invalidParams
  4491. }
  4492. return nil
  4493. }
  4494. // SetProductArn sets the ProductArn field's value.
  4495. func (s *EnableImportFindingsForProductInput) SetProductArn(v string) *EnableImportFindingsForProductInput {
  4496. s.ProductArn = &v
  4497. return s
  4498. }
  4499. type EnableImportFindingsForProductOutput struct {
  4500. _ struct{} `type:"structure"`
  4501. // The ARN of a resource that represents your subscription to the product that
  4502. // generates the findings that you want to import into Security Hub.
  4503. ProductSubscriptionArn *string `type:"string"`
  4504. }
  4505. // String returns the string representation
  4506. func (s EnableImportFindingsForProductOutput) String() string {
  4507. return awsutil.Prettify(s)
  4508. }
  4509. // GoString returns the string representation
  4510. func (s EnableImportFindingsForProductOutput) GoString() string {
  4511. return s.String()
  4512. }
  4513. // SetProductSubscriptionArn sets the ProductSubscriptionArn field's value.
  4514. func (s *EnableImportFindingsForProductOutput) SetProductSubscriptionArn(v string) *EnableImportFindingsForProductOutput {
  4515. s.ProductSubscriptionArn = &v
  4516. return s
  4517. }
  4518. type EnableSecurityHubInput struct {
  4519. _ struct{} `type:"structure"`
  4520. }
  4521. // String returns the string representation
  4522. func (s EnableSecurityHubInput) String() string {
  4523. return awsutil.Prettify(s)
  4524. }
  4525. // GoString returns the string representation
  4526. func (s EnableSecurityHubInput) GoString() string {
  4527. return s.String()
  4528. }
  4529. type EnableSecurityHubOutput struct {
  4530. _ struct{} `type:"structure"`
  4531. }
  4532. // String returns the string representation
  4533. func (s EnableSecurityHubOutput) String() string {
  4534. return awsutil.Prettify(s)
  4535. }
  4536. // GoString returns the string representation
  4537. func (s EnableSecurityHubOutput) GoString() string {
  4538. return s.String()
  4539. }
  4540. type GetEnabledStandardsInput struct {
  4541. _ struct{} `type:"structure"`
  4542. // Indicates the maximum number of items that you want in the response.
  4543. MaxResults *int64 `min:"1" type:"integer"`
  4544. // Paginates results. Set the value of this parameter to NULL on your first
  4545. // call to the GetEnabledStandards operation. For subsequent calls to the operation,
  4546. // fill nextToken in the request with the value of nextToken from the previous
  4547. // response to continue listing data.
  4548. NextToken *string `type:"string"`
  4549. // The list of standards subscription ARNS that you want to list and describe.
  4550. StandardsSubscriptionArns []*string `min:"1" type:"list"`
  4551. }
  4552. // String returns the string representation
  4553. func (s GetEnabledStandardsInput) String() string {
  4554. return awsutil.Prettify(s)
  4555. }
  4556. // GoString returns the string representation
  4557. func (s GetEnabledStandardsInput) GoString() string {
  4558. return s.String()
  4559. }
  4560. // Validate inspects the fields of the type to determine if they are valid.
  4561. func (s *GetEnabledStandardsInput) Validate() error {
  4562. invalidParams := request.ErrInvalidParams{Context: "GetEnabledStandardsInput"}
  4563. if s.MaxResults != nil && *s.MaxResults < 1 {
  4564. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  4565. }
  4566. if s.StandardsSubscriptionArns != nil && len(s.StandardsSubscriptionArns) < 1 {
  4567. invalidParams.Add(request.NewErrParamMinLen("StandardsSubscriptionArns", 1))
  4568. }
  4569. if invalidParams.Len() > 0 {
  4570. return invalidParams
  4571. }
  4572. return nil
  4573. }
  4574. // SetMaxResults sets the MaxResults field's value.
  4575. func (s *GetEnabledStandardsInput) SetMaxResults(v int64) *GetEnabledStandardsInput {
  4576. s.MaxResults = &v
  4577. return s
  4578. }
  4579. // SetNextToken sets the NextToken field's value.
  4580. func (s *GetEnabledStandardsInput) SetNextToken(v string) *GetEnabledStandardsInput {
  4581. s.NextToken = &v
  4582. return s
  4583. }
  4584. // SetStandardsSubscriptionArns sets the StandardsSubscriptionArns field's value.
  4585. func (s *GetEnabledStandardsInput) SetStandardsSubscriptionArns(v []*string) *GetEnabledStandardsInput {
  4586. s.StandardsSubscriptionArns = v
  4587. return s
  4588. }
  4589. type GetEnabledStandardsOutput struct {
  4590. _ struct{} `type:"structure"`
  4591. // The token that is required for pagination.
  4592. NextToken *string `type:"string"`
  4593. // The standards subscription details returned by the operation.
  4594. StandardsSubscriptions []*StandardsSubscription `type:"list"`
  4595. }
  4596. // String returns the string representation
  4597. func (s GetEnabledStandardsOutput) String() string {
  4598. return awsutil.Prettify(s)
  4599. }
  4600. // GoString returns the string representation
  4601. func (s GetEnabledStandardsOutput) GoString() string {
  4602. return s.String()
  4603. }
  4604. // SetNextToken sets the NextToken field's value.
  4605. func (s *GetEnabledStandardsOutput) SetNextToken(v string) *GetEnabledStandardsOutput {
  4606. s.NextToken = &v
  4607. return s
  4608. }
  4609. // SetStandardsSubscriptions sets the StandardsSubscriptions field's value.
  4610. func (s *GetEnabledStandardsOutput) SetStandardsSubscriptions(v []*StandardsSubscription) *GetEnabledStandardsOutput {
  4611. s.StandardsSubscriptions = v
  4612. return s
  4613. }
  4614. type GetFindingsInput struct {
  4615. _ struct{} `type:"structure"`
  4616. // A collection of attributes that is use for querying findings.
  4617. Filters *AwsSecurityFindingFilters `type:"structure"`
  4618. // Indicates the maximum number of items that you want in the response.
  4619. MaxResults *int64 `min:"1" type:"integer"`
  4620. // Paginates results. Set the value of this parameter to NULL on your first
  4621. // call to the GetFindings operation. For subsequent calls to the operation,
  4622. // fill nextToken in the request with the value of nextToken from the previous
  4623. // response to continue listing data.
  4624. NextToken *string `type:"string"`
  4625. // A collection of attributes used for sorting findings.
  4626. SortCriteria []*SortCriterion `type:"list"`
  4627. }
  4628. // String returns the string representation
  4629. func (s GetFindingsInput) String() string {
  4630. return awsutil.Prettify(s)
  4631. }
  4632. // GoString returns the string representation
  4633. func (s GetFindingsInput) GoString() string {
  4634. return s.String()
  4635. }
  4636. // Validate inspects the fields of the type to determine if they are valid.
  4637. func (s *GetFindingsInput) Validate() error {
  4638. invalidParams := request.ErrInvalidParams{Context: "GetFindingsInput"}
  4639. if s.MaxResults != nil && *s.MaxResults < 1 {
  4640. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  4641. }
  4642. if invalidParams.Len() > 0 {
  4643. return invalidParams
  4644. }
  4645. return nil
  4646. }
  4647. // SetFilters sets the Filters field's value.
  4648. func (s *GetFindingsInput) SetFilters(v *AwsSecurityFindingFilters) *GetFindingsInput {
  4649. s.Filters = v
  4650. return s
  4651. }
  4652. // SetMaxResults sets the MaxResults field's value.
  4653. func (s *GetFindingsInput) SetMaxResults(v int64) *GetFindingsInput {
  4654. s.MaxResults = &v
  4655. return s
  4656. }
  4657. // SetNextToken sets the NextToken field's value.
  4658. func (s *GetFindingsInput) SetNextToken(v string) *GetFindingsInput {
  4659. s.NextToken = &v
  4660. return s
  4661. }
  4662. // SetSortCriteria sets the SortCriteria field's value.
  4663. func (s *GetFindingsInput) SetSortCriteria(v []*SortCriterion) *GetFindingsInput {
  4664. s.SortCriteria = v
  4665. return s
  4666. }
  4667. type GetFindingsOutput struct {
  4668. _ struct{} `type:"structure"`
  4669. // Findings details returned by the operation.
  4670. //
  4671. // Findings is a required field
  4672. Findings []*AwsSecurityFinding `type:"list" required:"true"`
  4673. // The token that is required for pagination.
  4674. NextToken *string `type:"string"`
  4675. }
  4676. // String returns the string representation
  4677. func (s GetFindingsOutput) String() string {
  4678. return awsutil.Prettify(s)
  4679. }
  4680. // GoString returns the string representation
  4681. func (s GetFindingsOutput) GoString() string {
  4682. return s.String()
  4683. }
  4684. // SetFindings sets the Findings field's value.
  4685. func (s *GetFindingsOutput) SetFindings(v []*AwsSecurityFinding) *GetFindingsOutput {
  4686. s.Findings = v
  4687. return s
  4688. }
  4689. // SetNextToken sets the NextToken field's value.
  4690. func (s *GetFindingsOutput) SetNextToken(v string) *GetFindingsOutput {
  4691. s.NextToken = &v
  4692. return s
  4693. }
  4694. type GetInsightResultsInput struct {
  4695. _ struct{} `type:"structure"`
  4696. // The ARN of the insight whose results you want to see.
  4697. //
  4698. // InsightArn is a required field
  4699. InsightArn *string `location:"uri" locationName:"InsightArn" type:"string" required:"true"`
  4700. }
  4701. // String returns the string representation
  4702. func (s GetInsightResultsInput) String() string {
  4703. return awsutil.Prettify(s)
  4704. }
  4705. // GoString returns the string representation
  4706. func (s GetInsightResultsInput) GoString() string {
  4707. return s.String()
  4708. }
  4709. // Validate inspects the fields of the type to determine if they are valid.
  4710. func (s *GetInsightResultsInput) Validate() error {
  4711. invalidParams := request.ErrInvalidParams{Context: "GetInsightResultsInput"}
  4712. if s.InsightArn == nil {
  4713. invalidParams.Add(request.NewErrParamRequired("InsightArn"))
  4714. }
  4715. if s.InsightArn != nil && len(*s.InsightArn) < 1 {
  4716. invalidParams.Add(request.NewErrParamMinLen("InsightArn", 1))
  4717. }
  4718. if invalidParams.Len() > 0 {
  4719. return invalidParams
  4720. }
  4721. return nil
  4722. }
  4723. // SetInsightArn sets the InsightArn field's value.
  4724. func (s *GetInsightResultsInput) SetInsightArn(v string) *GetInsightResultsInput {
  4725. s.InsightArn = &v
  4726. return s
  4727. }
  4728. type GetInsightResultsOutput struct {
  4729. _ struct{} `type:"structure"`
  4730. // The insight results returned by the operation.
  4731. //
  4732. // InsightResults is a required field
  4733. InsightResults *InsightResults `type:"structure" required:"true"`
  4734. }
  4735. // String returns the string representation
  4736. func (s GetInsightResultsOutput) String() string {
  4737. return awsutil.Prettify(s)
  4738. }
  4739. // GoString returns the string representation
  4740. func (s GetInsightResultsOutput) GoString() string {
  4741. return s.String()
  4742. }
  4743. // SetInsightResults sets the InsightResults field's value.
  4744. func (s *GetInsightResultsOutput) SetInsightResults(v *InsightResults) *GetInsightResultsOutput {
  4745. s.InsightResults = v
  4746. return s
  4747. }
  4748. type GetInsightsInput struct {
  4749. _ struct{} `type:"structure"`
  4750. // The ARNS of the insights that you want to describe.
  4751. InsightArns []*string `type:"list"`
  4752. // Indicates the maximum number of items that you want in the response.
  4753. MaxResults *int64 `min:"1" type:"integer"`
  4754. // Paginates results. Set the value of this parameter to NULL on your first
  4755. // call to the GetInsights operation. For subsequent calls to the operation,
  4756. // fill nextToken in the request with the value of nextToken from the previous
  4757. // response to continue listing data.
  4758. NextToken *string `type:"string"`
  4759. }
  4760. // String returns the string representation
  4761. func (s GetInsightsInput) String() string {
  4762. return awsutil.Prettify(s)
  4763. }
  4764. // GoString returns the string representation
  4765. func (s GetInsightsInput) GoString() string {
  4766. return s.String()
  4767. }
  4768. // Validate inspects the fields of the type to determine if they are valid.
  4769. func (s *GetInsightsInput) Validate() error {
  4770. invalidParams := request.ErrInvalidParams{Context: "GetInsightsInput"}
  4771. if s.MaxResults != nil && *s.MaxResults < 1 {
  4772. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  4773. }
  4774. if invalidParams.Len() > 0 {
  4775. return invalidParams
  4776. }
  4777. return nil
  4778. }
  4779. // SetInsightArns sets the InsightArns field's value.
  4780. func (s *GetInsightsInput) SetInsightArns(v []*string) *GetInsightsInput {
  4781. s.InsightArns = v
  4782. return s
  4783. }
  4784. // SetMaxResults sets the MaxResults field's value.
  4785. func (s *GetInsightsInput) SetMaxResults(v int64) *GetInsightsInput {
  4786. s.MaxResults = &v
  4787. return s
  4788. }
  4789. // SetNextToken sets the NextToken field's value.
  4790. func (s *GetInsightsInput) SetNextToken(v string) *GetInsightsInput {
  4791. s.NextToken = &v
  4792. return s
  4793. }
  4794. type GetInsightsOutput struct {
  4795. _ struct{} `type:"structure"`
  4796. // The insights returned by the operation.
  4797. //
  4798. // Insights is a required field
  4799. Insights []*Insight `type:"list" required:"true"`
  4800. // The token that is required for pagination.
  4801. NextToken *string `type:"string"`
  4802. }
  4803. // String returns the string representation
  4804. func (s GetInsightsOutput) String() string {
  4805. return awsutil.Prettify(s)
  4806. }
  4807. // GoString returns the string representation
  4808. func (s GetInsightsOutput) GoString() string {
  4809. return s.String()
  4810. }
  4811. // SetInsights sets the Insights field's value.
  4812. func (s *GetInsightsOutput) SetInsights(v []*Insight) *GetInsightsOutput {
  4813. s.Insights = v
  4814. return s
  4815. }
  4816. // SetNextToken sets the NextToken field's value.
  4817. func (s *GetInsightsOutput) SetNextToken(v string) *GetInsightsOutput {
  4818. s.NextToken = &v
  4819. return s
  4820. }
  4821. type GetInvitationsCountInput struct {
  4822. _ struct{} `type:"structure"`
  4823. }
  4824. // String returns the string representation
  4825. func (s GetInvitationsCountInput) String() string {
  4826. return awsutil.Prettify(s)
  4827. }
  4828. // GoString returns the string representation
  4829. func (s GetInvitationsCountInput) GoString() string {
  4830. return s.String()
  4831. }
  4832. type GetInvitationsCountOutput struct {
  4833. _ struct{} `type:"structure"`
  4834. // The number of all membership invitations sent to this Security Hub member
  4835. // account, not including the currently accepted invitation.
  4836. InvitationsCount *int64 `type:"integer"`
  4837. }
  4838. // String returns the string representation
  4839. func (s GetInvitationsCountOutput) String() string {
  4840. return awsutil.Prettify(s)
  4841. }
  4842. // GoString returns the string representation
  4843. func (s GetInvitationsCountOutput) GoString() string {
  4844. return s.String()
  4845. }
  4846. // SetInvitationsCount sets the InvitationsCount field's value.
  4847. func (s *GetInvitationsCountOutput) SetInvitationsCount(v int64) *GetInvitationsCountOutput {
  4848. s.InvitationsCount = &v
  4849. return s
  4850. }
  4851. type GetMasterAccountInput struct {
  4852. _ struct{} `type:"structure"`
  4853. }
  4854. // String returns the string representation
  4855. func (s GetMasterAccountInput) String() string {
  4856. return awsutil.Prettify(s)
  4857. }
  4858. // GoString returns the string representation
  4859. func (s GetMasterAccountInput) GoString() string {
  4860. return s.String()
  4861. }
  4862. type GetMasterAccountOutput struct {
  4863. _ struct{} `type:"structure"`
  4864. // A list of details about the Security Hub master account for the current member
  4865. // account.
  4866. Master *Invitation `type:"structure"`
  4867. }
  4868. // String returns the string representation
  4869. func (s GetMasterAccountOutput) String() string {
  4870. return awsutil.Prettify(s)
  4871. }
  4872. // GoString returns the string representation
  4873. func (s GetMasterAccountOutput) GoString() string {
  4874. return s.String()
  4875. }
  4876. // SetMaster sets the Master field's value.
  4877. func (s *GetMasterAccountOutput) SetMaster(v *Invitation) *GetMasterAccountOutput {
  4878. s.Master = v
  4879. return s
  4880. }
  4881. type GetMembersInput struct {
  4882. _ struct{} `type:"structure"`
  4883. // A list of account IDs for the Security Hub member accounts on which you want
  4884. // to return the details.
  4885. //
  4886. // AccountIds is a required field
  4887. AccountIds []*string `type:"list" required:"true"`
  4888. }
  4889. // String returns the string representation
  4890. func (s GetMembersInput) String() string {
  4891. return awsutil.Prettify(s)
  4892. }
  4893. // GoString returns the string representation
  4894. func (s GetMembersInput) GoString() string {
  4895. return s.String()
  4896. }
  4897. // Validate inspects the fields of the type to determine if they are valid.
  4898. func (s *GetMembersInput) Validate() error {
  4899. invalidParams := request.ErrInvalidParams{Context: "GetMembersInput"}
  4900. if s.AccountIds == nil {
  4901. invalidParams.Add(request.NewErrParamRequired("AccountIds"))
  4902. }
  4903. if invalidParams.Len() > 0 {
  4904. return invalidParams
  4905. }
  4906. return nil
  4907. }
  4908. // SetAccountIds sets the AccountIds field's value.
  4909. func (s *GetMembersInput) SetAccountIds(v []*string) *GetMembersInput {
  4910. s.AccountIds = v
  4911. return s
  4912. }
  4913. type GetMembersOutput struct {
  4914. _ struct{} `type:"structure"`
  4915. // A list of details about the Security Hub member accounts.
  4916. Members []*Member `type:"list"`
  4917. // A list of account ID and email address pairs of the AWS accounts that could
  4918. // not be processed.
  4919. UnprocessedAccounts []*Result `type:"list"`
  4920. }
  4921. // String returns the string representation
  4922. func (s GetMembersOutput) String() string {
  4923. return awsutil.Prettify(s)
  4924. }
  4925. // GoString returns the string representation
  4926. func (s GetMembersOutput) GoString() string {
  4927. return s.String()
  4928. }
  4929. // SetMembers sets the Members field's value.
  4930. func (s *GetMembersOutput) SetMembers(v []*Member) *GetMembersOutput {
  4931. s.Members = v
  4932. return s
  4933. }
  4934. // SetUnprocessedAccounts sets the UnprocessedAccounts field's value.
  4935. func (s *GetMembersOutput) SetUnprocessedAccounts(v []*Result) *GetMembersOutput {
  4936. s.UnprocessedAccounts = v
  4937. return s
  4938. }
  4939. // Includes details of the list of the findings that cannot be imported.
  4940. type ImportFindingsError struct {
  4941. _ struct{} `type:"structure"`
  4942. // The code of the error made during the BatchImportFindings operation.
  4943. //
  4944. // ErrorCode is a required field
  4945. ErrorCode *string `type:"string" required:"true"`
  4946. // The message of the error made during the BatchImportFindings operation.
  4947. //
  4948. // ErrorMessage is a required field
  4949. ErrorMessage *string `type:"string" required:"true"`
  4950. // The id of the error made during the BatchImportFindings operation.
  4951. //
  4952. // Id is a required field
  4953. Id *string `type:"string" required:"true"`
  4954. }
  4955. // String returns the string representation
  4956. func (s ImportFindingsError) String() string {
  4957. return awsutil.Prettify(s)
  4958. }
  4959. // GoString returns the string representation
  4960. func (s ImportFindingsError) GoString() string {
  4961. return s.String()
  4962. }
  4963. // SetErrorCode sets the ErrorCode field's value.
  4964. func (s *ImportFindingsError) SetErrorCode(v string) *ImportFindingsError {
  4965. s.ErrorCode = &v
  4966. return s
  4967. }
  4968. // SetErrorMessage sets the ErrorMessage field's value.
  4969. func (s *ImportFindingsError) SetErrorMessage(v string) *ImportFindingsError {
  4970. s.ErrorMessage = &v
  4971. return s
  4972. }
  4973. // SetId sets the Id field's value.
  4974. func (s *ImportFindingsError) SetId(v string) *ImportFindingsError {
  4975. s.Id = &v
  4976. return s
  4977. }
  4978. // Contains information about a Security Hub insight.
  4979. type Insight struct {
  4980. _ struct{} `type:"structure"`
  4981. // A collection of attributes that are applied to all active Security Hub-aggregated
  4982. // findings and that result in a subset of findings that are included in this
  4983. // insight.
  4984. //
  4985. // Filters is a required field
  4986. Filters *AwsSecurityFindingFilters `type:"structure" required:"true"`
  4987. // The attribute by which the insight's findings are grouped. This attribute
  4988. // is used as a findings aggregator for the purposes of viewing and managing
  4989. // multiple related findings under a single operand.
  4990. //
  4991. // GroupByAttribute is a required field
  4992. GroupByAttribute *string `type:"string" required:"true"`
  4993. // The ARN of a Security Hub insight.
  4994. //
  4995. // InsightArn is a required field
  4996. InsightArn *string `type:"string" required:"true"`
  4997. // The name of a Security Hub insight.
  4998. //
  4999. // Name is a required field
  5000. Name *string `type:"string" required:"true"`
  5001. }
  5002. // String returns the string representation
  5003. func (s Insight) String() string {
  5004. return awsutil.Prettify(s)
  5005. }
  5006. // GoString returns the string representation
  5007. func (s Insight) GoString() string {
  5008. return s.String()
  5009. }
  5010. // SetFilters sets the Filters field's value.
  5011. func (s *Insight) SetFilters(v *AwsSecurityFindingFilters) *Insight {
  5012. s.Filters = v
  5013. return s
  5014. }
  5015. // SetGroupByAttribute sets the GroupByAttribute field's value.
  5016. func (s *Insight) SetGroupByAttribute(v string) *Insight {
  5017. s.GroupByAttribute = &v
  5018. return s
  5019. }
  5020. // SetInsightArn sets the InsightArn field's value.
  5021. func (s *Insight) SetInsightArn(v string) *Insight {
  5022. s.InsightArn = &v
  5023. return s
  5024. }
  5025. // SetName sets the Name field's value.
  5026. func (s *Insight) SetName(v string) *Insight {
  5027. s.Name = &v
  5028. return s
  5029. }
  5030. // The insight result values returned by the GetInsightResults operation.
  5031. type InsightResultValue struct {
  5032. _ struct{} `type:"structure"`
  5033. // The number of findings returned for each GroupByAttributeValue.
  5034. //
  5035. // Count is a required field
  5036. Count *int64 `type:"integer" required:"true"`
  5037. // The value of the attribute by which the findings are grouped for the insight's
  5038. // whose results are returned by the GetInsightResults operation.
  5039. //
  5040. // GroupByAttributeValue is a required field
  5041. GroupByAttributeValue *string `type:"string" required:"true"`
  5042. }
  5043. // String returns the string representation
  5044. func (s InsightResultValue) String() string {
  5045. return awsutil.Prettify(s)
  5046. }
  5047. // GoString returns the string representation
  5048. func (s InsightResultValue) GoString() string {
  5049. return s.String()
  5050. }
  5051. // SetCount sets the Count field's value.
  5052. func (s *InsightResultValue) SetCount(v int64) *InsightResultValue {
  5053. s.Count = &v
  5054. return s
  5055. }
  5056. // SetGroupByAttributeValue sets the GroupByAttributeValue field's value.
  5057. func (s *InsightResultValue) SetGroupByAttributeValue(v string) *InsightResultValue {
  5058. s.GroupByAttributeValue = &v
  5059. return s
  5060. }
  5061. // The insight results returned by the GetInsightResults operation.
  5062. type InsightResults struct {
  5063. _ struct{} `type:"structure"`
  5064. // The attribute by which the findings are grouped for the insight's whose results
  5065. // are returned by the GetInsightResults operation.
  5066. //
  5067. // GroupByAttribute is a required field
  5068. GroupByAttribute *string `type:"string" required:"true"`
  5069. // The ARN of the insight whose results are returned by the GetInsightResults
  5070. // operation.
  5071. //
  5072. // InsightArn is a required field
  5073. InsightArn *string `type:"string" required:"true"`
  5074. // The list of insight result values returned by the GetInsightResults operation.
  5075. //
  5076. // ResultValues is a required field
  5077. ResultValues []*InsightResultValue `type:"list" required:"true"`
  5078. }
  5079. // String returns the string representation
  5080. func (s InsightResults) String() string {
  5081. return awsutil.Prettify(s)
  5082. }
  5083. // GoString returns the string representation
  5084. func (s InsightResults) GoString() string {
  5085. return s.String()
  5086. }
  5087. // SetGroupByAttribute sets the GroupByAttribute field's value.
  5088. func (s *InsightResults) SetGroupByAttribute(v string) *InsightResults {
  5089. s.GroupByAttribute = &v
  5090. return s
  5091. }
  5092. // SetInsightArn sets the InsightArn field's value.
  5093. func (s *InsightResults) SetInsightArn(v string) *InsightResults {
  5094. s.InsightArn = &v
  5095. return s
  5096. }
  5097. // SetResultValues sets the ResultValues field's value.
  5098. func (s *InsightResults) SetResultValues(v []*InsightResultValue) *InsightResults {
  5099. s.ResultValues = v
  5100. return s
  5101. }
  5102. // The details of an invitation sent to an AWS account by the Security Hub master
  5103. // account.
  5104. type Invitation struct {
  5105. _ struct{} `type:"structure"`
  5106. // The account ID of the master Security Hub account who sent the invitation.
  5107. AccountId *string `type:"string"`
  5108. // The ID of the invitation sent by the master Security Hub account.
  5109. InvitationId *string `type:"string"`
  5110. // The timestamp of when the invitation was sent.
  5111. InvitedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  5112. // The current relationship status between the inviter and invitee accounts.
  5113. MemberStatus *string `type:"string"`
  5114. }
  5115. // String returns the string representation
  5116. func (s Invitation) String() string {
  5117. return awsutil.Prettify(s)
  5118. }
  5119. // GoString returns the string representation
  5120. func (s Invitation) GoString() string {
  5121. return s.String()
  5122. }
  5123. // SetAccountId sets the AccountId field's value.
  5124. func (s *Invitation) SetAccountId(v string) *Invitation {
  5125. s.AccountId = &v
  5126. return s
  5127. }
  5128. // SetInvitationId sets the InvitationId field's value.
  5129. func (s *Invitation) SetInvitationId(v string) *Invitation {
  5130. s.InvitationId = &v
  5131. return s
  5132. }
  5133. // SetInvitedAt sets the InvitedAt field's value.
  5134. func (s *Invitation) SetInvitedAt(v time.Time) *Invitation {
  5135. s.InvitedAt = &v
  5136. return s
  5137. }
  5138. // SetMemberStatus sets the MemberStatus field's value.
  5139. func (s *Invitation) SetMemberStatus(v string) *Invitation {
  5140. s.MemberStatus = &v
  5141. return s
  5142. }
  5143. type InviteMembersInput struct {
  5144. _ struct{} `type:"structure"`
  5145. // A list of IDs of the AWS accounts that you want to invite to Security Hub
  5146. // as members.
  5147. AccountIds []*string `type:"list"`
  5148. }
  5149. // String returns the string representation
  5150. func (s InviteMembersInput) String() string {
  5151. return awsutil.Prettify(s)
  5152. }
  5153. // GoString returns the string representation
  5154. func (s InviteMembersInput) GoString() string {
  5155. return s.String()
  5156. }
  5157. // SetAccountIds sets the AccountIds field's value.
  5158. func (s *InviteMembersInput) SetAccountIds(v []*string) *InviteMembersInput {
  5159. s.AccountIds = v
  5160. return s
  5161. }
  5162. type InviteMembersOutput struct {
  5163. _ struct{} `type:"structure"`
  5164. // A list of account ID and email address pairs of the AWS accounts that could
  5165. // not be processed.
  5166. UnprocessedAccounts []*Result `type:"list"`
  5167. }
  5168. // String returns the string representation
  5169. func (s InviteMembersOutput) String() string {
  5170. return awsutil.Prettify(s)
  5171. }
  5172. // GoString returns the string representation
  5173. func (s InviteMembersOutput) GoString() string {
  5174. return s.String()
  5175. }
  5176. // SetUnprocessedAccounts sets the UnprocessedAccounts field's value.
  5177. func (s *InviteMembersOutput) SetUnprocessedAccounts(v []*Result) *InviteMembersOutput {
  5178. s.UnprocessedAccounts = v
  5179. return s
  5180. }
  5181. // The IP filter for querying findings.>
  5182. type IpFilter struct {
  5183. _ struct{} `type:"structure"`
  5184. // Finding's CIDR value.
  5185. Cidr *string `type:"string"`
  5186. }
  5187. // String returns the string representation
  5188. func (s IpFilter) String() string {
  5189. return awsutil.Prettify(s)
  5190. }
  5191. // GoString returns the string representation
  5192. func (s IpFilter) GoString() string {
  5193. return s.String()
  5194. }
  5195. // SetCidr sets the Cidr field's value.
  5196. func (s *IpFilter) SetCidr(v string) *IpFilter {
  5197. s.Cidr = &v
  5198. return s
  5199. }
  5200. // A keyword filter for querying findings.
  5201. type KeywordFilter struct {
  5202. _ struct{} `type:"structure"`
  5203. // A value for the keyword.
  5204. Value *string `type:"string"`
  5205. }
  5206. // String returns the string representation
  5207. func (s KeywordFilter) String() string {
  5208. return awsutil.Prettify(s)
  5209. }
  5210. // GoString returns the string representation
  5211. func (s KeywordFilter) GoString() string {
  5212. return s.String()
  5213. }
  5214. // SetValue sets the Value field's value.
  5215. func (s *KeywordFilter) SetValue(v string) *KeywordFilter {
  5216. s.Value = &v
  5217. return s
  5218. }
  5219. type ListEnabledProductsForImportInput struct {
  5220. _ struct{} `type:"structure"`
  5221. // Indicates the maximum number of items that you want in the response.
  5222. MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"`
  5223. // Paginates results. Set the value of this parameter to NULL on your first
  5224. // call to the ListEnabledProductsForImport operation. For subsequent calls
  5225. // to the operation, fill nextToken in the request with the value of NextToken
  5226. // from the previous response to continue listing data.
  5227. NextToken *string `location:"querystring" locationName:"NextToken" type:"string"`
  5228. }
  5229. // String returns the string representation
  5230. func (s ListEnabledProductsForImportInput) String() string {
  5231. return awsutil.Prettify(s)
  5232. }
  5233. // GoString returns the string representation
  5234. func (s ListEnabledProductsForImportInput) GoString() string {
  5235. return s.String()
  5236. }
  5237. // Validate inspects the fields of the type to determine if they are valid.
  5238. func (s *ListEnabledProductsForImportInput) Validate() error {
  5239. invalidParams := request.ErrInvalidParams{Context: "ListEnabledProductsForImportInput"}
  5240. if s.MaxResults != nil && *s.MaxResults < 1 {
  5241. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  5242. }
  5243. if invalidParams.Len() > 0 {
  5244. return invalidParams
  5245. }
  5246. return nil
  5247. }
  5248. // SetMaxResults sets the MaxResults field's value.
  5249. func (s *ListEnabledProductsForImportInput) SetMaxResults(v int64) *ListEnabledProductsForImportInput {
  5250. s.MaxResults = &v
  5251. return s
  5252. }
  5253. // SetNextToken sets the NextToken field's value.
  5254. func (s *ListEnabledProductsForImportInput) SetNextToken(v string) *ListEnabledProductsForImportInput {
  5255. s.NextToken = &v
  5256. return s
  5257. }
  5258. type ListEnabledProductsForImportOutput struct {
  5259. _ struct{} `type:"structure"`
  5260. // The token that is required for pagination.
  5261. NextToken *string `type:"string"`
  5262. // A list of ARNs for the resources that represent your subscriptions to products.
  5263. ProductSubscriptions []*string `type:"list"`
  5264. }
  5265. // String returns the string representation
  5266. func (s ListEnabledProductsForImportOutput) String() string {
  5267. return awsutil.Prettify(s)
  5268. }
  5269. // GoString returns the string representation
  5270. func (s ListEnabledProductsForImportOutput) GoString() string {
  5271. return s.String()
  5272. }
  5273. // SetNextToken sets the NextToken field's value.
  5274. func (s *ListEnabledProductsForImportOutput) SetNextToken(v string) *ListEnabledProductsForImportOutput {
  5275. s.NextToken = &v
  5276. return s
  5277. }
  5278. // SetProductSubscriptions sets the ProductSubscriptions field's value.
  5279. func (s *ListEnabledProductsForImportOutput) SetProductSubscriptions(v []*string) *ListEnabledProductsForImportOutput {
  5280. s.ProductSubscriptions = v
  5281. return s
  5282. }
  5283. type ListInvitationsInput struct {
  5284. _ struct{} `type:"structure"`
  5285. // Indicates the maximum number of items that you want in the response.
  5286. MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"`
  5287. // Paginates results. Set the value of this parameter to NULL on your first
  5288. // call to the ListInvitations operation. For subsequent calls to the operation,
  5289. // fill nextToken in the request with the value of NextToken from the previous
  5290. // response to continue listing data.
  5291. NextToken *string `location:"querystring" locationName:"NextToken" type:"string"`
  5292. }
  5293. // String returns the string representation
  5294. func (s ListInvitationsInput) String() string {
  5295. return awsutil.Prettify(s)
  5296. }
  5297. // GoString returns the string representation
  5298. func (s ListInvitationsInput) GoString() string {
  5299. return s.String()
  5300. }
  5301. // Validate inspects the fields of the type to determine if they are valid.
  5302. func (s *ListInvitationsInput) Validate() error {
  5303. invalidParams := request.ErrInvalidParams{Context: "ListInvitationsInput"}
  5304. if s.MaxResults != nil && *s.MaxResults < 1 {
  5305. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  5306. }
  5307. if invalidParams.Len() > 0 {
  5308. return invalidParams
  5309. }
  5310. return nil
  5311. }
  5312. // SetMaxResults sets the MaxResults field's value.
  5313. func (s *ListInvitationsInput) SetMaxResults(v int64) *ListInvitationsInput {
  5314. s.MaxResults = &v
  5315. return s
  5316. }
  5317. // SetNextToken sets the NextToken field's value.
  5318. func (s *ListInvitationsInput) SetNextToken(v string) *ListInvitationsInput {
  5319. s.NextToken = &v
  5320. return s
  5321. }
  5322. type ListInvitationsOutput struct {
  5323. _ struct{} `type:"structure"`
  5324. // The details of the invitations returned by the operation.
  5325. Invitations []*Invitation `type:"list"`
  5326. // The token that is required for pagination.
  5327. NextToken *string `type:"string"`
  5328. }
  5329. // String returns the string representation
  5330. func (s ListInvitationsOutput) String() string {
  5331. return awsutil.Prettify(s)
  5332. }
  5333. // GoString returns the string representation
  5334. func (s ListInvitationsOutput) GoString() string {
  5335. return s.String()
  5336. }
  5337. // SetInvitations sets the Invitations field's value.
  5338. func (s *ListInvitationsOutput) SetInvitations(v []*Invitation) *ListInvitationsOutput {
  5339. s.Invitations = v
  5340. return s
  5341. }
  5342. // SetNextToken sets the NextToken field's value.
  5343. func (s *ListInvitationsOutput) SetNextToken(v string) *ListInvitationsOutput {
  5344. s.NextToken = &v
  5345. return s
  5346. }
  5347. type ListMembersInput struct {
  5348. _ struct{} `type:"structure"`
  5349. // Indicates the maximum number of items that you want in the response.
  5350. MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"`
  5351. // Paginates results. Set the value of this parameter to NULL on your first
  5352. // call to the ListMembers operation. For subsequent calls to the operation,
  5353. // fill nextToken in the request with the value of NextToken from the previous
  5354. // response to continue listing data.
  5355. NextToken *string `location:"querystring" locationName:"NextToken" type:"string"`
  5356. // Specifies what member accounts the response includes based on their relationship
  5357. // status with the master account. The default value is TRUE. If onlyAssociated
  5358. // is set to TRUE, the response includes member accounts whose relationship
  5359. // status with the master is set to ENABLED or DISABLED. If onlyAssociated is
  5360. // set to FALSE, the response includes all existing member accounts.
  5361. OnlyAssociated *bool `location:"querystring" locationName:"OnlyAssociated" type:"boolean"`
  5362. }
  5363. // String returns the string representation
  5364. func (s ListMembersInput) String() string {
  5365. return awsutil.Prettify(s)
  5366. }
  5367. // GoString returns the string representation
  5368. func (s ListMembersInput) GoString() string {
  5369. return s.String()
  5370. }
  5371. // Validate inspects the fields of the type to determine if they are valid.
  5372. func (s *ListMembersInput) Validate() error {
  5373. invalidParams := request.ErrInvalidParams{Context: "ListMembersInput"}
  5374. if s.MaxResults != nil && *s.MaxResults < 1 {
  5375. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  5376. }
  5377. if invalidParams.Len() > 0 {
  5378. return invalidParams
  5379. }
  5380. return nil
  5381. }
  5382. // SetMaxResults sets the MaxResults field's value.
  5383. func (s *ListMembersInput) SetMaxResults(v int64) *ListMembersInput {
  5384. s.MaxResults = &v
  5385. return s
  5386. }
  5387. // SetNextToken sets the NextToken field's value.
  5388. func (s *ListMembersInput) SetNextToken(v string) *ListMembersInput {
  5389. s.NextToken = &v
  5390. return s
  5391. }
  5392. // SetOnlyAssociated sets the OnlyAssociated field's value.
  5393. func (s *ListMembersInput) SetOnlyAssociated(v bool) *ListMembersInput {
  5394. s.OnlyAssociated = &v
  5395. return s
  5396. }
  5397. type ListMembersOutput struct {
  5398. _ struct{} `type:"structure"`
  5399. // Member details returned by the operation.
  5400. Members []*Member `type:"list"`
  5401. // The token that is required for pagination.
  5402. NextToken *string `type:"string"`
  5403. }
  5404. // String returns the string representation
  5405. func (s ListMembersOutput) String() string {
  5406. return awsutil.Prettify(s)
  5407. }
  5408. // GoString returns the string representation
  5409. func (s ListMembersOutput) GoString() string {
  5410. return s.String()
  5411. }
  5412. // SetMembers sets the Members field's value.
  5413. func (s *ListMembersOutput) SetMembers(v []*Member) *ListMembersOutput {
  5414. s.Members = v
  5415. return s
  5416. }
  5417. // SetNextToken sets the NextToken field's value.
  5418. func (s *ListMembersOutput) SetNextToken(v string) *ListMembersOutput {
  5419. s.NextToken = &v
  5420. return s
  5421. }
  5422. // A list of malware related to a finding.
  5423. type Malware struct {
  5424. _ struct{} `type:"structure"`
  5425. // The name of the malware that was observed.
  5426. //
  5427. // Name is a required field
  5428. Name *string `type:"string" required:"true"`
  5429. // The filesystem path of the malware that was observed.
  5430. Path *string `type:"string"`
  5431. // The state of the malware that was observed.
  5432. State *string `type:"string" enum:"MalwareState"`
  5433. // The type of the malware that was observed.
  5434. Type *string `type:"string" enum:"MalwareType"`
  5435. }
  5436. // String returns the string representation
  5437. func (s Malware) String() string {
  5438. return awsutil.Prettify(s)
  5439. }
  5440. // GoString returns the string representation
  5441. func (s Malware) GoString() string {
  5442. return s.String()
  5443. }
  5444. // Validate inspects the fields of the type to determine if they are valid.
  5445. func (s *Malware) Validate() error {
  5446. invalidParams := request.ErrInvalidParams{Context: "Malware"}
  5447. if s.Name == nil {
  5448. invalidParams.Add(request.NewErrParamRequired("Name"))
  5449. }
  5450. if invalidParams.Len() > 0 {
  5451. return invalidParams
  5452. }
  5453. return nil
  5454. }
  5455. // SetName sets the Name field's value.
  5456. func (s *Malware) SetName(v string) *Malware {
  5457. s.Name = &v
  5458. return s
  5459. }
  5460. // SetPath sets the Path field's value.
  5461. func (s *Malware) SetPath(v string) *Malware {
  5462. s.Path = &v
  5463. return s
  5464. }
  5465. // SetState sets the State field's value.
  5466. func (s *Malware) SetState(v string) *Malware {
  5467. s.State = &v
  5468. return s
  5469. }
  5470. // SetType sets the Type field's value.
  5471. func (s *Malware) SetType(v string) *Malware {
  5472. s.Type = &v
  5473. return s
  5474. }
  5475. // The map filter for querying findings.
  5476. type MapFilter struct {
  5477. _ struct{} `type:"structure"`
  5478. // Represents the condition to be applied to a key value when querying for findings
  5479. // with a map filter.
  5480. Comparison *string `type:"string" enum:"MapFilterComparison"`
  5481. // The key of the map filter.
  5482. Key *string `type:"string"`
  5483. // The value for the key in the map filter.
  5484. Value *string `type:"string"`
  5485. }
  5486. // String returns the string representation
  5487. func (s MapFilter) String() string {
  5488. return awsutil.Prettify(s)
  5489. }
  5490. // GoString returns the string representation
  5491. func (s MapFilter) GoString() string {
  5492. return s.String()
  5493. }
  5494. // SetComparison sets the Comparison field's value.
  5495. func (s *MapFilter) SetComparison(v string) *MapFilter {
  5496. s.Comparison = &v
  5497. return s
  5498. }
  5499. // SetKey sets the Key field's value.
  5500. func (s *MapFilter) SetKey(v string) *MapFilter {
  5501. s.Key = &v
  5502. return s
  5503. }
  5504. // SetValue sets the Value field's value.
  5505. func (s *MapFilter) SetValue(v string) *MapFilter {
  5506. s.Value = &v
  5507. return s
  5508. }
  5509. // The details for a Security Hub member account.
  5510. type Member struct {
  5511. _ struct{} `type:"structure"`
  5512. // The AWS account ID of a Security Hub member account.
  5513. AccountId *string `type:"string"`
  5514. // The email of a Security Hub member account.
  5515. Email *string `type:"string"`
  5516. // Time stamp at which the member account was invited to Security Hub.
  5517. InvitedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  5518. // The AWS account ID of the master Security Hub account to this member account.
  5519. MasterId *string `type:"string"`
  5520. // The status of the relationship between the member account and its master
  5521. // account.
  5522. MemberStatus *string `type:"string"`
  5523. // Time stamp at which this member account was updated.
  5524. UpdatedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  5525. }
  5526. // String returns the string representation
  5527. func (s Member) String() string {
  5528. return awsutil.Prettify(s)
  5529. }
  5530. // GoString returns the string representation
  5531. func (s Member) GoString() string {
  5532. return s.String()
  5533. }
  5534. // SetAccountId sets the AccountId field's value.
  5535. func (s *Member) SetAccountId(v string) *Member {
  5536. s.AccountId = &v
  5537. return s
  5538. }
  5539. // SetEmail sets the Email field's value.
  5540. func (s *Member) SetEmail(v string) *Member {
  5541. s.Email = &v
  5542. return s
  5543. }
  5544. // SetInvitedAt sets the InvitedAt field's value.
  5545. func (s *Member) SetInvitedAt(v time.Time) *Member {
  5546. s.InvitedAt = &v
  5547. return s
  5548. }
  5549. // SetMasterId sets the MasterId field's value.
  5550. func (s *Member) SetMasterId(v string) *Member {
  5551. s.MasterId = &v
  5552. return s
  5553. }
  5554. // SetMemberStatus sets the MemberStatus field's value.
  5555. func (s *Member) SetMemberStatus(v string) *Member {
  5556. s.MemberStatus = &v
  5557. return s
  5558. }
  5559. // SetUpdatedAt sets the UpdatedAt field's value.
  5560. func (s *Member) SetUpdatedAt(v time.Time) *Member {
  5561. s.UpdatedAt = &v
  5562. return s
  5563. }
  5564. // The details of network-related information about a finding.
  5565. type Network struct {
  5566. _ struct{} `type:"structure"`
  5567. // The destination domain of network-related information about a finding.
  5568. DestinationDomain *string `type:"string"`
  5569. // The destination IPv4 address of network-related information about a finding.
  5570. DestinationIpV4 *string `type:"string"`
  5571. // The destination IPv6 address of network-related information about a finding.
  5572. DestinationIpV6 *string `type:"string"`
  5573. // The destination port of network-related information about a finding.
  5574. DestinationPort *int64 `type:"integer"`
  5575. // Indicates the direction of network traffic associated with a finding.
  5576. Direction *string `type:"string" enum:"NetworkDirection"`
  5577. // The protocol of network-related information about a finding.
  5578. Protocol *string `type:"string"`
  5579. // The source domain of network-related information about a finding.
  5580. SourceDomain *string `type:"string"`
  5581. // The source IPv4 address of network-related information about a finding.
  5582. SourceIpV4 *string `type:"string"`
  5583. // The source IPv6 address of network-related information about a finding.
  5584. SourceIpV6 *string `type:"string"`
  5585. // The source media access control (MAC) address of network-related information
  5586. // about a finding.
  5587. SourceMac *string `type:"string"`
  5588. // The source port of network-related information about a finding.
  5589. SourcePort *int64 `type:"integer"`
  5590. }
  5591. // String returns the string representation
  5592. func (s Network) String() string {
  5593. return awsutil.Prettify(s)
  5594. }
  5595. // GoString returns the string representation
  5596. func (s Network) GoString() string {
  5597. return s.String()
  5598. }
  5599. // SetDestinationDomain sets the DestinationDomain field's value.
  5600. func (s *Network) SetDestinationDomain(v string) *Network {
  5601. s.DestinationDomain = &v
  5602. return s
  5603. }
  5604. // SetDestinationIpV4 sets the DestinationIpV4 field's value.
  5605. func (s *Network) SetDestinationIpV4(v string) *Network {
  5606. s.DestinationIpV4 = &v
  5607. return s
  5608. }
  5609. // SetDestinationIpV6 sets the DestinationIpV6 field's value.
  5610. func (s *Network) SetDestinationIpV6(v string) *Network {
  5611. s.DestinationIpV6 = &v
  5612. return s
  5613. }
  5614. // SetDestinationPort sets the DestinationPort field's value.
  5615. func (s *Network) SetDestinationPort(v int64) *Network {
  5616. s.DestinationPort = &v
  5617. return s
  5618. }
  5619. // SetDirection sets the Direction field's value.
  5620. func (s *Network) SetDirection(v string) *Network {
  5621. s.Direction = &v
  5622. return s
  5623. }
  5624. // SetProtocol sets the Protocol field's value.
  5625. func (s *Network) SetProtocol(v string) *Network {
  5626. s.Protocol = &v
  5627. return s
  5628. }
  5629. // SetSourceDomain sets the SourceDomain field's value.
  5630. func (s *Network) SetSourceDomain(v string) *Network {
  5631. s.SourceDomain = &v
  5632. return s
  5633. }
  5634. // SetSourceIpV4 sets the SourceIpV4 field's value.
  5635. func (s *Network) SetSourceIpV4(v string) *Network {
  5636. s.SourceIpV4 = &v
  5637. return s
  5638. }
  5639. // SetSourceIpV6 sets the SourceIpV6 field's value.
  5640. func (s *Network) SetSourceIpV6(v string) *Network {
  5641. s.SourceIpV6 = &v
  5642. return s
  5643. }
  5644. // SetSourceMac sets the SourceMac field's value.
  5645. func (s *Network) SetSourceMac(v string) *Network {
  5646. s.SourceMac = &v
  5647. return s
  5648. }
  5649. // SetSourcePort sets the SourcePort field's value.
  5650. func (s *Network) SetSourcePort(v int64) *Network {
  5651. s.SourcePort = &v
  5652. return s
  5653. }
  5654. // A user-defined note added to a finding.
  5655. type Note struct {
  5656. _ struct{} `type:"structure"`
  5657. // The text of a note.
  5658. //
  5659. // Text is a required field
  5660. Text *string `type:"string" required:"true"`
  5661. // The timestamp of when the note was updated.
  5662. //
  5663. // UpdatedAt is a required field
  5664. UpdatedAt *string `type:"string" required:"true"`
  5665. // The principal that created a note.
  5666. //
  5667. // UpdatedBy is a required field
  5668. UpdatedBy *string `type:"string" required:"true"`
  5669. }
  5670. // String returns the string representation
  5671. func (s Note) String() string {
  5672. return awsutil.Prettify(s)
  5673. }
  5674. // GoString returns the string representation
  5675. func (s Note) GoString() string {
  5676. return s.String()
  5677. }
  5678. // Validate inspects the fields of the type to determine if they are valid.
  5679. func (s *Note) Validate() error {
  5680. invalidParams := request.ErrInvalidParams{Context: "Note"}
  5681. if s.Text == nil {
  5682. invalidParams.Add(request.NewErrParamRequired("Text"))
  5683. }
  5684. if s.UpdatedAt == nil {
  5685. invalidParams.Add(request.NewErrParamRequired("UpdatedAt"))
  5686. }
  5687. if s.UpdatedBy == nil {
  5688. invalidParams.Add(request.NewErrParamRequired("UpdatedBy"))
  5689. }
  5690. if invalidParams.Len() > 0 {
  5691. return invalidParams
  5692. }
  5693. return nil
  5694. }
  5695. // SetText sets the Text field's value.
  5696. func (s *Note) SetText(v string) *Note {
  5697. s.Text = &v
  5698. return s
  5699. }
  5700. // SetUpdatedAt sets the UpdatedAt field's value.
  5701. func (s *Note) SetUpdatedAt(v string) *Note {
  5702. s.UpdatedAt = &v
  5703. return s
  5704. }
  5705. // SetUpdatedBy sets the UpdatedBy field's value.
  5706. func (s *Note) SetUpdatedBy(v string) *Note {
  5707. s.UpdatedBy = &v
  5708. return s
  5709. }
  5710. // The updated note.
  5711. type NoteUpdate struct {
  5712. _ struct{} `type:"structure"`
  5713. // The updated note text.
  5714. //
  5715. // Text is a required field
  5716. Text *string `type:"string" required:"true"`
  5717. // The principal that updated the note.
  5718. //
  5719. // UpdatedBy is a required field
  5720. UpdatedBy *string `type:"string" required:"true"`
  5721. }
  5722. // String returns the string representation
  5723. func (s NoteUpdate) String() string {
  5724. return awsutil.Prettify(s)
  5725. }
  5726. // GoString returns the string representation
  5727. func (s NoteUpdate) GoString() string {
  5728. return s.String()
  5729. }
  5730. // Validate inspects the fields of the type to determine if they are valid.
  5731. func (s *NoteUpdate) Validate() error {
  5732. invalidParams := request.ErrInvalidParams{Context: "NoteUpdate"}
  5733. if s.Text == nil {
  5734. invalidParams.Add(request.NewErrParamRequired("Text"))
  5735. }
  5736. if s.UpdatedBy == nil {
  5737. invalidParams.Add(request.NewErrParamRequired("UpdatedBy"))
  5738. }
  5739. if invalidParams.Len() > 0 {
  5740. return invalidParams
  5741. }
  5742. return nil
  5743. }
  5744. // SetText sets the Text field's value.
  5745. func (s *NoteUpdate) SetText(v string) *NoteUpdate {
  5746. s.Text = &v
  5747. return s
  5748. }
  5749. // SetUpdatedBy sets the UpdatedBy field's value.
  5750. func (s *NoteUpdate) SetUpdatedBy(v string) *NoteUpdate {
  5751. s.UpdatedBy = &v
  5752. return s
  5753. }
  5754. // A number filter for querying findings.
  5755. type NumberFilter struct {
  5756. _ struct{} `type:"structure"`
  5757. // Represents the "equal to" condition to be applied to a single field when
  5758. // querying for findings.
  5759. Eq *float64 `type:"double"`
  5760. // Represents the "greater than equal" condition to be applied to a single field
  5761. // when querying for findings.
  5762. Gte *float64 `type:"double"`
  5763. // Represents the "less than equal" condition to be applied to a single field
  5764. // when querying for findings.
  5765. Lte *float64 `type:"double"`
  5766. }
  5767. // String returns the string representation
  5768. func (s NumberFilter) String() string {
  5769. return awsutil.Prettify(s)
  5770. }
  5771. // GoString returns the string representation
  5772. func (s NumberFilter) GoString() string {
  5773. return s.String()
  5774. }
  5775. // SetEq sets the Eq field's value.
  5776. func (s *NumberFilter) SetEq(v float64) *NumberFilter {
  5777. s.Eq = &v
  5778. return s
  5779. }
  5780. // SetGte sets the Gte field's value.
  5781. func (s *NumberFilter) SetGte(v float64) *NumberFilter {
  5782. s.Gte = &v
  5783. return s
  5784. }
  5785. // SetLte sets the Lte field's value.
  5786. func (s *NumberFilter) SetLte(v float64) *NumberFilter {
  5787. s.Lte = &v
  5788. return s
  5789. }
  5790. // The details of process-related information about a finding.
  5791. type ProcessDetails struct {
  5792. _ struct{} `type:"structure"`
  5793. // The date/time that the process was launched.
  5794. LaunchedAt *string `type:"string"`
  5795. // The name of the process.
  5796. Name *string `type:"string"`
  5797. // The parent process ID.
  5798. ParentPid *int64 `type:"integer"`
  5799. // The path to the process executable.
  5800. Path *string `type:"string"`
  5801. // The process ID.
  5802. Pid *int64 `type:"integer"`
  5803. // The date/time that the process was terminated.
  5804. TerminatedAt *string `type:"string"`
  5805. }
  5806. // String returns the string representation
  5807. func (s ProcessDetails) String() string {
  5808. return awsutil.Prettify(s)
  5809. }
  5810. // GoString returns the string representation
  5811. func (s ProcessDetails) GoString() string {
  5812. return s.String()
  5813. }
  5814. // SetLaunchedAt sets the LaunchedAt field's value.
  5815. func (s *ProcessDetails) SetLaunchedAt(v string) *ProcessDetails {
  5816. s.LaunchedAt = &v
  5817. return s
  5818. }
  5819. // SetName sets the Name field's value.
  5820. func (s *ProcessDetails) SetName(v string) *ProcessDetails {
  5821. s.Name = &v
  5822. return s
  5823. }
  5824. // SetParentPid sets the ParentPid field's value.
  5825. func (s *ProcessDetails) SetParentPid(v int64) *ProcessDetails {
  5826. s.ParentPid = &v
  5827. return s
  5828. }
  5829. // SetPath sets the Path field's value.
  5830. func (s *ProcessDetails) SetPath(v string) *ProcessDetails {
  5831. s.Path = &v
  5832. return s
  5833. }
  5834. // SetPid sets the Pid field's value.
  5835. func (s *ProcessDetails) SetPid(v int64) *ProcessDetails {
  5836. s.Pid = &v
  5837. return s
  5838. }
  5839. // SetTerminatedAt sets the TerminatedAt field's value.
  5840. func (s *ProcessDetails) SetTerminatedAt(v string) *ProcessDetails {
  5841. s.TerminatedAt = &v
  5842. return s
  5843. }
  5844. // Provides a recommendation on how to remediate the issue identified within
  5845. // a finding.
  5846. type Recommendation struct {
  5847. _ struct{} `type:"structure"`
  5848. // The recommendation of what to do about the issue described in a finding.
  5849. Text *string `type:"string"`
  5850. // A URL to link to general remediation information for the finding type of
  5851. // a finding.
  5852. Url *string `type:"string"`
  5853. }
  5854. // String returns the string representation
  5855. func (s Recommendation) String() string {
  5856. return awsutil.Prettify(s)
  5857. }
  5858. // GoString returns the string representation
  5859. func (s Recommendation) GoString() string {
  5860. return s.String()
  5861. }
  5862. // SetText sets the Text field's value.
  5863. func (s *Recommendation) SetText(v string) *Recommendation {
  5864. s.Text = &v
  5865. return s
  5866. }
  5867. // SetUrl sets the Url field's value.
  5868. func (s *Recommendation) SetUrl(v string) *Recommendation {
  5869. s.Url = &v
  5870. return s
  5871. }
  5872. // Related finding's details.
  5873. type RelatedFinding struct {
  5874. _ struct{} `type:"structure"`
  5875. // The solution-generated identifier for a related finding.
  5876. //
  5877. // Id is a required field
  5878. Id *string `type:"string" required:"true"`
  5879. // The ARN of the solution that generated a related finding.
  5880. //
  5881. // ProductArn is a required field
  5882. ProductArn *string `type:"string" required:"true"`
  5883. }
  5884. // String returns the string representation
  5885. func (s RelatedFinding) String() string {
  5886. return awsutil.Prettify(s)
  5887. }
  5888. // GoString returns the string representation
  5889. func (s RelatedFinding) GoString() string {
  5890. return s.String()
  5891. }
  5892. // Validate inspects the fields of the type to determine if they are valid.
  5893. func (s *RelatedFinding) Validate() error {
  5894. invalidParams := request.ErrInvalidParams{Context: "RelatedFinding"}
  5895. if s.Id == nil {
  5896. invalidParams.Add(request.NewErrParamRequired("Id"))
  5897. }
  5898. if s.ProductArn == nil {
  5899. invalidParams.Add(request.NewErrParamRequired("ProductArn"))
  5900. }
  5901. if invalidParams.Len() > 0 {
  5902. return invalidParams
  5903. }
  5904. return nil
  5905. }
  5906. // SetId sets the Id field's value.
  5907. func (s *RelatedFinding) SetId(v string) *RelatedFinding {
  5908. s.Id = &v
  5909. return s
  5910. }
  5911. // SetProductArn sets the ProductArn field's value.
  5912. func (s *RelatedFinding) SetProductArn(v string) *RelatedFinding {
  5913. s.ProductArn = &v
  5914. return s
  5915. }
  5916. // The remediation options for a finding.
  5917. type Remediation struct {
  5918. _ struct{} `type:"structure"`
  5919. // Provides a recommendation on how to remediate the issue identified within
  5920. // a finding.
  5921. Recommendation *Recommendation `type:"structure"`
  5922. }
  5923. // String returns the string representation
  5924. func (s Remediation) String() string {
  5925. return awsutil.Prettify(s)
  5926. }
  5927. // GoString returns the string representation
  5928. func (s Remediation) GoString() string {
  5929. return s.String()
  5930. }
  5931. // SetRecommendation sets the Recommendation field's value.
  5932. func (s *Remediation) SetRecommendation(v *Recommendation) *Remediation {
  5933. s.Recommendation = v
  5934. return s
  5935. }
  5936. // A resource data type that describes a resource to which the finding refers.
  5937. type Resource struct {
  5938. _ struct{} `type:"structure"`
  5939. // Provides additional details about the resource.
  5940. Details *ResourceDetails `type:"structure"`
  5941. // The canonical identifier for the given resource type.
  5942. //
  5943. // Id is a required field
  5944. Id *string `type:"string" required:"true"`
  5945. // The canonical AWS partition name to which the region is assigned.
  5946. Partition *string `type:"string" enum:"Partition"`
  5947. // The canonical AWS external region name where this resource is located.
  5948. Region *string `type:"string"`
  5949. // A list of AWS tags associated with a resource at the time the finding was
  5950. // processed.
  5951. Tags map[string]*string `type:"map"`
  5952. // Specifies the type of the resource for which details are provided.
  5953. //
  5954. // Type is a required field
  5955. Type *string `type:"string" required:"true"`
  5956. }
  5957. // String returns the string representation
  5958. func (s Resource) String() string {
  5959. return awsutil.Prettify(s)
  5960. }
  5961. // GoString returns the string representation
  5962. func (s Resource) GoString() string {
  5963. return s.String()
  5964. }
  5965. // Validate inspects the fields of the type to determine if they are valid.
  5966. func (s *Resource) Validate() error {
  5967. invalidParams := request.ErrInvalidParams{Context: "Resource"}
  5968. if s.Id == nil {
  5969. invalidParams.Add(request.NewErrParamRequired("Id"))
  5970. }
  5971. if s.Type == nil {
  5972. invalidParams.Add(request.NewErrParamRequired("Type"))
  5973. }
  5974. if invalidParams.Len() > 0 {
  5975. return invalidParams
  5976. }
  5977. return nil
  5978. }
  5979. // SetDetails sets the Details field's value.
  5980. func (s *Resource) SetDetails(v *ResourceDetails) *Resource {
  5981. s.Details = v
  5982. return s
  5983. }
  5984. // SetId sets the Id field's value.
  5985. func (s *Resource) SetId(v string) *Resource {
  5986. s.Id = &v
  5987. return s
  5988. }
  5989. // SetPartition sets the Partition field's value.
  5990. func (s *Resource) SetPartition(v string) *Resource {
  5991. s.Partition = &v
  5992. return s
  5993. }
  5994. // SetRegion sets the Region field's value.
  5995. func (s *Resource) SetRegion(v string) *Resource {
  5996. s.Region = &v
  5997. return s
  5998. }
  5999. // SetTags sets the Tags field's value.
  6000. func (s *Resource) SetTags(v map[string]*string) *Resource {
  6001. s.Tags = v
  6002. return s
  6003. }
  6004. // SetType sets the Type field's value.
  6005. func (s *Resource) SetType(v string) *Resource {
  6006. s.Type = &v
  6007. return s
  6008. }
  6009. // Provides additional details about the resource.
  6010. type ResourceDetails struct {
  6011. _ struct{} `type:"structure"`
  6012. // The details of an AWS EC2 instance.
  6013. AwsEc2Instance *AwsEc2InstanceDetails `type:"structure"`
  6014. // AWS IAM access key details related to a finding.
  6015. AwsIamAccessKey *AwsIamAccessKeyDetails `type:"structure"`
  6016. // The details of an AWS S3 Bucket.
  6017. AwsS3Bucket *AwsS3BucketDetails `type:"structure"`
  6018. // Container details related to a finding.
  6019. Container *ContainerDetails `type:"structure"`
  6020. // The details of a resource that does not have a specific sub-field for the
  6021. // resource type defined.
  6022. Other map[string]*string `type:"map"`
  6023. }
  6024. // String returns the string representation
  6025. func (s ResourceDetails) String() string {
  6026. return awsutil.Prettify(s)
  6027. }
  6028. // GoString returns the string representation
  6029. func (s ResourceDetails) GoString() string {
  6030. return s.String()
  6031. }
  6032. // SetAwsEc2Instance sets the AwsEc2Instance field's value.
  6033. func (s *ResourceDetails) SetAwsEc2Instance(v *AwsEc2InstanceDetails) *ResourceDetails {
  6034. s.AwsEc2Instance = v
  6035. return s
  6036. }
  6037. // SetAwsIamAccessKey sets the AwsIamAccessKey field's value.
  6038. func (s *ResourceDetails) SetAwsIamAccessKey(v *AwsIamAccessKeyDetails) *ResourceDetails {
  6039. s.AwsIamAccessKey = v
  6040. return s
  6041. }
  6042. // SetAwsS3Bucket sets the AwsS3Bucket field's value.
  6043. func (s *ResourceDetails) SetAwsS3Bucket(v *AwsS3BucketDetails) *ResourceDetails {
  6044. s.AwsS3Bucket = v
  6045. return s
  6046. }
  6047. // SetContainer sets the Container field's value.
  6048. func (s *ResourceDetails) SetContainer(v *ContainerDetails) *ResourceDetails {
  6049. s.Container = v
  6050. return s
  6051. }
  6052. // SetOther sets the Other field's value.
  6053. func (s *ResourceDetails) SetOther(v map[string]*string) *ResourceDetails {
  6054. s.Other = v
  6055. return s
  6056. }
  6057. // The account details that could not be processed.
  6058. type Result struct {
  6059. _ struct{} `type:"structure"`
  6060. // An ID of the AWS account that could not be processed.
  6061. AccountId *string `type:"string"`
  6062. // The reason for why an account could not be processed.
  6063. ProcessingResult *string `type:"string"`
  6064. }
  6065. // String returns the string representation
  6066. func (s Result) String() string {
  6067. return awsutil.Prettify(s)
  6068. }
  6069. // GoString returns the string representation
  6070. func (s Result) GoString() string {
  6071. return s.String()
  6072. }
  6073. // SetAccountId sets the AccountId field's value.
  6074. func (s *Result) SetAccountId(v string) *Result {
  6075. s.AccountId = &v
  6076. return s
  6077. }
  6078. // SetProcessingResult sets the ProcessingResult field's value.
  6079. func (s *Result) SetProcessingResult(v string) *Result {
  6080. s.ProcessingResult = &v
  6081. return s
  6082. }
  6083. // A finding's severity.
  6084. type Severity struct {
  6085. _ struct{} `type:"structure"`
  6086. // The normalized severity of a finding.
  6087. //
  6088. // Normalized is a required field
  6089. Normalized *int64 `type:"integer" required:"true"`
  6090. // The native severity as defined by the security findings provider's solution
  6091. // that generated the finding.
  6092. Product *float64 `type:"double"`
  6093. }
  6094. // String returns the string representation
  6095. func (s Severity) String() string {
  6096. return awsutil.Prettify(s)
  6097. }
  6098. // GoString returns the string representation
  6099. func (s Severity) GoString() string {
  6100. return s.String()
  6101. }
  6102. // Validate inspects the fields of the type to determine if they are valid.
  6103. func (s *Severity) Validate() error {
  6104. invalidParams := request.ErrInvalidParams{Context: "Severity"}
  6105. if s.Normalized == nil {
  6106. invalidParams.Add(request.NewErrParamRequired("Normalized"))
  6107. }
  6108. if invalidParams.Len() > 0 {
  6109. return invalidParams
  6110. }
  6111. return nil
  6112. }
  6113. // SetNormalized sets the Normalized field's value.
  6114. func (s *Severity) SetNormalized(v int64) *Severity {
  6115. s.Normalized = &v
  6116. return s
  6117. }
  6118. // SetProduct sets the Product field's value.
  6119. func (s *Severity) SetProduct(v float64) *Severity {
  6120. s.Product = &v
  6121. return s
  6122. }
  6123. // A collection of attributes used for sorting findings.
  6124. type SortCriterion struct {
  6125. _ struct{} `type:"structure"`
  6126. // The finding attribute used for sorting findings.
  6127. Field *string `type:"string"`
  6128. // The order used for sorting findings.
  6129. SortOrder *string `type:"string" enum:"SortOrder"`
  6130. }
  6131. // String returns the string representation
  6132. func (s SortCriterion) String() string {
  6133. return awsutil.Prettify(s)
  6134. }
  6135. // GoString returns the string representation
  6136. func (s SortCriterion) GoString() string {
  6137. return s.String()
  6138. }
  6139. // SetField sets the Field field's value.
  6140. func (s *SortCriterion) SetField(v string) *SortCriterion {
  6141. s.Field = &v
  6142. return s
  6143. }
  6144. // SetSortOrder sets the SortOrder field's value.
  6145. func (s *SortCriterion) SetSortOrder(v string) *SortCriterion {
  6146. s.SortOrder = &v
  6147. return s
  6148. }
  6149. // A resource that represents your subscription to a supported standard.
  6150. type StandardsSubscription struct {
  6151. _ struct{} `type:"structure"`
  6152. // The ARN of a standard.
  6153. //
  6154. // StandardsArn is a required field
  6155. StandardsArn *string `type:"string" required:"true"`
  6156. // StandardsInput is a required field
  6157. StandardsInput map[string]*string `type:"map" required:"true"`
  6158. // The standard's status.
  6159. //
  6160. // StandardsStatus is a required field
  6161. StandardsStatus *string `type:"string" required:"true" enum:"StandardsStatus"`
  6162. // The ARN of a resource that represents your subscription to a supported standard.
  6163. //
  6164. // StandardsSubscriptionArn is a required field
  6165. StandardsSubscriptionArn *string `type:"string" required:"true"`
  6166. }
  6167. // String returns the string representation
  6168. func (s StandardsSubscription) String() string {
  6169. return awsutil.Prettify(s)
  6170. }
  6171. // GoString returns the string representation
  6172. func (s StandardsSubscription) GoString() string {
  6173. return s.String()
  6174. }
  6175. // SetStandardsArn sets the StandardsArn field's value.
  6176. func (s *StandardsSubscription) SetStandardsArn(v string) *StandardsSubscription {
  6177. s.StandardsArn = &v
  6178. return s
  6179. }
  6180. // SetStandardsInput sets the StandardsInput field's value.
  6181. func (s *StandardsSubscription) SetStandardsInput(v map[string]*string) *StandardsSubscription {
  6182. s.StandardsInput = v
  6183. return s
  6184. }
  6185. // SetStandardsStatus sets the StandardsStatus field's value.
  6186. func (s *StandardsSubscription) SetStandardsStatus(v string) *StandardsSubscription {
  6187. s.StandardsStatus = &v
  6188. return s
  6189. }
  6190. // SetStandardsSubscriptionArn sets the StandardsSubscriptionArn field's value.
  6191. func (s *StandardsSubscription) SetStandardsSubscriptionArn(v string) *StandardsSubscription {
  6192. s.StandardsSubscriptionArn = &v
  6193. return s
  6194. }
  6195. // The standard that you want to enable.
  6196. type StandardsSubscriptionRequest struct {
  6197. _ struct{} `type:"structure"`
  6198. // The ARN of the standard that you want to enable.
  6199. //
  6200. // StandardsArn is a required field
  6201. StandardsArn *string `type:"string" required:"true"`
  6202. StandardsInput map[string]*string `type:"map"`
  6203. }
  6204. // String returns the string representation
  6205. func (s StandardsSubscriptionRequest) String() string {
  6206. return awsutil.Prettify(s)
  6207. }
  6208. // GoString returns the string representation
  6209. func (s StandardsSubscriptionRequest) GoString() string {
  6210. return s.String()
  6211. }
  6212. // Validate inspects the fields of the type to determine if they are valid.
  6213. func (s *StandardsSubscriptionRequest) Validate() error {
  6214. invalidParams := request.ErrInvalidParams{Context: "StandardsSubscriptionRequest"}
  6215. if s.StandardsArn == nil {
  6216. invalidParams.Add(request.NewErrParamRequired("StandardsArn"))
  6217. }
  6218. if invalidParams.Len() > 0 {
  6219. return invalidParams
  6220. }
  6221. return nil
  6222. }
  6223. // SetStandardsArn sets the StandardsArn field's value.
  6224. func (s *StandardsSubscriptionRequest) SetStandardsArn(v string) *StandardsSubscriptionRequest {
  6225. s.StandardsArn = &v
  6226. return s
  6227. }
  6228. // SetStandardsInput sets the StandardsInput field's value.
  6229. func (s *StandardsSubscriptionRequest) SetStandardsInput(v map[string]*string) *StandardsSubscriptionRequest {
  6230. s.StandardsInput = v
  6231. return s
  6232. }
  6233. // A string filter for querying findings.
  6234. type StringFilter struct {
  6235. _ struct{} `type:"structure"`
  6236. // Represents the condition to be applied to a string value when querying for
  6237. // findings.
  6238. Comparison *string `type:"string" enum:"StringFilterComparison"`
  6239. // The string filter value.
  6240. Value *string `type:"string"`
  6241. }
  6242. // String returns the string representation
  6243. func (s StringFilter) String() string {
  6244. return awsutil.Prettify(s)
  6245. }
  6246. // GoString returns the string representation
  6247. func (s StringFilter) GoString() string {
  6248. return s.String()
  6249. }
  6250. // SetComparison sets the Comparison field's value.
  6251. func (s *StringFilter) SetComparison(v string) *StringFilter {
  6252. s.Comparison = &v
  6253. return s
  6254. }
  6255. // SetValue sets the Value field's value.
  6256. func (s *StringFilter) SetValue(v string) *StringFilter {
  6257. s.Value = &v
  6258. return s
  6259. }
  6260. // Threat intel details related to a finding.
  6261. type ThreatIntelIndicator struct {
  6262. _ struct{} `type:"structure"`
  6263. // The category of a threat intel indicator.
  6264. Category *string `type:"string" enum:"ThreatIntelIndicatorCategory"`
  6265. // The date/time of the last observation of a threat intel indicator.
  6266. LastObservedAt *string `type:"string"`
  6267. // The source of the threat intel.
  6268. Source *string `type:"string"`
  6269. // The URL for more details from the source of the threat intel.
  6270. SourceUrl *string `type:"string"`
  6271. // The type of a threat intel indicator.
  6272. Type *string `type:"string" enum:"ThreatIntelIndicatorType"`
  6273. // The value of a threat intel indicator.
  6274. Value *string `type:"string"`
  6275. }
  6276. // String returns the string representation
  6277. func (s ThreatIntelIndicator) String() string {
  6278. return awsutil.Prettify(s)
  6279. }
  6280. // GoString returns the string representation
  6281. func (s ThreatIntelIndicator) GoString() string {
  6282. return s.String()
  6283. }
  6284. // SetCategory sets the Category field's value.
  6285. func (s *ThreatIntelIndicator) SetCategory(v string) *ThreatIntelIndicator {
  6286. s.Category = &v
  6287. return s
  6288. }
  6289. // SetLastObservedAt sets the LastObservedAt field's value.
  6290. func (s *ThreatIntelIndicator) SetLastObservedAt(v string) *ThreatIntelIndicator {
  6291. s.LastObservedAt = &v
  6292. return s
  6293. }
  6294. // SetSource sets the Source field's value.
  6295. func (s *ThreatIntelIndicator) SetSource(v string) *ThreatIntelIndicator {
  6296. s.Source = &v
  6297. return s
  6298. }
  6299. // SetSourceUrl sets the SourceUrl field's value.
  6300. func (s *ThreatIntelIndicator) SetSourceUrl(v string) *ThreatIntelIndicator {
  6301. s.SourceUrl = &v
  6302. return s
  6303. }
  6304. // SetType sets the Type field's value.
  6305. func (s *ThreatIntelIndicator) SetType(v string) *ThreatIntelIndicator {
  6306. s.Type = &v
  6307. return s
  6308. }
  6309. // SetValue sets the Value field's value.
  6310. func (s *ThreatIntelIndicator) SetValue(v string) *ThreatIntelIndicator {
  6311. s.Value = &v
  6312. return s
  6313. }
  6314. type UpdateFindingsInput struct {
  6315. _ struct{} `type:"structure"`
  6316. // A collection of attributes that specify what findings you want to update.
  6317. //
  6318. // Filters is a required field
  6319. Filters *AwsSecurityFindingFilters `type:"structure" required:"true"`
  6320. // The updated note for the finding.
  6321. Note *NoteUpdate `type:"structure"`
  6322. // The updated record state for the finding.
  6323. RecordState *string `type:"string" enum:"RecordState"`
  6324. }
  6325. // String returns the string representation
  6326. func (s UpdateFindingsInput) String() string {
  6327. return awsutil.Prettify(s)
  6328. }
  6329. // GoString returns the string representation
  6330. func (s UpdateFindingsInput) GoString() string {
  6331. return s.String()
  6332. }
  6333. // Validate inspects the fields of the type to determine if they are valid.
  6334. func (s *UpdateFindingsInput) Validate() error {
  6335. invalidParams := request.ErrInvalidParams{Context: "UpdateFindingsInput"}
  6336. if s.Filters == nil {
  6337. invalidParams.Add(request.NewErrParamRequired("Filters"))
  6338. }
  6339. if s.Note != nil {
  6340. if err := s.Note.Validate(); err != nil {
  6341. invalidParams.AddNested("Note", err.(request.ErrInvalidParams))
  6342. }
  6343. }
  6344. if invalidParams.Len() > 0 {
  6345. return invalidParams
  6346. }
  6347. return nil
  6348. }
  6349. // SetFilters sets the Filters field's value.
  6350. func (s *UpdateFindingsInput) SetFilters(v *AwsSecurityFindingFilters) *UpdateFindingsInput {
  6351. s.Filters = v
  6352. return s
  6353. }
  6354. // SetNote sets the Note field's value.
  6355. func (s *UpdateFindingsInput) SetNote(v *NoteUpdate) *UpdateFindingsInput {
  6356. s.Note = v
  6357. return s
  6358. }
  6359. // SetRecordState sets the RecordState field's value.
  6360. func (s *UpdateFindingsInput) SetRecordState(v string) *UpdateFindingsInput {
  6361. s.RecordState = &v
  6362. return s
  6363. }
  6364. type UpdateFindingsOutput struct {
  6365. _ struct{} `type:"structure"`
  6366. }
  6367. // String returns the string representation
  6368. func (s UpdateFindingsOutput) String() string {
  6369. return awsutil.Prettify(s)
  6370. }
  6371. // GoString returns the string representation
  6372. func (s UpdateFindingsOutput) GoString() string {
  6373. return s.String()
  6374. }
  6375. type UpdateInsightInput struct {
  6376. _ struct{} `type:"structure"`
  6377. // The updated filters that define this insight.
  6378. Filters *AwsSecurityFindingFilters `type:"structure"`
  6379. // The updated GroupBy attribute that defines this insight.
  6380. GroupByAttribute *string `type:"string"`
  6381. // The ARN of the insight that you want to update.
  6382. //
  6383. // InsightArn is a required field
  6384. InsightArn *string `location:"uri" locationName:"InsightArn" type:"string" required:"true"`
  6385. // The updated name for the insight.
  6386. Name *string `type:"string"`
  6387. }
  6388. // String returns the string representation
  6389. func (s UpdateInsightInput) String() string {
  6390. return awsutil.Prettify(s)
  6391. }
  6392. // GoString returns the string representation
  6393. func (s UpdateInsightInput) GoString() string {
  6394. return s.String()
  6395. }
  6396. // Validate inspects the fields of the type to determine if they are valid.
  6397. func (s *UpdateInsightInput) Validate() error {
  6398. invalidParams := request.ErrInvalidParams{Context: "UpdateInsightInput"}
  6399. if s.InsightArn == nil {
  6400. invalidParams.Add(request.NewErrParamRequired("InsightArn"))
  6401. }
  6402. if s.InsightArn != nil && len(*s.InsightArn) < 1 {
  6403. invalidParams.Add(request.NewErrParamMinLen("InsightArn", 1))
  6404. }
  6405. if invalidParams.Len() > 0 {
  6406. return invalidParams
  6407. }
  6408. return nil
  6409. }
  6410. // SetFilters sets the Filters field's value.
  6411. func (s *UpdateInsightInput) SetFilters(v *AwsSecurityFindingFilters) *UpdateInsightInput {
  6412. s.Filters = v
  6413. return s
  6414. }
  6415. // SetGroupByAttribute sets the GroupByAttribute field's value.
  6416. func (s *UpdateInsightInput) SetGroupByAttribute(v string) *UpdateInsightInput {
  6417. s.GroupByAttribute = &v
  6418. return s
  6419. }
  6420. // SetInsightArn sets the InsightArn field's value.
  6421. func (s *UpdateInsightInput) SetInsightArn(v string) *UpdateInsightInput {
  6422. s.InsightArn = &v
  6423. return s
  6424. }
  6425. // SetName sets the Name field's value.
  6426. func (s *UpdateInsightInput) SetName(v string) *UpdateInsightInput {
  6427. s.Name = &v
  6428. return s
  6429. }
  6430. type UpdateInsightOutput struct {
  6431. _ struct{} `type:"structure"`
  6432. }
  6433. // String returns the string representation
  6434. func (s UpdateInsightOutput) String() string {
  6435. return awsutil.Prettify(s)
  6436. }
  6437. // GoString returns the string representation
  6438. func (s UpdateInsightOutput) GoString() string {
  6439. return s.String()
  6440. }
  6441. const (
  6442. // AwsIamAccessKeyStatusActive is a AwsIamAccessKeyStatus enum value
  6443. AwsIamAccessKeyStatusActive = "Active"
  6444. // AwsIamAccessKeyStatusInactive is a AwsIamAccessKeyStatus enum value
  6445. AwsIamAccessKeyStatusInactive = "Inactive"
  6446. )
  6447. const (
  6448. // ComplianceStatusPassed is a ComplianceStatus enum value
  6449. ComplianceStatusPassed = "PASSED"
  6450. // ComplianceStatusWarning is a ComplianceStatus enum value
  6451. ComplianceStatusWarning = "WARNING"
  6452. // ComplianceStatusFailed is a ComplianceStatus enum value
  6453. ComplianceStatusFailed = "FAILED"
  6454. // ComplianceStatusNotAvailable is a ComplianceStatus enum value
  6455. ComplianceStatusNotAvailable = "NOT_AVAILABLE"
  6456. )
  6457. const (
  6458. // DateRangeUnitDays is a DateRangeUnit enum value
  6459. DateRangeUnitDays = "DAYS"
  6460. )
  6461. const (
  6462. // MalwareStateObserved is a MalwareState enum value
  6463. MalwareStateObserved = "OBSERVED"
  6464. // MalwareStateRemovalFailed is a MalwareState enum value
  6465. MalwareStateRemovalFailed = "REMOVAL_FAILED"
  6466. // MalwareStateRemoved is a MalwareState enum value
  6467. MalwareStateRemoved = "REMOVED"
  6468. )
  6469. const (
  6470. // MalwareTypeAdware is a MalwareType enum value
  6471. MalwareTypeAdware = "ADWARE"
  6472. // MalwareTypeBlendedThreat is a MalwareType enum value
  6473. MalwareTypeBlendedThreat = "BLENDED_THREAT"
  6474. // MalwareTypeBotnetAgent is a MalwareType enum value
  6475. MalwareTypeBotnetAgent = "BOTNET_AGENT"
  6476. // MalwareTypeCoinMiner is a MalwareType enum value
  6477. MalwareTypeCoinMiner = "COIN_MINER"
  6478. // MalwareTypeExploitKit is a MalwareType enum value
  6479. MalwareTypeExploitKit = "EXPLOIT_KIT"
  6480. // MalwareTypeKeylogger is a MalwareType enum value
  6481. MalwareTypeKeylogger = "KEYLOGGER"
  6482. // MalwareTypeMacro is a MalwareType enum value
  6483. MalwareTypeMacro = "MACRO"
  6484. // MalwareTypePotentiallyUnwanted is a MalwareType enum value
  6485. MalwareTypePotentiallyUnwanted = "POTENTIALLY_UNWANTED"
  6486. // MalwareTypeSpyware is a MalwareType enum value
  6487. MalwareTypeSpyware = "SPYWARE"
  6488. // MalwareTypeRansomware is a MalwareType enum value
  6489. MalwareTypeRansomware = "RANSOMWARE"
  6490. // MalwareTypeRemoteAccess is a MalwareType enum value
  6491. MalwareTypeRemoteAccess = "REMOTE_ACCESS"
  6492. // MalwareTypeRootkit is a MalwareType enum value
  6493. MalwareTypeRootkit = "ROOTKIT"
  6494. // MalwareTypeTrojan is a MalwareType enum value
  6495. MalwareTypeTrojan = "TROJAN"
  6496. // MalwareTypeVirus is a MalwareType enum value
  6497. MalwareTypeVirus = "VIRUS"
  6498. // MalwareTypeWorm is a MalwareType enum value
  6499. MalwareTypeWorm = "WORM"
  6500. )
  6501. const (
  6502. // MapFilterComparisonContains is a MapFilterComparison enum value
  6503. MapFilterComparisonContains = "CONTAINS"
  6504. )
  6505. const (
  6506. // NetworkDirectionIn is a NetworkDirection enum value
  6507. NetworkDirectionIn = "IN"
  6508. // NetworkDirectionOut is a NetworkDirection enum value
  6509. NetworkDirectionOut = "OUT"
  6510. )
  6511. const (
  6512. // PartitionAws is a Partition enum value
  6513. PartitionAws = "aws"
  6514. // PartitionAwsCn is a Partition enum value
  6515. PartitionAwsCn = "aws-cn"
  6516. // PartitionAwsUsGov is a Partition enum value
  6517. PartitionAwsUsGov = "aws-us-gov"
  6518. )
  6519. const (
  6520. // RecordStateActive is a RecordState enum value
  6521. RecordStateActive = "ACTIVE"
  6522. // RecordStateArchived is a RecordState enum value
  6523. RecordStateArchived = "ARCHIVED"
  6524. )
  6525. const (
  6526. // SortOrderAsc is a SortOrder enum value
  6527. SortOrderAsc = "asc"
  6528. // SortOrderDesc is a SortOrder enum value
  6529. SortOrderDesc = "desc"
  6530. )
  6531. const (
  6532. // StandardsStatusPending is a StandardsStatus enum value
  6533. StandardsStatusPending = "PENDING"
  6534. // StandardsStatusReady is a StandardsStatus enum value
  6535. StandardsStatusReady = "READY"
  6536. // StandardsStatusFailed is a StandardsStatus enum value
  6537. StandardsStatusFailed = "FAILED"
  6538. // StandardsStatusDeleting is a StandardsStatus enum value
  6539. StandardsStatusDeleting = "DELETING"
  6540. )
  6541. const (
  6542. // StringFilterComparisonEquals is a StringFilterComparison enum value
  6543. StringFilterComparisonEquals = "EQUALS"
  6544. // StringFilterComparisonContains is a StringFilterComparison enum value
  6545. StringFilterComparisonContains = "CONTAINS"
  6546. // StringFilterComparisonPrefix is a StringFilterComparison enum value
  6547. StringFilterComparisonPrefix = "PREFIX"
  6548. )
  6549. const (
  6550. // ThreatIntelIndicatorCategoryBackdoor is a ThreatIntelIndicatorCategory enum value
  6551. ThreatIntelIndicatorCategoryBackdoor = "BACKDOOR"
  6552. // ThreatIntelIndicatorCategoryCardStealer is a ThreatIntelIndicatorCategory enum value
  6553. ThreatIntelIndicatorCategoryCardStealer = "CARD_STEALER"
  6554. // ThreatIntelIndicatorCategoryCommandAndControl is a ThreatIntelIndicatorCategory enum value
  6555. ThreatIntelIndicatorCategoryCommandAndControl = "COMMAND_AND_CONTROL"
  6556. // ThreatIntelIndicatorCategoryDropSite is a ThreatIntelIndicatorCategory enum value
  6557. ThreatIntelIndicatorCategoryDropSite = "DROP_SITE"
  6558. // ThreatIntelIndicatorCategoryExploitSite is a ThreatIntelIndicatorCategory enum value
  6559. ThreatIntelIndicatorCategoryExploitSite = "EXPLOIT_SITE"
  6560. // ThreatIntelIndicatorCategoryKeylogger is a ThreatIntelIndicatorCategory enum value
  6561. ThreatIntelIndicatorCategoryKeylogger = "KEYLOGGER"
  6562. )
  6563. const (
  6564. // ThreatIntelIndicatorTypeDomain is a ThreatIntelIndicatorType enum value
  6565. ThreatIntelIndicatorTypeDomain = "DOMAIN"
  6566. // ThreatIntelIndicatorTypeEmailAddress is a ThreatIntelIndicatorType enum value
  6567. ThreatIntelIndicatorTypeEmailAddress = "EMAIL_ADDRESS"
  6568. // ThreatIntelIndicatorTypeHashMd5 is a ThreatIntelIndicatorType enum value
  6569. ThreatIntelIndicatorTypeHashMd5 = "HASH_MD5"
  6570. // ThreatIntelIndicatorTypeHashSha1 is a ThreatIntelIndicatorType enum value
  6571. ThreatIntelIndicatorTypeHashSha1 = "HASH_SHA1"
  6572. // ThreatIntelIndicatorTypeHashSha256 is a ThreatIntelIndicatorType enum value
  6573. ThreatIntelIndicatorTypeHashSha256 = "HASH_SHA256"
  6574. // ThreatIntelIndicatorTypeHashSha512 is a ThreatIntelIndicatorType enum value
  6575. ThreatIntelIndicatorTypeHashSha512 = "HASH_SHA512"
  6576. // ThreatIntelIndicatorTypeIpv4Address is a ThreatIntelIndicatorType enum value
  6577. ThreatIntelIndicatorTypeIpv4Address = "IPV4_ADDRESS"
  6578. // ThreatIntelIndicatorTypeIpv6Address is a ThreatIntelIndicatorType enum value
  6579. ThreatIntelIndicatorTypeIpv6Address = "IPV6_ADDRESS"
  6580. // ThreatIntelIndicatorTypeMutex is a ThreatIntelIndicatorType enum value
  6581. ThreatIntelIndicatorTypeMutex = "MUTEX"
  6582. // ThreatIntelIndicatorTypeProcess is a ThreatIntelIndicatorType enum value
  6583. ThreatIntelIndicatorTypeProcess = "PROCESS"
  6584. // ThreatIntelIndicatorTypeUrl is a ThreatIntelIndicatorType enum value
  6585. ThreatIntelIndicatorTypeUrl = "URL"
  6586. )
  6587. const (
  6588. // VerificationStateUnknown is a VerificationState enum value
  6589. VerificationStateUnknown = "UNKNOWN"
  6590. // VerificationStateTruePositive is a VerificationState enum value
  6591. VerificationStateTruePositive = "TRUE_POSITIVE"
  6592. // VerificationStateFalsePositive is a VerificationState enum value
  6593. VerificationStateFalsePositive = "FALSE_POSITIVE"
  6594. // VerificationStateBenignPositive is a VerificationState enum value
  6595. VerificationStateBenignPositive = "BENIGN_POSITIVE"
  6596. )
  6597. const (
  6598. // WorkflowStateNew is a WorkflowState enum value
  6599. WorkflowStateNew = "NEW"
  6600. // WorkflowStateAssigned is a WorkflowState enum value
  6601. WorkflowStateAssigned = "ASSIGNED"
  6602. // WorkflowStateInProgress is a WorkflowState enum value
  6603. WorkflowStateInProgress = "IN_PROGRESS"
  6604. // WorkflowStateDeferred is a WorkflowState enum value
  6605. WorkflowStateDeferred = "DEFERRED"
  6606. // WorkflowStateResolved is a WorkflowState enum value
  6607. WorkflowStateResolved = "RESOLVED"
  6608. )