module Stratosphere.EFS.MountTarget (
        MountTarget(..), mkMountTarget
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MountTarget
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html>
    MountTarget {MountTarget -> ()
haddock_workaround_ :: (),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html#cfn-efs-mounttarget-filesystemid>
                 MountTarget -> Value Text
fileSystemId :: (Value Prelude.Text),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html#cfn-efs-mounttarget-ipaddress>
                 MountTarget -> Maybe (Value Text)
ipAddress :: (Prelude.Maybe (Value Prelude.Text)),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html#cfn-efs-mounttarget-ipaddresstype>
                 MountTarget -> Maybe (Value Text)
ipAddressType :: (Prelude.Maybe (Value Prelude.Text)),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html#cfn-efs-mounttarget-ipv6address>
                 MountTarget -> Maybe (Value Text)
ipv6Address :: (Prelude.Maybe (Value Prelude.Text)),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html#cfn-efs-mounttarget-securitygroups>
                 MountTarget -> ValueList Text
securityGroups :: (ValueList Prelude.Text),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html#cfn-efs-mounttarget-subnetid>
                 MountTarget -> Value Text
subnetId :: (Value Prelude.Text)}
  deriving stock (MountTarget -> MountTarget -> Bool
(MountTarget -> MountTarget -> Bool)
-> (MountTarget -> MountTarget -> Bool) -> Eq MountTarget
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MountTarget -> MountTarget -> Bool
== :: MountTarget -> MountTarget -> Bool
$c/= :: MountTarget -> MountTarget -> Bool
/= :: MountTarget -> MountTarget -> Bool
Prelude.Eq, Int -> MountTarget -> ShowS
[MountTarget] -> ShowS
MountTarget -> String
(Int -> MountTarget -> ShowS)
-> (MountTarget -> String)
-> ([MountTarget] -> ShowS)
-> Show MountTarget
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MountTarget -> ShowS
showsPrec :: Int -> MountTarget -> ShowS
$cshow :: MountTarget -> String
show :: MountTarget -> String
$cshowList :: [MountTarget] -> ShowS
showList :: [MountTarget] -> ShowS
Prelude.Show)
mkMountTarget ::
  Value Prelude.Text
  -> ValueList Prelude.Text -> Value Prelude.Text -> MountTarget
mkMountTarget :: Value Text -> ValueList Text -> Value Text -> MountTarget
mkMountTarget Value Text
fileSystemId ValueList Text
securityGroups Value Text
subnetId
  = MountTarget
      {haddock_workaround_ :: ()
haddock_workaround_ = (), fileSystemId :: Value Text
fileSystemId = Value Text
fileSystemId,
       securityGroups :: ValueList Text
securityGroups = ValueList Text
securityGroups, subnetId :: Value Text
subnetId = Value Text
subnetId,
       ipAddress :: Maybe (Value Text)
ipAddress = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, ipAddressType :: Maybe (Value Text)
ipAddressType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       ipv6Address :: Maybe (Value Text)
ipv6Address = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MountTarget where
  toResourceProperties :: MountTarget -> ResourceProperties
toResourceProperties MountTarget {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: MountTarget -> ()
fileSystemId :: MountTarget -> Value Text
ipAddress :: MountTarget -> Maybe (Value Text)
ipAddressType :: MountTarget -> Maybe (Value Text)
ipv6Address :: MountTarget -> Maybe (Value Text)
securityGroups :: MountTarget -> ValueList Text
subnetId :: MountTarget -> Value Text
haddock_workaround_ :: ()
fileSystemId :: Value Text
ipAddress :: Maybe (Value Text)
ipAddressType :: Maybe (Value Text)
ipv6Address :: Maybe (Value Text)
securityGroups :: ValueList Text
subnetId :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EFS::MountTarget", 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
"FileSystemId" 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
fileSystemId,
                            Key
"SecurityGroups" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
securityGroups,
                            Key
"SubnetId" 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
subnetId]
                           ([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
"IpAddress" (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)
ipAddress,
                               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
"IpAddressType" (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)
ipAddressType,
                               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
"Ipv6Address" (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)
ipv6Address]))}
instance JSON.ToJSON MountTarget where
  toJSON :: MountTarget -> Value
toJSON MountTarget {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: MountTarget -> ()
fileSystemId :: MountTarget -> Value Text
ipAddress :: MountTarget -> Maybe (Value Text)
ipAddressType :: MountTarget -> Maybe (Value Text)
ipv6Address :: MountTarget -> Maybe (Value Text)
securityGroups :: MountTarget -> ValueList Text
subnetId :: MountTarget -> Value Text
haddock_workaround_ :: ()
fileSystemId :: Value Text
ipAddress :: Maybe (Value Text)
ipAddressType :: Maybe (Value Text)
ipv6Address :: Maybe (Value Text)
securityGroups :: ValueList Text
subnetId :: 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
"FileSystemId" 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
fileSystemId,
               Key
"SecurityGroups" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
securityGroups,
               Key
"SubnetId" 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
subnetId]
              ([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
"IpAddress" (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)
ipAddress,
                  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
"IpAddressType" (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)
ipAddressType,
                  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
"Ipv6Address" (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)
ipv6Address])))
instance Property "FileSystemId" MountTarget where
  type PropertyType "FileSystemId" MountTarget = Value Prelude.Text
  set :: PropertyType "FileSystemId" MountTarget
-> MountTarget -> MountTarget
set PropertyType "FileSystemId" MountTarget
newValue MountTarget {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: MountTarget -> ()
fileSystemId :: MountTarget -> Value Text
ipAddress :: MountTarget -> Maybe (Value Text)
ipAddressType :: MountTarget -> Maybe (Value Text)
ipv6Address :: MountTarget -> Maybe (Value Text)
securityGroups :: MountTarget -> ValueList Text
subnetId :: MountTarget -> Value Text
haddock_workaround_ :: ()
fileSystemId :: Value Text
ipAddress :: Maybe (Value Text)
ipAddressType :: Maybe (Value Text)
ipv6Address :: Maybe (Value Text)
securityGroups :: ValueList Text
subnetId :: Value Text
..}
    = MountTarget {fileSystemId :: Value Text
fileSystemId = PropertyType "FileSystemId" MountTarget
Value Text
newValue, Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
ipAddress :: Maybe (Value Text)
ipAddressType :: Maybe (Value Text)
ipv6Address :: Maybe (Value Text)
securityGroups :: ValueList Text
subnetId :: Value Text
haddock_workaround_ :: ()
ipAddress :: Maybe (Value Text)
ipAddressType :: Maybe (Value Text)
ipv6Address :: Maybe (Value Text)
securityGroups :: ValueList Text
subnetId :: Value Text
..}
instance Property "IpAddress" MountTarget where
  type PropertyType "IpAddress" MountTarget = Value Prelude.Text
  set :: PropertyType "IpAddress" MountTarget -> MountTarget -> MountTarget
set PropertyType "IpAddress" MountTarget
newValue MountTarget {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: MountTarget -> ()
fileSystemId :: MountTarget -> Value Text
ipAddress :: MountTarget -> Maybe (Value Text)
ipAddressType :: MountTarget -> Maybe (Value Text)
ipv6Address :: MountTarget -> Maybe (Value Text)
securityGroups :: MountTarget -> ValueList Text
subnetId :: MountTarget -> Value Text
haddock_workaround_ :: ()
fileSystemId :: Value Text
ipAddress :: Maybe (Value Text)
ipAddressType :: Maybe (Value Text)
ipv6Address :: Maybe (Value Text)
securityGroups :: ValueList Text
subnetId :: Value Text
..}
    = MountTarget {ipAddress :: Maybe (Value Text)
ipAddress = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IpAddress" MountTarget
Value Text
newValue, Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
fileSystemId :: Value Text
ipAddressType :: Maybe (Value Text)
ipv6Address :: Maybe (Value Text)
securityGroups :: ValueList Text
subnetId :: Value Text
haddock_workaround_ :: ()
fileSystemId :: Value Text
ipAddressType :: Maybe (Value Text)
ipv6Address :: Maybe (Value Text)
securityGroups :: ValueList Text
subnetId :: Value Text
..}
instance Property "IpAddressType" MountTarget where
  type PropertyType "IpAddressType" MountTarget = Value Prelude.Text
  set :: PropertyType "IpAddressType" MountTarget
-> MountTarget -> MountTarget
set PropertyType "IpAddressType" MountTarget
newValue MountTarget {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: MountTarget -> ()
fileSystemId :: MountTarget -> Value Text
ipAddress :: MountTarget -> Maybe (Value Text)
ipAddressType :: MountTarget -> Maybe (Value Text)
ipv6Address :: MountTarget -> Maybe (Value Text)
securityGroups :: MountTarget -> ValueList Text
subnetId :: MountTarget -> Value Text
haddock_workaround_ :: ()
fileSystemId :: Value Text
ipAddress :: Maybe (Value Text)
ipAddressType :: Maybe (Value Text)
ipv6Address :: Maybe (Value Text)
securityGroups :: ValueList Text
subnetId :: Value Text
..}
    = MountTarget {ipAddressType :: Maybe (Value Text)
ipAddressType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IpAddressType" MountTarget
Value Text
newValue, Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
fileSystemId :: Value Text
ipAddress :: Maybe (Value Text)
ipv6Address :: Maybe (Value Text)
securityGroups :: ValueList Text
subnetId :: Value Text
haddock_workaround_ :: ()
fileSystemId :: Value Text
ipAddress :: Maybe (Value Text)
ipv6Address :: Maybe (Value Text)
securityGroups :: ValueList Text
subnetId :: Value Text
..}
instance Property "Ipv6Address" MountTarget where
  type PropertyType "Ipv6Address" MountTarget = Value Prelude.Text
  set :: PropertyType "Ipv6Address" MountTarget
-> MountTarget -> MountTarget
set PropertyType "Ipv6Address" MountTarget
newValue MountTarget {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: MountTarget -> ()
fileSystemId :: MountTarget -> Value Text
ipAddress :: MountTarget -> Maybe (Value Text)
ipAddressType :: MountTarget -> Maybe (Value Text)
ipv6Address :: MountTarget -> Maybe (Value Text)
securityGroups :: MountTarget -> ValueList Text
subnetId :: MountTarget -> Value Text
haddock_workaround_ :: ()
fileSystemId :: Value Text
ipAddress :: Maybe (Value Text)
ipAddressType :: Maybe (Value Text)
ipv6Address :: Maybe (Value Text)
securityGroups :: ValueList Text
subnetId :: Value Text
..}
    = MountTarget {ipv6Address :: Maybe (Value Text)
ipv6Address = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Ipv6Address" MountTarget
Value Text
newValue, Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
fileSystemId :: Value Text
ipAddress :: Maybe (Value Text)
ipAddressType :: Maybe (Value Text)
securityGroups :: ValueList Text
subnetId :: Value Text
haddock_workaround_ :: ()
fileSystemId :: Value Text
ipAddress :: Maybe (Value Text)
ipAddressType :: Maybe (Value Text)
securityGroups :: ValueList Text
subnetId :: Value Text
..}
instance Property "SecurityGroups" MountTarget where
  type PropertyType "SecurityGroups" MountTarget = ValueList Prelude.Text
  set :: PropertyType "SecurityGroups" MountTarget
-> MountTarget -> MountTarget
set PropertyType "SecurityGroups" MountTarget
newValue MountTarget {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: MountTarget -> ()
fileSystemId :: MountTarget -> Value Text
ipAddress :: MountTarget -> Maybe (Value Text)
ipAddressType :: MountTarget -> Maybe (Value Text)
ipv6Address :: MountTarget -> Maybe (Value Text)
securityGroups :: MountTarget -> ValueList Text
subnetId :: MountTarget -> Value Text
haddock_workaround_ :: ()
fileSystemId :: Value Text
ipAddress :: Maybe (Value Text)
ipAddressType :: Maybe (Value Text)
ipv6Address :: Maybe (Value Text)
securityGroups :: ValueList Text
subnetId :: Value Text
..}
    = MountTarget {securityGroups :: ValueList Text
securityGroups = PropertyType "SecurityGroups" MountTarget
ValueList Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
fileSystemId :: Value Text
ipAddress :: Maybe (Value Text)
ipAddressType :: Maybe (Value Text)
ipv6Address :: Maybe (Value Text)
subnetId :: Value Text
haddock_workaround_ :: ()
fileSystemId :: Value Text
ipAddress :: Maybe (Value Text)
ipAddressType :: Maybe (Value Text)
ipv6Address :: Maybe (Value Text)
subnetId :: Value Text
..}
instance Property "SubnetId" MountTarget where
  type PropertyType "SubnetId" MountTarget = Value Prelude.Text
  set :: PropertyType "SubnetId" MountTarget -> MountTarget -> MountTarget
set PropertyType "SubnetId" MountTarget
newValue MountTarget {Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: MountTarget -> ()
fileSystemId :: MountTarget -> Value Text
ipAddress :: MountTarget -> Maybe (Value Text)
ipAddressType :: MountTarget -> Maybe (Value Text)
ipv6Address :: MountTarget -> Maybe (Value Text)
securityGroups :: MountTarget -> ValueList Text
subnetId :: MountTarget -> Value Text
haddock_workaround_ :: ()
fileSystemId :: Value Text
ipAddress :: Maybe (Value Text)
ipAddressType :: Maybe (Value Text)
ipv6Address :: Maybe (Value Text)
securityGroups :: ValueList Text
subnetId :: Value Text
..}
    = MountTarget {subnetId :: Value Text
subnetId = PropertyType "SubnetId" MountTarget
Value Text
newValue, Maybe (Value Text)
()
ValueList Text
Value Text
haddock_workaround_ :: ()
fileSystemId :: Value Text
ipAddress :: Maybe (Value Text)
ipAddressType :: Maybe (Value Text)
ipv6Address :: Maybe (Value Text)
securityGroups :: ValueList Text
haddock_workaround_ :: ()
fileSystemId :: Value Text
ipAddress :: Maybe (Value Text)
ipAddressType :: Maybe (Value Text)
ipv6Address :: Maybe (Value Text)
securityGroups :: ValueList Text
..}