module Stratosphere.AppIntegrations.DataIntegration.FileConfigurationProperty (
        FileConfigurationProperty(..), mkFileConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FileConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appintegrations-dataintegration-fileconfiguration.html>
    FileConfigurationProperty {FileConfigurationProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appintegrations-dataintegration-fileconfiguration.html#cfn-appintegrations-dataintegration-fileconfiguration-filters>
                               FileConfigurationProperty -> Maybe Object
filters :: (Prelude.Maybe JSON.Object),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appintegrations-dataintegration-fileconfiguration.html#cfn-appintegrations-dataintegration-fileconfiguration-folders>
                               FileConfigurationProperty -> ValueList Text
folders :: (ValueList Prelude.Text)}
  deriving stock (FileConfigurationProperty -> FileConfigurationProperty -> Bool
(FileConfigurationProperty -> FileConfigurationProperty -> Bool)
-> (FileConfigurationProperty -> FileConfigurationProperty -> Bool)
-> Eq FileConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FileConfigurationProperty -> FileConfigurationProperty -> Bool
== :: FileConfigurationProperty -> FileConfigurationProperty -> Bool
$c/= :: FileConfigurationProperty -> FileConfigurationProperty -> Bool
/= :: FileConfigurationProperty -> FileConfigurationProperty -> Bool
Prelude.Eq, Int -> FileConfigurationProperty -> ShowS
[FileConfigurationProperty] -> ShowS
FileConfigurationProperty -> String
(Int -> FileConfigurationProperty -> ShowS)
-> (FileConfigurationProperty -> String)
-> ([FileConfigurationProperty] -> ShowS)
-> Show FileConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FileConfigurationProperty -> ShowS
showsPrec :: Int -> FileConfigurationProperty -> ShowS
$cshow :: FileConfigurationProperty -> String
show :: FileConfigurationProperty -> String
$cshowList :: [FileConfigurationProperty] -> ShowS
showList :: [FileConfigurationProperty] -> ShowS
Prelude.Show)
mkFileConfigurationProperty ::
  ValueList Prelude.Text -> FileConfigurationProperty
mkFileConfigurationProperty :: ValueList Text -> FileConfigurationProperty
mkFileConfigurationProperty ValueList Text
folders
  = FileConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), folders :: ValueList Text
folders = ValueList Text
folders,
       filters :: Maybe Object
filters = Maybe Object
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FileConfigurationProperty where
  toResourceProperties :: FileConfigurationProperty -> ResourceProperties
toResourceProperties FileConfigurationProperty {Maybe Object
()
ValueList Text
haddock_workaround_ :: FileConfigurationProperty -> ()
filters :: FileConfigurationProperty -> Maybe Object
folders :: FileConfigurationProperty -> ValueList Text
haddock_workaround_ :: ()
filters :: Maybe Object
folders :: ValueList Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppIntegrations::DataIntegration.FileConfiguration",
         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
"Folders" 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..= ValueList Text
folders]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Filters" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
filters]))}
instance JSON.ToJSON FileConfigurationProperty where
  toJSON :: FileConfigurationProperty -> Value
toJSON FileConfigurationProperty {Maybe Object
()
ValueList Text
haddock_workaround_ :: FileConfigurationProperty -> ()
filters :: FileConfigurationProperty -> Maybe Object
folders :: FileConfigurationProperty -> ValueList Text
haddock_workaround_ :: ()
filters :: Maybe Object
folders :: ValueList 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
"Folders" 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..= ValueList Text
folders]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Filters" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
filters])))
instance Property "Filters" FileConfigurationProperty where
  type PropertyType "Filters" FileConfigurationProperty = JSON.Object
  set :: PropertyType "Filters" FileConfigurationProperty
-> FileConfigurationProperty -> FileConfigurationProperty
set PropertyType "Filters" FileConfigurationProperty
newValue FileConfigurationProperty {Maybe Object
()
ValueList Text
haddock_workaround_ :: FileConfigurationProperty -> ()
filters :: FileConfigurationProperty -> Maybe Object
folders :: FileConfigurationProperty -> ValueList Text
haddock_workaround_ :: ()
filters :: Maybe Object
folders :: ValueList Text
..}
    = FileConfigurationProperty {filters :: Maybe Object
filters = Object -> Maybe Object
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Object
PropertyType "Filters" FileConfigurationProperty
newValue, ()
ValueList Text
haddock_workaround_ :: ()
folders :: ValueList Text
haddock_workaround_ :: ()
folders :: ValueList Text
..}
instance Property "Folders" FileConfigurationProperty where
  type PropertyType "Folders" FileConfigurationProperty = ValueList Prelude.Text
  set :: PropertyType "Folders" FileConfigurationProperty
-> FileConfigurationProperty -> FileConfigurationProperty
set PropertyType "Folders" FileConfigurationProperty
newValue FileConfigurationProperty {Maybe Object
()
ValueList Text
haddock_workaround_ :: FileConfigurationProperty -> ()
filters :: FileConfigurationProperty -> Maybe Object
folders :: FileConfigurationProperty -> ValueList Text
haddock_workaround_ :: ()
filters :: Maybe Object
folders :: ValueList Text
..}
    = FileConfigurationProperty {folders :: ValueList Text
folders = PropertyType "Folders" FileConfigurationProperty
ValueList Text
newValue, Maybe Object
()
haddock_workaround_ :: ()
filters :: Maybe Object
haddock_workaround_ :: ()
filters :: Maybe Object
..}