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