Class: CDK8sPlus25::ExposeServiceViaIngressOptions

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

Overview

Options for exposing a service using an ingress.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ingress: nil, path_type: nil) ⇒ ExposeServiceViaIngressOptions

Returns a new instance of ExposeServiceViaIngressOptions.

Parameters:



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

#ingressCDK8sPlus25::Ingress? (readonly)

Note:

Default: - An ingress will be automatically created.

The ingress to add rules to.

Returns:



20
21
22
# File 'expose_service_via_ingress_options.rb', line 20

def ingress
  @ingress
end

#path_typeCDK8sPlus25::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_propertiesObject



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_jsiiObject



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