GatewayRouteHostnameMatch
- class aws_cdk.aws_appmesh.GatewayRouteHostnameMatch
Bases:
object
Used to generate host name matching methods.
- ExampleMetadata:
infused
Example:
# gateway: appmesh.VirtualGateway # virtual_service: appmesh.VirtualService gateway.add_gateway_route("gateway-route-grpc", route_spec=appmesh.GatewayRouteSpec.grpc( route_target=virtual_service, match=appmesh.GrpcGatewayRouteMatch( hostname=appmesh.GatewayRouteHostnameMatch.ends_with(".example.com") ) ) )
Methods
- abstract bind(scope)
Returns the gateway route host name match configuration.
- Parameters:
scope (
Construct
) –- Return type:
Static Methods
- classmethod ends_with(suffix)
The value of the host name with the given name must end with the specified characters.
- Parameters:
suffix (
str
) – The specified ending characters of the host name to match on.- Return type:
- classmethod exactly(name)
The value of the host name must match the specified value exactly.
- Parameters:
name (
str
) – The exact host name to match on.- Return type: