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 {TaintProperty -> ()
haddock_workaround_ :: (),
                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-nodegroup-taint.html#cfn-eks-nodegroup-taint-effect>
                   TaintProperty -> Maybe (Value Text)
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>
                   TaintProperty -> Maybe (Value Text)
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>
                   TaintProperty -> Maybe (Value Text)
value :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (TaintProperty -> TaintProperty -> Bool
(TaintProperty -> TaintProperty -> Bool)
-> (TaintProperty -> TaintProperty -> Bool) -> Eq TaintProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TaintProperty -> TaintProperty -> Bool
== :: TaintProperty -> TaintProperty -> Bool
$c/= :: TaintProperty -> TaintProperty -> Bool
/= :: TaintProperty -> TaintProperty -> Bool
Prelude.Eq, Int -> TaintProperty -> ShowS
[TaintProperty] -> ShowS
TaintProperty -> String
(Int -> TaintProperty -> ShowS)
-> (TaintProperty -> String)
-> ([TaintProperty] -> ShowS)
-> Show TaintProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TaintProperty -> ShowS
showsPrec :: Int -> TaintProperty -> ShowS
$cshow :: TaintProperty -> String
show :: TaintProperty -> String
$cshowList :: [TaintProperty] -> ShowS
showList :: [TaintProperty] -> ShowS
Prelude.Show)
mkTaintProperty :: TaintProperty
mkTaintProperty :: TaintProperty
mkTaintProperty
  = TaintProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), effect :: Maybe (Value Text)
effect = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       key :: Maybe (Value Text)
key = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, value :: Maybe (Value Text)
value = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TaintProperty where
  toResourceProperties :: TaintProperty -> ResourceProperties
toResourceProperties TaintProperty {Maybe (Value Text)
()
haddock_workaround_ :: TaintProperty -> ()
effect :: TaintProperty -> Maybe (Value Text)
key :: TaintProperty -> Maybe (Value Text)
value :: TaintProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
effect :: Maybe (Value Text)
key :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EKS::Nodegroup.Taint",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Effect" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
effect,
                            Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Key" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
key,
                            Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Value" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
value])}
instance JSON.ToJSON TaintProperty where
  toJSON :: TaintProperty -> Value
toJSON TaintProperty {Maybe (Value Text)
()
haddock_workaround_ :: TaintProperty -> ()
effect :: TaintProperty -> Maybe (Value Text)
key :: TaintProperty -> Maybe (Value Text)
value :: TaintProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
effect :: Maybe (Value Text)
key :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Effect" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
effect,
               Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Key" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
key,
               Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Value" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
value]))
instance Property "Effect" TaintProperty where
  type PropertyType "Effect" TaintProperty = Value Prelude.Text
  set :: PropertyType "Effect" TaintProperty
-> TaintProperty -> TaintProperty
set PropertyType "Effect" TaintProperty
newValue TaintProperty {Maybe (Value Text)
()
haddock_workaround_ :: TaintProperty -> ()
effect :: TaintProperty -> Maybe (Value Text)
key :: TaintProperty -> Maybe (Value Text)
value :: TaintProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
effect :: Maybe (Value Text)
key :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
    = TaintProperty {effect :: Maybe (Value Text)
effect = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Effect" TaintProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
key :: Maybe (Value Text)
value :: Maybe (Value Text)
haddock_workaround_ :: ()
key :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
instance Property "Key" TaintProperty where
  type PropertyType "Key" TaintProperty = Value Prelude.Text
  set :: PropertyType "Key" TaintProperty -> TaintProperty -> TaintProperty
set PropertyType "Key" TaintProperty
newValue TaintProperty {Maybe (Value Text)
()
haddock_workaround_ :: TaintProperty -> ()
effect :: TaintProperty -> Maybe (Value Text)
key :: TaintProperty -> Maybe (Value Text)
value :: TaintProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
effect :: Maybe (Value Text)
key :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
    = TaintProperty {key :: Maybe (Value Text)
key = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Key" TaintProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
effect :: Maybe (Value Text)
value :: Maybe (Value Text)
haddock_workaround_ :: ()
effect :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
instance Property "Value" TaintProperty where
  type PropertyType "Value" TaintProperty = Value Prelude.Text
  set :: PropertyType "Value" TaintProperty
-> TaintProperty -> TaintProperty
set PropertyType "Value" TaintProperty
newValue TaintProperty {Maybe (Value Text)
()
haddock_workaround_ :: TaintProperty -> ()
effect :: TaintProperty -> Maybe (Value Text)
key :: TaintProperty -> Maybe (Value Text)
value :: TaintProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
effect :: Maybe (Value Text)
key :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
    = TaintProperty {value :: Maybe (Value Text)
value = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Value" TaintProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
effect :: Maybe (Value Text)
key :: Maybe (Value Text)
haddock_workaround_ :: ()
effect :: Maybe (Value Text)
key :: Maybe (Value Text)
..}