module Stratosphere.WorkSpacesWeb.SessionLogger (
module Exports, SessionLogger(..), mkSessionLogger
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.WorkSpacesWeb.SessionLogger.EventFilterProperty as Exports
import {-# SOURCE #-} Stratosphere.WorkSpacesWeb.SessionLogger.LogConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data SessionLogger
=
SessionLogger {SessionLogger -> ()
haddock_workaround_ :: (),
SessionLogger -> Maybe (Map Text (Value Text))
additionalEncryptionContext :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text))),
SessionLogger -> Maybe (Value Text)
customerManagedKey :: (Prelude.Maybe (Value Prelude.Text)),
SessionLogger -> Maybe (Value Text)
displayName :: (Prelude.Maybe (Value Prelude.Text)),
SessionLogger -> EventFilterProperty
eventFilter :: EventFilterProperty,
SessionLogger -> LogConfigurationProperty
logConfiguration :: LogConfigurationProperty,
SessionLogger -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
deriving stock (SessionLogger -> SessionLogger -> Bool
(SessionLogger -> SessionLogger -> Bool)
-> (SessionLogger -> SessionLogger -> Bool) -> Eq SessionLogger
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SessionLogger -> SessionLogger -> Bool
== :: SessionLogger -> SessionLogger -> Bool
$c/= :: SessionLogger -> SessionLogger -> Bool
/= :: SessionLogger -> SessionLogger -> Bool
Prelude.Eq, Int -> SessionLogger -> ShowS
[SessionLogger] -> ShowS
SessionLogger -> String
(Int -> SessionLogger -> ShowS)
-> (SessionLogger -> String)
-> ([SessionLogger] -> ShowS)
-> Show SessionLogger
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SessionLogger -> ShowS
showsPrec :: Int -> SessionLogger -> ShowS
$cshow :: SessionLogger -> String
show :: SessionLogger -> String
$cshowList :: [SessionLogger] -> ShowS
showList :: [SessionLogger] -> ShowS
Prelude.Show)
mkSessionLogger ::
EventFilterProperty -> LogConfigurationProperty -> SessionLogger
mkSessionLogger :: EventFilterProperty -> LogConfigurationProperty -> SessionLogger
mkSessionLogger EventFilterProperty
eventFilter LogConfigurationProperty
logConfiguration
= SessionLogger
{haddock_workaround_ :: ()
haddock_workaround_ = (), eventFilter :: EventFilterProperty
eventFilter = EventFilterProperty
eventFilter,
logConfiguration :: LogConfigurationProperty
logConfiguration = LogConfigurationProperty
logConfiguration,
additionalEncryptionContext :: Maybe (Map Text (Value Text))
additionalEncryptionContext = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing,
customerManagedKey :: Maybe (Value Text)
customerManagedKey = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
displayName :: Maybe (Value Text)
displayName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SessionLogger where
toResourceProperties :: SessionLogger -> ResourceProperties
toResourceProperties SessionLogger {Maybe [Tag]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
EventFilterProperty
LogConfigurationProperty
haddock_workaround_ :: SessionLogger -> ()
additionalEncryptionContext :: SessionLogger -> Maybe (Map Text (Value Text))
customerManagedKey :: SessionLogger -> Maybe (Value Text)
displayName :: SessionLogger -> Maybe (Value Text)
eventFilter :: SessionLogger -> EventFilterProperty
logConfiguration :: SessionLogger -> LogConfigurationProperty
tags :: SessionLogger -> Maybe [Tag]
haddock_workaround_ :: ()
additionalEncryptionContext :: Maybe (Map Text (Value Text))
customerManagedKey :: Maybe (Value Text)
displayName :: Maybe (Value Text)
eventFilter :: EventFilterProperty
logConfiguration :: LogConfigurationProperty
tags :: Maybe [Tag]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::WorkSpacesWeb::SessionLogger",
supportsTags :: Bool
supportsTags = Bool
Prelude.True,
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
"EventFilter" Key -> EventFilterProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= EventFilterProperty
eventFilter,
Key
"LogConfiguration" Key -> LogConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= LogConfigurationProperty
logConfiguration]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Map Text (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
"AdditionalEncryptionContext"
(Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
additionalEncryptionContext,
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
"CustomerManagedKey" (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)
customerManagedKey,
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
"DisplayName" (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)
displayName,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON SessionLogger where
toJSON :: SessionLogger -> Value
toJSON SessionLogger {Maybe [Tag]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
EventFilterProperty
LogConfigurationProperty
haddock_workaround_ :: SessionLogger -> ()
additionalEncryptionContext :: SessionLogger -> Maybe (Map Text (Value Text))
customerManagedKey :: SessionLogger -> Maybe (Value Text)
displayName :: SessionLogger -> Maybe (Value Text)
eventFilter :: SessionLogger -> EventFilterProperty
logConfiguration :: SessionLogger -> LogConfigurationProperty
tags :: SessionLogger -> Maybe [Tag]
haddock_workaround_ :: ()
additionalEncryptionContext :: Maybe (Map Text (Value Text))
customerManagedKey :: Maybe (Value Text)
displayName :: Maybe (Value Text)
eventFilter :: EventFilterProperty
logConfiguration :: LogConfigurationProperty
tags :: Maybe [Tag]
..}
= [(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
"EventFilter" Key -> EventFilterProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= EventFilterProperty
eventFilter,
Key
"LogConfiguration" Key -> LogConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= LogConfigurationProperty
logConfiguration]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Map Text (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
"AdditionalEncryptionContext"
(Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
additionalEncryptionContext,
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
"CustomerManagedKey" (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)
customerManagedKey,
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
"DisplayName" (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)
displayName,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "AdditionalEncryptionContext" SessionLogger where
type PropertyType "AdditionalEncryptionContext" SessionLogger = Prelude.Map Prelude.Text (Value Prelude.Text)
set :: PropertyType "AdditionalEncryptionContext" SessionLogger
-> SessionLogger -> SessionLogger
set PropertyType "AdditionalEncryptionContext" SessionLogger
newValue SessionLogger {Maybe [Tag]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
EventFilterProperty
LogConfigurationProperty
haddock_workaround_ :: SessionLogger -> ()
additionalEncryptionContext :: SessionLogger -> Maybe (Map Text (Value Text))
customerManagedKey :: SessionLogger -> Maybe (Value Text)
displayName :: SessionLogger -> Maybe (Value Text)
eventFilter :: SessionLogger -> EventFilterProperty
logConfiguration :: SessionLogger -> LogConfigurationProperty
tags :: SessionLogger -> Maybe [Tag]
haddock_workaround_ :: ()
additionalEncryptionContext :: Maybe (Map Text (Value Text))
customerManagedKey :: Maybe (Value Text)
displayName :: Maybe (Value Text)
eventFilter :: EventFilterProperty
logConfiguration :: LogConfigurationProperty
tags :: Maybe [Tag]
..}
= SessionLogger
{additionalEncryptionContext :: Maybe (Map Text (Value Text))
additionalEncryptionContext = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "AdditionalEncryptionContext" SessionLogger
newValue, Maybe [Tag]
Maybe (Value Text)
()
EventFilterProperty
LogConfigurationProperty
haddock_workaround_ :: ()
customerManagedKey :: Maybe (Value Text)
displayName :: Maybe (Value Text)
eventFilter :: EventFilterProperty
logConfiguration :: LogConfigurationProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
customerManagedKey :: Maybe (Value Text)
displayName :: Maybe (Value Text)
eventFilter :: EventFilterProperty
logConfiguration :: LogConfigurationProperty
tags :: Maybe [Tag]
..}
instance Property "CustomerManagedKey" SessionLogger where
type PropertyType "CustomerManagedKey" SessionLogger = Value Prelude.Text
set :: PropertyType "CustomerManagedKey" SessionLogger
-> SessionLogger -> SessionLogger
set PropertyType "CustomerManagedKey" SessionLogger
newValue SessionLogger {Maybe [Tag]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
EventFilterProperty
LogConfigurationProperty
haddock_workaround_ :: SessionLogger -> ()
additionalEncryptionContext :: SessionLogger -> Maybe (Map Text (Value Text))
customerManagedKey :: SessionLogger -> Maybe (Value Text)
displayName :: SessionLogger -> Maybe (Value Text)
eventFilter :: SessionLogger -> EventFilterProperty
logConfiguration :: SessionLogger -> LogConfigurationProperty
tags :: SessionLogger -> Maybe [Tag]
haddock_workaround_ :: ()
additionalEncryptionContext :: Maybe (Map Text (Value Text))
customerManagedKey :: Maybe (Value Text)
displayName :: Maybe (Value Text)
eventFilter :: EventFilterProperty
logConfiguration :: LogConfigurationProperty
tags :: Maybe [Tag]
..}
= SessionLogger {customerManagedKey :: Maybe (Value Text)
customerManagedKey = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CustomerManagedKey" SessionLogger
Value Text
newValue, Maybe [Tag]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
EventFilterProperty
LogConfigurationProperty
haddock_workaround_ :: ()
additionalEncryptionContext :: Maybe (Map Text (Value Text))
displayName :: Maybe (Value Text)
eventFilter :: EventFilterProperty
logConfiguration :: LogConfigurationProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
additionalEncryptionContext :: Maybe (Map Text (Value Text))
displayName :: Maybe (Value Text)
eventFilter :: EventFilterProperty
logConfiguration :: LogConfigurationProperty
tags :: Maybe [Tag]
..}
instance Property "DisplayName" SessionLogger where
type PropertyType "DisplayName" SessionLogger = Value Prelude.Text
set :: PropertyType "DisplayName" SessionLogger
-> SessionLogger -> SessionLogger
set PropertyType "DisplayName" SessionLogger
newValue SessionLogger {Maybe [Tag]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
EventFilterProperty
LogConfigurationProperty
haddock_workaround_ :: SessionLogger -> ()
additionalEncryptionContext :: SessionLogger -> Maybe (Map Text (Value Text))
customerManagedKey :: SessionLogger -> Maybe (Value Text)
displayName :: SessionLogger -> Maybe (Value Text)
eventFilter :: SessionLogger -> EventFilterProperty
logConfiguration :: SessionLogger -> LogConfigurationProperty
tags :: SessionLogger -> Maybe [Tag]
haddock_workaround_ :: ()
additionalEncryptionContext :: Maybe (Map Text (Value Text))
customerManagedKey :: Maybe (Value Text)
displayName :: Maybe (Value Text)
eventFilter :: EventFilterProperty
logConfiguration :: LogConfigurationProperty
tags :: Maybe [Tag]
..}
= SessionLogger {displayName :: Maybe (Value Text)
displayName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DisplayName" SessionLogger
Value Text
newValue, Maybe [Tag]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
EventFilterProperty
LogConfigurationProperty
haddock_workaround_ :: ()
additionalEncryptionContext :: Maybe (Map Text (Value Text))
customerManagedKey :: Maybe (Value Text)
eventFilter :: EventFilterProperty
logConfiguration :: LogConfigurationProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
additionalEncryptionContext :: Maybe (Map Text (Value Text))
customerManagedKey :: Maybe (Value Text)
eventFilter :: EventFilterProperty
logConfiguration :: LogConfigurationProperty
tags :: Maybe [Tag]
..}
instance Property "EventFilter" SessionLogger where
type PropertyType "EventFilter" SessionLogger = EventFilterProperty
set :: PropertyType "EventFilter" SessionLogger
-> SessionLogger -> SessionLogger
set PropertyType "EventFilter" SessionLogger
newValue SessionLogger {Maybe [Tag]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
EventFilterProperty
LogConfigurationProperty
haddock_workaround_ :: SessionLogger -> ()
additionalEncryptionContext :: SessionLogger -> Maybe (Map Text (Value Text))
customerManagedKey :: SessionLogger -> Maybe (Value Text)
displayName :: SessionLogger -> Maybe (Value Text)
eventFilter :: SessionLogger -> EventFilterProperty
logConfiguration :: SessionLogger -> LogConfigurationProperty
tags :: SessionLogger -> Maybe [Tag]
haddock_workaround_ :: ()
additionalEncryptionContext :: Maybe (Map Text (Value Text))
customerManagedKey :: Maybe (Value Text)
displayName :: Maybe (Value Text)
eventFilter :: EventFilterProperty
logConfiguration :: LogConfigurationProperty
tags :: Maybe [Tag]
..}
= SessionLogger {eventFilter :: EventFilterProperty
eventFilter = PropertyType "EventFilter" SessionLogger
EventFilterProperty
newValue, Maybe [Tag]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
LogConfigurationProperty
haddock_workaround_ :: ()
additionalEncryptionContext :: Maybe (Map Text (Value Text))
customerManagedKey :: Maybe (Value Text)
displayName :: Maybe (Value Text)
logConfiguration :: LogConfigurationProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
additionalEncryptionContext :: Maybe (Map Text (Value Text))
customerManagedKey :: Maybe (Value Text)
displayName :: Maybe (Value Text)
logConfiguration :: LogConfigurationProperty
tags :: Maybe [Tag]
..}
instance Property "LogConfiguration" SessionLogger where
type PropertyType "LogConfiguration" SessionLogger = LogConfigurationProperty
set :: PropertyType "LogConfiguration" SessionLogger
-> SessionLogger -> SessionLogger
set PropertyType "LogConfiguration" SessionLogger
newValue SessionLogger {Maybe [Tag]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
EventFilterProperty
LogConfigurationProperty
haddock_workaround_ :: SessionLogger -> ()
additionalEncryptionContext :: SessionLogger -> Maybe (Map Text (Value Text))
customerManagedKey :: SessionLogger -> Maybe (Value Text)
displayName :: SessionLogger -> Maybe (Value Text)
eventFilter :: SessionLogger -> EventFilterProperty
logConfiguration :: SessionLogger -> LogConfigurationProperty
tags :: SessionLogger -> Maybe [Tag]
haddock_workaround_ :: ()
additionalEncryptionContext :: Maybe (Map Text (Value Text))
customerManagedKey :: Maybe (Value Text)
displayName :: Maybe (Value Text)
eventFilter :: EventFilterProperty
logConfiguration :: LogConfigurationProperty
tags :: Maybe [Tag]
..}
= SessionLogger {logConfiguration :: LogConfigurationProperty
logConfiguration = PropertyType "LogConfiguration" SessionLogger
LogConfigurationProperty
newValue, Maybe [Tag]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
EventFilterProperty
haddock_workaround_ :: ()
additionalEncryptionContext :: Maybe (Map Text (Value Text))
customerManagedKey :: Maybe (Value Text)
displayName :: Maybe (Value Text)
eventFilter :: EventFilterProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
additionalEncryptionContext :: Maybe (Map Text (Value Text))
customerManagedKey :: Maybe (Value Text)
displayName :: Maybe (Value Text)
eventFilter :: EventFilterProperty
tags :: Maybe [Tag]
..}
instance Property "Tags" SessionLogger where
type PropertyType "Tags" SessionLogger = [Tag]
set :: PropertyType "Tags" SessionLogger -> SessionLogger -> SessionLogger
set PropertyType "Tags" SessionLogger
newValue SessionLogger {Maybe [Tag]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
EventFilterProperty
LogConfigurationProperty
haddock_workaround_ :: SessionLogger -> ()
additionalEncryptionContext :: SessionLogger -> Maybe (Map Text (Value Text))
customerManagedKey :: SessionLogger -> Maybe (Value Text)
displayName :: SessionLogger -> Maybe (Value Text)
eventFilter :: SessionLogger -> EventFilterProperty
logConfiguration :: SessionLogger -> LogConfigurationProperty
tags :: SessionLogger -> Maybe [Tag]
haddock_workaround_ :: ()
additionalEncryptionContext :: Maybe (Map Text (Value Text))
customerManagedKey :: Maybe (Value Text)
displayName :: Maybe (Value Text)
eventFilter :: EventFilterProperty
logConfiguration :: LogConfigurationProperty
tags :: Maybe [Tag]
..}
= SessionLogger {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" SessionLogger
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
EventFilterProperty
LogConfigurationProperty
haddock_workaround_ :: ()
additionalEncryptionContext :: Maybe (Map Text (Value Text))
customerManagedKey :: Maybe (Value Text)
displayName :: Maybe (Value Text)
eventFilter :: EventFilterProperty
logConfiguration :: LogConfigurationProperty
haddock_workaround_ :: ()
additionalEncryptionContext :: Maybe (Map Text (Value Text))
customerManagedKey :: Maybe (Value Text)
displayName :: Maybe (Value Text)
eventFilter :: EventFilterProperty
logConfiguration :: LogConfigurationProperty
..}