PortMapping

class aws_cdk.aws_appmesh.PortMapping(*, port, protocol)

Bases: object

(experimental) Port mappings for resources that require these attributes, such as VirtualNodes and Routes.

Parameters
  • port (Union[int, float]) – (experimental) Port mapped to the VirtualNode / Route. Default: 8080

  • protocol (Protocol) – (experimental) Protocol for the VirtualNode / Route, only GRPC, HTTP, HTTP2, or TCP is supported. Default: HTTP

Stability

experimental

Attributes

port

(experimental) Port mapped to the VirtualNode / Route.

Default

8080

Stability

experimental

Return type

Union[int, float]

protocol

(experimental) Protocol for the VirtualNode / Route, only GRPC, HTTP, HTTP2, or TCP is supported.

Default

HTTP

Stability

experimental

Return type

Protocol