{-# 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.ListDistributionsByRealtimeLogConfig
(
ListDistributionsByRealtimeLogConfig (..),
newListDistributionsByRealtimeLogConfig,
listDistributionsByRealtimeLogConfig_realtimeLogConfigName,
listDistributionsByRealtimeLogConfig_realtimeLogConfigArn,
listDistributionsByRealtimeLogConfig_marker,
listDistributionsByRealtimeLogConfig_maxItems,
ListDistributionsByRealtimeLogConfigResponse (..),
newListDistributionsByRealtimeLogConfigResponse,
listDistributionsByRealtimeLogConfigResponse_distributionList,
listDistributionsByRealtimeLogConfigResponse_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 ListDistributionsByRealtimeLogConfig = ListDistributionsByRealtimeLogConfig'
{
ListDistributionsByRealtimeLogConfig -> Maybe Text
realtimeLogConfigName :: Prelude.Maybe Prelude.Text,
ListDistributionsByRealtimeLogConfig -> Maybe Text
realtimeLogConfigArn :: Prelude.Maybe Prelude.Text,
ListDistributionsByRealtimeLogConfig -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
ListDistributionsByRealtimeLogConfig -> Maybe Text
maxItems :: Prelude.Maybe Prelude.Text
}
deriving (ListDistributionsByRealtimeLogConfig
-> ListDistributionsByRealtimeLogConfig -> Bool
(ListDistributionsByRealtimeLogConfig
-> ListDistributionsByRealtimeLogConfig -> Bool)
-> (ListDistributionsByRealtimeLogConfig
-> ListDistributionsByRealtimeLogConfig -> Bool)
-> Eq ListDistributionsByRealtimeLogConfig
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDistributionsByRealtimeLogConfig
-> ListDistributionsByRealtimeLogConfig -> Bool
$c/= :: ListDistributionsByRealtimeLogConfig
-> ListDistributionsByRealtimeLogConfig -> Bool
== :: ListDistributionsByRealtimeLogConfig
-> ListDistributionsByRealtimeLogConfig -> Bool
$c== :: ListDistributionsByRealtimeLogConfig
-> ListDistributionsByRealtimeLogConfig -> Bool
Prelude.Eq, ReadPrec [ListDistributionsByRealtimeLogConfig]
ReadPrec ListDistributionsByRealtimeLogConfig
Int -> ReadS ListDistributionsByRealtimeLogConfig
ReadS [ListDistributionsByRealtimeLogConfig]
(Int -> ReadS ListDistributionsByRealtimeLogConfig)
-> ReadS [ListDistributionsByRealtimeLogConfig]
-> ReadPrec ListDistributionsByRealtimeLogConfig
-> ReadPrec [ListDistributionsByRealtimeLogConfig]
-> Read ListDistributionsByRealtimeLogConfig
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDistributionsByRealtimeLogConfig]
$creadListPrec :: ReadPrec [ListDistributionsByRealtimeLogConfig]
readPrec :: ReadPrec ListDistributionsByRealtimeLogConfig
$creadPrec :: ReadPrec ListDistributionsByRealtimeLogConfig
readList :: ReadS [ListDistributionsByRealtimeLogConfig]
$creadList :: ReadS [ListDistributionsByRealtimeLogConfig]
readsPrec :: Int -> ReadS ListDistributionsByRealtimeLogConfig
$creadsPrec :: Int -> ReadS ListDistributionsByRealtimeLogConfig
Prelude.Read, Int -> ListDistributionsByRealtimeLogConfig -> ShowS
[ListDistributionsByRealtimeLogConfig] -> ShowS
ListDistributionsByRealtimeLogConfig -> String
(Int -> ListDistributionsByRealtimeLogConfig -> ShowS)
-> (ListDistributionsByRealtimeLogConfig -> String)
-> ([ListDistributionsByRealtimeLogConfig] -> ShowS)
-> Show ListDistributionsByRealtimeLogConfig
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDistributionsByRealtimeLogConfig] -> ShowS
$cshowList :: [ListDistributionsByRealtimeLogConfig] -> ShowS
show :: ListDistributionsByRealtimeLogConfig -> String
$cshow :: ListDistributionsByRealtimeLogConfig -> String
showsPrec :: Int -> ListDistributionsByRealtimeLogConfig -> ShowS
$cshowsPrec :: Int -> ListDistributionsByRealtimeLogConfig -> ShowS
Prelude.Show, (forall x.
ListDistributionsByRealtimeLogConfig
-> Rep ListDistributionsByRealtimeLogConfig x)
-> (forall x.
Rep ListDistributionsByRealtimeLogConfig x
-> ListDistributionsByRealtimeLogConfig)
-> Generic ListDistributionsByRealtimeLogConfig
forall x.
Rep ListDistributionsByRealtimeLogConfig x
-> ListDistributionsByRealtimeLogConfig
forall x.
ListDistributionsByRealtimeLogConfig
-> Rep ListDistributionsByRealtimeLogConfig x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListDistributionsByRealtimeLogConfig x
-> ListDistributionsByRealtimeLogConfig
$cfrom :: forall x.
ListDistributionsByRealtimeLogConfig
-> Rep ListDistributionsByRealtimeLogConfig x
Prelude.Generic)
newListDistributionsByRealtimeLogConfig ::
ListDistributionsByRealtimeLogConfig
newListDistributionsByRealtimeLogConfig :: ListDistributionsByRealtimeLogConfig
newListDistributionsByRealtimeLogConfig =
ListDistributionsByRealtimeLogConfig' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> ListDistributionsByRealtimeLogConfig
ListDistributionsByRealtimeLogConfig'
{ $sel:realtimeLogConfigName:ListDistributionsByRealtimeLogConfig' :: Maybe Text
realtimeLogConfigName =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:realtimeLogConfigArn:ListDistributionsByRealtimeLogConfig' :: Maybe Text
realtimeLogConfigArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:marker:ListDistributionsByRealtimeLogConfig' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxItems:ListDistributionsByRealtimeLogConfig' :: Maybe Text
maxItems = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
listDistributionsByRealtimeLogConfig_realtimeLogConfigName :: Lens.Lens' ListDistributionsByRealtimeLogConfig (Prelude.Maybe Prelude.Text)
listDistributionsByRealtimeLogConfig_realtimeLogConfigName :: (Maybe Text -> f (Maybe Text))
-> ListDistributionsByRealtimeLogConfig
-> f ListDistributionsByRealtimeLogConfig
listDistributionsByRealtimeLogConfig_realtimeLogConfigName = (ListDistributionsByRealtimeLogConfig -> Maybe Text)
-> (ListDistributionsByRealtimeLogConfig
-> Maybe Text -> ListDistributionsByRealtimeLogConfig)
-> Lens
ListDistributionsByRealtimeLogConfig
ListDistributionsByRealtimeLogConfig
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDistributionsByRealtimeLogConfig' {Maybe Text
realtimeLogConfigName :: Maybe Text
$sel:realtimeLogConfigName:ListDistributionsByRealtimeLogConfig' :: ListDistributionsByRealtimeLogConfig -> Maybe Text
realtimeLogConfigName} -> Maybe Text
realtimeLogConfigName) (\s :: ListDistributionsByRealtimeLogConfig
s@ListDistributionsByRealtimeLogConfig' {} Maybe Text
a -> ListDistributionsByRealtimeLogConfig
s {$sel:realtimeLogConfigName:ListDistributionsByRealtimeLogConfig' :: Maybe Text
realtimeLogConfigName = Maybe Text
a} :: ListDistributionsByRealtimeLogConfig)
listDistributionsByRealtimeLogConfig_realtimeLogConfigArn :: Lens.Lens' ListDistributionsByRealtimeLogConfig (Prelude.Maybe Prelude.Text)
listDistributionsByRealtimeLogConfig_realtimeLogConfigArn :: (Maybe Text -> f (Maybe Text))
-> ListDistributionsByRealtimeLogConfig
-> f ListDistributionsByRealtimeLogConfig
listDistributionsByRealtimeLogConfig_realtimeLogConfigArn = (ListDistributionsByRealtimeLogConfig -> Maybe Text)
-> (ListDistributionsByRealtimeLogConfig
-> Maybe Text -> ListDistributionsByRealtimeLogConfig)
-> Lens
ListDistributionsByRealtimeLogConfig
ListDistributionsByRealtimeLogConfig
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDistributionsByRealtimeLogConfig' {Maybe Text
realtimeLogConfigArn :: Maybe Text
$sel:realtimeLogConfigArn:ListDistributionsByRealtimeLogConfig' :: ListDistributionsByRealtimeLogConfig -> Maybe Text
realtimeLogConfigArn} -> Maybe Text
realtimeLogConfigArn) (\s :: ListDistributionsByRealtimeLogConfig
s@ListDistributionsByRealtimeLogConfig' {} Maybe Text
a -> ListDistributionsByRealtimeLogConfig
s {$sel:realtimeLogConfigArn:ListDistributionsByRealtimeLogConfig' :: Maybe Text
realtimeLogConfigArn = Maybe Text
a} :: ListDistributionsByRealtimeLogConfig)
listDistributionsByRealtimeLogConfig_marker :: Lens.Lens' ListDistributionsByRealtimeLogConfig (Prelude.Maybe Prelude.Text)
listDistributionsByRealtimeLogConfig_marker :: (Maybe Text -> f (Maybe Text))
-> ListDistributionsByRealtimeLogConfig
-> f ListDistributionsByRealtimeLogConfig
listDistributionsByRealtimeLogConfig_marker = (ListDistributionsByRealtimeLogConfig -> Maybe Text)
-> (ListDistributionsByRealtimeLogConfig
-> Maybe Text -> ListDistributionsByRealtimeLogConfig)
-> Lens
ListDistributionsByRealtimeLogConfig
ListDistributionsByRealtimeLogConfig
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDistributionsByRealtimeLogConfig' {Maybe Text
marker :: Maybe Text
$sel:marker:ListDistributionsByRealtimeLogConfig' :: ListDistributionsByRealtimeLogConfig -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListDistributionsByRealtimeLogConfig
s@ListDistributionsByRealtimeLogConfig' {} Maybe Text
a -> ListDistributionsByRealtimeLogConfig
s {$sel:marker:ListDistributionsByRealtimeLogConfig' :: Maybe Text
marker = Maybe Text
a} :: ListDistributionsByRealtimeLogConfig)
listDistributionsByRealtimeLogConfig_maxItems :: Lens.Lens' ListDistributionsByRealtimeLogConfig (Prelude.Maybe Prelude.Text)
listDistributionsByRealtimeLogConfig_maxItems :: (Maybe Text -> f (Maybe Text))
-> ListDistributionsByRealtimeLogConfig
-> f ListDistributionsByRealtimeLogConfig
listDistributionsByRealtimeLogConfig_maxItems = (ListDistributionsByRealtimeLogConfig -> Maybe Text)
-> (ListDistributionsByRealtimeLogConfig
-> Maybe Text -> ListDistributionsByRealtimeLogConfig)
-> Lens
ListDistributionsByRealtimeLogConfig
ListDistributionsByRealtimeLogConfig
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDistributionsByRealtimeLogConfig' {Maybe Text
maxItems :: Maybe Text
$sel:maxItems:ListDistributionsByRealtimeLogConfig' :: ListDistributionsByRealtimeLogConfig -> Maybe Text
maxItems} -> Maybe Text
maxItems) (\s :: ListDistributionsByRealtimeLogConfig
s@ListDistributionsByRealtimeLogConfig' {} Maybe Text
a -> ListDistributionsByRealtimeLogConfig
s {$sel:maxItems:ListDistributionsByRealtimeLogConfig' :: Maybe Text
maxItems = Maybe Text
a} :: ListDistributionsByRealtimeLogConfig)
instance
Core.AWSRequest
ListDistributionsByRealtimeLogConfig
where
type
AWSResponse ListDistributionsByRealtimeLogConfig =
ListDistributionsByRealtimeLogConfigResponse
request :: ListDistributionsByRealtimeLogConfig
-> Request ListDistributionsByRealtimeLogConfig
request = Service
-> ListDistributionsByRealtimeLogConfig
-> Request ListDistributionsByRealtimeLogConfig
forall a. (ToRequest a, ToElement a) => Service -> a -> Request a
Request.postXML Service
defaultService
response :: Logger
-> Service
-> Proxy ListDistributionsByRealtimeLogConfig
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse ListDistributionsByRealtimeLogConfig)))
response =
(Int
-> ResponseHeaders
-> [Node]
-> Either
String (AWSResponse ListDistributionsByRealtimeLogConfig))
-> Logger
-> Service
-> Proxy ListDistributionsByRealtimeLogConfig
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse ListDistributionsByRealtimeLogConfig)))
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 DistributionList
-> Int -> ListDistributionsByRealtimeLogConfigResponse
ListDistributionsByRealtimeLogConfigResponse'
(Maybe DistributionList
-> Int -> ListDistributionsByRealtimeLogConfigResponse)
-> Either String (Maybe DistributionList)
-> Either
String (Int -> ListDistributionsByRealtimeLogConfigResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node] -> Either String (Maybe DistributionList)
forall a. FromXML a => [Node] -> Either String a
Core.parseXML [Node]
x)
Either String (Int -> ListDistributionsByRealtimeLogConfigResponse)
-> Either String Int
-> Either String ListDistributionsByRealtimeLogConfigResponse
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
ListDistributionsByRealtimeLogConfig
instance
Prelude.NFData
ListDistributionsByRealtimeLogConfig
instance
Core.ToElement
ListDistributionsByRealtimeLogConfig
where
toElement :: ListDistributionsByRealtimeLogConfig -> Element
toElement =
Name -> ListDistributionsByRealtimeLogConfig -> Element
forall a. ToXML a => Name -> a -> Element
Core.mkElement
Name
"{http://cloudfront.amazonaws.com/doc/2020-05-31/}ListDistributionsByRealtimeLogConfigRequest"
instance
Core.ToHeaders
ListDistributionsByRealtimeLogConfig
where
toHeaders :: ListDistributionsByRealtimeLogConfig -> ResponseHeaders
toHeaders = ResponseHeaders
-> ListDistributionsByRealtimeLogConfig -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance
Core.ToPath
ListDistributionsByRealtimeLogConfig
where
toPath :: ListDistributionsByRealtimeLogConfig -> ByteString
toPath =
ByteString -> ListDistributionsByRealtimeLogConfig -> ByteString
forall a b. a -> b -> a
Prelude.const
ByteString
"/2020-05-31/distributionsByRealtimeLogConfig/"
instance
Core.ToQuery
ListDistributionsByRealtimeLogConfig
where
toQuery :: ListDistributionsByRealtimeLogConfig -> QueryString
toQuery = QueryString -> ListDistributionsByRealtimeLogConfig -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
instance
Core.ToXML
ListDistributionsByRealtimeLogConfig
where
toXML :: ListDistributionsByRealtimeLogConfig -> XML
toXML ListDistributionsByRealtimeLogConfig' {Maybe Text
maxItems :: Maybe Text
marker :: Maybe Text
realtimeLogConfigArn :: Maybe Text
realtimeLogConfigName :: Maybe Text
$sel:maxItems:ListDistributionsByRealtimeLogConfig' :: ListDistributionsByRealtimeLogConfig -> Maybe Text
$sel:marker:ListDistributionsByRealtimeLogConfig' :: ListDistributionsByRealtimeLogConfig -> Maybe Text
$sel:realtimeLogConfigArn:ListDistributionsByRealtimeLogConfig' :: ListDistributionsByRealtimeLogConfig -> Maybe Text
$sel:realtimeLogConfigName:ListDistributionsByRealtimeLogConfig' :: ListDistributionsByRealtimeLogConfig -> Maybe Text
..} =
[XML] -> XML
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ Name
"RealtimeLogConfigName"
Name -> Maybe Text -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Maybe Text
realtimeLogConfigName,
Name
"RealtimeLogConfigArn" Name -> Maybe Text -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Maybe Text
realtimeLogConfigArn,
Name
"Marker" Name -> Maybe Text -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Maybe Text
marker,
Name
"MaxItems" Name -> Maybe Text -> XML
forall a. ToXML a => Name -> a -> XML
Core.@= Maybe Text
maxItems
]
data ListDistributionsByRealtimeLogConfigResponse = ListDistributionsByRealtimeLogConfigResponse'
{ ListDistributionsByRealtimeLogConfigResponse
-> Maybe DistributionList
distributionList :: Prelude.Maybe DistributionList,
ListDistributionsByRealtimeLogConfigResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListDistributionsByRealtimeLogConfigResponse
-> ListDistributionsByRealtimeLogConfigResponse -> Bool
(ListDistributionsByRealtimeLogConfigResponse
-> ListDistributionsByRealtimeLogConfigResponse -> Bool)
-> (ListDistributionsByRealtimeLogConfigResponse
-> ListDistributionsByRealtimeLogConfigResponse -> Bool)
-> Eq ListDistributionsByRealtimeLogConfigResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDistributionsByRealtimeLogConfigResponse
-> ListDistributionsByRealtimeLogConfigResponse -> Bool
$c/= :: ListDistributionsByRealtimeLogConfigResponse
-> ListDistributionsByRealtimeLogConfigResponse -> Bool
== :: ListDistributionsByRealtimeLogConfigResponse
-> ListDistributionsByRealtimeLogConfigResponse -> Bool
$c== :: ListDistributionsByRealtimeLogConfigResponse
-> ListDistributionsByRealtimeLogConfigResponse -> Bool
Prelude.Eq, ReadPrec [ListDistributionsByRealtimeLogConfigResponse]
ReadPrec ListDistributionsByRealtimeLogConfigResponse
Int -> ReadS ListDistributionsByRealtimeLogConfigResponse
ReadS [ListDistributionsByRealtimeLogConfigResponse]
(Int -> ReadS ListDistributionsByRealtimeLogConfigResponse)
-> ReadS [ListDistributionsByRealtimeLogConfigResponse]
-> ReadPrec ListDistributionsByRealtimeLogConfigResponse
-> ReadPrec [ListDistributionsByRealtimeLogConfigResponse]
-> Read ListDistributionsByRealtimeLogConfigResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDistributionsByRealtimeLogConfigResponse]
$creadListPrec :: ReadPrec [ListDistributionsByRealtimeLogConfigResponse]
readPrec :: ReadPrec ListDistributionsByRealtimeLogConfigResponse
$creadPrec :: ReadPrec ListDistributionsByRealtimeLogConfigResponse
readList :: ReadS [ListDistributionsByRealtimeLogConfigResponse]
$creadList :: ReadS [ListDistributionsByRealtimeLogConfigResponse]
readsPrec :: Int -> ReadS ListDistributionsByRealtimeLogConfigResponse
$creadsPrec :: Int -> ReadS ListDistributionsByRealtimeLogConfigResponse
Prelude.Read, Int -> ListDistributionsByRealtimeLogConfigResponse -> ShowS
[ListDistributionsByRealtimeLogConfigResponse] -> ShowS
ListDistributionsByRealtimeLogConfigResponse -> String
(Int -> ListDistributionsByRealtimeLogConfigResponse -> ShowS)
-> (ListDistributionsByRealtimeLogConfigResponse -> String)
-> ([ListDistributionsByRealtimeLogConfigResponse] -> ShowS)
-> Show ListDistributionsByRealtimeLogConfigResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDistributionsByRealtimeLogConfigResponse] -> ShowS
$cshowList :: [ListDistributionsByRealtimeLogConfigResponse] -> ShowS
show :: ListDistributionsByRealtimeLogConfigResponse -> String
$cshow :: ListDistributionsByRealtimeLogConfigResponse -> String
showsPrec :: Int -> ListDistributionsByRealtimeLogConfigResponse -> ShowS
$cshowsPrec :: Int -> ListDistributionsByRealtimeLogConfigResponse -> ShowS
Prelude.Show, (forall x.
ListDistributionsByRealtimeLogConfigResponse
-> Rep ListDistributionsByRealtimeLogConfigResponse x)
-> (forall x.
Rep ListDistributionsByRealtimeLogConfigResponse x
-> ListDistributionsByRealtimeLogConfigResponse)
-> Generic ListDistributionsByRealtimeLogConfigResponse
forall x.
Rep ListDistributionsByRealtimeLogConfigResponse x
-> ListDistributionsByRealtimeLogConfigResponse
forall x.
ListDistributionsByRealtimeLogConfigResponse
-> Rep ListDistributionsByRealtimeLogConfigResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListDistributionsByRealtimeLogConfigResponse x
-> ListDistributionsByRealtimeLogConfigResponse
$cfrom :: forall x.
ListDistributionsByRealtimeLogConfigResponse
-> Rep ListDistributionsByRealtimeLogConfigResponse x
Prelude.Generic)
newListDistributionsByRealtimeLogConfigResponse ::
Prelude.Int ->
ListDistributionsByRealtimeLogConfigResponse
newListDistributionsByRealtimeLogConfigResponse :: Int -> ListDistributionsByRealtimeLogConfigResponse
newListDistributionsByRealtimeLogConfigResponse
Int
pHttpStatus_ =
ListDistributionsByRealtimeLogConfigResponse' :: Maybe DistributionList
-> Int -> ListDistributionsByRealtimeLogConfigResponse
ListDistributionsByRealtimeLogConfigResponse'
{ $sel:distributionList:ListDistributionsByRealtimeLogConfigResponse' :: Maybe DistributionList
distributionList =
Maybe DistributionList
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListDistributionsByRealtimeLogConfigResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listDistributionsByRealtimeLogConfigResponse_distributionList :: Lens.Lens' ListDistributionsByRealtimeLogConfigResponse (Prelude.Maybe DistributionList)
listDistributionsByRealtimeLogConfigResponse_distributionList :: (Maybe DistributionList -> f (Maybe DistributionList))
-> ListDistributionsByRealtimeLogConfigResponse
-> f ListDistributionsByRealtimeLogConfigResponse
listDistributionsByRealtimeLogConfigResponse_distributionList = (ListDistributionsByRealtimeLogConfigResponse
-> Maybe DistributionList)
-> (ListDistributionsByRealtimeLogConfigResponse
-> Maybe DistributionList
-> ListDistributionsByRealtimeLogConfigResponse)
-> Lens
ListDistributionsByRealtimeLogConfigResponse
ListDistributionsByRealtimeLogConfigResponse
(Maybe DistributionList)
(Maybe DistributionList)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDistributionsByRealtimeLogConfigResponse' {Maybe DistributionList
distributionList :: Maybe DistributionList
$sel:distributionList:ListDistributionsByRealtimeLogConfigResponse' :: ListDistributionsByRealtimeLogConfigResponse
-> Maybe DistributionList
distributionList} -> Maybe DistributionList
distributionList) (\s :: ListDistributionsByRealtimeLogConfigResponse
s@ListDistributionsByRealtimeLogConfigResponse' {} Maybe DistributionList
a -> ListDistributionsByRealtimeLogConfigResponse
s {$sel:distributionList:ListDistributionsByRealtimeLogConfigResponse' :: Maybe DistributionList
distributionList = Maybe DistributionList
a} :: ListDistributionsByRealtimeLogConfigResponse)
listDistributionsByRealtimeLogConfigResponse_httpStatus :: Lens.Lens' ListDistributionsByRealtimeLogConfigResponse Prelude.Int
listDistributionsByRealtimeLogConfigResponse_httpStatus :: (Int -> f Int)
-> ListDistributionsByRealtimeLogConfigResponse
-> f ListDistributionsByRealtimeLogConfigResponse
listDistributionsByRealtimeLogConfigResponse_httpStatus = (ListDistributionsByRealtimeLogConfigResponse -> Int)
-> (ListDistributionsByRealtimeLogConfigResponse
-> Int -> ListDistributionsByRealtimeLogConfigResponse)
-> Lens
ListDistributionsByRealtimeLogConfigResponse
ListDistributionsByRealtimeLogConfigResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDistributionsByRealtimeLogConfigResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListDistributionsByRealtimeLogConfigResponse' :: ListDistributionsByRealtimeLogConfigResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListDistributionsByRealtimeLogConfigResponse
s@ListDistributionsByRealtimeLogConfigResponse' {} Int
a -> ListDistributionsByRealtimeLogConfigResponse
s {$sel:httpStatus:ListDistributionsByRealtimeLogConfigResponse' :: Int
httpStatus = Int
a} :: ListDistributionsByRealtimeLogConfigResponse)
instance
Prelude.NFData
ListDistributionsByRealtimeLogConfigResponse