ContainerPort constructor

const ContainerPort({
  1. Input<int?>? external,
  2. required Input<int> internal,
  3. Input<String?>? ip,
  4. Input<String?>? protocol,
})

Creates a new ContainerPort. external Port exposed out of the container. If not given a free random port &gt;= 32768 will be used. internal Port within the container. ip IP address/mask that can access this port. Defaults to 0.0.0.0. protocol Protocol that can be used over this port. Defaults to tcp.

Implementation

const ContainerPort({
  this.external,
  required this.internal,
  this.ip,
  this.protocol,
});