{-# 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.Neptune.DescribeEventCategories
-- 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)
--
-- Displays a list of categories for all event source types, or, if
-- specified, for a specified source type.
module Amazonka.Neptune.DescribeEventCategories
  ( -- * Creating a Request
    DescribeEventCategories (..),
    newDescribeEventCategories,

    -- * Request Lenses
    describeEventCategories_sourceType,
    describeEventCategories_filters,

    -- * Destructuring the Response
    DescribeEventCategoriesResponse (..),
    newDescribeEventCategoriesResponse,

    -- * Response Lenses
    describeEventCategoriesResponse_eventCategoriesMapList,
    describeEventCategoriesResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Neptune.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newDescribeEventCategories' smart constructor.
data DescribeEventCategories = DescribeEventCategories'
  { -- | The type of source that is generating the events.
    --
    -- Valid values: db-instance | db-parameter-group | db-security-group |
    -- db-snapshot
    DescribeEventCategories -> Maybe Text
sourceType :: Prelude.Maybe Prelude.Text,
    -- | This parameter is not currently supported.
    DescribeEventCategories -> Maybe [Filter]
filters :: Prelude.Maybe [Filter]
  }
  deriving (DescribeEventCategories -> DescribeEventCategories -> Bool
(DescribeEventCategories -> DescribeEventCategories -> Bool)
-> (DescribeEventCategories -> DescribeEventCategories -> Bool)
-> Eq DescribeEventCategories
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeEventCategories -> DescribeEventCategories -> Bool
$c/= :: DescribeEventCategories -> DescribeEventCategories -> Bool
== :: DescribeEventCategories -> DescribeEventCategories -> Bool
$c== :: DescribeEventCategories -> DescribeEventCategories -> Bool
Prelude.Eq, ReadPrec [DescribeEventCategories]
ReadPrec DescribeEventCategories
Int -> ReadS DescribeEventCategories
ReadS [DescribeEventCategories]
(Int -> ReadS DescribeEventCategories)
-> ReadS [DescribeEventCategories]
-> ReadPrec DescribeEventCategories
-> ReadPrec [DescribeEventCategories]
-> Read DescribeEventCategories
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeEventCategories]
$creadListPrec :: ReadPrec [DescribeEventCategories]
readPrec :: ReadPrec DescribeEventCategories
$creadPrec :: ReadPrec DescribeEventCategories
readList :: ReadS [DescribeEventCategories]
$creadList :: ReadS [DescribeEventCategories]
readsPrec :: Int -> ReadS DescribeEventCategories
$creadsPrec :: Int -> ReadS DescribeEventCategories
Prelude.Read, Int -> DescribeEventCategories -> ShowS
[DescribeEventCategories] -> ShowS
DescribeEventCategories -> String
(Int -> DescribeEventCategories -> ShowS)
-> (DescribeEventCategories -> String)
-> ([DescribeEventCategories] -> ShowS)
-> Show DescribeEventCategories
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeEventCategories] -> ShowS
$cshowList :: [DescribeEventCategories] -> ShowS
show :: DescribeEventCategories -> String
$cshow :: DescribeEventCategories -> String
showsPrec :: Int -> DescribeEventCategories -> ShowS
$cshowsPrec :: Int -> DescribeEventCategories -> ShowS
Prelude.Show, (forall x.
 DescribeEventCategories -> Rep DescribeEventCategories x)
-> (forall x.
    Rep DescribeEventCategories x -> DescribeEventCategories)
-> Generic DescribeEventCategories
forall x. Rep DescribeEventCategories x -> DescribeEventCategories
forall x. DescribeEventCategories -> Rep DescribeEventCategories x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeEventCategories x -> DescribeEventCategories
$cfrom :: forall x. DescribeEventCategories -> Rep DescribeEventCategories x
Prelude.Generic)

-- |
-- Create a value of 'DescribeEventCategories' 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:
--
-- 'sourceType', 'describeEventCategories_sourceType' - The type of source that is generating the events.
--
-- Valid values: db-instance | db-parameter-group | db-security-group |
-- db-snapshot
--
-- 'filters', 'describeEventCategories_filters' - This parameter is not currently supported.
newDescribeEventCategories ::
  DescribeEventCategories
newDescribeEventCategories :: DescribeEventCategories
newDescribeEventCategories =
  DescribeEventCategories' :: Maybe Text -> Maybe [Filter] -> DescribeEventCategories
DescribeEventCategories'
    { $sel:sourceType:DescribeEventCategories' :: Maybe Text
sourceType =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:filters:DescribeEventCategories' :: Maybe [Filter]
filters = Maybe [Filter]
forall a. Maybe a
Prelude.Nothing
    }

-- | The type of source that is generating the events.
--
-- Valid values: db-instance | db-parameter-group | db-security-group |
-- db-snapshot
describeEventCategories_sourceType :: Lens.Lens' DescribeEventCategories (Prelude.Maybe Prelude.Text)
describeEventCategories_sourceType :: (Maybe Text -> f (Maybe Text))
-> DescribeEventCategories -> f DescribeEventCategories
describeEventCategories_sourceType = (DescribeEventCategories -> Maybe Text)
-> (DescribeEventCategories
    -> Maybe Text -> DescribeEventCategories)
-> Lens
     DescribeEventCategories
     DescribeEventCategories
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEventCategories' {Maybe Text
sourceType :: Maybe Text
$sel:sourceType:DescribeEventCategories' :: DescribeEventCategories -> Maybe Text
sourceType} -> Maybe Text
sourceType) (\s :: DescribeEventCategories
s@DescribeEventCategories' {} Maybe Text
a -> DescribeEventCategories
s {$sel:sourceType:DescribeEventCategories' :: Maybe Text
sourceType = Maybe Text
a} :: DescribeEventCategories)

-- | This parameter is not currently supported.
describeEventCategories_filters :: Lens.Lens' DescribeEventCategories (Prelude.Maybe [Filter])
describeEventCategories_filters :: (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeEventCategories -> f DescribeEventCategories
describeEventCategories_filters = (DescribeEventCategories -> Maybe [Filter])
-> (DescribeEventCategories
    -> Maybe [Filter] -> DescribeEventCategories)
-> Lens
     DescribeEventCategories
     DescribeEventCategories
     (Maybe [Filter])
     (Maybe [Filter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEventCategories' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:DescribeEventCategories' :: DescribeEventCategories -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: DescribeEventCategories
s@DescribeEventCategories' {} Maybe [Filter]
a -> DescribeEventCategories
s {$sel:filters:DescribeEventCategories' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: DescribeEventCategories) ((Maybe [Filter] -> f (Maybe [Filter]))
 -> DescribeEventCategories -> f DescribeEventCategories)
-> ((Maybe [Filter] -> f (Maybe [Filter]))
    -> Maybe [Filter] -> f (Maybe [Filter]))
-> (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribeEventCategories
-> f DescribeEventCategories
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Filter] [Filter] [Filter] [Filter]
-> Iso
     (Maybe [Filter]) (Maybe [Filter]) (Maybe [Filter]) (Maybe [Filter])
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 [Filter] [Filter] [Filter] [Filter]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Core.AWSRequest DescribeEventCategories where
  type
    AWSResponse DescribeEventCategories =
      DescribeEventCategoriesResponse
  request :: DescribeEventCategories -> Request DescribeEventCategories
request = Service
-> DescribeEventCategories -> Request DescribeEventCategories
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeEventCategories
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeEventCategories)))
response =
    Text
-> (Int
    -> ResponseHeaders
    -> [Node]
    -> Either String (AWSResponse DescribeEventCategories))
-> Logger
-> Service
-> Proxy DescribeEventCategories
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeEventCategories)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
    -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
      Text
"DescribeEventCategoriesResult"
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Maybe [EventCategoriesMap]
-> Int -> DescribeEventCategoriesResponse
DescribeEventCategoriesResponse'
            (Maybe [EventCategoriesMap]
 -> Int -> DescribeEventCategoriesResponse)
-> Either String (Maybe [EventCategoriesMap])
-> Either String (Int -> DescribeEventCategoriesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"EventCategoriesMapList"
                            Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
                            Either String [Node]
-> ([Node] -> Either String (Maybe [EventCategoriesMap]))
-> Either String (Maybe [EventCategoriesMap])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [EventCategoriesMap])
-> [Node] -> Either String (Maybe [EventCategoriesMap])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [EventCategoriesMap]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"EventCategoriesMap")
                        )
            Either String (Int -> DescribeEventCategoriesResponse)
-> Either String Int
-> Either String DescribeEventCategoriesResponse
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 DescribeEventCategories

instance Prelude.NFData DescribeEventCategories

instance Core.ToHeaders DescribeEventCategories where
  toHeaders :: DescribeEventCategories -> ResponseHeaders
toHeaders = ResponseHeaders -> DescribeEventCategories -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

instance Core.ToPath DescribeEventCategories where
  toPath :: DescribeEventCategories -> ByteString
toPath = ByteString -> DescribeEventCategories -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery DescribeEventCategories where
  toQuery :: DescribeEventCategories -> QueryString
toQuery DescribeEventCategories' {Maybe [Filter]
Maybe Text
filters :: Maybe [Filter]
sourceType :: Maybe Text
$sel:filters:DescribeEventCategories' :: DescribeEventCategories -> Maybe [Filter]
$sel:sourceType:DescribeEventCategories' :: DescribeEventCategories -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"Action"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"DescribeEventCategories" :: Prelude.ByteString),
        ByteString
"Version"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2014-10-31" :: Prelude.ByteString),
        ByteString
"SourceType" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
sourceType,
        ByteString
"Filters"
          ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
            (ByteString -> [Filter] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"Filter" ([Filter] -> QueryString) -> Maybe [Filter] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Filter]
filters)
      ]

-- | /See:/ 'newDescribeEventCategoriesResponse' smart constructor.
data DescribeEventCategoriesResponse = DescribeEventCategoriesResponse'
  { -- | A list of EventCategoriesMap data types.
    DescribeEventCategoriesResponse -> Maybe [EventCategoriesMap]
eventCategoriesMapList :: Prelude.Maybe [EventCategoriesMap],
    -- | The response's http status code.
    DescribeEventCategoriesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeEventCategoriesResponse
-> DescribeEventCategoriesResponse -> Bool
(DescribeEventCategoriesResponse
 -> DescribeEventCategoriesResponse -> Bool)
-> (DescribeEventCategoriesResponse
    -> DescribeEventCategoriesResponse -> Bool)
-> Eq DescribeEventCategoriesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeEventCategoriesResponse
-> DescribeEventCategoriesResponse -> Bool
$c/= :: DescribeEventCategoriesResponse
-> DescribeEventCategoriesResponse -> Bool
== :: DescribeEventCategoriesResponse
-> DescribeEventCategoriesResponse -> Bool
$c== :: DescribeEventCategoriesResponse
-> DescribeEventCategoriesResponse -> Bool
Prelude.Eq, ReadPrec [DescribeEventCategoriesResponse]
ReadPrec DescribeEventCategoriesResponse
Int -> ReadS DescribeEventCategoriesResponse
ReadS [DescribeEventCategoriesResponse]
(Int -> ReadS DescribeEventCategoriesResponse)
-> ReadS [DescribeEventCategoriesResponse]
-> ReadPrec DescribeEventCategoriesResponse
-> ReadPrec [DescribeEventCategoriesResponse]
-> Read DescribeEventCategoriesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeEventCategoriesResponse]
$creadListPrec :: ReadPrec [DescribeEventCategoriesResponse]
readPrec :: ReadPrec DescribeEventCategoriesResponse
$creadPrec :: ReadPrec DescribeEventCategoriesResponse
readList :: ReadS [DescribeEventCategoriesResponse]
$creadList :: ReadS [DescribeEventCategoriesResponse]
readsPrec :: Int -> ReadS DescribeEventCategoriesResponse
$creadsPrec :: Int -> ReadS DescribeEventCategoriesResponse
Prelude.Read, Int -> DescribeEventCategoriesResponse -> ShowS
[DescribeEventCategoriesResponse] -> ShowS
DescribeEventCategoriesResponse -> String
(Int -> DescribeEventCategoriesResponse -> ShowS)
-> (DescribeEventCategoriesResponse -> String)
-> ([DescribeEventCategoriesResponse] -> ShowS)
-> Show DescribeEventCategoriesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeEventCategoriesResponse] -> ShowS
$cshowList :: [DescribeEventCategoriesResponse] -> ShowS
show :: DescribeEventCategoriesResponse -> String
$cshow :: DescribeEventCategoriesResponse -> String
showsPrec :: Int -> DescribeEventCategoriesResponse -> ShowS
$cshowsPrec :: Int -> DescribeEventCategoriesResponse -> ShowS
Prelude.Show, (forall x.
 DescribeEventCategoriesResponse
 -> Rep DescribeEventCategoriesResponse x)
-> (forall x.
    Rep DescribeEventCategoriesResponse x
    -> DescribeEventCategoriesResponse)
-> Generic DescribeEventCategoriesResponse
forall x.
Rep DescribeEventCategoriesResponse x
-> DescribeEventCategoriesResponse
forall x.
DescribeEventCategoriesResponse
-> Rep DescribeEventCategoriesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeEventCategoriesResponse x
-> DescribeEventCategoriesResponse
$cfrom :: forall x.
DescribeEventCategoriesResponse
-> Rep DescribeEventCategoriesResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeEventCategoriesResponse' 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:
--
-- 'eventCategoriesMapList', 'describeEventCategoriesResponse_eventCategoriesMapList' - A list of EventCategoriesMap data types.
--
-- 'httpStatus', 'describeEventCategoriesResponse_httpStatus' - The response's http status code.
newDescribeEventCategoriesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeEventCategoriesResponse
newDescribeEventCategoriesResponse :: Int -> DescribeEventCategoriesResponse
newDescribeEventCategoriesResponse Int
pHttpStatus_ =
  DescribeEventCategoriesResponse' :: Maybe [EventCategoriesMap]
-> Int -> DescribeEventCategoriesResponse
DescribeEventCategoriesResponse'
    { $sel:eventCategoriesMapList:DescribeEventCategoriesResponse' :: Maybe [EventCategoriesMap]
eventCategoriesMapList =
        Maybe [EventCategoriesMap]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeEventCategoriesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A list of EventCategoriesMap data types.
describeEventCategoriesResponse_eventCategoriesMapList :: Lens.Lens' DescribeEventCategoriesResponse (Prelude.Maybe [EventCategoriesMap])
describeEventCategoriesResponse_eventCategoriesMapList :: (Maybe [EventCategoriesMap] -> f (Maybe [EventCategoriesMap]))
-> DescribeEventCategoriesResponse
-> f DescribeEventCategoriesResponse
describeEventCategoriesResponse_eventCategoriesMapList = (DescribeEventCategoriesResponse -> Maybe [EventCategoriesMap])
-> (DescribeEventCategoriesResponse
    -> Maybe [EventCategoriesMap] -> DescribeEventCategoriesResponse)
-> Lens
     DescribeEventCategoriesResponse
     DescribeEventCategoriesResponse
     (Maybe [EventCategoriesMap])
     (Maybe [EventCategoriesMap])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEventCategoriesResponse' {Maybe [EventCategoriesMap]
eventCategoriesMapList :: Maybe [EventCategoriesMap]
$sel:eventCategoriesMapList:DescribeEventCategoriesResponse' :: DescribeEventCategoriesResponse -> Maybe [EventCategoriesMap]
eventCategoriesMapList} -> Maybe [EventCategoriesMap]
eventCategoriesMapList) (\s :: DescribeEventCategoriesResponse
s@DescribeEventCategoriesResponse' {} Maybe [EventCategoriesMap]
a -> DescribeEventCategoriesResponse
s {$sel:eventCategoriesMapList:DescribeEventCategoriesResponse' :: Maybe [EventCategoriesMap]
eventCategoriesMapList = Maybe [EventCategoriesMap]
a} :: DescribeEventCategoriesResponse) ((Maybe [EventCategoriesMap] -> f (Maybe [EventCategoriesMap]))
 -> DescribeEventCategoriesResponse
 -> f DescribeEventCategoriesResponse)
-> ((Maybe [EventCategoriesMap] -> f (Maybe [EventCategoriesMap]))
    -> Maybe [EventCategoriesMap] -> f (Maybe [EventCategoriesMap]))
-> (Maybe [EventCategoriesMap] -> f (Maybe [EventCategoriesMap]))
-> DescribeEventCategoriesResponse
-> f DescribeEventCategoriesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [EventCategoriesMap]
  [EventCategoriesMap]
  [EventCategoriesMap]
  [EventCategoriesMap]
-> Iso
     (Maybe [EventCategoriesMap])
     (Maybe [EventCategoriesMap])
     (Maybe [EventCategoriesMap])
     (Maybe [EventCategoriesMap])
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
  [EventCategoriesMap]
  [EventCategoriesMap]
  [EventCategoriesMap]
  [EventCategoriesMap]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The response's http status code.
describeEventCategoriesResponse_httpStatus :: Lens.Lens' DescribeEventCategoriesResponse Prelude.Int
describeEventCategoriesResponse_httpStatus :: (Int -> f Int)
-> DescribeEventCategoriesResponse
-> f DescribeEventCategoriesResponse
describeEventCategoriesResponse_httpStatus = (DescribeEventCategoriesResponse -> Int)
-> (DescribeEventCategoriesResponse
    -> Int -> DescribeEventCategoriesResponse)
-> Lens
     DescribeEventCategoriesResponse
     DescribeEventCategoriesResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEventCategoriesResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeEventCategoriesResponse' :: DescribeEventCategoriesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeEventCategoriesResponse
s@DescribeEventCategoriesResponse' {} Int
a -> DescribeEventCategoriesResponse
s {$sel:httpStatus:DescribeEventCategoriesResponse' :: Int
httpStatus = Int
a} :: DescribeEventCategoriesResponse)

instance
  Prelude.NFData
    DescribeEventCategoriesResponse