api.go 66 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985
  1. // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
  2. package mobile
  3. import (
  4. "time"
  5. "github.com/aws/aws-sdk-go/aws"
  6. "github.com/aws/aws-sdk-go/aws/awsutil"
  7. "github.com/aws/aws-sdk-go/aws/request"
  8. )
  9. const opCreateProject = "CreateProject"
  10. // CreateProjectRequest generates a "aws/request.Request" representing the
  11. // client's request for the CreateProject operation. The "output" return
  12. // value will be populated with the request's response once the request completes
  13. // successfully.
  14. //
  15. // Use "Send" method on the returned Request to send the API call to the service.
  16. // the "output" return value is not valid until after Send returns without error.
  17. //
  18. // See CreateProject for more information on using the CreateProject
  19. // API call, and error handling.
  20. //
  21. // This method is useful when you want to inject custom logic or configuration
  22. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  23. //
  24. //
  25. // // Example sending a request using the CreateProjectRequest method.
  26. // req, resp := client.CreateProjectRequest(params)
  27. //
  28. // err := req.Send()
  29. // if err == nil { // resp is now filled
  30. // fmt.Println(resp)
  31. // }
  32. //
  33. // See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/CreateProject
  34. func (c *Mobile) CreateProjectRequest(input *CreateProjectInput) (req *request.Request, output *CreateProjectOutput) {
  35. op := &request.Operation{
  36. Name: opCreateProject,
  37. HTTPMethod: "POST",
  38. HTTPPath: "/projects",
  39. }
  40. if input == nil {
  41. input = &CreateProjectInput{}
  42. }
  43. output = &CreateProjectOutput{}
  44. req = c.newRequest(op, input, output)
  45. return
  46. }
  47. // CreateProject API operation for AWS Mobile.
  48. //
  49. // Creates an AWS Mobile Hub project.
  50. //
  51. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  52. // with awserr.Error's Code and Message methods to get detailed information about
  53. // the error.
  54. //
  55. // See the AWS API reference guide for AWS Mobile's
  56. // API operation CreateProject for usage and error information.
  57. //
  58. // Returned Error Codes:
  59. // * ErrCodeInternalFailureException "InternalFailureException"
  60. // The service has encountered an unexpected error condition which prevents
  61. // it from servicing the request.
  62. //
  63. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  64. // The service is temporarily unavailable. The request should be retried after
  65. // some time delay.
  66. //
  67. // * ErrCodeUnauthorizedException "UnauthorizedException"
  68. // Credentials of the caller are insufficient to authorize the request.
  69. //
  70. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  71. // Too many requests have been received for this AWS account in too short a
  72. // time. The request should be retried after some time delay.
  73. //
  74. // * ErrCodeBadRequestException "BadRequestException"
  75. // The request cannot be processed because some parameter is not valid or the
  76. // project state prevents the operation from being performed.
  77. //
  78. // * ErrCodeNotFoundException "NotFoundException"
  79. // No entity can be found with the specified identifier.
  80. //
  81. // * ErrCodeLimitExceededException "LimitExceededException"
  82. // There are too many AWS Mobile Hub projects in the account or the account
  83. // has exceeded the maximum number of resources in some AWS service. You should
  84. // create another sub-account using AWS Organizations or remove some resources
  85. // and retry your request.
  86. //
  87. // See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/CreateProject
  88. func (c *Mobile) CreateProject(input *CreateProjectInput) (*CreateProjectOutput, error) {
  89. req, out := c.CreateProjectRequest(input)
  90. return out, req.Send()
  91. }
  92. // CreateProjectWithContext is the same as CreateProject with the addition of
  93. // the ability to pass a context and additional request options.
  94. //
  95. // See CreateProject for details on how to use this API operation.
  96. //
  97. // The context must be non-nil and will be used for request cancellation. If
  98. // the context is nil a panic will occur. In the future the SDK may create
  99. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  100. // for more information on using Contexts.
  101. func (c *Mobile) CreateProjectWithContext(ctx aws.Context, input *CreateProjectInput, opts ...request.Option) (*CreateProjectOutput, error) {
  102. req, out := c.CreateProjectRequest(input)
  103. req.SetContext(ctx)
  104. req.ApplyOptions(opts...)
  105. return out, req.Send()
  106. }
  107. const opDeleteProject = "DeleteProject"
  108. // DeleteProjectRequest generates a "aws/request.Request" representing the
  109. // client's request for the DeleteProject operation. The "output" return
  110. // value will be populated with the request's response once the request completes
  111. // successfully.
  112. //
  113. // Use "Send" method on the returned Request to send the API call to the service.
  114. // the "output" return value is not valid until after Send returns without error.
  115. //
  116. // See DeleteProject for more information on using the DeleteProject
  117. // API call, and error handling.
  118. //
  119. // This method is useful when you want to inject custom logic or configuration
  120. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  121. //
  122. //
  123. // // Example sending a request using the DeleteProjectRequest method.
  124. // req, resp := client.DeleteProjectRequest(params)
  125. //
  126. // err := req.Send()
  127. // if err == nil { // resp is now filled
  128. // fmt.Println(resp)
  129. // }
  130. //
  131. // See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/DeleteProject
  132. func (c *Mobile) DeleteProjectRequest(input *DeleteProjectInput) (req *request.Request, output *DeleteProjectOutput) {
  133. op := &request.Operation{
  134. Name: opDeleteProject,
  135. HTTPMethod: "DELETE",
  136. HTTPPath: "/projects/{projectId}",
  137. }
  138. if input == nil {
  139. input = &DeleteProjectInput{}
  140. }
  141. output = &DeleteProjectOutput{}
  142. req = c.newRequest(op, input, output)
  143. return
  144. }
  145. // DeleteProject API operation for AWS Mobile.
  146. //
  147. // Delets a project in AWS Mobile Hub.
  148. //
  149. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  150. // with awserr.Error's Code and Message methods to get detailed information about
  151. // the error.
  152. //
  153. // See the AWS API reference guide for AWS Mobile's
  154. // API operation DeleteProject for usage and error information.
  155. //
  156. // Returned Error Codes:
  157. // * ErrCodeInternalFailureException "InternalFailureException"
  158. // The service has encountered an unexpected error condition which prevents
  159. // it from servicing the request.
  160. //
  161. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  162. // The service is temporarily unavailable. The request should be retried after
  163. // some time delay.
  164. //
  165. // * ErrCodeUnauthorizedException "UnauthorizedException"
  166. // Credentials of the caller are insufficient to authorize the request.
  167. //
  168. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  169. // Too many requests have been received for this AWS account in too short a
  170. // time. The request should be retried after some time delay.
  171. //
  172. // * ErrCodeNotFoundException "NotFoundException"
  173. // No entity can be found with the specified identifier.
  174. //
  175. // See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/DeleteProject
  176. func (c *Mobile) DeleteProject(input *DeleteProjectInput) (*DeleteProjectOutput, error) {
  177. req, out := c.DeleteProjectRequest(input)
  178. return out, req.Send()
  179. }
  180. // DeleteProjectWithContext is the same as DeleteProject with the addition of
  181. // the ability to pass a context and additional request options.
  182. //
  183. // See DeleteProject for details on how to use this API operation.
  184. //
  185. // The context must be non-nil and will be used for request cancellation. If
  186. // the context is nil a panic will occur. In the future the SDK may create
  187. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  188. // for more information on using Contexts.
  189. func (c *Mobile) DeleteProjectWithContext(ctx aws.Context, input *DeleteProjectInput, opts ...request.Option) (*DeleteProjectOutput, error) {
  190. req, out := c.DeleteProjectRequest(input)
  191. req.SetContext(ctx)
  192. req.ApplyOptions(opts...)
  193. return out, req.Send()
  194. }
  195. const opDescribeBundle = "DescribeBundle"
  196. // DescribeBundleRequest generates a "aws/request.Request" representing the
  197. // client's request for the DescribeBundle operation. The "output" return
  198. // value will be populated with the request's response once the request completes
  199. // successfully.
  200. //
  201. // Use "Send" method on the returned Request to send the API call to the service.
  202. // the "output" return value is not valid until after Send returns without error.
  203. //
  204. // See DescribeBundle for more information on using the DescribeBundle
  205. // API call, and error handling.
  206. //
  207. // This method is useful when you want to inject custom logic or configuration
  208. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  209. //
  210. //
  211. // // Example sending a request using the DescribeBundleRequest method.
  212. // req, resp := client.DescribeBundleRequest(params)
  213. //
  214. // err := req.Send()
  215. // if err == nil { // resp is now filled
  216. // fmt.Println(resp)
  217. // }
  218. //
  219. // See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/DescribeBundle
  220. func (c *Mobile) DescribeBundleRequest(input *DescribeBundleInput) (req *request.Request, output *DescribeBundleOutput) {
  221. op := &request.Operation{
  222. Name: opDescribeBundle,
  223. HTTPMethod: "GET",
  224. HTTPPath: "/bundles/{bundleId}",
  225. }
  226. if input == nil {
  227. input = &DescribeBundleInput{}
  228. }
  229. output = &DescribeBundleOutput{}
  230. req = c.newRequest(op, input, output)
  231. return
  232. }
  233. // DescribeBundle API operation for AWS Mobile.
  234. //
  235. // Get the bundle details for the requested bundle id.
  236. //
  237. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  238. // with awserr.Error's Code and Message methods to get detailed information about
  239. // the error.
  240. //
  241. // See the AWS API reference guide for AWS Mobile's
  242. // API operation DescribeBundle for usage and error information.
  243. //
  244. // Returned Error Codes:
  245. // * ErrCodeInternalFailureException "InternalFailureException"
  246. // The service has encountered an unexpected error condition which prevents
  247. // it from servicing the request.
  248. //
  249. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  250. // The service is temporarily unavailable. The request should be retried after
  251. // some time delay.
  252. //
  253. // * ErrCodeUnauthorizedException "UnauthorizedException"
  254. // Credentials of the caller are insufficient to authorize the request.
  255. //
  256. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  257. // Too many requests have been received for this AWS account in too short a
  258. // time. The request should be retried after some time delay.
  259. //
  260. // * ErrCodeBadRequestException "BadRequestException"
  261. // The request cannot be processed because some parameter is not valid or the
  262. // project state prevents the operation from being performed.
  263. //
  264. // * ErrCodeNotFoundException "NotFoundException"
  265. // No entity can be found with the specified identifier.
  266. //
  267. // See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/DescribeBundle
  268. func (c *Mobile) DescribeBundle(input *DescribeBundleInput) (*DescribeBundleOutput, error) {
  269. req, out := c.DescribeBundleRequest(input)
  270. return out, req.Send()
  271. }
  272. // DescribeBundleWithContext is the same as DescribeBundle with the addition of
  273. // the ability to pass a context and additional request options.
  274. //
  275. // See DescribeBundle for details on how to use this API operation.
  276. //
  277. // The context must be non-nil and will be used for request cancellation. If
  278. // the context is nil a panic will occur. In the future the SDK may create
  279. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  280. // for more information on using Contexts.
  281. func (c *Mobile) DescribeBundleWithContext(ctx aws.Context, input *DescribeBundleInput, opts ...request.Option) (*DescribeBundleOutput, error) {
  282. req, out := c.DescribeBundleRequest(input)
  283. req.SetContext(ctx)
  284. req.ApplyOptions(opts...)
  285. return out, req.Send()
  286. }
  287. const opDescribeProject = "DescribeProject"
  288. // DescribeProjectRequest generates a "aws/request.Request" representing the
  289. // client's request for the DescribeProject operation. The "output" return
  290. // value will be populated with the request's response once the request completes
  291. // successfully.
  292. //
  293. // Use "Send" method on the returned Request to send the API call to the service.
  294. // the "output" return value is not valid until after Send returns without error.
  295. //
  296. // See DescribeProject for more information on using the DescribeProject
  297. // API call, and error handling.
  298. //
  299. // This method is useful when you want to inject custom logic or configuration
  300. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  301. //
  302. //
  303. // // Example sending a request using the DescribeProjectRequest method.
  304. // req, resp := client.DescribeProjectRequest(params)
  305. //
  306. // err := req.Send()
  307. // if err == nil { // resp is now filled
  308. // fmt.Println(resp)
  309. // }
  310. //
  311. // See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/DescribeProject
  312. func (c *Mobile) DescribeProjectRequest(input *DescribeProjectInput) (req *request.Request, output *DescribeProjectOutput) {
  313. op := &request.Operation{
  314. Name: opDescribeProject,
  315. HTTPMethod: "GET",
  316. HTTPPath: "/project",
  317. }
  318. if input == nil {
  319. input = &DescribeProjectInput{}
  320. }
  321. output = &DescribeProjectOutput{}
  322. req = c.newRequest(op, input, output)
  323. return
  324. }
  325. // DescribeProject API operation for AWS Mobile.
  326. //
  327. // Gets details about a project in AWS Mobile Hub.
  328. //
  329. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  330. // with awserr.Error's Code and Message methods to get detailed information about
  331. // the error.
  332. //
  333. // See the AWS API reference guide for AWS Mobile's
  334. // API operation DescribeProject for usage and error information.
  335. //
  336. // Returned Error Codes:
  337. // * ErrCodeInternalFailureException "InternalFailureException"
  338. // The service has encountered an unexpected error condition which prevents
  339. // it from servicing the request.
  340. //
  341. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  342. // The service is temporarily unavailable. The request should be retried after
  343. // some time delay.
  344. //
  345. // * ErrCodeUnauthorizedException "UnauthorizedException"
  346. // Credentials of the caller are insufficient to authorize the request.
  347. //
  348. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  349. // Too many requests have been received for this AWS account in too short a
  350. // time. The request should be retried after some time delay.
  351. //
  352. // * ErrCodeBadRequestException "BadRequestException"
  353. // The request cannot be processed because some parameter is not valid or the
  354. // project state prevents the operation from being performed.
  355. //
  356. // * ErrCodeNotFoundException "NotFoundException"
  357. // No entity can be found with the specified identifier.
  358. //
  359. // See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/DescribeProject
  360. func (c *Mobile) DescribeProject(input *DescribeProjectInput) (*DescribeProjectOutput, error) {
  361. req, out := c.DescribeProjectRequest(input)
  362. return out, req.Send()
  363. }
  364. // DescribeProjectWithContext is the same as DescribeProject with the addition of
  365. // the ability to pass a context and additional request options.
  366. //
  367. // See DescribeProject for details on how to use this API operation.
  368. //
  369. // The context must be non-nil and will be used for request cancellation. If
  370. // the context is nil a panic will occur. In the future the SDK may create
  371. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  372. // for more information on using Contexts.
  373. func (c *Mobile) DescribeProjectWithContext(ctx aws.Context, input *DescribeProjectInput, opts ...request.Option) (*DescribeProjectOutput, error) {
  374. req, out := c.DescribeProjectRequest(input)
  375. req.SetContext(ctx)
  376. req.ApplyOptions(opts...)
  377. return out, req.Send()
  378. }
  379. const opExportBundle = "ExportBundle"
  380. // ExportBundleRequest generates a "aws/request.Request" representing the
  381. // client's request for the ExportBundle operation. The "output" return
  382. // value will be populated with the request's response once the request completes
  383. // successfully.
  384. //
  385. // Use "Send" method on the returned Request to send the API call to the service.
  386. // the "output" return value is not valid until after Send returns without error.
  387. //
  388. // See ExportBundle for more information on using the ExportBundle
  389. // API call, and error handling.
  390. //
  391. // This method is useful when you want to inject custom logic or configuration
  392. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  393. //
  394. //
  395. // // Example sending a request using the ExportBundleRequest method.
  396. // req, resp := client.ExportBundleRequest(params)
  397. //
  398. // err := req.Send()
  399. // if err == nil { // resp is now filled
  400. // fmt.Println(resp)
  401. // }
  402. //
  403. // See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ExportBundle
  404. func (c *Mobile) ExportBundleRequest(input *ExportBundleInput) (req *request.Request, output *ExportBundleOutput) {
  405. op := &request.Operation{
  406. Name: opExportBundle,
  407. HTTPMethod: "POST",
  408. HTTPPath: "/bundles/{bundleId}",
  409. }
  410. if input == nil {
  411. input = &ExportBundleInput{}
  412. }
  413. output = &ExportBundleOutput{}
  414. req = c.newRequest(op, input, output)
  415. return
  416. }
  417. // ExportBundle API operation for AWS Mobile.
  418. //
  419. // Generates customized software development kit (SDK) and or tool packages
  420. // used to integrate mobile web or mobile app clients with backend AWS resources.
  421. //
  422. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  423. // with awserr.Error's Code and Message methods to get detailed information about
  424. // the error.
  425. //
  426. // See the AWS API reference guide for AWS Mobile's
  427. // API operation ExportBundle for usage and error information.
  428. //
  429. // Returned Error Codes:
  430. // * ErrCodeInternalFailureException "InternalFailureException"
  431. // The service has encountered an unexpected error condition which prevents
  432. // it from servicing the request.
  433. //
  434. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  435. // The service is temporarily unavailable. The request should be retried after
  436. // some time delay.
  437. //
  438. // * ErrCodeUnauthorizedException "UnauthorizedException"
  439. // Credentials of the caller are insufficient to authorize the request.
  440. //
  441. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  442. // Too many requests have been received for this AWS account in too short a
  443. // time. The request should be retried after some time delay.
  444. //
  445. // * ErrCodeBadRequestException "BadRequestException"
  446. // The request cannot be processed because some parameter is not valid or the
  447. // project state prevents the operation from being performed.
  448. //
  449. // * ErrCodeNotFoundException "NotFoundException"
  450. // No entity can be found with the specified identifier.
  451. //
  452. // See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ExportBundle
  453. func (c *Mobile) ExportBundle(input *ExportBundleInput) (*ExportBundleOutput, error) {
  454. req, out := c.ExportBundleRequest(input)
  455. return out, req.Send()
  456. }
  457. // ExportBundleWithContext is the same as ExportBundle with the addition of
  458. // the ability to pass a context and additional request options.
  459. //
  460. // See ExportBundle for details on how to use this API operation.
  461. //
  462. // The context must be non-nil and will be used for request cancellation. If
  463. // the context is nil a panic will occur. In the future the SDK may create
  464. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  465. // for more information on using Contexts.
  466. func (c *Mobile) ExportBundleWithContext(ctx aws.Context, input *ExportBundleInput, opts ...request.Option) (*ExportBundleOutput, error) {
  467. req, out := c.ExportBundleRequest(input)
  468. req.SetContext(ctx)
  469. req.ApplyOptions(opts...)
  470. return out, req.Send()
  471. }
  472. const opExportProject = "ExportProject"
  473. // ExportProjectRequest generates a "aws/request.Request" representing the
  474. // client's request for the ExportProject operation. The "output" return
  475. // value will be populated with the request's response once the request completes
  476. // successfully.
  477. //
  478. // Use "Send" method on the returned Request to send the API call to the service.
  479. // the "output" return value is not valid until after Send returns without error.
  480. //
  481. // See ExportProject for more information on using the ExportProject
  482. // API call, and error handling.
  483. //
  484. // This method is useful when you want to inject custom logic or configuration
  485. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  486. //
  487. //
  488. // // Example sending a request using the ExportProjectRequest method.
  489. // req, resp := client.ExportProjectRequest(params)
  490. //
  491. // err := req.Send()
  492. // if err == nil { // resp is now filled
  493. // fmt.Println(resp)
  494. // }
  495. //
  496. // See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ExportProject
  497. func (c *Mobile) ExportProjectRequest(input *ExportProjectInput) (req *request.Request, output *ExportProjectOutput) {
  498. op := &request.Operation{
  499. Name: opExportProject,
  500. HTTPMethod: "POST",
  501. HTTPPath: "/exports/{projectId}",
  502. }
  503. if input == nil {
  504. input = &ExportProjectInput{}
  505. }
  506. output = &ExportProjectOutput{}
  507. req = c.newRequest(op, input, output)
  508. return
  509. }
  510. // ExportProject API operation for AWS Mobile.
  511. //
  512. // Exports project configuration to a snapshot which can be downloaded and shared.
  513. // Note that mobile app push credentials are encrypted in exported projects,
  514. // so they can only be shared successfully within the same AWS account.
  515. //
  516. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  517. // with awserr.Error's Code and Message methods to get detailed information about
  518. // the error.
  519. //
  520. // See the AWS API reference guide for AWS Mobile's
  521. // API operation ExportProject for usage and error information.
  522. //
  523. // Returned Error Codes:
  524. // * ErrCodeInternalFailureException "InternalFailureException"
  525. // The service has encountered an unexpected error condition which prevents
  526. // it from servicing the request.
  527. //
  528. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  529. // The service is temporarily unavailable. The request should be retried after
  530. // some time delay.
  531. //
  532. // * ErrCodeUnauthorizedException "UnauthorizedException"
  533. // Credentials of the caller are insufficient to authorize the request.
  534. //
  535. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  536. // Too many requests have been received for this AWS account in too short a
  537. // time. The request should be retried after some time delay.
  538. //
  539. // * ErrCodeBadRequestException "BadRequestException"
  540. // The request cannot be processed because some parameter is not valid or the
  541. // project state prevents the operation from being performed.
  542. //
  543. // * ErrCodeNotFoundException "NotFoundException"
  544. // No entity can be found with the specified identifier.
  545. //
  546. // See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ExportProject
  547. func (c *Mobile) ExportProject(input *ExportProjectInput) (*ExportProjectOutput, error) {
  548. req, out := c.ExportProjectRequest(input)
  549. return out, req.Send()
  550. }
  551. // ExportProjectWithContext is the same as ExportProject with the addition of
  552. // the ability to pass a context and additional request options.
  553. //
  554. // See ExportProject for details on how to use this API operation.
  555. //
  556. // The context must be non-nil and will be used for request cancellation. If
  557. // the context is nil a panic will occur. In the future the SDK may create
  558. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  559. // for more information on using Contexts.
  560. func (c *Mobile) ExportProjectWithContext(ctx aws.Context, input *ExportProjectInput, opts ...request.Option) (*ExportProjectOutput, error) {
  561. req, out := c.ExportProjectRequest(input)
  562. req.SetContext(ctx)
  563. req.ApplyOptions(opts...)
  564. return out, req.Send()
  565. }
  566. const opListBundles = "ListBundles"
  567. // ListBundlesRequest generates a "aws/request.Request" representing the
  568. // client's request for the ListBundles operation. The "output" return
  569. // value will be populated with the request's response once the request completes
  570. // successfully.
  571. //
  572. // Use "Send" method on the returned Request to send the API call to the service.
  573. // the "output" return value is not valid until after Send returns without error.
  574. //
  575. // See ListBundles for more information on using the ListBundles
  576. // API call, and error handling.
  577. //
  578. // This method is useful when you want to inject custom logic or configuration
  579. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  580. //
  581. //
  582. // // Example sending a request using the ListBundlesRequest method.
  583. // req, resp := client.ListBundlesRequest(params)
  584. //
  585. // err := req.Send()
  586. // if err == nil { // resp is now filled
  587. // fmt.Println(resp)
  588. // }
  589. //
  590. // See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ListBundles
  591. func (c *Mobile) ListBundlesRequest(input *ListBundlesInput) (req *request.Request, output *ListBundlesOutput) {
  592. op := &request.Operation{
  593. Name: opListBundles,
  594. HTTPMethod: "GET",
  595. HTTPPath: "/bundles",
  596. Paginator: &request.Paginator{
  597. InputTokens: []string{"nextToken"},
  598. OutputTokens: []string{"nextToken"},
  599. LimitToken: "maxResults",
  600. TruncationToken: "",
  601. },
  602. }
  603. if input == nil {
  604. input = &ListBundlesInput{}
  605. }
  606. output = &ListBundlesOutput{}
  607. req = c.newRequest(op, input, output)
  608. return
  609. }
  610. // ListBundles API operation for AWS Mobile.
  611. //
  612. // List all available bundles.
  613. //
  614. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  615. // with awserr.Error's Code and Message methods to get detailed information about
  616. // the error.
  617. //
  618. // See the AWS API reference guide for AWS Mobile's
  619. // API operation ListBundles for usage and error information.
  620. //
  621. // Returned Error Codes:
  622. // * ErrCodeInternalFailureException "InternalFailureException"
  623. // The service has encountered an unexpected error condition which prevents
  624. // it from servicing the request.
  625. //
  626. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  627. // The service is temporarily unavailable. The request should be retried after
  628. // some time delay.
  629. //
  630. // * ErrCodeUnauthorizedException "UnauthorizedException"
  631. // Credentials of the caller are insufficient to authorize the request.
  632. //
  633. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  634. // Too many requests have been received for this AWS account in too short a
  635. // time. The request should be retried after some time delay.
  636. //
  637. // * ErrCodeBadRequestException "BadRequestException"
  638. // The request cannot be processed because some parameter is not valid or the
  639. // project state prevents the operation from being performed.
  640. //
  641. // See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ListBundles
  642. func (c *Mobile) ListBundles(input *ListBundlesInput) (*ListBundlesOutput, error) {
  643. req, out := c.ListBundlesRequest(input)
  644. return out, req.Send()
  645. }
  646. // ListBundlesWithContext is the same as ListBundles with the addition of
  647. // the ability to pass a context and additional request options.
  648. //
  649. // See ListBundles for details on how to use this API operation.
  650. //
  651. // The context must be non-nil and will be used for request cancellation. If
  652. // the context is nil a panic will occur. In the future the SDK may create
  653. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  654. // for more information on using Contexts.
  655. func (c *Mobile) ListBundlesWithContext(ctx aws.Context, input *ListBundlesInput, opts ...request.Option) (*ListBundlesOutput, error) {
  656. req, out := c.ListBundlesRequest(input)
  657. req.SetContext(ctx)
  658. req.ApplyOptions(opts...)
  659. return out, req.Send()
  660. }
  661. // ListBundlesPages iterates over the pages of a ListBundles operation,
  662. // calling the "fn" function with the response data for each page. To stop
  663. // iterating, return false from the fn function.
  664. //
  665. // See ListBundles method for more information on how to use this operation.
  666. //
  667. // Note: This operation can generate multiple requests to a service.
  668. //
  669. // // Example iterating over at most 3 pages of a ListBundles operation.
  670. // pageNum := 0
  671. // err := client.ListBundlesPages(params,
  672. // func(page *ListBundlesOutput, lastPage bool) bool {
  673. // pageNum++
  674. // fmt.Println(page)
  675. // return pageNum <= 3
  676. // })
  677. //
  678. func (c *Mobile) ListBundlesPages(input *ListBundlesInput, fn func(*ListBundlesOutput, bool) bool) error {
  679. return c.ListBundlesPagesWithContext(aws.BackgroundContext(), input, fn)
  680. }
  681. // ListBundlesPagesWithContext same as ListBundlesPages except
  682. // it takes a Context and allows setting request options on the pages.
  683. //
  684. // The context must be non-nil and will be used for request cancellation. If
  685. // the context is nil a panic will occur. In the future the SDK may create
  686. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  687. // for more information on using Contexts.
  688. func (c *Mobile) ListBundlesPagesWithContext(ctx aws.Context, input *ListBundlesInput, fn func(*ListBundlesOutput, bool) bool, opts ...request.Option) error {
  689. p := request.Pagination{
  690. NewRequest: func() (*request.Request, error) {
  691. var inCpy *ListBundlesInput
  692. if input != nil {
  693. tmp := *input
  694. inCpy = &tmp
  695. }
  696. req, _ := c.ListBundlesRequest(inCpy)
  697. req.SetContext(ctx)
  698. req.ApplyOptions(opts...)
  699. return req, nil
  700. },
  701. }
  702. cont := true
  703. for p.Next() && cont {
  704. cont = fn(p.Page().(*ListBundlesOutput), !p.HasNextPage())
  705. }
  706. return p.Err()
  707. }
  708. const opListProjects = "ListProjects"
  709. // ListProjectsRequest generates a "aws/request.Request" representing the
  710. // client's request for the ListProjects operation. The "output" return
  711. // value will be populated with the request's response once the request completes
  712. // successfully.
  713. //
  714. // Use "Send" method on the returned Request to send the API call to the service.
  715. // the "output" return value is not valid until after Send returns without error.
  716. //
  717. // See ListProjects for more information on using the ListProjects
  718. // API call, and error handling.
  719. //
  720. // This method is useful when you want to inject custom logic or configuration
  721. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  722. //
  723. //
  724. // // Example sending a request using the ListProjectsRequest method.
  725. // req, resp := client.ListProjectsRequest(params)
  726. //
  727. // err := req.Send()
  728. // if err == nil { // resp is now filled
  729. // fmt.Println(resp)
  730. // }
  731. //
  732. // See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ListProjects
  733. func (c *Mobile) ListProjectsRequest(input *ListProjectsInput) (req *request.Request, output *ListProjectsOutput) {
  734. op := &request.Operation{
  735. Name: opListProjects,
  736. HTTPMethod: "GET",
  737. HTTPPath: "/projects",
  738. Paginator: &request.Paginator{
  739. InputTokens: []string{"nextToken"},
  740. OutputTokens: []string{"nextToken"},
  741. LimitToken: "maxResults",
  742. TruncationToken: "",
  743. },
  744. }
  745. if input == nil {
  746. input = &ListProjectsInput{}
  747. }
  748. output = &ListProjectsOutput{}
  749. req = c.newRequest(op, input, output)
  750. return
  751. }
  752. // ListProjects API operation for AWS Mobile.
  753. //
  754. // Lists projects in AWS Mobile Hub.
  755. //
  756. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  757. // with awserr.Error's Code and Message methods to get detailed information about
  758. // the error.
  759. //
  760. // See the AWS API reference guide for AWS Mobile's
  761. // API operation ListProjects for usage and error information.
  762. //
  763. // Returned Error Codes:
  764. // * ErrCodeInternalFailureException "InternalFailureException"
  765. // The service has encountered an unexpected error condition which prevents
  766. // it from servicing the request.
  767. //
  768. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  769. // The service is temporarily unavailable. The request should be retried after
  770. // some time delay.
  771. //
  772. // * ErrCodeUnauthorizedException "UnauthorizedException"
  773. // Credentials of the caller are insufficient to authorize the request.
  774. //
  775. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  776. // Too many requests have been received for this AWS account in too short a
  777. // time. The request should be retried after some time delay.
  778. //
  779. // * ErrCodeBadRequestException "BadRequestException"
  780. // The request cannot be processed because some parameter is not valid or the
  781. // project state prevents the operation from being performed.
  782. //
  783. // See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ListProjects
  784. func (c *Mobile) ListProjects(input *ListProjectsInput) (*ListProjectsOutput, error) {
  785. req, out := c.ListProjectsRequest(input)
  786. return out, req.Send()
  787. }
  788. // ListProjectsWithContext is the same as ListProjects with the addition of
  789. // the ability to pass a context and additional request options.
  790. //
  791. // See ListProjects for details on how to use this API operation.
  792. //
  793. // The context must be non-nil and will be used for request cancellation. If
  794. // the context is nil a panic will occur. In the future the SDK may create
  795. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  796. // for more information on using Contexts.
  797. func (c *Mobile) ListProjectsWithContext(ctx aws.Context, input *ListProjectsInput, opts ...request.Option) (*ListProjectsOutput, error) {
  798. req, out := c.ListProjectsRequest(input)
  799. req.SetContext(ctx)
  800. req.ApplyOptions(opts...)
  801. return out, req.Send()
  802. }
  803. // ListProjectsPages iterates over the pages of a ListProjects operation,
  804. // calling the "fn" function with the response data for each page. To stop
  805. // iterating, return false from the fn function.
  806. //
  807. // See ListProjects method for more information on how to use this operation.
  808. //
  809. // Note: This operation can generate multiple requests to a service.
  810. //
  811. // // Example iterating over at most 3 pages of a ListProjects operation.
  812. // pageNum := 0
  813. // err := client.ListProjectsPages(params,
  814. // func(page *ListProjectsOutput, lastPage bool) bool {
  815. // pageNum++
  816. // fmt.Println(page)
  817. // return pageNum <= 3
  818. // })
  819. //
  820. func (c *Mobile) ListProjectsPages(input *ListProjectsInput, fn func(*ListProjectsOutput, bool) bool) error {
  821. return c.ListProjectsPagesWithContext(aws.BackgroundContext(), input, fn)
  822. }
  823. // ListProjectsPagesWithContext same as ListProjectsPages except
  824. // it takes a Context and allows setting request options on the pages.
  825. //
  826. // The context must be non-nil and will be used for request cancellation. If
  827. // the context is nil a panic will occur. In the future the SDK may create
  828. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  829. // for more information on using Contexts.
  830. func (c *Mobile) ListProjectsPagesWithContext(ctx aws.Context, input *ListProjectsInput, fn func(*ListProjectsOutput, bool) bool, opts ...request.Option) error {
  831. p := request.Pagination{
  832. NewRequest: func() (*request.Request, error) {
  833. var inCpy *ListProjectsInput
  834. if input != nil {
  835. tmp := *input
  836. inCpy = &tmp
  837. }
  838. req, _ := c.ListProjectsRequest(inCpy)
  839. req.SetContext(ctx)
  840. req.ApplyOptions(opts...)
  841. return req, nil
  842. },
  843. }
  844. cont := true
  845. for p.Next() && cont {
  846. cont = fn(p.Page().(*ListProjectsOutput), !p.HasNextPage())
  847. }
  848. return p.Err()
  849. }
  850. const opUpdateProject = "UpdateProject"
  851. // UpdateProjectRequest generates a "aws/request.Request" representing the
  852. // client's request for the UpdateProject operation. The "output" return
  853. // value will be populated with the request's response once the request completes
  854. // successfully.
  855. //
  856. // Use "Send" method on the returned Request to send the API call to the service.
  857. // the "output" return value is not valid until after Send returns without error.
  858. //
  859. // See UpdateProject for more information on using the UpdateProject
  860. // API call, and error handling.
  861. //
  862. // This method is useful when you want to inject custom logic or configuration
  863. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  864. //
  865. //
  866. // // Example sending a request using the UpdateProjectRequest method.
  867. // req, resp := client.UpdateProjectRequest(params)
  868. //
  869. // err := req.Send()
  870. // if err == nil { // resp is now filled
  871. // fmt.Println(resp)
  872. // }
  873. //
  874. // See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/UpdateProject
  875. func (c *Mobile) UpdateProjectRequest(input *UpdateProjectInput) (req *request.Request, output *UpdateProjectOutput) {
  876. op := &request.Operation{
  877. Name: opUpdateProject,
  878. HTTPMethod: "POST",
  879. HTTPPath: "/update",
  880. }
  881. if input == nil {
  882. input = &UpdateProjectInput{}
  883. }
  884. output = &UpdateProjectOutput{}
  885. req = c.newRequest(op, input, output)
  886. return
  887. }
  888. // UpdateProject API operation for AWS Mobile.
  889. //
  890. // Update an existing project.
  891. //
  892. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  893. // with awserr.Error's Code and Message methods to get detailed information about
  894. // the error.
  895. //
  896. // See the AWS API reference guide for AWS Mobile's
  897. // API operation UpdateProject for usage and error information.
  898. //
  899. // Returned Error Codes:
  900. // * ErrCodeInternalFailureException "InternalFailureException"
  901. // The service has encountered an unexpected error condition which prevents
  902. // it from servicing the request.
  903. //
  904. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  905. // The service is temporarily unavailable. The request should be retried after
  906. // some time delay.
  907. //
  908. // * ErrCodeUnauthorizedException "UnauthorizedException"
  909. // Credentials of the caller are insufficient to authorize the request.
  910. //
  911. // * ErrCodeTooManyRequestsException "TooManyRequestsException"
  912. // Too many requests have been received for this AWS account in too short a
  913. // time. The request should be retried after some time delay.
  914. //
  915. // * ErrCodeBadRequestException "BadRequestException"
  916. // The request cannot be processed because some parameter is not valid or the
  917. // project state prevents the operation from being performed.
  918. //
  919. // * ErrCodeNotFoundException "NotFoundException"
  920. // No entity can be found with the specified identifier.
  921. //
  922. // * ErrCodeAccountActionRequiredException "AccountActionRequiredException"
  923. // Account Action is required in order to continue the request.
  924. //
  925. // * ErrCodeLimitExceededException "LimitExceededException"
  926. // There are too many AWS Mobile Hub projects in the account or the account
  927. // has exceeded the maximum number of resources in some AWS service. You should
  928. // create another sub-account using AWS Organizations or remove some resources
  929. // and retry your request.
  930. //
  931. // See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/UpdateProject
  932. func (c *Mobile) UpdateProject(input *UpdateProjectInput) (*UpdateProjectOutput, error) {
  933. req, out := c.UpdateProjectRequest(input)
  934. return out, req.Send()
  935. }
  936. // UpdateProjectWithContext is the same as UpdateProject with the addition of
  937. // the ability to pass a context and additional request options.
  938. //
  939. // See UpdateProject for details on how to use this API operation.
  940. //
  941. // The context must be non-nil and will be used for request cancellation. If
  942. // the context is nil a panic will occur. In the future the SDK may create
  943. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  944. // for more information on using Contexts.
  945. func (c *Mobile) UpdateProjectWithContext(ctx aws.Context, input *UpdateProjectInput, opts ...request.Option) (*UpdateProjectOutput, error) {
  946. req, out := c.UpdateProjectRequest(input)
  947. req.SetContext(ctx)
  948. req.ApplyOptions(opts...)
  949. return out, req.Send()
  950. }
  951. // The details of the bundle.
  952. type BundleDetails struct {
  953. _ struct{} `type:"structure"`
  954. // Developer desktop or mobile app or website platforms.
  955. AvailablePlatforms []*string `locationName:"availablePlatforms" type:"list"`
  956. // Unique bundle identifier.
  957. BundleId *string `locationName:"bundleId" type:"string"`
  958. // Description of the download bundle.
  959. Description *string `locationName:"description" type:"string"`
  960. // Icon for the download bundle.
  961. IconUrl *string `locationName:"iconUrl" type:"string"`
  962. // Title of the download bundle.
  963. Title *string `locationName:"title" type:"string"`
  964. // Version of the download bundle.
  965. Version *string `locationName:"version" type:"string"`
  966. }
  967. // String returns the string representation
  968. func (s BundleDetails) String() string {
  969. return awsutil.Prettify(s)
  970. }
  971. // GoString returns the string representation
  972. func (s BundleDetails) GoString() string {
  973. return s.String()
  974. }
  975. // SetAvailablePlatforms sets the AvailablePlatforms field's value.
  976. func (s *BundleDetails) SetAvailablePlatforms(v []*string) *BundleDetails {
  977. s.AvailablePlatforms = v
  978. return s
  979. }
  980. // SetBundleId sets the BundleId field's value.
  981. func (s *BundleDetails) SetBundleId(v string) *BundleDetails {
  982. s.BundleId = &v
  983. return s
  984. }
  985. // SetDescription sets the Description field's value.
  986. func (s *BundleDetails) SetDescription(v string) *BundleDetails {
  987. s.Description = &v
  988. return s
  989. }
  990. // SetIconUrl sets the IconUrl field's value.
  991. func (s *BundleDetails) SetIconUrl(v string) *BundleDetails {
  992. s.IconUrl = &v
  993. return s
  994. }
  995. // SetTitle sets the Title field's value.
  996. func (s *BundleDetails) SetTitle(v string) *BundleDetails {
  997. s.Title = &v
  998. return s
  999. }
  1000. // SetVersion sets the Version field's value.
  1001. func (s *BundleDetails) SetVersion(v string) *BundleDetails {
  1002. s.Version = &v
  1003. return s
  1004. }
  1005. // Request structure used to request a project be created.
  1006. type CreateProjectInput struct {
  1007. _ struct{} `type:"structure" payload:"Contents"`
  1008. // ZIP or YAML file which contains configuration settings to be used when creating
  1009. // the project. This may be the contents of the file downloaded from the URL
  1010. // provided in an export project operation.
  1011. Contents []byte `locationName:"contents" type:"blob"`
  1012. // Name of the project.
  1013. Name *string `location:"querystring" locationName:"name" type:"string"`
  1014. // Default region where project resources should be created.
  1015. Region *string `location:"querystring" locationName:"region" type:"string"`
  1016. // Unique identifier for an exported snapshot of project configuration. This
  1017. // snapshot identifier is included in the share URL when a project is exported.
  1018. SnapshotId *string `location:"querystring" locationName:"snapshotId" type:"string"`
  1019. }
  1020. // String returns the string representation
  1021. func (s CreateProjectInput) String() string {
  1022. return awsutil.Prettify(s)
  1023. }
  1024. // GoString returns the string representation
  1025. func (s CreateProjectInput) GoString() string {
  1026. return s.String()
  1027. }
  1028. // SetContents sets the Contents field's value.
  1029. func (s *CreateProjectInput) SetContents(v []byte) *CreateProjectInput {
  1030. s.Contents = v
  1031. return s
  1032. }
  1033. // SetName sets the Name field's value.
  1034. func (s *CreateProjectInput) SetName(v string) *CreateProjectInput {
  1035. s.Name = &v
  1036. return s
  1037. }
  1038. // SetRegion sets the Region field's value.
  1039. func (s *CreateProjectInput) SetRegion(v string) *CreateProjectInput {
  1040. s.Region = &v
  1041. return s
  1042. }
  1043. // SetSnapshotId sets the SnapshotId field's value.
  1044. func (s *CreateProjectInput) SetSnapshotId(v string) *CreateProjectInput {
  1045. s.SnapshotId = &v
  1046. return s
  1047. }
  1048. // Result structure used in response to a request to create a project.
  1049. type CreateProjectOutput struct {
  1050. _ struct{} `type:"structure"`
  1051. // Detailed information about the created AWS Mobile Hub project.
  1052. Details *ProjectDetails `locationName:"details" type:"structure"`
  1053. }
  1054. // String returns the string representation
  1055. func (s CreateProjectOutput) String() string {
  1056. return awsutil.Prettify(s)
  1057. }
  1058. // GoString returns the string representation
  1059. func (s CreateProjectOutput) GoString() string {
  1060. return s.String()
  1061. }
  1062. // SetDetails sets the Details field's value.
  1063. func (s *CreateProjectOutput) SetDetails(v *ProjectDetails) *CreateProjectOutput {
  1064. s.Details = v
  1065. return s
  1066. }
  1067. // Request structure used to request a project be deleted.
  1068. type DeleteProjectInput struct {
  1069. _ struct{} `type:"structure"`
  1070. // Unique project identifier.
  1071. //
  1072. // ProjectId is a required field
  1073. ProjectId *string `location:"uri" locationName:"projectId" type:"string" required:"true"`
  1074. }
  1075. // String returns the string representation
  1076. func (s DeleteProjectInput) String() string {
  1077. return awsutil.Prettify(s)
  1078. }
  1079. // GoString returns the string representation
  1080. func (s DeleteProjectInput) GoString() string {
  1081. return s.String()
  1082. }
  1083. // Validate inspects the fields of the type to determine if they are valid.
  1084. func (s *DeleteProjectInput) Validate() error {
  1085. invalidParams := request.ErrInvalidParams{Context: "DeleteProjectInput"}
  1086. if s.ProjectId == nil {
  1087. invalidParams.Add(request.NewErrParamRequired("ProjectId"))
  1088. }
  1089. if s.ProjectId != nil && len(*s.ProjectId) < 1 {
  1090. invalidParams.Add(request.NewErrParamMinLen("ProjectId", 1))
  1091. }
  1092. if invalidParams.Len() > 0 {
  1093. return invalidParams
  1094. }
  1095. return nil
  1096. }
  1097. // SetProjectId sets the ProjectId field's value.
  1098. func (s *DeleteProjectInput) SetProjectId(v string) *DeleteProjectInput {
  1099. s.ProjectId = &v
  1100. return s
  1101. }
  1102. // Result structure used in response to request to delete a project.
  1103. type DeleteProjectOutput struct {
  1104. _ struct{} `type:"structure"`
  1105. // Resources which were deleted.
  1106. DeletedResources []*Resource `locationName:"deletedResources" type:"list"`
  1107. // Resources which were not deleted, due to a risk of losing potentially important
  1108. // data or files.
  1109. OrphanedResources []*Resource `locationName:"orphanedResources" type:"list"`
  1110. }
  1111. // String returns the string representation
  1112. func (s DeleteProjectOutput) String() string {
  1113. return awsutil.Prettify(s)
  1114. }
  1115. // GoString returns the string representation
  1116. func (s DeleteProjectOutput) GoString() string {
  1117. return s.String()
  1118. }
  1119. // SetDeletedResources sets the DeletedResources field's value.
  1120. func (s *DeleteProjectOutput) SetDeletedResources(v []*Resource) *DeleteProjectOutput {
  1121. s.DeletedResources = v
  1122. return s
  1123. }
  1124. // SetOrphanedResources sets the OrphanedResources field's value.
  1125. func (s *DeleteProjectOutput) SetOrphanedResources(v []*Resource) *DeleteProjectOutput {
  1126. s.OrphanedResources = v
  1127. return s
  1128. }
  1129. // Request structure to request the details of a specific bundle.
  1130. type DescribeBundleInput struct {
  1131. _ struct{} `type:"structure"`
  1132. // Unique bundle identifier.
  1133. //
  1134. // BundleId is a required field
  1135. BundleId *string `location:"uri" locationName:"bundleId" type:"string" required:"true"`
  1136. }
  1137. // String returns the string representation
  1138. func (s DescribeBundleInput) String() string {
  1139. return awsutil.Prettify(s)
  1140. }
  1141. // GoString returns the string representation
  1142. func (s DescribeBundleInput) GoString() string {
  1143. return s.String()
  1144. }
  1145. // Validate inspects the fields of the type to determine if they are valid.
  1146. func (s *DescribeBundleInput) Validate() error {
  1147. invalidParams := request.ErrInvalidParams{Context: "DescribeBundleInput"}
  1148. if s.BundleId == nil {
  1149. invalidParams.Add(request.NewErrParamRequired("BundleId"))
  1150. }
  1151. if s.BundleId != nil && len(*s.BundleId) < 1 {
  1152. invalidParams.Add(request.NewErrParamMinLen("BundleId", 1))
  1153. }
  1154. if invalidParams.Len() > 0 {
  1155. return invalidParams
  1156. }
  1157. return nil
  1158. }
  1159. // SetBundleId sets the BundleId field's value.
  1160. func (s *DescribeBundleInput) SetBundleId(v string) *DescribeBundleInput {
  1161. s.BundleId = &v
  1162. return s
  1163. }
  1164. // Result structure contains the details of the bundle.
  1165. type DescribeBundleOutput struct {
  1166. _ struct{} `type:"structure"`
  1167. // The details of the bundle.
  1168. Details *BundleDetails `locationName:"details" type:"structure"`
  1169. }
  1170. // String returns the string representation
  1171. func (s DescribeBundleOutput) String() string {
  1172. return awsutil.Prettify(s)
  1173. }
  1174. // GoString returns the string representation
  1175. func (s DescribeBundleOutput) GoString() string {
  1176. return s.String()
  1177. }
  1178. // SetDetails sets the Details field's value.
  1179. func (s *DescribeBundleOutput) SetDetails(v *BundleDetails) *DescribeBundleOutput {
  1180. s.Details = v
  1181. return s
  1182. }
  1183. // Request structure used to request details about a project.
  1184. type DescribeProjectInput struct {
  1185. _ struct{} `type:"structure"`
  1186. // Unique project identifier.
  1187. //
  1188. // ProjectId is a required field
  1189. ProjectId *string `location:"querystring" locationName:"projectId" type:"string" required:"true"`
  1190. // If set to true, causes AWS Mobile Hub to synchronize information from other
  1191. // services, e.g., update state of AWS CloudFormation stacks in the AWS Mobile
  1192. // Hub project.
  1193. SyncFromResources *bool `location:"querystring" locationName:"syncFromResources" type:"boolean"`
  1194. }
  1195. // String returns the string representation
  1196. func (s DescribeProjectInput) String() string {
  1197. return awsutil.Prettify(s)
  1198. }
  1199. // GoString returns the string representation
  1200. func (s DescribeProjectInput) GoString() string {
  1201. return s.String()
  1202. }
  1203. // Validate inspects the fields of the type to determine if they are valid.
  1204. func (s *DescribeProjectInput) Validate() error {
  1205. invalidParams := request.ErrInvalidParams{Context: "DescribeProjectInput"}
  1206. if s.ProjectId == nil {
  1207. invalidParams.Add(request.NewErrParamRequired("ProjectId"))
  1208. }
  1209. if invalidParams.Len() > 0 {
  1210. return invalidParams
  1211. }
  1212. return nil
  1213. }
  1214. // SetProjectId sets the ProjectId field's value.
  1215. func (s *DescribeProjectInput) SetProjectId(v string) *DescribeProjectInput {
  1216. s.ProjectId = &v
  1217. return s
  1218. }
  1219. // SetSyncFromResources sets the SyncFromResources field's value.
  1220. func (s *DescribeProjectInput) SetSyncFromResources(v bool) *DescribeProjectInput {
  1221. s.SyncFromResources = &v
  1222. return s
  1223. }
  1224. // Result structure used for requests of project details.
  1225. type DescribeProjectOutput struct {
  1226. _ struct{} `type:"structure"`
  1227. // Detailed information about an AWS Mobile Hub project.
  1228. Details *ProjectDetails `locationName:"details" type:"structure"`
  1229. }
  1230. // String returns the string representation
  1231. func (s DescribeProjectOutput) String() string {
  1232. return awsutil.Prettify(s)
  1233. }
  1234. // GoString returns the string representation
  1235. func (s DescribeProjectOutput) GoString() string {
  1236. return s.String()
  1237. }
  1238. // SetDetails sets the Details field's value.
  1239. func (s *DescribeProjectOutput) SetDetails(v *ProjectDetails) *DescribeProjectOutput {
  1240. s.Details = v
  1241. return s
  1242. }
  1243. // Request structure used to request generation of custom SDK and tool packages
  1244. // required to integrate mobile web or app clients with backed AWS resources.
  1245. type ExportBundleInput struct {
  1246. _ struct{} `type:"structure"`
  1247. // Unique bundle identifier.
  1248. //
  1249. // BundleId is a required field
  1250. BundleId *string `location:"uri" locationName:"bundleId" type:"string" required:"true"`
  1251. // Developer desktop or target application platform.
  1252. Platform *string `location:"querystring" locationName:"platform" type:"string" enum:"Platform"`
  1253. // Unique project identifier.
  1254. ProjectId *string `location:"querystring" locationName:"projectId" type:"string"`
  1255. }
  1256. // String returns the string representation
  1257. func (s ExportBundleInput) String() string {
  1258. return awsutil.Prettify(s)
  1259. }
  1260. // GoString returns the string representation
  1261. func (s ExportBundleInput) GoString() string {
  1262. return s.String()
  1263. }
  1264. // Validate inspects the fields of the type to determine if they are valid.
  1265. func (s *ExportBundleInput) Validate() error {
  1266. invalidParams := request.ErrInvalidParams{Context: "ExportBundleInput"}
  1267. if s.BundleId == nil {
  1268. invalidParams.Add(request.NewErrParamRequired("BundleId"))
  1269. }
  1270. if s.BundleId != nil && len(*s.BundleId) < 1 {
  1271. invalidParams.Add(request.NewErrParamMinLen("BundleId", 1))
  1272. }
  1273. if invalidParams.Len() > 0 {
  1274. return invalidParams
  1275. }
  1276. return nil
  1277. }
  1278. // SetBundleId sets the BundleId field's value.
  1279. func (s *ExportBundleInput) SetBundleId(v string) *ExportBundleInput {
  1280. s.BundleId = &v
  1281. return s
  1282. }
  1283. // SetPlatform sets the Platform field's value.
  1284. func (s *ExportBundleInput) SetPlatform(v string) *ExportBundleInput {
  1285. s.Platform = &v
  1286. return s
  1287. }
  1288. // SetProjectId sets the ProjectId field's value.
  1289. func (s *ExportBundleInput) SetProjectId(v string) *ExportBundleInput {
  1290. s.ProjectId = &v
  1291. return s
  1292. }
  1293. // Result structure which contains link to download custom-generated SDK and
  1294. // tool packages used to integrate mobile web or app clients with backed AWS
  1295. // resources.
  1296. type ExportBundleOutput struct {
  1297. _ struct{} `type:"structure"`
  1298. // URL which contains the custom-generated SDK and tool packages used to integrate
  1299. // the client mobile app or web app with the AWS resources created by the AWS
  1300. // Mobile Hub project.
  1301. DownloadUrl *string `locationName:"downloadUrl" type:"string"`
  1302. }
  1303. // String returns the string representation
  1304. func (s ExportBundleOutput) String() string {
  1305. return awsutil.Prettify(s)
  1306. }
  1307. // GoString returns the string representation
  1308. func (s ExportBundleOutput) GoString() string {
  1309. return s.String()
  1310. }
  1311. // SetDownloadUrl sets the DownloadUrl field's value.
  1312. func (s *ExportBundleOutput) SetDownloadUrl(v string) *ExportBundleOutput {
  1313. s.DownloadUrl = &v
  1314. return s
  1315. }
  1316. // Request structure used in requests to export project configuration details.
  1317. type ExportProjectInput struct {
  1318. _ struct{} `type:"structure"`
  1319. // Unique project identifier.
  1320. //
  1321. // ProjectId is a required field
  1322. ProjectId *string `location:"uri" locationName:"projectId" type:"string" required:"true"`
  1323. }
  1324. // String returns the string representation
  1325. func (s ExportProjectInput) String() string {
  1326. return awsutil.Prettify(s)
  1327. }
  1328. // GoString returns the string representation
  1329. func (s ExportProjectInput) GoString() string {
  1330. return s.String()
  1331. }
  1332. // Validate inspects the fields of the type to determine if they are valid.
  1333. func (s *ExportProjectInput) Validate() error {
  1334. invalidParams := request.ErrInvalidParams{Context: "ExportProjectInput"}
  1335. if s.ProjectId == nil {
  1336. invalidParams.Add(request.NewErrParamRequired("ProjectId"))
  1337. }
  1338. if s.ProjectId != nil && len(*s.ProjectId) < 1 {
  1339. invalidParams.Add(request.NewErrParamMinLen("ProjectId", 1))
  1340. }
  1341. if invalidParams.Len() > 0 {
  1342. return invalidParams
  1343. }
  1344. return nil
  1345. }
  1346. // SetProjectId sets the ProjectId field's value.
  1347. func (s *ExportProjectInput) SetProjectId(v string) *ExportProjectInput {
  1348. s.ProjectId = &v
  1349. return s
  1350. }
  1351. // Result structure used for requests to export project configuration details.
  1352. type ExportProjectOutput struct {
  1353. _ struct{} `type:"structure"`
  1354. // URL which can be used to download the exported project configuation file(s).
  1355. DownloadUrl *string `locationName:"downloadUrl" type:"string"`
  1356. // URL which can be shared to allow other AWS users to create their own project
  1357. // in AWS Mobile Hub with the same configuration as the specified project. This
  1358. // URL pertains to a snapshot in time of the project configuration that is created
  1359. // when this API is called. If you want to share additional changes to your
  1360. // project configuration, then you will need to create and share a new snapshot
  1361. // by calling this method again.
  1362. ShareUrl *string `locationName:"shareUrl" type:"string"`
  1363. // Unique identifier for the exported snapshot of the project configuration.
  1364. // This snapshot identifier is included in the share URL.
  1365. SnapshotId *string `locationName:"snapshotId" type:"string"`
  1366. }
  1367. // String returns the string representation
  1368. func (s ExportProjectOutput) String() string {
  1369. return awsutil.Prettify(s)
  1370. }
  1371. // GoString returns the string representation
  1372. func (s ExportProjectOutput) GoString() string {
  1373. return s.String()
  1374. }
  1375. // SetDownloadUrl sets the DownloadUrl field's value.
  1376. func (s *ExportProjectOutput) SetDownloadUrl(v string) *ExportProjectOutput {
  1377. s.DownloadUrl = &v
  1378. return s
  1379. }
  1380. // SetShareUrl sets the ShareUrl field's value.
  1381. func (s *ExportProjectOutput) SetShareUrl(v string) *ExportProjectOutput {
  1382. s.ShareUrl = &v
  1383. return s
  1384. }
  1385. // SetSnapshotId sets the SnapshotId field's value.
  1386. func (s *ExportProjectOutput) SetSnapshotId(v string) *ExportProjectOutput {
  1387. s.SnapshotId = &v
  1388. return s
  1389. }
  1390. // Request structure to request all available bundles.
  1391. type ListBundlesInput struct {
  1392. _ struct{} `type:"structure"`
  1393. // Maximum number of records to list in a single response.
  1394. MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
  1395. // Pagination token. Set to null to start listing bundles from start. If non-null
  1396. // pagination token is returned in a result, then pass its value in here in
  1397. // another request to list more bundles.
  1398. NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
  1399. }
  1400. // String returns the string representation
  1401. func (s ListBundlesInput) String() string {
  1402. return awsutil.Prettify(s)
  1403. }
  1404. // GoString returns the string representation
  1405. func (s ListBundlesInput) GoString() string {
  1406. return s.String()
  1407. }
  1408. // SetMaxResults sets the MaxResults field's value.
  1409. func (s *ListBundlesInput) SetMaxResults(v int64) *ListBundlesInput {
  1410. s.MaxResults = &v
  1411. return s
  1412. }
  1413. // SetNextToken sets the NextToken field's value.
  1414. func (s *ListBundlesInput) SetNextToken(v string) *ListBundlesInput {
  1415. s.NextToken = &v
  1416. return s
  1417. }
  1418. // Result structure contains a list of all available bundles with details.
  1419. type ListBundlesOutput struct {
  1420. _ struct{} `type:"structure"`
  1421. // A list of bundles.
  1422. BundleList []*BundleDetails `locationName:"bundleList" type:"list"`
  1423. // Pagination token. If non-null pagination token is returned in a result, then
  1424. // pass its value in another request to fetch more entries.
  1425. NextToken *string `locationName:"nextToken" type:"string"`
  1426. }
  1427. // String returns the string representation
  1428. func (s ListBundlesOutput) String() string {
  1429. return awsutil.Prettify(s)
  1430. }
  1431. // GoString returns the string representation
  1432. func (s ListBundlesOutput) GoString() string {
  1433. return s.String()
  1434. }
  1435. // SetBundleList sets the BundleList field's value.
  1436. func (s *ListBundlesOutput) SetBundleList(v []*BundleDetails) *ListBundlesOutput {
  1437. s.BundleList = v
  1438. return s
  1439. }
  1440. // SetNextToken sets the NextToken field's value.
  1441. func (s *ListBundlesOutput) SetNextToken(v string) *ListBundlesOutput {
  1442. s.NextToken = &v
  1443. return s
  1444. }
  1445. // Request structure used to request projects list in AWS Mobile Hub.
  1446. type ListProjectsInput struct {
  1447. _ struct{} `type:"structure"`
  1448. // Maximum number of records to list in a single response.
  1449. MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
  1450. // Pagination token. Set to null to start listing projects from start. If non-null
  1451. // pagination token is returned in a result, then pass its value in here in
  1452. // another request to list more projects.
  1453. NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
  1454. }
  1455. // String returns the string representation
  1456. func (s ListProjectsInput) String() string {
  1457. return awsutil.Prettify(s)
  1458. }
  1459. // GoString returns the string representation
  1460. func (s ListProjectsInput) GoString() string {
  1461. return s.String()
  1462. }
  1463. // SetMaxResults sets the MaxResults field's value.
  1464. func (s *ListProjectsInput) SetMaxResults(v int64) *ListProjectsInput {
  1465. s.MaxResults = &v
  1466. return s
  1467. }
  1468. // SetNextToken sets the NextToken field's value.
  1469. func (s *ListProjectsInput) SetNextToken(v string) *ListProjectsInput {
  1470. s.NextToken = &v
  1471. return s
  1472. }
  1473. // Result structure used for requests to list projects in AWS Mobile Hub.
  1474. type ListProjectsOutput struct {
  1475. _ struct{} `type:"structure"`
  1476. // Pagination token. Set to null to start listing records from start. If non-null
  1477. // pagination token is returned in a result, then pass its value in here in
  1478. // another request to list more entries.
  1479. NextToken *string `locationName:"nextToken" type:"string"`
  1480. // List of projects.
  1481. Projects []*ProjectSummary `locationName:"projects" type:"list"`
  1482. }
  1483. // String returns the string representation
  1484. func (s ListProjectsOutput) String() string {
  1485. return awsutil.Prettify(s)
  1486. }
  1487. // GoString returns the string representation
  1488. func (s ListProjectsOutput) GoString() string {
  1489. return s.String()
  1490. }
  1491. // SetNextToken sets the NextToken field's value.
  1492. func (s *ListProjectsOutput) SetNextToken(v string) *ListProjectsOutput {
  1493. s.NextToken = &v
  1494. return s
  1495. }
  1496. // SetProjects sets the Projects field's value.
  1497. func (s *ListProjectsOutput) SetProjects(v []*ProjectSummary) *ListProjectsOutput {
  1498. s.Projects = v
  1499. return s
  1500. }
  1501. // Detailed information about an AWS Mobile Hub project.
  1502. type ProjectDetails struct {
  1503. _ struct{} `type:"structure"`
  1504. // Website URL for this project in the AWS Mobile Hub console.
  1505. ConsoleUrl *string `locationName:"consoleUrl" type:"string"`
  1506. // Date the project was created.
  1507. CreatedDate *time.Time `locationName:"createdDate" type:"timestamp"`
  1508. // Date of the last modification of the project.
  1509. LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp"`
  1510. // Name of the project.
  1511. Name *string `locationName:"name" type:"string"`
  1512. // Unique project identifier.
  1513. ProjectId *string `locationName:"projectId" type:"string"`
  1514. // Default region to use for AWS resource creation in the AWS Mobile Hub project.
  1515. Region *string `locationName:"region" type:"string"`
  1516. // List of AWS resources associated with a project.
  1517. Resources []*Resource `locationName:"resources" type:"list"`
  1518. // Synchronization state for a project.
  1519. State *string `locationName:"state" type:"string" enum:"ProjectState"`
  1520. }
  1521. // String returns the string representation
  1522. func (s ProjectDetails) String() string {
  1523. return awsutil.Prettify(s)
  1524. }
  1525. // GoString returns the string representation
  1526. func (s ProjectDetails) GoString() string {
  1527. return s.String()
  1528. }
  1529. // SetConsoleUrl sets the ConsoleUrl field's value.
  1530. func (s *ProjectDetails) SetConsoleUrl(v string) *ProjectDetails {
  1531. s.ConsoleUrl = &v
  1532. return s
  1533. }
  1534. // SetCreatedDate sets the CreatedDate field's value.
  1535. func (s *ProjectDetails) SetCreatedDate(v time.Time) *ProjectDetails {
  1536. s.CreatedDate = &v
  1537. return s
  1538. }
  1539. // SetLastUpdatedDate sets the LastUpdatedDate field's value.
  1540. func (s *ProjectDetails) SetLastUpdatedDate(v time.Time) *ProjectDetails {
  1541. s.LastUpdatedDate = &v
  1542. return s
  1543. }
  1544. // SetName sets the Name field's value.
  1545. func (s *ProjectDetails) SetName(v string) *ProjectDetails {
  1546. s.Name = &v
  1547. return s
  1548. }
  1549. // SetProjectId sets the ProjectId field's value.
  1550. func (s *ProjectDetails) SetProjectId(v string) *ProjectDetails {
  1551. s.ProjectId = &v
  1552. return s
  1553. }
  1554. // SetRegion sets the Region field's value.
  1555. func (s *ProjectDetails) SetRegion(v string) *ProjectDetails {
  1556. s.Region = &v
  1557. return s
  1558. }
  1559. // SetResources sets the Resources field's value.
  1560. func (s *ProjectDetails) SetResources(v []*Resource) *ProjectDetails {
  1561. s.Resources = v
  1562. return s
  1563. }
  1564. // SetState sets the State field's value.
  1565. func (s *ProjectDetails) SetState(v string) *ProjectDetails {
  1566. s.State = &v
  1567. return s
  1568. }
  1569. // Summary information about an AWS Mobile Hub project.
  1570. type ProjectSummary struct {
  1571. _ struct{} `type:"structure"`
  1572. // Name of the project.
  1573. Name *string `locationName:"name" type:"string"`
  1574. // Unique project identifier.
  1575. ProjectId *string `locationName:"projectId" type:"string"`
  1576. }
  1577. // String returns the string representation
  1578. func (s ProjectSummary) String() string {
  1579. return awsutil.Prettify(s)
  1580. }
  1581. // GoString returns the string representation
  1582. func (s ProjectSummary) GoString() string {
  1583. return s.String()
  1584. }
  1585. // SetName sets the Name field's value.
  1586. func (s *ProjectSummary) SetName(v string) *ProjectSummary {
  1587. s.Name = &v
  1588. return s
  1589. }
  1590. // SetProjectId sets the ProjectId field's value.
  1591. func (s *ProjectSummary) SetProjectId(v string) *ProjectSummary {
  1592. s.ProjectId = &v
  1593. return s
  1594. }
  1595. // Information about an instance of an AWS resource associated with a project.
  1596. type Resource struct {
  1597. _ struct{} `type:"structure"`
  1598. // AWS resource name which uniquely identifies the resource in AWS systems.
  1599. Arn *string `locationName:"arn" type:"string"`
  1600. // Key-value attribute pairs.
  1601. Attributes map[string]*string `locationName:"attributes" type:"map"`
  1602. // Identifies which feature in AWS Mobile Hub is associated with this AWS resource.
  1603. Feature *string `locationName:"feature" type:"string"`
  1604. // Name of the AWS resource (e.g., for an Amazon S3 bucket this is the name
  1605. // of the bucket).
  1606. Name *string `locationName:"name" type:"string"`
  1607. // Simplified name for type of AWS resource (e.g., bucket is an Amazon S3 bucket).
  1608. Type *string `locationName:"type" type:"string"`
  1609. }
  1610. // String returns the string representation
  1611. func (s Resource) String() string {
  1612. return awsutil.Prettify(s)
  1613. }
  1614. // GoString returns the string representation
  1615. func (s Resource) GoString() string {
  1616. return s.String()
  1617. }
  1618. // SetArn sets the Arn field's value.
  1619. func (s *Resource) SetArn(v string) *Resource {
  1620. s.Arn = &v
  1621. return s
  1622. }
  1623. // SetAttributes sets the Attributes field's value.
  1624. func (s *Resource) SetAttributes(v map[string]*string) *Resource {
  1625. s.Attributes = v
  1626. return s
  1627. }
  1628. // SetFeature sets the Feature field's value.
  1629. func (s *Resource) SetFeature(v string) *Resource {
  1630. s.Feature = &v
  1631. return s
  1632. }
  1633. // SetName sets the Name field's value.
  1634. func (s *Resource) SetName(v string) *Resource {
  1635. s.Name = &v
  1636. return s
  1637. }
  1638. // SetType sets the Type field's value.
  1639. func (s *Resource) SetType(v string) *Resource {
  1640. s.Type = &v
  1641. return s
  1642. }
  1643. // Request structure used for requests to update project configuration.
  1644. type UpdateProjectInput struct {
  1645. _ struct{} `type:"structure" payload:"Contents"`
  1646. // ZIP or YAML file which contains project configuration to be updated. This
  1647. // should be the contents of the file downloaded from the URL provided in an
  1648. // export project operation.
  1649. Contents []byte `locationName:"contents" type:"blob"`
  1650. // Unique project identifier.
  1651. //
  1652. // ProjectId is a required field
  1653. ProjectId *string `location:"querystring" locationName:"projectId" type:"string" required:"true"`
  1654. }
  1655. // String returns the string representation
  1656. func (s UpdateProjectInput) String() string {
  1657. return awsutil.Prettify(s)
  1658. }
  1659. // GoString returns the string representation
  1660. func (s UpdateProjectInput) GoString() string {
  1661. return s.String()
  1662. }
  1663. // Validate inspects the fields of the type to determine if they are valid.
  1664. func (s *UpdateProjectInput) Validate() error {
  1665. invalidParams := request.ErrInvalidParams{Context: "UpdateProjectInput"}
  1666. if s.ProjectId == nil {
  1667. invalidParams.Add(request.NewErrParamRequired("ProjectId"))
  1668. }
  1669. if invalidParams.Len() > 0 {
  1670. return invalidParams
  1671. }
  1672. return nil
  1673. }
  1674. // SetContents sets the Contents field's value.
  1675. func (s *UpdateProjectInput) SetContents(v []byte) *UpdateProjectInput {
  1676. s.Contents = v
  1677. return s
  1678. }
  1679. // SetProjectId sets the ProjectId field's value.
  1680. func (s *UpdateProjectInput) SetProjectId(v string) *UpdateProjectInput {
  1681. s.ProjectId = &v
  1682. return s
  1683. }
  1684. // Result structure used for requests to updated project configuration.
  1685. type UpdateProjectOutput struct {
  1686. _ struct{} `type:"structure"`
  1687. // Detailed information about the updated AWS Mobile Hub project.
  1688. Details *ProjectDetails `locationName:"details" type:"structure"`
  1689. }
  1690. // String returns the string representation
  1691. func (s UpdateProjectOutput) String() string {
  1692. return awsutil.Prettify(s)
  1693. }
  1694. // GoString returns the string representation
  1695. func (s UpdateProjectOutput) GoString() string {
  1696. return s.String()
  1697. }
  1698. // SetDetails sets the Details field's value.
  1699. func (s *UpdateProjectOutput) SetDetails(v *ProjectDetails) *UpdateProjectOutput {
  1700. s.Details = v
  1701. return s
  1702. }
  1703. // Developer desktop or target mobile app or website platform.
  1704. const (
  1705. // PlatformOsx is a Platform enum value
  1706. PlatformOsx = "OSX"
  1707. // PlatformWindows is a Platform enum value
  1708. PlatformWindows = "WINDOWS"
  1709. // PlatformLinux is a Platform enum value
  1710. PlatformLinux = "LINUX"
  1711. // PlatformObjc is a Platform enum value
  1712. PlatformObjc = "OBJC"
  1713. // PlatformSwift is a Platform enum value
  1714. PlatformSwift = "SWIFT"
  1715. // PlatformAndroid is a Platform enum value
  1716. PlatformAndroid = "ANDROID"
  1717. // PlatformJavascript is a Platform enum value
  1718. PlatformJavascript = "JAVASCRIPT"
  1719. )
  1720. // Synchronization state for a project.
  1721. const (
  1722. // ProjectStateNormal is a ProjectState enum value
  1723. ProjectStateNormal = "NORMAL"
  1724. // ProjectStateSyncing is a ProjectState enum value
  1725. ProjectStateSyncing = "SYNCING"
  1726. // ProjectStateImporting is a ProjectState enum value
  1727. ProjectStateImporting = "IMPORTING"
  1728. )