Class: AWSCDK::EKS::ALBControllerHelmChartOptions

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
eks/alb_controller_helm_chart_options.rb

Overview

Helm chart options that can be set for AlbControllerChart To add any new supported values refer https://github.com/kubernetes-sigs/aws-load-balancer-controller/blob/main/helm/aws-load-balancer-controller/values.yaml.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enable_waf: nil, enable_wafv2: nil) ⇒ ALBControllerHelmChartOptions

Returns a new instance of ALBControllerHelmChartOptions.

Parameters:

  • enable_waf (Boolean, nil) (defaults to: nil)

    Enable or disable AWS WAF on the ALB ingress controller.

  • enable_wafv2 (Boolean, nil) (defaults to: nil)

    Enable or disable AWS WAFv2 on the ALB ingress controller.



9
10
11
12
13
14
# File 'eks/alb_controller_helm_chart_options.rb', line 9

def initialize(enable_waf: nil, enable_wafv2: nil)
  @enable_waf = enable_waf
  Jsii::Type.check_type(@enable_waf, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "enableWaf") unless @enable_waf.nil?
  @enable_wafv2 = enable_wafv2
  Jsii::Type.check_type(@enable_wafv2, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "enableWafv2") unless @enable_wafv2.nil?
end

Instance Attribute Details

#enable_wafBoolean? (readonly)

Note:

Default: - no value defined for this helm chart option, so it will not be set in the helm chart values

Enable or disable AWS WAF on the ALB ingress controller.

Returns:

  • (Boolean, nil)


20
21
22
# File 'eks/alb_controller_helm_chart_options.rb', line 20

def enable_waf
  @enable_waf
end

#enable_wafv2Boolean? (readonly)

Note:

Default: - no value defined for this helm chart option, so it will not be set in the helm chart values

Enable or disable AWS WAFv2 on the ALB ingress controller.

Returns:

  • (Boolean, nil)


25
26
27
# File 'eks/alb_controller_helm_chart_options.rb', line 25

def enable_wafv2
  @enable_wafv2
end

Class Method Details

.jsii_propertiesObject



27
28
29
30
31
32
# File 'eks/alb_controller_helm_chart_options.rb', line 27

def self.jsii_properties
  {
    :enable_waf => "enableWaf",
    :enable_wafv2 => "enableWafv2",
  }
end

Instance Method Details

#to_jsiiObject



34
35
36
37
38
39
40
41
# File 'eks/alb_controller_helm_chart_options.rb', line 34

def to_jsii
  result = {}
  result.merge!({
    "enableWaf" => @enable_waf,
    "enableWafv2" => @enable_wafv2,
  })
  result.compact
end