stratosphere-efs-1.0.0: gen/Stratosphere/EFS/FileSystem/FileSystemProtectionProperty.hs
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
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-efs-filesystem-filesystemprotection.html>
FileSystemProtectionProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-efs-filesystem-filesystemprotection.html#cfn-efs-filesystem-filesystemprotection-replicationoverwriteprotection>
replicationOverwriteProtection :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (Prelude.Eq, Prelude.Show)
mkFileSystemProtectionProperty :: FileSystemProtectionProperty
mkFileSystemProtectionProperty
= FileSystemProtectionProperty
{haddock_workaround_ = (),
replicationOverwriteProtection = Prelude.Nothing}
instance ToResourceProperties FileSystemProtectionProperty where
toResourceProperties FileSystemProtectionProperty {..}
= ResourceProperties
{awsType = "AWS::EFS::FileSystem.FileSystemProtection",
supportsTags = Prelude.False,
properties = Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "ReplicationOverwriteProtection"
Prelude.<$> replicationOverwriteProtection])}
instance JSON.ToJSON FileSystemProtectionProperty where
toJSON FileSystemProtectionProperty {..}
= JSON.object
(Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "ReplicationOverwriteProtection"
Prelude.<$> replicationOverwriteProtection]))
instance Property "ReplicationOverwriteProtection" FileSystemProtectionProperty where
type PropertyType "ReplicationOverwriteProtection" FileSystemProtectionProperty = Value Prelude.Text
set newValue FileSystemProtectionProperty {..}
= FileSystemProtectionProperty
{replicationOverwriteProtection = Prelude.pure newValue, ..}