Class: AWSCDK::ARCRegionSwitch::CfnPlan::KubernetesScalingResourceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ARCRegionSwitch::CfnPlan::KubernetesScalingResourceProperty
- Defined in:
- arc_region_switch/cfn_plan.rb
Overview
Defines a Kubernetes resource to scale in an Amazon EKS cluster.
Instance Attribute Summary collapse
-
#hpa_name ⇒ String?
readonly
The hpaname for the Kubernetes resource.
-
#name ⇒ String
readonly
The name for the Kubernetes resource.
-
#namespace ⇒ String
readonly
The namespace for the Kubernetes resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, namespace:, hpa_name: nil) ⇒ KubernetesScalingResourceProperty
constructor
A new instance of KubernetesScalingResourceProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, namespace:, hpa_name: nil) ⇒ KubernetesScalingResourceProperty
Returns a new instance of KubernetesScalingResourceProperty.
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_name ⇒ String? (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 |
#name ⇒ String (readonly)
The name for the Kubernetes resource.
2150 2151 2152 |
# File 'arc_region_switch/cfn_plan.rb', line 2150 def name @name end |
#namespace ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |