module Stratosphere.EFS.FileSystem.FileSystemProtectionProperty (
FileSystemProtectionProperty(..), mkFileSystemProtectionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FileSystemProtectionProperty
=
FileSystemProtectionProperty {FileSystemProtectionProperty -> ()
haddock_workaround_ :: (),
FileSystemProtectionProperty -> Maybe (Value Text)
replicationOverwriteProtection :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (FileSystemProtectionProperty
-> FileSystemProtectionProperty -> Bool
(FileSystemProtectionProperty
-> FileSystemProtectionProperty -> Bool)
-> (FileSystemProtectionProperty
-> FileSystemProtectionProperty -> Bool)
-> Eq FileSystemProtectionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FileSystemProtectionProperty
-> FileSystemProtectionProperty -> Bool
== :: FileSystemProtectionProperty
-> FileSystemProtectionProperty -> Bool
$c/= :: FileSystemProtectionProperty
-> FileSystemProtectionProperty -> Bool
/= :: FileSystemProtectionProperty
-> FileSystemProtectionProperty -> Bool
Prelude.Eq, Int -> FileSystemProtectionProperty -> ShowS
[FileSystemProtectionProperty] -> ShowS
FileSystemProtectionProperty -> String
(Int -> FileSystemProtectionProperty -> ShowS)
-> (FileSystemProtectionProperty -> String)
-> ([FileSystemProtectionProperty] -> ShowS)
-> Show FileSystemProtectionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FileSystemProtectionProperty -> ShowS
showsPrec :: Int -> FileSystemProtectionProperty -> ShowS
$cshow :: FileSystemProtectionProperty -> String
show :: FileSystemProtectionProperty -> String
$cshowList :: [FileSystemProtectionProperty] -> ShowS
showList :: [FileSystemProtectionProperty] -> ShowS
Prelude.Show)
mkFileSystemProtectionProperty :: FileSystemProtectionProperty
mkFileSystemProtectionProperty :: FileSystemProtectionProperty
mkFileSystemProtectionProperty
= FileSystemProtectionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
replicationOverwriteProtection :: Maybe (Value Text)
replicationOverwriteProtection = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FileSystemProtectionProperty where
toResourceProperties :: FileSystemProtectionProperty -> ResourceProperties
toResourceProperties FileSystemProtectionProperty {Maybe (Value Text)
()
haddock_workaround_ :: FileSystemProtectionProperty -> ()
replicationOverwriteProtection :: FileSystemProtectionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
replicationOverwriteProtection :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::EFS::FileSystem.FileSystemProtection",
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 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
"ReplicationOverwriteProtection"
(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)
replicationOverwriteProtection])}
instance JSON.ToJSON FileSystemProtectionProperty where
toJSON :: FileSystemProtectionProperty -> Value
toJSON FileSystemProtectionProperty {Maybe (Value Text)
()
haddock_workaround_ :: FileSystemProtectionProperty -> ()
replicationOverwriteProtection :: FileSystemProtectionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
replicationOverwriteProtection :: 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 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
"ReplicationOverwriteProtection"
(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)
replicationOverwriteProtection]))
instance Property "ReplicationOverwriteProtection" FileSystemProtectionProperty where
type PropertyType "ReplicationOverwriteProtection" FileSystemProtectionProperty = Value Prelude.Text
set :: PropertyType
"ReplicationOverwriteProtection" FileSystemProtectionProperty
-> FileSystemProtectionProperty -> FileSystemProtectionProperty
set PropertyType
"ReplicationOverwriteProtection" FileSystemProtectionProperty
newValue FileSystemProtectionProperty {Maybe (Value Text)
()
haddock_workaround_ :: FileSystemProtectionProperty -> ()
replicationOverwriteProtection :: FileSystemProtectionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
replicationOverwriteProtection :: Maybe (Value Text)
..}
= FileSystemProtectionProperty
{replicationOverwriteProtection :: Maybe (Value Text)
replicationOverwriteProtection = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ReplicationOverwriteProtection" FileSystemProtectionProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}