Class: AWSCDK::EKSv2::IngressLoadBalancerAddressOptions

Inherits:
ServiceLoadBalancerAddressOptions
  • Object
show all
Defined in:
ek_sv2/ingress_load_balancer_address_options.rb

Overview

Options for fetching an IngressLoadBalancerAddress.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(namespace: nil, timeout: nil) ⇒ IngressLoadBalancerAddressOptions

Returns a new instance of IngressLoadBalancerAddressOptions.

Parameters:

  • namespace (String, nil) (defaults to: nil)

    The namespace the service belongs to.

  • timeout (AWSCDK::Duration, nil) (defaults to: nil)

    Timeout for waiting on the load balancer address.



9
10
11
12
13
14
# File 'ek_sv2/ingress_load_balancer_address_options.rb', line 9

def initialize(namespace: nil, timeout: nil)
  @namespace = namespace
  Jsii::Type.check_type(@namespace, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "namespace") unless @namespace.nil?
  @timeout = timeout
  Jsii::Type.check_type(@timeout, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5EdXJhdGlvbiJ9")), "timeout") unless @timeout.nil?
end

Instance Attribute Details

#namespaceString? (readonly)

Note:

Default: 'default'

The namespace the service belongs to.

Returns:

  • (String, nil)


20
21
22
# File 'ek_sv2/ingress_load_balancer_address_options.rb', line 20

def namespace
  @namespace
end

#timeoutAWSCDK::Duration? (readonly)

Note:

Default: Duration.minutes(5)

Timeout for waiting on the load balancer address.

Returns:



25
26
27
# File 'ek_sv2/ingress_load_balancer_address_options.rb', line 25

def timeout
  @timeout
end

Class Method Details

.jsii_propertiesObject



27
28
29
30
31
32
# File 'ek_sv2/ingress_load_balancer_address_options.rb', line 27

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

Instance Method Details

#to_jsiiObject



34
35
36
37
38
39
40
41
42
# File 'ek_sv2/ingress_load_balancer_address_options.rb', line 34

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