{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.DLM.Types.CrossRegionCopyRule where
import qualified Amazonka.Core as Core
import Amazonka.DLM.Types.CrossRegionCopyDeprecateRule
import Amazonka.DLM.Types.CrossRegionCopyRetainRule
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data CrossRegionCopyRule = CrossRegionCopyRule'
{
CrossRegionCopyRule -> Maybe CrossRegionCopyDeprecateRule
deprecateRule :: Prelude.Maybe CrossRegionCopyDeprecateRule,
CrossRegionCopyRule -> Maybe Text
targetRegion :: Prelude.Maybe Prelude.Text,
CrossRegionCopyRule -> Maybe Bool
copyTags :: Prelude.Maybe Prelude.Bool,
CrossRegionCopyRule -> Maybe Text
cmkArn :: Prelude.Maybe Prelude.Text,
CrossRegionCopyRule -> Maybe CrossRegionCopyRetainRule
retainRule :: Prelude.Maybe CrossRegionCopyRetainRule,
CrossRegionCopyRule -> Maybe Text
target :: Prelude.Maybe Prelude.Text,
CrossRegionCopyRule -> Bool
encrypted :: Prelude.Bool
}
deriving (CrossRegionCopyRule -> CrossRegionCopyRule -> Bool
(CrossRegionCopyRule -> CrossRegionCopyRule -> Bool)
-> (CrossRegionCopyRule -> CrossRegionCopyRule -> Bool)
-> Eq CrossRegionCopyRule
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CrossRegionCopyRule -> CrossRegionCopyRule -> Bool
$c/= :: CrossRegionCopyRule -> CrossRegionCopyRule -> Bool
== :: CrossRegionCopyRule -> CrossRegionCopyRule -> Bool
$c== :: CrossRegionCopyRule -> CrossRegionCopyRule -> Bool
Prelude.Eq, ReadPrec [CrossRegionCopyRule]
ReadPrec CrossRegionCopyRule
Int -> ReadS CrossRegionCopyRule
ReadS [CrossRegionCopyRule]
(Int -> ReadS CrossRegionCopyRule)
-> ReadS [CrossRegionCopyRule]
-> ReadPrec CrossRegionCopyRule
-> ReadPrec [CrossRegionCopyRule]
-> Read CrossRegionCopyRule
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CrossRegionCopyRule]
$creadListPrec :: ReadPrec [CrossRegionCopyRule]
readPrec :: ReadPrec CrossRegionCopyRule
$creadPrec :: ReadPrec CrossRegionCopyRule
readList :: ReadS [CrossRegionCopyRule]
$creadList :: ReadS [CrossRegionCopyRule]
readsPrec :: Int -> ReadS CrossRegionCopyRule
$creadsPrec :: Int -> ReadS CrossRegionCopyRule
Prelude.Read, Int -> CrossRegionCopyRule -> ShowS
[CrossRegionCopyRule] -> ShowS
CrossRegionCopyRule -> String
(Int -> CrossRegionCopyRule -> ShowS)
-> (CrossRegionCopyRule -> String)
-> ([CrossRegionCopyRule] -> ShowS)
-> Show CrossRegionCopyRule
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CrossRegionCopyRule] -> ShowS
$cshowList :: [CrossRegionCopyRule] -> ShowS
show :: CrossRegionCopyRule -> String
$cshow :: CrossRegionCopyRule -> String
showsPrec :: Int -> CrossRegionCopyRule -> ShowS
$cshowsPrec :: Int -> CrossRegionCopyRule -> ShowS
Prelude.Show, (forall x. CrossRegionCopyRule -> Rep CrossRegionCopyRule x)
-> (forall x. Rep CrossRegionCopyRule x -> CrossRegionCopyRule)
-> Generic CrossRegionCopyRule
forall x. Rep CrossRegionCopyRule x -> CrossRegionCopyRule
forall x. CrossRegionCopyRule -> Rep CrossRegionCopyRule x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CrossRegionCopyRule x -> CrossRegionCopyRule
$cfrom :: forall x. CrossRegionCopyRule -> Rep CrossRegionCopyRule x
Prelude.Generic)
newCrossRegionCopyRule ::
Prelude.Bool ->
CrossRegionCopyRule
newCrossRegionCopyRule :: Bool -> CrossRegionCopyRule
newCrossRegionCopyRule Bool
pEncrypted_ =
CrossRegionCopyRule' :: Maybe CrossRegionCopyDeprecateRule
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe CrossRegionCopyRetainRule
-> Maybe Text
-> Bool
-> CrossRegionCopyRule
CrossRegionCopyRule'
{ $sel:deprecateRule:CrossRegionCopyRule' :: Maybe CrossRegionCopyDeprecateRule
deprecateRule =
Maybe CrossRegionCopyDeprecateRule
forall a. Maybe a
Prelude.Nothing,
$sel:targetRegion:CrossRegionCopyRule' :: Maybe Text
targetRegion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:copyTags:CrossRegionCopyRule' :: Maybe Bool
copyTags = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:cmkArn:CrossRegionCopyRule' :: Maybe Text
cmkArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:retainRule:CrossRegionCopyRule' :: Maybe CrossRegionCopyRetainRule
retainRule = Maybe CrossRegionCopyRetainRule
forall a. Maybe a
Prelude.Nothing,
$sel:target:CrossRegionCopyRule' :: Maybe Text
target = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:encrypted:CrossRegionCopyRule' :: Bool
encrypted = Bool
pEncrypted_
}
crossRegionCopyRule_deprecateRule :: Lens.Lens' CrossRegionCopyRule (Prelude.Maybe CrossRegionCopyDeprecateRule)
crossRegionCopyRule_deprecateRule :: (Maybe CrossRegionCopyDeprecateRule
-> f (Maybe CrossRegionCopyDeprecateRule))
-> CrossRegionCopyRule -> f CrossRegionCopyRule
crossRegionCopyRule_deprecateRule = (CrossRegionCopyRule -> Maybe CrossRegionCopyDeprecateRule)
-> (CrossRegionCopyRule
-> Maybe CrossRegionCopyDeprecateRule -> CrossRegionCopyRule)
-> Lens
CrossRegionCopyRule
CrossRegionCopyRule
(Maybe CrossRegionCopyDeprecateRule)
(Maybe CrossRegionCopyDeprecateRule)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CrossRegionCopyRule' {Maybe CrossRegionCopyDeprecateRule
deprecateRule :: Maybe CrossRegionCopyDeprecateRule
$sel:deprecateRule:CrossRegionCopyRule' :: CrossRegionCopyRule -> Maybe CrossRegionCopyDeprecateRule
deprecateRule} -> Maybe CrossRegionCopyDeprecateRule
deprecateRule) (\s :: CrossRegionCopyRule
s@CrossRegionCopyRule' {} Maybe CrossRegionCopyDeprecateRule
a -> CrossRegionCopyRule
s {$sel:deprecateRule:CrossRegionCopyRule' :: Maybe CrossRegionCopyDeprecateRule
deprecateRule = Maybe CrossRegionCopyDeprecateRule
a} :: CrossRegionCopyRule)
crossRegionCopyRule_targetRegion :: Lens.Lens' CrossRegionCopyRule (Prelude.Maybe Prelude.Text)
crossRegionCopyRule_targetRegion :: (Maybe Text -> f (Maybe Text))
-> CrossRegionCopyRule -> f CrossRegionCopyRule
crossRegionCopyRule_targetRegion = (CrossRegionCopyRule -> Maybe Text)
-> (CrossRegionCopyRule -> Maybe Text -> CrossRegionCopyRule)
-> Lens
CrossRegionCopyRule CrossRegionCopyRule (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CrossRegionCopyRule' {Maybe Text
targetRegion :: Maybe Text
$sel:targetRegion:CrossRegionCopyRule' :: CrossRegionCopyRule -> Maybe Text
targetRegion} -> Maybe Text
targetRegion) (\s :: CrossRegionCopyRule
s@CrossRegionCopyRule' {} Maybe Text
a -> CrossRegionCopyRule
s {$sel:targetRegion:CrossRegionCopyRule' :: Maybe Text
targetRegion = Maybe Text
a} :: CrossRegionCopyRule)
crossRegionCopyRule_copyTags :: Lens.Lens' CrossRegionCopyRule (Prelude.Maybe Prelude.Bool)
crossRegionCopyRule_copyTags :: (Maybe Bool -> f (Maybe Bool))
-> CrossRegionCopyRule -> f CrossRegionCopyRule
crossRegionCopyRule_copyTags = (CrossRegionCopyRule -> Maybe Bool)
-> (CrossRegionCopyRule -> Maybe Bool -> CrossRegionCopyRule)
-> Lens
CrossRegionCopyRule CrossRegionCopyRule (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CrossRegionCopyRule' {Maybe Bool
copyTags :: Maybe Bool
$sel:copyTags:CrossRegionCopyRule' :: CrossRegionCopyRule -> Maybe Bool
copyTags} -> Maybe Bool
copyTags) (\s :: CrossRegionCopyRule
s@CrossRegionCopyRule' {} Maybe Bool
a -> CrossRegionCopyRule
s {$sel:copyTags:CrossRegionCopyRule' :: Maybe Bool
copyTags = Maybe Bool
a} :: CrossRegionCopyRule)
crossRegionCopyRule_cmkArn :: Lens.Lens' CrossRegionCopyRule (Prelude.Maybe Prelude.Text)
crossRegionCopyRule_cmkArn :: (Maybe Text -> f (Maybe Text))
-> CrossRegionCopyRule -> f CrossRegionCopyRule
crossRegionCopyRule_cmkArn = (CrossRegionCopyRule -> Maybe Text)
-> (CrossRegionCopyRule -> Maybe Text -> CrossRegionCopyRule)
-> Lens
CrossRegionCopyRule CrossRegionCopyRule (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CrossRegionCopyRule' {Maybe Text
cmkArn :: Maybe Text
$sel:cmkArn:CrossRegionCopyRule' :: CrossRegionCopyRule -> Maybe Text
cmkArn} -> Maybe Text
cmkArn) (\s :: CrossRegionCopyRule
s@CrossRegionCopyRule' {} Maybe Text
a -> CrossRegionCopyRule
s {$sel:cmkArn:CrossRegionCopyRule' :: Maybe Text
cmkArn = Maybe Text
a} :: CrossRegionCopyRule)
crossRegionCopyRule_retainRule :: Lens.Lens' CrossRegionCopyRule (Prelude.Maybe CrossRegionCopyRetainRule)
crossRegionCopyRule_retainRule :: (Maybe CrossRegionCopyRetainRule
-> f (Maybe CrossRegionCopyRetainRule))
-> CrossRegionCopyRule -> f CrossRegionCopyRule
crossRegionCopyRule_retainRule = (CrossRegionCopyRule -> Maybe CrossRegionCopyRetainRule)
-> (CrossRegionCopyRule
-> Maybe CrossRegionCopyRetainRule -> CrossRegionCopyRule)
-> Lens
CrossRegionCopyRule
CrossRegionCopyRule
(Maybe CrossRegionCopyRetainRule)
(Maybe CrossRegionCopyRetainRule)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CrossRegionCopyRule' {Maybe CrossRegionCopyRetainRule
retainRule :: Maybe CrossRegionCopyRetainRule
$sel:retainRule:CrossRegionCopyRule' :: CrossRegionCopyRule -> Maybe CrossRegionCopyRetainRule
retainRule} -> Maybe CrossRegionCopyRetainRule
retainRule) (\s :: CrossRegionCopyRule
s@CrossRegionCopyRule' {} Maybe CrossRegionCopyRetainRule
a -> CrossRegionCopyRule
s {$sel:retainRule:CrossRegionCopyRule' :: Maybe CrossRegionCopyRetainRule
retainRule = Maybe CrossRegionCopyRetainRule
a} :: CrossRegionCopyRule)
crossRegionCopyRule_target :: Lens.Lens' CrossRegionCopyRule (Prelude.Maybe Prelude.Text)
crossRegionCopyRule_target :: (Maybe Text -> f (Maybe Text))
-> CrossRegionCopyRule -> f CrossRegionCopyRule
crossRegionCopyRule_target = (CrossRegionCopyRule -> Maybe Text)
-> (CrossRegionCopyRule -> Maybe Text -> CrossRegionCopyRule)
-> Lens
CrossRegionCopyRule CrossRegionCopyRule (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CrossRegionCopyRule' {Maybe Text
target :: Maybe Text
$sel:target:CrossRegionCopyRule' :: CrossRegionCopyRule -> Maybe Text
target} -> Maybe Text
target) (\s :: CrossRegionCopyRule
s@CrossRegionCopyRule' {} Maybe Text
a -> CrossRegionCopyRule
s {$sel:target:CrossRegionCopyRule' :: Maybe Text
target = Maybe Text
a} :: CrossRegionCopyRule)
crossRegionCopyRule_encrypted :: Lens.Lens' CrossRegionCopyRule Prelude.Bool
crossRegionCopyRule_encrypted :: (Bool -> f Bool) -> CrossRegionCopyRule -> f CrossRegionCopyRule
crossRegionCopyRule_encrypted = (CrossRegionCopyRule -> Bool)
-> (CrossRegionCopyRule -> Bool -> CrossRegionCopyRule)
-> Lens CrossRegionCopyRule CrossRegionCopyRule Bool Bool
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CrossRegionCopyRule' {Bool
encrypted :: Bool
$sel:encrypted:CrossRegionCopyRule' :: CrossRegionCopyRule -> Bool
encrypted} -> Bool
encrypted) (\s :: CrossRegionCopyRule
s@CrossRegionCopyRule' {} Bool
a -> CrossRegionCopyRule
s {$sel:encrypted:CrossRegionCopyRule' :: Bool
encrypted = Bool
a} :: CrossRegionCopyRule)
instance Core.FromJSON CrossRegionCopyRule where
parseJSON :: Value -> Parser CrossRegionCopyRule
parseJSON =
String
-> (Object -> Parser CrossRegionCopyRule)
-> Value
-> Parser CrossRegionCopyRule
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"CrossRegionCopyRule"
( \Object
x ->
Maybe CrossRegionCopyDeprecateRule
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe CrossRegionCopyRetainRule
-> Maybe Text
-> Bool
-> CrossRegionCopyRule
CrossRegionCopyRule'
(Maybe CrossRegionCopyDeprecateRule
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe CrossRegionCopyRetainRule
-> Maybe Text
-> Bool
-> CrossRegionCopyRule)
-> Parser (Maybe CrossRegionCopyDeprecateRule)
-> Parser
(Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe CrossRegionCopyRetainRule
-> Maybe Text
-> Bool
-> CrossRegionCopyRule)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe CrossRegionCopyDeprecateRule)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DeprecateRule")
Parser
(Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe CrossRegionCopyRetainRule
-> Maybe Text
-> Bool
-> CrossRegionCopyRule)
-> Parser (Maybe Text)
-> Parser
(Maybe Bool
-> Maybe Text
-> Maybe CrossRegionCopyRetainRule
-> Maybe Text
-> Bool
-> CrossRegionCopyRule)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"TargetRegion")
Parser
(Maybe Bool
-> Maybe Text
-> Maybe CrossRegionCopyRetainRule
-> Maybe Text
-> Bool
-> CrossRegionCopyRule)
-> Parser (Maybe Bool)
-> Parser
(Maybe Text
-> Maybe CrossRegionCopyRetainRule
-> Maybe Text
-> Bool
-> CrossRegionCopyRule)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CopyTags")
Parser
(Maybe Text
-> Maybe CrossRegionCopyRetainRule
-> Maybe Text
-> Bool
-> CrossRegionCopyRule)
-> Parser (Maybe Text)
-> Parser
(Maybe CrossRegionCopyRetainRule
-> Maybe Text -> Bool -> CrossRegionCopyRule)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CmkArn")
Parser
(Maybe CrossRegionCopyRetainRule
-> Maybe Text -> Bool -> CrossRegionCopyRule)
-> Parser (Maybe CrossRegionCopyRetainRule)
-> Parser (Maybe Text -> Bool -> CrossRegionCopyRule)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe CrossRegionCopyRetainRule)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"RetainRule")
Parser (Maybe Text -> Bool -> CrossRegionCopyRule)
-> Parser (Maybe Text) -> Parser (Bool -> CrossRegionCopyRule)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Target")
Parser (Bool -> CrossRegionCopyRule)
-> Parser Bool -> Parser CrossRegionCopyRule
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Bool
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"Encrypted")
)
instance Prelude.Hashable CrossRegionCopyRule
instance Prelude.NFData CrossRegionCopyRule
instance Core.ToJSON CrossRegionCopyRule where
toJSON :: CrossRegionCopyRule -> Value
toJSON CrossRegionCopyRule' {Bool
Maybe Bool
Maybe Text
Maybe CrossRegionCopyRetainRule
Maybe CrossRegionCopyDeprecateRule
encrypted :: Bool
target :: Maybe Text
retainRule :: Maybe CrossRegionCopyRetainRule
cmkArn :: Maybe Text
copyTags :: Maybe Bool
targetRegion :: Maybe Text
deprecateRule :: Maybe CrossRegionCopyDeprecateRule
$sel:encrypted:CrossRegionCopyRule' :: CrossRegionCopyRule -> Bool
$sel:target:CrossRegionCopyRule' :: CrossRegionCopyRule -> Maybe Text
$sel:retainRule:CrossRegionCopyRule' :: CrossRegionCopyRule -> Maybe CrossRegionCopyRetainRule
$sel:cmkArn:CrossRegionCopyRule' :: CrossRegionCopyRule -> Maybe Text
$sel:copyTags:CrossRegionCopyRule' :: CrossRegionCopyRule -> Maybe Bool
$sel:targetRegion:CrossRegionCopyRule' :: CrossRegionCopyRule -> Maybe Text
$sel:deprecateRule:CrossRegionCopyRule' :: CrossRegionCopyRule -> Maybe CrossRegionCopyDeprecateRule
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"DeprecateRule" Text -> CrossRegionCopyDeprecateRule -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (CrossRegionCopyDeprecateRule -> Pair)
-> Maybe CrossRegionCopyDeprecateRule -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CrossRegionCopyDeprecateRule
deprecateRule,
(Text
"TargetRegion" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
targetRegion,
(Text
"CopyTags" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
copyTags,
(Text
"CmkArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
cmkArn,
(Text
"RetainRule" Text -> CrossRegionCopyRetainRule -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (CrossRegionCopyRetainRule -> Pair)
-> Maybe CrossRegionCopyRetainRule -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CrossRegionCopyRetainRule
retainRule,
(Text
"Target" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
target,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Encrypted" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Bool
encrypted)
]
)