module Stratosphere.GuardDuty.MalwareProtectionPlan.CFNTaggingProperty (
        CFNTaggingProperty(..), mkCFNTaggingProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CFNTaggingProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-malwareprotectionplan-cfntagging.html>
    CFNTaggingProperty {CFNTaggingProperty -> ()
haddock_workaround_ :: (),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-malwareprotectionplan-cfntagging.html#cfn-guardduty-malwareprotectionplan-cfntagging-status>
                        CFNTaggingProperty -> Maybe (Value Text)
status :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (CFNTaggingProperty -> CFNTaggingProperty -> Bool
(CFNTaggingProperty -> CFNTaggingProperty -> Bool)
-> (CFNTaggingProperty -> CFNTaggingProperty -> Bool)
-> Eq CFNTaggingProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CFNTaggingProperty -> CFNTaggingProperty -> Bool
== :: CFNTaggingProperty -> CFNTaggingProperty -> Bool
$c/= :: CFNTaggingProperty -> CFNTaggingProperty -> Bool
/= :: CFNTaggingProperty -> CFNTaggingProperty -> Bool
Prelude.Eq, Int -> CFNTaggingProperty -> ShowS
[CFNTaggingProperty] -> ShowS
CFNTaggingProperty -> String
(Int -> CFNTaggingProperty -> ShowS)
-> (CFNTaggingProperty -> String)
-> ([CFNTaggingProperty] -> ShowS)
-> Show CFNTaggingProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CFNTaggingProperty -> ShowS
showsPrec :: Int -> CFNTaggingProperty -> ShowS
$cshow :: CFNTaggingProperty -> String
show :: CFNTaggingProperty -> String
$cshowList :: [CFNTaggingProperty] -> ShowS
showList :: [CFNTaggingProperty] -> ShowS
Prelude.Show)
mkCFNTaggingProperty :: CFNTaggingProperty
mkCFNTaggingProperty :: CFNTaggingProperty
mkCFNTaggingProperty
  = CFNTaggingProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), status :: Maybe (Value Text)
status = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CFNTaggingProperty where
  toResourceProperties :: CFNTaggingProperty -> ResourceProperties
toResourceProperties CFNTaggingProperty {Maybe (Value Text)
()
haddock_workaround_ :: CFNTaggingProperty -> ()
status :: CFNTaggingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
status :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::GuardDuty::MalwareProtectionPlan.CFNTagging",
         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
"Status" (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)
status])}
instance JSON.ToJSON CFNTaggingProperty where
  toJSON :: CFNTaggingProperty -> Value
toJSON CFNTaggingProperty {Maybe (Value Text)
()
haddock_workaround_ :: CFNTaggingProperty -> ()
status :: CFNTaggingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
status :: 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
"Status" (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)
status]))
instance Property "Status" CFNTaggingProperty where
  type PropertyType "Status" CFNTaggingProperty = Value Prelude.Text
  set :: PropertyType "Status" CFNTaggingProperty
-> CFNTaggingProperty -> CFNTaggingProperty
set PropertyType "Status" CFNTaggingProperty
newValue CFNTaggingProperty {Maybe (Value Text)
()
haddock_workaround_ :: CFNTaggingProperty -> ()
status :: CFNTaggingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
status :: Maybe (Value Text)
..}
    = CFNTaggingProperty {status :: Maybe (Value Text)
status = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Status" CFNTaggingProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}