Class: AWSCDK::EKS::CfnCluster::UpgradePolicyProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
eks/cfn_cluster.rb

Overview

The support policy to use for the cluster.

Extended support allows you to remain on specific Kubernetes versions for longer. Clusters in extended support have higher costs. The default value is EXTENDED . Use STANDARD to disable extended support.

Learn more about EKS Extended Support in the Amazon EKS User Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(support_type: nil) ⇒ UpgradePolicyProperty

Returns a new instance of UpgradePolicyProperty.

Parameters:

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

    If the cluster is set to EXTENDED , it will enter extended support at the end of standard support.



1839
1840
1841
1842
# File 'eks/cfn_cluster.rb', line 1839

def initialize(support_type: nil)
  @support_type = support_type
  Jsii::Type.check_type(@support_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "supportType") unless @support_type.nil?
end

Instance Attribute Details

#support_typeString? (readonly)

If the cluster is set to EXTENDED , it will enter extended support at the end of standard support.

If the cluster is set to STANDARD , it will be automatically upgraded at the end of standard support.

Learn more about EKS Extended Support in the Amazon EKS User Guide .



1852
1853
1854
# File 'eks/cfn_cluster.rb', line 1852

def support_type
  @support_type
end

Class Method Details

.jsii_propertiesObject



1854
1855
1856
1857
1858
# File 'eks/cfn_cluster.rb', line 1854

def self.jsii_properties
  {
    :support_type => "supportType",
  }
end

Instance Method Details

#to_jsiiObject



1860
1861
1862
1863
1864
1865
1866
# File 'eks/cfn_cluster.rb', line 1860

def to_jsii
  result = {}
  result.merge!({
    "supportType" => @support_type,
  })
  result.compact
end