delete_mesh
(**kwargs)¶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.
See also: AWS API Documentation
Request Syntax
response = client.delete_mesh(
meshName='string'
)
[REQUIRED]
The name of the service mesh to delete.
{
'mesh': {
'meshName': 'string',
'metadata': {
'arn': 'string',
'createdAt': datetime(2015, 1, 1),
'lastUpdatedAt': datetime(2015, 1, 1),
'meshOwner': 'string',
'resourceOwner': 'string',
'uid': 'string',
'version': 123
},
'spec': {
'egressFilter': {
'type': 'ALLOW_ALL'|'DROP_ALL'
},
'serviceDiscovery': {
'ipPreference': 'IPv6_PREFERRED'|'IPv4_PREFERRED'|'IPv4_ONLY'|'IPv6_ONLY'
}
},
'status': {
'status': 'ACTIVE'|'INACTIVE'|'DELETED'
}
}
}
Response Structure
The service mesh that was deleted.
The name of the service mesh.
The associated metadata for the service mesh.
The full Amazon Resource Name (ARN) for the resource.
The Unix epoch timestamp in seconds for when the resource was created.
The Unix epoch timestamp in seconds for when the resource was last updated.
The 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.
The Amazon Web Services IAM account ID of the resource owner. If the account ID is not your own, then it's the ID of the mesh owner or of another account that the mesh is shared with. For more information about mesh sharing, see Working with shared meshes.
The unique identifier for the resource.
The version of the resource. Resources are created at version 1, and this version is incremented each time that they're updated.
The associated specification for the service mesh.
The egress filter rules for the service mesh.
The egress filter type. By default, the type is DROP_ALL
, which allows egress only from virtual nodes to other defined resources in the service mesh (and any traffic to *.amazonaws.com
for Amazon Web Services API calls). You can set the egress filter type to ALLOW_ALL
to allow egress to any endpoint inside or outside of the service mesh.
An object that represents the service discovery information for a service mesh.
The IP version to use to control traffic within the mesh.
The status of the service mesh.
The current mesh status.
Exceptions
AppMesh.Client.exceptions.NotFoundException
AppMesh.Client.exceptions.BadRequestException
AppMesh.Client.exceptions.TooManyRequestsException
AppMesh.Client.exceptions.ForbiddenException
AppMesh.Client.exceptions.ResourceInUseException
AppMesh.Client.exceptions.ServiceUnavailableException
AppMesh.Client.exceptions.InternalServerErrorException