Class: AWSCDK::ARCRegionSwitch::CfnPlan::KubernetesScalingResourceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
arc_region_switch/cfn_plan.rb

Overview

Defines a Kubernetes resource to scale in an Amazon EKS cluster.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, namespace:, hpa_name: nil) ⇒ KubernetesScalingResourceProperty

Returns a new instance of KubernetesScalingResourceProperty.

Parameters:

  • name (String)

    The name for the Kubernetes resource.

  • namespace (String)

    The namespace for the Kubernetes resource.

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

    The hpaname for the Kubernetes resource.



2137
2138
2139
2140
2141
2142
2143
2144
# File 'arc_region_switch/cfn_plan.rb', line 2137

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

Instance Attribute Details

#hpa_nameString? (readonly)

The hpaname for the Kubernetes resource.



2160
2161
2162
# File 'arc_region_switch/cfn_plan.rb', line 2160

def hpa_name
  @hpa_name
end

#nameString (readonly)

The name for the Kubernetes resource.



2150
2151
2152
# File 'arc_region_switch/cfn_plan.rb', line 2150

def name
  @name
end

#namespaceString (readonly)

The namespace for the Kubernetes resource.



2155
2156
2157
# File 'arc_region_switch/cfn_plan.rb', line 2155

def namespace
  @namespace
end

Class Method Details

.jsii_propertiesObject



2162
2163
2164
2165
2166
2167
2168
# File 'arc_region_switch/cfn_plan.rb', line 2162

def self.jsii_properties
  {
    :name => "name",
    :namespace => "namespace",
    :hpa_name => "hpaName",
  }
end

Instance Method Details

#to_jsiiObject



2170
2171
2172
2173
2174
2175
2176
2177
2178
# File 'arc_region_switch/cfn_plan.rb', line 2170

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "namespace" => @namespace,
    "hpaName" => @hpa_name,
  })
  result.compact
end