xref: /aosp_15_r20/external/aws-sdk-java-v2/services/eks/src/main/resources/codegen-resources/api-2.json (revision 8a52c7834d808308836a99fc2a6e0ed8db339086)
1{
2  "version":"2.0",
3  "metadata":{
4    "apiVersion":"2017-11-01",
5    "endpointPrefix":"eks",
6    "jsonVersion":"1.1",
7    "protocol":"rest-json",
8    "serviceAbbreviation":"Amazon EKS",
9    "serviceFullName":"Amazon Elastic Container Service for Kubernetes",
10    "serviceId":"EKS",
11    "signatureVersion":"v4",
12    "signingName":"eks",
13    "uid":"eks-2017-11-01"
14  },
15  "operations":{
16    "CreateCluster":{
17      "name":"CreateCluster",
18      "http":{
19        "method":"POST",
20        "requestUri":"/clusters"
21      },
22      "input":{"shape":"CreateClusterRequest"},
23      "output":{"shape":"CreateClusterResponse"},
24      "errors":[
25        {"shape":"ResourceInUseException"},
26        {"shape":"ResourceLimitExceededException"},
27        {"shape":"InvalidParameterException"},
28        {"shape":"ClientException"},
29        {"shape":"ServerException"},
30        {"shape":"ServiceUnavailableException"},
31        {"shape":"UnsupportedAvailabilityZoneException"}
32      ]
33    },
34    "DeleteCluster":{
35      "name":"DeleteCluster",
36      "http":{
37        "method":"DELETE",
38        "requestUri":"/clusters/{name}"
39      },
40      "input":{"shape":"DeleteClusterRequest"},
41      "output":{"shape":"DeleteClusterResponse"},
42      "errors":[
43        {"shape":"ResourceInUseException"},
44        {"shape":"ResourceNotFoundException"},
45        {"shape":"ClientException"},
46        {"shape":"ServerException"},
47        {"shape":"ServiceUnavailableException"}
48      ]
49    },
50    "DescribeCluster":{
51      "name":"DescribeCluster",
52      "http":{
53        "method":"GET",
54        "requestUri":"/clusters/{name}"
55      },
56      "input":{"shape":"DescribeClusterRequest"},
57      "output":{"shape":"DescribeClusterResponse"},
58      "errors":[
59        {"shape":"ResourceNotFoundException"},
60        {"shape":"ClientException"},
61        {"shape":"ServerException"},
62        {"shape":"ServiceUnavailableException"}
63      ]
64    },
65    "ListClusters":{
66      "name":"ListClusters",
67      "http":{
68        "method":"GET",
69        "requestUri":"/clusters"
70      },
71      "input":{"shape":"ListClustersRequest"},
72      "output":{"shape":"ListClustersResponse"},
73      "errors":[
74        {"shape":"InvalidParameterException"},
75        {"shape":"ClientException"},
76        {"shape":"ServerException"},
77        {"shape":"ServiceUnavailableException"}
78      ]
79    }
80  },
81  "shapes":{
82    "Certificate":{
83      "type":"structure",
84      "members":{
85        "data":{"shape":"String"}
86      }
87    },
88    "ClientException":{
89      "type":"structure",
90      "members":{
91        "clusterName":{"shape":"String"},
92        "message":{"shape":"String"}
93      },
94      "error":{"httpStatusCode":400},
95      "exception":true
96    },
97    "Cluster":{
98      "type":"structure",
99      "members":{
100        "name":{"shape":"String"},
101        "arn":{"shape":"String"},
102        "createdAt":{"shape":"Timestamp"},
103        "version":{"shape":"String"},
104        "endpoint":{"shape":"String"},
105        "roleArn":{"shape":"String"},
106        "resourcesVpcConfig":{"shape":"VpcConfigResponse"},
107        "status":{"shape":"ClusterStatus"},
108        "certificateAuthority":{"shape":"Certificate"},
109        "clientRequestToken":{"shape":"String"},
110        "platformVersion":{"shape":"String"}
111      }
112    },
113    "ClusterName":{
114      "type":"string",
115      "max":255,
116      "min":1,
117      "pattern":"[A-Za-z0-9\\-_]*"
118    },
119    "ClusterStatus":{
120      "type":"string",
121      "enum":[
122        "CREATING",
123        "ACTIVE",
124        "DELETING",
125        "FAILED"
126      ]
127    },
128    "CreateClusterRequest":{
129      "type":"structure",
130      "required":[
131        "name",
132        "roleArn",
133        "resourcesVpcConfig"
134      ],
135      "members":{
136        "name":{"shape":"ClusterName"},
137        "version":{"shape":"String"},
138        "roleArn":{"shape":"String"},
139        "resourcesVpcConfig":{"shape":"VpcConfigRequest"},
140        "clientRequestToken":{
141          "shape":"String",
142          "idempotencyToken":true
143        }
144      }
145    },
146    "CreateClusterResponse":{
147      "type":"structure",
148      "members":{
149        "cluster":{"shape":"Cluster"}
150      }
151    },
152    "DeleteClusterRequest":{
153      "type":"structure",
154      "required":["name"],
155      "members":{
156        "name":{
157          "shape":"String",
158          "location":"uri",
159          "locationName":"name"
160        }
161      }
162    },
163    "DeleteClusterResponse":{
164      "type":"structure",
165      "members":{
166        "cluster":{"shape":"Cluster"}
167      }
168    },
169    "DescribeClusterRequest":{
170      "type":"structure",
171      "required":["name"],
172      "members":{
173        "name":{
174          "shape":"String",
175          "location":"uri",
176          "locationName":"name"
177        }
178      }
179    },
180    "DescribeClusterResponse":{
181      "type":"structure",
182      "members":{
183        "cluster":{"shape":"Cluster"}
184      }
185    },
186    "InvalidParameterException":{
187      "type":"structure",
188      "members":{
189        "clusterName":{"shape":"String"},
190        "message":{"shape":"String"}
191      },
192      "error":{"httpStatusCode":400},
193      "exception":true
194    },
195    "ListClustersRequest":{
196      "type":"structure",
197      "members":{
198        "maxResults":{
199          "shape":"ListClustersRequestMaxResults",
200          "location":"querystring",
201          "locationName":"maxResults"
202        },
203        "nextToken":{
204          "shape":"String",
205          "location":"querystring",
206          "locationName":"nextToken"
207        }
208      }
209    },
210    "ListClustersRequestMaxResults":{
211      "type":"integer",
212      "box":true,
213      "max":100,
214      "min":1
215    },
216    "ListClustersResponse":{
217      "type":"structure",
218      "members":{
219        "clusters":{"shape":"StringList"},
220        "nextToken":{"shape":"String"}
221      }
222    },
223    "ResourceInUseException":{
224      "type":"structure",
225      "members":{
226        "clusterName":{"shape":"String"},
227        "message":{"shape":"String"}
228      },
229      "error":{"httpStatusCode":409},
230      "exception":true
231    },
232    "ResourceLimitExceededException":{
233      "type":"structure",
234      "members":{
235        "clusterName":{"shape":"String"},
236        "message":{"shape":"String"}
237      },
238      "error":{"httpStatusCode":400},
239      "exception":true
240    },
241    "ResourceNotFoundException":{
242      "type":"structure",
243      "members":{
244        "clusterName":{"shape":"String"},
245        "message":{"shape":"String"}
246      },
247      "error":{"httpStatusCode":404},
248      "exception":true
249    },
250    "ServerException":{
251      "type":"structure",
252      "members":{
253        "clusterName":{"shape":"String"},
254        "message":{"shape":"String"}
255      },
256      "error":{"httpStatusCode":500},
257      "exception":true,
258      "fault":true
259    },
260    "ServiceUnavailableException":{
261      "type":"structure",
262      "members":{
263        "message":{"shape":"String"}
264      },
265      "error":{"httpStatusCode":503},
266      "exception":true,
267      "fault":true
268    },
269    "String":{"type":"string"},
270    "StringList":{
271      "type":"list",
272      "member":{"shape":"String"}
273    },
274    "Timestamp":{"type":"timestamp"},
275    "UnsupportedAvailabilityZoneException":{
276      "type":"structure",
277      "members":{
278        "message":{"shape":"String"},
279        "clusterName":{"shape":"String"},
280        "validZones":{"shape":"StringList"}
281      },
282      "error":{"httpStatusCode":400},
283      "exception":true
284    },
285    "VpcConfigRequest":{
286      "type":"structure",
287      "required":["subnetIds"],
288      "members":{
289        "subnetIds":{"shape":"StringList"},
290        "securityGroupIds":{"shape":"StringList"}
291      }
292    },
293    "VpcConfigResponse":{
294      "type":"structure",
295      "members":{
296        "subnetIds":{"shape":"StringList"},
297        "securityGroupIds":{"shape":"StringList"},
298        "vpcId":{"shape":"String"}
299      }
300    }
301  }
302}
303