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