AppMeshClient#
Auto-generated documentation for AppMesh type annotations stubs module mypy-boto3-appmesh.
AppMeshClient#
Type annotations and code completion for boto3.client("appmesh")
.
boto3 documentation
# AppMeshClient usage example
from boto3.session import Session
from mypy_boto3_appmesh.client import AppMeshClient
def get_appmesh_client() -> AppMeshClient:
return Session().client("appmesh")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("appmesh").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("appmesh")
try:
do_something(client)
except (
client.exceptions.BadRequestException,
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.ForbiddenException,
client.exceptions.InternalServerErrorException,
client.exceptions.LimitExceededException,
client.exceptions.NotFoundException,
client.exceptions.ResourceInUseException,
client.exceptions.ServiceUnavailableException,
client.exceptions.TooManyRequestsException,
client.exceptions.TooManyTagsException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_appmesh.client import Exceptions
def handle_error(exc: Exceptions.BadRequestException) -> None:
...
Methods#
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("appmesh").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
close#
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("appmesh").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
create_gateway_route#
Creates a gateway route.
Type annotations and code completion for boto3.client("appmesh").create_gateway_route
method.
boto3 documentation
# create_gateway_route method definition
def create_gateway_route(
self,
*,
gatewayRouteName: str,
meshName: str,
spec: Union[GatewayRouteSpecTypeDef, GatewayRouteSpecOutputTypeDef], # (1)
virtualGatewayName: str,
clientToken: str = ...,
meshOwner: str = ...,
tags: Sequence[TagRefTypeDef] = ..., # (2)
) -> CreateGatewayRouteOutputTypeDef: # (3)
...
- See GatewayRouteSpecTypeDef GatewayRouteSpecOutputTypeDef
- See TagRefTypeDef
- See CreateGatewayRouteOutputTypeDef
# create_gateway_route method usage example with argument unpacking
kwargs: CreateGatewayRouteInputRequestTypeDef = { # (1)
"gatewayRouteName": ...,
"meshName": ...,
"spec": ...,
"virtualGatewayName": ...,
}
parent.create_gateway_route(**kwargs)
create_mesh#
Creates a service mesh.
Type annotations and code completion for boto3.client("appmesh").create_mesh
method.
boto3 documentation
# create_mesh method definition
def create_mesh(
self,
*,
meshName: str,
clientToken: str = ...,
spec: MeshSpecTypeDef = ..., # (1)
tags: Sequence[TagRefTypeDef] = ..., # (2)
) -> CreateMeshOutputTypeDef: # (3)
...
- See MeshSpecTypeDef
- See TagRefTypeDef
- See CreateMeshOutputTypeDef
# create_mesh method usage example with argument unpacking
kwargs: CreateMeshInputRequestTypeDef = { # (1)
"meshName": ...,
}
parent.create_mesh(**kwargs)
create_route#
Creates a route that is associated with a virtual router.
Type annotations and code completion for boto3.client("appmesh").create_route
method.
boto3 documentation
# create_route method definition
def create_route(
self,
*,
meshName: str,
routeName: str,
spec: Union[RouteSpecTypeDef, RouteSpecOutputTypeDef], # (1)
virtualRouterName: str,
clientToken: str = ...,
meshOwner: str = ...,
tags: Sequence[TagRefTypeDef] = ..., # (2)
) -> CreateRouteOutputTypeDef: # (3)
...
# create_route method usage example with argument unpacking
kwargs: CreateRouteInputRequestTypeDef = { # (1)
"meshName": ...,
"routeName": ...,
"spec": ...,
"virtualRouterName": ...,
}
parent.create_route(**kwargs)
create_virtual_gateway#
Creates a virtual gateway.
Type annotations and code completion for boto3.client("appmesh").create_virtual_gateway
method.
boto3 documentation
# create_virtual_gateway method definition
def create_virtual_gateway(
self,
*,
meshName: str,
spec: Union[VirtualGatewaySpecTypeDef, VirtualGatewaySpecOutputTypeDef], # (1)
virtualGatewayName: str,
clientToken: str = ...,
meshOwner: str = ...,
tags: Sequence[TagRefTypeDef] = ..., # (2)
) -> CreateVirtualGatewayOutputTypeDef: # (3)
...
- See VirtualGatewaySpecTypeDef VirtualGatewaySpecOutputTypeDef
- See TagRefTypeDef
- See CreateVirtualGatewayOutputTypeDef
# create_virtual_gateway method usage example with argument unpacking
kwargs: CreateVirtualGatewayInputRequestTypeDef = { # (1)
"meshName": ...,
"spec": ...,
"virtualGatewayName": ...,
}
parent.create_virtual_gateway(**kwarg