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