module Stratosphere.VerifiedPermissions.PolicyStore.DeletionProtectionProperty (
DeletionProtectionProperty(..), mkDeletionProtectionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DeletionProtectionProperty
=
DeletionProtectionProperty {DeletionProtectionProperty -> ()
haddock_workaround_ :: (),
DeletionProtectionProperty -> Value Text
mode :: (Value Prelude.Text)}
deriving stock (DeletionProtectionProperty -> DeletionProtectionProperty -> Bool
(DeletionProtectionProperty -> DeletionProtectionProperty -> Bool)
-> (DeletionProtectionProperty
-> DeletionProtectionProperty -> Bool)
-> Eq DeletionProtectionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DeletionProtectionProperty -> DeletionProtectionProperty -> Bool
== :: DeletionProtectionProperty -> DeletionProtectionProperty -> Bool
$c/= :: DeletionProtectionProperty -> DeletionProtectionProperty -> Bool
/= :: DeletionProtectionProperty -> DeletionProtectionProperty -> Bool
Prelude.Eq, Int -> DeletionProtectionProperty -> ShowS
[DeletionProtectionProperty] -> ShowS
DeletionProtectionProperty -> String
(Int -> DeletionProtectionProperty -> ShowS)
-> (DeletionProtectionProperty -> String)
-> ([DeletionProtectionProperty] -> ShowS)
-> Show DeletionProtectionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DeletionProtectionProperty -> ShowS
showsPrec :: Int -> DeletionProtectionProperty -> ShowS
$cshow :: DeletionProtectionProperty -> String
show :: DeletionProtectionProperty -> String
$cshowList :: [DeletionProtectionProperty] -> ShowS
showList :: [DeletionProtectionProperty] -> ShowS
Prelude.Show)
mkDeletionProtectionProperty ::
Value Prelude.Text -> DeletionProtectionProperty
mkDeletionProtectionProperty :: Value Text -> DeletionProtectionProperty
mkDeletionProtectionProperty Value Text
mode
= DeletionProtectionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), mode :: Value Text
mode = Value Text
mode}
instance ToResourceProperties DeletionProtectionProperty where
toResourceProperties :: DeletionProtectionProperty -> ResourceProperties
toResourceProperties DeletionProtectionProperty {()
Value Text
haddock_workaround_ :: DeletionProtectionProperty -> ()
mode :: DeletionProtectionProperty -> Value Text
haddock_workaround_ :: ()
mode :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::VerifiedPermissions::PolicyStore.DeletionProtection",
supportsTags :: Bool
supportsTags = Bool
Prelude.False, properties :: Object
properties = [Key
"Mode" 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
mode]}
instance JSON.ToJSON DeletionProtectionProperty where
toJSON :: DeletionProtectionProperty -> Value
toJSON DeletionProtectionProperty {()
Value Text
haddock_workaround_ :: DeletionProtectionProperty -> ()
mode :: DeletionProtectionProperty -> Value Text
haddock_workaround_ :: ()
mode :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"Mode" 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
mode]
instance Property "Mode" DeletionProtectionProperty where
type PropertyType "Mode" DeletionProtectionProperty = Value Prelude.Text
set :: PropertyType "Mode" DeletionProtectionProperty
-> DeletionProtectionProperty -> DeletionProtectionProperty
set PropertyType "Mode" DeletionProtectionProperty
newValue DeletionProtectionProperty {()
Value Text
haddock_workaround_ :: DeletionProtectionProperty -> ()
mode :: DeletionProtectionProperty -> Value Text
haddock_workaround_ :: ()
mode :: Value Text
..}
= DeletionProtectionProperty {mode :: Value Text
mode = PropertyType "Mode" DeletionProtectionProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}