module Stratosphere.Batch.JobDefinition.MountPointProperty ( MountPointProperty(..), mkMountPointProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data MountPointProperty = -- | See: MountPointProperty {haddock_workaround_ :: (), -- | See: containerPath :: (Prelude.Maybe (Value Prelude.Text)), -- | See: readOnly :: (Prelude.Maybe (Value Prelude.Bool)), -- | See: sourceVolume :: (Prelude.Maybe (Value Prelude.Text))} deriving stock (Prelude.Eq, Prelude.Show) mkMountPointProperty :: MountPointProperty mkMountPointProperty = MountPointProperty {haddock_workaround_ = (), containerPath = Prelude.Nothing, readOnly = Prelude.Nothing, sourceVolume = Prelude.Nothing} instance ToResourceProperties MountPointProperty where toResourceProperties MountPointProperty {..} = ResourceProperties {awsType = "AWS::Batch::JobDefinition.MountPoint", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "ContainerPath" Prelude.<$> containerPath, (JSON..=) "ReadOnly" Prelude.<$> readOnly, (JSON..=) "SourceVolume" Prelude.<$> sourceVolume])} instance JSON.ToJSON MountPointProperty where toJSON MountPointProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "ContainerPath" Prelude.<$> containerPath, (JSON..=) "ReadOnly" Prelude.<$> readOnly, (JSON..=) "SourceVolume" Prelude.<$> sourceVolume])) instance Property "ContainerPath" MountPointProperty where type PropertyType "ContainerPath" MountPointProperty = Value Prelude.Text set newValue MountPointProperty {..} = MountPointProperty {containerPath = Prelude.pure newValue, ..} instance Property "ReadOnly" MountPointProperty where type PropertyType "ReadOnly" MountPointProperty = Value Prelude.Bool set newValue MountPointProperty {..} = MountPointProperty {readOnly = Prelude.pure newValue, ..} instance Property "SourceVolume" MountPointProperty where type PropertyType "SourceVolume" MountPointProperty = Value Prelude.Text set newValue MountPointProperty {..} = MountPointProperty {sourceVolume = Prelude.pure newValue, ..}