module Stratosphere.Batch.JobDefinition.EksContainerVolumeMountProperty (
        EksContainerVolumeMountProperty(..),
        mkEksContainerVolumeMountProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EksContainerVolumeMountProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-ekscontainervolumemount.html>
    EksContainerVolumeMountProperty {EksContainerVolumeMountProperty -> ()
haddock_workaround_ :: (),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-ekscontainervolumemount.html#cfn-batch-jobdefinition-ekscontainervolumemount-mountpath>
                                     EksContainerVolumeMountProperty -> Maybe (Value Text)
mountPath :: (Prelude.Maybe (Value Prelude.Text)),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-ekscontainervolumemount.html#cfn-batch-jobdefinition-ekscontainervolumemount-name>
                                     EksContainerVolumeMountProperty -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-ekscontainervolumemount.html#cfn-batch-jobdefinition-ekscontainervolumemount-readonly>
                                     EksContainerVolumeMountProperty -> Maybe (Value Bool)
readOnly :: (Prelude.Maybe (Value Prelude.Bool)),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-ekscontainervolumemount.html#cfn-batch-jobdefinition-ekscontainervolumemount-subpath>
                                     EksContainerVolumeMountProperty -> Maybe (Value Text)
subPath :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (EksContainerVolumeMountProperty
-> EksContainerVolumeMountProperty -> Bool
(EksContainerVolumeMountProperty
 -> EksContainerVolumeMountProperty -> Bool)
-> (EksContainerVolumeMountProperty
    -> EksContainerVolumeMountProperty -> Bool)
-> Eq EksContainerVolumeMountProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EksContainerVolumeMountProperty
-> EksContainerVolumeMountProperty -> Bool
== :: EksContainerVolumeMountProperty
-> EksContainerVolumeMountProperty -> Bool
$c/= :: EksContainerVolumeMountProperty
-> EksContainerVolumeMountProperty -> Bool
/= :: EksContainerVolumeMountProperty
-> EksContainerVolumeMountProperty -> Bool
Prelude.Eq, Int -> EksContainerVolumeMountProperty -> ShowS
[EksContainerVolumeMountProperty] -> ShowS
EksContainerVolumeMountProperty -> String
(Int -> EksContainerVolumeMountProperty -> ShowS)
-> (EksContainerVolumeMountProperty -> String)
-> ([EksContainerVolumeMountProperty] -> ShowS)
-> Show EksContainerVolumeMountProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EksContainerVolumeMountProperty -> ShowS
showsPrec :: Int -> EksContainerVolumeMountProperty -> ShowS
$cshow :: EksContainerVolumeMountProperty -> String
show :: EksContainerVolumeMountProperty -> String
$cshowList :: [EksContainerVolumeMountProperty] -> ShowS
showList :: [EksContainerVolumeMountProperty] -> ShowS
Prelude.Show)
mkEksContainerVolumeMountProperty ::
  EksContainerVolumeMountProperty
mkEksContainerVolumeMountProperty :: EksContainerVolumeMountProperty
mkEksContainerVolumeMountProperty
  = EksContainerVolumeMountProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), mountPath :: Maybe (Value Text)
mountPath = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, readOnly :: Maybe (Value Bool)
readOnly = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       subPath :: Maybe (Value Text)
subPath = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EksContainerVolumeMountProperty where
  toResourceProperties :: EksContainerVolumeMountProperty -> ResourceProperties
toResourceProperties EksContainerVolumeMountProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: EksContainerVolumeMountProperty -> ()
mountPath :: EksContainerVolumeMountProperty -> Maybe (Value Text)
name :: EksContainerVolumeMountProperty -> Maybe (Value Text)
readOnly :: EksContainerVolumeMountProperty -> Maybe (Value Bool)
subPath :: EksContainerVolumeMountProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
mountPath :: Maybe (Value Text)
name :: Maybe (Value Text)
readOnly :: Maybe (Value Bool)
subPath :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Batch::JobDefinition.EksContainerVolumeMount",
         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 -> 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
"MountPath" (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)
mountPath,
                            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
"Name" (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)
name,
                            Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ReadOnly" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
readOnly,
                            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
"SubPath" (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)
subPath])}
instance JSON.ToJSON EksContainerVolumeMountProperty where
  toJSON :: EksContainerVolumeMountProperty -> Value
toJSON EksContainerVolumeMountProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: EksContainerVolumeMountProperty -> ()
mountPath :: EksContainerVolumeMountProperty -> Maybe (Value Text)
name :: EksContainerVolumeMountProperty -> Maybe (Value Text)
readOnly :: EksContainerVolumeMountProperty -> Maybe (Value Bool)
subPath :: EksContainerVolumeMountProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
mountPath :: Maybe (Value Text)
name :: Maybe (Value Text)
readOnly :: Maybe (Value Bool)
subPath :: 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 -> 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
"MountPath" (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)
mountPath,
               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
"Name" (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)
name,
               Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ReadOnly" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
readOnly,
               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
"SubPath" (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)
subPath]))
instance Property "MountPath" EksContainerVolumeMountProperty where
  type PropertyType "MountPath" EksContainerVolumeMountProperty = Value Prelude.Text
  set :: PropertyType "MountPath" EksContainerVolumeMountProperty
-> EksContainerVolumeMountProperty
-> EksContainerVolumeMountProperty
set PropertyType "MountPath" EksContainerVolumeMountProperty
newValue EksContainerVolumeMountProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: EksContainerVolumeMountProperty -> ()
mountPath :: EksContainerVolumeMountProperty -> Maybe (Value Text)
name :: EksContainerVolumeMountProperty -> Maybe (Value Text)
readOnly :: EksContainerVolumeMountProperty -> Maybe (Value Bool)
subPath :: EksContainerVolumeMountProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
mountPath :: Maybe (Value Text)
name :: Maybe (Value Text)
readOnly :: Maybe (Value Bool)
subPath :: Maybe (Value Text)
..}
    = EksContainerVolumeMountProperty
        {mountPath :: Maybe (Value Text)
mountPath = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MountPath" EksContainerVolumeMountProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
name :: Maybe (Value Text)
readOnly :: Maybe (Value Bool)
subPath :: Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
readOnly :: Maybe (Value Bool)
subPath :: Maybe (Value Text)
..}
instance Property "Name" EksContainerVolumeMountProperty where
  type PropertyType "Name" EksContainerVolumeMountProperty = Value Prelude.Text
  set :: PropertyType "Name" EksContainerVolumeMountProperty
-> EksContainerVolumeMountProperty
-> EksContainerVolumeMountProperty
set PropertyType "Name" EksContainerVolumeMountProperty
newValue EksContainerVolumeMountProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: EksContainerVolumeMountProperty -> ()
mountPath :: EksContainerVolumeMountProperty -> Maybe (Value Text)
name :: EksContainerVolumeMountProperty -> Maybe (Value Text)
readOnly :: EksContainerVolumeMountProperty -> Maybe (Value Bool)
subPath :: EksContainerVolumeMountProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
mountPath :: Maybe (Value Text)
name :: Maybe (Value Text)
readOnly :: Maybe (Value Bool)
subPath :: Maybe (Value Text)
..}
    = EksContainerVolumeMountProperty
        {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" EksContainerVolumeMountProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
mountPath :: Maybe (Value Text)
readOnly :: Maybe (Value Bool)
subPath :: Maybe (Value Text)
haddock_workaround_ :: ()
mountPath :: Maybe (Value Text)
readOnly :: Maybe (Value Bool)
subPath :: Maybe (Value Text)
..}
instance Property "ReadOnly" EksContainerVolumeMountProperty where
  type PropertyType "ReadOnly" EksContainerVolumeMountProperty = Value Prelude.Bool
  set :: PropertyType "ReadOnly" EksContainerVolumeMountProperty
-> EksContainerVolumeMountProperty
-> EksContainerVolumeMountProperty
set PropertyType "ReadOnly" EksContainerVolumeMountProperty
newValue EksContainerVolumeMountProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: EksContainerVolumeMountProperty -> ()
mountPath :: EksContainerVolumeMountProperty -> Maybe (Value Text)
name :: EksContainerVolumeMountProperty -> Maybe (Value Text)
readOnly :: EksContainerVolumeMountProperty -> Maybe (Value Bool)
subPath :: EksContainerVolumeMountProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
mountPath :: Maybe (Value Text)
name :: Maybe (Value Text)
readOnly :: Maybe (Value Bool)
subPath :: Maybe (Value Text)
..}
    = EksContainerVolumeMountProperty
        {readOnly :: Maybe (Value Bool)
readOnly = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ReadOnly" EksContainerVolumeMountProperty
Value Bool
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
mountPath :: Maybe (Value Text)
name :: Maybe (Value Text)
subPath :: Maybe (Value Text)
haddock_workaround_ :: ()
mountPath :: Maybe (Value Text)
name :: Maybe (Value Text)
subPath :: Maybe (Value Text)
..}
instance Property "SubPath" EksContainerVolumeMountProperty where
  type PropertyType "SubPath" EksContainerVolumeMountProperty = Value Prelude.Text
  set :: PropertyType "SubPath" EksContainerVolumeMountProperty
-> EksContainerVolumeMountProperty
-> EksContainerVolumeMountProperty
set PropertyType "SubPath" EksContainerVolumeMountProperty
newValue EksContainerVolumeMountProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: EksContainerVolumeMountProperty -> ()
mountPath :: EksContainerVolumeMountProperty -> Maybe (Value Text)
name :: EksContainerVolumeMountProperty -> Maybe (Value Text)
readOnly :: EksContainerVolumeMountProperty -> Maybe (Value Bool)
subPath :: EksContainerVolumeMountProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
mountPath :: Maybe (Value Text)
name :: Maybe (Value Text)
readOnly :: Maybe (Value Bool)
subPath :: Maybe (Value Text)
..}
    = EksContainerVolumeMountProperty
        {subPath :: Maybe (Value Text)
subPath = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SubPath" EksContainerVolumeMountProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
mountPath :: Maybe (Value Text)
name :: Maybe (Value Text)
readOnly :: Maybe (Value Bool)
haddock_workaround_ :: ()
mountPath :: Maybe (Value Text)
name :: Maybe (Value Text)
readOnly :: Maybe (Value Bool)
..}