{-# 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.AppIntegrationS.ListEventIntegrationAssociations
-- 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)
--
-- Returns a paginated list of event integration associations in the
-- account.
module Amazonka.AppIntegrationS.ListEventIntegrationAssociations
  ( -- * Creating a Request
    ListEventIntegrationAssociations (..),
    newListEventIntegrationAssociations,

    -- * Request Lenses
    listEventIntegrationAssociations_nextToken,
    listEventIntegrationAssociations_maxResults,
    listEventIntegrationAssociations_eventIntegrationName,

    -- * Destructuring the Response
    ListEventIntegrationAssociationsResponse (..),
    newListEventIntegrationAssociationsResponse,

    -- * Response Lenses
    listEventIntegrationAssociationsResponse_eventIntegrationAssociations,
    listEventIntegrationAssociationsResponse_nextToken,
    listEventIntegrationAssociationsResponse_httpStatus,
  )
where

import Amazonka.AppIntegrationS.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:/ 'newListEventIntegrationAssociations' smart constructor.
data ListEventIntegrationAssociations = ListEventIntegrationAssociations'
  { -- | The token for the next set of results. Use the value returned in the
    -- previous response in the next request to retrieve the next set of
    -- results.
    ListEventIntegrationAssociations -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of results to return per page.
    ListEventIntegrationAssociations -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The name of the event integration.
    ListEventIntegrationAssociations -> Text
eventIntegrationName :: Prelude.Text
  }
  deriving (ListEventIntegrationAssociations
-> ListEventIntegrationAssociations -> Bool
(ListEventIntegrationAssociations
 -> ListEventIntegrationAssociations -> Bool)
-> (ListEventIntegrationAssociations
    -> ListEventIntegrationAssociations -> Bool)
-> Eq ListEventIntegrationAssociations
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListEventIntegrationAssociations
-> ListEventIntegrationAssociations -> Bool
$c/= :: ListEventIntegrationAssociations
-> ListEventIntegrationAssociations -> Bool
== :: ListEventIntegrationAssociations
-> ListEventIntegrationAssociations -> Bool
$c== :: ListEventIntegrationAssociations
-> ListEventIntegrationAssociations -> Bool
Prelude.Eq, ReadPrec [ListEventIntegrationAssociations]
ReadPrec ListEventIntegrationAssociations
Int -> ReadS ListEventIntegrationAssociations
ReadS [ListEventIntegrationAssociations]
(Int -> ReadS ListEventIntegrationAssociations)
-> ReadS [ListEventIntegrationAssociations]
-> ReadPrec ListEventIntegrationAssociations
-> ReadPrec [ListEventIntegrationAssociations]
-> Read ListEventIntegrationAssociations
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListEventIntegrationAssociations]
$creadListPrec :: ReadPrec [ListEventIntegrationAssociations]
readPrec :: ReadPrec ListEventIntegrationAssociations
$creadPrec :: ReadPrec ListEventIntegrationAssociations
readList :: ReadS [ListEventIntegrationAssociations]
$creadList :: ReadS [ListEventIntegrationAssociations]
readsPrec :: Int -> ReadS ListEventIntegrationAssociations
$creadsPrec :: Int -> ReadS ListEventIntegrationAssociations
Prelude.Read, Int -> ListEventIntegrationAssociations -> ShowS
[ListEventIntegrationAssociations] -> ShowS
ListEventIntegrationAssociations -> String
(Int -> ListEventIntegrationAssociations -> ShowS)
-> (ListEventIntegrationAssociations -> String)
-> ([ListEventIntegrationAssociations] -> ShowS)
-> Show ListEventIntegrationAssociations
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListEventIntegrationAssociations] -> ShowS
$cshowList :: [ListEventIntegrationAssociations] -> ShowS
show :: ListEventIntegrationAssociations -> String
$cshow :: ListEventIntegrationAssociations -> String
showsPrec :: Int -> ListEventIntegrationAssociations -> ShowS
$cshowsPrec :: Int -> ListEventIntegrationAssociations -> ShowS
Prelude.Show, (forall x.
 ListEventIntegrationAssociations
 -> Rep ListEventIntegrationAssociations x)
-> (forall x.
    Rep ListEventIntegrationAssociations x
    -> ListEventIntegrationAssociations)
-> Generic ListEventIntegrationAssociations
forall x.
Rep ListEventIntegrationAssociations x
-> ListEventIntegrationAssociations
forall x.
ListEventIntegrationAssociations
-> Rep ListEventIntegrationAssociations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListEventIntegrationAssociations x
-> ListEventIntegrationAssociations
$cfrom :: forall x.
ListEventIntegrationAssociations
-> Rep ListEventIntegrationAssociations x
Prelude.Generic)

-- |
-- Create a value of 'ListEventIntegrationAssociations' 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:
--
-- 'nextToken', 'listEventIntegrationAssociations_nextToken' - The token for the next set of results. Use the value returned in the
-- previous response in the next request to retrieve the next set of
-- results.
--
-- 'maxResults', 'listEventIntegrationAssociations_maxResults' - The maximum number of results to return per page.
--
-- 'eventIntegrationName', 'listEventIntegrationAssociations_eventIntegrationName' - The name of the event integration.
newListEventIntegrationAssociations ::
  -- | 'eventIntegrationName'
  Prelude.Text ->
  ListEventIntegrationAssociations
newListEventIntegrationAssociations :: Text -> ListEventIntegrationAssociations
newListEventIntegrationAssociations
  Text
pEventIntegrationName_ =
    ListEventIntegrationAssociations' :: Maybe Text
-> Maybe Natural -> Text -> ListEventIntegrationAssociations
ListEventIntegrationAssociations'
      { $sel:nextToken:ListEventIntegrationAssociations' :: Maybe Text
nextToken =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:maxResults:ListEventIntegrationAssociations' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:eventIntegrationName:ListEventIntegrationAssociations' :: Text
eventIntegrationName =
          Text
pEventIntegrationName_
      }

-- | The token for the next set of results. Use the value returned in the
-- previous response in the next request to retrieve the next set of
-- results.
listEventIntegrationAssociations_nextToken :: Lens.Lens' ListEventIntegrationAssociations (Prelude.Maybe Prelude.Text)
listEventIntegrationAssociations_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListEventIntegrationAssociations
-> f ListEventIntegrationAssociations
listEventIntegrationAssociations_nextToken = (ListEventIntegrationAssociations -> Maybe Text)
-> (ListEventIntegrationAssociations
    -> Maybe Text -> ListEventIntegrationAssociations)
-> Lens
     ListEventIntegrationAssociations
     ListEventIntegrationAssociations
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEventIntegrationAssociations' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListEventIntegrationAssociations' :: ListEventIntegrationAssociations -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListEventIntegrationAssociations
s@ListEventIntegrationAssociations' {} Maybe Text
a -> ListEventIntegrationAssociations
s {$sel:nextToken:ListEventIntegrationAssociations' :: Maybe Text
nextToken = Maybe Text
a} :: ListEventIntegrationAssociations)

-- | The maximum number of results to return per page.
listEventIntegrationAssociations_maxResults :: Lens.Lens' ListEventIntegrationAssociations (Prelude.Maybe Prelude.Natural)
listEventIntegrationAssociations_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListEventIntegrationAssociations
-> f ListEventIntegrationAssociations
listEventIntegrationAssociations_maxResults = (ListEventIntegrationAssociations -> Maybe Natural)
-> (ListEventIntegrationAssociations
    -> Maybe Natural -> ListEventIntegrationAssociations)
-> Lens
     ListEventIntegrationAssociations
     ListEventIntegrationAssociations
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEventIntegrationAssociations' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListEventIntegrationAssociations' :: ListEventIntegrationAssociations -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListEventIntegrationAssociations
s@ListEventIntegrationAssociations' {} Maybe Natural
a -> ListEventIntegrationAssociations
s {$sel:maxResults:ListEventIntegrationAssociations' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListEventIntegrationAssociations)

-- | The name of the event integration.
listEventIntegrationAssociations_eventIntegrationName :: Lens.Lens' ListEventIntegrationAssociations Prelude.Text
listEventIntegrationAssociations_eventIntegrationName :: (Text -> f Text)
-> ListEventIntegrationAssociations
-> f ListEventIntegrationAssociations
listEventIntegrationAssociations_eventIntegrationName = (ListEventIntegrationAssociations -> Text)
-> (ListEventIntegrationAssociations
    -> Text -> ListEventIntegrationAssociations)
-> Lens
     ListEventIntegrationAssociations
     ListEventIntegrationAssociations
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEventIntegrationAssociations' {Text
eventIntegrationName :: Text
$sel:eventIntegrationName:ListEventIntegrationAssociations' :: ListEventIntegrationAssociations -> Text
eventIntegrationName} -> Text
eventIntegrationName) (\s :: ListEventIntegrationAssociations
s@ListEventIntegrationAssociations' {} Text
a -> ListEventIntegrationAssociations
s {$sel:eventIntegrationName:ListEventIntegrationAssociations' :: Text
eventIntegrationName = Text
a} :: ListEventIntegrationAssociations)

instance
  Core.AWSRequest
    ListEventIntegrationAssociations
  where
  type
    AWSResponse ListEventIntegrationAssociations =
      ListEventIntegrationAssociationsResponse
  request :: ListEventIntegrationAssociations
-> Request ListEventIntegrationAssociations
request = Service
-> ListEventIntegrationAssociations
-> Request ListEventIntegrationAssociations
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy ListEventIntegrationAssociations
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse ListEventIntegrationAssociations)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListEventIntegrationAssociations))
-> Logger
-> Service
-> Proxy ListEventIntegrationAssociations
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse ListEventIntegrationAssociations)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe (NonEmpty EventIntegrationAssociation)
-> Maybe Text -> Int -> ListEventIntegrationAssociationsResponse
ListEventIntegrationAssociationsResponse'
            (Maybe (NonEmpty EventIntegrationAssociation)
 -> Maybe Text -> Int -> ListEventIntegrationAssociationsResponse)
-> Either String (Maybe (NonEmpty EventIntegrationAssociation))
-> Either
     String
     (Maybe Text -> Int -> ListEventIntegrationAssociationsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text
-> Either String (Maybe (NonEmpty EventIntegrationAssociation))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"EventIntegrationAssociations")
            Either
  String
  (Maybe Text -> Int -> ListEventIntegrationAssociationsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListEventIntegrationAssociationsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextToken")
            Either String (Int -> ListEventIntegrationAssociationsResponse)
-> Either String Int
-> Either String ListEventIntegrationAssociationsResponse
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
    ListEventIntegrationAssociations

instance
  Prelude.NFData
    ListEventIntegrationAssociations

instance
  Core.ToHeaders
    ListEventIntegrationAssociations
  where
  toHeaders :: ListEventIntegrationAssociations -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> ListEventIntegrationAssociations -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToPath ListEventIntegrationAssociations where
  toPath :: ListEventIntegrationAssociations -> ByteString
toPath ListEventIntegrationAssociations' {Maybe Natural
Maybe Text
Text
eventIntegrationName :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:eventIntegrationName:ListEventIntegrationAssociations' :: ListEventIntegrationAssociations -> Text
$sel:maxResults:ListEventIntegrationAssociations' :: ListEventIntegrationAssociations -> Maybe Natural
$sel:nextToken:ListEventIntegrationAssociations' :: ListEventIntegrationAssociations -> Maybe Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/eventIntegrations/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
eventIntegrationName,
        ByteString
"/associations"
      ]

instance
  Core.ToQuery
    ListEventIntegrationAssociations
  where
  toQuery :: ListEventIntegrationAssociations -> QueryString
toQuery ListEventIntegrationAssociations' {Maybe Natural
Maybe Text
Text
eventIntegrationName :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:eventIntegrationName:ListEventIntegrationAssociations' :: ListEventIntegrationAssociations -> Text
$sel:maxResults:ListEventIntegrationAssociations' :: ListEventIntegrationAssociations -> Maybe Natural
$sel:nextToken:ListEventIntegrationAssociations' :: ListEventIntegrationAssociations -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
        ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
      ]

-- | /See:/ 'newListEventIntegrationAssociationsResponse' smart constructor.
data ListEventIntegrationAssociationsResponse = ListEventIntegrationAssociationsResponse'
  { -- | The event integration associations.
    ListEventIntegrationAssociationsResponse
-> Maybe (NonEmpty EventIntegrationAssociation)
eventIntegrationAssociations :: Prelude.Maybe (Prelude.NonEmpty EventIntegrationAssociation),
    -- | If there are additional results, this is the token for the next set of
    -- results.
    ListEventIntegrationAssociationsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListEventIntegrationAssociationsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListEventIntegrationAssociationsResponse
-> ListEventIntegrationAssociationsResponse -> Bool
(ListEventIntegrationAssociationsResponse
 -> ListEventIntegrationAssociationsResponse -> Bool)
-> (ListEventIntegrationAssociationsResponse
    -> ListEventIntegrationAssociationsResponse -> Bool)
-> Eq ListEventIntegrationAssociationsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListEventIntegrationAssociationsResponse
-> ListEventIntegrationAssociationsResponse -> Bool
$c/= :: ListEventIntegrationAssociationsResponse
-> ListEventIntegrationAssociationsResponse -> Bool
== :: ListEventIntegrationAssociationsResponse
-> ListEventIntegrationAssociationsResponse -> Bool
$c== :: ListEventIntegrationAssociationsResponse
-> ListEventIntegrationAssociationsResponse -> Bool
Prelude.Eq, ReadPrec [ListEventIntegrationAssociationsResponse]
ReadPrec ListEventIntegrationAssociationsResponse
Int -> ReadS ListEventIntegrationAssociationsResponse
ReadS [ListEventIntegrationAssociationsResponse]
(Int -> ReadS ListEventIntegrationAssociationsResponse)
-> ReadS [ListEventIntegrationAssociationsResponse]
-> ReadPrec ListEventIntegrationAssociationsResponse
-> ReadPrec [ListEventIntegrationAssociationsResponse]
-> Read ListEventIntegrationAssociationsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListEventIntegrationAssociationsResponse]
$creadListPrec :: ReadPrec [ListEventIntegrationAssociationsResponse]
readPrec :: ReadPrec ListEventIntegrationAssociationsResponse
$creadPrec :: ReadPrec ListEventIntegrationAssociationsResponse
readList :: ReadS [ListEventIntegrationAssociationsResponse]
$creadList :: ReadS [ListEventIntegrationAssociationsResponse]
readsPrec :: Int -> ReadS ListEventIntegrationAssociationsResponse
$creadsPrec :: Int -> ReadS ListEventIntegrationAssociationsResponse
Prelude.Read, Int -> ListEventIntegrationAssociationsResponse -> ShowS
[ListEventIntegrationAssociationsResponse] -> ShowS
ListEventIntegrationAssociationsResponse -> String
(Int -> ListEventIntegrationAssociationsResponse -> ShowS)
-> (ListEventIntegrationAssociationsResponse -> String)
-> ([ListEventIntegrationAssociationsResponse] -> ShowS)
-> Show ListEventIntegrationAssociationsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListEventIntegrationAssociationsResponse] -> ShowS
$cshowList :: [ListEventIntegrationAssociationsResponse] -> ShowS
show :: ListEventIntegrationAssociationsResponse -> String
$cshow :: ListEventIntegrationAssociationsResponse -> String
showsPrec :: Int -> ListEventIntegrationAssociationsResponse -> ShowS
$cshowsPrec :: Int -> ListEventIntegrationAssociationsResponse -> ShowS
Prelude.Show, (forall x.
 ListEventIntegrationAssociationsResponse
 -> Rep ListEventIntegrationAssociationsResponse x)
-> (forall x.
    Rep ListEventIntegrationAssociationsResponse x
    -> ListEventIntegrationAssociationsResponse)
-> Generic ListEventIntegrationAssociationsResponse
forall x.
Rep ListEventIntegrationAssociationsResponse x
-> ListEventIntegrationAssociationsResponse
forall x.
ListEventIntegrationAssociationsResponse
-> Rep ListEventIntegrationAssociationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListEventIntegrationAssociationsResponse x
-> ListEventIntegrationAssociationsResponse
$cfrom :: forall x.
ListEventIntegrationAssociationsResponse
-> Rep ListEventIntegrationAssociationsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListEventIntegrationAssociationsResponse' 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:
--
-- 'eventIntegrationAssociations', 'listEventIntegrationAssociationsResponse_eventIntegrationAssociations' - The event integration associations.
--
-- 'nextToken', 'listEventIntegrationAssociationsResponse_nextToken' - If there are additional results, this is the token for the next set of
-- results.
--
-- 'httpStatus', 'listEventIntegrationAssociationsResponse_httpStatus' - The response's http status code.
newListEventIntegrationAssociationsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListEventIntegrationAssociationsResponse
newListEventIntegrationAssociationsResponse :: Int -> ListEventIntegrationAssociationsResponse
newListEventIntegrationAssociationsResponse
  Int
pHttpStatus_ =
    ListEventIntegrationAssociationsResponse' :: Maybe (NonEmpty EventIntegrationAssociation)
-> Maybe Text -> Int -> ListEventIntegrationAssociationsResponse
ListEventIntegrationAssociationsResponse'
      { $sel:eventIntegrationAssociations:ListEventIntegrationAssociationsResponse' :: Maybe (NonEmpty EventIntegrationAssociation)
eventIntegrationAssociations =
          Maybe (NonEmpty EventIntegrationAssociation)
forall a. Maybe a
Prelude.Nothing,
        $sel:nextToken:ListEventIntegrationAssociationsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:ListEventIntegrationAssociationsResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The event integration associations.
listEventIntegrationAssociationsResponse_eventIntegrationAssociations :: Lens.Lens' ListEventIntegrationAssociationsResponse (Prelude.Maybe (Prelude.NonEmpty EventIntegrationAssociation))
listEventIntegrationAssociationsResponse_eventIntegrationAssociations :: (Maybe (NonEmpty EventIntegrationAssociation)
 -> f (Maybe (NonEmpty EventIntegrationAssociation)))
-> ListEventIntegrationAssociationsResponse
-> f ListEventIntegrationAssociationsResponse
listEventIntegrationAssociationsResponse_eventIntegrationAssociations = (ListEventIntegrationAssociationsResponse
 -> Maybe (NonEmpty EventIntegrationAssociation))
-> (ListEventIntegrationAssociationsResponse
    -> Maybe (NonEmpty EventIntegrationAssociation)
    -> ListEventIntegrationAssociationsResponse)
-> Lens
     ListEventIntegrationAssociationsResponse
     ListEventIntegrationAssociationsResponse
     (Maybe (NonEmpty EventIntegrationAssociation))
     (Maybe (NonEmpty EventIntegrationAssociation))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEventIntegrationAssociationsResponse' {Maybe (NonEmpty EventIntegrationAssociation)
eventIntegrationAssociations :: Maybe (NonEmpty EventIntegrationAssociation)
$sel:eventIntegrationAssociations:ListEventIntegrationAssociationsResponse' :: ListEventIntegrationAssociationsResponse
-> Maybe (NonEmpty EventIntegrationAssociation)
eventIntegrationAssociations} -> Maybe (NonEmpty EventIntegrationAssociation)
eventIntegrationAssociations) (\s :: ListEventIntegrationAssociationsResponse
s@ListEventIntegrationAssociationsResponse' {} Maybe (NonEmpty EventIntegrationAssociation)
a -> ListEventIntegrationAssociationsResponse
s {$sel:eventIntegrationAssociations:ListEventIntegrationAssociationsResponse' :: Maybe (NonEmpty EventIntegrationAssociation)
eventIntegrationAssociations = Maybe (NonEmpty EventIntegrationAssociation)
a} :: ListEventIntegrationAssociationsResponse) ((Maybe (NonEmpty EventIntegrationAssociation)
  -> f (Maybe (NonEmpty EventIntegrationAssociation)))
 -> ListEventIntegrationAssociationsResponse
 -> f ListEventIntegrationAssociationsResponse)
-> ((Maybe (NonEmpty EventIntegrationAssociation)
     -> f (Maybe (NonEmpty EventIntegrationAssociation)))
    -> Maybe (NonEmpty EventIntegrationAssociation)
    -> f (Maybe (NonEmpty EventIntegrationAssociation)))
-> (Maybe (NonEmpty EventIntegrationAssociation)
    -> f (Maybe (NonEmpty EventIntegrationAssociation)))
-> ListEventIntegrationAssociationsResponse
-> f ListEventIntegrationAssociationsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (NonEmpty EventIntegrationAssociation)
  (NonEmpty EventIntegrationAssociation)
  (NonEmpty EventIntegrationAssociation)
  (NonEmpty EventIntegrationAssociation)
-> Iso
     (Maybe (NonEmpty EventIntegrationAssociation))
     (Maybe (NonEmpty EventIntegrationAssociation))
     (Maybe (NonEmpty EventIntegrationAssociation))
     (Maybe (NonEmpty EventIntegrationAssociation))
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
  (NonEmpty EventIntegrationAssociation)
  (NonEmpty EventIntegrationAssociation)
  (NonEmpty EventIntegrationAssociation)
  (NonEmpty EventIntegrationAssociation)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | If there are additional results, this is the token for the next set of
-- results.
listEventIntegrationAssociationsResponse_nextToken :: Lens.Lens' ListEventIntegrationAssociationsResponse (Prelude.Maybe Prelude.Text)
listEventIntegrationAssociationsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListEventIntegrationAssociationsResponse
-> f ListEventIntegrationAssociationsResponse
listEventIntegrationAssociationsResponse_nextToken = (ListEventIntegrationAssociationsResponse -> Maybe Text)
-> (ListEventIntegrationAssociationsResponse
    -> Maybe Text -> ListEventIntegrationAssociationsResponse)
-> Lens
     ListEventIntegrationAssociationsResponse
     ListEventIntegrationAssociationsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEventIntegrationAssociationsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListEventIntegrationAssociationsResponse' :: ListEventIntegrationAssociationsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListEventIntegrationAssociationsResponse
s@ListEventIntegrationAssociationsResponse' {} Maybe Text
a -> ListEventIntegrationAssociationsResponse
s {$sel:nextToken:ListEventIntegrationAssociationsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListEventIntegrationAssociationsResponse)

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

instance
  Prelude.NFData
    ListEventIntegrationAssociationsResponse