Class: CDK8sPlus25::ServiceIngressBackendOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- CDK8sPlus25::ServiceIngressBackendOptions
- Defined in:
- service_ingress_backend_options.rb
Overview
Options for setting up backends for ingress rules.
Instance Attribute Summary collapse
-
#port ⇒ Numeric?
readonly
The port to use to access the service.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(port: nil) ⇒ ServiceIngressBackendOptions
constructor
A new instance of ServiceIngressBackendOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(port: nil) ⇒ ServiceIngressBackendOptions
Returns a new instance of ServiceIngressBackendOptions.
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
#port ⇒ Numeric? (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.
22 23 24 |
# File 'service_ingress_backend_options.rb', line 22 def port @port end |
Class Method Details
.jsii_properties ⇒ Object
24 25 26 27 28 |
# File 'service_ingress_backend_options.rb', line 24 def self.jsii_properties { :port => "port", } end |
Instance Method Details
#to_jsii ⇒ Object
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 |