module Stratosphere.SecurityHub.ConfigurationPolicy.SecurityControlCustomParameterProperty (
        module Exports, SecurityControlCustomParameterProperty(..),
        mkSecurityControlCustomParameterProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SecurityHub.ConfigurationPolicy.ParameterConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SecurityControlCustomParameterProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-securitycontrolcustomparameter.html>
    SecurityControlCustomParameterProperty {SecurityControlCustomParameterProperty -> ()
haddock_workaround_ :: (),
                                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-securitycontrolcustomparameter.html#cfn-securityhub-configurationpolicy-securitycontrolcustomparameter-parameters>
                                            SecurityControlCustomParameterProperty
-> Maybe (Map Text ParameterConfigurationProperty)
parameters :: (Prelude.Maybe (Prelude.Map Prelude.Text ParameterConfigurationProperty)),
                                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securityhub-configurationpolicy-securitycontrolcustomparameter.html#cfn-securityhub-configurationpolicy-securitycontrolcustomparameter-securitycontrolid>
                                            SecurityControlCustomParameterProperty -> Maybe (Value Text)
securityControlId :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (SecurityControlCustomParameterProperty
-> SecurityControlCustomParameterProperty -> Bool
(SecurityControlCustomParameterProperty
 -> SecurityControlCustomParameterProperty -> Bool)
-> (SecurityControlCustomParameterProperty
    -> SecurityControlCustomParameterProperty -> Bool)
-> Eq SecurityControlCustomParameterProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SecurityControlCustomParameterProperty
-> SecurityControlCustomParameterProperty -> Bool
== :: SecurityControlCustomParameterProperty
-> SecurityControlCustomParameterProperty -> Bool
$c/= :: SecurityControlCustomParameterProperty
-> SecurityControlCustomParameterProperty -> Bool
/= :: SecurityControlCustomParameterProperty
-> SecurityControlCustomParameterProperty -> Bool
Prelude.Eq, Int -> SecurityControlCustomParameterProperty -> ShowS
[SecurityControlCustomParameterProperty] -> ShowS
SecurityControlCustomParameterProperty -> String
(Int -> SecurityControlCustomParameterProperty -> ShowS)
-> (SecurityControlCustomParameterProperty -> String)
-> ([SecurityControlCustomParameterProperty] -> ShowS)
-> Show SecurityControlCustomParameterProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SecurityControlCustomParameterProperty -> ShowS
showsPrec :: Int -> SecurityControlCustomParameterProperty -> ShowS
$cshow :: SecurityControlCustomParameterProperty -> String
show :: SecurityControlCustomParameterProperty -> String
$cshowList :: [SecurityControlCustomParameterProperty] -> ShowS
showList :: [SecurityControlCustomParameterProperty] -> ShowS
Prelude.Show)
mkSecurityControlCustomParameterProperty ::
  SecurityControlCustomParameterProperty
mkSecurityControlCustomParameterProperty :: SecurityControlCustomParameterProperty
mkSecurityControlCustomParameterProperty
  = SecurityControlCustomParameterProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), parameters :: Maybe (Map Text ParameterConfigurationProperty)
parameters = Maybe (Map Text ParameterConfigurationProperty)
forall a. Maybe a
Prelude.Nothing,
       securityControlId :: Maybe (Value Text)
securityControlId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SecurityControlCustomParameterProperty where
  toResourceProperties :: SecurityControlCustomParameterProperty -> ResourceProperties
toResourceProperties SecurityControlCustomParameterProperty {Maybe (Map Text ParameterConfigurationProperty)
Maybe (Value Text)
()
haddock_workaround_ :: SecurityControlCustomParameterProperty -> ()
parameters :: SecurityControlCustomParameterProperty
-> Maybe (Map Text ParameterConfigurationProperty)
securityControlId :: SecurityControlCustomParameterProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
parameters :: Maybe (Map Text ParameterConfigurationProperty)
securityControlId :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SecurityHub::ConfigurationPolicy.SecurityControlCustomParameter",
         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 -> Map Text ParameterConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Parameters" (Map Text ParameterConfigurationProperty -> (Key, Value))
-> Maybe (Map Text ParameterConfigurationProperty)
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text ParameterConfigurationProperty)
parameters,
                            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
"SecurityControlId" (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)
securityControlId])}
instance JSON.ToJSON SecurityControlCustomParameterProperty where
  toJSON :: SecurityControlCustomParameterProperty -> Value
toJSON SecurityControlCustomParameterProperty {Maybe (Map Text ParameterConfigurationProperty)
Maybe (Value Text)
()
haddock_workaround_ :: SecurityControlCustomParameterProperty -> ()
parameters :: SecurityControlCustomParameterProperty
-> Maybe (Map Text ParameterConfigurationProperty)
securityControlId :: SecurityControlCustomParameterProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
parameters :: Maybe (Map Text ParameterConfigurationProperty)
securityControlId :: 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 -> Map Text ParameterConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Parameters" (Map Text ParameterConfigurationProperty -> (Key, Value))
-> Maybe (Map Text ParameterConfigurationProperty)
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text ParameterConfigurationProperty)
parameters,
               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
"SecurityControlId" (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)
securityControlId]))
instance Property "Parameters" SecurityControlCustomParameterProperty where
  type PropertyType "Parameters" SecurityControlCustomParameterProperty = Prelude.Map Prelude.Text ParameterConfigurationProperty
  set :: PropertyType "Parameters" SecurityControlCustomParameterProperty
-> SecurityControlCustomParameterProperty
-> SecurityControlCustomParameterProperty
set PropertyType "Parameters" SecurityControlCustomParameterProperty
newValue SecurityControlCustomParameterProperty {Maybe (Map Text ParameterConfigurationProperty)
Maybe (Value Text)
()
haddock_workaround_ :: SecurityControlCustomParameterProperty -> ()
parameters :: SecurityControlCustomParameterProperty
-> Maybe (Map Text ParameterConfigurationProperty)
securityControlId :: SecurityControlCustomParameterProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
parameters :: Maybe (Map Text ParameterConfigurationProperty)
securityControlId :: Maybe (Value Text)
..}
    = SecurityControlCustomParameterProperty
        {parameters :: Maybe (Map Text ParameterConfigurationProperty)
parameters = Map Text ParameterConfigurationProperty
-> Maybe (Map Text ParameterConfigurationProperty)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text ParameterConfigurationProperty
PropertyType "Parameters" SecurityControlCustomParameterProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
securityControlId :: Maybe (Value Text)
haddock_workaround_ :: ()
securityControlId :: Maybe (Value Text)
..}
instance Property "SecurityControlId" SecurityControlCustomParameterProperty where
  type PropertyType "SecurityControlId" SecurityControlCustomParameterProperty = Value Prelude.Text
  set :: PropertyType
  "SecurityControlId" SecurityControlCustomParameterProperty
-> SecurityControlCustomParameterProperty
-> SecurityControlCustomParameterProperty
set PropertyType
  "SecurityControlId" SecurityControlCustomParameterProperty
newValue SecurityControlCustomParameterProperty {Maybe (Map Text ParameterConfigurationProperty)
Maybe (Value Text)
()
haddock_workaround_ :: SecurityControlCustomParameterProperty -> ()
parameters :: SecurityControlCustomParameterProperty
-> Maybe (Map Text ParameterConfigurationProperty)
securityControlId :: SecurityControlCustomParameterProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
parameters :: Maybe (Map Text ParameterConfigurationProperty)
securityControlId :: Maybe (Value Text)
..}
    = SecurityControlCustomParameterProperty
        {securityControlId :: Maybe (Value Text)
securityControlId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "SecurityControlId" SecurityControlCustomParameterProperty
Value Text
newValue, Maybe (Map Text ParameterConfigurationProperty)
()
haddock_workaround_ :: ()
parameters :: Maybe (Map Text ParameterConfigurationProperty)
haddock_workaround_ :: ()
parameters :: Maybe (Map Text ParameterConfigurationProperty)
..}