module Stratosphere.GameLift.ContainerGroupDefinition.ContainerMountPointProperty (
        ContainerMountPointProperty(..), mkContainerMountPointProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ContainerMountPointProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containergroupdefinition-containermountpoint.html>
    ContainerMountPointProperty {ContainerMountPointProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containergroupdefinition-containermountpoint.html#cfn-gamelift-containergroupdefinition-containermountpoint-accesslevel>
                                 ContainerMountPointProperty -> Maybe (Value Text)
accessLevel :: (Prelude.Maybe (Value Prelude.Text)),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containergroupdefinition-containermountpoint.html#cfn-gamelift-containergroupdefinition-containermountpoint-containerpath>
                                 ContainerMountPointProperty -> Maybe (Value Text)
containerPath :: (Prelude.Maybe (Value Prelude.Text)),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-containergroupdefinition-containermountpoint.html#cfn-gamelift-containergroupdefinition-containermountpoint-instancepath>
                                 ContainerMountPointProperty -> Value Text
instancePath :: (Value Prelude.Text)}
  deriving stock (ContainerMountPointProperty -> ContainerMountPointProperty -> Bool
(ContainerMountPointProperty
 -> ContainerMountPointProperty -> Bool)
-> (ContainerMountPointProperty
    -> ContainerMountPointProperty -> Bool)
-> Eq ContainerMountPointProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ContainerMountPointProperty -> ContainerMountPointProperty -> Bool
== :: ContainerMountPointProperty -> ContainerMountPointProperty -> Bool
$c/= :: ContainerMountPointProperty -> ContainerMountPointProperty -> Bool
/= :: ContainerMountPointProperty -> ContainerMountPointProperty -> Bool
Prelude.Eq, Int -> ContainerMountPointProperty -> ShowS
[ContainerMountPointProperty] -> ShowS
ContainerMountPointProperty -> String
(Int -> ContainerMountPointProperty -> ShowS)
-> (ContainerMountPointProperty -> String)
-> ([ContainerMountPointProperty] -> ShowS)
-> Show ContainerMountPointProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ContainerMountPointProperty -> ShowS
showsPrec :: Int -> ContainerMountPointProperty -> ShowS
$cshow :: ContainerMountPointProperty -> String
show :: ContainerMountPointProperty -> String
$cshowList :: [ContainerMountPointProperty] -> ShowS
showList :: [ContainerMountPointProperty] -> ShowS
Prelude.Show)
mkContainerMountPointProperty ::
  Value Prelude.Text -> ContainerMountPointProperty
mkContainerMountPointProperty :: Value Text -> ContainerMountPointProperty
mkContainerMountPointProperty Value Text
instancePath
  = ContainerMountPointProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), instancePath :: Value Text
instancePath = Value Text
instancePath,
       accessLevel :: Maybe (Value Text)
accessLevel = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, containerPath :: Maybe (Value Text)
containerPath = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ContainerMountPointProperty where
  toResourceProperties :: ContainerMountPointProperty -> ResourceProperties
toResourceProperties ContainerMountPointProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ContainerMountPointProperty -> ()
accessLevel :: ContainerMountPointProperty -> Maybe (Value Text)
containerPath :: ContainerMountPointProperty -> Maybe (Value Text)
instancePath :: ContainerMountPointProperty -> Value Text
haddock_workaround_ :: ()
accessLevel :: Maybe (Value Text)
containerPath :: Maybe (Value Text)
instancePath :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::GameLift::ContainerGroupDefinition.ContainerMountPoint",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"InstancePath" 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..= Value Text
instancePath]
                           ([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
"AccessLevel" (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)
accessLevel,
                               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
"ContainerPath" (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)
containerPath]))}
instance JSON.ToJSON ContainerMountPointProperty where
  toJSON :: ContainerMountPointProperty -> Value
toJSON ContainerMountPointProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ContainerMountPointProperty -> ()
accessLevel :: ContainerMountPointProperty -> Maybe (Value Text)
containerPath :: ContainerMountPointProperty -> Maybe (Value Text)
instancePath :: ContainerMountPointProperty -> Value Text
haddock_workaround_ :: ()
accessLevel :: Maybe (Value Text)
containerPath :: Maybe (Value Text)
instancePath :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"InstancePath" 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..= Value Text
instancePath]
              ([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
"AccessLevel" (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)
accessLevel,
                  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
"ContainerPath" (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)
containerPath])))
instance Property "AccessLevel" ContainerMountPointProperty where
  type PropertyType "AccessLevel" ContainerMountPointProperty = Value Prelude.Text
  set :: PropertyType "AccessLevel" ContainerMountPointProperty
-> ContainerMountPointProperty -> ContainerMountPointProperty
set PropertyType "AccessLevel" ContainerMountPointProperty
newValue ContainerMountPointProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ContainerMountPointProperty -> ()
accessLevel :: ContainerMountPointProperty -> Maybe (Value Text)
containerPath :: ContainerMountPointProperty -> Maybe (Value Text)
instancePath :: ContainerMountPointProperty -> Value Text
haddock_workaround_ :: ()
accessLevel :: Maybe (Value Text)
containerPath :: Maybe (Value Text)
instancePath :: Value Text
..}
    = ContainerMountPointProperty
        {accessLevel :: Maybe (Value Text)
accessLevel = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AccessLevel" ContainerMountPointProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
containerPath :: Maybe (Value Text)
instancePath :: Value Text
haddock_workaround_ :: ()
containerPath :: Maybe (Value Text)
instancePath :: Value Text
..}
instance Property "ContainerPath" ContainerMountPointProperty where
  type PropertyType "ContainerPath" ContainerMountPointProperty = Value Prelude.Text
  set :: PropertyType "ContainerPath" ContainerMountPointProperty
-> ContainerMountPointProperty -> ContainerMountPointProperty
set PropertyType "ContainerPath" ContainerMountPointProperty
newValue ContainerMountPointProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ContainerMountPointProperty -> ()
accessLevel :: ContainerMountPointProperty -> Maybe (Value Text)
containerPath :: ContainerMountPointProperty -> Maybe (Value Text)
instancePath :: ContainerMountPointProperty -> Value Text
haddock_workaround_ :: ()
accessLevel :: Maybe (Value Text)
containerPath :: Maybe (Value Text)
instancePath :: Value Text
..}
    = ContainerMountPointProperty
        {containerPath :: Maybe (Value Text)
containerPath = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ContainerPath" ContainerMountPointProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
accessLevel :: Maybe (Value Text)
instancePath :: Value Text
haddock_workaround_ :: ()
accessLevel :: Maybe (Value Text)
instancePath :: Value Text
..}
instance Property "InstancePath" ContainerMountPointProperty where
  type PropertyType "InstancePath" ContainerMountPointProperty = Value Prelude.Text
  set :: PropertyType "InstancePath" ContainerMountPointProperty
-> ContainerMountPointProperty -> ContainerMountPointProperty
set PropertyType "InstancePath" ContainerMountPointProperty
newValue ContainerMountPointProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ContainerMountPointProperty -> ()
accessLevel :: ContainerMountPointProperty -> Maybe (Value Text)
containerPath :: ContainerMountPointProperty -> Maybe (Value Text)
instancePath :: ContainerMountPointProperty -> Value Text
haddock_workaround_ :: ()
accessLevel :: Maybe (Value Text)
containerPath :: Maybe (Value Text)
instancePath :: Value Text
..}
    = ContainerMountPointProperty {instancePath :: Value Text
instancePath = PropertyType "InstancePath" ContainerMountPointProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
accessLevel :: Maybe (Value Text)
containerPath :: Maybe (Value Text)
haddock_workaround_ :: ()
accessLevel :: Maybe (Value Text)
containerPath :: Maybe (Value Text)
..}