Skip to main content

meshes

Creates, updates, deletes, gets or lists a meshes resource.

Overview

Namemeshes
TypeResource
Idaws.appmesh.meshes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
mesh_namestringThe name of the service mesh.
metadataobjectAn object that represents metadata for a resource.
specobjectAn object that represents the specification of a service mesh.
statusobjectThe status of the service mesh.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_meshselectmesh_name, regionmeshOwnerDescribes an existing service mesh.
list_meshesselectregionlimit, nextTokenReturns a list of existing service meshes.
create_meshinsertregion, meshNameCreates a service mesh. A service mesh is a logical boundary for network traffic between services that are represented by resources within the mesh. After you create your service mesh, you can create virtual services, virtual nodes, virtual routers, and routes to distribute traffic between the applications in your mesh. For more information about service meshes, see Service meshes.
update_meshupdatemesh_name, regionUpdates an existing service mesh.
delete_meshdeletemesh_name, regionDeletes an existing service mesh. You must delete all resources (virtual services, routes, virtual routers, and virtual nodes) in the service mesh before you can delete the mesh itself.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
mesh_namestringThe name of the service mesh to delete.
regionstringAWS region (default: us-east-1)
limitintegerThe maximum number of results returned by ListMeshes in paginated output. When you use this parameter, ListMeshes returns only limit results in a single page along with a nextToken response element. You can see the remaining results of the initial request by sending another ListMeshes request with the returned nextToken value. This value can be between 1 and 100. If you don't use this parameter, ListMeshes returns up to 100 results and a nextToken value if applicable.
meshOwnerstringThe Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.
nextTokenstringThe nextToken value returned from a previous paginated ListMeshes request where limit was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This token should be treated as an opaque identifier that is used only to retrieve the next items in a list and not for other programmatic purposes.

SELECT examples

Describes an existing service mesh.

SELECT
mesh_name,
metadata,
spec,
status
FROM aws.appmesh.meshes
WHERE mesh_name = '{{ mesh_name }}' -- required
AND region = '{{ region }}' -- required
AND meshOwner = '{{ meshOwner }}'
;

INSERT examples

Creates a service mesh. A service mesh is a logical boundary for network traffic between services that are represented by resources within the mesh. After you create your service mesh, you can create virtual services, virtual nodes, virtual routers, and routes to distribute traffic between the applications in your mesh. For more information about service meshes, see Service meshes.

INSERT INTO aws.appmesh.meshes (
clientToken,
meshName,
spec,
tags,
region
)
SELECT
'{{ clientToken }}',
'{{ meshName }}' /* required */,
'{{ spec }}',
'{{ tags }}',
'{{ region }}'
RETURNING
mesh
;

UPDATE examples

Updates an existing service mesh.

UPDATE aws.appmesh.meshes
SET
clientToken = '{{ clientToken }}',
spec = '{{ spec }}'
WHERE
mesh_name = '{{ mesh_name }}' --required
AND region = '{{ region }}' --required
RETURNING
mesh;

DELETE examples

Deletes an existing service mesh. You must delete all resources (virtual services, routes, virtual routers, and virtual nodes) in the service mesh before you can delete the mesh itself.

DELETE FROM aws.appmesh.meshes
WHERE mesh_name = '{{ mesh_name }}' --required
AND region = '{{ region }}' --required
;