module Stratosphere.SecurityHub.ConfigurationPolicy.ParameterConfigurationProperty (
module Exports, ParameterConfigurationProperty(..),
mkParameterConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SecurityHub.ConfigurationPolicy.ParameterValueProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ParameterConfigurationProperty
=
ParameterConfigurationProperty {ParameterConfigurationProperty -> ()
haddock_workaround_ :: (),
ParameterConfigurationProperty -> Maybe ParameterValueProperty
value :: (Prelude.Maybe ParameterValueProperty),
ParameterConfigurationProperty -> Value Text
valueType :: (Value Prelude.Text)}
deriving stock (ParameterConfigurationProperty
-> ParameterConfigurationProperty -> Bool
(ParameterConfigurationProperty
-> ParameterConfigurationProperty -> Bool)
-> (ParameterConfigurationProperty
-> ParameterConfigurationProperty -> Bool)
-> Eq ParameterConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ParameterConfigurationProperty
-> ParameterConfigurationProperty -> Bool
== :: ParameterConfigurationProperty
-> ParameterConfigurationProperty -> Bool
$c/= :: ParameterConfigurationProperty
-> ParameterConfigurationProperty -> Bool
/= :: ParameterConfigurationProperty
-> ParameterConfigurationProperty -> Bool
Prelude.Eq, Int -> ParameterConfigurationProperty -> ShowS
[ParameterConfigurationProperty] -> ShowS
ParameterConfigurationProperty -> String
(Int -> ParameterConfigurationProperty -> ShowS)
-> (ParameterConfigurationProperty -> String)
-> ([ParameterConfigurationProperty] -> ShowS)
-> Show ParameterConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ParameterConfigurationProperty -> ShowS
showsPrec :: Int -> ParameterConfigurationProperty -> ShowS
$cshow :: ParameterConfigurationProperty -> String
show :: ParameterConfigurationProperty -> String
$cshowList :: [ParameterConfigurationProperty] -> ShowS
showList :: [ParameterConfigurationProperty] -> ShowS
Prelude.Show)
mkParameterConfigurationProperty ::
Value Prelude.Text -> ParameterConfigurationProperty
mkParameterConfigurationProperty :: Value Text -> ParameterConfigurationProperty
mkParameterConfigurationProperty Value Text
valueType
= ParameterConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), valueType :: Value Text
valueType = Value Text
valueType,
value :: Maybe ParameterValueProperty
value = Maybe ParameterValueProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ParameterConfigurationProperty where
toResourceProperties :: ParameterConfigurationProperty -> ResourceProperties
toResourceProperties ParameterConfigurationProperty {Maybe ParameterValueProperty
()
Value Text
haddock_workaround_ :: ParameterConfigurationProperty -> ()
value :: ParameterConfigurationProperty -> Maybe ParameterValueProperty
valueType :: ParameterConfigurationProperty -> Value Text
haddock_workaround_ :: ()
value :: Maybe ParameterValueProperty
valueType :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SecurityHub::ConfigurationPolicy.ParameterConfiguration",
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
"ValueType" 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
valueType]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> ParameterValueProperty -> (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" (ParameterValueProperty -> (Key, Value))
-> Maybe ParameterValueProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ParameterValueProperty
value]))}
instance JSON.ToJSON ParameterConfigurationProperty where
toJSON :: ParameterConfigurationProperty -> Value
toJSON ParameterConfigurationProperty {Maybe ParameterValueProperty
()
Value Text
haddock_workaround_ :: ParameterConfigurationProperty -> ()
value :: ParameterConfigurationProperty -> Maybe ParameterValueProperty
valueType :: ParameterConfigurationProperty -> Value Text
haddock_workaround_ :: ()
value :: Maybe ParameterValueProperty
valueType :: 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
"ValueType" 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
valueType]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> ParameterValueProperty -> (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" (ParameterValueProperty -> (Key, Value))
-> Maybe ParameterValueProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ParameterValueProperty
value])))
instance Property "Value" ParameterConfigurationProperty where
type PropertyType "Value" ParameterConfigurationProperty = ParameterValueProperty
set :: PropertyType "Value" ParameterConfigurationProperty
-> ParameterConfigurationProperty -> ParameterConfigurationProperty
set PropertyType "Value" ParameterConfigurationProperty
newValue ParameterConfigurationProperty {Maybe ParameterValueProperty
()
Value Text
haddock_workaround_ :: ParameterConfigurationProperty -> ()
value :: ParameterConfigurationProperty -> Maybe ParameterValueProperty
valueType :: ParameterConfigurationProperty -> Value Text
haddock_workaround_ :: ()
value :: Maybe ParameterValueProperty
valueType :: Value Text
..}
= ParameterConfigurationProperty
{value :: Maybe ParameterValueProperty
value = ParameterValueProperty -> Maybe ParameterValueProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Value" ParameterConfigurationProperty
ParameterValueProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
valueType :: Value Text
haddock_workaround_ :: ()
valueType :: Value Text
..}
instance Property "ValueType" ParameterConfigurationProperty where
type PropertyType "ValueType" ParameterConfigurationProperty = Value Prelude.Text
set :: PropertyType "ValueType" ParameterConfigurationProperty
-> ParameterConfigurationProperty -> ParameterConfigurationProperty
set PropertyType "ValueType" ParameterConfigurationProperty
newValue ParameterConfigurationProperty {Maybe ParameterValueProperty
()
Value Text
haddock_workaround_ :: ParameterConfigurationProperty -> ()
value :: ParameterConfigurationProperty -> Maybe ParameterValueProperty
valueType :: ParameterConfigurationProperty -> Value Text
haddock_workaround_ :: ()
value :: Maybe ParameterValueProperty
valueType :: Value Text
..}
= ParameterConfigurationProperty {valueType :: Value Text
valueType = PropertyType "ValueType" ParameterConfigurationProperty
Value Text
newValue, Maybe ParameterValueProperty
()
haddock_workaround_ :: ()
value :: Maybe ParameterValueProperty
haddock_workaround_ :: ()
value :: Maybe ParameterValueProperty
..}