module Stratosphere.WorkSpacesWeb.DataProtectionSettings.InlineRedactionConfigurationProperty (
        module Exports, InlineRedactionConfigurationProperty(..),
        mkInlineRedactionConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.WorkSpacesWeb.DataProtectionSettings.InlineRedactionPatternProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data InlineRedactionConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesweb-dataprotectionsettings-inlineredactionconfiguration.html>
    InlineRedactionConfigurationProperty {InlineRedactionConfigurationProperty -> ()
haddock_workaround_ :: (),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesweb-dataprotectionsettings-inlineredactionconfiguration.html#cfn-workspacesweb-dataprotectionsettings-inlineredactionconfiguration-globalconfidencelevel>
                                          InlineRedactionConfigurationProperty -> Maybe (Value Double)
globalConfidenceLevel :: (Prelude.Maybe (Value Prelude.Double)),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesweb-dataprotectionsettings-inlineredactionconfiguration.html#cfn-workspacesweb-dataprotectionsettings-inlineredactionconfiguration-globalenforcedurls>
                                          InlineRedactionConfigurationProperty -> Maybe (ValueList Text)
globalEnforcedUrls :: (Prelude.Maybe (ValueList Prelude.Text)),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesweb-dataprotectionsettings-inlineredactionconfiguration.html#cfn-workspacesweb-dataprotectionsettings-inlineredactionconfiguration-globalexempturls>
                                          InlineRedactionConfigurationProperty -> Maybe (ValueList Text)
globalExemptUrls :: (Prelude.Maybe (ValueList Prelude.Text)),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesweb-dataprotectionsettings-inlineredactionconfiguration.html#cfn-workspacesweb-dataprotectionsettings-inlineredactionconfiguration-inlineredactionpatterns>
                                          InlineRedactionConfigurationProperty
-> [InlineRedactionPatternProperty]
inlineRedactionPatterns :: [InlineRedactionPatternProperty]}
  deriving stock (InlineRedactionConfigurationProperty
-> InlineRedactionConfigurationProperty -> Bool
(InlineRedactionConfigurationProperty
 -> InlineRedactionConfigurationProperty -> Bool)
-> (InlineRedactionConfigurationProperty
    -> InlineRedactionConfigurationProperty -> Bool)
-> Eq InlineRedactionConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InlineRedactionConfigurationProperty
-> InlineRedactionConfigurationProperty -> Bool
== :: InlineRedactionConfigurationProperty
-> InlineRedactionConfigurationProperty -> Bool
$c/= :: InlineRedactionConfigurationProperty
-> InlineRedactionConfigurationProperty -> Bool
/= :: InlineRedactionConfigurationProperty
-> InlineRedactionConfigurationProperty -> Bool
Prelude.Eq, Int -> InlineRedactionConfigurationProperty -> ShowS
[InlineRedactionConfigurationProperty] -> ShowS
InlineRedactionConfigurationProperty -> String
(Int -> InlineRedactionConfigurationProperty -> ShowS)
-> (InlineRedactionConfigurationProperty -> String)
-> ([InlineRedactionConfigurationProperty] -> ShowS)
-> Show InlineRedactionConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> InlineRedactionConfigurationProperty -> ShowS
showsPrec :: Int -> InlineRedactionConfigurationProperty -> ShowS
$cshow :: InlineRedactionConfigurationProperty -> String
show :: InlineRedactionConfigurationProperty -> String
$cshowList :: [InlineRedactionConfigurationProperty] -> ShowS
showList :: [InlineRedactionConfigurationProperty] -> ShowS
Prelude.Show)
mkInlineRedactionConfigurationProperty ::
  [InlineRedactionPatternProperty]
  -> InlineRedactionConfigurationProperty
mkInlineRedactionConfigurationProperty :: [InlineRedactionPatternProperty]
-> InlineRedactionConfigurationProperty
mkInlineRedactionConfigurationProperty [InlineRedactionPatternProperty]
inlineRedactionPatterns
  = InlineRedactionConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       inlineRedactionPatterns :: [InlineRedactionPatternProperty]
inlineRedactionPatterns = [InlineRedactionPatternProperty]
inlineRedactionPatterns,
       globalConfidenceLevel :: Maybe (Value Double)
globalConfidenceLevel = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing,
       globalEnforcedUrls :: Maybe (ValueList Text)
globalEnforcedUrls = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
       globalExemptUrls :: Maybe (ValueList Text)
globalExemptUrls = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties InlineRedactionConfigurationProperty where
  toResourceProperties :: InlineRedactionConfigurationProperty -> ResourceProperties
toResourceProperties InlineRedactionConfigurationProperty {[InlineRedactionPatternProperty]
Maybe (ValueList Text)
Maybe (Value Double)
()
haddock_workaround_ :: InlineRedactionConfigurationProperty -> ()
globalConfidenceLevel :: InlineRedactionConfigurationProperty -> Maybe (Value Double)
globalEnforcedUrls :: InlineRedactionConfigurationProperty -> Maybe (ValueList Text)
globalExemptUrls :: InlineRedactionConfigurationProperty -> Maybe (ValueList Text)
inlineRedactionPatterns :: InlineRedactionConfigurationProperty
-> [InlineRedactionPatternProperty]
haddock_workaround_ :: ()
globalConfidenceLevel :: Maybe (Value Double)
globalEnforcedUrls :: Maybe (ValueList Text)
globalExemptUrls :: Maybe (ValueList Text)
inlineRedactionPatterns :: [InlineRedactionPatternProperty]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::WorkSpacesWeb::DataProtectionSettings.InlineRedactionConfiguration",
         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
"InlineRedactionPatterns" Key -> [InlineRedactionPatternProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [InlineRedactionPatternProperty]
inlineRedactionPatterns]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"GlobalConfidenceLevel"
                                 (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
globalConfidenceLevel,
                               Key -> ValueList 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
"GlobalEnforcedUrls" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
globalEnforcedUrls,
                               Key -> ValueList 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
"GlobalExemptUrls" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
globalExemptUrls]))}
instance JSON.ToJSON InlineRedactionConfigurationProperty where
  toJSON :: InlineRedactionConfigurationProperty -> Value
toJSON InlineRedactionConfigurationProperty {[InlineRedactionPatternProperty]
Maybe (ValueList Text)
Maybe (Value Double)
()
haddock_workaround_ :: InlineRedactionConfigurationProperty -> ()
globalConfidenceLevel :: InlineRedactionConfigurationProperty -> Maybe (Value Double)
globalEnforcedUrls :: InlineRedactionConfigurationProperty -> Maybe (ValueList Text)
globalExemptUrls :: InlineRedactionConfigurationProperty -> Maybe (ValueList Text)
inlineRedactionPatterns :: InlineRedactionConfigurationProperty
-> [InlineRedactionPatternProperty]
haddock_workaround_ :: ()
globalConfidenceLevel :: Maybe (Value Double)
globalEnforcedUrls :: Maybe (ValueList Text)
globalExemptUrls :: Maybe (ValueList Text)
inlineRedactionPatterns :: [InlineRedactionPatternProperty]
..}
    = [(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
"InlineRedactionPatterns" Key -> [InlineRedactionPatternProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [InlineRedactionPatternProperty]
inlineRedactionPatterns]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"GlobalConfidenceLevel"
                    (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
globalConfidenceLevel,
                  Key -> ValueList 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
"GlobalEnforcedUrls" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
globalEnforcedUrls,
                  Key -> ValueList 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
"GlobalExemptUrls" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
globalExemptUrls])))
instance Property "GlobalConfidenceLevel" InlineRedactionConfigurationProperty where
  type PropertyType "GlobalConfidenceLevel" InlineRedactionConfigurationProperty = Value Prelude.Double
  set :: PropertyType
  "GlobalConfidenceLevel" InlineRedactionConfigurationProperty
-> InlineRedactionConfigurationProperty
-> InlineRedactionConfigurationProperty
set PropertyType
  "GlobalConfidenceLevel" InlineRedactionConfigurationProperty
newValue InlineRedactionConfigurationProperty {[InlineRedactionPatternProperty]
Maybe (ValueList Text)
Maybe (Value Double)
()
haddock_workaround_ :: InlineRedactionConfigurationProperty -> ()
globalConfidenceLevel :: InlineRedactionConfigurationProperty -> Maybe (Value Double)
globalEnforcedUrls :: InlineRedactionConfigurationProperty -> Maybe (ValueList Text)
globalExemptUrls :: InlineRedactionConfigurationProperty -> Maybe (ValueList Text)
inlineRedactionPatterns :: InlineRedactionConfigurationProperty
-> [InlineRedactionPatternProperty]
haddock_workaround_ :: ()
globalConfidenceLevel :: Maybe (Value Double)
globalEnforcedUrls :: Maybe (ValueList Text)
globalExemptUrls :: Maybe (ValueList Text)
inlineRedactionPatterns :: [InlineRedactionPatternProperty]
..}
    = InlineRedactionConfigurationProperty
        {globalConfidenceLevel :: Maybe (Value Double)
globalConfidenceLevel = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "GlobalConfidenceLevel" InlineRedactionConfigurationProperty
Value Double
newValue, [InlineRedactionPatternProperty]
Maybe (ValueList Text)
()
haddock_workaround_ :: ()
globalEnforcedUrls :: Maybe (ValueList Text)
globalExemptUrls :: Maybe (ValueList Text)
inlineRedactionPatterns :: [InlineRedactionPatternProperty]
haddock_workaround_ :: ()
globalEnforcedUrls :: Maybe (ValueList Text)
globalExemptUrls :: Maybe (ValueList Text)
inlineRedactionPatterns :: [InlineRedactionPatternProperty]
..}
instance Property "GlobalEnforcedUrls" InlineRedactionConfigurationProperty where
  type PropertyType "GlobalEnforcedUrls" InlineRedactionConfigurationProperty = ValueList Prelude.Text
  set :: PropertyType
  "GlobalEnforcedUrls" InlineRedactionConfigurationProperty
-> InlineRedactionConfigurationProperty
-> InlineRedactionConfigurationProperty
set PropertyType
  "GlobalEnforcedUrls" InlineRedactionConfigurationProperty
newValue InlineRedactionConfigurationProperty {[InlineRedactionPatternProperty]
Maybe (ValueList Text)
Maybe (Value Double)
()
haddock_workaround_ :: InlineRedactionConfigurationProperty -> ()
globalConfidenceLevel :: InlineRedactionConfigurationProperty -> Maybe (Value Double)
globalEnforcedUrls :: InlineRedactionConfigurationProperty -> Maybe (ValueList Text)
globalExemptUrls :: InlineRedactionConfigurationProperty -> Maybe (ValueList Text)
inlineRedactionPatterns :: InlineRedactionConfigurationProperty
-> [InlineRedactionPatternProperty]
haddock_workaround_ :: ()
globalConfidenceLevel :: Maybe (Value Double)
globalEnforcedUrls :: Maybe (ValueList Text)
globalExemptUrls :: Maybe (ValueList Text)
inlineRedactionPatterns :: [InlineRedactionPatternProperty]
..}
    = InlineRedactionConfigurationProperty
        {globalEnforcedUrls :: Maybe (ValueList Text)
globalEnforcedUrls = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "GlobalEnforcedUrls" InlineRedactionConfigurationProperty
ValueList Text
newValue, [InlineRedactionPatternProperty]
Maybe (ValueList Text)
Maybe (Value Double)
()
haddock_workaround_ :: ()
globalConfidenceLevel :: Maybe (Value Double)
globalExemptUrls :: Maybe (ValueList Text)
inlineRedactionPatterns :: [InlineRedactionPatternProperty]
haddock_workaround_ :: ()
globalConfidenceLevel :: Maybe (Value Double)
globalExemptUrls :: Maybe (ValueList Text)
inlineRedactionPatterns :: [InlineRedactionPatternProperty]
..}
instance Property "GlobalExemptUrls" InlineRedactionConfigurationProperty where
  type PropertyType "GlobalExemptUrls" InlineRedactionConfigurationProperty = ValueList Prelude.Text
  set :: PropertyType
  "GlobalExemptUrls" InlineRedactionConfigurationProperty
-> InlineRedactionConfigurationProperty
-> InlineRedactionConfigurationProperty
set PropertyType
  "GlobalExemptUrls" InlineRedactionConfigurationProperty
newValue InlineRedactionConfigurationProperty {[InlineRedactionPatternProperty]
Maybe (ValueList Text)
Maybe (Value Double)
()
haddock_workaround_ :: InlineRedactionConfigurationProperty -> ()
globalConfidenceLevel :: InlineRedactionConfigurationProperty -> Maybe (Value Double)
globalEnforcedUrls :: InlineRedactionConfigurationProperty -> Maybe (ValueList Text)
globalExemptUrls :: InlineRedactionConfigurationProperty -> Maybe (ValueList Text)
inlineRedactionPatterns :: InlineRedactionConfigurationProperty
-> [InlineRedactionPatternProperty]
haddock_workaround_ :: ()
globalConfidenceLevel :: Maybe (Value Double)
globalEnforcedUrls :: Maybe (ValueList Text)
globalExemptUrls :: Maybe (ValueList Text)
inlineRedactionPatterns :: [InlineRedactionPatternProperty]
..}
    = InlineRedactionConfigurationProperty
        {globalExemptUrls :: Maybe (ValueList Text)
globalExemptUrls = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "GlobalExemptUrls" InlineRedactionConfigurationProperty
ValueList Text
newValue, [InlineRedactionPatternProperty]
Maybe (ValueList Text)
Maybe (Value Double)
()
haddock_workaround_ :: ()
globalConfidenceLevel :: Maybe (Value Double)
globalEnforcedUrls :: Maybe (ValueList Text)
inlineRedactionPatterns :: [InlineRedactionPatternProperty]
haddock_workaround_ :: ()
globalConfidenceLevel :: Maybe (Value Double)
globalEnforcedUrls :: Maybe (ValueList Text)
inlineRedactionPatterns :: [InlineRedactionPatternProperty]
..}
instance Property "InlineRedactionPatterns" InlineRedactionConfigurationProperty where
  type PropertyType "InlineRedactionPatterns" InlineRedactionConfigurationProperty = [InlineRedactionPatternProperty]
  set :: PropertyType
  "InlineRedactionPatterns" InlineRedactionConfigurationProperty
-> InlineRedactionConfigurationProperty
-> InlineRedactionConfigurationProperty
set PropertyType
  "InlineRedactionPatterns" InlineRedactionConfigurationProperty
newValue InlineRedactionConfigurationProperty {[InlineRedactionPatternProperty]
Maybe (ValueList Text)
Maybe (Value Double)
()
haddock_workaround_ :: InlineRedactionConfigurationProperty -> ()
globalConfidenceLevel :: InlineRedactionConfigurationProperty -> Maybe (Value Double)
globalEnforcedUrls :: InlineRedactionConfigurationProperty -> Maybe (ValueList Text)
globalExemptUrls :: InlineRedactionConfigurationProperty -> Maybe (ValueList Text)
inlineRedactionPatterns :: InlineRedactionConfigurationProperty
-> [InlineRedactionPatternProperty]
haddock_workaround_ :: ()
globalConfidenceLevel :: Maybe (Value Double)
globalEnforcedUrls :: Maybe (ValueList Text)
globalExemptUrls :: Maybe (ValueList Text)
inlineRedactionPatterns :: [InlineRedactionPatternProperty]
..}
    = InlineRedactionConfigurationProperty
        {inlineRedactionPatterns :: [InlineRedactionPatternProperty]
inlineRedactionPatterns = [InlineRedactionPatternProperty]
PropertyType
  "InlineRedactionPatterns" InlineRedactionConfigurationProperty
newValue, Maybe (ValueList Text)
Maybe (Value Double)
()
haddock_workaround_ :: ()
globalConfidenceLevel :: Maybe (Value Double)
globalEnforcedUrls :: Maybe (ValueList Text)
globalExemptUrls :: Maybe (ValueList Text)
haddock_workaround_ :: ()
globalConfidenceLevel :: Maybe (Value Double)
globalEnforcedUrls :: Maybe (ValueList Text)
globalExemptUrls :: Maybe (ValueList Text)
..}