api.go 97 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package codepipeline provides a client for AWS CodePipeline.
  3. package codepipeline
  4. import (
  5. "time"
  6. "github.com/aws/aws-sdk-go/aws/awsutil"
  7. "github.com/aws/aws-sdk-go/aws/request"
  8. )
  9. const opAcknowledgeJob = "AcknowledgeJob"
  10. // AcknowledgeJobRequest generates a request for the AcknowledgeJob operation.
  11. func (c *CodePipeline) AcknowledgeJobRequest(input *AcknowledgeJobInput) (req *request.Request, output *AcknowledgeJobOutput) {
  12. op := &request.Operation{
  13. Name: opAcknowledgeJob,
  14. HTTPMethod: "POST",
  15. HTTPPath: "/",
  16. }
  17. if input == nil {
  18. input = &AcknowledgeJobInput{}
  19. }
  20. req = c.newRequest(op, input, output)
  21. output = &AcknowledgeJobOutput{}
  22. req.Data = output
  23. return
  24. }
  25. // Returns information about a specified job and whether that job has been received
  26. // by the job worker. Only used for custom actions.
  27. func (c *CodePipeline) AcknowledgeJob(input *AcknowledgeJobInput) (*AcknowledgeJobOutput, error) {
  28. req, out := c.AcknowledgeJobRequest(input)
  29. err := req.Send()
  30. return out, err
  31. }
  32. const opAcknowledgeThirdPartyJob = "AcknowledgeThirdPartyJob"
  33. // AcknowledgeThirdPartyJobRequest generates a request for the AcknowledgeThirdPartyJob operation.
  34. func (c *CodePipeline) AcknowledgeThirdPartyJobRequest(input *AcknowledgeThirdPartyJobInput) (req *request.Request, output *AcknowledgeThirdPartyJobOutput) {
  35. op := &request.Operation{
  36. Name: opAcknowledgeThirdPartyJob,
  37. HTTPMethod: "POST",
  38. HTTPPath: "/",
  39. }
  40. if input == nil {
  41. input = &AcknowledgeThirdPartyJobInput{}
  42. }
  43. req = c.newRequest(op, input, output)
  44. output = &AcknowledgeThirdPartyJobOutput{}
  45. req.Data = output
  46. return
  47. }
  48. // Confirms a job worker has received the specified job. Only used for partner
  49. // actions.
  50. func (c *CodePipeline) AcknowledgeThirdPartyJob(input *AcknowledgeThirdPartyJobInput) (*AcknowledgeThirdPartyJobOutput, error) {
  51. req, out := c.AcknowledgeThirdPartyJobRequest(input)
  52. err := req.Send()
  53. return out, err
  54. }
  55. const opCreateCustomActionType = "CreateCustomActionType"
  56. // CreateCustomActionTypeRequest generates a request for the CreateCustomActionType operation.
  57. func (c *CodePipeline) CreateCustomActionTypeRequest(input *CreateCustomActionTypeInput) (req *request.Request, output *CreateCustomActionTypeOutput) {
  58. op := &request.Operation{
  59. Name: opCreateCustomActionType,
  60. HTTPMethod: "POST",
  61. HTTPPath: "/",
  62. }
  63. if input == nil {
  64. input = &CreateCustomActionTypeInput{}
  65. }
  66. req = c.newRequest(op, input, output)
  67. output = &CreateCustomActionTypeOutput{}
  68. req.Data = output
  69. return
  70. }
  71. // Creates a new custom action that can be used in all pipelines associated
  72. // with the AWS account. Only used for custom actions.
  73. func (c *CodePipeline) CreateCustomActionType(input *CreateCustomActionTypeInput) (*CreateCustomActionTypeOutput, error) {
  74. req, out := c.CreateCustomActionTypeRequest(input)
  75. err := req.Send()
  76. return out, err
  77. }
  78. const opCreatePipeline = "CreatePipeline"
  79. // CreatePipelineRequest generates a request for the CreatePipeline operation.
  80. func (c *CodePipeline) CreatePipelineRequest(input *CreatePipelineInput) (req *request.Request, output *CreatePipelineOutput) {
  81. op := &request.Operation{
  82. Name: opCreatePipeline,
  83. HTTPMethod: "POST",
  84. HTTPPath: "/",
  85. }
  86. if input == nil {
  87. input = &CreatePipelineInput{}
  88. }
  89. req = c.newRequest(op, input, output)
  90. output = &CreatePipelineOutput{}
  91. req.Data = output
  92. return
  93. }
  94. // Creates a pipeline.
  95. func (c *CodePipeline) CreatePipeline(input *CreatePipelineInput) (*CreatePipelineOutput, error) {
  96. req, out := c.CreatePipelineRequest(input)
  97. err := req.Send()
  98. return out, err
  99. }
  100. const opDeleteCustomActionType = "DeleteCustomActionType"
  101. // DeleteCustomActionTypeRequest generates a request for the DeleteCustomActionType operation.
  102. func (c *CodePipeline) DeleteCustomActionTypeRequest(input *DeleteCustomActionTypeInput) (req *request.Request, output *DeleteCustomActionTypeOutput) {
  103. op := &request.Operation{
  104. Name: opDeleteCustomActionType,
  105. HTTPMethod: "POST",
  106. HTTPPath: "/",
  107. }
  108. if input == nil {
  109. input = &DeleteCustomActionTypeInput{}
  110. }
  111. req = c.newRequest(op, input, output)
  112. output = &DeleteCustomActionTypeOutput{}
  113. req.Data = output
  114. return
  115. }
  116. // Marks a custom action as deleted. PollForJobs for the custom action will
  117. // fail after the action is marked for deletion. Only used for custom actions.
  118. //
  119. // You cannot recreate a custom action after it has been deleted unless you
  120. // increase the version number of the action.
  121. func (c *CodePipeline) DeleteCustomActionType(input *DeleteCustomActionTypeInput) (*DeleteCustomActionTypeOutput, error) {
  122. req, out := c.DeleteCustomActionTypeRequest(input)
  123. err := req.Send()
  124. return out, err
  125. }
  126. const opDeletePipeline = "DeletePipeline"
  127. // DeletePipelineRequest generates a request for the DeletePipeline operation.
  128. func (c *CodePipeline) DeletePipelineRequest(input *DeletePipelineInput) (req *request.Request, output *DeletePipelineOutput) {
  129. op := &request.Operation{
  130. Name: opDeletePipeline,
  131. HTTPMethod: "POST",
  132. HTTPPath: "/",
  133. }
  134. if input == nil {
  135. input = &DeletePipelineInput{}
  136. }
  137. req = c.newRequest(op, input, output)
  138. output = &DeletePipelineOutput{}
  139. req.Data = output
  140. return
  141. }
  142. // Deletes the specified pipeline.
  143. func (c *CodePipeline) DeletePipeline(input *DeletePipelineInput) (*DeletePipelineOutput, error) {
  144. req, out := c.DeletePipelineRequest(input)
  145. err := req.Send()
  146. return out, err
  147. }
  148. const opDisableStageTransition = "DisableStageTransition"
  149. // DisableStageTransitionRequest generates a request for the DisableStageTransition operation.
  150. func (c *CodePipeline) DisableStageTransitionRequest(input *DisableStageTransitionInput) (req *request.Request, output *DisableStageTransitionOutput) {
  151. op := &request.Operation{
  152. Name: opDisableStageTransition,
  153. HTTPMethod: "POST",
  154. HTTPPath: "/",
  155. }
  156. if input == nil {
  157. input = &DisableStageTransitionInput{}
  158. }
  159. req = c.newRequest(op, input, output)
  160. output = &DisableStageTransitionOutput{}
  161. req.Data = output
  162. return
  163. }
  164. // Prevents artifacts in a pipeline from transitioning to the next stage in
  165. // the pipeline.
  166. func (c *CodePipeline) DisableStageTransition(input *DisableStageTransitionInput) (*DisableStageTransitionOutput, error) {
  167. req, out := c.DisableStageTransitionRequest(input)
  168. err := req.Send()
  169. return out, err
  170. }
  171. const opEnableStageTransition = "EnableStageTransition"
  172. // EnableStageTransitionRequest generates a request for the EnableStageTransition operation.
  173. func (c *CodePipeline) EnableStageTransitionRequest(input *EnableStageTransitionInput) (req *request.Request, output *EnableStageTransitionOutput) {
  174. op := &request.Operation{
  175. Name: opEnableStageTransition,
  176. HTTPMethod: "POST",
  177. HTTPPath: "/",
  178. }
  179. if input == nil {
  180. input = &EnableStageTransitionInput{}
  181. }
  182. req = c.newRequest(op, input, output)
  183. output = &EnableStageTransitionOutput{}
  184. req.Data = output
  185. return
  186. }
  187. // Enables artifacts in a pipeline to transition to a stage in a pipeline.
  188. func (c *CodePipeline) EnableStageTransition(input *EnableStageTransitionInput) (*EnableStageTransitionOutput, error) {
  189. req, out := c.EnableStageTransitionRequest(input)
  190. err := req.Send()
  191. return out, err
  192. }
  193. const opGetJobDetails = "GetJobDetails"
  194. // GetJobDetailsRequest generates a request for the GetJobDetails operation.
  195. func (c *CodePipeline) GetJobDetailsRequest(input *GetJobDetailsInput) (req *request.Request, output *GetJobDetailsOutput) {
  196. op := &request.Operation{
  197. Name: opGetJobDetails,
  198. HTTPMethod: "POST",
  199. HTTPPath: "/",
  200. }
  201. if input == nil {
  202. input = &GetJobDetailsInput{}
  203. }
  204. req = c.newRequest(op, input, output)
  205. output = &GetJobDetailsOutput{}
  206. req.Data = output
  207. return
  208. }
  209. // Returns information about a job. Only used for custom actions.
  210. //
  211. // When this API is called, AWS CodePipeline returns temporary credentials
  212. // for the Amazon S3 bucket used to store artifacts for the pipeline, if the
  213. // action requires access to that Amazon S3 bucket for input or output artifacts.
  214. // Additionally, this API returns any secret values defined for the action.
  215. func (c *CodePipeline) GetJobDetails(input *GetJobDetailsInput) (*GetJobDetailsOutput, error) {
  216. req, out := c.GetJobDetailsRequest(input)
  217. err := req.Send()
  218. return out, err
  219. }
  220. const opGetPipeline = "GetPipeline"
  221. // GetPipelineRequest generates a request for the GetPipeline operation.
  222. func (c *CodePipeline) GetPipelineRequest(input *GetPipelineInput) (req *request.Request, output *GetPipelineOutput) {
  223. op := &request.Operation{
  224. Name: opGetPipeline,
  225. HTTPMethod: "POST",
  226. HTTPPath: "/",
  227. }
  228. if input == nil {
  229. input = &GetPipelineInput{}
  230. }
  231. req = c.newRequest(op, input, output)
  232. output = &GetPipelineOutput{}
  233. req.Data = output
  234. return
  235. }
  236. // Returns the metadata, structure, stages, and actions of a pipeline. Can be
  237. // used to return the entire structure of a pipeline in JSON format, which can
  238. // then be modified and used to update the pipeline structure with UpdatePipeline.
  239. func (c *CodePipeline) GetPipeline(input *GetPipelineInput) (*GetPipelineOutput, error) {
  240. req, out := c.GetPipelineRequest(input)
  241. err := req.Send()
  242. return out, err
  243. }
  244. const opGetPipelineState = "GetPipelineState"
  245. // GetPipelineStateRequest generates a request for the GetPipelineState operation.
  246. func (c *CodePipeline) GetPipelineStateRequest(input *GetPipelineStateInput) (req *request.Request, output *GetPipelineStateOutput) {
  247. op := &request.Operation{
  248. Name: opGetPipelineState,
  249. HTTPMethod: "POST",
  250. HTTPPath: "/",
  251. }
  252. if input == nil {
  253. input = &GetPipelineStateInput{}
  254. }
  255. req = c.newRequest(op, input, output)
  256. output = &GetPipelineStateOutput{}
  257. req.Data = output
  258. return
  259. }
  260. // Returns information about the state of a pipeline, including the stages,
  261. // actions, and details about the last run of the pipeline.
  262. func (c *CodePipeline) GetPipelineState(input *GetPipelineStateInput) (*GetPipelineStateOutput, error) {
  263. req, out := c.GetPipelineStateRequest(input)
  264. err := req.Send()
  265. return out, err
  266. }
  267. const opGetThirdPartyJobDetails = "GetThirdPartyJobDetails"
  268. // GetThirdPartyJobDetailsRequest generates a request for the GetThirdPartyJobDetails operation.
  269. func (c *CodePipeline) GetThirdPartyJobDetailsRequest(input *GetThirdPartyJobDetailsInput) (req *request.Request, output *GetThirdPartyJobDetailsOutput) {
  270. op := &request.Operation{
  271. Name: opGetThirdPartyJobDetails,
  272. HTTPMethod: "POST",
  273. HTTPPath: "/",
  274. }
  275. if input == nil {
  276. input = &GetThirdPartyJobDetailsInput{}
  277. }
  278. req = c.newRequest(op, input, output)
  279. output = &GetThirdPartyJobDetailsOutput{}
  280. req.Data = output
  281. return
  282. }
  283. // Requests the details of a job for a third party action. Only used for partner
  284. // actions.
  285. //
  286. // When this API is called, AWS CodePipeline returns temporary credentials
  287. // for the Amazon S3 bucket used to store artifacts for the pipeline, if the
  288. // action requires access to that Amazon S3 bucket for input or output artifacts.
  289. // Additionally, this API returns any secret values defined for the action.
  290. func (c *CodePipeline) GetThirdPartyJobDetails(input *GetThirdPartyJobDetailsInput) (*GetThirdPartyJobDetailsOutput, error) {
  291. req, out := c.GetThirdPartyJobDetailsRequest(input)
  292. err := req.Send()
  293. return out, err
  294. }
  295. const opListActionTypes = "ListActionTypes"
  296. // ListActionTypesRequest generates a request for the ListActionTypes operation.
  297. func (c *CodePipeline) ListActionTypesRequest(input *ListActionTypesInput) (req *request.Request, output *ListActionTypesOutput) {
  298. op := &request.Operation{
  299. Name: opListActionTypes,
  300. HTTPMethod: "POST",
  301. HTTPPath: "/",
  302. }
  303. if input == nil {
  304. input = &ListActionTypesInput{}
  305. }
  306. req = c.newRequest(op, input, output)
  307. output = &ListActionTypesOutput{}
  308. req.Data = output
  309. return
  310. }
  311. // Gets a summary of all AWS CodePipeline action types associated with your
  312. // account.
  313. func (c *CodePipeline) ListActionTypes(input *ListActionTypesInput) (*ListActionTypesOutput, error) {
  314. req, out := c.ListActionTypesRequest(input)
  315. err := req.Send()
  316. return out, err
  317. }
  318. const opListPipelines = "ListPipelines"
  319. // ListPipelinesRequest generates a request for the ListPipelines operation.
  320. func (c *CodePipeline) ListPipelinesRequest(input *ListPipelinesInput) (req *request.Request, output *ListPipelinesOutput) {
  321. op := &request.Operation{
  322. Name: opListPipelines,
  323. HTTPMethod: "POST",
  324. HTTPPath: "/",
  325. }
  326. if input == nil {
  327. input = &ListPipelinesInput{}
  328. }
  329. req = c.newRequest(op, input, output)
  330. output = &ListPipelinesOutput{}
  331. req.Data = output
  332. return
  333. }
  334. // Gets a summary of all of the pipelines associated with your account.
  335. func (c *CodePipeline) ListPipelines(input *ListPipelinesInput) (*ListPipelinesOutput, error) {
  336. req, out := c.ListPipelinesRequest(input)
  337. err := req.Send()
  338. return out, err
  339. }
  340. const opPollForJobs = "PollForJobs"
  341. // PollForJobsRequest generates a request for the PollForJobs operation.
  342. func (c *CodePipeline) PollForJobsRequest(input *PollForJobsInput) (req *request.Request, output *PollForJobsOutput) {
  343. op := &request.Operation{
  344. Name: opPollForJobs,
  345. HTTPMethod: "POST",
  346. HTTPPath: "/",
  347. }
  348. if input == nil {
  349. input = &PollForJobsInput{}
  350. }
  351. req = c.newRequest(op, input, output)
  352. output = &PollForJobsOutput{}
  353. req.Data = output
  354. return
  355. }
  356. // Returns information about any jobs for AWS CodePipeline to act upon.
  357. //
  358. // When this API is called, AWS CodePipeline returns temporary credentials
  359. // for the Amazon S3 bucket used to store artifacts for the pipeline, if the
  360. // action requires access to that Amazon S3 bucket for input or output artifacts.
  361. // Additionally, this API returns any secret values defined for the action.
  362. func (c *CodePipeline) PollForJobs(input *PollForJobsInput) (*PollForJobsOutput, error) {
  363. req, out := c.PollForJobsRequest(input)
  364. err := req.Send()
  365. return out, err
  366. }
  367. const opPollForThirdPartyJobs = "PollForThirdPartyJobs"
  368. // PollForThirdPartyJobsRequest generates a request for the PollForThirdPartyJobs operation.
  369. func (c *CodePipeline) PollForThirdPartyJobsRequest(input *PollForThirdPartyJobsInput) (req *request.Request, output *PollForThirdPartyJobsOutput) {
  370. op := &request.Operation{
  371. Name: opPollForThirdPartyJobs,
  372. HTTPMethod: "POST",
  373. HTTPPath: "/",
  374. }
  375. if input == nil {
  376. input = &PollForThirdPartyJobsInput{}
  377. }
  378. req = c.newRequest(op, input, output)
  379. output = &PollForThirdPartyJobsOutput{}
  380. req.Data = output
  381. return
  382. }
  383. // Determines whether there are any third party jobs for a job worker to act
  384. // on. Only used for partner actions.
  385. //
  386. // When this API is called, AWS CodePipeline returns temporary credentials
  387. // for the Amazon S3 bucket used to store artifacts for the pipeline, if the
  388. // action requires access to that Amazon S3 bucket for input or output artifacts.
  389. func (c *CodePipeline) PollForThirdPartyJobs(input *PollForThirdPartyJobsInput) (*PollForThirdPartyJobsOutput, error) {
  390. req, out := c.PollForThirdPartyJobsRequest(input)
  391. err := req.Send()
  392. return out, err
  393. }
  394. const opPutActionRevision = "PutActionRevision"
  395. // PutActionRevisionRequest generates a request for the PutActionRevision operation.
  396. func (c *CodePipeline) PutActionRevisionRequest(input *PutActionRevisionInput) (req *request.Request, output *PutActionRevisionOutput) {
  397. op := &request.Operation{
  398. Name: opPutActionRevision,
  399. HTTPMethod: "POST",
  400. HTTPPath: "/",
  401. }
  402. if input == nil {
  403. input = &PutActionRevisionInput{}
  404. }
  405. req = c.newRequest(op, input, output)
  406. output = &PutActionRevisionOutput{}
  407. req.Data = output
  408. return
  409. }
  410. // Provides information to AWS CodePipeline about new revisions to a source.
  411. func (c *CodePipeline) PutActionRevision(input *PutActionRevisionInput) (*PutActionRevisionOutput, error) {
  412. req, out := c.PutActionRevisionRequest(input)
  413. err := req.Send()
  414. return out, err
  415. }
  416. const opPutJobFailureResult = "PutJobFailureResult"
  417. // PutJobFailureResultRequest generates a request for the PutJobFailureResult operation.
  418. func (c *CodePipeline) PutJobFailureResultRequest(input *PutJobFailureResultInput) (req *request.Request, output *PutJobFailureResultOutput) {
  419. op := &request.Operation{
  420. Name: opPutJobFailureResult,
  421. HTTPMethod: "POST",
  422. HTTPPath: "/",
  423. }
  424. if input == nil {
  425. input = &PutJobFailureResultInput{}
  426. }
  427. req = c.newRequest(op, input, output)
  428. output = &PutJobFailureResultOutput{}
  429. req.Data = output
  430. return
  431. }
  432. // Represents the failure of a job as returned to the pipeline by a job worker.
  433. // Only used for custom actions.
  434. func (c *CodePipeline) PutJobFailureResult(input *PutJobFailureResultInput) (*PutJobFailureResultOutput, error) {
  435. req, out := c.PutJobFailureResultRequest(input)
  436. err := req.Send()
  437. return out, err
  438. }
  439. const opPutJobSuccessResult = "PutJobSuccessResult"
  440. // PutJobSuccessResultRequest generates a request for the PutJobSuccessResult operation.
  441. func (c *CodePipeline) PutJobSuccessResultRequest(input *PutJobSuccessResultInput) (req *request.Request, output *PutJobSuccessResultOutput) {
  442. op := &request.Operation{
  443. Name: opPutJobSuccessResult,
  444. HTTPMethod: "POST",
  445. HTTPPath: "/",
  446. }
  447. if input == nil {
  448. input = &PutJobSuccessResultInput{}
  449. }
  450. req = c.newRequest(op, input, output)
  451. output = &PutJobSuccessResultOutput{}
  452. req.Data = output
  453. return
  454. }
  455. // Represents the success of a job as returned to the pipeline by a job worker.
  456. // Only used for custom actions.
  457. func (c *CodePipeline) PutJobSuccessResult(input *PutJobSuccessResultInput) (*PutJobSuccessResultOutput, error) {
  458. req, out := c.PutJobSuccessResultRequest(input)
  459. err := req.Send()
  460. return out, err
  461. }
  462. const opPutThirdPartyJobFailureResult = "PutThirdPartyJobFailureResult"
  463. // PutThirdPartyJobFailureResultRequest generates a request for the PutThirdPartyJobFailureResult operation.
  464. func (c *CodePipeline) PutThirdPartyJobFailureResultRequest(input *PutThirdPartyJobFailureResultInput) (req *request.Request, output *PutThirdPartyJobFailureResultOutput) {
  465. op := &request.Operation{
  466. Name: opPutThirdPartyJobFailureResult,
  467. HTTPMethod: "POST",
  468. HTTPPath: "/",
  469. }
  470. if input == nil {
  471. input = &PutThirdPartyJobFailureResultInput{}
  472. }
  473. req = c.newRequest(op, input, output)
  474. output = &PutThirdPartyJobFailureResultOutput{}
  475. req.Data = output
  476. return
  477. }
  478. // Represents the failure of a third party job as returned to the pipeline by
  479. // a job worker. Only used for partner actions.
  480. func (c *CodePipeline) PutThirdPartyJobFailureResult(input *PutThirdPartyJobFailureResultInput) (*PutThirdPartyJobFailureResultOutput, error) {
  481. req, out := c.PutThirdPartyJobFailureResultRequest(input)
  482. err := req.Send()
  483. return out, err
  484. }
  485. const opPutThirdPartyJobSuccessResult = "PutThirdPartyJobSuccessResult"
  486. // PutThirdPartyJobSuccessResultRequest generates a request for the PutThirdPartyJobSuccessResult operation.
  487. func (c *CodePipeline) PutThirdPartyJobSuccessResultRequest(input *PutThirdPartyJobSuccessResultInput) (req *request.Request, output *PutThirdPartyJobSuccessResultOutput) {
  488. op := &request.Operation{
  489. Name: opPutThirdPartyJobSuccessResult,
  490. HTTPMethod: "POST",
  491. HTTPPath: "/",
  492. }
  493. if input == nil {
  494. input = &PutThirdPartyJobSuccessResultInput{}
  495. }
  496. req = c.newRequest(op, input, output)
  497. output = &PutThirdPartyJobSuccessResultOutput{}
  498. req.Data = output
  499. return
  500. }
  501. // Represents the success of a third party job as returned to the pipeline by
  502. // a job worker. Only used for partner actions.
  503. func (c *CodePipeline) PutThirdPartyJobSuccessResult(input *PutThirdPartyJobSuccessResultInput) (*PutThirdPartyJobSuccessResultOutput, error) {
  504. req, out := c.PutThirdPartyJobSuccessResultRequest(input)
  505. err := req.Send()
  506. return out, err
  507. }
  508. const opStartPipelineExecution = "StartPipelineExecution"
  509. // StartPipelineExecutionRequest generates a request for the StartPipelineExecution operation.
  510. func (c *CodePipeline) StartPipelineExecutionRequest(input *StartPipelineExecutionInput) (req *request.Request, output *StartPipelineExecutionOutput) {
  511. op := &request.Operation{
  512. Name: opStartPipelineExecution,
  513. HTTPMethod: "POST",
  514. HTTPPath: "/",
  515. }
  516. if input == nil {
  517. input = &StartPipelineExecutionInput{}
  518. }
  519. req = c.newRequest(op, input, output)
  520. output = &StartPipelineExecutionOutput{}
  521. req.Data = output
  522. return
  523. }
  524. // Starts the specified pipeline. Specifically, it begins processing the latest
  525. // commit to the source location specified as part of the pipeline.
  526. func (c *CodePipeline) StartPipelineExecution(input *StartPipelineExecutionInput) (*StartPipelineExecutionOutput, error) {
  527. req, out := c.StartPipelineExecutionRequest(input)
  528. err := req.Send()
  529. return out, err
  530. }
  531. const opUpdatePipeline = "UpdatePipeline"
  532. // UpdatePipelineRequest generates a request for the UpdatePipeline operation.
  533. func (c *CodePipeline) UpdatePipelineRequest(input *UpdatePipelineInput) (req *request.Request, output *UpdatePipelineOutput) {
  534. op := &request.Operation{
  535. Name: opUpdatePipeline,
  536. HTTPMethod: "POST",
  537. HTTPPath: "/",
  538. }
  539. if input == nil {
  540. input = &UpdatePipelineInput{}
  541. }
  542. req = c.newRequest(op, input, output)
  543. output = &UpdatePipelineOutput{}
  544. req.Data = output
  545. return
  546. }
  547. // Updates a specified pipeline with edits or changes to its structure. Use
  548. // a JSON file with the pipeline structure in conjunction with UpdatePipeline
  549. // to provide the full structure of the pipeline. Updating the pipeline increases
  550. // the version number of the pipeline by 1.
  551. func (c *CodePipeline) UpdatePipeline(input *UpdatePipelineInput) (*UpdatePipelineOutput, error) {
  552. req, out := c.UpdatePipelineRequest(input)
  553. err := req.Send()
  554. return out, err
  555. }
  556. // Represents an AWS session credentials object. These credentials are temporary
  557. // credentials that are issued by AWS Secure Token Service (STS). They can be
  558. // used to access input and output artifacts in the Amazon S3 bucket used to
  559. // store artifact for the pipeline in AWS CodePipeline.
  560. type AWSSessionCredentials struct {
  561. // The access key for the session.
  562. AccessKeyId *string `locationName:"accessKeyId" type:"string" required:"true"`
  563. // The secret access key for the session.
  564. SecretAccessKey *string `locationName:"secretAccessKey" type:"string" required:"true"`
  565. // The token for the session.
  566. SessionToken *string `locationName:"sessionToken" type:"string" required:"true"`
  567. metadataAWSSessionCredentials `json:"-" xml:"-"`
  568. }
  569. type metadataAWSSessionCredentials struct {
  570. SDKShapeTraits bool `type:"structure"`
  571. }
  572. // String returns the string representation
  573. func (s AWSSessionCredentials) String() string {
  574. return awsutil.Prettify(s)
  575. }
  576. // GoString returns the string representation
  577. func (s AWSSessionCredentials) GoString() string {
  578. return s.String()
  579. }
  580. // Represents the input of an acknowledge job action.
  581. type AcknowledgeJobInput struct {
  582. // The unique system-generated ID of the job for which you want to confirm receipt.
  583. JobId *string `locationName:"jobId" type:"string" required:"true"`
  584. // A system-generated random number that AWS CodePipeline uses to ensure that
  585. // the job is being worked on by only one job worker. This number must be returned
  586. // in the response.
  587. Nonce *string `locationName:"nonce" type:"string" required:"true"`
  588. metadataAcknowledgeJobInput `json:"-" xml:"-"`
  589. }
  590. type metadataAcknowledgeJobInput struct {
  591. SDKShapeTraits bool `type:"structure"`
  592. }
  593. // String returns the string representation
  594. func (s AcknowledgeJobInput) String() string {
  595. return awsutil.Prettify(s)
  596. }
  597. // GoString returns the string representation
  598. func (s AcknowledgeJobInput) GoString() string {
  599. return s.String()
  600. }
  601. // Represents the output of an acknowledge job action.
  602. type AcknowledgeJobOutput struct {
  603. // Whether the job worker has received the specified job.
  604. Status *string `locationName:"status" type:"string" enum:"JobStatus"`
  605. metadataAcknowledgeJobOutput `json:"-" xml:"-"`
  606. }
  607. type metadataAcknowledgeJobOutput struct {
  608. SDKShapeTraits bool `type:"structure"`
  609. }
  610. // String returns the string representation
  611. func (s AcknowledgeJobOutput) String() string {
  612. return awsutil.Prettify(s)
  613. }
  614. // GoString returns the string representation
  615. func (s AcknowledgeJobOutput) GoString() string {
  616. return s.String()
  617. }
  618. // Represents the input of an acknowledge third party job action.
  619. type AcknowledgeThirdPartyJobInput struct {
  620. // The clientToken portion of the clientId and clientToken pair used to verify
  621. // that the calling entity is allowed access to the job and its details.
  622. ClientToken *string `locationName:"clientToken" type:"string" required:"true"`
  623. // The unique system-generated ID of the job.
  624. JobId *string `locationName:"jobId" type:"string" required:"true"`
  625. // A system-generated random number that AWS CodePipeline uses to ensure that
  626. // the job is being worked on by only one job worker. This number must be returned
  627. // in the response.
  628. Nonce *string `locationName:"nonce" type:"string" required:"true"`
  629. metadataAcknowledgeThirdPartyJobInput `json:"-" xml:"-"`
  630. }
  631. type metadataAcknowledgeThirdPartyJobInput struct {
  632. SDKShapeTraits bool `type:"structure"`
  633. }
  634. // String returns the string representation
  635. func (s AcknowledgeThirdPartyJobInput) String() string {
  636. return awsutil.Prettify(s)
  637. }
  638. // GoString returns the string representation
  639. func (s AcknowledgeThirdPartyJobInput) GoString() string {
  640. return s.String()
  641. }
  642. // Represents the output of an acknowledge third party job action.
  643. type AcknowledgeThirdPartyJobOutput struct {
  644. // The status information for the third party job, if any.
  645. Status *string `locationName:"status" type:"string" enum:"JobStatus"`
  646. metadataAcknowledgeThirdPartyJobOutput `json:"-" xml:"-"`
  647. }
  648. type metadataAcknowledgeThirdPartyJobOutput struct {
  649. SDKShapeTraits bool `type:"structure"`
  650. }
  651. // String returns the string representation
  652. func (s AcknowledgeThirdPartyJobOutput) String() string {
  653. return awsutil.Prettify(s)
  654. }
  655. // GoString returns the string representation
  656. func (s AcknowledgeThirdPartyJobOutput) GoString() string {
  657. return s.String()
  658. }
  659. // Represents information about an action configuration.
  660. type ActionConfiguration struct {
  661. // The configuration data for the action.
  662. Configuration map[string]*string `locationName:"configuration" type:"map"`
  663. metadataActionConfiguration `json:"-" xml:"-"`
  664. }
  665. type metadataActionConfiguration struct {
  666. SDKShapeTraits bool `type:"structure"`
  667. }
  668. // String returns the string representation
  669. func (s ActionConfiguration) String() string {
  670. return awsutil.Prettify(s)
  671. }
  672. // GoString returns the string representation
  673. func (s ActionConfiguration) GoString() string {
  674. return s.String()
  675. }
  676. // Represents information about an action configuration property.
  677. type ActionConfigurationProperty struct {
  678. // The description of the action configuration property that will be displayed
  679. // to users.
  680. Description *string `locationName:"description" type:"string"`
  681. // Whether the configuration property is a key.
  682. Key *bool `locationName:"key" type:"boolean" required:"true"`
  683. // The name of the action configuration property.
  684. Name *string `locationName:"name" type:"string" required:"true"`
  685. // Indicates that the proprety will be used in conjunction with PollForJobs.
  686. // When creating a custom action, an action can have up to one queryable property.
  687. // If it has one, that property must be both required and not secret.
  688. //
  689. // If you create a pipeline with a custom action type, and that custom action
  690. // contains a queryable property, the value for that configuration property
  691. // is subject to additional restrictions. The value must be less than or equal
  692. // to twenty (20) characters. The value can contain only alphanumeric characters,
  693. // underscores, and hyphens.
  694. Queryable *bool `locationName:"queryable" type:"boolean"`
  695. // Whether the configuration property is a required value.
  696. Required *bool `locationName:"required" type:"boolean" required:"true"`
  697. // Whether the configuration property is secret. Secrets are hidden from all
  698. // calls except for GetJobDetails, GetThirdPartyJobDetails, PollForJobs, and
  699. // PollForThirdPartyJobs.
  700. //
  701. // When updating a pipeline, passing * * * * * without changing any other values
  702. // of the action will preserve the prior value of the secret.
  703. Secret *bool `locationName:"secret" type:"boolean" required:"true"`
  704. // The type of the configuration property.
  705. Type *string `locationName:"type" type:"string" enum:"ActionConfigurationPropertyType"`
  706. metadataActionConfigurationProperty `json:"-" xml:"-"`
  707. }
  708. type metadataActionConfigurationProperty struct {
  709. SDKShapeTraits bool `type:"structure"`
  710. }
  711. // String returns the string representation
  712. func (s ActionConfigurationProperty) String() string {
  713. return awsutil.Prettify(s)
  714. }
  715. // GoString returns the string representation
  716. func (s ActionConfigurationProperty) GoString() string {
  717. return s.String()
  718. }
  719. // Represents the context of an action within the stage of a pipeline to a job
  720. // worker.
  721. type ActionContext struct {
  722. // The name of the action within the context of a job.
  723. Name *string `locationName:"name" type:"string"`
  724. metadataActionContext `json:"-" xml:"-"`
  725. }
  726. type metadataActionContext struct {
  727. SDKShapeTraits bool `type:"structure"`
  728. }
  729. // String returns the string representation
  730. func (s ActionContext) String() string {
  731. return awsutil.Prettify(s)
  732. }
  733. // GoString returns the string representation
  734. func (s ActionContext) GoString() string {
  735. return s.String()
  736. }
  737. // Represents information about an action declaration.
  738. type ActionDeclaration struct {
  739. // The configuration information for the action type.
  740. ActionTypeId *ActionTypeId `locationName:"actionTypeId" type:"structure" required:"true"`
  741. // The action declaration's configuration.
  742. Configuration map[string]*string `locationName:"configuration" type:"map"`
  743. // The name or ID of the artifact consumed by the action, such as a test or
  744. // build artifact.
  745. InputArtifacts []*InputArtifact `locationName:"inputArtifacts" type:"list"`
  746. // The action declaration's name.
  747. Name *string `locationName:"name" type:"string" required:"true"`
  748. // The name or ID of the result of the action declaration, such as a test or
  749. // build artifact.
  750. OutputArtifacts []*OutputArtifact `locationName:"outputArtifacts" type:"list"`
  751. // The ARN of the IAM service role that will perform the declared action. This
  752. // is assumed through the roleArn for the pipeline.
  753. RoleArn *string `locationName:"roleArn" type:"string"`
  754. // The order in which actions are run.
  755. RunOrder *int64 `locationName:"runOrder" type:"integer"`
  756. metadataActionDeclaration `json:"-" xml:"-"`
  757. }
  758. type metadataActionDeclaration struct {
  759. SDKShapeTraits bool `type:"structure"`
  760. }
  761. // String returns the string representation
  762. func (s ActionDeclaration) String() string {
  763. return awsutil.Prettify(s)
  764. }
  765. // GoString returns the string representation
  766. func (s ActionDeclaration) GoString() string {
  767. return s.String()
  768. }
  769. // Represents information about how an action runs.
  770. type ActionExecution struct {
  771. // The details of an error returned by a URL external to AWS.
  772. ErrorDetails *ErrorDetails `locationName:"errorDetails" type:"structure"`
  773. // The external ID of the run of the action.
  774. ExternalExecutionId *string `locationName:"externalExecutionId" type:"string"`
  775. // The URL of a resource external to AWS that will be used when running the
  776. // action, for example an external repository URL.
  777. ExternalExecutionUrl *string `locationName:"externalExecutionUrl" type:"string"`
  778. // The last status change of the action.
  779. LastStatusChange *time.Time `locationName:"lastStatusChange" type:"timestamp" timestampFormat:"unix"`
  780. // A percentage of completeness of the action as it runs.
  781. PercentComplete *int64 `locationName:"percentComplete" type:"integer"`
  782. // The status of the action, or for a completed action, the last status of the
  783. // action.
  784. Status *string `locationName:"status" type:"string" enum:"ActionExecutionStatus"`
  785. // A summary of the run of the action.
  786. Summary *string `locationName:"summary" type:"string"`
  787. metadataActionExecution `json:"-" xml:"-"`
  788. }
  789. type metadataActionExecution struct {
  790. SDKShapeTraits bool `type:"structure"`
  791. }
  792. // String returns the string representation
  793. func (s ActionExecution) String() string {
  794. return awsutil.Prettify(s)
  795. }
  796. // GoString returns the string representation
  797. func (s ActionExecution) GoString() string {
  798. return s.String()
  799. }
  800. // Represents information about the version (or revision) of an action.
  801. type ActionRevision struct {
  802. // The date and time when the most recent version of the action was created,
  803. // in timestamp format.
  804. Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix" required:"true"`
  805. // The unique identifier of the change that set the state to this revision,
  806. // for example a deployment ID or timestamp.
  807. RevisionChangeId *string `locationName:"revisionChangeId" type:"string"`
  808. // The system-generated unique ID that identifies the revision number of the
  809. // action.
  810. RevisionId *string `locationName:"revisionId" type:"string" required:"true"`
  811. metadataActionRevision `json:"-" xml:"-"`
  812. }
  813. type metadataActionRevision struct {
  814. SDKShapeTraits bool `type:"structure"`
  815. }
  816. // String returns the string representation
  817. func (s ActionRevision) String() string {
  818. return awsutil.Prettify(s)
  819. }
  820. // GoString returns the string representation
  821. func (s ActionRevision) GoString() string {
  822. return s.String()
  823. }
  824. // Represents information about the state of an action.
  825. type ActionState struct {
  826. // The name of the action.
  827. ActionName *string `locationName:"actionName" type:"string"`
  828. // Represents information about the version (or revision) of an action.
  829. CurrentRevision *ActionRevision `locationName:"currentRevision" type:"structure"`
  830. // A URL link for more information about the state of the action, such as a
  831. // deployment group details page.
  832. EntityUrl *string `locationName:"entityUrl" type:"string"`
  833. // Represents information about how an action runs.
  834. LatestExecution *ActionExecution `locationName:"latestExecution" type:"structure"`
  835. // A URL link for more information about the revision, such as a commit details
  836. // page.
  837. RevisionUrl *string `locationName:"revisionUrl" type:"string"`
  838. metadataActionState `json:"-" xml:"-"`
  839. }
  840. type metadataActionState struct {
  841. SDKShapeTraits bool `type:"structure"`
  842. }
  843. // String returns the string representation
  844. func (s ActionState) String() string {
  845. return awsutil.Prettify(s)
  846. }
  847. // GoString returns the string representation
  848. func (s ActionState) GoString() string {
  849. return s.String()
  850. }
  851. // Returns information about the details of an action type.
  852. type ActionType struct {
  853. // The configuration properties for the action type.
  854. ActionConfigurationProperties []*ActionConfigurationProperty `locationName:"actionConfigurationProperties" type:"list"`
  855. // Represents information about an action type.
  856. Id *ActionTypeId `locationName:"id" type:"structure" required:"true"`
  857. // The details of the input artifact for the action, such as its commit ID.
  858. InputArtifactDetails *ArtifactDetails `locationName:"inputArtifactDetails" type:"structure" required:"true"`
  859. // The details of the output artifact of the action, such as its commit ID.
  860. OutputArtifactDetails *ArtifactDetails `locationName:"outputArtifactDetails" type:"structure" required:"true"`
  861. // The settings for the action type.
  862. Settings *ActionTypeSettings `locationName:"settings" type:"structure"`
  863. metadataActionType `json:"-" xml:"-"`
  864. }
  865. type metadataActionType struct {
  866. SDKShapeTraits bool `type:"structure"`
  867. }
  868. // String returns the string representation
  869. func (s ActionType) String() string {
  870. return awsutil.Prettify(s)
  871. }
  872. // GoString returns the string representation
  873. func (s ActionType) GoString() string {
  874. return s.String()
  875. }
  876. // Represents information about an action type.
  877. type ActionTypeId struct {
  878. // A category defines what kind of action can be taken in the stage, and constrains
  879. // the provider type for the action. Valid categories are limited to one of
  880. // the values below.
  881. Category *string `locationName:"category" type:"string" required:"true" enum:"ActionCategory"`
  882. // The creator of the action being called.
  883. Owner *string `locationName:"owner" type:"string" required:"true" enum:"ActionOwner"`
  884. // The provider of the service being called by the action. Valid providers are
  885. // determined by the action category. For example, an action in the Deploy category
  886. // type might have a provider of AWS CodeDeploy, which would be specified as
  887. // CodeDeploy.
  888. Provider *string `locationName:"provider" type:"string" required:"true"`
  889. // A string that identifies the action type.
  890. Version *string `locationName:"version" type:"string" required:"true"`
  891. metadataActionTypeId `json:"-" xml:"-"`
  892. }
  893. type metadataActionTypeId struct {
  894. SDKShapeTraits bool `type:"structure"`
  895. }
  896. // String returns the string representation
  897. func (s ActionTypeId) String() string {
  898. return awsutil.Prettify(s)
  899. }
  900. // GoString returns the string representation
  901. func (s ActionTypeId) GoString() string {
  902. return s.String()
  903. }
  904. // Returns information about the settings for an action type.
  905. type ActionTypeSettings struct {
  906. // The URL returned to the AWS CodePipeline console that provides a deep link
  907. // to the resources of the external system, such as the configuration page for
  908. // an AWS CodeDeploy deployment group. This link is provided as part of the
  909. // action display within the pipeline.
  910. EntityUrlTemplate *string `locationName:"entityUrlTemplate" type:"string"`
  911. // The URL returned to the AWS CodePipeline console that contains a link to
  912. // the top-level landing page for the external system, such as console page
  913. // for AWS CodeDeploy. This link is shown on the pipeline view page in the AWS
  914. // CodePipeline console and provides a link to the execution entity of the external
  915. // action.
  916. ExecutionUrlTemplate *string `locationName:"executionUrlTemplate" type:"string"`
  917. // The URL returned to the AWS CodePipeline console that contains a link to
  918. // the page where customers can update or change the configuration of the external
  919. // action.
  920. RevisionUrlTemplate *string `locationName:"revisionUrlTemplate" type:"string"`
  921. // The URL of a sign-up page where users can sign up for an external service
  922. // and perform initial configuration of the action provided by that service.
  923. ThirdPartyConfigurationUrl *string `locationName:"thirdPartyConfigurationUrl" type:"string"`
  924. metadataActionTypeSettings `json:"-" xml:"-"`
  925. }
  926. type metadataActionTypeSettings struct {
  927. SDKShapeTraits bool `type:"structure"`
  928. }
  929. // String returns the string representation
  930. func (s ActionTypeSettings) String() string {
  931. return awsutil.Prettify(s)
  932. }
  933. // GoString returns the string representation
  934. func (s ActionTypeSettings) GoString() string {
  935. return s.String()
  936. }
  937. // Represents information about an artifact that will be worked upon by actions
  938. // in the pipeline.
  939. type Artifact struct {
  940. // The location of an artifact.
  941. Location *ArtifactLocation `locationName:"location" type:"structure"`
  942. // The artifact's name.
  943. Name *string `locationName:"name" type:"string"`
  944. // The artifact's revision ID. Depending on the type of object, this could be
  945. // a commit ID (GitHub) or a revision ID (Amazon S3).
  946. Revision *string `locationName:"revision" type:"string"`
  947. metadataArtifact `json:"-" xml:"-"`
  948. }
  949. type metadataArtifact struct {
  950. SDKShapeTraits bool `type:"structure"`
  951. }
  952. // String returns the string representation
  953. func (s Artifact) String() string {
  954. return awsutil.Prettify(s)
  955. }
  956. // GoString returns the string representation
  957. func (s Artifact) GoString() string {
  958. return s.String()
  959. }
  960. // Returns information about the details of an artifact.
  961. type ArtifactDetails struct {
  962. // The maximum number of artifacts allowed for the action type.
  963. MaximumCount *int64 `locationName:"maximumCount" type:"integer" required:"true"`
  964. // The minimum number of artifacts allowed for the action type.
  965. MinimumCount *int64 `locationName:"minimumCount" type:"integer" required:"true"`
  966. metadataArtifactDetails `json:"-" xml:"-"`
  967. }
  968. type metadataArtifactDetails struct {
  969. SDKShapeTraits bool `type:"structure"`
  970. }
  971. // String returns the string representation
  972. func (s ArtifactDetails) String() string {
  973. return awsutil.Prettify(s)
  974. }
  975. // GoString returns the string representation
  976. func (s ArtifactDetails) GoString() string {
  977. return s.String()
  978. }
  979. // Represents information about the location of an artifact.
  980. type ArtifactLocation struct {
  981. // The Amazon S3 bucket that contains the artifact.
  982. S3Location *S3ArtifactLocation `locationName:"s3Location" type:"structure"`
  983. // The type of artifact in the location.
  984. Type *string `locationName:"type" type:"string" enum:"ArtifactLocationType"`
  985. metadataArtifactLocation `json:"-" xml:"-"`
  986. }
  987. type metadataArtifactLocation struct {
  988. SDKShapeTraits bool `type:"structure"`
  989. }
  990. // String returns the string representation
  991. func (s ArtifactLocation) String() string {
  992. return awsutil.Prettify(s)
  993. }
  994. // GoString returns the string representation
  995. func (s ArtifactLocation) GoString() string {
  996. return s.String()
  997. }
  998. // The Amazon S3 location where artifacts are stored for the pipeline. If this
  999. // Amazon S3 bucket is created manually, it must meet the requirements for AWS
  1000. // CodePipeline. For more information, see the Concepts.
  1001. type ArtifactStore struct {
  1002. // The AWS Key Management Service (AWS KMS) key used to encrypt the data in
  1003. // the artifact store. If this is undefined, the default key for Amazon S3 is
  1004. // used.
  1005. EncryptionKey *EncryptionKey `locationName:"encryptionKey" type:"structure"`
  1006. // The location for storing the artifacts for a pipeline, such as an S3 bucket
  1007. // or folder.
  1008. Location *string `locationName:"location" type:"string" required:"true"`
  1009. // The type of the artifact store, such as S3.
  1010. Type *string `locationName:"type" type:"string" required:"true" enum:"ArtifactStoreType"`
  1011. metadataArtifactStore `json:"-" xml:"-"`
  1012. }
  1013. type metadataArtifactStore struct {
  1014. SDKShapeTraits bool `type:"structure"`
  1015. }
  1016. // String returns the string representation
  1017. func (s ArtifactStore) String() string {
  1018. return awsutil.Prettify(s)
  1019. }
  1020. // GoString returns the string representation
  1021. func (s ArtifactStore) GoString() string {
  1022. return s.String()
  1023. }
  1024. // Represents information about a gate declaration.
  1025. type BlockerDeclaration struct {
  1026. // The name of the gate declaration.
  1027. Name *string `locationName:"name" type:"string" required:"true"`
  1028. // The type of the gate declaration.
  1029. Type *string `locationName:"type" type:"string" required:"true" enum:"BlockerType"`
  1030. metadataBlockerDeclaration `json:"-" xml:"-"`
  1031. }
  1032. type metadataBlockerDeclaration struct {
  1033. SDKShapeTraits bool `type:"structure"`
  1034. }
  1035. // String returns the string representation
  1036. func (s BlockerDeclaration) String() string {
  1037. return awsutil.Prettify(s)
  1038. }
  1039. // GoString returns the string representation
  1040. func (s BlockerDeclaration) GoString() string {
  1041. return s.String()
  1042. }
  1043. // Represents the input of a create custom action operation.
  1044. type CreateCustomActionTypeInput struct {
  1045. // The category of the custom action, such as a source action or a build action.
  1046. Category *string `locationName:"category" type:"string" required:"true" enum:"ActionCategory"`
  1047. // The configuration properties for the custom action.
  1048. ConfigurationProperties []*ActionConfigurationProperty `locationName:"configurationProperties" type:"list"`
  1049. // Returns information about the details of an artifact.
  1050. InputArtifactDetails *ArtifactDetails `locationName:"inputArtifactDetails" type:"structure" required:"true"`
  1051. // Returns information about the details of an artifact.
  1052. OutputArtifactDetails *ArtifactDetails `locationName:"outputArtifactDetails" type:"structure" required:"true"`
  1053. // The provider of the service used in the custom action, such as AWS CodeDeploy.
  1054. Provider *string `locationName:"provider" type:"string" required:"true"`
  1055. // Returns information about the settings for an action type.
  1056. Settings *ActionTypeSettings `locationName:"settings" type:"structure"`
  1057. // The version number of the custom action.
  1058. //
  1059. // A newly-created custom action is always assigned a version number of 1.
  1060. // This is required.
  1061. Version *string `locationName:"version" type:"string" required:"true"`
  1062. metadataCreateCustomActionTypeInput `json:"-" xml:"-"`
  1063. }
  1064. type metadataCreateCustomActionTypeInput struct {
  1065. SDKShapeTraits bool `type:"structure"`
  1066. }
  1067. // String returns the string representation
  1068. func (s CreateCustomActionTypeInput) String() string {
  1069. return awsutil.Prettify(s)
  1070. }
  1071. // GoString returns the string representation
  1072. func (s CreateCustomActionTypeInput) GoString() string {
  1073. return s.String()
  1074. }
  1075. // Represents the output of a create custom action operation.
  1076. type CreateCustomActionTypeOutput struct {
  1077. // Returns information about the details of an action type.
  1078. ActionType *ActionType `locationName:"actionType" type:"structure" required:"true"`
  1079. metadataCreateCustomActionTypeOutput `json:"-" xml:"-"`
  1080. }
  1081. type metadataCreateCustomActionTypeOutput struct {
  1082. SDKShapeTraits bool `type:"structure"`
  1083. }
  1084. // String returns the string representation
  1085. func (s CreateCustomActionTypeOutput) String() string {
  1086. return awsutil.Prettify(s)
  1087. }
  1088. // GoString returns the string representation
  1089. func (s CreateCustomActionTypeOutput) GoString() string {
  1090. return s.String()
  1091. }
  1092. // Represents the input of a create pipeline action.
  1093. type CreatePipelineInput struct {
  1094. // Represents the structure of actions and stages to be performed in the pipeline.
  1095. Pipeline *PipelineDeclaration `locationName:"pipeline" type:"structure" required:"true"`
  1096. metadataCreatePipelineInput `json:"-" xml:"-"`
  1097. }
  1098. type metadataCreatePipelineInput struct {
  1099. SDKShapeTraits bool `type:"structure"`
  1100. }
  1101. // String returns the string representation
  1102. func (s CreatePipelineInput) String() string {
  1103. return awsutil.Prettify(s)
  1104. }
  1105. // GoString returns the string representation
  1106. func (s CreatePipelineInput) GoString() string {
  1107. return s.String()
  1108. }
  1109. // Represents the output of a create pipeline action.
  1110. type CreatePipelineOutput struct {
  1111. // Represents the structure of actions and stages to be performed in the pipeline.
  1112. Pipeline *PipelineDeclaration `locationName:"pipeline" type:"structure"`
  1113. metadataCreatePipelineOutput `json:"-" xml:"-"`
  1114. }
  1115. type metadataCreatePipelineOutput struct {
  1116. SDKShapeTraits bool `type:"structure"`
  1117. }
  1118. // String returns the string representation
  1119. func (s CreatePipelineOutput) String() string {
  1120. return awsutil.Prettify(s)
  1121. }
  1122. // GoString returns the string representation
  1123. func (s CreatePipelineOutput) GoString() string {
  1124. return s.String()
  1125. }
  1126. // Represents information about a current revision.
  1127. type CurrentRevision struct {
  1128. // The change identifier for the current revision.
  1129. ChangeIdentifier *string `locationName:"changeIdentifier" type:"string" required:"true"`
  1130. // The revision ID of the current version of an artifact.
  1131. Revision *string `locationName:"revision" type:"string" required:"true"`
  1132. metadataCurrentRevision `json:"-" xml:"-"`
  1133. }
  1134. type metadataCurrentRevision struct {
  1135. SDKShapeTraits bool `type:"structure"`
  1136. }
  1137. // String returns the string representation
  1138. func (s CurrentRevision) String() string {
  1139. return awsutil.Prettify(s)
  1140. }
  1141. // GoString returns the string representation
  1142. func (s CurrentRevision) GoString() string {
  1143. return s.String()
  1144. }
  1145. // Represents the input of a delete custom action operation. The custom action
  1146. // will be marked as deleted.
  1147. type DeleteCustomActionTypeInput struct {
  1148. // The category of the custom action that you want to delete, such as source
  1149. // or deploy.
  1150. Category *string `locationName:"category" type:"string" required:"true" enum:"ActionCategory"`
  1151. // The provider of the service used in the custom action, such as AWS CodeDeploy.
  1152. Provider *string `locationName:"provider" type:"string" required:"true"`
  1153. // The version of the custom action to delete.
  1154. Version *string `locationName:"version" type:"string" required:"true"`
  1155. metadataDeleteCustomActionTypeInput `json:"-" xml:"-"`
  1156. }
  1157. type metadataDeleteCustomActionTypeInput struct {
  1158. SDKShapeTraits bool `type:"structure"`
  1159. }
  1160. // String returns the string representation
  1161. func (s DeleteCustomActionTypeInput) String() string {
  1162. return awsutil.Prettify(s)
  1163. }
  1164. // GoString returns the string representation
  1165. func (s DeleteCustomActionTypeInput) GoString() string {
  1166. return s.String()
  1167. }
  1168. type DeleteCustomActionTypeOutput struct {
  1169. metadataDeleteCustomActionTypeOutput `json:"-" xml:"-"`
  1170. }
  1171. type metadataDeleteCustomActionTypeOutput struct {
  1172. SDKShapeTraits bool `type:"structure"`
  1173. }
  1174. // String returns the string representation
  1175. func (s DeleteCustomActionTypeOutput) String() string {
  1176. return awsutil.Prettify(s)
  1177. }
  1178. // GoString returns the string representation
  1179. func (s DeleteCustomActionTypeOutput) GoString() string {
  1180. return s.String()
  1181. }
  1182. // Represents the input of a delete pipeline action.
  1183. type DeletePipelineInput struct {
  1184. // The name of the pipeline to be deleted.
  1185. Name *string `locationName:"name" type:"string" required:"true"`
  1186. metadataDeletePipelineInput `json:"-" xml:"-"`
  1187. }
  1188. type metadataDeletePipelineInput struct {
  1189. SDKShapeTraits bool `type:"structure"`
  1190. }
  1191. // String returns the string representation
  1192. func (s DeletePipelineInput) String() string {
  1193. return awsutil.Prettify(s)
  1194. }
  1195. // GoString returns the string representation
  1196. func (s DeletePipelineInput) GoString() string {
  1197. return s.String()
  1198. }
  1199. type DeletePipelineOutput struct {
  1200. metadataDeletePipelineOutput `json:"-" xml:"-"`
  1201. }
  1202. type metadataDeletePipelineOutput struct {
  1203. SDKShapeTraits bool `type:"structure"`
  1204. }
  1205. // String returns the string representation
  1206. func (s DeletePipelineOutput) String() string {
  1207. return awsutil.Prettify(s)
  1208. }
  1209. // GoString returns the string representation
  1210. func (s DeletePipelineOutput) GoString() string {
  1211. return s.String()
  1212. }
  1213. // Represents the input of a disable stage transition input action.
  1214. type DisableStageTransitionInput struct {
  1215. // The name of the pipeline in which you want to disable the flow of artifacts
  1216. // from one stage to another.
  1217. PipelineName *string `locationName:"pipelineName" type:"string" required:"true"`
  1218. // The reason given to the user why a stage is disabled, such as waiting for
  1219. // manual approval or manual tests. This message is displayed in the pipeline
  1220. // console UI.
  1221. Reason *string `locationName:"reason" type:"string" required:"true"`
  1222. // The name of the stage where you want to disable the inbound or outbound transition
  1223. // of artifacts.
  1224. StageName *string `locationName:"stageName" type:"string" required:"true"`
  1225. // Specifies whether artifacts will be prevented from transitioning into the
  1226. // stage and being processed by the actions in that stage (inbound), or prevented
  1227. // from transitioning from the stage after they have been processed by the actions
  1228. // in that stage (outbound).
  1229. TransitionType *string `locationName:"transitionType" type:"string" required:"true" enum:"StageTransitionType"`
  1230. metadataDisableStageTransitionInput `json:"-" xml:"-"`
  1231. }
  1232. type metadataDisableStageTransitionInput struct {
  1233. SDKShapeTraits bool `type:"structure"`
  1234. }
  1235. // String returns the string representation
  1236. func (s DisableStageTransitionInput) String() string {
  1237. return awsutil.Prettify(s)
  1238. }
  1239. // GoString returns the string representation
  1240. func (s DisableStageTransitionInput) GoString() string {
  1241. return s.String()
  1242. }
  1243. type DisableStageTransitionOutput struct {
  1244. metadataDisableStageTransitionOutput `json:"-" xml:"-"`
  1245. }
  1246. type metadataDisableStageTransitionOutput struct {
  1247. SDKShapeTraits bool `type:"structure"`
  1248. }
  1249. // String returns the string representation
  1250. func (s DisableStageTransitionOutput) String() string {
  1251. return awsutil.Prettify(s)
  1252. }
  1253. // GoString returns the string representation
  1254. func (s DisableStageTransitionOutput) GoString() string {
  1255. return s.String()
  1256. }
  1257. // Represents the input of an enable stage transition action.
  1258. type EnableStageTransitionInput struct {
  1259. // The name of the pipeline in which you want to enable the flow of artifacts
  1260. // from one stage to another.
  1261. PipelineName *string `locationName:"pipelineName" type:"string" required:"true"`
  1262. // The name of the stage where you want to enable the transition of artifacts,
  1263. // either into the stage (inbound) or from that stage to the next stage (outbound).
  1264. StageName *string `locationName:"stageName" type:"string" required:"true"`
  1265. // Specifies whether artifacts will be allowed to enter the stage and be processed
  1266. // by the actions in that stage (inbound) or whether already-processed artifacts
  1267. // will be allowed to transition to the next stage (outbound).
  1268. TransitionType *string `locationName:"transitionType" type:"string" required:"true" enum:"StageTransitionType"`
  1269. metadataEnableStageTransitionInput `json:"-" xml:"-"`
  1270. }
  1271. type metadataEnableStageTransitionInput struct {
  1272. SDKShapeTraits bool `type:"structure"`
  1273. }
  1274. // String returns the string representation
  1275. func (s EnableStageTransitionInput) String() string {
  1276. return awsutil.Prettify(s)
  1277. }
  1278. // GoString returns the string representation
  1279. func (s EnableStageTransitionInput) GoString() string {
  1280. return s.String()
  1281. }
  1282. type EnableStageTransitionOutput struct {
  1283. metadataEnableStageTransitionOutput `json:"-" xml:"-"`
  1284. }
  1285. type metadataEnableStageTransitionOutput struct {
  1286. SDKShapeTraits bool `type:"structure"`
  1287. }
  1288. // String returns the string representation
  1289. func (s EnableStageTransitionOutput) String() string {
  1290. return awsutil.Prettify(s)
  1291. }
  1292. // GoString returns the string representation
  1293. func (s EnableStageTransitionOutput) GoString() string {
  1294. return s.String()
  1295. }
  1296. // Represents information about the AWS Key Management Service (AWS KMS) key
  1297. // used to encrypt data in the artifact store.
  1298. type EncryptionKey struct {
  1299. // The ID of the AWS KMS key.
  1300. Id *string `locationName:"id" type:"string" required:"true"`
  1301. // The type of AWS KMS key, such as a customer master key.
  1302. Type *string `locationName:"type" type:"string" required:"true" enum:"EncryptionKeyType"`
  1303. metadataEncryptionKey `json:"-" xml:"-"`
  1304. }
  1305. type metadataEncryptionKey struct {
  1306. SDKShapeTraits bool `type:"structure"`
  1307. }
  1308. // String returns the string representation
  1309. func (s EncryptionKey) String() string {
  1310. return awsutil.Prettify(s)
  1311. }
  1312. // GoString returns the string representation
  1313. func (s EncryptionKey) GoString() string {
  1314. return s.String()
  1315. }
  1316. // Represents information about an error in AWS CodePipeline.
  1317. type ErrorDetails struct {
  1318. // The system ID or error number code of the error.
  1319. Code *string `locationName:"code" type:"string"`
  1320. // The text of the error message.
  1321. Message *string `locationName:"message" type:"string"`
  1322. metadataErrorDetails `json:"-" xml:"-"`
  1323. }
  1324. type metadataErrorDetails struct {
  1325. SDKShapeTraits bool `type:"structure"`
  1326. }
  1327. // String returns the string representation
  1328. func (s ErrorDetails) String() string {
  1329. return awsutil.Prettify(s)
  1330. }
  1331. // GoString returns the string representation
  1332. func (s ErrorDetails) GoString() string {
  1333. return s.String()
  1334. }
  1335. // The details of the actions taken and results produced on an artifact as it
  1336. // passes through stages in the pipeline.
  1337. type ExecutionDetails struct {
  1338. // The system-generated unique ID of this action used to identify this job worker
  1339. // in any external systems, such as AWS CodeDeploy.
  1340. ExternalExecutionId *string `locationName:"externalExecutionId" type:"string"`
  1341. // The percentage of work completed on the action, represented on a scale of
  1342. // zero to one hundred percent.
  1343. PercentComplete *int64 `locationName:"percentComplete" type:"integer"`
  1344. // The summary of the current status of the actions.
  1345. Summary *string `locationName:"summary" type:"string"`
  1346. metadataExecutionDetails `json:"-" xml:"-"`
  1347. }
  1348. type metadataExecutionDetails struct {
  1349. SDKShapeTraits bool `type:"structure"`
  1350. }
  1351. // String returns the string representation
  1352. func (s ExecutionDetails) String() string {
  1353. return awsutil.Prettify(s)
  1354. }
  1355. // GoString returns the string representation
  1356. func (s ExecutionDetails) GoString() string {
  1357. return s.String()
  1358. }
  1359. // Represents information about failure details.
  1360. type FailureDetails struct {
  1361. // The external ID of the run of the action that failed.
  1362. ExternalExecutionId *string `locationName:"externalExecutionId" type:"string"`
  1363. // The message about the failure.
  1364. Message *string `locationName:"message" type:"string" required:"true"`
  1365. // The type of the failure.
  1366. Type *string `locationName:"type" type:"string" required:"true" enum:"FailureType"`
  1367. metadataFailureDetails `json:"-" xml:"-"`
  1368. }
  1369. type metadataFailureDetails struct {
  1370. SDKShapeTraits bool `type:"structure"`
  1371. }
  1372. // String returns the string representation
  1373. func (s FailureDetails) String() string {
  1374. return awsutil.Prettify(s)
  1375. }
  1376. // GoString returns the string representation
  1377. func (s FailureDetails) GoString() string {
  1378. return s.String()
  1379. }
  1380. // Represents the input of a get job details action.
  1381. type GetJobDetailsInput struct {
  1382. // The unique system-generated ID for the job.
  1383. JobId *string `locationName:"jobId" type:"string" required:"true"`
  1384. metadataGetJobDetailsInput `json:"-" xml:"-"`
  1385. }
  1386. type metadataGetJobDetailsInput struct {
  1387. SDKShapeTraits bool `type:"structure"`
  1388. }
  1389. // String returns the string representation
  1390. func (s GetJobDetailsInput) String() string {
  1391. return awsutil.Prettify(s)
  1392. }
  1393. // GoString returns the string representation
  1394. func (s GetJobDetailsInput) GoString() string {
  1395. return s.String()
  1396. }
  1397. // Represents the output of a get job details action.
  1398. type GetJobDetailsOutput struct {
  1399. // The details of the job.
  1400. //
  1401. // If AWSSessionCredentials is used, a long-running job can call GetJobDetails
  1402. // again to obtain new credentials.
  1403. JobDetails *JobDetails `locationName:"jobDetails" type:"structure"`
  1404. metadataGetJobDetailsOutput `json:"-" xml:"-"`
  1405. }
  1406. type metadataGetJobDetailsOutput struct {
  1407. SDKShapeTraits bool `type:"structure"`
  1408. }
  1409. // String returns the string representation
  1410. func (s GetJobDetailsOutput) String() string {
  1411. return awsutil.Prettify(s)
  1412. }
  1413. // GoString returns the string representation
  1414. func (s GetJobDetailsOutput) GoString() string {
  1415. return s.String()
  1416. }
  1417. // Represents the input of a get pipeline action.
  1418. type GetPipelineInput struct {
  1419. // The name of the pipeline for which you want to get information. Pipeline
  1420. // names must be unique under an Amazon Web Services (AWS) user account.
  1421. Name *string `locationName:"name" type:"string" required:"true"`
  1422. // The version number of the pipeline. If you do not specify a version, defaults
  1423. // to the most current version.
  1424. Version *int64 `locationName:"version" type:"integer"`
  1425. metadataGetPipelineInput `json:"-" xml:"-"`
  1426. }
  1427. type metadataGetPipelineInput struct {
  1428. SDKShapeTraits bool `type:"structure"`
  1429. }
  1430. // String returns the string representation
  1431. func (s GetPipelineInput) String() string {
  1432. return awsutil.Prettify(s)
  1433. }
  1434. // GoString returns the string representation
  1435. func (s GetPipelineInput) GoString() string {
  1436. return s.String()
  1437. }
  1438. // Represents the output of a get pipeline action.
  1439. type GetPipelineOutput struct {
  1440. // Represents the structure of actions and stages to be performed in the pipeline.
  1441. Pipeline *PipelineDeclaration `locationName:"pipeline" type:"structure"`
  1442. metadataGetPipelineOutput `json:"-" xml:"-"`
  1443. }
  1444. type metadataGetPipelineOutput struct {
  1445. SDKShapeTraits bool `type:"structure"`
  1446. }
  1447. // String returns the string representation
  1448. func (s GetPipelineOutput) String() string {
  1449. return awsutil.Prettify(s)
  1450. }
  1451. // GoString returns the string representation
  1452. func (s GetPipelineOutput) GoString() string {
  1453. return s.String()
  1454. }
  1455. // Represents the input of a get pipeline state action.
  1456. type GetPipelineStateInput struct {
  1457. // The name of the pipeline about which you want to get information.
  1458. Name *string `locationName:"name" type:"string" required:"true"`
  1459. metadataGetPipelineStateInput `json:"-" xml:"-"`
  1460. }
  1461. type metadataGetPipelineStateInput struct {
  1462. SDKShapeTraits bool `type:"structure"`
  1463. }
  1464. // String returns the string representation
  1465. func (s GetPipelineStateInput) String() string {
  1466. return awsutil.Prettify(s)
  1467. }
  1468. // GoString returns the string representation
  1469. func (s GetPipelineStateInput) GoString() string {
  1470. return s.String()
  1471. }
  1472. // Represents the output of a get pipeline state action.
  1473. type GetPipelineStateOutput struct {
  1474. // The date and time the pipeline was created, in timestamp format.
  1475. Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
  1476. // The name of the pipeline for which you want to get the state.
  1477. PipelineName *string `locationName:"pipelineName" type:"string"`
  1478. // The version number of the pipeline.
  1479. //
  1480. // A newly-created pipeline is always assigned a version number of 1.
  1481. PipelineVersion *int64 `locationName:"pipelineVersion" type:"integer"`
  1482. // A list of the pipeline stage output information, including stage name, state,
  1483. // most recent run details, whether the stage is disabled, and other data.
  1484. StageStates []*StageState `locationName:"stageStates" type:"list"`
  1485. // The date and time the pipeline was last updated, in timestamp format.
  1486. Updated *time.Time `locationName:"updated" type:"timestamp" timestampFormat:"unix"`
  1487. metadataGetPipelineStateOutput `json:"-" xml:"-"`
  1488. }
  1489. type metadataGetPipelineStateOutput struct {
  1490. SDKShapeTraits bool `type:"structure"`
  1491. }
  1492. // String returns the string representation
  1493. func (s GetPipelineStateOutput) String() string {
  1494. return awsutil.Prettify(s)
  1495. }
  1496. // GoString returns the string representation
  1497. func (s GetPipelineStateOutput) GoString() string {
  1498. return s.String()
  1499. }
  1500. // Represents the input of a get third party job details action.
  1501. type GetThirdPartyJobDetailsInput struct {
  1502. // The clientToken portion of the clientId and clientToken pair used to verify
  1503. // that the calling entity is allowed access to the job and its details.
  1504. ClientToken *string `locationName:"clientToken" type:"string" required:"true"`
  1505. // The unique system-generated ID used for identifying the job.
  1506. JobId *string `locationName:"jobId" type:"string" required:"true"`
  1507. metadataGetThirdPartyJobDetailsInput `json:"-" xml:"-"`
  1508. }
  1509. type metadataGetThirdPartyJobDetailsInput struct {
  1510. SDKShapeTraits bool `type:"structure"`
  1511. }
  1512. // String returns the string representation
  1513. func (s GetThirdPartyJobDetailsInput) String() string {
  1514. return awsutil.Prettify(s)
  1515. }
  1516. // GoString returns the string representation
  1517. func (s GetThirdPartyJobDetailsInput) GoString() string {
  1518. return s.String()
  1519. }
  1520. // Represents the output of a get third party job details action.
  1521. type GetThirdPartyJobDetailsOutput struct {
  1522. // The details of the job, including any protected values defined for the job.
  1523. JobDetails *ThirdPartyJobDetails `locationName:"jobDetails" type:"structure"`
  1524. metadataGetThirdPartyJobDetailsOutput `json:"-" xml:"-"`
  1525. }
  1526. type metadataGetThirdPartyJobDetailsOutput struct {
  1527. SDKShapeTraits bool `type:"structure"`
  1528. }
  1529. // String returns the string representation
  1530. func (s GetThirdPartyJobDetailsOutput) String() string {
  1531. return awsutil.Prettify(s)
  1532. }
  1533. // GoString returns the string representation
  1534. func (s GetThirdPartyJobDetailsOutput) GoString() string {
  1535. return s.String()
  1536. }
  1537. // Represents information about an artifact to be worked on, such as a test
  1538. // or build artifact.
  1539. type InputArtifact struct {
  1540. // The name of the artifact to be worked on, for example, "My App".
  1541. //
  1542. // The input artifact of an action must exactly match the output artifact declared
  1543. // in a preceding action, but the input artifact does not have to be the next
  1544. // action in strict sequence from the action that provided the output artifact.
  1545. // Actions in parallel can declare different output artifacts, which are in
  1546. // turn consumed by different following actions.
  1547. Name *string `locationName:"name" type:"string" required:"true"`
  1548. metadataInputArtifact `json:"-" xml:"-"`
  1549. }
  1550. type metadataInputArtifact struct {
  1551. SDKShapeTraits bool `type:"structure"`
  1552. }
  1553. // String returns the string representation
  1554. func (s InputArtifact) String() string {
  1555. return awsutil.Prettify(s)
  1556. }
  1557. // GoString returns the string representation
  1558. func (s InputArtifact) GoString() string {
  1559. return s.String()
  1560. }
  1561. // Represents information about a job.
  1562. type Job struct {
  1563. // The ID of the AWS account to use when performing the job.
  1564. AccountId *string `locationName:"accountId" type:"string"`
  1565. // Additional data about a job.
  1566. Data *JobData `locationName:"data" type:"structure"`
  1567. // The unique system-generated ID of the job.
  1568. Id *string `locationName:"id" type:"string"`
  1569. // A system-generated random number that AWS CodePipeline uses to ensure that
  1570. // the job is being worked on by only one job worker. This number must be returned
  1571. // in the response.
  1572. Nonce *string `locationName:"nonce" type:"string"`
  1573. metadataJob `json:"-" xml:"-"`
  1574. }
  1575. type metadataJob struct {
  1576. SDKShapeTraits bool `type:"structure"`
  1577. }
  1578. // String returns the string representation
  1579. func (s Job) String() string {
  1580. return awsutil.Prettify(s)
  1581. }
  1582. // GoString returns the string representation
  1583. func (s Job) GoString() string {
  1584. return s.String()
  1585. }
  1586. // Represents additional information about a job required for a job worker to
  1587. // complete the job.
  1588. type JobData struct {
  1589. // Represents information about an action configuration.
  1590. ActionConfiguration *ActionConfiguration `locationName:"actionConfiguration" type:"structure"`
  1591. // Represents information about an action type.
  1592. ActionTypeId *ActionTypeId `locationName:"actionTypeId" type:"structure"`
  1593. // Represents an AWS session credentials object. These credentials are temporary
  1594. // credentials that are issued by AWS Secure Token Service (STS). They can be
  1595. // used to access input and output artifacts in the Amazon S3 bucket used to
  1596. // store artifact for the pipeline in AWS CodePipeline.
  1597. ArtifactCredentials *AWSSessionCredentials `locationName:"artifactCredentials" type:"structure"`
  1598. // A system-generated token, such as a AWS CodeDeploy deployment ID, that a
  1599. // job requires in order to continue the job asynchronously.
  1600. ContinuationToken *string `locationName:"continuationToken" type:"string"`
  1601. // Represents information about the AWS Key Management Service (AWS KMS) key
  1602. // used to encrypt data in the artifact store.
  1603. EncryptionKey *EncryptionKey `locationName:"encryptionKey" type:"structure"`
  1604. // The artifact supplied to the job.
  1605. InputArtifacts []*Artifact `locationName:"inputArtifacts" type:"list"`
  1606. // The output of the job.
  1607. OutputArtifacts []*Artifact `locationName:"outputArtifacts" type:"list"`
  1608. // Represents information about a pipeline to a job worker.
  1609. PipelineContext *PipelineContext `locationName:"pipelineContext" type:"structure"`
  1610. metadataJobData `json:"-" xml:"-"`
  1611. }
  1612. type metadataJobData struct {
  1613. SDKShapeTraits bool `type:"structure"`
  1614. }
  1615. // String returns the string representation
  1616. func (s JobData) String() string {
  1617. return awsutil.Prettify(s)
  1618. }
  1619. // GoString returns the string representation
  1620. func (s JobData) GoString() string {
  1621. return s.String()
  1622. }
  1623. // Represents information about the details of a job.
  1624. type JobDetails struct {
  1625. // The AWS account ID associated with the job.
  1626. AccountId *string `locationName:"accountId" type:"string"`
  1627. // Represents additional information about a job required for a job worker to
  1628. // complete the job.
  1629. Data *JobData `locationName:"data" type:"structure"`
  1630. // The unique system-generated ID of the job.
  1631. Id *string `locationName:"id" type:"string"`
  1632. metadataJobDetails `json:"-" xml:"-"`
  1633. }
  1634. type metadataJobDetails struct {
  1635. SDKShapeTraits bool `type:"structure"`
  1636. }
  1637. // String returns the string representation
  1638. func (s JobDetails) String() string {
  1639. return awsutil.Prettify(s)
  1640. }
  1641. // GoString returns the string representation
  1642. func (s JobDetails) GoString() string {
  1643. return s.String()
  1644. }
  1645. // Represents the input of a list action types action.
  1646. type ListActionTypesInput struct {
  1647. // Filters the list of action types to those created by a specified entity.
  1648. ActionOwnerFilter *string `locationName:"actionOwnerFilter" type:"string" enum:"ActionOwner"`
  1649. // An identifier that was returned from the previous list action types call,
  1650. // which can be used to return the next set of action types in the list.
  1651. NextToken *string `locationName:"nextToken" type:"string"`
  1652. metadataListActionTypesInput `json:"-" xml:"-"`
  1653. }
  1654. type metadataListActionTypesInput struct {
  1655. SDKShapeTraits bool `type:"structure"`
  1656. }
  1657. // String returns the string representation
  1658. func (s ListActionTypesInput) String() string {
  1659. return awsutil.Prettify(s)
  1660. }
  1661. // GoString returns the string representation
  1662. func (s ListActionTypesInput) GoString() string {
  1663. return s.String()
  1664. }
  1665. // Represents the output of a list action types action.
  1666. type ListActionTypesOutput struct {
  1667. // Provides details of the action types.
  1668. ActionTypes []*ActionType `locationName:"actionTypes" type:"list" required:"true"`
  1669. // If the amount of returned information is significantly large, an identifier
  1670. // is also returned which can be used in a subsequent list action types call
  1671. // to return the next set of action types in the list.
  1672. NextToken *string `locationName:"nextToken" type:"string"`
  1673. metadataListActionTypesOutput `json:"-" xml:"-"`
  1674. }
  1675. type metadataListActionTypesOutput struct {
  1676. SDKShapeTraits bool `type:"structure"`
  1677. }
  1678. // String returns the string representation
  1679. func (s ListActionTypesOutput) String() string {
  1680. return awsutil.Prettify(s)
  1681. }
  1682. // GoString returns the string representation
  1683. func (s ListActionTypesOutput) GoString() string {
  1684. return s.String()
  1685. }
  1686. // Represents the input of a list pipelines action.
  1687. type ListPipelinesInput struct {
  1688. // An identifier that was returned from the previous list pipelines call, which
  1689. // can be used to return the next set of pipelines in the list.
  1690. NextToken *string `locationName:"nextToken" type:"string"`
  1691. metadataListPipelinesInput `json:"-" xml:"-"`
  1692. }
  1693. type metadataListPipelinesInput struct {
  1694. SDKShapeTraits bool `type:"structure"`
  1695. }
  1696. // String returns the string representation
  1697. func (s ListPipelinesInput) String() string {
  1698. return awsutil.Prettify(s)
  1699. }
  1700. // GoString returns the string representation
  1701. func (s ListPipelinesInput) GoString() string {
  1702. return s.String()
  1703. }
  1704. // Represents the output of a list pipelines action.
  1705. type ListPipelinesOutput struct {
  1706. // If the amount of returned information is significantly large, an identifier
  1707. // is also returned which can be used in a subsequent list pipelines call to
  1708. // return the next set of pipelines in the list.
  1709. NextToken *string `locationName:"nextToken" type:"string"`
  1710. // The list of pipelines.
  1711. Pipelines []*PipelineSummary `locationName:"pipelines" type:"list"`
  1712. metadataListPipelinesOutput `json:"-" xml:"-"`
  1713. }
  1714. type metadataListPipelinesOutput struct {
  1715. SDKShapeTraits bool `type:"structure"`
  1716. }
  1717. // String returns the string representation
  1718. func (s ListPipelinesOutput) String() string {
  1719. return awsutil.Prettify(s)
  1720. }
  1721. // GoString returns the string representation
  1722. func (s ListPipelinesOutput) GoString() string {
  1723. return s.String()
  1724. }
  1725. // Represents information about the output of an action.
  1726. type OutputArtifact struct {
  1727. // The name of the output of an artifact, such as "My App".
  1728. //
  1729. // The input artifact of an action must exactly match the output artifact declared
  1730. // in a preceding action, but the input artifact does not have to be the next
  1731. // action in strict sequence from the action that provided the output artifact.
  1732. // Actions in parallel can declare different output artifacts, which are in
  1733. // turn consumed by different following actions.
  1734. //
  1735. // Output artifact names must be unique within a pipeline.
  1736. Name *string `locationName:"name" type:"string" required:"true"`
  1737. metadataOutputArtifact `json:"-" xml:"-"`
  1738. }
  1739. type metadataOutputArtifact struct {
  1740. SDKShapeTraits bool `type:"structure"`
  1741. }
  1742. // String returns the string representation
  1743. func (s OutputArtifact) String() string {
  1744. return awsutil.Prettify(s)
  1745. }
  1746. // GoString returns the string representation
  1747. func (s OutputArtifact) GoString() string {
  1748. return s.String()
  1749. }
  1750. // Represents information about a pipeline to a job worker.
  1751. type PipelineContext struct {
  1752. // Represents the context of an action within the stage of a pipeline to a job
  1753. // worker.
  1754. Action *ActionContext `locationName:"action" type:"structure"`
  1755. // The name of the pipeline. This is a user-specified value. Pipeline names
  1756. // must be unique across all pipeline names under an Amazon Web Services account.
  1757. PipelineName *string `locationName:"pipelineName" type:"string"`
  1758. // The stage of the pipeline.
  1759. Stage *StageContext `locationName:"stage" type:"structure"`
  1760. metadataPipelineContext `json:"-" xml:"-"`
  1761. }
  1762. type metadataPipelineContext struct {
  1763. SDKShapeTraits bool `type:"structure"`
  1764. }
  1765. // String returns the string representation
  1766. func (s PipelineContext) String() string {
  1767. return awsutil.Prettify(s)
  1768. }
  1769. // GoString returns the string representation
  1770. func (s PipelineContext) GoString() string {
  1771. return s.String()
  1772. }
  1773. // Represents the structure of actions and stages to be performed in the pipeline.
  1774. type PipelineDeclaration struct {
  1775. // The Amazon S3 location where artifacts are stored for the pipeline. If this
  1776. // Amazon S3 bucket is created manually, it must meet the requirements for AWS
  1777. // CodePipeline. For more information, see the Concepts.
  1778. ArtifactStore *ArtifactStore `locationName:"artifactStore" type:"structure" required:"true"`
  1779. // The name of the action to be performed.
  1780. Name *string `locationName:"name" type:"string" required:"true"`
  1781. // The Amazon Resource Name (ARN) for AWS CodePipeline to use to either perform
  1782. // actions with no actionRoleArn, or to use to assume roles for actions with
  1783. // an actionRoleArn.
  1784. RoleArn *string `locationName:"roleArn" type:"string" required:"true"`
  1785. // The stage in which to perform the action.
  1786. Stages []*StageDeclaration `locationName:"stages" type:"list" required:"true"`
  1787. // The version number of the pipeline. A new pipeline always has a version number
  1788. // of 1. This number is automatically incremented when a pipeline is updated.
  1789. Version *int64 `locationName:"version" type:"integer"`
  1790. metadataPipelineDeclaration `json:"-" xml:"-"`
  1791. }
  1792. type metadataPipelineDeclaration struct {
  1793. SDKShapeTraits bool `type:"structure"`
  1794. }
  1795. // String returns the string representation
  1796. func (s PipelineDeclaration) String() string {
  1797. return awsutil.Prettify(s)
  1798. }
  1799. // GoString returns the string representation
  1800. func (s PipelineDeclaration) GoString() string {
  1801. return s.String()
  1802. }
  1803. // Returns a summary of a pipeline.
  1804. type PipelineSummary struct {
  1805. // The date and time the pipeline was created, in timestamp format.
  1806. Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`
  1807. // The name of the pipeline.
  1808. Name *string `locationName:"name" type:"string"`
  1809. // The date and time of the last update to the pipeline, in timestamp format.
  1810. Updated *time.Time `locationName:"updated" type:"timestamp" timestampFormat:"unix"`
  1811. // The version number of the pipeline.
  1812. Version *int64 `locationName:"version" type:"integer"`
  1813. metadataPipelineSummary `json:"-" xml:"-"`
  1814. }
  1815. type metadataPipelineSummary struct {
  1816. SDKShapeTraits bool `type:"structure"`
  1817. }
  1818. // String returns the string representation
  1819. func (s PipelineSummary) String() string {
  1820. return awsutil.Prettify(s)
  1821. }
  1822. // GoString returns the string representation
  1823. func (s PipelineSummary) GoString() string {
  1824. return s.String()
  1825. }
  1826. // Represents the input of a poll for jobs action.
  1827. type PollForJobsInput struct {
  1828. // Represents information about an action type.
  1829. ActionTypeId *ActionTypeId `locationName:"actionTypeId" type:"structure" required:"true"`
  1830. // The maximum number of jobs to return in a poll for jobs call.
  1831. MaxBatchSize *int64 `locationName:"maxBatchSize" type:"integer"`
  1832. // A map of property names and values. For an action type with no queryable
  1833. // properties, this value must be null or an empty map. For an action type with
  1834. // a queryable property, you must supply that property as a key in the map.
  1835. // Only jobs whose action configuration matches the mapped value will be returned.
  1836. QueryParam map[string]*string `locationName:"queryParam" type:"map"`
  1837. metadataPollForJobsInput `json:"-" xml:"-"`
  1838. }
  1839. type metadataPollForJobsInput struct {
  1840. SDKShapeTraits bool `type:"structure"`
  1841. }
  1842. // String returns the string representation
  1843. func (s PollForJobsInput) String() string {
  1844. return awsutil.Prettify(s)
  1845. }
  1846. // GoString returns the string representation
  1847. func (s PollForJobsInput) GoString() string {
  1848. return s.String()
  1849. }
  1850. // Represents the output of a poll for jobs action.
  1851. type PollForJobsOutput struct {
  1852. // Information about the jobs to take action on.
  1853. Jobs []*Job `locationName:"jobs" type:"list"`
  1854. metadataPollForJobsOutput `json:"-" xml:"-"`
  1855. }
  1856. type metadataPollForJobsOutput struct {
  1857. SDKShapeTraits bool `type:"structure"`
  1858. }
  1859. // String returns the string representation
  1860. func (s PollForJobsOutput) String() string {
  1861. return awsutil.Prettify(s)
  1862. }
  1863. // GoString returns the string representation
  1864. func (s PollForJobsOutput) GoString() string {
  1865. return s.String()
  1866. }
  1867. // Represents the input of a poll for third party jobs action.
  1868. type PollForThirdPartyJobsInput struct {
  1869. // Represents information about an action type.
  1870. ActionTypeId *ActionTypeId `locationName:"actionTypeId" type:"structure" required:"true"`
  1871. // The maximum number of jobs to return in a poll for jobs call.
  1872. MaxBatchSize *int64 `locationName:"maxBatchSize" type:"integer"`
  1873. metadataPollForThirdPartyJobsInput `json:"-" xml:"-"`
  1874. }
  1875. type metadataPollForThirdPartyJobsInput struct {
  1876. SDKShapeTraits bool `type:"structure"`
  1877. }
  1878. // String returns the string representation
  1879. func (s PollForThirdPartyJobsInput) String() string {
  1880. return awsutil.Prettify(s)
  1881. }
  1882. // GoString returns the string representation
  1883. func (s PollForThirdPartyJobsInput) GoString() string {
  1884. return s.String()
  1885. }
  1886. // Represents the output of a poll for third party jobs action.
  1887. type PollForThirdPartyJobsOutput struct {
  1888. // Information about the jobs to take action on.
  1889. Jobs []*ThirdPartyJob `locationName:"jobs" type:"list"`
  1890. metadataPollForThirdPartyJobsOutput `json:"-" xml:"-"`
  1891. }
  1892. type metadataPollForThirdPartyJobsOutput struct {
  1893. SDKShapeTraits bool `type:"structure"`
  1894. }
  1895. // String returns the string representation
  1896. func (s PollForThirdPartyJobsOutput) String() string {
  1897. return awsutil.Prettify(s)
  1898. }
  1899. // GoString returns the string representation
  1900. func (s PollForThirdPartyJobsOutput) GoString() string {
  1901. return s.String()
  1902. }
  1903. // Represents the input of a put action revision action.
  1904. type PutActionRevisionInput struct {
  1905. // The name of the action that will process the revision.
  1906. ActionName *string `locationName:"actionName" type:"string" required:"true"`
  1907. // Represents information about the version (or revision) of an action.
  1908. ActionRevision *ActionRevision `locationName:"actionRevision" type:"structure" required:"true"`
  1909. // The name of the pipeline that will start processing the revision to the source.
  1910. PipelineName *string `locationName:"pipelineName" type:"string" required:"true"`
  1911. // The name of the stage that contains the action that will act upon the revision.
  1912. StageName *string `locationName:"stageName" type:"string" required:"true"`
  1913. metadataPutActionRevisionInput `json:"-" xml:"-"`
  1914. }
  1915. type metadataPutActionRevisionInput struct {
  1916. SDKShapeTraits bool `type:"structure"`
  1917. }
  1918. // String returns the string representation
  1919. func (s PutActionRevisionInput) String() string {
  1920. return awsutil.Prettify(s)
  1921. }
  1922. // GoString returns the string representation
  1923. func (s PutActionRevisionInput) GoString() string {
  1924. return s.String()
  1925. }
  1926. // Represents the output of a put action revision action.
  1927. type PutActionRevisionOutput struct {
  1928. // The new revision number or ID for the revision after the action completes.
  1929. NewRevision *bool `locationName:"newRevision" type:"boolean"`
  1930. // The ID of the current workflow state of the pipeline.
  1931. PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string"`
  1932. metadataPutActionRevisionOutput `json:"-" xml:"-"`
  1933. }
  1934. type metadataPutActionRevisionOutput struct {
  1935. SDKShapeTraits bool `type:"structure"`
  1936. }
  1937. // String returns the string representation
  1938. func (s PutActionRevisionOutput) String() string {
  1939. return awsutil.Prettify(s)
  1940. }
  1941. // GoString returns the string representation
  1942. func (s PutActionRevisionOutput) GoString() string {
  1943. return s.String()
  1944. }
  1945. // Represents the input of a put job failure result action.
  1946. type PutJobFailureResultInput struct {
  1947. // The details about the failure of a job.
  1948. FailureDetails *FailureDetails `locationName:"failureDetails" type:"structure" required:"true"`
  1949. // The unique system-generated ID of the job that failed. This is the same ID
  1950. // returned from PollForJobs.
  1951. JobId *string `locationName:"jobId" type:"string" required:"true"`
  1952. metadataPutJobFailureResultInput `json:"-" xml:"-"`
  1953. }
  1954. type metadataPutJobFailureResultInput struct {
  1955. SDKShapeTraits bool `type:"structure"`
  1956. }
  1957. // String returns the string representation
  1958. func (s PutJobFailureResultInput) String() string {
  1959. return awsutil.Prettify(s)
  1960. }
  1961. // GoString returns the string representation
  1962. func (s PutJobFailureResultInput) GoString() string {
  1963. return s.String()
  1964. }
  1965. type PutJobFailureResultOutput struct {
  1966. metadataPutJobFailureResultOutput `json:"-" xml:"-"`
  1967. }
  1968. type metadataPutJobFailureResultOutput struct {
  1969. SDKShapeTraits bool `type:"structure"`
  1970. }
  1971. // String returns the string representation
  1972. func (s PutJobFailureResultOutput) String() string {
  1973. return awsutil.Prettify(s)
  1974. }
  1975. // GoString returns the string representation
  1976. func (s PutJobFailureResultOutput) GoString() string {
  1977. return s.String()
  1978. }
  1979. // Represents the input of a put job success result action.
  1980. type PutJobSuccessResultInput struct {
  1981. // A system-generated token, such as a AWS CodeDeploy deployment ID, that the
  1982. // successful job used to complete a job asynchronously.
  1983. ContinuationToken *string `locationName:"continuationToken" type:"string"`
  1984. // The ID of the current revision of the artifact successfully worked upon by
  1985. // the job.
  1986. CurrentRevision *CurrentRevision `locationName:"currentRevision" type:"structure"`
  1987. // The execution details of the successful job, such as the actions taken by
  1988. // the job worker.
  1989. ExecutionDetails *ExecutionDetails `locationName:"executionDetails" type:"structure"`
  1990. // The unique system-generated ID of the job that succeeded. This is the same
  1991. // ID returned from PollForJobs.
  1992. JobId *string `locationName:"jobId" type:"string" required:"true"`
  1993. metadataPutJobSuccessResultInput `json:"-" xml:"-"`
  1994. }
  1995. type metadataPutJobSuccessResultInput struct {
  1996. SDKShapeTraits bool `type:"structure"`
  1997. }
  1998. // String returns the string representation
  1999. func (s PutJobSuccessResultInput) String() string {
  2000. return awsutil.Prettify(s)
  2001. }
  2002. // GoString returns the string representation
  2003. func (s PutJobSuccessResultInput) GoString() string {
  2004. return s.String()
  2005. }
  2006. type PutJobSuccessResultOutput struct {
  2007. metadataPutJobSuccessResultOutput `json:"-" xml:"-"`
  2008. }
  2009. type metadataPutJobSuccessResultOutput struct {
  2010. SDKShapeTraits bool `type:"structure"`
  2011. }
  2012. // String returns the string representation
  2013. func (s PutJobSuccessResultOutput) String() string {
  2014. return awsutil.Prettify(s)
  2015. }
  2016. // GoString returns the string representation
  2017. func (s PutJobSuccessResultOutput) GoString() string {
  2018. return s.String()
  2019. }
  2020. // Represents the input of a third party job failure result action.
  2021. type PutThirdPartyJobFailureResultInput struct {
  2022. // The clientToken portion of the clientId and clientToken pair used to verify
  2023. // that the calling entity is allowed access to the job and its details.
  2024. ClientToken *string `locationName:"clientToken" type:"string" required:"true"`
  2025. // Represents information about failure details.
  2026. FailureDetails *FailureDetails `locationName:"failureDetails" type:"structure" required:"true"`
  2027. // The ID of the job that failed. This is the same ID returned from PollForThirdPartyJobs.
  2028. JobId *string `locationName:"jobId" type:"string" required:"true"`
  2029. metadataPutThirdPartyJobFailureResultInput `json:"-" xml:"-"`
  2030. }
  2031. type metadataPutThirdPartyJobFailureResultInput struct {
  2032. SDKShapeTraits bool `type:"structure"`
  2033. }
  2034. // String returns the string representation
  2035. func (s PutThirdPartyJobFailureResultInput) String() string {
  2036. return awsutil.Prettify(s)
  2037. }
  2038. // GoString returns the string representation
  2039. func (s PutThirdPartyJobFailureResultInput) GoString() string {
  2040. return s.String()
  2041. }
  2042. type PutThirdPartyJobFailureResultOutput struct {
  2043. metadataPutThirdPartyJobFailureResultOutput `json:"-" xml:"-"`
  2044. }
  2045. type metadataPutThirdPartyJobFailureResultOutput struct {
  2046. SDKShapeTraits bool `type:"structure"`
  2047. }
  2048. // String returns the string representation
  2049. func (s PutThirdPartyJobFailureResultOutput) String() string {
  2050. return awsutil.Prettify(s)
  2051. }
  2052. // GoString returns the string representation
  2053. func (s PutThirdPartyJobFailureResultOutput) GoString() string {
  2054. return s.String()
  2055. }
  2056. // Represents the input of a put third party job success result action.
  2057. type PutThirdPartyJobSuccessResultInput struct {
  2058. // The clientToken portion of the clientId and clientToken pair used to verify
  2059. // that the calling entity is allowed access to the job and its details.
  2060. ClientToken *string `locationName:"clientToken" type:"string" required:"true"`
  2061. // A system-generated token, such as a AWS CodeDeploy deployment ID, that a
  2062. // job uses in order to continue the job asynchronously.
  2063. ContinuationToken *string `locationName:"continuationToken" type:"string"`
  2064. // Represents information about a current revision.
  2065. CurrentRevision *CurrentRevision `locationName:"currentRevision" type:"structure"`
  2066. // The details of the actions taken and results produced on an artifact as it
  2067. // passes through stages in the pipeline.
  2068. ExecutionDetails *ExecutionDetails `locationName:"executionDetails" type:"structure"`
  2069. // The ID of the job that successfully completed. This is the same ID returned
  2070. // from PollForThirdPartyJobs.
  2071. JobId *string `locationName:"jobId" type:"string" required:"true"`
  2072. metadataPutThirdPartyJobSuccessResultInput `json:"-" xml:"-"`
  2073. }
  2074. type metadataPutThirdPartyJobSuccessResultInput struct {
  2075. SDKShapeTraits bool `type:"structure"`
  2076. }
  2077. // String returns the string representation
  2078. func (s PutThirdPartyJobSuccessResultInput) String() string {
  2079. return awsutil.Prettify(s)
  2080. }
  2081. // GoString returns the string representation
  2082. func (s PutThirdPartyJobSuccessResultInput) GoString() string {
  2083. return s.String()
  2084. }
  2085. type PutThirdPartyJobSuccessResultOutput struct {
  2086. metadataPutThirdPartyJobSuccessResultOutput `json:"-" xml:"-"`
  2087. }
  2088. type metadataPutThirdPartyJobSuccessResultOutput struct {
  2089. SDKShapeTraits bool `type:"structure"`
  2090. }
  2091. // String returns the string representation
  2092. func (s PutThirdPartyJobSuccessResultOutput) String() string {
  2093. return awsutil.Prettify(s)
  2094. }
  2095. // GoString returns the string representation
  2096. func (s PutThirdPartyJobSuccessResultOutput) GoString() string {
  2097. return s.String()
  2098. }
  2099. // The location of the Amazon S3 bucket that contains a revision.
  2100. type S3ArtifactLocation struct {
  2101. // The name of the Amazon S3 bucket.
  2102. BucketName *string `locationName:"bucketName" type:"string" required:"true"`
  2103. // The key of the object in the Amazon S3 bucket, which uniquely identifies
  2104. // the object in the bucket.
  2105. ObjectKey *string `locationName:"objectKey" type:"string" required:"true"`
  2106. metadataS3ArtifactLocation `json:"-" xml:"-"`
  2107. }
  2108. type metadataS3ArtifactLocation struct {
  2109. SDKShapeTraits bool `type:"structure"`
  2110. }
  2111. // String returns the string representation
  2112. func (s S3ArtifactLocation) String() string {
  2113. return awsutil.Prettify(s)
  2114. }
  2115. // GoString returns the string representation
  2116. func (s S3ArtifactLocation) GoString() string {
  2117. return s.String()
  2118. }
  2119. // Represents information about a stage to a job worker.
  2120. type StageContext struct {
  2121. // The name of the stage.
  2122. Name *string `locationName:"name" type:"string"`
  2123. metadataStageContext `json:"-" xml:"-"`
  2124. }
  2125. type metadataStageContext struct {
  2126. SDKShapeTraits bool `type:"structure"`
  2127. }
  2128. // String returns the string representation
  2129. func (s StageContext) String() string {
  2130. return awsutil.Prettify(s)
  2131. }
  2132. // GoString returns the string representation
  2133. func (s StageContext) GoString() string {
  2134. return s.String()
  2135. }
  2136. // Represents information about a stage and its definition.
  2137. type StageDeclaration struct {
  2138. // The actions included in a stage.
  2139. Actions []*ActionDeclaration `locationName:"actions" type:"list" required:"true"`
  2140. // The gates included in a stage.
  2141. Blockers []*BlockerDeclaration `locationName:"blockers" type:"list"`
  2142. // The name of the stage.
  2143. Name *string `locationName:"name" type:"string" required:"true"`
  2144. metadataStageDeclaration `json:"-" xml:"-"`
  2145. }
  2146. type metadataStageDeclaration struct {
  2147. SDKShapeTraits bool `type:"structure"`
  2148. }
  2149. // String returns the string representation
  2150. func (s StageDeclaration) String() string {
  2151. return awsutil.Prettify(s)
  2152. }
  2153. // GoString returns the string representation
  2154. func (s StageDeclaration) GoString() string {
  2155. return s.String()
  2156. }
  2157. // Represents information about the state of the stage.
  2158. type StageState struct {
  2159. // The state of the stage.
  2160. ActionStates []*ActionState `locationName:"actionStates" type:"list"`
  2161. // The state of the inbound transition, which is either enabled or disabled.
  2162. InboundTransitionState *TransitionState `locationName:"inboundTransitionState" type:"structure"`
  2163. // The name of the stage.
  2164. StageName *string `locationName:"stageName" type:"string"`
  2165. metadataStageState `json:"-" xml:"-"`
  2166. }
  2167. type metadataStageState struct {
  2168. SDKShapeTraits bool `type:"structure"`
  2169. }
  2170. // String returns the string representation
  2171. func (s StageState) String() string {
  2172. return awsutil.Prettify(s)
  2173. }
  2174. // GoString returns the string representation
  2175. func (s StageState) GoString() string {
  2176. return s.String()
  2177. }
  2178. // Represents the input of a start pipeline execution action.
  2179. type StartPipelineExecutionInput struct {
  2180. // The name of the pipeline to start.
  2181. Name *string `locationName:"name" type:"string" required:"true"`
  2182. metadataStartPipelineExecutionInput `json:"-" xml:"-"`
  2183. }
  2184. type metadataStartPipelineExecutionInput struct {
  2185. SDKShapeTraits bool `type:"structure"`
  2186. }
  2187. // String returns the string representation
  2188. func (s StartPipelineExecutionInput) String() string {
  2189. return awsutil.Prettify(s)
  2190. }
  2191. // GoString returns the string representation
  2192. func (s StartPipelineExecutionInput) GoString() string {
  2193. return s.String()
  2194. }
  2195. // Represents the output of a start pipeline execution action.
  2196. type StartPipelineExecutionOutput struct {
  2197. // The unique system-generated ID of the pipeline that was started.
  2198. PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string"`
  2199. metadataStartPipelineExecutionOutput `json:"-" xml:"-"`
  2200. }
  2201. type metadataStartPipelineExecutionOutput struct {
  2202. SDKShapeTraits bool `type:"structure"`
  2203. }
  2204. // String returns the string representation
  2205. func (s StartPipelineExecutionOutput) String() string {
  2206. return awsutil.Prettify(s)
  2207. }
  2208. // GoString returns the string representation
  2209. func (s StartPipelineExecutionOutput) GoString() string {
  2210. return s.String()
  2211. }
  2212. // A response to a PollForThirdPartyJobs request returned by AWS CodePipeline
  2213. // when there is a job to be worked upon by a partner action.
  2214. type ThirdPartyJob struct {
  2215. // The clientToken portion of the clientId and clientToken pair used to verify
  2216. // that the calling entity is allowed access to the job and its details.
  2217. ClientId *string `locationName:"clientId" type:"string"`
  2218. // The identifier used to identify the job in AWS CodePipeline.
  2219. JobId *string `locationName:"jobId" type:"string"`
  2220. metadataThirdPartyJob `json:"-" xml:"-"`
  2221. }
  2222. type metadataThirdPartyJob struct {
  2223. SDKShapeTraits bool `type:"structure"`
  2224. }
  2225. // String returns the string representation
  2226. func (s ThirdPartyJob) String() string {
  2227. return awsutil.Prettify(s)
  2228. }
  2229. // GoString returns the string representation
  2230. func (s ThirdPartyJob) GoString() string {
  2231. return s.String()
  2232. }
  2233. // Represents information about the job data for a partner action.
  2234. type ThirdPartyJobData struct {
  2235. // Represents information about an action configuration.
  2236. ActionConfiguration *ActionConfiguration `locationName:"actionConfiguration" type:"structure"`
  2237. // Represents information about an action type.
  2238. ActionTypeId *ActionTypeId `locationName:"actionTypeId" type:"structure"`
  2239. // Represents an AWS session credentials object. These credentials are temporary
  2240. // credentials that are issued by AWS Secure Token Service (STS). They can be
  2241. // used to access input and output artifacts in the Amazon S3 bucket used to
  2242. // store artifact for the pipeline in AWS CodePipeline.
  2243. ArtifactCredentials *AWSSessionCredentials `locationName:"artifactCredentials" type:"structure"`
  2244. // A system-generated token, such as a AWS CodeDeploy deployment ID, that a
  2245. // job requires in order to continue the job asynchronously.
  2246. ContinuationToken *string `locationName:"continuationToken" type:"string"`
  2247. // The AWS Key Management Service (AWS KMS) key used to encrypt and decrypt
  2248. // data in the artifact store for the pipeline.
  2249. EncryptionKey *EncryptionKey `locationName:"encryptionKey" type:"structure"`
  2250. // The name of the artifact that will be worked upon by the action, if any.
  2251. // This name might be system-generated, such as "MyApp", or might be defined
  2252. // by the user when the action is created. The input artifact name must match
  2253. // the name of an output artifact generated by an action in an earlier action
  2254. // or stage of the pipeline.
  2255. InputArtifacts []*Artifact `locationName:"inputArtifacts" type:"list"`
  2256. // The name of the artifact that will be the result of the action, if any. This
  2257. // name might be system-generated, such as "MyBuiltApp", or might be defined
  2258. // by the user when the action is created.
  2259. OutputArtifacts []*Artifact `locationName:"outputArtifacts" type:"list"`
  2260. // Represents information about a pipeline to a job worker.
  2261. PipelineContext *PipelineContext `locationName:"pipelineContext" type:"structure"`
  2262. metadataThirdPartyJobData `json:"-" xml:"-"`
  2263. }
  2264. type metadataThirdPartyJobData struct {
  2265. SDKShapeTraits bool `type:"structure"`
  2266. }
  2267. // String returns the string representation
  2268. func (s ThirdPartyJobData) String() string {
  2269. return awsutil.Prettify(s)
  2270. }
  2271. // GoString returns the string representation
  2272. func (s ThirdPartyJobData) GoString() string {
  2273. return s.String()
  2274. }
  2275. // The details of a job sent in response to a GetThirdPartyJobDetails request.
  2276. type ThirdPartyJobDetails struct {
  2277. // The data to be returned by the third party job worker.
  2278. Data *ThirdPartyJobData `locationName:"data" type:"structure"`
  2279. // The identifier used to identify the job details in AWS CodePipeline.
  2280. Id *string `locationName:"id" type:"string"`
  2281. // A system-generated random number that AWS CodePipeline uses to ensure that
  2282. // the job is being worked on by only one job worker. This number must be returned
  2283. // in the response.
  2284. Nonce *string `locationName:"nonce" type:"string"`
  2285. metadataThirdPartyJobDetails `json:"-" xml:"-"`
  2286. }
  2287. type metadataThirdPartyJobDetails struct {
  2288. SDKShapeTraits bool `type:"structure"`
  2289. }
  2290. // String returns the string representation
  2291. func (s ThirdPartyJobDetails) String() string {
  2292. return awsutil.Prettify(s)
  2293. }
  2294. // GoString returns the string representation
  2295. func (s ThirdPartyJobDetails) GoString() string {
  2296. return s.String()
  2297. }
  2298. // Represents information about the state of transitions between one stage and
  2299. // another stage.
  2300. type TransitionState struct {
  2301. // The user-specified reason why the transition between two stages of a pipeline
  2302. // was disabled.
  2303. DisabledReason *string `locationName:"disabledReason" type:"string"`
  2304. // Whether the transition between stages is enabled (true) or disabled (false).
  2305. Enabled *bool `locationName:"enabled" type:"boolean"`
  2306. // The timestamp when the transition state was last changed.
  2307. LastChangedAt *time.Time `locationName:"lastChangedAt" type:"timestamp" timestampFormat:"unix"`
  2308. // The ID of the user who last changed the transition state.
  2309. LastChangedBy *string `locationName:"lastChangedBy" type:"string"`
  2310. metadataTransitionState `json:"-" xml:"-"`
  2311. }
  2312. type metadataTransitionState struct {
  2313. SDKShapeTraits bool `type:"structure"`
  2314. }
  2315. // String returns the string representation
  2316. func (s TransitionState) String() string {
  2317. return awsutil.Prettify(s)
  2318. }
  2319. // GoString returns the string representation
  2320. func (s TransitionState) GoString() string {
  2321. return s.String()
  2322. }
  2323. // Represents the input of an update pipeline action.
  2324. type UpdatePipelineInput struct {
  2325. // The name of the pipeline to be updated.
  2326. Pipeline *PipelineDeclaration `locationName:"pipeline" type:"structure" required:"true"`
  2327. metadataUpdatePipelineInput `json:"-" xml:"-"`
  2328. }
  2329. type metadataUpdatePipelineInput struct {
  2330. SDKShapeTraits bool `type:"structure"`
  2331. }
  2332. // String returns the string representation
  2333. func (s UpdatePipelineInput) String() string {
  2334. return awsutil.Prettify(s)
  2335. }
  2336. // GoString returns the string representation
  2337. func (s UpdatePipelineInput) GoString() string {
  2338. return s.String()
  2339. }
  2340. // Represents the output of an update pipeline action.
  2341. type UpdatePipelineOutput struct {
  2342. // The structure of the updated pipeline.
  2343. Pipeline *PipelineDeclaration `locationName:"pipeline" type:"structure"`
  2344. metadataUpdatePipelineOutput `json:"-" xml:"-"`
  2345. }
  2346. type metadataUpdatePipelineOutput struct {
  2347. SDKShapeTraits bool `type:"structure"`
  2348. }
  2349. // String returns the string representation
  2350. func (s UpdatePipelineOutput) String() string {
  2351. return awsutil.Prettify(s)
  2352. }
  2353. // GoString returns the string representation
  2354. func (s UpdatePipelineOutput) GoString() string {
  2355. return s.String()
  2356. }
  2357. const (
  2358. // @enum ActionCategory
  2359. ActionCategorySource = "Source"
  2360. // @enum ActionCategory
  2361. ActionCategoryBuild = "Build"
  2362. // @enum ActionCategory
  2363. ActionCategoryDeploy = "Deploy"
  2364. // @enum ActionCategory
  2365. ActionCategoryTest = "Test"
  2366. // @enum ActionCategory
  2367. ActionCategoryInvoke = "Invoke"
  2368. )
  2369. const (
  2370. // @enum ActionConfigurationPropertyType
  2371. ActionConfigurationPropertyTypeString = "String"
  2372. // @enum ActionConfigurationPropertyType
  2373. ActionConfigurationPropertyTypeNumber = "Number"
  2374. // @enum ActionConfigurationPropertyType
  2375. ActionConfigurationPropertyTypeBoolean = "Boolean"
  2376. )
  2377. const (
  2378. // @enum ActionExecutionStatus
  2379. ActionExecutionStatusInProgress = "InProgress"
  2380. // @enum ActionExecutionStatus
  2381. ActionExecutionStatusSucceeded = "Succeeded"
  2382. // @enum ActionExecutionStatus
  2383. ActionExecutionStatusFailed = "Failed"
  2384. )
  2385. const (
  2386. // @enum ActionOwner
  2387. ActionOwnerAws = "AWS"
  2388. // @enum ActionOwner
  2389. ActionOwnerThirdParty = "ThirdParty"
  2390. // @enum ActionOwner
  2391. ActionOwnerCustom = "Custom"
  2392. )
  2393. const (
  2394. // @enum ArtifactLocationType
  2395. ArtifactLocationTypeS3 = "S3"
  2396. )
  2397. const (
  2398. // @enum ArtifactStoreType
  2399. ArtifactStoreTypeS3 = "S3"
  2400. )
  2401. const (
  2402. // @enum BlockerType
  2403. BlockerTypeSchedule = "Schedule"
  2404. )
  2405. const (
  2406. // @enum EncryptionKeyType
  2407. EncryptionKeyTypeKms = "KMS"
  2408. )
  2409. const (
  2410. // @enum FailureType
  2411. FailureTypeJobFailed = "JobFailed"
  2412. // @enum FailureType
  2413. FailureTypeConfigurationError = "ConfigurationError"
  2414. // @enum FailureType
  2415. FailureTypePermissionError = "PermissionError"
  2416. // @enum FailureType
  2417. FailureTypeRevisionOutOfSync = "RevisionOutOfSync"
  2418. // @enum FailureType
  2419. FailureTypeRevisionUnavailable = "RevisionUnavailable"
  2420. // @enum FailureType
  2421. FailureTypeSystemUnavailable = "SystemUnavailable"
  2422. )
  2423. const (
  2424. // @enum JobStatus
  2425. JobStatusCreated = "Created"
  2426. // @enum JobStatus
  2427. JobStatusQueued = "Queued"
  2428. // @enum JobStatus
  2429. JobStatusDispatched = "Dispatched"
  2430. // @enum JobStatus
  2431. JobStatusInProgress = "InProgress"
  2432. // @enum JobStatus
  2433. JobStatusTimedOut = "TimedOut"
  2434. // @enum JobStatus
  2435. JobStatusSucceeded = "Succeeded"
  2436. // @enum JobStatus
  2437. JobStatusFailed = "Failed"
  2438. )
  2439. const (
  2440. // @enum StageTransitionType
  2441. StageTransitionTypeInbound = "Inbound"
  2442. // @enum StageTransitionType
  2443. StageTransitionTypeOutbound = "Outbound"
  2444. )