PortMapping

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

Bases: object

__init__(*, port, protocol)

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

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

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

stability :stability: experimental

Attributes

port

Port mapped to the VirtualNode / Route.

default :default: 8080

stability :stability: experimental

Return type

Union[int, float]

protocol

Protocol for the VirtualNode / Route, only TCP or HTTP supported.

default :default: HTTP

stability :stability: experimental

Return type

Protocol