module Stratosphere.GreengrassV2.ComponentVersion.LambdaVolumeMountProperty (
        LambdaVolumeMountProperty(..), mkLambdaVolumeMountProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LambdaVolumeMountProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrassv2-componentversion-lambdavolumemount.html>
    LambdaVolumeMountProperty {LambdaVolumeMountProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrassv2-componentversion-lambdavolumemount.html#cfn-greengrassv2-componentversion-lambdavolumemount-addgroupowner>
                               LambdaVolumeMountProperty -> Maybe (Value Bool)
addGroupOwner :: (Prelude.Maybe (Value Prelude.Bool)),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrassv2-componentversion-lambdavolumemount.html#cfn-greengrassv2-componentversion-lambdavolumemount-destinationpath>
                               LambdaVolumeMountProperty -> Maybe (Value Text)
destinationPath :: (Prelude.Maybe (Value Prelude.Text)),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrassv2-componentversion-lambdavolumemount.html#cfn-greengrassv2-componentversion-lambdavolumemount-permission>
                               LambdaVolumeMountProperty -> Maybe (Value Text)
permission :: (Prelude.Maybe (Value Prelude.Text)),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrassv2-componentversion-lambdavolumemount.html#cfn-greengrassv2-componentversion-lambdavolumemount-sourcepath>
                               LambdaVolumeMountProperty -> Maybe (Value Text)
sourcePath :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (LambdaVolumeMountProperty -> LambdaVolumeMountProperty -> Bool
(LambdaVolumeMountProperty -> LambdaVolumeMountProperty -> Bool)
-> (LambdaVolumeMountProperty -> LambdaVolumeMountProperty -> Bool)
-> Eq LambdaVolumeMountProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LambdaVolumeMountProperty -> LambdaVolumeMountProperty -> Bool
== :: LambdaVolumeMountProperty -> LambdaVolumeMountProperty -> Bool
$c/= :: LambdaVolumeMountProperty -> LambdaVolumeMountProperty -> Bool
/= :: LambdaVolumeMountProperty -> LambdaVolumeMountProperty -> Bool
Prelude.Eq, Int -> LambdaVolumeMountProperty -> ShowS
[LambdaVolumeMountProperty] -> ShowS
LambdaVolumeMountProperty -> String
(Int -> LambdaVolumeMountProperty -> ShowS)
-> (LambdaVolumeMountProperty -> String)
-> ([LambdaVolumeMountProperty] -> ShowS)
-> Show LambdaVolumeMountProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LambdaVolumeMountProperty -> ShowS
showsPrec :: Int -> LambdaVolumeMountProperty -> ShowS
$cshow :: LambdaVolumeMountProperty -> String
show :: LambdaVolumeMountProperty -> String
$cshowList :: [LambdaVolumeMountProperty] -> ShowS
showList :: [LambdaVolumeMountProperty] -> ShowS
Prelude.Show)
mkLambdaVolumeMountProperty :: LambdaVolumeMountProperty
mkLambdaVolumeMountProperty :: LambdaVolumeMountProperty
mkLambdaVolumeMountProperty
  = LambdaVolumeMountProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), addGroupOwner :: Maybe (Value Bool)
addGroupOwner = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       destinationPath :: Maybe (Value Text)
destinationPath = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, permission :: Maybe (Value Text)
permission = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       sourcePath :: Maybe (Value Text)
sourcePath = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LambdaVolumeMountProperty where
  toResourceProperties :: LambdaVolumeMountProperty -> ResourceProperties
toResourceProperties LambdaVolumeMountProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: LambdaVolumeMountProperty -> ()
addGroupOwner :: LambdaVolumeMountProperty -> Maybe (Value Bool)
destinationPath :: LambdaVolumeMountProperty -> Maybe (Value Text)
permission :: LambdaVolumeMountProperty -> Maybe (Value Text)
sourcePath :: LambdaVolumeMountProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
addGroupOwner :: Maybe (Value Bool)
destinationPath :: Maybe (Value Text)
permission :: Maybe (Value Text)
sourcePath :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::GreengrassV2::ComponentVersion.LambdaVolumeMount",
         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 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
"AddGroupOwner" (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)
addGroupOwner,
                            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
"DestinationPath" (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)
destinationPath,
                            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
"Permission" (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)
permission,
                            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
"SourcePath" (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)
sourcePath])}
instance JSON.ToJSON LambdaVolumeMountProperty where
  toJSON :: LambdaVolumeMountProperty -> Value
toJSON LambdaVolumeMountProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: LambdaVolumeMountProperty -> ()
addGroupOwner :: LambdaVolumeMountProperty -> Maybe (Value Bool)
destinationPath :: LambdaVolumeMountProperty -> Maybe (Value Text)
permission :: LambdaVolumeMountProperty -> Maybe (Value Text)
sourcePath :: LambdaVolumeMountProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
addGroupOwner :: Maybe (Value Bool)
destinationPath :: Maybe (Value Text)
permission :: Maybe (Value Text)
sourcePath :: 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 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
"AddGroupOwner" (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)
addGroupOwner,
               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
"DestinationPath" (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)
destinationPath,
               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
"Permission" (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)
permission,
               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
"SourcePath" (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)
sourcePath]))
instance Property "AddGroupOwner" LambdaVolumeMountProperty where
  type PropertyType "AddGroupOwner" LambdaVolumeMountProperty = Value Prelude.Bool
  set :: PropertyType "AddGroupOwner" LambdaVolumeMountProperty
-> LambdaVolumeMountProperty -> LambdaVolumeMountProperty
set PropertyType "AddGroupOwner" LambdaVolumeMountProperty
newValue LambdaVolumeMountProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: LambdaVolumeMountProperty -> ()
addGroupOwner :: LambdaVolumeMountProperty -> Maybe (Value Bool)
destinationPath :: LambdaVolumeMountProperty -> Maybe (Value Text)
permission :: LambdaVolumeMountProperty -> Maybe (Value Text)
sourcePath :: LambdaVolumeMountProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
addGroupOwner :: Maybe (Value Bool)
destinationPath :: Maybe (Value Text)
permission :: Maybe (Value Text)
sourcePath :: Maybe (Value Text)
..}
    = LambdaVolumeMountProperty
        {addGroupOwner :: Maybe (Value Bool)
addGroupOwner = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AddGroupOwner" LambdaVolumeMountProperty
Value Bool
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
destinationPath :: Maybe (Value Text)
permission :: Maybe (Value Text)
sourcePath :: Maybe (Value Text)
haddock_workaround_ :: ()
destinationPath :: Maybe (Value Text)
permission :: Maybe (Value Text)
sourcePath :: Maybe (Value Text)
..}
instance Property "DestinationPath" LambdaVolumeMountProperty where
  type PropertyType "DestinationPath" LambdaVolumeMountProperty = Value Prelude.Text
  set :: PropertyType "DestinationPath" LambdaVolumeMountProperty
-> LambdaVolumeMountProperty -> LambdaVolumeMountProperty
set PropertyType "DestinationPath" LambdaVolumeMountProperty
newValue LambdaVolumeMountProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: LambdaVolumeMountProperty -> ()
addGroupOwner :: LambdaVolumeMountProperty -> Maybe (Value Bool)
destinationPath :: LambdaVolumeMountProperty -> Maybe (Value Text)
permission :: LambdaVolumeMountProperty -> Maybe (Value Text)
sourcePath :: LambdaVolumeMountProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
addGroupOwner :: Maybe (Value Bool)
destinationPath :: Maybe (Value Text)
permission :: Maybe (Value Text)
sourcePath :: Maybe (Value Text)
..}
    = LambdaVolumeMountProperty
        {destinationPath :: Maybe (Value Text)
destinationPath = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DestinationPath" LambdaVolumeMountProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
addGroupOwner :: Maybe (Value Bool)
permission :: Maybe (Value Text)
sourcePath :: Maybe (Value Text)
haddock_workaround_ :: ()
addGroupOwner :: Maybe (Value Bool)
permission :: Maybe (Value Text)
sourcePath :: Maybe (Value Text)
..}
instance Property "Permission" LambdaVolumeMountProperty where
  type PropertyType "Permission" LambdaVolumeMountProperty = Value Prelude.Text
  set :: PropertyType "Permission" LambdaVolumeMountProperty
-> LambdaVolumeMountProperty -> LambdaVolumeMountProperty
set PropertyType "Permission" LambdaVolumeMountProperty
newValue LambdaVolumeMountProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: LambdaVolumeMountProperty -> ()
addGroupOwner :: LambdaVolumeMountProperty -> Maybe (Value Bool)
destinationPath :: LambdaVolumeMountProperty -> Maybe (Value Text)
permission :: LambdaVolumeMountProperty -> Maybe (Value Text)
sourcePath :: LambdaVolumeMountProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
addGroupOwner :: Maybe (Value Bool)
destinationPath :: Maybe (Value Text)
permission :: Maybe (Value Text)
sourcePath :: Maybe (Value Text)
..}
    = LambdaVolumeMountProperty
        {permission :: Maybe (Value Text)
permission = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Permission" LambdaVolumeMountProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
addGroupOwner :: Maybe (Value Bool)
destinationPath :: Maybe (Value Text)
sourcePath :: Maybe (Value Text)
haddock_workaround_ :: ()
addGroupOwner :: Maybe (Value Bool)
destinationPath :: Maybe (Value Text)
sourcePath :: Maybe (Value Text)
..}
instance Property "SourcePath" LambdaVolumeMountProperty where
  type PropertyType "SourcePath" LambdaVolumeMountProperty = Value Prelude.Text
  set :: PropertyType "SourcePath" LambdaVolumeMountProperty
-> LambdaVolumeMountProperty -> LambdaVolumeMountProperty
set PropertyType "SourcePath" LambdaVolumeMountProperty
newValue LambdaVolumeMountProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: LambdaVolumeMountProperty -> ()
addGroupOwner :: LambdaVolumeMountProperty -> Maybe (Value Bool)
destinationPath :: LambdaVolumeMountProperty -> Maybe (Value Text)
permission :: LambdaVolumeMountProperty -> Maybe (Value Text)
sourcePath :: LambdaVolumeMountProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
addGroupOwner :: Maybe (Value Bool)
destinationPath :: Maybe (Value Text)
permission :: Maybe (Value Text)
sourcePath :: Maybe (Value Text)
..}
    = LambdaVolumeMountProperty
        {sourcePath :: Maybe (Value Text)
sourcePath = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SourcePath" LambdaVolumeMountProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
addGroupOwner :: Maybe (Value Bool)
destinationPath :: Maybe (Value Text)
permission :: Maybe (Value Text)
haddock_workaround_ :: ()
addGroupOwner :: Maybe (Value Bool)
destinationPath :: Maybe (Value Text)
permission :: Maybe (Value Text)
..}