{-# 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.IVSChat.Types.LoggingConfigurationSummary where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.IVSChat.Types.DestinationConfiguration
import Amazonka.IVSChat.Types.LoggingConfigurationState
import qualified Amazonka.Prelude as Prelude
data LoggingConfigurationSummary = LoggingConfigurationSummary'
{
LoggingConfigurationSummary -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
LoggingConfigurationSummary -> Maybe ISO8601
createTime :: Prelude.Maybe Data.ISO8601,
LoggingConfigurationSummary -> Maybe DestinationConfiguration
destinationConfiguration :: Prelude.Maybe DestinationConfiguration,
LoggingConfigurationSummary -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
LoggingConfigurationSummary -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
LoggingConfigurationSummary -> Maybe LoggingConfigurationState
state :: Prelude.Maybe LoggingConfigurationState,
LoggingConfigurationSummary -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
LoggingConfigurationSummary -> Maybe ISO8601
updateTime :: Prelude.Maybe Data.ISO8601
}
deriving (LoggingConfigurationSummary -> LoggingConfigurationSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LoggingConfigurationSummary -> LoggingConfigurationSummary -> Bool
$c/= :: LoggingConfigurationSummary -> LoggingConfigurationSummary -> Bool
== :: LoggingConfigurationSummary -> LoggingConfigurationSummary -> Bool
$c== :: LoggingConfigurationSummary -> LoggingConfigurationSummary -> Bool
Prelude.Eq, ReadPrec [LoggingConfigurationSummary]
ReadPrec LoggingConfigurationSummary
Int -> ReadS LoggingConfigurationSummary
ReadS [LoggingConfigurationSummary]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LoggingConfigurationSummary]
$creadListPrec :: ReadPrec [LoggingConfigurationSummary]
readPrec :: ReadPrec LoggingConfigurationSummary
$creadPrec :: ReadPrec LoggingConfigurationSummary
readList :: ReadS [LoggingConfigurationSummary]
$creadList :: ReadS [LoggingConfigurationSummary]
readsPrec :: Int -> ReadS LoggingConfigurationSummary
$creadsPrec :: Int -> ReadS LoggingConfigurationSummary
Prelude.Read, Int -> LoggingConfigurationSummary -> ShowS
[LoggingConfigurationSummary] -> ShowS
LoggingConfigurationSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LoggingConfigurationSummary] -> ShowS
$cshowList :: [LoggingConfigurationSummary] -> ShowS
show :: LoggingConfigurationSummary -> String
$cshow :: LoggingConfigurationSummary -> String
showsPrec :: Int -> LoggingConfigurationSummary -> ShowS
$cshowsPrec :: Int -> LoggingConfigurationSummary -> ShowS
Prelude.Show, forall x.
Rep LoggingConfigurationSummary x -> LoggingConfigurationSummary
forall x.
LoggingConfigurationSummary -> Rep LoggingConfigurationSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep LoggingConfigurationSummary x -> LoggingConfigurationSummary
$cfrom :: forall x.
LoggingConfigurationSummary -> Rep LoggingConfigurationSummary x
Prelude.Generic)
newLoggingConfigurationSummary ::
LoggingConfigurationSummary
newLoggingConfigurationSummary :: LoggingConfigurationSummary
newLoggingConfigurationSummary =
LoggingConfigurationSummary'
{ $sel:arn:LoggingConfigurationSummary' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
$sel:createTime:LoggingConfigurationSummary' :: Maybe ISO8601
createTime = forall a. Maybe a
Prelude.Nothing,
$sel:destinationConfiguration:LoggingConfigurationSummary' :: Maybe DestinationConfiguration
destinationConfiguration = forall a. Maybe a
Prelude.Nothing,
$sel:id:LoggingConfigurationSummary' :: Maybe Text
id = forall a. Maybe a
Prelude.Nothing,
$sel:name:LoggingConfigurationSummary' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
$sel:state:LoggingConfigurationSummary' :: Maybe LoggingConfigurationState
state = forall a. Maybe a
Prelude.Nothing,
$sel:tags:LoggingConfigurationSummary' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
$sel:updateTime:LoggingConfigurationSummary' :: Maybe ISO8601
updateTime = forall a. Maybe a
Prelude.Nothing
}
loggingConfigurationSummary_arn :: Lens.Lens' LoggingConfigurationSummary (Prelude.Maybe Prelude.Text)
loggingConfigurationSummary_arn :: Lens' LoggingConfigurationSummary (Maybe Text)
loggingConfigurationSummary_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoggingConfigurationSummary' {Maybe Text
arn :: Maybe Text
$sel:arn:LoggingConfigurationSummary' :: LoggingConfigurationSummary -> Maybe Text
arn} -> Maybe Text
arn) (\s :: LoggingConfigurationSummary
s@LoggingConfigurationSummary' {} Maybe Text
a -> LoggingConfigurationSummary
s {$sel:arn:LoggingConfigurationSummary' :: Maybe Text
arn = Maybe Text
a} :: LoggingConfigurationSummary)
loggingConfigurationSummary_createTime :: Lens.Lens' LoggingConfigurationSummary (Prelude.Maybe Prelude.UTCTime)
loggingConfigurationSummary_createTime :: Lens' LoggingConfigurationSummary (Maybe UTCTime)
loggingConfigurationSummary_createTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoggingConfigurationSummary' {Maybe ISO8601
createTime :: Maybe ISO8601
$sel:createTime:LoggingConfigurationSummary' :: LoggingConfigurationSummary -> Maybe ISO8601
createTime} -> Maybe ISO8601
createTime) (\s :: LoggingConfigurationSummary
s@LoggingConfigurationSummary' {} Maybe ISO8601
a -> LoggingConfigurationSummary
s {$sel:createTime:LoggingConfigurationSummary' :: Maybe ISO8601
createTime = Maybe ISO8601
a} :: LoggingConfigurationSummary) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
loggingConfigurationSummary_destinationConfiguration :: Lens.Lens' LoggingConfigurationSummary (Prelude.Maybe DestinationConfiguration)
loggingConfigurationSummary_destinationConfiguration :: Lens' LoggingConfigurationSummary (Maybe DestinationConfiguration)
loggingConfigurationSummary_destinationConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoggingConfigurationSummary' {Maybe DestinationConfiguration
destinationConfiguration :: Maybe DestinationConfiguration
$sel:destinationConfiguration:LoggingConfigurationSummary' :: LoggingConfigurationSummary -> Maybe DestinationConfiguration
destinationConfiguration} -> Maybe DestinationConfiguration
destinationConfiguration) (\s :: LoggingConfigurationSummary
s@LoggingConfigurationSummary' {} Maybe DestinationConfiguration
a -> LoggingConfigurationSummary
s {$sel:destinationConfiguration:LoggingConfigurationSummary' :: Maybe DestinationConfiguration
destinationConfiguration = Maybe DestinationConfiguration
a} :: LoggingConfigurationSummary)
loggingConfigurationSummary_id :: Lens.Lens' LoggingConfigurationSummary (Prelude.Maybe Prelude.Text)
loggingConfigurationSummary_id :: Lens' LoggingConfigurationSummary (Maybe Text)
loggingConfigurationSummary_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoggingConfigurationSummary' {Maybe Text
id :: Maybe Text
$sel:id:LoggingConfigurationSummary' :: LoggingConfigurationSummary -> Maybe Text
id} -> Maybe Text
id) (\s :: LoggingConfigurationSummary
s@LoggingConfigurationSummary' {} Maybe Text
a -> LoggingConfigurationSummary
s {$sel:id:LoggingConfigurationSummary' :: Maybe Text
id = Maybe Text
a} :: LoggingConfigurationSummary)
loggingConfigurationSummary_name :: Lens.Lens' LoggingConfigurationSummary (Prelude.Maybe Prelude.Text)
loggingConfigurationSummary_name :: Lens' LoggingConfigurationSummary (Maybe Text)
loggingConfigurationSummary_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoggingConfigurationSummary' {Maybe Text
name :: Maybe Text
$sel:name:LoggingConfigurationSummary' :: LoggingConfigurationSummary -> Maybe Text
name} -> Maybe Text
name) (\s :: LoggingConfigurationSummary
s@LoggingConfigurationSummary' {} Maybe Text
a -> LoggingConfigurationSummary
s {$sel:name:LoggingConfigurationSummary' :: Maybe Text
name = Maybe Text
a} :: LoggingConfigurationSummary)
loggingConfigurationSummary_state :: Lens.Lens' LoggingConfigurationSummary (Prelude.Maybe LoggingConfigurationState)
loggingConfigurationSummary_state :: Lens' LoggingConfigurationSummary (Maybe LoggingConfigurationState)
loggingConfigurationSummary_state = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoggingConfigurationSummary' {Maybe LoggingConfigurationState
state :: Maybe LoggingConfigurationState
$sel:state:LoggingConfigurationSummary' :: LoggingConfigurationSummary -> Maybe LoggingConfigurationState
state} -> Maybe LoggingConfigurationState
state) (\s :: LoggingConfigurationSummary
s@LoggingConfigurationSummary' {} Maybe LoggingConfigurationState
a -> LoggingConfigurationSummary
s {$sel:state:LoggingConfigurationSummary' :: Maybe LoggingConfigurationState
state = Maybe LoggingConfigurationState
a} :: LoggingConfigurationSummary)
loggingConfigurationSummary_tags :: Lens.Lens' LoggingConfigurationSummary (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
loggingConfigurationSummary_tags :: Lens' LoggingConfigurationSummary (Maybe (HashMap Text Text))
loggingConfigurationSummary_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoggingConfigurationSummary' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:LoggingConfigurationSummary' :: LoggingConfigurationSummary -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: LoggingConfigurationSummary
s@LoggingConfigurationSummary' {} Maybe (HashMap Text Text)
a -> LoggingConfigurationSummary
s {$sel:tags:LoggingConfigurationSummary' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: LoggingConfigurationSummary) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
loggingConfigurationSummary_updateTime :: Lens.Lens' LoggingConfigurationSummary (Prelude.Maybe Prelude.UTCTime)
loggingConfigurationSummary_updateTime :: Lens' LoggingConfigurationSummary (Maybe UTCTime)
loggingConfigurationSummary_updateTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoggingConfigurationSummary' {Maybe ISO8601
updateTime :: Maybe ISO8601
$sel:updateTime:LoggingConfigurationSummary' :: LoggingConfigurationSummary -> Maybe ISO8601
updateTime} -> Maybe ISO8601
updateTime) (\s :: LoggingConfigurationSummary
s@LoggingConfigurationSummary' {} Maybe ISO8601
a -> LoggingConfigurationSummary
s {$sel:updateTime:LoggingConfigurationSummary' :: Maybe ISO8601
updateTime = Maybe ISO8601
a} :: LoggingConfigurationSummary) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
instance Data.FromJSON LoggingConfigurationSummary where
parseJSON :: Value -> Parser LoggingConfigurationSummary
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"LoggingConfigurationSummary"
( \Object
x ->
Maybe Text
-> Maybe ISO8601
-> Maybe DestinationConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe LoggingConfigurationState
-> Maybe (HashMap Text Text)
-> Maybe ISO8601
-> LoggingConfigurationSummary
LoggingConfigurationSummary'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"arn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"createTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"destinationConfiguration")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"id")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"name")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"state")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"tags" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"updateTime")
)
instance Prelude.Hashable LoggingConfigurationSummary where
hashWithSalt :: Int -> LoggingConfigurationSummary -> Int
hashWithSalt Int
_salt LoggingConfigurationSummary' {Maybe Text
Maybe (HashMap Text Text)
Maybe ISO8601
Maybe LoggingConfigurationState
Maybe DestinationConfiguration
updateTime :: Maybe ISO8601
tags :: Maybe (HashMap Text Text)
state :: Maybe LoggingConfigurationState
name :: Maybe Text
id :: Maybe Text
destinationConfiguration :: Maybe DestinationConfiguration
createTime :: Maybe ISO8601
arn :: Maybe Text
$sel:updateTime:LoggingConfigurationSummary' :: LoggingConfigurationSummary -> Maybe ISO8601
$sel:tags:LoggingConfigurationSummary' :: LoggingConfigurationSummary -> Maybe (HashMap Text Text)
$sel:state:LoggingConfigurationSummary' :: LoggingConfigurationSummary -> Maybe LoggingConfigurationState
$sel:name:LoggingConfigurationSummary' :: LoggingConfigurationSummary -> Maybe Text
$sel:id:LoggingConfigurationSummary' :: LoggingConfigurationSummary -> Maybe Text
$sel:destinationConfiguration:LoggingConfigurationSummary' :: LoggingConfigurationSummary -> Maybe DestinationConfiguration
$sel:createTime:LoggingConfigurationSummary' :: LoggingConfigurationSummary -> Maybe ISO8601
$sel:arn:LoggingConfigurationSummary' :: LoggingConfigurationSummary -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
arn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ISO8601
createTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DestinationConfiguration
destinationConfiguration
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
id
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe LoggingConfigurationState
state
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
tags
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ISO8601
updateTime
instance Prelude.NFData LoggingConfigurationSummary where
rnf :: LoggingConfigurationSummary -> ()
rnf LoggingConfigurationSummary' {Maybe Text
Maybe (HashMap Text Text)
Maybe ISO8601
Maybe LoggingConfigurationState
Maybe DestinationConfiguration
updateTime :: Maybe ISO8601
tags :: Maybe (HashMap Text Text)
state :: Maybe LoggingConfigurationState
name :: Maybe Text
id :: Maybe Text
destinationConfiguration :: Maybe DestinationConfiguration
createTime :: Maybe ISO8601
arn :: Maybe Text
$sel:updateTime:LoggingConfigurationSummary' :: LoggingConfigurationSummary -> Maybe ISO8601
$sel:tags:LoggingConfigurationSummary' :: LoggingConfigurationSummary -> Maybe (HashMap Text Text)
$sel:state:LoggingConfigurationSummary' :: LoggingConfigurationSummary -> Maybe LoggingConfigurationState
$sel:name:LoggingConfigurationSummary' :: LoggingConfigurationSummary -> Maybe Text
$sel:id:LoggingConfigurationSummary' :: LoggingConfigurationSummary -> Maybe Text
$sel:destinationConfiguration:LoggingConfigurationSummary' :: LoggingConfigurationSummary -> Maybe DestinationConfiguration
$sel:createTime:LoggingConfigurationSummary' :: LoggingConfigurationSummary -> Maybe ISO8601
$sel:arn:LoggingConfigurationSummary' :: LoggingConfigurationSummary -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ISO8601
createTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DestinationConfiguration
destinationConfiguration
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
id
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe LoggingConfigurationState
state
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
tags
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ISO8601
updateTime