packages feed

stratosphere-eks-1.0.0: gen/Stratosphere/EKS/Cluster/UpgradePolicyProperty.hs

module Stratosphere.EKS.Cluster.UpgradePolicyProperty (
        UpgradePolicyProperty(..), mkUpgradePolicyProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data UpgradePolicyProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-cluster-upgradepolicy.html>
    UpgradePolicyProperty {haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-cluster-upgradepolicy.html#cfn-eks-cluster-upgradepolicy-supporttype>
                           supportType :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (Prelude.Eq, Prelude.Show)
mkUpgradePolicyProperty :: UpgradePolicyProperty
mkUpgradePolicyProperty
  = UpgradePolicyProperty
      {haddock_workaround_ = (), supportType = Prelude.Nothing}
instance ToResourceProperties UpgradePolicyProperty where
  toResourceProperties UpgradePolicyProperty {..}
    = ResourceProperties
        {awsType = "AWS::EKS::Cluster.UpgradePolicy",
         supportsTags = Prelude.False,
         properties = Prelude.fromList
                        (Prelude.catMaybes
                           [(JSON..=) "SupportType" Prelude.<$> supportType])}
instance JSON.ToJSON UpgradePolicyProperty where
  toJSON UpgradePolicyProperty {..}
    = JSON.object
        (Prelude.fromList
           (Prelude.catMaybes
              [(JSON..=) "SupportType" Prelude.<$> supportType]))
instance Property "SupportType" UpgradePolicyProperty where
  type PropertyType "SupportType" UpgradePolicyProperty = Value Prelude.Text
  set newValue UpgradePolicyProperty {..}
    = UpgradePolicyProperty {supportType = Prelude.pure newValue, ..}