api.go 136 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904
  1. // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
  2. package worklink
  3. import (
  4. "time"
  5. "github.com/aws/aws-sdk-go/aws"
  6. "github.com/aws/aws-sdk-go/aws/awsutil"
  7. "github.com/aws/aws-sdk-go/aws/request"
  8. "github.com/aws/aws-sdk-go/private/protocol"
  9. "github.com/aws/aws-sdk-go/private/protocol/restjson"
  10. )
  11. const opAssociateWebsiteCertificateAuthority = "AssociateWebsiteCertificateAuthority"
  12. // AssociateWebsiteCertificateAuthorityRequest generates a "aws/request.Request" representing the
  13. // client's request for the AssociateWebsiteCertificateAuthority operation. The "output" return
  14. // value will be populated with the request's response once the request completes
  15. // successfully.
  16. //
  17. // Use "Send" method on the returned Request to send the API call to the service.
  18. // the "output" return value is not valid until after Send returns without error.
  19. //
  20. // See AssociateWebsiteCertificateAuthority for more information on using the AssociateWebsiteCertificateAuthority
  21. // API call, and error handling.
  22. //
  23. // This method is useful when you want to inject custom logic or configuration
  24. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  25. //
  26. //
  27. // // Example sending a request using the AssociateWebsiteCertificateAuthorityRequest method.
  28. // req, resp := client.AssociateWebsiteCertificateAuthorityRequest(params)
  29. //
  30. // err := req.Send()
  31. // if err == nil { // resp is now filled
  32. // fmt.Println(resp)
  33. // }
  34. //
  35. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/AssociateWebsiteCertificateAuthority
  36. func (c *WorkLink) AssociateWebsiteCertificateAuthorityRequest(input *AssociateWebsiteCertificateAuthorityInput) (req *request.Request, output *AssociateWebsiteCertificateAuthorityOutput) {
  37. op := &request.Operation{
  38. Name: opAssociateWebsiteCertificateAuthority,
  39. HTTPMethod: "POST",
  40. HTTPPath: "/associateWebsiteCertificateAuthority",
  41. }
  42. if input == nil {
  43. input = &AssociateWebsiteCertificateAuthorityInput{}
  44. }
  45. output = &AssociateWebsiteCertificateAuthorityOutput{}
  46. req = c.newRequest(op, input, output)
  47. return
  48. }
  49. // AssociateWebsiteCertificateAuthority API operation for Amazon WorkLink.
  50. //
  51. // Imports the root certificate of a certificate authority (CA) used to obtain
  52. // TLS certificates used by associated websites within the company network.
  53. //
  54. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  55. // with awserr.Error's Code and Message methods to get detailed information about
  56. // the error.
  57. //
  58. // See the AWS API reference guide for Amazon WorkLink's
  59. // API operation AssociateWebsiteCertificateAuthority for usage and error information.
  60. //
  61. // Returned Error Codes:
  62. // * ErrCodeUnauthorizedException "UnauthorizedException"
  63. // You are not authorized to perform this action.
  64. //
  65. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  66. // The service is temporarily unavailable.
  67. //
  68. // * ErrCodeInvalidRequestException "InvalidRequestException"
  69. // The request is not valid.
  70. //
  71. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  72. // The requested resource was not found.
  73. //
  74. // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
  75. // The resource already exists.
  76. //
  77. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  78. // The number of requests exceeds the limit.
  79. //
  80. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/AssociateWebsiteCertificateAuthority
  81. func (c *WorkLink) AssociateWebsiteCertificateAuthority(input *AssociateWebsiteCertificateAuthorityInput) (*AssociateWebsiteCertificateAuthorityOutput, error) {
  82. req, out := c.AssociateWebsiteCertificateAuthorityRequest(input)
  83. return out, req.Send()
  84. }
  85. // AssociateWebsiteCertificateAuthorityWithContext is the same as AssociateWebsiteCertificateAuthority with the addition of
  86. // the ability to pass a context and additional request options.
  87. //
  88. // See AssociateWebsiteCertificateAuthority for details on how to use this API operation.
  89. //
  90. // The context must be non-nil and will be used for request cancellation. If
  91. // the context is nil a panic will occur. In the future the SDK may create
  92. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  93. // for more information on using Contexts.
  94. func (c *WorkLink) AssociateWebsiteCertificateAuthorityWithContext(ctx aws.Context, input *AssociateWebsiteCertificateAuthorityInput, opts ...request.Option) (*AssociateWebsiteCertificateAuthorityOutput, error) {
  95. req, out := c.AssociateWebsiteCertificateAuthorityRequest(input)
  96. req.SetContext(ctx)
  97. req.ApplyOptions(opts...)
  98. return out, req.Send()
  99. }
  100. const opCreateFleet = "CreateFleet"
  101. // CreateFleetRequest generates a "aws/request.Request" representing the
  102. // client's request for the CreateFleet operation. The "output" return
  103. // value will be populated with the request's response once the request completes
  104. // successfully.
  105. //
  106. // Use "Send" method on the returned Request to send the API call to the service.
  107. // the "output" return value is not valid until after Send returns without error.
  108. //
  109. // See CreateFleet for more information on using the CreateFleet
  110. // API call, and error handling.
  111. //
  112. // This method is useful when you want to inject custom logic or configuration
  113. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  114. //
  115. //
  116. // // Example sending a request using the CreateFleetRequest method.
  117. // req, resp := client.CreateFleetRequest(params)
  118. //
  119. // err := req.Send()
  120. // if err == nil { // resp is now filled
  121. // fmt.Println(resp)
  122. // }
  123. //
  124. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/CreateFleet
  125. func (c *WorkLink) CreateFleetRequest(input *CreateFleetInput) (req *request.Request, output *CreateFleetOutput) {
  126. op := &request.Operation{
  127. Name: opCreateFleet,
  128. HTTPMethod: "POST",
  129. HTTPPath: "/createFleet",
  130. }
  131. if input == nil {
  132. input = &CreateFleetInput{}
  133. }
  134. output = &CreateFleetOutput{}
  135. req = c.newRequest(op, input, output)
  136. return
  137. }
  138. // CreateFleet API operation for Amazon WorkLink.
  139. //
  140. // Creates a fleet. A fleet consists of resources and the configuration that
  141. // delivers associated websites to authorized users who download and set up
  142. // the Amazon WorkLink app.
  143. //
  144. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  145. // with awserr.Error's Code and Message methods to get detailed information about
  146. // the error.
  147. //
  148. // See the AWS API reference guide for Amazon WorkLink's
  149. // API operation CreateFleet for usage and error information.
  150. //
  151. // Returned Error Codes:
  152. // * ErrCodeUnauthorizedException "UnauthorizedException"
  153. // You are not authorized to perform this action.
  154. //
  155. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  156. // The service is temporarily unavailable.
  157. //
  158. // * ErrCodeInvalidRequestException "InvalidRequestException"
  159. // The request is not valid.
  160. //
  161. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  162. // The requested resource was not found.
  163. //
  164. // * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
  165. // The resource already exists.
  166. //
  167. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  168. // The number of requests exceeds the limit.
  169. //
  170. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/CreateFleet
  171. func (c *WorkLink) CreateFleet(input *CreateFleetInput) (*CreateFleetOutput, error) {
  172. req, out := c.CreateFleetRequest(input)
  173. return out, req.Send()
  174. }
  175. // CreateFleetWithContext is the same as CreateFleet with the addition of
  176. // the ability to pass a context and additional request options.
  177. //
  178. // See CreateFleet for details on how to use this API operation.
  179. //
  180. // The context must be non-nil and will be used for request cancellation. If
  181. // the context is nil a panic will occur. In the future the SDK may create
  182. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  183. // for more information on using Contexts.
  184. func (c *WorkLink) CreateFleetWithContext(ctx aws.Context, input *CreateFleetInput, opts ...request.Option) (*CreateFleetOutput, error) {
  185. req, out := c.CreateFleetRequest(input)
  186. req.SetContext(ctx)
  187. req.ApplyOptions(opts...)
  188. return out, req.Send()
  189. }
  190. const opDeleteFleet = "DeleteFleet"
  191. // DeleteFleetRequest generates a "aws/request.Request" representing the
  192. // client's request for the DeleteFleet operation. The "output" return
  193. // value will be populated with the request's response once the request completes
  194. // successfully.
  195. //
  196. // Use "Send" method on the returned Request to send the API call to the service.
  197. // the "output" return value is not valid until after Send returns without error.
  198. //
  199. // See DeleteFleet for more information on using the DeleteFleet
  200. // API call, and error handling.
  201. //
  202. // This method is useful when you want to inject custom logic or configuration
  203. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  204. //
  205. //
  206. // // Example sending a request using the DeleteFleetRequest method.
  207. // req, resp := client.DeleteFleetRequest(params)
  208. //
  209. // err := req.Send()
  210. // if err == nil { // resp is now filled
  211. // fmt.Println(resp)
  212. // }
  213. //
  214. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DeleteFleet
  215. func (c *WorkLink) DeleteFleetRequest(input *DeleteFleetInput) (req *request.Request, output *DeleteFleetOutput) {
  216. op := &request.Operation{
  217. Name: opDeleteFleet,
  218. HTTPMethod: "POST",
  219. HTTPPath: "/deleteFleet",
  220. }
  221. if input == nil {
  222. input = &DeleteFleetInput{}
  223. }
  224. output = &DeleteFleetOutput{}
  225. req = c.newRequest(op, input, output)
  226. req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  227. return
  228. }
  229. // DeleteFleet API operation for Amazon WorkLink.
  230. //
  231. // Deletes a fleet. Prevents users from accessing previously associated websites.
  232. //
  233. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  234. // with awserr.Error's Code and Message methods to get detailed information about
  235. // the error.
  236. //
  237. // See the AWS API reference guide for Amazon WorkLink's
  238. // API operation DeleteFleet for usage and error information.
  239. //
  240. // Returned Error Codes:
  241. // * ErrCodeUnauthorizedException "UnauthorizedException"
  242. // You are not authorized to perform this action.
  243. //
  244. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  245. // The service is temporarily unavailable.
  246. //
  247. // * ErrCodeInvalidRequestException "InvalidRequestException"
  248. // The request is not valid.
  249. //
  250. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  251. // The requested resource was not found.
  252. //
  253. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  254. // The number of requests exceeds the limit.
  255. //
  256. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DeleteFleet
  257. func (c *WorkLink) DeleteFleet(input *DeleteFleetInput) (*DeleteFleetOutput, error) {
  258. req, out := c.DeleteFleetRequest(input)
  259. return out, req.Send()
  260. }
  261. // DeleteFleetWithContext is the same as DeleteFleet with the addition of
  262. // the ability to pass a context and additional request options.
  263. //
  264. // See DeleteFleet for details on how to use this API operation.
  265. //
  266. // The context must be non-nil and will be used for request cancellation. If
  267. // the context is nil a panic will occur. In the future the SDK may create
  268. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  269. // for more information on using Contexts.
  270. func (c *WorkLink) DeleteFleetWithContext(ctx aws.Context, input *DeleteFleetInput, opts ...request.Option) (*DeleteFleetOutput, error) {
  271. req, out := c.DeleteFleetRequest(input)
  272. req.SetContext(ctx)
  273. req.ApplyOptions(opts...)
  274. return out, req.Send()
  275. }
  276. const opDescribeAuditStreamConfiguration = "DescribeAuditStreamConfiguration"
  277. // DescribeAuditStreamConfigurationRequest generates a "aws/request.Request" representing the
  278. // client's request for the DescribeAuditStreamConfiguration operation. The "output" return
  279. // value will be populated with the request's response once the request completes
  280. // successfully.
  281. //
  282. // Use "Send" method on the returned Request to send the API call to the service.
  283. // the "output" return value is not valid until after Send returns without error.
  284. //
  285. // See DescribeAuditStreamConfiguration for more information on using the DescribeAuditStreamConfiguration
  286. // API call, and error handling.
  287. //
  288. // This method is useful when you want to inject custom logic or configuration
  289. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  290. //
  291. //
  292. // // Example sending a request using the DescribeAuditStreamConfigurationRequest method.
  293. // req, resp := client.DescribeAuditStreamConfigurationRequest(params)
  294. //
  295. // err := req.Send()
  296. // if err == nil { // resp is now filled
  297. // fmt.Println(resp)
  298. // }
  299. //
  300. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeAuditStreamConfiguration
  301. func (c *WorkLink) DescribeAuditStreamConfigurationRequest(input *DescribeAuditStreamConfigurationInput) (req *request.Request, output *DescribeAuditStreamConfigurationOutput) {
  302. op := &request.Operation{
  303. Name: opDescribeAuditStreamConfiguration,
  304. HTTPMethod: "POST",
  305. HTTPPath: "/describeAuditStreamConfiguration",
  306. }
  307. if input == nil {
  308. input = &DescribeAuditStreamConfigurationInput{}
  309. }
  310. output = &DescribeAuditStreamConfigurationOutput{}
  311. req = c.newRequest(op, input, output)
  312. return
  313. }
  314. // DescribeAuditStreamConfiguration API operation for Amazon WorkLink.
  315. //
  316. // Describes the configuration for delivering audit streams to the customer
  317. // account.
  318. //
  319. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  320. // with awserr.Error's Code and Message methods to get detailed information about
  321. // the error.
  322. //
  323. // See the AWS API reference guide for Amazon WorkLink's
  324. // API operation DescribeAuditStreamConfiguration for usage and error information.
  325. //
  326. // Returned Error Codes:
  327. // * ErrCodeUnauthorizedException "UnauthorizedException"
  328. // You are not authorized to perform this action.
  329. //
  330. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  331. // The service is temporarily unavailable.
  332. //
  333. // * ErrCodeInvalidRequestException "InvalidRequestException"
  334. // The request is not valid.
  335. //
  336. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  337. // The requested resource was not found.
  338. //
  339. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  340. // The number of requests exceeds the limit.
  341. //
  342. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeAuditStreamConfiguration
  343. func (c *WorkLink) DescribeAuditStreamConfiguration(input *DescribeAuditStreamConfigurationInput) (*DescribeAuditStreamConfigurationOutput, error) {
  344. req, out := c.DescribeAuditStreamConfigurationRequest(input)
  345. return out, req.Send()
  346. }
  347. // DescribeAuditStreamConfigurationWithContext is the same as DescribeAuditStreamConfiguration with the addition of
  348. // the ability to pass a context and additional request options.
  349. //
  350. // See DescribeAuditStreamConfiguration for details on how to use this API operation.
  351. //
  352. // The context must be non-nil and will be used for request cancellation. If
  353. // the context is nil a panic will occur. In the future the SDK may create
  354. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  355. // for more information on using Contexts.
  356. func (c *WorkLink) DescribeAuditStreamConfigurationWithContext(ctx aws.Context, input *DescribeAuditStreamConfigurationInput, opts ...request.Option) (*DescribeAuditStreamConfigurationOutput, error) {
  357. req, out := c.DescribeAuditStreamConfigurationRequest(input)
  358. req.SetContext(ctx)
  359. req.ApplyOptions(opts...)
  360. return out, req.Send()
  361. }
  362. const opDescribeCompanyNetworkConfiguration = "DescribeCompanyNetworkConfiguration"
  363. // DescribeCompanyNetworkConfigurationRequest generates a "aws/request.Request" representing the
  364. // client's request for the DescribeCompanyNetworkConfiguration operation. The "output" return
  365. // value will be populated with the request's response once the request completes
  366. // successfully.
  367. //
  368. // Use "Send" method on the returned Request to send the API call to the service.
  369. // the "output" return value is not valid until after Send returns without error.
  370. //
  371. // See DescribeCompanyNetworkConfiguration for more information on using the DescribeCompanyNetworkConfiguration
  372. // API call, and error handling.
  373. //
  374. // This method is useful when you want to inject custom logic or configuration
  375. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  376. //
  377. //
  378. // // Example sending a request using the DescribeCompanyNetworkConfigurationRequest method.
  379. // req, resp := client.DescribeCompanyNetworkConfigurationRequest(params)
  380. //
  381. // err := req.Send()
  382. // if err == nil { // resp is now filled
  383. // fmt.Println(resp)
  384. // }
  385. //
  386. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeCompanyNetworkConfiguration
  387. func (c *WorkLink) DescribeCompanyNetworkConfigurationRequest(input *DescribeCompanyNetworkConfigurationInput) (req *request.Request, output *DescribeCompanyNetworkConfigurationOutput) {
  388. op := &request.Operation{
  389. Name: opDescribeCompanyNetworkConfiguration,
  390. HTTPMethod: "POST",
  391. HTTPPath: "/describeCompanyNetworkConfiguration",
  392. }
  393. if input == nil {
  394. input = &DescribeCompanyNetworkConfigurationInput{}
  395. }
  396. output = &DescribeCompanyNetworkConfigurationOutput{}
  397. req = c.newRequest(op, input, output)
  398. return
  399. }
  400. // DescribeCompanyNetworkConfiguration API operation for Amazon WorkLink.
  401. //
  402. // Describes the networking configuration to access the internal websites associated
  403. // with the specified fleet.
  404. //
  405. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  406. // with awserr.Error's Code and Message methods to get detailed information about
  407. // the error.
  408. //
  409. // See the AWS API reference guide for Amazon WorkLink's
  410. // API operation DescribeCompanyNetworkConfiguration for usage and error information.
  411. //
  412. // Returned Error Codes:
  413. // * ErrCodeUnauthorizedException "UnauthorizedException"
  414. // You are not authorized to perform this action.
  415. //
  416. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  417. // The service is temporarily unavailable.
  418. //
  419. // * ErrCodeInvalidRequestException "InvalidRequestException"
  420. // The request is not valid.
  421. //
  422. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  423. // The requested resource was not found.
  424. //
  425. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  426. // The number of requests exceeds the limit.
  427. //
  428. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeCompanyNetworkConfiguration
  429. func (c *WorkLink) DescribeCompanyNetworkConfiguration(input *DescribeCompanyNetworkConfigurationInput) (*DescribeCompanyNetworkConfigurationOutput, error) {
  430. req, out := c.DescribeCompanyNetworkConfigurationRequest(input)
  431. return out, req.Send()
  432. }
  433. // DescribeCompanyNetworkConfigurationWithContext is the same as DescribeCompanyNetworkConfiguration with the addition of
  434. // the ability to pass a context and additional request options.
  435. //
  436. // See DescribeCompanyNetworkConfiguration for details on how to use this API operation.
  437. //
  438. // The context must be non-nil and will be used for request cancellation. If
  439. // the context is nil a panic will occur. In the future the SDK may create
  440. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  441. // for more information on using Contexts.
  442. func (c *WorkLink) DescribeCompanyNetworkConfigurationWithContext(ctx aws.Context, input *DescribeCompanyNetworkConfigurationInput, opts ...request.Option) (*DescribeCompanyNetworkConfigurationOutput, error) {
  443. req, out := c.DescribeCompanyNetworkConfigurationRequest(input)
  444. req.SetContext(ctx)
  445. req.ApplyOptions(opts...)
  446. return out, req.Send()
  447. }
  448. const opDescribeDevice = "DescribeDevice"
  449. // DescribeDeviceRequest generates a "aws/request.Request" representing the
  450. // client's request for the DescribeDevice operation. The "output" return
  451. // value will be populated with the request's response once the request completes
  452. // successfully.
  453. //
  454. // Use "Send" method on the returned Request to send the API call to the service.
  455. // the "output" return value is not valid until after Send returns without error.
  456. //
  457. // See DescribeDevice for more information on using the DescribeDevice
  458. // API call, and error handling.
  459. //
  460. // This method is useful when you want to inject custom logic or configuration
  461. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  462. //
  463. //
  464. // // Example sending a request using the DescribeDeviceRequest method.
  465. // req, resp := client.DescribeDeviceRequest(params)
  466. //
  467. // err := req.Send()
  468. // if err == nil { // resp is now filled
  469. // fmt.Println(resp)
  470. // }
  471. //
  472. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeDevice
  473. func (c *WorkLink) DescribeDeviceRequest(input *DescribeDeviceInput) (req *request.Request, output *DescribeDeviceOutput) {
  474. op := &request.Operation{
  475. Name: opDescribeDevice,
  476. HTTPMethod: "POST",
  477. HTTPPath: "/describeDevice",
  478. }
  479. if input == nil {
  480. input = &DescribeDeviceInput{}
  481. }
  482. output = &DescribeDeviceOutput{}
  483. req = c.newRequest(op, input, output)
  484. return
  485. }
  486. // DescribeDevice API operation for Amazon WorkLink.
  487. //
  488. // Provides information about a user's device.
  489. //
  490. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  491. // with awserr.Error's Code and Message methods to get detailed information about
  492. // the error.
  493. //
  494. // See the AWS API reference guide for Amazon WorkLink's
  495. // API operation DescribeDevice for usage and error information.
  496. //
  497. // Returned Error Codes:
  498. // * ErrCodeUnauthorizedException "UnauthorizedException"
  499. // You are not authorized to perform this action.
  500. //
  501. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  502. // The service is temporarily unavailable.
  503. //
  504. // * ErrCodeInvalidRequestException "InvalidRequestException"
  505. // The request is not valid.
  506. //
  507. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  508. // The requested resource was not found.
  509. //
  510. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  511. // The number of requests exceeds the limit.
  512. //
  513. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeDevice
  514. func (c *WorkLink) DescribeDevice(input *DescribeDeviceInput) (*DescribeDeviceOutput, error) {
  515. req, out := c.DescribeDeviceRequest(input)
  516. return out, req.Send()
  517. }
  518. // DescribeDeviceWithContext is the same as DescribeDevice with the addition of
  519. // the ability to pass a context and additional request options.
  520. //
  521. // See DescribeDevice for details on how to use this API operation.
  522. //
  523. // The context must be non-nil and will be used for request cancellation. If
  524. // the context is nil a panic will occur. In the future the SDK may create
  525. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  526. // for more information on using Contexts.
  527. func (c *WorkLink) DescribeDeviceWithContext(ctx aws.Context, input *DescribeDeviceInput, opts ...request.Option) (*DescribeDeviceOutput, error) {
  528. req, out := c.DescribeDeviceRequest(input)
  529. req.SetContext(ctx)
  530. req.ApplyOptions(opts...)
  531. return out, req.Send()
  532. }
  533. const opDescribeDevicePolicyConfiguration = "DescribeDevicePolicyConfiguration"
  534. // DescribeDevicePolicyConfigurationRequest generates a "aws/request.Request" representing the
  535. // client's request for the DescribeDevicePolicyConfiguration operation. The "output" return
  536. // value will be populated with the request's response once the request completes
  537. // successfully.
  538. //
  539. // Use "Send" method on the returned Request to send the API call to the service.
  540. // the "output" return value is not valid until after Send returns without error.
  541. //
  542. // See DescribeDevicePolicyConfiguration for more information on using the DescribeDevicePolicyConfiguration
  543. // API call, and error handling.
  544. //
  545. // This method is useful when you want to inject custom logic or configuration
  546. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  547. //
  548. //
  549. // // Example sending a request using the DescribeDevicePolicyConfigurationRequest method.
  550. // req, resp := client.DescribeDevicePolicyConfigurationRequest(params)
  551. //
  552. // err := req.Send()
  553. // if err == nil { // resp is now filled
  554. // fmt.Println(resp)
  555. // }
  556. //
  557. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeDevicePolicyConfiguration
  558. func (c *WorkLink) DescribeDevicePolicyConfigurationRequest(input *DescribeDevicePolicyConfigurationInput) (req *request.Request, output *DescribeDevicePolicyConfigurationOutput) {
  559. op := &request.Operation{
  560. Name: opDescribeDevicePolicyConfiguration,
  561. HTTPMethod: "POST",
  562. HTTPPath: "/describeDevicePolicyConfiguration",
  563. }
  564. if input == nil {
  565. input = &DescribeDevicePolicyConfigurationInput{}
  566. }
  567. output = &DescribeDevicePolicyConfigurationOutput{}
  568. req = c.newRequest(op, input, output)
  569. return
  570. }
  571. // DescribeDevicePolicyConfiguration API operation for Amazon WorkLink.
  572. //
  573. // Describes the device policy configuration for the specified fleet.
  574. //
  575. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  576. // with awserr.Error's Code and Message methods to get detailed information about
  577. // the error.
  578. //
  579. // See the AWS API reference guide for Amazon WorkLink's
  580. // API operation DescribeDevicePolicyConfiguration for usage and error information.
  581. //
  582. // Returned Error Codes:
  583. // * ErrCodeUnauthorizedException "UnauthorizedException"
  584. // You are not authorized to perform this action.
  585. //
  586. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  587. // The service is temporarily unavailable.
  588. //
  589. // * ErrCodeInvalidRequestException "InvalidRequestException"
  590. // The request is not valid.
  591. //
  592. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  593. // The requested resource was not found.
  594. //
  595. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  596. // The number of requests exceeds the limit.
  597. //
  598. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeDevicePolicyConfiguration
  599. func (c *WorkLink) DescribeDevicePolicyConfiguration(input *DescribeDevicePolicyConfigurationInput) (*DescribeDevicePolicyConfigurationOutput, error) {
  600. req, out := c.DescribeDevicePolicyConfigurationRequest(input)
  601. return out, req.Send()
  602. }
  603. // DescribeDevicePolicyConfigurationWithContext is the same as DescribeDevicePolicyConfiguration with the addition of
  604. // the ability to pass a context and additional request options.
  605. //
  606. // See DescribeDevicePolicyConfiguration for details on how to use this API operation.
  607. //
  608. // The context must be non-nil and will be used for request cancellation. If
  609. // the context is nil a panic will occur. In the future the SDK may create
  610. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  611. // for more information on using Contexts.
  612. func (c *WorkLink) DescribeDevicePolicyConfigurationWithContext(ctx aws.Context, input *DescribeDevicePolicyConfigurationInput, opts ...request.Option) (*DescribeDevicePolicyConfigurationOutput, error) {
  613. req, out := c.DescribeDevicePolicyConfigurationRequest(input)
  614. req.SetContext(ctx)
  615. req.ApplyOptions(opts...)
  616. return out, req.Send()
  617. }
  618. const opDescribeFleetMetadata = "DescribeFleetMetadata"
  619. // DescribeFleetMetadataRequest generates a "aws/request.Request" representing the
  620. // client's request for the DescribeFleetMetadata operation. The "output" return
  621. // value will be populated with the request's response once the request completes
  622. // successfully.
  623. //
  624. // Use "Send" method on the returned Request to send the API call to the service.
  625. // the "output" return value is not valid until after Send returns without error.
  626. //
  627. // See DescribeFleetMetadata for more information on using the DescribeFleetMetadata
  628. // API call, and error handling.
  629. //
  630. // This method is useful when you want to inject custom logic or configuration
  631. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  632. //
  633. //
  634. // // Example sending a request using the DescribeFleetMetadataRequest method.
  635. // req, resp := client.DescribeFleetMetadataRequest(params)
  636. //
  637. // err := req.Send()
  638. // if err == nil { // resp is now filled
  639. // fmt.Println(resp)
  640. // }
  641. //
  642. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeFleetMetadata
  643. func (c *WorkLink) DescribeFleetMetadataRequest(input *DescribeFleetMetadataInput) (req *request.Request, output *DescribeFleetMetadataOutput) {
  644. op := &request.Operation{
  645. Name: opDescribeFleetMetadata,
  646. HTTPMethod: "POST",
  647. HTTPPath: "/describeFleetMetadata",
  648. }
  649. if input == nil {
  650. input = &DescribeFleetMetadataInput{}
  651. }
  652. output = &DescribeFleetMetadataOutput{}
  653. req = c.newRequest(op, input, output)
  654. return
  655. }
  656. // DescribeFleetMetadata API operation for Amazon WorkLink.
  657. //
  658. // Provides basic information for the specified fleet, excluding identity provider,
  659. // networking, and device configuration details.
  660. //
  661. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  662. // with awserr.Error's Code and Message methods to get detailed information about
  663. // the error.
  664. //
  665. // See the AWS API reference guide for Amazon WorkLink's
  666. // API operation DescribeFleetMetadata for usage and error information.
  667. //
  668. // Returned Error Codes:
  669. // * ErrCodeUnauthorizedException "UnauthorizedException"
  670. // You are not authorized to perform this action.
  671. //
  672. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  673. // The service is temporarily unavailable.
  674. //
  675. // * ErrCodeInvalidRequestException "InvalidRequestException"
  676. // The request is not valid.
  677. //
  678. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  679. // The requested resource was not found.
  680. //
  681. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  682. // The number of requests exceeds the limit.
  683. //
  684. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeFleetMetadata
  685. func (c *WorkLink) DescribeFleetMetadata(input *DescribeFleetMetadataInput) (*DescribeFleetMetadataOutput, error) {
  686. req, out := c.DescribeFleetMetadataRequest(input)
  687. return out, req.Send()
  688. }
  689. // DescribeFleetMetadataWithContext is the same as DescribeFleetMetadata with the addition of
  690. // the ability to pass a context and additional request options.
  691. //
  692. // See DescribeFleetMetadata for details on how to use this API operation.
  693. //
  694. // The context must be non-nil and will be used for request cancellation. If
  695. // the context is nil a panic will occur. In the future the SDK may create
  696. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  697. // for more information on using Contexts.
  698. func (c *WorkLink) DescribeFleetMetadataWithContext(ctx aws.Context, input *DescribeFleetMetadataInput, opts ...request.Option) (*DescribeFleetMetadataOutput, error) {
  699. req, out := c.DescribeFleetMetadataRequest(input)
  700. req.SetContext(ctx)
  701. req.ApplyOptions(opts...)
  702. return out, req.Send()
  703. }
  704. const opDescribeIdentityProviderConfiguration = "DescribeIdentityProviderConfiguration"
  705. // DescribeIdentityProviderConfigurationRequest generates a "aws/request.Request" representing the
  706. // client's request for the DescribeIdentityProviderConfiguration operation. The "output" return
  707. // value will be populated with the request's response once the request completes
  708. // successfully.
  709. //
  710. // Use "Send" method on the returned Request to send the API call to the service.
  711. // the "output" return value is not valid until after Send returns without error.
  712. //
  713. // See DescribeIdentityProviderConfiguration for more information on using the DescribeIdentityProviderConfiguration
  714. // API call, and error handling.
  715. //
  716. // This method is useful when you want to inject custom logic or configuration
  717. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  718. //
  719. //
  720. // // Example sending a request using the DescribeIdentityProviderConfigurationRequest method.
  721. // req, resp := client.DescribeIdentityProviderConfigurationRequest(params)
  722. //
  723. // err := req.Send()
  724. // if err == nil { // resp is now filled
  725. // fmt.Println(resp)
  726. // }
  727. //
  728. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeIdentityProviderConfiguration
  729. func (c *WorkLink) DescribeIdentityProviderConfigurationRequest(input *DescribeIdentityProviderConfigurationInput) (req *request.Request, output *DescribeIdentityProviderConfigurationOutput) {
  730. op := &request.Operation{
  731. Name: opDescribeIdentityProviderConfiguration,
  732. HTTPMethod: "POST",
  733. HTTPPath: "/describeIdentityProviderConfiguration",
  734. }
  735. if input == nil {
  736. input = &DescribeIdentityProviderConfigurationInput{}
  737. }
  738. output = &DescribeIdentityProviderConfigurationOutput{}
  739. req = c.newRequest(op, input, output)
  740. return
  741. }
  742. // DescribeIdentityProviderConfiguration API operation for Amazon WorkLink.
  743. //
  744. // Describes the identity provider configuration of the specified fleet.
  745. //
  746. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  747. // with awserr.Error's Code and Message methods to get detailed information about
  748. // the error.
  749. //
  750. // See the AWS API reference guide for Amazon WorkLink's
  751. // API operation DescribeIdentityProviderConfiguration for usage and error information.
  752. //
  753. // Returned Error Codes:
  754. // * ErrCodeUnauthorizedException "UnauthorizedException"
  755. // You are not authorized to perform this action.
  756. //
  757. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  758. // The service is temporarily unavailable.
  759. //
  760. // * ErrCodeInvalidRequestException "InvalidRequestException"
  761. // The request is not valid.
  762. //
  763. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  764. // The requested resource was not found.
  765. //
  766. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  767. // The number of requests exceeds the limit.
  768. //
  769. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeIdentityProviderConfiguration
  770. func (c *WorkLink) DescribeIdentityProviderConfiguration(input *DescribeIdentityProviderConfigurationInput) (*DescribeIdentityProviderConfigurationOutput, error) {
  771. req, out := c.DescribeIdentityProviderConfigurationRequest(input)
  772. return out, req.Send()
  773. }
  774. // DescribeIdentityProviderConfigurationWithContext is the same as DescribeIdentityProviderConfiguration with the addition of
  775. // the ability to pass a context and additional request options.
  776. //
  777. // See DescribeIdentityProviderConfiguration for details on how to use this API operation.
  778. //
  779. // The context must be non-nil and will be used for request cancellation. If
  780. // the context is nil a panic will occur. In the future the SDK may create
  781. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  782. // for more information on using Contexts.
  783. func (c *WorkLink) DescribeIdentityProviderConfigurationWithContext(ctx aws.Context, input *DescribeIdentityProviderConfigurationInput, opts ...request.Option) (*DescribeIdentityProviderConfigurationOutput, error) {
  784. req, out := c.DescribeIdentityProviderConfigurationRequest(input)
  785. req.SetContext(ctx)
  786. req.ApplyOptions(opts...)
  787. return out, req.Send()
  788. }
  789. const opDescribeWebsiteCertificateAuthority = "DescribeWebsiteCertificateAuthority"
  790. // DescribeWebsiteCertificateAuthorityRequest generates a "aws/request.Request" representing the
  791. // client's request for the DescribeWebsiteCertificateAuthority operation. The "output" return
  792. // value will be populated with the request's response once the request completes
  793. // successfully.
  794. //
  795. // Use "Send" method on the returned Request to send the API call to the service.
  796. // the "output" return value is not valid until after Send returns without error.
  797. //
  798. // See DescribeWebsiteCertificateAuthority for more information on using the DescribeWebsiteCertificateAuthority
  799. // API call, and error handling.
  800. //
  801. // This method is useful when you want to inject custom logic or configuration
  802. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  803. //
  804. //
  805. // // Example sending a request using the DescribeWebsiteCertificateAuthorityRequest method.
  806. // req, resp := client.DescribeWebsiteCertificateAuthorityRequest(params)
  807. //
  808. // err := req.Send()
  809. // if err == nil { // resp is now filled
  810. // fmt.Println(resp)
  811. // }
  812. //
  813. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeWebsiteCertificateAuthority
  814. func (c *WorkLink) DescribeWebsiteCertificateAuthorityRequest(input *DescribeWebsiteCertificateAuthorityInput) (req *request.Request, output *DescribeWebsiteCertificateAuthorityOutput) {
  815. op := &request.Operation{
  816. Name: opDescribeWebsiteCertificateAuthority,
  817. HTTPMethod: "POST",
  818. HTTPPath: "/describeWebsiteCertificateAuthority",
  819. }
  820. if input == nil {
  821. input = &DescribeWebsiteCertificateAuthorityInput{}
  822. }
  823. output = &DescribeWebsiteCertificateAuthorityOutput{}
  824. req = c.newRequest(op, input, output)
  825. return
  826. }
  827. // DescribeWebsiteCertificateAuthority API operation for Amazon WorkLink.
  828. //
  829. // Provides information about the certificate authority.
  830. //
  831. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  832. // with awserr.Error's Code and Message methods to get detailed information about
  833. // the error.
  834. //
  835. // See the AWS API reference guide for Amazon WorkLink's
  836. // API operation DescribeWebsiteCertificateAuthority for usage and error information.
  837. //
  838. // Returned Error Codes:
  839. // * ErrCodeUnauthorizedException "UnauthorizedException"
  840. // You are not authorized to perform this action.
  841. //
  842. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  843. // The service is temporarily unavailable.
  844. //
  845. // * ErrCodeInvalidRequestException "InvalidRequestException"
  846. // The request is not valid.
  847. //
  848. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  849. // The requested resource was not found.
  850. //
  851. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  852. // The number of requests exceeds the limit.
  853. //
  854. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeWebsiteCertificateAuthority
  855. func (c *WorkLink) DescribeWebsiteCertificateAuthority(input *DescribeWebsiteCertificateAuthorityInput) (*DescribeWebsiteCertificateAuthorityOutput, error) {
  856. req, out := c.DescribeWebsiteCertificateAuthorityRequest(input)
  857. return out, req.Send()
  858. }
  859. // DescribeWebsiteCertificateAuthorityWithContext is the same as DescribeWebsiteCertificateAuthority with the addition of
  860. // the ability to pass a context and additional request options.
  861. //
  862. // See DescribeWebsiteCertificateAuthority for details on how to use this API operation.
  863. //
  864. // The context must be non-nil and will be used for request cancellation. If
  865. // the context is nil a panic will occur. In the future the SDK may create
  866. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  867. // for more information on using Contexts.
  868. func (c *WorkLink) DescribeWebsiteCertificateAuthorityWithContext(ctx aws.Context, input *DescribeWebsiteCertificateAuthorityInput, opts ...request.Option) (*DescribeWebsiteCertificateAuthorityOutput, error) {
  869. req, out := c.DescribeWebsiteCertificateAuthorityRequest(input)
  870. req.SetContext(ctx)
  871. req.ApplyOptions(opts...)
  872. return out, req.Send()
  873. }
  874. const opDisassociateWebsiteCertificateAuthority = "DisassociateWebsiteCertificateAuthority"
  875. // DisassociateWebsiteCertificateAuthorityRequest generates a "aws/request.Request" representing the
  876. // client's request for the DisassociateWebsiteCertificateAuthority operation. The "output" return
  877. // value will be populated with the request's response once the request completes
  878. // successfully.
  879. //
  880. // Use "Send" method on the returned Request to send the API call to the service.
  881. // the "output" return value is not valid until after Send returns without error.
  882. //
  883. // See DisassociateWebsiteCertificateAuthority for more information on using the DisassociateWebsiteCertificateAuthority
  884. // API call, and error handling.
  885. //
  886. // This method is useful when you want to inject custom logic or configuration
  887. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  888. //
  889. //
  890. // // Example sending a request using the DisassociateWebsiteCertificateAuthorityRequest method.
  891. // req, resp := client.DisassociateWebsiteCertificateAuthorityRequest(params)
  892. //
  893. // err := req.Send()
  894. // if err == nil { // resp is now filled
  895. // fmt.Println(resp)
  896. // }
  897. //
  898. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DisassociateWebsiteCertificateAuthority
  899. func (c *WorkLink) DisassociateWebsiteCertificateAuthorityRequest(input *DisassociateWebsiteCertificateAuthorityInput) (req *request.Request, output *DisassociateWebsiteCertificateAuthorityOutput) {
  900. op := &request.Operation{
  901. Name: opDisassociateWebsiteCertificateAuthority,
  902. HTTPMethod: "POST",
  903. HTTPPath: "/disassociateWebsiteCertificateAuthority",
  904. }
  905. if input == nil {
  906. input = &DisassociateWebsiteCertificateAuthorityInput{}
  907. }
  908. output = &DisassociateWebsiteCertificateAuthorityOutput{}
  909. req = c.newRequest(op, input, output)
  910. req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  911. return
  912. }
  913. // DisassociateWebsiteCertificateAuthority API operation for Amazon WorkLink.
  914. //
  915. // Removes a certificate authority (CA).
  916. //
  917. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  918. // with awserr.Error's Code and Message methods to get detailed information about
  919. // the error.
  920. //
  921. // See the AWS API reference guide for Amazon WorkLink's
  922. // API operation DisassociateWebsiteCertificateAuthority for usage and error information.
  923. //
  924. // Returned Error Codes:
  925. // * ErrCodeUnauthorizedException "UnauthorizedException"
  926. // You are not authorized to perform this action.
  927. //
  928. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  929. // The service is temporarily unavailable.
  930. //
  931. // * ErrCodeInvalidRequestException "InvalidRequestException"
  932. // The request is not valid.
  933. //
  934. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  935. // The requested resource was not found.
  936. //
  937. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  938. // The number of requests exceeds the limit.
  939. //
  940. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DisassociateWebsiteCertificateAuthority
  941. func (c *WorkLink) DisassociateWebsiteCertificateAuthority(input *DisassociateWebsiteCertificateAuthorityInput) (*DisassociateWebsiteCertificateAuthorityOutput, error) {
  942. req, out := c.DisassociateWebsiteCertificateAuthorityRequest(input)
  943. return out, req.Send()
  944. }
  945. // DisassociateWebsiteCertificateAuthorityWithContext is the same as DisassociateWebsiteCertificateAuthority with the addition of
  946. // the ability to pass a context and additional request options.
  947. //
  948. // See DisassociateWebsiteCertificateAuthority for details on how to use this API operation.
  949. //
  950. // The context must be non-nil and will be used for request cancellation. If
  951. // the context is nil a panic will occur. In the future the SDK may create
  952. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  953. // for more information on using Contexts.
  954. func (c *WorkLink) DisassociateWebsiteCertificateAuthorityWithContext(ctx aws.Context, input *DisassociateWebsiteCertificateAuthorityInput, opts ...request.Option) (*DisassociateWebsiteCertificateAuthorityOutput, error) {
  955. req, out := c.DisassociateWebsiteCertificateAuthorityRequest(input)
  956. req.SetContext(ctx)
  957. req.ApplyOptions(opts...)
  958. return out, req.Send()
  959. }
  960. const opListDevices = "ListDevices"
  961. // ListDevicesRequest generates a "aws/request.Request" representing the
  962. // client's request for the ListDevices operation. The "output" return
  963. // value will be populated with the request's response once the request completes
  964. // successfully.
  965. //
  966. // Use "Send" method on the returned Request to send the API call to the service.
  967. // the "output" return value is not valid until after Send returns without error.
  968. //
  969. // See ListDevices for more information on using the ListDevices
  970. // API call, and error handling.
  971. //
  972. // This method is useful when you want to inject custom logic or configuration
  973. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  974. //
  975. //
  976. // // Example sending a request using the ListDevicesRequest method.
  977. // req, resp := client.ListDevicesRequest(params)
  978. //
  979. // err := req.Send()
  980. // if err == nil { // resp is now filled
  981. // fmt.Println(resp)
  982. // }
  983. //
  984. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/ListDevices
  985. func (c *WorkLink) ListDevicesRequest(input *ListDevicesInput) (req *request.Request, output *ListDevicesOutput) {
  986. op := &request.Operation{
  987. Name: opListDevices,
  988. HTTPMethod: "POST",
  989. HTTPPath: "/listDevices",
  990. Paginator: &request.Paginator{
  991. InputTokens: []string{"NextToken"},
  992. OutputTokens: []string{"NextToken"},
  993. LimitToken: "MaxResults",
  994. TruncationToken: "",
  995. },
  996. }
  997. if input == nil {
  998. input = &ListDevicesInput{}
  999. }
  1000. output = &ListDevicesOutput{}
  1001. req = c.newRequest(op, input, output)
  1002. return
  1003. }
  1004. // ListDevices API operation for Amazon WorkLink.
  1005. //
  1006. // Retrieves a list of devices registered with the specified fleet.
  1007. //
  1008. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1009. // with awserr.Error's Code and Message methods to get detailed information about
  1010. // the error.
  1011. //
  1012. // See the AWS API reference guide for Amazon WorkLink's
  1013. // API operation ListDevices for usage and error information.
  1014. //
  1015. // Returned Error Codes:
  1016. // * ErrCodeUnauthorizedException "UnauthorizedException"
  1017. // You are not authorized to perform this action.
  1018. //
  1019. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  1020. // The service is temporarily unavailable.
  1021. //
  1022. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1023. // The request is not valid.
  1024. //
  1025. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1026. // The requested resource was not found.
  1027. //
  1028. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  1029. // The number of requests exceeds the limit.
  1030. //
  1031. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/ListDevices
  1032. func (c *WorkLink) ListDevices(input *ListDevicesInput) (*ListDevicesOutput, error) {
  1033. req, out := c.ListDevicesRequest(input)
  1034. return out, req.Send()
  1035. }
  1036. // ListDevicesWithContext is the same as ListDevices with the addition of
  1037. // the ability to pass a context and additional request options.
  1038. //
  1039. // See ListDevices for details on how to use this API operation.
  1040. //
  1041. // The context must be non-nil and will be used for request cancellation. If
  1042. // the context is nil a panic will occur. In the future the SDK may create
  1043. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1044. // for more information on using Contexts.
  1045. func (c *WorkLink) ListDevicesWithContext(ctx aws.Context, input *ListDevicesInput, opts ...request.Option) (*ListDevicesOutput, error) {
  1046. req, out := c.ListDevicesRequest(input)
  1047. req.SetContext(ctx)
  1048. req.ApplyOptions(opts...)
  1049. return out, req.Send()
  1050. }
  1051. // ListDevicesPages iterates over the pages of a ListDevices operation,
  1052. // calling the "fn" function with the response data for each page. To stop
  1053. // iterating, return false from the fn function.
  1054. //
  1055. // See ListDevices method for more information on how to use this operation.
  1056. //
  1057. // Note: This operation can generate multiple requests to a service.
  1058. //
  1059. // // Example iterating over at most 3 pages of a ListDevices operation.
  1060. // pageNum := 0
  1061. // err := client.ListDevicesPages(params,
  1062. // func(page *ListDevicesOutput, lastPage bool) bool {
  1063. // pageNum++
  1064. // fmt.Println(page)
  1065. // return pageNum <= 3
  1066. // })
  1067. //
  1068. func (c *WorkLink) ListDevicesPages(input *ListDevicesInput, fn func(*ListDevicesOutput, bool) bool) error {
  1069. return c.ListDevicesPagesWithContext(aws.BackgroundContext(), input, fn)
  1070. }
  1071. // ListDevicesPagesWithContext same as ListDevicesPages except
  1072. // it takes a Context and allows setting request options on the pages.
  1073. //
  1074. // The context must be non-nil and will be used for request cancellation. If
  1075. // the context is nil a panic will occur. In the future the SDK may create
  1076. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1077. // for more information on using Contexts.
  1078. func (c *WorkLink) ListDevicesPagesWithContext(ctx aws.Context, input *ListDevicesInput, fn func(*ListDevicesOutput, bool) bool, opts ...request.Option) error {
  1079. p := request.Pagination{
  1080. NewRequest: func() (*request.Request, error) {
  1081. var inCpy *ListDevicesInput
  1082. if input != nil {
  1083. tmp := *input
  1084. inCpy = &tmp
  1085. }
  1086. req, _ := c.ListDevicesRequest(inCpy)
  1087. req.SetContext(ctx)
  1088. req.ApplyOptions(opts...)
  1089. return req, nil
  1090. },
  1091. }
  1092. cont := true
  1093. for p.Next() && cont {
  1094. cont = fn(p.Page().(*ListDevicesOutput), !p.HasNextPage())
  1095. }
  1096. return p.Err()
  1097. }
  1098. const opListFleets = "ListFleets"
  1099. // ListFleetsRequest generates a "aws/request.Request" representing the
  1100. // client's request for the ListFleets operation. The "output" return
  1101. // value will be populated with the request's response once the request completes
  1102. // successfully.
  1103. //
  1104. // Use "Send" method on the returned Request to send the API call to the service.
  1105. // the "output" return value is not valid until after Send returns without error.
  1106. //
  1107. // See ListFleets for more information on using the ListFleets
  1108. // API call, and error handling.
  1109. //
  1110. // This method is useful when you want to inject custom logic or configuration
  1111. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1112. //
  1113. //
  1114. // // Example sending a request using the ListFleetsRequest method.
  1115. // req, resp := client.ListFleetsRequest(params)
  1116. //
  1117. // err := req.Send()
  1118. // if err == nil { // resp is now filled
  1119. // fmt.Println(resp)
  1120. // }
  1121. //
  1122. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/ListFleets
  1123. func (c *WorkLink) ListFleetsRequest(input *ListFleetsInput) (req *request.Request, output *ListFleetsOutput) {
  1124. op := &request.Operation{
  1125. Name: opListFleets,
  1126. HTTPMethod: "POST",
  1127. HTTPPath: "/listFleets",
  1128. Paginator: &request.Paginator{
  1129. InputTokens: []string{"NextToken"},
  1130. OutputTokens: []string{"NextToken"},
  1131. LimitToken: "MaxResults",
  1132. TruncationToken: "",
  1133. },
  1134. }
  1135. if input == nil {
  1136. input = &ListFleetsInput{}
  1137. }
  1138. output = &ListFleetsOutput{}
  1139. req = c.newRequest(op, input, output)
  1140. return
  1141. }
  1142. // ListFleets API operation for Amazon WorkLink.
  1143. //
  1144. // Retrieves a list of fleets for the current account and Region.
  1145. //
  1146. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1147. // with awserr.Error's Code and Message methods to get detailed information about
  1148. // the error.
  1149. //
  1150. // See the AWS API reference guide for Amazon WorkLink's
  1151. // API operation ListFleets for usage and error information.
  1152. //
  1153. // Returned Error Codes:
  1154. // * ErrCodeUnauthorizedException "UnauthorizedException"
  1155. // You are not authorized to perform this action.
  1156. //
  1157. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  1158. // The service is temporarily unavailable.
  1159. //
  1160. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1161. // The request is not valid.
  1162. //
  1163. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  1164. // The number of requests exceeds the limit.
  1165. //
  1166. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/ListFleets
  1167. func (c *WorkLink) ListFleets(input *ListFleetsInput) (*ListFleetsOutput, error) {
  1168. req, out := c.ListFleetsRequest(input)
  1169. return out, req.Send()
  1170. }
  1171. // ListFleetsWithContext is the same as ListFleets with the addition of
  1172. // the ability to pass a context and additional request options.
  1173. //
  1174. // See ListFleets for details on how to use this API operation.
  1175. //
  1176. // The context must be non-nil and will be used for request cancellation. If
  1177. // the context is nil a panic will occur. In the future the SDK may create
  1178. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1179. // for more information on using Contexts.
  1180. func (c *WorkLink) ListFleetsWithContext(ctx aws.Context, input *ListFleetsInput, opts ...request.Option) (*ListFleetsOutput, error) {
  1181. req, out := c.ListFleetsRequest(input)
  1182. req.SetContext(ctx)
  1183. req.ApplyOptions(opts...)
  1184. return out, req.Send()
  1185. }
  1186. // ListFleetsPages iterates over the pages of a ListFleets operation,
  1187. // calling the "fn" function with the response data for each page. To stop
  1188. // iterating, return false from the fn function.
  1189. //
  1190. // See ListFleets method for more information on how to use this operation.
  1191. //
  1192. // Note: This operation can generate multiple requests to a service.
  1193. //
  1194. // // Example iterating over at most 3 pages of a ListFleets operation.
  1195. // pageNum := 0
  1196. // err := client.ListFleetsPages(params,
  1197. // func(page *ListFleetsOutput, lastPage bool) bool {
  1198. // pageNum++
  1199. // fmt.Println(page)
  1200. // return pageNum <= 3
  1201. // })
  1202. //
  1203. func (c *WorkLink) ListFleetsPages(input *ListFleetsInput, fn func(*ListFleetsOutput, bool) bool) error {
  1204. return c.ListFleetsPagesWithContext(aws.BackgroundContext(), input, fn)
  1205. }
  1206. // ListFleetsPagesWithContext same as ListFleetsPages except
  1207. // it takes a Context and allows setting request options on the pages.
  1208. //
  1209. // The context must be non-nil and will be used for request cancellation. If
  1210. // the context is nil a panic will occur. In the future the SDK may create
  1211. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1212. // for more information on using Contexts.
  1213. func (c *WorkLink) ListFleetsPagesWithContext(ctx aws.Context, input *ListFleetsInput, fn func(*ListFleetsOutput, bool) bool, opts ...request.Option) error {
  1214. p := request.Pagination{
  1215. NewRequest: func() (*request.Request, error) {
  1216. var inCpy *ListFleetsInput
  1217. if input != nil {
  1218. tmp := *input
  1219. inCpy = &tmp
  1220. }
  1221. req, _ := c.ListFleetsRequest(inCpy)
  1222. req.SetContext(ctx)
  1223. req.ApplyOptions(opts...)
  1224. return req, nil
  1225. },
  1226. }
  1227. cont := true
  1228. for p.Next() && cont {
  1229. cont = fn(p.Page().(*ListFleetsOutput), !p.HasNextPage())
  1230. }
  1231. return p.Err()
  1232. }
  1233. const opListWebsiteCertificateAuthorities = "ListWebsiteCertificateAuthorities"
  1234. // ListWebsiteCertificateAuthoritiesRequest generates a "aws/request.Request" representing the
  1235. // client's request for the ListWebsiteCertificateAuthorities operation. The "output" return
  1236. // value will be populated with the request's response once the request completes
  1237. // successfully.
  1238. //
  1239. // Use "Send" method on the returned Request to send the API call to the service.
  1240. // the "output" return value is not valid until after Send returns without error.
  1241. //
  1242. // See ListWebsiteCertificateAuthorities for more information on using the ListWebsiteCertificateAuthorities
  1243. // API call, and error handling.
  1244. //
  1245. // This method is useful when you want to inject custom logic or configuration
  1246. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1247. //
  1248. //
  1249. // // Example sending a request using the ListWebsiteCertificateAuthoritiesRequest method.
  1250. // req, resp := client.ListWebsiteCertificateAuthoritiesRequest(params)
  1251. //
  1252. // err := req.Send()
  1253. // if err == nil { // resp is now filled
  1254. // fmt.Println(resp)
  1255. // }
  1256. //
  1257. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/ListWebsiteCertificateAuthorities
  1258. func (c *WorkLink) ListWebsiteCertificateAuthoritiesRequest(input *ListWebsiteCertificateAuthoritiesInput) (req *request.Request, output *ListWebsiteCertificateAuthoritiesOutput) {
  1259. op := &request.Operation{
  1260. Name: opListWebsiteCertificateAuthorities,
  1261. HTTPMethod: "POST",
  1262. HTTPPath: "/listWebsiteCertificateAuthorities",
  1263. Paginator: &request.Paginator{
  1264. InputTokens: []string{"NextToken"},
  1265. OutputTokens: []string{"NextToken"},
  1266. LimitToken: "MaxResults",
  1267. TruncationToken: "",
  1268. },
  1269. }
  1270. if input == nil {
  1271. input = &ListWebsiteCertificateAuthoritiesInput{}
  1272. }
  1273. output = &ListWebsiteCertificateAuthoritiesOutput{}
  1274. req = c.newRequest(op, input, output)
  1275. return
  1276. }
  1277. // ListWebsiteCertificateAuthorities API operation for Amazon WorkLink.
  1278. //
  1279. // Retrieves a list of certificate authorities added for the current account
  1280. // and Region.
  1281. //
  1282. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1283. // with awserr.Error's Code and Message methods to get detailed information about
  1284. // the error.
  1285. //
  1286. // See the AWS API reference guide for Amazon WorkLink's
  1287. // API operation ListWebsiteCertificateAuthorities for usage and error information.
  1288. //
  1289. // Returned Error Codes:
  1290. // * ErrCodeUnauthorizedException "UnauthorizedException"
  1291. // You are not authorized to perform this action.
  1292. //
  1293. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  1294. // The service is temporarily unavailable.
  1295. //
  1296. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1297. // The request is not valid.
  1298. //
  1299. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  1300. // The number of requests exceeds the limit.
  1301. //
  1302. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/ListWebsiteCertificateAuthorities
  1303. func (c *WorkLink) ListWebsiteCertificateAuthorities(input *ListWebsiteCertificateAuthoritiesInput) (*ListWebsiteCertificateAuthoritiesOutput, error) {
  1304. req, out := c.ListWebsiteCertificateAuthoritiesRequest(input)
  1305. return out, req.Send()
  1306. }
  1307. // ListWebsiteCertificateAuthoritiesWithContext is the same as ListWebsiteCertificateAuthorities with the addition of
  1308. // the ability to pass a context and additional request options.
  1309. //
  1310. // See ListWebsiteCertificateAuthorities for details on how to use this API operation.
  1311. //
  1312. // The context must be non-nil and will be used for request cancellation. If
  1313. // the context is nil a panic will occur. In the future the SDK may create
  1314. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1315. // for more information on using Contexts.
  1316. func (c *WorkLink) ListWebsiteCertificateAuthoritiesWithContext(ctx aws.Context, input *ListWebsiteCertificateAuthoritiesInput, opts ...request.Option) (*ListWebsiteCertificateAuthoritiesOutput, error) {
  1317. req, out := c.ListWebsiteCertificateAuthoritiesRequest(input)
  1318. req.SetContext(ctx)
  1319. req.ApplyOptions(opts...)
  1320. return out, req.Send()
  1321. }
  1322. // ListWebsiteCertificateAuthoritiesPages iterates over the pages of a ListWebsiteCertificateAuthorities operation,
  1323. // calling the "fn" function with the response data for each page. To stop
  1324. // iterating, return false from the fn function.
  1325. //
  1326. // See ListWebsiteCertificateAuthorities method for more information on how to use this operation.
  1327. //
  1328. // Note: This operation can generate multiple requests to a service.
  1329. //
  1330. // // Example iterating over at most 3 pages of a ListWebsiteCertificateAuthorities operation.
  1331. // pageNum := 0
  1332. // err := client.ListWebsiteCertificateAuthoritiesPages(params,
  1333. // func(page *ListWebsiteCertificateAuthoritiesOutput, lastPage bool) bool {
  1334. // pageNum++
  1335. // fmt.Println(page)
  1336. // return pageNum <= 3
  1337. // })
  1338. //
  1339. func (c *WorkLink) ListWebsiteCertificateAuthoritiesPages(input *ListWebsiteCertificateAuthoritiesInput, fn func(*ListWebsiteCertificateAuthoritiesOutput, bool) bool) error {
  1340. return c.ListWebsiteCertificateAuthoritiesPagesWithContext(aws.BackgroundContext(), input, fn)
  1341. }
  1342. // ListWebsiteCertificateAuthoritiesPagesWithContext same as ListWebsiteCertificateAuthoritiesPages except
  1343. // it takes a Context and allows setting request options on the pages.
  1344. //
  1345. // The context must be non-nil and will be used for request cancellation. If
  1346. // the context is nil a panic will occur. In the future the SDK may create
  1347. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1348. // for more information on using Contexts.
  1349. func (c *WorkLink) ListWebsiteCertificateAuthoritiesPagesWithContext(ctx aws.Context, input *ListWebsiteCertificateAuthoritiesInput, fn func(*ListWebsiteCertificateAuthoritiesOutput, bool) bool, opts ...request.Option) error {
  1350. p := request.Pagination{
  1351. NewRequest: func() (*request.Request, error) {
  1352. var inCpy *ListWebsiteCertificateAuthoritiesInput
  1353. if input != nil {
  1354. tmp := *input
  1355. inCpy = &tmp
  1356. }
  1357. req, _ := c.ListWebsiteCertificateAuthoritiesRequest(inCpy)
  1358. req.SetContext(ctx)
  1359. req.ApplyOptions(opts...)
  1360. return req, nil
  1361. },
  1362. }
  1363. cont := true
  1364. for p.Next() && cont {
  1365. cont = fn(p.Page().(*ListWebsiteCertificateAuthoritiesOutput), !p.HasNextPage())
  1366. }
  1367. return p.Err()
  1368. }
  1369. const opSignOutUser = "SignOutUser"
  1370. // SignOutUserRequest generates a "aws/request.Request" representing the
  1371. // client's request for the SignOutUser operation. The "output" return
  1372. // value will be populated with the request's response once the request completes
  1373. // successfully.
  1374. //
  1375. // Use "Send" method on the returned Request to send the API call to the service.
  1376. // the "output" return value is not valid until after Send returns without error.
  1377. //
  1378. // See SignOutUser for more information on using the SignOutUser
  1379. // API call, and error handling.
  1380. //
  1381. // This method is useful when you want to inject custom logic or configuration
  1382. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1383. //
  1384. //
  1385. // // Example sending a request using the SignOutUserRequest method.
  1386. // req, resp := client.SignOutUserRequest(params)
  1387. //
  1388. // err := req.Send()
  1389. // if err == nil { // resp is now filled
  1390. // fmt.Println(resp)
  1391. // }
  1392. //
  1393. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/SignOutUser
  1394. func (c *WorkLink) SignOutUserRequest(input *SignOutUserInput) (req *request.Request, output *SignOutUserOutput) {
  1395. op := &request.Operation{
  1396. Name: opSignOutUser,
  1397. HTTPMethod: "POST",
  1398. HTTPPath: "/signOutUser",
  1399. }
  1400. if input == nil {
  1401. input = &SignOutUserInput{}
  1402. }
  1403. output = &SignOutUserOutput{}
  1404. req = c.newRequest(op, input, output)
  1405. req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1406. return
  1407. }
  1408. // SignOutUser API operation for Amazon WorkLink.
  1409. //
  1410. // Signs the user out from all of their devices. The user can sign in again
  1411. // if they have valid credentials.
  1412. //
  1413. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1414. // with awserr.Error's Code and Message methods to get detailed information about
  1415. // the error.
  1416. //
  1417. // See the AWS API reference guide for Amazon WorkLink's
  1418. // API operation SignOutUser for usage and error information.
  1419. //
  1420. // Returned Error Codes:
  1421. // * ErrCodeUnauthorizedException "UnauthorizedException"
  1422. // You are not authorized to perform this action.
  1423. //
  1424. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  1425. // The service is temporarily unavailable.
  1426. //
  1427. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1428. // The request is not valid.
  1429. //
  1430. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1431. // The requested resource was not found.
  1432. //
  1433. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  1434. // The number of requests exceeds the limit.
  1435. //
  1436. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/SignOutUser
  1437. func (c *WorkLink) SignOutUser(input *SignOutUserInput) (*SignOutUserOutput, error) {
  1438. req, out := c.SignOutUserRequest(input)
  1439. return out, req.Send()
  1440. }
  1441. // SignOutUserWithContext is the same as SignOutUser with the addition of
  1442. // the ability to pass a context and additional request options.
  1443. //
  1444. // See SignOutUser for details on how to use this API operation.
  1445. //
  1446. // The context must be non-nil and will be used for request cancellation. If
  1447. // the context is nil a panic will occur. In the future the SDK may create
  1448. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1449. // for more information on using Contexts.
  1450. func (c *WorkLink) SignOutUserWithContext(ctx aws.Context, input *SignOutUserInput, opts ...request.Option) (*SignOutUserOutput, error) {
  1451. req, out := c.SignOutUserRequest(input)
  1452. req.SetContext(ctx)
  1453. req.ApplyOptions(opts...)
  1454. return out, req.Send()
  1455. }
  1456. const opUpdateAuditStreamConfiguration = "UpdateAuditStreamConfiguration"
  1457. // UpdateAuditStreamConfigurationRequest generates a "aws/request.Request" representing the
  1458. // client's request for the UpdateAuditStreamConfiguration operation. The "output" return
  1459. // value will be populated with the request's response once the request completes
  1460. // successfully.
  1461. //
  1462. // Use "Send" method on the returned Request to send the API call to the service.
  1463. // the "output" return value is not valid until after Send returns without error.
  1464. //
  1465. // See UpdateAuditStreamConfiguration for more information on using the UpdateAuditStreamConfiguration
  1466. // API call, and error handling.
  1467. //
  1468. // This method is useful when you want to inject custom logic or configuration
  1469. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1470. //
  1471. //
  1472. // // Example sending a request using the UpdateAuditStreamConfigurationRequest method.
  1473. // req, resp := client.UpdateAuditStreamConfigurationRequest(params)
  1474. //
  1475. // err := req.Send()
  1476. // if err == nil { // resp is now filled
  1477. // fmt.Println(resp)
  1478. // }
  1479. //
  1480. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/UpdateAuditStreamConfiguration
  1481. func (c *WorkLink) UpdateAuditStreamConfigurationRequest(input *UpdateAuditStreamConfigurationInput) (req *request.Request, output *UpdateAuditStreamConfigurationOutput) {
  1482. op := &request.Operation{
  1483. Name: opUpdateAuditStreamConfiguration,
  1484. HTTPMethod: "POST",
  1485. HTTPPath: "/updateAuditStreamConfiguration",
  1486. }
  1487. if input == nil {
  1488. input = &UpdateAuditStreamConfigurationInput{}
  1489. }
  1490. output = &UpdateAuditStreamConfigurationOutput{}
  1491. req = c.newRequest(op, input, output)
  1492. req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1493. return
  1494. }
  1495. // UpdateAuditStreamConfiguration API operation for Amazon WorkLink.
  1496. //
  1497. // Updates the audit stream configuration for the fleet.
  1498. //
  1499. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1500. // with awserr.Error's Code and Message methods to get detailed information about
  1501. // the error.
  1502. //
  1503. // See the AWS API reference guide for Amazon WorkLink's
  1504. // API operation UpdateAuditStreamConfiguration for usage and error information.
  1505. //
  1506. // Returned Error Codes:
  1507. // * ErrCodeUnauthorizedException "UnauthorizedException"
  1508. // You are not authorized to perform this action.
  1509. //
  1510. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  1511. // The service is temporarily unavailable.
  1512. //
  1513. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1514. // The request is not valid.
  1515. //
  1516. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1517. // The requested resource was not found.
  1518. //
  1519. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  1520. // The number of requests exceeds the limit.
  1521. //
  1522. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/UpdateAuditStreamConfiguration
  1523. func (c *WorkLink) UpdateAuditStreamConfiguration(input *UpdateAuditStreamConfigurationInput) (*UpdateAuditStreamConfigurationOutput, error) {
  1524. req, out := c.UpdateAuditStreamConfigurationRequest(input)
  1525. return out, req.Send()
  1526. }
  1527. // UpdateAuditStreamConfigurationWithContext is the same as UpdateAuditStreamConfiguration with the addition of
  1528. // the ability to pass a context and additional request options.
  1529. //
  1530. // See UpdateAuditStreamConfiguration for details on how to use this API operation.
  1531. //
  1532. // The context must be non-nil and will be used for request cancellation. If
  1533. // the context is nil a panic will occur. In the future the SDK may create
  1534. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1535. // for more information on using Contexts.
  1536. func (c *WorkLink) UpdateAuditStreamConfigurationWithContext(ctx aws.Context, input *UpdateAuditStreamConfigurationInput, opts ...request.Option) (*UpdateAuditStreamConfigurationOutput, error) {
  1537. req, out := c.UpdateAuditStreamConfigurationRequest(input)
  1538. req.SetContext(ctx)
  1539. req.ApplyOptions(opts...)
  1540. return out, req.Send()
  1541. }
  1542. const opUpdateCompanyNetworkConfiguration = "UpdateCompanyNetworkConfiguration"
  1543. // UpdateCompanyNetworkConfigurationRequest generates a "aws/request.Request" representing the
  1544. // client's request for the UpdateCompanyNetworkConfiguration operation. The "output" return
  1545. // value will be populated with the request's response once the request completes
  1546. // successfully.
  1547. //
  1548. // Use "Send" method on the returned Request to send the API call to the service.
  1549. // the "output" return value is not valid until after Send returns without error.
  1550. //
  1551. // See UpdateCompanyNetworkConfiguration for more information on using the UpdateCompanyNetworkConfiguration
  1552. // API call, and error handling.
  1553. //
  1554. // This method is useful when you want to inject custom logic or configuration
  1555. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1556. //
  1557. //
  1558. // // Example sending a request using the UpdateCompanyNetworkConfigurationRequest method.
  1559. // req, resp := client.UpdateCompanyNetworkConfigurationRequest(params)
  1560. //
  1561. // err := req.Send()
  1562. // if err == nil { // resp is now filled
  1563. // fmt.Println(resp)
  1564. // }
  1565. //
  1566. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/UpdateCompanyNetworkConfiguration
  1567. func (c *WorkLink) UpdateCompanyNetworkConfigurationRequest(input *UpdateCompanyNetworkConfigurationInput) (req *request.Request, output *UpdateCompanyNetworkConfigurationOutput) {
  1568. op := &request.Operation{
  1569. Name: opUpdateCompanyNetworkConfiguration,
  1570. HTTPMethod: "POST",
  1571. HTTPPath: "/updateCompanyNetworkConfiguration",
  1572. }
  1573. if input == nil {
  1574. input = &UpdateCompanyNetworkConfigurationInput{}
  1575. }
  1576. output = &UpdateCompanyNetworkConfigurationOutput{}
  1577. req = c.newRequest(op, input, output)
  1578. req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1579. return
  1580. }
  1581. // UpdateCompanyNetworkConfiguration API operation for Amazon WorkLink.
  1582. //
  1583. // Updates the company network configuration for the fleet.
  1584. //
  1585. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1586. // with awserr.Error's Code and Message methods to get detailed information about
  1587. // the error.
  1588. //
  1589. // See the AWS API reference guide for Amazon WorkLink's
  1590. // API operation UpdateCompanyNetworkConfiguration for usage and error information.
  1591. //
  1592. // Returned Error Codes:
  1593. // * ErrCodeUnauthorizedException "UnauthorizedException"
  1594. // You are not authorized to perform this action.
  1595. //
  1596. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  1597. // The service is temporarily unavailable.
  1598. //
  1599. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1600. // The request is not valid.
  1601. //
  1602. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1603. // The requested resource was not found.
  1604. //
  1605. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  1606. // The number of requests exceeds the limit.
  1607. //
  1608. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/UpdateCompanyNetworkConfiguration
  1609. func (c *WorkLink) UpdateCompanyNetworkConfiguration(input *UpdateCompanyNetworkConfigurationInput) (*UpdateCompanyNetworkConfigurationOutput, error) {
  1610. req, out := c.UpdateCompanyNetworkConfigurationRequest(input)
  1611. return out, req.Send()
  1612. }
  1613. // UpdateCompanyNetworkConfigurationWithContext is the same as UpdateCompanyNetworkConfiguration with the addition of
  1614. // the ability to pass a context and additional request options.
  1615. //
  1616. // See UpdateCompanyNetworkConfiguration for details on how to use this API operation.
  1617. //
  1618. // The context must be non-nil and will be used for request cancellation. If
  1619. // the context is nil a panic will occur. In the future the SDK may create
  1620. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1621. // for more information on using Contexts.
  1622. func (c *WorkLink) UpdateCompanyNetworkConfigurationWithContext(ctx aws.Context, input *UpdateCompanyNetworkConfigurationInput, opts ...request.Option) (*UpdateCompanyNetworkConfigurationOutput, error) {
  1623. req, out := c.UpdateCompanyNetworkConfigurationRequest(input)
  1624. req.SetContext(ctx)
  1625. req.ApplyOptions(opts...)
  1626. return out, req.Send()
  1627. }
  1628. const opUpdateDevicePolicyConfiguration = "UpdateDevicePolicyConfiguration"
  1629. // UpdateDevicePolicyConfigurationRequest generates a "aws/request.Request" representing the
  1630. // client's request for the UpdateDevicePolicyConfiguration operation. The "output" return
  1631. // value will be populated with the request's response once the request completes
  1632. // successfully.
  1633. //
  1634. // Use "Send" method on the returned Request to send the API call to the service.
  1635. // the "output" return value is not valid until after Send returns without error.
  1636. //
  1637. // See UpdateDevicePolicyConfiguration for more information on using the UpdateDevicePolicyConfiguration
  1638. // API call, and error handling.
  1639. //
  1640. // This method is useful when you want to inject custom logic or configuration
  1641. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1642. //
  1643. //
  1644. // // Example sending a request using the UpdateDevicePolicyConfigurationRequest method.
  1645. // req, resp := client.UpdateDevicePolicyConfigurationRequest(params)
  1646. //
  1647. // err := req.Send()
  1648. // if err == nil { // resp is now filled
  1649. // fmt.Println(resp)
  1650. // }
  1651. //
  1652. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/UpdateDevicePolicyConfiguration
  1653. func (c *WorkLink) UpdateDevicePolicyConfigurationRequest(input *UpdateDevicePolicyConfigurationInput) (req *request.Request, output *UpdateDevicePolicyConfigurationOutput) {
  1654. op := &request.Operation{
  1655. Name: opUpdateDevicePolicyConfiguration,
  1656. HTTPMethod: "POST",
  1657. HTTPPath: "/updateDevicePolicyConfiguration",
  1658. }
  1659. if input == nil {
  1660. input = &UpdateDevicePolicyConfigurationInput{}
  1661. }
  1662. output = &UpdateDevicePolicyConfigurationOutput{}
  1663. req = c.newRequest(op, input, output)
  1664. req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1665. return
  1666. }
  1667. // UpdateDevicePolicyConfiguration API operation for Amazon WorkLink.
  1668. //
  1669. // Updates the device policy configuration for the fleet.
  1670. //
  1671. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1672. // with awserr.Error's Code and Message methods to get detailed information about
  1673. // the error.
  1674. //
  1675. // See the AWS API reference guide for Amazon WorkLink's
  1676. // API operation UpdateDevicePolicyConfiguration for usage and error information.
  1677. //
  1678. // Returned Error Codes:
  1679. // * ErrCodeUnauthorizedException "UnauthorizedException"
  1680. // You are not authorized to perform this action.
  1681. //
  1682. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  1683. // The service is temporarily unavailable.
  1684. //
  1685. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1686. // The request is not valid.
  1687. //
  1688. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1689. // The requested resource was not found.
  1690. //
  1691. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  1692. // The number of requests exceeds the limit.
  1693. //
  1694. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/UpdateDevicePolicyConfiguration
  1695. func (c *WorkLink) UpdateDevicePolicyConfiguration(input *UpdateDevicePolicyConfigurationInput) (*UpdateDevicePolicyConfigurationOutput, error) {
  1696. req, out := c.UpdateDevicePolicyConfigurationRequest(input)
  1697. return out, req.Send()
  1698. }
  1699. // UpdateDevicePolicyConfigurationWithContext is the same as UpdateDevicePolicyConfiguration with the addition of
  1700. // the ability to pass a context and additional request options.
  1701. //
  1702. // See UpdateDevicePolicyConfiguration for details on how to use this API operation.
  1703. //
  1704. // The context must be non-nil and will be used for request cancellation. If
  1705. // the context is nil a panic will occur. In the future the SDK may create
  1706. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1707. // for more information on using Contexts.
  1708. func (c *WorkLink) UpdateDevicePolicyConfigurationWithContext(ctx aws.Context, input *UpdateDevicePolicyConfigurationInput, opts ...request.Option) (*UpdateDevicePolicyConfigurationOutput, error) {
  1709. req, out := c.UpdateDevicePolicyConfigurationRequest(input)
  1710. req.SetContext(ctx)
  1711. req.ApplyOptions(opts...)
  1712. return out, req.Send()
  1713. }
  1714. const opUpdateFleetMetadata = "UpdateFleetMetadata"
  1715. // UpdateFleetMetadataRequest generates a "aws/request.Request" representing the
  1716. // client's request for the UpdateFleetMetadata operation. The "output" return
  1717. // value will be populated with the request's response once the request completes
  1718. // successfully.
  1719. //
  1720. // Use "Send" method on the returned Request to send the API call to the service.
  1721. // the "output" return value is not valid until after Send returns without error.
  1722. //
  1723. // See UpdateFleetMetadata for more information on using the UpdateFleetMetadata
  1724. // API call, and error handling.
  1725. //
  1726. // This method is useful when you want to inject custom logic or configuration
  1727. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1728. //
  1729. //
  1730. // // Example sending a request using the UpdateFleetMetadataRequest method.
  1731. // req, resp := client.UpdateFleetMetadataRequest(params)
  1732. //
  1733. // err := req.Send()
  1734. // if err == nil { // resp is now filled
  1735. // fmt.Println(resp)
  1736. // }
  1737. //
  1738. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/UpdateFleetMetadata
  1739. func (c *WorkLink) UpdateFleetMetadataRequest(input *UpdateFleetMetadataInput) (req *request.Request, output *UpdateFleetMetadataOutput) {
  1740. op := &request.Operation{
  1741. Name: opUpdateFleetMetadata,
  1742. HTTPMethod: "POST",
  1743. HTTPPath: "/UpdateFleetMetadata",
  1744. }
  1745. if input == nil {
  1746. input = &UpdateFleetMetadataInput{}
  1747. }
  1748. output = &UpdateFleetMetadataOutput{}
  1749. req = c.newRequest(op, input, output)
  1750. req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1751. return
  1752. }
  1753. // UpdateFleetMetadata API operation for Amazon WorkLink.
  1754. //
  1755. // Updates fleet metadata, such as DisplayName.
  1756. //
  1757. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1758. // with awserr.Error's Code and Message methods to get detailed information about
  1759. // the error.
  1760. //
  1761. // See the AWS API reference guide for Amazon WorkLink's
  1762. // API operation UpdateFleetMetadata for usage and error information.
  1763. //
  1764. // Returned Error Codes:
  1765. // * ErrCodeUnauthorizedException "UnauthorizedException"
  1766. // You are not authorized to perform this action.
  1767. //
  1768. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  1769. // The service is temporarily unavailable.
  1770. //
  1771. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1772. // The request is not valid.
  1773. //
  1774. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1775. // The requested resource was not found.
  1776. //
  1777. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  1778. // The number of requests exceeds the limit.
  1779. //
  1780. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/UpdateFleetMetadata
  1781. func (c *WorkLink) UpdateFleetMetadata(input *UpdateFleetMetadataInput) (*UpdateFleetMetadataOutput, error) {
  1782. req, out := c.UpdateFleetMetadataRequest(input)
  1783. return out, req.Send()
  1784. }
  1785. // UpdateFleetMetadataWithContext is the same as UpdateFleetMetadata with the addition of
  1786. // the ability to pass a context and additional request options.
  1787. //
  1788. // See UpdateFleetMetadata for details on how to use this API operation.
  1789. //
  1790. // The context must be non-nil and will be used for request cancellation. If
  1791. // the context is nil a panic will occur. In the future the SDK may create
  1792. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1793. // for more information on using Contexts.
  1794. func (c *WorkLink) UpdateFleetMetadataWithContext(ctx aws.Context, input *UpdateFleetMetadataInput, opts ...request.Option) (*UpdateFleetMetadataOutput, error) {
  1795. req, out := c.UpdateFleetMetadataRequest(input)
  1796. req.SetContext(ctx)
  1797. req.ApplyOptions(opts...)
  1798. return out, req.Send()
  1799. }
  1800. const opUpdateIdentityProviderConfiguration = "UpdateIdentityProviderConfiguration"
  1801. // UpdateIdentityProviderConfigurationRequest generates a "aws/request.Request" representing the
  1802. // client's request for the UpdateIdentityProviderConfiguration operation. The "output" return
  1803. // value will be populated with the request's response once the request completes
  1804. // successfully.
  1805. //
  1806. // Use "Send" method on the returned Request to send the API call to the service.
  1807. // the "output" return value is not valid until after Send returns without error.
  1808. //
  1809. // See UpdateIdentityProviderConfiguration for more information on using the UpdateIdentityProviderConfiguration
  1810. // API call, and error handling.
  1811. //
  1812. // This method is useful when you want to inject custom logic or configuration
  1813. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1814. //
  1815. //
  1816. // // Example sending a request using the UpdateIdentityProviderConfigurationRequest method.
  1817. // req, resp := client.UpdateIdentityProviderConfigurationRequest(params)
  1818. //
  1819. // err := req.Send()
  1820. // if err == nil { // resp is now filled
  1821. // fmt.Println(resp)
  1822. // }
  1823. //
  1824. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/UpdateIdentityProviderConfiguration
  1825. func (c *WorkLink) UpdateIdentityProviderConfigurationRequest(input *UpdateIdentityProviderConfigurationInput) (req *request.Request, output *UpdateIdentityProviderConfigurationOutput) {
  1826. op := &request.Operation{
  1827. Name: opUpdateIdentityProviderConfiguration,
  1828. HTTPMethod: "POST",
  1829. HTTPPath: "/updateIdentityProviderConfiguration",
  1830. }
  1831. if input == nil {
  1832. input = &UpdateIdentityProviderConfigurationInput{}
  1833. }
  1834. output = &UpdateIdentityProviderConfigurationOutput{}
  1835. req = c.newRequest(op, input, output)
  1836. req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1837. return
  1838. }
  1839. // UpdateIdentityProviderConfiguration API operation for Amazon WorkLink.
  1840. //
  1841. // Updates the identity provider configuration for the fleet.
  1842. //
  1843. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1844. // with awserr.Error's Code and Message methods to get detailed information about
  1845. // the error.
  1846. //
  1847. // See the AWS API reference guide for Amazon WorkLink's
  1848. // API operation UpdateIdentityProviderConfiguration for usage and error information.
  1849. //
  1850. // Returned Error Codes:
  1851. // * ErrCodeUnauthorizedException "UnauthorizedException"
  1852. // You are not authorized to perform this action.
  1853. //
  1854. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  1855. // The service is temporarily unavailable.
  1856. //
  1857. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1858. // The request is not valid.
  1859. //
  1860. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1861. // The requested resource was not found.
  1862. //
  1863. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  1864. // The number of requests exceeds the limit.
  1865. //
  1866. // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/UpdateIdentityProviderConfiguration
  1867. func (c *WorkLink) UpdateIdentityProviderConfiguration(input *UpdateIdentityProviderConfigurationInput) (*UpdateIdentityProviderConfigurationOutput, error) {
  1868. req, out := c.UpdateIdentityProviderConfigurationRequest(input)
  1869. return out, req.Send()
  1870. }
  1871. // UpdateIdentityProviderConfigurationWithContext is the same as UpdateIdentityProviderConfiguration with the addition of
  1872. // the ability to pass a context and additional request options.
  1873. //
  1874. // See UpdateIdentityProviderConfiguration for details on how to use this API operation.
  1875. //
  1876. // The context must be non-nil and will be used for request cancellation. If
  1877. // the context is nil a panic will occur. In the future the SDK may create
  1878. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1879. // for more information on using Contexts.
  1880. func (c *WorkLink) UpdateIdentityProviderConfigurationWithContext(ctx aws.Context, input *UpdateIdentityProviderConfigurationInput, opts ...request.Option) (*UpdateIdentityProviderConfigurationOutput, error) {
  1881. req, out := c.UpdateIdentityProviderConfigurationRequest(input)
  1882. req.SetContext(ctx)
  1883. req.ApplyOptions(opts...)
  1884. return out, req.Send()
  1885. }
  1886. type AssociateWebsiteCertificateAuthorityInput struct {
  1887. _ struct{} `type:"structure"`
  1888. // The root certificate of the CA.
  1889. //
  1890. // Certificate is a required field
  1891. Certificate *string `min:"1" type:"string" required:"true"`
  1892. // The certificate name to display.
  1893. DisplayName *string `type:"string"`
  1894. // The ARN of the fleet.
  1895. //
  1896. // FleetArn is a required field
  1897. FleetArn *string `min:"20" type:"string" required:"true"`
  1898. }
  1899. // String returns the string representation
  1900. func (s AssociateWebsiteCertificateAuthorityInput) String() string {
  1901. return awsutil.Prettify(s)
  1902. }
  1903. // GoString returns the string representation
  1904. func (s AssociateWebsiteCertificateAuthorityInput) GoString() string {
  1905. return s.String()
  1906. }
  1907. // Validate inspects the fields of the type to determine if they are valid.
  1908. func (s *AssociateWebsiteCertificateAuthorityInput) Validate() error {
  1909. invalidParams := request.ErrInvalidParams{Context: "AssociateWebsiteCertificateAuthorityInput"}
  1910. if s.Certificate == nil {
  1911. invalidParams.Add(request.NewErrParamRequired("Certificate"))
  1912. }
  1913. if s.Certificate != nil && len(*s.Certificate) < 1 {
  1914. invalidParams.Add(request.NewErrParamMinLen("Certificate", 1))
  1915. }
  1916. if s.FleetArn == nil {
  1917. invalidParams.Add(request.NewErrParamRequired("FleetArn"))
  1918. }
  1919. if s.FleetArn != nil && len(*s.FleetArn) < 20 {
  1920. invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
  1921. }
  1922. if invalidParams.Len() > 0 {
  1923. return invalidParams
  1924. }
  1925. return nil
  1926. }
  1927. // SetCertificate sets the Certificate field's value.
  1928. func (s *AssociateWebsiteCertificateAuthorityInput) SetCertificate(v string) *AssociateWebsiteCertificateAuthorityInput {
  1929. s.Certificate = &v
  1930. return s
  1931. }
  1932. // SetDisplayName sets the DisplayName field's value.
  1933. func (s *AssociateWebsiteCertificateAuthorityInput) SetDisplayName(v string) *AssociateWebsiteCertificateAuthorityInput {
  1934. s.DisplayName = &v
  1935. return s
  1936. }
  1937. // SetFleetArn sets the FleetArn field's value.
  1938. func (s *AssociateWebsiteCertificateAuthorityInput) SetFleetArn(v string) *AssociateWebsiteCertificateAuthorityInput {
  1939. s.FleetArn = &v
  1940. return s
  1941. }
  1942. type AssociateWebsiteCertificateAuthorityOutput struct {
  1943. _ struct{} `type:"structure"`
  1944. // A unique identifier for the CA.
  1945. WebsiteCaId *string `min:"1" type:"string"`
  1946. }
  1947. // String returns the string representation
  1948. func (s AssociateWebsiteCertificateAuthorityOutput) String() string {
  1949. return awsutil.Prettify(s)
  1950. }
  1951. // GoString returns the string representation
  1952. func (s AssociateWebsiteCertificateAuthorityOutput) GoString() string {
  1953. return s.String()
  1954. }
  1955. // SetWebsiteCaId sets the WebsiteCaId field's value.
  1956. func (s *AssociateWebsiteCertificateAuthorityOutput) SetWebsiteCaId(v string) *AssociateWebsiteCertificateAuthorityOutput {
  1957. s.WebsiteCaId = &v
  1958. return s
  1959. }
  1960. type CreateFleetInput struct {
  1961. _ struct{} `type:"structure"`
  1962. // The fleet name to display.
  1963. DisplayName *string `type:"string"`
  1964. // A unique name for the fleet.
  1965. //
  1966. // FleetName is a required field
  1967. FleetName *string `min:"1" type:"string" required:"true"`
  1968. // The option to optimize for better performance by routing traffic through
  1969. // the closest AWS Region to users, which may be outside of your home Region.
  1970. OptimizeForEndUserLocation *bool `type:"boolean"`
  1971. }
  1972. // String returns the string representation
  1973. func (s CreateFleetInput) String() string {
  1974. return awsutil.Prettify(s)
  1975. }
  1976. // GoString returns the string representation
  1977. func (s CreateFleetInput) GoString() string {
  1978. return s.String()
  1979. }
  1980. // Validate inspects the fields of the type to determine if they are valid.
  1981. func (s *CreateFleetInput) Validate() error {
  1982. invalidParams := request.ErrInvalidParams{Context: "CreateFleetInput"}
  1983. if s.FleetName == nil {
  1984. invalidParams.Add(request.NewErrParamRequired("FleetName"))
  1985. }
  1986. if s.FleetName != nil && len(*s.FleetName) < 1 {
  1987. invalidParams.Add(request.NewErrParamMinLen("FleetName", 1))
  1988. }
  1989. if invalidParams.Len() > 0 {
  1990. return invalidParams
  1991. }
  1992. return nil
  1993. }
  1994. // SetDisplayName sets the DisplayName field's value.
  1995. func (s *CreateFleetInput) SetDisplayName(v string) *CreateFleetInput {
  1996. s.DisplayName = &v
  1997. return s
  1998. }
  1999. // SetFleetName sets the FleetName field's value.
  2000. func (s *CreateFleetInput) SetFleetName(v string) *CreateFleetInput {
  2001. s.FleetName = &v
  2002. return s
  2003. }
  2004. // SetOptimizeForEndUserLocation sets the OptimizeForEndUserLocation field's value.
  2005. func (s *CreateFleetInput) SetOptimizeForEndUserLocation(v bool) *CreateFleetInput {
  2006. s.OptimizeForEndUserLocation = &v
  2007. return s
  2008. }
  2009. type CreateFleetOutput struct {
  2010. _ struct{} `type:"structure"`
  2011. // The ARN of the fleet.
  2012. FleetArn *string `min:"20" type:"string"`
  2013. }
  2014. // String returns the string representation
  2015. func (s CreateFleetOutput) String() string {
  2016. return awsutil.Prettify(s)
  2017. }
  2018. // GoString returns the string representation
  2019. func (s CreateFleetOutput) GoString() string {
  2020. return s.String()
  2021. }
  2022. // SetFleetArn sets the FleetArn field's value.
  2023. func (s *CreateFleetOutput) SetFleetArn(v string) *CreateFleetOutput {
  2024. s.FleetArn = &v
  2025. return s
  2026. }
  2027. type DeleteFleetInput struct {
  2028. _ struct{} `type:"structure"`
  2029. // The ARN of the fleet.
  2030. //
  2031. // FleetArn is a required field
  2032. FleetArn *string `min:"20" type:"string" required:"true"`
  2033. }
  2034. // String returns the string representation
  2035. func (s DeleteFleetInput) String() string {
  2036. return awsutil.Prettify(s)
  2037. }
  2038. // GoString returns the string representation
  2039. func (s DeleteFleetInput) GoString() string {
  2040. return s.String()
  2041. }
  2042. // Validate inspects the fields of the type to determine if they are valid.
  2043. func (s *DeleteFleetInput) Validate() error {
  2044. invalidParams := request.ErrInvalidParams{Context: "DeleteFleetInput"}
  2045. if s.FleetArn == nil {
  2046. invalidParams.Add(request.NewErrParamRequired("FleetArn"))
  2047. }
  2048. if s.FleetArn != nil && len(*s.FleetArn) < 20 {
  2049. invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
  2050. }
  2051. if invalidParams.Len() > 0 {
  2052. return invalidParams
  2053. }
  2054. return nil
  2055. }
  2056. // SetFleetArn sets the FleetArn field's value.
  2057. func (s *DeleteFleetInput) SetFleetArn(v string) *DeleteFleetInput {
  2058. s.FleetArn = &v
  2059. return s
  2060. }
  2061. type DeleteFleetOutput struct {
  2062. _ struct{} `type:"structure"`
  2063. }
  2064. // String returns the string representation
  2065. func (s DeleteFleetOutput) String() string {
  2066. return awsutil.Prettify(s)
  2067. }
  2068. // GoString returns the string representation
  2069. func (s DeleteFleetOutput) GoString() string {
  2070. return s.String()
  2071. }
  2072. type DescribeAuditStreamConfigurationInput struct {
  2073. _ struct{} `type:"structure"`
  2074. // The ARN of the fleet.
  2075. //
  2076. // FleetArn is a required field
  2077. FleetArn *string `min:"20" type:"string" required:"true"`
  2078. }
  2079. // String returns the string representation
  2080. func (s DescribeAuditStreamConfigurationInput) String() string {
  2081. return awsutil.Prettify(s)
  2082. }
  2083. // GoString returns the string representation
  2084. func (s DescribeAuditStreamConfigurationInput) GoString() string {
  2085. return s.String()
  2086. }
  2087. // Validate inspects the fields of the type to determine if they are valid.
  2088. func (s *DescribeAuditStreamConfigurationInput) Validate() error {
  2089. invalidParams := request.ErrInvalidParams{Context: "DescribeAuditStreamConfigurationInput"}
  2090. if s.FleetArn == nil {
  2091. invalidParams.Add(request.NewErrParamRequired("FleetArn"))
  2092. }
  2093. if s.FleetArn != nil && len(*s.FleetArn) < 20 {
  2094. invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
  2095. }
  2096. if invalidParams.Len() > 0 {
  2097. return invalidParams
  2098. }
  2099. return nil
  2100. }
  2101. // SetFleetArn sets the FleetArn field's value.
  2102. func (s *DescribeAuditStreamConfigurationInput) SetFleetArn(v string) *DescribeAuditStreamConfigurationInput {
  2103. s.FleetArn = &v
  2104. return s
  2105. }
  2106. type DescribeAuditStreamConfigurationOutput struct {
  2107. _ struct{} `type:"structure"`
  2108. // The ARN of the Amazon Kinesis data stream that will receive the audit events.
  2109. AuditStreamArn *string `type:"string"`
  2110. }
  2111. // String returns the string representation
  2112. func (s DescribeAuditStreamConfigurationOutput) String() string {
  2113. return awsutil.Prettify(s)
  2114. }
  2115. // GoString returns the string representation
  2116. func (s DescribeAuditStreamConfigurationOutput) GoString() string {
  2117. return s.String()
  2118. }
  2119. // SetAuditStreamArn sets the AuditStreamArn field's value.
  2120. func (s *DescribeAuditStreamConfigurationOutput) SetAuditStreamArn(v string) *DescribeAuditStreamConfigurationOutput {
  2121. s.AuditStreamArn = &v
  2122. return s
  2123. }
  2124. type DescribeCompanyNetworkConfigurationInput struct {
  2125. _ struct{} `type:"structure"`
  2126. // The ARN of the fleet.
  2127. //
  2128. // FleetArn is a required field
  2129. FleetArn *string `min:"20" type:"string" required:"true"`
  2130. }
  2131. // String returns the string representation
  2132. func (s DescribeCompanyNetworkConfigurationInput) String() string {
  2133. return awsutil.Prettify(s)
  2134. }
  2135. // GoString returns the string representation
  2136. func (s DescribeCompanyNetworkConfigurationInput) GoString() string {
  2137. return s.String()
  2138. }
  2139. // Validate inspects the fields of the type to determine if they are valid.
  2140. func (s *DescribeCompanyNetworkConfigurationInput) Validate() error {
  2141. invalidParams := request.ErrInvalidParams{Context: "DescribeCompanyNetworkConfigurationInput"}
  2142. if s.FleetArn == nil {
  2143. invalidParams.Add(request.NewErrParamRequired("FleetArn"))
  2144. }
  2145. if s.FleetArn != nil && len(*s.FleetArn) < 20 {
  2146. invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
  2147. }
  2148. if invalidParams.Len() > 0 {
  2149. return invalidParams
  2150. }
  2151. return nil
  2152. }
  2153. // SetFleetArn sets the FleetArn field's value.
  2154. func (s *DescribeCompanyNetworkConfigurationInput) SetFleetArn(v string) *DescribeCompanyNetworkConfigurationInput {
  2155. s.FleetArn = &v
  2156. return s
  2157. }
  2158. type DescribeCompanyNetworkConfigurationOutput struct {
  2159. _ struct{} `type:"structure"`
  2160. // The security groups associated with access to the provided subnets.
  2161. SecurityGroupIds []*string `type:"list"`
  2162. // The subnets used for X-ENI connections from Amazon WorkLink rendering containers.
  2163. SubnetIds []*string `type:"list"`
  2164. // The VPC with connectivity to associated websites.
  2165. VpcId *string `type:"string"`
  2166. }
  2167. // String returns the string representation
  2168. func (s DescribeCompanyNetworkConfigurationOutput) String() string {
  2169. return awsutil.Prettify(s)
  2170. }
  2171. // GoString returns the string representation
  2172. func (s DescribeCompanyNetworkConfigurationOutput) GoString() string {
  2173. return s.String()
  2174. }
  2175. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  2176. func (s *DescribeCompanyNetworkConfigurationOutput) SetSecurityGroupIds(v []*string) *DescribeCompanyNetworkConfigurationOutput {
  2177. s.SecurityGroupIds = v
  2178. return s
  2179. }
  2180. // SetSubnetIds sets the SubnetIds field's value.
  2181. func (s *DescribeCompanyNetworkConfigurationOutput) SetSubnetIds(v []*string) *DescribeCompanyNetworkConfigurationOutput {
  2182. s.SubnetIds = v
  2183. return s
  2184. }
  2185. // SetVpcId sets the VpcId field's value.
  2186. func (s *DescribeCompanyNetworkConfigurationOutput) SetVpcId(v string) *DescribeCompanyNetworkConfigurationOutput {
  2187. s.VpcId = &v
  2188. return s
  2189. }
  2190. type DescribeDeviceInput struct {
  2191. _ struct{} `type:"structure"`
  2192. // A unique identifier for a registered user's device.
  2193. //
  2194. // DeviceId is a required field
  2195. DeviceId *string `min:"1" type:"string" required:"true"`
  2196. // The ARN of the fleet.
  2197. //
  2198. // FleetArn is a required field
  2199. FleetArn *string `min:"20" type:"string" required:"true"`
  2200. }
  2201. // String returns the string representation
  2202. func (s DescribeDeviceInput) String() string {
  2203. return awsutil.Prettify(s)
  2204. }
  2205. // GoString returns the string representation
  2206. func (s DescribeDeviceInput) GoString() string {
  2207. return s.String()
  2208. }
  2209. // Validate inspects the fields of the type to determine if they are valid.
  2210. func (s *DescribeDeviceInput) Validate() error {
  2211. invalidParams := request.ErrInvalidParams{Context: "DescribeDeviceInput"}
  2212. if s.DeviceId == nil {
  2213. invalidParams.Add(request.NewErrParamRequired("DeviceId"))
  2214. }
  2215. if s.DeviceId != nil && len(*s.DeviceId) < 1 {
  2216. invalidParams.Add(request.NewErrParamMinLen("DeviceId", 1))
  2217. }
  2218. if s.FleetArn == nil {
  2219. invalidParams.Add(request.NewErrParamRequired("FleetArn"))
  2220. }
  2221. if s.FleetArn != nil && len(*s.FleetArn) < 20 {
  2222. invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
  2223. }
  2224. if invalidParams.Len() > 0 {
  2225. return invalidParams
  2226. }
  2227. return nil
  2228. }
  2229. // SetDeviceId sets the DeviceId field's value.
  2230. func (s *DescribeDeviceInput) SetDeviceId(v string) *DescribeDeviceInput {
  2231. s.DeviceId = &v
  2232. return s
  2233. }
  2234. // SetFleetArn sets the FleetArn field's value.
  2235. func (s *DescribeDeviceInput) SetFleetArn(v string) *DescribeDeviceInput {
  2236. s.FleetArn = &v
  2237. return s
  2238. }
  2239. type DescribeDeviceOutput struct {
  2240. _ struct{} `type:"structure"`
  2241. // The date that the device first signed in to Amazon WorkLink.
  2242. FirstAccessedTime *time.Time `type:"timestamp"`
  2243. // The date that the device last accessed Amazon WorkLink.
  2244. LastAccessedTime *time.Time `type:"timestamp"`
  2245. // The manufacturer of the device.
  2246. Manufacturer *string `min:"1" type:"string"`
  2247. // The model of the device.
  2248. Model *string `min:"1" type:"string"`
  2249. // The operating system of the device.
  2250. OperatingSystem *string `min:"1" type:"string"`
  2251. // The operating system version of the device.
  2252. OperatingSystemVersion *string `min:"1" type:"string"`
  2253. // The operating system patch level of the device.
  2254. PatchLevel *string `min:"1" type:"string"`
  2255. // The current state of the device.
  2256. Status *string `type:"string" enum:"DeviceStatus"`
  2257. // The user name associated with the device.
  2258. Username *string `min:"1" type:"string"`
  2259. }
  2260. // String returns the string representation
  2261. func (s DescribeDeviceOutput) String() string {
  2262. return awsutil.Prettify(s)
  2263. }
  2264. // GoString returns the string representation
  2265. func (s DescribeDeviceOutput) GoString() string {
  2266. return s.String()
  2267. }
  2268. // SetFirstAccessedTime sets the FirstAccessedTime field's value.
  2269. func (s *DescribeDeviceOutput) SetFirstAccessedTime(v time.Time) *DescribeDeviceOutput {
  2270. s.FirstAccessedTime = &v
  2271. return s
  2272. }
  2273. // SetLastAccessedTime sets the LastAccessedTime field's value.
  2274. func (s *DescribeDeviceOutput) SetLastAccessedTime(v time.Time) *DescribeDeviceOutput {
  2275. s.LastAccessedTime = &v
  2276. return s
  2277. }
  2278. // SetManufacturer sets the Manufacturer field's value.
  2279. func (s *DescribeDeviceOutput) SetManufacturer(v string) *DescribeDeviceOutput {
  2280. s.Manufacturer = &v
  2281. return s
  2282. }
  2283. // SetModel sets the Model field's value.
  2284. func (s *DescribeDeviceOutput) SetModel(v string) *DescribeDeviceOutput {
  2285. s.Model = &v
  2286. return s
  2287. }
  2288. // SetOperatingSystem sets the OperatingSystem field's value.
  2289. func (s *DescribeDeviceOutput) SetOperatingSystem(v string) *DescribeDeviceOutput {
  2290. s.OperatingSystem = &v
  2291. return s
  2292. }
  2293. // SetOperatingSystemVersion sets the OperatingSystemVersion field's value.
  2294. func (s *DescribeDeviceOutput) SetOperatingSystemVersion(v string) *DescribeDeviceOutput {
  2295. s.OperatingSystemVersion = &v
  2296. return s
  2297. }
  2298. // SetPatchLevel sets the PatchLevel field's value.
  2299. func (s *DescribeDeviceOutput) SetPatchLevel(v string) *DescribeDeviceOutput {
  2300. s.PatchLevel = &v
  2301. return s
  2302. }
  2303. // SetStatus sets the Status field's value.
  2304. func (s *DescribeDeviceOutput) SetStatus(v string) *DescribeDeviceOutput {
  2305. s.Status = &v
  2306. return s
  2307. }
  2308. // SetUsername sets the Username field's value.
  2309. func (s *DescribeDeviceOutput) SetUsername(v string) *DescribeDeviceOutput {
  2310. s.Username = &v
  2311. return s
  2312. }
  2313. type DescribeDevicePolicyConfigurationInput struct {
  2314. _ struct{} `type:"structure"`
  2315. // The ARN of the fleet.
  2316. //
  2317. // FleetArn is a required field
  2318. FleetArn *string `min:"20" type:"string" required:"true"`
  2319. }
  2320. // String returns the string representation
  2321. func (s DescribeDevicePolicyConfigurationInput) String() string {
  2322. return awsutil.Prettify(s)
  2323. }
  2324. // GoString returns the string representation
  2325. func (s DescribeDevicePolicyConfigurationInput) GoString() string {
  2326. return s.String()
  2327. }
  2328. // Validate inspects the fields of the type to determine if they are valid.
  2329. func (s *DescribeDevicePolicyConfigurationInput) Validate() error {
  2330. invalidParams := request.ErrInvalidParams{Context: "DescribeDevicePolicyConfigurationInput"}
  2331. if s.FleetArn == nil {
  2332. invalidParams.Add(request.NewErrParamRequired("FleetArn"))
  2333. }
  2334. if s.FleetArn != nil && len(*s.FleetArn) < 20 {
  2335. invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
  2336. }
  2337. if invalidParams.Len() > 0 {
  2338. return invalidParams
  2339. }
  2340. return nil
  2341. }
  2342. // SetFleetArn sets the FleetArn field's value.
  2343. func (s *DescribeDevicePolicyConfigurationInput) SetFleetArn(v string) *DescribeDevicePolicyConfigurationInput {
  2344. s.FleetArn = &v
  2345. return s
  2346. }
  2347. type DescribeDevicePolicyConfigurationOutput struct {
  2348. _ struct{} `type:"structure"`
  2349. // The certificate chain, including intermediate certificates and the root certificate
  2350. // authority certificate used to issue device certificates.
  2351. DeviceCaCertificate *string `min:"1" type:"string"`
  2352. }
  2353. // String returns the string representation
  2354. func (s DescribeDevicePolicyConfigurationOutput) String() string {
  2355. return awsutil.Prettify(s)
  2356. }
  2357. // GoString returns the string representation
  2358. func (s DescribeDevicePolicyConfigurationOutput) GoString() string {
  2359. return s.String()
  2360. }
  2361. // SetDeviceCaCertificate sets the DeviceCaCertificate field's value.
  2362. func (s *DescribeDevicePolicyConfigurationOutput) SetDeviceCaCertificate(v string) *DescribeDevicePolicyConfigurationOutput {
  2363. s.DeviceCaCertificate = &v
  2364. return s
  2365. }
  2366. type DescribeFleetMetadataInput struct {
  2367. _ struct{} `type:"structure"`
  2368. // The ARN of the fleet.
  2369. //
  2370. // FleetArn is a required field
  2371. FleetArn *string `min:"20" type:"string" required:"true"`
  2372. }
  2373. // String returns the string representation
  2374. func (s DescribeFleetMetadataInput) String() string {
  2375. return awsutil.Prettify(s)
  2376. }
  2377. // GoString returns the string representation
  2378. func (s DescribeFleetMetadataInput) GoString() string {
  2379. return s.String()
  2380. }
  2381. // Validate inspects the fields of the type to determine if they are valid.
  2382. func (s *DescribeFleetMetadataInput) Validate() error {
  2383. invalidParams := request.ErrInvalidParams{Context: "DescribeFleetMetadataInput"}
  2384. if s.FleetArn == nil {
  2385. invalidParams.Add(request.NewErrParamRequired("FleetArn"))
  2386. }
  2387. if s.FleetArn != nil && len(*s.FleetArn) < 20 {
  2388. invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
  2389. }
  2390. if invalidParams.Len() > 0 {
  2391. return invalidParams
  2392. }
  2393. return nil
  2394. }
  2395. // SetFleetArn sets the FleetArn field's value.
  2396. func (s *DescribeFleetMetadataInput) SetFleetArn(v string) *DescribeFleetMetadataInput {
  2397. s.FleetArn = &v
  2398. return s
  2399. }
  2400. type DescribeFleetMetadataOutput struct {
  2401. _ struct{} `type:"structure"`
  2402. // The identifier used by users to sign in to the Amazon WorkLink app.
  2403. CompanyCode *string `min:"1" type:"string"`
  2404. // The time that the fleet was created.
  2405. CreatedTime *time.Time `type:"timestamp"`
  2406. // The name to display.
  2407. DisplayName *string `type:"string"`
  2408. // The name of the fleet.
  2409. FleetName *string `min:"1" type:"string"`
  2410. // The current state of the fleet.
  2411. FleetStatus *string `type:"string" enum:"FleetStatus"`
  2412. // The time that the fleet was last updated.
  2413. LastUpdatedTime *time.Time `type:"timestamp"`
  2414. // The option to optimize for better performance by routing traffic through
  2415. // the closest AWS Region to users, which may be outside of your home Region.
  2416. OptimizeForEndUserLocation *bool `type:"boolean"`
  2417. }
  2418. // String returns the string representation
  2419. func (s DescribeFleetMetadataOutput) String() string {
  2420. return awsutil.Prettify(s)
  2421. }
  2422. // GoString returns the string representation
  2423. func (s DescribeFleetMetadataOutput) GoString() string {
  2424. return s.String()
  2425. }
  2426. // SetCompanyCode sets the CompanyCode field's value.
  2427. func (s *DescribeFleetMetadataOutput) SetCompanyCode(v string) *DescribeFleetMetadataOutput {
  2428. s.CompanyCode = &v
  2429. return s
  2430. }
  2431. // SetCreatedTime sets the CreatedTime field's value.
  2432. func (s *DescribeFleetMetadataOutput) SetCreatedTime(v time.Time) *DescribeFleetMetadataOutput {
  2433. s.CreatedTime = &v
  2434. return s
  2435. }
  2436. // SetDisplayName sets the DisplayName field's value.
  2437. func (s *DescribeFleetMetadataOutput) SetDisplayName(v string) *DescribeFleetMetadataOutput {
  2438. s.DisplayName = &v
  2439. return s
  2440. }
  2441. // SetFleetName sets the FleetName field's value.
  2442. func (s *DescribeFleetMetadataOutput) SetFleetName(v string) *DescribeFleetMetadataOutput {
  2443. s.FleetName = &v
  2444. return s
  2445. }
  2446. // SetFleetStatus sets the FleetStatus field's value.
  2447. func (s *DescribeFleetMetadataOutput) SetFleetStatus(v string) *DescribeFleetMetadataOutput {
  2448. s.FleetStatus = &v
  2449. return s
  2450. }
  2451. // SetLastUpdatedTime sets the LastUpdatedTime field's value.
  2452. func (s *DescribeFleetMetadataOutput) SetLastUpdatedTime(v time.Time) *DescribeFleetMetadataOutput {
  2453. s.LastUpdatedTime = &v
  2454. return s
  2455. }
  2456. // SetOptimizeForEndUserLocation sets the OptimizeForEndUserLocation field's value.
  2457. func (s *DescribeFleetMetadataOutput) SetOptimizeForEndUserLocation(v bool) *DescribeFleetMetadataOutput {
  2458. s.OptimizeForEndUserLocation = &v
  2459. return s
  2460. }
  2461. type DescribeIdentityProviderConfigurationInput struct {
  2462. _ struct{} `type:"structure"`
  2463. // The ARN of the fleet.
  2464. //
  2465. // FleetArn is a required field
  2466. FleetArn *string `min:"20" type:"string" required:"true"`
  2467. }
  2468. // String returns the string representation
  2469. func (s DescribeIdentityProviderConfigurationInput) String() string {
  2470. return awsutil.Prettify(s)
  2471. }
  2472. // GoString returns the string representation
  2473. func (s DescribeIdentityProviderConfigurationInput) GoString() string {
  2474. return s.String()
  2475. }
  2476. // Validate inspects the fields of the type to determine if they are valid.
  2477. func (s *DescribeIdentityProviderConfigurationInput) Validate() error {
  2478. invalidParams := request.ErrInvalidParams{Context: "DescribeIdentityProviderConfigurationInput"}
  2479. if s.FleetArn == nil {
  2480. invalidParams.Add(request.NewErrParamRequired("FleetArn"))
  2481. }
  2482. if s.FleetArn != nil && len(*s.FleetArn) < 20 {
  2483. invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
  2484. }
  2485. if invalidParams.Len() > 0 {
  2486. return invalidParams
  2487. }
  2488. return nil
  2489. }
  2490. // SetFleetArn sets the FleetArn field's value.
  2491. func (s *DescribeIdentityProviderConfigurationInput) SetFleetArn(v string) *DescribeIdentityProviderConfigurationInput {
  2492. s.FleetArn = &v
  2493. return s
  2494. }
  2495. type DescribeIdentityProviderConfigurationOutput struct {
  2496. _ struct{} `type:"structure"`
  2497. // The SAML metadata document provided by the user’s identity provider.
  2498. IdentityProviderSamlMetadata *string `min:"1" type:"string"`
  2499. // The type of identity provider.
  2500. IdentityProviderType *string `type:"string" enum:"IdentityProviderType"`
  2501. // The SAML metadata document uploaded to the user’s identity provider.
  2502. ServiceProviderSamlMetadata *string `min:"1" type:"string"`
  2503. }
  2504. // String returns the string representation
  2505. func (s DescribeIdentityProviderConfigurationOutput) String() string {
  2506. return awsutil.Prettify(s)
  2507. }
  2508. // GoString returns the string representation
  2509. func (s DescribeIdentityProviderConfigurationOutput) GoString() string {
  2510. return s.String()
  2511. }
  2512. // SetIdentityProviderSamlMetadata sets the IdentityProviderSamlMetadata field's value.
  2513. func (s *DescribeIdentityProviderConfigurationOutput) SetIdentityProviderSamlMetadata(v string) *DescribeIdentityProviderConfigurationOutput {
  2514. s.IdentityProviderSamlMetadata = &v
  2515. return s
  2516. }
  2517. // SetIdentityProviderType sets the IdentityProviderType field's value.
  2518. func (s *DescribeIdentityProviderConfigurationOutput) SetIdentityProviderType(v string) *DescribeIdentityProviderConfigurationOutput {
  2519. s.IdentityProviderType = &v
  2520. return s
  2521. }
  2522. // SetServiceProviderSamlMetadata sets the ServiceProviderSamlMetadata field's value.
  2523. func (s *DescribeIdentityProviderConfigurationOutput) SetServiceProviderSamlMetadata(v string) *DescribeIdentityProviderConfigurationOutput {
  2524. s.ServiceProviderSamlMetadata = &v
  2525. return s
  2526. }
  2527. type DescribeWebsiteCertificateAuthorityInput struct {
  2528. _ struct{} `type:"structure"`
  2529. // The ARN of the fleet.
  2530. //
  2531. // FleetArn is a required field
  2532. FleetArn *string `min:"20" type:"string" required:"true"`
  2533. // A unique identifier for the certificate authority.
  2534. //
  2535. // WebsiteCaId is a required field
  2536. WebsiteCaId *string `min:"1" type:"string" required:"true"`
  2537. }
  2538. // String returns the string representation
  2539. func (s DescribeWebsiteCertificateAuthorityInput) String() string {
  2540. return awsutil.Prettify(s)
  2541. }
  2542. // GoString returns the string representation
  2543. func (s DescribeWebsiteCertificateAuthorityInput) GoString() string {
  2544. return s.String()
  2545. }
  2546. // Validate inspects the fields of the type to determine if they are valid.
  2547. func (s *DescribeWebsiteCertificateAuthorityInput) Validate() error {
  2548. invalidParams := request.ErrInvalidParams{Context: "DescribeWebsiteCertificateAuthorityInput"}
  2549. if s.FleetArn == nil {
  2550. invalidParams.Add(request.NewErrParamRequired("FleetArn"))
  2551. }
  2552. if s.FleetArn != nil && len(*s.FleetArn) < 20 {
  2553. invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
  2554. }
  2555. if s.WebsiteCaId == nil {
  2556. invalidParams.Add(request.NewErrParamRequired("WebsiteCaId"))
  2557. }
  2558. if s.WebsiteCaId != nil && len(*s.WebsiteCaId) < 1 {
  2559. invalidParams.Add(request.NewErrParamMinLen("WebsiteCaId", 1))
  2560. }
  2561. if invalidParams.Len() > 0 {
  2562. return invalidParams
  2563. }
  2564. return nil
  2565. }
  2566. // SetFleetArn sets the FleetArn field's value.
  2567. func (s *DescribeWebsiteCertificateAuthorityInput) SetFleetArn(v string) *DescribeWebsiteCertificateAuthorityInput {
  2568. s.FleetArn = &v
  2569. return s
  2570. }
  2571. // SetWebsiteCaId sets the WebsiteCaId field's value.
  2572. func (s *DescribeWebsiteCertificateAuthorityInput) SetWebsiteCaId(v string) *DescribeWebsiteCertificateAuthorityInput {
  2573. s.WebsiteCaId = &v
  2574. return s
  2575. }
  2576. type DescribeWebsiteCertificateAuthorityOutput struct {
  2577. _ struct{} `type:"structure"`
  2578. // The root certificate of the certificate authority.
  2579. Certificate *string `min:"1" type:"string"`
  2580. // The time that the certificate authority was added.
  2581. CreatedTime *time.Time `type:"timestamp"`
  2582. // The certificate name to display.
  2583. DisplayName *string `type:"string"`
  2584. }
  2585. // String returns the string representation
  2586. func (s DescribeWebsiteCertificateAuthorityOutput) String() string {
  2587. return awsutil.Prettify(s)
  2588. }
  2589. // GoString returns the string representation
  2590. func (s DescribeWebsiteCertificateAuthorityOutput) GoString() string {
  2591. return s.String()
  2592. }
  2593. // SetCertificate sets the Certificate field's value.
  2594. func (s *DescribeWebsiteCertificateAuthorityOutput) SetCertificate(v string) *DescribeWebsiteCertificateAuthorityOutput {
  2595. s.Certificate = &v
  2596. return s
  2597. }
  2598. // SetCreatedTime sets the CreatedTime field's value.
  2599. func (s *DescribeWebsiteCertificateAuthorityOutput) SetCreatedTime(v time.Time) *DescribeWebsiteCertificateAuthorityOutput {
  2600. s.CreatedTime = &v
  2601. return s
  2602. }
  2603. // SetDisplayName sets the DisplayName field's value.
  2604. func (s *DescribeWebsiteCertificateAuthorityOutput) SetDisplayName(v string) *DescribeWebsiteCertificateAuthorityOutput {
  2605. s.DisplayName = &v
  2606. return s
  2607. }
  2608. // The summary of devices.
  2609. type DeviceSummary struct {
  2610. _ struct{} `type:"structure"`
  2611. // The ID of the device.
  2612. DeviceId *string `min:"1" type:"string"`
  2613. // The status of the device.
  2614. DeviceStatus *string `type:"string" enum:"DeviceStatus"`
  2615. }
  2616. // String returns the string representation
  2617. func (s DeviceSummary) String() string {
  2618. return awsutil.Prettify(s)
  2619. }
  2620. // GoString returns the string representation
  2621. func (s DeviceSummary) GoString() string {
  2622. return s.String()
  2623. }
  2624. // SetDeviceId sets the DeviceId field's value.
  2625. func (s *DeviceSummary) SetDeviceId(v string) *DeviceSummary {
  2626. s.DeviceId = &v
  2627. return s
  2628. }
  2629. // SetDeviceStatus sets the DeviceStatus field's value.
  2630. func (s *DeviceSummary) SetDeviceStatus(v string) *DeviceSummary {
  2631. s.DeviceStatus = &v
  2632. return s
  2633. }
  2634. type DisassociateWebsiteCertificateAuthorityInput struct {
  2635. _ struct{} `type:"structure"`
  2636. // The ARN of the fleet.
  2637. //
  2638. // FleetArn is a required field
  2639. FleetArn *string `min:"20" type:"string" required:"true"`
  2640. // A unique identifier for the CA.
  2641. //
  2642. // WebsiteCaId is a required field
  2643. WebsiteCaId *string `min:"1" type:"string" required:"true"`
  2644. }
  2645. // String returns the string representation
  2646. func (s DisassociateWebsiteCertificateAuthorityInput) String() string {
  2647. return awsutil.Prettify(s)
  2648. }
  2649. // GoString returns the string representation
  2650. func (s DisassociateWebsiteCertificateAuthorityInput) GoString() string {
  2651. return s.String()
  2652. }
  2653. // Validate inspects the fields of the type to determine if they are valid.
  2654. func (s *DisassociateWebsiteCertificateAuthorityInput) Validate() error {
  2655. invalidParams := request.ErrInvalidParams{Context: "DisassociateWebsiteCertificateAuthorityInput"}
  2656. if s.FleetArn == nil {
  2657. invalidParams.Add(request.NewErrParamRequired("FleetArn"))
  2658. }
  2659. if s.FleetArn != nil && len(*s.FleetArn) < 20 {
  2660. invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
  2661. }
  2662. if s.WebsiteCaId == nil {
  2663. invalidParams.Add(request.NewErrParamRequired("WebsiteCaId"))
  2664. }
  2665. if s.WebsiteCaId != nil && len(*s.WebsiteCaId) < 1 {
  2666. invalidParams.Add(request.NewErrParamMinLen("WebsiteCaId", 1))
  2667. }
  2668. if invalidParams.Len() > 0 {
  2669. return invalidParams
  2670. }
  2671. return nil
  2672. }
  2673. // SetFleetArn sets the FleetArn field's value.
  2674. func (s *DisassociateWebsiteCertificateAuthorityInput) SetFleetArn(v string) *DisassociateWebsiteCertificateAuthorityInput {
  2675. s.FleetArn = &v
  2676. return s
  2677. }
  2678. // SetWebsiteCaId sets the WebsiteCaId field's value.
  2679. func (s *DisassociateWebsiteCertificateAuthorityInput) SetWebsiteCaId(v string) *DisassociateWebsiteCertificateAuthorityInput {
  2680. s.WebsiteCaId = &v
  2681. return s
  2682. }
  2683. type DisassociateWebsiteCertificateAuthorityOutput struct {
  2684. _ struct{} `type:"structure"`
  2685. }
  2686. // String returns the string representation
  2687. func (s DisassociateWebsiteCertificateAuthorityOutput) String() string {
  2688. return awsutil.Prettify(s)
  2689. }
  2690. // GoString returns the string representation
  2691. func (s DisassociateWebsiteCertificateAuthorityOutput) GoString() string {
  2692. return s.String()
  2693. }
  2694. // The summary of the fleet.
  2695. type FleetSummary struct {
  2696. _ struct{} `type:"structure"`
  2697. // The identifier used by users to sign into the Amazon WorkLink app.
  2698. CompanyCode *string `min:"1" type:"string"`
  2699. // The time when the fleet was created.
  2700. CreatedTime *time.Time `type:"timestamp"`
  2701. // The name to display.
  2702. DisplayName *string `type:"string"`
  2703. // The ARN of the fleet.
  2704. FleetArn *string `min:"20" type:"string"`
  2705. // The name of the fleet.
  2706. FleetName *string `min:"1" type:"string"`
  2707. // The status of the fleet.
  2708. FleetStatus *string `type:"string" enum:"FleetStatus"`
  2709. // The time when the fleet was last updated.
  2710. LastUpdatedTime *time.Time `type:"timestamp"`
  2711. }
  2712. // String returns the string representation
  2713. func (s FleetSummary) String() string {
  2714. return awsutil.Prettify(s)
  2715. }
  2716. // GoString returns the string representation
  2717. func (s FleetSummary) GoString() string {
  2718. return s.String()
  2719. }
  2720. // SetCompanyCode sets the CompanyCode field's value.
  2721. func (s *FleetSummary) SetCompanyCode(v string) *FleetSummary {
  2722. s.CompanyCode = &v
  2723. return s
  2724. }
  2725. // SetCreatedTime sets the CreatedTime field's value.
  2726. func (s *FleetSummary) SetCreatedTime(v time.Time) *FleetSummary {
  2727. s.CreatedTime = &v
  2728. return s
  2729. }
  2730. // SetDisplayName sets the DisplayName field's value.
  2731. func (s *FleetSummary) SetDisplayName(v string) *FleetSummary {
  2732. s.DisplayName = &v
  2733. return s
  2734. }
  2735. // SetFleetArn sets the FleetArn field's value.
  2736. func (s *FleetSummary) SetFleetArn(v string) *FleetSummary {
  2737. s.FleetArn = &v
  2738. return s
  2739. }
  2740. // SetFleetName sets the FleetName field's value.
  2741. func (s *FleetSummary) SetFleetName(v string) *FleetSummary {
  2742. s.FleetName = &v
  2743. return s
  2744. }
  2745. // SetFleetStatus sets the FleetStatus field's value.
  2746. func (s *FleetSummary) SetFleetStatus(v string) *FleetSummary {
  2747. s.FleetStatus = &v
  2748. return s
  2749. }
  2750. // SetLastUpdatedTime sets the LastUpdatedTime field's value.
  2751. func (s *FleetSummary) SetLastUpdatedTime(v time.Time) *FleetSummary {
  2752. s.LastUpdatedTime = &v
  2753. return s
  2754. }
  2755. type ListDevicesInput struct {
  2756. _ struct{} `type:"structure"`
  2757. // The ARN of the fleet.
  2758. //
  2759. // FleetArn is a required field
  2760. FleetArn *string `min:"20" type:"string" required:"true"`
  2761. // The maximum number of results to be included in the next page.
  2762. MaxResults *int64 `min:"1" type:"integer"`
  2763. // The pagination token used to retrieve the next page of results for this operation.
  2764. // If this value is null, it retrieves the first page.
  2765. NextToken *string `min:"1" type:"string"`
  2766. }
  2767. // String returns the string representation
  2768. func (s ListDevicesInput) String() string {
  2769. return awsutil.Prettify(s)
  2770. }
  2771. // GoString returns the string representation
  2772. func (s ListDevicesInput) GoString() string {
  2773. return s.String()
  2774. }
  2775. // Validate inspects the fields of the type to determine if they are valid.
  2776. func (s *ListDevicesInput) Validate() error {
  2777. invalidParams := request.ErrInvalidParams{Context: "ListDevicesInput"}
  2778. if s.FleetArn == nil {
  2779. invalidParams.Add(request.NewErrParamRequired("FleetArn"))
  2780. }
  2781. if s.FleetArn != nil && len(*s.FleetArn) < 20 {
  2782. invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
  2783. }
  2784. if s.MaxResults != nil && *s.MaxResults < 1 {
  2785. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  2786. }
  2787. if s.NextToken != nil && len(*s.NextToken) < 1 {
  2788. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  2789. }
  2790. if invalidParams.Len() > 0 {
  2791. return invalidParams
  2792. }
  2793. return nil
  2794. }
  2795. // SetFleetArn sets the FleetArn field's value.
  2796. func (s *ListDevicesInput) SetFleetArn(v string) *ListDevicesInput {
  2797. s.FleetArn = &v
  2798. return s
  2799. }
  2800. // SetMaxResults sets the MaxResults field's value.
  2801. func (s *ListDevicesInput) SetMaxResults(v int64) *ListDevicesInput {
  2802. s.MaxResults = &v
  2803. return s
  2804. }
  2805. // SetNextToken sets the NextToken field's value.
  2806. func (s *ListDevicesInput) SetNextToken(v string) *ListDevicesInput {
  2807. s.NextToken = &v
  2808. return s
  2809. }
  2810. type ListDevicesOutput struct {
  2811. _ struct{} `type:"structure"`
  2812. // Information about the devices.
  2813. Devices []*DeviceSummary `type:"list"`
  2814. // The pagination token used to retrieve the next page of results for this operation.
  2815. // If there are no more pages, this value is null.
  2816. NextToken *string `min:"1" type:"string"`
  2817. }
  2818. // String returns the string representation
  2819. func (s ListDevicesOutput) String() string {
  2820. return awsutil.Prettify(s)
  2821. }
  2822. // GoString returns the string representation
  2823. func (s ListDevicesOutput) GoString() string {
  2824. return s.String()
  2825. }
  2826. // SetDevices sets the Devices field's value.
  2827. func (s *ListDevicesOutput) SetDevices(v []*DeviceSummary) *ListDevicesOutput {
  2828. s.Devices = v
  2829. return s
  2830. }
  2831. // SetNextToken sets the NextToken field's value.
  2832. func (s *ListDevicesOutput) SetNextToken(v string) *ListDevicesOutput {
  2833. s.NextToken = &v
  2834. return s
  2835. }
  2836. type ListFleetsInput struct {
  2837. _ struct{} `type:"structure"`
  2838. // The maximum number of results to be included in the next page.
  2839. MaxResults *int64 `min:"1" type:"integer"`
  2840. // The pagination token used to retrieve the next page of results for this operation.
  2841. // If this value is null, it retrieves the first page.
  2842. NextToken *string `min:"1" type:"string"`
  2843. }
  2844. // String returns the string representation
  2845. func (s ListFleetsInput) String() string {
  2846. return awsutil.Prettify(s)
  2847. }
  2848. // GoString returns the string representation
  2849. func (s ListFleetsInput) GoString() string {
  2850. return s.String()
  2851. }
  2852. // Validate inspects the fields of the type to determine if they are valid.
  2853. func (s *ListFleetsInput) Validate() error {
  2854. invalidParams := request.ErrInvalidParams{Context: "ListFleetsInput"}
  2855. if s.MaxResults != nil && *s.MaxResults < 1 {
  2856. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  2857. }
  2858. if s.NextToken != nil && len(*s.NextToken) < 1 {
  2859. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  2860. }
  2861. if invalidParams.Len() > 0 {
  2862. return invalidParams
  2863. }
  2864. return nil
  2865. }
  2866. // SetMaxResults sets the MaxResults field's value.
  2867. func (s *ListFleetsInput) SetMaxResults(v int64) *ListFleetsInput {
  2868. s.MaxResults = &v
  2869. return s
  2870. }
  2871. // SetNextToken sets the NextToken field's value.
  2872. func (s *ListFleetsInput) SetNextToken(v string) *ListFleetsInput {
  2873. s.NextToken = &v
  2874. return s
  2875. }
  2876. type ListFleetsOutput struct {
  2877. _ struct{} `type:"structure"`
  2878. // The summary list of the fleets.
  2879. FleetSummaryList []*FleetSummary `type:"list"`
  2880. // The pagination token used to retrieve the next page of results for this operation.
  2881. // If there are no more pages, this value is null.
  2882. NextToken *string `min:"1" type:"string"`
  2883. }
  2884. // String returns the string representation
  2885. func (s ListFleetsOutput) String() string {
  2886. return awsutil.Prettify(s)
  2887. }
  2888. // GoString returns the string representation
  2889. func (s ListFleetsOutput) GoString() string {
  2890. return s.String()
  2891. }
  2892. // SetFleetSummaryList sets the FleetSummaryList field's value.
  2893. func (s *ListFleetsOutput) SetFleetSummaryList(v []*FleetSummary) *ListFleetsOutput {
  2894. s.FleetSummaryList = v
  2895. return s
  2896. }
  2897. // SetNextToken sets the NextToken field's value.
  2898. func (s *ListFleetsOutput) SetNextToken(v string) *ListFleetsOutput {
  2899. s.NextToken = &v
  2900. return s
  2901. }
  2902. type ListWebsiteCertificateAuthoritiesInput struct {
  2903. _ struct{} `type:"structure"`
  2904. // The ARN of the fleet.
  2905. //
  2906. // FleetArn is a required field
  2907. FleetArn *string `min:"20" type:"string" required:"true"`
  2908. // The maximum number of results to be included in the next page.
  2909. MaxResults *int64 `min:"1" type:"integer"`
  2910. // The pagination token used to retrieve the next page of results for this operation.
  2911. // If this value is null, it retrieves the first page.
  2912. NextToken *string `min:"1" type:"string"`
  2913. }
  2914. // String returns the string representation
  2915. func (s ListWebsiteCertificateAuthoritiesInput) String() string {
  2916. return awsutil.Prettify(s)
  2917. }
  2918. // GoString returns the string representation
  2919. func (s ListWebsiteCertificateAuthoritiesInput) GoString() string {
  2920. return s.String()
  2921. }
  2922. // Validate inspects the fields of the type to determine if they are valid.
  2923. func (s *ListWebsiteCertificateAuthoritiesInput) Validate() error {
  2924. invalidParams := request.ErrInvalidParams{Context: "ListWebsiteCertificateAuthoritiesInput"}
  2925. if s.FleetArn == nil {
  2926. invalidParams.Add(request.NewErrParamRequired("FleetArn"))
  2927. }
  2928. if s.FleetArn != nil && len(*s.FleetArn) < 20 {
  2929. invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
  2930. }
  2931. if s.MaxResults != nil && *s.MaxResults < 1 {
  2932. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  2933. }
  2934. if s.NextToken != nil && len(*s.NextToken) < 1 {
  2935. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  2936. }
  2937. if invalidParams.Len() > 0 {
  2938. return invalidParams
  2939. }
  2940. return nil
  2941. }
  2942. // SetFleetArn sets the FleetArn field's value.
  2943. func (s *ListWebsiteCertificateAuthoritiesInput) SetFleetArn(v string) *ListWebsiteCertificateAuthoritiesInput {
  2944. s.FleetArn = &v
  2945. return s
  2946. }
  2947. // SetMaxResults sets the MaxResults field's value.
  2948. func (s *ListWebsiteCertificateAuthoritiesInput) SetMaxResults(v int64) *ListWebsiteCertificateAuthoritiesInput {
  2949. s.MaxResults = &v
  2950. return s
  2951. }
  2952. // SetNextToken sets the NextToken field's value.
  2953. func (s *ListWebsiteCertificateAuthoritiesInput) SetNextToken(v string) *ListWebsiteCertificateAuthoritiesInput {
  2954. s.NextToken = &v
  2955. return s
  2956. }
  2957. type ListWebsiteCertificateAuthoritiesOutput struct {
  2958. _ struct{} `type:"structure"`
  2959. // The pagination token used to retrieve the next page of results for this operation.
  2960. // If there are no more pages, this value is null.
  2961. NextToken *string `min:"1" type:"string"`
  2962. // Information about the certificates.
  2963. WebsiteCertificateAuthorities []*WebsiteCaSummary `type:"list"`
  2964. }
  2965. // String returns the string representation
  2966. func (s ListWebsiteCertificateAuthoritiesOutput) String() string {
  2967. return awsutil.Prettify(s)
  2968. }
  2969. // GoString returns the string representation
  2970. func (s ListWebsiteCertificateAuthoritiesOutput) GoString() string {
  2971. return s.String()
  2972. }
  2973. // SetNextToken sets the NextToken field's value.
  2974. func (s *ListWebsiteCertificateAuthoritiesOutput) SetNextToken(v string) *ListWebsiteCertificateAuthoritiesOutput {
  2975. s.NextToken = &v
  2976. return s
  2977. }
  2978. // SetWebsiteCertificateAuthorities sets the WebsiteCertificateAuthorities field's value.
  2979. func (s *ListWebsiteCertificateAuthoritiesOutput) SetWebsiteCertificateAuthorities(v []*WebsiteCaSummary) *ListWebsiteCertificateAuthoritiesOutput {
  2980. s.WebsiteCertificateAuthorities = v
  2981. return s
  2982. }
  2983. type SignOutUserInput struct {
  2984. _ struct{} `type:"structure"`
  2985. // The ARN of the fleet.
  2986. //
  2987. // FleetArn is a required field
  2988. FleetArn *string `min:"20" type:"string" required:"true"`
  2989. // The name of the user.
  2990. //
  2991. // Username is a required field
  2992. Username *string `min:"1" type:"string" required:"true"`
  2993. }
  2994. // String returns the string representation
  2995. func (s SignOutUserInput) String() string {
  2996. return awsutil.Prettify(s)
  2997. }
  2998. // GoString returns the string representation
  2999. func (s SignOutUserInput) GoString() string {
  3000. return s.String()
  3001. }
  3002. // Validate inspects the fields of the type to determine if they are valid.
  3003. func (s *SignOutUserInput) Validate() error {
  3004. invalidParams := request.ErrInvalidParams{Context: "SignOutUserInput"}
  3005. if s.FleetArn == nil {
  3006. invalidParams.Add(request.NewErrParamRequired("FleetArn"))
  3007. }
  3008. if s.FleetArn != nil && len(*s.FleetArn) < 20 {
  3009. invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
  3010. }
  3011. if s.Username == nil {
  3012. invalidParams.Add(request.NewErrParamRequired("Username"))
  3013. }
  3014. if s.Username != nil && len(*s.Username) < 1 {
  3015. invalidParams.Add(request.NewErrParamMinLen("Username", 1))
  3016. }
  3017. if invalidParams.Len() > 0 {
  3018. return invalidParams
  3019. }
  3020. return nil
  3021. }
  3022. // SetFleetArn sets the FleetArn field's value.
  3023. func (s *SignOutUserInput) SetFleetArn(v string) *SignOutUserInput {
  3024. s.FleetArn = &v
  3025. return s
  3026. }
  3027. // SetUsername sets the Username field's value.
  3028. func (s *SignOutUserInput) SetUsername(v string) *SignOutUserInput {
  3029. s.Username = &v
  3030. return s
  3031. }
  3032. type SignOutUserOutput struct {
  3033. _ struct{} `type:"structure"`
  3034. }
  3035. // String returns the string representation
  3036. func (s SignOutUserOutput) String() string {
  3037. return awsutil.Prettify(s)
  3038. }
  3039. // GoString returns the string representation
  3040. func (s SignOutUserOutput) GoString() string {
  3041. return s.String()
  3042. }
  3043. type UpdateAuditStreamConfigurationInput struct {
  3044. _ struct{} `type:"structure"`
  3045. // The ARN of the Amazon Kinesis data stream that receives the audit events.
  3046. AuditStreamArn *string `type:"string"`
  3047. // The ARN of the fleet.
  3048. //
  3049. // FleetArn is a required field
  3050. FleetArn *string `min:"20" type:"string" required:"true"`
  3051. }
  3052. // String returns the string representation
  3053. func (s UpdateAuditStreamConfigurationInput) String() string {
  3054. return awsutil.Prettify(s)
  3055. }
  3056. // GoString returns the string representation
  3057. func (s UpdateAuditStreamConfigurationInput) GoString() string {
  3058. return s.String()
  3059. }
  3060. // Validate inspects the fields of the type to determine if they are valid.
  3061. func (s *UpdateAuditStreamConfigurationInput) Validate() error {
  3062. invalidParams := request.ErrInvalidParams{Context: "UpdateAuditStreamConfigurationInput"}
  3063. if s.FleetArn == nil {
  3064. invalidParams.Add(request.NewErrParamRequired("FleetArn"))
  3065. }
  3066. if s.FleetArn != nil && len(*s.FleetArn) < 20 {
  3067. invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
  3068. }
  3069. if invalidParams.Len() > 0 {
  3070. return invalidParams
  3071. }
  3072. return nil
  3073. }
  3074. // SetAuditStreamArn sets the AuditStreamArn field's value.
  3075. func (s *UpdateAuditStreamConfigurationInput) SetAuditStreamArn(v string) *UpdateAuditStreamConfigurationInput {
  3076. s.AuditStreamArn = &v
  3077. return s
  3078. }
  3079. // SetFleetArn sets the FleetArn field's value.
  3080. func (s *UpdateAuditStreamConfigurationInput) SetFleetArn(v string) *UpdateAuditStreamConfigurationInput {
  3081. s.FleetArn = &v
  3082. return s
  3083. }
  3084. type UpdateAuditStreamConfigurationOutput struct {
  3085. _ struct{} `type:"structure"`
  3086. }
  3087. // String returns the string representation
  3088. func (s UpdateAuditStreamConfigurationOutput) String() string {
  3089. return awsutil.Prettify(s)
  3090. }
  3091. // GoString returns the string representation
  3092. func (s UpdateAuditStreamConfigurationOutput) GoString() string {
  3093. return s.String()
  3094. }
  3095. type UpdateCompanyNetworkConfigurationInput struct {
  3096. _ struct{} `type:"structure"`
  3097. // The ARN of the fleet.
  3098. //
  3099. // FleetArn is a required field
  3100. FleetArn *string `min:"20" type:"string" required:"true"`
  3101. // The security groups associated with access to the provided subnets.
  3102. //
  3103. // SecurityGroupIds is a required field
  3104. SecurityGroupIds []*string `type:"list" required:"true"`
  3105. // The subnets used for X-ENI connections from Amazon WorkLink rendering containers.
  3106. //
  3107. // SubnetIds is a required field
  3108. SubnetIds []*string `type:"list" required:"true"`
  3109. // The VPC with connectivity to associated websites.
  3110. //
  3111. // VpcId is a required field
  3112. VpcId *string `type:"string" required:"true"`
  3113. }
  3114. // String returns the string representation
  3115. func (s UpdateCompanyNetworkConfigurationInput) String() string {
  3116. return awsutil.Prettify(s)
  3117. }
  3118. // GoString returns the string representation
  3119. func (s UpdateCompanyNetworkConfigurationInput) GoString() string {
  3120. return s.String()
  3121. }
  3122. // Validate inspects the fields of the type to determine if they are valid.
  3123. func (s *UpdateCompanyNetworkConfigurationInput) Validate() error {
  3124. invalidParams := request.ErrInvalidParams{Context: "UpdateCompanyNetworkConfigurationInput"}
  3125. if s.FleetArn == nil {
  3126. invalidParams.Add(request.NewErrParamRequired("FleetArn"))
  3127. }
  3128. if s.FleetArn != nil && len(*s.FleetArn) < 20 {
  3129. invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
  3130. }
  3131. if s.SecurityGroupIds == nil {
  3132. invalidParams.Add(request.NewErrParamRequired("SecurityGroupIds"))
  3133. }
  3134. if s.SubnetIds == nil {
  3135. invalidParams.Add(request.NewErrParamRequired("SubnetIds"))
  3136. }
  3137. if s.VpcId == nil {
  3138. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  3139. }
  3140. if invalidParams.Len() > 0 {
  3141. return invalidParams
  3142. }
  3143. return nil
  3144. }
  3145. // SetFleetArn sets the FleetArn field's value.
  3146. func (s *UpdateCompanyNetworkConfigurationInput) SetFleetArn(v string) *UpdateCompanyNetworkConfigurationInput {
  3147. s.FleetArn = &v
  3148. return s
  3149. }
  3150. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  3151. func (s *UpdateCompanyNetworkConfigurationInput) SetSecurityGroupIds(v []*string) *UpdateCompanyNetworkConfigurationInput {
  3152. s.SecurityGroupIds = v
  3153. return s
  3154. }
  3155. // SetSubnetIds sets the SubnetIds field's value.
  3156. func (s *UpdateCompanyNetworkConfigurationInput) SetSubnetIds(v []*string) *UpdateCompanyNetworkConfigurationInput {
  3157. s.SubnetIds = v
  3158. return s
  3159. }
  3160. // SetVpcId sets the VpcId field's value.
  3161. func (s *UpdateCompanyNetworkConfigurationInput) SetVpcId(v string) *UpdateCompanyNetworkConfigurationInput {
  3162. s.VpcId = &v
  3163. return s
  3164. }
  3165. type UpdateCompanyNetworkConfigurationOutput struct {
  3166. _ struct{} `type:"structure"`
  3167. }
  3168. // String returns the string representation
  3169. func (s UpdateCompanyNetworkConfigurationOutput) String() string {
  3170. return awsutil.Prettify(s)
  3171. }
  3172. // GoString returns the string representation
  3173. func (s UpdateCompanyNetworkConfigurationOutput) GoString() string {
  3174. return s.String()
  3175. }
  3176. type UpdateDevicePolicyConfigurationInput struct {
  3177. _ struct{} `type:"structure"`
  3178. // The certificate chain, including intermediate certificates and the root certificate
  3179. // authority certificate used to issue device certificates.
  3180. DeviceCaCertificate *string `min:"1" type:"string"`
  3181. // The ARN of the fleet.
  3182. //
  3183. // FleetArn is a required field
  3184. FleetArn *string `min:"20" type:"string" required:"true"`
  3185. }
  3186. // String returns the string representation
  3187. func (s UpdateDevicePolicyConfigurationInput) String() string {
  3188. return awsutil.Prettify(s)
  3189. }
  3190. // GoString returns the string representation
  3191. func (s UpdateDevicePolicyConfigurationInput) GoString() string {
  3192. return s.String()
  3193. }
  3194. // Validate inspects the fields of the type to determine if they are valid.
  3195. func (s *UpdateDevicePolicyConfigurationInput) Validate() error {
  3196. invalidParams := request.ErrInvalidParams{Context: "UpdateDevicePolicyConfigurationInput"}
  3197. if s.DeviceCaCertificate != nil && len(*s.DeviceCaCertificate) < 1 {
  3198. invalidParams.Add(request.NewErrParamMinLen("DeviceCaCertificate", 1))
  3199. }
  3200. if s.FleetArn == nil {
  3201. invalidParams.Add(request.NewErrParamRequired("FleetArn"))
  3202. }
  3203. if s.FleetArn != nil && len(*s.FleetArn) < 20 {
  3204. invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
  3205. }
  3206. if invalidParams.Len() > 0 {
  3207. return invalidParams
  3208. }
  3209. return nil
  3210. }
  3211. // SetDeviceCaCertificate sets the DeviceCaCertificate field's value.
  3212. func (s *UpdateDevicePolicyConfigurationInput) SetDeviceCaCertificate(v string) *UpdateDevicePolicyConfigurationInput {
  3213. s.DeviceCaCertificate = &v
  3214. return s
  3215. }
  3216. // SetFleetArn sets the FleetArn field's value.
  3217. func (s *UpdateDevicePolicyConfigurationInput) SetFleetArn(v string) *UpdateDevicePolicyConfigurationInput {
  3218. s.FleetArn = &v
  3219. return s
  3220. }
  3221. type UpdateDevicePolicyConfigurationOutput struct {
  3222. _ struct{} `type:"structure"`
  3223. }
  3224. // String returns the string representation
  3225. func (s UpdateDevicePolicyConfigurationOutput) String() string {
  3226. return awsutil.Prettify(s)
  3227. }
  3228. // GoString returns the string representation
  3229. func (s UpdateDevicePolicyConfigurationOutput) GoString() string {
  3230. return s.String()
  3231. }
  3232. type UpdateFleetMetadataInput struct {
  3233. _ struct{} `type:"structure"`
  3234. // The fleet name to display. The existing DisplayName is unset if null is passed.
  3235. DisplayName *string `type:"string"`
  3236. // The ARN of the fleet.
  3237. //
  3238. // FleetArn is a required field
  3239. FleetArn *string `min:"20" type:"string" required:"true"`
  3240. // The option to optimize for better performance by routing traffic through
  3241. // the closest AWS Region to users, which may be outside of your home Region.
  3242. OptimizeForEndUserLocation *bool `type:"boolean"`
  3243. }
  3244. // String returns the string representation
  3245. func (s UpdateFleetMetadataInput) String() string {
  3246. return awsutil.Prettify(s)
  3247. }
  3248. // GoString returns the string representation
  3249. func (s UpdateFleetMetadataInput) GoString() string {
  3250. return s.String()
  3251. }
  3252. // Validate inspects the fields of the type to determine if they are valid.
  3253. func (s *UpdateFleetMetadataInput) Validate() error {
  3254. invalidParams := request.ErrInvalidParams{Context: "UpdateFleetMetadataInput"}
  3255. if s.FleetArn == nil {
  3256. invalidParams.Add(request.NewErrParamRequired("FleetArn"))
  3257. }
  3258. if s.FleetArn != nil && len(*s.FleetArn) < 20 {
  3259. invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
  3260. }
  3261. if invalidParams.Len() > 0 {
  3262. return invalidParams
  3263. }
  3264. return nil
  3265. }
  3266. // SetDisplayName sets the DisplayName field's value.
  3267. func (s *UpdateFleetMetadataInput) SetDisplayName(v string) *UpdateFleetMetadataInput {
  3268. s.DisplayName = &v
  3269. return s
  3270. }
  3271. // SetFleetArn sets the FleetArn field's value.
  3272. func (s *UpdateFleetMetadataInput) SetFleetArn(v string) *UpdateFleetMetadataInput {
  3273. s.FleetArn = &v
  3274. return s
  3275. }
  3276. // SetOptimizeForEndUserLocation sets the OptimizeForEndUserLocation field's value.
  3277. func (s *UpdateFleetMetadataInput) SetOptimizeForEndUserLocation(v bool) *UpdateFleetMetadataInput {
  3278. s.OptimizeForEndUserLocation = &v
  3279. return s
  3280. }
  3281. type UpdateFleetMetadataOutput struct {
  3282. _ struct{} `type:"structure"`
  3283. }
  3284. // String returns the string representation
  3285. func (s UpdateFleetMetadataOutput) String() string {
  3286. return awsutil.Prettify(s)
  3287. }
  3288. // GoString returns the string representation
  3289. func (s UpdateFleetMetadataOutput) GoString() string {
  3290. return s.String()
  3291. }
  3292. type UpdateIdentityProviderConfigurationInput struct {
  3293. _ struct{} `type:"structure"`
  3294. // The ARN of the fleet.
  3295. //
  3296. // FleetArn is a required field
  3297. FleetArn *string `min:"20" type:"string" required:"true"`
  3298. // The SAML metadata document provided by the customer’s identity provider.
  3299. // The existing IdentityProviderSamlMetadata is unset if null is passed.
  3300. IdentityProviderSamlMetadata *string `min:"1" type:"string"`
  3301. // The type of identity provider.
  3302. //
  3303. // IdentityProviderType is a required field
  3304. IdentityProviderType *string `type:"string" required:"true" enum:"IdentityProviderType"`
  3305. }
  3306. // String returns the string representation
  3307. func (s UpdateIdentityProviderConfigurationInput) String() string {
  3308. return awsutil.Prettify(s)
  3309. }
  3310. // GoString returns the string representation
  3311. func (s UpdateIdentityProviderConfigurationInput) GoString() string {
  3312. return s.String()
  3313. }
  3314. // Validate inspects the fields of the type to determine if they are valid.
  3315. func (s *UpdateIdentityProviderConfigurationInput) Validate() error {
  3316. invalidParams := request.ErrInvalidParams{Context: "UpdateIdentityProviderConfigurationInput"}
  3317. if s.FleetArn == nil {
  3318. invalidParams.Add(request.NewErrParamRequired("FleetArn"))
  3319. }
  3320. if s.FleetArn != nil && len(*s.FleetArn) < 20 {
  3321. invalidParams.Add(request.NewErrParamMinLen("FleetArn", 20))
  3322. }
  3323. if s.IdentityProviderSamlMetadata != nil && len(*s.IdentityProviderSamlMetadata) < 1 {
  3324. invalidParams.Add(request.NewErrParamMinLen("IdentityProviderSamlMetadata", 1))
  3325. }
  3326. if s.IdentityProviderType == nil {
  3327. invalidParams.Add(request.NewErrParamRequired("IdentityProviderType"))
  3328. }
  3329. if invalidParams.Len() > 0 {
  3330. return invalidParams
  3331. }
  3332. return nil
  3333. }
  3334. // SetFleetArn sets the FleetArn field's value.
  3335. func (s *UpdateIdentityProviderConfigurationInput) SetFleetArn(v string) *UpdateIdentityProviderConfigurationInput {
  3336. s.FleetArn = &v
  3337. return s
  3338. }
  3339. // SetIdentityProviderSamlMetadata sets the IdentityProviderSamlMetadata field's value.
  3340. func (s *UpdateIdentityProviderConfigurationInput) SetIdentityProviderSamlMetadata(v string) *UpdateIdentityProviderConfigurationInput {
  3341. s.IdentityProviderSamlMetadata = &v
  3342. return s
  3343. }
  3344. // SetIdentityProviderType sets the IdentityProviderType field's value.
  3345. func (s *UpdateIdentityProviderConfigurationInput) SetIdentityProviderType(v string) *UpdateIdentityProviderConfigurationInput {
  3346. s.IdentityProviderType = &v
  3347. return s
  3348. }
  3349. type UpdateIdentityProviderConfigurationOutput struct {
  3350. _ struct{} `type:"structure"`
  3351. }
  3352. // String returns the string representation
  3353. func (s UpdateIdentityProviderConfigurationOutput) String() string {
  3354. return awsutil.Prettify(s)
  3355. }
  3356. // GoString returns the string representation
  3357. func (s UpdateIdentityProviderConfigurationOutput) GoString() string {
  3358. return s.String()
  3359. }
  3360. // The summary of the certificate authority (CA).
  3361. type WebsiteCaSummary struct {
  3362. _ struct{} `type:"structure"`
  3363. // The time when the CA was added.
  3364. CreatedTime *time.Time `type:"timestamp"`
  3365. // The name to display.
  3366. DisplayName *string `type:"string"`
  3367. // A unique identifier for the CA.
  3368. WebsiteCaId *string `min:"1" type:"string"`
  3369. }
  3370. // String returns the string representation
  3371. func (s WebsiteCaSummary) String() string {
  3372. return awsutil.Prettify(s)
  3373. }
  3374. // GoString returns the string representation
  3375. func (s WebsiteCaSummary) GoString() string {
  3376. return s.String()
  3377. }
  3378. // SetCreatedTime sets the CreatedTime field's value.
  3379. func (s *WebsiteCaSummary) SetCreatedTime(v time.Time) *WebsiteCaSummary {
  3380. s.CreatedTime = &v
  3381. return s
  3382. }
  3383. // SetDisplayName sets the DisplayName field's value.
  3384. func (s *WebsiteCaSummary) SetDisplayName(v string) *WebsiteCaSummary {
  3385. s.DisplayName = &v
  3386. return s
  3387. }
  3388. // SetWebsiteCaId sets the WebsiteCaId field's value.
  3389. func (s *WebsiteCaSummary) SetWebsiteCaId(v string) *WebsiteCaSummary {
  3390. s.WebsiteCaId = &v
  3391. return s
  3392. }
  3393. const (
  3394. // DeviceStatusActive is a DeviceStatus enum value
  3395. DeviceStatusActive = "ACTIVE"
  3396. // DeviceStatusSignedOut is a DeviceStatus enum value
  3397. DeviceStatusSignedOut = "SIGNED_OUT"
  3398. )
  3399. const (
  3400. // FleetStatusCreating is a FleetStatus enum value
  3401. FleetStatusCreating = "CREATING"
  3402. // FleetStatusActive is a FleetStatus enum value
  3403. FleetStatusActive = "ACTIVE"
  3404. // FleetStatusDeleting is a FleetStatus enum value
  3405. FleetStatusDeleting = "DELETING"
  3406. // FleetStatusDeleted is a FleetStatus enum value
  3407. FleetStatusDeleted = "DELETED"
  3408. // FleetStatusFailedToCreate is a FleetStatus enum value
  3409. FleetStatusFailedToCreate = "FAILED_TO_CREATE"
  3410. // FleetStatusFailedToDelete is a FleetStatus enum value
  3411. FleetStatusFailedToDelete = "FAILED_TO_DELETE"
  3412. )
  3413. const (
  3414. // IdentityProviderTypeSaml is a IdentityProviderType enum value
  3415. IdentityProviderTypeSaml = "SAML"
  3416. )