module Stratosphere.B2BI.Capability.EdiConfigurationProperty (
        module Exports, EdiConfigurationProperty(..),
        mkEdiConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.B2BI.Capability.EdiTypeProperty as Exports
import {-# SOURCE #-} Stratosphere.B2BI.Capability.S3LocationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EdiConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-capability-ediconfiguration.html>
    EdiConfigurationProperty {EdiConfigurationProperty -> ()
haddock_workaround_ :: (),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-capability-ediconfiguration.html#cfn-b2bi-capability-ediconfiguration-capabilitydirection>
                              EdiConfigurationProperty -> Maybe (Value Text)
capabilityDirection :: (Prelude.Maybe (Value Prelude.Text)),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-capability-ediconfiguration.html#cfn-b2bi-capability-ediconfiguration-inputlocation>
                              EdiConfigurationProperty -> S3LocationProperty
inputLocation :: S3LocationProperty,
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-capability-ediconfiguration.html#cfn-b2bi-capability-ediconfiguration-outputlocation>
                              EdiConfigurationProperty -> S3LocationProperty
outputLocation :: S3LocationProperty,
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-capability-ediconfiguration.html#cfn-b2bi-capability-ediconfiguration-transformerid>
                              EdiConfigurationProperty -> Value Text
transformerId :: (Value Prelude.Text),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-b2bi-capability-ediconfiguration.html#cfn-b2bi-capability-ediconfiguration-type>
                              EdiConfigurationProperty -> EdiTypeProperty
type' :: EdiTypeProperty}
  deriving stock (EdiConfigurationProperty -> EdiConfigurationProperty -> Bool
(EdiConfigurationProperty -> EdiConfigurationProperty -> Bool)
-> (EdiConfigurationProperty -> EdiConfigurationProperty -> Bool)
-> Eq EdiConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EdiConfigurationProperty -> EdiConfigurationProperty -> Bool
== :: EdiConfigurationProperty -> EdiConfigurationProperty -> Bool
$c/= :: EdiConfigurationProperty -> EdiConfigurationProperty -> Bool
/= :: EdiConfigurationProperty -> EdiConfigurationProperty -> Bool
Prelude.Eq, Int -> EdiConfigurationProperty -> ShowS
[EdiConfigurationProperty] -> ShowS
EdiConfigurationProperty -> String
(Int -> EdiConfigurationProperty -> ShowS)
-> (EdiConfigurationProperty -> String)
-> ([EdiConfigurationProperty] -> ShowS)
-> Show EdiConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EdiConfigurationProperty -> ShowS
showsPrec :: Int -> EdiConfigurationProperty -> ShowS
$cshow :: EdiConfigurationProperty -> String
show :: EdiConfigurationProperty -> String
$cshowList :: [EdiConfigurationProperty] -> ShowS
showList :: [EdiConfigurationProperty] -> ShowS
Prelude.Show)
mkEdiConfigurationProperty ::
  S3LocationProperty
  -> S3LocationProperty
     -> Value Prelude.Text
        -> EdiTypeProperty -> EdiConfigurationProperty
mkEdiConfigurationProperty :: S3LocationProperty
-> S3LocationProperty
-> Value Text
-> EdiTypeProperty
-> EdiConfigurationProperty
mkEdiConfigurationProperty
  S3LocationProperty
inputLocation
  S3LocationProperty
outputLocation
  Value Text
transformerId
  EdiTypeProperty
type'
  = EdiConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), inputLocation :: S3LocationProperty
inputLocation = S3LocationProperty
inputLocation,
       outputLocation :: S3LocationProperty
outputLocation = S3LocationProperty
outputLocation, transformerId :: Value Text
transformerId = Value Text
transformerId,
       type' :: EdiTypeProperty
type' = EdiTypeProperty
type', capabilityDirection :: Maybe (Value Text)
capabilityDirection = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EdiConfigurationProperty where
  toResourceProperties :: EdiConfigurationProperty -> ResourceProperties
toResourceProperties EdiConfigurationProperty {Maybe (Value Text)
()
Value Text
S3LocationProperty
EdiTypeProperty
haddock_workaround_ :: EdiConfigurationProperty -> ()
capabilityDirection :: EdiConfigurationProperty -> Maybe (Value Text)
inputLocation :: EdiConfigurationProperty -> S3LocationProperty
outputLocation :: EdiConfigurationProperty -> S3LocationProperty
transformerId :: EdiConfigurationProperty -> Value Text
type' :: EdiConfigurationProperty -> EdiTypeProperty
haddock_workaround_ :: ()
capabilityDirection :: Maybe (Value Text)
inputLocation :: S3LocationProperty
outputLocation :: S3LocationProperty
transformerId :: Value Text
type' :: EdiTypeProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::B2BI::Capability.EdiConfiguration",
         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
"InputLocation" Key -> S3LocationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= S3LocationProperty
inputLocation,
                            Key
"OutputLocation" Key -> S3LocationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= S3LocationProperty
outputLocation,
                            Key
"TransformerId" 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
transformerId, Key
"Type" Key -> EdiTypeProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= EdiTypeProperty
type']
                           ([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
"CapabilityDirection"
                                 (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)
capabilityDirection]))}
instance JSON.ToJSON EdiConfigurationProperty where
  toJSON :: EdiConfigurationProperty -> Value
toJSON EdiConfigurationProperty {Maybe (Value Text)
()
Value Text
S3LocationProperty
EdiTypeProperty
haddock_workaround_ :: EdiConfigurationProperty -> ()
capabilityDirection :: EdiConfigurationProperty -> Maybe (Value Text)
inputLocation :: EdiConfigurationProperty -> S3LocationProperty
outputLocation :: EdiConfigurationProperty -> S3LocationProperty
transformerId :: EdiConfigurationProperty -> Value Text
type' :: EdiConfigurationProperty -> EdiTypeProperty
haddock_workaround_ :: ()
capabilityDirection :: Maybe (Value Text)
inputLocation :: S3LocationProperty
outputLocation :: S3LocationProperty
transformerId :: Value Text
type' :: EdiTypeProperty
..}
    = [(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
"InputLocation" Key -> S3LocationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= S3LocationProperty
inputLocation,
               Key
"OutputLocation" Key -> S3LocationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= S3LocationProperty
outputLocation,
               Key
"TransformerId" 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
transformerId, Key
"Type" Key -> EdiTypeProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= EdiTypeProperty
type']
              ([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
"CapabilityDirection"
                    (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)
capabilityDirection])))
instance Property "CapabilityDirection" EdiConfigurationProperty where
  type PropertyType "CapabilityDirection" EdiConfigurationProperty = Value Prelude.Text
  set :: PropertyType "CapabilityDirection" EdiConfigurationProperty
-> EdiConfigurationProperty -> EdiConfigurationProperty
set PropertyType "CapabilityDirection" EdiConfigurationProperty
newValue EdiConfigurationProperty {Maybe (Value Text)
()
Value Text
S3LocationProperty
EdiTypeProperty
haddock_workaround_ :: EdiConfigurationProperty -> ()
capabilityDirection :: EdiConfigurationProperty -> Maybe (Value Text)
inputLocation :: EdiConfigurationProperty -> S3LocationProperty
outputLocation :: EdiConfigurationProperty -> S3LocationProperty
transformerId :: EdiConfigurationProperty -> Value Text
type' :: EdiConfigurationProperty -> EdiTypeProperty
haddock_workaround_ :: ()
capabilityDirection :: Maybe (Value Text)
inputLocation :: S3LocationProperty
outputLocation :: S3LocationProperty
transformerId :: Value Text
type' :: EdiTypeProperty
..}
    = EdiConfigurationProperty
        {capabilityDirection :: Maybe (Value Text)
capabilityDirection = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CapabilityDirection" EdiConfigurationProperty
Value Text
newValue, ()
Value Text
S3LocationProperty
EdiTypeProperty
haddock_workaround_ :: ()
inputLocation :: S3LocationProperty
outputLocation :: S3LocationProperty
transformerId :: Value Text
type' :: EdiTypeProperty
haddock_workaround_ :: ()
inputLocation :: S3LocationProperty
outputLocation :: S3LocationProperty
transformerId :: Value Text
type' :: EdiTypeProperty
..}
instance Property "InputLocation" EdiConfigurationProperty where
  type PropertyType "InputLocation" EdiConfigurationProperty = S3LocationProperty
  set :: PropertyType "InputLocation" EdiConfigurationProperty
-> EdiConfigurationProperty -> EdiConfigurationProperty
set PropertyType "InputLocation" EdiConfigurationProperty
newValue EdiConfigurationProperty {Maybe (Value Text)
()
Value Text
S3LocationProperty
EdiTypeProperty
haddock_workaround_ :: EdiConfigurationProperty -> ()
capabilityDirection :: EdiConfigurationProperty -> Maybe (Value Text)
inputLocation :: EdiConfigurationProperty -> S3LocationProperty
outputLocation :: EdiConfigurationProperty -> S3LocationProperty
transformerId :: EdiConfigurationProperty -> Value Text
type' :: EdiConfigurationProperty -> EdiTypeProperty
haddock_workaround_ :: ()
capabilityDirection :: Maybe (Value Text)
inputLocation :: S3LocationProperty
outputLocation :: S3LocationProperty
transformerId :: Value Text
type' :: EdiTypeProperty
..}
    = EdiConfigurationProperty {inputLocation :: S3LocationProperty
inputLocation = PropertyType "InputLocation" EdiConfigurationProperty
S3LocationProperty
newValue, Maybe (Value Text)
()
Value Text
S3LocationProperty
EdiTypeProperty
haddock_workaround_ :: ()
capabilityDirection :: Maybe (Value Text)
outputLocation :: S3LocationProperty
transformerId :: Value Text
type' :: EdiTypeProperty
haddock_workaround_ :: ()
capabilityDirection :: Maybe (Value Text)
outputLocation :: S3LocationProperty
transformerId :: Value Text
type' :: EdiTypeProperty
..}
instance Property "OutputLocation" EdiConfigurationProperty where
  type PropertyType "OutputLocation" EdiConfigurationProperty = S3LocationProperty
  set :: PropertyType "OutputLocation" EdiConfigurationProperty
-> EdiConfigurationProperty -> EdiConfigurationProperty
set PropertyType "OutputLocation" EdiConfigurationProperty
newValue EdiConfigurationProperty {Maybe (Value Text)
()
Value Text
S3LocationProperty
EdiTypeProperty
haddock_workaround_ :: EdiConfigurationProperty -> ()
capabilityDirection :: EdiConfigurationProperty -> Maybe (Value Text)
inputLocation :: EdiConfigurationProperty -> S3LocationProperty
outputLocation :: EdiConfigurationProperty -> S3LocationProperty
transformerId :: EdiConfigurationProperty -> Value Text
type' :: EdiConfigurationProperty -> EdiTypeProperty
haddock_workaround_ :: ()
capabilityDirection :: Maybe (Value Text)
inputLocation :: S3LocationProperty
outputLocation :: S3LocationProperty
transformerId :: Value Text
type' :: EdiTypeProperty
..}
    = EdiConfigurationProperty {outputLocation :: S3LocationProperty
outputLocation = PropertyType "OutputLocation" EdiConfigurationProperty
S3LocationProperty
newValue, Maybe (Value Text)
()
Value Text
S3LocationProperty
EdiTypeProperty
haddock_workaround_ :: ()
capabilityDirection :: Maybe (Value Text)
inputLocation :: S3LocationProperty
transformerId :: Value Text
type' :: EdiTypeProperty
haddock_workaround_ :: ()
capabilityDirection :: Maybe (Value Text)
inputLocation :: S3LocationProperty
transformerId :: Value Text
type' :: EdiTypeProperty
..}
instance Property "TransformerId" EdiConfigurationProperty where
  type PropertyType "TransformerId" EdiConfigurationProperty = Value Prelude.Text
  set :: PropertyType "TransformerId" EdiConfigurationProperty
-> EdiConfigurationProperty -> EdiConfigurationProperty
set PropertyType "TransformerId" EdiConfigurationProperty
newValue EdiConfigurationProperty {Maybe (Value Text)
()
Value Text
S3LocationProperty
EdiTypeProperty
haddock_workaround_ :: EdiConfigurationProperty -> ()
capabilityDirection :: EdiConfigurationProperty -> Maybe (Value Text)
inputLocation :: EdiConfigurationProperty -> S3LocationProperty
outputLocation :: EdiConfigurationProperty -> S3LocationProperty
transformerId :: EdiConfigurationProperty -> Value Text
type' :: EdiConfigurationProperty -> EdiTypeProperty
haddock_workaround_ :: ()
capabilityDirection :: Maybe (Value Text)
inputLocation :: S3LocationProperty
outputLocation :: S3LocationProperty
transformerId :: Value Text
type' :: EdiTypeProperty
..}
    = EdiConfigurationProperty {transformerId :: Value Text
transformerId = PropertyType "TransformerId" EdiConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
S3LocationProperty
EdiTypeProperty
haddock_workaround_ :: ()
capabilityDirection :: Maybe (Value Text)
inputLocation :: S3LocationProperty
outputLocation :: S3LocationProperty
type' :: EdiTypeProperty
haddock_workaround_ :: ()
capabilityDirection :: Maybe (Value Text)
inputLocation :: S3LocationProperty
outputLocation :: S3LocationProperty
type' :: EdiTypeProperty
..}
instance Property "Type" EdiConfigurationProperty where
  type PropertyType "Type" EdiConfigurationProperty = EdiTypeProperty
  set :: PropertyType "Type" EdiConfigurationProperty
-> EdiConfigurationProperty -> EdiConfigurationProperty
set PropertyType "Type" EdiConfigurationProperty
newValue EdiConfigurationProperty {Maybe (Value Text)
()
Value Text
S3LocationProperty
EdiTypeProperty
haddock_workaround_ :: EdiConfigurationProperty -> ()
capabilityDirection :: EdiConfigurationProperty -> Maybe (Value Text)
inputLocation :: EdiConfigurationProperty -> S3LocationProperty
outputLocation :: EdiConfigurationProperty -> S3LocationProperty
transformerId :: EdiConfigurationProperty -> Value Text
type' :: EdiConfigurationProperty -> EdiTypeProperty
haddock_workaround_ :: ()
capabilityDirection :: Maybe (Value Text)
inputLocation :: S3LocationProperty
outputLocation :: S3LocationProperty
transformerId :: Value Text
type' :: EdiTypeProperty
..}
    = EdiConfigurationProperty {type' :: EdiTypeProperty
type' = PropertyType "Type" EdiConfigurationProperty
EdiTypeProperty
newValue, Maybe (Value Text)
()
Value Text
S3LocationProperty
haddock_workaround_ :: ()
capabilityDirection :: Maybe (Value Text)
inputLocation :: S3LocationProperty
outputLocation :: S3LocationProperty
transformerId :: Value Text
haddock_workaround_ :: ()
capabilityDirection :: Maybe (Value Text)
inputLocation :: S3LocationProperty
outputLocation :: S3LocationProperty
transformerId :: Value Text
..}