api.go 62 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819
  1. // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
  2. package eks
  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 opCreateCluster = "CreateCluster"
  10. // CreateClusterRequest generates a "aws/request.Request" representing the
  11. // client's request for the CreateCluster 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 CreateCluster for more information on using the CreateCluster
  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 CreateClusterRequest method.
  26. // req, resp := client.CreateClusterRequest(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/eks-2017-11-01/CreateCluster
  34. func (c *EKS) CreateClusterRequest(input *CreateClusterInput) (req *request.Request, output *CreateClusterOutput) {
  35. op := &request.Operation{
  36. Name: opCreateCluster,
  37. HTTPMethod: "POST",
  38. HTTPPath: "/clusters",
  39. }
  40. if input == nil {
  41. input = &CreateClusterInput{}
  42. }
  43. output = &CreateClusterOutput{}
  44. req = c.newRequest(op, input, output)
  45. return
  46. }
  47. // CreateCluster API operation for Amazon Elastic Container Service for Kubernetes.
  48. //
  49. // Creates an Amazon EKS control plane.
  50. //
  51. // The Amazon EKS control plane consists of control plane instances that run
  52. // the Kubernetes software, like etcd and the API server. The control plane
  53. // runs in an account managed by AWS, and the Kubernetes API is exposed via
  54. // the Amazon EKS API server endpoint.
  55. //
  56. // Amazon EKS worker nodes run in your AWS account and connect to your cluster's
  57. // control plane via the Kubernetes API server endpoint and a certificate file
  58. // that is created for your cluster.
  59. //
  60. // The cluster control plane is provisioned across multiple Availability Zones
  61. // and fronted by an Elastic Load Balancing Network Load Balancer. Amazon EKS
  62. // also provisions elastic network interfaces in your VPC subnets to provide
  63. // connectivity from the control plane instances to the worker nodes (for example,
  64. // to support kubectl exec, logs, and proxy data flows).
  65. //
  66. // After you create an Amazon EKS cluster, you must configure your Kubernetes
  67. // tooling to communicate with the API server and launch worker nodes into your
  68. // cluster. For more information, see Managing Cluster Authentication (http://docs.aws.amazon.com/eks/latest/userguide/managing-auth.html)
  69. // and Launching Amazon EKS Worker Nodes (http://docs.aws.amazon.com/eks/latest/userguide/launch-workers.html)in
  70. // the Amazon EKS User Guide.
  71. //
  72. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  73. // with awserr.Error's Code and Message methods to get detailed information about
  74. // the error.
  75. //
  76. // See the AWS API reference guide for Amazon Elastic Container Service for Kubernetes's
  77. // API operation CreateCluster for usage and error information.
  78. //
  79. // Returned Error Codes:
  80. // * ErrCodeResourceInUseException "ResourceInUseException"
  81. // The specified resource is in use.
  82. //
  83. // * ErrCodeResourceLimitExceededException "ResourceLimitExceededException"
  84. // You have encountered a service limit on the specified resource.
  85. //
  86. // * ErrCodeInvalidParameterException "InvalidParameterException"
  87. // The specified parameter is invalid. Review the available parameters for the
  88. // API request.
  89. //
  90. // * ErrCodeClientException "ClientException"
  91. // These errors are usually caused by a client action. Actions can include using
  92. // an action or resource on behalf of a user that doesn't have permissions to
  93. // use the action or resource or specifying an identifier that is not valid.
  94. //
  95. // * ErrCodeServerException "ServerException"
  96. // These errors are usually caused by a server-side issue.
  97. //
  98. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  99. // The service is unavailable. Back off and retry the operation.
  100. //
  101. // * ErrCodeUnsupportedAvailabilityZoneException "UnsupportedAvailabilityZoneException"
  102. // At least one of your specified cluster subnets is in an Availability Zone
  103. // that does not support Amazon EKS. The exception output specifies the supported
  104. // Availability Zones for your account, from which you can choose subnets for
  105. // your cluster.
  106. //
  107. // See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/CreateCluster
  108. func (c *EKS) CreateCluster(input *CreateClusterInput) (*CreateClusterOutput, error) {
  109. req, out := c.CreateClusterRequest(input)
  110. return out, req.Send()
  111. }
  112. // CreateClusterWithContext is the same as CreateCluster with the addition of
  113. // the ability to pass a context and additional request options.
  114. //
  115. // See CreateCluster for details on how to use this API operation.
  116. //
  117. // The context must be non-nil and will be used for request cancellation. If
  118. // the context is nil a panic will occur. In the future the SDK may create
  119. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  120. // for more information on using Contexts.
  121. func (c *EKS) CreateClusterWithContext(ctx aws.Context, input *CreateClusterInput, opts ...request.Option) (*CreateClusterOutput, error) {
  122. req, out := c.CreateClusterRequest(input)
  123. req.SetContext(ctx)
  124. req.ApplyOptions(opts...)
  125. return out, req.Send()
  126. }
  127. const opDeleteCluster = "DeleteCluster"
  128. // DeleteClusterRequest generates a "aws/request.Request" representing the
  129. // client's request for the DeleteCluster operation. The "output" return
  130. // value will be populated with the request's response once the request completes
  131. // successfully.
  132. //
  133. // Use "Send" method on the returned Request to send the API call to the service.
  134. // the "output" return value is not valid until after Send returns without error.
  135. //
  136. // See DeleteCluster for more information on using the DeleteCluster
  137. // API call, and error handling.
  138. //
  139. // This method is useful when you want to inject custom logic or configuration
  140. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  141. //
  142. //
  143. // // Example sending a request using the DeleteClusterRequest method.
  144. // req, resp := client.DeleteClusterRequest(params)
  145. //
  146. // err := req.Send()
  147. // if err == nil { // resp is now filled
  148. // fmt.Println(resp)
  149. // }
  150. //
  151. // See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DeleteCluster
  152. func (c *EKS) DeleteClusterRequest(input *DeleteClusterInput) (req *request.Request, output *DeleteClusterOutput) {
  153. op := &request.Operation{
  154. Name: opDeleteCluster,
  155. HTTPMethod: "DELETE",
  156. HTTPPath: "/clusters/{name}",
  157. }
  158. if input == nil {
  159. input = &DeleteClusterInput{}
  160. }
  161. output = &DeleteClusterOutput{}
  162. req = c.newRequest(op, input, output)
  163. return
  164. }
  165. // DeleteCluster API operation for Amazon Elastic Container Service for Kubernetes.
  166. //
  167. // Deletes the Amazon EKS cluster control plane.
  168. //
  169. // If you have active services in your cluster that are associated with a load
  170. // balancer, you must delete those services before deleting the cluster so that
  171. // the load balancers are deleted properly. Otherwise, you can have orphaned
  172. // resources in your VPC that prevent you from being able to delete the VPC.
  173. // For more information, see Deleting a Cluster (http://docs.aws.amazon.com/eks/latest/userguide/delete-cluster.html)
  174. // in the Amazon EKS User Guide.
  175. //
  176. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  177. // with awserr.Error's Code and Message methods to get detailed information about
  178. // the error.
  179. //
  180. // See the AWS API reference guide for Amazon Elastic Container Service for Kubernetes's
  181. // API operation DeleteCluster for usage and error information.
  182. //
  183. // Returned Error Codes:
  184. // * ErrCodeResourceInUseException "ResourceInUseException"
  185. // The specified resource is in use.
  186. //
  187. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  188. // The specified resource could not be found. You can view your available clusters
  189. // with ListClusters. Amazon EKS clusters are Region-specific.
  190. //
  191. // * ErrCodeClientException "ClientException"
  192. // These errors are usually caused by a client action. Actions can include using
  193. // an action or resource on behalf of a user that doesn't have permissions to
  194. // use the action or resource or specifying an identifier that is not valid.
  195. //
  196. // * ErrCodeServerException "ServerException"
  197. // These errors are usually caused by a server-side issue.
  198. //
  199. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  200. // The service is unavailable. Back off and retry the operation.
  201. //
  202. // See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DeleteCluster
  203. func (c *EKS) DeleteCluster(input *DeleteClusterInput) (*DeleteClusterOutput, error) {
  204. req, out := c.DeleteClusterRequest(input)
  205. return out, req.Send()
  206. }
  207. // DeleteClusterWithContext is the same as DeleteCluster with the addition of
  208. // the ability to pass a context and additional request options.
  209. //
  210. // See DeleteCluster for details on how to use this API operation.
  211. //
  212. // The context must be non-nil and will be used for request cancellation. If
  213. // the context is nil a panic will occur. In the future the SDK may create
  214. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  215. // for more information on using Contexts.
  216. func (c *EKS) DeleteClusterWithContext(ctx aws.Context, input *DeleteClusterInput, opts ...request.Option) (*DeleteClusterOutput, error) {
  217. req, out := c.DeleteClusterRequest(input)
  218. req.SetContext(ctx)
  219. req.ApplyOptions(opts...)
  220. return out, req.Send()
  221. }
  222. const opDescribeCluster = "DescribeCluster"
  223. // DescribeClusterRequest generates a "aws/request.Request" representing the
  224. // client's request for the DescribeCluster operation. The "output" return
  225. // value will be populated with the request's response once the request completes
  226. // successfully.
  227. //
  228. // Use "Send" method on the returned Request to send the API call to the service.
  229. // the "output" return value is not valid until after Send returns without error.
  230. //
  231. // See DescribeCluster for more information on using the DescribeCluster
  232. // API call, and error handling.
  233. //
  234. // This method is useful when you want to inject custom logic or configuration
  235. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  236. //
  237. //
  238. // // Example sending a request using the DescribeClusterRequest method.
  239. // req, resp := client.DescribeClusterRequest(params)
  240. //
  241. // err := req.Send()
  242. // if err == nil { // resp is now filled
  243. // fmt.Println(resp)
  244. // }
  245. //
  246. // See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DescribeCluster
  247. func (c *EKS) DescribeClusterRequest(input *DescribeClusterInput) (req *request.Request, output *DescribeClusterOutput) {
  248. op := &request.Operation{
  249. Name: opDescribeCluster,
  250. HTTPMethod: "GET",
  251. HTTPPath: "/clusters/{name}",
  252. }
  253. if input == nil {
  254. input = &DescribeClusterInput{}
  255. }
  256. output = &DescribeClusterOutput{}
  257. req = c.newRequest(op, input, output)
  258. return
  259. }
  260. // DescribeCluster API operation for Amazon Elastic Container Service for Kubernetes.
  261. //
  262. // Returns descriptive information about an Amazon EKS cluster.
  263. //
  264. // The API server endpoint and certificate authority data returned by this operation
  265. // are required for kubelet and kubectl to communicate with your Kubernetes
  266. // API server. For more information, see Create a kubeconfig for Amazon EKS
  267. // (http://docs.aws.amazon.com/eks/latest/userguide/create-kubeconfig.html).
  268. //
  269. // The API server endpoint and certificate authority data are not available
  270. // until the cluster reaches the ACTIVE state.
  271. //
  272. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  273. // with awserr.Error's Code and Message methods to get detailed information about
  274. // the error.
  275. //
  276. // See the AWS API reference guide for Amazon Elastic Container Service for Kubernetes's
  277. // API operation DescribeCluster for usage and error information.
  278. //
  279. // Returned Error Codes:
  280. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  281. // The specified resource could not be found. You can view your available clusters
  282. // with ListClusters. Amazon EKS clusters are Region-specific.
  283. //
  284. // * ErrCodeClientException "ClientException"
  285. // These errors are usually caused by a client action. Actions can include using
  286. // an action or resource on behalf of a user that doesn't have permissions to
  287. // use the action or resource or specifying an identifier that is not valid.
  288. //
  289. // * ErrCodeServerException "ServerException"
  290. // These errors are usually caused by a server-side issue.
  291. //
  292. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  293. // The service is unavailable. Back off and retry the operation.
  294. //
  295. // See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DescribeCluster
  296. func (c *EKS) DescribeCluster(input *DescribeClusterInput) (*DescribeClusterOutput, error) {
  297. req, out := c.DescribeClusterRequest(input)
  298. return out, req.Send()
  299. }
  300. // DescribeClusterWithContext is the same as DescribeCluster with the addition of
  301. // the ability to pass a context and additional request options.
  302. //
  303. // See DescribeCluster for details on how to use this API operation.
  304. //
  305. // The context must be non-nil and will be used for request cancellation. If
  306. // the context is nil a panic will occur. In the future the SDK may create
  307. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  308. // for more information on using Contexts.
  309. func (c *EKS) DescribeClusterWithContext(ctx aws.Context, input *DescribeClusterInput, opts ...request.Option) (*DescribeClusterOutput, error) {
  310. req, out := c.DescribeClusterRequest(input)
  311. req.SetContext(ctx)
  312. req.ApplyOptions(opts...)
  313. return out, req.Send()
  314. }
  315. const opDescribeUpdate = "DescribeUpdate"
  316. // DescribeUpdateRequest generates a "aws/request.Request" representing the
  317. // client's request for the DescribeUpdate operation. The "output" return
  318. // value will be populated with the request's response once the request completes
  319. // successfully.
  320. //
  321. // Use "Send" method on the returned Request to send the API call to the service.
  322. // the "output" return value is not valid until after Send returns without error.
  323. //
  324. // See DescribeUpdate for more information on using the DescribeUpdate
  325. // API call, and error handling.
  326. //
  327. // This method is useful when you want to inject custom logic or configuration
  328. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  329. //
  330. //
  331. // // Example sending a request using the DescribeUpdateRequest method.
  332. // req, resp := client.DescribeUpdateRequest(params)
  333. //
  334. // err := req.Send()
  335. // if err == nil { // resp is now filled
  336. // fmt.Println(resp)
  337. // }
  338. //
  339. // See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DescribeUpdate
  340. func (c *EKS) DescribeUpdateRequest(input *DescribeUpdateInput) (req *request.Request, output *DescribeUpdateOutput) {
  341. op := &request.Operation{
  342. Name: opDescribeUpdate,
  343. HTTPMethod: "GET",
  344. HTTPPath: "/clusters/{name}/updates/{updateId}",
  345. }
  346. if input == nil {
  347. input = &DescribeUpdateInput{}
  348. }
  349. output = &DescribeUpdateOutput{}
  350. req = c.newRequest(op, input, output)
  351. return
  352. }
  353. // DescribeUpdate API operation for Amazon Elastic Container Service for Kubernetes.
  354. //
  355. // Returns descriptive information about an update against your Amazon EKS cluster.
  356. //
  357. // When the status of the update is Succeeded, the update is complete. If an
  358. // update fails, the status is Failed, and an error detail explains the reason
  359. // for the failure.
  360. //
  361. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  362. // with awserr.Error's Code and Message methods to get detailed information about
  363. // the error.
  364. //
  365. // See the AWS API reference guide for Amazon Elastic Container Service for Kubernetes's
  366. // API operation DescribeUpdate for usage and error information.
  367. //
  368. // Returned Error Codes:
  369. // * ErrCodeInvalidParameterException "InvalidParameterException"
  370. // The specified parameter is invalid. Review the available parameters for the
  371. // API request.
  372. //
  373. // * ErrCodeClientException "ClientException"
  374. // These errors are usually caused by a client action. Actions can include using
  375. // an action or resource on behalf of a user that doesn't have permissions to
  376. // use the action or resource or specifying an identifier that is not valid.
  377. //
  378. // * ErrCodeServerException "ServerException"
  379. // These errors are usually caused by a server-side issue.
  380. //
  381. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  382. // The specified resource could not be found. You can view your available clusters
  383. // with ListClusters. Amazon EKS clusters are Region-specific.
  384. //
  385. // See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DescribeUpdate
  386. func (c *EKS) DescribeUpdate(input *DescribeUpdateInput) (*DescribeUpdateOutput, error) {
  387. req, out := c.DescribeUpdateRequest(input)
  388. return out, req.Send()
  389. }
  390. // DescribeUpdateWithContext is the same as DescribeUpdate with the addition of
  391. // the ability to pass a context and additional request options.
  392. //
  393. // See DescribeUpdate for details on how to use this API operation.
  394. //
  395. // The context must be non-nil and will be used for request cancellation. If
  396. // the context is nil a panic will occur. In the future the SDK may create
  397. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  398. // for more information on using Contexts.
  399. func (c *EKS) DescribeUpdateWithContext(ctx aws.Context, input *DescribeUpdateInput, opts ...request.Option) (*DescribeUpdateOutput, error) {
  400. req, out := c.DescribeUpdateRequest(input)
  401. req.SetContext(ctx)
  402. req.ApplyOptions(opts...)
  403. return out, req.Send()
  404. }
  405. const opListClusters = "ListClusters"
  406. // ListClustersRequest generates a "aws/request.Request" representing the
  407. // client's request for the ListClusters operation. The "output" return
  408. // value will be populated with the request's response once the request completes
  409. // successfully.
  410. //
  411. // Use "Send" method on the returned Request to send the API call to the service.
  412. // the "output" return value is not valid until after Send returns without error.
  413. //
  414. // See ListClusters for more information on using the ListClusters
  415. // API call, and error handling.
  416. //
  417. // This method is useful when you want to inject custom logic or configuration
  418. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  419. //
  420. //
  421. // // Example sending a request using the ListClustersRequest method.
  422. // req, resp := client.ListClustersRequest(params)
  423. //
  424. // err := req.Send()
  425. // if err == nil { // resp is now filled
  426. // fmt.Println(resp)
  427. // }
  428. //
  429. // See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/ListClusters
  430. func (c *EKS) ListClustersRequest(input *ListClustersInput) (req *request.Request, output *ListClustersOutput) {
  431. op := &request.Operation{
  432. Name: opListClusters,
  433. HTTPMethod: "GET",
  434. HTTPPath: "/clusters",
  435. }
  436. if input == nil {
  437. input = &ListClustersInput{}
  438. }
  439. output = &ListClustersOutput{}
  440. req = c.newRequest(op, input, output)
  441. return
  442. }
  443. // ListClusters API operation for Amazon Elastic Container Service for Kubernetes.
  444. //
  445. // Lists the Amazon EKS clusters in your AWS account in the specified Region.
  446. //
  447. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  448. // with awserr.Error's Code and Message methods to get detailed information about
  449. // the error.
  450. //
  451. // See the AWS API reference guide for Amazon Elastic Container Service for Kubernetes's
  452. // API operation ListClusters for usage and error information.
  453. //
  454. // Returned Error Codes:
  455. // * ErrCodeInvalidParameterException "InvalidParameterException"
  456. // The specified parameter is invalid. Review the available parameters for the
  457. // API request.
  458. //
  459. // * ErrCodeClientException "ClientException"
  460. // These errors are usually caused by a client action. Actions can include using
  461. // an action or resource on behalf of a user that doesn't have permissions to
  462. // use the action or resource or specifying an identifier that is not valid.
  463. //
  464. // * ErrCodeServerException "ServerException"
  465. // These errors are usually caused by a server-side issue.
  466. //
  467. // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
  468. // The service is unavailable. Back off and retry the operation.
  469. //
  470. // See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/ListClusters
  471. func (c *EKS) ListClusters(input *ListClustersInput) (*ListClustersOutput, error) {
  472. req, out := c.ListClustersRequest(input)
  473. return out, req.Send()
  474. }
  475. // ListClustersWithContext is the same as ListClusters with the addition of
  476. // the ability to pass a context and additional request options.
  477. //
  478. // See ListClusters for details on how to use this API operation.
  479. //
  480. // The context must be non-nil and will be used for request cancellation. If
  481. // the context is nil a panic will occur. In the future the SDK may create
  482. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  483. // for more information on using Contexts.
  484. func (c *EKS) ListClustersWithContext(ctx aws.Context, input *ListClustersInput, opts ...request.Option) (*ListClustersOutput, error) {
  485. req, out := c.ListClustersRequest(input)
  486. req.SetContext(ctx)
  487. req.ApplyOptions(opts...)
  488. return out, req.Send()
  489. }
  490. const opListUpdates = "ListUpdates"
  491. // ListUpdatesRequest generates a "aws/request.Request" representing the
  492. // client's request for the ListUpdates operation. The "output" return
  493. // value will be populated with the request's response once the request completes
  494. // successfully.
  495. //
  496. // Use "Send" method on the returned Request to send the API call to the service.
  497. // the "output" return value is not valid until after Send returns without error.
  498. //
  499. // See ListUpdates for more information on using the ListUpdates
  500. // API call, and error handling.
  501. //
  502. // This method is useful when you want to inject custom logic or configuration
  503. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  504. //
  505. //
  506. // // Example sending a request using the ListUpdatesRequest method.
  507. // req, resp := client.ListUpdatesRequest(params)
  508. //
  509. // err := req.Send()
  510. // if err == nil { // resp is now filled
  511. // fmt.Println(resp)
  512. // }
  513. //
  514. // See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/ListUpdates
  515. func (c *EKS) ListUpdatesRequest(input *ListUpdatesInput) (req *request.Request, output *ListUpdatesOutput) {
  516. op := &request.Operation{
  517. Name: opListUpdates,
  518. HTTPMethod: "GET",
  519. HTTPPath: "/clusters/{name}/updates",
  520. }
  521. if input == nil {
  522. input = &ListUpdatesInput{}
  523. }
  524. output = &ListUpdatesOutput{}
  525. req = c.newRequest(op, input, output)
  526. return
  527. }
  528. // ListUpdates API operation for Amazon Elastic Container Service for Kubernetes.
  529. //
  530. // Lists the updates associated with an Amazon EKS cluster in your AWS account,
  531. // in the specified Region.
  532. //
  533. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  534. // with awserr.Error's Code and Message methods to get detailed information about
  535. // the error.
  536. //
  537. // See the AWS API reference guide for Amazon Elastic Container Service for Kubernetes's
  538. // API operation ListUpdates for usage and error information.
  539. //
  540. // Returned Error Codes:
  541. // * ErrCodeInvalidParameterException "InvalidParameterException"
  542. // The specified parameter is invalid. Review the available parameters for the
  543. // API request.
  544. //
  545. // * ErrCodeClientException "ClientException"
  546. // These errors are usually caused by a client action. Actions can include using
  547. // an action or resource on behalf of a user that doesn't have permissions to
  548. // use the action or resource or specifying an identifier that is not valid.
  549. //
  550. // * ErrCodeServerException "ServerException"
  551. // These errors are usually caused by a server-side issue.
  552. //
  553. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  554. // The specified resource could not be found. You can view your available clusters
  555. // with ListClusters. Amazon EKS clusters are Region-specific.
  556. //
  557. // See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/ListUpdates
  558. func (c *EKS) ListUpdates(input *ListUpdatesInput) (*ListUpdatesOutput, error) {
  559. req, out := c.ListUpdatesRequest(input)
  560. return out, req.Send()
  561. }
  562. // ListUpdatesWithContext is the same as ListUpdates with the addition of
  563. // the ability to pass a context and additional request options.
  564. //
  565. // See ListUpdates for details on how to use this API operation.
  566. //
  567. // The context must be non-nil and will be used for request cancellation. If
  568. // the context is nil a panic will occur. In the future the SDK may create
  569. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  570. // for more information on using Contexts.
  571. func (c *EKS) ListUpdatesWithContext(ctx aws.Context, input *ListUpdatesInput, opts ...request.Option) (*ListUpdatesOutput, error) {
  572. req, out := c.ListUpdatesRequest(input)
  573. req.SetContext(ctx)
  574. req.ApplyOptions(opts...)
  575. return out, req.Send()
  576. }
  577. const opUpdateClusterVersion = "UpdateClusterVersion"
  578. // UpdateClusterVersionRequest generates a "aws/request.Request" representing the
  579. // client's request for the UpdateClusterVersion operation. The "output" return
  580. // value will be populated with the request's response once the request completes
  581. // successfully.
  582. //
  583. // Use "Send" method on the returned Request to send the API call to the service.
  584. // the "output" return value is not valid until after Send returns without error.
  585. //
  586. // See UpdateClusterVersion for more information on using the UpdateClusterVersion
  587. // API call, and error handling.
  588. //
  589. // This method is useful when you want to inject custom logic or configuration
  590. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  591. //
  592. //
  593. // // Example sending a request using the UpdateClusterVersionRequest method.
  594. // req, resp := client.UpdateClusterVersionRequest(params)
  595. //
  596. // err := req.Send()
  597. // if err == nil { // resp is now filled
  598. // fmt.Println(resp)
  599. // }
  600. //
  601. // See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/UpdateClusterVersion
  602. func (c *EKS) UpdateClusterVersionRequest(input *UpdateClusterVersionInput) (req *request.Request, output *UpdateClusterVersionOutput) {
  603. op := &request.Operation{
  604. Name: opUpdateClusterVersion,
  605. HTTPMethod: "POST",
  606. HTTPPath: "/clusters/{name}/updates",
  607. }
  608. if input == nil {
  609. input = &UpdateClusterVersionInput{}
  610. }
  611. output = &UpdateClusterVersionOutput{}
  612. req = c.newRequest(op, input, output)
  613. return
  614. }
  615. // UpdateClusterVersion API operation for Amazon Elastic Container Service for Kubernetes.
  616. //
  617. // Updates an Amazon EKS cluster to the specified Kubernetes version. Your cluster
  618. // continues to function during the update. The response output includes an
  619. // update ID that you can use to track the status of your cluster update with
  620. // the DescribeUpdate API operation.
  621. //
  622. // Cluster updates are asynchronous, and they should finish within a few minutes.
  623. // During an update, the cluster status moves to UPDATING (this status transition
  624. // is eventually consistent). When the update is complete (either Failed or
  625. // Successful), the cluster status moves to Active.
  626. //
  627. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  628. // with awserr.Error's Code and Message methods to get detailed information about
  629. // the error.
  630. //
  631. // See the AWS API reference guide for Amazon Elastic Container Service for Kubernetes's
  632. // API operation UpdateClusterVersion for usage and error information.
  633. //
  634. // Returned Error Codes:
  635. // * ErrCodeInvalidParameterException "InvalidParameterException"
  636. // The specified parameter is invalid. Review the available parameters for the
  637. // API request.
  638. //
  639. // * ErrCodeClientException "ClientException"
  640. // These errors are usually caused by a client action. Actions can include using
  641. // an action or resource on behalf of a user that doesn't have permissions to
  642. // use the action or resource or specifying an identifier that is not valid.
  643. //
  644. // * ErrCodeServerException "ServerException"
  645. // These errors are usually caused by a server-side issue.
  646. //
  647. // * ErrCodeResourceInUseException "ResourceInUseException"
  648. // The specified resource is in use.
  649. //
  650. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  651. // The specified resource could not be found. You can view your available clusters
  652. // with ListClusters. Amazon EKS clusters are Region-specific.
  653. //
  654. // * ErrCodeInvalidRequestException "InvalidRequestException"
  655. // The request is invalid given the state of the cluster. Check the state of
  656. // the cluster and the associated operations.
  657. //
  658. // See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/UpdateClusterVersion
  659. func (c *EKS) UpdateClusterVersion(input *UpdateClusterVersionInput) (*UpdateClusterVersionOutput, error) {
  660. req, out := c.UpdateClusterVersionRequest(input)
  661. return out, req.Send()
  662. }
  663. // UpdateClusterVersionWithContext is the same as UpdateClusterVersion with the addition of
  664. // the ability to pass a context and additional request options.
  665. //
  666. // See UpdateClusterVersion for details on how to use this API operation.
  667. //
  668. // The context must be non-nil and will be used for request cancellation. If
  669. // the context is nil a panic will occur. In the future the SDK may create
  670. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  671. // for more information on using Contexts.
  672. func (c *EKS) UpdateClusterVersionWithContext(ctx aws.Context, input *UpdateClusterVersionInput, opts ...request.Option) (*UpdateClusterVersionOutput, error) {
  673. req, out := c.UpdateClusterVersionRequest(input)
  674. req.SetContext(ctx)
  675. req.ApplyOptions(opts...)
  676. return out, req.Send()
  677. }
  678. // An object representing the certificate-authority-data for your cluster.
  679. type Certificate struct {
  680. _ struct{} `type:"structure"`
  681. // The base64 encoded certificate data required to communicate with your cluster.
  682. // Add this to the certificate-authority-data section of the kubeconfig file
  683. // for your cluster.
  684. Data *string `locationName:"data" type:"string"`
  685. }
  686. // String returns the string representation
  687. func (s Certificate) String() string {
  688. return awsutil.Prettify(s)
  689. }
  690. // GoString returns the string representation
  691. func (s Certificate) GoString() string {
  692. return s.String()
  693. }
  694. // SetData sets the Data field's value.
  695. func (s *Certificate) SetData(v string) *Certificate {
  696. s.Data = &v
  697. return s
  698. }
  699. // An object representing an Amazon EKS cluster.
  700. type Cluster struct {
  701. _ struct{} `type:"structure"`
  702. // The Amazon Resource Name (ARN) of the cluster.
  703. Arn *string `locationName:"arn" type:"string"`
  704. // The certificate-authority-data for your cluster.
  705. CertificateAuthority *Certificate `locationName:"certificateAuthority" type:"structure"`
  706. // Unique, case-sensitive identifier that you provide to ensure the idempotency
  707. // of the request.
  708. ClientRequestToken *string `locationName:"clientRequestToken" type:"string"`
  709. // The Unix epoch timestamp in seconds for when the cluster was created.
  710. CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
  711. // The endpoint for your Kubernetes API server.
  712. Endpoint *string `locationName:"endpoint" type:"string"`
  713. // The name of the cluster.
  714. Name *string `locationName:"name" type:"string"`
  715. // The platform version of your Amazon EKS cluster. For more information, see
  716. // Platform Versions (http://docs.aws.amazon.com/eks/latest/userguide/platform-versions.html)
  717. // in the Amazon EKS User Guide.
  718. PlatformVersion *string `locationName:"platformVersion" type:"string"`
  719. // The VPC subnets and security groups used by the cluster control plane. Amazon
  720. // EKS VPC resources have specific requirements to work properly with Kubernetes.
  721. // For more information, see Cluster VPC Considerations (http://docs.aws.amazon.com/eks/latest/userguide/network_reqs.html)
  722. // and Cluster Security Group Considerations (http://docs.aws.amazon.com/eks/latest/userguide/sec-group-reqs.html)
  723. // in the Amazon EKS User Guide.
  724. ResourcesVpcConfig *VpcConfigResponse `locationName:"resourcesVpcConfig" type:"structure"`
  725. // The Amazon Resource Name (ARN) of the IAM role that provides permissions
  726. // for the Kubernetes control plane to make calls to AWS API operations on your
  727. // behalf.
  728. RoleArn *string `locationName:"roleArn" type:"string"`
  729. // The current status of the cluster.
  730. Status *string `locationName:"status" type:"string" enum:"ClusterStatus"`
  731. // The Kubernetes server version for the cluster.
  732. Version *string `locationName:"version" type:"string"`
  733. }
  734. // String returns the string representation
  735. func (s Cluster) String() string {
  736. return awsutil.Prettify(s)
  737. }
  738. // GoString returns the string representation
  739. func (s Cluster) GoString() string {
  740. return s.String()
  741. }
  742. // SetArn sets the Arn field's value.
  743. func (s *Cluster) SetArn(v string) *Cluster {
  744. s.Arn = &v
  745. return s
  746. }
  747. // SetCertificateAuthority sets the CertificateAuthority field's value.
  748. func (s *Cluster) SetCertificateAuthority(v *Certificate) *Cluster {
  749. s.CertificateAuthority = v
  750. return s
  751. }
  752. // SetClientRequestToken sets the ClientRequestToken field's value.
  753. func (s *Cluster) SetClientRequestToken(v string) *Cluster {
  754. s.ClientRequestToken = &v
  755. return s
  756. }
  757. // SetCreatedAt sets the CreatedAt field's value.
  758. func (s *Cluster) SetCreatedAt(v time.Time) *Cluster {
  759. s.CreatedAt = &v
  760. return s
  761. }
  762. // SetEndpoint sets the Endpoint field's value.
  763. func (s *Cluster) SetEndpoint(v string) *Cluster {
  764. s.Endpoint = &v
  765. return s
  766. }
  767. // SetName sets the Name field's value.
  768. func (s *Cluster) SetName(v string) *Cluster {
  769. s.Name = &v
  770. return s
  771. }
  772. // SetPlatformVersion sets the PlatformVersion field's value.
  773. func (s *Cluster) SetPlatformVersion(v string) *Cluster {
  774. s.PlatformVersion = &v
  775. return s
  776. }
  777. // SetResourcesVpcConfig sets the ResourcesVpcConfig field's value.
  778. func (s *Cluster) SetResourcesVpcConfig(v *VpcConfigResponse) *Cluster {
  779. s.ResourcesVpcConfig = v
  780. return s
  781. }
  782. // SetRoleArn sets the RoleArn field's value.
  783. func (s *Cluster) SetRoleArn(v string) *Cluster {
  784. s.RoleArn = &v
  785. return s
  786. }
  787. // SetStatus sets the Status field's value.
  788. func (s *Cluster) SetStatus(v string) *Cluster {
  789. s.Status = &v
  790. return s
  791. }
  792. // SetVersion sets the Version field's value.
  793. func (s *Cluster) SetVersion(v string) *Cluster {
  794. s.Version = &v
  795. return s
  796. }
  797. type CreateClusterInput struct {
  798. _ struct{} `type:"structure"`
  799. // Unique, case-sensitive identifier that you provide to ensure the idempotency
  800. // of the request.
  801. ClientRequestToken *string `locationName:"clientRequestToken" type:"string" idempotencyToken:"true"`
  802. // The unique name to give to your cluster.
  803. //
  804. // Name is a required field
  805. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  806. // The VPC subnets and security groups used by the cluster control plane. Amazon
  807. // EKS VPC resources have specific requirements to work properly with Kubernetes.
  808. // For more information, see Cluster VPC Considerations (http://docs.aws.amazon.com/eks/latest/userguide/network_reqs.html)
  809. // and Cluster Security Group Considerations (http://docs.aws.amazon.com/eks/latest/userguide/sec-group-reqs.html)
  810. // in the Amazon EKS User Guide. You must specify at least two subnets. You
  811. // may specify up to five security groups, but we recommend that you use a dedicated
  812. // security group for your cluster control plane.
  813. //
  814. // ResourcesVpcConfig is a required field
  815. ResourcesVpcConfig *VpcConfigRequest `locationName:"resourcesVpcConfig" type:"structure" required:"true"`
  816. // The Amazon Resource Name (ARN) of the IAM role that provides permissions
  817. // for Amazon EKS to make calls to other AWS API operations on your behalf.
  818. // For more information, see Amazon EKS Service IAM Role (http://docs.aws.amazon.com/eks/latest/userguide/service_IAM_role.html)
  819. // in the Amazon EKS User Guide.
  820. //
  821. // RoleArn is a required field
  822. RoleArn *string `locationName:"roleArn" type:"string" required:"true"`
  823. // The desired Kubernetes version for your cluster. If you do not specify a
  824. // value here, the latest version available in Amazon EKS is used.
  825. Version *string `locationName:"version" type:"string"`
  826. }
  827. // String returns the string representation
  828. func (s CreateClusterInput) String() string {
  829. return awsutil.Prettify(s)
  830. }
  831. // GoString returns the string representation
  832. func (s CreateClusterInput) GoString() string {
  833. return s.String()
  834. }
  835. // Validate inspects the fields of the type to determine if they are valid.
  836. func (s *CreateClusterInput) Validate() error {
  837. invalidParams := request.ErrInvalidParams{Context: "CreateClusterInput"}
  838. if s.Name == nil {
  839. invalidParams.Add(request.NewErrParamRequired("Name"))
  840. }
  841. if s.Name != nil && len(*s.Name) < 1 {
  842. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  843. }
  844. if s.ResourcesVpcConfig == nil {
  845. invalidParams.Add(request.NewErrParamRequired("ResourcesVpcConfig"))
  846. }
  847. if s.RoleArn == nil {
  848. invalidParams.Add(request.NewErrParamRequired("RoleArn"))
  849. }
  850. if s.ResourcesVpcConfig != nil {
  851. if err := s.ResourcesVpcConfig.Validate(); err != nil {
  852. invalidParams.AddNested("ResourcesVpcConfig", err.(request.ErrInvalidParams))
  853. }
  854. }
  855. if invalidParams.Len() > 0 {
  856. return invalidParams
  857. }
  858. return nil
  859. }
  860. // SetClientRequestToken sets the ClientRequestToken field's value.
  861. func (s *CreateClusterInput) SetClientRequestToken(v string) *CreateClusterInput {
  862. s.ClientRequestToken = &v
  863. return s
  864. }
  865. // SetName sets the Name field's value.
  866. func (s *CreateClusterInput) SetName(v string) *CreateClusterInput {
  867. s.Name = &v
  868. return s
  869. }
  870. // SetResourcesVpcConfig sets the ResourcesVpcConfig field's value.
  871. func (s *CreateClusterInput) SetResourcesVpcConfig(v *VpcConfigRequest) *CreateClusterInput {
  872. s.ResourcesVpcConfig = v
  873. return s
  874. }
  875. // SetRoleArn sets the RoleArn field's value.
  876. func (s *CreateClusterInput) SetRoleArn(v string) *CreateClusterInput {
  877. s.RoleArn = &v
  878. return s
  879. }
  880. // SetVersion sets the Version field's value.
  881. func (s *CreateClusterInput) SetVersion(v string) *CreateClusterInput {
  882. s.Version = &v
  883. return s
  884. }
  885. type CreateClusterOutput struct {
  886. _ struct{} `type:"structure"`
  887. // The full description of your new cluster.
  888. Cluster *Cluster `locationName:"cluster" type:"structure"`
  889. }
  890. // String returns the string representation
  891. func (s CreateClusterOutput) String() string {
  892. return awsutil.Prettify(s)
  893. }
  894. // GoString returns the string representation
  895. func (s CreateClusterOutput) GoString() string {
  896. return s.String()
  897. }
  898. // SetCluster sets the Cluster field's value.
  899. func (s *CreateClusterOutput) SetCluster(v *Cluster) *CreateClusterOutput {
  900. s.Cluster = v
  901. return s
  902. }
  903. type DeleteClusterInput struct {
  904. _ struct{} `type:"structure"`
  905. // The name of the cluster to delete.
  906. //
  907. // Name is a required field
  908. Name *string `location:"uri" locationName:"name" type:"string" required:"true"`
  909. }
  910. // String returns the string representation
  911. func (s DeleteClusterInput) String() string {
  912. return awsutil.Prettify(s)
  913. }
  914. // GoString returns the string representation
  915. func (s DeleteClusterInput) GoString() string {
  916. return s.String()
  917. }
  918. // Validate inspects the fields of the type to determine if they are valid.
  919. func (s *DeleteClusterInput) Validate() error {
  920. invalidParams := request.ErrInvalidParams{Context: "DeleteClusterInput"}
  921. if s.Name == nil {
  922. invalidParams.Add(request.NewErrParamRequired("Name"))
  923. }
  924. if s.Name != nil && len(*s.Name) < 1 {
  925. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  926. }
  927. if invalidParams.Len() > 0 {
  928. return invalidParams
  929. }
  930. return nil
  931. }
  932. // SetName sets the Name field's value.
  933. func (s *DeleteClusterInput) SetName(v string) *DeleteClusterInput {
  934. s.Name = &v
  935. return s
  936. }
  937. type DeleteClusterOutput struct {
  938. _ struct{} `type:"structure"`
  939. // The full description of the cluster to delete.
  940. Cluster *Cluster `locationName:"cluster" type:"structure"`
  941. }
  942. // String returns the string representation
  943. func (s DeleteClusterOutput) String() string {
  944. return awsutil.Prettify(s)
  945. }
  946. // GoString returns the string representation
  947. func (s DeleteClusterOutput) GoString() string {
  948. return s.String()
  949. }
  950. // SetCluster sets the Cluster field's value.
  951. func (s *DeleteClusterOutput) SetCluster(v *Cluster) *DeleteClusterOutput {
  952. s.Cluster = v
  953. return s
  954. }
  955. type DescribeClusterInput struct {
  956. _ struct{} `type:"structure"`
  957. // The name of the cluster to describe.
  958. //
  959. // Name is a required field
  960. Name *string `location:"uri" locationName:"name" type:"string" required:"true"`
  961. }
  962. // String returns the string representation
  963. func (s DescribeClusterInput) String() string {
  964. return awsutil.Prettify(s)
  965. }
  966. // GoString returns the string representation
  967. func (s DescribeClusterInput) GoString() string {
  968. return s.String()
  969. }
  970. // Validate inspects the fields of the type to determine if they are valid.
  971. func (s *DescribeClusterInput) Validate() error {
  972. invalidParams := request.ErrInvalidParams{Context: "DescribeClusterInput"}
  973. if s.Name == nil {
  974. invalidParams.Add(request.NewErrParamRequired("Name"))
  975. }
  976. if s.Name != nil && len(*s.Name) < 1 {
  977. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  978. }
  979. if invalidParams.Len() > 0 {
  980. return invalidParams
  981. }
  982. return nil
  983. }
  984. // SetName sets the Name field's value.
  985. func (s *DescribeClusterInput) SetName(v string) *DescribeClusterInput {
  986. s.Name = &v
  987. return s
  988. }
  989. type DescribeClusterOutput struct {
  990. _ struct{} `type:"structure"`
  991. // The full description of your specified cluster.
  992. Cluster *Cluster `locationName:"cluster" type:"structure"`
  993. }
  994. // String returns the string representation
  995. func (s DescribeClusterOutput) String() string {
  996. return awsutil.Prettify(s)
  997. }
  998. // GoString returns the string representation
  999. func (s DescribeClusterOutput) GoString() string {
  1000. return s.String()
  1001. }
  1002. // SetCluster sets the Cluster field's value.
  1003. func (s *DescribeClusterOutput) SetCluster(v *Cluster) *DescribeClusterOutput {
  1004. s.Cluster = v
  1005. return s
  1006. }
  1007. type DescribeUpdateInput struct {
  1008. _ struct{} `type:"structure"`
  1009. // The name of the Amazon EKS cluster to update.
  1010. //
  1011. // Name is a required field
  1012. Name *string `location:"uri" locationName:"name" type:"string" required:"true"`
  1013. // The ID of the update to describe.
  1014. //
  1015. // UpdateId is a required field
  1016. UpdateId *string `location:"uri" locationName:"updateId" type:"string" required:"true"`
  1017. }
  1018. // String returns the string representation
  1019. func (s DescribeUpdateInput) String() string {
  1020. return awsutil.Prettify(s)
  1021. }
  1022. // GoString returns the string representation
  1023. func (s DescribeUpdateInput) GoString() string {
  1024. return s.String()
  1025. }
  1026. // Validate inspects the fields of the type to determine if they are valid.
  1027. func (s *DescribeUpdateInput) Validate() error {
  1028. invalidParams := request.ErrInvalidParams{Context: "DescribeUpdateInput"}
  1029. if s.Name == nil {
  1030. invalidParams.Add(request.NewErrParamRequired("Name"))
  1031. }
  1032. if s.Name != nil && len(*s.Name) < 1 {
  1033. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  1034. }
  1035. if s.UpdateId == nil {
  1036. invalidParams.Add(request.NewErrParamRequired("UpdateId"))
  1037. }
  1038. if s.UpdateId != nil && len(*s.UpdateId) < 1 {
  1039. invalidParams.Add(request.NewErrParamMinLen("UpdateId", 1))
  1040. }
  1041. if invalidParams.Len() > 0 {
  1042. return invalidParams
  1043. }
  1044. return nil
  1045. }
  1046. // SetName sets the Name field's value.
  1047. func (s *DescribeUpdateInput) SetName(v string) *DescribeUpdateInput {
  1048. s.Name = &v
  1049. return s
  1050. }
  1051. // SetUpdateId sets the UpdateId field's value.
  1052. func (s *DescribeUpdateInput) SetUpdateId(v string) *DescribeUpdateInput {
  1053. s.UpdateId = &v
  1054. return s
  1055. }
  1056. type DescribeUpdateOutput struct {
  1057. _ struct{} `type:"structure"`
  1058. // The full description of the specified update.
  1059. Update *Update `locationName:"update" type:"structure"`
  1060. }
  1061. // String returns the string representation
  1062. func (s DescribeUpdateOutput) String() string {
  1063. return awsutil.Prettify(s)
  1064. }
  1065. // GoString returns the string representation
  1066. func (s DescribeUpdateOutput) GoString() string {
  1067. return s.String()
  1068. }
  1069. // SetUpdate sets the Update field's value.
  1070. func (s *DescribeUpdateOutput) SetUpdate(v *Update) *DescribeUpdateOutput {
  1071. s.Update = v
  1072. return s
  1073. }
  1074. // An object representing an error when an asynchronous operation fails.
  1075. type ErrorDetail struct {
  1076. _ struct{} `type:"structure"`
  1077. // A brief description of the error.
  1078. //
  1079. // * SubnetNotFound: One of the subnets associated with the cluster could
  1080. // not be found.
  1081. //
  1082. // * SecurityGroupNotFound: One of the security groups associated with the
  1083. // cluster could not be found.
  1084. //
  1085. // * EniLimitReached: You have reached the elastic network interface limit
  1086. // for your account.
  1087. //
  1088. // * IpNotAvailable: A subnet associated with the cluster does not have any
  1089. // free IP addresses.
  1090. //
  1091. // * AccessDenied: You do not have permissions to perform the specified operation.
  1092. //
  1093. // * OperationNotPermitted: The service role associated with the cluster
  1094. // does not have the required access permissions for Amazon EKS.
  1095. //
  1096. // * VpcIdNotFound: The VPC associated with the cluster could not be found.
  1097. ErrorCode *string `locationName:"errorCode" type:"string" enum:"ErrorCode"`
  1098. // A more complete description of the error.
  1099. ErrorMessage *string `locationName:"errorMessage" type:"string"`
  1100. // An optional field that contains the resource IDs associated with the error.
  1101. ResourceIds []*string `locationName:"resourceIds" type:"list"`
  1102. }
  1103. // String returns the string representation
  1104. func (s ErrorDetail) String() string {
  1105. return awsutil.Prettify(s)
  1106. }
  1107. // GoString returns the string representation
  1108. func (s ErrorDetail) GoString() string {
  1109. return s.String()
  1110. }
  1111. // SetErrorCode sets the ErrorCode field's value.
  1112. func (s *ErrorDetail) SetErrorCode(v string) *ErrorDetail {
  1113. s.ErrorCode = &v
  1114. return s
  1115. }
  1116. // SetErrorMessage sets the ErrorMessage field's value.
  1117. func (s *ErrorDetail) SetErrorMessage(v string) *ErrorDetail {
  1118. s.ErrorMessage = &v
  1119. return s
  1120. }
  1121. // SetResourceIds sets the ResourceIds field's value.
  1122. func (s *ErrorDetail) SetResourceIds(v []*string) *ErrorDetail {
  1123. s.ResourceIds = v
  1124. return s
  1125. }
  1126. type ListClustersInput struct {
  1127. _ struct{} `type:"structure"`
  1128. // The maximum number of cluster results returned by ListClusters in paginated
  1129. // output. When this parameter is used, ListClusters only returns maxResults
  1130. // results in a single page along with a nextToken response element. The remaining
  1131. // results of the initial request can be seen by sending another ListClusters
  1132. // request with the returned nextToken value. This value can be between 1 and
  1133. // 100. If this parameter is not used, then ListClusters returns up to 100 results
  1134. // and a nextToken value if applicable.
  1135. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
  1136. // The nextToken value returned from a previous paginated ListClusters request
  1137. // where maxResults was used and the results exceeded the value of that parameter.
  1138. // Pagination continues from the end of the previous results that returned the
  1139. // nextToken value.
  1140. //
  1141. // This token should be treated as an opaque identifier that is only used to
  1142. // retrieve the next items in a list and not for other programmatic purposes.
  1143. NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
  1144. }
  1145. // String returns the string representation
  1146. func (s ListClustersInput) String() string {
  1147. return awsutil.Prettify(s)
  1148. }
  1149. // GoString returns the string representation
  1150. func (s ListClustersInput) GoString() string {
  1151. return s.String()
  1152. }
  1153. // Validate inspects the fields of the type to determine if they are valid.
  1154. func (s *ListClustersInput) Validate() error {
  1155. invalidParams := request.ErrInvalidParams{Context: "ListClustersInput"}
  1156. if s.MaxResults != nil && *s.MaxResults < 1 {
  1157. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  1158. }
  1159. if invalidParams.Len() > 0 {
  1160. return invalidParams
  1161. }
  1162. return nil
  1163. }
  1164. // SetMaxResults sets the MaxResults field's value.
  1165. func (s *ListClustersInput) SetMaxResults(v int64) *ListClustersInput {
  1166. s.MaxResults = &v
  1167. return s
  1168. }
  1169. // SetNextToken sets the NextToken field's value.
  1170. func (s *ListClustersInput) SetNextToken(v string) *ListClustersInput {
  1171. s.NextToken = &v
  1172. return s
  1173. }
  1174. type ListClustersOutput struct {
  1175. _ struct{} `type:"structure"`
  1176. // A list of all of the clusters for your account in the specified Region.
  1177. Clusters []*string `locationName:"clusters" type:"list"`
  1178. // The nextToken value to include in a future ListClusters request. When the
  1179. // results of a ListClusters request exceed maxResults, this value can be used
  1180. // to retrieve the next page of results. This value is null when there are no
  1181. // more results to return.
  1182. NextToken *string `locationName:"nextToken" type:"string"`
  1183. }
  1184. // String returns the string representation
  1185. func (s ListClustersOutput) String() string {
  1186. return awsutil.Prettify(s)
  1187. }
  1188. // GoString returns the string representation
  1189. func (s ListClustersOutput) GoString() string {
  1190. return s.String()
  1191. }
  1192. // SetClusters sets the Clusters field's value.
  1193. func (s *ListClustersOutput) SetClusters(v []*string) *ListClustersOutput {
  1194. s.Clusters = v
  1195. return s
  1196. }
  1197. // SetNextToken sets the NextToken field's value.
  1198. func (s *ListClustersOutput) SetNextToken(v string) *ListClustersOutput {
  1199. s.NextToken = &v
  1200. return s
  1201. }
  1202. type ListUpdatesInput struct {
  1203. _ struct{} `type:"structure"`
  1204. // The maximum number of update results returned by ListUpdates in paginated
  1205. // output. When this parameter is used, ListUpdates only returns maxResults
  1206. // results in a single page along with a nextToken response element. The remaining
  1207. // results of the initial request can be seen by sending another ListUpdates
  1208. // request with the returned nextToken value. This value can be between 1 and
  1209. // 100. If this parameter is not used, then ListUpdates returns up to 100 results
  1210. // and a nextToken value if applicable.
  1211. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
  1212. // The name of the Amazon EKS cluster for which to list updates.
  1213. //
  1214. // Name is a required field
  1215. Name *string `location:"uri" locationName:"name" type:"string" required:"true"`
  1216. // The nextToken value returned from a previous paginated ListUpdates request
  1217. // where maxResults was used and the results exceeded the value of that parameter.
  1218. // Pagination continues from the end of the previous results that returned the
  1219. // nextToken value.
  1220. NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
  1221. }
  1222. // String returns the string representation
  1223. func (s ListUpdatesInput) String() string {
  1224. return awsutil.Prettify(s)
  1225. }
  1226. // GoString returns the string representation
  1227. func (s ListUpdatesInput) GoString() string {
  1228. return s.String()
  1229. }
  1230. // Validate inspects the fields of the type to determine if they are valid.
  1231. func (s *ListUpdatesInput) Validate() error {
  1232. invalidParams := request.ErrInvalidParams{Context: "ListUpdatesInput"}
  1233. if s.MaxResults != nil && *s.MaxResults < 1 {
  1234. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  1235. }
  1236. if s.Name == nil {
  1237. invalidParams.Add(request.NewErrParamRequired("Name"))
  1238. }
  1239. if s.Name != nil && len(*s.Name) < 1 {
  1240. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  1241. }
  1242. if invalidParams.Len() > 0 {
  1243. return invalidParams
  1244. }
  1245. return nil
  1246. }
  1247. // SetMaxResults sets the MaxResults field's value.
  1248. func (s *ListUpdatesInput) SetMaxResults(v int64) *ListUpdatesInput {
  1249. s.MaxResults = &v
  1250. return s
  1251. }
  1252. // SetName sets the Name field's value.
  1253. func (s *ListUpdatesInput) SetName(v string) *ListUpdatesInput {
  1254. s.Name = &v
  1255. return s
  1256. }
  1257. // SetNextToken sets the NextToken field's value.
  1258. func (s *ListUpdatesInput) SetNextToken(v string) *ListUpdatesInput {
  1259. s.NextToken = &v
  1260. return s
  1261. }
  1262. type ListUpdatesOutput struct {
  1263. _ struct{} `type:"structure"`
  1264. // The nextToken value to include in a future ListUpdates request. When the
  1265. // results of a ListUpdates request exceed maxResults, this value can be used
  1266. // to retrieve the next page of results. This value is null when there are no
  1267. // more results to return.
  1268. NextToken *string `locationName:"nextToken" type:"string"`
  1269. // A list of all the updates for the specified cluster and Region.
  1270. UpdateIds []*string `locationName:"updateIds" type:"list"`
  1271. }
  1272. // String returns the string representation
  1273. func (s ListUpdatesOutput) String() string {
  1274. return awsutil.Prettify(s)
  1275. }
  1276. // GoString returns the string representation
  1277. func (s ListUpdatesOutput) GoString() string {
  1278. return s.String()
  1279. }
  1280. // SetNextToken sets the NextToken field's value.
  1281. func (s *ListUpdatesOutput) SetNextToken(v string) *ListUpdatesOutput {
  1282. s.NextToken = &v
  1283. return s
  1284. }
  1285. // SetUpdateIds sets the UpdateIds field's value.
  1286. func (s *ListUpdatesOutput) SetUpdateIds(v []*string) *ListUpdatesOutput {
  1287. s.UpdateIds = v
  1288. return s
  1289. }
  1290. // An object representing an asynchronous update.
  1291. type Update struct {
  1292. _ struct{} `type:"structure"`
  1293. // The Unix epoch timestamp in seconds for when the update was created.
  1294. CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
  1295. // Any errors associated with a Failed update.
  1296. Errors []*ErrorDetail `locationName:"errors" type:"list"`
  1297. // A UUID that is used to track the update.
  1298. Id *string `locationName:"id" type:"string"`
  1299. // A key-value map that contains the parameters associated with the update.
  1300. Params []*UpdateParam `locationName:"params" type:"list"`
  1301. // The current status of the update.
  1302. Status *string `locationName:"status" type:"string" enum:"UpdateStatus"`
  1303. // The type of the update.
  1304. Type *string `locationName:"type" type:"string" enum:"UpdateType"`
  1305. }
  1306. // String returns the string representation
  1307. func (s Update) String() string {
  1308. return awsutil.Prettify(s)
  1309. }
  1310. // GoString returns the string representation
  1311. func (s Update) GoString() string {
  1312. return s.String()
  1313. }
  1314. // SetCreatedAt sets the CreatedAt field's value.
  1315. func (s *Update) SetCreatedAt(v time.Time) *Update {
  1316. s.CreatedAt = &v
  1317. return s
  1318. }
  1319. // SetErrors sets the Errors field's value.
  1320. func (s *Update) SetErrors(v []*ErrorDetail) *Update {
  1321. s.Errors = v
  1322. return s
  1323. }
  1324. // SetId sets the Id field's value.
  1325. func (s *Update) SetId(v string) *Update {
  1326. s.Id = &v
  1327. return s
  1328. }
  1329. // SetParams sets the Params field's value.
  1330. func (s *Update) SetParams(v []*UpdateParam) *Update {
  1331. s.Params = v
  1332. return s
  1333. }
  1334. // SetStatus sets the Status field's value.
  1335. func (s *Update) SetStatus(v string) *Update {
  1336. s.Status = &v
  1337. return s
  1338. }
  1339. // SetType sets the Type field's value.
  1340. func (s *Update) SetType(v string) *Update {
  1341. s.Type = &v
  1342. return s
  1343. }
  1344. type UpdateClusterVersionInput struct {
  1345. _ struct{} `type:"structure"`
  1346. // Unique, case-sensitive identifier that you provide to ensure the idempotency
  1347. // of the request.
  1348. ClientRequestToken *string `locationName:"clientRequestToken" type:"string" idempotencyToken:"true"`
  1349. // The name of the Amazon EKS cluster to update.
  1350. //
  1351. // Name is a required field
  1352. Name *string `location:"uri" locationName:"name" type:"string" required:"true"`
  1353. // The desired Kubernetes version following a successful update.
  1354. //
  1355. // Version is a required field
  1356. Version *string `locationName:"version" type:"string" required:"true"`
  1357. }
  1358. // String returns the string representation
  1359. func (s UpdateClusterVersionInput) String() string {
  1360. return awsutil.Prettify(s)
  1361. }
  1362. // GoString returns the string representation
  1363. func (s UpdateClusterVersionInput) GoString() string {
  1364. return s.String()
  1365. }
  1366. // Validate inspects the fields of the type to determine if they are valid.
  1367. func (s *UpdateClusterVersionInput) Validate() error {
  1368. invalidParams := request.ErrInvalidParams{Context: "UpdateClusterVersionInput"}
  1369. if s.Name == nil {
  1370. invalidParams.Add(request.NewErrParamRequired("Name"))
  1371. }
  1372. if s.Name != nil && len(*s.Name) < 1 {
  1373. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  1374. }
  1375. if s.Version == nil {
  1376. invalidParams.Add(request.NewErrParamRequired("Version"))
  1377. }
  1378. if invalidParams.Len() > 0 {
  1379. return invalidParams
  1380. }
  1381. return nil
  1382. }
  1383. // SetClientRequestToken sets the ClientRequestToken field's value.
  1384. func (s *UpdateClusterVersionInput) SetClientRequestToken(v string) *UpdateClusterVersionInput {
  1385. s.ClientRequestToken = &v
  1386. return s
  1387. }
  1388. // SetName sets the Name field's value.
  1389. func (s *UpdateClusterVersionInput) SetName(v string) *UpdateClusterVersionInput {
  1390. s.Name = &v
  1391. return s
  1392. }
  1393. // SetVersion sets the Version field's value.
  1394. func (s *UpdateClusterVersionInput) SetVersion(v string) *UpdateClusterVersionInput {
  1395. s.Version = &v
  1396. return s
  1397. }
  1398. type UpdateClusterVersionOutput struct {
  1399. _ struct{} `type:"structure"`
  1400. // The full description of the specified update
  1401. Update *Update `locationName:"update" type:"structure"`
  1402. }
  1403. // String returns the string representation
  1404. func (s UpdateClusterVersionOutput) String() string {
  1405. return awsutil.Prettify(s)
  1406. }
  1407. // GoString returns the string representation
  1408. func (s UpdateClusterVersionOutput) GoString() string {
  1409. return s.String()
  1410. }
  1411. // SetUpdate sets the Update field's value.
  1412. func (s *UpdateClusterVersionOutput) SetUpdate(v *Update) *UpdateClusterVersionOutput {
  1413. s.Update = v
  1414. return s
  1415. }
  1416. // An object representing the details of an update request.
  1417. type UpdateParam struct {
  1418. _ struct{} `type:"structure"`
  1419. // The keys associated with an update request.
  1420. Type *string `locationName:"type" type:"string" enum:"UpdateParamType"`
  1421. // The value of the keys submitted as part of an update request.
  1422. Value *string `locationName:"value" type:"string"`
  1423. }
  1424. // String returns the string representation
  1425. func (s UpdateParam) String() string {
  1426. return awsutil.Prettify(s)
  1427. }
  1428. // GoString returns the string representation
  1429. func (s UpdateParam) GoString() string {
  1430. return s.String()
  1431. }
  1432. // SetType sets the Type field's value.
  1433. func (s *UpdateParam) SetType(v string) *UpdateParam {
  1434. s.Type = &v
  1435. return s
  1436. }
  1437. // SetValue sets the Value field's value.
  1438. func (s *UpdateParam) SetValue(v string) *UpdateParam {
  1439. s.Value = &v
  1440. return s
  1441. }
  1442. // An object representing an Amazon EKS cluster VPC configuration request.
  1443. type VpcConfigRequest struct {
  1444. _ struct{} `type:"structure"`
  1445. // Specify one or more security groups for the cross-account elastic network
  1446. // interfaces that Amazon EKS creates to use to allow communication between
  1447. // your worker nodes and the Kubernetes control plane. If you do not specify
  1448. // a security group, the default security group for your VPC is used.
  1449. SecurityGroupIds []*string `locationName:"securityGroupIds" type:"list"`
  1450. // Specify subnets for your Amazon EKS worker nodes. Amazon EKS creates cross-account
  1451. // elastic network interfaces in these subnets to allow communication between
  1452. // your worker nodes and the Kubernetes control plane.
  1453. //
  1454. // SubnetIds is a required field
  1455. SubnetIds []*string `locationName:"subnetIds" type:"list" required:"true"`
  1456. }
  1457. // String returns the string representation
  1458. func (s VpcConfigRequest) String() string {
  1459. return awsutil.Prettify(s)
  1460. }
  1461. // GoString returns the string representation
  1462. func (s VpcConfigRequest) GoString() string {
  1463. return s.String()
  1464. }
  1465. // Validate inspects the fields of the type to determine if they are valid.
  1466. func (s *VpcConfigRequest) Validate() error {
  1467. invalidParams := request.ErrInvalidParams{Context: "VpcConfigRequest"}
  1468. if s.SubnetIds == nil {
  1469. invalidParams.Add(request.NewErrParamRequired("SubnetIds"))
  1470. }
  1471. if invalidParams.Len() > 0 {
  1472. return invalidParams
  1473. }
  1474. return nil
  1475. }
  1476. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  1477. func (s *VpcConfigRequest) SetSecurityGroupIds(v []*string) *VpcConfigRequest {
  1478. s.SecurityGroupIds = v
  1479. return s
  1480. }
  1481. // SetSubnetIds sets the SubnetIds field's value.
  1482. func (s *VpcConfigRequest) SetSubnetIds(v []*string) *VpcConfigRequest {
  1483. s.SubnetIds = v
  1484. return s
  1485. }
  1486. // An object representing an Amazon EKS cluster VPC configuration response.
  1487. type VpcConfigResponse struct {
  1488. _ struct{} `type:"structure"`
  1489. // The security groups associated with the cross-account elastic network interfaces
  1490. // that are used to allow communication between your worker nodes and the Kubernetes
  1491. // control plane.
  1492. SecurityGroupIds []*string `locationName:"securityGroupIds" type:"list"`
  1493. // The subnets associated with your cluster.
  1494. SubnetIds []*string `locationName:"subnetIds" type:"list"`
  1495. // The VPC associated with your cluster.
  1496. VpcId *string `locationName:"vpcId" type:"string"`
  1497. }
  1498. // String returns the string representation
  1499. func (s VpcConfigResponse) String() string {
  1500. return awsutil.Prettify(s)
  1501. }
  1502. // GoString returns the string representation
  1503. func (s VpcConfigResponse) GoString() string {
  1504. return s.String()
  1505. }
  1506. // SetSecurityGroupIds sets the SecurityGroupIds field's value.
  1507. func (s *VpcConfigResponse) SetSecurityGroupIds(v []*string) *VpcConfigResponse {
  1508. s.SecurityGroupIds = v
  1509. return s
  1510. }
  1511. // SetSubnetIds sets the SubnetIds field's value.
  1512. func (s *VpcConfigResponse) SetSubnetIds(v []*string) *VpcConfigResponse {
  1513. s.SubnetIds = v
  1514. return s
  1515. }
  1516. // SetVpcId sets the VpcId field's value.
  1517. func (s *VpcConfigResponse) SetVpcId(v string) *VpcConfigResponse {
  1518. s.VpcId = &v
  1519. return s
  1520. }
  1521. const (
  1522. // ClusterStatusCreating is a ClusterStatus enum value
  1523. ClusterStatusCreating = "CREATING"
  1524. // ClusterStatusActive is a ClusterStatus enum value
  1525. ClusterStatusActive = "ACTIVE"
  1526. // ClusterStatusDeleting is a ClusterStatus enum value
  1527. ClusterStatusDeleting = "DELETING"
  1528. // ClusterStatusFailed is a ClusterStatus enum value
  1529. ClusterStatusFailed = "FAILED"
  1530. )
  1531. const (
  1532. // ErrorCodeSubnetNotFound is a ErrorCode enum value
  1533. ErrorCodeSubnetNotFound = "SubnetNotFound"
  1534. // ErrorCodeSecurityGroupNotFound is a ErrorCode enum value
  1535. ErrorCodeSecurityGroupNotFound = "SecurityGroupNotFound"
  1536. // ErrorCodeEniLimitReached is a ErrorCode enum value
  1537. ErrorCodeEniLimitReached = "EniLimitReached"
  1538. // ErrorCodeIpNotAvailable is a ErrorCode enum value
  1539. ErrorCodeIpNotAvailable = "IpNotAvailable"
  1540. // ErrorCodeAccessDenied is a ErrorCode enum value
  1541. ErrorCodeAccessDenied = "AccessDenied"
  1542. // ErrorCodeOperationNotPermitted is a ErrorCode enum value
  1543. ErrorCodeOperationNotPermitted = "OperationNotPermitted"
  1544. // ErrorCodeVpcIdNotFound is a ErrorCode enum value
  1545. ErrorCodeVpcIdNotFound = "VpcIdNotFound"
  1546. // ErrorCodeUnknown is a ErrorCode enum value
  1547. ErrorCodeUnknown = "Unknown"
  1548. )
  1549. const (
  1550. // UpdateParamTypeVersion is a UpdateParamType enum value
  1551. UpdateParamTypeVersion = "Version"
  1552. // UpdateParamTypePlatformVersion is a UpdateParamType enum value
  1553. UpdateParamTypePlatformVersion = "PlatformVersion"
  1554. )
  1555. const (
  1556. // UpdateStatusInProgress is a UpdateStatus enum value
  1557. UpdateStatusInProgress = "InProgress"
  1558. // UpdateStatusFailed is a UpdateStatus enum value
  1559. UpdateStatusFailed = "Failed"
  1560. // UpdateStatusCancelled is a UpdateStatus enum value
  1561. UpdateStatusCancelled = "Cancelled"
  1562. // UpdateStatusSuccessful is a UpdateStatus enum value
  1563. UpdateStatusSuccessful = "Successful"
  1564. )
  1565. const (
  1566. // UpdateTypeVersionUpdate is a UpdateType enum value
  1567. UpdateTypeVersionUpdate = "VersionUpdate"
  1568. )