ContainerPort constructor

const ContainerPort({
  1. Input<int>? containerPort,
  2. Input<String>? name,
  3. Input<String>? protocol,
})

Creates a new ContainerPort. containerPort Port number the container listens on. If present, this must be a valid port number, 0 < x < 65536. If not present, it will default to port 8080. For more information, see https://cloud.google.com/run/docs/container-contract#port name If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c". protocol Protocol for port. Must be "TCP". Defaults to "TCP".

Implementation

const ContainerPort({
  this.containerPort,
  this.name,
  this.protocol,
});