Class: AWSCDK::EKS::CfnCluster::ComputeConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EKS::CfnCluster::ComputeConfigProperty
- Defined in:
- eks/cfn_cluster.rb
Overview
Indicates the current configuration of the compute capability on your EKS Auto Mode cluster.
For example, if the capability is enabled or disabled. If the compute capability is enabled, EKS Auto Mode will create and delete EC2 Managed Instances in your AWS account. For more information, see EKS Auto Mode compute capability in the Amazon EKS User Guide .
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean, ...
readonly
Request to enable or disable the compute capability on your EKS Auto Mode cluster.
-
#node_pools ⇒ Array<String>?
readonly
Configuration for node pools that defines the compute resources for your EKS Auto Mode cluster.
-
#node_role_arn ⇒ String?
readonly
The ARN of the IAM Role EKS will assign to EC2 Managed Instances in your EKS Auto Mode cluster.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(enabled: nil, node_pools: nil, node_role_arn: nil) ⇒ ComputeConfigProperty
constructor
A new instance of ComputeConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(enabled: nil, node_pools: nil, node_role_arn: nil) ⇒ ComputeConfigProperty
Returns a new instance of ComputeConfigProperty.
991 992 993 994 995 996 997 998 |
# File 'eks/cfn_cluster.rb', line 991 def initialize(enabled: nil, node_pools: nil, node_role_arn: nil) @enabled = enabled Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled") unless @enabled.nil? @node_pools = node_pools Jsii::Type.check_type(@node_pools, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "nodePools") unless @node_pools.nil? @node_role_arn = node_role_arn Jsii::Type.check_type(@node_role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "nodeRoleArn") unless @node_role_arn.nil? end |
Instance Attribute Details
#enabled ⇒ Boolean, ... (readonly)
Request to enable or disable the compute capability on your EKS Auto Mode cluster.
If the compute capability is enabled, EKS Auto Mode will create and delete EC2 Managed Instances in your AWS account.
1006 1007 1008 |
# File 'eks/cfn_cluster.rb', line 1006 def enabled @enabled end |
#node_pools ⇒ Array<String>? (readonly)
Configuration for node pools that defines the compute resources for your EKS Auto Mode cluster.
For more information, see EKS Auto Mode Node Pools in the Amazon EKS User Guide .
1013 1014 1015 |
# File 'eks/cfn_cluster.rb', line 1013 def node_pools @node_pools end |
#node_role_arn ⇒ String? (readonly)
The ARN of the IAM Role EKS will assign to EC2 Managed Instances in your EKS Auto Mode cluster.
This value cannot be changed after the compute capability of EKS Auto Mode is enabled. For more information, see the IAM Reference in the Amazon EKS User Guide .
1020 1021 1022 |
# File 'eks/cfn_cluster.rb', line 1020 def node_role_arn @node_role_arn end |
Class Method Details
.jsii_properties ⇒ Object
1022 1023 1024 1025 1026 1027 1028 |
# File 'eks/cfn_cluster.rb', line 1022 def self.jsii_properties { :enabled => "enabled", :node_pools => "nodePools", :node_role_arn => "nodeRoleArn", } end |
Instance Method Details
#to_jsii ⇒ Object
1030 1031 1032 1033 1034 1035 1036 1037 1038 |
# File 'eks/cfn_cluster.rb', line 1030 def to_jsii result = {} result.merge!({ "enabled" => @enabled, "nodePools" => @node_pools, "nodeRoleArn" => @node_role_arn, }) result.compact end |