{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.CloudFront.ListDistributionsByRealtimeLogConfig
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Gets a list of distributions that have a cache behavior that’s
-- associated with the specified real-time log configuration.
--
-- You can specify the real-time log configuration by its name or its
-- Amazon Resource Name (ARN). You must provide at least one. If you
-- provide both, CloudFront uses the name to identify the real-time log
-- configuration to list distributions for.
--
-- You can optionally specify the maximum number of items to receive in the
-- response. If the total number of items in the list exceeds the maximum
-- that you specify, or the default maximum, the response is paginated. To
-- get the next page of items, send a subsequent request that specifies the
-- @NextMarker@ value from the current response as the @Marker@ value in
-- the subsequent request.
module Amazonka.CloudFront.ListDistributionsByRealtimeLogConfig
  ( -- * Creating a Request
    ListDistributionsByRealtimeLogConfig (..),
    newListDistributionsByRealtimeLogConfig,

    -- * Request Lenses
    listDistributionsByRealtimeLogConfig_realtimeLogConfigName,
    listDistributionsByRealtimeLogConfig_realtimeLogConfigArn,
    listDistributionsByRealtimeLogConfig_marker,
    listDistributionsByRealtimeLogConfig_maxItems,

    -- * Destructuring the Response
    ListDistributionsByRealtimeLogConfigResponse (..),
    newListDistributionsByRealtimeLogConfigResponse,

    -- * Response Lenses
    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

-- | /See:/ 'newListDistributionsByRealtimeLogConfig' smart constructor.
data ListDistributionsByRealtimeLogConfig = ListDistributionsByRealtimeLogConfig'
  { -- | The name of the real-time log configuration whose associated
    -- distributions you want to list.
    ListDistributionsByRealtimeLogConfig -> Maybe Text
realtimeLogConfigName :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the real-time log configuration whose
    -- associated distributions you want to list.
    ListDistributionsByRealtimeLogConfig -> Maybe Text
realtimeLogConfigArn :: Prelude.Maybe Prelude.Text,
    -- | Use this field when paginating results to indicate where to begin in
    -- your list of distributions. The response includes distributions in the
    -- list that occur after the marker. To get the next page of the list, set
    -- this field’s value to the value of @NextMarker@ from the current page’s
    -- response.
    ListDistributionsByRealtimeLogConfig -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of distributions that you want in the response.
    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)

-- |
-- Create a value of 'ListDistributionsByRealtimeLogConfig' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'realtimeLogConfigName', 'listDistributionsByRealtimeLogConfig_realtimeLogConfigName' - The name of the real-time log configuration whose associated
-- distributions you want to list.
--
-- 'realtimeLogConfigArn', 'listDistributionsByRealtimeLogConfig_realtimeLogConfigArn' - The Amazon Resource Name (ARN) of the real-time log configuration whose
-- associated distributions you want to list.
--
-- 'marker', 'listDistributionsByRealtimeLogConfig_marker' - Use this field when paginating results to indicate where to begin in
-- your list of distributions. The response includes distributions in the
-- list that occur after the marker. To get the next page of the list, set
-- this field’s value to the value of @NextMarker@ from the current page’s
-- response.
--
-- 'maxItems', 'listDistributionsByRealtimeLogConfig_maxItems' - The maximum number of distributions that you want in the response.
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
    }

-- | The name of the real-time log configuration whose associated
-- distributions you want to list.
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)

-- | The Amazon Resource Name (ARN) of the real-time log configuration whose
-- associated distributions you want to list.
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)

-- | Use this field when paginating results to indicate where to begin in
-- your list of distributions. The response includes distributions in the
-- list that occur after the marker. To get the next page of the list, set
-- this field’s value to the value of @NextMarker@ from the current page’s
-- response.
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)

-- | The maximum number of distributions that you want in the response.
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
      ]

-- | /See:/ 'newListDistributionsByRealtimeLogConfigResponse' smart constructor.
data ListDistributionsByRealtimeLogConfigResponse = ListDistributionsByRealtimeLogConfigResponse'
  { ListDistributionsByRealtimeLogConfigResponse
-> Maybe DistributionList
distributionList :: Prelude.Maybe DistributionList,
    -- | The response's http status code.
    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)

-- |
-- Create a value of 'ListDistributionsByRealtimeLogConfigResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'distributionList', 'listDistributionsByRealtimeLogConfigResponse_distributionList' - Undocumented member.
--
-- 'httpStatus', 'listDistributionsByRealtimeLogConfigResponse_httpStatus' - The response's http status code.
newListDistributionsByRealtimeLogConfigResponse ::
  -- | 'httpStatus'
  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_
      }

-- | Undocumented member.
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)

-- | The response's http status code.
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