stratosphere-ecs-1.0.0: gen/Stratosphere/ECS/TaskDefinition/MountPointProperty.hs
module Stratosphere.ECS.TaskDefinition.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: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-mountpoint.html>
MountPointProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-mountpoint.html#cfn-ecs-taskdefinition-mountpoint-containerpath>
containerPath :: (Prelude.Maybe (Value Prelude.Text)),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-mountpoint.html#cfn-ecs-taskdefinition-mountpoint-readonly>
readOnly :: (Prelude.Maybe (Value Prelude.Bool)),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-mountpoint.html#cfn-ecs-taskdefinition-mountpoint-sourcevolume>
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::ECS::TaskDefinition.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, ..}