api.go 140 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260
  1. // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
  2. package codestar
  3. import (
  4. "fmt"
  5. "time"
  6. "github.com/aws/aws-sdk-go/aws"
  7. "github.com/aws/aws-sdk-go/aws/awsutil"
  8. "github.com/aws/aws-sdk-go/aws/request"
  9. "github.com/aws/aws-sdk-go/private/protocol"
  10. "github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
  11. )
  12. const opAssociateTeamMember = "AssociateTeamMember"
  13. // AssociateTeamMemberRequest generates a "aws/request.Request" representing the
  14. // client's request for the AssociateTeamMember operation. The "output" return
  15. // value will be populated with the request's response once the request completes
  16. // successfully.
  17. //
  18. // Use "Send" method on the returned Request to send the API call to the service.
  19. // the "output" return value is not valid until after Send returns without error.
  20. //
  21. // See AssociateTeamMember for more information on using the AssociateTeamMember
  22. // API call, and error handling.
  23. //
  24. // This method is useful when you want to inject custom logic or configuration
  25. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  26. //
  27. //
  28. // // Example sending a request using the AssociateTeamMemberRequest method.
  29. // req, resp := client.AssociateTeamMemberRequest(params)
  30. //
  31. // err := req.Send()
  32. // if err == nil { // resp is now filled
  33. // fmt.Println(resp)
  34. // }
  35. //
  36. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/AssociateTeamMember
  37. func (c *CodeStar) AssociateTeamMemberRequest(input *AssociateTeamMemberInput) (req *request.Request, output *AssociateTeamMemberOutput) {
  38. op := &request.Operation{
  39. Name: opAssociateTeamMember,
  40. HTTPMethod: "POST",
  41. HTTPPath: "/",
  42. }
  43. if input == nil {
  44. input = &AssociateTeamMemberInput{}
  45. }
  46. output = &AssociateTeamMemberOutput{}
  47. req = c.newRequest(op, input, output)
  48. return
  49. }
  50. // AssociateTeamMember API operation for AWS CodeStar.
  51. //
  52. // Adds an IAM user to the team for an AWS CodeStar project.
  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 AWS CodeStar's
  59. // API operation AssociateTeamMember for usage and error information.
  60. //
  61. // Returned Error Codes:
  62. // * ErrCodeLimitExceededException "LimitExceededException"
  63. // A resource limit has been exceeded.
  64. //
  65. // * ErrCodeProjectNotFoundException "ProjectNotFoundException"
  66. // The specified AWS CodeStar project was not found.
  67. //
  68. // * ErrCodeTeamMemberAlreadyAssociatedException "TeamMemberAlreadyAssociatedException"
  69. // The team member is already associated with a role in this project.
  70. //
  71. // * ErrCodeValidationException "ValidationException"
  72. // The specified input is either not valid, or it could not be validated.
  73. //
  74. // * ErrCodeInvalidServiceRoleException "InvalidServiceRoleException"
  75. // The service role is not valid.
  76. //
  77. // * ErrCodeProjectConfigurationException "ProjectConfigurationException"
  78. // Project configuration information is required but not specified.
  79. //
  80. // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
  81. // Another modification is being made. That modification must complete before
  82. // you can make your change.
  83. //
  84. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/AssociateTeamMember
  85. func (c *CodeStar) AssociateTeamMember(input *AssociateTeamMemberInput) (*AssociateTeamMemberOutput, error) {
  86. req, out := c.AssociateTeamMemberRequest(input)
  87. return out, req.Send()
  88. }
  89. // AssociateTeamMemberWithContext is the same as AssociateTeamMember with the addition of
  90. // the ability to pass a context and additional request options.
  91. //
  92. // See AssociateTeamMember for details on how to use this API operation.
  93. //
  94. // The context must be non-nil and will be used for request cancellation. If
  95. // the context is nil a panic will occur. In the future the SDK may create
  96. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  97. // for more information on using Contexts.
  98. func (c *CodeStar) AssociateTeamMemberWithContext(ctx aws.Context, input *AssociateTeamMemberInput, opts ...request.Option) (*AssociateTeamMemberOutput, error) {
  99. req, out := c.AssociateTeamMemberRequest(input)
  100. req.SetContext(ctx)
  101. req.ApplyOptions(opts...)
  102. return out, req.Send()
  103. }
  104. const opCreateProject = "CreateProject"
  105. // CreateProjectRequest generates a "aws/request.Request" representing the
  106. // client's request for the CreateProject operation. The "output" return
  107. // value will be populated with the request's response once the request completes
  108. // successfully.
  109. //
  110. // Use "Send" method on the returned Request to send the API call to the service.
  111. // the "output" return value is not valid until after Send returns without error.
  112. //
  113. // See CreateProject for more information on using the CreateProject
  114. // API call, and error handling.
  115. //
  116. // This method is useful when you want to inject custom logic or configuration
  117. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  118. //
  119. //
  120. // // Example sending a request using the CreateProjectRequest method.
  121. // req, resp := client.CreateProjectRequest(params)
  122. //
  123. // err := req.Send()
  124. // if err == nil { // resp is now filled
  125. // fmt.Println(resp)
  126. // }
  127. //
  128. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/CreateProject
  129. func (c *CodeStar) CreateProjectRequest(input *CreateProjectInput) (req *request.Request, output *CreateProjectOutput) {
  130. op := &request.Operation{
  131. Name: opCreateProject,
  132. HTTPMethod: "POST",
  133. HTTPPath: "/",
  134. }
  135. if input == nil {
  136. input = &CreateProjectInput{}
  137. }
  138. output = &CreateProjectOutput{}
  139. req = c.newRequest(op, input, output)
  140. return
  141. }
  142. // CreateProject API operation for AWS CodeStar.
  143. //
  144. // Creates a project, including project resources. This action creates a project
  145. // based on a submitted project request. A set of source code files and a toolchain
  146. // template file can be included with the project request. If these are not
  147. // provided, an empty project is created.
  148. //
  149. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  150. // with awserr.Error's Code and Message methods to get detailed information about
  151. // the error.
  152. //
  153. // See the AWS API reference guide for AWS CodeStar's
  154. // API operation CreateProject for usage and error information.
  155. //
  156. // Returned Error Codes:
  157. // * ErrCodeProjectAlreadyExistsException "ProjectAlreadyExistsException"
  158. // An AWS CodeStar project with the same ID already exists in this region for
  159. // the AWS account. AWS CodeStar project IDs must be unique within a region
  160. // for the AWS account.
  161. //
  162. // * ErrCodeLimitExceededException "LimitExceededException"
  163. // A resource limit has been exceeded.
  164. //
  165. // * ErrCodeValidationException "ValidationException"
  166. // The specified input is either not valid, or it could not be validated.
  167. //
  168. // * ErrCodeProjectCreationFailedException "ProjectCreationFailedException"
  169. // The project creation request was valid, but a nonspecific exception or error
  170. // occurred during project creation. The project could not be created in AWS
  171. // CodeStar.
  172. //
  173. // * ErrCodeInvalidServiceRoleException "InvalidServiceRoleException"
  174. // The service role is not valid.
  175. //
  176. // * ErrCodeProjectConfigurationException "ProjectConfigurationException"
  177. // Project configuration information is required but not specified.
  178. //
  179. // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
  180. // Another modification is being made. That modification must complete before
  181. // you can make your change.
  182. //
  183. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/CreateProject
  184. func (c *CodeStar) CreateProject(input *CreateProjectInput) (*CreateProjectOutput, error) {
  185. req, out := c.CreateProjectRequest(input)
  186. return out, req.Send()
  187. }
  188. // CreateProjectWithContext is the same as CreateProject with the addition of
  189. // the ability to pass a context and additional request options.
  190. //
  191. // See CreateProject for details on how to use this API operation.
  192. //
  193. // The context must be non-nil and will be used for request cancellation. If
  194. // the context is nil a panic will occur. In the future the SDK may create
  195. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  196. // for more information on using Contexts.
  197. func (c *CodeStar) CreateProjectWithContext(ctx aws.Context, input *CreateProjectInput, opts ...request.Option) (*CreateProjectOutput, error) {
  198. req, out := c.CreateProjectRequest(input)
  199. req.SetContext(ctx)
  200. req.ApplyOptions(opts...)
  201. return out, req.Send()
  202. }
  203. const opCreateUserProfile = "CreateUserProfile"
  204. // CreateUserProfileRequest generates a "aws/request.Request" representing the
  205. // client's request for the CreateUserProfile operation. The "output" return
  206. // value will be populated with the request's response once the request completes
  207. // successfully.
  208. //
  209. // Use "Send" method on the returned Request to send the API call to the service.
  210. // the "output" return value is not valid until after Send returns without error.
  211. //
  212. // See CreateUserProfile for more information on using the CreateUserProfile
  213. // API call, and error handling.
  214. //
  215. // This method is useful when you want to inject custom logic or configuration
  216. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  217. //
  218. //
  219. // // Example sending a request using the CreateUserProfileRequest method.
  220. // req, resp := client.CreateUserProfileRequest(params)
  221. //
  222. // err := req.Send()
  223. // if err == nil { // resp is now filled
  224. // fmt.Println(resp)
  225. // }
  226. //
  227. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/CreateUserProfile
  228. func (c *CodeStar) CreateUserProfileRequest(input *CreateUserProfileInput) (req *request.Request, output *CreateUserProfileOutput) {
  229. op := &request.Operation{
  230. Name: opCreateUserProfile,
  231. HTTPMethod: "POST",
  232. HTTPPath: "/",
  233. }
  234. if input == nil {
  235. input = &CreateUserProfileInput{}
  236. }
  237. output = &CreateUserProfileOutput{}
  238. req = c.newRequest(op, input, output)
  239. return
  240. }
  241. // CreateUserProfile API operation for AWS CodeStar.
  242. //
  243. // Creates a profile for a user that includes user preferences, such as the
  244. // display name and email address assocciated with the user, in AWS CodeStar.
  245. // The user profile is not project-specific. Information in the user profile
  246. // is displayed wherever the user's information appears to other users in AWS
  247. // CodeStar.
  248. //
  249. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  250. // with awserr.Error's Code and Message methods to get detailed information about
  251. // the error.
  252. //
  253. // See the AWS API reference guide for AWS CodeStar's
  254. // API operation CreateUserProfile for usage and error information.
  255. //
  256. // Returned Error Codes:
  257. // * ErrCodeUserProfileAlreadyExistsException "UserProfileAlreadyExistsException"
  258. // A user profile with that name already exists in this region for the AWS account.
  259. // AWS CodeStar user profile names must be unique within a region for the AWS
  260. // account.
  261. //
  262. // * ErrCodeValidationException "ValidationException"
  263. // The specified input is either not valid, or it could not be validated.
  264. //
  265. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/CreateUserProfile
  266. func (c *CodeStar) CreateUserProfile(input *CreateUserProfileInput) (*CreateUserProfileOutput, error) {
  267. req, out := c.CreateUserProfileRequest(input)
  268. return out, req.Send()
  269. }
  270. // CreateUserProfileWithContext is the same as CreateUserProfile with the addition of
  271. // the ability to pass a context and additional request options.
  272. //
  273. // See CreateUserProfile for details on how to use this API operation.
  274. //
  275. // The context must be non-nil and will be used for request cancellation. If
  276. // the context is nil a panic will occur. In the future the SDK may create
  277. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  278. // for more information on using Contexts.
  279. func (c *CodeStar) CreateUserProfileWithContext(ctx aws.Context, input *CreateUserProfileInput, opts ...request.Option) (*CreateUserProfileOutput, error) {
  280. req, out := c.CreateUserProfileRequest(input)
  281. req.SetContext(ctx)
  282. req.ApplyOptions(opts...)
  283. return out, req.Send()
  284. }
  285. const opDeleteProject = "DeleteProject"
  286. // DeleteProjectRequest generates a "aws/request.Request" representing the
  287. // client's request for the DeleteProject operation. The "output" return
  288. // value will be populated with the request's response once the request completes
  289. // successfully.
  290. //
  291. // Use "Send" method on the returned Request to send the API call to the service.
  292. // the "output" return value is not valid until after Send returns without error.
  293. //
  294. // See DeleteProject for more information on using the DeleteProject
  295. // API call, and error handling.
  296. //
  297. // This method is useful when you want to inject custom logic or configuration
  298. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  299. //
  300. //
  301. // // Example sending a request using the DeleteProjectRequest method.
  302. // req, resp := client.DeleteProjectRequest(params)
  303. //
  304. // err := req.Send()
  305. // if err == nil { // resp is now filled
  306. // fmt.Println(resp)
  307. // }
  308. //
  309. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/DeleteProject
  310. func (c *CodeStar) DeleteProjectRequest(input *DeleteProjectInput) (req *request.Request, output *DeleteProjectOutput) {
  311. op := &request.Operation{
  312. Name: opDeleteProject,
  313. HTTPMethod: "POST",
  314. HTTPPath: "/",
  315. }
  316. if input == nil {
  317. input = &DeleteProjectInput{}
  318. }
  319. output = &DeleteProjectOutput{}
  320. req = c.newRequest(op, input, output)
  321. return
  322. }
  323. // DeleteProject API operation for AWS CodeStar.
  324. //
  325. // Deletes a project, including project resources. Does not delete users associated
  326. // with the project, but does delete the IAM roles that allowed access to the
  327. // project.
  328. //
  329. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  330. // with awserr.Error's Code and Message methods to get detailed information about
  331. // the error.
  332. //
  333. // See the AWS API reference guide for AWS CodeStar's
  334. // API operation DeleteProject for usage and error information.
  335. //
  336. // Returned Error Codes:
  337. // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
  338. // Another modification is being made. That modification must complete before
  339. // you can make your change.
  340. //
  341. // * ErrCodeValidationException "ValidationException"
  342. // The specified input is either not valid, or it could not be validated.
  343. //
  344. // * ErrCodeInvalidServiceRoleException "InvalidServiceRoleException"
  345. // The service role is not valid.
  346. //
  347. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/DeleteProject
  348. func (c *CodeStar) DeleteProject(input *DeleteProjectInput) (*DeleteProjectOutput, error) {
  349. req, out := c.DeleteProjectRequest(input)
  350. return out, req.Send()
  351. }
  352. // DeleteProjectWithContext is the same as DeleteProject with the addition of
  353. // the ability to pass a context and additional request options.
  354. //
  355. // See DeleteProject for details on how to use this API operation.
  356. //
  357. // The context must be non-nil and will be used for request cancellation. If
  358. // the context is nil a panic will occur. In the future the SDK may create
  359. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  360. // for more information on using Contexts.
  361. func (c *CodeStar) DeleteProjectWithContext(ctx aws.Context, input *DeleteProjectInput, opts ...request.Option) (*DeleteProjectOutput, error) {
  362. req, out := c.DeleteProjectRequest(input)
  363. req.SetContext(ctx)
  364. req.ApplyOptions(opts...)
  365. return out, req.Send()
  366. }
  367. const opDeleteUserProfile = "DeleteUserProfile"
  368. // DeleteUserProfileRequest generates a "aws/request.Request" representing the
  369. // client's request for the DeleteUserProfile operation. The "output" return
  370. // value will be populated with the request's response once the request completes
  371. // successfully.
  372. //
  373. // Use "Send" method on the returned Request to send the API call to the service.
  374. // the "output" return value is not valid until after Send returns without error.
  375. //
  376. // See DeleteUserProfile for more information on using the DeleteUserProfile
  377. // API call, and error handling.
  378. //
  379. // This method is useful when you want to inject custom logic or configuration
  380. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  381. //
  382. //
  383. // // Example sending a request using the DeleteUserProfileRequest method.
  384. // req, resp := client.DeleteUserProfileRequest(params)
  385. //
  386. // err := req.Send()
  387. // if err == nil { // resp is now filled
  388. // fmt.Println(resp)
  389. // }
  390. //
  391. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/DeleteUserProfile
  392. func (c *CodeStar) DeleteUserProfileRequest(input *DeleteUserProfileInput) (req *request.Request, output *DeleteUserProfileOutput) {
  393. op := &request.Operation{
  394. Name: opDeleteUserProfile,
  395. HTTPMethod: "POST",
  396. HTTPPath: "/",
  397. }
  398. if input == nil {
  399. input = &DeleteUserProfileInput{}
  400. }
  401. output = &DeleteUserProfileOutput{}
  402. req = c.newRequest(op, input, output)
  403. return
  404. }
  405. // DeleteUserProfile API operation for AWS CodeStar.
  406. //
  407. // Deletes a user profile in AWS CodeStar, including all personal preference
  408. // data associated with that profile, such as display name and email address.
  409. // It does not delete the history of that user, for example the history of commits
  410. // made by that user.
  411. //
  412. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  413. // with awserr.Error's Code and Message methods to get detailed information about
  414. // the error.
  415. //
  416. // See the AWS API reference guide for AWS CodeStar's
  417. // API operation DeleteUserProfile for usage and error information.
  418. //
  419. // Returned Error Codes:
  420. // * ErrCodeValidationException "ValidationException"
  421. // The specified input is either not valid, or it could not be validated.
  422. //
  423. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/DeleteUserProfile
  424. func (c *CodeStar) DeleteUserProfile(input *DeleteUserProfileInput) (*DeleteUserProfileOutput, error) {
  425. req, out := c.DeleteUserProfileRequest(input)
  426. return out, req.Send()
  427. }
  428. // DeleteUserProfileWithContext is the same as DeleteUserProfile with the addition of
  429. // the ability to pass a context and additional request options.
  430. //
  431. // See DeleteUserProfile for details on how to use this API operation.
  432. //
  433. // The context must be non-nil and will be used for request cancellation. If
  434. // the context is nil a panic will occur. In the future the SDK may create
  435. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  436. // for more information on using Contexts.
  437. func (c *CodeStar) DeleteUserProfileWithContext(ctx aws.Context, input *DeleteUserProfileInput, opts ...request.Option) (*DeleteUserProfileOutput, error) {
  438. req, out := c.DeleteUserProfileRequest(input)
  439. req.SetContext(ctx)
  440. req.ApplyOptions(opts...)
  441. return out, req.Send()
  442. }
  443. const opDescribeProject = "DescribeProject"
  444. // DescribeProjectRequest generates a "aws/request.Request" representing the
  445. // client's request for the DescribeProject operation. The "output" return
  446. // value will be populated with the request's response once the request completes
  447. // successfully.
  448. //
  449. // Use "Send" method on the returned Request to send the API call to the service.
  450. // the "output" return value is not valid until after Send returns without error.
  451. //
  452. // See DescribeProject for more information on using the DescribeProject
  453. // API call, and error handling.
  454. //
  455. // This method is useful when you want to inject custom logic or configuration
  456. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  457. //
  458. //
  459. // // Example sending a request using the DescribeProjectRequest method.
  460. // req, resp := client.DescribeProjectRequest(params)
  461. //
  462. // err := req.Send()
  463. // if err == nil { // resp is now filled
  464. // fmt.Println(resp)
  465. // }
  466. //
  467. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/DescribeProject
  468. func (c *CodeStar) DescribeProjectRequest(input *DescribeProjectInput) (req *request.Request, output *DescribeProjectOutput) {
  469. op := &request.Operation{
  470. Name: opDescribeProject,
  471. HTTPMethod: "POST",
  472. HTTPPath: "/",
  473. }
  474. if input == nil {
  475. input = &DescribeProjectInput{}
  476. }
  477. output = &DescribeProjectOutput{}
  478. req = c.newRequest(op, input, output)
  479. return
  480. }
  481. // DescribeProject API operation for AWS CodeStar.
  482. //
  483. // Describes a project and its resources.
  484. //
  485. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  486. // with awserr.Error's Code and Message methods to get detailed information about
  487. // the error.
  488. //
  489. // See the AWS API reference guide for AWS CodeStar's
  490. // API operation DescribeProject for usage and error information.
  491. //
  492. // Returned Error Codes:
  493. // * ErrCodeProjectNotFoundException "ProjectNotFoundException"
  494. // The specified AWS CodeStar project was not found.
  495. //
  496. // * ErrCodeValidationException "ValidationException"
  497. // The specified input is either not valid, or it could not be validated.
  498. //
  499. // * ErrCodeInvalidServiceRoleException "InvalidServiceRoleException"
  500. // The service role is not valid.
  501. //
  502. // * ErrCodeProjectConfigurationException "ProjectConfigurationException"
  503. // Project configuration information is required but not specified.
  504. //
  505. // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
  506. // Another modification is being made. That modification must complete before
  507. // you can make your change.
  508. //
  509. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/DescribeProject
  510. func (c *CodeStar) DescribeProject(input *DescribeProjectInput) (*DescribeProjectOutput, error) {
  511. req, out := c.DescribeProjectRequest(input)
  512. return out, req.Send()
  513. }
  514. // DescribeProjectWithContext is the same as DescribeProject with the addition of
  515. // the ability to pass a context and additional request options.
  516. //
  517. // See DescribeProject for details on how to use this API operation.
  518. //
  519. // The context must be non-nil and will be used for request cancellation. If
  520. // the context is nil a panic will occur. In the future the SDK may create
  521. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  522. // for more information on using Contexts.
  523. func (c *CodeStar) DescribeProjectWithContext(ctx aws.Context, input *DescribeProjectInput, opts ...request.Option) (*DescribeProjectOutput, error) {
  524. req, out := c.DescribeProjectRequest(input)
  525. req.SetContext(ctx)
  526. req.ApplyOptions(opts...)
  527. return out, req.Send()
  528. }
  529. const opDescribeUserProfile = "DescribeUserProfile"
  530. // DescribeUserProfileRequest generates a "aws/request.Request" representing the
  531. // client's request for the DescribeUserProfile operation. The "output" return
  532. // value will be populated with the request's response once the request completes
  533. // successfully.
  534. //
  535. // Use "Send" method on the returned Request to send the API call to the service.
  536. // the "output" return value is not valid until after Send returns without error.
  537. //
  538. // See DescribeUserProfile for more information on using the DescribeUserProfile
  539. // API call, and error handling.
  540. //
  541. // This method is useful when you want to inject custom logic or configuration
  542. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  543. //
  544. //
  545. // // Example sending a request using the DescribeUserProfileRequest method.
  546. // req, resp := client.DescribeUserProfileRequest(params)
  547. //
  548. // err := req.Send()
  549. // if err == nil { // resp is now filled
  550. // fmt.Println(resp)
  551. // }
  552. //
  553. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/DescribeUserProfile
  554. func (c *CodeStar) DescribeUserProfileRequest(input *DescribeUserProfileInput) (req *request.Request, output *DescribeUserProfileOutput) {
  555. op := &request.Operation{
  556. Name: opDescribeUserProfile,
  557. HTTPMethod: "POST",
  558. HTTPPath: "/",
  559. }
  560. if input == nil {
  561. input = &DescribeUserProfileInput{}
  562. }
  563. output = &DescribeUserProfileOutput{}
  564. req = c.newRequest(op, input, output)
  565. return
  566. }
  567. // DescribeUserProfile API operation for AWS CodeStar.
  568. //
  569. // Describes a user in AWS CodeStar and the user attributes across all projects.
  570. //
  571. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  572. // with awserr.Error's Code and Message methods to get detailed information about
  573. // the error.
  574. //
  575. // See the AWS API reference guide for AWS CodeStar's
  576. // API operation DescribeUserProfile for usage and error information.
  577. //
  578. // Returned Error Codes:
  579. // * ErrCodeUserProfileNotFoundException "UserProfileNotFoundException"
  580. // The user profile was not found.
  581. //
  582. // * ErrCodeValidationException "ValidationException"
  583. // The specified input is either not valid, or it could not be validated.
  584. //
  585. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/DescribeUserProfile
  586. func (c *CodeStar) DescribeUserProfile(input *DescribeUserProfileInput) (*DescribeUserProfileOutput, error) {
  587. req, out := c.DescribeUserProfileRequest(input)
  588. return out, req.Send()
  589. }
  590. // DescribeUserProfileWithContext is the same as DescribeUserProfile with the addition of
  591. // the ability to pass a context and additional request options.
  592. //
  593. // See DescribeUserProfile for details on how to use this API operation.
  594. //
  595. // The context must be non-nil and will be used for request cancellation. If
  596. // the context is nil a panic will occur. In the future the SDK may create
  597. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  598. // for more information on using Contexts.
  599. func (c *CodeStar) DescribeUserProfileWithContext(ctx aws.Context, input *DescribeUserProfileInput, opts ...request.Option) (*DescribeUserProfileOutput, error) {
  600. req, out := c.DescribeUserProfileRequest(input)
  601. req.SetContext(ctx)
  602. req.ApplyOptions(opts...)
  603. return out, req.Send()
  604. }
  605. const opDisassociateTeamMember = "DisassociateTeamMember"
  606. // DisassociateTeamMemberRequest generates a "aws/request.Request" representing the
  607. // client's request for the DisassociateTeamMember operation. The "output" return
  608. // value will be populated with the request's response once the request completes
  609. // successfully.
  610. //
  611. // Use "Send" method on the returned Request to send the API call to the service.
  612. // the "output" return value is not valid until after Send returns without error.
  613. //
  614. // See DisassociateTeamMember for more information on using the DisassociateTeamMember
  615. // API call, and error handling.
  616. //
  617. // This method is useful when you want to inject custom logic or configuration
  618. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  619. //
  620. //
  621. // // Example sending a request using the DisassociateTeamMemberRequest method.
  622. // req, resp := client.DisassociateTeamMemberRequest(params)
  623. //
  624. // err := req.Send()
  625. // if err == nil { // resp is now filled
  626. // fmt.Println(resp)
  627. // }
  628. //
  629. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/DisassociateTeamMember
  630. func (c *CodeStar) DisassociateTeamMemberRequest(input *DisassociateTeamMemberInput) (req *request.Request, output *DisassociateTeamMemberOutput) {
  631. op := &request.Operation{
  632. Name: opDisassociateTeamMember,
  633. HTTPMethod: "POST",
  634. HTTPPath: "/",
  635. }
  636. if input == nil {
  637. input = &DisassociateTeamMemberInput{}
  638. }
  639. output = &DisassociateTeamMemberOutput{}
  640. req = c.newRequest(op, input, output)
  641. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  642. return
  643. }
  644. // DisassociateTeamMember API operation for AWS CodeStar.
  645. //
  646. // Removes a user from a project. Removing a user from a project also removes
  647. // the IAM policies from that user that allowed access to the project and its
  648. // resources. Disassociating a team member does not remove that user's profile
  649. // from AWS CodeStar. It does not remove the user from IAM.
  650. //
  651. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  652. // with awserr.Error's Code and Message methods to get detailed information about
  653. // the error.
  654. //
  655. // See the AWS API reference guide for AWS CodeStar's
  656. // API operation DisassociateTeamMember for usage and error information.
  657. //
  658. // Returned Error Codes:
  659. // * ErrCodeProjectNotFoundException "ProjectNotFoundException"
  660. // The specified AWS CodeStar project was not found.
  661. //
  662. // * ErrCodeValidationException "ValidationException"
  663. // The specified input is either not valid, or it could not be validated.
  664. //
  665. // * ErrCodeInvalidServiceRoleException "InvalidServiceRoleException"
  666. // The service role is not valid.
  667. //
  668. // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
  669. // Another modification is being made. That modification must complete before
  670. // you can make your change.
  671. //
  672. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/DisassociateTeamMember
  673. func (c *CodeStar) DisassociateTeamMember(input *DisassociateTeamMemberInput) (*DisassociateTeamMemberOutput, error) {
  674. req, out := c.DisassociateTeamMemberRequest(input)
  675. return out, req.Send()
  676. }
  677. // DisassociateTeamMemberWithContext is the same as DisassociateTeamMember with the addition of
  678. // the ability to pass a context and additional request options.
  679. //
  680. // See DisassociateTeamMember for details on how to use this API operation.
  681. //
  682. // The context must be non-nil and will be used for request cancellation. If
  683. // the context is nil a panic will occur. In the future the SDK may create
  684. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  685. // for more information on using Contexts.
  686. func (c *CodeStar) DisassociateTeamMemberWithContext(ctx aws.Context, input *DisassociateTeamMemberInput, opts ...request.Option) (*DisassociateTeamMemberOutput, error) {
  687. req, out := c.DisassociateTeamMemberRequest(input)
  688. req.SetContext(ctx)
  689. req.ApplyOptions(opts...)
  690. return out, req.Send()
  691. }
  692. const opListProjects = "ListProjects"
  693. // ListProjectsRequest generates a "aws/request.Request" representing the
  694. // client's request for the ListProjects operation. The "output" return
  695. // value will be populated with the request's response once the request completes
  696. // successfully.
  697. //
  698. // Use "Send" method on the returned Request to send the API call to the service.
  699. // the "output" return value is not valid until after Send returns without error.
  700. //
  701. // See ListProjects for more information on using the ListProjects
  702. // API call, and error handling.
  703. //
  704. // This method is useful when you want to inject custom logic or configuration
  705. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  706. //
  707. //
  708. // // Example sending a request using the ListProjectsRequest method.
  709. // req, resp := client.ListProjectsRequest(params)
  710. //
  711. // err := req.Send()
  712. // if err == nil { // resp is now filled
  713. // fmt.Println(resp)
  714. // }
  715. //
  716. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/ListProjects
  717. func (c *CodeStar) ListProjectsRequest(input *ListProjectsInput) (req *request.Request, output *ListProjectsOutput) {
  718. op := &request.Operation{
  719. Name: opListProjects,
  720. HTTPMethod: "POST",
  721. HTTPPath: "/",
  722. }
  723. if input == nil {
  724. input = &ListProjectsInput{}
  725. }
  726. output = &ListProjectsOutput{}
  727. req = c.newRequest(op, input, output)
  728. return
  729. }
  730. // ListProjects API operation for AWS CodeStar.
  731. //
  732. // Lists all projects in AWS CodeStar associated with your AWS account.
  733. //
  734. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  735. // with awserr.Error's Code and Message methods to get detailed information about
  736. // the error.
  737. //
  738. // See the AWS API reference guide for AWS CodeStar's
  739. // API operation ListProjects for usage and error information.
  740. //
  741. // Returned Error Codes:
  742. // * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
  743. // The next token is not valid.
  744. //
  745. // * ErrCodeValidationException "ValidationException"
  746. // The specified input is either not valid, or it could not be validated.
  747. //
  748. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/ListProjects
  749. func (c *CodeStar) ListProjects(input *ListProjectsInput) (*ListProjectsOutput, error) {
  750. req, out := c.ListProjectsRequest(input)
  751. return out, req.Send()
  752. }
  753. // ListProjectsWithContext is the same as ListProjects with the addition of
  754. // the ability to pass a context and additional request options.
  755. //
  756. // See ListProjects for details on how to use this API operation.
  757. //
  758. // The context must be non-nil and will be used for request cancellation. If
  759. // the context is nil a panic will occur. In the future the SDK may create
  760. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  761. // for more information on using Contexts.
  762. func (c *CodeStar) ListProjectsWithContext(ctx aws.Context, input *ListProjectsInput, opts ...request.Option) (*ListProjectsOutput, error) {
  763. req, out := c.ListProjectsRequest(input)
  764. req.SetContext(ctx)
  765. req.ApplyOptions(opts...)
  766. return out, req.Send()
  767. }
  768. const opListResources = "ListResources"
  769. // ListResourcesRequest generates a "aws/request.Request" representing the
  770. // client's request for the ListResources operation. The "output" return
  771. // value will be populated with the request's response once the request completes
  772. // successfully.
  773. //
  774. // Use "Send" method on the returned Request to send the API call to the service.
  775. // the "output" return value is not valid until after Send returns without error.
  776. //
  777. // See ListResources for more information on using the ListResources
  778. // API call, and error handling.
  779. //
  780. // This method is useful when you want to inject custom logic or configuration
  781. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  782. //
  783. //
  784. // // Example sending a request using the ListResourcesRequest method.
  785. // req, resp := client.ListResourcesRequest(params)
  786. //
  787. // err := req.Send()
  788. // if err == nil { // resp is now filled
  789. // fmt.Println(resp)
  790. // }
  791. //
  792. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/ListResources
  793. func (c *CodeStar) ListResourcesRequest(input *ListResourcesInput) (req *request.Request, output *ListResourcesOutput) {
  794. op := &request.Operation{
  795. Name: opListResources,
  796. HTTPMethod: "POST",
  797. HTTPPath: "/",
  798. }
  799. if input == nil {
  800. input = &ListResourcesInput{}
  801. }
  802. output = &ListResourcesOutput{}
  803. req = c.newRequest(op, input, output)
  804. return
  805. }
  806. // ListResources API operation for AWS CodeStar.
  807. //
  808. // Lists resources associated with a project in AWS CodeStar.
  809. //
  810. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  811. // with awserr.Error's Code and Message methods to get detailed information about
  812. // the error.
  813. //
  814. // See the AWS API reference guide for AWS CodeStar's
  815. // API operation ListResources for usage and error information.
  816. //
  817. // Returned Error Codes:
  818. // * ErrCodeProjectNotFoundException "ProjectNotFoundException"
  819. // The specified AWS CodeStar project was not found.
  820. //
  821. // * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
  822. // The next token is not valid.
  823. //
  824. // * ErrCodeValidationException "ValidationException"
  825. // The specified input is either not valid, or it could not be validated.
  826. //
  827. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/ListResources
  828. func (c *CodeStar) ListResources(input *ListResourcesInput) (*ListResourcesOutput, error) {
  829. req, out := c.ListResourcesRequest(input)
  830. return out, req.Send()
  831. }
  832. // ListResourcesWithContext is the same as ListResources with the addition of
  833. // the ability to pass a context and additional request options.
  834. //
  835. // See ListResources for details on how to use this API operation.
  836. //
  837. // The context must be non-nil and will be used for request cancellation. If
  838. // the context is nil a panic will occur. In the future the SDK may create
  839. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  840. // for more information on using Contexts.
  841. func (c *CodeStar) ListResourcesWithContext(ctx aws.Context, input *ListResourcesInput, opts ...request.Option) (*ListResourcesOutput, error) {
  842. req, out := c.ListResourcesRequest(input)
  843. req.SetContext(ctx)
  844. req.ApplyOptions(opts...)
  845. return out, req.Send()
  846. }
  847. const opListTagsForProject = "ListTagsForProject"
  848. // ListTagsForProjectRequest generates a "aws/request.Request" representing the
  849. // client's request for the ListTagsForProject operation. The "output" return
  850. // value will be populated with the request's response once the request completes
  851. // successfully.
  852. //
  853. // Use "Send" method on the returned Request to send the API call to the service.
  854. // the "output" return value is not valid until after Send returns without error.
  855. //
  856. // See ListTagsForProject for more information on using the ListTagsForProject
  857. // API call, and error handling.
  858. //
  859. // This method is useful when you want to inject custom logic or configuration
  860. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  861. //
  862. //
  863. // // Example sending a request using the ListTagsForProjectRequest method.
  864. // req, resp := client.ListTagsForProjectRequest(params)
  865. //
  866. // err := req.Send()
  867. // if err == nil { // resp is now filled
  868. // fmt.Println(resp)
  869. // }
  870. //
  871. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/ListTagsForProject
  872. func (c *CodeStar) ListTagsForProjectRequest(input *ListTagsForProjectInput) (req *request.Request, output *ListTagsForProjectOutput) {
  873. op := &request.Operation{
  874. Name: opListTagsForProject,
  875. HTTPMethod: "POST",
  876. HTTPPath: "/",
  877. }
  878. if input == nil {
  879. input = &ListTagsForProjectInput{}
  880. }
  881. output = &ListTagsForProjectOutput{}
  882. req = c.newRequest(op, input, output)
  883. return
  884. }
  885. // ListTagsForProject API operation for AWS CodeStar.
  886. //
  887. // Gets the tags for a project.
  888. //
  889. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  890. // with awserr.Error's Code and Message methods to get detailed information about
  891. // the error.
  892. //
  893. // See the AWS API reference guide for AWS CodeStar's
  894. // API operation ListTagsForProject for usage and error information.
  895. //
  896. // Returned Error Codes:
  897. // * ErrCodeProjectNotFoundException "ProjectNotFoundException"
  898. // The specified AWS CodeStar project was not found.
  899. //
  900. // * ErrCodeValidationException "ValidationException"
  901. // The specified input is either not valid, or it could not be validated.
  902. //
  903. // * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
  904. // The next token is not valid.
  905. //
  906. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/ListTagsForProject
  907. func (c *CodeStar) ListTagsForProject(input *ListTagsForProjectInput) (*ListTagsForProjectOutput, error) {
  908. req, out := c.ListTagsForProjectRequest(input)
  909. return out, req.Send()
  910. }
  911. // ListTagsForProjectWithContext is the same as ListTagsForProject with the addition of
  912. // the ability to pass a context and additional request options.
  913. //
  914. // See ListTagsForProject for details on how to use this API operation.
  915. //
  916. // The context must be non-nil and will be used for request cancellation. If
  917. // the context is nil a panic will occur. In the future the SDK may create
  918. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  919. // for more information on using Contexts.
  920. func (c *CodeStar) ListTagsForProjectWithContext(ctx aws.Context, input *ListTagsForProjectInput, opts ...request.Option) (*ListTagsForProjectOutput, error) {
  921. req, out := c.ListTagsForProjectRequest(input)
  922. req.SetContext(ctx)
  923. req.ApplyOptions(opts...)
  924. return out, req.Send()
  925. }
  926. const opListTeamMembers = "ListTeamMembers"
  927. // ListTeamMembersRequest generates a "aws/request.Request" representing the
  928. // client's request for the ListTeamMembers operation. The "output" return
  929. // value will be populated with the request's response once the request completes
  930. // successfully.
  931. //
  932. // Use "Send" method on the returned Request to send the API call to the service.
  933. // the "output" return value is not valid until after Send returns without error.
  934. //
  935. // See ListTeamMembers for more information on using the ListTeamMembers
  936. // API call, and error handling.
  937. //
  938. // This method is useful when you want to inject custom logic or configuration
  939. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  940. //
  941. //
  942. // // Example sending a request using the ListTeamMembersRequest method.
  943. // req, resp := client.ListTeamMembersRequest(params)
  944. //
  945. // err := req.Send()
  946. // if err == nil { // resp is now filled
  947. // fmt.Println(resp)
  948. // }
  949. //
  950. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/ListTeamMembers
  951. func (c *CodeStar) ListTeamMembersRequest(input *ListTeamMembersInput) (req *request.Request, output *ListTeamMembersOutput) {
  952. op := &request.Operation{
  953. Name: opListTeamMembers,
  954. HTTPMethod: "POST",
  955. HTTPPath: "/",
  956. }
  957. if input == nil {
  958. input = &ListTeamMembersInput{}
  959. }
  960. output = &ListTeamMembersOutput{}
  961. req = c.newRequest(op, input, output)
  962. return
  963. }
  964. // ListTeamMembers API operation for AWS CodeStar.
  965. //
  966. // Lists all team members associated with a project.
  967. //
  968. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  969. // with awserr.Error's Code and Message methods to get detailed information about
  970. // the error.
  971. //
  972. // See the AWS API reference guide for AWS CodeStar's
  973. // API operation ListTeamMembers for usage and error information.
  974. //
  975. // Returned Error Codes:
  976. // * ErrCodeProjectNotFoundException "ProjectNotFoundException"
  977. // The specified AWS CodeStar project was not found.
  978. //
  979. // * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
  980. // The next token is not valid.
  981. //
  982. // * ErrCodeValidationException "ValidationException"
  983. // The specified input is either not valid, or it could not be validated.
  984. //
  985. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/ListTeamMembers
  986. func (c *CodeStar) ListTeamMembers(input *ListTeamMembersInput) (*ListTeamMembersOutput, error) {
  987. req, out := c.ListTeamMembersRequest(input)
  988. return out, req.Send()
  989. }
  990. // ListTeamMembersWithContext is the same as ListTeamMembers with the addition of
  991. // the ability to pass a context and additional request options.
  992. //
  993. // See ListTeamMembers for details on how to use this API operation.
  994. //
  995. // The context must be non-nil and will be used for request cancellation. If
  996. // the context is nil a panic will occur. In the future the SDK may create
  997. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  998. // for more information on using Contexts.
  999. func (c *CodeStar) ListTeamMembersWithContext(ctx aws.Context, input *ListTeamMembersInput, opts ...request.Option) (*ListTeamMembersOutput, error) {
  1000. req, out := c.ListTeamMembersRequest(input)
  1001. req.SetContext(ctx)
  1002. req.ApplyOptions(opts...)
  1003. return out, req.Send()
  1004. }
  1005. const opListUserProfiles = "ListUserProfiles"
  1006. // ListUserProfilesRequest generates a "aws/request.Request" representing the
  1007. // client's request for the ListUserProfiles operation. The "output" return
  1008. // value will be populated with the request's response once the request completes
  1009. // successfully.
  1010. //
  1011. // Use "Send" method on the returned Request to send the API call to the service.
  1012. // the "output" return value is not valid until after Send returns without error.
  1013. //
  1014. // See ListUserProfiles for more information on using the ListUserProfiles
  1015. // API call, and error handling.
  1016. //
  1017. // This method is useful when you want to inject custom logic or configuration
  1018. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1019. //
  1020. //
  1021. // // Example sending a request using the ListUserProfilesRequest method.
  1022. // req, resp := client.ListUserProfilesRequest(params)
  1023. //
  1024. // err := req.Send()
  1025. // if err == nil { // resp is now filled
  1026. // fmt.Println(resp)
  1027. // }
  1028. //
  1029. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/ListUserProfiles
  1030. func (c *CodeStar) ListUserProfilesRequest(input *ListUserProfilesInput) (req *request.Request, output *ListUserProfilesOutput) {
  1031. op := &request.Operation{
  1032. Name: opListUserProfiles,
  1033. HTTPMethod: "POST",
  1034. HTTPPath: "/",
  1035. }
  1036. if input == nil {
  1037. input = &ListUserProfilesInput{}
  1038. }
  1039. output = &ListUserProfilesOutput{}
  1040. req = c.newRequest(op, input, output)
  1041. return
  1042. }
  1043. // ListUserProfiles API operation for AWS CodeStar.
  1044. //
  1045. // Lists all the user profiles configured for your AWS account in AWS CodeStar.
  1046. //
  1047. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1048. // with awserr.Error's Code and Message methods to get detailed information about
  1049. // the error.
  1050. //
  1051. // See the AWS API reference guide for AWS CodeStar's
  1052. // API operation ListUserProfiles for usage and error information.
  1053. //
  1054. // Returned Error Codes:
  1055. // * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
  1056. // The next token is not valid.
  1057. //
  1058. // * ErrCodeValidationException "ValidationException"
  1059. // The specified input is either not valid, or it could not be validated.
  1060. //
  1061. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/ListUserProfiles
  1062. func (c *CodeStar) ListUserProfiles(input *ListUserProfilesInput) (*ListUserProfilesOutput, error) {
  1063. req, out := c.ListUserProfilesRequest(input)
  1064. return out, req.Send()
  1065. }
  1066. // ListUserProfilesWithContext is the same as ListUserProfiles with the addition of
  1067. // the ability to pass a context and additional request options.
  1068. //
  1069. // See ListUserProfiles for details on how to use this API operation.
  1070. //
  1071. // The context must be non-nil and will be used for request cancellation. If
  1072. // the context is nil a panic will occur. In the future the SDK may create
  1073. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1074. // for more information on using Contexts.
  1075. func (c *CodeStar) ListUserProfilesWithContext(ctx aws.Context, input *ListUserProfilesInput, opts ...request.Option) (*ListUserProfilesOutput, error) {
  1076. req, out := c.ListUserProfilesRequest(input)
  1077. req.SetContext(ctx)
  1078. req.ApplyOptions(opts...)
  1079. return out, req.Send()
  1080. }
  1081. const opTagProject = "TagProject"
  1082. // TagProjectRequest generates a "aws/request.Request" representing the
  1083. // client's request for the TagProject operation. The "output" return
  1084. // value will be populated with the request's response once the request completes
  1085. // successfully.
  1086. //
  1087. // Use "Send" method on the returned Request to send the API call to the service.
  1088. // the "output" return value is not valid until after Send returns without error.
  1089. //
  1090. // See TagProject for more information on using the TagProject
  1091. // API call, and error handling.
  1092. //
  1093. // This method is useful when you want to inject custom logic or configuration
  1094. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1095. //
  1096. //
  1097. // // Example sending a request using the TagProjectRequest method.
  1098. // req, resp := client.TagProjectRequest(params)
  1099. //
  1100. // err := req.Send()
  1101. // if err == nil { // resp is now filled
  1102. // fmt.Println(resp)
  1103. // }
  1104. //
  1105. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/TagProject
  1106. func (c *CodeStar) TagProjectRequest(input *TagProjectInput) (req *request.Request, output *TagProjectOutput) {
  1107. op := &request.Operation{
  1108. Name: opTagProject,
  1109. HTTPMethod: "POST",
  1110. HTTPPath: "/",
  1111. }
  1112. if input == nil {
  1113. input = &TagProjectInput{}
  1114. }
  1115. output = &TagProjectOutput{}
  1116. req = c.newRequest(op, input, output)
  1117. return
  1118. }
  1119. // TagProject API operation for AWS CodeStar.
  1120. //
  1121. // Adds tags to a project.
  1122. //
  1123. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1124. // with awserr.Error's Code and Message methods to get detailed information about
  1125. // the error.
  1126. //
  1127. // See the AWS API reference guide for AWS CodeStar's
  1128. // API operation TagProject for usage and error information.
  1129. //
  1130. // Returned Error Codes:
  1131. // * ErrCodeProjectNotFoundException "ProjectNotFoundException"
  1132. // The specified AWS CodeStar project was not found.
  1133. //
  1134. // * ErrCodeValidationException "ValidationException"
  1135. // The specified input is either not valid, or it could not be validated.
  1136. //
  1137. // * ErrCodeLimitExceededException "LimitExceededException"
  1138. // A resource limit has been exceeded.
  1139. //
  1140. // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
  1141. // Another modification is being made. That modification must complete before
  1142. // you can make your change.
  1143. //
  1144. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/TagProject
  1145. func (c *CodeStar) TagProject(input *TagProjectInput) (*TagProjectOutput, error) {
  1146. req, out := c.TagProjectRequest(input)
  1147. return out, req.Send()
  1148. }
  1149. // TagProjectWithContext is the same as TagProject with the addition of
  1150. // the ability to pass a context and additional request options.
  1151. //
  1152. // See TagProject for details on how to use this API operation.
  1153. //
  1154. // The context must be non-nil and will be used for request cancellation. If
  1155. // the context is nil a panic will occur. In the future the SDK may create
  1156. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1157. // for more information on using Contexts.
  1158. func (c *CodeStar) TagProjectWithContext(ctx aws.Context, input *TagProjectInput, opts ...request.Option) (*TagProjectOutput, error) {
  1159. req, out := c.TagProjectRequest(input)
  1160. req.SetContext(ctx)
  1161. req.ApplyOptions(opts...)
  1162. return out, req.Send()
  1163. }
  1164. const opUntagProject = "UntagProject"
  1165. // UntagProjectRequest generates a "aws/request.Request" representing the
  1166. // client's request for the UntagProject operation. The "output" return
  1167. // value will be populated with the request's response once the request completes
  1168. // successfully.
  1169. //
  1170. // Use "Send" method on the returned Request to send the API call to the service.
  1171. // the "output" return value is not valid until after Send returns without error.
  1172. //
  1173. // See UntagProject for more information on using the UntagProject
  1174. // API call, and error handling.
  1175. //
  1176. // This method is useful when you want to inject custom logic or configuration
  1177. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1178. //
  1179. //
  1180. // // Example sending a request using the UntagProjectRequest method.
  1181. // req, resp := client.UntagProjectRequest(params)
  1182. //
  1183. // err := req.Send()
  1184. // if err == nil { // resp is now filled
  1185. // fmt.Println(resp)
  1186. // }
  1187. //
  1188. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/UntagProject
  1189. func (c *CodeStar) UntagProjectRequest(input *UntagProjectInput) (req *request.Request, output *UntagProjectOutput) {
  1190. op := &request.Operation{
  1191. Name: opUntagProject,
  1192. HTTPMethod: "POST",
  1193. HTTPPath: "/",
  1194. }
  1195. if input == nil {
  1196. input = &UntagProjectInput{}
  1197. }
  1198. output = &UntagProjectOutput{}
  1199. req = c.newRequest(op, input, output)
  1200. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1201. return
  1202. }
  1203. // UntagProject API operation for AWS CodeStar.
  1204. //
  1205. // Removes tags from a project.
  1206. //
  1207. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1208. // with awserr.Error's Code and Message methods to get detailed information about
  1209. // the error.
  1210. //
  1211. // See the AWS API reference guide for AWS CodeStar's
  1212. // API operation UntagProject for usage and error information.
  1213. //
  1214. // Returned Error Codes:
  1215. // * ErrCodeProjectNotFoundException "ProjectNotFoundException"
  1216. // The specified AWS CodeStar project was not found.
  1217. //
  1218. // * ErrCodeValidationException "ValidationException"
  1219. // The specified input is either not valid, or it could not be validated.
  1220. //
  1221. // * ErrCodeLimitExceededException "LimitExceededException"
  1222. // A resource limit has been exceeded.
  1223. //
  1224. // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
  1225. // Another modification is being made. That modification must complete before
  1226. // you can make your change.
  1227. //
  1228. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/UntagProject
  1229. func (c *CodeStar) UntagProject(input *UntagProjectInput) (*UntagProjectOutput, error) {
  1230. req, out := c.UntagProjectRequest(input)
  1231. return out, req.Send()
  1232. }
  1233. // UntagProjectWithContext is the same as UntagProject with the addition of
  1234. // the ability to pass a context and additional request options.
  1235. //
  1236. // See UntagProject for details on how to use this API operation.
  1237. //
  1238. // The context must be non-nil and will be used for request cancellation. If
  1239. // the context is nil a panic will occur. In the future the SDK may create
  1240. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1241. // for more information on using Contexts.
  1242. func (c *CodeStar) UntagProjectWithContext(ctx aws.Context, input *UntagProjectInput, opts ...request.Option) (*UntagProjectOutput, error) {
  1243. req, out := c.UntagProjectRequest(input)
  1244. req.SetContext(ctx)
  1245. req.ApplyOptions(opts...)
  1246. return out, req.Send()
  1247. }
  1248. const opUpdateProject = "UpdateProject"
  1249. // UpdateProjectRequest generates a "aws/request.Request" representing the
  1250. // client's request for the UpdateProject operation. The "output" return
  1251. // value will be populated with the request's response once the request completes
  1252. // successfully.
  1253. //
  1254. // Use "Send" method on the returned Request to send the API call to the service.
  1255. // the "output" return value is not valid until after Send returns without error.
  1256. //
  1257. // See UpdateProject for more information on using the UpdateProject
  1258. // API call, and error handling.
  1259. //
  1260. // This method is useful when you want to inject custom logic or configuration
  1261. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1262. //
  1263. //
  1264. // // Example sending a request using the UpdateProjectRequest method.
  1265. // req, resp := client.UpdateProjectRequest(params)
  1266. //
  1267. // err := req.Send()
  1268. // if err == nil { // resp is now filled
  1269. // fmt.Println(resp)
  1270. // }
  1271. //
  1272. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/UpdateProject
  1273. func (c *CodeStar) UpdateProjectRequest(input *UpdateProjectInput) (req *request.Request, output *UpdateProjectOutput) {
  1274. op := &request.Operation{
  1275. Name: opUpdateProject,
  1276. HTTPMethod: "POST",
  1277. HTTPPath: "/",
  1278. }
  1279. if input == nil {
  1280. input = &UpdateProjectInput{}
  1281. }
  1282. output = &UpdateProjectOutput{}
  1283. req = c.newRequest(op, input, output)
  1284. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1285. return
  1286. }
  1287. // UpdateProject API operation for AWS CodeStar.
  1288. //
  1289. // Updates a project in AWS CodeStar.
  1290. //
  1291. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1292. // with awserr.Error's Code and Message methods to get detailed information about
  1293. // the error.
  1294. //
  1295. // See the AWS API reference guide for AWS CodeStar's
  1296. // API operation UpdateProject for usage and error information.
  1297. //
  1298. // Returned Error Codes:
  1299. // * ErrCodeProjectNotFoundException "ProjectNotFoundException"
  1300. // The specified AWS CodeStar project was not found.
  1301. //
  1302. // * ErrCodeValidationException "ValidationException"
  1303. // The specified input is either not valid, or it could not be validated.
  1304. //
  1305. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/UpdateProject
  1306. func (c *CodeStar) UpdateProject(input *UpdateProjectInput) (*UpdateProjectOutput, error) {
  1307. req, out := c.UpdateProjectRequest(input)
  1308. return out, req.Send()
  1309. }
  1310. // UpdateProjectWithContext is the same as UpdateProject with the addition of
  1311. // the ability to pass a context and additional request options.
  1312. //
  1313. // See UpdateProject for details on how to use this API operation.
  1314. //
  1315. // The context must be non-nil and will be used for request cancellation. If
  1316. // the context is nil a panic will occur. In the future the SDK may create
  1317. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1318. // for more information on using Contexts.
  1319. func (c *CodeStar) UpdateProjectWithContext(ctx aws.Context, input *UpdateProjectInput, opts ...request.Option) (*UpdateProjectOutput, error) {
  1320. req, out := c.UpdateProjectRequest(input)
  1321. req.SetContext(ctx)
  1322. req.ApplyOptions(opts...)
  1323. return out, req.Send()
  1324. }
  1325. const opUpdateTeamMember = "UpdateTeamMember"
  1326. // UpdateTeamMemberRequest generates a "aws/request.Request" representing the
  1327. // client's request for the UpdateTeamMember operation. The "output" return
  1328. // value will be populated with the request's response once the request completes
  1329. // successfully.
  1330. //
  1331. // Use "Send" method on the returned Request to send the API call to the service.
  1332. // the "output" return value is not valid until after Send returns without error.
  1333. //
  1334. // See UpdateTeamMember for more information on using the UpdateTeamMember
  1335. // API call, and error handling.
  1336. //
  1337. // This method is useful when you want to inject custom logic or configuration
  1338. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1339. //
  1340. //
  1341. // // Example sending a request using the UpdateTeamMemberRequest method.
  1342. // req, resp := client.UpdateTeamMemberRequest(params)
  1343. //
  1344. // err := req.Send()
  1345. // if err == nil { // resp is now filled
  1346. // fmt.Println(resp)
  1347. // }
  1348. //
  1349. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/UpdateTeamMember
  1350. func (c *CodeStar) UpdateTeamMemberRequest(input *UpdateTeamMemberInput) (req *request.Request, output *UpdateTeamMemberOutput) {
  1351. op := &request.Operation{
  1352. Name: opUpdateTeamMember,
  1353. HTTPMethod: "POST",
  1354. HTTPPath: "/",
  1355. }
  1356. if input == nil {
  1357. input = &UpdateTeamMemberInput{}
  1358. }
  1359. output = &UpdateTeamMemberOutput{}
  1360. req = c.newRequest(op, input, output)
  1361. return
  1362. }
  1363. // UpdateTeamMember API operation for AWS CodeStar.
  1364. //
  1365. // Updates a team member's attributes in an AWS CodeStar project. For example,
  1366. // you can change a team member's role in the project, or change whether they
  1367. // have remote access to project resources.
  1368. //
  1369. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1370. // with awserr.Error's Code and Message methods to get detailed information about
  1371. // the error.
  1372. //
  1373. // See the AWS API reference guide for AWS CodeStar's
  1374. // API operation UpdateTeamMember for usage and error information.
  1375. //
  1376. // Returned Error Codes:
  1377. // * ErrCodeLimitExceededException "LimitExceededException"
  1378. // A resource limit has been exceeded.
  1379. //
  1380. // * ErrCodeProjectNotFoundException "ProjectNotFoundException"
  1381. // The specified AWS CodeStar project was not found.
  1382. //
  1383. // * ErrCodeValidationException "ValidationException"
  1384. // The specified input is either not valid, or it could not be validated.
  1385. //
  1386. // * ErrCodeInvalidServiceRoleException "InvalidServiceRoleException"
  1387. // The service role is not valid.
  1388. //
  1389. // * ErrCodeProjectConfigurationException "ProjectConfigurationException"
  1390. // Project configuration information is required but not specified.
  1391. //
  1392. // * ErrCodeConcurrentModificationException "ConcurrentModificationException"
  1393. // Another modification is being made. That modification must complete before
  1394. // you can make your change.
  1395. //
  1396. // * ErrCodeTeamMemberNotFoundException "TeamMemberNotFoundException"
  1397. // The specified team member was not found.
  1398. //
  1399. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/UpdateTeamMember
  1400. func (c *CodeStar) UpdateTeamMember(input *UpdateTeamMemberInput) (*UpdateTeamMemberOutput, error) {
  1401. req, out := c.UpdateTeamMemberRequest(input)
  1402. return out, req.Send()
  1403. }
  1404. // UpdateTeamMemberWithContext is the same as UpdateTeamMember with the addition of
  1405. // the ability to pass a context and additional request options.
  1406. //
  1407. // See UpdateTeamMember for details on how to use this API operation.
  1408. //
  1409. // The context must be non-nil and will be used for request cancellation. If
  1410. // the context is nil a panic will occur. In the future the SDK may create
  1411. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1412. // for more information on using Contexts.
  1413. func (c *CodeStar) UpdateTeamMemberWithContext(ctx aws.Context, input *UpdateTeamMemberInput, opts ...request.Option) (*UpdateTeamMemberOutput, error) {
  1414. req, out := c.UpdateTeamMemberRequest(input)
  1415. req.SetContext(ctx)
  1416. req.ApplyOptions(opts...)
  1417. return out, req.Send()
  1418. }
  1419. const opUpdateUserProfile = "UpdateUserProfile"
  1420. // UpdateUserProfileRequest generates a "aws/request.Request" representing the
  1421. // client's request for the UpdateUserProfile operation. The "output" return
  1422. // value will be populated with the request's response once the request completes
  1423. // successfully.
  1424. //
  1425. // Use "Send" method on the returned Request to send the API call to the service.
  1426. // the "output" return value is not valid until after Send returns without error.
  1427. //
  1428. // See UpdateUserProfile for more information on using the UpdateUserProfile
  1429. // API call, and error handling.
  1430. //
  1431. // This method is useful when you want to inject custom logic or configuration
  1432. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1433. //
  1434. //
  1435. // // Example sending a request using the UpdateUserProfileRequest method.
  1436. // req, resp := client.UpdateUserProfileRequest(params)
  1437. //
  1438. // err := req.Send()
  1439. // if err == nil { // resp is now filled
  1440. // fmt.Println(resp)
  1441. // }
  1442. //
  1443. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/UpdateUserProfile
  1444. func (c *CodeStar) UpdateUserProfileRequest(input *UpdateUserProfileInput) (req *request.Request, output *UpdateUserProfileOutput) {
  1445. op := &request.Operation{
  1446. Name: opUpdateUserProfile,
  1447. HTTPMethod: "POST",
  1448. HTTPPath: "/",
  1449. }
  1450. if input == nil {
  1451. input = &UpdateUserProfileInput{}
  1452. }
  1453. output = &UpdateUserProfileOutput{}
  1454. req = c.newRequest(op, input, output)
  1455. return
  1456. }
  1457. // UpdateUserProfile API operation for AWS CodeStar.
  1458. //
  1459. // Updates a user's profile in AWS CodeStar. The user profile is not project-specific.
  1460. // Information in the user profile is displayed wherever the user's information
  1461. // appears to other users in AWS CodeStar.
  1462. //
  1463. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1464. // with awserr.Error's Code and Message methods to get detailed information about
  1465. // the error.
  1466. //
  1467. // See the AWS API reference guide for AWS CodeStar's
  1468. // API operation UpdateUserProfile for usage and error information.
  1469. //
  1470. // Returned Error Codes:
  1471. // * ErrCodeUserProfileNotFoundException "UserProfileNotFoundException"
  1472. // The user profile was not found.
  1473. //
  1474. // * ErrCodeValidationException "ValidationException"
  1475. // The specified input is either not valid, or it could not be validated.
  1476. //
  1477. // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/UpdateUserProfile
  1478. func (c *CodeStar) UpdateUserProfile(input *UpdateUserProfileInput) (*UpdateUserProfileOutput, error) {
  1479. req, out := c.UpdateUserProfileRequest(input)
  1480. return out, req.Send()
  1481. }
  1482. // UpdateUserProfileWithContext is the same as UpdateUserProfile with the addition of
  1483. // the ability to pass a context and additional request options.
  1484. //
  1485. // See UpdateUserProfile for details on how to use this API operation.
  1486. //
  1487. // The context must be non-nil and will be used for request cancellation. If
  1488. // the context is nil a panic will occur. In the future the SDK may create
  1489. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1490. // for more information on using Contexts.
  1491. func (c *CodeStar) UpdateUserProfileWithContext(ctx aws.Context, input *UpdateUserProfileInput, opts ...request.Option) (*UpdateUserProfileOutput, error) {
  1492. req, out := c.UpdateUserProfileRequest(input)
  1493. req.SetContext(ctx)
  1494. req.ApplyOptions(opts...)
  1495. return out, req.Send()
  1496. }
  1497. type AssociateTeamMemberInput struct {
  1498. _ struct{} `type:"structure"`
  1499. // A user- or system-generated token that identifies the entity that requested
  1500. // the team member association to the project. This token can be used to repeat
  1501. // the request.
  1502. ClientRequestToken *string `locationName:"clientRequestToken" min:"1" type:"string"`
  1503. // The ID of the project to which you will add the IAM user.
  1504. //
  1505. // ProjectId is a required field
  1506. ProjectId *string `locationName:"projectId" min:"2" type:"string" required:"true"`
  1507. // The AWS CodeStar project role that will apply to this user. This role determines
  1508. // what actions a user can take in an AWS CodeStar project.
  1509. //
  1510. // ProjectRole is a required field
  1511. ProjectRole *string `locationName:"projectRole" type:"string" required:"true"`
  1512. // Whether the team member is allowed to use an SSH public/private key pair
  1513. // to remotely access project resources, for example Amazon EC2 instances.
  1514. RemoteAccessAllowed *bool `locationName:"remoteAccessAllowed" type:"boolean"`
  1515. // The Amazon Resource Name (ARN) for the IAM user you want to add to the AWS
  1516. // CodeStar project.
  1517. //
  1518. // UserArn is a required field
  1519. UserArn *string `locationName:"userArn" min:"32" type:"string" required:"true"`
  1520. }
  1521. // String returns the string representation
  1522. func (s AssociateTeamMemberInput) String() string {
  1523. return awsutil.Prettify(s)
  1524. }
  1525. // GoString returns the string representation
  1526. func (s AssociateTeamMemberInput) GoString() string {
  1527. return s.String()
  1528. }
  1529. // Validate inspects the fields of the type to determine if they are valid.
  1530. func (s *AssociateTeamMemberInput) Validate() error {
  1531. invalidParams := request.ErrInvalidParams{Context: "AssociateTeamMemberInput"}
  1532. if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 {
  1533. invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1))
  1534. }
  1535. if s.ProjectId == nil {
  1536. invalidParams.Add(request.NewErrParamRequired("ProjectId"))
  1537. }
  1538. if s.ProjectId != nil && len(*s.ProjectId) < 2 {
  1539. invalidParams.Add(request.NewErrParamMinLen("ProjectId", 2))
  1540. }
  1541. if s.ProjectRole == nil {
  1542. invalidParams.Add(request.NewErrParamRequired("ProjectRole"))
  1543. }
  1544. if s.UserArn == nil {
  1545. invalidParams.Add(request.NewErrParamRequired("UserArn"))
  1546. }
  1547. if s.UserArn != nil && len(*s.UserArn) < 32 {
  1548. invalidParams.Add(request.NewErrParamMinLen("UserArn", 32))
  1549. }
  1550. if invalidParams.Len() > 0 {
  1551. return invalidParams
  1552. }
  1553. return nil
  1554. }
  1555. // SetClientRequestToken sets the ClientRequestToken field's value.
  1556. func (s *AssociateTeamMemberInput) SetClientRequestToken(v string) *AssociateTeamMemberInput {
  1557. s.ClientRequestToken = &v
  1558. return s
  1559. }
  1560. // SetProjectId sets the ProjectId field's value.
  1561. func (s *AssociateTeamMemberInput) SetProjectId(v string) *AssociateTeamMemberInput {
  1562. s.ProjectId = &v
  1563. return s
  1564. }
  1565. // SetProjectRole sets the ProjectRole field's value.
  1566. func (s *AssociateTeamMemberInput) SetProjectRole(v string) *AssociateTeamMemberInput {
  1567. s.ProjectRole = &v
  1568. return s
  1569. }
  1570. // SetRemoteAccessAllowed sets the RemoteAccessAllowed field's value.
  1571. func (s *AssociateTeamMemberInput) SetRemoteAccessAllowed(v bool) *AssociateTeamMemberInput {
  1572. s.RemoteAccessAllowed = &v
  1573. return s
  1574. }
  1575. // SetUserArn sets the UserArn field's value.
  1576. func (s *AssociateTeamMemberInput) SetUserArn(v string) *AssociateTeamMemberInput {
  1577. s.UserArn = &v
  1578. return s
  1579. }
  1580. type AssociateTeamMemberOutput struct {
  1581. _ struct{} `type:"structure"`
  1582. // The user- or system-generated token from the initial request that can be
  1583. // used to repeat the request.
  1584. ClientRequestToken *string `locationName:"clientRequestToken" min:"1" type:"string"`
  1585. }
  1586. // String returns the string representation
  1587. func (s AssociateTeamMemberOutput) String() string {
  1588. return awsutil.Prettify(s)
  1589. }
  1590. // GoString returns the string representation
  1591. func (s AssociateTeamMemberOutput) GoString() string {
  1592. return s.String()
  1593. }
  1594. // SetClientRequestToken sets the ClientRequestToken field's value.
  1595. func (s *AssociateTeamMemberOutput) SetClientRequestToken(v string) *AssociateTeamMemberOutput {
  1596. s.ClientRequestToken = &v
  1597. return s
  1598. }
  1599. // Location and destination information about the source code files provided
  1600. // with the project request. The source code is uploaded to the new project
  1601. // source repository after project creation.
  1602. type Code struct {
  1603. _ struct{} `type:"structure"`
  1604. // The repository to be created in AWS CodeStar. Valid values are AWS CodeCommit
  1605. // or GitHub. After AWS CodeStar provisions the new repository, the source code
  1606. // files provided with the project request are placed in the repository.
  1607. //
  1608. // Destination is a required field
  1609. Destination *CodeDestination `locationName:"destination" type:"structure" required:"true"`
  1610. // The location where the source code files provided with the project request
  1611. // are stored. AWS CodeStar retrieves the files during project creation.
  1612. //
  1613. // Source is a required field
  1614. Source *CodeSource `locationName:"source" type:"structure" required:"true"`
  1615. }
  1616. // String returns the string representation
  1617. func (s Code) String() string {
  1618. return awsutil.Prettify(s)
  1619. }
  1620. // GoString returns the string representation
  1621. func (s Code) GoString() string {
  1622. return s.String()
  1623. }
  1624. // Validate inspects the fields of the type to determine if they are valid.
  1625. func (s *Code) Validate() error {
  1626. invalidParams := request.ErrInvalidParams{Context: "Code"}
  1627. if s.Destination == nil {
  1628. invalidParams.Add(request.NewErrParamRequired("Destination"))
  1629. }
  1630. if s.Source == nil {
  1631. invalidParams.Add(request.NewErrParamRequired("Source"))
  1632. }
  1633. if s.Destination != nil {
  1634. if err := s.Destination.Validate(); err != nil {
  1635. invalidParams.AddNested("Destination", err.(request.ErrInvalidParams))
  1636. }
  1637. }
  1638. if s.Source != nil {
  1639. if err := s.Source.Validate(); err != nil {
  1640. invalidParams.AddNested("Source", err.(request.ErrInvalidParams))
  1641. }
  1642. }
  1643. if invalidParams.Len() > 0 {
  1644. return invalidParams
  1645. }
  1646. return nil
  1647. }
  1648. // SetDestination sets the Destination field's value.
  1649. func (s *Code) SetDestination(v *CodeDestination) *Code {
  1650. s.Destination = v
  1651. return s
  1652. }
  1653. // SetSource sets the Source field's value.
  1654. func (s *Code) SetSource(v *CodeSource) *Code {
  1655. s.Source = v
  1656. return s
  1657. }
  1658. // Information about the AWS CodeCommit repository to be created in AWS CodeStar.
  1659. // This is where the source code files provided with the project request will
  1660. // be uploaded after project creation.
  1661. type CodeCommitCodeDestination struct {
  1662. _ struct{} `type:"structure"`
  1663. // The name of the AWS CodeCommit repository to be created in AWS CodeStar.
  1664. //
  1665. // Name is a required field
  1666. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  1667. }
  1668. // String returns the string representation
  1669. func (s CodeCommitCodeDestination) String() string {
  1670. return awsutil.Prettify(s)
  1671. }
  1672. // GoString returns the string representation
  1673. func (s CodeCommitCodeDestination) GoString() string {
  1674. return s.String()
  1675. }
  1676. // Validate inspects the fields of the type to determine if they are valid.
  1677. func (s *CodeCommitCodeDestination) Validate() error {
  1678. invalidParams := request.ErrInvalidParams{Context: "CodeCommitCodeDestination"}
  1679. if s.Name == nil {
  1680. invalidParams.Add(request.NewErrParamRequired("Name"))
  1681. }
  1682. if s.Name != nil && len(*s.Name) < 1 {
  1683. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  1684. }
  1685. if invalidParams.Len() > 0 {
  1686. return invalidParams
  1687. }
  1688. return nil
  1689. }
  1690. // SetName sets the Name field's value.
  1691. func (s *CodeCommitCodeDestination) SetName(v string) *CodeCommitCodeDestination {
  1692. s.Name = &v
  1693. return s
  1694. }
  1695. // The repository to be created in AWS CodeStar. Valid values are AWS CodeCommit
  1696. // or GitHub. After AWS CodeStar provisions the new repository, the source code
  1697. // files provided with the project request are placed in the repository.
  1698. type CodeDestination struct {
  1699. _ struct{} `type:"structure"`
  1700. // Information about the AWS CodeCommit repository to be created in AWS CodeStar.
  1701. // This is where the source code files provided with the project request will
  1702. // be uploaded after project creation.
  1703. CodeCommit *CodeCommitCodeDestination `locationName:"codeCommit" type:"structure"`
  1704. // Information about the GitHub repository to be created in AWS CodeStar. This
  1705. // is where the source code files provided with the project request will be
  1706. // uploaded after project creation.
  1707. GitHub *GitHubCodeDestination `locationName:"gitHub" type:"structure"`
  1708. }
  1709. // String returns the string representation
  1710. func (s CodeDestination) String() string {
  1711. return awsutil.Prettify(s)
  1712. }
  1713. // GoString returns the string representation
  1714. func (s CodeDestination) GoString() string {
  1715. return s.String()
  1716. }
  1717. // Validate inspects the fields of the type to determine if they are valid.
  1718. func (s *CodeDestination) Validate() error {
  1719. invalidParams := request.ErrInvalidParams{Context: "CodeDestination"}
  1720. if s.CodeCommit != nil {
  1721. if err := s.CodeCommit.Validate(); err != nil {
  1722. invalidParams.AddNested("CodeCommit", err.(request.ErrInvalidParams))
  1723. }
  1724. }
  1725. if s.GitHub != nil {
  1726. if err := s.GitHub.Validate(); err != nil {
  1727. invalidParams.AddNested("GitHub", err.(request.ErrInvalidParams))
  1728. }
  1729. }
  1730. if invalidParams.Len() > 0 {
  1731. return invalidParams
  1732. }
  1733. return nil
  1734. }
  1735. // SetCodeCommit sets the CodeCommit field's value.
  1736. func (s *CodeDestination) SetCodeCommit(v *CodeCommitCodeDestination) *CodeDestination {
  1737. s.CodeCommit = v
  1738. return s
  1739. }
  1740. // SetGitHub sets the GitHub field's value.
  1741. func (s *CodeDestination) SetGitHub(v *GitHubCodeDestination) *CodeDestination {
  1742. s.GitHub = v
  1743. return s
  1744. }
  1745. // The location where the source code files provided with the project request
  1746. // are stored. AWS CodeStar retrieves the files during project creation.
  1747. type CodeSource struct {
  1748. _ struct{} `type:"structure"`
  1749. // Information about the Amazon S3 location where the source code files provided
  1750. // with the project request are stored.
  1751. //
  1752. // S3 is a required field
  1753. S3 *S3Location `locationName:"s3" type:"structure" required:"true"`
  1754. }
  1755. // String returns the string representation
  1756. func (s CodeSource) String() string {
  1757. return awsutil.Prettify(s)
  1758. }
  1759. // GoString returns the string representation
  1760. func (s CodeSource) GoString() string {
  1761. return s.String()
  1762. }
  1763. // Validate inspects the fields of the type to determine if they are valid.
  1764. func (s *CodeSource) Validate() error {
  1765. invalidParams := request.ErrInvalidParams{Context: "CodeSource"}
  1766. if s.S3 == nil {
  1767. invalidParams.Add(request.NewErrParamRequired("S3"))
  1768. }
  1769. if s.S3 != nil {
  1770. if err := s.S3.Validate(); err != nil {
  1771. invalidParams.AddNested("S3", err.(request.ErrInvalidParams))
  1772. }
  1773. }
  1774. if invalidParams.Len() > 0 {
  1775. return invalidParams
  1776. }
  1777. return nil
  1778. }
  1779. // SetS3 sets the S3 field's value.
  1780. func (s *CodeSource) SetS3(v *S3Location) *CodeSource {
  1781. s.S3 = v
  1782. return s
  1783. }
  1784. type CreateProjectInput struct {
  1785. _ struct{} `type:"structure"`
  1786. // A user- or system-generated token that identifies the entity that requested
  1787. // project creation. This token can be used to repeat the request.
  1788. ClientRequestToken *string `locationName:"clientRequestToken" min:"1" type:"string"`
  1789. // The description of the project, if any.
  1790. Description *string `locationName:"description" type:"string" sensitive:"true"`
  1791. // The ID of the project to be created in AWS CodeStar.
  1792. //
  1793. // Id is a required field
  1794. Id *string `locationName:"id" min:"2" type:"string" required:"true"`
  1795. // The display name for the project to be created in AWS CodeStar.
  1796. //
  1797. // Name is a required field
  1798. Name *string `locationName:"name" min:"1" type:"string" required:"true" sensitive:"true"`
  1799. // A list of the Code objects submitted with the project request. If this parameter
  1800. // is specified, the request must also include the toolchain parameter.
  1801. SourceCode []*Code `locationName:"sourceCode" type:"list"`
  1802. // The tags created for the project.
  1803. Tags map[string]*string `locationName:"tags" type:"map"`
  1804. // The name of the toolchain template file submitted with the project request.
  1805. // If this parameter is specified, the request must also include the sourceCode
  1806. // parameter.
  1807. Toolchain *Toolchain `locationName:"toolchain" type:"structure"`
  1808. }
  1809. // String returns the string representation
  1810. func (s CreateProjectInput) String() string {
  1811. return awsutil.Prettify(s)
  1812. }
  1813. // GoString returns the string representation
  1814. func (s CreateProjectInput) GoString() string {
  1815. return s.String()
  1816. }
  1817. // Validate inspects the fields of the type to determine if they are valid.
  1818. func (s *CreateProjectInput) Validate() error {
  1819. invalidParams := request.ErrInvalidParams{Context: "CreateProjectInput"}
  1820. if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 {
  1821. invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1))
  1822. }
  1823. if s.Id == nil {
  1824. invalidParams.Add(request.NewErrParamRequired("Id"))
  1825. }
  1826. if s.Id != nil && len(*s.Id) < 2 {
  1827. invalidParams.Add(request.NewErrParamMinLen("Id", 2))
  1828. }
  1829. if s.Name == nil {
  1830. invalidParams.Add(request.NewErrParamRequired("Name"))
  1831. }
  1832. if s.Name != nil && len(*s.Name) < 1 {
  1833. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  1834. }
  1835. if s.SourceCode != nil {
  1836. for i, v := range s.SourceCode {
  1837. if v == nil {
  1838. continue
  1839. }
  1840. if err := v.Validate(); err != nil {
  1841. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SourceCode", i), err.(request.ErrInvalidParams))
  1842. }
  1843. }
  1844. }
  1845. if s.Toolchain != nil {
  1846. if err := s.Toolchain.Validate(); err != nil {
  1847. invalidParams.AddNested("Toolchain", err.(request.ErrInvalidParams))
  1848. }
  1849. }
  1850. if invalidParams.Len() > 0 {
  1851. return invalidParams
  1852. }
  1853. return nil
  1854. }
  1855. // SetClientRequestToken sets the ClientRequestToken field's value.
  1856. func (s *CreateProjectInput) SetClientRequestToken(v string) *CreateProjectInput {
  1857. s.ClientRequestToken = &v
  1858. return s
  1859. }
  1860. // SetDescription sets the Description field's value.
  1861. func (s *CreateProjectInput) SetDescription(v string) *CreateProjectInput {
  1862. s.Description = &v
  1863. return s
  1864. }
  1865. // SetId sets the Id field's value.
  1866. func (s *CreateProjectInput) SetId(v string) *CreateProjectInput {
  1867. s.Id = &v
  1868. return s
  1869. }
  1870. // SetName sets the Name field's value.
  1871. func (s *CreateProjectInput) SetName(v string) *CreateProjectInput {
  1872. s.Name = &v
  1873. return s
  1874. }
  1875. // SetSourceCode sets the SourceCode field's value.
  1876. func (s *CreateProjectInput) SetSourceCode(v []*Code) *CreateProjectInput {
  1877. s.SourceCode = v
  1878. return s
  1879. }
  1880. // SetTags sets the Tags field's value.
  1881. func (s *CreateProjectInput) SetTags(v map[string]*string) *CreateProjectInput {
  1882. s.Tags = v
  1883. return s
  1884. }
  1885. // SetToolchain sets the Toolchain field's value.
  1886. func (s *CreateProjectInput) SetToolchain(v *Toolchain) *CreateProjectInput {
  1887. s.Toolchain = v
  1888. return s
  1889. }
  1890. type CreateProjectOutput struct {
  1891. _ struct{} `type:"structure"`
  1892. // The Amazon Resource Name (ARN) of the created project.
  1893. //
  1894. // Arn is a required field
  1895. Arn *string `locationName:"arn" type:"string" required:"true"`
  1896. // A user- or system-generated token that identifies the entity that requested
  1897. // project creation.
  1898. ClientRequestToken *string `locationName:"clientRequestToken" min:"1" type:"string"`
  1899. // The ID of the project.
  1900. //
  1901. // Id is a required field
  1902. Id *string `locationName:"id" min:"2" type:"string" required:"true"`
  1903. // Reserved for future use.
  1904. ProjectTemplateId *string `locationName:"projectTemplateId" min:"1" type:"string"`
  1905. }
  1906. // String returns the string representation
  1907. func (s CreateProjectOutput) String() string {
  1908. return awsutil.Prettify(s)
  1909. }
  1910. // GoString returns the string representation
  1911. func (s CreateProjectOutput) GoString() string {
  1912. return s.String()
  1913. }
  1914. // SetArn sets the Arn field's value.
  1915. func (s *CreateProjectOutput) SetArn(v string) *CreateProjectOutput {
  1916. s.Arn = &v
  1917. return s
  1918. }
  1919. // SetClientRequestToken sets the ClientRequestToken field's value.
  1920. func (s *CreateProjectOutput) SetClientRequestToken(v string) *CreateProjectOutput {
  1921. s.ClientRequestToken = &v
  1922. return s
  1923. }
  1924. // SetId sets the Id field's value.
  1925. func (s *CreateProjectOutput) SetId(v string) *CreateProjectOutput {
  1926. s.Id = &v
  1927. return s
  1928. }
  1929. // SetProjectTemplateId sets the ProjectTemplateId field's value.
  1930. func (s *CreateProjectOutput) SetProjectTemplateId(v string) *CreateProjectOutput {
  1931. s.ProjectTemplateId = &v
  1932. return s
  1933. }
  1934. type CreateUserProfileInput struct {
  1935. _ struct{} `type:"structure"`
  1936. // The name that will be displayed as the friendly name for the user in AWS
  1937. // CodeStar.
  1938. //
  1939. // DisplayName is a required field
  1940. DisplayName *string `locationName:"displayName" min:"1" type:"string" required:"true" sensitive:"true"`
  1941. // The email address that will be displayed as part of the user's profile in
  1942. // AWS CodeStar.
  1943. //
  1944. // EmailAddress is a required field
  1945. EmailAddress *string `locationName:"emailAddress" min:"3" type:"string" required:"true" sensitive:"true"`
  1946. // The SSH public key associated with the user in AWS CodeStar. If a project
  1947. // owner allows the user remote access to project resources, this public key
  1948. // will be used along with the user's private key for SSH access.
  1949. SshPublicKey *string `locationName:"sshPublicKey" type:"string"`
  1950. // The Amazon Resource Name (ARN) of the user in IAM.
  1951. //
  1952. // UserArn is a required field
  1953. UserArn *string `locationName:"userArn" min:"32" type:"string" required:"true"`
  1954. }
  1955. // String returns the string representation
  1956. func (s CreateUserProfileInput) String() string {
  1957. return awsutil.Prettify(s)
  1958. }
  1959. // GoString returns the string representation
  1960. func (s CreateUserProfileInput) GoString() string {
  1961. return s.String()
  1962. }
  1963. // Validate inspects the fields of the type to determine if they are valid.
  1964. func (s *CreateUserProfileInput) Validate() error {
  1965. invalidParams := request.ErrInvalidParams{Context: "CreateUserProfileInput"}
  1966. if s.DisplayName == nil {
  1967. invalidParams.Add(request.NewErrParamRequired("DisplayName"))
  1968. }
  1969. if s.DisplayName != nil && len(*s.DisplayName) < 1 {
  1970. invalidParams.Add(request.NewErrParamMinLen("DisplayName", 1))
  1971. }
  1972. if s.EmailAddress == nil {
  1973. invalidParams.Add(request.NewErrParamRequired("EmailAddress"))
  1974. }
  1975. if s.EmailAddress != nil && len(*s.EmailAddress) < 3 {
  1976. invalidParams.Add(request.NewErrParamMinLen("EmailAddress", 3))
  1977. }
  1978. if s.UserArn == nil {
  1979. invalidParams.Add(request.NewErrParamRequired("UserArn"))
  1980. }
  1981. if s.UserArn != nil && len(*s.UserArn) < 32 {
  1982. invalidParams.Add(request.NewErrParamMinLen("UserArn", 32))
  1983. }
  1984. if invalidParams.Len() > 0 {
  1985. return invalidParams
  1986. }
  1987. return nil
  1988. }
  1989. // SetDisplayName sets the DisplayName field's value.
  1990. func (s *CreateUserProfileInput) SetDisplayName(v string) *CreateUserProfileInput {
  1991. s.DisplayName = &v
  1992. return s
  1993. }
  1994. // SetEmailAddress sets the EmailAddress field's value.
  1995. func (s *CreateUserProfileInput) SetEmailAddress(v string) *CreateUserProfileInput {
  1996. s.EmailAddress = &v
  1997. return s
  1998. }
  1999. // SetSshPublicKey sets the SshPublicKey field's value.
  2000. func (s *CreateUserProfileInput) SetSshPublicKey(v string) *CreateUserProfileInput {
  2001. s.SshPublicKey = &v
  2002. return s
  2003. }
  2004. // SetUserArn sets the UserArn field's value.
  2005. func (s *CreateUserProfileInput) SetUserArn(v string) *CreateUserProfileInput {
  2006. s.UserArn = &v
  2007. return s
  2008. }
  2009. type CreateUserProfileOutput struct {
  2010. _ struct{} `type:"structure"`
  2011. // The date the user profile was created, in timestamp format.
  2012. CreatedTimestamp *time.Time `locationName:"createdTimestamp" type:"timestamp"`
  2013. // The name that is displayed as the friendly name for the user in AWS CodeStar.
  2014. DisplayName *string `locationName:"displayName" min:"1" type:"string" sensitive:"true"`
  2015. // The email address that is displayed as part of the user's profile in AWS
  2016. // CodeStar.
  2017. EmailAddress *string `locationName:"emailAddress" min:"3" type:"string" sensitive:"true"`
  2018. // The date the user profile was last modified, in timestamp format.
  2019. LastModifiedTimestamp *time.Time `locationName:"lastModifiedTimestamp" type:"timestamp"`
  2020. // The SSH public key associated with the user in AWS CodeStar. This is the
  2021. // public portion of the public/private keypair the user can use to access project
  2022. // resources if a project owner allows the user remote access to those resources.
  2023. SshPublicKey *string `locationName:"sshPublicKey" type:"string"`
  2024. // The Amazon Resource Name (ARN) of the user in IAM.
  2025. //
  2026. // UserArn is a required field
  2027. UserArn *string `locationName:"userArn" min:"32" type:"string" required:"true"`
  2028. }
  2029. // String returns the string representation
  2030. func (s CreateUserProfileOutput) String() string {
  2031. return awsutil.Prettify(s)
  2032. }
  2033. // GoString returns the string representation
  2034. func (s CreateUserProfileOutput) GoString() string {
  2035. return s.String()
  2036. }
  2037. // SetCreatedTimestamp sets the CreatedTimestamp field's value.
  2038. func (s *CreateUserProfileOutput) SetCreatedTimestamp(v time.Time) *CreateUserProfileOutput {
  2039. s.CreatedTimestamp = &v
  2040. return s
  2041. }
  2042. // SetDisplayName sets the DisplayName field's value.
  2043. func (s *CreateUserProfileOutput) SetDisplayName(v string) *CreateUserProfileOutput {
  2044. s.DisplayName = &v
  2045. return s
  2046. }
  2047. // SetEmailAddress sets the EmailAddress field's value.
  2048. func (s *CreateUserProfileOutput) SetEmailAddress(v string) *CreateUserProfileOutput {
  2049. s.EmailAddress = &v
  2050. return s
  2051. }
  2052. // SetLastModifiedTimestamp sets the LastModifiedTimestamp field's value.
  2053. func (s *CreateUserProfileOutput) SetLastModifiedTimestamp(v time.Time) *CreateUserProfileOutput {
  2054. s.LastModifiedTimestamp = &v
  2055. return s
  2056. }
  2057. // SetSshPublicKey sets the SshPublicKey field's value.
  2058. func (s *CreateUserProfileOutput) SetSshPublicKey(v string) *CreateUserProfileOutput {
  2059. s.SshPublicKey = &v
  2060. return s
  2061. }
  2062. // SetUserArn sets the UserArn field's value.
  2063. func (s *CreateUserProfileOutput) SetUserArn(v string) *CreateUserProfileOutput {
  2064. s.UserArn = &v
  2065. return s
  2066. }
  2067. type DeleteProjectInput struct {
  2068. _ struct{} `type:"structure"`
  2069. // A user- or system-generated token that identifies the entity that requested
  2070. // project deletion. This token can be used to repeat the request.
  2071. ClientRequestToken *string `locationName:"clientRequestToken" min:"1" type:"string"`
  2072. // Whether to send a delete request for the primary stack in AWS CloudFormation
  2073. // originally used to generate the project and its resources. This option will
  2074. // delete all AWS resources for the project (except for any buckets in Amazon
  2075. // S3) as well as deleting the project itself. Recommended for most use cases.
  2076. DeleteStack *bool `locationName:"deleteStack" type:"boolean"`
  2077. // The ID of the project to be deleted in AWS CodeStar.
  2078. //
  2079. // Id is a required field
  2080. Id *string `locationName:"id" min:"2" type:"string" required:"true"`
  2081. }
  2082. // String returns the string representation
  2083. func (s DeleteProjectInput) String() string {
  2084. return awsutil.Prettify(s)
  2085. }
  2086. // GoString returns the string representation
  2087. func (s DeleteProjectInput) GoString() string {
  2088. return s.String()
  2089. }
  2090. // Validate inspects the fields of the type to determine if they are valid.
  2091. func (s *DeleteProjectInput) Validate() error {
  2092. invalidParams := request.ErrInvalidParams{Context: "DeleteProjectInput"}
  2093. if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 {
  2094. invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1))
  2095. }
  2096. if s.Id == nil {
  2097. invalidParams.Add(request.NewErrParamRequired("Id"))
  2098. }
  2099. if s.Id != nil && len(*s.Id) < 2 {
  2100. invalidParams.Add(request.NewErrParamMinLen("Id", 2))
  2101. }
  2102. if invalidParams.Len() > 0 {
  2103. return invalidParams
  2104. }
  2105. return nil
  2106. }
  2107. // SetClientRequestToken sets the ClientRequestToken field's value.
  2108. func (s *DeleteProjectInput) SetClientRequestToken(v string) *DeleteProjectInput {
  2109. s.ClientRequestToken = &v
  2110. return s
  2111. }
  2112. // SetDeleteStack sets the DeleteStack field's value.
  2113. func (s *DeleteProjectInput) SetDeleteStack(v bool) *DeleteProjectInput {
  2114. s.DeleteStack = &v
  2115. return s
  2116. }
  2117. // SetId sets the Id field's value.
  2118. func (s *DeleteProjectInput) SetId(v string) *DeleteProjectInput {
  2119. s.Id = &v
  2120. return s
  2121. }
  2122. type DeleteProjectOutput struct {
  2123. _ struct{} `type:"structure"`
  2124. // The Amazon Resource Name (ARN) of the deleted project.
  2125. ProjectArn *string `locationName:"projectArn" type:"string"`
  2126. // The ID of the primary stack in AWS CloudFormation that will be deleted as
  2127. // part of deleting the project and its resources.
  2128. StackId *string `locationName:"stackId" type:"string"`
  2129. }
  2130. // String returns the string representation
  2131. func (s DeleteProjectOutput) String() string {
  2132. return awsutil.Prettify(s)
  2133. }
  2134. // GoString returns the string representation
  2135. func (s DeleteProjectOutput) GoString() string {
  2136. return s.String()
  2137. }
  2138. // SetProjectArn sets the ProjectArn field's value.
  2139. func (s *DeleteProjectOutput) SetProjectArn(v string) *DeleteProjectOutput {
  2140. s.ProjectArn = &v
  2141. return s
  2142. }
  2143. // SetStackId sets the StackId field's value.
  2144. func (s *DeleteProjectOutput) SetStackId(v string) *DeleteProjectOutput {
  2145. s.StackId = &v
  2146. return s
  2147. }
  2148. type DeleteUserProfileInput struct {
  2149. _ struct{} `type:"structure"`
  2150. // The Amazon Resource Name (ARN) of the user to delete from AWS CodeStar.
  2151. //
  2152. // UserArn is a required field
  2153. UserArn *string `locationName:"userArn" min:"32" type:"string" required:"true"`
  2154. }
  2155. // String returns the string representation
  2156. func (s DeleteUserProfileInput) String() string {
  2157. return awsutil.Prettify(s)
  2158. }
  2159. // GoString returns the string representation
  2160. func (s DeleteUserProfileInput) GoString() string {
  2161. return s.String()
  2162. }
  2163. // Validate inspects the fields of the type to determine if they are valid.
  2164. func (s *DeleteUserProfileInput) Validate() error {
  2165. invalidParams := request.ErrInvalidParams{Context: "DeleteUserProfileInput"}
  2166. if s.UserArn == nil {
  2167. invalidParams.Add(request.NewErrParamRequired("UserArn"))
  2168. }
  2169. if s.UserArn != nil && len(*s.UserArn) < 32 {
  2170. invalidParams.Add(request.NewErrParamMinLen("UserArn", 32))
  2171. }
  2172. if invalidParams.Len() > 0 {
  2173. return invalidParams
  2174. }
  2175. return nil
  2176. }
  2177. // SetUserArn sets the UserArn field's value.
  2178. func (s *DeleteUserProfileInput) SetUserArn(v string) *DeleteUserProfileInput {
  2179. s.UserArn = &v
  2180. return s
  2181. }
  2182. type DeleteUserProfileOutput struct {
  2183. _ struct{} `type:"structure"`
  2184. // The Amazon Resource Name (ARN) of the user deleted from AWS CodeStar.
  2185. //
  2186. // UserArn is a required field
  2187. UserArn *string `locationName:"userArn" min:"32" type:"string" required:"true"`
  2188. }
  2189. // String returns the string representation
  2190. func (s DeleteUserProfileOutput) String() string {
  2191. return awsutil.Prettify(s)
  2192. }
  2193. // GoString returns the string representation
  2194. func (s DeleteUserProfileOutput) GoString() string {
  2195. return s.String()
  2196. }
  2197. // SetUserArn sets the UserArn field's value.
  2198. func (s *DeleteUserProfileOutput) SetUserArn(v string) *DeleteUserProfileOutput {
  2199. s.UserArn = &v
  2200. return s
  2201. }
  2202. type DescribeProjectInput struct {
  2203. _ struct{} `type:"structure"`
  2204. // The ID of the project.
  2205. //
  2206. // Id is a required field
  2207. Id *string `locationName:"id" min:"2" type:"string" required:"true"`
  2208. }
  2209. // String returns the string representation
  2210. func (s DescribeProjectInput) String() string {
  2211. return awsutil.Prettify(s)
  2212. }
  2213. // GoString returns the string representation
  2214. func (s DescribeProjectInput) GoString() string {
  2215. return s.String()
  2216. }
  2217. // Validate inspects the fields of the type to determine if they are valid.
  2218. func (s *DescribeProjectInput) Validate() error {
  2219. invalidParams := request.ErrInvalidParams{Context: "DescribeProjectInput"}
  2220. if s.Id == nil {
  2221. invalidParams.Add(request.NewErrParamRequired("Id"))
  2222. }
  2223. if s.Id != nil && len(*s.Id) < 2 {
  2224. invalidParams.Add(request.NewErrParamMinLen("Id", 2))
  2225. }
  2226. if invalidParams.Len() > 0 {
  2227. return invalidParams
  2228. }
  2229. return nil
  2230. }
  2231. // SetId sets the Id field's value.
  2232. func (s *DescribeProjectInput) SetId(v string) *DescribeProjectInput {
  2233. s.Id = &v
  2234. return s
  2235. }
  2236. type DescribeProjectOutput struct {
  2237. _ struct{} `type:"structure"`
  2238. // The Amazon Resource Name (ARN) for the project.
  2239. Arn *string `locationName:"arn" type:"string"`
  2240. // A user- or system-generated token that identifies the entity that requested
  2241. // project creation.
  2242. ClientRequestToken *string `locationName:"clientRequestToken" min:"1" type:"string"`
  2243. // The date and time the project was created, in timestamp format.
  2244. CreatedTimeStamp *time.Time `locationName:"createdTimeStamp" type:"timestamp"`
  2245. // The description of the project, if any.
  2246. Description *string `locationName:"description" type:"string" sensitive:"true"`
  2247. // The ID of the project.
  2248. Id *string `locationName:"id" min:"2" type:"string"`
  2249. // The display name for the project.
  2250. Name *string `locationName:"name" min:"1" type:"string" sensitive:"true"`
  2251. // The ID for the AWS CodeStar project template used to create the project.
  2252. ProjectTemplateId *string `locationName:"projectTemplateId" min:"1" type:"string"`
  2253. // The ID of the primary stack in AWS CloudFormation used to generate resources
  2254. // for the project.
  2255. StackId *string `locationName:"stackId" type:"string"`
  2256. // The project creation or deletion status.
  2257. Status *ProjectStatus `locationName:"status" type:"structure"`
  2258. }
  2259. // String returns the string representation
  2260. func (s DescribeProjectOutput) String() string {
  2261. return awsutil.Prettify(s)
  2262. }
  2263. // GoString returns the string representation
  2264. func (s DescribeProjectOutput) GoString() string {
  2265. return s.String()
  2266. }
  2267. // SetArn sets the Arn field's value.
  2268. func (s *DescribeProjectOutput) SetArn(v string) *DescribeProjectOutput {
  2269. s.Arn = &v
  2270. return s
  2271. }
  2272. // SetClientRequestToken sets the ClientRequestToken field's value.
  2273. func (s *DescribeProjectOutput) SetClientRequestToken(v string) *DescribeProjectOutput {
  2274. s.ClientRequestToken = &v
  2275. return s
  2276. }
  2277. // SetCreatedTimeStamp sets the CreatedTimeStamp field's value.
  2278. func (s *DescribeProjectOutput) SetCreatedTimeStamp(v time.Time) *DescribeProjectOutput {
  2279. s.CreatedTimeStamp = &v
  2280. return s
  2281. }
  2282. // SetDescription sets the Description field's value.
  2283. func (s *DescribeProjectOutput) SetDescription(v string) *DescribeProjectOutput {
  2284. s.Description = &v
  2285. return s
  2286. }
  2287. // SetId sets the Id field's value.
  2288. func (s *DescribeProjectOutput) SetId(v string) *DescribeProjectOutput {
  2289. s.Id = &v
  2290. return s
  2291. }
  2292. // SetName sets the Name field's value.
  2293. func (s *DescribeProjectOutput) SetName(v string) *DescribeProjectOutput {
  2294. s.Name = &v
  2295. return s
  2296. }
  2297. // SetProjectTemplateId sets the ProjectTemplateId field's value.
  2298. func (s *DescribeProjectOutput) SetProjectTemplateId(v string) *DescribeProjectOutput {
  2299. s.ProjectTemplateId = &v
  2300. return s
  2301. }
  2302. // SetStackId sets the StackId field's value.
  2303. func (s *DescribeProjectOutput) SetStackId(v string) *DescribeProjectOutput {
  2304. s.StackId = &v
  2305. return s
  2306. }
  2307. // SetStatus sets the Status field's value.
  2308. func (s *DescribeProjectOutput) SetStatus(v *ProjectStatus) *DescribeProjectOutput {
  2309. s.Status = v
  2310. return s
  2311. }
  2312. type DescribeUserProfileInput struct {
  2313. _ struct{} `type:"structure"`
  2314. // The Amazon Resource Name (ARN) of the user.
  2315. //
  2316. // UserArn is a required field
  2317. UserArn *string `locationName:"userArn" min:"32" type:"string" required:"true"`
  2318. }
  2319. // String returns the string representation
  2320. func (s DescribeUserProfileInput) String() string {
  2321. return awsutil.Prettify(s)
  2322. }
  2323. // GoString returns the string representation
  2324. func (s DescribeUserProfileInput) GoString() string {
  2325. return s.String()
  2326. }
  2327. // Validate inspects the fields of the type to determine if they are valid.
  2328. func (s *DescribeUserProfileInput) Validate() error {
  2329. invalidParams := request.ErrInvalidParams{Context: "DescribeUserProfileInput"}
  2330. if s.UserArn == nil {
  2331. invalidParams.Add(request.NewErrParamRequired("UserArn"))
  2332. }
  2333. if s.UserArn != nil && len(*s.UserArn) < 32 {
  2334. invalidParams.Add(request.NewErrParamMinLen("UserArn", 32))
  2335. }
  2336. if invalidParams.Len() > 0 {
  2337. return invalidParams
  2338. }
  2339. return nil
  2340. }
  2341. // SetUserArn sets the UserArn field's value.
  2342. func (s *DescribeUserProfileInput) SetUserArn(v string) *DescribeUserProfileInput {
  2343. s.UserArn = &v
  2344. return s
  2345. }
  2346. type DescribeUserProfileOutput struct {
  2347. _ struct{} `type:"structure"`
  2348. // The date and time when the user profile was created in AWS CodeStar, in timestamp
  2349. // format.
  2350. //
  2351. // CreatedTimestamp is a required field
  2352. CreatedTimestamp *time.Time `locationName:"createdTimestamp" type:"timestamp" required:"true"`
  2353. // The display name shown for the user in AWS CodeStar projects. For example,
  2354. // this could be set to both first and last name ("Mary Major") or a single
  2355. // name ("Mary"). The display name is also used to generate the initial icon
  2356. // associated with the user in AWS CodeStar projects. If spaces are included
  2357. // in the display name, the first character that appears after the space will
  2358. // be used as the second character in the user initial icon. The initial icon
  2359. // displays a maximum of two characters, so a display name with more than one
  2360. // space (for example "Mary Jane Major") would generate an initial icon using
  2361. // the first character and the first character after the space ("MJ", not "MM").
  2362. DisplayName *string `locationName:"displayName" min:"1" type:"string" sensitive:"true"`
  2363. // The email address for the user. Optional.
  2364. EmailAddress *string `locationName:"emailAddress" min:"3" type:"string" sensitive:"true"`
  2365. // The date and time when the user profile was last modified, in timestamp format.
  2366. //
  2367. // LastModifiedTimestamp is a required field
  2368. LastModifiedTimestamp *time.Time `locationName:"lastModifiedTimestamp" type:"timestamp" required:"true"`
  2369. // The SSH public key associated with the user. This SSH public key is associated
  2370. // with the user profile, and can be used in conjunction with the associated
  2371. // private key for access to project resources, such as Amazon EC2 instances,
  2372. // if a project owner grants remote access to those resources.
  2373. SshPublicKey *string `locationName:"sshPublicKey" type:"string"`
  2374. // The Amazon Resource Name (ARN) of the user.
  2375. //
  2376. // UserArn is a required field
  2377. UserArn *string `locationName:"userArn" min:"32" type:"string" required:"true"`
  2378. }
  2379. // String returns the string representation
  2380. func (s DescribeUserProfileOutput) String() string {
  2381. return awsutil.Prettify(s)
  2382. }
  2383. // GoString returns the string representation
  2384. func (s DescribeUserProfileOutput) GoString() string {
  2385. return s.String()
  2386. }
  2387. // SetCreatedTimestamp sets the CreatedTimestamp field's value.
  2388. func (s *DescribeUserProfileOutput) SetCreatedTimestamp(v time.Time) *DescribeUserProfileOutput {
  2389. s.CreatedTimestamp = &v
  2390. return s
  2391. }
  2392. // SetDisplayName sets the DisplayName field's value.
  2393. func (s *DescribeUserProfileOutput) SetDisplayName(v string) *DescribeUserProfileOutput {
  2394. s.DisplayName = &v
  2395. return s
  2396. }
  2397. // SetEmailAddress sets the EmailAddress field's value.
  2398. func (s *DescribeUserProfileOutput) SetEmailAddress(v string) *DescribeUserProfileOutput {
  2399. s.EmailAddress = &v
  2400. return s
  2401. }
  2402. // SetLastModifiedTimestamp sets the LastModifiedTimestamp field's value.
  2403. func (s *DescribeUserProfileOutput) SetLastModifiedTimestamp(v time.Time) *DescribeUserProfileOutput {
  2404. s.LastModifiedTimestamp = &v
  2405. return s
  2406. }
  2407. // SetSshPublicKey sets the SshPublicKey field's value.
  2408. func (s *DescribeUserProfileOutput) SetSshPublicKey(v string) *DescribeUserProfileOutput {
  2409. s.SshPublicKey = &v
  2410. return s
  2411. }
  2412. // SetUserArn sets the UserArn field's value.
  2413. func (s *DescribeUserProfileOutput) SetUserArn(v string) *DescribeUserProfileOutput {
  2414. s.UserArn = &v
  2415. return s
  2416. }
  2417. type DisassociateTeamMemberInput struct {
  2418. _ struct{} `type:"structure"`
  2419. // The ID of the AWS CodeStar project from which you want to remove a team member.
  2420. //
  2421. // ProjectId is a required field
  2422. ProjectId *string `locationName:"projectId" min:"2" type:"string" required:"true"`
  2423. // The Amazon Resource Name (ARN) of the IAM user or group whom you want to
  2424. // remove from the project.
  2425. //
  2426. // UserArn is a required field
  2427. UserArn *string `locationName:"userArn" min:"32" type:"string" required:"true"`
  2428. }
  2429. // String returns the string representation
  2430. func (s DisassociateTeamMemberInput) String() string {
  2431. return awsutil.Prettify(s)
  2432. }
  2433. // GoString returns the string representation
  2434. func (s DisassociateTeamMemberInput) GoString() string {
  2435. return s.String()
  2436. }
  2437. // Validate inspects the fields of the type to determine if they are valid.
  2438. func (s *DisassociateTeamMemberInput) Validate() error {
  2439. invalidParams := request.ErrInvalidParams{Context: "DisassociateTeamMemberInput"}
  2440. if s.ProjectId == nil {
  2441. invalidParams.Add(request.NewErrParamRequired("ProjectId"))
  2442. }
  2443. if s.ProjectId != nil && len(*s.ProjectId) < 2 {
  2444. invalidParams.Add(request.NewErrParamMinLen("ProjectId", 2))
  2445. }
  2446. if s.UserArn == nil {
  2447. invalidParams.Add(request.NewErrParamRequired("UserArn"))
  2448. }
  2449. if s.UserArn != nil && len(*s.UserArn) < 32 {
  2450. invalidParams.Add(request.NewErrParamMinLen("UserArn", 32))
  2451. }
  2452. if invalidParams.Len() > 0 {
  2453. return invalidParams
  2454. }
  2455. return nil
  2456. }
  2457. // SetProjectId sets the ProjectId field's value.
  2458. func (s *DisassociateTeamMemberInput) SetProjectId(v string) *DisassociateTeamMemberInput {
  2459. s.ProjectId = &v
  2460. return s
  2461. }
  2462. // SetUserArn sets the UserArn field's value.
  2463. func (s *DisassociateTeamMemberInput) SetUserArn(v string) *DisassociateTeamMemberInput {
  2464. s.UserArn = &v
  2465. return s
  2466. }
  2467. type DisassociateTeamMemberOutput struct {
  2468. _ struct{} `type:"structure"`
  2469. }
  2470. // String returns the string representation
  2471. func (s DisassociateTeamMemberOutput) String() string {
  2472. return awsutil.Prettify(s)
  2473. }
  2474. // GoString returns the string representation
  2475. func (s DisassociateTeamMemberOutput) GoString() string {
  2476. return s.String()
  2477. }
  2478. // Information about the GitHub repository to be created in AWS CodeStar. This
  2479. // is where the source code files provided with the project request will be
  2480. // uploaded after project creation.
  2481. type GitHubCodeDestination struct {
  2482. _ struct{} `type:"structure"`
  2483. // Description for the GitHub repository to be created in AWS CodeStar. This
  2484. // description displays in GitHub after the repository is created.
  2485. Description *string `locationName:"description" min:"1" type:"string"`
  2486. // Whether to enable issues for the GitHub repository.
  2487. //
  2488. // IssuesEnabled is a required field
  2489. IssuesEnabled *bool `locationName:"issuesEnabled" type:"boolean" required:"true"`
  2490. // Name of the GitHub repository to be created in AWS CodeStar.
  2491. //
  2492. // Name is a required field
  2493. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  2494. // The GitHub username for the owner of the GitHub repository to be created
  2495. // in AWS CodeStar. If this repository should be owned by a GitHub organization,
  2496. // provide its name.
  2497. //
  2498. // Owner is a required field
  2499. Owner *string `locationName:"owner" min:"1" type:"string" required:"true"`
  2500. // Whether the GitHub repository is to be a private repository.
  2501. //
  2502. // PrivateRepository is a required field
  2503. PrivateRepository *bool `locationName:"privateRepository" type:"boolean" required:"true"`
  2504. // The GitHub user's personal access token for the GitHub repository.
  2505. //
  2506. // Token is a required field
  2507. Token *string `locationName:"token" min:"1" type:"string" required:"true" sensitive:"true"`
  2508. // The type of GitHub repository to be created in AWS CodeStar. Valid values
  2509. // are User or Organization.
  2510. //
  2511. // Type is a required field
  2512. Type *string `locationName:"type" type:"string" required:"true"`
  2513. }
  2514. // String returns the string representation
  2515. func (s GitHubCodeDestination) String() string {
  2516. return awsutil.Prettify(s)
  2517. }
  2518. // GoString returns the string representation
  2519. func (s GitHubCodeDestination) GoString() string {
  2520. return s.String()
  2521. }
  2522. // Validate inspects the fields of the type to determine if they are valid.
  2523. func (s *GitHubCodeDestination) Validate() error {
  2524. invalidParams := request.ErrInvalidParams{Context: "GitHubCodeDestination"}
  2525. if s.Description != nil && len(*s.Description) < 1 {
  2526. invalidParams.Add(request.NewErrParamMinLen("Description", 1))
  2527. }
  2528. if s.IssuesEnabled == nil {
  2529. invalidParams.Add(request.NewErrParamRequired("IssuesEnabled"))
  2530. }
  2531. if s.Name == nil {
  2532. invalidParams.Add(request.NewErrParamRequired("Name"))
  2533. }
  2534. if s.Name != nil && len(*s.Name) < 1 {
  2535. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  2536. }
  2537. if s.Owner == nil {
  2538. invalidParams.Add(request.NewErrParamRequired("Owner"))
  2539. }
  2540. if s.Owner != nil && len(*s.Owner) < 1 {
  2541. invalidParams.Add(request.NewErrParamMinLen("Owner", 1))
  2542. }
  2543. if s.PrivateRepository == nil {
  2544. invalidParams.Add(request.NewErrParamRequired("PrivateRepository"))
  2545. }
  2546. if s.Token == nil {
  2547. invalidParams.Add(request.NewErrParamRequired("Token"))
  2548. }
  2549. if s.Token != nil && len(*s.Token) < 1 {
  2550. invalidParams.Add(request.NewErrParamMinLen("Token", 1))
  2551. }
  2552. if s.Type == nil {
  2553. invalidParams.Add(request.NewErrParamRequired("Type"))
  2554. }
  2555. if invalidParams.Len() > 0 {
  2556. return invalidParams
  2557. }
  2558. return nil
  2559. }
  2560. // SetDescription sets the Description field's value.
  2561. func (s *GitHubCodeDestination) SetDescription(v string) *GitHubCodeDestination {
  2562. s.Description = &v
  2563. return s
  2564. }
  2565. // SetIssuesEnabled sets the IssuesEnabled field's value.
  2566. func (s *GitHubCodeDestination) SetIssuesEnabled(v bool) *GitHubCodeDestination {
  2567. s.IssuesEnabled = &v
  2568. return s
  2569. }
  2570. // SetName sets the Name field's value.
  2571. func (s *GitHubCodeDestination) SetName(v string) *GitHubCodeDestination {
  2572. s.Name = &v
  2573. return s
  2574. }
  2575. // SetOwner sets the Owner field's value.
  2576. func (s *GitHubCodeDestination) SetOwner(v string) *GitHubCodeDestination {
  2577. s.Owner = &v
  2578. return s
  2579. }
  2580. // SetPrivateRepository sets the PrivateRepository field's value.
  2581. func (s *GitHubCodeDestination) SetPrivateRepository(v bool) *GitHubCodeDestination {
  2582. s.PrivateRepository = &v
  2583. return s
  2584. }
  2585. // SetToken sets the Token field's value.
  2586. func (s *GitHubCodeDestination) SetToken(v string) *GitHubCodeDestination {
  2587. s.Token = &v
  2588. return s
  2589. }
  2590. // SetType sets the Type field's value.
  2591. func (s *GitHubCodeDestination) SetType(v string) *GitHubCodeDestination {
  2592. s.Type = &v
  2593. return s
  2594. }
  2595. type ListProjectsInput struct {
  2596. _ struct{} `type:"structure"`
  2597. // The maximum amount of data that can be contained in a single set of results.
  2598. MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
  2599. // The continuation token to be used to return the next set of results, if the
  2600. // results cannot be returned in one response.
  2601. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  2602. }
  2603. // String returns the string representation
  2604. func (s ListProjectsInput) String() string {
  2605. return awsutil.Prettify(s)
  2606. }
  2607. // GoString returns the string representation
  2608. func (s ListProjectsInput) GoString() string {
  2609. return s.String()
  2610. }
  2611. // Validate inspects the fields of the type to determine if they are valid.
  2612. func (s *ListProjectsInput) Validate() error {
  2613. invalidParams := request.ErrInvalidParams{Context: "ListProjectsInput"}
  2614. if s.MaxResults != nil && *s.MaxResults < 1 {
  2615. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  2616. }
  2617. if s.NextToken != nil && len(*s.NextToken) < 1 {
  2618. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  2619. }
  2620. if invalidParams.Len() > 0 {
  2621. return invalidParams
  2622. }
  2623. return nil
  2624. }
  2625. // SetMaxResults sets the MaxResults field's value.
  2626. func (s *ListProjectsInput) SetMaxResults(v int64) *ListProjectsInput {
  2627. s.MaxResults = &v
  2628. return s
  2629. }
  2630. // SetNextToken sets the NextToken field's value.
  2631. func (s *ListProjectsInput) SetNextToken(v string) *ListProjectsInput {
  2632. s.NextToken = &v
  2633. return s
  2634. }
  2635. type ListProjectsOutput struct {
  2636. _ struct{} `type:"structure"`
  2637. // The continuation token to use when requesting the next set of results, if
  2638. // there are more results to be returned.
  2639. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  2640. // A list of projects.
  2641. //
  2642. // Projects is a required field
  2643. Projects []*ProjectSummary `locationName:"projects" type:"list" required:"true"`
  2644. }
  2645. // String returns the string representation
  2646. func (s ListProjectsOutput) String() string {
  2647. return awsutil.Prettify(s)
  2648. }
  2649. // GoString returns the string representation
  2650. func (s ListProjectsOutput) GoString() string {
  2651. return s.String()
  2652. }
  2653. // SetNextToken sets the NextToken field's value.
  2654. func (s *ListProjectsOutput) SetNextToken(v string) *ListProjectsOutput {
  2655. s.NextToken = &v
  2656. return s
  2657. }
  2658. // SetProjects sets the Projects field's value.
  2659. func (s *ListProjectsOutput) SetProjects(v []*ProjectSummary) *ListProjectsOutput {
  2660. s.Projects = v
  2661. return s
  2662. }
  2663. type ListResourcesInput struct {
  2664. _ struct{} `type:"structure"`
  2665. // The maximum amount of data that can be contained in a single set of results.
  2666. MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
  2667. // The continuation token for the next set of results, if the results cannot
  2668. // be returned in one response.
  2669. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  2670. // The ID of the project.
  2671. //
  2672. // ProjectId is a required field
  2673. ProjectId *string `locationName:"projectId" min:"2" type:"string" required:"true"`
  2674. }
  2675. // String returns the string representation
  2676. func (s ListResourcesInput) String() string {
  2677. return awsutil.Prettify(s)
  2678. }
  2679. // GoString returns the string representation
  2680. func (s ListResourcesInput) GoString() string {
  2681. return s.String()
  2682. }
  2683. // Validate inspects the fields of the type to determine if they are valid.
  2684. func (s *ListResourcesInput) Validate() error {
  2685. invalidParams := request.ErrInvalidParams{Context: "ListResourcesInput"}
  2686. if s.MaxResults != nil && *s.MaxResults < 1 {
  2687. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  2688. }
  2689. if s.NextToken != nil && len(*s.NextToken) < 1 {
  2690. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  2691. }
  2692. if s.ProjectId == nil {
  2693. invalidParams.Add(request.NewErrParamRequired("ProjectId"))
  2694. }
  2695. if s.ProjectId != nil && len(*s.ProjectId) < 2 {
  2696. invalidParams.Add(request.NewErrParamMinLen("ProjectId", 2))
  2697. }
  2698. if invalidParams.Len() > 0 {
  2699. return invalidParams
  2700. }
  2701. return nil
  2702. }
  2703. // SetMaxResults sets the MaxResults field's value.
  2704. func (s *ListResourcesInput) SetMaxResults(v int64) *ListResourcesInput {
  2705. s.MaxResults = &v
  2706. return s
  2707. }
  2708. // SetNextToken sets the NextToken field's value.
  2709. func (s *ListResourcesInput) SetNextToken(v string) *ListResourcesInput {
  2710. s.NextToken = &v
  2711. return s
  2712. }
  2713. // SetProjectId sets the ProjectId field's value.
  2714. func (s *ListResourcesInput) SetProjectId(v string) *ListResourcesInput {
  2715. s.ProjectId = &v
  2716. return s
  2717. }
  2718. type ListResourcesOutput struct {
  2719. _ struct{} `type:"structure"`
  2720. // The continuation token to use when requesting the next set of results, if
  2721. // there are more results to be returned.
  2722. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  2723. // An array of resources associated with the project.
  2724. Resources []*Resource `locationName:"resources" type:"list"`
  2725. }
  2726. // String returns the string representation
  2727. func (s ListResourcesOutput) String() string {
  2728. return awsutil.Prettify(s)
  2729. }
  2730. // GoString returns the string representation
  2731. func (s ListResourcesOutput) GoString() string {
  2732. return s.String()
  2733. }
  2734. // SetNextToken sets the NextToken field's value.
  2735. func (s *ListResourcesOutput) SetNextToken(v string) *ListResourcesOutput {
  2736. s.NextToken = &v
  2737. return s
  2738. }
  2739. // SetResources sets the Resources field's value.
  2740. func (s *ListResourcesOutput) SetResources(v []*Resource) *ListResourcesOutput {
  2741. s.Resources = v
  2742. return s
  2743. }
  2744. type ListTagsForProjectInput struct {
  2745. _ struct{} `type:"structure"`
  2746. // The ID of the project to get tags for.
  2747. //
  2748. // Id is a required field
  2749. Id *string `locationName:"id" min:"2" type:"string" required:"true"`
  2750. // Reserved for future use.
  2751. MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
  2752. // Reserved for future use.
  2753. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  2754. }
  2755. // String returns the string representation
  2756. func (s ListTagsForProjectInput) String() string {
  2757. return awsutil.Prettify(s)
  2758. }
  2759. // GoString returns the string representation
  2760. func (s ListTagsForProjectInput) GoString() string {
  2761. return s.String()
  2762. }
  2763. // Validate inspects the fields of the type to determine if they are valid.
  2764. func (s *ListTagsForProjectInput) Validate() error {
  2765. invalidParams := request.ErrInvalidParams{Context: "ListTagsForProjectInput"}
  2766. if s.Id == nil {
  2767. invalidParams.Add(request.NewErrParamRequired("Id"))
  2768. }
  2769. if s.Id != nil && len(*s.Id) < 2 {
  2770. invalidParams.Add(request.NewErrParamMinLen("Id", 2))
  2771. }
  2772. if s.MaxResults != nil && *s.MaxResults < 1 {
  2773. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  2774. }
  2775. if s.NextToken != nil && len(*s.NextToken) < 1 {
  2776. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  2777. }
  2778. if invalidParams.Len() > 0 {
  2779. return invalidParams
  2780. }
  2781. return nil
  2782. }
  2783. // SetId sets the Id field's value.
  2784. func (s *ListTagsForProjectInput) SetId(v string) *ListTagsForProjectInput {
  2785. s.Id = &v
  2786. return s
  2787. }
  2788. // SetMaxResults sets the MaxResults field's value.
  2789. func (s *ListTagsForProjectInput) SetMaxResults(v int64) *ListTagsForProjectInput {
  2790. s.MaxResults = &v
  2791. return s
  2792. }
  2793. // SetNextToken sets the NextToken field's value.
  2794. func (s *ListTagsForProjectInput) SetNextToken(v string) *ListTagsForProjectInput {
  2795. s.NextToken = &v
  2796. return s
  2797. }
  2798. type ListTagsForProjectOutput struct {
  2799. _ struct{} `type:"structure"`
  2800. // Reserved for future use.
  2801. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  2802. // The tags for the project.
  2803. Tags map[string]*string `locationName:"tags" type:"map"`
  2804. }
  2805. // String returns the string representation
  2806. func (s ListTagsForProjectOutput) String() string {
  2807. return awsutil.Prettify(s)
  2808. }
  2809. // GoString returns the string representation
  2810. func (s ListTagsForProjectOutput) GoString() string {
  2811. return s.String()
  2812. }
  2813. // SetNextToken sets the NextToken field's value.
  2814. func (s *ListTagsForProjectOutput) SetNextToken(v string) *ListTagsForProjectOutput {
  2815. s.NextToken = &v
  2816. return s
  2817. }
  2818. // SetTags sets the Tags field's value.
  2819. func (s *ListTagsForProjectOutput) SetTags(v map[string]*string) *ListTagsForProjectOutput {
  2820. s.Tags = v
  2821. return s
  2822. }
  2823. type ListTeamMembersInput struct {
  2824. _ struct{} `type:"structure"`
  2825. // The maximum number of team members you want returned in a response.
  2826. MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
  2827. // The continuation token for the next set of results, if the results cannot
  2828. // be returned in one response.
  2829. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  2830. // The ID of the project for which you want to list team members.
  2831. //
  2832. // ProjectId is a required field
  2833. ProjectId *string `locationName:"projectId" min:"2" type:"string" required:"true"`
  2834. }
  2835. // String returns the string representation
  2836. func (s ListTeamMembersInput) String() string {
  2837. return awsutil.Prettify(s)
  2838. }
  2839. // GoString returns the string representation
  2840. func (s ListTeamMembersInput) GoString() string {
  2841. return s.String()
  2842. }
  2843. // Validate inspects the fields of the type to determine if they are valid.
  2844. func (s *ListTeamMembersInput) Validate() error {
  2845. invalidParams := request.ErrInvalidParams{Context: "ListTeamMembersInput"}
  2846. if s.MaxResults != nil && *s.MaxResults < 1 {
  2847. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  2848. }
  2849. if s.NextToken != nil && len(*s.NextToken) < 1 {
  2850. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  2851. }
  2852. if s.ProjectId == nil {
  2853. invalidParams.Add(request.NewErrParamRequired("ProjectId"))
  2854. }
  2855. if s.ProjectId != nil && len(*s.ProjectId) < 2 {
  2856. invalidParams.Add(request.NewErrParamMinLen("ProjectId", 2))
  2857. }
  2858. if invalidParams.Len() > 0 {
  2859. return invalidParams
  2860. }
  2861. return nil
  2862. }
  2863. // SetMaxResults sets the MaxResults field's value.
  2864. func (s *ListTeamMembersInput) SetMaxResults(v int64) *ListTeamMembersInput {
  2865. s.MaxResults = &v
  2866. return s
  2867. }
  2868. // SetNextToken sets the NextToken field's value.
  2869. func (s *ListTeamMembersInput) SetNextToken(v string) *ListTeamMembersInput {
  2870. s.NextToken = &v
  2871. return s
  2872. }
  2873. // SetProjectId sets the ProjectId field's value.
  2874. func (s *ListTeamMembersInput) SetProjectId(v string) *ListTeamMembersInput {
  2875. s.ProjectId = &v
  2876. return s
  2877. }
  2878. type ListTeamMembersOutput struct {
  2879. _ struct{} `type:"structure"`
  2880. // The continuation token to use when requesting the next set of results, if
  2881. // there are more results to be returned.
  2882. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  2883. // A list of team member objects for the project.
  2884. //
  2885. // TeamMembers is a required field
  2886. TeamMembers []*TeamMember `locationName:"teamMembers" type:"list" required:"true"`
  2887. }
  2888. // String returns the string representation
  2889. func (s ListTeamMembersOutput) String() string {
  2890. return awsutil.Prettify(s)
  2891. }
  2892. // GoString returns the string representation
  2893. func (s ListTeamMembersOutput) GoString() string {
  2894. return s.String()
  2895. }
  2896. // SetNextToken sets the NextToken field's value.
  2897. func (s *ListTeamMembersOutput) SetNextToken(v string) *ListTeamMembersOutput {
  2898. s.NextToken = &v
  2899. return s
  2900. }
  2901. // SetTeamMembers sets the TeamMembers field's value.
  2902. func (s *ListTeamMembersOutput) SetTeamMembers(v []*TeamMember) *ListTeamMembersOutput {
  2903. s.TeamMembers = v
  2904. return s
  2905. }
  2906. type ListUserProfilesInput struct {
  2907. _ struct{} `type:"structure"`
  2908. // The maximum number of results to return in a response.
  2909. MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
  2910. // The continuation token for the next set of results, if the results cannot
  2911. // be returned in one response.
  2912. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  2913. }
  2914. // String returns the string representation
  2915. func (s ListUserProfilesInput) String() string {
  2916. return awsutil.Prettify(s)
  2917. }
  2918. // GoString returns the string representation
  2919. func (s ListUserProfilesInput) GoString() string {
  2920. return s.String()
  2921. }
  2922. // Validate inspects the fields of the type to determine if they are valid.
  2923. func (s *ListUserProfilesInput) Validate() error {
  2924. invalidParams := request.ErrInvalidParams{Context: "ListUserProfilesInput"}
  2925. if s.MaxResults != nil && *s.MaxResults < 1 {
  2926. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  2927. }
  2928. if s.NextToken != nil && len(*s.NextToken) < 1 {
  2929. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  2930. }
  2931. if invalidParams.Len() > 0 {
  2932. return invalidParams
  2933. }
  2934. return nil
  2935. }
  2936. // SetMaxResults sets the MaxResults field's value.
  2937. func (s *ListUserProfilesInput) SetMaxResults(v int64) *ListUserProfilesInput {
  2938. s.MaxResults = &v
  2939. return s
  2940. }
  2941. // SetNextToken sets the NextToken field's value.
  2942. func (s *ListUserProfilesInput) SetNextToken(v string) *ListUserProfilesInput {
  2943. s.NextToken = &v
  2944. return s
  2945. }
  2946. type ListUserProfilesOutput struct {
  2947. _ struct{} `type:"structure"`
  2948. // The continuation token to use when requesting the next set of results, if
  2949. // there are more results to be returned.
  2950. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  2951. // All the user profiles configured in AWS CodeStar for an AWS account.
  2952. //
  2953. // UserProfiles is a required field
  2954. UserProfiles []*UserProfileSummary `locationName:"userProfiles" type:"list" required:"true"`
  2955. }
  2956. // String returns the string representation
  2957. func (s ListUserProfilesOutput) String() string {
  2958. return awsutil.Prettify(s)
  2959. }
  2960. // GoString returns the string representation
  2961. func (s ListUserProfilesOutput) GoString() string {
  2962. return s.String()
  2963. }
  2964. // SetNextToken sets the NextToken field's value.
  2965. func (s *ListUserProfilesOutput) SetNextToken(v string) *ListUserProfilesOutput {
  2966. s.NextToken = &v
  2967. return s
  2968. }
  2969. // SetUserProfiles sets the UserProfiles field's value.
  2970. func (s *ListUserProfilesOutput) SetUserProfiles(v []*UserProfileSummary) *ListUserProfilesOutput {
  2971. s.UserProfiles = v
  2972. return s
  2973. }
  2974. // An indication of whether a project creation or deletion is failed or successful.
  2975. type ProjectStatus struct {
  2976. _ struct{} `type:"structure"`
  2977. // In the case of a project creation or deletion failure, a reason for the failure.
  2978. Reason *string `locationName:"reason" type:"string"`
  2979. // The phase of completion for a project creation or deletion.
  2980. //
  2981. // State is a required field
  2982. State *string `locationName:"state" type:"string" required:"true"`
  2983. }
  2984. // String returns the string representation
  2985. func (s ProjectStatus) String() string {
  2986. return awsutil.Prettify(s)
  2987. }
  2988. // GoString returns the string representation
  2989. func (s ProjectStatus) GoString() string {
  2990. return s.String()
  2991. }
  2992. // SetReason sets the Reason field's value.
  2993. func (s *ProjectStatus) SetReason(v string) *ProjectStatus {
  2994. s.Reason = &v
  2995. return s
  2996. }
  2997. // SetState sets the State field's value.
  2998. func (s *ProjectStatus) SetState(v string) *ProjectStatus {
  2999. s.State = &v
  3000. return s
  3001. }
  3002. // Information about the metadata for a project.
  3003. type ProjectSummary struct {
  3004. _ struct{} `type:"structure"`
  3005. // The Amazon Resource Name (ARN) of the project.
  3006. ProjectArn *string `locationName:"projectArn" type:"string"`
  3007. // The ID of the project.
  3008. ProjectId *string `locationName:"projectId" min:"2" type:"string"`
  3009. }
  3010. // String returns the string representation
  3011. func (s ProjectSummary) String() string {
  3012. return awsutil.Prettify(s)
  3013. }
  3014. // GoString returns the string representation
  3015. func (s ProjectSummary) GoString() string {
  3016. return s.String()
  3017. }
  3018. // SetProjectArn sets the ProjectArn field's value.
  3019. func (s *ProjectSummary) SetProjectArn(v string) *ProjectSummary {
  3020. s.ProjectArn = &v
  3021. return s
  3022. }
  3023. // SetProjectId sets the ProjectId field's value.
  3024. func (s *ProjectSummary) SetProjectId(v string) *ProjectSummary {
  3025. s.ProjectId = &v
  3026. return s
  3027. }
  3028. // Information about a resource for a project.
  3029. type Resource struct {
  3030. _ struct{} `type:"structure"`
  3031. // The Amazon Resource Name (ARN) of the resource.
  3032. //
  3033. // Id is a required field
  3034. Id *string `locationName:"id" min:"11" type:"string" required:"true"`
  3035. }
  3036. // String returns the string representation
  3037. func (s Resource) String() string {
  3038. return awsutil.Prettify(s)
  3039. }
  3040. // GoString returns the string representation
  3041. func (s Resource) GoString() string {
  3042. return s.String()
  3043. }
  3044. // SetId sets the Id field's value.
  3045. func (s *Resource) SetId(v string) *Resource {
  3046. s.Id = &v
  3047. return s
  3048. }
  3049. // The Amazon S3 location where the source code files provided with the project
  3050. // request are stored.
  3051. type S3Location struct {
  3052. _ struct{} `type:"structure"`
  3053. // The Amazon S3 object key where the source code files provided with the project
  3054. // request are stored.
  3055. BucketKey *string `locationName:"bucketKey" type:"string"`
  3056. // The Amazon S3 bucket name where the source code files provided with the project
  3057. // request are stored.
  3058. BucketName *string `locationName:"bucketName" min:"3" type:"string"`
  3059. }
  3060. // String returns the string representation
  3061. func (s S3Location) String() string {
  3062. return awsutil.Prettify(s)
  3063. }
  3064. // GoString returns the string representation
  3065. func (s S3Location) GoString() string {
  3066. return s.String()
  3067. }
  3068. // Validate inspects the fields of the type to determine if they are valid.
  3069. func (s *S3Location) Validate() error {
  3070. invalidParams := request.ErrInvalidParams{Context: "S3Location"}
  3071. if s.BucketName != nil && len(*s.BucketName) < 3 {
  3072. invalidParams.Add(request.NewErrParamMinLen("BucketName", 3))
  3073. }
  3074. if invalidParams.Len() > 0 {
  3075. return invalidParams
  3076. }
  3077. return nil
  3078. }
  3079. // SetBucketKey sets the BucketKey field's value.
  3080. func (s *S3Location) SetBucketKey(v string) *S3Location {
  3081. s.BucketKey = &v
  3082. return s
  3083. }
  3084. // SetBucketName sets the BucketName field's value.
  3085. func (s *S3Location) SetBucketName(v string) *S3Location {
  3086. s.BucketName = &v
  3087. return s
  3088. }
  3089. type TagProjectInput struct {
  3090. _ struct{} `type:"structure"`
  3091. // The ID of the project you want to add a tag to.
  3092. //
  3093. // Id is a required field
  3094. Id *string `locationName:"id" min:"2" type:"string" required:"true"`
  3095. // The tags you want to add to the project.
  3096. //
  3097. // Tags is a required field
  3098. Tags map[string]*string `locationName:"tags" type:"map" required:"true"`
  3099. }
  3100. // String returns the string representation
  3101. func (s TagProjectInput) String() string {
  3102. return awsutil.Prettify(s)
  3103. }
  3104. // GoString returns the string representation
  3105. func (s TagProjectInput) GoString() string {
  3106. return s.String()
  3107. }
  3108. // Validate inspects the fields of the type to determine if they are valid.
  3109. func (s *TagProjectInput) Validate() error {
  3110. invalidParams := request.ErrInvalidParams{Context: "TagProjectInput"}
  3111. if s.Id == nil {
  3112. invalidParams.Add(request.NewErrParamRequired("Id"))
  3113. }
  3114. if s.Id != nil && len(*s.Id) < 2 {
  3115. invalidParams.Add(request.NewErrParamMinLen("Id", 2))
  3116. }
  3117. if s.Tags == nil {
  3118. invalidParams.Add(request.NewErrParamRequired("Tags"))
  3119. }
  3120. if invalidParams.Len() > 0 {
  3121. return invalidParams
  3122. }
  3123. return nil
  3124. }
  3125. // SetId sets the Id field's value.
  3126. func (s *TagProjectInput) SetId(v string) *TagProjectInput {
  3127. s.Id = &v
  3128. return s
  3129. }
  3130. // SetTags sets the Tags field's value.
  3131. func (s *TagProjectInput) SetTags(v map[string]*string) *TagProjectInput {
  3132. s.Tags = v
  3133. return s
  3134. }
  3135. type TagProjectOutput struct {
  3136. _ struct{} `type:"structure"`
  3137. // The tags for the project.
  3138. Tags map[string]*string `locationName:"tags" type:"map"`
  3139. }
  3140. // String returns the string representation
  3141. func (s TagProjectOutput) String() string {
  3142. return awsutil.Prettify(s)
  3143. }
  3144. // GoString returns the string representation
  3145. func (s TagProjectOutput) GoString() string {
  3146. return s.String()
  3147. }
  3148. // SetTags sets the Tags field's value.
  3149. func (s *TagProjectOutput) SetTags(v map[string]*string) *TagProjectOutput {
  3150. s.Tags = v
  3151. return s
  3152. }
  3153. // Information about a team member in a project.
  3154. type TeamMember struct {
  3155. _ struct{} `type:"structure"`
  3156. // The role assigned to the user in the project. Project roles have different
  3157. // levels of access. For more information, see Working with Teams (http://docs.aws.amazon.com/codestar/latest/userguide/working-with-teams.html)
  3158. // in the AWS CodeStar User Guide.
  3159. //
  3160. // ProjectRole is a required field
  3161. ProjectRole *string `locationName:"projectRole" type:"string" required:"true"`
  3162. // Whether the user is allowed to remotely access project resources using an
  3163. // SSH public/private key pair.
  3164. RemoteAccessAllowed *bool `locationName:"remoteAccessAllowed" type:"boolean"`
  3165. // The Amazon Resource Name (ARN) of the user in IAM.
  3166. //
  3167. // UserArn is a required field
  3168. UserArn *string `locationName:"userArn" min:"32" type:"string" required:"true"`
  3169. }
  3170. // String returns the string representation
  3171. func (s TeamMember) String() string {
  3172. return awsutil.Prettify(s)
  3173. }
  3174. // GoString returns the string representation
  3175. func (s TeamMember) GoString() string {
  3176. return s.String()
  3177. }
  3178. // SetProjectRole sets the ProjectRole field's value.
  3179. func (s *TeamMember) SetProjectRole(v string) *TeamMember {
  3180. s.ProjectRole = &v
  3181. return s
  3182. }
  3183. // SetRemoteAccessAllowed sets the RemoteAccessAllowed field's value.
  3184. func (s *TeamMember) SetRemoteAccessAllowed(v bool) *TeamMember {
  3185. s.RemoteAccessAllowed = &v
  3186. return s
  3187. }
  3188. // SetUserArn sets the UserArn field's value.
  3189. func (s *TeamMember) SetUserArn(v string) *TeamMember {
  3190. s.UserArn = &v
  3191. return s
  3192. }
  3193. // The toolchain template file provided with the project request. AWS CodeStar
  3194. // uses the template to provision the toolchain stack in AWS CloudFormation.
  3195. type Toolchain struct {
  3196. _ struct{} `type:"structure"`
  3197. // The service role ARN for AWS CodeStar to use for the toolchain template during
  3198. // stack provisioning.
  3199. RoleArn *string `locationName:"roleArn" min:"1" type:"string"`
  3200. // The Amazon S3 location where the toolchain template file provided with the
  3201. // project request is stored. AWS CodeStar retrieves the file during project
  3202. // creation.
  3203. //
  3204. // Source is a required field
  3205. Source *ToolchainSource `locationName:"source" type:"structure" required:"true"`
  3206. // The list of parameter overrides to be passed into the toolchain template
  3207. // during stack provisioning, if any.
  3208. StackParameters map[string]*string `locationName:"stackParameters" type:"map"`
  3209. }
  3210. // String returns the string representation
  3211. func (s Toolchain) String() string {
  3212. return awsutil.Prettify(s)
  3213. }
  3214. // GoString returns the string representation
  3215. func (s Toolchain) GoString() string {
  3216. return s.String()
  3217. }
  3218. // Validate inspects the fields of the type to determine if they are valid.
  3219. func (s *Toolchain) Validate() error {
  3220. invalidParams := request.ErrInvalidParams{Context: "Toolchain"}
  3221. if s.RoleArn != nil && len(*s.RoleArn) < 1 {
  3222. invalidParams.Add(request.NewErrParamMinLen("RoleArn", 1))
  3223. }
  3224. if s.Source == nil {
  3225. invalidParams.Add(request.NewErrParamRequired("Source"))
  3226. }
  3227. if s.Source != nil {
  3228. if err := s.Source.Validate(); err != nil {
  3229. invalidParams.AddNested("Source", err.(request.ErrInvalidParams))
  3230. }
  3231. }
  3232. if invalidParams.Len() > 0 {
  3233. return invalidParams
  3234. }
  3235. return nil
  3236. }
  3237. // SetRoleArn sets the RoleArn field's value.
  3238. func (s *Toolchain) SetRoleArn(v string) *Toolchain {
  3239. s.RoleArn = &v
  3240. return s
  3241. }
  3242. // SetSource sets the Source field's value.
  3243. func (s *Toolchain) SetSource(v *ToolchainSource) *Toolchain {
  3244. s.Source = v
  3245. return s
  3246. }
  3247. // SetStackParameters sets the StackParameters field's value.
  3248. func (s *Toolchain) SetStackParameters(v map[string]*string) *Toolchain {
  3249. s.StackParameters = v
  3250. return s
  3251. }
  3252. // The Amazon S3 location where the toolchain template file provided with the
  3253. // project request is stored. AWS CodeStar retrieves the file during project
  3254. // creation.
  3255. type ToolchainSource struct {
  3256. _ struct{} `type:"structure"`
  3257. // The Amazon S3 bucket where the toolchain template file provided with the
  3258. // project request is stored.
  3259. //
  3260. // S3 is a required field
  3261. S3 *S3Location `locationName:"s3" type:"structure" required:"true"`
  3262. }
  3263. // String returns the string representation
  3264. func (s ToolchainSource) String() string {
  3265. return awsutil.Prettify(s)
  3266. }
  3267. // GoString returns the string representation
  3268. func (s ToolchainSource) GoString() string {
  3269. return s.String()
  3270. }
  3271. // Validate inspects the fields of the type to determine if they are valid.
  3272. func (s *ToolchainSource) Validate() error {
  3273. invalidParams := request.ErrInvalidParams{Context: "ToolchainSource"}
  3274. if s.S3 == nil {
  3275. invalidParams.Add(request.NewErrParamRequired("S3"))
  3276. }
  3277. if s.S3 != nil {
  3278. if err := s.S3.Validate(); err != nil {
  3279. invalidParams.AddNested("S3", err.(request.ErrInvalidParams))
  3280. }
  3281. }
  3282. if invalidParams.Len() > 0 {
  3283. return invalidParams
  3284. }
  3285. return nil
  3286. }
  3287. // SetS3 sets the S3 field's value.
  3288. func (s *ToolchainSource) SetS3(v *S3Location) *ToolchainSource {
  3289. s.S3 = v
  3290. return s
  3291. }
  3292. type UntagProjectInput struct {
  3293. _ struct{} `type:"structure"`
  3294. // The ID of the project to remove tags from.
  3295. //
  3296. // Id is a required field
  3297. Id *string `locationName:"id" min:"2" type:"string" required:"true"`
  3298. // The tags to remove from the project.
  3299. //
  3300. // Tags is a required field
  3301. Tags []*string `locationName:"tags" type:"list" required:"true"`
  3302. }
  3303. // String returns the string representation
  3304. func (s UntagProjectInput) String() string {
  3305. return awsutil.Prettify(s)
  3306. }
  3307. // GoString returns the string representation
  3308. func (s UntagProjectInput) GoString() string {
  3309. return s.String()
  3310. }
  3311. // Validate inspects the fields of the type to determine if they are valid.
  3312. func (s *UntagProjectInput) Validate() error {
  3313. invalidParams := request.ErrInvalidParams{Context: "UntagProjectInput"}
  3314. if s.Id == nil {
  3315. invalidParams.Add(request.NewErrParamRequired("Id"))
  3316. }
  3317. if s.Id != nil && len(*s.Id) < 2 {
  3318. invalidParams.Add(request.NewErrParamMinLen("Id", 2))
  3319. }
  3320. if s.Tags == nil {
  3321. invalidParams.Add(request.NewErrParamRequired("Tags"))
  3322. }
  3323. if invalidParams.Len() > 0 {
  3324. return invalidParams
  3325. }
  3326. return nil
  3327. }
  3328. // SetId sets the Id field's value.
  3329. func (s *UntagProjectInput) SetId(v string) *UntagProjectInput {
  3330. s.Id = &v
  3331. return s
  3332. }
  3333. // SetTags sets the Tags field's value.
  3334. func (s *UntagProjectInput) SetTags(v []*string) *UntagProjectInput {
  3335. s.Tags = v
  3336. return s
  3337. }
  3338. type UntagProjectOutput struct {
  3339. _ struct{} `type:"structure"`
  3340. }
  3341. // String returns the string representation
  3342. func (s UntagProjectOutput) String() string {
  3343. return awsutil.Prettify(s)
  3344. }
  3345. // GoString returns the string representation
  3346. func (s UntagProjectOutput) GoString() string {
  3347. return s.String()
  3348. }
  3349. type UpdateProjectInput struct {
  3350. _ struct{} `type:"structure"`
  3351. // The description of the project, if any.
  3352. Description *string `locationName:"description" type:"string" sensitive:"true"`
  3353. // The ID of the project you want to update.
  3354. //
  3355. // Id is a required field
  3356. Id *string `locationName:"id" min:"2" type:"string" required:"true"`
  3357. // The name of the project you want to update.
  3358. Name *string `locationName:"name" min:"1" type:"string" sensitive:"true"`
  3359. }
  3360. // String returns the string representation
  3361. func (s UpdateProjectInput) String() string {
  3362. return awsutil.Prettify(s)
  3363. }
  3364. // GoString returns the string representation
  3365. func (s UpdateProjectInput) GoString() string {
  3366. return s.String()
  3367. }
  3368. // Validate inspects the fields of the type to determine if they are valid.
  3369. func (s *UpdateProjectInput) Validate() error {
  3370. invalidParams := request.ErrInvalidParams{Context: "UpdateProjectInput"}
  3371. if s.Id == nil {
  3372. invalidParams.Add(request.NewErrParamRequired("Id"))
  3373. }
  3374. if s.Id != nil && len(*s.Id) < 2 {
  3375. invalidParams.Add(request.NewErrParamMinLen("Id", 2))
  3376. }
  3377. if s.Name != nil && len(*s.Name) < 1 {
  3378. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  3379. }
  3380. if invalidParams.Len() > 0 {
  3381. return invalidParams
  3382. }
  3383. return nil
  3384. }
  3385. // SetDescription sets the Description field's value.
  3386. func (s *UpdateProjectInput) SetDescription(v string) *UpdateProjectInput {
  3387. s.Description = &v
  3388. return s
  3389. }
  3390. // SetId sets the Id field's value.
  3391. func (s *UpdateProjectInput) SetId(v string) *UpdateProjectInput {
  3392. s.Id = &v
  3393. return s
  3394. }
  3395. // SetName sets the Name field's value.
  3396. func (s *UpdateProjectInput) SetName(v string) *UpdateProjectInput {
  3397. s.Name = &v
  3398. return s
  3399. }
  3400. type UpdateProjectOutput struct {
  3401. _ struct{} `type:"structure"`
  3402. }
  3403. // String returns the string representation
  3404. func (s UpdateProjectOutput) String() string {
  3405. return awsutil.Prettify(s)
  3406. }
  3407. // GoString returns the string representation
  3408. func (s UpdateProjectOutput) GoString() string {
  3409. return s.String()
  3410. }
  3411. type UpdateTeamMemberInput struct {
  3412. _ struct{} `type:"structure"`
  3413. // The ID of the project.
  3414. //
  3415. // ProjectId is a required field
  3416. ProjectId *string `locationName:"projectId" min:"2" type:"string" required:"true"`
  3417. // The role assigned to the user in the project. Project roles have different
  3418. // levels of access. For more information, see Working with Teams (http://docs.aws.amazon.com/codestar/latest/userguide/working-with-teams.html)
  3419. // in the AWS CodeStar User Guide.
  3420. ProjectRole *string `locationName:"projectRole" type:"string"`
  3421. // Whether a team member is allowed to remotely access project resources using
  3422. // the SSH public key associated with the user's profile. Even if this is set
  3423. // to True, the user must associate a public key with their profile before the
  3424. // user can access resources.
  3425. RemoteAccessAllowed *bool `locationName:"remoteAccessAllowed" type:"boolean"`
  3426. // The Amazon Resource Name (ARN) of the user for whom you want to change team
  3427. // membership attributes.
  3428. //
  3429. // UserArn is a required field
  3430. UserArn *string `locationName:"userArn" min:"32" type:"string" required:"true"`
  3431. }
  3432. // String returns the string representation
  3433. func (s UpdateTeamMemberInput) String() string {
  3434. return awsutil.Prettify(s)
  3435. }
  3436. // GoString returns the string representation
  3437. func (s UpdateTeamMemberInput) GoString() string {
  3438. return s.String()
  3439. }
  3440. // Validate inspects the fields of the type to determine if they are valid.
  3441. func (s *UpdateTeamMemberInput) Validate() error {
  3442. invalidParams := request.ErrInvalidParams{Context: "UpdateTeamMemberInput"}
  3443. if s.ProjectId == nil {
  3444. invalidParams.Add(request.NewErrParamRequired("ProjectId"))
  3445. }
  3446. if s.ProjectId != nil && len(*s.ProjectId) < 2 {
  3447. invalidParams.Add(request.NewErrParamMinLen("ProjectId", 2))
  3448. }
  3449. if s.UserArn == nil {
  3450. invalidParams.Add(request.NewErrParamRequired("UserArn"))
  3451. }
  3452. if s.UserArn != nil && len(*s.UserArn) < 32 {
  3453. invalidParams.Add(request.NewErrParamMinLen("UserArn", 32))
  3454. }
  3455. if invalidParams.Len() > 0 {
  3456. return invalidParams
  3457. }
  3458. return nil
  3459. }
  3460. // SetProjectId sets the ProjectId field's value.
  3461. func (s *UpdateTeamMemberInput) SetProjectId(v string) *UpdateTeamMemberInput {
  3462. s.ProjectId = &v
  3463. return s
  3464. }
  3465. // SetProjectRole sets the ProjectRole field's value.
  3466. func (s *UpdateTeamMemberInput) SetProjectRole(v string) *UpdateTeamMemberInput {
  3467. s.ProjectRole = &v
  3468. return s
  3469. }
  3470. // SetRemoteAccessAllowed sets the RemoteAccessAllowed field's value.
  3471. func (s *UpdateTeamMemberInput) SetRemoteAccessAllowed(v bool) *UpdateTeamMemberInput {
  3472. s.RemoteAccessAllowed = &v
  3473. return s
  3474. }
  3475. // SetUserArn sets the UserArn field's value.
  3476. func (s *UpdateTeamMemberInput) SetUserArn(v string) *UpdateTeamMemberInput {
  3477. s.UserArn = &v
  3478. return s
  3479. }
  3480. type UpdateTeamMemberOutput struct {
  3481. _ struct{} `type:"structure"`
  3482. // The project role granted to the user.
  3483. ProjectRole *string `locationName:"projectRole" type:"string"`
  3484. // Whether a team member is allowed to remotely access project resources using
  3485. // the SSH public key associated with the user's profile.
  3486. RemoteAccessAllowed *bool `locationName:"remoteAccessAllowed" type:"boolean"`
  3487. // The Amazon Resource Name (ARN) of the user whose team membership attributes
  3488. // were updated.
  3489. UserArn *string `locationName:"userArn" min:"32" type:"string"`
  3490. }
  3491. // String returns the string representation
  3492. func (s UpdateTeamMemberOutput) String() string {
  3493. return awsutil.Prettify(s)
  3494. }
  3495. // GoString returns the string representation
  3496. func (s UpdateTeamMemberOutput) GoString() string {
  3497. return s.String()
  3498. }
  3499. // SetProjectRole sets the ProjectRole field's value.
  3500. func (s *UpdateTeamMemberOutput) SetProjectRole(v string) *UpdateTeamMemberOutput {
  3501. s.ProjectRole = &v
  3502. return s
  3503. }
  3504. // SetRemoteAccessAllowed sets the RemoteAccessAllowed field's value.
  3505. func (s *UpdateTeamMemberOutput) SetRemoteAccessAllowed(v bool) *UpdateTeamMemberOutput {
  3506. s.RemoteAccessAllowed = &v
  3507. return s
  3508. }
  3509. // SetUserArn sets the UserArn field's value.
  3510. func (s *UpdateTeamMemberOutput) SetUserArn(v string) *UpdateTeamMemberOutput {
  3511. s.UserArn = &v
  3512. return s
  3513. }
  3514. type UpdateUserProfileInput struct {
  3515. _ struct{} `type:"structure"`
  3516. // The name that is displayed as the friendly name for the user in AWS CodeStar.
  3517. DisplayName *string `locationName:"displayName" min:"1" type:"string" sensitive:"true"`
  3518. // The email address that is displayed as part of the user's profile in AWS
  3519. // CodeStar.
  3520. EmailAddress *string `locationName:"emailAddress" min:"3" type:"string" sensitive:"true"`
  3521. // The SSH public key associated with the user in AWS CodeStar. If a project
  3522. // owner allows the user remote access to project resources, this public key
  3523. // will be used along with the user's private key for SSH access.
  3524. SshPublicKey *string `locationName:"sshPublicKey" type:"string"`
  3525. // The name that will be displayed as the friendly name for the user in AWS
  3526. // CodeStar.
  3527. //
  3528. // UserArn is a required field
  3529. UserArn *string `locationName:"userArn" min:"32" type:"string" required:"true"`
  3530. }
  3531. // String returns the string representation
  3532. func (s UpdateUserProfileInput) String() string {
  3533. return awsutil.Prettify(s)
  3534. }
  3535. // GoString returns the string representation
  3536. func (s UpdateUserProfileInput) GoString() string {
  3537. return s.String()
  3538. }
  3539. // Validate inspects the fields of the type to determine if they are valid.
  3540. func (s *UpdateUserProfileInput) Validate() error {
  3541. invalidParams := request.ErrInvalidParams{Context: "UpdateUserProfileInput"}
  3542. if s.DisplayName != nil && len(*s.DisplayName) < 1 {
  3543. invalidParams.Add(request.NewErrParamMinLen("DisplayName", 1))
  3544. }
  3545. if s.EmailAddress != nil && len(*s.EmailAddress) < 3 {
  3546. invalidParams.Add(request.NewErrParamMinLen("EmailAddress", 3))
  3547. }
  3548. if s.UserArn == nil {
  3549. invalidParams.Add(request.NewErrParamRequired("UserArn"))
  3550. }
  3551. if s.UserArn != nil && len(*s.UserArn) < 32 {
  3552. invalidParams.Add(request.NewErrParamMinLen("UserArn", 32))
  3553. }
  3554. if invalidParams.Len() > 0 {
  3555. return invalidParams
  3556. }
  3557. return nil
  3558. }
  3559. // SetDisplayName sets the DisplayName field's value.
  3560. func (s *UpdateUserProfileInput) SetDisplayName(v string) *UpdateUserProfileInput {
  3561. s.DisplayName = &v
  3562. return s
  3563. }
  3564. // SetEmailAddress sets the EmailAddress field's value.
  3565. func (s *UpdateUserProfileInput) SetEmailAddress(v string) *UpdateUserProfileInput {
  3566. s.EmailAddress = &v
  3567. return s
  3568. }
  3569. // SetSshPublicKey sets the SshPublicKey field's value.
  3570. func (s *UpdateUserProfileInput) SetSshPublicKey(v string) *UpdateUserProfileInput {
  3571. s.SshPublicKey = &v
  3572. return s
  3573. }
  3574. // SetUserArn sets the UserArn field's value.
  3575. func (s *UpdateUserProfileInput) SetUserArn(v string) *UpdateUserProfileInput {
  3576. s.UserArn = &v
  3577. return s
  3578. }
  3579. type UpdateUserProfileOutput struct {
  3580. _ struct{} `type:"structure"`
  3581. // The date the user profile was created, in timestamp format.
  3582. CreatedTimestamp *time.Time `locationName:"createdTimestamp" type:"timestamp"`
  3583. // The name that is displayed as the friendly name for the user in AWS CodeStar.
  3584. DisplayName *string `locationName:"displayName" min:"1" type:"string" sensitive:"true"`
  3585. // The email address that is displayed as part of the user's profile in AWS
  3586. // CodeStar.
  3587. EmailAddress *string `locationName:"emailAddress" min:"3" type:"string" sensitive:"true"`
  3588. // The date the user profile was last modified, in timestamp format.
  3589. LastModifiedTimestamp *time.Time `locationName:"lastModifiedTimestamp" type:"timestamp"`
  3590. // The SSH public key associated with the user in AWS CodeStar. This is the
  3591. // public portion of the public/private keypair the user can use to access project
  3592. // resources if a project owner allows the user remote access to those resources.
  3593. SshPublicKey *string `locationName:"sshPublicKey" type:"string"`
  3594. // The Amazon Resource Name (ARN) of the user in IAM.
  3595. //
  3596. // UserArn is a required field
  3597. UserArn *string `locationName:"userArn" min:"32" type:"string" required:"true"`
  3598. }
  3599. // String returns the string representation
  3600. func (s UpdateUserProfileOutput) String() string {
  3601. return awsutil.Prettify(s)
  3602. }
  3603. // GoString returns the string representation
  3604. func (s UpdateUserProfileOutput) GoString() string {
  3605. return s.String()
  3606. }
  3607. // SetCreatedTimestamp sets the CreatedTimestamp field's value.
  3608. func (s *UpdateUserProfileOutput) SetCreatedTimestamp(v time.Time) *UpdateUserProfileOutput {
  3609. s.CreatedTimestamp = &v
  3610. return s
  3611. }
  3612. // SetDisplayName sets the DisplayName field's value.
  3613. func (s *UpdateUserProfileOutput) SetDisplayName(v string) *UpdateUserProfileOutput {
  3614. s.DisplayName = &v
  3615. return s
  3616. }
  3617. // SetEmailAddress sets the EmailAddress field's value.
  3618. func (s *UpdateUserProfileOutput) SetEmailAddress(v string) *UpdateUserProfileOutput {
  3619. s.EmailAddress = &v
  3620. return s
  3621. }
  3622. // SetLastModifiedTimestamp sets the LastModifiedTimestamp field's value.
  3623. func (s *UpdateUserProfileOutput) SetLastModifiedTimestamp(v time.Time) *UpdateUserProfileOutput {
  3624. s.LastModifiedTimestamp = &v
  3625. return s
  3626. }
  3627. // SetSshPublicKey sets the SshPublicKey field's value.
  3628. func (s *UpdateUserProfileOutput) SetSshPublicKey(v string) *UpdateUserProfileOutput {
  3629. s.SshPublicKey = &v
  3630. return s
  3631. }
  3632. // SetUserArn sets the UserArn field's value.
  3633. func (s *UpdateUserProfileOutput) SetUserArn(v string) *UpdateUserProfileOutput {
  3634. s.UserArn = &v
  3635. return s
  3636. }
  3637. // Information about a user's profile in AWS CodeStar.
  3638. type UserProfileSummary struct {
  3639. _ struct{} `type:"structure"`
  3640. // The display name of a user in AWS CodeStar. For example, this could be set
  3641. // to both first and last name ("Mary Major") or a single name ("Mary"). The
  3642. // display name is also used to generate the initial icon associated with the
  3643. // user in AWS CodeStar projects. If spaces are included in the display name,
  3644. // the first character that appears after the space will be used as the second
  3645. // character in the user initial icon. The initial icon displays a maximum of
  3646. // two characters, so a display name with more than one space (for example "Mary
  3647. // Jane Major") would generate an initial icon using the first character and
  3648. // the first character after the space ("MJ", not "MM").
  3649. DisplayName *string `locationName:"displayName" min:"1" type:"string" sensitive:"true"`
  3650. // The email address associated with the user.
  3651. EmailAddress *string `locationName:"emailAddress" min:"3" type:"string" sensitive:"true"`
  3652. // The SSH public key associated with the user in AWS CodeStar. If a project
  3653. // owner allows the user remote access to project resources, this public key
  3654. // will be used along with the user's private key for SSH access.
  3655. SshPublicKey *string `locationName:"sshPublicKey" type:"string"`
  3656. // The Amazon Resource Name (ARN) of the user in IAM.
  3657. UserArn *string `locationName:"userArn" min:"32" type:"string"`
  3658. }
  3659. // String returns the string representation
  3660. func (s UserProfileSummary) String() string {
  3661. return awsutil.Prettify(s)
  3662. }
  3663. // GoString returns the string representation
  3664. func (s UserProfileSummary) GoString() string {
  3665. return s.String()
  3666. }
  3667. // SetDisplayName sets the DisplayName field's value.
  3668. func (s *UserProfileSummary) SetDisplayName(v string) *UserProfileSummary {
  3669. s.DisplayName = &v
  3670. return s
  3671. }
  3672. // SetEmailAddress sets the EmailAddress field's value.
  3673. func (s *UserProfileSummary) SetEmailAddress(v string) *UserProfileSummary {
  3674. s.EmailAddress = &v
  3675. return s
  3676. }
  3677. // SetSshPublicKey sets the SshPublicKey field's value.
  3678. func (s *UserProfileSummary) SetSshPublicKey(v string) *UserProfileSummary {
  3679. s.SshPublicKey = &v
  3680. return s
  3681. }
  3682. // SetUserArn sets the UserArn field's value.
  3683. func (s *UserProfileSummary) SetUserArn(v string) *UserProfileSummary {
  3684. s.UserArn = &v
  3685. return s
  3686. }