module Stratosphere.GuardDuty.Detector.CFNFeatureConfigurationProperty (
        module Exports, CFNFeatureConfigurationProperty(..),
        mkCFNFeatureConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.GuardDuty.Detector.CFNFeatureAdditionalConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CFNFeatureConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-detector-cfnfeatureconfiguration.html>
    CFNFeatureConfigurationProperty {CFNFeatureConfigurationProperty -> ()
haddock_workaround_ :: (),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-detector-cfnfeatureconfiguration.html#cfn-guardduty-detector-cfnfeatureconfiguration-additionalconfiguration>
                                     CFNFeatureConfigurationProperty
-> Maybe [CFNFeatureAdditionalConfigurationProperty]
additionalConfiguration :: (Prelude.Maybe [CFNFeatureAdditionalConfigurationProperty]),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-detector-cfnfeatureconfiguration.html#cfn-guardduty-detector-cfnfeatureconfiguration-name>
                                     CFNFeatureConfigurationProperty -> Value Text
name :: (Value Prelude.Text),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-detector-cfnfeatureconfiguration.html#cfn-guardduty-detector-cfnfeatureconfiguration-status>
                                     CFNFeatureConfigurationProperty -> Value Text
status :: (Value Prelude.Text)}
  deriving stock (CFNFeatureConfigurationProperty
-> CFNFeatureConfigurationProperty -> Bool
(CFNFeatureConfigurationProperty
 -> CFNFeatureConfigurationProperty -> Bool)
-> (CFNFeatureConfigurationProperty
    -> CFNFeatureConfigurationProperty -> Bool)
-> Eq CFNFeatureConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CFNFeatureConfigurationProperty
-> CFNFeatureConfigurationProperty -> Bool
== :: CFNFeatureConfigurationProperty
-> CFNFeatureConfigurationProperty -> Bool
$c/= :: CFNFeatureConfigurationProperty
-> CFNFeatureConfigurationProperty -> Bool
/= :: CFNFeatureConfigurationProperty
-> CFNFeatureConfigurationProperty -> Bool
Prelude.Eq, Int -> CFNFeatureConfigurationProperty -> ShowS
[CFNFeatureConfigurationProperty] -> ShowS
CFNFeatureConfigurationProperty -> String
(Int -> CFNFeatureConfigurationProperty -> ShowS)
-> (CFNFeatureConfigurationProperty -> String)
-> ([CFNFeatureConfigurationProperty] -> ShowS)
-> Show CFNFeatureConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CFNFeatureConfigurationProperty -> ShowS
showsPrec :: Int -> CFNFeatureConfigurationProperty -> ShowS
$cshow :: CFNFeatureConfigurationProperty -> String
show :: CFNFeatureConfigurationProperty -> String
$cshowList :: [CFNFeatureConfigurationProperty] -> ShowS
showList :: [CFNFeatureConfigurationProperty] -> ShowS
Prelude.Show)
mkCFNFeatureConfigurationProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> CFNFeatureConfigurationProperty
mkCFNFeatureConfigurationProperty :: Value Text -> Value Text -> CFNFeatureConfigurationProperty
mkCFNFeatureConfigurationProperty Value Text
name Value Text
status
  = CFNFeatureConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name, status :: Value Text
status = Value Text
status,
       additionalConfiguration :: Maybe [CFNFeatureAdditionalConfigurationProperty]
additionalConfiguration = Maybe [CFNFeatureAdditionalConfigurationProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CFNFeatureConfigurationProperty where
  toResourceProperties :: CFNFeatureConfigurationProperty -> ResourceProperties
toResourceProperties CFNFeatureConfigurationProperty {Maybe [CFNFeatureAdditionalConfigurationProperty]
()
Value Text
haddock_workaround_ :: CFNFeatureConfigurationProperty -> ()
additionalConfiguration :: CFNFeatureConfigurationProperty
-> Maybe [CFNFeatureAdditionalConfigurationProperty]
name :: CFNFeatureConfigurationProperty -> Value Text
status :: CFNFeatureConfigurationProperty -> Value Text
haddock_workaround_ :: ()
additionalConfiguration :: Maybe [CFNFeatureAdditionalConfigurationProperty]
name :: Value Text
status :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::GuardDuty::Detector.CFNFeatureConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"Name" 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..= Value Text
name, Key
"Status" 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..= Value Text
status]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> [CFNFeatureAdditionalConfigurationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AdditionalConfiguration"
                                 ([CFNFeatureAdditionalConfigurationProperty] -> (Key, Value))
-> Maybe [CFNFeatureAdditionalConfigurationProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [CFNFeatureAdditionalConfigurationProperty]
additionalConfiguration]))}
instance JSON.ToJSON CFNFeatureConfigurationProperty where
  toJSON :: CFNFeatureConfigurationProperty -> Value
toJSON CFNFeatureConfigurationProperty {Maybe [CFNFeatureAdditionalConfigurationProperty]
()
Value Text
haddock_workaround_ :: CFNFeatureConfigurationProperty -> ()
additionalConfiguration :: CFNFeatureConfigurationProperty
-> Maybe [CFNFeatureAdditionalConfigurationProperty]
name :: CFNFeatureConfigurationProperty -> Value Text
status :: CFNFeatureConfigurationProperty -> Value Text
haddock_workaround_ :: ()
additionalConfiguration :: Maybe [CFNFeatureAdditionalConfigurationProperty]
name :: Value Text
status :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"Name" 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..= Value Text
name, Key
"Status" 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..= Value Text
status]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> [CFNFeatureAdditionalConfigurationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AdditionalConfiguration"
                    ([CFNFeatureAdditionalConfigurationProperty] -> (Key, Value))
-> Maybe [CFNFeatureAdditionalConfigurationProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [CFNFeatureAdditionalConfigurationProperty]
additionalConfiguration])))
instance Property "AdditionalConfiguration" CFNFeatureConfigurationProperty where
  type PropertyType "AdditionalConfiguration" CFNFeatureConfigurationProperty = [CFNFeatureAdditionalConfigurationProperty]
  set :: PropertyType
  "AdditionalConfiguration" CFNFeatureConfigurationProperty
-> CFNFeatureConfigurationProperty
-> CFNFeatureConfigurationProperty
set PropertyType
  "AdditionalConfiguration" CFNFeatureConfigurationProperty
newValue CFNFeatureConfigurationProperty {Maybe [CFNFeatureAdditionalConfigurationProperty]
()
Value Text
haddock_workaround_ :: CFNFeatureConfigurationProperty -> ()
additionalConfiguration :: CFNFeatureConfigurationProperty
-> Maybe [CFNFeatureAdditionalConfigurationProperty]
name :: CFNFeatureConfigurationProperty -> Value Text
status :: CFNFeatureConfigurationProperty -> Value Text
haddock_workaround_ :: ()
additionalConfiguration :: Maybe [CFNFeatureAdditionalConfigurationProperty]
name :: Value Text
status :: Value Text
..}
    = CFNFeatureConfigurationProperty
        {additionalConfiguration :: Maybe [CFNFeatureAdditionalConfigurationProperty]
additionalConfiguration = [CFNFeatureAdditionalConfigurationProperty]
-> Maybe [CFNFeatureAdditionalConfigurationProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [CFNFeatureAdditionalConfigurationProperty]
PropertyType
  "AdditionalConfiguration" CFNFeatureConfigurationProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
name :: Value Text
status :: Value Text
haddock_workaround_ :: ()
name :: Value Text
status :: Value Text
..}
instance Property "Name" CFNFeatureConfigurationProperty where
  type PropertyType "Name" CFNFeatureConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Name" CFNFeatureConfigurationProperty
-> CFNFeatureConfigurationProperty
-> CFNFeatureConfigurationProperty
set PropertyType "Name" CFNFeatureConfigurationProperty
newValue CFNFeatureConfigurationProperty {Maybe [CFNFeatureAdditionalConfigurationProperty]
()
Value Text
haddock_workaround_ :: CFNFeatureConfigurationProperty -> ()
additionalConfiguration :: CFNFeatureConfigurationProperty
-> Maybe [CFNFeatureAdditionalConfigurationProperty]
name :: CFNFeatureConfigurationProperty -> Value Text
status :: CFNFeatureConfigurationProperty -> Value Text
haddock_workaround_ :: ()
additionalConfiguration :: Maybe [CFNFeatureAdditionalConfigurationProperty]
name :: Value Text
status :: Value Text
..}
    = CFNFeatureConfigurationProperty {name :: Value Text
name = PropertyType "Name" CFNFeatureConfigurationProperty
Value Text
newValue, Maybe [CFNFeatureAdditionalConfigurationProperty]
()
Value Text
haddock_workaround_ :: ()
additionalConfiguration :: Maybe [CFNFeatureAdditionalConfigurationProperty]
status :: Value Text
haddock_workaround_ :: ()
additionalConfiguration :: Maybe [CFNFeatureAdditionalConfigurationProperty]
status :: Value Text
..}
instance Property "Status" CFNFeatureConfigurationProperty where
  type PropertyType "Status" CFNFeatureConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Status" CFNFeatureConfigurationProperty
-> CFNFeatureConfigurationProperty
-> CFNFeatureConfigurationProperty
set PropertyType "Status" CFNFeatureConfigurationProperty
newValue CFNFeatureConfigurationProperty {Maybe [CFNFeatureAdditionalConfigurationProperty]
()
Value Text
haddock_workaround_ :: CFNFeatureConfigurationProperty -> ()
additionalConfiguration :: CFNFeatureConfigurationProperty
-> Maybe [CFNFeatureAdditionalConfigurationProperty]
name :: CFNFeatureConfigurationProperty -> Value Text
status :: CFNFeatureConfigurationProperty -> Value Text
haddock_workaround_ :: ()
additionalConfiguration :: Maybe [CFNFeatureAdditionalConfigurationProperty]
name :: Value Text
status :: Value Text
..}
    = CFNFeatureConfigurationProperty {status :: Value Text
status = PropertyType "Status" CFNFeatureConfigurationProperty
Value Text
newValue, Maybe [CFNFeatureAdditionalConfigurationProperty]
()
Value Text
haddock_workaround_ :: ()
additionalConfiguration :: Maybe [CFNFeatureAdditionalConfigurationProperty]
name :: Value Text
haddock_workaround_ :: ()
additionalConfiguration :: Maybe [CFNFeatureAdditionalConfigurationProperty]
name :: Value Text
..}