1 | import {Request} from '../lib/request';
|
2 | import {Response} from '../lib/response';
|
3 | import {AWSError} from '../lib/error';
|
4 | import {Service} from '../lib/service';
|
5 | import {ServiceConfigurationOptions} from '../lib/service';
|
6 | import {ConfigBase as Config} from '../lib/config';
|
7 | interface Blob {}
|
8 | declare class AppMesh extends Service {
|
9 | /**
|
10 | * Constructs a service object. This object has one method for each API operation.
|
11 | */
|
12 | constructor(options?: AppMesh.Types.ClientConfiguration)
|
13 | config: Config & AppMesh.Types.ClientConfiguration;
|
14 | /**
|
15 | * Creates a new service mesh. A service mesh is a logical boundary for network traffic
|
16 | between the services that reside within it.
|
17 | After you create your service mesh, you can create virtual services, virtual nodes,
|
18 | virtual routers, and routes to distribute traffic between the applications in your
|
19 | mesh.
|
20 | */
|
21 | createMesh(params: AppMesh.Types.CreateMeshInput, callback?: (err: AWSError, data: AppMesh.Types.CreateMeshOutput) => void): Request<AppMesh.Types.CreateMeshOutput, AWSError>;
|
22 | /**
|
23 | * Creates a new service mesh. A service mesh is a logical boundary for network traffic
|
24 | between the services that reside within it.
|
25 | After you create your service mesh, you can create virtual services, virtual nodes,
|
26 | virtual routers, and routes to distribute traffic between the applications in your
|
27 | mesh.
|
28 | */
|
29 | createMesh(callback?: (err: AWSError, data: AppMesh.Types.CreateMeshOutput) => void): Request<AppMesh.Types.CreateMeshOutput, AWSError>;
|
30 | /**
|
31 | * Creates a new route that is associated with a virtual router.
|
32 | You can use the prefix parameter in your route specification for path-based
|
33 | routing of requests. For example, if your virtual router service name is
|
34 | my-service.local, and you want the route to match requests to
|
35 | my-service.local/metrics, then your prefix should be
|
36 | /metrics.
|
37 | If your route matches a request, you can distribute traffic to one or more target
|
38 | virtual nodes with relative weighting.
|
39 | */
|
40 | createRoute(params: AppMesh.Types.CreateRouteInput, callback?: (err: AWSError, data: AppMesh.Types.CreateRouteOutput) => void): Request<AppMesh.Types.CreateRouteOutput, AWSError>;
|
41 | /**
|
42 | * Creates a new route that is associated with a virtual router.
|
43 | You can use the prefix parameter in your route specification for path-based
|
44 | routing of requests. For example, if your virtual router service name is
|
45 | my-service.local, and you want the route to match requests to
|
46 | my-service.local/metrics, then your prefix should be
|
47 | /metrics.
|
48 | If your route matches a request, you can distribute traffic to one or more target
|
49 | virtual nodes with relative weighting.
|
50 | */
|
51 | createRoute(callback?: (err: AWSError, data: AppMesh.Types.CreateRouteOutput) => void): Request<AppMesh.Types.CreateRouteOutput, AWSError>;
|
52 | /**
|
53 | * Creates a new virtual node within a service mesh.
|
54 | A virtual node acts as logical pointer to a particular task group, such as an Amazon ECS
|
55 | service or a Kubernetes deployment. When you create a virtual node, you must specify the
|
56 | DNS service discovery hostname for your task group.
|
57 | Any inbound traffic that your virtual node expects should be specified as a
|
58 | listener. Any outbound traffic that your virtual node expects to reach
|
59 | should be specified as a backend.
|
60 | The response metadata for your new virtual node contains the arn that is
|
61 | associated with the virtual node. Set this value (either the full ARN or the truncated
|
62 | resource name, for example, mesh/default/virtualNode/simpleapp, as the
|
63 | APPMESH_VIRTUAL_NODE_NAME environment variable for your task group's Envoy
|
64 | proxy container in your task definition or pod spec. This is then mapped to the
|
65 | node.id and node.cluster Envoy parameters.
|
66 |
|
67 | If you require your Envoy stats or tracing to use a different name, you can override
|
68 | the node.cluster value that is set by
|
69 | APPMESH_VIRTUAL_NODE_NAME with the
|
70 | APPMESH_VIRTUAL_NODE_CLUSTER environment variable.
|
71 |
|
72 | */
|
73 | createVirtualNode(params: AppMesh.Types.CreateVirtualNodeInput, callback?: (err: AWSError, data: AppMesh.Types.CreateVirtualNodeOutput) => void): Request<AppMesh.Types.CreateVirtualNodeOutput, AWSError>;
|
74 | /**
|
75 | * Creates a new virtual node within a service mesh.
|
76 | A virtual node acts as logical pointer to a particular task group, such as an Amazon ECS
|
77 | service or a Kubernetes deployment. When you create a virtual node, you must specify the
|
78 | DNS service discovery hostname for your task group.
|
79 | Any inbound traffic that your virtual node expects should be specified as a
|
80 | listener. Any outbound traffic that your virtual node expects to reach
|
81 | should be specified as a backend.
|
82 | The response metadata for your new virtual node contains the arn that is
|
83 | associated with the virtual node. Set this value (either the full ARN or the truncated
|
84 | resource name, for example, mesh/default/virtualNode/simpleapp, as the
|
85 | APPMESH_VIRTUAL_NODE_NAME environment variable for your task group's Envoy
|
86 | proxy container in your task definition or pod spec. This is then mapped to the
|
87 | node.id and node.cluster Envoy parameters.
|
88 |
|
89 | If you require your Envoy stats or tracing to use a different name, you can override
|
90 | the node.cluster value that is set by
|
91 | APPMESH_VIRTUAL_NODE_NAME with the
|
92 | APPMESH_VIRTUAL_NODE_CLUSTER environment variable.
|
93 |
|
94 | */
|
95 | createVirtualNode(callback?: (err: AWSError, data: AppMesh.Types.CreateVirtualNodeOutput) => void): Request<AppMesh.Types.CreateVirtualNodeOutput, AWSError>;
|
96 | /**
|
97 | * Creates a new virtual router within a service mesh.
|
98 | Any inbound traffic that your virtual router expects should be specified as a
|
99 | listener.
|
100 | Virtual routers handle traffic for one or more service names within your mesh. After you
|
101 | create your virtual router, create and associate routes for your virtual router that direct
|
102 | incoming requests to different virtual nodes.
|
103 | */
|
104 | createVirtualRouter(params: AppMesh.Types.CreateVirtualRouterInput, callback?: (err: AWSError, data: AppMesh.Types.CreateVirtualRouterOutput) => void): Request<AppMesh.Types.CreateVirtualRouterOutput, AWSError>;
|
105 | /**
|
106 | * Creates a new virtual router within a service mesh.
|
107 | Any inbound traffic that your virtual router expects should be specified as a
|
108 | listener.
|
109 | Virtual routers handle traffic for one or more service names within your mesh. After you
|
110 | create your virtual router, create and associate routes for your virtual router that direct
|
111 | incoming requests to different virtual nodes.
|
112 | */
|
113 | createVirtualRouter(callback?: (err: AWSError, data: AppMesh.Types.CreateVirtualRouterOutput) => void): Request<AppMesh.Types.CreateVirtualRouterOutput, AWSError>;
|
114 | /**
|
115 | * Creates a virtual service within a service mesh.
|
116 | A virtual service is an abstraction of a real service that is either provided by a
|
117 | virtual node directly, or indirectly by means of a virtual router. Dependent services call
|
118 | your virtual service by its virtualServiceName, and those requests are routed
|
119 | to the virtual node or virtual router that is specified as the provider for the virtual
|
120 | service.
|
121 | */
|
122 | createVirtualService(params: AppMesh.Types.CreateVirtualServiceInput, callback?: (err: AWSError, data: AppMesh.Types.CreateVirtualServiceOutput) => void): Request<AppMesh.Types.CreateVirtualServiceOutput, AWSError>;
|
123 | /**
|
124 | * Creates a virtual service within a service mesh.
|
125 | A virtual service is an abstraction of a real service that is either provided by a
|
126 | virtual node directly, or indirectly by means of a virtual router. Dependent services call
|
127 | your virtual service by its virtualServiceName, and those requests are routed
|
128 | to the virtual node or virtual router that is specified as the provider for the virtual
|
129 | service.
|
130 | */
|
131 | createVirtualService(callback?: (err: AWSError, data: AppMesh.Types.CreateVirtualServiceOutput) => void): Request<AppMesh.Types.CreateVirtualServiceOutput, AWSError>;
|
132 | /**
|
133 | * Deletes an existing service mesh.
|
134 | You must delete all resources (virtual services, routes, virtual routers, virtual nodes)
|
135 | in the service mesh before you can delete the mesh itself.
|
136 | */
|
137 | deleteMesh(params: AppMesh.Types.DeleteMeshInput, callback?: (err: AWSError, data: AppMesh.Types.DeleteMeshOutput) => void): Request<AppMesh.Types.DeleteMeshOutput, AWSError>;
|
138 | /**
|
139 | * Deletes an existing service mesh.
|
140 | You must delete all resources (virtual services, routes, virtual routers, virtual nodes)
|
141 | in the service mesh before you can delete the mesh itself.
|
142 | */
|
143 | deleteMesh(callback?: (err: AWSError, data: AppMesh.Types.DeleteMeshOutput) => void): Request<AppMesh.Types.DeleteMeshOutput, AWSError>;
|
144 | /**
|
145 | * Deletes an existing route.
|
146 | */
|
147 | deleteRoute(params: AppMesh.Types.DeleteRouteInput, callback?: (err: AWSError, data: AppMesh.Types.DeleteRouteOutput) => void): Request<AppMesh.Types.DeleteRouteOutput, AWSError>;
|
148 | /**
|
149 | * Deletes an existing route.
|
150 | */
|
151 | deleteRoute(callback?: (err: AWSError, data: AppMesh.Types.DeleteRouteOutput) => void): Request<AppMesh.Types.DeleteRouteOutput, AWSError>;
|
152 | /**
|
153 | * Deletes an existing virtual node.
|
154 | You must delete any virtual services that list a virtual node as a service provider
|
155 | before you can delete the virtual node itself.
|
156 | */
|
157 | deleteVirtualNode(params: AppMesh.Types.DeleteVirtualNodeInput, callback?: (err: AWSError, data: AppMesh.Types.DeleteVirtualNodeOutput) => void): Request<AppMesh.Types.DeleteVirtualNodeOutput, AWSError>;
|
158 | /**
|
159 | * Deletes an existing virtual node.
|
160 | You must delete any virtual services that list a virtual node as a service provider
|
161 | before you can delete the virtual node itself.
|
162 | */
|
163 | deleteVirtualNode(callback?: (err: AWSError, data: AppMesh.Types.DeleteVirtualNodeOutput) => void): Request<AppMesh.Types.DeleteVirtualNodeOutput, AWSError>;
|
164 | /**
|
165 | * Deletes an existing virtual router.
|
166 | You must delete any routes associated with the virtual router before you can delete the
|
167 | router itself.
|
168 | */
|
169 | deleteVirtualRouter(params: AppMesh.Types.DeleteVirtualRouterInput, callback?: (err: AWSError, data: AppMesh.Types.DeleteVirtualRouterOutput) => void): Request<AppMesh.Types.DeleteVirtualRouterOutput, AWSError>;
|
170 | /**
|
171 | * Deletes an existing virtual router.
|
172 | You must delete any routes associated with the virtual router before you can delete the
|
173 | router itself.
|
174 | */
|
175 | deleteVirtualRouter(callback?: (err: AWSError, data: AppMesh.Types.DeleteVirtualRouterOutput) => void): Request<AppMesh.Types.DeleteVirtualRouterOutput, AWSError>;
|
176 | /**
|
177 | * Deletes an existing virtual service.
|
178 | */
|
179 | deleteVirtualService(params: AppMesh.Types.DeleteVirtualServiceInput, callback?: (err: AWSError, data: AppMesh.Types.DeleteVirtualServiceOutput) => void): Request<AppMesh.Types.DeleteVirtualServiceOutput, AWSError>;
|
180 | /**
|
181 | * Deletes an existing virtual service.
|
182 | */
|
183 | deleteVirtualService(callback?: (err: AWSError, data: AppMesh.Types.DeleteVirtualServiceOutput) => void): Request<AppMesh.Types.DeleteVirtualServiceOutput, AWSError>;
|
184 | /**
|
185 | * Describes an existing service mesh.
|
186 | */
|
187 | describeMesh(params: AppMesh.Types.DescribeMeshInput, callback?: (err: AWSError, data: AppMesh.Types.DescribeMeshOutput) => void): Request<AppMesh.Types.DescribeMeshOutput, AWSError>;
|
188 | /**
|
189 | * Describes an existing service mesh.
|
190 | */
|
191 | describeMesh(callback?: (err: AWSError, data: AppMesh.Types.DescribeMeshOutput) => void): Request<AppMesh.Types.DescribeMeshOutput, AWSError>;
|
192 | /**
|
193 | * Describes an existing route.
|
194 | */
|
195 | describeRoute(params: AppMesh.Types.DescribeRouteInput, callback?: (err: AWSError, data: AppMesh.Types.DescribeRouteOutput) => void): Request<AppMesh.Types.DescribeRouteOutput, AWSError>;
|
196 | /**
|
197 | * Describes an existing route.
|
198 | */
|
199 | describeRoute(callback?: (err: AWSError, data: AppMesh.Types.DescribeRouteOutput) => void): Request<AppMesh.Types.DescribeRouteOutput, AWSError>;
|
200 | /**
|
201 | * Describes an existing virtual node.
|
202 | */
|
203 | describeVirtualNode(params: AppMesh.Types.DescribeVirtualNodeInput, callback?: (err: AWSError, data: AppMesh.Types.DescribeVirtualNodeOutput) => void): Request<AppMesh.Types.DescribeVirtualNodeOutput, AWSError>;
|
204 | /**
|
205 | * Describes an existing virtual node.
|
206 | */
|
207 | describeVirtualNode(callback?: (err: AWSError, data: AppMesh.Types.DescribeVirtualNodeOutput) => void): Request<AppMesh.Types.DescribeVirtualNodeOutput, AWSError>;
|
208 | /**
|
209 | * Describes an existing virtual router.
|
210 | */
|
211 | describeVirtualRouter(params: AppMesh.Types.DescribeVirtualRouterInput, callback?: (err: AWSError, data: AppMesh.Types.DescribeVirtualRouterOutput) => void): Request<AppMesh.Types.DescribeVirtualRouterOutput, AWSError>;
|
212 | /**
|
213 | * Describes an existing virtual router.
|
214 | */
|
215 | describeVirtualRouter(callback?: (err: AWSError, data: AppMesh.Types.DescribeVirtualRouterOutput) => void): Request<AppMesh.Types.DescribeVirtualRouterOutput, AWSError>;
|
216 | /**
|
217 | * Describes an existing virtual service.
|
218 | */
|
219 | describeVirtualService(params: AppMesh.Types.DescribeVirtualServiceInput, callback?: (err: AWSError, data: AppMesh.Types.DescribeVirtualServiceOutput) => void): Request<AppMesh.Types.DescribeVirtualServiceOutput, AWSError>;
|
220 | /**
|
221 | * Describes an existing virtual service.
|
222 | */
|
223 | describeVirtualService(callback?: (err: AWSError, data: AppMesh.Types.DescribeVirtualServiceOutput) => void): Request<AppMesh.Types.DescribeVirtualServiceOutput, AWSError>;
|
224 | /**
|
225 | * Returns a list of existing service meshes.
|
226 | */
|
227 | listMeshes(params: AppMesh.Types.ListMeshesInput, callback?: (err: AWSError, data: AppMesh.Types.ListMeshesOutput) => void): Request<AppMesh.Types.ListMeshesOutput, AWSError>;
|
228 | /**
|
229 | * Returns a list of existing service meshes.
|
230 | */
|
231 | listMeshes(callback?: (err: AWSError, data: AppMesh.Types.ListMeshesOutput) => void): Request<AppMesh.Types.ListMeshesOutput, AWSError>;
|
232 | /**
|
233 | * Returns a list of existing routes in a service mesh.
|
234 | */
|
235 | listRoutes(params: AppMesh.Types.ListRoutesInput, callback?: (err: AWSError, data: AppMesh.Types.ListRoutesOutput) => void): Request<AppMesh.Types.ListRoutesOutput, AWSError>;
|
236 | /**
|
237 | * Returns a list of existing routes in a service mesh.
|
238 | */
|
239 | listRoutes(callback?: (err: AWSError, data: AppMesh.Types.ListRoutesOutput) => void): Request<AppMesh.Types.ListRoutesOutput, AWSError>;
|
240 | /**
|
241 | * Returns a list of existing virtual nodes.
|
242 | */
|
243 | listVirtualNodes(params: AppMesh.Types.ListVirtualNodesInput, callback?: (err: AWSError, data: AppMesh.Types.ListVirtualNodesOutput) => void): Request<AppMesh.Types.ListVirtualNodesOutput, AWSError>;
|
244 | /**
|
245 | * Returns a list of existing virtual nodes.
|
246 | */
|
247 | listVirtualNodes(callback?: (err: AWSError, data: AppMesh.Types.ListVirtualNodesOutput) => void): Request<AppMesh.Types.ListVirtualNodesOutput, AWSError>;
|
248 | /**
|
249 | * Returns a list of existing virtual routers in a service mesh.
|
250 | */
|
251 | listVirtualRouters(params: AppMesh.Types.ListVirtualRoutersInput, callback?: (err: AWSError, data: AppMesh.Types.ListVirtualRoutersOutput) => void): Request<AppMesh.Types.ListVirtualRoutersOutput, AWSError>;
|
252 | /**
|
253 | * Returns a list of existing virtual routers in a service mesh.
|
254 | */
|
255 | listVirtualRouters(callback?: (err: AWSError, data: AppMesh.Types.ListVirtualRoutersOutput) => void): Request<AppMesh.Types.ListVirtualRoutersOutput, AWSError>;
|
256 | /**
|
257 | * Returns a list of existing virtual services in a service mesh.
|
258 | */
|
259 | listVirtualServices(params: AppMesh.Types.ListVirtualServicesInput, callback?: (err: AWSError, data: AppMesh.Types.ListVirtualServicesOutput) => void): Request<AppMesh.Types.ListVirtualServicesOutput, AWSError>;
|
260 | /**
|
261 | * Returns a list of existing virtual services in a service mesh.
|
262 | */
|
263 | listVirtualServices(callback?: (err: AWSError, data: AppMesh.Types.ListVirtualServicesOutput) => void): Request<AppMesh.Types.ListVirtualServicesOutput, AWSError>;
|
264 | /**
|
265 | * Updates an existing route for a specified service mesh and virtual router.
|
266 | */
|
267 | updateRoute(params: AppMesh.Types.UpdateRouteInput, callback?: (err: AWSError, data: AppMesh.Types.UpdateRouteOutput) => void): Request<AppMesh.Types.UpdateRouteOutput, AWSError>;
|
268 | /**
|
269 | * Updates an existing route for a specified service mesh and virtual router.
|
270 | */
|
271 | updateRoute(callback?: (err: AWSError, data: AppMesh.Types.UpdateRouteOutput) => void): Request<AppMesh.Types.UpdateRouteOutput, AWSError>;
|
272 | /**
|
273 | * Updates an existing virtual node in a specified service mesh.
|
274 | */
|
275 | updateVirtualNode(params: AppMesh.Types.UpdateVirtualNodeInput, callback?: (err: AWSError, data: AppMesh.Types.UpdateVirtualNodeOutput) => void): Request<AppMesh.Types.UpdateVirtualNodeOutput, AWSError>;
|
276 | /**
|
277 | * Updates an existing virtual node in a specified service mesh.
|
278 | */
|
279 | updateVirtualNode(callback?: (err: AWSError, data: AppMesh.Types.UpdateVirtualNodeOutput) => void): Request<AppMesh.Types.UpdateVirtualNodeOutput, AWSError>;
|
280 | /**
|
281 | * Updates an existing virtual router in a specified service mesh.
|
282 | */
|
283 | updateVirtualRouter(params: AppMesh.Types.UpdateVirtualRouterInput, callback?: (err: AWSError, data: AppMesh.Types.UpdateVirtualRouterOutput) => void): Request<AppMesh.Types.UpdateVirtualRouterOutput, AWSError>;
|
284 | /**
|
285 | * Updates an existing virtual router in a specified service mesh.
|
286 | */
|
287 | updateVirtualRouter(callback?: (err: AWSError, data: AppMesh.Types.UpdateVirtualRouterOutput) => void): Request<AppMesh.Types.UpdateVirtualRouterOutput, AWSError>;
|
288 | /**
|
289 | * Updates an existing virtual service in a specified service mesh.
|
290 | */
|
291 | updateVirtualService(params: AppMesh.Types.UpdateVirtualServiceInput, callback?: (err: AWSError, data: AppMesh.Types.UpdateVirtualServiceOutput) => void): Request<AppMesh.Types.UpdateVirtualServiceOutput, AWSError>;
|
292 | /**
|
293 | * Updates an existing virtual service in a specified service mesh.
|
294 | */
|
295 | updateVirtualService(callback?: (err: AWSError, data: AppMesh.Types.UpdateVirtualServiceOutput) => void): Request<AppMesh.Types.UpdateVirtualServiceOutput, AWSError>;
|
296 | }
|
297 | declare namespace AppMesh {
|
298 | export interface VirtualRouterListener {
|
299 | portMapping: PortMapping;
|
300 | }
|
301 | export interface UpdateVirtualNodeInput {
|
302 | /**
|
303 | * Unique, case-sensitive identifier that you provide to ensure the idempotency of the
|
304 | request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
|
305 | */
|
306 | clientToken?: String;
|
307 | /**
|
308 | * The name of the service mesh that the virtual node resides in.
|
309 | */
|
310 | meshName: ResourceName;
|
311 | /**
|
312 | * The new virtual node specification to apply. This overwrites the existing data.
|
313 | */
|
314 | spec: VirtualNodeSpec;
|
315 | /**
|
316 | * The name of the virtual node to update.
|
317 | */
|
318 | virtualNodeName: ResourceName;
|
319 | }
|
320 | export interface DeleteMeshInput {
|
321 | /**
|
322 | * The name of the service mesh to delete.
|
323 | */
|
324 | meshName: ResourceName;
|
325 | }
|
326 | export interface CreateVirtualServiceInput {
|
327 | /**
|
328 | * Unique, case-sensitive identifier that you provide to ensure the idempotency of the
|
329 | request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
|
330 | */
|
331 | clientToken?: String;
|
332 | /**
|
333 | * The name of the service mesh in which to create the virtual service.
|
334 | */
|
335 | meshName: ResourceName;
|
336 | /**
|
337 | * The virtual service specification to apply.
|
338 | */
|
339 | spec: VirtualServiceSpec;
|
340 | /**
|
341 | * The name to use for the virtual service.
|
342 | */
|
343 | virtualServiceName: ServiceName;
|
344 | }
|
345 | export type VirtualRouterStatusCode = "ACTIVE"|"DELETED"|"INACTIVE"|string;
|
346 | export interface UpdateVirtualRouterInput {
|
347 | /**
|
348 | * Unique, case-sensitive identifier that you provide to ensure the idempotency of the
|
349 | request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
|
350 | */
|
351 | clientToken?: String;
|
352 | /**
|
353 | * The name of the service mesh that the virtual router resides in.
|
354 | */
|
355 | meshName: ResourceName;
|
356 | /**
|
357 | * The new virtual router specification to apply. This overwrites the existing data.
|
358 | */
|
359 | spec: VirtualRouterSpec;
|
360 | /**
|
361 | * The name of the virtual router to update.
|
362 | */
|
363 | virtualRouterName: ResourceName;
|
364 | }
|
365 | export interface CreateVirtualNodeOutput {
|
366 | /**
|
367 | * The full description of your virtual node following the create call.
|
368 | */
|
369 | virtualNode: VirtualNodeData;
|
370 | }
|
371 | export type Long = number;
|
372 | export interface UpdateVirtualRouterOutput {
|
373 | /**
|
374 | * A full description of the virtual router that was updated.
|
375 | */
|
376 | virtualRouter: VirtualRouterData;
|
377 | }
|
378 | export interface DescribeMeshOutput {
|
379 | /**
|
380 | * The full description of your service mesh.
|
381 | */
|
382 | mesh: MeshData;
|
383 | }
|
384 | export interface DeleteVirtualRouterInput {
|
385 | /**
|
386 | * The name of the service mesh to delete the virtual router in.
|
387 | */
|
388 | meshName: ResourceName;
|
389 | /**
|
390 | * The name of the virtual router to delete.
|
391 | */
|
392 | virtualRouterName: ResourceName;
|
393 | }
|
394 | export interface ListVirtualRoutersOutput {
|
395 | /**
|
396 | * The nextToken value to include in a future ListVirtualRouters
|
397 | request. When the results of a ListVirtualRouters request exceed
|
398 | limit, you can use this value to retrieve the next page of
|
399 | results. This value is null when there are no more results to
|
400 | return.
|
401 | */
|
402 | nextToken?: String;
|
403 | /**
|
404 | * The list of existing virtual routers for the specified service mesh.
|
405 | */
|
406 | virtualRouters: VirtualRouterList;
|
407 | }
|
408 | export interface DescribeRouteInput {
|
409 | /**
|
410 | * The name of the service mesh that the route resides in.
|
411 | */
|
412 | meshName: ResourceName;
|
413 | /**
|
414 | * The name of the route to describe.
|
415 | */
|
416 | routeName: ResourceName;
|
417 | /**
|
418 | * The name of the virtual router that the route is associated with.
|
419 | */
|
420 | virtualRouterName: ResourceName;
|
421 | }
|
422 | export interface DeleteRouteOutput {
|
423 | /**
|
424 | * The route that was deleted.
|
425 | */
|
426 | route: RouteData;
|
427 | }
|
428 | export interface ResourceMetadata {
|
429 | /**
|
430 | * The full Amazon Resource Name (ARN) for the resource.
|
431 |
|
432 | After you create a virtual node, set this value (either the full ARN or the
|
433 | truncated resource name, for example, mesh/default/virtualNode/simpleapp,
|
434 | as the APPMESH_VIRTUAL_NODE_NAME environment variable for your task group's
|
435 | Envoy proxy container in your task definition or pod spec. This is then mapped to the
|
436 | node.id and node.cluster Envoy parameters.
|
437 | If you require your Envoy stats or tracing to use a different name, you can override
|
438 | the node.cluster value that is set by
|
439 | APPMESH_VIRTUAL_NODE_NAME with the
|
440 | APPMESH_VIRTUAL_NODE_CLUSTER environment variable.
|
441 |
|
442 | */
|
443 | arn: Arn;
|
444 | /**
|
445 | * The Unix epoch timestamp in seconds for when the resource was created.
|
446 | */
|
447 | createdAt: Timestamp;
|
448 | /**
|
449 | * The Unix epoch timestamp in seconds for when the resource was last updated.
|
450 | */
|
451 | lastUpdatedAt: Timestamp;
|
452 | /**
|
453 | * The unique identifier for the resource.
|
454 | */
|
455 | uid: String;
|
456 | /**
|
457 | * The version of the resource. Resources are created at version 1, and this version is
|
458 | incremented each time that they're updated.
|
459 | */
|
460 | version: Long;
|
461 | }
|
462 | export type Listeners = Listener[];
|
463 | export type Backends = Backend[];
|
464 | export type PortProtocol = "http"|"tcp"|string;
|
465 | export interface UpdateVirtualNodeOutput {
|
466 | /**
|
467 | * A full description of the virtual node that was updated.
|
468 | */
|
469 | virtualNode: VirtualNodeData;
|
470 | }
|
471 | export interface ListRoutesOutput {
|
472 | /**
|
473 | * The nextToken value to include in a future ListRoutes
|
474 | request. When the results of a ListRoutes request exceed
|
475 | limit, you can use this value to retrieve the next page of
|
476 | results. This value is null when there are no more results to
|
477 | return.
|
478 | */
|
479 | nextToken?: String;
|
480 | /**
|
481 | * The list of existing routes for the specified service mesh and virtual router.
|
482 | */
|
483 | routes: RouteList;
|
484 | }
|
485 | export interface VirtualServiceBackend {
|
486 | /**
|
487 | * The name of the virtual service that is acting as a virtual node backend.
|
488 | */
|
489 | virtualServiceName: ServiceName;
|
490 | }
|
491 | export type VirtualNodeStatusCode = "ACTIVE"|"DELETED"|"INACTIVE"|string;
|
492 | export type ServiceName = string;
|
493 | export interface UpdateVirtualServiceInput {
|
494 | /**
|
495 | * Unique, case-sensitive identifier that you provide to ensure the idempotency of the
|
496 | request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
|
497 | */
|
498 | clientToken?: String;
|
499 | /**
|
500 | * The name of the service mesh that the virtual service resides in.
|
501 | */
|
502 | meshName: ResourceName;
|
503 | /**
|
504 | * The new virtual service specification to apply. This overwrites the existing
|
505 | data.
|
506 | */
|
507 | spec: VirtualServiceSpec;
|
508 | /**
|
509 | * The name of the virtual service to update.
|
510 | */
|
511 | virtualServiceName: ServiceName;
|
512 | }
|
513 | export type HealthCheckThreshold = number;
|
514 | export interface UpdateRouteOutput {
|
515 | /**
|
516 | * A full description of the route that was updated.
|
517 | */
|
518 | route: RouteData;
|
519 | }
|
520 | export type PercentInt = number;
|
521 | export interface HttpRouteAction {
|
522 | /**
|
523 | * The targets that traffic is routed to when a request matches the route. You can specify
|
524 | one or more targets and their relative weights to distribute traffic with.
|
525 | */
|
526 | weightedTargets: WeightedTargets;
|
527 | }
|
528 | export interface ListRoutesInput {
|
529 | /**
|
530 | * The maximum number of results returned by ListRoutes in paginated output.
|
531 | When you use this parameter, ListRoutes returns only limit
|
532 | results in a single page along with a nextToken response element. You can see the
|
533 | remaining results of the initial request by sending another
|
534 | ListRoutes request with the returned nextToken value. This
|
535 | value can be between 1 and 100. If you don't use this parameter,
|
536 | ListRoutes returns up to 100 results and a
|
537 | nextToken value if applicable.
|
538 | */
|
539 | limit?: ListRoutesLimit;
|
540 | /**
|
541 | * The name of the service mesh in which to list routes.
|
542 | */
|
543 | meshName: ResourceName;
|
544 | /**
|
545 | * The nextToken value returned from a previous paginated
|
546 | ListRoutes request where limit was used and the
|
547 | results exceeded the value of that parameter. Pagination continues from the end of the
|
548 | previous results that returned the nextToken value.
|
549 | */
|
550 | nextToken?: String;
|
551 | /**
|
552 | * The name of the virtual router to list routes in.
|
553 | */
|
554 | virtualRouterName: ResourceName;
|
555 | }
|
556 | export interface HealthCheckPolicy {
|
557 | /**
|
558 | * The number of consecutive successful health checks that must occur before declaring
|
559 | listener healthy.
|
560 | */
|
561 | healthyThreshold: HealthCheckThreshold;
|
562 | /**
|
563 | * The time period in milliseconds between each health check execution.
|
564 | */
|
565 | intervalMillis: HealthCheckIntervalMillis;
|
566 | /**
|
567 | * The destination path for the health check request. This is required only if the
|
568 | specified protocol is HTTP. If the protocol is TCP, this parameter is ignored.
|
569 | */
|
570 | path?: String;
|
571 | /**
|
572 | * The destination port for the health check request. This port must match the port defined
|
573 | in the PortMapping for the listener.
|
574 | */
|
575 | port?: PortNumber;
|
576 | /**
|
577 | * The protocol for the health check request.
|
578 | */
|
579 | protocol: PortProtocol;
|
580 | /**
|
581 | * The amount of time to wait when receiving a response from the health check, in
|
582 | milliseconds.
|
583 | */
|
584 | timeoutMillis: HealthCheckTimeoutMillis;
|
585 | /**
|
586 | * The number of consecutive failed health checks that must occur before declaring a
|
587 | virtual node unhealthy.
|
588 | */
|
589 | unhealthyThreshold: HealthCheckThreshold;
|
590 | }
|
591 | export interface VirtualServiceRef {
|
592 | /**
|
593 | * The full Amazon Resource Name (ARN) for the virtual service.
|
594 | */
|
595 | arn: Arn;
|
596 | /**
|
597 | * The name of the service mesh that the virtual service resides in.
|
598 | */
|
599 | meshName: ResourceName;
|
600 | /**
|
601 | * The name of the virtual service.
|
602 | */
|
603 | virtualServiceName: ServiceName;
|
604 | }
|
605 | export type VirtualServiceList = VirtualServiceRef[];
|
606 | export interface VirtualNodeStatus {
|
607 | /**
|
608 | * The current status of the virtual node.
|
609 | */
|
610 | status: VirtualNodeStatusCode;
|
611 | }
|
612 | export interface VirtualRouterRef {
|
613 | /**
|
614 | * The full Amazon Resource Name (ARN) for the virtual router.
|
615 | */
|
616 | arn: Arn;
|
617 | /**
|
618 | * The name of the service mesh that the virtual router resides in.
|
619 | */
|
620 | meshName: ResourceName;
|
621 | /**
|
622 | * The name of the virtual router.
|
623 | */
|
624 | virtualRouterName: ResourceName;
|
625 | }
|
626 | export interface VirtualServiceData {
|
627 | /**
|
628 | * The name of the service mesh that the virtual service resides in.
|
629 | */
|
630 | meshName: ResourceName;
|
631 | metadata: ResourceMetadata;
|
632 | /**
|
633 | * The specifications of the virtual service.
|
634 | */
|
635 | spec: VirtualServiceSpec;
|
636 | /**
|
637 | * The current status of the virtual service.
|
638 | */
|
639 | status: VirtualServiceStatus;
|
640 | /**
|
641 | * The name of the virtual service.
|
642 | */
|
643 | virtualServiceName: ServiceName;
|
644 | }
|
645 | export interface DescribeVirtualServiceOutput {
|
646 | /**
|
647 | * The full description of your virtual service.
|
648 | */
|
649 | virtualService: VirtualServiceData;
|
650 | }
|
651 | export interface VirtualNodeRef {
|
652 | /**
|
653 | * The full Amazon Resource Name (ARN) for the virtual node.
|
654 | */
|
655 | arn: Arn;
|
656 | /**
|
657 | * The name of the service mesh that the virtual node resides in.
|
658 | */
|
659 | meshName: ResourceName;
|
660 | /**
|
661 | * The name of the virtual node.
|
662 | */
|
663 | virtualNodeName: ResourceName;
|
664 | }
|
665 | export interface CreateMeshInput {
|
666 | /**
|
667 | * Unique, case-sensitive identifier that you provide to ensure the idempotency of the
|
668 | request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
|
669 | */
|
670 | clientToken?: String;
|
671 | /**
|
672 | * The name to use for the service mesh.
|
673 | */
|
674 | meshName: ResourceName;
|
675 | }
|
676 | export interface DescribeVirtualNodeOutput {
|
677 | /**
|
678 | * The full description of your virtual node.
|
679 | */
|
680 | virtualNode: VirtualNodeData;
|
681 | }
|
682 | export interface CreateRouteOutput {
|
683 | /**
|
684 | * The full description of your mesh following the create call.
|
685 | */
|
686 | route: RouteData;
|
687 | }
|
688 | export interface DnsServiceDiscovery {
|
689 | /**
|
690 | * Specifies the DNS service discovery hostname for the virtual node.
|
691 | */
|
692 | hostname: Hostname;
|
693 | }
|
694 | export interface DescribeVirtualServiceInput {
|
695 | /**
|
696 | * The name of the service mesh that the virtual service resides in.
|
697 | */
|
698 | meshName: ResourceName;
|
699 | /**
|
700 | * The name of the virtual service to describe.
|
701 | */
|
702 | virtualServiceName: ServiceName;
|
703 | }
|
704 | export type ListVirtualServicesLimit = number;
|
705 | export interface DeleteRouteInput {
|
706 | /**
|
707 | * The name of the service mesh to delete the route in.
|
708 | */
|
709 | meshName: ResourceName;
|
710 | /**
|
711 | * The name of the route to delete.
|
712 | */
|
713 | routeName: ResourceName;
|
714 | /**
|
715 | * The name of the virtual router to delete the route in.
|
716 | */
|
717 | virtualRouterName: ResourceName;
|
718 | }
|
719 | export interface VirtualNodeData {
|
720 | /**
|
721 | * The name of the service mesh that the virtual node resides in.
|
722 | */
|
723 | meshName: ResourceName;
|
724 | /**
|
725 | * The associated metadata for the virtual node.
|
726 | */
|
727 | metadata: ResourceMetadata;
|
728 | /**
|
729 | * The specifications of the virtual node.
|
730 | */
|
731 | spec: VirtualNodeSpec;
|
732 | /**
|
733 | * The current status for the virtual node.
|
734 | */
|
735 | status: VirtualNodeStatus;
|
736 | /**
|
737 | * The name of the virtual node.
|
738 | */
|
739 | virtualNodeName: ResourceName;
|
740 | }
|
741 | export interface VirtualServiceSpec {
|
742 | /**
|
743 | * The App Mesh object that is acting as the provider for a virtual service. You can specify
|
744 | a single virtual node or virtual router.
|
745 | */
|
746 | provider?: VirtualServiceProvider;
|
747 | }
|
748 | export interface Backend {
|
749 | /**
|
750 | * Specifies a virtual service to use as a backend for a virtual node.
|
751 | */
|
752 | virtualService?: VirtualServiceBackend;
|
753 | }
|
754 | export type ListVirtualRoutersLimit = number;
|
755 | export type HealthCheckIntervalMillis = number;
|
756 | export type VirtualRouterList = VirtualRouterRef[];
|
757 | export interface ListMeshesInput {
|
758 | /**
|
759 | * The maximum number of results returned by ListMeshes in paginated output.
|
760 | When you use this parameter, ListMeshes returns only limit
|
761 | results in a single page along with a nextToken response element. You can see the
|
762 | remaining results of the initial request by sending another
|
763 | ListMeshes request with the returned nextToken value. This
|
764 | value can be between 1 and 100. If you don't use this parameter,
|
765 | ListMeshes returns up to 100 results and a
|
766 | nextToken value if applicable.
|
767 | */
|
768 | limit?: ListMeshesLimit;
|
769 | /**
|
770 | * The nextToken value returned from a previous paginated
|
771 | ListMeshes request where limit was used and the
|
772 | results exceeded the value of that parameter. Pagination continues from the end of the
|
773 | previous results that returned the nextToken value.
|
774 |
|
775 | This token should be treated as an opaque identifier that is only used to
|
776 | retrieve the next items in a list and not for other programmatic purposes.
|
777 |
|
778 | */
|
779 | nextToken?: String;
|
780 | }
|
781 | export type Arn = string;
|
782 | export type VirtualNodeList = VirtualNodeRef[];
|
783 | export interface ListVirtualRoutersInput {
|
784 | /**
|
785 | * The maximum number of results returned by ListVirtualRouters in paginated
|
786 | output. When you use this parameter, ListVirtualRouters returns only
|
787 | limit results in a single page along with a nextToken response
|
788 | element. You can see the remaining results of the initial request by sending another
|
789 | ListVirtualRouters request with the returned nextToken value.
|
790 | This value can be between 1 and 100. If you don't use this parameter,
|
791 | ListVirtualRouters returns up to 100 results and
|
792 | a nextToken value if applicable.
|
793 | */
|
794 | limit?: ListVirtualRoutersLimit;
|
795 | /**
|
796 | * The name of the service mesh to list virtual routers in.
|
797 | */
|
798 | meshName: ResourceName;
|
799 | /**
|
800 | * The nextToken value returned from a previous paginated
|
801 | ListVirtualRouters request where limit was used and the
|
802 | results exceeded the value of that parameter. Pagination continues from the end of the
|
803 | previous results that returned the nextToken value.
|
804 | */
|
805 | nextToken?: String;
|
806 | }
|
807 | export interface VirtualRouterData {
|
808 | /**
|
809 | * The name of the service mesh that the virtual router resides in.
|
810 | */
|
811 | meshName: ResourceName;
|
812 | /**
|
813 | * The associated metadata for the virtual router.
|
814 | */
|
815 | metadata: ResourceMetadata;
|
816 | /**
|
817 | * The specifications of the virtual router.
|
818 | */
|
819 | spec: VirtualRouterSpec;
|
820 | /**
|
821 | * The current status of the virtual router.
|
822 | */
|
823 | status: VirtualRouterStatus;
|
824 | /**
|
825 | * The name of the virtual router.
|
826 | */
|
827 | virtualRouterName: ResourceName;
|
828 | }
|
829 | export interface ListVirtualServicesInput {
|
830 | /**
|
831 | * The maximum number of results returned by ListVirtualServices in paginated
|
832 | output. When you use this parameter, ListVirtualServices returns only
|
833 | limit results in a single page along with a nextToken response
|
834 | element. You can see the remaining results of the initial request by sending another
|
835 | ListVirtualServices request with the returned nextToken value.
|
836 | This value can be between 1 and 100. If you don't use this parameter,
|
837 | ListVirtualServices returns up to 100 results and
|
838 | a nextToken value if applicable.
|
839 | */
|
840 | limit?: ListVirtualServicesLimit;
|
841 | /**
|
842 | * The name of the service mesh to list virtual services in.
|
843 | */
|
844 | meshName: ResourceName;
|
845 | /**
|
846 | * The nextToken value returned from a previous paginated
|
847 | ListVirtualServices request where limit was used and the
|
848 | results exceeded the value of that parameter. Pagination continues from the end of the
|
849 | previous results that returned the nextToken value.
|
850 | */
|
851 | nextToken?: String;
|
852 | }
|
853 | export interface CreateVirtualRouterInput {
|
854 | /**
|
855 | * Unique, case-sensitive identifier that you provide to ensure the idempotency of the
|
856 | request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
|
857 | */
|
858 | clientToken?: String;
|
859 | /**
|
860 | * The name of the service mesh to create the virtual router in.
|
861 | */
|
862 | meshName: ResourceName;
|
863 | /**
|
864 | * The virtual router specification to apply.
|
865 | */
|
866 | spec: VirtualRouterSpec;
|
867 | /**
|
868 | * The name to use for the virtual router.
|
869 | */
|
870 | virtualRouterName: ResourceName;
|
871 | }
|
872 | export interface ListVirtualNodesInput {
|
873 | /**
|
874 | * The maximum number of results returned by ListVirtualNodes in paginated
|
875 | output. When you use this parameter, ListVirtualNodes returns only
|
876 | limit results in a single page along with a nextToken response
|
877 | element. You can see the remaining results of the initial request by sending another
|
878 | ListVirtualNodes request with the returned nextToken value.
|
879 | This value can be between 1 and 100. If you don't use this parameter,
|
880 | ListVirtualNodes returns up to 100 results and a
|
881 | nextToken value if applicable.
|
882 | */
|
883 | limit?: ListVirtualNodesLimit;
|
884 | /**
|
885 | * The name of the service mesh to list virtual nodes in.
|
886 | */
|
887 | meshName: ResourceName;
|
888 | /**
|
889 | * The nextToken value returned from a previous paginated
|
890 | ListVirtualNodes request where limit was used and the
|
891 | results exceeded the value of that parameter. Pagination continues from the end of the
|
892 | previous results that returned the nextToken value.
|
893 | */
|
894 | nextToken?: String;
|
895 | }
|
896 | export interface DescribeVirtualRouterOutput {
|
897 | /**
|
898 | * The full description of your virtual router.
|
899 | */
|
900 | virtualRouter: VirtualRouterData;
|
901 | }
|
902 | export interface CreateMeshOutput {
|
903 | /**
|
904 | * The full description of your service mesh following the create call.
|
905 | */
|
906 | mesh: MeshData;
|
907 | }
|
908 | export interface CreateVirtualRouterOutput {
|
909 | /**
|
910 | * The full description of your virtual router following the create call.
|
911 | */
|
912 | virtualRouter: VirtualRouterData;
|
913 | }
|
914 | export interface VirtualServiceStatus {
|
915 | /**
|
916 | * The current status of the virtual service.
|
917 | */
|
918 | status: VirtualServiceStatusCode;
|
919 | }
|
920 | export type ListVirtualNodesLimit = number;
|
921 | export type HealthCheckTimeoutMillis = number;
|
922 | export type ListMeshesLimit = number;
|
923 | export type ResourceName = string;
|
924 | export interface VirtualRouterSpec {
|
925 | /**
|
926 | * The listeners that the virtual router is expected to receive inbound traffic from. Currently only one listener is supported per virtual router.
|
927 | */
|
928 | listeners: VirtualRouterListeners;
|
929 | }
|
930 | export type Timestamp = Date;
|
931 | export interface VirtualNodeSpec {
|
932 | /**
|
933 | * The backends that the virtual node is expected to send outbound traffic to.
|
934 | */
|
935 | backends?: Backends;
|
936 | /**
|
937 | * The listeners that the virtual node is expected to receive inbound traffic from. Currently only one listener is supported per virtual node.
|
938 | */
|
939 | listeners?: Listeners;
|
940 | /**
|
941 | * The service discovery information for the virtual node.
|
942 | */
|
943 | serviceDiscovery?: ServiceDiscovery;
|
944 | }
|
945 | export interface ListMeshesOutput {
|
946 | /**
|
947 | * The list of existing service meshes.
|
948 | */
|
949 | meshes: MeshList;
|
950 | /**
|
951 | * The nextToken value to include in a future ListMeshes
|
952 | request. When the results of a ListMeshes request exceed
|
953 | limit, you can use this value to retrieve the next page of
|
954 | results. This value is null when there are no more results to
|
955 | return.
|
956 | */
|
957 | nextToken?: String;
|
958 | }
|
959 | export type VirtualRouterListeners = VirtualRouterListener[];
|
960 | export interface DescribeRouteOutput {
|
961 | /**
|
962 | * The full description of your route.
|
963 | */
|
964 | route: RouteData;
|
965 | }
|
966 | export interface HttpRouteMatch {
|
967 | /**
|
968 | * Specifies the path to match requests with. This parameter must always start with
|
969 | /, which by itself matches all requests to the virtual router service name.
|
970 | You can also match for path-based routing of requests. For example, if your virtual router
|
971 | service name is my-service.local and you want the route to match requests to
|
972 | my-service.local/metrics, your prefix should be
|
973 | /metrics.
|
974 | */
|
975 | prefix: String;
|
976 | }
|
977 | export type MeshList = MeshRef[];
|
978 | export interface MeshRef {
|
979 | /**
|
980 | * The full Amazon Resource Name (ARN) of the service mesh.
|
981 | */
|
982 | arn: Arn;
|
983 | /**
|
984 | * The name of the service mesh.
|
985 | */
|
986 | meshName: ResourceName;
|
987 | }
|
988 | export type MeshStatusCode = "ACTIVE"|"DELETED"|"INACTIVE"|string;
|
989 | export interface PortMapping {
|
990 | /**
|
991 | * The port used for the port mapping.
|
992 | */
|
993 | port: PortNumber;
|
994 | /**
|
995 | * The protocol used for the port mapping.
|
996 | */
|
997 | protocol: PortProtocol;
|
998 | }
|
999 | export interface MeshData {
|
1000 | /**
|
1001 | * The name of the service mesh.
|
1002 | */
|
1003 | meshName: ResourceName;
|
1004 | /**
|
1005 | * The associated metadata for the service mesh.
|
1006 | */
|
1007 | metadata: ResourceMetadata;
|
1008 | /**
|
1009 | * The status of the service mesh.
|
1010 | */
|
1011 | status: MeshStatus;
|
1012 | }
|
1013 | export interface VirtualRouterStatus {
|
1014 | /**
|
1015 | * The current status of the virtual router.
|
1016 | */
|
1017 | status: VirtualRouterStatusCode;
|
1018 | }
|
1019 | export interface ListVirtualServicesOutput {
|
1020 | /**
|
1021 | * The nextToken value to include in a future ListVirtualServices
|
1022 | request. When the results of a ListVirtualServices request exceed
|
1023 | limit, you can use this value to retrieve the next page of results. This
|
1024 | value is null when there are no more results to return.
|
1025 | */
|
1026 | nextToken?: String;
|
1027 | /**
|
1028 | * The list of existing virtual services for the specified service mesh.
|
1029 | */
|
1030 | virtualServices: VirtualServiceList;
|
1031 | }
|
1032 | export interface WeightedTarget {
|
1033 | /**
|
1034 | * The virtual node to associate with the weighted target.
|
1035 | */
|
1036 | virtualNode: ResourceName;
|
1037 | /**
|
1038 | * The relative weight of the weighted target.
|
1039 | */
|
1040 | weight: PercentInt;
|
1041 | }
|
1042 | export interface DescribeVirtualNodeInput {
|
1043 | /**
|
1044 | * The name of the service mesh that the virtual node resides in.
|
1045 | */
|
1046 | meshName: ResourceName;
|
1047 | /**
|
1048 | * The name of the virtual node to describe.
|
1049 | */
|
1050 | virtualNodeName: ResourceName;
|
1051 | }
|
1052 | export interface RouteStatus {
|
1053 | /**
|
1054 | * The current status for the route.
|
1055 | */
|
1056 | status: RouteStatusCode;
|
1057 | }
|
1058 | export interface RouteRef {
|
1059 | /**
|
1060 | * The full Amazon Resource Name (ARN) for the route.
|
1061 | */
|
1062 | arn: Arn;
|
1063 | /**
|
1064 | * The name of the service mesh that the route resides in.
|
1065 | */
|
1066 | meshName: ResourceName;
|
1067 | /**
|
1068 | * The name of the route.
|
1069 | */
|
1070 | routeName: ResourceName;
|
1071 | /**
|
1072 | * The virtual router that the route is associated with.
|
1073 | */
|
1074 | virtualRouterName: ResourceName;
|
1075 | }
|
1076 | export interface Listener {
|
1077 | /**
|
1078 | * The health check information for the listener.
|
1079 | */
|
1080 | healthCheck?: HealthCheckPolicy;
|
1081 | /**
|
1082 | * The port mapping information for the listener.
|
1083 | */
|
1084 | portMapping: PortMapping;
|
1085 | }
|
1086 | export interface DeleteVirtualNodeInput {
|
1087 | /**
|
1088 | * The name of the service mesh to delete the virtual node in.
|
1089 | */
|
1090 | meshName: ResourceName;
|
1091 | /**
|
1092 | * The name of the virtual node to delete.
|
1093 | */
|
1094 | virtualNodeName: ResourceName;
|
1095 | }
|
1096 | export interface RouteData {
|
1097 | /**
|
1098 | * The name of the service mesh that the route resides in.
|
1099 | */
|
1100 | meshName: ResourceName;
|
1101 | /**
|
1102 | * The associated metadata for the route.
|
1103 | */
|
1104 | metadata: ResourceMetadata;
|
1105 | /**
|
1106 | * The name of the route.
|
1107 | */
|
1108 | routeName: ResourceName;
|
1109 | /**
|
1110 | * The specifications of the route.
|
1111 | */
|
1112 | spec: RouteSpec;
|
1113 | /**
|
1114 | * The status of the route.
|
1115 | */
|
1116 | status: RouteStatus;
|
1117 | /**
|
1118 | * The virtual router that the route is associated with.
|
1119 | */
|
1120 | virtualRouterName: ResourceName;
|
1121 | }
|
1122 | export type RouteStatusCode = "ACTIVE"|"DELETED"|"INACTIVE"|string;
|
1123 | export type ListRoutesLimit = number;
|
1124 | export interface DeleteVirtualServiceOutput {
|
1125 | /**
|
1126 | * The virtual service that was deleted.
|
1127 | */
|
1128 | virtualService: VirtualServiceData;
|
1129 | }
|
1130 | export interface VirtualNodeServiceProvider {
|
1131 | /**
|
1132 | * The name of the virtual node that is acting as a service provider.
|
1133 | */
|
1134 | virtualNodeName: ResourceName;
|
1135 | }
|
1136 | export interface DescribeVirtualRouterInput {
|
1137 | /**
|
1138 | * The name of the service mesh that the virtual router resides in.
|
1139 | */
|
1140 | meshName: ResourceName;
|
1141 | /**
|
1142 | * The name of the virtual router to describe.
|
1143 | */
|
1144 | virtualRouterName: ResourceName;
|
1145 | }
|
1146 | export type RouteList = RouteRef[];
|
1147 | export interface DeleteMeshOutput {
|
1148 | /**
|
1149 | * The service mesh that was deleted.
|
1150 | */
|
1151 | mesh: MeshData;
|
1152 | }
|
1153 | export type Hostname = string;
|
1154 | export type PortNumber = number;
|
1155 | export interface CreateRouteInput {
|
1156 | /**
|
1157 | * Unique, case-sensitive identifier that you provide to ensure the idempotency of the
|
1158 | request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
|
1159 | */
|
1160 | clientToken?: String;
|
1161 | /**
|
1162 | * The name of the service mesh in which to create the route.
|
1163 | */
|
1164 | meshName: ResourceName;
|
1165 | /**
|
1166 | * The name to use for the route.
|
1167 | */
|
1168 | routeName: ResourceName;
|
1169 | /**
|
1170 | * The route specification to apply.
|
1171 | */
|
1172 | spec: RouteSpec;
|
1173 | /**
|
1174 | * The name of the virtual router in which to create the route.
|
1175 | */
|
1176 | virtualRouterName: ResourceName;
|
1177 | }
|
1178 | export type WeightedTargets = WeightedTarget[];
|
1179 | export interface VirtualServiceProvider {
|
1180 | /**
|
1181 | * The virtual node associated with a virtual service.
|
1182 | */
|
1183 | virtualNode?: VirtualNodeServiceProvider;
|
1184 | /**
|
1185 | * The virtual router associated with a virtual service.
|
1186 | */
|
1187 | virtualRouter?: VirtualRouterServiceProvider;
|
1188 | }
|
1189 | export type String = string;
|
1190 | export interface UpdateVirtualServiceOutput {
|
1191 | /**
|
1192 | * A full description of the virtual service that was updated.
|
1193 | */
|
1194 | virtualService: VirtualServiceData;
|
1195 | }
|
1196 | export interface UpdateRouteInput {
|
1197 | /**
|
1198 | * Unique, case-sensitive identifier that you provide to ensure the idempotency of the
|
1199 | request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
|
1200 | */
|
1201 | clientToken?: String;
|
1202 | /**
|
1203 | * The name of the service mesh that the route resides in.
|
1204 | */
|
1205 | meshName: ResourceName;
|
1206 | /**
|
1207 | * The name of the route to update.
|
1208 | */
|
1209 | routeName: ResourceName;
|
1210 | /**
|
1211 | * The new route specification to apply. This overwrites the existing data.
|
1212 | */
|
1213 | spec: RouteSpec;
|
1214 | /**
|
1215 | * The name of the virtual router that the route is associated with.
|
1216 | */
|
1217 | virtualRouterName: ResourceName;
|
1218 | }
|
1219 | export interface MeshStatus {
|
1220 | /**
|
1221 | * The current mesh status.
|
1222 | */
|
1223 | status?: MeshStatusCode;
|
1224 | }
|
1225 | export interface CreateVirtualNodeInput {
|
1226 | /**
|
1227 | * Unique, case-sensitive identifier that you provide to ensure the idempotency of the
|
1228 | request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
|
1229 | */
|
1230 | clientToken?: String;
|
1231 | /**
|
1232 | * The name of the service mesh in which to create the virtual node.
|
1233 | */
|
1234 | meshName: ResourceName;
|
1235 | /**
|
1236 | * The virtual node specification to apply.
|
1237 | */
|
1238 | spec: VirtualNodeSpec;
|
1239 | /**
|
1240 | * The name to use for the virtual node.
|
1241 | */
|
1242 | virtualNodeName: ResourceName;
|
1243 | }
|
1244 | export interface RouteSpec {
|
1245 | /**
|
1246 | * The HTTP routing information for the route.
|
1247 | */
|
1248 | httpRoute?: HttpRoute;
|
1249 | }
|
1250 | export interface HttpRoute {
|
1251 | /**
|
1252 | * The action to take if a match is determined.
|
1253 | */
|
1254 | action: HttpRouteAction;
|
1255 | /**
|
1256 | * The criteria for determining an HTTP request match.
|
1257 | */
|
1258 | match: HttpRouteMatch;
|
1259 | }
|
1260 | export interface DescribeMeshInput {
|
1261 | /**
|
1262 | * The name of the service mesh to describe.
|
1263 | */
|
1264 | meshName: ResourceName;
|
1265 | }
|
1266 | export interface CreateVirtualServiceOutput {
|
1267 | /**
|
1268 | * The full description of your virtual service following the create call.
|
1269 | */
|
1270 | virtualService: VirtualServiceData;
|
1271 | }
|
1272 | export interface VirtualRouterServiceProvider {
|
1273 | /**
|
1274 | * The name of the virtual router that is acting as a service provider.
|
1275 | */
|
1276 | virtualRouterName: ResourceName;
|
1277 | }
|
1278 | export interface DeleteVirtualServiceInput {
|
1279 | /**
|
1280 | * The name of the service mesh to delete the virtual service in.
|
1281 | */
|
1282 | meshName: ResourceName;
|
1283 | /**
|
1284 | * The name of the virtual service to delete.
|
1285 | */
|
1286 | virtualServiceName: ServiceName;
|
1287 | }
|
1288 | export interface ServiceDiscovery {
|
1289 | /**
|
1290 | * Specifies the DNS information for the virtual node.
|
1291 | */
|
1292 | dns?: DnsServiceDiscovery;
|
1293 | }
|
1294 | export interface ListVirtualNodesOutput {
|
1295 | /**
|
1296 | * The nextToken value to include in a future ListVirtualNodes
|
1297 | request. When the results of a ListVirtualNodes request exceed
|
1298 | limit, you can use this value to retrieve the next page of
|
1299 | results. This value is null when there are no more results to
|
1300 | return.
|
1301 | */
|
1302 | nextToken?: String;
|
1303 | /**
|
1304 | * The list of existing virtual nodes for the specified service mesh.
|
1305 | */
|
1306 | virtualNodes: VirtualNodeList;
|
1307 | }
|
1308 | export interface DeleteVirtualRouterOutput {
|
1309 | /**
|
1310 | * The virtual router that was deleted.
|
1311 | */
|
1312 | virtualRouter: VirtualRouterData;
|
1313 | }
|
1314 | export type VirtualServiceStatusCode = "ACTIVE"|"DELETED"|"INACTIVE"|string;
|
1315 | export interface DeleteVirtualNodeOutput {
|
1316 | /**
|
1317 | * The virtual node that was deleted.
|
1318 | */
|
1319 | virtualNode: VirtualNodeData;
|
1320 | }
|
1321 | /**
|
1322 | * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
|
1323 | */
|
1324 | export type apiVersion = "2018-10-01"|"2018-10-01"|"2019-01-25"|"latest"|string;
|
1325 | export interface ClientApiVersions {
|
1326 | /**
|
1327 | * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
|
1328 | */
|
1329 | apiVersion?: apiVersion;
|
1330 | }
|
1331 | export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
|
1332 | /**
|
1333 | * Contains interfaces for use with the AppMesh client.
|
1334 | */
|
1335 | export import Types = AppMesh;
|
1336 | }
|
1337 | export = AppMesh;
|
1338 |
|
\ | No newline at end of file |