module Stratosphere.AppFlow.Flow.PrefixConfigProperty (
        PrefixConfigProperty(..), mkPrefixConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PrefixConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-prefixconfig.html>
    PrefixConfigProperty {PrefixConfigProperty -> ()
haddock_workaround_ :: (),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-prefixconfig.html#cfn-appflow-flow-prefixconfig-pathprefixhierarchy>
                          PrefixConfigProperty -> Maybe (ValueList Text)
pathPrefixHierarchy :: (Prelude.Maybe (ValueList Prelude.Text)),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-prefixconfig.html#cfn-appflow-flow-prefixconfig-prefixformat>
                          PrefixConfigProperty -> Maybe (Value Text)
prefixFormat :: (Prelude.Maybe (Value Prelude.Text)),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-prefixconfig.html#cfn-appflow-flow-prefixconfig-prefixtype>
                          PrefixConfigProperty -> Maybe (Value Text)
prefixType :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (PrefixConfigProperty -> PrefixConfigProperty -> Bool
(PrefixConfigProperty -> PrefixConfigProperty -> Bool)
-> (PrefixConfigProperty -> PrefixConfigProperty -> Bool)
-> Eq PrefixConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PrefixConfigProperty -> PrefixConfigProperty -> Bool
== :: PrefixConfigProperty -> PrefixConfigProperty -> Bool
$c/= :: PrefixConfigProperty -> PrefixConfigProperty -> Bool
/= :: PrefixConfigProperty -> PrefixConfigProperty -> Bool
Prelude.Eq, Int -> PrefixConfigProperty -> ShowS
[PrefixConfigProperty] -> ShowS
PrefixConfigProperty -> String
(Int -> PrefixConfigProperty -> ShowS)
-> (PrefixConfigProperty -> String)
-> ([PrefixConfigProperty] -> ShowS)
-> Show PrefixConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PrefixConfigProperty -> ShowS
showsPrec :: Int -> PrefixConfigProperty -> ShowS
$cshow :: PrefixConfigProperty -> String
show :: PrefixConfigProperty -> String
$cshowList :: [PrefixConfigProperty] -> ShowS
showList :: [PrefixConfigProperty] -> ShowS
Prelude.Show)
mkPrefixConfigProperty :: PrefixConfigProperty
mkPrefixConfigProperty :: PrefixConfigProperty
mkPrefixConfigProperty
  = PrefixConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), pathPrefixHierarchy :: Maybe (ValueList Text)
pathPrefixHierarchy = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
       prefixFormat :: Maybe (Value Text)
prefixFormat = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, prefixType :: Maybe (Value Text)
prefixType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PrefixConfigProperty where
  toResourceProperties :: PrefixConfigProperty -> ResourceProperties
toResourceProperties PrefixConfigProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: PrefixConfigProperty -> ()
pathPrefixHierarchy :: PrefixConfigProperty -> Maybe (ValueList Text)
prefixFormat :: PrefixConfigProperty -> Maybe (Value Text)
prefixType :: PrefixConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
pathPrefixHierarchy :: Maybe (ValueList Text)
prefixFormat :: Maybe (Value Text)
prefixType :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppFlow::Flow.PrefixConfig",
         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 -> ValueList 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
"PathPrefixHierarchy" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
pathPrefixHierarchy,
                            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
"PrefixFormat" (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)
prefixFormat,
                            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
"PrefixType" (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)
prefixType])}
instance JSON.ToJSON PrefixConfigProperty where
  toJSON :: PrefixConfigProperty -> Value
toJSON PrefixConfigProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: PrefixConfigProperty -> ()
pathPrefixHierarchy :: PrefixConfigProperty -> Maybe (ValueList Text)
prefixFormat :: PrefixConfigProperty -> Maybe (Value Text)
prefixType :: PrefixConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
pathPrefixHierarchy :: Maybe (ValueList Text)
prefixFormat :: Maybe (Value Text)
prefixType :: 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 -> ValueList 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
"PathPrefixHierarchy" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
pathPrefixHierarchy,
               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
"PrefixFormat" (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)
prefixFormat,
               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
"PrefixType" (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)
prefixType]))
instance Property "PathPrefixHierarchy" PrefixConfigProperty where
  type PropertyType "PathPrefixHierarchy" PrefixConfigProperty = ValueList Prelude.Text
  set :: PropertyType "PathPrefixHierarchy" PrefixConfigProperty
-> PrefixConfigProperty -> PrefixConfigProperty
set PropertyType "PathPrefixHierarchy" PrefixConfigProperty
newValue PrefixConfigProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: PrefixConfigProperty -> ()
pathPrefixHierarchy :: PrefixConfigProperty -> Maybe (ValueList Text)
prefixFormat :: PrefixConfigProperty -> Maybe (Value Text)
prefixType :: PrefixConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
pathPrefixHierarchy :: Maybe (ValueList Text)
prefixFormat :: Maybe (Value Text)
prefixType :: Maybe (Value Text)
..}
    = PrefixConfigProperty
        {pathPrefixHierarchy :: Maybe (ValueList Text)
pathPrefixHierarchy = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PathPrefixHierarchy" PrefixConfigProperty
ValueList Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
prefixFormat :: Maybe (Value Text)
prefixType :: Maybe (Value Text)
haddock_workaround_ :: ()
prefixFormat :: Maybe (Value Text)
prefixType :: Maybe (Value Text)
..}
instance Property "PrefixFormat" PrefixConfigProperty where
  type PropertyType "PrefixFormat" PrefixConfigProperty = Value Prelude.Text
  set :: PropertyType "PrefixFormat" PrefixConfigProperty
-> PrefixConfigProperty -> PrefixConfigProperty
set PropertyType "PrefixFormat" PrefixConfigProperty
newValue PrefixConfigProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: PrefixConfigProperty -> ()
pathPrefixHierarchy :: PrefixConfigProperty -> Maybe (ValueList Text)
prefixFormat :: PrefixConfigProperty -> Maybe (Value Text)
prefixType :: PrefixConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
pathPrefixHierarchy :: Maybe (ValueList Text)
prefixFormat :: Maybe (Value Text)
prefixType :: Maybe (Value Text)
..}
    = PrefixConfigProperty {prefixFormat :: Maybe (Value Text)
prefixFormat = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PrefixFormat" PrefixConfigProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
pathPrefixHierarchy :: Maybe (ValueList Text)
prefixType :: Maybe (Value Text)
haddock_workaround_ :: ()
pathPrefixHierarchy :: Maybe (ValueList Text)
prefixType :: Maybe (Value Text)
..}
instance Property "PrefixType" PrefixConfigProperty where
  type PropertyType "PrefixType" PrefixConfigProperty = Value Prelude.Text
  set :: PropertyType "PrefixType" PrefixConfigProperty
-> PrefixConfigProperty -> PrefixConfigProperty
set PropertyType "PrefixType" PrefixConfigProperty
newValue PrefixConfigProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: PrefixConfigProperty -> ()
pathPrefixHierarchy :: PrefixConfigProperty -> Maybe (ValueList Text)
prefixFormat :: PrefixConfigProperty -> Maybe (Value Text)
prefixType :: PrefixConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
pathPrefixHierarchy :: Maybe (ValueList Text)
prefixFormat :: Maybe (Value Text)
prefixType :: Maybe (Value Text)
..}
    = PrefixConfigProperty {prefixType :: Maybe (Value Text)
prefixType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PrefixType" PrefixConfigProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
pathPrefixHierarchy :: Maybe (ValueList Text)
prefixFormat :: Maybe (Value Text)
haddock_workaround_ :: ()
pathPrefixHierarchy :: Maybe (ValueList Text)
prefixFormat :: Maybe (Value Text)
..}