Class: AWSCDK::ARCRegionSwitch::CfnPlan::KubernetesResourceTypeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ARCRegionSwitch::CfnPlan::KubernetesResourceTypeProperty
- Defined in:
- arc_region_switch/cfn_plan.rb
Overview
Defines the type of Kubernetes resource to scale in an Amazon EKS cluster.
Instance Attribute Summary collapse
-
#api_version ⇒ String
readonly
The API version type for the Kubernetes resource.
-
#kind ⇒ String
readonly
The kind for the Kubernetes resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(api_version:, kind:) ⇒ KubernetesResourceTypeProperty
constructor
A new instance of KubernetesResourceTypeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(api_version:, kind:) ⇒ KubernetesResourceTypeProperty
Returns a new instance of KubernetesResourceTypeProperty.
2093 2094 2095 2096 2097 2098 |
# File 'arc_region_switch/cfn_plan.rb', line 2093 def initialize(api_version:, kind:) @api_version = api_version Jsii::Type.check_type(@api_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "apiVersion") @kind = kind Jsii::Type.check_type(@kind, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kind") end |
Instance Attribute Details
#api_version ⇒ String (readonly)
The API version type for the Kubernetes resource.
2104 2105 2106 |
# File 'arc_region_switch/cfn_plan.rb', line 2104 def api_version @api_version end |
#kind ⇒ String (readonly)
The kind for the Kubernetes resource.
2109 2110 2111 |
# File 'arc_region_switch/cfn_plan.rb', line 2109 def kind @kind end |
Class Method Details
.jsii_properties ⇒ Object
2111 2112 2113 2114 2115 2116 |
# File 'arc_region_switch/cfn_plan.rb', line 2111 def self.jsii_properties { :api_version => "apiVersion", :kind => "kind", } end |
Instance Method Details
#to_jsii ⇒ Object
2118 2119 2120 2121 2122 2123 2124 2125 |
# File 'arc_region_switch/cfn_plan.rb', line 2118 def to_jsii result = {} result.merge!({ "apiVersion" => @api_version, "kind" => @kind, }) result.compact end |