Class: CDK8sPlus25::ServiceIngressBackendOptions

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
service_ingress_backend_options.rb

Overview

Options for setting up backends for ingress rules.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(port: nil) ⇒ ServiceIngressBackendOptions

Returns a new instance of ServiceIngressBackendOptions.

Parameters:

  • port (Numeric, nil) (defaults to: nil)

    The port to use to access the service.



8
9
10
11
# File 'service_ingress_backend_options.rb', line 8

def initialize(port: nil)
  @port = port
  Jsii::Type.check_type(@port, "eyJwcmltaXRpdmUiOiJudW1iZXIifQ==", "port") unless @port.nil?
end

Instance Attribute Details

#portNumeric? (readonly)

Note:

Default: - if the service exposes a single port, this port will be used.

The port to use to access the service.

  • This option will fail if the service does not expose any ports.
  • If the service exposes multiple ports, this option must be specified.
  • If the service exposes a single port, this option is optional and if specified, it must be the same port exposed by the service.

Returns:

  • (Numeric, nil)


22
23
24
# File 'service_ingress_backend_options.rb', line 22

def port
  @port
end

Class Method Details

.jsii_propertiesObject



24
25
26
27
28
# File 'service_ingress_backend_options.rb', line 24

def self.jsii_properties
  {
    :port => "port",
  }
end

Instance Method Details

#to_jsiiObject



30
31
32
33
34
35
36
# File 'service_ingress_backend_options.rb', line 30

def to_jsii
  result = {}
  result.merge!({
    "port" => @port,
  })
  result.compact
end