module Stratosphere.B2BI.Transformer.SampleDocumentKeysProperty (
        SampleDocumentKeysProperty(..), mkSampleDocumentKeysProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SampleDocumentKeysProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-transformer-sampledocumentkeys.html>
    SampleDocumentKeysProperty {SampleDocumentKeysProperty -> ()
haddock_workaround_ :: (),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-transformer-sampledocumentkeys.html#cfn-b2bi-transformer-sampledocumentkeys-input>
                                SampleDocumentKeysProperty -> Maybe (Value Text)
input :: (Prelude.Maybe (Value Prelude.Text)),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-transformer-sampledocumentkeys.html#cfn-b2bi-transformer-sampledocumentkeys-output>
                                SampleDocumentKeysProperty -> Maybe (Value Text)
output :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (SampleDocumentKeysProperty -> SampleDocumentKeysProperty -> Bool
(SampleDocumentKeysProperty -> SampleDocumentKeysProperty -> Bool)
-> (SampleDocumentKeysProperty
    -> SampleDocumentKeysProperty -> Bool)
-> Eq SampleDocumentKeysProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SampleDocumentKeysProperty -> SampleDocumentKeysProperty -> Bool
== :: SampleDocumentKeysProperty -> SampleDocumentKeysProperty -> Bool
$c/= :: SampleDocumentKeysProperty -> SampleDocumentKeysProperty -> Bool
/= :: SampleDocumentKeysProperty -> SampleDocumentKeysProperty -> Bool
Prelude.Eq, Int -> SampleDocumentKeysProperty -> ShowS
[SampleDocumentKeysProperty] -> ShowS
SampleDocumentKeysProperty -> String
(Int -> SampleDocumentKeysProperty -> ShowS)
-> (SampleDocumentKeysProperty -> String)
-> ([SampleDocumentKeysProperty] -> ShowS)
-> Show SampleDocumentKeysProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SampleDocumentKeysProperty -> ShowS
showsPrec :: Int -> SampleDocumentKeysProperty -> ShowS
$cshow :: SampleDocumentKeysProperty -> String
show :: SampleDocumentKeysProperty -> String
$cshowList :: [SampleDocumentKeysProperty] -> ShowS
showList :: [SampleDocumentKeysProperty] -> ShowS
Prelude.Show)
mkSampleDocumentKeysProperty :: SampleDocumentKeysProperty
mkSampleDocumentKeysProperty :: SampleDocumentKeysProperty
mkSampleDocumentKeysProperty
  = SampleDocumentKeysProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), input :: Maybe (Value Text)
input = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       output :: Maybe (Value Text)
output = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SampleDocumentKeysProperty where
  toResourceProperties :: SampleDocumentKeysProperty -> ResourceProperties
toResourceProperties SampleDocumentKeysProperty {Maybe (Value Text)
()
haddock_workaround_ :: SampleDocumentKeysProperty -> ()
input :: SampleDocumentKeysProperty -> Maybe (Value Text)
output :: SampleDocumentKeysProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
input :: Maybe (Value Text)
output :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::B2BI::Transformer.SampleDocumentKeys",
         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
"Input" (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)
input,
                            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
"Output" (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)
output])}
instance JSON.ToJSON SampleDocumentKeysProperty where
  toJSON :: SampleDocumentKeysProperty -> Value
toJSON SampleDocumentKeysProperty {Maybe (Value Text)
()
haddock_workaround_ :: SampleDocumentKeysProperty -> ()
input :: SampleDocumentKeysProperty -> Maybe (Value Text)
output :: SampleDocumentKeysProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
input :: Maybe (Value Text)
output :: 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
"Input" (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)
input,
               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
"Output" (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)
output]))
instance Property "Input" SampleDocumentKeysProperty where
  type PropertyType "Input" SampleDocumentKeysProperty = Value Prelude.Text
  set :: PropertyType "Input" SampleDocumentKeysProperty
-> SampleDocumentKeysProperty -> SampleDocumentKeysProperty
set PropertyType "Input" SampleDocumentKeysProperty
newValue SampleDocumentKeysProperty {Maybe (Value Text)
()
haddock_workaround_ :: SampleDocumentKeysProperty -> ()
input :: SampleDocumentKeysProperty -> Maybe (Value Text)
output :: SampleDocumentKeysProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
input :: Maybe (Value Text)
output :: Maybe (Value Text)
..}
    = SampleDocumentKeysProperty {input :: Maybe (Value Text)
input = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Input" SampleDocumentKeysProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
output :: Maybe (Value Text)
haddock_workaround_ :: ()
output :: Maybe (Value Text)
..}
instance Property "Output" SampleDocumentKeysProperty where
  type PropertyType "Output" SampleDocumentKeysProperty = Value Prelude.Text
  set :: PropertyType "Output" SampleDocumentKeysProperty
-> SampleDocumentKeysProperty -> SampleDocumentKeysProperty
set PropertyType "Output" SampleDocumentKeysProperty
newValue SampleDocumentKeysProperty {Maybe (Value Text)
()
haddock_workaround_ :: SampleDocumentKeysProperty -> ()
input :: SampleDocumentKeysProperty -> Maybe (Value Text)
output :: SampleDocumentKeysProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
input :: Maybe (Value Text)
output :: Maybe (Value Text)
..}
    = SampleDocumentKeysProperty {output :: Maybe (Value Text)
output = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Output" SampleDocumentKeysProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
input :: Maybe (Value Text)
haddock_workaround_ :: ()
input :: Maybe (Value Text)
..}