Class: AWSCDK::EKS::CfnCluster::ControlPlanePlacementProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EKS::CfnCluster::ControlPlanePlacementProperty
- Defined in:
- eks/cfn_cluster.rb
Overview
The placement configuration for all the control plane instances of your local Amazon EKS cluster on an AWS Outpost.
For more information, see Capacity considerations in the Amazon EKS User Guide .
Instance Attribute Summary collapse
-
#group_name ⇒ String?
readonly
The name of the placement group for the Kubernetes control plane instances.
-
#spread_level ⇒ String?
readonly
Optional parameter to specify the placement group spread level for control plane instances.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(group_name: nil, spread_level: nil) ⇒ ControlPlanePlacementProperty
constructor
A new instance of ControlPlanePlacementProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(group_name: nil, spread_level: nil) ⇒ ControlPlanePlacementProperty
Returns a new instance of ControlPlanePlacementProperty.
1051 1052 1053 1054 1055 1056 |
# File 'eks/cfn_cluster.rb', line 1051 def initialize(group_name: nil, spread_level: nil) @group_name = group_name Jsii::Type.check_type(@group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "groupName") unless @group_name.nil? @spread_level = spread_level Jsii::Type.check_type(@spread_level, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "spreadLevel") unless @spread_level.nil? end |
Instance Attribute Details
#group_name ⇒ String? (readonly)
The name of the placement group for the Kubernetes control plane instances.
This property is only used for a local cluster on an AWS Outpost.
1064 1065 1066 |
# File 'eks/cfn_cluster.rb', line 1064 def group_name @group_name end |
#spread_level ⇒ String? (readonly)
Optional parameter to specify the placement group spread level for control plane instances.
If not provided, EKS will deploy control plane instances without a placement group.
1071 1072 1073 |
# File 'eks/cfn_cluster.rb', line 1071 def spread_level @spread_level end |
Class Method Details
.jsii_properties ⇒ Object
1073 1074 1075 1076 1077 1078 |
# File 'eks/cfn_cluster.rb', line 1073 def self.jsii_properties { :group_name => "groupName", :spread_level => "spreadLevel", } end |
Instance Method Details
#to_jsii ⇒ Object
1080 1081 1082 1083 1084 1085 1086 1087 |
# File 'eks/cfn_cluster.rb', line 1080 def to_jsii result = {} result.merge!({ "groupName" => @group_name, "spreadLevel" => @spread_level, }) result.compact end |