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