module Stratosphere.DataSync.LocationFSxLustre (
        LocationFSxLustre(..), mkLocationFSxLustre
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data LocationFSxLustre
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationfsxlustre.html>
    LocationFSxLustre {LocationFSxLustre -> ()
haddock_workaround_ :: (),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationfsxlustre.html#cfn-datasync-locationfsxlustre-fsxfilesystemarn>
                       LocationFSxLustre -> Maybe (Value Text)
fsxFilesystemArn :: (Prelude.Maybe (Value Prelude.Text)),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationfsxlustre.html#cfn-datasync-locationfsxlustre-securitygrouparns>
                       LocationFSxLustre -> ValueList Text
securityGroupArns :: (ValueList Prelude.Text),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationfsxlustre.html#cfn-datasync-locationfsxlustre-subdirectory>
                       LocationFSxLustre -> Maybe (Value Text)
subdirectory :: (Prelude.Maybe (Value Prelude.Text)),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationfsxlustre.html#cfn-datasync-locationfsxlustre-tags>
                       LocationFSxLustre -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
  deriving stock (LocationFSxLustre -> LocationFSxLustre -> Bool
(LocationFSxLustre -> LocationFSxLustre -> Bool)
-> (LocationFSxLustre -> LocationFSxLustre -> Bool)
-> Eq LocationFSxLustre
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LocationFSxLustre -> LocationFSxLustre -> Bool
== :: LocationFSxLustre -> LocationFSxLustre -> Bool
$c/= :: LocationFSxLustre -> LocationFSxLustre -> Bool
/= :: LocationFSxLustre -> LocationFSxLustre -> Bool
Prelude.Eq, Int -> LocationFSxLustre -> ShowS
[LocationFSxLustre] -> ShowS
LocationFSxLustre -> String
(Int -> LocationFSxLustre -> ShowS)
-> (LocationFSxLustre -> String)
-> ([LocationFSxLustre] -> ShowS)
-> Show LocationFSxLustre
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LocationFSxLustre -> ShowS
showsPrec :: Int -> LocationFSxLustre -> ShowS
$cshow :: LocationFSxLustre -> String
show :: LocationFSxLustre -> String
$cshowList :: [LocationFSxLustre] -> ShowS
showList :: [LocationFSxLustre] -> ShowS
Prelude.Show)
mkLocationFSxLustre :: ValueList Prelude.Text -> LocationFSxLustre
mkLocationFSxLustre :: ValueList Text -> LocationFSxLustre
mkLocationFSxLustre ValueList Text
securityGroupArns
  = LocationFSxLustre
      {haddock_workaround_ :: ()
haddock_workaround_ = (), securityGroupArns :: ValueList Text
securityGroupArns = ValueList Text
securityGroupArns,
       fsxFilesystemArn :: Maybe (Value Text)
fsxFilesystemArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, subdirectory :: Maybe (Value Text)
subdirectory = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LocationFSxLustre where
  toResourceProperties :: LocationFSxLustre -> ResourceProperties
toResourceProperties LocationFSxLustre {Maybe [Tag]
Maybe (Value Text)
()
ValueList Text
haddock_workaround_ :: LocationFSxLustre -> ()
fsxFilesystemArn :: LocationFSxLustre -> Maybe (Value Text)
securityGroupArns :: LocationFSxLustre -> ValueList Text
subdirectory :: LocationFSxLustre -> Maybe (Value Text)
tags :: LocationFSxLustre -> Maybe [Tag]
haddock_workaround_ :: ()
fsxFilesystemArn :: Maybe (Value Text)
securityGroupArns :: ValueList Text
subdirectory :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::DataSync::LocationFSxLustre",
         supportsTags :: Bool
supportsTags = Bool
Prelude.True,
         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
"SecurityGroupArns" 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
securityGroupArns]
                           ([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
"FsxFilesystemArn" (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)
fsxFilesystemArn,
                               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
"Subdirectory" (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)
subdirectory,
                               Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON LocationFSxLustre where
  toJSON :: LocationFSxLustre -> Value
toJSON LocationFSxLustre {Maybe [Tag]
Maybe (Value Text)
()
ValueList Text
haddock_workaround_ :: LocationFSxLustre -> ()
fsxFilesystemArn :: LocationFSxLustre -> Maybe (Value Text)
securityGroupArns :: LocationFSxLustre -> ValueList Text
subdirectory :: LocationFSxLustre -> Maybe (Value Text)
tags :: LocationFSxLustre -> Maybe [Tag]
haddock_workaround_ :: ()
fsxFilesystemArn :: Maybe (Value Text)
securityGroupArns :: ValueList Text
subdirectory :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = [(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
"SecurityGroupArns" 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
securityGroupArns]
              ([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
"FsxFilesystemArn" (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)
fsxFilesystemArn,
                  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
"Subdirectory" (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)
subdirectory,
                  Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "FsxFilesystemArn" LocationFSxLustre where
  type PropertyType "FsxFilesystemArn" LocationFSxLustre = Value Prelude.Text
  set :: PropertyType "FsxFilesystemArn" LocationFSxLustre
-> LocationFSxLustre -> LocationFSxLustre
set PropertyType "FsxFilesystemArn" LocationFSxLustre
newValue LocationFSxLustre {Maybe [Tag]
Maybe (Value Text)
()
ValueList Text
haddock_workaround_ :: LocationFSxLustre -> ()
fsxFilesystemArn :: LocationFSxLustre -> Maybe (Value Text)
securityGroupArns :: LocationFSxLustre -> ValueList Text
subdirectory :: LocationFSxLustre -> Maybe (Value Text)
tags :: LocationFSxLustre -> Maybe [Tag]
haddock_workaround_ :: ()
fsxFilesystemArn :: Maybe (Value Text)
securityGroupArns :: ValueList Text
subdirectory :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = LocationFSxLustre {fsxFilesystemArn :: Maybe (Value Text)
fsxFilesystemArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "FsxFilesystemArn" LocationFSxLustre
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
ValueList Text
haddock_workaround_ :: ()
securityGroupArns :: ValueList Text
subdirectory :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
securityGroupArns :: ValueList Text
subdirectory :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "SecurityGroupArns" LocationFSxLustre where
  type PropertyType "SecurityGroupArns" LocationFSxLustre = ValueList Prelude.Text
  set :: PropertyType "SecurityGroupArns" LocationFSxLustre
-> LocationFSxLustre -> LocationFSxLustre
set PropertyType "SecurityGroupArns" LocationFSxLustre
newValue LocationFSxLustre {Maybe [Tag]
Maybe (Value Text)
()
ValueList Text
haddock_workaround_ :: LocationFSxLustre -> ()
fsxFilesystemArn :: LocationFSxLustre -> Maybe (Value Text)
securityGroupArns :: LocationFSxLustre -> ValueList Text
subdirectory :: LocationFSxLustre -> Maybe (Value Text)
tags :: LocationFSxLustre -> Maybe [Tag]
haddock_workaround_ :: ()
fsxFilesystemArn :: Maybe (Value Text)
securityGroupArns :: ValueList Text
subdirectory :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = LocationFSxLustre {securityGroupArns :: ValueList Text
securityGroupArns = PropertyType "SecurityGroupArns" LocationFSxLustre
ValueList Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ()
fsxFilesystemArn :: Maybe (Value Text)
subdirectory :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
fsxFilesystemArn :: Maybe (Value Text)
subdirectory :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Subdirectory" LocationFSxLustre where
  type PropertyType "Subdirectory" LocationFSxLustre = Value Prelude.Text
  set :: PropertyType "Subdirectory" LocationFSxLustre
-> LocationFSxLustre -> LocationFSxLustre
set PropertyType "Subdirectory" LocationFSxLustre
newValue LocationFSxLustre {Maybe [Tag]
Maybe (Value Text)
()
ValueList Text
haddock_workaround_ :: LocationFSxLustre -> ()
fsxFilesystemArn :: LocationFSxLustre -> Maybe (Value Text)
securityGroupArns :: LocationFSxLustre -> ValueList Text
subdirectory :: LocationFSxLustre -> Maybe (Value Text)
tags :: LocationFSxLustre -> Maybe [Tag]
haddock_workaround_ :: ()
fsxFilesystemArn :: Maybe (Value Text)
securityGroupArns :: ValueList Text
subdirectory :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = LocationFSxLustre {subdirectory :: Maybe (Value Text)
subdirectory = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Subdirectory" LocationFSxLustre
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
ValueList Text
haddock_workaround_ :: ()
fsxFilesystemArn :: Maybe (Value Text)
securityGroupArns :: ValueList Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
fsxFilesystemArn :: Maybe (Value Text)
securityGroupArns :: ValueList Text
tags :: Maybe [Tag]
..}
instance Property "Tags" LocationFSxLustre where
  type PropertyType "Tags" LocationFSxLustre = [Tag]
  set :: PropertyType "Tags" LocationFSxLustre
-> LocationFSxLustre -> LocationFSxLustre
set PropertyType "Tags" LocationFSxLustre
newValue LocationFSxLustre {Maybe [Tag]
Maybe (Value Text)
()
ValueList Text
haddock_workaround_ :: LocationFSxLustre -> ()
fsxFilesystemArn :: LocationFSxLustre -> Maybe (Value Text)
securityGroupArns :: LocationFSxLustre -> ValueList Text
subdirectory :: LocationFSxLustre -> Maybe (Value Text)
tags :: LocationFSxLustre -> Maybe [Tag]
haddock_workaround_ :: ()
fsxFilesystemArn :: Maybe (Value Text)
securityGroupArns :: ValueList Text
subdirectory :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = LocationFSxLustre {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" LocationFSxLustre
newValue, Maybe (Value Text)
()
ValueList Text
haddock_workaround_ :: ()
fsxFilesystemArn :: Maybe (Value Text)
securityGroupArns :: ValueList Text
subdirectory :: Maybe (Value Text)
haddock_workaround_ :: ()
fsxFilesystemArn :: Maybe (Value Text)
securityGroupArns :: ValueList Text
subdirectory :: Maybe (Value Text)
..}