module Stratosphere.SecurityHub.OrganizationConfiguration (
        OrganizationConfiguration(..), mkOrganizationConfiguration
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data OrganizationConfiguration
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-organizationconfiguration.html>
    OrganizationConfiguration {OrganizationConfiguration -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-organizationconfiguration.html#cfn-securityhub-organizationconfiguration-autoenable>
                               OrganizationConfiguration -> Value Bool
autoEnable :: (Value Prelude.Bool),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-organizationconfiguration.html#cfn-securityhub-organizationconfiguration-autoenablestandards>
                               OrganizationConfiguration -> Maybe (Value Text)
autoEnableStandards :: (Prelude.Maybe (Value Prelude.Text)),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-organizationconfiguration.html#cfn-securityhub-organizationconfiguration-configurationtype>
                               OrganizationConfiguration -> Maybe (Value Text)
configurationType :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (OrganizationConfiguration -> OrganizationConfiguration -> Bool
(OrganizationConfiguration -> OrganizationConfiguration -> Bool)
-> (OrganizationConfiguration -> OrganizationConfiguration -> Bool)
-> Eq OrganizationConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OrganizationConfiguration -> OrganizationConfiguration -> Bool
== :: OrganizationConfiguration -> OrganizationConfiguration -> Bool
$c/= :: OrganizationConfiguration -> OrganizationConfiguration -> Bool
/= :: OrganizationConfiguration -> OrganizationConfiguration -> Bool
Prelude.Eq, Int -> OrganizationConfiguration -> ShowS
[OrganizationConfiguration] -> ShowS
OrganizationConfiguration -> String
(Int -> OrganizationConfiguration -> ShowS)
-> (OrganizationConfiguration -> String)
-> ([OrganizationConfiguration] -> ShowS)
-> Show OrganizationConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OrganizationConfiguration -> ShowS
showsPrec :: Int -> OrganizationConfiguration -> ShowS
$cshow :: OrganizationConfiguration -> String
show :: OrganizationConfiguration -> String
$cshowList :: [OrganizationConfiguration] -> ShowS
showList :: [OrganizationConfiguration] -> ShowS
Prelude.Show)
mkOrganizationConfiguration ::
  Value Prelude.Bool -> OrganizationConfiguration
mkOrganizationConfiguration :: Value Bool -> OrganizationConfiguration
mkOrganizationConfiguration Value Bool
autoEnable
  = OrganizationConfiguration
      {haddock_workaround_ :: ()
haddock_workaround_ = (), autoEnable :: Value Bool
autoEnable = Value Bool
autoEnable,
       autoEnableStandards :: Maybe (Value Text)
autoEnableStandards = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       configurationType :: Maybe (Value Text)
configurationType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties OrganizationConfiguration where
  toResourceProperties :: OrganizationConfiguration -> ResourceProperties
toResourceProperties OrganizationConfiguration {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: OrganizationConfiguration -> ()
autoEnable :: OrganizationConfiguration -> Value Bool
autoEnableStandards :: OrganizationConfiguration -> Maybe (Value Text)
configurationType :: OrganizationConfiguration -> Maybe (Value Text)
haddock_workaround_ :: ()
autoEnable :: Value Bool
autoEnableStandards :: Maybe (Value Text)
configurationType :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SecurityHub::OrganizationConfiguration",
         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
"AutoEnable" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
autoEnable]
                           ([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
"AutoEnableStandards" (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)
autoEnableStandards,
                               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
"ConfigurationType" (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)
configurationType]))}
instance JSON.ToJSON OrganizationConfiguration where
  toJSON :: OrganizationConfiguration -> Value
toJSON OrganizationConfiguration {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: OrganizationConfiguration -> ()
autoEnable :: OrganizationConfiguration -> Value Bool
autoEnableStandards :: OrganizationConfiguration -> Maybe (Value Text)
configurationType :: OrganizationConfiguration -> Maybe (Value Text)
haddock_workaround_ :: ()
autoEnable :: Value Bool
autoEnableStandards :: Maybe (Value Text)
configurationType :: Maybe (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
"AutoEnable" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
autoEnable]
              ([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
"AutoEnableStandards" (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)
autoEnableStandards,
                  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
"ConfigurationType" (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)
configurationType])))
instance Property "AutoEnable" OrganizationConfiguration where
  type PropertyType "AutoEnable" OrganizationConfiguration = Value Prelude.Bool
  set :: PropertyType "AutoEnable" OrganizationConfiguration
-> OrganizationConfiguration -> OrganizationConfiguration
set PropertyType "AutoEnable" OrganizationConfiguration
newValue OrganizationConfiguration {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: OrganizationConfiguration -> ()
autoEnable :: OrganizationConfiguration -> Value Bool
autoEnableStandards :: OrganizationConfiguration -> Maybe (Value Text)
configurationType :: OrganizationConfiguration -> Maybe (Value Text)
haddock_workaround_ :: ()
autoEnable :: Value Bool
autoEnableStandards :: Maybe (Value Text)
configurationType :: Maybe (Value Text)
..}
    = OrganizationConfiguration {autoEnable :: Value Bool
autoEnable = PropertyType "AutoEnable" OrganizationConfiguration
Value Bool
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
autoEnableStandards :: Maybe (Value Text)
configurationType :: Maybe (Value Text)
haddock_workaround_ :: ()
autoEnableStandards :: Maybe (Value Text)
configurationType :: Maybe (Value Text)
..}
instance Property "AutoEnableStandards" OrganizationConfiguration where
  type PropertyType "AutoEnableStandards" OrganizationConfiguration = Value Prelude.Text
  set :: PropertyType "AutoEnableStandards" OrganizationConfiguration
-> OrganizationConfiguration -> OrganizationConfiguration
set PropertyType "AutoEnableStandards" OrganizationConfiguration
newValue OrganizationConfiguration {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: OrganizationConfiguration -> ()
autoEnable :: OrganizationConfiguration -> Value Bool
autoEnableStandards :: OrganizationConfiguration -> Maybe (Value Text)
configurationType :: OrganizationConfiguration -> Maybe (Value Text)
haddock_workaround_ :: ()
autoEnable :: Value Bool
autoEnableStandards :: Maybe (Value Text)
configurationType :: Maybe (Value Text)
..}
    = OrganizationConfiguration
        {autoEnableStandards :: Maybe (Value Text)
autoEnableStandards = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AutoEnableStandards" OrganizationConfiguration
Value Text
newValue, Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ()
autoEnable :: Value Bool
configurationType :: Maybe (Value Text)
haddock_workaround_ :: ()
autoEnable :: Value Bool
configurationType :: Maybe (Value Text)
..}
instance Property "ConfigurationType" OrganizationConfiguration where
  type PropertyType "ConfigurationType" OrganizationConfiguration = Value Prelude.Text
  set :: PropertyType "ConfigurationType" OrganizationConfiguration
-> OrganizationConfiguration -> OrganizationConfiguration
set PropertyType "ConfigurationType" OrganizationConfiguration
newValue OrganizationConfiguration {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: OrganizationConfiguration -> ()
autoEnable :: OrganizationConfiguration -> Value Bool
autoEnableStandards :: OrganizationConfiguration -> Maybe (Value Text)
configurationType :: OrganizationConfiguration -> Maybe (Value Text)
haddock_workaround_ :: ()
autoEnable :: Value Bool
autoEnableStandards :: Maybe (Value Text)
configurationType :: Maybe (Value Text)
..}
    = OrganizationConfiguration
        {configurationType :: Maybe (Value Text)
configurationType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ConfigurationType" OrganizationConfiguration
Value Text
newValue, Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ()
autoEnable :: Value Bool
autoEnableStandards :: Maybe (Value Text)
haddock_workaround_ :: ()
autoEnable :: Value Bool
autoEnableStandards :: Maybe (Value Text)
..}