api.go 133 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900
  1. // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
  2. package serverlessapplicationrepository
  3. import (
  4. "fmt"
  5. "github.com/aws/aws-sdk-go/aws"
  6. "github.com/aws/aws-sdk-go/aws/awsutil"
  7. "github.com/aws/aws-sdk-go/aws/request"
  8. "github.com/aws/aws-sdk-go/private/protocol"
  9. "github.com/aws/aws-sdk-go/private/protocol/restjson"
  10. )
  11. const opCreateApplication = "CreateApplication"
  12. // CreateApplicationRequest generates a "aws/request.Request" representing the
  13. // client's request for the CreateApplication operation. The "output" return
  14. // value will be populated with the request's response once the request completes
  15. // successfully.
  16. //
  17. // Use "Send" method on the returned Request to send the API call to the service.
  18. // the "output" return value is not valid until after Send returns without error.
  19. //
  20. // See CreateApplication for more information on using the CreateApplication
  21. // API call, and error handling.
  22. //
  23. // This method is useful when you want to inject custom logic or configuration
  24. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  25. //
  26. //
  27. // // Example sending a request using the CreateApplicationRequest method.
  28. // req, resp := client.CreateApplicationRequest(params)
  29. //
  30. // err := req.Send()
  31. // if err == nil { // resp is now filled
  32. // fmt.Println(resp)
  33. // }
  34. //
  35. // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/CreateApplication
  36. func (c *ServerlessApplicationRepository) CreateApplicationRequest(input *CreateApplicationRequest) (req *request.Request, output *CreateApplicationOutput) {
  37. op := &request.Operation{
  38. Name: opCreateApplication,
  39. HTTPMethod: "POST",
  40. HTTPPath: "/applications",
  41. }
  42. if input == nil {
  43. input = &CreateApplicationRequest{}
  44. }
  45. output = &CreateApplicationOutput{}
  46. req = c.newRequest(op, input, output)
  47. return
  48. }
  49. // CreateApplication API operation for AWSServerlessApplicationRepository.
  50. //
  51. // Creates an application, optionally including an AWS SAM file to create the
  52. // first application version in the same call.
  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 AWSServerlessApplicationRepository's
  59. // API operation CreateApplication for usage and error information.
  60. //
  61. // Returned Error Codes:
  62. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  63. // The client is sending more than the allowed number of requests per unit of
  64. // time.
  65. //
  66. // * ErrCodeBadRequestException "BadRequestException"
  67. // One of the parameters in the request is invalid.
  68. //
  69. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  70. // The AWS Serverless Application Repository service encountered an internal
  71. // error.
  72. //
  73. // * ErrCodeConflictException "ConflictException"
  74. // The resource already exists.
  75. //
  76. // * ErrCodeForbiddenException "ForbiddenException"
  77. // The client is not authenticated.
  78. //
  79. // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/CreateApplication
  80. func (c *ServerlessApplicationRepository) CreateApplication(input *CreateApplicationRequest) (*CreateApplicationOutput, error) {
  81. req, out := c.CreateApplicationRequest(input)
  82. return out, req.Send()
  83. }
  84. // CreateApplicationWithContext is the same as CreateApplication with the addition of
  85. // the ability to pass a context and additional request options.
  86. //
  87. // See CreateApplication for details on how to use this API operation.
  88. //
  89. // The context must be non-nil and will be used for request cancellation. If
  90. // the context is nil a panic will occur. In the future the SDK may create
  91. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  92. // for more information on using Contexts.
  93. func (c *ServerlessApplicationRepository) CreateApplicationWithContext(ctx aws.Context, input *CreateApplicationRequest, opts ...request.Option) (*CreateApplicationOutput, error) {
  94. req, out := c.CreateApplicationRequest(input)
  95. req.SetContext(ctx)
  96. req.ApplyOptions(opts...)
  97. return out, req.Send()
  98. }
  99. const opCreateApplicationVersion = "CreateApplicationVersion"
  100. // CreateApplicationVersionRequest generates a "aws/request.Request" representing the
  101. // client's request for the CreateApplicationVersion operation. The "output" return
  102. // value will be populated with the request's response once the request completes
  103. // successfully.
  104. //
  105. // Use "Send" method on the returned Request to send the API call to the service.
  106. // the "output" return value is not valid until after Send returns without error.
  107. //
  108. // See CreateApplicationVersion for more information on using the CreateApplicationVersion
  109. // API call, and error handling.
  110. //
  111. // This method is useful when you want to inject custom logic or configuration
  112. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  113. //
  114. //
  115. // // Example sending a request using the CreateApplicationVersionRequest method.
  116. // req, resp := client.CreateApplicationVersionRequest(params)
  117. //
  118. // err := req.Send()
  119. // if err == nil { // resp is now filled
  120. // fmt.Println(resp)
  121. // }
  122. //
  123. // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/CreateApplicationVersion
  124. func (c *ServerlessApplicationRepository) CreateApplicationVersionRequest(input *CreateApplicationVersionRequest) (req *request.Request, output *CreateApplicationVersionOutput) {
  125. op := &request.Operation{
  126. Name: opCreateApplicationVersion,
  127. HTTPMethod: "PUT",
  128. HTTPPath: "/applications/{applicationId}/versions/{semanticVersion}",
  129. }
  130. if input == nil {
  131. input = &CreateApplicationVersionRequest{}
  132. }
  133. output = &CreateApplicationVersionOutput{}
  134. req = c.newRequest(op, input, output)
  135. return
  136. }
  137. // CreateApplicationVersion API operation for AWSServerlessApplicationRepository.
  138. //
  139. // Creates an application version.
  140. //
  141. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  142. // with awserr.Error's Code and Message methods to get detailed information about
  143. // the error.
  144. //
  145. // See the AWS API reference guide for AWSServerlessApplicationRepository's
  146. // API operation CreateApplicationVersion for usage and error information.
  147. //
  148. // Returned Error Codes:
  149. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  150. // The client is sending more than the allowed number of requests per unit of
  151. // time.
  152. //
  153. // * ErrCodeBadRequestException "BadRequestException"
  154. // One of the parameters in the request is invalid.
  155. //
  156. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  157. // The AWS Serverless Application Repository service encountered an internal
  158. // error.
  159. //
  160. // * ErrCodeConflictException "ConflictException"
  161. // The resource already exists.
  162. //
  163. // * ErrCodeForbiddenException "ForbiddenException"
  164. // The client is not authenticated.
  165. //
  166. // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/CreateApplicationVersion
  167. func (c *ServerlessApplicationRepository) CreateApplicationVersion(input *CreateApplicationVersionRequest) (*CreateApplicationVersionOutput, error) {
  168. req, out := c.CreateApplicationVersionRequest(input)
  169. return out, req.Send()
  170. }
  171. // CreateApplicationVersionWithContext is the same as CreateApplicationVersion with the addition of
  172. // the ability to pass a context and additional request options.
  173. //
  174. // See CreateApplicationVersion for details on how to use this API operation.
  175. //
  176. // The context must be non-nil and will be used for request cancellation. If
  177. // the context is nil a panic will occur. In the future the SDK may create
  178. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  179. // for more information on using Contexts.
  180. func (c *ServerlessApplicationRepository) CreateApplicationVersionWithContext(ctx aws.Context, input *CreateApplicationVersionRequest, opts ...request.Option) (*CreateApplicationVersionOutput, error) {
  181. req, out := c.CreateApplicationVersionRequest(input)
  182. req.SetContext(ctx)
  183. req.ApplyOptions(opts...)
  184. return out, req.Send()
  185. }
  186. const opCreateCloudFormationChangeSet = "CreateCloudFormationChangeSet"
  187. // CreateCloudFormationChangeSetRequest generates a "aws/request.Request" representing the
  188. // client's request for the CreateCloudFormationChangeSet operation. The "output" return
  189. // value will be populated with the request's response once the request completes
  190. // successfully.
  191. //
  192. // Use "Send" method on the returned Request to send the API call to the service.
  193. // the "output" return value is not valid until after Send returns without error.
  194. //
  195. // See CreateCloudFormationChangeSet for more information on using the CreateCloudFormationChangeSet
  196. // API call, and error handling.
  197. //
  198. // This method is useful when you want to inject custom logic or configuration
  199. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  200. //
  201. //
  202. // // Example sending a request using the CreateCloudFormationChangeSetRequest method.
  203. // req, resp := client.CreateCloudFormationChangeSetRequest(params)
  204. //
  205. // err := req.Send()
  206. // if err == nil { // resp is now filled
  207. // fmt.Println(resp)
  208. // }
  209. //
  210. // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/CreateCloudFormationChangeSet
  211. func (c *ServerlessApplicationRepository) CreateCloudFormationChangeSetRequest(input *CreateCloudFormationChangeSetRequest) (req *request.Request, output *CreateCloudFormationChangeSetOutput) {
  212. op := &request.Operation{
  213. Name: opCreateCloudFormationChangeSet,
  214. HTTPMethod: "POST",
  215. HTTPPath: "/applications/{applicationId}/changesets",
  216. }
  217. if input == nil {
  218. input = &CreateCloudFormationChangeSetRequest{}
  219. }
  220. output = &CreateCloudFormationChangeSetOutput{}
  221. req = c.newRequest(op, input, output)
  222. return
  223. }
  224. // CreateCloudFormationChangeSet API operation for AWSServerlessApplicationRepository.
  225. //
  226. // Creates an AWS CloudFormation change set for the given application.
  227. //
  228. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  229. // with awserr.Error's Code and Message methods to get detailed information about
  230. // the error.
  231. //
  232. // See the AWS API reference guide for AWSServerlessApplicationRepository's
  233. // API operation CreateCloudFormationChangeSet for usage and error information.
  234. //
  235. // Returned Error Codes:
  236. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  237. // The client is sending more than the allowed number of requests per unit of
  238. // time.
  239. //
  240. // * ErrCodeBadRequestException "BadRequestException"
  241. // One of the parameters in the request is invalid.
  242. //
  243. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  244. // The AWS Serverless Application Repository service encountered an internal
  245. // error.
  246. //
  247. // * ErrCodeForbiddenException "ForbiddenException"
  248. // The client is not authenticated.
  249. //
  250. // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/CreateCloudFormationChangeSet
  251. func (c *ServerlessApplicationRepository) CreateCloudFormationChangeSet(input *CreateCloudFormationChangeSetRequest) (*CreateCloudFormationChangeSetOutput, error) {
  252. req, out := c.CreateCloudFormationChangeSetRequest(input)
  253. return out, req.Send()
  254. }
  255. // CreateCloudFormationChangeSetWithContext is the same as CreateCloudFormationChangeSet with the addition of
  256. // the ability to pass a context and additional request options.
  257. //
  258. // See CreateCloudFormationChangeSet for details on how to use this API operation.
  259. //
  260. // The context must be non-nil and will be used for request cancellation. If
  261. // the context is nil a panic will occur. In the future the SDK may create
  262. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  263. // for more information on using Contexts.
  264. func (c *ServerlessApplicationRepository) CreateCloudFormationChangeSetWithContext(ctx aws.Context, input *CreateCloudFormationChangeSetRequest, opts ...request.Option) (*CreateCloudFormationChangeSetOutput, error) {
  265. req, out := c.CreateCloudFormationChangeSetRequest(input)
  266. req.SetContext(ctx)
  267. req.ApplyOptions(opts...)
  268. return out, req.Send()
  269. }
  270. const opCreateCloudFormationTemplate = "CreateCloudFormationTemplate"
  271. // CreateCloudFormationTemplateRequest generates a "aws/request.Request" representing the
  272. // client's request for the CreateCloudFormationTemplate operation. The "output" return
  273. // value will be populated with the request's response once the request completes
  274. // successfully.
  275. //
  276. // Use "Send" method on the returned Request to send the API call to the service.
  277. // the "output" return value is not valid until after Send returns without error.
  278. //
  279. // See CreateCloudFormationTemplate for more information on using the CreateCloudFormationTemplate
  280. // API call, and error handling.
  281. //
  282. // This method is useful when you want to inject custom logic or configuration
  283. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  284. //
  285. //
  286. // // Example sending a request using the CreateCloudFormationTemplateRequest method.
  287. // req, resp := client.CreateCloudFormationTemplateRequest(params)
  288. //
  289. // err := req.Send()
  290. // if err == nil { // resp is now filled
  291. // fmt.Println(resp)
  292. // }
  293. //
  294. // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/CreateCloudFormationTemplate
  295. func (c *ServerlessApplicationRepository) CreateCloudFormationTemplateRequest(input *CreateCloudFormationTemplateInput) (req *request.Request, output *CreateCloudFormationTemplateOutput) {
  296. op := &request.Operation{
  297. Name: opCreateCloudFormationTemplate,
  298. HTTPMethod: "POST",
  299. HTTPPath: "/applications/{applicationId}/templates",
  300. }
  301. if input == nil {
  302. input = &CreateCloudFormationTemplateInput{}
  303. }
  304. output = &CreateCloudFormationTemplateOutput{}
  305. req = c.newRequest(op, input, output)
  306. return
  307. }
  308. // CreateCloudFormationTemplate API operation for AWSServerlessApplicationRepository.
  309. //
  310. // Creates an AWS CloudFormation template.
  311. //
  312. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  313. // with awserr.Error's Code and Message methods to get detailed information about
  314. // the error.
  315. //
  316. // See the AWS API reference guide for AWSServerlessApplicationRepository's
  317. // API operation CreateCloudFormationTemplate for usage and error information.
  318. //
  319. // Returned Error Codes:
  320. // * ErrCodeNotFoundException "NotFoundException"
  321. // The resource (for example, an access policy statement) specified in the request
  322. // doesn't exist.
  323. //
  324. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  325. // The client is sending more than the allowed number of requests per unit of
  326. // time.
  327. //
  328. // * ErrCodeBadRequestException "BadRequestException"
  329. // One of the parameters in the request is invalid.
  330. //
  331. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  332. // The AWS Serverless Application Repository service encountered an internal
  333. // error.
  334. //
  335. // * ErrCodeForbiddenException "ForbiddenException"
  336. // The client is not authenticated.
  337. //
  338. // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/CreateCloudFormationTemplate
  339. func (c *ServerlessApplicationRepository) CreateCloudFormationTemplate(input *CreateCloudFormationTemplateInput) (*CreateCloudFormationTemplateOutput, error) {
  340. req, out := c.CreateCloudFormationTemplateRequest(input)
  341. return out, req.Send()
  342. }
  343. // CreateCloudFormationTemplateWithContext is the same as CreateCloudFormationTemplate with the addition of
  344. // the ability to pass a context and additional request options.
  345. //
  346. // See CreateCloudFormationTemplate for details on how to use this API operation.
  347. //
  348. // The context must be non-nil and will be used for request cancellation. If
  349. // the context is nil a panic will occur. In the future the SDK may create
  350. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  351. // for more information on using Contexts.
  352. func (c *ServerlessApplicationRepository) CreateCloudFormationTemplateWithContext(ctx aws.Context, input *CreateCloudFormationTemplateInput, opts ...request.Option) (*CreateCloudFormationTemplateOutput, error) {
  353. req, out := c.CreateCloudFormationTemplateRequest(input)
  354. req.SetContext(ctx)
  355. req.ApplyOptions(opts...)
  356. return out, req.Send()
  357. }
  358. const opDeleteApplication = "DeleteApplication"
  359. // DeleteApplicationRequest generates a "aws/request.Request" representing the
  360. // client's request for the DeleteApplication operation. The "output" return
  361. // value will be populated with the request's response once the request completes
  362. // successfully.
  363. //
  364. // Use "Send" method on the returned Request to send the API call to the service.
  365. // the "output" return value is not valid until after Send returns without error.
  366. //
  367. // See DeleteApplication for more information on using the DeleteApplication
  368. // API call, and error handling.
  369. //
  370. // This method is useful when you want to inject custom logic or configuration
  371. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  372. //
  373. //
  374. // // Example sending a request using the DeleteApplicationRequest method.
  375. // req, resp := client.DeleteApplicationRequest(params)
  376. //
  377. // err := req.Send()
  378. // if err == nil { // resp is now filled
  379. // fmt.Println(resp)
  380. // }
  381. //
  382. // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/DeleteApplication
  383. func (c *ServerlessApplicationRepository) DeleteApplicationRequest(input *DeleteApplicationInput) (req *request.Request, output *DeleteApplicationOutput) {
  384. op := &request.Operation{
  385. Name: opDeleteApplication,
  386. HTTPMethod: "DELETE",
  387. HTTPPath: "/applications/{applicationId}",
  388. }
  389. if input == nil {
  390. input = &DeleteApplicationInput{}
  391. }
  392. output = &DeleteApplicationOutput{}
  393. req = c.newRequest(op, input, output)
  394. req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  395. return
  396. }
  397. // DeleteApplication API operation for AWSServerlessApplicationRepository.
  398. //
  399. // Deletes the specified application.
  400. //
  401. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  402. // with awserr.Error's Code and Message methods to get detailed information about
  403. // the error.
  404. //
  405. // See the AWS API reference guide for AWSServerlessApplicationRepository's
  406. // API operation DeleteApplication for usage and error information.
  407. //
  408. // Returned Error Codes:
  409. // * ErrCodeBadRequestException "BadRequestException"
  410. // One of the parameters in the request is invalid.
  411. //
  412. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  413. // The AWS Serverless Application Repository service encountered an internal
  414. // error.
  415. //
  416. // * ErrCodeForbiddenException "ForbiddenException"
  417. // The client is not authenticated.
  418. //
  419. // * ErrCodeNotFoundException "NotFoundException"
  420. // The resource (for example, an access policy statement) specified in the request
  421. // doesn't exist.
  422. //
  423. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  424. // The client is sending more than the allowed number of requests per unit of
  425. // time.
  426. //
  427. // * ErrCodeConflictException "ConflictException"
  428. // The resource already exists.
  429. //
  430. // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/DeleteApplication
  431. func (c *ServerlessApplicationRepository) DeleteApplication(input *DeleteApplicationInput) (*DeleteApplicationOutput, error) {
  432. req, out := c.DeleteApplicationRequest(input)
  433. return out, req.Send()
  434. }
  435. // DeleteApplicationWithContext is the same as DeleteApplication with the addition of
  436. // the ability to pass a context and additional request options.
  437. //
  438. // See DeleteApplication for details on how to use this API operation.
  439. //
  440. // The context must be non-nil and will be used for request cancellation. If
  441. // the context is nil a panic will occur. In the future the SDK may create
  442. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  443. // for more information on using Contexts.
  444. func (c *ServerlessApplicationRepository) DeleteApplicationWithContext(ctx aws.Context, input *DeleteApplicationInput, opts ...request.Option) (*DeleteApplicationOutput, error) {
  445. req, out := c.DeleteApplicationRequest(input)
  446. req.SetContext(ctx)
  447. req.ApplyOptions(opts...)
  448. return out, req.Send()
  449. }
  450. const opGetApplication = "GetApplication"
  451. // GetApplicationRequest generates a "aws/request.Request" representing the
  452. // client's request for the GetApplication operation. The "output" return
  453. // value will be populated with the request's response once the request completes
  454. // successfully.
  455. //
  456. // Use "Send" method on the returned Request to send the API call to the service.
  457. // the "output" return value is not valid until after Send returns without error.
  458. //
  459. // See GetApplication for more information on using the GetApplication
  460. // API call, and error handling.
  461. //
  462. // This method is useful when you want to inject custom logic or configuration
  463. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  464. //
  465. //
  466. // // Example sending a request using the GetApplicationRequest method.
  467. // req, resp := client.GetApplicationRequest(params)
  468. //
  469. // err := req.Send()
  470. // if err == nil { // resp is now filled
  471. // fmt.Println(resp)
  472. // }
  473. //
  474. // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/GetApplication
  475. func (c *ServerlessApplicationRepository) GetApplicationRequest(input *GetApplicationInput) (req *request.Request, output *GetApplicationOutput) {
  476. op := &request.Operation{
  477. Name: opGetApplication,
  478. HTTPMethod: "GET",
  479. HTTPPath: "/applications/{applicationId}",
  480. }
  481. if input == nil {
  482. input = &GetApplicationInput{}
  483. }
  484. output = &GetApplicationOutput{}
  485. req = c.newRequest(op, input, output)
  486. return
  487. }
  488. // GetApplication API operation for AWSServerlessApplicationRepository.
  489. //
  490. // Gets the specified application.
  491. //
  492. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  493. // with awserr.Error's Code and Message methods to get detailed information about
  494. // the error.
  495. //
  496. // See the AWS API reference guide for AWSServerlessApplicationRepository's
  497. // API operation GetApplication for usage and error information.
  498. //
  499. // Returned Error Codes:
  500. // * ErrCodeNotFoundException "NotFoundException"
  501. // The resource (for example, an access policy statement) specified in the request
  502. // doesn't exist.
  503. //
  504. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  505. // The client is sending more than the allowed number of requests per unit of
  506. // time.
  507. //
  508. // * ErrCodeBadRequestException "BadRequestException"
  509. // One of the parameters in the request is invalid.
  510. //
  511. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  512. // The AWS Serverless Application Repository service encountered an internal
  513. // error.
  514. //
  515. // * ErrCodeForbiddenException "ForbiddenException"
  516. // The client is not authenticated.
  517. //
  518. // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/GetApplication
  519. func (c *ServerlessApplicationRepository) GetApplication(input *GetApplicationInput) (*GetApplicationOutput, error) {
  520. req, out := c.GetApplicationRequest(input)
  521. return out, req.Send()
  522. }
  523. // GetApplicationWithContext is the same as GetApplication with the addition of
  524. // the ability to pass a context and additional request options.
  525. //
  526. // See GetApplication for details on how to use this API operation.
  527. //
  528. // The context must be non-nil and will be used for request cancellation. If
  529. // the context is nil a panic will occur. In the future the SDK may create
  530. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  531. // for more information on using Contexts.
  532. func (c *ServerlessApplicationRepository) GetApplicationWithContext(ctx aws.Context, input *GetApplicationInput, opts ...request.Option) (*GetApplicationOutput, error) {
  533. req, out := c.GetApplicationRequest(input)
  534. req.SetContext(ctx)
  535. req.ApplyOptions(opts...)
  536. return out, req.Send()
  537. }
  538. const opGetApplicationPolicy = "GetApplicationPolicy"
  539. // GetApplicationPolicyRequest generates a "aws/request.Request" representing the
  540. // client's request for the GetApplicationPolicy operation. The "output" return
  541. // value will be populated with the request's response once the request completes
  542. // successfully.
  543. //
  544. // Use "Send" method on the returned Request to send the API call to the service.
  545. // the "output" return value is not valid until after Send returns without error.
  546. //
  547. // See GetApplicationPolicy for more information on using the GetApplicationPolicy
  548. // API call, and error handling.
  549. //
  550. // This method is useful when you want to inject custom logic or configuration
  551. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  552. //
  553. //
  554. // // Example sending a request using the GetApplicationPolicyRequest method.
  555. // req, resp := client.GetApplicationPolicyRequest(params)
  556. //
  557. // err := req.Send()
  558. // if err == nil { // resp is now filled
  559. // fmt.Println(resp)
  560. // }
  561. //
  562. // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/GetApplicationPolicy
  563. func (c *ServerlessApplicationRepository) GetApplicationPolicyRequest(input *GetApplicationPolicyInput) (req *request.Request, output *GetApplicationPolicyOutput) {
  564. op := &request.Operation{
  565. Name: opGetApplicationPolicy,
  566. HTTPMethod: "GET",
  567. HTTPPath: "/applications/{applicationId}/policy",
  568. }
  569. if input == nil {
  570. input = &GetApplicationPolicyInput{}
  571. }
  572. output = &GetApplicationPolicyOutput{}
  573. req = c.newRequest(op, input, output)
  574. return
  575. }
  576. // GetApplicationPolicy API operation for AWSServerlessApplicationRepository.
  577. //
  578. // Retrieves the policy for the application.
  579. //
  580. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  581. // with awserr.Error's Code and Message methods to get detailed information about
  582. // the error.
  583. //
  584. // See the AWS API reference guide for AWSServerlessApplicationRepository's
  585. // API operation GetApplicationPolicy for usage and error information.
  586. //
  587. // Returned Error Codes:
  588. // * ErrCodeNotFoundException "NotFoundException"
  589. // The resource (for example, an access policy statement) specified in the request
  590. // doesn't exist.
  591. //
  592. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  593. // The client is sending more than the allowed number of requests per unit of
  594. // time.
  595. //
  596. // * ErrCodeBadRequestException "BadRequestException"
  597. // One of the parameters in the request is invalid.
  598. //
  599. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  600. // The AWS Serverless Application Repository service encountered an internal
  601. // error.
  602. //
  603. // * ErrCodeForbiddenException "ForbiddenException"
  604. // The client is not authenticated.
  605. //
  606. // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/GetApplicationPolicy
  607. func (c *ServerlessApplicationRepository) GetApplicationPolicy(input *GetApplicationPolicyInput) (*GetApplicationPolicyOutput, error) {
  608. req, out := c.GetApplicationPolicyRequest(input)
  609. return out, req.Send()
  610. }
  611. // GetApplicationPolicyWithContext is the same as GetApplicationPolicy with the addition of
  612. // the ability to pass a context and additional request options.
  613. //
  614. // See GetApplicationPolicy for details on how to use this API operation.
  615. //
  616. // The context must be non-nil and will be used for request cancellation. If
  617. // the context is nil a panic will occur. In the future the SDK may create
  618. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  619. // for more information on using Contexts.
  620. func (c *ServerlessApplicationRepository) GetApplicationPolicyWithContext(ctx aws.Context, input *GetApplicationPolicyInput, opts ...request.Option) (*GetApplicationPolicyOutput, error) {
  621. req, out := c.GetApplicationPolicyRequest(input)
  622. req.SetContext(ctx)
  623. req.ApplyOptions(opts...)
  624. return out, req.Send()
  625. }
  626. const opGetCloudFormationTemplate = "GetCloudFormationTemplate"
  627. // GetCloudFormationTemplateRequest generates a "aws/request.Request" representing the
  628. // client's request for the GetCloudFormationTemplate operation. The "output" return
  629. // value will be populated with the request's response once the request completes
  630. // successfully.
  631. //
  632. // Use "Send" method on the returned Request to send the API call to the service.
  633. // the "output" return value is not valid until after Send returns without error.
  634. //
  635. // See GetCloudFormationTemplate for more information on using the GetCloudFormationTemplate
  636. // API call, and error handling.
  637. //
  638. // This method is useful when you want to inject custom logic or configuration
  639. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  640. //
  641. //
  642. // // Example sending a request using the GetCloudFormationTemplateRequest method.
  643. // req, resp := client.GetCloudFormationTemplateRequest(params)
  644. //
  645. // err := req.Send()
  646. // if err == nil { // resp is now filled
  647. // fmt.Println(resp)
  648. // }
  649. //
  650. // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/GetCloudFormationTemplate
  651. func (c *ServerlessApplicationRepository) GetCloudFormationTemplateRequest(input *GetCloudFormationTemplateInput) (req *request.Request, output *GetCloudFormationTemplateOutput) {
  652. op := &request.Operation{
  653. Name: opGetCloudFormationTemplate,
  654. HTTPMethod: "GET",
  655. HTTPPath: "/applications/{applicationId}/templates/{templateId}",
  656. }
  657. if input == nil {
  658. input = &GetCloudFormationTemplateInput{}
  659. }
  660. output = &GetCloudFormationTemplateOutput{}
  661. req = c.newRequest(op, input, output)
  662. return
  663. }
  664. // GetCloudFormationTemplate API operation for AWSServerlessApplicationRepository.
  665. //
  666. // Gets the specified AWS CloudFormation template.
  667. //
  668. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  669. // with awserr.Error's Code and Message methods to get detailed information about
  670. // the error.
  671. //
  672. // See the AWS API reference guide for AWSServerlessApplicationRepository's
  673. // API operation GetCloudFormationTemplate for usage and error information.
  674. //
  675. // Returned Error Codes:
  676. // * ErrCodeNotFoundException "NotFoundException"
  677. // The resource (for example, an access policy statement) specified in the request
  678. // doesn't exist.
  679. //
  680. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  681. // The client is sending more than the allowed number of requests per unit of
  682. // time.
  683. //
  684. // * ErrCodeBadRequestException "BadRequestException"
  685. // One of the parameters in the request is invalid.
  686. //
  687. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  688. // The AWS Serverless Application Repository service encountered an internal
  689. // error.
  690. //
  691. // * ErrCodeForbiddenException "ForbiddenException"
  692. // The client is not authenticated.
  693. //
  694. // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/GetCloudFormationTemplate
  695. func (c *ServerlessApplicationRepository) GetCloudFormationTemplate(input *GetCloudFormationTemplateInput) (*GetCloudFormationTemplateOutput, error) {
  696. req, out := c.GetCloudFormationTemplateRequest(input)
  697. return out, req.Send()
  698. }
  699. // GetCloudFormationTemplateWithContext is the same as GetCloudFormationTemplate with the addition of
  700. // the ability to pass a context and additional request options.
  701. //
  702. // See GetCloudFormationTemplate for details on how to use this API operation.
  703. //
  704. // The context must be non-nil and will be used for request cancellation. If
  705. // the context is nil a panic will occur. In the future the SDK may create
  706. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  707. // for more information on using Contexts.
  708. func (c *ServerlessApplicationRepository) GetCloudFormationTemplateWithContext(ctx aws.Context, input *GetCloudFormationTemplateInput, opts ...request.Option) (*GetCloudFormationTemplateOutput, error) {
  709. req, out := c.GetCloudFormationTemplateRequest(input)
  710. req.SetContext(ctx)
  711. req.ApplyOptions(opts...)
  712. return out, req.Send()
  713. }
  714. const opListApplicationDependencies = "ListApplicationDependencies"
  715. // ListApplicationDependenciesRequest generates a "aws/request.Request" representing the
  716. // client's request for the ListApplicationDependencies operation. The "output" return
  717. // value will be populated with the request's response once the request completes
  718. // successfully.
  719. //
  720. // Use "Send" method on the returned Request to send the API call to the service.
  721. // the "output" return value is not valid until after Send returns without error.
  722. //
  723. // See ListApplicationDependencies for more information on using the ListApplicationDependencies
  724. // API call, and error handling.
  725. //
  726. // This method is useful when you want to inject custom logic or configuration
  727. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  728. //
  729. //
  730. // // Example sending a request using the ListApplicationDependenciesRequest method.
  731. // req, resp := client.ListApplicationDependenciesRequest(params)
  732. //
  733. // err := req.Send()
  734. // if err == nil { // resp is now filled
  735. // fmt.Println(resp)
  736. // }
  737. //
  738. // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/ListApplicationDependencies
  739. func (c *ServerlessApplicationRepository) ListApplicationDependenciesRequest(input *ListApplicationDependenciesInput) (req *request.Request, output *ListApplicationDependenciesOutput) {
  740. op := &request.Operation{
  741. Name: opListApplicationDependencies,
  742. HTTPMethod: "GET",
  743. HTTPPath: "/applications/{applicationId}/dependencies",
  744. Paginator: &request.Paginator{
  745. InputTokens: []string{"NextToken"},
  746. OutputTokens: []string{"NextToken"},
  747. LimitToken: "MaxItems",
  748. TruncationToken: "",
  749. },
  750. }
  751. if input == nil {
  752. input = &ListApplicationDependenciesInput{}
  753. }
  754. output = &ListApplicationDependenciesOutput{}
  755. req = c.newRequest(op, input, output)
  756. return
  757. }
  758. // ListApplicationDependencies API operation for AWSServerlessApplicationRepository.
  759. //
  760. // Retrieves the list of applications nested in the containing application.
  761. //
  762. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  763. // with awserr.Error's Code and Message methods to get detailed information about
  764. // the error.
  765. //
  766. // See the AWS API reference guide for AWSServerlessApplicationRepository's
  767. // API operation ListApplicationDependencies for usage and error information.
  768. //
  769. // Returned Error Codes:
  770. // * ErrCodeNotFoundException "NotFoundException"
  771. // The resource (for example, an access policy statement) specified in the request
  772. // doesn't exist.
  773. //
  774. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  775. // The client is sending more than the allowed number of requests per unit of
  776. // time.
  777. //
  778. // * ErrCodeBadRequestException "BadRequestException"
  779. // One of the parameters in the request is invalid.
  780. //
  781. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  782. // The AWS Serverless Application Repository service encountered an internal
  783. // error.
  784. //
  785. // * ErrCodeForbiddenException "ForbiddenException"
  786. // The client is not authenticated.
  787. //
  788. // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/ListApplicationDependencies
  789. func (c *ServerlessApplicationRepository) ListApplicationDependencies(input *ListApplicationDependenciesInput) (*ListApplicationDependenciesOutput, error) {
  790. req, out := c.ListApplicationDependenciesRequest(input)
  791. return out, req.Send()
  792. }
  793. // ListApplicationDependenciesWithContext is the same as ListApplicationDependencies with the addition of
  794. // the ability to pass a context and additional request options.
  795. //
  796. // See ListApplicationDependencies for details on how to use this API operation.
  797. //
  798. // The context must be non-nil and will be used for request cancellation. If
  799. // the context is nil a panic will occur. In the future the SDK may create
  800. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  801. // for more information on using Contexts.
  802. func (c *ServerlessApplicationRepository) ListApplicationDependenciesWithContext(ctx aws.Context, input *ListApplicationDependenciesInput, opts ...request.Option) (*ListApplicationDependenciesOutput, error) {
  803. req, out := c.ListApplicationDependenciesRequest(input)
  804. req.SetContext(ctx)
  805. req.ApplyOptions(opts...)
  806. return out, req.Send()
  807. }
  808. // ListApplicationDependenciesPages iterates over the pages of a ListApplicationDependencies operation,
  809. // calling the "fn" function with the response data for each page. To stop
  810. // iterating, return false from the fn function.
  811. //
  812. // See ListApplicationDependencies method for more information on how to use this operation.
  813. //
  814. // Note: This operation can generate multiple requests to a service.
  815. //
  816. // // Example iterating over at most 3 pages of a ListApplicationDependencies operation.
  817. // pageNum := 0
  818. // err := client.ListApplicationDependenciesPages(params,
  819. // func(page *ListApplicationDependenciesOutput, lastPage bool) bool {
  820. // pageNum++
  821. // fmt.Println(page)
  822. // return pageNum <= 3
  823. // })
  824. //
  825. func (c *ServerlessApplicationRepository) ListApplicationDependenciesPages(input *ListApplicationDependenciesInput, fn func(*ListApplicationDependenciesOutput, bool) bool) error {
  826. return c.ListApplicationDependenciesPagesWithContext(aws.BackgroundContext(), input, fn)
  827. }
  828. // ListApplicationDependenciesPagesWithContext same as ListApplicationDependenciesPages except
  829. // it takes a Context and allows setting request options on the pages.
  830. //
  831. // The context must be non-nil and will be used for request cancellation. If
  832. // the context is nil a panic will occur. In the future the SDK may create
  833. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  834. // for more information on using Contexts.
  835. func (c *ServerlessApplicationRepository) ListApplicationDependenciesPagesWithContext(ctx aws.Context, input *ListApplicationDependenciesInput, fn func(*ListApplicationDependenciesOutput, bool) bool, opts ...request.Option) error {
  836. p := request.Pagination{
  837. NewRequest: func() (*request.Request, error) {
  838. var inCpy *ListApplicationDependenciesInput
  839. if input != nil {
  840. tmp := *input
  841. inCpy = &tmp
  842. }
  843. req, _ := c.ListApplicationDependenciesRequest(inCpy)
  844. req.SetContext(ctx)
  845. req.ApplyOptions(opts...)
  846. return req, nil
  847. },
  848. }
  849. cont := true
  850. for p.Next() && cont {
  851. cont = fn(p.Page().(*ListApplicationDependenciesOutput), !p.HasNextPage())
  852. }
  853. return p.Err()
  854. }
  855. const opListApplicationVersions = "ListApplicationVersions"
  856. // ListApplicationVersionsRequest generates a "aws/request.Request" representing the
  857. // client's request for the ListApplicationVersions operation. The "output" return
  858. // value will be populated with the request's response once the request completes
  859. // successfully.
  860. //
  861. // Use "Send" method on the returned Request to send the API call to the service.
  862. // the "output" return value is not valid until after Send returns without error.
  863. //
  864. // See ListApplicationVersions for more information on using the ListApplicationVersions
  865. // API call, and error handling.
  866. //
  867. // This method is useful when you want to inject custom logic or configuration
  868. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  869. //
  870. //
  871. // // Example sending a request using the ListApplicationVersionsRequest method.
  872. // req, resp := client.ListApplicationVersionsRequest(params)
  873. //
  874. // err := req.Send()
  875. // if err == nil { // resp is now filled
  876. // fmt.Println(resp)
  877. // }
  878. //
  879. // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/ListApplicationVersions
  880. func (c *ServerlessApplicationRepository) ListApplicationVersionsRequest(input *ListApplicationVersionsInput) (req *request.Request, output *ListApplicationVersionsOutput) {
  881. op := &request.Operation{
  882. Name: opListApplicationVersions,
  883. HTTPMethod: "GET",
  884. HTTPPath: "/applications/{applicationId}/versions",
  885. Paginator: &request.Paginator{
  886. InputTokens: []string{"NextToken"},
  887. OutputTokens: []string{"NextToken"},
  888. LimitToken: "MaxItems",
  889. TruncationToken: "",
  890. },
  891. }
  892. if input == nil {
  893. input = &ListApplicationVersionsInput{}
  894. }
  895. output = &ListApplicationVersionsOutput{}
  896. req = c.newRequest(op, input, output)
  897. return
  898. }
  899. // ListApplicationVersions API operation for AWSServerlessApplicationRepository.
  900. //
  901. // Lists versions for the specified application.
  902. //
  903. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  904. // with awserr.Error's Code and Message methods to get detailed information about
  905. // the error.
  906. //
  907. // See the AWS API reference guide for AWSServerlessApplicationRepository's
  908. // API operation ListApplicationVersions for usage and error information.
  909. //
  910. // Returned Error Codes:
  911. // * ErrCodeNotFoundException "NotFoundException"
  912. // The resource (for example, an access policy statement) specified in the request
  913. // doesn't exist.
  914. //
  915. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  916. // The client is sending more than the allowed number of requests per unit of
  917. // time.
  918. //
  919. // * ErrCodeBadRequestException "BadRequestException"
  920. // One of the parameters in the request is invalid.
  921. //
  922. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  923. // The AWS Serverless Application Repository service encountered an internal
  924. // error.
  925. //
  926. // * ErrCodeForbiddenException "ForbiddenException"
  927. // The client is not authenticated.
  928. //
  929. // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/ListApplicationVersions
  930. func (c *ServerlessApplicationRepository) ListApplicationVersions(input *ListApplicationVersionsInput) (*ListApplicationVersionsOutput, error) {
  931. req, out := c.ListApplicationVersionsRequest(input)
  932. return out, req.Send()
  933. }
  934. // ListApplicationVersionsWithContext is the same as ListApplicationVersions with the addition of
  935. // the ability to pass a context and additional request options.
  936. //
  937. // See ListApplicationVersions for details on how to use this API operation.
  938. //
  939. // The context must be non-nil and will be used for request cancellation. If
  940. // the context is nil a panic will occur. In the future the SDK may create
  941. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  942. // for more information on using Contexts.
  943. func (c *ServerlessApplicationRepository) ListApplicationVersionsWithContext(ctx aws.Context, input *ListApplicationVersionsInput, opts ...request.Option) (*ListApplicationVersionsOutput, error) {
  944. req, out := c.ListApplicationVersionsRequest(input)
  945. req.SetContext(ctx)
  946. req.ApplyOptions(opts...)
  947. return out, req.Send()
  948. }
  949. // ListApplicationVersionsPages iterates over the pages of a ListApplicationVersions operation,
  950. // calling the "fn" function with the response data for each page. To stop
  951. // iterating, return false from the fn function.
  952. //
  953. // See ListApplicationVersions method for more information on how to use this operation.
  954. //
  955. // Note: This operation can generate multiple requests to a service.
  956. //
  957. // // Example iterating over at most 3 pages of a ListApplicationVersions operation.
  958. // pageNum := 0
  959. // err := client.ListApplicationVersionsPages(params,
  960. // func(page *ListApplicationVersionsOutput, lastPage bool) bool {
  961. // pageNum++
  962. // fmt.Println(page)
  963. // return pageNum <= 3
  964. // })
  965. //
  966. func (c *ServerlessApplicationRepository) ListApplicationVersionsPages(input *ListApplicationVersionsInput, fn func(*ListApplicationVersionsOutput, bool) bool) error {
  967. return c.ListApplicationVersionsPagesWithContext(aws.BackgroundContext(), input, fn)
  968. }
  969. // ListApplicationVersionsPagesWithContext same as ListApplicationVersionsPages except
  970. // it takes a Context and allows setting request options on the pages.
  971. //
  972. // The context must be non-nil and will be used for request cancellation. If
  973. // the context is nil a panic will occur. In the future the SDK may create
  974. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  975. // for more information on using Contexts.
  976. func (c *ServerlessApplicationRepository) ListApplicationVersionsPagesWithContext(ctx aws.Context, input *ListApplicationVersionsInput, fn func(*ListApplicationVersionsOutput, bool) bool, opts ...request.Option) error {
  977. p := request.Pagination{
  978. NewRequest: func() (*request.Request, error) {
  979. var inCpy *ListApplicationVersionsInput
  980. if input != nil {
  981. tmp := *input
  982. inCpy = &tmp
  983. }
  984. req, _ := c.ListApplicationVersionsRequest(inCpy)
  985. req.SetContext(ctx)
  986. req.ApplyOptions(opts...)
  987. return req, nil
  988. },
  989. }
  990. cont := true
  991. for p.Next() && cont {
  992. cont = fn(p.Page().(*ListApplicationVersionsOutput), !p.HasNextPage())
  993. }
  994. return p.Err()
  995. }
  996. const opListApplications = "ListApplications"
  997. // ListApplicationsRequest generates a "aws/request.Request" representing the
  998. // client's request for the ListApplications operation. The "output" return
  999. // value will be populated with the request's response once the request completes
  1000. // successfully.
  1001. //
  1002. // Use "Send" method on the returned Request to send the API call to the service.
  1003. // the "output" return value is not valid until after Send returns without error.
  1004. //
  1005. // See ListApplications for more information on using the ListApplications
  1006. // API call, and error handling.
  1007. //
  1008. // This method is useful when you want to inject custom logic or configuration
  1009. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1010. //
  1011. //
  1012. // // Example sending a request using the ListApplicationsRequest method.
  1013. // req, resp := client.ListApplicationsRequest(params)
  1014. //
  1015. // err := req.Send()
  1016. // if err == nil { // resp is now filled
  1017. // fmt.Println(resp)
  1018. // }
  1019. //
  1020. // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/ListApplications
  1021. func (c *ServerlessApplicationRepository) ListApplicationsRequest(input *ListApplicationsInput) (req *request.Request, output *ListApplicationsOutput) {
  1022. op := &request.Operation{
  1023. Name: opListApplications,
  1024. HTTPMethod: "GET",
  1025. HTTPPath: "/applications",
  1026. Paginator: &request.Paginator{
  1027. InputTokens: []string{"NextToken"},
  1028. OutputTokens: []string{"NextToken"},
  1029. LimitToken: "MaxItems",
  1030. TruncationToken: "",
  1031. },
  1032. }
  1033. if input == nil {
  1034. input = &ListApplicationsInput{}
  1035. }
  1036. output = &ListApplicationsOutput{}
  1037. req = c.newRequest(op, input, output)
  1038. return
  1039. }
  1040. // ListApplications API operation for AWSServerlessApplicationRepository.
  1041. //
  1042. // Lists applications owned by the requester.
  1043. //
  1044. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1045. // with awserr.Error's Code and Message methods to get detailed information about
  1046. // the error.
  1047. //
  1048. // See the AWS API reference guide for AWSServerlessApplicationRepository's
  1049. // API operation ListApplications for usage and error information.
  1050. //
  1051. // Returned Error Codes:
  1052. // * ErrCodeNotFoundException "NotFoundException"
  1053. // The resource (for example, an access policy statement) specified in the request
  1054. // doesn't exist.
  1055. //
  1056. // * ErrCodeBadRequestException "BadRequestException"
  1057. // One of the parameters in the request is invalid.
  1058. //
  1059. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  1060. // The AWS Serverless Application Repository service encountered an internal
  1061. // error.
  1062. //
  1063. // * ErrCodeForbiddenException "ForbiddenException"
  1064. // The client is not authenticated.
  1065. //
  1066. // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/ListApplications
  1067. func (c *ServerlessApplicationRepository) ListApplications(input *ListApplicationsInput) (*ListApplicationsOutput, error) {
  1068. req, out := c.ListApplicationsRequest(input)
  1069. return out, req.Send()
  1070. }
  1071. // ListApplicationsWithContext is the same as ListApplications with the addition of
  1072. // the ability to pass a context and additional request options.
  1073. //
  1074. // See ListApplications for details on how to use this API operation.
  1075. //
  1076. // The context must be non-nil and will be used for request cancellation. If
  1077. // the context is nil a panic will occur. In the future the SDK may create
  1078. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1079. // for more information on using Contexts.
  1080. func (c *ServerlessApplicationRepository) ListApplicationsWithContext(ctx aws.Context, input *ListApplicationsInput, opts ...request.Option) (*ListApplicationsOutput, error) {
  1081. req, out := c.ListApplicationsRequest(input)
  1082. req.SetContext(ctx)
  1083. req.ApplyOptions(opts...)
  1084. return out, req.Send()
  1085. }
  1086. // ListApplicationsPages iterates over the pages of a ListApplications operation,
  1087. // calling the "fn" function with the response data for each page. To stop
  1088. // iterating, return false from the fn function.
  1089. //
  1090. // See ListApplications method for more information on how to use this operation.
  1091. //
  1092. // Note: This operation can generate multiple requests to a service.
  1093. //
  1094. // // Example iterating over at most 3 pages of a ListApplications operation.
  1095. // pageNum := 0
  1096. // err := client.ListApplicationsPages(params,
  1097. // func(page *ListApplicationsOutput, lastPage bool) bool {
  1098. // pageNum++
  1099. // fmt.Println(page)
  1100. // return pageNum <= 3
  1101. // })
  1102. //
  1103. func (c *ServerlessApplicationRepository) ListApplicationsPages(input *ListApplicationsInput, fn func(*ListApplicationsOutput, bool) bool) error {
  1104. return c.ListApplicationsPagesWithContext(aws.BackgroundContext(), input, fn)
  1105. }
  1106. // ListApplicationsPagesWithContext same as ListApplicationsPages except
  1107. // it takes a Context and allows setting request options on the pages.
  1108. //
  1109. // The context must be non-nil and will be used for request cancellation. If
  1110. // the context is nil a panic will occur. In the future the SDK may create
  1111. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1112. // for more information on using Contexts.
  1113. func (c *ServerlessApplicationRepository) ListApplicationsPagesWithContext(ctx aws.Context, input *ListApplicationsInput, fn func(*ListApplicationsOutput, bool) bool, opts ...request.Option) error {
  1114. p := request.Pagination{
  1115. NewRequest: func() (*request.Request, error) {
  1116. var inCpy *ListApplicationsInput
  1117. if input != nil {
  1118. tmp := *input
  1119. inCpy = &tmp
  1120. }
  1121. req, _ := c.ListApplicationsRequest(inCpy)
  1122. req.SetContext(ctx)
  1123. req.ApplyOptions(opts...)
  1124. return req, nil
  1125. },
  1126. }
  1127. cont := true
  1128. for p.Next() && cont {
  1129. cont = fn(p.Page().(*ListApplicationsOutput), !p.HasNextPage())
  1130. }
  1131. return p.Err()
  1132. }
  1133. const opPutApplicationPolicy = "PutApplicationPolicy"
  1134. // PutApplicationPolicyRequest generates a "aws/request.Request" representing the
  1135. // client's request for the PutApplicationPolicy operation. The "output" return
  1136. // value will be populated with the request's response once the request completes
  1137. // successfully.
  1138. //
  1139. // Use "Send" method on the returned Request to send the API call to the service.
  1140. // the "output" return value is not valid until after Send returns without error.
  1141. //
  1142. // See PutApplicationPolicy for more information on using the PutApplicationPolicy
  1143. // API call, and error handling.
  1144. //
  1145. // This method is useful when you want to inject custom logic or configuration
  1146. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1147. //
  1148. //
  1149. // // Example sending a request using the PutApplicationPolicyRequest method.
  1150. // req, resp := client.PutApplicationPolicyRequest(params)
  1151. //
  1152. // err := req.Send()
  1153. // if err == nil { // resp is now filled
  1154. // fmt.Println(resp)
  1155. // }
  1156. //
  1157. // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/PutApplicationPolicy
  1158. func (c *ServerlessApplicationRepository) PutApplicationPolicyRequest(input *PutApplicationPolicyInput) (req *request.Request, output *PutApplicationPolicyOutput) {
  1159. op := &request.Operation{
  1160. Name: opPutApplicationPolicy,
  1161. HTTPMethod: "PUT",
  1162. HTTPPath: "/applications/{applicationId}/policy",
  1163. }
  1164. if input == nil {
  1165. input = &PutApplicationPolicyInput{}
  1166. }
  1167. output = &PutApplicationPolicyOutput{}
  1168. req = c.newRequest(op, input, output)
  1169. return
  1170. }
  1171. // PutApplicationPolicy API operation for AWSServerlessApplicationRepository.
  1172. //
  1173. // Sets the permission policy for an application. For the list of actions supported
  1174. // for this operation, see Application Permissions (https://docs.aws.amazon.com/serverlessrepo/latest/devguide/access-control-resource-based.html#application-permissions)
  1175. // .
  1176. //
  1177. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1178. // with awserr.Error's Code and Message methods to get detailed information about
  1179. // the error.
  1180. //
  1181. // See the AWS API reference guide for AWSServerlessApplicationRepository's
  1182. // API operation PutApplicationPolicy for usage and error information.
  1183. //
  1184. // Returned Error Codes:
  1185. // * ErrCodeNotFoundException "NotFoundException"
  1186. // The resource (for example, an access policy statement) specified in the request
  1187. // doesn't exist.
  1188. //
  1189. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  1190. // The client is sending more than the allowed number of requests per unit of
  1191. // time.
  1192. //
  1193. // * ErrCodeBadRequestException "BadRequestException"
  1194. // One of the parameters in the request is invalid.
  1195. //
  1196. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  1197. // The AWS Serverless Application Repository service encountered an internal
  1198. // error.
  1199. //
  1200. // * ErrCodeForbiddenException "ForbiddenException"
  1201. // The client is not authenticated.
  1202. //
  1203. // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/PutApplicationPolicy
  1204. func (c *ServerlessApplicationRepository) PutApplicationPolicy(input *PutApplicationPolicyInput) (*PutApplicationPolicyOutput, error) {
  1205. req, out := c.PutApplicationPolicyRequest(input)
  1206. return out, req.Send()
  1207. }
  1208. // PutApplicationPolicyWithContext is the same as PutApplicationPolicy with the addition of
  1209. // the ability to pass a context and additional request options.
  1210. //
  1211. // See PutApplicationPolicy for details on how to use this API operation.
  1212. //
  1213. // The context must be non-nil and will be used for request cancellation. If
  1214. // the context is nil a panic will occur. In the future the SDK may create
  1215. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1216. // for more information on using Contexts.
  1217. func (c *ServerlessApplicationRepository) PutApplicationPolicyWithContext(ctx aws.Context, input *PutApplicationPolicyInput, opts ...request.Option) (*PutApplicationPolicyOutput, error) {
  1218. req, out := c.PutApplicationPolicyRequest(input)
  1219. req.SetContext(ctx)
  1220. req.ApplyOptions(opts...)
  1221. return out, req.Send()
  1222. }
  1223. const opUpdateApplication = "UpdateApplication"
  1224. // UpdateApplicationRequest generates a "aws/request.Request" representing the
  1225. // client's request for the UpdateApplication operation. The "output" return
  1226. // value will be populated with the request's response once the request completes
  1227. // successfully.
  1228. //
  1229. // Use "Send" method on the returned Request to send the API call to the service.
  1230. // the "output" return value is not valid until after Send returns without error.
  1231. //
  1232. // See UpdateApplication for more information on using the UpdateApplication
  1233. // API call, and error handling.
  1234. //
  1235. // This method is useful when you want to inject custom logic or configuration
  1236. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1237. //
  1238. //
  1239. // // Example sending a request using the UpdateApplicationRequest method.
  1240. // req, resp := client.UpdateApplicationRequest(params)
  1241. //
  1242. // err := req.Send()
  1243. // if err == nil { // resp is now filled
  1244. // fmt.Println(resp)
  1245. // }
  1246. //
  1247. // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/UpdateApplication
  1248. func (c *ServerlessApplicationRepository) UpdateApplicationRequest(input *UpdateApplicationRequest) (req *request.Request, output *UpdateApplicationOutput) {
  1249. op := &request.Operation{
  1250. Name: opUpdateApplication,
  1251. HTTPMethod: "PATCH",
  1252. HTTPPath: "/applications/{applicationId}",
  1253. }
  1254. if input == nil {
  1255. input = &UpdateApplicationRequest{}
  1256. }
  1257. output = &UpdateApplicationOutput{}
  1258. req = c.newRequest(op, input, output)
  1259. return
  1260. }
  1261. // UpdateApplication API operation for AWSServerlessApplicationRepository.
  1262. //
  1263. // Updates the specified application.
  1264. //
  1265. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1266. // with awserr.Error's Code and Message methods to get detailed information about
  1267. // the error.
  1268. //
  1269. // See the AWS API reference guide for AWSServerlessApplicationRepository's
  1270. // API operation UpdateApplication for usage and error information.
  1271. //
  1272. // Returned Error Codes:
  1273. // * ErrCodeBadRequestException "BadRequestException"
  1274. // One of the parameters in the request is invalid.
  1275. //
  1276. // * ErrCodeInternalServerErrorException "InternalServerErrorException"
  1277. // The AWS Serverless Application Repository service encountered an internal
  1278. // error.
  1279. //
  1280. // * ErrCodeForbiddenException "ForbiddenException"
  1281. // The client is not authenticated.
  1282. //
  1283. // * ErrCodeNotFoundException "NotFoundException"
  1284. // The resource (for example, an access policy statement) specified in the request
  1285. // doesn't exist.
  1286. //
  1287. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  1288. // The client is sending more than the allowed number of requests per unit of
  1289. // time.
  1290. //
  1291. // * ErrCodeConflictException "ConflictException"
  1292. // The resource already exists.
  1293. //
  1294. // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/UpdateApplication
  1295. func (c *ServerlessApplicationRepository) UpdateApplication(input *UpdateApplicationRequest) (*UpdateApplicationOutput, error) {
  1296. req, out := c.UpdateApplicationRequest(input)
  1297. return out, req.Send()
  1298. }
  1299. // UpdateApplicationWithContext is the same as UpdateApplication with the addition of
  1300. // the ability to pass a context and additional request options.
  1301. //
  1302. // See UpdateApplication for details on how to use this API operation.
  1303. //
  1304. // The context must be non-nil and will be used for request cancellation. If
  1305. // the context is nil a panic will occur. In the future the SDK may create
  1306. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1307. // for more information on using Contexts.
  1308. func (c *ServerlessApplicationRepository) UpdateApplicationWithContext(ctx aws.Context, input *UpdateApplicationRequest, opts ...request.Option) (*UpdateApplicationOutput, error) {
  1309. req, out := c.UpdateApplicationRequest(input)
  1310. req.SetContext(ctx)
  1311. req.ApplyOptions(opts...)
  1312. return out, req.Send()
  1313. }
  1314. // A nested application summary.
  1315. type ApplicationDependencySummary struct {
  1316. _ struct{} `type:"structure"`
  1317. // The Amazon Resource Name (ARN) of the nested application.
  1318. //
  1319. // ApplicationId is a required field
  1320. ApplicationId *string `locationName:"applicationId" type:"string" required:"true"`
  1321. // The semantic version of the nested application.
  1322. //
  1323. // SemanticVersion is a required field
  1324. SemanticVersion *string `locationName:"semanticVersion" type:"string" required:"true"`
  1325. }
  1326. // String returns the string representation
  1327. func (s ApplicationDependencySummary) String() string {
  1328. return awsutil.Prettify(s)
  1329. }
  1330. // GoString returns the string representation
  1331. func (s ApplicationDependencySummary) GoString() string {
  1332. return s.String()
  1333. }
  1334. // SetApplicationId sets the ApplicationId field's value.
  1335. func (s *ApplicationDependencySummary) SetApplicationId(v string) *ApplicationDependencySummary {
  1336. s.ApplicationId = &v
  1337. return s
  1338. }
  1339. // SetSemanticVersion sets the SemanticVersion field's value.
  1340. func (s *ApplicationDependencySummary) SetSemanticVersion(v string) *ApplicationDependencySummary {
  1341. s.SemanticVersion = &v
  1342. return s
  1343. }
  1344. // Policy statement applied to the application.
  1345. type ApplicationPolicyStatement struct {
  1346. _ struct{} `type:"structure"`
  1347. // For the list of actions supported for this operation, see Application Permissions
  1348. // (https://docs.aws.amazon.com/serverlessrepo/latest/devguide/access-control-resource-based.html#application-permissions).
  1349. //
  1350. // Actions is a required field
  1351. Actions []*string `locationName:"actions" type:"list" required:"true"`
  1352. // An AWS account ID, or * to make the application public.
  1353. //
  1354. // Principals is a required field
  1355. Principals []*string `locationName:"principals" type:"list" required:"true"`
  1356. // A unique ID for the statement.
  1357. StatementId *string `locationName:"statementId" type:"string"`
  1358. }
  1359. // String returns the string representation
  1360. func (s ApplicationPolicyStatement) String() string {
  1361. return awsutil.Prettify(s)
  1362. }
  1363. // GoString returns the string representation
  1364. func (s ApplicationPolicyStatement) GoString() string {
  1365. return s.String()
  1366. }
  1367. // Validate inspects the fields of the type to determine if they are valid.
  1368. func (s *ApplicationPolicyStatement) Validate() error {
  1369. invalidParams := request.ErrInvalidParams{Context: "ApplicationPolicyStatement"}
  1370. if s.Actions == nil {
  1371. invalidParams.Add(request.NewErrParamRequired("Actions"))
  1372. }
  1373. if s.Principals == nil {
  1374. invalidParams.Add(request.NewErrParamRequired("Principals"))
  1375. }
  1376. if invalidParams.Len() > 0 {
  1377. return invalidParams
  1378. }
  1379. return nil
  1380. }
  1381. // SetActions sets the Actions field's value.
  1382. func (s *ApplicationPolicyStatement) SetActions(v []*string) *ApplicationPolicyStatement {
  1383. s.Actions = v
  1384. return s
  1385. }
  1386. // SetPrincipals sets the Principals field's value.
  1387. func (s *ApplicationPolicyStatement) SetPrincipals(v []*string) *ApplicationPolicyStatement {
  1388. s.Principals = v
  1389. return s
  1390. }
  1391. // SetStatementId sets the StatementId field's value.
  1392. func (s *ApplicationPolicyStatement) SetStatementId(v string) *ApplicationPolicyStatement {
  1393. s.StatementId = &v
  1394. return s
  1395. }
  1396. // Summary of details about the application.
  1397. type ApplicationSummary struct {
  1398. _ struct{} `type:"structure"`
  1399. // The application Amazon Resource Name (ARN).
  1400. //
  1401. // ApplicationId is a required field
  1402. ApplicationId *string `locationName:"applicationId" type:"string" required:"true"`
  1403. // The name of the author publishing the app.
  1404. //
  1405. // Minimum length=1. Maximum length=127.
  1406. //
  1407. // Pattern "^[a-z0-9](([a-z0-9]|-(?!-))*[a-z0-9])?$";
  1408. //
  1409. // Author is a required field
  1410. Author *string `locationName:"author" type:"string" required:"true"`
  1411. // The date and time this resource was created.
  1412. CreationTime *string `locationName:"creationTime" type:"string"`
  1413. // The description of the application.
  1414. //
  1415. // Minimum length=1. Maximum length=256
  1416. //
  1417. // Description is a required field
  1418. Description *string `locationName:"description" type:"string" required:"true"`
  1419. // A URL with more information about the application, for example the location
  1420. // of your GitHub repository for the application.
  1421. HomePageUrl *string `locationName:"homePageUrl" type:"string"`
  1422. // Labels to improve discovery of apps in search results.
  1423. //
  1424. // Minimum length=1. Maximum length=127. Maximum number of labels: 10
  1425. //
  1426. // Pattern: "^[a-zA-Z0-9+\\-_:\\/@]+$";
  1427. Labels []*string `locationName:"labels" type:"list"`
  1428. // The name of the application.
  1429. //
  1430. // Minimum length=1. Maximum length=140
  1431. //
  1432. // Pattern: "[a-zA-Z0-9\\-]+";
  1433. //
  1434. // Name is a required field
  1435. Name *string `locationName:"name" type:"string" required:"true"`
  1436. // A valid identifier from https://spdx.org/licenses/ (https://spdx.org/licenses/).
  1437. SpdxLicenseId *string `locationName:"spdxLicenseId" type:"string"`
  1438. }
  1439. // String returns the string representation
  1440. func (s ApplicationSummary) String() string {
  1441. return awsutil.Prettify(s)
  1442. }
  1443. // GoString returns the string representation
  1444. func (s ApplicationSummary) GoString() string {
  1445. return s.String()
  1446. }
  1447. // SetApplicationId sets the ApplicationId field's value.
  1448. func (s *ApplicationSummary) SetApplicationId(v string) *ApplicationSummary {
  1449. s.ApplicationId = &v
  1450. return s
  1451. }
  1452. // SetAuthor sets the Author field's value.
  1453. func (s *ApplicationSummary) SetAuthor(v string) *ApplicationSummary {
  1454. s.Author = &v
  1455. return s
  1456. }
  1457. // SetCreationTime sets the CreationTime field's value.
  1458. func (s *ApplicationSummary) SetCreationTime(v string) *ApplicationSummary {
  1459. s.CreationTime = &v
  1460. return s
  1461. }
  1462. // SetDescription sets the Description field's value.
  1463. func (s *ApplicationSummary) SetDescription(v string) *ApplicationSummary {
  1464. s.Description = &v
  1465. return s
  1466. }
  1467. // SetHomePageUrl sets the HomePageUrl field's value.
  1468. func (s *ApplicationSummary) SetHomePageUrl(v string) *ApplicationSummary {
  1469. s.HomePageUrl = &v
  1470. return s
  1471. }
  1472. // SetLabels sets the Labels field's value.
  1473. func (s *ApplicationSummary) SetLabels(v []*string) *ApplicationSummary {
  1474. s.Labels = v
  1475. return s
  1476. }
  1477. // SetName sets the Name field's value.
  1478. func (s *ApplicationSummary) SetName(v string) *ApplicationSummary {
  1479. s.Name = &v
  1480. return s
  1481. }
  1482. // SetSpdxLicenseId sets the SpdxLicenseId field's value.
  1483. func (s *ApplicationSummary) SetSpdxLicenseId(v string) *ApplicationSummary {
  1484. s.SpdxLicenseId = &v
  1485. return s
  1486. }
  1487. type CreateApplicationOutput struct {
  1488. _ struct{} `type:"structure"`
  1489. ApplicationId *string `locationName:"applicationId" type:"string"`
  1490. Author *string `locationName:"author" type:"string"`
  1491. CreationTime *string `locationName:"creationTime" type:"string"`
  1492. Description *string `locationName:"description" type:"string"`
  1493. HomePageUrl *string `locationName:"homePageUrl" type:"string"`
  1494. Labels []*string `locationName:"labels" type:"list"`
  1495. LicenseUrl *string `locationName:"licenseUrl" type:"string"`
  1496. Name *string `locationName:"name" type:"string"`
  1497. ReadmeUrl *string `locationName:"readmeUrl" type:"string"`
  1498. SpdxLicenseId *string `locationName:"spdxLicenseId" type:"string"`
  1499. // Application version details.
  1500. Version *Version `locationName:"version" type:"structure"`
  1501. }
  1502. // String returns the string representation
  1503. func (s CreateApplicationOutput) String() string {
  1504. return awsutil.Prettify(s)
  1505. }
  1506. // GoString returns the string representation
  1507. func (s CreateApplicationOutput) GoString() string {
  1508. return s.String()
  1509. }
  1510. // SetApplicationId sets the ApplicationId field's value.
  1511. func (s *CreateApplicationOutput) SetApplicationId(v string) *CreateApplicationOutput {
  1512. s.ApplicationId = &v
  1513. return s
  1514. }
  1515. // SetAuthor sets the Author field's value.
  1516. func (s *CreateApplicationOutput) SetAuthor(v string) *CreateApplicationOutput {
  1517. s.Author = &v
  1518. return s
  1519. }
  1520. // SetCreationTime sets the CreationTime field's value.
  1521. func (s *CreateApplicationOutput) SetCreationTime(v string) *CreateApplicationOutput {
  1522. s.CreationTime = &v
  1523. return s
  1524. }
  1525. // SetDescription sets the Description field's value.
  1526. func (s *CreateApplicationOutput) SetDescription(v string) *CreateApplicationOutput {
  1527. s.Description = &v
  1528. return s
  1529. }
  1530. // SetHomePageUrl sets the HomePageUrl field's value.
  1531. func (s *CreateApplicationOutput) SetHomePageUrl(v string) *CreateApplicationOutput {
  1532. s.HomePageUrl = &v
  1533. return s
  1534. }
  1535. // SetLabels sets the Labels field's value.
  1536. func (s *CreateApplicationOutput) SetLabels(v []*string) *CreateApplicationOutput {
  1537. s.Labels = v
  1538. return s
  1539. }
  1540. // SetLicenseUrl sets the LicenseUrl field's value.
  1541. func (s *CreateApplicationOutput) SetLicenseUrl(v string) *CreateApplicationOutput {
  1542. s.LicenseUrl = &v
  1543. return s
  1544. }
  1545. // SetName sets the Name field's value.
  1546. func (s *CreateApplicationOutput) SetName(v string) *CreateApplicationOutput {
  1547. s.Name = &v
  1548. return s
  1549. }
  1550. // SetReadmeUrl sets the ReadmeUrl field's value.
  1551. func (s *CreateApplicationOutput) SetReadmeUrl(v string) *CreateApplicationOutput {
  1552. s.ReadmeUrl = &v
  1553. return s
  1554. }
  1555. // SetSpdxLicenseId sets the SpdxLicenseId field's value.
  1556. func (s *CreateApplicationOutput) SetSpdxLicenseId(v string) *CreateApplicationOutput {
  1557. s.SpdxLicenseId = &v
  1558. return s
  1559. }
  1560. // SetVersion sets the Version field's value.
  1561. func (s *CreateApplicationOutput) SetVersion(v *Version) *CreateApplicationOutput {
  1562. s.Version = v
  1563. return s
  1564. }
  1565. type CreateApplicationRequest struct {
  1566. _ struct{} `type:"structure"`
  1567. // Author is a required field
  1568. Author *string `locationName:"author" type:"string" required:"true"`
  1569. // Description is a required field
  1570. Description *string `locationName:"description" type:"string" required:"true"`
  1571. HomePageUrl *string `locationName:"homePageUrl" type:"string"`
  1572. Labels []*string `locationName:"labels" type:"list"`
  1573. LicenseBody *string `locationName:"licenseBody" type:"string"`
  1574. LicenseUrl *string `locationName:"licenseUrl" type:"string"`
  1575. // Name is a required field
  1576. Name *string `locationName:"name" type:"string" required:"true"`
  1577. ReadmeBody *string `locationName:"readmeBody" type:"string"`
  1578. ReadmeUrl *string `locationName:"readmeUrl" type:"string"`
  1579. SemanticVersion *string `locationName:"semanticVersion" type:"string"`
  1580. SourceCodeUrl *string `locationName:"sourceCodeUrl" type:"string"`
  1581. SpdxLicenseId *string `locationName:"spdxLicenseId" type:"string"`
  1582. TemplateBody *string `locationName:"templateBody" type:"string"`
  1583. TemplateUrl *string `locationName:"templateUrl" type:"string"`
  1584. }
  1585. // String returns the string representation
  1586. func (s CreateApplicationRequest) String() string {
  1587. return awsutil.Prettify(s)
  1588. }
  1589. // GoString returns the string representation
  1590. func (s CreateApplicationRequest) GoString() string {
  1591. return s.String()
  1592. }
  1593. // Validate inspects the fields of the type to determine if they are valid.
  1594. func (s *CreateApplicationRequest) Validate() error {
  1595. invalidParams := request.ErrInvalidParams{Context: "CreateApplicationRequest"}
  1596. if s.Author == nil {
  1597. invalidParams.Add(request.NewErrParamRequired("Author"))
  1598. }
  1599. if s.Description == nil {
  1600. invalidParams.Add(request.NewErrParamRequired("Description"))
  1601. }
  1602. if s.Name == nil {
  1603. invalidParams.Add(request.NewErrParamRequired("Name"))
  1604. }
  1605. if invalidParams.Len() > 0 {
  1606. return invalidParams
  1607. }
  1608. return nil
  1609. }
  1610. // SetAuthor sets the Author field's value.
  1611. func (s *CreateApplicationRequest) SetAuthor(v string) *CreateApplicationRequest {
  1612. s.Author = &v
  1613. return s
  1614. }
  1615. // SetDescription sets the Description field's value.
  1616. func (s *CreateApplicationRequest) SetDescription(v string) *CreateApplicationRequest {
  1617. s.Description = &v
  1618. return s
  1619. }
  1620. // SetHomePageUrl sets the HomePageUrl field's value.
  1621. func (s *CreateApplicationRequest) SetHomePageUrl(v string) *CreateApplicationRequest {
  1622. s.HomePageUrl = &v
  1623. return s
  1624. }
  1625. // SetLabels sets the Labels field's value.
  1626. func (s *CreateApplicationRequest) SetLabels(v []*string) *CreateApplicationRequest {
  1627. s.Labels = v
  1628. return s
  1629. }
  1630. // SetLicenseBody sets the LicenseBody field's value.
  1631. func (s *CreateApplicationRequest) SetLicenseBody(v string) *CreateApplicationRequest {
  1632. s.LicenseBody = &v
  1633. return s
  1634. }
  1635. // SetLicenseUrl sets the LicenseUrl field's value.
  1636. func (s *CreateApplicationRequest) SetLicenseUrl(v string) *CreateApplicationRequest {
  1637. s.LicenseUrl = &v
  1638. return s
  1639. }
  1640. // SetName sets the Name field's value.
  1641. func (s *CreateApplicationRequest) SetName(v string) *CreateApplicationRequest {
  1642. s.Name = &v
  1643. return s
  1644. }
  1645. // SetReadmeBody sets the ReadmeBody field's value.
  1646. func (s *CreateApplicationRequest) SetReadmeBody(v string) *CreateApplicationRequest {
  1647. s.ReadmeBody = &v
  1648. return s
  1649. }
  1650. // SetReadmeUrl sets the ReadmeUrl field's value.
  1651. func (s *CreateApplicationRequest) SetReadmeUrl(v string) *CreateApplicationRequest {
  1652. s.ReadmeUrl = &v
  1653. return s
  1654. }
  1655. // SetSemanticVersion sets the SemanticVersion field's value.
  1656. func (s *CreateApplicationRequest) SetSemanticVersion(v string) *CreateApplicationRequest {
  1657. s.SemanticVersion = &v
  1658. return s
  1659. }
  1660. // SetSourceCodeUrl sets the SourceCodeUrl field's value.
  1661. func (s *CreateApplicationRequest) SetSourceCodeUrl(v string) *CreateApplicationRequest {
  1662. s.SourceCodeUrl = &v
  1663. return s
  1664. }
  1665. // SetSpdxLicenseId sets the SpdxLicenseId field's value.
  1666. func (s *CreateApplicationRequest) SetSpdxLicenseId(v string) *CreateApplicationRequest {
  1667. s.SpdxLicenseId = &v
  1668. return s
  1669. }
  1670. // SetTemplateBody sets the TemplateBody field's value.
  1671. func (s *CreateApplicationRequest) SetTemplateBody(v string) *CreateApplicationRequest {
  1672. s.TemplateBody = &v
  1673. return s
  1674. }
  1675. // SetTemplateUrl sets the TemplateUrl field's value.
  1676. func (s *CreateApplicationRequest) SetTemplateUrl(v string) *CreateApplicationRequest {
  1677. s.TemplateUrl = &v
  1678. return s
  1679. }
  1680. type CreateApplicationVersionOutput struct {
  1681. _ struct{} `type:"structure"`
  1682. ApplicationId *string `locationName:"applicationId" type:"string"`
  1683. CreationTime *string `locationName:"creationTime" type:"string"`
  1684. ParameterDefinitions []*ParameterDefinition `locationName:"parameterDefinitions" type:"list"`
  1685. RequiredCapabilities []*string `locationName:"requiredCapabilities" type:"list"`
  1686. ResourcesSupported *bool `locationName:"resourcesSupported" type:"boolean"`
  1687. SemanticVersion *string `locationName:"semanticVersion" type:"string"`
  1688. SourceCodeUrl *string `locationName:"sourceCodeUrl" type:"string"`
  1689. TemplateUrl *string `locationName:"templateUrl" type:"string"`
  1690. }
  1691. // String returns the string representation
  1692. func (s CreateApplicationVersionOutput) String() string {
  1693. return awsutil.Prettify(s)
  1694. }
  1695. // GoString returns the string representation
  1696. func (s CreateApplicationVersionOutput) GoString() string {
  1697. return s.String()
  1698. }
  1699. // SetApplicationId sets the ApplicationId field's value.
  1700. func (s *CreateApplicationVersionOutput) SetApplicationId(v string) *CreateApplicationVersionOutput {
  1701. s.ApplicationId = &v
  1702. return s
  1703. }
  1704. // SetCreationTime sets the CreationTime field's value.
  1705. func (s *CreateApplicationVersionOutput) SetCreationTime(v string) *CreateApplicationVersionOutput {
  1706. s.CreationTime = &v
  1707. return s
  1708. }
  1709. // SetParameterDefinitions sets the ParameterDefinitions field's value.
  1710. func (s *CreateApplicationVersionOutput) SetParameterDefinitions(v []*ParameterDefinition) *CreateApplicationVersionOutput {
  1711. s.ParameterDefinitions = v
  1712. return s
  1713. }
  1714. // SetRequiredCapabilities sets the RequiredCapabilities field's value.
  1715. func (s *CreateApplicationVersionOutput) SetRequiredCapabilities(v []*string) *CreateApplicationVersionOutput {
  1716. s.RequiredCapabilities = v
  1717. return s
  1718. }
  1719. // SetResourcesSupported sets the ResourcesSupported field's value.
  1720. func (s *CreateApplicationVersionOutput) SetResourcesSupported(v bool) *CreateApplicationVersionOutput {
  1721. s.ResourcesSupported = &v
  1722. return s
  1723. }
  1724. // SetSemanticVersion sets the SemanticVersion field's value.
  1725. func (s *CreateApplicationVersionOutput) SetSemanticVersion(v string) *CreateApplicationVersionOutput {
  1726. s.SemanticVersion = &v
  1727. return s
  1728. }
  1729. // SetSourceCodeUrl sets the SourceCodeUrl field's value.
  1730. func (s *CreateApplicationVersionOutput) SetSourceCodeUrl(v string) *CreateApplicationVersionOutput {
  1731. s.SourceCodeUrl = &v
  1732. return s
  1733. }
  1734. // SetTemplateUrl sets the TemplateUrl field's value.
  1735. func (s *CreateApplicationVersionOutput) SetTemplateUrl(v string) *CreateApplicationVersionOutput {
  1736. s.TemplateUrl = &v
  1737. return s
  1738. }
  1739. type CreateApplicationVersionRequest struct {
  1740. _ struct{} `type:"structure"`
  1741. // ApplicationId is a required field
  1742. ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"`
  1743. // SemanticVersion is a required field
  1744. SemanticVersion *string `location:"uri" locationName:"semanticVersion" type:"string" required:"true"`
  1745. SourceCodeUrl *string `locationName:"sourceCodeUrl" type:"string"`
  1746. TemplateBody *string `locationName:"templateBody" type:"string"`
  1747. TemplateUrl *string `locationName:"templateUrl" type:"string"`
  1748. }
  1749. // String returns the string representation
  1750. func (s CreateApplicationVersionRequest) String() string {
  1751. return awsutil.Prettify(s)
  1752. }
  1753. // GoString returns the string representation
  1754. func (s CreateApplicationVersionRequest) GoString() string {
  1755. return s.String()
  1756. }
  1757. // Validate inspects the fields of the type to determine if they are valid.
  1758. func (s *CreateApplicationVersionRequest) Validate() error {
  1759. invalidParams := request.ErrInvalidParams{Context: "CreateApplicationVersionRequest"}
  1760. if s.ApplicationId == nil {
  1761. invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
  1762. }
  1763. if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
  1764. invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
  1765. }
  1766. if s.SemanticVersion == nil {
  1767. invalidParams.Add(request.NewErrParamRequired("SemanticVersion"))
  1768. }
  1769. if s.SemanticVersion != nil && len(*s.SemanticVersion) < 1 {
  1770. invalidParams.Add(request.NewErrParamMinLen("SemanticVersion", 1))
  1771. }
  1772. if invalidParams.Len() > 0 {
  1773. return invalidParams
  1774. }
  1775. return nil
  1776. }
  1777. // SetApplicationId sets the ApplicationId field's value.
  1778. func (s *CreateApplicationVersionRequest) SetApplicationId(v string) *CreateApplicationVersionRequest {
  1779. s.ApplicationId = &v
  1780. return s
  1781. }
  1782. // SetSemanticVersion sets the SemanticVersion field's value.
  1783. func (s *CreateApplicationVersionRequest) SetSemanticVersion(v string) *CreateApplicationVersionRequest {
  1784. s.SemanticVersion = &v
  1785. return s
  1786. }
  1787. // SetSourceCodeUrl sets the SourceCodeUrl field's value.
  1788. func (s *CreateApplicationVersionRequest) SetSourceCodeUrl(v string) *CreateApplicationVersionRequest {
  1789. s.SourceCodeUrl = &v
  1790. return s
  1791. }
  1792. // SetTemplateBody sets the TemplateBody field's value.
  1793. func (s *CreateApplicationVersionRequest) SetTemplateBody(v string) *CreateApplicationVersionRequest {
  1794. s.TemplateBody = &v
  1795. return s
  1796. }
  1797. // SetTemplateUrl sets the TemplateUrl field's value.
  1798. func (s *CreateApplicationVersionRequest) SetTemplateUrl(v string) *CreateApplicationVersionRequest {
  1799. s.TemplateUrl = &v
  1800. return s
  1801. }
  1802. type CreateCloudFormationChangeSetOutput struct {
  1803. _ struct{} `type:"structure"`
  1804. ApplicationId *string `locationName:"applicationId" type:"string"`
  1805. ChangeSetId *string `locationName:"changeSetId" type:"string"`
  1806. SemanticVersion *string `locationName:"semanticVersion" type:"string"`
  1807. StackId *string `locationName:"stackId" type:"string"`
  1808. }
  1809. // String returns the string representation
  1810. func (s CreateCloudFormationChangeSetOutput) String() string {
  1811. return awsutil.Prettify(s)
  1812. }
  1813. // GoString returns the string representation
  1814. func (s CreateCloudFormationChangeSetOutput) GoString() string {
  1815. return s.String()
  1816. }
  1817. // SetApplicationId sets the ApplicationId field's value.
  1818. func (s *CreateCloudFormationChangeSetOutput) SetApplicationId(v string) *CreateCloudFormationChangeSetOutput {
  1819. s.ApplicationId = &v
  1820. return s
  1821. }
  1822. // SetChangeSetId sets the ChangeSetId field's value.
  1823. func (s *CreateCloudFormationChangeSetOutput) SetChangeSetId(v string) *CreateCloudFormationChangeSetOutput {
  1824. s.ChangeSetId = &v
  1825. return s
  1826. }
  1827. // SetSemanticVersion sets the SemanticVersion field's value.
  1828. func (s *CreateCloudFormationChangeSetOutput) SetSemanticVersion(v string) *CreateCloudFormationChangeSetOutput {
  1829. s.SemanticVersion = &v
  1830. return s
  1831. }
  1832. // SetStackId sets the StackId field's value.
  1833. func (s *CreateCloudFormationChangeSetOutput) SetStackId(v string) *CreateCloudFormationChangeSetOutput {
  1834. s.StackId = &v
  1835. return s
  1836. }
  1837. type CreateCloudFormationChangeSetRequest struct {
  1838. _ struct{} `type:"structure"`
  1839. // ApplicationId is a required field
  1840. ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"`
  1841. Capabilities []*string `locationName:"capabilities" type:"list"`
  1842. ChangeSetName *string `locationName:"changeSetName" type:"string"`
  1843. ClientToken *string `locationName:"clientToken" type:"string"`
  1844. Description *string `locationName:"description" type:"string"`
  1845. NotificationArns []*string `locationName:"notificationArns" type:"list"`
  1846. ParameterOverrides []*ParameterValue `locationName:"parameterOverrides" type:"list"`
  1847. ResourceTypes []*string `locationName:"resourceTypes" type:"list"`
  1848. // This property corresponds to the AWS CloudFormation RollbackConfiguration
  1849. // (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RollbackConfiguration)
  1850. // Data Type.
  1851. RollbackConfiguration *RollbackConfiguration `locationName:"rollbackConfiguration" type:"structure"`
  1852. SemanticVersion *string `locationName:"semanticVersion" type:"string"`
  1853. // StackName is a required field
  1854. StackName *string `locationName:"stackName" type:"string" required:"true"`
  1855. Tags []*Tag `locationName:"tags" type:"list"`
  1856. TemplateId *string `locationName:"templateId" type:"string"`
  1857. }
  1858. // String returns the string representation
  1859. func (s CreateCloudFormationChangeSetRequest) String() string {
  1860. return awsutil.Prettify(s)
  1861. }
  1862. // GoString returns the string representation
  1863. func (s CreateCloudFormationChangeSetRequest) GoString() string {
  1864. return s.String()
  1865. }
  1866. // Validate inspects the fields of the type to determine if they are valid.
  1867. func (s *CreateCloudFormationChangeSetRequest) Validate() error {
  1868. invalidParams := request.ErrInvalidParams{Context: "CreateCloudFormationChangeSetRequest"}
  1869. if s.ApplicationId == nil {
  1870. invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
  1871. }
  1872. if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
  1873. invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
  1874. }
  1875. if s.StackName == nil {
  1876. invalidParams.Add(request.NewErrParamRequired("StackName"))
  1877. }
  1878. if s.ParameterOverrides != nil {
  1879. for i, v := range s.ParameterOverrides {
  1880. if v == nil {
  1881. continue
  1882. }
  1883. if err := v.Validate(); err != nil {
  1884. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParameterOverrides", i), err.(request.ErrInvalidParams))
  1885. }
  1886. }
  1887. }
  1888. if s.RollbackConfiguration != nil {
  1889. if err := s.RollbackConfiguration.Validate(); err != nil {
  1890. invalidParams.AddNested("RollbackConfiguration", err.(request.ErrInvalidParams))
  1891. }
  1892. }
  1893. if s.Tags != nil {
  1894. for i, v := range s.Tags {
  1895. if v == nil {
  1896. continue
  1897. }
  1898. if err := v.Validate(); err != nil {
  1899. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  1900. }
  1901. }
  1902. }
  1903. if invalidParams.Len() > 0 {
  1904. return invalidParams
  1905. }
  1906. return nil
  1907. }
  1908. // SetApplicationId sets the ApplicationId field's value.
  1909. func (s *CreateCloudFormationChangeSetRequest) SetApplicationId(v string) *CreateCloudFormationChangeSetRequest {
  1910. s.ApplicationId = &v
  1911. return s
  1912. }
  1913. // SetCapabilities sets the Capabilities field's value.
  1914. func (s *CreateCloudFormationChangeSetRequest) SetCapabilities(v []*string) *CreateCloudFormationChangeSetRequest {
  1915. s.Capabilities = v
  1916. return s
  1917. }
  1918. // SetChangeSetName sets the ChangeSetName field's value.
  1919. func (s *CreateCloudFormationChangeSetRequest) SetChangeSetName(v string) *CreateCloudFormationChangeSetRequest {
  1920. s.ChangeSetName = &v
  1921. return s
  1922. }
  1923. // SetClientToken sets the ClientToken field's value.
  1924. func (s *CreateCloudFormationChangeSetRequest) SetClientToken(v string) *CreateCloudFormationChangeSetRequest {
  1925. s.ClientToken = &v
  1926. return s
  1927. }
  1928. // SetDescription sets the Description field's value.
  1929. func (s *CreateCloudFormationChangeSetRequest) SetDescription(v string) *CreateCloudFormationChangeSetRequest {
  1930. s.Description = &v
  1931. return s
  1932. }
  1933. // SetNotificationArns sets the NotificationArns field's value.
  1934. func (s *CreateCloudFormationChangeSetRequest) SetNotificationArns(v []*string) *CreateCloudFormationChangeSetRequest {
  1935. s.NotificationArns = v
  1936. return s
  1937. }
  1938. // SetParameterOverrides sets the ParameterOverrides field's value.
  1939. func (s *CreateCloudFormationChangeSetRequest) SetParameterOverrides(v []*ParameterValue) *CreateCloudFormationChangeSetRequest {
  1940. s.ParameterOverrides = v
  1941. return s
  1942. }
  1943. // SetResourceTypes sets the ResourceTypes field's value.
  1944. func (s *CreateCloudFormationChangeSetRequest) SetResourceTypes(v []*string) *CreateCloudFormationChangeSetRequest {
  1945. s.ResourceTypes = v
  1946. return s
  1947. }
  1948. // SetRollbackConfiguration sets the RollbackConfiguration field's value.
  1949. func (s *CreateCloudFormationChangeSetRequest) SetRollbackConfiguration(v *RollbackConfiguration) *CreateCloudFormationChangeSetRequest {
  1950. s.RollbackConfiguration = v
  1951. return s
  1952. }
  1953. // SetSemanticVersion sets the SemanticVersion field's value.
  1954. func (s *CreateCloudFormationChangeSetRequest) SetSemanticVersion(v string) *CreateCloudFormationChangeSetRequest {
  1955. s.SemanticVersion = &v
  1956. return s
  1957. }
  1958. // SetStackName sets the StackName field's value.
  1959. func (s *CreateCloudFormationChangeSetRequest) SetStackName(v string) *CreateCloudFormationChangeSetRequest {
  1960. s.StackName = &v
  1961. return s
  1962. }
  1963. // SetTags sets the Tags field's value.
  1964. func (s *CreateCloudFormationChangeSetRequest) SetTags(v []*Tag) *CreateCloudFormationChangeSetRequest {
  1965. s.Tags = v
  1966. return s
  1967. }
  1968. // SetTemplateId sets the TemplateId field's value.
  1969. func (s *CreateCloudFormationChangeSetRequest) SetTemplateId(v string) *CreateCloudFormationChangeSetRequest {
  1970. s.TemplateId = &v
  1971. return s
  1972. }
  1973. type CreateCloudFormationTemplateInput struct {
  1974. _ struct{} `type:"structure"`
  1975. // ApplicationId is a required field
  1976. ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"`
  1977. SemanticVersion *string `locationName:"semanticVersion" type:"string"`
  1978. }
  1979. // String returns the string representation
  1980. func (s CreateCloudFormationTemplateInput) String() string {
  1981. return awsutil.Prettify(s)
  1982. }
  1983. // GoString returns the string representation
  1984. func (s CreateCloudFormationTemplateInput) GoString() string {
  1985. return s.String()
  1986. }
  1987. // Validate inspects the fields of the type to determine if they are valid.
  1988. func (s *CreateCloudFormationTemplateInput) Validate() error {
  1989. invalidParams := request.ErrInvalidParams{Context: "CreateCloudFormationTemplateInput"}
  1990. if s.ApplicationId == nil {
  1991. invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
  1992. }
  1993. if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
  1994. invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
  1995. }
  1996. if invalidParams.Len() > 0 {
  1997. return invalidParams
  1998. }
  1999. return nil
  2000. }
  2001. // SetApplicationId sets the ApplicationId field's value.
  2002. func (s *CreateCloudFormationTemplateInput) SetApplicationId(v string) *CreateCloudFormationTemplateInput {
  2003. s.ApplicationId = &v
  2004. return s
  2005. }
  2006. // SetSemanticVersion sets the SemanticVersion field's value.
  2007. func (s *CreateCloudFormationTemplateInput) SetSemanticVersion(v string) *CreateCloudFormationTemplateInput {
  2008. s.SemanticVersion = &v
  2009. return s
  2010. }
  2011. type CreateCloudFormationTemplateOutput struct {
  2012. _ struct{} `type:"structure"`
  2013. ApplicationId *string `locationName:"applicationId" type:"string"`
  2014. CreationTime *string `locationName:"creationTime" type:"string"`
  2015. ExpirationTime *string `locationName:"expirationTime" type:"string"`
  2016. SemanticVersion *string `locationName:"semanticVersion" type:"string"`
  2017. Status *string `locationName:"status" type:"string" enum:"Status"`
  2018. TemplateId *string `locationName:"templateId" type:"string"`
  2019. TemplateUrl *string `locationName:"templateUrl" type:"string"`
  2020. }
  2021. // String returns the string representation
  2022. func (s CreateCloudFormationTemplateOutput) String() string {
  2023. return awsutil.Prettify(s)
  2024. }
  2025. // GoString returns the string representation
  2026. func (s CreateCloudFormationTemplateOutput) GoString() string {
  2027. return s.String()
  2028. }
  2029. // SetApplicationId sets the ApplicationId field's value.
  2030. func (s *CreateCloudFormationTemplateOutput) SetApplicationId(v string) *CreateCloudFormationTemplateOutput {
  2031. s.ApplicationId = &v
  2032. return s
  2033. }
  2034. // SetCreationTime sets the CreationTime field's value.
  2035. func (s *CreateCloudFormationTemplateOutput) SetCreationTime(v string) *CreateCloudFormationTemplateOutput {
  2036. s.CreationTime = &v
  2037. return s
  2038. }
  2039. // SetExpirationTime sets the ExpirationTime field's value.
  2040. func (s *CreateCloudFormationTemplateOutput) SetExpirationTime(v string) *CreateCloudFormationTemplateOutput {
  2041. s.ExpirationTime = &v
  2042. return s
  2043. }
  2044. // SetSemanticVersion sets the SemanticVersion field's value.
  2045. func (s *CreateCloudFormationTemplateOutput) SetSemanticVersion(v string) *CreateCloudFormationTemplateOutput {
  2046. s.SemanticVersion = &v
  2047. return s
  2048. }
  2049. // SetStatus sets the Status field's value.
  2050. func (s *CreateCloudFormationTemplateOutput) SetStatus(v string) *CreateCloudFormationTemplateOutput {
  2051. s.Status = &v
  2052. return s
  2053. }
  2054. // SetTemplateId sets the TemplateId field's value.
  2055. func (s *CreateCloudFormationTemplateOutput) SetTemplateId(v string) *CreateCloudFormationTemplateOutput {
  2056. s.TemplateId = &v
  2057. return s
  2058. }
  2059. // SetTemplateUrl sets the TemplateUrl field's value.
  2060. func (s *CreateCloudFormationTemplateOutput) SetTemplateUrl(v string) *CreateCloudFormationTemplateOutput {
  2061. s.TemplateUrl = &v
  2062. return s
  2063. }
  2064. type DeleteApplicationInput struct {
  2065. _ struct{} `type:"structure"`
  2066. // ApplicationId is a required field
  2067. ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"`
  2068. }
  2069. // String returns the string representation
  2070. func (s DeleteApplicationInput) String() string {
  2071. return awsutil.Prettify(s)
  2072. }
  2073. // GoString returns the string representation
  2074. func (s DeleteApplicationInput) GoString() string {
  2075. return s.String()
  2076. }
  2077. // Validate inspects the fields of the type to determine if they are valid.
  2078. func (s *DeleteApplicationInput) Validate() error {
  2079. invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationInput"}
  2080. if s.ApplicationId == nil {
  2081. invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
  2082. }
  2083. if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
  2084. invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
  2085. }
  2086. if invalidParams.Len() > 0 {
  2087. return invalidParams
  2088. }
  2089. return nil
  2090. }
  2091. // SetApplicationId sets the ApplicationId field's value.
  2092. func (s *DeleteApplicationInput) SetApplicationId(v string) *DeleteApplicationInput {
  2093. s.ApplicationId = &v
  2094. return s
  2095. }
  2096. type DeleteApplicationOutput struct {
  2097. _ struct{} `type:"structure"`
  2098. }
  2099. // String returns the string representation
  2100. func (s DeleteApplicationOutput) String() string {
  2101. return awsutil.Prettify(s)
  2102. }
  2103. // GoString returns the string representation
  2104. func (s DeleteApplicationOutput) GoString() string {
  2105. return s.String()
  2106. }
  2107. type GetApplicationInput struct {
  2108. _ struct{} `type:"structure"`
  2109. // ApplicationId is a required field
  2110. ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"`
  2111. SemanticVersion *string `location:"querystring" locationName:"semanticVersion" type:"string"`
  2112. }
  2113. // String returns the string representation
  2114. func (s GetApplicationInput) String() string {
  2115. return awsutil.Prettify(s)
  2116. }
  2117. // GoString returns the string representation
  2118. func (s GetApplicationInput) GoString() string {
  2119. return s.String()
  2120. }
  2121. // Validate inspects the fields of the type to determine if they are valid.
  2122. func (s *GetApplicationInput) Validate() error {
  2123. invalidParams := request.ErrInvalidParams{Context: "GetApplicationInput"}
  2124. if s.ApplicationId == nil {
  2125. invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
  2126. }
  2127. if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
  2128. invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
  2129. }
  2130. if invalidParams.Len() > 0 {
  2131. return invalidParams
  2132. }
  2133. return nil
  2134. }
  2135. // SetApplicationId sets the ApplicationId field's value.
  2136. func (s *GetApplicationInput) SetApplicationId(v string) *GetApplicationInput {
  2137. s.ApplicationId = &v
  2138. return s
  2139. }
  2140. // SetSemanticVersion sets the SemanticVersion field's value.
  2141. func (s *GetApplicationInput) SetSemanticVersion(v string) *GetApplicationInput {
  2142. s.SemanticVersion = &v
  2143. return s
  2144. }
  2145. type GetApplicationOutput struct {
  2146. _ struct{} `type:"structure"`
  2147. ApplicationId *string `locationName:"applicationId" type:"string"`
  2148. Author *string `locationName:"author" type:"string"`
  2149. CreationTime *string `locationName:"creationTime" type:"string"`
  2150. Description *string `locationName:"description" type:"string"`
  2151. HomePageUrl *string `locationName:"homePageUrl" type:"string"`
  2152. Labels []*string `locationName:"labels" type:"list"`
  2153. LicenseUrl *string `locationName:"licenseUrl" type:"string"`
  2154. Name *string `locationName:"name" type:"string"`
  2155. ReadmeUrl *string `locationName:"readmeUrl" type:"string"`
  2156. SpdxLicenseId *string `locationName:"spdxLicenseId" type:"string"`
  2157. // Application version details.
  2158. Version *Version `locationName:"version" type:"structure"`
  2159. }
  2160. // String returns the string representation
  2161. func (s GetApplicationOutput) String() string {
  2162. return awsutil.Prettify(s)
  2163. }
  2164. // GoString returns the string representation
  2165. func (s GetApplicationOutput) GoString() string {
  2166. return s.String()
  2167. }
  2168. // SetApplicationId sets the ApplicationId field's value.
  2169. func (s *GetApplicationOutput) SetApplicationId(v string) *GetApplicationOutput {
  2170. s.ApplicationId = &v
  2171. return s
  2172. }
  2173. // SetAuthor sets the Author field's value.
  2174. func (s *GetApplicationOutput) SetAuthor(v string) *GetApplicationOutput {
  2175. s.Author = &v
  2176. return s
  2177. }
  2178. // SetCreationTime sets the CreationTime field's value.
  2179. func (s *GetApplicationOutput) SetCreationTime(v string) *GetApplicationOutput {
  2180. s.CreationTime = &v
  2181. return s
  2182. }
  2183. // SetDescription sets the Description field's value.
  2184. func (s *GetApplicationOutput) SetDescription(v string) *GetApplicationOutput {
  2185. s.Description = &v
  2186. return s
  2187. }
  2188. // SetHomePageUrl sets the HomePageUrl field's value.
  2189. func (s *GetApplicationOutput) SetHomePageUrl(v string) *GetApplicationOutput {
  2190. s.HomePageUrl = &v
  2191. return s
  2192. }
  2193. // SetLabels sets the Labels field's value.
  2194. func (s *GetApplicationOutput) SetLabels(v []*string) *GetApplicationOutput {
  2195. s.Labels = v
  2196. return s
  2197. }
  2198. // SetLicenseUrl sets the LicenseUrl field's value.
  2199. func (s *GetApplicationOutput) SetLicenseUrl(v string) *GetApplicationOutput {
  2200. s.LicenseUrl = &v
  2201. return s
  2202. }
  2203. // SetName sets the Name field's value.
  2204. func (s *GetApplicationOutput) SetName(v string) *GetApplicationOutput {
  2205. s.Name = &v
  2206. return s
  2207. }
  2208. // SetReadmeUrl sets the ReadmeUrl field's value.
  2209. func (s *GetApplicationOutput) SetReadmeUrl(v string) *GetApplicationOutput {
  2210. s.ReadmeUrl = &v
  2211. return s
  2212. }
  2213. // SetSpdxLicenseId sets the SpdxLicenseId field's value.
  2214. func (s *GetApplicationOutput) SetSpdxLicenseId(v string) *GetApplicationOutput {
  2215. s.SpdxLicenseId = &v
  2216. return s
  2217. }
  2218. // SetVersion sets the Version field's value.
  2219. func (s *GetApplicationOutput) SetVersion(v *Version) *GetApplicationOutput {
  2220. s.Version = v
  2221. return s
  2222. }
  2223. type GetApplicationPolicyInput struct {
  2224. _ struct{} `type:"structure"`
  2225. // ApplicationId is a required field
  2226. ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"`
  2227. }
  2228. // String returns the string representation
  2229. func (s GetApplicationPolicyInput) String() string {
  2230. return awsutil.Prettify(s)
  2231. }
  2232. // GoString returns the string representation
  2233. func (s GetApplicationPolicyInput) GoString() string {
  2234. return s.String()
  2235. }
  2236. // Validate inspects the fields of the type to determine if they are valid.
  2237. func (s *GetApplicationPolicyInput) Validate() error {
  2238. invalidParams := request.ErrInvalidParams{Context: "GetApplicationPolicyInput"}
  2239. if s.ApplicationId == nil {
  2240. invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
  2241. }
  2242. if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
  2243. invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
  2244. }
  2245. if invalidParams.Len() > 0 {
  2246. return invalidParams
  2247. }
  2248. return nil
  2249. }
  2250. // SetApplicationId sets the ApplicationId field's value.
  2251. func (s *GetApplicationPolicyInput) SetApplicationId(v string) *GetApplicationPolicyInput {
  2252. s.ApplicationId = &v
  2253. return s
  2254. }
  2255. type GetApplicationPolicyOutput struct {
  2256. _ struct{} `type:"structure"`
  2257. Statements []*ApplicationPolicyStatement `locationName:"statements" type:"list"`
  2258. }
  2259. // String returns the string representation
  2260. func (s GetApplicationPolicyOutput) String() string {
  2261. return awsutil.Prettify(s)
  2262. }
  2263. // GoString returns the string representation
  2264. func (s GetApplicationPolicyOutput) GoString() string {
  2265. return s.String()
  2266. }
  2267. // SetStatements sets the Statements field's value.
  2268. func (s *GetApplicationPolicyOutput) SetStatements(v []*ApplicationPolicyStatement) *GetApplicationPolicyOutput {
  2269. s.Statements = v
  2270. return s
  2271. }
  2272. type GetCloudFormationTemplateInput struct {
  2273. _ struct{} `type:"structure"`
  2274. // ApplicationId is a required field
  2275. ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"`
  2276. // TemplateId is a required field
  2277. TemplateId *string `location:"uri" locationName:"templateId" type:"string" required:"true"`
  2278. }
  2279. // String returns the string representation
  2280. func (s GetCloudFormationTemplateInput) String() string {
  2281. return awsutil.Prettify(s)
  2282. }
  2283. // GoString returns the string representation
  2284. func (s GetCloudFormationTemplateInput) GoString() string {
  2285. return s.String()
  2286. }
  2287. // Validate inspects the fields of the type to determine if they are valid.
  2288. func (s *GetCloudFormationTemplateInput) Validate() error {
  2289. invalidParams := request.ErrInvalidParams{Context: "GetCloudFormationTemplateInput"}
  2290. if s.ApplicationId == nil {
  2291. invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
  2292. }
  2293. if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
  2294. invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
  2295. }
  2296. if s.TemplateId == nil {
  2297. invalidParams.Add(request.NewErrParamRequired("TemplateId"))
  2298. }
  2299. if s.TemplateId != nil && len(*s.TemplateId) < 1 {
  2300. invalidParams.Add(request.NewErrParamMinLen("TemplateId", 1))
  2301. }
  2302. if invalidParams.Len() > 0 {
  2303. return invalidParams
  2304. }
  2305. return nil
  2306. }
  2307. // SetApplicationId sets the ApplicationId field's value.
  2308. func (s *GetCloudFormationTemplateInput) SetApplicationId(v string) *GetCloudFormationTemplateInput {
  2309. s.ApplicationId = &v
  2310. return s
  2311. }
  2312. // SetTemplateId sets the TemplateId field's value.
  2313. func (s *GetCloudFormationTemplateInput) SetTemplateId(v string) *GetCloudFormationTemplateInput {
  2314. s.TemplateId = &v
  2315. return s
  2316. }
  2317. type GetCloudFormationTemplateOutput struct {
  2318. _ struct{} `type:"structure"`
  2319. ApplicationId *string `locationName:"applicationId" type:"string"`
  2320. CreationTime *string `locationName:"creationTime" type:"string"`
  2321. ExpirationTime *string `locationName:"expirationTime" type:"string"`
  2322. SemanticVersion *string `locationName:"semanticVersion" type:"string"`
  2323. Status *string `locationName:"status" type:"string" enum:"Status"`
  2324. TemplateId *string `locationName:"templateId" type:"string"`
  2325. TemplateUrl *string `locationName:"templateUrl" type:"string"`
  2326. }
  2327. // String returns the string representation
  2328. func (s GetCloudFormationTemplateOutput) String() string {
  2329. return awsutil.Prettify(s)
  2330. }
  2331. // GoString returns the string representation
  2332. func (s GetCloudFormationTemplateOutput) GoString() string {
  2333. return s.String()
  2334. }
  2335. // SetApplicationId sets the ApplicationId field's value.
  2336. func (s *GetCloudFormationTemplateOutput) SetApplicationId(v string) *GetCloudFormationTemplateOutput {
  2337. s.ApplicationId = &v
  2338. return s
  2339. }
  2340. // SetCreationTime sets the CreationTime field's value.
  2341. func (s *GetCloudFormationTemplateOutput) SetCreationTime(v string) *GetCloudFormationTemplateOutput {
  2342. s.CreationTime = &v
  2343. return s
  2344. }
  2345. // SetExpirationTime sets the ExpirationTime field's value.
  2346. func (s *GetCloudFormationTemplateOutput) SetExpirationTime(v string) *GetCloudFormationTemplateOutput {
  2347. s.ExpirationTime = &v
  2348. return s
  2349. }
  2350. // SetSemanticVersion sets the SemanticVersion field's value.
  2351. func (s *GetCloudFormationTemplateOutput) SetSemanticVersion(v string) *GetCloudFormationTemplateOutput {
  2352. s.SemanticVersion = &v
  2353. return s
  2354. }
  2355. // SetStatus sets the Status field's value.
  2356. func (s *GetCloudFormationTemplateOutput) SetStatus(v string) *GetCloudFormationTemplateOutput {
  2357. s.Status = &v
  2358. return s
  2359. }
  2360. // SetTemplateId sets the TemplateId field's value.
  2361. func (s *GetCloudFormationTemplateOutput) SetTemplateId(v string) *GetCloudFormationTemplateOutput {
  2362. s.TemplateId = &v
  2363. return s
  2364. }
  2365. // SetTemplateUrl sets the TemplateUrl field's value.
  2366. func (s *GetCloudFormationTemplateOutput) SetTemplateUrl(v string) *GetCloudFormationTemplateOutput {
  2367. s.TemplateUrl = &v
  2368. return s
  2369. }
  2370. type ListApplicationDependenciesInput struct {
  2371. _ struct{} `type:"structure"`
  2372. // ApplicationId is a required field
  2373. ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"`
  2374. MaxItems *int64 `location:"querystring" locationName:"maxItems" min:"1" type:"integer"`
  2375. NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
  2376. SemanticVersion *string `location:"querystring" locationName:"semanticVersion" type:"string"`
  2377. }
  2378. // String returns the string representation
  2379. func (s ListApplicationDependenciesInput) String() string {
  2380. return awsutil.Prettify(s)
  2381. }
  2382. // GoString returns the string representation
  2383. func (s ListApplicationDependenciesInput) GoString() string {
  2384. return s.String()
  2385. }
  2386. // Validate inspects the fields of the type to determine if they are valid.
  2387. func (s *ListApplicationDependenciesInput) Validate() error {
  2388. invalidParams := request.ErrInvalidParams{Context: "ListApplicationDependenciesInput"}
  2389. if s.ApplicationId == nil {
  2390. invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
  2391. }
  2392. if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
  2393. invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
  2394. }
  2395. if s.MaxItems != nil && *s.MaxItems < 1 {
  2396. invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1))
  2397. }
  2398. if invalidParams.Len() > 0 {
  2399. return invalidParams
  2400. }
  2401. return nil
  2402. }
  2403. // SetApplicationId sets the ApplicationId field's value.
  2404. func (s *ListApplicationDependenciesInput) SetApplicationId(v string) *ListApplicationDependenciesInput {
  2405. s.ApplicationId = &v
  2406. return s
  2407. }
  2408. // SetMaxItems sets the MaxItems field's value.
  2409. func (s *ListApplicationDependenciesInput) SetMaxItems(v int64) *ListApplicationDependenciesInput {
  2410. s.MaxItems = &v
  2411. return s
  2412. }
  2413. // SetNextToken sets the NextToken field's value.
  2414. func (s *ListApplicationDependenciesInput) SetNextToken(v string) *ListApplicationDependenciesInput {
  2415. s.NextToken = &v
  2416. return s
  2417. }
  2418. // SetSemanticVersion sets the SemanticVersion field's value.
  2419. func (s *ListApplicationDependenciesInput) SetSemanticVersion(v string) *ListApplicationDependenciesInput {
  2420. s.SemanticVersion = &v
  2421. return s
  2422. }
  2423. type ListApplicationDependenciesOutput struct {
  2424. _ struct{} `type:"structure"`
  2425. Dependencies []*ApplicationDependencySummary `locationName:"dependencies" type:"list"`
  2426. NextToken *string `locationName:"nextToken" type:"string"`
  2427. }
  2428. // String returns the string representation
  2429. func (s ListApplicationDependenciesOutput) String() string {
  2430. return awsutil.Prettify(s)
  2431. }
  2432. // GoString returns the string representation
  2433. func (s ListApplicationDependenciesOutput) GoString() string {
  2434. return s.String()
  2435. }
  2436. // SetDependencies sets the Dependencies field's value.
  2437. func (s *ListApplicationDependenciesOutput) SetDependencies(v []*ApplicationDependencySummary) *ListApplicationDependenciesOutput {
  2438. s.Dependencies = v
  2439. return s
  2440. }
  2441. // SetNextToken sets the NextToken field's value.
  2442. func (s *ListApplicationDependenciesOutput) SetNextToken(v string) *ListApplicationDependenciesOutput {
  2443. s.NextToken = &v
  2444. return s
  2445. }
  2446. type ListApplicationVersionsInput struct {
  2447. _ struct{} `type:"structure"`
  2448. // ApplicationId is a required field
  2449. ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"`
  2450. MaxItems *int64 `location:"querystring" locationName:"maxItems" min:"1" type:"integer"`
  2451. NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
  2452. }
  2453. // String returns the string representation
  2454. func (s ListApplicationVersionsInput) String() string {
  2455. return awsutil.Prettify(s)
  2456. }
  2457. // GoString returns the string representation
  2458. func (s ListApplicationVersionsInput) GoString() string {
  2459. return s.String()
  2460. }
  2461. // Validate inspects the fields of the type to determine if they are valid.
  2462. func (s *ListApplicationVersionsInput) Validate() error {
  2463. invalidParams := request.ErrInvalidParams{Context: "ListApplicationVersionsInput"}
  2464. if s.ApplicationId == nil {
  2465. invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
  2466. }
  2467. if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
  2468. invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
  2469. }
  2470. if s.MaxItems != nil && *s.MaxItems < 1 {
  2471. invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1))
  2472. }
  2473. if invalidParams.Len() > 0 {
  2474. return invalidParams
  2475. }
  2476. return nil
  2477. }
  2478. // SetApplicationId sets the ApplicationId field's value.
  2479. func (s *ListApplicationVersionsInput) SetApplicationId(v string) *ListApplicationVersionsInput {
  2480. s.ApplicationId = &v
  2481. return s
  2482. }
  2483. // SetMaxItems sets the MaxItems field's value.
  2484. func (s *ListApplicationVersionsInput) SetMaxItems(v int64) *ListApplicationVersionsInput {
  2485. s.MaxItems = &v
  2486. return s
  2487. }
  2488. // SetNextToken sets the NextToken field's value.
  2489. func (s *ListApplicationVersionsInput) SetNextToken(v string) *ListApplicationVersionsInput {
  2490. s.NextToken = &v
  2491. return s
  2492. }
  2493. type ListApplicationVersionsOutput struct {
  2494. _ struct{} `type:"structure"`
  2495. NextToken *string `locationName:"nextToken" type:"string"`
  2496. Versions []*VersionSummary `locationName:"versions" type:"list"`
  2497. }
  2498. // String returns the string representation
  2499. func (s ListApplicationVersionsOutput) String() string {
  2500. return awsutil.Prettify(s)
  2501. }
  2502. // GoString returns the string representation
  2503. func (s ListApplicationVersionsOutput) GoString() string {
  2504. return s.String()
  2505. }
  2506. // SetNextToken sets the NextToken field's value.
  2507. func (s *ListApplicationVersionsOutput) SetNextToken(v string) *ListApplicationVersionsOutput {
  2508. s.NextToken = &v
  2509. return s
  2510. }
  2511. // SetVersions sets the Versions field's value.
  2512. func (s *ListApplicationVersionsOutput) SetVersions(v []*VersionSummary) *ListApplicationVersionsOutput {
  2513. s.Versions = v
  2514. return s
  2515. }
  2516. type ListApplicationsInput struct {
  2517. _ struct{} `type:"structure"`
  2518. MaxItems *int64 `location:"querystring" locationName:"maxItems" min:"1" type:"integer"`
  2519. NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
  2520. }
  2521. // String returns the string representation
  2522. func (s ListApplicationsInput) String() string {
  2523. return awsutil.Prettify(s)
  2524. }
  2525. // GoString returns the string representation
  2526. func (s ListApplicationsInput) GoString() string {
  2527. return s.String()
  2528. }
  2529. // Validate inspects the fields of the type to determine if they are valid.
  2530. func (s *ListApplicationsInput) Validate() error {
  2531. invalidParams := request.ErrInvalidParams{Context: "ListApplicationsInput"}
  2532. if s.MaxItems != nil && *s.MaxItems < 1 {
  2533. invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1))
  2534. }
  2535. if invalidParams.Len() > 0 {
  2536. return invalidParams
  2537. }
  2538. return nil
  2539. }
  2540. // SetMaxItems sets the MaxItems field's value.
  2541. func (s *ListApplicationsInput) SetMaxItems(v int64) *ListApplicationsInput {
  2542. s.MaxItems = &v
  2543. return s
  2544. }
  2545. // SetNextToken sets the NextToken field's value.
  2546. func (s *ListApplicationsInput) SetNextToken(v string) *ListApplicationsInput {
  2547. s.NextToken = &v
  2548. return s
  2549. }
  2550. type ListApplicationsOutput struct {
  2551. _ struct{} `type:"structure"`
  2552. Applications []*ApplicationSummary `locationName:"applications" type:"list"`
  2553. NextToken *string `locationName:"nextToken" type:"string"`
  2554. }
  2555. // String returns the string representation
  2556. func (s ListApplicationsOutput) String() string {
  2557. return awsutil.Prettify(s)
  2558. }
  2559. // GoString returns the string representation
  2560. func (s ListApplicationsOutput) GoString() string {
  2561. return s.String()
  2562. }
  2563. // SetApplications sets the Applications field's value.
  2564. func (s *ListApplicationsOutput) SetApplications(v []*ApplicationSummary) *ListApplicationsOutput {
  2565. s.Applications = v
  2566. return s
  2567. }
  2568. // SetNextToken sets the NextToken field's value.
  2569. func (s *ListApplicationsOutput) SetNextToken(v string) *ListApplicationsOutput {
  2570. s.NextToken = &v
  2571. return s
  2572. }
  2573. // Parameters supported by the application.
  2574. type ParameterDefinition struct {
  2575. _ struct{} `type:"structure"`
  2576. // A regular expression that represents the patterns to allow for String types.
  2577. AllowedPattern *string `locationName:"allowedPattern" type:"string"`
  2578. // An array containing the list of values allowed for the parameter.
  2579. AllowedValues []*string `locationName:"allowedValues" type:"list"`
  2580. // A string that explains a constraint when the constraint is violated. For
  2581. // example, without a constraint description, a parameter that has an allowed
  2582. // pattern of [A-Za-z0-9]+ displays the following error message when the user
  2583. // specifies an invalid value:
  2584. //
  2585. // Malformed input-Parameter MyParameter must match pattern [A-Za-z0-9]+
  2586. //
  2587. // By adding a constraint description, such as "must contain only uppercase
  2588. // and lowercase letters and numbers," you can display the following customized
  2589. // error message:
  2590. //
  2591. // Malformed input-Parameter MyParameter must contain only uppercase and lowercase
  2592. // letters and numbers.
  2593. ConstraintDescription *string `locationName:"constraintDescription" type:"string"`
  2594. // A value of the appropriate type for the template to use if no value is specified
  2595. // when a stack is created. If you define constraints for the parameter, you
  2596. // must specify a value that adheres to those constraints.
  2597. DefaultValue *string `locationName:"defaultValue" type:"string"`
  2598. // A string of up to 4,000 characters that describes the parameter.
  2599. Description *string `locationName:"description" type:"string"`
  2600. // An integer value that determines the largest number of characters that you
  2601. // want to allow for String types.
  2602. MaxLength *int64 `locationName:"maxLength" type:"integer"`
  2603. // A numeric value that determines the largest numeric value that you want to
  2604. // allow for Number types.
  2605. MaxValue *int64 `locationName:"maxValue" type:"integer"`
  2606. // An integer value that determines the smallest number of characters that you
  2607. // want to allow for String types.
  2608. MinLength *int64 `locationName:"minLength" type:"integer"`
  2609. // A numeric value that determines the smallest numeric value that you want
  2610. // to allow for Number types.
  2611. MinValue *int64 `locationName:"minValue" type:"integer"`
  2612. // The name of the parameter.
  2613. //
  2614. // Name is a required field
  2615. Name *string `locationName:"name" type:"string" required:"true"`
  2616. // Whether to mask the parameter value whenever anyone makes a call that describes
  2617. // the stack. If you set the value to true, the parameter value is masked with
  2618. // asterisks (*****).
  2619. NoEcho *bool `locationName:"noEcho" type:"boolean"`
  2620. // A list of AWS SAM resources that use this parameter.
  2621. //
  2622. // ReferencedByResources is a required field
  2623. ReferencedByResources []*string `locationName:"referencedByResources" type:"list" required:"true"`
  2624. // The type of the parameter.
  2625. //
  2626. // Valid values: String | Number | List<Number> | CommaDelimitedList
  2627. //
  2628. // String: A literal string.
  2629. //
  2630. // For example, users can specify "MyUserName".
  2631. //
  2632. // Number: An integer or float. AWS CloudFormation validates the parameter value
  2633. // as a number. However, when you use the parameter elsewhere in your template
  2634. // (for example, by using the Ref intrinsic function), the parameter value becomes
  2635. // a string.
  2636. //
  2637. // For example, users might specify "8888".
  2638. //
  2639. // List<Number>: An array of integers or floats that are separated by commas.
  2640. // AWS CloudFormation validates the parameter value as numbers. However, when
  2641. // you use the parameter elsewhere in your template (for example, by using the
  2642. // Ref intrinsic function), the parameter value becomes a list of strings.
  2643. //
  2644. // For example, users might specify "80,20", and then Ref results in ["80","20"].
  2645. //
  2646. // CommaDelimitedList: An array of literal strings that are separated by commas.
  2647. // The total number of strings should be one more than the total number of commas.
  2648. // Also, each member string is space-trimmed.
  2649. //
  2650. // For example, users might specify "test,dev,prod", and then Ref results in
  2651. // ["test","dev","prod"].
  2652. Type *string `locationName:"type" type:"string"`
  2653. }
  2654. // String returns the string representation
  2655. func (s ParameterDefinition) String() string {
  2656. return awsutil.Prettify(s)
  2657. }
  2658. // GoString returns the string representation
  2659. func (s ParameterDefinition) GoString() string {
  2660. return s.String()
  2661. }
  2662. // SetAllowedPattern sets the AllowedPattern field's value.
  2663. func (s *ParameterDefinition) SetAllowedPattern(v string) *ParameterDefinition {
  2664. s.AllowedPattern = &v
  2665. return s
  2666. }
  2667. // SetAllowedValues sets the AllowedValues field's value.
  2668. func (s *ParameterDefinition) SetAllowedValues(v []*string) *ParameterDefinition {
  2669. s.AllowedValues = v
  2670. return s
  2671. }
  2672. // SetConstraintDescription sets the ConstraintDescription field's value.
  2673. func (s *ParameterDefinition) SetConstraintDescription(v string) *ParameterDefinition {
  2674. s.ConstraintDescription = &v
  2675. return s
  2676. }
  2677. // SetDefaultValue sets the DefaultValue field's value.
  2678. func (s *ParameterDefinition) SetDefaultValue(v string) *ParameterDefinition {
  2679. s.DefaultValue = &v
  2680. return s
  2681. }
  2682. // SetDescription sets the Description field's value.
  2683. func (s *ParameterDefinition) SetDescription(v string) *ParameterDefinition {
  2684. s.Description = &v
  2685. return s
  2686. }
  2687. // SetMaxLength sets the MaxLength field's value.
  2688. func (s *ParameterDefinition) SetMaxLength(v int64) *ParameterDefinition {
  2689. s.MaxLength = &v
  2690. return s
  2691. }
  2692. // SetMaxValue sets the MaxValue field's value.
  2693. func (s *ParameterDefinition) SetMaxValue(v int64) *ParameterDefinition {
  2694. s.MaxValue = &v
  2695. return s
  2696. }
  2697. // SetMinLength sets the MinLength field's value.
  2698. func (s *ParameterDefinition) SetMinLength(v int64) *ParameterDefinition {
  2699. s.MinLength = &v
  2700. return s
  2701. }
  2702. // SetMinValue sets the MinValue field's value.
  2703. func (s *ParameterDefinition) SetMinValue(v int64) *ParameterDefinition {
  2704. s.MinValue = &v
  2705. return s
  2706. }
  2707. // SetName sets the Name field's value.
  2708. func (s *ParameterDefinition) SetName(v string) *ParameterDefinition {
  2709. s.Name = &v
  2710. return s
  2711. }
  2712. // SetNoEcho sets the NoEcho field's value.
  2713. func (s *ParameterDefinition) SetNoEcho(v bool) *ParameterDefinition {
  2714. s.NoEcho = &v
  2715. return s
  2716. }
  2717. // SetReferencedByResources sets the ReferencedByResources field's value.
  2718. func (s *ParameterDefinition) SetReferencedByResources(v []*string) *ParameterDefinition {
  2719. s.ReferencedByResources = v
  2720. return s
  2721. }
  2722. // SetType sets the Type field's value.
  2723. func (s *ParameterDefinition) SetType(v string) *ParameterDefinition {
  2724. s.Type = &v
  2725. return s
  2726. }
  2727. // Parameter value of the application.
  2728. type ParameterValue struct {
  2729. _ struct{} `type:"structure"`
  2730. // The key associated with the parameter. If you don't specify a key and value
  2731. // for a particular parameter, AWS CloudFormation uses the default value that
  2732. // is specified in your template.
  2733. //
  2734. // Name is a required field
  2735. Name *string `locationName:"name" type:"string" required:"true"`
  2736. // The input value associated with the parameter.
  2737. //
  2738. // Value is a required field
  2739. Value *string `locationName:"value" type:"string" required:"true"`
  2740. }
  2741. // String returns the string representation
  2742. func (s ParameterValue) String() string {
  2743. return awsutil.Prettify(s)
  2744. }
  2745. // GoString returns the string representation
  2746. func (s ParameterValue) GoString() string {
  2747. return s.String()
  2748. }
  2749. // Validate inspects the fields of the type to determine if they are valid.
  2750. func (s *ParameterValue) Validate() error {
  2751. invalidParams := request.ErrInvalidParams{Context: "ParameterValue"}
  2752. if s.Name == nil {
  2753. invalidParams.Add(request.NewErrParamRequired("Name"))
  2754. }
  2755. if s.Value == nil {
  2756. invalidParams.Add(request.NewErrParamRequired("Value"))
  2757. }
  2758. if invalidParams.Len() > 0 {
  2759. return invalidParams
  2760. }
  2761. return nil
  2762. }
  2763. // SetName sets the Name field's value.
  2764. func (s *ParameterValue) SetName(v string) *ParameterValue {
  2765. s.Name = &v
  2766. return s
  2767. }
  2768. // SetValue sets the Value field's value.
  2769. func (s *ParameterValue) SetValue(v string) *ParameterValue {
  2770. s.Value = &v
  2771. return s
  2772. }
  2773. type PutApplicationPolicyInput struct {
  2774. _ struct{} `type:"structure"`
  2775. // ApplicationId is a required field
  2776. ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"`
  2777. // Statements is a required field
  2778. Statements []*ApplicationPolicyStatement `locationName:"statements" type:"list" required:"true"`
  2779. }
  2780. // String returns the string representation
  2781. func (s PutApplicationPolicyInput) String() string {
  2782. return awsutil.Prettify(s)
  2783. }
  2784. // GoString returns the string representation
  2785. func (s PutApplicationPolicyInput) GoString() string {
  2786. return s.String()
  2787. }
  2788. // Validate inspects the fields of the type to determine if they are valid.
  2789. func (s *PutApplicationPolicyInput) Validate() error {
  2790. invalidParams := request.ErrInvalidParams{Context: "PutApplicationPolicyInput"}
  2791. if s.ApplicationId == nil {
  2792. invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
  2793. }
  2794. if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
  2795. invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
  2796. }
  2797. if s.Statements == nil {
  2798. invalidParams.Add(request.NewErrParamRequired("Statements"))
  2799. }
  2800. if s.Statements != nil {
  2801. for i, v := range s.Statements {
  2802. if v == nil {
  2803. continue
  2804. }
  2805. if err := v.Validate(); err != nil {
  2806. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Statements", i), err.(request.ErrInvalidParams))
  2807. }
  2808. }
  2809. }
  2810. if invalidParams.Len() > 0 {
  2811. return invalidParams
  2812. }
  2813. return nil
  2814. }
  2815. // SetApplicationId sets the ApplicationId field's value.
  2816. func (s *PutApplicationPolicyInput) SetApplicationId(v string) *PutApplicationPolicyInput {
  2817. s.ApplicationId = &v
  2818. return s
  2819. }
  2820. // SetStatements sets the Statements field's value.
  2821. func (s *PutApplicationPolicyInput) SetStatements(v []*ApplicationPolicyStatement) *PutApplicationPolicyInput {
  2822. s.Statements = v
  2823. return s
  2824. }
  2825. type PutApplicationPolicyOutput struct {
  2826. _ struct{} `type:"structure"`
  2827. Statements []*ApplicationPolicyStatement `locationName:"statements" type:"list"`
  2828. }
  2829. // String returns the string representation
  2830. func (s PutApplicationPolicyOutput) String() string {
  2831. return awsutil.Prettify(s)
  2832. }
  2833. // GoString returns the string representation
  2834. func (s PutApplicationPolicyOutput) GoString() string {
  2835. return s.String()
  2836. }
  2837. // SetStatements sets the Statements field's value.
  2838. func (s *PutApplicationPolicyOutput) SetStatements(v []*ApplicationPolicyStatement) *PutApplicationPolicyOutput {
  2839. s.Statements = v
  2840. return s
  2841. }
  2842. // This property corresponds to the AWS CloudFormation RollbackConfiguration
  2843. // (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RollbackConfiguration)
  2844. // Data Type.
  2845. type RollbackConfiguration struct {
  2846. _ struct{} `type:"structure"`
  2847. // This property corresponds to the content of the same name for the AWS CloudFormation
  2848. // RollbackConfiguration (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RollbackConfiguration)
  2849. // Data Type.
  2850. MonitoringTimeInMinutes *int64 `locationName:"monitoringTimeInMinutes" type:"integer"`
  2851. // This property corresponds to the content of the same name for the AWS CloudFormation
  2852. // RollbackConfiguration (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RollbackConfiguration)
  2853. // Data Type.
  2854. RollbackTriggers []*RollbackTrigger `locationName:"rollbackTriggers" type:"list"`
  2855. }
  2856. // String returns the string representation
  2857. func (s RollbackConfiguration) String() string {
  2858. return awsutil.Prettify(s)
  2859. }
  2860. // GoString returns the string representation
  2861. func (s RollbackConfiguration) GoString() string {
  2862. return s.String()
  2863. }
  2864. // Validate inspects the fields of the type to determine if they are valid.
  2865. func (s *RollbackConfiguration) Validate() error {
  2866. invalidParams := request.ErrInvalidParams{Context: "RollbackConfiguration"}
  2867. if s.RollbackTriggers != nil {
  2868. for i, v := range s.RollbackTriggers {
  2869. if v == nil {
  2870. continue
  2871. }
  2872. if err := v.Validate(); err != nil {
  2873. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RollbackTriggers", i), err.(request.ErrInvalidParams))
  2874. }
  2875. }
  2876. }
  2877. if invalidParams.Len() > 0 {
  2878. return invalidParams
  2879. }
  2880. return nil
  2881. }
  2882. // SetMonitoringTimeInMinutes sets the MonitoringTimeInMinutes field's value.
  2883. func (s *RollbackConfiguration) SetMonitoringTimeInMinutes(v int64) *RollbackConfiguration {
  2884. s.MonitoringTimeInMinutes = &v
  2885. return s
  2886. }
  2887. // SetRollbackTriggers sets the RollbackTriggers field's value.
  2888. func (s *RollbackConfiguration) SetRollbackTriggers(v []*RollbackTrigger) *RollbackConfiguration {
  2889. s.RollbackTriggers = v
  2890. return s
  2891. }
  2892. // This property corresponds to the AWS CloudFormation RollbackTrigger (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RollbackTrigger)
  2893. // Data Type.
  2894. type RollbackTrigger struct {
  2895. _ struct{} `type:"structure"`
  2896. // This property corresponds to the content of the same name for the AWS CloudFormation
  2897. // RollbackTrigger (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RollbackTrigger)
  2898. // Data Type.
  2899. //
  2900. // Arn is a required field
  2901. Arn *string `locationName:"arn" type:"string" required:"true"`
  2902. // This property corresponds to the content of the same name for the AWS CloudFormation
  2903. // RollbackTrigger (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RollbackTrigger)
  2904. // Data Type.
  2905. //
  2906. // Type is a required field
  2907. Type *string `locationName:"type" type:"string" required:"true"`
  2908. }
  2909. // String returns the string representation
  2910. func (s RollbackTrigger) String() string {
  2911. return awsutil.Prettify(s)
  2912. }
  2913. // GoString returns the string representation
  2914. func (s RollbackTrigger) GoString() string {
  2915. return s.String()
  2916. }
  2917. // Validate inspects the fields of the type to determine if they are valid.
  2918. func (s *RollbackTrigger) Validate() error {
  2919. invalidParams := request.ErrInvalidParams{Context: "RollbackTrigger"}
  2920. if s.Arn == nil {
  2921. invalidParams.Add(request.NewErrParamRequired("Arn"))
  2922. }
  2923. if s.Type == nil {
  2924. invalidParams.Add(request.NewErrParamRequired("Type"))
  2925. }
  2926. if invalidParams.Len() > 0 {
  2927. return invalidParams
  2928. }
  2929. return nil
  2930. }
  2931. // SetArn sets the Arn field's value.
  2932. func (s *RollbackTrigger) SetArn(v string) *RollbackTrigger {
  2933. s.Arn = &v
  2934. return s
  2935. }
  2936. // SetType sets the Type field's value.
  2937. func (s *RollbackTrigger) SetType(v string) *RollbackTrigger {
  2938. s.Type = &v
  2939. return s
  2940. }
  2941. // This property corresponds to the AWS CloudFormation Tag (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/Tag)
  2942. // Data Type.
  2943. type Tag struct {
  2944. _ struct{} `type:"structure"`
  2945. // This property corresponds to the content of the same name for the AWS CloudFormation
  2946. // Tag (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/Tag)
  2947. // Data Type.
  2948. //
  2949. // Key is a required field
  2950. Key *string `locationName:"key" type:"string" required:"true"`
  2951. // This property corresponds to the content of the same name for the AWS CloudFormation
  2952. // Tag (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/Tag)
  2953. // Data Type.
  2954. //
  2955. // Value is a required field
  2956. Value *string `locationName:"value" type:"string" required:"true"`
  2957. }
  2958. // String returns the string representation
  2959. func (s Tag) String() string {
  2960. return awsutil.Prettify(s)
  2961. }
  2962. // GoString returns the string representation
  2963. func (s Tag) GoString() string {
  2964. return s.String()
  2965. }
  2966. // Validate inspects the fields of the type to determine if they are valid.
  2967. func (s *Tag) Validate() error {
  2968. invalidParams := request.ErrInvalidParams{Context: "Tag"}
  2969. if s.Key == nil {
  2970. invalidParams.Add(request.NewErrParamRequired("Key"))
  2971. }
  2972. if s.Value == nil {
  2973. invalidParams.Add(request.NewErrParamRequired("Value"))
  2974. }
  2975. if invalidParams.Len() > 0 {
  2976. return invalidParams
  2977. }
  2978. return nil
  2979. }
  2980. // SetKey sets the Key field's value.
  2981. func (s *Tag) SetKey(v string) *Tag {
  2982. s.Key = &v
  2983. return s
  2984. }
  2985. // SetValue sets the Value field's value.
  2986. func (s *Tag) SetValue(v string) *Tag {
  2987. s.Value = &v
  2988. return s
  2989. }
  2990. type UpdateApplicationOutput struct {
  2991. _ struct{} `type:"structure"`
  2992. ApplicationId *string `locationName:"applicationId" type:"string"`
  2993. Author *string `locationName:"author" type:"string"`
  2994. CreationTime *string `locationName:"creationTime" type:"string"`
  2995. Description *string `locationName:"description" type:"string"`
  2996. HomePageUrl *string `locationName:"homePageUrl" type:"string"`
  2997. Labels []*string `locationName:"labels" type:"list"`
  2998. LicenseUrl *string `locationName:"licenseUrl" type:"string"`
  2999. Name *string `locationName:"name" type:"string"`
  3000. ReadmeUrl *string `locationName:"readmeUrl" type:"string"`
  3001. SpdxLicenseId *string `locationName:"spdxLicenseId" type:"string"`
  3002. // Application version details.
  3003. Version *Version `locationName:"version" type:"structure"`
  3004. }
  3005. // String returns the string representation
  3006. func (s UpdateApplicationOutput) String() string {
  3007. return awsutil.Prettify(s)
  3008. }
  3009. // GoString returns the string representation
  3010. func (s UpdateApplicationOutput) GoString() string {
  3011. return s.String()
  3012. }
  3013. // SetApplicationId sets the ApplicationId field's value.
  3014. func (s *UpdateApplicationOutput) SetApplicationId(v string) *UpdateApplicationOutput {
  3015. s.ApplicationId = &v
  3016. return s
  3017. }
  3018. // SetAuthor sets the Author field's value.
  3019. func (s *UpdateApplicationOutput) SetAuthor(v string) *UpdateApplicationOutput {
  3020. s.Author = &v
  3021. return s
  3022. }
  3023. // SetCreationTime sets the CreationTime field's value.
  3024. func (s *UpdateApplicationOutput) SetCreationTime(v string) *UpdateApplicationOutput {
  3025. s.CreationTime = &v
  3026. return s
  3027. }
  3028. // SetDescription sets the Description field's value.
  3029. func (s *UpdateApplicationOutput) SetDescription(v string) *UpdateApplicationOutput {
  3030. s.Description = &v
  3031. return s
  3032. }
  3033. // SetHomePageUrl sets the HomePageUrl field's value.
  3034. func (s *UpdateApplicationOutput) SetHomePageUrl(v string) *UpdateApplicationOutput {
  3035. s.HomePageUrl = &v
  3036. return s
  3037. }
  3038. // SetLabels sets the Labels field's value.
  3039. func (s *UpdateApplicationOutput) SetLabels(v []*string) *UpdateApplicationOutput {
  3040. s.Labels = v
  3041. return s
  3042. }
  3043. // SetLicenseUrl sets the LicenseUrl field's value.
  3044. func (s *UpdateApplicationOutput) SetLicenseUrl(v string) *UpdateApplicationOutput {
  3045. s.LicenseUrl = &v
  3046. return s
  3047. }
  3048. // SetName sets the Name field's value.
  3049. func (s *UpdateApplicationOutput) SetName(v string) *UpdateApplicationOutput {
  3050. s.Name = &v
  3051. return s
  3052. }
  3053. // SetReadmeUrl sets the ReadmeUrl field's value.
  3054. func (s *UpdateApplicationOutput) SetReadmeUrl(v string) *UpdateApplicationOutput {
  3055. s.ReadmeUrl = &v
  3056. return s
  3057. }
  3058. // SetSpdxLicenseId sets the SpdxLicenseId field's value.
  3059. func (s *UpdateApplicationOutput) SetSpdxLicenseId(v string) *UpdateApplicationOutput {
  3060. s.SpdxLicenseId = &v
  3061. return s
  3062. }
  3063. // SetVersion sets the Version field's value.
  3064. func (s *UpdateApplicationOutput) SetVersion(v *Version) *UpdateApplicationOutput {
  3065. s.Version = v
  3066. return s
  3067. }
  3068. type UpdateApplicationRequest struct {
  3069. _ struct{} `type:"structure"`
  3070. // ApplicationId is a required field
  3071. ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"`
  3072. Author *string `locationName:"author" type:"string"`
  3073. Description *string `locationName:"description" type:"string"`
  3074. HomePageUrl *string `locationName:"homePageUrl" type:"string"`
  3075. Labels []*string `locationName:"labels" type:"list"`
  3076. ReadmeBody *string `locationName:"readmeBody" type:"string"`
  3077. ReadmeUrl *string `locationName:"readmeUrl" type:"string"`
  3078. }
  3079. // String returns the string representation
  3080. func (s UpdateApplicationRequest) String() string {
  3081. return awsutil.Prettify(s)
  3082. }
  3083. // GoString returns the string representation
  3084. func (s UpdateApplicationRequest) GoString() string {
  3085. return s.String()
  3086. }
  3087. // Validate inspects the fields of the type to determine if they are valid.
  3088. func (s *UpdateApplicationRequest) Validate() error {
  3089. invalidParams := request.ErrInvalidParams{Context: "UpdateApplicationRequest"}
  3090. if s.ApplicationId == nil {
  3091. invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
  3092. }
  3093. if s.ApplicationId != nil && len(*s.ApplicationId) < 1 {
  3094. invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1))
  3095. }
  3096. if invalidParams.Len() > 0 {
  3097. return invalidParams
  3098. }
  3099. return nil
  3100. }
  3101. // SetApplicationId sets the ApplicationId field's value.
  3102. func (s *UpdateApplicationRequest) SetApplicationId(v string) *UpdateApplicationRequest {
  3103. s.ApplicationId = &v
  3104. return s
  3105. }
  3106. // SetAuthor sets the Author field's value.
  3107. func (s *UpdateApplicationRequest) SetAuthor(v string) *UpdateApplicationRequest {
  3108. s.Author = &v
  3109. return s
  3110. }
  3111. // SetDescription sets the Description field's value.
  3112. func (s *UpdateApplicationRequest) SetDescription(v string) *UpdateApplicationRequest {
  3113. s.Description = &v
  3114. return s
  3115. }
  3116. // SetHomePageUrl sets the HomePageUrl field's value.
  3117. func (s *UpdateApplicationRequest) SetHomePageUrl(v string) *UpdateApplicationRequest {
  3118. s.HomePageUrl = &v
  3119. return s
  3120. }
  3121. // SetLabels sets the Labels field's value.
  3122. func (s *UpdateApplicationRequest) SetLabels(v []*string) *UpdateApplicationRequest {
  3123. s.Labels = v
  3124. return s
  3125. }
  3126. // SetReadmeBody sets the ReadmeBody field's value.
  3127. func (s *UpdateApplicationRequest) SetReadmeBody(v string) *UpdateApplicationRequest {
  3128. s.ReadmeBody = &v
  3129. return s
  3130. }
  3131. // SetReadmeUrl sets the ReadmeUrl field's value.
  3132. func (s *UpdateApplicationRequest) SetReadmeUrl(v string) *UpdateApplicationRequest {
  3133. s.ReadmeUrl = &v
  3134. return s
  3135. }
  3136. // Application version details.
  3137. type Version struct {
  3138. _ struct{} `type:"structure"`
  3139. // The application Amazon Resource Name (ARN).
  3140. //
  3141. // ApplicationId is a required field
  3142. ApplicationId *string `locationName:"applicationId" type:"string" required:"true"`
  3143. // The date and time this resource was created.
  3144. //
  3145. // CreationTime is a required field
  3146. CreationTime *string `locationName:"creationTime" type:"string" required:"true"`
  3147. // An array of parameter types supported by the application.
  3148. //
  3149. // ParameterDefinitions is a required field
  3150. ParameterDefinitions []*ParameterDefinition `locationName:"parameterDefinitions" type:"list" required:"true"`
  3151. // A list of values that you must specify before you can deploy certain applications.
  3152. // Some applications might include resources that can affect permissions in
  3153. // your AWS account, for example, by creating new AWS Identity and Access Management
  3154. // (IAM) users. For those applications, you must explicitly acknowledge their
  3155. // capabilities by specifying this parameter.
  3156. //
  3157. // The only valid values are CAPABILITY_IAM, CAPABILITY_NAMED_IAM, and CAPABILITY_RESOURCE_POLICY.
  3158. //
  3159. // The following resources require you to specify CAPABILITY_IAM or CAPABILITY_NAMED_IAM:
  3160. // AWS::IAM::Group (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html),
  3161. // AWS::IAM::InstanceProfile (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html),
  3162. // AWS::IAM::Policy (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html),
  3163. // and AWS::IAM::Role (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html).
  3164. // If the application contains IAM resources, you can specify either CAPABILITY_IAM
  3165. // or CAPABILITY_NAMED_IAM. If the application contains IAM resources with custom
  3166. // names, you must specify CAPABILITY_NAMED_IAM.
  3167. //
  3168. // The following resources require you to specify CAPABILITY_RESOURCE_POLICY:
  3169. // AWS::Lambda::Permission (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html),
  3170. // AWS::IAM:Policy (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html),
  3171. // AWS::ApplicationAutoScaling::ScalingPolicy (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalingpolicy.html),
  3172. // AWS::S3::BucketPolicy (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-policy.html),
  3173. // AWS::SQS::QueuePolicy (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-policy.html),
  3174. // and AWS::SNS::TopicPolicy (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sns-policy.html).
  3175. //
  3176. // If your application template contains any of the above resources, we recommend
  3177. // that you review all permissions associated with the application before deploying.
  3178. // If you don't specify this parameter for an application that requires capabilities,
  3179. // the call will fail.
  3180. //
  3181. // Valid values: CAPABILITY_IAM | CAPABILITY_NAMED_IAM | CAPABILITY_RESOURCE_POLICY
  3182. //
  3183. // RequiredCapabilities is a required field
  3184. RequiredCapabilities []*string `locationName:"requiredCapabilities" type:"list" required:"true"`
  3185. // Whether all of the AWS resources contained in this application are supported
  3186. // in the region in which it is being retrieved.
  3187. //
  3188. // ResourcesSupported is a required field
  3189. ResourcesSupported *bool `locationName:"resourcesSupported" type:"boolean" required:"true"`
  3190. // The semantic version of the application:
  3191. //
  3192. // https://semver.org/ (https://semver.org/)
  3193. //
  3194. // SemanticVersion is a required field
  3195. SemanticVersion *string `locationName:"semanticVersion" type:"string" required:"true"`
  3196. // A link to a public repository for the source code of your application.
  3197. SourceCodeUrl *string `locationName:"sourceCodeUrl" type:"string"`
  3198. // A link to the packaged AWS SAM template of your application.
  3199. //
  3200. // TemplateUrl is a required field
  3201. TemplateUrl *string `locationName:"templateUrl" type:"string" required:"true"`
  3202. }
  3203. // String returns the string representation
  3204. func (s Version) String() string {
  3205. return awsutil.Prettify(s)
  3206. }
  3207. // GoString returns the string representation
  3208. func (s Version) GoString() string {
  3209. return s.String()
  3210. }
  3211. // SetApplicationId sets the ApplicationId field's value.
  3212. func (s *Version) SetApplicationId(v string) *Version {
  3213. s.ApplicationId = &v
  3214. return s
  3215. }
  3216. // SetCreationTime sets the CreationTime field's value.
  3217. func (s *Version) SetCreationTime(v string) *Version {
  3218. s.CreationTime = &v
  3219. return s
  3220. }
  3221. // SetParameterDefinitions sets the ParameterDefinitions field's value.
  3222. func (s *Version) SetParameterDefinitions(v []*ParameterDefinition) *Version {
  3223. s.ParameterDefinitions = v
  3224. return s
  3225. }
  3226. // SetRequiredCapabilities sets the RequiredCapabilities field's value.
  3227. func (s *Version) SetRequiredCapabilities(v []*string) *Version {
  3228. s.RequiredCapabilities = v
  3229. return s
  3230. }
  3231. // SetResourcesSupported sets the ResourcesSupported field's value.
  3232. func (s *Version) SetResourcesSupported(v bool) *Version {
  3233. s.ResourcesSupported = &v
  3234. return s
  3235. }
  3236. // SetSemanticVersion sets the SemanticVersion field's value.
  3237. func (s *Version) SetSemanticVersion(v string) *Version {
  3238. s.SemanticVersion = &v
  3239. return s
  3240. }
  3241. // SetSourceCodeUrl sets the SourceCodeUrl field's value.
  3242. func (s *Version) SetSourceCodeUrl(v string) *Version {
  3243. s.SourceCodeUrl = &v
  3244. return s
  3245. }
  3246. // SetTemplateUrl sets the TemplateUrl field's value.
  3247. func (s *Version) SetTemplateUrl(v string) *Version {
  3248. s.TemplateUrl = &v
  3249. return s
  3250. }
  3251. // An application version summary.
  3252. type VersionSummary struct {
  3253. _ struct{} `type:"structure"`
  3254. // The application Amazon Resource Name (ARN).
  3255. //
  3256. // ApplicationId is a required field
  3257. ApplicationId *string `locationName:"applicationId" type:"string" required:"true"`
  3258. // The date and time this resource was created.
  3259. //
  3260. // CreationTime is a required field
  3261. CreationTime *string `locationName:"creationTime" type:"string" required:"true"`
  3262. // The semantic version of the application:
  3263. //
  3264. // https://semver.org/ (https://semver.org/)
  3265. //
  3266. // SemanticVersion is a required field
  3267. SemanticVersion *string `locationName:"semanticVersion" type:"string" required:"true"`
  3268. // A link to a public repository for the source code of your application.
  3269. SourceCodeUrl *string `locationName:"sourceCodeUrl" type:"string"`
  3270. }
  3271. // String returns the string representation
  3272. func (s VersionSummary) String() string {
  3273. return awsutil.Prettify(s)
  3274. }
  3275. // GoString returns the string representation
  3276. func (s VersionSummary) GoString() string {
  3277. return s.String()
  3278. }
  3279. // SetApplicationId sets the ApplicationId field's value.
  3280. func (s *VersionSummary) SetApplicationId(v string) *VersionSummary {
  3281. s.ApplicationId = &v
  3282. return s
  3283. }
  3284. // SetCreationTime sets the CreationTime field's value.
  3285. func (s *VersionSummary) SetCreationTime(v string) *VersionSummary {
  3286. s.CreationTime = &v
  3287. return s
  3288. }
  3289. // SetSemanticVersion sets the SemanticVersion field's value.
  3290. func (s *VersionSummary) SetSemanticVersion(v string) *VersionSummary {
  3291. s.SemanticVersion = &v
  3292. return s
  3293. }
  3294. // SetSourceCodeUrl sets the SourceCodeUrl field's value.
  3295. func (s *VersionSummary) SetSourceCodeUrl(v string) *VersionSummary {
  3296. s.SourceCodeUrl = &v
  3297. return s
  3298. }
  3299. // Values that must be specified in order to deploy some applications.
  3300. const (
  3301. // CapabilityCapabilityIam is a Capability enum value
  3302. CapabilityCapabilityIam = "CAPABILITY_IAM"
  3303. // CapabilityCapabilityNamedIam is a Capability enum value
  3304. CapabilityCapabilityNamedIam = "CAPABILITY_NAMED_IAM"
  3305. // CapabilityCapabilityAutoExpand is a Capability enum value
  3306. CapabilityCapabilityAutoExpand = "CAPABILITY_AUTO_EXPAND"
  3307. // CapabilityCapabilityResourcePolicy is a Capability enum value
  3308. CapabilityCapabilityResourcePolicy = "CAPABILITY_RESOURCE_POLICY"
  3309. )
  3310. const (
  3311. // StatusPreparing is a Status enum value
  3312. StatusPreparing = "PREPARING"
  3313. // StatusActive is a Status enum value
  3314. StatusActive = "ACTIVE"
  3315. // StatusExpired is a Status enum value
  3316. StatusExpired = "EXPIRED"
  3317. )