module Stratosphere.Deadline.StorageProfile (
module Exports, StorageProfile(..), mkStorageProfile
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Deadline.StorageProfile.FileSystemLocationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data StorageProfile
=
StorageProfile {StorageProfile -> ()
haddock_workaround_ :: (),
StorageProfile -> Value Text
displayName :: (Value Prelude.Text),
StorageProfile -> Value Text
farmId :: (Value Prelude.Text),
StorageProfile -> Maybe [FileSystemLocationProperty]
fileSystemLocations :: (Prelude.Maybe [FileSystemLocationProperty]),
StorageProfile -> Value Text
osFamily :: (Value Prelude.Text)}
deriving stock (StorageProfile -> StorageProfile -> Bool
(StorageProfile -> StorageProfile -> Bool)
-> (StorageProfile -> StorageProfile -> Bool) -> Eq StorageProfile
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: StorageProfile -> StorageProfile -> Bool
== :: StorageProfile -> StorageProfile -> Bool
$c/= :: StorageProfile -> StorageProfile -> Bool
/= :: StorageProfile -> StorageProfile -> Bool
Prelude.Eq, Int -> StorageProfile -> ShowS
[StorageProfile] -> ShowS
StorageProfile -> String
(Int -> StorageProfile -> ShowS)
-> (StorageProfile -> String)
-> ([StorageProfile] -> ShowS)
-> Show StorageProfile
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> StorageProfile -> ShowS
showsPrec :: Int -> StorageProfile -> ShowS
$cshow :: StorageProfile -> String
show :: StorageProfile -> String
$cshowList :: [StorageProfile] -> ShowS
showList :: [StorageProfile] -> ShowS
Prelude.Show)
mkStorageProfile ::
Value Prelude.Text
-> Value Prelude.Text -> Value Prelude.Text -> StorageProfile
mkStorageProfile :: Value Text -> Value Text -> Value Text -> StorageProfile
mkStorageProfile Value Text
displayName Value Text
farmId Value Text
osFamily
= StorageProfile
{haddock_workaround_ :: ()
haddock_workaround_ = (), displayName :: Value Text
displayName = Value Text
displayName,
farmId :: Value Text
farmId = Value Text
farmId, osFamily :: Value Text
osFamily = Value Text
osFamily,
fileSystemLocations :: Maybe [FileSystemLocationProperty]
fileSystemLocations = Maybe [FileSystemLocationProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties StorageProfile where
toResourceProperties :: StorageProfile -> ResourceProperties
toResourceProperties StorageProfile {Maybe [FileSystemLocationProperty]
()
Value Text
haddock_workaround_ :: StorageProfile -> ()
displayName :: StorageProfile -> Value Text
farmId :: StorageProfile -> Value Text
fileSystemLocations :: StorageProfile -> Maybe [FileSystemLocationProperty]
osFamily :: StorageProfile -> Value Text
haddock_workaround_ :: ()
displayName :: Value Text
farmId :: Value Text
fileSystemLocations :: Maybe [FileSystemLocationProperty]
osFamily :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Deadline::StorageProfile",
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
"DisplayName" 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
displayName, Key
"FarmId" 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
farmId,
Key
"OsFamily" 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
osFamily]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> [FileSystemLocationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FileSystemLocations"
([FileSystemLocationProperty] -> (Key, Value))
-> Maybe [FileSystemLocationProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [FileSystemLocationProperty]
fileSystemLocations]))}
instance JSON.ToJSON StorageProfile where
toJSON :: StorageProfile -> Value
toJSON StorageProfile {Maybe [FileSystemLocationProperty]
()
Value Text
haddock_workaround_ :: StorageProfile -> ()
displayName :: StorageProfile -> Value Text
farmId :: StorageProfile -> Value Text
fileSystemLocations :: StorageProfile -> Maybe [FileSystemLocationProperty]
osFamily :: StorageProfile -> Value Text
haddock_workaround_ :: ()
displayName :: Value Text
farmId :: Value Text
fileSystemLocations :: Maybe [FileSystemLocationProperty]
osFamily :: Value 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
"DisplayName" 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
displayName, Key
"FarmId" 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
farmId,
Key
"OsFamily" 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
osFamily]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> [FileSystemLocationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FileSystemLocations"
([FileSystemLocationProperty] -> (Key, Value))
-> Maybe [FileSystemLocationProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [FileSystemLocationProperty]
fileSystemLocations])))
instance Property "DisplayName" StorageProfile where
type PropertyType "DisplayName" StorageProfile = Value Prelude.Text
set :: PropertyType "DisplayName" StorageProfile
-> StorageProfile -> StorageProfile
set PropertyType "DisplayName" StorageProfile
newValue StorageProfile {Maybe [FileSystemLocationProperty]
()
Value Text
haddock_workaround_ :: StorageProfile -> ()
displayName :: StorageProfile -> Value Text
farmId :: StorageProfile -> Value Text
fileSystemLocations :: StorageProfile -> Maybe [FileSystemLocationProperty]
osFamily :: StorageProfile -> Value Text
haddock_workaround_ :: ()
displayName :: Value Text
farmId :: Value Text
fileSystemLocations :: Maybe [FileSystemLocationProperty]
osFamily :: Value Text
..}
= StorageProfile {displayName :: Value Text
displayName = PropertyType "DisplayName" StorageProfile
Value Text
newValue, Maybe [FileSystemLocationProperty]
()
Value Text
haddock_workaround_ :: ()
farmId :: Value Text
fileSystemLocations :: Maybe [FileSystemLocationProperty]
osFamily :: Value Text
haddock_workaround_ :: ()
farmId :: Value Text
fileSystemLocations :: Maybe [FileSystemLocationProperty]
osFamily :: Value Text
..}
instance Property "FarmId" StorageProfile where
type PropertyType "FarmId" StorageProfile = Value Prelude.Text
set :: PropertyType "FarmId" StorageProfile
-> StorageProfile -> StorageProfile
set PropertyType "FarmId" StorageProfile
newValue StorageProfile {Maybe [FileSystemLocationProperty]
()
Value Text
haddock_workaround_ :: StorageProfile -> ()
displayName :: StorageProfile -> Value Text
farmId :: StorageProfile -> Value Text
fileSystemLocations :: StorageProfile -> Maybe [FileSystemLocationProperty]
osFamily :: StorageProfile -> Value Text
haddock_workaround_ :: ()
displayName :: Value Text
farmId :: Value Text
fileSystemLocations :: Maybe [FileSystemLocationProperty]
osFamily :: Value Text
..}
= StorageProfile {farmId :: Value Text
farmId = PropertyType "FarmId" StorageProfile
Value Text
newValue, Maybe [FileSystemLocationProperty]
()
Value Text
haddock_workaround_ :: ()
displayName :: Value Text
fileSystemLocations :: Maybe [FileSystemLocationProperty]
osFamily :: Value Text
haddock_workaround_ :: ()
displayName :: Value Text
fileSystemLocations :: Maybe [FileSystemLocationProperty]
osFamily :: Value Text
..}
instance Property "FileSystemLocations" StorageProfile where
type PropertyType "FileSystemLocations" StorageProfile = [FileSystemLocationProperty]
set :: PropertyType "FileSystemLocations" StorageProfile
-> StorageProfile -> StorageProfile
set PropertyType "FileSystemLocations" StorageProfile
newValue StorageProfile {Maybe [FileSystemLocationProperty]
()
Value Text
haddock_workaround_ :: StorageProfile -> ()
displayName :: StorageProfile -> Value Text
farmId :: StorageProfile -> Value Text
fileSystemLocations :: StorageProfile -> Maybe [FileSystemLocationProperty]
osFamily :: StorageProfile -> Value Text
haddock_workaround_ :: ()
displayName :: Value Text
farmId :: Value Text
fileSystemLocations :: Maybe [FileSystemLocationProperty]
osFamily :: Value Text
..}
= StorageProfile {fileSystemLocations :: Maybe [FileSystemLocationProperty]
fileSystemLocations = [FileSystemLocationProperty] -> Maybe [FileSystemLocationProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [FileSystemLocationProperty]
PropertyType "FileSystemLocations" StorageProfile
newValue, ()
Value Text
haddock_workaround_ :: ()
displayName :: Value Text
farmId :: Value Text
osFamily :: Value Text
haddock_workaround_ :: ()
displayName :: Value Text
farmId :: Value Text
osFamily :: Value Text
..}
instance Property "OsFamily" StorageProfile where
type PropertyType "OsFamily" StorageProfile = Value Prelude.Text
set :: PropertyType "OsFamily" StorageProfile
-> StorageProfile -> StorageProfile
set PropertyType "OsFamily" StorageProfile
newValue StorageProfile {Maybe [FileSystemLocationProperty]
()
Value Text
haddock_workaround_ :: StorageProfile -> ()
displayName :: StorageProfile -> Value Text
farmId :: StorageProfile -> Value Text
fileSystemLocations :: StorageProfile -> Maybe [FileSystemLocationProperty]
osFamily :: StorageProfile -> Value Text
haddock_workaround_ :: ()
displayName :: Value Text
farmId :: Value Text
fileSystemLocations :: Maybe [FileSystemLocationProperty]
osFamily :: Value Text
..}
= StorageProfile {osFamily :: Value Text
osFamily = PropertyType "OsFamily" StorageProfile
Value Text
newValue, Maybe [FileSystemLocationProperty]
()
Value Text
haddock_workaround_ :: ()
displayName :: Value Text
farmId :: Value Text
fileSystemLocations :: Maybe [FileSystemLocationProperty]
haddock_workaround_ :: ()
displayName :: Value Text
farmId :: Value Text
fileSystemLocations :: Maybe [FileSystemLocationProperty]
..}