stratosphere-eks-1.0.0: gen/Stratosphere/EKS/Cluster/ZonalShiftConfigProperty.hs
module Stratosphere.EKS.Cluster.ZonalShiftConfigProperty (
ZonalShiftConfigProperty(..), mkZonalShiftConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ZonalShiftConfigProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-cluster-zonalshiftconfig.html>
ZonalShiftConfigProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-cluster-zonalshiftconfig.html#cfn-eks-cluster-zonalshiftconfig-enabled>
enabled :: (Prelude.Maybe (Value Prelude.Bool))}
deriving stock (Prelude.Eq, Prelude.Show)
mkZonalShiftConfigProperty :: ZonalShiftConfigProperty
mkZonalShiftConfigProperty
= ZonalShiftConfigProperty
{haddock_workaround_ = (), enabled = Prelude.Nothing}
instance ToResourceProperties ZonalShiftConfigProperty where
toResourceProperties ZonalShiftConfigProperty {..}
= ResourceProperties
{awsType = "AWS::EKS::Cluster.ZonalShiftConfig",
supportsTags = Prelude.False,
properties = Prelude.fromList
(Prelude.catMaybes [(JSON..=) "Enabled" Prelude.<$> enabled])}
instance JSON.ToJSON ZonalShiftConfigProperty where
toJSON ZonalShiftConfigProperty {..}
= JSON.object
(Prelude.fromList
(Prelude.catMaybes [(JSON..=) "Enabled" Prelude.<$> enabled]))
instance Property "Enabled" ZonalShiftConfigProperty where
type PropertyType "Enabled" ZonalShiftConfigProperty = Value Prelude.Bool
set newValue ZonalShiftConfigProperty {..}
= ZonalShiftConfigProperty {enabled = Prelude.pure newValue, ..}