packages feed

stratosphere-eks-1.0.0: gen/Stratosphere/EKS/Nodegroup/TaintProperty.hs

module Stratosphere.EKS.Nodegroup.TaintProperty (
        TaintProperty(..), mkTaintProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TaintProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-nodegroup-taint.html>
    TaintProperty {haddock_workaround_ :: (),
                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-nodegroup-taint.html#cfn-eks-nodegroup-taint-effect>
                   effect :: (Prelude.Maybe (Value Prelude.Text)),
                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-nodegroup-taint.html#cfn-eks-nodegroup-taint-key>
                   key :: (Prelude.Maybe (Value Prelude.Text)),
                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-nodegroup-taint.html#cfn-eks-nodegroup-taint-value>
                   value :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (Prelude.Eq, Prelude.Show)
mkTaintProperty :: TaintProperty
mkTaintProperty
  = TaintProperty
      {haddock_workaround_ = (), effect = Prelude.Nothing,
       key = Prelude.Nothing, value = Prelude.Nothing}
instance ToResourceProperties TaintProperty where
  toResourceProperties TaintProperty {..}
    = ResourceProperties
        {awsType = "AWS::EKS::Nodegroup.Taint",
         supportsTags = Prelude.False,
         properties = Prelude.fromList
                        (Prelude.catMaybes
                           [(JSON..=) "Effect" Prelude.<$> effect,
                            (JSON..=) "Key" Prelude.<$> key,
                            (JSON..=) "Value" Prelude.<$> value])}
instance JSON.ToJSON TaintProperty where
  toJSON TaintProperty {..}
    = JSON.object
        (Prelude.fromList
           (Prelude.catMaybes
              [(JSON..=) "Effect" Prelude.<$> effect,
               (JSON..=) "Key" Prelude.<$> key,
               (JSON..=) "Value" Prelude.<$> value]))
instance Property "Effect" TaintProperty where
  type PropertyType "Effect" TaintProperty = Value Prelude.Text
  set newValue TaintProperty {..}
    = TaintProperty {effect = Prelude.pure newValue, ..}
instance Property "Key" TaintProperty where
  type PropertyType "Key" TaintProperty = Value Prelude.Text
  set newValue TaintProperty {..}
    = TaintProperty {key = Prelude.pure newValue, ..}
instance Property "Value" TaintProperty where
  type PropertyType "Value" TaintProperty = Value Prelude.Text
  set newValue TaintProperty {..}
    = TaintProperty {value = Prelude.pure newValue, ..}