Class: CDK8sPlus25::ExposeServiceViaIngressOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- CDK8sPlus25::ExposeServiceViaIngressOptions
- Defined in:
- expose_service_via_ingress_options.rb
Overview
Options for exposing a service using an ingress.
Instance Attribute Summary collapse
-
#ingress ⇒ CDK8sPlus25::Ingress?
readonly
The ingress to add rules to.
-
#path_type ⇒ CDK8sPlus25::HTTPIngressPathType?
readonly
The type of the path.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ingress: nil, path_type: nil) ⇒ ExposeServiceViaIngressOptions
constructor
A new instance of ExposeServiceViaIngressOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(ingress: nil, path_type: nil) ⇒ ExposeServiceViaIngressOptions
Returns a new instance of ExposeServiceViaIngressOptions.
9 10 11 12 13 14 |
# File 'expose_service_via_ingress_options.rb', line 9 def initialize(ingress: nil, path_type: nil) @ingress = ingress Jsii::Type.check_type(@ingress, "eyJmcW4iOiJjZGs4cy1wbHVzLTI1LkluZ3Jlc3MifQ==", "ingress") unless @ingress.nil? @path_type = path_type Jsii::Type.check_type(@path_type, "eyJmcW4iOiJjZGs4cy1wbHVzLTI1Lkh0dHBJbmdyZXNzUGF0aFR5cGUifQ==", "pathType") unless @path_type.nil? end |
Instance Attribute Details
#ingress ⇒ CDK8sPlus25::Ingress? (readonly)
Note:
Default: - An ingress will be automatically created.
The ingress to add rules to.
20 21 22 |
# File 'expose_service_via_ingress_options.rb', line 20 def ingress @ingress end |
#path_type ⇒ CDK8sPlus25::HTTPIngressPathType? (readonly)
Note:
Default: HttpIngressPathType.PREFIX
The type of the path.
25 26 27 |
# File 'expose_service_via_ingress_options.rb', line 25 def path_type @path_type end |
Class Method Details
.jsii_properties ⇒ Object
27 28 29 30 31 32 |
# File 'expose_service_via_ingress_options.rb', line 27 def self.jsii_properties { :ingress => "ingress", :path_type => "pathType", } end |
Instance Method Details
#to_jsii ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'expose_service_via_ingress_options.rb', line 34 def to_jsii result = {} result.merge!({ "ingress" => @ingress, "pathType" => @path_type, }) result.compact end |