module Stratosphere.ECS.TaskDefinition.FSxWindowsFileServerVolumeConfigurationProperty (
module Exports,
FSxWindowsFileServerVolumeConfigurationProperty(..),
mkFSxWindowsFileServerVolumeConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ECS.TaskDefinition.FSxAuthorizationConfigProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FSxWindowsFileServerVolumeConfigurationProperty
=
FSxWindowsFileServerVolumeConfigurationProperty {FSxWindowsFileServerVolumeConfigurationProperty -> ()
haddock_workaround_ :: (),
FSxWindowsFileServerVolumeConfigurationProperty
-> Maybe FSxAuthorizationConfigProperty
authorizationConfig :: (Prelude.Maybe FSxAuthorizationConfigProperty),
FSxWindowsFileServerVolumeConfigurationProperty -> Value Text
fileSystemId :: (Value Prelude.Text),
FSxWindowsFileServerVolumeConfigurationProperty -> Value Text
rootDirectory :: (Value Prelude.Text)}
deriving stock (FSxWindowsFileServerVolumeConfigurationProperty
-> FSxWindowsFileServerVolumeConfigurationProperty -> Bool
(FSxWindowsFileServerVolumeConfigurationProperty
-> FSxWindowsFileServerVolumeConfigurationProperty -> Bool)
-> (FSxWindowsFileServerVolumeConfigurationProperty
-> FSxWindowsFileServerVolumeConfigurationProperty -> Bool)
-> Eq FSxWindowsFileServerVolumeConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FSxWindowsFileServerVolumeConfigurationProperty
-> FSxWindowsFileServerVolumeConfigurationProperty -> Bool
== :: FSxWindowsFileServerVolumeConfigurationProperty
-> FSxWindowsFileServerVolumeConfigurationProperty -> Bool
$c/= :: FSxWindowsFileServerVolumeConfigurationProperty
-> FSxWindowsFileServerVolumeConfigurationProperty -> Bool
/= :: FSxWindowsFileServerVolumeConfigurationProperty
-> FSxWindowsFileServerVolumeConfigurationProperty -> Bool
Prelude.Eq, Int -> FSxWindowsFileServerVolumeConfigurationProperty -> ShowS
[FSxWindowsFileServerVolumeConfigurationProperty] -> ShowS
FSxWindowsFileServerVolumeConfigurationProperty -> String
(Int -> FSxWindowsFileServerVolumeConfigurationProperty -> ShowS)
-> (FSxWindowsFileServerVolumeConfigurationProperty -> String)
-> ([FSxWindowsFileServerVolumeConfigurationProperty] -> ShowS)
-> Show FSxWindowsFileServerVolumeConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FSxWindowsFileServerVolumeConfigurationProperty -> ShowS
showsPrec :: Int -> FSxWindowsFileServerVolumeConfigurationProperty -> ShowS
$cshow :: FSxWindowsFileServerVolumeConfigurationProperty -> String
show :: FSxWindowsFileServerVolumeConfigurationProperty -> String
$cshowList :: [FSxWindowsFileServerVolumeConfigurationProperty] -> ShowS
showList :: [FSxWindowsFileServerVolumeConfigurationProperty] -> ShowS
Prelude.Show)
mkFSxWindowsFileServerVolumeConfigurationProperty ::
Value Prelude.Text
-> Value Prelude.Text
-> FSxWindowsFileServerVolumeConfigurationProperty
mkFSxWindowsFileServerVolumeConfigurationProperty :: Value Text
-> Value Text -> FSxWindowsFileServerVolumeConfigurationProperty
mkFSxWindowsFileServerVolumeConfigurationProperty
Value Text
fileSystemId
Value Text
rootDirectory
= FSxWindowsFileServerVolumeConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), fileSystemId :: Value Text
fileSystemId = Value Text
fileSystemId,
rootDirectory :: Value Text
rootDirectory = Value Text
rootDirectory,
authorizationConfig :: Maybe FSxAuthorizationConfigProperty
authorizationConfig = Maybe FSxAuthorizationConfigProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FSxWindowsFileServerVolumeConfigurationProperty where
toResourceProperties :: FSxWindowsFileServerVolumeConfigurationProperty
-> ResourceProperties
toResourceProperties
FSxWindowsFileServerVolumeConfigurationProperty {Maybe FSxAuthorizationConfigProperty
()
Value Text
haddock_workaround_ :: FSxWindowsFileServerVolumeConfigurationProperty -> ()
authorizationConfig :: FSxWindowsFileServerVolumeConfigurationProperty
-> Maybe FSxAuthorizationConfigProperty
fileSystemId :: FSxWindowsFileServerVolumeConfigurationProperty -> Value Text
rootDirectory :: FSxWindowsFileServerVolumeConfigurationProperty -> Value Text
haddock_workaround_ :: ()
authorizationConfig :: Maybe FSxAuthorizationConfigProperty
fileSystemId :: Value Text
rootDirectory :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ECS::TaskDefinition.FSxWindowsFileServerVolumeConfiguration",
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
"FileSystemId" 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
fileSystemId,
Key
"RootDirectory" 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
rootDirectory]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> FSxAuthorizationConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AuthorizationConfig"
(FSxAuthorizationConfigProperty -> (Key, Value))
-> Maybe FSxAuthorizationConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FSxAuthorizationConfigProperty
authorizationConfig]))}
instance JSON.ToJSON FSxWindowsFileServerVolumeConfigurationProperty where
toJSON :: FSxWindowsFileServerVolumeConfigurationProperty -> Value
toJSON FSxWindowsFileServerVolumeConfigurationProperty {Maybe FSxAuthorizationConfigProperty
()
Value Text
haddock_workaround_ :: FSxWindowsFileServerVolumeConfigurationProperty -> ()
authorizationConfig :: FSxWindowsFileServerVolumeConfigurationProperty
-> Maybe FSxAuthorizationConfigProperty
fileSystemId :: FSxWindowsFileServerVolumeConfigurationProperty -> Value Text
rootDirectory :: FSxWindowsFileServerVolumeConfigurationProperty -> Value Text
haddock_workaround_ :: ()
authorizationConfig :: Maybe FSxAuthorizationConfigProperty
fileSystemId :: Value Text
rootDirectory :: 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
"FileSystemId" 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
fileSystemId,
Key
"RootDirectory" 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
rootDirectory]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> FSxAuthorizationConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AuthorizationConfig"
(FSxAuthorizationConfigProperty -> (Key, Value))
-> Maybe FSxAuthorizationConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FSxAuthorizationConfigProperty
authorizationConfig])))
instance Property "AuthorizationConfig" FSxWindowsFileServerVolumeConfigurationProperty where
type PropertyType "AuthorizationConfig" FSxWindowsFileServerVolumeConfigurationProperty = FSxAuthorizationConfigProperty
set :: PropertyType
"AuthorizationConfig"
FSxWindowsFileServerVolumeConfigurationProperty
-> FSxWindowsFileServerVolumeConfigurationProperty
-> FSxWindowsFileServerVolumeConfigurationProperty
set PropertyType
"AuthorizationConfig"
FSxWindowsFileServerVolumeConfigurationProperty
newValue FSxWindowsFileServerVolumeConfigurationProperty {Maybe FSxAuthorizationConfigProperty
()
Value Text
haddock_workaround_ :: FSxWindowsFileServerVolumeConfigurationProperty -> ()
authorizationConfig :: FSxWindowsFileServerVolumeConfigurationProperty
-> Maybe FSxAuthorizationConfigProperty
fileSystemId :: FSxWindowsFileServerVolumeConfigurationProperty -> Value Text
rootDirectory :: FSxWindowsFileServerVolumeConfigurationProperty -> Value Text
haddock_workaround_ :: ()
authorizationConfig :: Maybe FSxAuthorizationConfigProperty
fileSystemId :: Value Text
rootDirectory :: Value Text
..}
= FSxWindowsFileServerVolumeConfigurationProperty
{authorizationConfig :: Maybe FSxAuthorizationConfigProperty
authorizationConfig = FSxAuthorizationConfigProperty
-> Maybe FSxAuthorizationConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"AuthorizationConfig"
FSxWindowsFileServerVolumeConfigurationProperty
FSxAuthorizationConfigProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
fileSystemId :: Value Text
rootDirectory :: Value Text
haddock_workaround_ :: ()
fileSystemId :: Value Text
rootDirectory :: Value Text
..}
instance Property "FileSystemId" FSxWindowsFileServerVolumeConfigurationProperty where
type PropertyType "FileSystemId" FSxWindowsFileServerVolumeConfigurationProperty = Value Prelude.Text
set :: PropertyType
"FileSystemId" FSxWindowsFileServerVolumeConfigurationProperty
-> FSxWindowsFileServerVolumeConfigurationProperty
-> FSxWindowsFileServerVolumeConfigurationProperty
set PropertyType
"FileSystemId" FSxWindowsFileServerVolumeConfigurationProperty
newValue FSxWindowsFileServerVolumeConfigurationProperty {Maybe FSxAuthorizationConfigProperty
()
Value Text
haddock_workaround_ :: FSxWindowsFileServerVolumeConfigurationProperty -> ()
authorizationConfig :: FSxWindowsFileServerVolumeConfigurationProperty
-> Maybe FSxAuthorizationConfigProperty
fileSystemId :: FSxWindowsFileServerVolumeConfigurationProperty -> Value Text
rootDirectory :: FSxWindowsFileServerVolumeConfigurationProperty -> Value Text
haddock_workaround_ :: ()
authorizationConfig :: Maybe FSxAuthorizationConfigProperty
fileSystemId :: Value Text
rootDirectory :: Value Text
..}
= FSxWindowsFileServerVolumeConfigurationProperty
{fileSystemId :: Value Text
fileSystemId = PropertyType
"FileSystemId" FSxWindowsFileServerVolumeConfigurationProperty
Value Text
newValue, Maybe FSxAuthorizationConfigProperty
()
Value Text
haddock_workaround_ :: ()
authorizationConfig :: Maybe FSxAuthorizationConfigProperty
rootDirectory :: Value Text
haddock_workaround_ :: ()
authorizationConfig :: Maybe FSxAuthorizationConfigProperty
rootDirectory :: Value Text
..}
instance Property "RootDirectory" FSxWindowsFileServerVolumeConfigurationProperty where
type PropertyType "RootDirectory" FSxWindowsFileServerVolumeConfigurationProperty = Value Prelude.Text
set :: PropertyType
"RootDirectory" FSxWindowsFileServerVolumeConfigurationProperty
-> FSxWindowsFileServerVolumeConfigurationProperty
-> FSxWindowsFileServerVolumeConfigurationProperty
set PropertyType
"RootDirectory" FSxWindowsFileServerVolumeConfigurationProperty
newValue FSxWindowsFileServerVolumeConfigurationProperty {Maybe FSxAuthorizationConfigProperty
()
Value Text
haddock_workaround_ :: FSxWindowsFileServerVolumeConfigurationProperty -> ()
authorizationConfig :: FSxWindowsFileServerVolumeConfigurationProperty
-> Maybe FSxAuthorizationConfigProperty
fileSystemId :: FSxWindowsFileServerVolumeConfigurationProperty -> Value Text
rootDirectory :: FSxWindowsFileServerVolumeConfigurationProperty -> Value Text
haddock_workaround_ :: ()
authorizationConfig :: Maybe FSxAuthorizationConfigProperty
fileSystemId :: Value Text
rootDirectory :: Value Text
..}
= FSxWindowsFileServerVolumeConfigurationProperty
{rootDirectory :: Value Text
rootDirectory = PropertyType
"RootDirectory" FSxWindowsFileServerVolumeConfigurationProperty
Value Text
newValue, Maybe FSxAuthorizationConfigProperty
()
Value Text
haddock_workaround_ :: ()
authorizationConfig :: Maybe FSxAuthorizationConfigProperty
fileSystemId :: Value Text
haddock_workaround_ :: ()
authorizationConfig :: Maybe FSxAuthorizationConfigProperty
fileSystemId :: Value Text
..}