{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.CloudFront.UpdateRealtimeLogConfig
(
UpdateRealtimeLogConfig (..),
newUpdateRealtimeLogConfig,
updateRealtimeLogConfig_arn,
updateRealtimeLogConfig_samplingRate,
updateRealtimeLogConfig_name,
updateRealtimeLogConfig_endPoints,
updateRealtimeLogConfig_fields,
UpdateRealtimeLogConfigResponse (..),
newUpdateRealtimeLogConfigResponse,
updateRealtimeLogConfigResponse_realtimeLogConfig,
updateRealtimeLogConfigResponse_httpStatus,
)
where
import Amazonka.CloudFront.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data UpdateRealtimeLogConfig = UpdateRealtimeLogConfig'
{
UpdateRealtimeLogConfig -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
UpdateRealtimeLogConfig -> Maybe Integer
samplingRate :: Prelude.Maybe Prelude.Integer,
UpdateRealtimeLogConfig -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
UpdateRealtimeLogConfig -> Maybe [EndPoint]
endPoints :: Prelude.Maybe [EndPoint],
UpdateRealtimeLogConfig -> Maybe [Text]
fields :: Prelude.Maybe [Prelude.Text]
}
deriving (UpdateRealtimeLogConfig -> UpdateRealtimeLogConfig -> Bool
(UpdateRealtimeLogConfig -> UpdateRealtimeLogConfig -> Bool)
-> (UpdateRealtimeLogConfig -> UpdateRealtimeLogConfig -> Bool)
-> Eq UpdateRealtimeLogConfig
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateRealtimeLogConfig -> UpdateRealtimeLogConfig -> Bool
$c/= :: UpdateRealtimeLogConfig -> UpdateRealtimeLogConfig -> Bool
== :: UpdateRealtimeLogConfig -> UpdateRealtimeLogConfig -> Bool
$c== :: UpdateRealtimeLogConfig -> UpdateRealtimeLogConfig -> Bool
Prelude.Eq, ReadPrec [UpdateRealtimeLogConfig]
ReadPrec UpdateRealtimeLogConfig
Int -> ReadS UpdateRealtimeLogConfig
ReadS [UpdateRealtimeLogConfig]
(Int -> ReadS UpdateRealtimeLogConfig)
-> ReadS [UpdateRealtimeLogConfig]
-> ReadPrec UpdateRealtimeLogConfig
-> ReadPrec [UpdateRealtimeLogConfig]
-> Read UpdateRealtimeLogConfig
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateRealtimeLogConfig]
$creadListPrec :: ReadPrec [UpdateRealtimeLogConfig]
readPrec :: ReadPrec UpdateRealtimeLogConfig
$creadPrec :: ReadPrec UpdateRealtimeLogConfig
readList :: ReadS [UpdateRealtimeLogConfig]
$creadList :: ReadS [UpdateRealtimeLogConfig]
readsPrec :: Int -> ReadS UpdateRealtimeLogConfig
$creadsPrec :: Int -> ReadS UpdateRealtimeLogConfig
Prelude.Read, Int -> UpdateRealtimeLogConfig -> ShowS
[UpdateRealtimeLogConfig] -> ShowS
UpdateRealtimeLogConfig -> String
(Int -> UpdateRealtimeLogConfig -> ShowS)
-> (UpdateRealtimeLogConfig -> String)
-> ([UpdateRealtimeLogConfig] -> ShowS)
-> Show UpdateRealtimeLogConfig
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateRealtimeLogConfig] -> ShowS
$cshowList :: [UpdateRealtimeLogConfig] -> ShowS
show :: UpdateRealtimeLogConfig -> String
$cshow :: UpdateRealtimeLogConfig -> String
showsPrec :: Int -> UpdateRealtimeLogConfig -> ShowS
$cshowsPrec :: Int -> UpdateRealtimeLogConfig -> ShowS
Prelude.Show, (forall x.
UpdateRealtimeLogConfig -> Rep UpdateRealtimeLogConfig x)
-> (forall x.
Rep UpdateRealtimeLogConfig x -> UpdateRealtimeLogConfig)
-> Generic UpdateRealtimeLogConfig
forall x. Rep UpdateRealtimeLogConfig x -> UpdateRealtimeLogConfig
forall x. UpdateRealtimeLogConfig -> Rep UpdateRealtimeLogConfig x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateRealtimeLogConfig x -> UpdateRealtimeLogConfig
$cfrom :: forall x. UpdateRealtimeLogConfig -> Rep UpdateRealtimeLogConfig x
Prelude.Generic)
newUpdateRealtimeLogConfig ::
UpdateRealtimeLogConfig
newUpdateRealtimeLogConfig :: UpdateRealtimeLogConfig
newUpdateRealtimeLogConfig =
UpdateRealtimeLogConfig' :: Maybe Text
-> Maybe Integer
-> Maybe Text
-> Maybe [EndPoint]
-> Maybe [Text]
-> UpdateRealtimeLogConfig
UpdateRealtimeLogConfig'
{ $sel:arn:UpdateRealtimeLogConfig' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:samplingRate:UpdateRealtimeLogConfig' :: Maybe Integer
samplingRate = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:name:UpdateRealtimeLogConfig' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:endPoints:UpdateRealtimeLogConfig' :: Maybe [EndPoint]
endPoints = Maybe [EndPoint]
forall a. Maybe a
Prelude.Nothing,
$sel:fields:UpdateRealtimeLogConfig' :: Maybe [Text]
fields = Maybe [Text]
forall a. Maybe a
Prelude.Nothing
}
updateRealtimeLogConfig_arn :: Lens.Lens' UpdateRealtimeLogConfig (Prelude.Maybe Prelude.Text)
updateRealtimeLogConfig_arn :: (Maybe Text -> f (Maybe Text))
-> UpdateRealtimeLogConfig -> f UpdateRealtimeLogConfig
updateRealtimeLogConfig_arn = (UpdateRealtimeLogConfig -> Maybe Text)
-> (UpdateRealtimeLogConfig
-> Maybe Text -> UpdateRealtimeLogConfig)
-> Lens
UpdateRealtimeLogConfig
UpdateRealtimeLogConfig
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateRealtimeLogConfig' {Maybe Text
arn :: Maybe Text
$sel:arn:UpdateRealtimeLogConfig' :: UpdateRealtimeLogConfig -> Maybe Text
arn} -> Maybe Text
arn) (\s :: UpdateRealtimeLogConfig
s@UpdateRealtimeLogConfig' {} Maybe Text
a -> UpdateRealtimeLogConfig
s {$sel:arn:UpdateRealtimeLogConfig' :: Maybe Text
arn = Maybe Text
a} :: UpdateRealtimeLogConfig)
updateRealtimeLogConfig_samplingRate :: Lens.Lens' UpdateRealtimeLogConfig (Prelude.Maybe Prelude.Integer)
updateRealtimeLogConfig_samplingRate :: (Maybe Integer -> f (Maybe Integer))
-> UpdateRealtimeLogConfig -> f UpdateRealtimeLogConfig
updateRealtimeLogConfig_samplingRate = (UpdateRealtimeLogConfig -> Maybe Integer)
-> (UpdateRealtimeLogConfig
-> Maybe Integer -> UpdateRealtimeLogConfig)
-> Lens
UpdateRealtimeLogConfig
UpdateRealtimeLogConfig
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateRealtimeLogConfig' {Maybe Integer
samplingRate :: Maybe Integer
$sel:samplingRate:UpdateRealtimeLogConfig' :: UpdateRealtimeLogConfig -> Maybe Integer
samplingRate} -> Maybe Integer
samplingRate) (\s :: UpdateRealtimeLogConfig
s@UpdateRealtimeLogConfig' {} Maybe Integer
a -> UpdateRealtimeLogConfig
s {$sel:samplingRate:UpdateRealtimeLogConfig' :: Maybe Integer
samplingRate = Maybe Integer
a} :: UpdateRealtimeLogConfig)
updateRealtimeLogConfig_name :: Lens.Lens' UpdateRealtimeLogConfig (Prelude.Maybe Prelude.Text)
updateRealtimeLogConfig_name :: (Maybe Text -> f (Maybe Text))
-> UpdateRealtimeLogConfig -> f UpdateRealtimeLogConfig
updateRealtimeLogConfig_name = (UpdateRealtimeLogConfig -> Maybe Text)
-> (UpdateRealtimeLogConfig
-> Maybe Text -> UpdateRealtimeLogConfig)
-> Lens
UpdateRealtimeLogConfig
UpdateRealtimeLogConfig
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateRealtimeLogConfig' {Maybe Text
name :: Maybe Text
$sel:name:UpdateRealtimeLogConfig' :: UpdateRealtimeLogConfig -> Maybe Text
name} -> Maybe Text
name) (\s :: UpdateRealtimeLogConfig
s@UpdateRealtimeLogConfig' {} Maybe Text
a -> UpdateRealtimeLogConfig
s {$sel:name:UpdateRealtimeLogConfig' :: Maybe Text
name = Maybe Text
a} :: UpdateRealtimeLogConfig)
updateRealtimeLogConfig_endPoints :: Lens.Lens' UpdateRealtimeLogConfig (Prelude.Maybe [EndPoint])
updateRealtimeLogConfig_endPoints :: (Maybe [EndPoint] -> f (Maybe [EndPoint]))
-> UpdateRealtimeLogConfig -> f UpdateRealtimeLogConfig
updateRealtimeLogConfig_endPoints = (UpdateRealtimeLogConfig -> Maybe [EndPoint])
-> (UpdateRealtimeLogConfig
-> Maybe [EndPoint] -> UpdateRealtimeLogConfig)
-> Lens
UpdateRealtimeLogConfig
UpdateRealtimeLogConfig
(Maybe [EndPoint])
(Maybe [EndPoint])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateRealtimeLogConfig' {Maybe [EndPoint]
endPoints :: Maybe [EndPoint]
$sel:endPoints:UpdateRealtimeLogConfig' :: UpdateRealtimeLogConfig -> Maybe [EndPoint]
endPoints} -> Maybe [EndPoint]
endPoints) (\s :: UpdateRealtimeLogConfig
s@UpdateRealtimeLogConfig' {} Maybe [EndPoint]
a -> UpdateRealtimeLogConfig
s {$sel:endPoints:UpdateRealtimeLogConfig' :: Maybe [EndPoint]
endPoints = Maybe [EndPoint]
a} :: UpdateRealtimeLogConfig) ((Maybe [EndPoint] -> f (Maybe [EndPoint]))
-> UpdateRealtimeLogConfig -> f UpdateRealtimeLogConfig)
-> ((Maybe [EndPoint] -> f (Maybe [EndPoint]))
-> Maybe [EndPoint] -> f (Maybe [EndPoint]))
-> (Maybe [EndPoint] -> f (Maybe [EndPoint]))
-> UpdateRealtimeLogConfig
-> f UpdateRealtimeLogConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [EndPoint] [EndPoint] [EndPoint] [EndPoint]
-> Iso
(Maybe [EndPoint])
(Maybe [EndPoint])
(Maybe [EndPoint])
(Maybe [EndPoint])
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 AnIso [EndPoint] [EndPoint] [EndPoint] [EndPoint]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateRealtimeLogConfig_fields :: Lens.Lens' UpdateRealtimeLogConfig (Prelude.Maybe [Prelude.Text])
updateRealtimeLogConfig_fields :: (Maybe [Text] -> f (Maybe [Text]))
-> UpdateRealtimeLogConfig -> f UpdateRealtimeLogConfig
updateRealtimeLogConfig_fields = (UpdateRealtimeLogConfig -> Maybe [Text])
-> (UpdateRealtimeLogConfig
-> Maybe [Text] -> UpdateRealtimeLogConfig)
-> Lens
UpdateRealtimeLogConfig
UpdateRealtimeLogConfig
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateRealtimeLogConfig' {Maybe [Text]
fields :: Maybe [Text]
$sel:fields:UpdateRealtimeLogConfig' :: UpdateRealtimeLogConfig -> Maybe [Text]
fields} -> Maybe [Text]
fields) (\s :: UpdateRealtimeLogConfig
s@UpdateRealtimeLogConfig' {} Maybe [Text]
a -> UpdateRealtimeLogConfig
s {$sel:fields:UpdateRealtimeLogConfig' :: Maybe [Text]
fields = Maybe [Text]
a} :: UpdateRealtimeLogConfig) ((Maybe [Text] -> f (Maybe [Text]))
-> UpdateRealtimeLogConfig -> f UpdateRealtimeLogConfig)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> UpdateRealtimeLogConfig
-> f UpdateRealtimeLogConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSRequest UpdateRealtimeLogConfig where
type
AWSResponse UpdateRealtimeLogConfig =
UpdateRealtimeLogConfigResponse
request :: UpdateRealtimeLogConfig -> Request UpdateRealtimeLogConfig
request = Service
-> UpdateRealtimeLogConfig -> Request UpdateRealtimeLogConfig
forall a. (ToRequest a, ToElement a) => Service -> a -> Request a
Request.putXML Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateRealtimeLogConfig
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateRealtimeLogConfig)))
response =
(Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse UpdateRealtimeLogConfig))
-> Logger
-> Service
-> Proxy UpdateRealtimeLogConfig
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateRealtimeLogConfig)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXML
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe RealtimeLogConfig -> Int -> UpdateRealtimeLogConfigResponse
UpdateRealtimeLogConfigResponse'
(Maybe RealtimeLogConfig -> Int -> UpdateRealtimeLogConfigResponse)
-> Either String (Maybe RealtimeLogConfig)
-> Either String (Int -> UpdateRealtimeLogConfigResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe RealtimeLogConfig)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"RealtimeLogConfig")
Either String (Int -> UpdateRealtimeLogConfigResponse)
-> Either String Int
-> Either String UpdateRealtimeLogConfigResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable UpdateRealtimeLogConfig
instance Prelude.NFData UpdateRealtimeLogConfig
instance Core.ToElement UpdateRealtimeLogConfig where
toElement :: UpdateRealtimeLogConfig -> Element
toElement =
Name -> UpdateRealtimeLogConfig -> Element
forall a. ToXML a => Name -> a -> Element
Core.mkElement
Name
"{http://cloudfront.amazonaws.com/doc/2020-05-31/}UpdateRealtimeLogConfigRequest"
instance Core.ToHeaders UpdateRealtimeLogConfig where
toHeaders :: UpdateRealtimeLogConfig -> ResponseHeaders
toHeaders = ResponseHeaders -> UpdateRealtimeLogConfig -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath UpdateRealtimeLogConfig where
toPath :: UpdateRealtimeLogConfig -> ByteString
toPath =
ByteString -> UpdateRealtimeLogConfig -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/2020-05-31/realtime-log-config/"
instance Core.ToQuery UpdateRealtimeLogConfig where
toQuery :: UpdateRealtimeLogConfig -> QueryString
toQuery = QueryString -> UpdateRealtimeLogConfig -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
instance Core.ToXML UpdateRealtimeLogConfig where
toXML :: UpdateRealtimeLogConfig -> XML
toXML UpdateRealtimeLogConfig' {Maybe Integer
Maybe [Text]
Maybe [EndPoint]
Maybe Text
fields :: Maybe [Text]
endPoints :: Maybe [EndPoint]
name :: Maybe Text
samplingRate :: Maybe Integer
arn :: Maybe Text
$sel:fields:UpdateRealtimeLogConfig' :: UpdateRealtimeLogConfig -> Maybe [Text]
$sel:endPoints:UpdateRealtimeLogConfig' :: UpdateRealtimeLogConfig -> Maybe [EndPoint]
$sel:name:UpdateRealtimeLogConfig' :: UpdateRealtimeLogConfig -> Maybe Text
$sel:samplingRate:UpdateRealtimeLogConfig' :: UpdateRealtimeLogConfig -> Maybe Integer
$sel:arn:UpdateRealtimeLogConfig' :: UpdateRealtimeLogConfig -> Maybe Text
..} =
[XML] -> XML
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ Name
"ARN" Name -> Maybe Text -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Maybe Text
arn,
Name
"SamplingRate" Name -> Maybe Integer -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Maybe Integer
samplingRate,
Name
"Name" Name -> Maybe Text -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Maybe Text
name,
Name
"EndPoints"
Name -> XML -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Maybe XML -> XML
forall a. ToXML a => a -> XML
Core.toXML
(Name -> [EndPoint] -> XML
forall a. (IsList a, ToXML (Item a)) => Name -> a -> XML
Core.toXMLList Name
"member" ([EndPoint] -> XML) -> Maybe [EndPoint] -> Maybe XML
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [EndPoint]
endPoints),
Name
"Fields"
Name -> XML -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Maybe XML -> XML
forall a. ToXML a => a -> XML
Core.toXML
(Name -> [Text] -> XML
forall a. (IsList a, ToXML (Item a)) => Name -> a -> XML
Core.toXMLList Name
"Field" ([Text] -> XML) -> Maybe [Text] -> Maybe XML
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
fields)
]
data UpdateRealtimeLogConfigResponse = UpdateRealtimeLogConfigResponse'
{
UpdateRealtimeLogConfigResponse -> Maybe RealtimeLogConfig
realtimeLogConfig :: Prelude.Maybe RealtimeLogConfig,
UpdateRealtimeLogConfigResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateRealtimeLogConfigResponse
-> UpdateRealtimeLogConfigResponse -> Bool
(UpdateRealtimeLogConfigResponse
-> UpdateRealtimeLogConfigResponse -> Bool)
-> (UpdateRealtimeLogConfigResponse
-> UpdateRealtimeLogConfigResponse -> Bool)
-> Eq UpdateRealtimeLogConfigResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateRealtimeLogConfigResponse
-> UpdateRealtimeLogConfigResponse -> Bool
$c/= :: UpdateRealtimeLogConfigResponse
-> UpdateRealtimeLogConfigResponse -> Bool
== :: UpdateRealtimeLogConfigResponse
-> UpdateRealtimeLogConfigResponse -> Bool
$c== :: UpdateRealtimeLogConfigResponse
-> UpdateRealtimeLogConfigResponse -> Bool
Prelude.Eq, ReadPrec [UpdateRealtimeLogConfigResponse]
ReadPrec UpdateRealtimeLogConfigResponse
Int -> ReadS UpdateRealtimeLogConfigResponse
ReadS [UpdateRealtimeLogConfigResponse]
(Int -> ReadS UpdateRealtimeLogConfigResponse)
-> ReadS [UpdateRealtimeLogConfigResponse]
-> ReadPrec UpdateRealtimeLogConfigResponse
-> ReadPrec [UpdateRealtimeLogConfigResponse]
-> Read UpdateRealtimeLogConfigResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateRealtimeLogConfigResponse]
$creadListPrec :: ReadPrec [UpdateRealtimeLogConfigResponse]
readPrec :: ReadPrec UpdateRealtimeLogConfigResponse
$creadPrec :: ReadPrec UpdateRealtimeLogConfigResponse
readList :: ReadS [UpdateRealtimeLogConfigResponse]
$creadList :: ReadS [UpdateRealtimeLogConfigResponse]
readsPrec :: Int -> ReadS UpdateRealtimeLogConfigResponse
$creadsPrec :: Int -> ReadS UpdateRealtimeLogConfigResponse
Prelude.Read, Int -> UpdateRealtimeLogConfigResponse -> ShowS
[UpdateRealtimeLogConfigResponse] -> ShowS
UpdateRealtimeLogConfigResponse -> String
(Int -> UpdateRealtimeLogConfigResponse -> ShowS)
-> (UpdateRealtimeLogConfigResponse -> String)
-> ([UpdateRealtimeLogConfigResponse] -> ShowS)
-> Show UpdateRealtimeLogConfigResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateRealtimeLogConfigResponse] -> ShowS
$cshowList :: [UpdateRealtimeLogConfigResponse] -> ShowS
show :: UpdateRealtimeLogConfigResponse -> String
$cshow :: UpdateRealtimeLogConfigResponse -> String
showsPrec :: Int -> UpdateRealtimeLogConfigResponse -> ShowS
$cshowsPrec :: Int -> UpdateRealtimeLogConfigResponse -> ShowS
Prelude.Show, (forall x.
UpdateRealtimeLogConfigResponse
-> Rep UpdateRealtimeLogConfigResponse x)
-> (forall x.
Rep UpdateRealtimeLogConfigResponse x
-> UpdateRealtimeLogConfigResponse)
-> Generic UpdateRealtimeLogConfigResponse
forall x.
Rep UpdateRealtimeLogConfigResponse x
-> UpdateRealtimeLogConfigResponse
forall x.
UpdateRealtimeLogConfigResponse
-> Rep UpdateRealtimeLogConfigResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateRealtimeLogConfigResponse x
-> UpdateRealtimeLogConfigResponse
$cfrom :: forall x.
UpdateRealtimeLogConfigResponse
-> Rep UpdateRealtimeLogConfigResponse x
Prelude.Generic)
newUpdateRealtimeLogConfigResponse ::
Prelude.Int ->
UpdateRealtimeLogConfigResponse
newUpdateRealtimeLogConfigResponse :: Int -> UpdateRealtimeLogConfigResponse
newUpdateRealtimeLogConfigResponse Int
pHttpStatus_ =
UpdateRealtimeLogConfigResponse' :: Maybe RealtimeLogConfig -> Int -> UpdateRealtimeLogConfigResponse
UpdateRealtimeLogConfigResponse'
{ $sel:realtimeLogConfig:UpdateRealtimeLogConfigResponse' :: Maybe RealtimeLogConfig
realtimeLogConfig =
Maybe RealtimeLogConfig
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateRealtimeLogConfigResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateRealtimeLogConfigResponse_realtimeLogConfig :: Lens.Lens' UpdateRealtimeLogConfigResponse (Prelude.Maybe RealtimeLogConfig)
updateRealtimeLogConfigResponse_realtimeLogConfig :: (Maybe RealtimeLogConfig -> f (Maybe RealtimeLogConfig))
-> UpdateRealtimeLogConfigResponse
-> f UpdateRealtimeLogConfigResponse
updateRealtimeLogConfigResponse_realtimeLogConfig = (UpdateRealtimeLogConfigResponse -> Maybe RealtimeLogConfig)
-> (UpdateRealtimeLogConfigResponse
-> Maybe RealtimeLogConfig -> UpdateRealtimeLogConfigResponse)
-> Lens
UpdateRealtimeLogConfigResponse
UpdateRealtimeLogConfigResponse
(Maybe RealtimeLogConfig)
(Maybe RealtimeLogConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateRealtimeLogConfigResponse' {Maybe RealtimeLogConfig
realtimeLogConfig :: Maybe RealtimeLogConfig
$sel:realtimeLogConfig:UpdateRealtimeLogConfigResponse' :: UpdateRealtimeLogConfigResponse -> Maybe RealtimeLogConfig
realtimeLogConfig} -> Maybe RealtimeLogConfig
realtimeLogConfig) (\s :: UpdateRealtimeLogConfigResponse
s@UpdateRealtimeLogConfigResponse' {} Maybe RealtimeLogConfig
a -> UpdateRealtimeLogConfigResponse
s {$sel:realtimeLogConfig:UpdateRealtimeLogConfigResponse' :: Maybe RealtimeLogConfig
realtimeLogConfig = Maybe RealtimeLogConfig
a} :: UpdateRealtimeLogConfigResponse)
updateRealtimeLogConfigResponse_httpStatus :: Lens.Lens' UpdateRealtimeLogConfigResponse Prelude.Int
updateRealtimeLogConfigResponse_httpStatus :: (Int -> f Int)
-> UpdateRealtimeLogConfigResponse
-> f UpdateRealtimeLogConfigResponse
updateRealtimeLogConfigResponse_httpStatus = (UpdateRealtimeLogConfigResponse -> Int)
-> (UpdateRealtimeLogConfigResponse
-> Int -> UpdateRealtimeLogConfigResponse)
-> Lens
UpdateRealtimeLogConfigResponse
UpdateRealtimeLogConfigResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateRealtimeLogConfigResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateRealtimeLogConfigResponse' :: UpdateRealtimeLogConfigResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateRealtimeLogConfigResponse
s@UpdateRealtimeLogConfigResponse' {} Int
a -> UpdateRealtimeLogConfigResponse
s {$sel:httpStatus:UpdateRealtimeLogConfigResponse' :: Int
httpStatus = Int
a} :: UpdateRealtimeLogConfigResponse)
instance
Prelude.NFData
UpdateRealtimeLogConfigResponse