| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904 |
- // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
- package worklink
- import (
- "time"
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/private/protocol"
- "github.com/aws/aws-sdk-go/private/protocol/restjson"
- )
- const opAssociateWebsiteCertificateAuthority = "AssociateWebsiteCertificateAuthority"
- // AssociateWebsiteCertificateAuthorityRequest generates a "aws/request.Request" representing the
- // client's request for the AssociateWebsiteCertificateAuthority operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See AssociateWebsiteCertificateAuthority for more information on using the AssociateWebsiteCertificateAuthority
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the AssociateWebsiteCertificateAuthorityRequest method.
- // req, resp := client.AssociateWebsiteCertificateAuthorityRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/AssociateWebsiteCertificateAuthority
- func (c *WorkLink) AssociateWebsiteCertificateAuthorityRequest(input *AssociateWebsiteCertificateAuthorityInput) (req *request.Request, output *AssociateWebsiteCertificateAuthorityOutput) {
- op := &request.Operation{
- Name: opAssociateWebsiteCertificateAuthority,
- HTTPMethod: "POST",
- HTTPPath: "/associateWebsiteCertificateAuthority",
- }
- if input == nil {
- input = &AssociateWebsiteCertificateAuthorityInput{}
- }
- output = &AssociateWebsiteCertificateAuthorityOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // AssociateWebsiteCertificateAuthority API operation for Amazon WorkLink.
- //
- // Imports the root certificate of a certificate authority (CA) used to obtain
- // TLS certificates used by associated websites within the company network.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon WorkLink's
- // API operation AssociateWebsiteCertificateAuthority for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this action.
- //
- // * ErrCodeInternalServerErrorException "InternalServerErrorException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The requested resource was not found.
- //
- // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
- // The resource already exists.
- //
- // * ErrCodeTooManyRequestsException "TooManyRequestsException"
- // The number of requests exceeds the limit.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/AssociateWebsiteCertificateAuthority
- func (c *WorkLink) AssociateWebsiteCertificateAuthority(input *AssociateWebsiteCertificateAuthorityInput) (*AssociateWebsiteCertificateAuthorityOutput, error) {
- req, out := c.AssociateWebsiteCertificateAuthorityRequest(input)
- return out, req.Send()
- }
- // AssociateWebsiteCertificateAuthorityWithContext is the same as AssociateWebsiteCertificateAuthority with the addition of
- // the ability to pass a context and additional request options.
- //
- // See AssociateWebsiteCertificateAuthority for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *WorkLink) AssociateWebsiteCertificateAuthorityWithContext(ctx aws.Context, input *AssociateWebsiteCertificateAuthorityInput, opts ...request.Option) (*AssociateWebsiteCertificateAuthorityOutput, error) {
- req, out := c.AssociateWebsiteCertificateAuthorityRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateFleet = "CreateFleet"
- // CreateFleetRequest generates a "aws/request.Request" representing the
- // client's request for the CreateFleet operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateFleet for more information on using the CreateFleet
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateFleetRequest method.
- // req, resp := client.CreateFleetRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/CreateFleet
- func (c *WorkLink) CreateFleetRequest(input *CreateFleetInput) (req *request.Request, output *CreateFleetOutput) {
- op := &request.Operation{
- Name: opCreateFleet,
- HTTPMethod: "POST",
- HTTPPath: "/createFleet",
- }
- if input == nil {
- input = &CreateFleetInput{}
- }
- output = &CreateFleetOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateFleet API operation for Amazon WorkLink.
- //
- // Creates a fleet. A fleet consists of resources and the configuration that
- // delivers associated websites to authorized users who download and set up
- // the Amazon WorkLink app.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon WorkLink's
- // API operation CreateFleet for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this action.
- //
- // * ErrCodeInternalServerErrorException "InternalServerErrorException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The requested resource was not found.
- //
- // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
- // The resource already exists.
- //
- // * ErrCodeTooManyRequestsException "TooManyRequestsException"
- // The number of requests exceeds the limit.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/CreateFleet
- func (c *WorkLink) CreateFleet(input *CreateFleetInput) (*CreateFleetOutput, error) {
- req, out := c.CreateFleetRequest(input)
- return out, req.Send()
- }
- // CreateFleetWithContext is the same as CreateFleet with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateFleet for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *WorkLink) CreateFleetWithContext(ctx aws.Context, input *CreateFleetInput, opts ...request.Option) (*CreateFleetOutput, error) {
- req, out := c.CreateFleetRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteFleet = "DeleteFleet"
- // DeleteFleetRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteFleet operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteFleet for more information on using the DeleteFleet
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteFleetRequest method.
- // req, resp := client.DeleteFleetRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DeleteFleet
- func (c *WorkLink) DeleteFleetRequest(input *DeleteFleetInput) (req *request.Request, output *DeleteFleetOutput) {
- op := &request.Operation{
- Name: opDeleteFleet,
- HTTPMethod: "POST",
- HTTPPath: "/deleteFleet",
- }
- if input == nil {
- input = &DeleteFleetInput{}
- }
- output = &DeleteFleetOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteFleet API operation for Amazon WorkLink.
- //
- // Deletes a fleet. Prevents users from accessing previously associated websites.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon WorkLink's
- // API operation DeleteFleet for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this action.
- //
- // * ErrCodeInternalServerErrorException "InternalServerErrorException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The requested resource was not found.
- //
- // * ErrCodeTooManyRequestsException "TooManyRequestsException"
- // The number of requests exceeds the limit.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DeleteFleet
- func (c *WorkLink) DeleteFleet(input *DeleteFleetInput) (*DeleteFleetOutput, error) {
- req, out := c.DeleteFleetRequest(input)
- return out, req.Send()
- }
- // DeleteFleetWithContext is the same as DeleteFleet with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteFleet for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *WorkLink) DeleteFleetWithContext(ctx aws.Context, input *DeleteFleetInput, opts ...request.Option) (*DeleteFleetOutput, error) {
- req, out := c.DeleteFleetRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeAuditStreamConfiguration = "DescribeAuditStreamConfiguration"
- // DescribeAuditStreamConfigurationRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeAuditStreamConfiguration operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeAuditStreamConfiguration for more information on using the DescribeAuditStreamConfiguration
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeAuditStreamConfigurationRequest method.
- // req, resp := client.DescribeAuditStreamConfigurationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeAuditStreamConfiguration
- func (c *WorkLink) DescribeAuditStreamConfigurationRequest(input *DescribeAuditStreamConfigurationInput) (req *request.Request, output *DescribeAuditStreamConfigurationOutput) {
- op := &request.Operation{
- Name: opDescribeAuditStreamConfiguration,
- HTTPMethod: "POST",
- HTTPPath: "/describeAuditStreamConfiguration",
- }
- if input == nil {
- input = &DescribeAuditStreamConfigurationInput{}
- }
- output = &DescribeAuditStreamConfigurationOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeAuditStreamConfiguration API operation for Amazon WorkLink.
- //
- // Describes the configuration for delivering audit streams to the customer
- // account.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon WorkLink's
- // API operation DescribeAuditStreamConfiguration for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this action.
- //
- // * ErrCodeInternalServerErrorException "InternalServerErrorException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The requested resource was not found.
- //
- // * ErrCodeTooManyRequestsException "TooManyRequestsException"
- // The number of requests exceeds the limit.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeAuditStreamConfiguration
- func (c *WorkLink) DescribeAuditStreamConfiguration(input *DescribeAuditStreamConfigurationInput) (*DescribeAuditStreamConfigurationOutput, error) {
- req, out := c.DescribeAuditStreamConfigurationRequest(input)
- return out, req.Send()
- }
- // DescribeAuditStreamConfigurationWithContext is the same as DescribeAuditStreamConfiguration with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeAuditStreamConfiguration for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *WorkLink) DescribeAuditStreamConfigurationWithContext(ctx aws.Context, input *DescribeAuditStreamConfigurationInput, opts ...request.Option) (*DescribeAuditStreamConfigurationOutput, error) {
- req, out := c.DescribeAuditStreamConfigurationRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeCompanyNetworkConfiguration = "DescribeCompanyNetworkConfiguration"
- // DescribeCompanyNetworkConfigurationRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeCompanyNetworkConfiguration operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeCompanyNetworkConfiguration for more information on using the DescribeCompanyNetworkConfiguration
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeCompanyNetworkConfigurationRequest method.
- // req, resp := client.DescribeCompanyNetworkConfigurationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeCompanyNetworkConfiguration
- func (c *WorkLink) DescribeCompanyNetworkConfigurationRequest(input *DescribeCompanyNetworkConfigurationInput) (req *request.Request, output *DescribeCompanyNetworkConfigurationOutput) {
- op := &request.Operation{
- Name: opDescribeCompanyNetworkConfiguration,
- HTTPMethod: "POST",
- HTTPPath: "/describeCompanyNetworkConfiguration",
- }
- if input == nil {
- input = &DescribeCompanyNetworkConfigurationInput{}
- }
- output = &DescribeCompanyNetworkConfigurationOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeCompanyNetworkConfiguration API operation for Amazon WorkLink.
- //
- // Describes the networking configuration to access the internal websites associated
- // with the specified fleet.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon WorkLink's
- // API operation DescribeCompanyNetworkConfiguration for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this action.
- //
- // * ErrCodeInternalServerErrorException "InternalServerErrorException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The requested resource was not found.
- //
- // * ErrCodeTooManyRequestsException "TooManyRequestsException"
- // The number of requests exceeds the limit.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeCompanyNetworkConfiguration
- func (c *WorkLink) DescribeCompanyNetworkConfiguration(input *DescribeCompanyNetworkConfigurationInput) (*DescribeCompanyNetworkConfigurationOutput, error) {
- req, out := c.DescribeCompanyNetworkConfigurationRequest(input)
- return out, req.Send()
- }
- // DescribeCompanyNetworkConfigurationWithContext is the same as DescribeCompanyNetworkConfiguration with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeCompanyNetworkConfiguration for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *WorkLink) DescribeCompanyNetworkConfigurationWithContext(ctx aws.Context, input *DescribeCompanyNetworkConfigurationInput, opts ...request.Option) (*DescribeCompanyNetworkConfigurationOutput, error) {
- req, out := c.DescribeCompanyNetworkConfigurationRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeDevice = "DescribeDevice"
- // DescribeDeviceRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeDevice operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeDevice for more information on using the DescribeDevice
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeDeviceRequest method.
- // req, resp := client.DescribeDeviceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeDevice
- func (c *WorkLink) DescribeDeviceRequest(input *DescribeDeviceInput) (req *request.Request, output *DescribeDeviceOutput) {
- op := &request.Operation{
- Name: opDescribeDevice,
- HTTPMethod: "POST",
- HTTPPath: "/describeDevice",
- }
- if input == nil {
- input = &DescribeDeviceInput{}
- }
- output = &DescribeDeviceOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeDevice API operation for Amazon WorkLink.
- //
- // Provides information about a user's device.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon WorkLink's
- // API operation DescribeDevice for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this action.
- //
- // * ErrCodeInternalServerErrorException "InternalServerErrorException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The requested resource was not found.
- //
- // * ErrCodeTooManyRequestsException "TooManyRequestsException"
- // The number of requests exceeds the limit.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeDevice
- func (c *WorkLink) DescribeDevice(input *DescribeDeviceInput) (*DescribeDeviceOutput, error) {
- req, out := c.DescribeDeviceRequest(input)
- return out, req.Send()
- }
- // DescribeDeviceWithContext is the same as DescribeDevice with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeDevice for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *WorkLink) DescribeDeviceWithContext(ctx aws.Context, input *DescribeDeviceInput, opts ...request.Option) (*DescribeDeviceOutput, error) {
- req, out := c.DescribeDeviceRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeDevicePolicyConfiguration = "DescribeDevicePolicyConfiguration"
- // DescribeDevicePolicyConfigurationRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeDevicePolicyConfiguration operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeDevicePolicyConfiguration for more information on using the DescribeDevicePolicyConfiguration
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeDevicePolicyConfigurationRequest method.
- // req, resp := client.DescribeDevicePolicyConfigurationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeDevicePolicyConfiguration
- func (c *WorkLink) DescribeDevicePolicyConfigurationRequest(input *DescribeDevicePolicyConfigurationInput) (req *request.Request, output *DescribeDevicePolicyConfigurationOutput) {
- op := &request.Operation{
- Name: opDescribeDevicePolicyConfiguration,
- HTTPMethod: "POST",
- HTTPPath: "/describeDevicePolicyConfiguration",
- }
- if input == nil {
- input = &DescribeDevicePolicyConfigurationInput{}
- }
- output = &DescribeDevicePolicyConfigurationOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeDevicePolicyConfiguration API operation for Amazon WorkLink.
- //
- // Describes the device policy configuration for the specified fleet.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon WorkLink's
- // API operation DescribeDevicePolicyConfiguration for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this action.
- //
- // * ErrCodeInternalServerErrorException "InternalServerErrorException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The requested resource was not found.
- //
- // * ErrCodeTooManyRequestsException "TooManyRequestsException"
- // The number of requests exceeds the limit.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeDevicePolicyConfiguration
- func (c *WorkLink) DescribeDevicePolicyConfiguration(input *DescribeDevicePolicyConfigurationInput) (*DescribeDevicePolicyConfigurationOutput, error) {
- req, out := c.DescribeDevicePolicyConfigurationRequest(input)
- return out, req.Send()
- }
- // DescribeDevicePolicyConfigurationWithContext is the same as DescribeDevicePolicyConfiguration with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeDevicePolicyConfiguration for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *WorkLink) DescribeDevicePolicyConfigurationWithContext(ctx aws.Context, input *DescribeDevicePolicyConfigurationInput, opts ...request.Option) (*DescribeDevicePolicyConfigurationOutput, error) {
- req, out := c.DescribeDevicePolicyConfigurationRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeFleetMetadata = "DescribeFleetMetadata"
- // DescribeFleetMetadataRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeFleetMetadata operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeFleetMetadata for more information on using the DescribeFleetMetadata
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeFleetMetadataRequest method.
- // req, resp := client.DescribeFleetMetadataRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeFleetMetadata
- func (c *WorkLink) DescribeFleetMetadataRequest(input *DescribeFleetMetadataInput) (req *request.Request, output *DescribeFleetMetadataOutput) {
- op := &request.Operation{
- Name: opDescribeFleetMetadata,
- HTTPMethod: "POST",
- HTTPPath: "/describeFleetMetadata",
- }
- if input == nil {
- input = &DescribeFleetMetadataInput{}
- }
- output = &DescribeFleetMetadataOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeFleetMetadata API operation for Amazon WorkLink.
- //
- // Provides basic information for the specified fleet, excluding identity provider,
- // networking, and device configuration details.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon WorkLink's
- // API operation DescribeFleetMetadata for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this action.
- //
- // * ErrCodeInternalServerErrorException "InternalServerErrorException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The requested resource was not found.
- //
- // * ErrCodeTooManyRequestsException "TooManyRequestsException"
- // The number of requests exceeds the limit.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeFleetMetadata
- func (c *WorkLink) DescribeFleetMetadata(input *DescribeFleetMetadataInput) (*DescribeFleetMetadataOutput, error) {
- req, out := c.DescribeFleetMetadataRequest(input)
- return out, req.Send()
- }
- // DescribeFleetMetadataWithContext is the same as DescribeFleetMetadata with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeFleetMetadata for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *WorkLink) DescribeFleetMetadataWithContext(ctx aws.Context, input *DescribeFleetMetadataInput, opts ...request.Option) (*DescribeFleetMetadataOutput, error) {
- req, out := c.DescribeFleetMetadataRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeIdentityProviderConfiguration = "DescribeIdentityProviderConfiguration"
- // DescribeIdentityProviderConfigurationRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeIdentityProviderConfiguration operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeIdentityProviderConfiguration for more information on using the DescribeIdentityProviderConfiguration
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeIdentityProviderConfigurationRequest method.
- // req, resp := client.DescribeIdentityProviderConfigurationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeIdentityProviderConfiguration
- func (c *WorkLink) DescribeIdentityProviderConfigurationRequest(input *DescribeIdentityProviderConfigurationInput) (req *request.Request, output *DescribeIdentityProviderConfigurationOutput) {
- op := &request.Operation{
- Name: opDescribeIdentityProviderConfiguration,
- HTTPMethod: "POST",
- HTTPPath: "/describeIdentityProviderConfiguration",
- }
- if input == nil {
- input = &DescribeIdentityProviderConfigurationInput{}
- }
- output = &DescribeIdentityProviderConfigurationOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeIdentityProviderConfiguration API operation for Amazon WorkLink.
- //
- // Describes the identity provider configuration of the specified fleet.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon WorkLink's
- // API operation DescribeIdentityProviderConfiguration for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this action.
- //
- // * ErrCodeInternalServerErrorException "InternalServerErrorException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The requested resource was not found.
- //
- // * ErrCodeTooManyRequestsException "TooManyRequestsException"
- // The number of requests exceeds the limit.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeIdentityProviderConfiguration
- func (c *WorkLink) DescribeIdentityProviderConfiguration(input *DescribeIdentityProviderConfigurationInput) (*DescribeIdentityProviderConfigurationOutput, error) {
- req, out := c.DescribeIdentityProviderConfigurationRequest(input)
- return out, req.Send()
- }
- // DescribeIdentityProviderConfigurationWithContext is the same as DescribeIdentityProviderConfiguration with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeIdentityProviderConfiguration for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *WorkLink) DescribeIdentityProviderConfigurationWithContext(ctx aws.Context, input *DescribeIdentityProviderConfigurationInput, opts ...request.Option) (*DescribeIdentityProviderConfigurationOutput, error) {
- req, out := c.DescribeIdentityProviderConfigurationRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeWebsiteCertificateAuthority = "DescribeWebsiteCertificateAuthority"
- // DescribeWebsiteCertificateAuthorityRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeWebsiteCertificateAuthority operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeWebsiteCertificateAuthority for more information on using the DescribeWebsiteCertificateAuthority
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeWebsiteCertificateAuthorityRequest method.
- // req, resp := client.DescribeWebsiteCertificateAuthorityRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeWebsiteCertificateAuthority
- func (c *WorkLink) DescribeWebsiteCertificateAuthorityRequest(input *DescribeWebsiteCertificateAuthorityInput) (req *request.Request, output *DescribeWebsiteCertificateAuthorityOutput) {
- op := &request.Operation{
- Name: opDescribeWebsiteCertificateAuthority,
- HTTPMethod: "POST",
- HTTPPath: "/describeWebsiteCertificateAuthority",
- }
- if input == nil {
- input = &DescribeWebsiteCertificateAuthorityInput{}
- }
- output = &DescribeWebsiteCertificateAuthorityOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeWebsiteCertificateAuthority API operation for Amazon WorkLink.
- //
- // Provides information about the certificate authority.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon WorkLink's
- // API operation DescribeWebsiteCertificateAuthority for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this action.
- //
- // * ErrCodeInternalServerErrorException "InternalServerErrorException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The requested resource was not found.
- //
- // * ErrCodeTooManyRequestsException "TooManyRequestsException"
- // The number of requests exceeds the limit.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeWebsiteCertificateAuthority
- func (c *WorkLink) DescribeWebsiteCertificateAuthority(input *DescribeWebsiteCertificateAuthorityInput) (*DescribeWebsiteCertificateAuthorityOutput, error) {
- req, out := c.DescribeWebsiteCertificateAuthorityRequest(input)
- return out, req.Send()
- }
- // DescribeWebsiteCertificateAuthorityWithContext is the same as DescribeWebsiteCertificateAuthority with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeWebsiteCertificateAuthority for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *WorkLink) DescribeWebsiteCertificateAuthorityWithContext(ctx aws.Context, input *DescribeWebsiteCertificateAuthorityInput, opts ...request.Option) (*DescribeWebsiteCertificateAuthorityOutput, error) {
- req, out := c.DescribeWebsiteCertificateAuthorityRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDisassociateWebsiteCertificateAuthority = "DisassociateWebsiteCertificateAuthority"
- // DisassociateWebsiteCertificateAuthorityRequest generates a "aws/request.Request" representing the
- // client's request for the DisassociateWebsiteCertificateAuthority operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DisassociateWebsiteCertificateAuthority for more information on using the DisassociateWebsiteCertificateAuthority
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DisassociateWebsiteCertificateAuthorityRequest method.
- // req, resp := client.DisassociateWebsiteCertificateAuthorityRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DisassociateWebsiteCertificateAuthority
- func (c *WorkLink) DisassociateWebsiteCertificateAuthorityRequest(input *DisassociateWebsiteCertificateAuthorityInput) (req *request.Request, output *DisassociateWebsiteCertificateAuthorityOutput) {
- op := &request.Operation{
- Name: opDisassociateWebsiteCertificateAuthority,
- HTTPMethod: "POST",
- HTTPPath: "/disassociateWebsiteCertificateAuthority",
- }
- if input == nil {
- input = &DisassociateWebsiteCertificateAuthorityInput{}
- }
- output = &DisassociateWebsiteCertificateAuthorityOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DisassociateWebsiteCertificateAuthority API operation for Amazon WorkLink.
- //
- // Removes a certificate authority (CA).
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon WorkLink's
- // API operation DisassociateWebsiteCertificateAuthority for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this action.
- //
- // * ErrCodeInternalServerErrorException "InternalServerErrorException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The requested resource was not found.
- //
- // * ErrCodeTooManyRequestsException "TooManyRequestsException"
- // The number of requests exceeds the limit.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DisassociateWebsiteCertificateAuthority
- func (c *WorkLink) DisassociateWebsiteCertificateAuthority(input *DisassociateWebsiteCertificateAuthorityInput) (*DisassociateWebsiteCertificateAuthorityOutput, error) {
- req, out := c.DisassociateWebsiteCertificateAuthorityRequest(input)
- return out, req.Send()
- }
- // DisassociateWebsiteCertificateAuthorityWithContext is the same as DisassociateWebsiteCertificateAuthority with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DisassociateWebsiteCertificateAuthority for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *WorkLink) DisassociateWebsiteCertificateAuthorityWithContext(ctx aws.Context, input *DisassociateWebsiteCertificateAuthorityInput, opts ...request.Option) (*DisassociateWebsiteCertificateAuthorityOutput, error) {
- req, out := c.DisassociateWebsiteCertificateAuthorityRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListDevices = "ListDevices"
- // ListDevicesRequest generates a "aws/request.Request" representing the
- // client's request for the ListDevices operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListDevices for more information on using the ListDevices
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListDevicesRequest method.
- // req, resp := client.ListDevicesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/ListDevices
- func (c *WorkLink) ListDevicesRequest(input *ListDevicesInput) (req *request.Request, output *ListDevicesOutput) {
- op := &request.Operation{
- Name: opListDevices,
- HTTPMethod: "POST",
- HTTPPath: "/listDevices",
- Paginator: &request.Paginator{
- InputTokens: []string{"NextToken"},
- OutputTokens: []string{"NextToken"},
- LimitToken: "MaxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListDevicesInput{}
- }
- output = &ListDevicesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListDevices API operation for Amazon WorkLink.
- //
- // Retrieves a list of devices registered with the specified fleet.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon WorkLink's
- // API operation ListDevices for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this action.
- //
- // * ErrCodeInternalServerErrorException "InternalServerErrorException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The requested resource was not found.
- //
- // * ErrCodeTooManyRequestsException "TooManyRequestsException"
- // The number of requests exceeds the limit.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/ListDevices
- func (c *WorkLink) ListDevices(input *ListDevicesInput) (*ListDevicesOutput, error) {
- req, out := c.ListDevicesRequest(input)
- return out, req.Send()
- }
- // ListDevicesWithContext is the same as ListDevices with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListDevices for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *WorkLink) ListDevicesWithContext(ctx aws.Context, input *ListDevicesInput, opts ...request.Option) (*ListDevicesOutput, error) {
- req, out := c.ListDevicesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // ListDevicesPages iterates over the pages of a ListDevices operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListDevices method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListDevices operation.
- // pageNum := 0
- // err := client.ListDevicesPages(params,
- // func(page *ListDevicesOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *WorkLink) ListDevicesPages(input *ListDevicesInput, fn func(*ListDevicesOutput, bool) bool) error {
- return c.ListDevicesPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // ListDevicesPagesWithContext same as ListDevicesPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *WorkLink) ListDevicesPagesWithContext(ctx aws.Context, input *ListDevicesInput, fn func(*ListDevicesOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListDevicesInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListDevicesRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListDevicesOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opListFleets = "ListFleets"
- // ListFleetsRequest generates a "aws/request.Request" representing the
- // client's request for the ListFleets operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListFleets for more information on using the ListFleets
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListFleetsRequest method.
- // req, resp := client.ListFleetsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/ListFleets
- func (c *WorkLink) ListFleetsRequest(input *ListFleetsInput) (req *request.Request, output *ListFleetsOutput) {
- op := &request.Operation{
- Name: opListFleets,
- HTTPMethod: "POST",
- HTTPPath: "/listFleets",
- Paginator: &request.Paginator{
- InputTokens: []string{"NextToken"},
- OutputTokens: []string{"NextToken"},
- LimitToken: "MaxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListFleetsInput{}
- }
- output = &ListFleetsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListFleets API operation for Amazon WorkLink.
- //
- // Retrieves a list of fleets for the current account and Region.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon WorkLink's
- // API operation ListFleets for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this action.
- //
- // * ErrCodeInternalServerErrorException "InternalServerErrorException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeTooManyRequestsException "TooManyRequestsException"
- // The number of requests exceeds the limit.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/ListFleets
- func (c *WorkLink) ListFleets(input *ListFleetsInput) (*ListFleetsOutput, error) {
- req, out := c.ListFleetsRequest(input)
- return out, req.Send()
- }
- // ListFleetsWithContext is the same as ListFleets with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListFleets for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *WorkLink) ListFleetsWithContext(ctx aws.Context, input *ListFleetsInput, opts ...request.Option) (*ListFleetsOutput, error) {
- req, out := c.ListFleetsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // ListFleetsPages iterates over the pages of a ListFleets operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListFleets method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListFleets operation.
- // pageNum := 0
- // err := client.ListFleetsPages(params,
- // func(page *ListFleetsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *WorkLink) ListFleetsPages(input *ListFleetsInput, fn func(*ListFleetsOutput, bool) bool) error {
- return c.ListFleetsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // ListFleetsPagesWithContext same as ListFleetsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *WorkLink) ListFleetsPagesWithContext(ctx aws.Context, input *ListFleetsInput, fn func(*ListFleetsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListFleetsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListFleetsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListFleetsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opListWebsiteCertificateAuthorities = "ListWebsiteCertificateAuthorities"
- // ListWebsiteCertificateAuthoritiesRequest generates a "aws/request.Request" representing the
- // client's request for the ListWebsiteCertificateAuthorities operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListWebsiteCertificateAuthorities for more information on using the ListWebsiteCertificateAuthorities
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListWebsiteCertificateAuthoritiesRequest method.
- // req, resp := client.ListWebsiteCertificateAuthoritiesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/ListWebsiteCertificateAuthorities
- func (c *WorkLink) ListWebsiteCertificateAuthoritiesRequest(input *ListWebsiteCertificateAuthoritiesInput) (req *request.Request, output *ListWebsiteCertificateAuthoritiesOutput) {
- op := &request.Operation{
- Name: opListWebsiteCertificateAuthorities,
- HTTPMethod: "POST",
- HTTPPath: "/listWebsiteCertificateAuthorities",
- Paginator: &request.Paginator{
- InputTokens: []string{"NextToken"},
- OutputTokens: []string{"NextToken"},
- LimitToken: "MaxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListWebsiteCertificateAuthoritiesInput{}
- }
- output = &ListWebsiteCertificateAuthoritiesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListWebsiteCertificateAuthorities API operation for Amazon WorkLink.
- //
- // Retrieves a list of certificate authorities added for the current account
- // and Region.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon WorkLink's
- // API operation ListWebsiteCertificateAuthorities for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this action.
- //
- // * ErrCodeInternalServerErrorException "InternalServerErrorException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeTooManyRequestsException "TooManyRequestsException"
- // The number of requests exceeds the limit.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/ListWebsiteCertificateAuthorities
- func (c *WorkLink) ListWebsiteCertificateAuthorities(input *ListWebsiteCertificateAuthoritiesInput) (*ListWebsiteCertificateAuthoritiesOutput, error) {
- req, out := c.ListWebsiteCertificateAuthoritiesRequest(input)
- return out, req.Send()
- }
- // ListWebsiteCertificateAuthoritiesWithContext is the same as ListWebsiteCertificateAuthorities with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListWebsiteCertificateAuthorities for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *WorkLink) ListWebsiteCertificateAuthoritiesWithContext(ctx aws.Context, input *ListWebsiteCertificateAuthoritiesInput, opts ...request.Option) (*ListWebsiteCertificateAuthoritiesOutput, error) {
- req, out := c.ListWebsiteCertificateAuthoritiesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // ListWebsiteCertificateAuthoritiesPages iterates over the pages of a ListWebsiteCertificateAuthorities operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListWebsiteCertificateAuthorities method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListWebsiteCertificateAuthorities operation.
- // pageNum := 0
- // err := client.ListWebsiteCertificateAuthoritiesPages(params,
- // func(page *ListWebsiteCertificateAuthoritiesOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *WorkLink) ListWebsiteCertificateAuthoritiesPages(input *ListWebsiteCertificateAuthoritiesInput, fn func(*ListWebsiteCertificateAuthoritiesOutput, bool) bool) error {
- return c.ListWebsiteCertificateAuthoritiesPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // ListWebsiteCertificateAuthoritiesPagesWithContext same as ListWebsiteCertificateAuthoritiesPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *WorkLink) ListWebsiteCertificateAuthoritiesPagesWithContext(ctx aws.Context, input *ListWebsiteCertificateAuthoritiesInput, fn func(*ListWebsiteCertificateAuthoritiesOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListWebsiteCertificateAuthoritiesInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListWebsiteCertificateAuthoritiesRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListWebsiteCertificateAuthoritiesOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opSignOutUser = "SignOutUser"
- // SignOutUserRequest generates a "aws/request.Request" representing the
- // client's request for the SignOutUser operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See SignOutUser for more information on using the SignOutUser
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the SignOutUserRequest method.
- // req, resp := client.SignOutUserRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/SignOutUser
- func (c *WorkLink) SignOutUserRequest(input *SignOutUserInput) (req *request.Request, output *SignOutUserOutput) {
- op := &request.Operation{
- Name: opSignOutUser,
- HTTPMethod: "POST",
- HTTPPath: "/signOutUser",
- }
- if input == nil {
- input = &SignOutUserInput{}
- }
- output = &SignOutUserOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // SignOutUser API operation for Amazon WorkLink.
- //
- // Signs the user out from all of their devices. The user can sign in again
- // if they have valid credentials.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon WorkLink's
- // API operation SignOutUser for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this action.
- //
- // * ErrCodeInternalServerErrorException "InternalServerErrorException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The requested resource was not found.
- //
- // * ErrCodeTooManyRequestsException "TooManyRequestsException"
- // The number of requests exceeds the limit.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/SignOutUser
- func (c *WorkLink) SignOutUser(input *SignOutUserInput) (*SignOutUserOutput, error) {
- req, out := c.SignOutUserRequest(input)
- return out, req.Send()
- }
- // SignOutUserWithContext is the same as SignOutUser with the addition of
- // the ability to pass a context and additional request options.
- //
- // See SignOutUser for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *WorkLink) SignOutUserWithContext(ctx aws.Context, input *SignOutUserInput, opts ...request.Option) (*SignOutUserOutput, error) {
- req, out := c.SignOutUserRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateAuditStreamConfiguration = "UpdateAuditStreamConfiguration"
- // UpdateAuditStreamConfigurationRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateAuditStreamConfiguration operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdateAuditStreamConfiguration for more information on using the UpdateAuditStreamConfiguration
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdateAuditStreamConfigurationRequest method.
- // req, resp := client.UpdateAuditStreamConfigurationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/UpdateAuditStreamConfiguration
- func (c *WorkLink) UpdateAuditStreamConfigurationRequest(input *UpdateAuditStreamConfigurationInput) (req *request.Request, output *UpdateAuditStreamConfigurationOutput) {
- op := &request.Operation{
- Name: opUpdateAuditStreamConfiguration,
- HTTPMethod: "POST",
- HTTPPath: "/updateAuditStreamConfiguration",
- }
- if input == nil {
- input = &UpdateAuditStreamConfigurationInput{}
- }
- output = &UpdateAuditStreamConfigurationOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // UpdateAuditStreamConfiguration API operation for Amazon WorkLink.
- //
- // Updates the audit stream configuration for the fleet.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon WorkLink's
- // API operation UpdateAuditStreamConfiguration for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this action.
- //
- // * ErrCodeInternalServerErrorException "InternalServerErrorException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The requested resource was not found.
- //
- // * ErrCodeTooManyRequestsException "TooManyRequestsException"
- // The number of requests exceeds the limit.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/UpdateAuditStreamConfiguration
- func (c *WorkLink) UpdateAuditStreamConfiguration(input *UpdateAuditStreamConfigurationInput) (*UpdateAuditStreamConfigurationOutput, error) {
- req, out := c.UpdateAuditStreamConfigurationRequest(input)
- return out, req.Send()
- }
- // UpdateAuditStreamConfigurationWithContext is the same as UpdateAuditStreamConfiguration with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateAuditStreamConfiguration for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *WorkLink) UpdateAuditStreamConfigurationWithContext(ctx aws.Context, input *UpdateAuditStreamConfigurationInput, opts ...request.Option) (*UpdateAuditStreamConfigurationOutput, error) {
- req, out := c.UpdateAuditStreamConfigurationRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateCompanyNetworkConfiguration = "UpdateCompanyNetworkConfiguration"
- // UpdateCompanyNetworkConfigurationRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateCompanyNetworkConfiguration operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdateCompanyNetworkConfiguration for more information on using the UpdateCompanyNetworkConfiguration
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdateCompanyNetworkConfigurationRequest method.
- // req, resp := client.UpdateCompanyNetworkConfigurationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/UpdateCompanyNetworkConfiguration
- func (c *WorkLink) UpdateCompanyNetworkConfigurationRequest(input *UpdateCompanyNetworkConfigurationInput) (req *request.Request, output *UpdateCompanyNetworkConfigurationOutput) {
- op := &request.Operation{
- Name: opUpdateCompanyNetworkConfiguration,
- HTTPMethod: "POST",
- HTTPPath: "/updateCompanyNetworkConfiguration",
- }
- if input == nil {
- input = &UpdateCompanyNetworkConfigurationInput{}
- }
- output = &UpdateCompanyNetworkConfigurationOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // UpdateCompanyNetworkConfiguration API operation for Amazon WorkLink.
- //
- // Updates the company network configuration for the fleet.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon WorkLink's
- // API operation UpdateCompanyNetworkConfiguration for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this action.
- //
- // * ErrCodeInternalServerErrorException "InternalServerErrorException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The requested resource was not found.
- //
- // * ErrCodeTooManyRequestsException "TooManyRequestsException"
- // The number of requests exceeds the limit.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/UpdateCompanyNetworkConfiguration
- func (c *WorkLink) UpdateCompanyNetworkConfiguration(input *UpdateCompanyNetworkConfigurationInput) (*UpdateCompanyNetworkConfigurationOutput, error) {
- req, out := c.UpdateCompanyNetworkConfigurationRequest(input)
- return out, req.Send()
- }
- // UpdateCompanyNetworkConfigurationWithContext is the same as UpdateCompanyNetworkConfiguration with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateCompanyNetworkConfiguration for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *WorkLink) UpdateCompanyNetworkConfigurationWithContext(ctx aws.Context, input *UpdateCompanyNetworkConfigurationInput, opts ...request.Option) (*UpdateCompanyNetworkConfigurationOutput, error) {
- req, out := c.UpdateCompanyNetworkConfigurationRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateDevicePolicyConfiguration = "UpdateDevicePolicyConfiguration"
- // UpdateDevicePolicyConfigurationRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateDevicePolicyConfiguration operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdateDevicePolicyConfiguration for more information on using the UpdateDevicePolicyConfiguration
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdateDevicePolicyConfigurationRequest method.
- // req, resp := client.UpdateDevicePolicyConfigurationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/UpdateDevicePolicyConfiguration
- func (c *WorkLink) UpdateDevicePolicyConfigurationRequest(input *UpdateDevicePolicyConfigurationInput) (req *request.Request, output *UpdateDevicePolicyConfigurationOutput) {
- op := &request.Operation{
- Name: opUpdateDevicePolicyConfiguration,
- HTTPMethod: "POST",
- HTTPPath: "/updateDevicePolicyConfiguration",
- }
- if input == nil {
- input = &UpdateDevicePolicyConfigurationInput{}
- }
- output = &UpdateDevicePolicyConfigurationOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // UpdateDevicePolicyConfiguration API operation for Amazon WorkLink.
- //
- // Updates the device policy configuration for the fleet.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon WorkLink's
- // API operation UpdateDevicePolicyConfiguration for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this action.
- //
- // * ErrCodeInternalServerErrorException "InternalServerErrorException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The requested resource was not found.
- //
- // * ErrCodeTooManyRequestsException "TooManyRequestsException"
- // The number of requests exceeds the limit.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/UpdateDevicePolicyConfiguration
- func (c *WorkLink) UpdateDevicePolicyConfiguration(input *UpdateDevicePolicyConfigurationInput) (*UpdateDevicePolicyConfigurationOutput, error) {
- req, out := c.UpdateDevicePolicyConfigurationRequest(input)
- return out, req.Send()
- }
- // UpdateDevicePolicyConfigurationWithContext is the same as UpdateDevicePolicyConfiguration with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateDevicePolicyConfiguration for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *WorkLink) UpdateDevicePolicyConfigurationWithContext(ctx aws.Context, input *UpdateDevicePolicyConfigurationInput, opts ...request.Option) (*UpdateDevicePolicyConfigurationOutput, error) {
- req, out := c.UpdateDevicePolicyConfigurationRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateFleetMetadata = "UpdateFleetMetadata"
- // UpdateFleetMetadataRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateFleetMetadata operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdateFleetMetadata for more information on using the UpdateFleetMetadata
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdateFleetMetadataRequest method.
- // req, resp := client.UpdateFleetMetadataRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/UpdateFleetMetadata
- func (c *WorkLink) UpdateFleetMetadataRequest(input *UpdateFleetMetadataInput) (req *request.Request, output *UpdateFleetMetadataOutput) {
- op := &request.Operation{
- Name: opUpdateFleetMetadata,
- HTTPMethod: "POST",
- HTTPPath: "/UpdateFleetMetadata",
- }
- if input == nil {
- input = &UpdateFleetMetadataInput{}
- }
- output = &UpdateFleetMetadataOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // UpdateFleetMetadata API operation for Amazon WorkLink.
- //
- // Updates fleet metadata, such as DisplayName.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon WorkLink's
- // API operation UpdateFleetMetadata for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this action.
- //
- // * ErrCodeInternalServerErrorException "InternalServerErrorException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The requested resource was not found.
- //
- // * ErrCodeTooManyRequestsException "TooManyRequestsException"
- // The number of requests exceeds the limit.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/UpdateFleetMetadata
- func (c *WorkLink) UpdateFleetMetadata(input *UpdateFleetMetadataInput) (*UpdateFleetMetadataOutput, error) {
- req, out := c.UpdateFleetMetadataRequest(input)
- return out, req.Send()
- }
- // UpdateFleetMetadataWithContext is the same as UpdateFleetMetadata with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateFleetMetadata for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *WorkLink) UpdateFleetMetadataWithContext(ctx aws.Context, input *UpdateFleetMetadataInput, opts ...request.Option) (*UpdateFleetMetadataOutput, error) {
- req, out := c.UpdateFleetMetadataRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateIdentityProviderConfiguration = "UpdateIdentityProviderConfiguration"
- // UpdateIdentityProviderConfigurationRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateIdentityProviderConfiguration operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdateIdentityProviderConfiguration for more information on using the UpdateIdentityProviderConfiguration
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdateIdentityProviderConfigurationRequest method.
- // req, resp := client.UpdateIdentityProviderConfigurationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/UpdateIdentityProviderConfiguration
- func (c *WorkLink) UpdateIdentityProviderConfigurationRequest(input *UpdateIdentityProviderConfigurationInput) (req *request.Request, output *UpdateIdentityProviderConfigurationOutput) {
- op := &request.Operation{
- Name: opUpdateIdentityProviderConfiguration,
- HTTPMethod: "POST",
- HTTPPath: "/updateIdentityProviderConfiguration",
- }
- if input == nil {
- input = &UpdateIdentityProviderConfigurationInput{}
- }
- output = &UpdateIdentityProviderConfigurationOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // UpdateIdentityProviderConfiguration API operation for Amazon WorkLink.
- //
- // Updates the identity provider configuration for the fleet.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon WorkLink's
- // API operation UpdateIdentityProviderConfiguration for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedException "UnauthorizedException"
- // You are not authorized to perform this action.
- //
- // * ErrCodeInternalServerErrorException "InternalServerErrorException"
- // The service is temporarily unavailable.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request is not valid.
- //
- // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
- // The requested resource was not found.
- //
- // * ErrCodeTooManyRequestsException "TooManyRequestsException"
- // The number of requests exceeds the limit.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/UpdateIdentityProviderConfiguration
- func (c *WorkLink) UpdateIdentityProviderConfiguration(input *UpdateIdentityProviderConfigurationInput) (*UpdateIdentityProviderConfigurationOutput, error) {
- req, out := c.UpdateIdentityProviderConfigurationRequest(input)
- return out, req.Send()
- }
- // UpdateIdentityProviderConfigurationWithContext is the same as UpdateIdentityProviderConfiguration with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateIdentityProviderConfiguration for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *WorkLink) UpdateIdentityProviderConfigurationWithContext(ctx aws.Context, input *UpdateIdentityProviderConfigurationInput, opts ...request.Option) (*UpdateIdentityProviderConfigurationOutput, error) {
- req, out := c.UpdateIdentityProviderConfigurationRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- type AssociateWebsiteCertificateAuthorityInput struct {
- _ struct{} `type:"structure"`
- // The root certificate of the CA.
- //
- // Certificate is a required field
- Certificate *string `min:"1" type:"string" required:"true"`
- // The certificate name to display.
- DisplayName *string `type:"string"`
- // The ARN of the fleet.
- //
- // FleetArn is a required field
- FleetArn *string `min:"20" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AssociateWebsiteCertificateAuthorityInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AssociateWebsiteCertificateAuthorityInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AssociateWebsiteCertificateAuthorityInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AssociateWebsiteCertificateAuthorityInput"}
- if s.Certificate == nil {
- invalidParams.Add(request.NewErrParamRequired("Certificate"))
- }
- if s.Certificate != nil && len(*s.Certificate) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Certificate", 1))
- }
- if s.FleetArn == nil {
- invalidParams.Add(request.NewErrParamRequired("FleetArn"))
- }
- if s.FleetArn != nil && len(*s.FleetArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCertificate sets the Certificate field's value.
- func (s *AssociateWebsiteCertificateAuthorityInput) SetCertificate(v string) *AssociateWebsiteCertificateAuthorityInput {
- s.Certificate = &v
- return s
- }
- // SetDisplayName sets the DisplayName field's value.
- func (s *AssociateWebsiteCertificateAuthorityInput) SetDisplayName(v string) *AssociateWebsiteCertificateAuthorityInput {
- s.DisplayName = &v
- return s
- }
- // SetFleetArn sets the FleetArn field's value.
- func (s *AssociateWebsiteCertificateAuthorityInput) SetFleetArn(v string) *AssociateWebsiteCertificateAuthorityInput {
- s.FleetArn = &v
- return s
- }
- type AssociateWebsiteCertificateAuthorityOutput struct {
- _ struct{} `type:"structure"`
- // A unique identifier for the CA.
- WebsiteCaId *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s AssociateWebsiteCertificateAuthorityOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AssociateWebsiteCertificateAuthorityOutput) GoString() string {
- return s.String()
- }
- // SetWebsiteCaId sets the WebsiteCaId field's value.
- func (s *AssociateWebsiteCertificateAuthorityOutput) SetWebsiteCaId(v string) *AssociateWebsiteCertificateAuthorityOutput {
- s.WebsiteCaId = &v
- return s
- }
- type CreateFleetInput struct {
- _ struct{} `type:"structure"`
- // The fleet name to display.
- DisplayName *string `type:"string"`
- // A unique name for the fleet.
- //
- // FleetName is a required field
- FleetName *string `min:"1" type:"string" required:"true"`
- // The option to optimize for better performance by routing traffic through
- // the closest AWS Region to users, which may be outside of your home Region.
- OptimizeForEndUserLocation *bool `type:"boolean"`
- }
- // String returns the string representation
- func (s CreateFleetInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateFleetInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateFleetInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateFleetInput"}
- if s.FleetName == nil {
- invalidParams.Add(request.NewErrParamRequired("FleetName"))
- }
- if s.FleetName != nil && len(*s.FleetName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("FleetName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDisplayName sets the DisplayName field's value.
- func (s *CreateFleetInput) SetDisplayName(v string) *CreateFleetInput {
- s.DisplayName = &v
- return s
- }
- // SetFleetName sets the FleetName field's value.
- func (s *CreateFleetInput) SetFleetName(v string) *CreateFleetInput {
- s.FleetName = &v
- return s
- }
- // SetOptimizeForEndUserLocation sets the OptimizeForEndUserLocation field's value.
- func (s *CreateFleetInput) SetOptimizeForEndUserLocation(v bool) *CreateFleetInput {
- s.OptimizeForEndUserLocation = &v
- return s
- }
- type CreateFleetOutput struct {
- _ struct{} `type:"structure"`
- // The ARN of the fleet.
- FleetArn *string `min:"20" type:"string"`
- }
- // String returns the string representation
- func (s CreateFleetOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateFleetOutput) GoString() string {
- return s.String()
- }
- // SetFleetArn sets the FleetArn field's value.
- func (s *CreateFleetOutput) SetFleetArn(v string) *CreateFleetOutput {
- s.FleetArn = &v
- return s
- }
- type DeleteFleetInput struct {
- _ struct{} `type:"structure"`
- // The ARN of the fleet.
- //
- // FleetArn is a required field
- FleetArn *string `min:"20" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteFleetInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteFleetInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteFleetInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteFleetInput"}
- if s.FleetArn == nil {
- invalidParams.Add(request.NewErrParamRequired("FleetArn"))
- }
- if s.FleetArn != nil && len(*s.FleetArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetFleetArn sets the FleetArn field's value.
- func (s *DeleteFleetInput) SetFleetArn(v string) *DeleteFleetInput {
- s.FleetArn = &v
- return s
- }
- type DeleteFleetOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteFleetOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteFleetOutput) GoString() string {
- return s.String()
- }
- type DescribeAuditStreamConfigurationInput struct {
- _ struct{} `type:"structure"`
- // The ARN of the fleet.
- //
- // FleetArn is a required field
- FleetArn *string `min:"20" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeAuditStreamConfigurationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeAuditStreamConfigurationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeAuditStreamConfigurationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeAuditStreamConfigurationInput"}
- if s.FleetArn == nil {
- invalidParams.Add(request.NewErrParamRequired("FleetArn"))
- }
- if s.FleetArn != nil && len(*s.FleetArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetFleetArn sets the FleetArn field's value.
- func (s *DescribeAuditStreamConfigurationInput) SetFleetArn(v string) *DescribeAuditStreamConfigurationInput {
- s.FleetArn = &v
- return s
- }
- type DescribeAuditStreamConfigurationOutput struct {
- _ struct{} `type:"structure"`
- // The ARN of the Amazon Kinesis data stream that will receive the audit events.
- AuditStreamArn *string `type:"string"`
- }
- // String returns the string representation
- func (s DescribeAuditStreamConfigurationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeAuditStreamConfigurationOutput) GoString() string {
- return s.String()
- }
- // SetAuditStreamArn sets the AuditStreamArn field's value.
- func (s *DescribeAuditStreamConfigurationOutput) SetAuditStreamArn(v string) *DescribeAuditStreamConfigurationOutput {
- s.AuditStreamArn = &v
- return s
- }
- type DescribeCompanyNetworkConfigurationInput struct {
- _ struct{} `type:"structure"`
- // The ARN of the fleet.
- //
- // FleetArn is a required field
- FleetArn *string `min:"20" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeCompanyNetworkConfigurationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeCompanyNetworkConfigurationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeCompanyNetworkConfigurationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeCompanyNetworkConfigurationInput"}
- if s.FleetArn == nil {
- invalidParams.Add(request.NewErrParamRequired("FleetArn"))
- }
- if s.FleetArn != nil && len(*s.FleetArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetFleetArn sets the FleetArn field's value.
- func (s *DescribeCompanyNetworkConfigurationInput) SetFleetArn(v string) *DescribeCompanyNetworkConfigurationInput {
- s.FleetArn = &v
- return s
- }
- type DescribeCompanyNetworkConfigurationOutput struct {
- _ struct{} `type:"structure"`
- // The security groups associated with access to the provided subnets.
- SecurityGroupIds []*string `type:"list"`
- // The subnets used for X-ENI connections from Amazon WorkLink rendering containers.
- SubnetIds []*string `type:"list"`
- // The VPC with connectivity to associated websites.
- VpcId *string `type:"string"`
- }
- // String returns the string representation
- func (s DescribeCompanyNetworkConfigurationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeCompanyNetworkConfigurationOutput) GoString() string {
- return s.String()
- }
- // SetSecurityGroupIds sets the SecurityGroupIds field's value.
- func (s *DescribeCompanyNetworkConfigurationOutput) SetSecurityGroupIds(v []*string) *DescribeCompanyNetworkConfigurationOutput {
- s.SecurityGroupIds = v
- return s
- }
- // SetSubnetIds sets the SubnetIds field's value.
- func (s *DescribeCompanyNetworkConfigurationOutput) SetSubnetIds(v []*string) *DescribeCompanyNetworkConfigurationOutput {
- s.SubnetIds = v
- return s
- }
- // SetVpcId sets the VpcId field's value.
- func (s *DescribeCompanyNetworkConfigurationOutput) SetVpcId(v string) *DescribeCompanyNetworkConfigurationOutput {
- s.VpcId = &v
- return s
- }
- type DescribeDeviceInput struct {
- _ struct{} `type:"structure"`
- // A unique identifier for a registered user's device.
- //
- // DeviceId is a required field
- DeviceId *string `min:"1" type:"string" required:"true"`
- // The ARN of the fleet.
- //
- // FleetArn is a required field
- FleetArn *string `min:"20" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeDeviceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeDeviceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeDeviceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeDeviceInput"}
- if s.DeviceId == nil {
- invalidParams.Add(request.NewErrParamRequired("DeviceId"))
- }
- if s.DeviceId != nil && len(*s.DeviceId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DeviceId", 1))
- }
- if s.FleetArn == nil {
- invalidParams.Add(request.NewErrParamRequired("FleetArn"))
- }
- if s.FleetArn != nil && len(*s.FleetArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDeviceId sets the DeviceId field's value.
- func (s *DescribeDeviceInput) SetDeviceId(v string) *DescribeDeviceInput {
- s.DeviceId = &v
- return s
- }
- // SetFleetArn sets the FleetArn field's value.
- func (s *DescribeDeviceInput) SetFleetArn(v string) *DescribeDeviceInput {
- s.FleetArn = &v
- return s
- }
- type DescribeDeviceOutput struct {
- _ struct{} `type:"structure"`
- // The date that the device first signed in to Amazon WorkLink.
- FirstAccessedTime *time.Time `type:"timestamp"`
- // The date that the device last accessed Amazon WorkLink.
- LastAccessedTime *time.Time `type:"timestamp"`
- // The manufacturer of the device.
- Manufacturer *string `min:"1" type:"string"`
- // The model of the device.
- Model *string `min:"1" type:"string"`
- // The operating system of the device.
- OperatingSystem *string `min:"1" type:"string"`
- // The operating system version of the device.
- OperatingSystemVersion *string `min:"1" type:"string"`
- // The operating system patch level of the device.
- PatchLevel *string `min:"1" type:"string"`
- // The current state of the device.
- Status *string `type:"string" enum:"DeviceStatus"`
- // The user name associated with the device.
- Username *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s DescribeDeviceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeDeviceOutput) GoString() string {
- return s.String()
- }
- // SetFirstAccessedTime sets the FirstAccessedTime field's value.
- func (s *DescribeDeviceOutput) SetFirstAccessedTime(v time.Time) *DescribeDeviceOutput {
- s.FirstAccessedTime = &v
- return s
- }
- // SetLastAccessedTime sets the LastAccessedTime field's value.
- func (s *DescribeDeviceOutput) SetLastAccessedTime(v time.Time) *DescribeDeviceOutput {
- s.LastAccessedTime = &v
- return s
- }
- // SetManufacturer sets the Manufacturer field's value.
- func (s *DescribeDeviceOutput) SetManufacturer(v string) *DescribeDeviceOutput {
- s.Manufacturer = &v
- return s
- }
- // SetModel sets the Model field's value.
- func (s *DescribeDeviceOutput) SetModel(v string) *DescribeDeviceOutput {
- s.Model = &v
- return s
- }
- // SetOperatingSystem sets the OperatingSystem field's value.
- func (s *DescribeDeviceOutput) SetOperatingSystem(v string) *DescribeDeviceOutput {
- s.OperatingSystem = &v
- return s
- }
- // SetOperatingSystemVersion sets the OperatingSystemVersion field's value.
- func (s *DescribeDeviceOutput) SetOperatingSystemVersion(v string) *DescribeDeviceOutput {
- s.OperatingSystemVersion = &v
- return s
- }
- // SetPatchLevel sets the PatchLevel field's value.
- func (s *DescribeDeviceOutput) SetPatchLevel(v string) *DescribeDeviceOutput {
- s.PatchLevel = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *DescribeDeviceOutput) SetStatus(v string) *DescribeDeviceOutput {
- s.Status = &v
- return s
- }
- // SetUsername sets the Username field's value.
- func (s *DescribeDeviceOutput) SetUsername(v string) *DescribeDeviceOutput {
- s.Username = &v
- return s
- }
- type DescribeDevicePolicyConfigurationInput struct {
- _ struct{} `type:"structure"`
- // The ARN of the fleet.
- //
- // FleetArn is a required field
- FleetArn *string `min:"20" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeDevicePolicyConfigurationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeDevicePolicyConfigurationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeDevicePolicyConfigurationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeDevicePolicyConfigurationInput"}
- if s.FleetArn == nil {
- invalidParams.Add(request.NewErrParamRequired("FleetArn"))
- }
- if s.FleetArn != nil && len(*s.FleetArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetFleetArn sets the FleetArn field's value.
- func (s *DescribeDevicePolicyConfigurationInput) SetFleetArn(v string) *DescribeDevicePolicyConfigurationInput {
- s.FleetArn = &v
- return s
- }
- type DescribeDevicePolicyConfigurationOutput struct {
- _ struct{} `type:"structure"`
- // The certificate chain, including intermediate certificates and the root certificate
- // authority certificate used to issue device certificates.
- DeviceCaCertificate *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s DescribeDevicePolicyConfigurationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeDevicePolicyConfigurationOutput) GoString() string {
- return s.String()
- }
- // SetDeviceCaCertificate sets the DeviceCaCertificate field's value.
- func (s *DescribeDevicePolicyConfigurationOutput) SetDeviceCaCertificate(v string) *DescribeDevicePolicyConfigurationOutput {
- s.DeviceCaCertificate = &v
- return s
- }
- type DescribeFleetMetadataInput struct {
- _ struct{} `type:"structure"`
- // The ARN of the fleet.
- //
- // FleetArn is a required field
- FleetArn *string `min:"20" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeFleetMetadataInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeFleetMetadataInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeFleetMetadataInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeFleetMetadataInput"}
- if s.FleetArn == nil {
- invalidParams.Add(request.NewErrParamRequired("FleetArn"))
- }
- if s.FleetArn != nil && len(*s.FleetArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetFleetArn sets the FleetArn field's value.
- func (s *DescribeFleetMetadataInput) SetFleetArn(v string) *DescribeFleetMetadataInput {
- s.FleetArn = &v
- return s
- }
- type DescribeFleetMetadataOutput struct {
- _ struct{} `type:"structure"`
- // The identifier used by users to sign in to the Amazon WorkLink app.
- CompanyCode *string `min:"1" type:"string"`
- // The time that the fleet was created.
- CreatedTime *time.Time `type:"timestamp"`
- // The name to display.
- DisplayName *string `type:"string"`
- // The name of the fleet.
- FleetName *string `min:"1" type:"string"`
- // The current state of the fleet.
- FleetStatus *string `type:"string" enum:"FleetStatus"`
- // The time that the fleet was last updated.
- LastUpdatedTime *time.Time `type:"timestamp"`
- // The option to optimize for better performance by routing traffic through
- // the closest AWS Region to users, which may be outside of your home Region.
- OptimizeForEndUserLocation *bool `type:"boolean"`
- }
- // String returns the string representation
- func (s DescribeFleetMetadataOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeFleetMetadataOutput) GoString() string {
- return s.String()
- }
- // SetCompanyCode sets the CompanyCode field's value.
- func (s *DescribeFleetMetadataOutput) SetCompanyCode(v string) *DescribeFleetMetadataOutput {
- s.CompanyCode = &v
- return s
- }
- // SetCreatedTime sets the CreatedTime field's value.
- func (s *DescribeFleetMetadataOutput) SetCreatedTime(v time.Time) *DescribeFleetMetadataOutput {
- s.CreatedTime = &v
- return s
- }
- // SetDisplayName sets the DisplayName field's value.
- func (s *DescribeFleetMetadataOutput) SetDisplayName(v string) *DescribeFleetMetadataOutput {
- s.DisplayName = &v
- return s
- }
- // SetFleetName sets the FleetName field's value.
- func (s *DescribeFleetMetadataOutput) SetFleetName(v string) *DescribeFleetMetadataOutput {
- s.FleetName = &v
- return s
- }
- // SetFleetStatus sets the FleetStatus field's value.
- func (s *DescribeFleetMetadataOutput) SetFleetStatus(v string) *DescribeFleetMetadataOutput {
- s.FleetStatus = &v
- return s
- }
- // SetLastUpdatedTime sets the LastUpdatedTime field's value.
- func (s *DescribeFleetMetadataOutput) SetLastUpdatedTime(v time.Time) *DescribeFleetMetadataOutput {
- s.LastUpdatedTime = &v
- return s
- }
- // SetOptimizeForEndUserLocation sets the OptimizeForEndUserLocation field's value.
- func (s *DescribeFleetMetadataOutput) SetOptimizeForEndUserLocation(v bool) *DescribeFleetMetadataOutput {
- s.OptimizeForEndUserLocation = &v
- return s
- }
- type DescribeIdentityProviderConfigurationInput struct {
- _ struct{} `type:"structure"`
- // The ARN of the fleet.
- //
- // FleetArn is a required field
- FleetArn *string `min:"20" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeIdentityProviderConfigurationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeIdentityProviderConfigurationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeIdentityProviderConfigurationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeIdentityProviderConfigurationInput"}
- if s.FleetArn == nil {
- invalidParams.Add(request.NewErrParamRequired("FleetArn"))
- }
- if s.FleetArn != nil && len(*s.FleetArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetFleetArn sets the FleetArn field's value.
- func (s *DescribeIdentityProviderConfigurationInput) SetFleetArn(v string) *DescribeIdentityProviderConfigurationInput {
- s.FleetArn = &v
- return s
- }
- type DescribeIdentityProviderConfigurationOutput struct {
- _ struct{} `type:"structure"`
- // The SAML metadata document provided by the user’s identity provider.
- IdentityProviderSamlMetadata *string `min:"1" type:"string"`
- // The type of identity provider.
- IdentityProviderType *string `type:"string" enum:"IdentityProviderType"`
- // The SAML metadata document uploaded to the user’s identity provider.
- ServiceProviderSamlMetadata *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s DescribeIdentityProviderConfigurationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeIdentityProviderConfigurationOutput) GoString() string {
- return s.String()
- }
- // SetIdentityProviderSamlMetadata sets the IdentityProviderSamlMetadata field's value.
- func (s *DescribeIdentityProviderConfigurationOutput) SetIdentityProviderSamlMetadata(v string) *DescribeIdentityProviderConfigurationOutput {
- s.IdentityProviderSamlMetadata = &v
- return s
- }
- // SetIdentityProviderType sets the IdentityProviderType field's value.
- func (s *DescribeIdentityProviderConfigurationOutput) SetIdentityProviderType(v string) *DescribeIdentityProviderConfigurationOutput {
- s.IdentityProviderType = &v
- return s
- }
- // SetServiceProviderSamlMetadata sets the ServiceProviderSamlMetadata field's value.
- func (s *DescribeIdentityProviderConfigurationOutput) SetServiceProviderSamlMetadata(v string) *DescribeIdentityProviderConfigurationOutput {
- s.ServiceProviderSamlMetadata = &v
- return s
- }
- type DescribeWebsiteCertificateAuthorityInput struct {
- _ struct{} `type:"structure"`
- // The ARN of the fleet.
- //
- // FleetArn is a required field
- FleetArn *string `min:"20" type:"string" required:"true"`
- // A unique identifier for the certificate authority.
- //
- // WebsiteCaId is a required field
- WebsiteCaId *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeWebsiteCertificateAuthorityInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeWebsiteCertificateAuthorityInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeWebsiteCertificateAuthorityInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeWebsiteCertificateAuthorityInput"}
- if s.FleetArn == nil {
- invalidParams.Add(request.NewErrParamRequired("FleetArn"))
- }
- if s.FleetArn != nil && len(*s.FleetArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
- }
- if s.WebsiteCaId == nil {
- invalidParams.Add(request.NewErrParamRequired("WebsiteCaId"))
- }
- if s.WebsiteCaId != nil && len(*s.WebsiteCaId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("WebsiteCaId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetFleetArn sets the FleetArn field's value.
- func (s *DescribeWebsiteCertificateAuthorityInput) SetFleetArn(v string) *DescribeWebsiteCertificateAuthorityInput {
- s.FleetArn = &v
- return s
- }
- // SetWebsiteCaId sets the WebsiteCaId field's value.
- func (s *DescribeWebsiteCertificateAuthorityInput) SetWebsiteCaId(v string) *DescribeWebsiteCertificateAuthorityInput {
- s.WebsiteCaId = &v
- return s
- }
- type DescribeWebsiteCertificateAuthorityOutput struct {
- _ struct{} `type:"structure"`
- // The root certificate of the certificate authority.
- Certificate *string `min:"1" type:"string"`
- // The time that the certificate authority was added.
- CreatedTime *time.Time `type:"timestamp"`
- // The certificate name to display.
- DisplayName *string `type:"string"`
- }
- // String returns the string representation
- func (s DescribeWebsiteCertificateAuthorityOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeWebsiteCertificateAuthorityOutput) GoString() string {
- return s.String()
- }
- // SetCertificate sets the Certificate field's value.
- func (s *DescribeWebsiteCertificateAuthorityOutput) SetCertificate(v string) *DescribeWebsiteCertificateAuthorityOutput {
- s.Certificate = &v
- return s
- }
- // SetCreatedTime sets the CreatedTime field's value.
- func (s *DescribeWebsiteCertificateAuthorityOutput) SetCreatedTime(v time.Time) *DescribeWebsiteCertificateAuthorityOutput {
- s.CreatedTime = &v
- return s
- }
- // SetDisplayName sets the DisplayName field's value.
- func (s *DescribeWebsiteCertificateAuthorityOutput) SetDisplayName(v string) *DescribeWebsiteCertificateAuthorityOutput {
- s.DisplayName = &v
- return s
- }
- // The summary of devices.
- type DeviceSummary struct {
- _ struct{} `type:"structure"`
- // The ID of the device.
- DeviceId *string `min:"1" type:"string"`
- // The status of the device.
- DeviceStatus *string `type:"string" enum:"DeviceStatus"`
- }
- // String returns the string representation
- func (s DeviceSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeviceSummary) GoString() string {
- return s.String()
- }
- // SetDeviceId sets the DeviceId field's value.
- func (s *DeviceSummary) SetDeviceId(v string) *DeviceSummary {
- s.DeviceId = &v
- return s
- }
- // SetDeviceStatus sets the DeviceStatus field's value.
- func (s *DeviceSummary) SetDeviceStatus(v string) *DeviceSummary {
- s.DeviceStatus = &v
- return s
- }
- type DisassociateWebsiteCertificateAuthorityInput struct {
- _ struct{} `type:"structure"`
- // The ARN of the fleet.
- //
- // FleetArn is a required field
- FleetArn *string `min:"20" type:"string" required:"true"`
- // A unique identifier for the CA.
- //
- // WebsiteCaId is a required field
- WebsiteCaId *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DisassociateWebsiteCertificateAuthorityInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DisassociateWebsiteCertificateAuthorityInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DisassociateWebsiteCertificateAuthorityInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DisassociateWebsiteCertificateAuthorityInput"}
- if s.FleetArn == nil {
- invalidParams.Add(request.NewErrParamRequired("FleetArn"))
- }
- if s.FleetArn != nil && len(*s.FleetArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
- }
- if s.WebsiteCaId == nil {
- invalidParams.Add(request.NewErrParamRequired("WebsiteCaId"))
- }
- if s.WebsiteCaId != nil && len(*s.WebsiteCaId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("WebsiteCaId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetFleetArn sets the FleetArn field's value.
- func (s *DisassociateWebsiteCertificateAuthorityInput) SetFleetArn(v string) *DisassociateWebsiteCertificateAuthorityInput {
- s.FleetArn = &v
- return s
- }
- // SetWebsiteCaId sets the WebsiteCaId field's value.
- func (s *DisassociateWebsiteCertificateAuthorityInput) SetWebsiteCaId(v string) *DisassociateWebsiteCertificateAuthorityInput {
- s.WebsiteCaId = &v
- return s
- }
- type DisassociateWebsiteCertificateAuthorityOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DisassociateWebsiteCertificateAuthorityOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DisassociateWebsiteCertificateAuthorityOutput) GoString() string {
- return s.String()
- }
- // The summary of the fleet.
- type FleetSummary struct {
- _ struct{} `type:"structure"`
- // The identifier used by users to sign into the Amazon WorkLink app.
- CompanyCode *string `min:"1" type:"string"`
- // The time when the fleet was created.
- CreatedTime *time.Time `type:"timestamp"`
- // The name to display.
- DisplayName *string `type:"string"`
- // The ARN of the fleet.
- FleetArn *string `min:"20" type:"string"`
- // The name of the fleet.
- FleetName *string `min:"1" type:"string"`
- // The status of the fleet.
- FleetStatus *string `type:"string" enum:"FleetStatus"`
- // The time when the fleet was last updated.
- LastUpdatedTime *time.Time `type:"timestamp"`
- }
- // String returns the string representation
- func (s FleetSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s FleetSummary) GoString() string {
- return s.String()
- }
- // SetCompanyCode sets the CompanyCode field's value.
- func (s *FleetSummary) SetCompanyCode(v string) *FleetSummary {
- s.CompanyCode = &v
- return s
- }
- // SetCreatedTime sets the CreatedTime field's value.
- func (s *FleetSummary) SetCreatedTime(v time.Time) *FleetSummary {
- s.CreatedTime = &v
- return s
- }
- // SetDisplayName sets the DisplayName field's value.
- func (s *FleetSummary) SetDisplayName(v string) *FleetSummary {
- s.DisplayName = &v
- return s
- }
- // SetFleetArn sets the FleetArn field's value.
- func (s *FleetSummary) SetFleetArn(v string) *FleetSummary {
- s.FleetArn = &v
- return s
- }
- // SetFleetName sets the FleetName field's value.
- func (s *FleetSummary) SetFleetName(v string) *FleetSummary {
- s.FleetName = &v
- return s
- }
- // SetFleetStatus sets the FleetStatus field's value.
- func (s *FleetSummary) SetFleetStatus(v string) *FleetSummary {
- s.FleetStatus = &v
- return s
- }
- // SetLastUpdatedTime sets the LastUpdatedTime field's value.
- func (s *FleetSummary) SetLastUpdatedTime(v time.Time) *FleetSummary {
- s.LastUpdatedTime = &v
- return s
- }
- type ListDevicesInput struct {
- _ struct{} `type:"structure"`
- // The ARN of the fleet.
- //
- // FleetArn is a required field
- FleetArn *string `min:"20" type:"string" required:"true"`
- // The maximum number of results to be included in the next page.
- MaxResults *int64 `min:"1" type:"integer"`
- // The pagination token used to retrieve the next page of results for this operation.
- // If this value is null, it retrieves the first page.
- NextToken *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ListDevicesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListDevicesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListDevicesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListDevicesInput"}
- if s.FleetArn == nil {
- invalidParams.Add(request.NewErrParamRequired("FleetArn"))
- }
- if s.FleetArn != nil && len(*s.FleetArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
- }
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.NextToken != nil && len(*s.NextToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetFleetArn sets the FleetArn field's value.
- func (s *ListDevicesInput) SetFleetArn(v string) *ListDevicesInput {
- s.FleetArn = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListDevicesInput) SetMaxResults(v int64) *ListDevicesInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListDevicesInput) SetNextToken(v string) *ListDevicesInput {
- s.NextToken = &v
- return s
- }
- type ListDevicesOutput struct {
- _ struct{} `type:"structure"`
- // Information about the devices.
- Devices []*DeviceSummary `type:"list"`
- // The pagination token used to retrieve the next page of results for this operation.
- // If there are no more pages, this value is null.
- NextToken *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ListDevicesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListDevicesOutput) GoString() string {
- return s.String()
- }
- // SetDevices sets the Devices field's value.
- func (s *ListDevicesOutput) SetDevices(v []*DeviceSummary) *ListDevicesOutput {
- s.Devices = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListDevicesOutput) SetNextToken(v string) *ListDevicesOutput {
- s.NextToken = &v
- return s
- }
- type ListFleetsInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to be included in the next page.
- MaxResults *int64 `min:"1" type:"integer"`
- // The pagination token used to retrieve the next page of results for this operation.
- // If this value is null, it retrieves the first page.
- NextToken *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ListFleetsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListFleetsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListFleetsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListFleetsInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.NextToken != nil && len(*s.NextToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListFleetsInput) SetMaxResults(v int64) *ListFleetsInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListFleetsInput) SetNextToken(v string) *ListFleetsInput {
- s.NextToken = &v
- return s
- }
- type ListFleetsOutput struct {
- _ struct{} `type:"structure"`
- // The summary list of the fleets.
- FleetSummaryList []*FleetSummary `type:"list"`
- // The pagination token used to retrieve the next page of results for this operation.
- // If there are no more pages, this value is null.
- NextToken *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ListFleetsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListFleetsOutput) GoString() string {
- return s.String()
- }
- // SetFleetSummaryList sets the FleetSummaryList field's value.
- func (s *ListFleetsOutput) SetFleetSummaryList(v []*FleetSummary) *ListFleetsOutput {
- s.FleetSummaryList = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListFleetsOutput) SetNextToken(v string) *ListFleetsOutput {
- s.NextToken = &v
- return s
- }
- type ListWebsiteCertificateAuthoritiesInput struct {
- _ struct{} `type:"structure"`
- // The ARN of the fleet.
- //
- // FleetArn is a required field
- FleetArn *string `min:"20" type:"string" required:"true"`
- // The maximum number of results to be included in the next page.
- MaxResults *int64 `min:"1" type:"integer"`
- // The pagination token used to retrieve the next page of results for this operation.
- // If this value is null, it retrieves the first page.
- NextToken *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ListWebsiteCertificateAuthoritiesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListWebsiteCertificateAuthoritiesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListWebsiteCertificateAuthoritiesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListWebsiteCertificateAuthoritiesInput"}
- if s.FleetArn == nil {
- invalidParams.Add(request.NewErrParamRequired("FleetArn"))
- }
- if s.FleetArn != nil && len(*s.FleetArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
- }
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.NextToken != nil && len(*s.NextToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetFleetArn sets the FleetArn field's value.
- func (s *ListWebsiteCertificateAuthoritiesInput) SetFleetArn(v string) *ListWebsiteCertificateAuthoritiesInput {
- s.FleetArn = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListWebsiteCertificateAuthoritiesInput) SetMaxResults(v int64) *ListWebsiteCertificateAuthoritiesInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListWebsiteCertificateAuthoritiesInput) SetNextToken(v string) *ListWebsiteCertificateAuthoritiesInput {
- s.NextToken = &v
- return s
- }
- type ListWebsiteCertificateAuthoritiesOutput struct {
- _ struct{} `type:"structure"`
- // The pagination token used to retrieve the next page of results for this operation.
- // If there are no more pages, this value is null.
- NextToken *string `min:"1" type:"string"`
- // Information about the certificates.
- WebsiteCertificateAuthorities []*WebsiteCaSummary `type:"list"`
- }
- // String returns the string representation
- func (s ListWebsiteCertificateAuthoritiesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListWebsiteCertificateAuthoritiesOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListWebsiteCertificateAuthoritiesOutput) SetNextToken(v string) *ListWebsiteCertificateAuthoritiesOutput {
- s.NextToken = &v
- return s
- }
- // SetWebsiteCertificateAuthorities sets the WebsiteCertificateAuthorities field's value.
- func (s *ListWebsiteCertificateAuthoritiesOutput) SetWebsiteCertificateAuthorities(v []*WebsiteCaSummary) *ListWebsiteCertificateAuthoritiesOutput {
- s.WebsiteCertificateAuthorities = v
- return s
- }
- type SignOutUserInput struct {
- _ struct{} `type:"structure"`
- // The ARN of the fleet.
- //
- // FleetArn is a required field
- FleetArn *string `min:"20" type:"string" required:"true"`
- // The name of the user.
- //
- // Username is a required field
- Username *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s SignOutUserInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SignOutUserInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SignOutUserInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SignOutUserInput"}
- if s.FleetArn == nil {
- invalidParams.Add(request.NewErrParamRequired("FleetArn"))
- }
- if s.FleetArn != nil && len(*s.FleetArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
- }
- if s.Username == nil {
- invalidParams.Add(request.NewErrParamRequired("Username"))
- }
- if s.Username != nil && len(*s.Username) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Username", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetFleetArn sets the FleetArn field's value.
- func (s *SignOutUserInput) SetFleetArn(v string) *SignOutUserInput {
- s.FleetArn = &v
- return s
- }
- // SetUsername sets the Username field's value.
- func (s *SignOutUserInput) SetUsername(v string) *SignOutUserInput {
- s.Username = &v
- return s
- }
- type SignOutUserOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s SignOutUserOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SignOutUserOutput) GoString() string {
- return s.String()
- }
- type UpdateAuditStreamConfigurationInput struct {
- _ struct{} `type:"structure"`
- // The ARN of the Amazon Kinesis data stream that receives the audit events.
- AuditStreamArn *string `type:"string"`
- // The ARN of the fleet.
- //
- // FleetArn is a required field
- FleetArn *string `min:"20" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateAuditStreamConfigurationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateAuditStreamConfigurationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateAuditStreamConfigurationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateAuditStreamConfigurationInput"}
- if s.FleetArn == nil {
- invalidParams.Add(request.NewErrParamRequired("FleetArn"))
- }
- if s.FleetArn != nil && len(*s.FleetArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAuditStreamArn sets the AuditStreamArn field's value.
- func (s *UpdateAuditStreamConfigurationInput) SetAuditStreamArn(v string) *UpdateAuditStreamConfigurationInput {
- s.AuditStreamArn = &v
- return s
- }
- // SetFleetArn sets the FleetArn field's value.
- func (s *UpdateAuditStreamConfigurationInput) SetFleetArn(v string) *UpdateAuditStreamConfigurationInput {
- s.FleetArn = &v
- return s
- }
- type UpdateAuditStreamConfigurationOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateAuditStreamConfigurationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateAuditStreamConfigurationOutput) GoString() string {
- return s.String()
- }
- type UpdateCompanyNetworkConfigurationInput struct {
- _ struct{} `type:"structure"`
- // The ARN of the fleet.
- //
- // FleetArn is a required field
- FleetArn *string `min:"20" type:"string" required:"true"`
- // The security groups associated with access to the provided subnets.
- //
- // SecurityGroupIds is a required field
- SecurityGroupIds []*string `type:"list" required:"true"`
- // The subnets used for X-ENI connections from Amazon WorkLink rendering containers.
- //
- // SubnetIds is a required field
- SubnetIds []*string `type:"list" required:"true"`
- // The VPC with connectivity to associated websites.
- //
- // VpcId is a required field
- VpcId *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateCompanyNetworkConfigurationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateCompanyNetworkConfigurationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateCompanyNetworkConfigurationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateCompanyNetworkConfigurationInput"}
- if s.FleetArn == nil {
- invalidParams.Add(request.NewErrParamRequired("FleetArn"))
- }
- if s.FleetArn != nil && len(*s.FleetArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
- }
- if s.SecurityGroupIds == nil {
- invalidParams.Add(request.NewErrParamRequired("SecurityGroupIds"))
- }
- if s.SubnetIds == nil {
- invalidParams.Add(request.NewErrParamRequired("SubnetIds"))
- }
- if s.VpcId == nil {
- invalidParams.Add(request.NewErrParamRequired("VpcId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetFleetArn sets the FleetArn field's value.
- func (s *UpdateCompanyNetworkConfigurationInput) SetFleetArn(v string) *UpdateCompanyNetworkConfigurationInput {
- s.FleetArn = &v
- return s
- }
- // SetSecurityGroupIds sets the SecurityGroupIds field's value.
- func (s *UpdateCompanyNetworkConfigurationInput) SetSecurityGroupIds(v []*string) *UpdateCompanyNetworkConfigurationInput {
- s.SecurityGroupIds = v
- return s
- }
- // SetSubnetIds sets the SubnetIds field's value.
- func (s *UpdateCompanyNetworkConfigurationInput) SetSubnetIds(v []*string) *UpdateCompanyNetworkConfigurationInput {
- s.SubnetIds = v
- return s
- }
- // SetVpcId sets the VpcId field's value.
- func (s *UpdateCompanyNetworkConfigurationInput) SetVpcId(v string) *UpdateCompanyNetworkConfigurationInput {
- s.VpcId = &v
- return s
- }
- type UpdateCompanyNetworkConfigurationOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateCompanyNetworkConfigurationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateCompanyNetworkConfigurationOutput) GoString() string {
- return s.String()
- }
- type UpdateDevicePolicyConfigurationInput struct {
- _ struct{} `type:"structure"`
- // The certificate chain, including intermediate certificates and the root certificate
- // authority certificate used to issue device certificates.
- DeviceCaCertificate *string `min:"1" type:"string"`
- // The ARN of the fleet.
- //
- // FleetArn is a required field
- FleetArn *string `min:"20" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateDevicePolicyConfigurationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateDevicePolicyConfigurationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateDevicePolicyConfigurationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateDevicePolicyConfigurationInput"}
- if s.DeviceCaCertificate != nil && len(*s.DeviceCaCertificate) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DeviceCaCertificate", 1))
- }
- if s.FleetArn == nil {
- invalidParams.Add(request.NewErrParamRequired("FleetArn"))
- }
- if s.FleetArn != nil && len(*s.FleetArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDeviceCaCertificate sets the DeviceCaCertificate field's value.
- func (s *UpdateDevicePolicyConfigurationInput) SetDeviceCaCertificate(v string) *UpdateDevicePolicyConfigurationInput {
- s.DeviceCaCertificate = &v
- return s
- }
- // SetFleetArn sets the FleetArn field's value.
- func (s *UpdateDevicePolicyConfigurationInput) SetFleetArn(v string) *UpdateDevicePolicyConfigurationInput {
- s.FleetArn = &v
- return s
- }
- type UpdateDevicePolicyConfigurationOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateDevicePolicyConfigurationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateDevicePolicyConfigurationOutput) GoString() string {
- return s.String()
- }
- type UpdateFleetMetadataInput struct {
- _ struct{} `type:"structure"`
- // The fleet name to display. The existing DisplayName is unset if null is passed.
- DisplayName *string `type:"string"`
- // The ARN of the fleet.
- //
- // FleetArn is a required field
- FleetArn *string `min:"20" type:"string" required:"true"`
- // The option to optimize for better performance by routing traffic through
- // the closest AWS Region to users, which may be outside of your home Region.
- OptimizeForEndUserLocation *bool `type:"boolean"`
- }
- // String returns the string representation
- func (s UpdateFleetMetadataInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateFleetMetadataInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateFleetMetadataInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateFleetMetadataInput"}
- if s.FleetArn == nil {
- invalidParams.Add(request.NewErrParamRequired("FleetArn"))
- }
- if s.FleetArn != nil && len(*s.FleetArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDisplayName sets the DisplayName field's value.
- func (s *UpdateFleetMetadataInput) SetDisplayName(v string) *UpdateFleetMetadataInput {
- s.DisplayName = &v
- return s
- }
- // SetFleetArn sets the FleetArn field's value.
- func (s *UpdateFleetMetadataInput) SetFleetArn(v string) *UpdateFleetMetadataInput {
- s.FleetArn = &v
- return s
- }
- // SetOptimizeForEndUserLocation sets the OptimizeForEndUserLocation field's value.
- func (s *UpdateFleetMetadataInput) SetOptimizeForEndUserLocation(v bool) *UpdateFleetMetadataInput {
- s.OptimizeForEndUserLocation = &v
- return s
- }
- type UpdateFleetMetadataOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateFleetMetadataOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateFleetMetadataOutput) GoString() string {
- return s.String()
- }
- type UpdateIdentityProviderConfigurationInput struct {
- _ struct{} `type:"structure"`
- // The ARN of the fleet.
- //
- // FleetArn is a required field
- FleetArn *string `min:"20" type:"string" required:"true"`
- // The SAML metadata document provided by the customer’s identity provider.
- // The existing IdentityProviderSamlMetadata is unset if null is passed.
- IdentityProviderSamlMetadata *string `min:"1" type:"string"`
- // The type of identity provider.
- //
- // IdentityProviderType is a required field
- IdentityProviderType *string `type:"string" required:"true" enum:"IdentityProviderType"`
- }
- // String returns the string representation
- func (s UpdateIdentityProviderConfigurationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateIdentityProviderConfigurationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateIdentityProviderConfigurationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateIdentityProviderConfigurationInput"}
- if s.FleetArn == nil {
- invalidParams.Add(request.NewErrParamRequired("FleetArn"))
- }
- if s.FleetArn != nil && len(*s.FleetArn) < 20 {
- invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
- }
- if s.IdentityProviderSamlMetadata != nil && len(*s.IdentityProviderSamlMetadata) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("IdentityProviderSamlMetadata", 1))
- }
- if s.IdentityProviderType == nil {
- invalidParams.Add(request.NewErrParamRequired("IdentityProviderType"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetFleetArn sets the FleetArn field's value.
- func (s *UpdateIdentityProviderConfigurationInput) SetFleetArn(v string) *UpdateIdentityProviderConfigurationInput {
- s.FleetArn = &v
- return s
- }
- // SetIdentityProviderSamlMetadata sets the IdentityProviderSamlMetadata field's value.
- func (s *UpdateIdentityProviderConfigurationInput) SetIdentityProviderSamlMetadata(v string) *UpdateIdentityProviderConfigurationInput {
- s.IdentityProviderSamlMetadata = &v
- return s
- }
- // SetIdentityProviderType sets the IdentityProviderType field's value.
- func (s *UpdateIdentityProviderConfigurationInput) SetIdentityProviderType(v string) *UpdateIdentityProviderConfigurationInput {
- s.IdentityProviderType = &v
- return s
- }
- type UpdateIdentityProviderConfigurationOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateIdentityProviderConfigurationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateIdentityProviderConfigurationOutput) GoString() string {
- return s.String()
- }
- // The summary of the certificate authority (CA).
- type WebsiteCaSummary struct {
- _ struct{} `type:"structure"`
- // The time when the CA was added.
- CreatedTime *time.Time `type:"timestamp"`
- // The name to display.
- DisplayName *string `type:"string"`
- // A unique identifier for the CA.
- WebsiteCaId *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s WebsiteCaSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s WebsiteCaSummary) GoString() string {
- return s.String()
- }
- // SetCreatedTime sets the CreatedTime field's value.
- func (s *WebsiteCaSummary) SetCreatedTime(v time.Time) *WebsiteCaSummary {
- s.CreatedTime = &v
- return s
- }
- // SetDisplayName sets the DisplayName field's value.
- func (s *WebsiteCaSummary) SetDisplayName(v string) *WebsiteCaSummary {
- s.DisplayName = &v
- return s
- }
- // SetWebsiteCaId sets the WebsiteCaId field's value.
- func (s *WebsiteCaSummary) SetWebsiteCaId(v string) *WebsiteCaSummary {
- s.WebsiteCaId = &v
- return s
- }
- const (
- // DeviceStatusActive is a DeviceStatus enum value
- DeviceStatusActive = "ACTIVE"
- // DeviceStatusSignedOut is a DeviceStatus enum value
- DeviceStatusSignedOut = "SIGNED_OUT"
- )
- const (
- // FleetStatusCreating is a FleetStatus enum value
- FleetStatusCreating = "CREATING"
- // FleetStatusActive is a FleetStatus enum value
- FleetStatusActive = "ACTIVE"
- // FleetStatusDeleting is a FleetStatus enum value
- FleetStatusDeleting = "DELETING"
- // FleetStatusDeleted is a FleetStatus enum value
- FleetStatusDeleted = "DELETED"
- // FleetStatusFailedToCreate is a FleetStatus enum value
- FleetStatusFailedToCreate = "FAILED_TO_CREATE"
- // FleetStatusFailedToDelete is a FleetStatus enum value
- FleetStatusFailedToDelete = "FAILED_TO_DELETE"
- )
- const (
- // IdentityProviderTypeSaml is a IdentityProviderType enum value
- IdentityProviderTypeSaml = "SAML"
- )
|