ServiceEndpointSpecPort constructor

const ServiceEndpointSpecPort({
  1. Input<String?>? name,
  2. Input<String?>? protocol,
  3. Input<String?>? publishMode,
  4. Input<int?>? publishedPort,
  5. required Input<int> targetPort,
})

Creates a new ServiceEndpointSpecPort. name A random name for the port protocol Represents the protocol of a port: tcp, udp or sctp. Defaults to tcp. publishMode Represents the mode in which the port is to be published: 'ingress' or 'host'. Defaults to ingress. publishedPort The port on the swarm hosts targetPort The port inside the container

Implementation

const ServiceEndpointSpecPort({
  this.name,
  this.protocol,
  this.publishMode,
  this.publishedPort,
  required this.targetPort,
});