{-# 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.NetworkManager.GetTransitGatewayConnectPeerAssociations
-- 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 information about one or more of your transit gateway Connect peer
-- associations in a global network.
--
-- This operation returns paginated results.
module Amazonka.NetworkManager.GetTransitGatewayConnectPeerAssociations
  ( -- * Creating a Request
    GetTransitGatewayConnectPeerAssociations (..),
    newGetTransitGatewayConnectPeerAssociations,

    -- * Request Lenses
    getTransitGatewayConnectPeerAssociations_transitGatewayConnectPeerArns,
    getTransitGatewayConnectPeerAssociations_nextToken,
    getTransitGatewayConnectPeerAssociations_maxResults,
    getTransitGatewayConnectPeerAssociations_globalNetworkId,

    -- * Destructuring the Response
    GetTransitGatewayConnectPeerAssociationsResponse (..),
    newGetTransitGatewayConnectPeerAssociationsResponse,

    -- * Response Lenses
    getTransitGatewayConnectPeerAssociationsResponse_nextToken,
    getTransitGatewayConnectPeerAssociationsResponse_transitGatewayConnectPeerAssociations,
    getTransitGatewayConnectPeerAssociationsResponse_httpStatus,
  )
where

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

-- | /See:/ 'newGetTransitGatewayConnectPeerAssociations' smart constructor.
data GetTransitGatewayConnectPeerAssociations = GetTransitGatewayConnectPeerAssociations'
  { -- | One or more transit gateway Connect peer Amazon Resource Names (ARNs).
    GetTransitGatewayConnectPeerAssociations -> Maybe [Text]
transitGatewayConnectPeerArns :: Prelude.Maybe [Prelude.Text],
    -- | The token for the next page of results.
    GetTransitGatewayConnectPeerAssociations -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of results to return.
    GetTransitGatewayConnectPeerAssociations -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The ID of the global network.
    GetTransitGatewayConnectPeerAssociations -> Text
globalNetworkId :: Prelude.Text
  }
  deriving (GetTransitGatewayConnectPeerAssociations
-> GetTransitGatewayConnectPeerAssociations -> Bool
(GetTransitGatewayConnectPeerAssociations
 -> GetTransitGatewayConnectPeerAssociations -> Bool)
-> (GetTransitGatewayConnectPeerAssociations
    -> GetTransitGatewayConnectPeerAssociations -> Bool)
-> Eq GetTransitGatewayConnectPeerAssociations
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetTransitGatewayConnectPeerAssociations
-> GetTransitGatewayConnectPeerAssociations -> Bool
$c/= :: GetTransitGatewayConnectPeerAssociations
-> GetTransitGatewayConnectPeerAssociations -> Bool
== :: GetTransitGatewayConnectPeerAssociations
-> GetTransitGatewayConnectPeerAssociations -> Bool
$c== :: GetTransitGatewayConnectPeerAssociations
-> GetTransitGatewayConnectPeerAssociations -> Bool
Prelude.Eq, ReadPrec [GetTransitGatewayConnectPeerAssociations]
ReadPrec GetTransitGatewayConnectPeerAssociations
Int -> ReadS GetTransitGatewayConnectPeerAssociations
ReadS [GetTransitGatewayConnectPeerAssociations]
(Int -> ReadS GetTransitGatewayConnectPeerAssociations)
-> ReadS [GetTransitGatewayConnectPeerAssociations]
-> ReadPrec GetTransitGatewayConnectPeerAssociations
-> ReadPrec [GetTransitGatewayConnectPeerAssociations]
-> Read GetTransitGatewayConnectPeerAssociations
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetTransitGatewayConnectPeerAssociations]
$creadListPrec :: ReadPrec [GetTransitGatewayConnectPeerAssociations]
readPrec :: ReadPrec GetTransitGatewayConnectPeerAssociations
$creadPrec :: ReadPrec GetTransitGatewayConnectPeerAssociations
readList :: ReadS [GetTransitGatewayConnectPeerAssociations]
$creadList :: ReadS [GetTransitGatewayConnectPeerAssociations]
readsPrec :: Int -> ReadS GetTransitGatewayConnectPeerAssociations
$creadsPrec :: Int -> ReadS GetTransitGatewayConnectPeerAssociations
Prelude.Read, Int -> GetTransitGatewayConnectPeerAssociations -> ShowS
[GetTransitGatewayConnectPeerAssociations] -> ShowS
GetTransitGatewayConnectPeerAssociations -> String
(Int -> GetTransitGatewayConnectPeerAssociations -> ShowS)
-> (GetTransitGatewayConnectPeerAssociations -> String)
-> ([GetTransitGatewayConnectPeerAssociations] -> ShowS)
-> Show GetTransitGatewayConnectPeerAssociations
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetTransitGatewayConnectPeerAssociations] -> ShowS
$cshowList :: [GetTransitGatewayConnectPeerAssociations] -> ShowS
show :: GetTransitGatewayConnectPeerAssociations -> String
$cshow :: GetTransitGatewayConnectPeerAssociations -> String
showsPrec :: Int -> GetTransitGatewayConnectPeerAssociations -> ShowS
$cshowsPrec :: Int -> GetTransitGatewayConnectPeerAssociations -> ShowS
Prelude.Show, (forall x.
 GetTransitGatewayConnectPeerAssociations
 -> Rep GetTransitGatewayConnectPeerAssociations x)
-> (forall x.
    Rep GetTransitGatewayConnectPeerAssociations x
    -> GetTransitGatewayConnectPeerAssociations)
-> Generic GetTransitGatewayConnectPeerAssociations
forall x.
Rep GetTransitGatewayConnectPeerAssociations x
-> GetTransitGatewayConnectPeerAssociations
forall x.
GetTransitGatewayConnectPeerAssociations
-> Rep GetTransitGatewayConnectPeerAssociations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetTransitGatewayConnectPeerAssociations x
-> GetTransitGatewayConnectPeerAssociations
$cfrom :: forall x.
GetTransitGatewayConnectPeerAssociations
-> Rep GetTransitGatewayConnectPeerAssociations x
Prelude.Generic)

-- |
-- Create a value of 'GetTransitGatewayConnectPeerAssociations' 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:
--
-- 'transitGatewayConnectPeerArns', 'getTransitGatewayConnectPeerAssociations_transitGatewayConnectPeerArns' - One or more transit gateway Connect peer Amazon Resource Names (ARNs).
--
-- 'nextToken', 'getTransitGatewayConnectPeerAssociations_nextToken' - The token for the next page of results.
--
-- 'maxResults', 'getTransitGatewayConnectPeerAssociations_maxResults' - The maximum number of results to return.
--
-- 'globalNetworkId', 'getTransitGatewayConnectPeerAssociations_globalNetworkId' - The ID of the global network.
newGetTransitGatewayConnectPeerAssociations ::
  -- | 'globalNetworkId'
  Prelude.Text ->
  GetTransitGatewayConnectPeerAssociations
newGetTransitGatewayConnectPeerAssociations :: Text -> GetTransitGatewayConnectPeerAssociations
newGetTransitGatewayConnectPeerAssociations
  Text
pGlobalNetworkId_ =
    GetTransitGatewayConnectPeerAssociations' :: Maybe [Text]
-> Maybe Text
-> Maybe Natural
-> Text
-> GetTransitGatewayConnectPeerAssociations
GetTransitGatewayConnectPeerAssociations'
      { $sel:transitGatewayConnectPeerArns:GetTransitGatewayConnectPeerAssociations' :: Maybe [Text]
transitGatewayConnectPeerArns =
          Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
        $sel:nextToken:GetTransitGatewayConnectPeerAssociations' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:maxResults:GetTransitGatewayConnectPeerAssociations' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:globalNetworkId:GetTransitGatewayConnectPeerAssociations' :: Text
globalNetworkId =
          Text
pGlobalNetworkId_
      }

-- | One or more transit gateway Connect peer Amazon Resource Names (ARNs).
getTransitGatewayConnectPeerAssociations_transitGatewayConnectPeerArns :: Lens.Lens' GetTransitGatewayConnectPeerAssociations (Prelude.Maybe [Prelude.Text])
getTransitGatewayConnectPeerAssociations_transitGatewayConnectPeerArns :: (Maybe [Text] -> f (Maybe [Text]))
-> GetTransitGatewayConnectPeerAssociations
-> f GetTransitGatewayConnectPeerAssociations
getTransitGatewayConnectPeerAssociations_transitGatewayConnectPeerArns = (GetTransitGatewayConnectPeerAssociations -> Maybe [Text])
-> (GetTransitGatewayConnectPeerAssociations
    -> Maybe [Text] -> GetTransitGatewayConnectPeerAssociations)
-> Lens
     GetTransitGatewayConnectPeerAssociations
     GetTransitGatewayConnectPeerAssociations
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTransitGatewayConnectPeerAssociations' {Maybe [Text]
transitGatewayConnectPeerArns :: Maybe [Text]
$sel:transitGatewayConnectPeerArns:GetTransitGatewayConnectPeerAssociations' :: GetTransitGatewayConnectPeerAssociations -> Maybe [Text]
transitGatewayConnectPeerArns} -> Maybe [Text]
transitGatewayConnectPeerArns) (\s :: GetTransitGatewayConnectPeerAssociations
s@GetTransitGatewayConnectPeerAssociations' {} Maybe [Text]
a -> GetTransitGatewayConnectPeerAssociations
s {$sel:transitGatewayConnectPeerArns:GetTransitGatewayConnectPeerAssociations' :: Maybe [Text]
transitGatewayConnectPeerArns = Maybe [Text]
a} :: GetTransitGatewayConnectPeerAssociations) ((Maybe [Text] -> f (Maybe [Text]))
 -> GetTransitGatewayConnectPeerAssociations
 -> f GetTransitGatewayConnectPeerAssociations)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> GetTransitGatewayConnectPeerAssociations
-> f GetTransitGatewayConnectPeerAssociations
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The token for the next page of results.
getTransitGatewayConnectPeerAssociations_nextToken :: Lens.Lens' GetTransitGatewayConnectPeerAssociations (Prelude.Maybe Prelude.Text)
getTransitGatewayConnectPeerAssociations_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetTransitGatewayConnectPeerAssociations
-> f GetTransitGatewayConnectPeerAssociations
getTransitGatewayConnectPeerAssociations_nextToken = (GetTransitGatewayConnectPeerAssociations -> Maybe Text)
-> (GetTransitGatewayConnectPeerAssociations
    -> Maybe Text -> GetTransitGatewayConnectPeerAssociations)
-> Lens
     GetTransitGatewayConnectPeerAssociations
     GetTransitGatewayConnectPeerAssociations
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTransitGatewayConnectPeerAssociations' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetTransitGatewayConnectPeerAssociations' :: GetTransitGatewayConnectPeerAssociations -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetTransitGatewayConnectPeerAssociations
s@GetTransitGatewayConnectPeerAssociations' {} Maybe Text
a -> GetTransitGatewayConnectPeerAssociations
s {$sel:nextToken:GetTransitGatewayConnectPeerAssociations' :: Maybe Text
nextToken = Maybe Text
a} :: GetTransitGatewayConnectPeerAssociations)

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

-- | The ID of the global network.
getTransitGatewayConnectPeerAssociations_globalNetworkId :: Lens.Lens' GetTransitGatewayConnectPeerAssociations Prelude.Text
getTransitGatewayConnectPeerAssociations_globalNetworkId :: (Text -> f Text)
-> GetTransitGatewayConnectPeerAssociations
-> f GetTransitGatewayConnectPeerAssociations
getTransitGatewayConnectPeerAssociations_globalNetworkId = (GetTransitGatewayConnectPeerAssociations -> Text)
-> (GetTransitGatewayConnectPeerAssociations
    -> Text -> GetTransitGatewayConnectPeerAssociations)
-> Lens
     GetTransitGatewayConnectPeerAssociations
     GetTransitGatewayConnectPeerAssociations
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTransitGatewayConnectPeerAssociations' {Text
globalNetworkId :: Text
$sel:globalNetworkId:GetTransitGatewayConnectPeerAssociations' :: GetTransitGatewayConnectPeerAssociations -> Text
globalNetworkId} -> Text
globalNetworkId) (\s :: GetTransitGatewayConnectPeerAssociations
s@GetTransitGatewayConnectPeerAssociations' {} Text
a -> GetTransitGatewayConnectPeerAssociations
s {$sel:globalNetworkId:GetTransitGatewayConnectPeerAssociations' :: Text
globalNetworkId = Text
a} :: GetTransitGatewayConnectPeerAssociations)

instance
  Core.AWSPager
    GetTransitGatewayConnectPeerAssociations
  where
  page :: GetTransitGatewayConnectPeerAssociations
-> AWSResponse GetTransitGatewayConnectPeerAssociations
-> Maybe GetTransitGatewayConnectPeerAssociations
page GetTransitGatewayConnectPeerAssociations
rq AWSResponse GetTransitGatewayConnectPeerAssociations
rs
    | Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse GetTransitGatewayConnectPeerAssociations
GetTransitGatewayConnectPeerAssociationsResponse
rs
            GetTransitGatewayConnectPeerAssociationsResponse
-> Getting
     (First Text) GetTransitGatewayConnectPeerAssociationsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetTransitGatewayConnectPeerAssociationsResponse
-> Const
     (First Text) GetTransitGatewayConnectPeerAssociationsResponse
Lens' GetTransitGatewayConnectPeerAssociationsResponse (Maybe Text)
getTransitGatewayConnectPeerAssociationsResponse_nextToken
              ((Maybe Text -> Const (First Text) (Maybe Text))
 -> GetTransitGatewayConnectPeerAssociationsResponse
 -> Const
      (First Text) GetTransitGatewayConnectPeerAssociationsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
     (First Text) GetTransitGatewayConnectPeerAssociationsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe GetTransitGatewayConnectPeerAssociations
forall a. Maybe a
Prelude.Nothing
    | Maybe [TransitGatewayConnectPeerAssociation] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse GetTransitGatewayConnectPeerAssociations
GetTransitGatewayConnectPeerAssociationsResponse
rs
            GetTransitGatewayConnectPeerAssociationsResponse
-> Getting
     (First [TransitGatewayConnectPeerAssociation])
     GetTransitGatewayConnectPeerAssociationsResponse
     [TransitGatewayConnectPeerAssociation]
-> Maybe [TransitGatewayConnectPeerAssociation]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [TransitGatewayConnectPeerAssociation]
 -> Const
      (First [TransitGatewayConnectPeerAssociation])
      (Maybe [TransitGatewayConnectPeerAssociation]))
-> GetTransitGatewayConnectPeerAssociationsResponse
-> Const
     (First [TransitGatewayConnectPeerAssociation])
     GetTransitGatewayConnectPeerAssociationsResponse
Lens'
  GetTransitGatewayConnectPeerAssociationsResponse
  (Maybe [TransitGatewayConnectPeerAssociation])
getTransitGatewayConnectPeerAssociationsResponse_transitGatewayConnectPeerAssociations
              ((Maybe [TransitGatewayConnectPeerAssociation]
  -> Const
       (First [TransitGatewayConnectPeerAssociation])
       (Maybe [TransitGatewayConnectPeerAssociation]))
 -> GetTransitGatewayConnectPeerAssociationsResponse
 -> Const
      (First [TransitGatewayConnectPeerAssociation])
      GetTransitGatewayConnectPeerAssociationsResponse)
-> (([TransitGatewayConnectPeerAssociation]
     -> Const
          (First [TransitGatewayConnectPeerAssociation])
          [TransitGatewayConnectPeerAssociation])
    -> Maybe [TransitGatewayConnectPeerAssociation]
    -> Const
         (First [TransitGatewayConnectPeerAssociation])
         (Maybe [TransitGatewayConnectPeerAssociation]))
-> Getting
     (First [TransitGatewayConnectPeerAssociation])
     GetTransitGatewayConnectPeerAssociationsResponse
     [TransitGatewayConnectPeerAssociation]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([TransitGatewayConnectPeerAssociation]
 -> Const
      (First [TransitGatewayConnectPeerAssociation])
      [TransitGatewayConnectPeerAssociation])
-> Maybe [TransitGatewayConnectPeerAssociation]
-> Const
     (First [TransitGatewayConnectPeerAssociation])
     (Maybe [TransitGatewayConnectPeerAssociation])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe GetTransitGatewayConnectPeerAssociations
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      GetTransitGatewayConnectPeerAssociations
-> Maybe GetTransitGatewayConnectPeerAssociations
forall a. a -> Maybe a
Prelude.Just (GetTransitGatewayConnectPeerAssociations
 -> Maybe GetTransitGatewayConnectPeerAssociations)
-> GetTransitGatewayConnectPeerAssociations
-> Maybe GetTransitGatewayConnectPeerAssociations
forall a b. (a -> b) -> a -> b
Prelude.$
        GetTransitGatewayConnectPeerAssociations
rq
          GetTransitGatewayConnectPeerAssociations
-> (GetTransitGatewayConnectPeerAssociations
    -> GetTransitGatewayConnectPeerAssociations)
-> GetTransitGatewayConnectPeerAssociations
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> GetTransitGatewayConnectPeerAssociations
-> Identity GetTransitGatewayConnectPeerAssociations
Lens
  GetTransitGatewayConnectPeerAssociations
  GetTransitGatewayConnectPeerAssociations
  (Maybe Text)
  (Maybe Text)
getTransitGatewayConnectPeerAssociations_nextToken
          ((Maybe Text -> Identity (Maybe Text))
 -> GetTransitGatewayConnectPeerAssociations
 -> Identity GetTransitGatewayConnectPeerAssociations)
-> Maybe Text
-> GetTransitGatewayConnectPeerAssociations
-> GetTransitGatewayConnectPeerAssociations
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse GetTransitGatewayConnectPeerAssociations
GetTransitGatewayConnectPeerAssociationsResponse
rs
            GetTransitGatewayConnectPeerAssociationsResponse
-> Getting
     (First Text) GetTransitGatewayConnectPeerAssociationsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetTransitGatewayConnectPeerAssociationsResponse
-> Const
     (First Text) GetTransitGatewayConnectPeerAssociationsResponse
Lens' GetTransitGatewayConnectPeerAssociationsResponse (Maybe Text)
getTransitGatewayConnectPeerAssociationsResponse_nextToken
              ((Maybe Text -> Const (First Text) (Maybe Text))
 -> GetTransitGatewayConnectPeerAssociationsResponse
 -> Const
      (First Text) GetTransitGatewayConnectPeerAssociationsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
     (First Text) GetTransitGatewayConnectPeerAssociationsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance
  Core.AWSRequest
    GetTransitGatewayConnectPeerAssociations
  where
  type
    AWSResponse
      GetTransitGatewayConnectPeerAssociations =
      GetTransitGatewayConnectPeerAssociationsResponse
  request :: GetTransitGatewayConnectPeerAssociations
-> Request GetTransitGatewayConnectPeerAssociations
request = Service
-> GetTransitGatewayConnectPeerAssociations
-> Request GetTransitGatewayConnectPeerAssociations
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy GetTransitGatewayConnectPeerAssociations
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse GetTransitGatewayConnectPeerAssociations)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either
      String (AWSResponse GetTransitGatewayConnectPeerAssociations))
-> Logger
-> Service
-> Proxy GetTransitGatewayConnectPeerAssociations
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse GetTransitGatewayConnectPeerAssociations)))
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 Text
-> Maybe [TransitGatewayConnectPeerAssociation]
-> Int
-> GetTransitGatewayConnectPeerAssociationsResponse
GetTransitGatewayConnectPeerAssociationsResponse'
            (Maybe Text
 -> Maybe [TransitGatewayConnectPeerAssociation]
 -> Int
 -> GetTransitGatewayConnectPeerAssociationsResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe [TransitGatewayConnectPeerAssociation]
      -> Int -> GetTransitGatewayConnectPeerAssociationsResponse)
forall (f :: * -> *) a b. Functor 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
  (Maybe [TransitGatewayConnectPeerAssociation]
   -> Int -> GetTransitGatewayConnectPeerAssociationsResponse)
-> Either String (Maybe [TransitGatewayConnectPeerAssociation])
-> Either
     String (Int -> GetTransitGatewayConnectPeerAssociationsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text
-> Either
     String (Maybe (Maybe [TransitGatewayConnectPeerAssociation]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"TransitGatewayConnectPeerAssociations"
                              Either
  String (Maybe (Maybe [TransitGatewayConnectPeerAssociation]))
-> Maybe [TransitGatewayConnectPeerAssociation]
-> Either String (Maybe [TransitGatewayConnectPeerAssociation])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [TransitGatewayConnectPeerAssociation]
forall a. Monoid a => a
Prelude.mempty
                          )
              Either
  String (Int -> GetTransitGatewayConnectPeerAssociationsResponse)
-> Either String Int
-> Either String GetTransitGatewayConnectPeerAssociationsResponse
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
    GetTransitGatewayConnectPeerAssociations

instance
  Prelude.NFData
    GetTransitGatewayConnectPeerAssociations

instance
  Core.ToHeaders
    GetTransitGatewayConnectPeerAssociations
  where
  toHeaders :: GetTransitGatewayConnectPeerAssociations -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> GetTransitGatewayConnectPeerAssociations -> 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
    GetTransitGatewayConnectPeerAssociations
  where
  toPath :: GetTransitGatewayConnectPeerAssociations -> ByteString
toPath GetTransitGatewayConnectPeerAssociations' {Maybe Natural
Maybe [Text]
Maybe Text
Text
globalNetworkId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
transitGatewayConnectPeerArns :: Maybe [Text]
$sel:globalNetworkId:GetTransitGatewayConnectPeerAssociations' :: GetTransitGatewayConnectPeerAssociations -> Text
$sel:maxResults:GetTransitGatewayConnectPeerAssociations' :: GetTransitGatewayConnectPeerAssociations -> Maybe Natural
$sel:nextToken:GetTransitGatewayConnectPeerAssociations' :: GetTransitGatewayConnectPeerAssociations -> Maybe Text
$sel:transitGatewayConnectPeerArns:GetTransitGatewayConnectPeerAssociations' :: GetTransitGatewayConnectPeerAssociations -> Maybe [Text]
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/global-networks/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
globalNetworkId,
        ByteString
"/transit-gateway-connect-peer-associations"
      ]

instance
  Core.ToQuery
    GetTransitGatewayConnectPeerAssociations
  where
  toQuery :: GetTransitGatewayConnectPeerAssociations -> QueryString
toQuery GetTransitGatewayConnectPeerAssociations' {Maybe Natural
Maybe [Text]
Maybe Text
Text
globalNetworkId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
transitGatewayConnectPeerArns :: Maybe [Text]
$sel:globalNetworkId:GetTransitGatewayConnectPeerAssociations' :: GetTransitGatewayConnectPeerAssociations -> Text
$sel:maxResults:GetTransitGatewayConnectPeerAssociations' :: GetTransitGatewayConnectPeerAssociations -> Maybe Natural
$sel:nextToken:GetTransitGatewayConnectPeerAssociations' :: GetTransitGatewayConnectPeerAssociations -> Maybe Text
$sel:transitGatewayConnectPeerArns:GetTransitGatewayConnectPeerAssociations' :: GetTransitGatewayConnectPeerAssociations -> Maybe [Text]
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"transitGatewayConnectPeerArns"
          ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
            ( ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member"
                ([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
transitGatewayConnectPeerArns
            ),
        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:/ 'newGetTransitGatewayConnectPeerAssociationsResponse' smart constructor.
data GetTransitGatewayConnectPeerAssociationsResponse = GetTransitGatewayConnectPeerAssociationsResponse'
  { -- | The token to use for the next page of results.
    GetTransitGatewayConnectPeerAssociationsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | Information about the transit gateway Connect peer associations.
    GetTransitGatewayConnectPeerAssociationsResponse
-> Maybe [TransitGatewayConnectPeerAssociation]
transitGatewayConnectPeerAssociations :: Prelude.Maybe [TransitGatewayConnectPeerAssociation],
    -- | The response's http status code.
    GetTransitGatewayConnectPeerAssociationsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetTransitGatewayConnectPeerAssociationsResponse
-> GetTransitGatewayConnectPeerAssociationsResponse -> Bool
(GetTransitGatewayConnectPeerAssociationsResponse
 -> GetTransitGatewayConnectPeerAssociationsResponse -> Bool)
-> (GetTransitGatewayConnectPeerAssociationsResponse
    -> GetTransitGatewayConnectPeerAssociationsResponse -> Bool)
-> Eq GetTransitGatewayConnectPeerAssociationsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetTransitGatewayConnectPeerAssociationsResponse
-> GetTransitGatewayConnectPeerAssociationsResponse -> Bool
$c/= :: GetTransitGatewayConnectPeerAssociationsResponse
-> GetTransitGatewayConnectPeerAssociationsResponse -> Bool
== :: GetTransitGatewayConnectPeerAssociationsResponse
-> GetTransitGatewayConnectPeerAssociationsResponse -> Bool
$c== :: GetTransitGatewayConnectPeerAssociationsResponse
-> GetTransitGatewayConnectPeerAssociationsResponse -> Bool
Prelude.Eq, ReadPrec [GetTransitGatewayConnectPeerAssociationsResponse]
ReadPrec GetTransitGatewayConnectPeerAssociationsResponse
Int -> ReadS GetTransitGatewayConnectPeerAssociationsResponse
ReadS [GetTransitGatewayConnectPeerAssociationsResponse]
(Int -> ReadS GetTransitGatewayConnectPeerAssociationsResponse)
-> ReadS [GetTransitGatewayConnectPeerAssociationsResponse]
-> ReadPrec GetTransitGatewayConnectPeerAssociationsResponse
-> ReadPrec [GetTransitGatewayConnectPeerAssociationsResponse]
-> Read GetTransitGatewayConnectPeerAssociationsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetTransitGatewayConnectPeerAssociationsResponse]
$creadListPrec :: ReadPrec [GetTransitGatewayConnectPeerAssociationsResponse]
readPrec :: ReadPrec GetTransitGatewayConnectPeerAssociationsResponse
$creadPrec :: ReadPrec GetTransitGatewayConnectPeerAssociationsResponse
readList :: ReadS [GetTransitGatewayConnectPeerAssociationsResponse]
$creadList :: ReadS [GetTransitGatewayConnectPeerAssociationsResponse]
readsPrec :: Int -> ReadS GetTransitGatewayConnectPeerAssociationsResponse
$creadsPrec :: Int -> ReadS GetTransitGatewayConnectPeerAssociationsResponse
Prelude.Read, Int -> GetTransitGatewayConnectPeerAssociationsResponse -> ShowS
[GetTransitGatewayConnectPeerAssociationsResponse] -> ShowS
GetTransitGatewayConnectPeerAssociationsResponse -> String
(Int -> GetTransitGatewayConnectPeerAssociationsResponse -> ShowS)
-> (GetTransitGatewayConnectPeerAssociationsResponse -> String)
-> ([GetTransitGatewayConnectPeerAssociationsResponse] -> ShowS)
-> Show GetTransitGatewayConnectPeerAssociationsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetTransitGatewayConnectPeerAssociationsResponse] -> ShowS
$cshowList :: [GetTransitGatewayConnectPeerAssociationsResponse] -> ShowS
show :: GetTransitGatewayConnectPeerAssociationsResponse -> String
$cshow :: GetTransitGatewayConnectPeerAssociationsResponse -> String
showsPrec :: Int -> GetTransitGatewayConnectPeerAssociationsResponse -> ShowS
$cshowsPrec :: Int -> GetTransitGatewayConnectPeerAssociationsResponse -> ShowS
Prelude.Show, (forall x.
 GetTransitGatewayConnectPeerAssociationsResponse
 -> Rep GetTransitGatewayConnectPeerAssociationsResponse x)
-> (forall x.
    Rep GetTransitGatewayConnectPeerAssociationsResponse x
    -> GetTransitGatewayConnectPeerAssociationsResponse)
-> Generic GetTransitGatewayConnectPeerAssociationsResponse
forall x.
Rep GetTransitGatewayConnectPeerAssociationsResponse x
-> GetTransitGatewayConnectPeerAssociationsResponse
forall x.
GetTransitGatewayConnectPeerAssociationsResponse
-> Rep GetTransitGatewayConnectPeerAssociationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetTransitGatewayConnectPeerAssociationsResponse x
-> GetTransitGatewayConnectPeerAssociationsResponse
$cfrom :: forall x.
GetTransitGatewayConnectPeerAssociationsResponse
-> Rep GetTransitGatewayConnectPeerAssociationsResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetTransitGatewayConnectPeerAssociationsResponse' 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', 'getTransitGatewayConnectPeerAssociationsResponse_nextToken' - The token to use for the next page of results.
--
-- 'transitGatewayConnectPeerAssociations', 'getTransitGatewayConnectPeerAssociationsResponse_transitGatewayConnectPeerAssociations' - Information about the transit gateway Connect peer associations.
--
-- 'httpStatus', 'getTransitGatewayConnectPeerAssociationsResponse_httpStatus' - The response's http status code.
newGetTransitGatewayConnectPeerAssociationsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetTransitGatewayConnectPeerAssociationsResponse
newGetTransitGatewayConnectPeerAssociationsResponse :: Int -> GetTransitGatewayConnectPeerAssociationsResponse
newGetTransitGatewayConnectPeerAssociationsResponse
  Int
pHttpStatus_ =
    GetTransitGatewayConnectPeerAssociationsResponse' :: Maybe Text
-> Maybe [TransitGatewayConnectPeerAssociation]
-> Int
-> GetTransitGatewayConnectPeerAssociationsResponse
GetTransitGatewayConnectPeerAssociationsResponse'
      { $sel:nextToken:GetTransitGatewayConnectPeerAssociationsResponse' :: Maybe Text
nextToken =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:transitGatewayConnectPeerAssociations:GetTransitGatewayConnectPeerAssociationsResponse' :: Maybe [TransitGatewayConnectPeerAssociation]
transitGatewayConnectPeerAssociations =
          Maybe [TransitGatewayConnectPeerAssociation]
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:GetTransitGatewayConnectPeerAssociationsResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The token to use for the next page of results.
getTransitGatewayConnectPeerAssociationsResponse_nextToken :: Lens.Lens' GetTransitGatewayConnectPeerAssociationsResponse (Prelude.Maybe Prelude.Text)
getTransitGatewayConnectPeerAssociationsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetTransitGatewayConnectPeerAssociationsResponse
-> f GetTransitGatewayConnectPeerAssociationsResponse
getTransitGatewayConnectPeerAssociationsResponse_nextToken = (GetTransitGatewayConnectPeerAssociationsResponse -> Maybe Text)
-> (GetTransitGatewayConnectPeerAssociationsResponse
    -> Maybe Text -> GetTransitGatewayConnectPeerAssociationsResponse)
-> Lens'
     GetTransitGatewayConnectPeerAssociationsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTransitGatewayConnectPeerAssociationsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetTransitGatewayConnectPeerAssociationsResponse' :: GetTransitGatewayConnectPeerAssociationsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetTransitGatewayConnectPeerAssociationsResponse
s@GetTransitGatewayConnectPeerAssociationsResponse' {} Maybe Text
a -> GetTransitGatewayConnectPeerAssociationsResponse
s {$sel:nextToken:GetTransitGatewayConnectPeerAssociationsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetTransitGatewayConnectPeerAssociationsResponse)

-- | Information about the transit gateway Connect peer associations.
getTransitGatewayConnectPeerAssociationsResponse_transitGatewayConnectPeerAssociations :: Lens.Lens' GetTransitGatewayConnectPeerAssociationsResponse (Prelude.Maybe [TransitGatewayConnectPeerAssociation])
getTransitGatewayConnectPeerAssociationsResponse_transitGatewayConnectPeerAssociations :: (Maybe [TransitGatewayConnectPeerAssociation]
 -> f (Maybe [TransitGatewayConnectPeerAssociation]))
-> GetTransitGatewayConnectPeerAssociationsResponse
-> f GetTransitGatewayConnectPeerAssociationsResponse
getTransitGatewayConnectPeerAssociationsResponse_transitGatewayConnectPeerAssociations = (GetTransitGatewayConnectPeerAssociationsResponse
 -> Maybe [TransitGatewayConnectPeerAssociation])
-> (GetTransitGatewayConnectPeerAssociationsResponse
    -> Maybe [TransitGatewayConnectPeerAssociation]
    -> GetTransitGatewayConnectPeerAssociationsResponse)
-> Lens'
     GetTransitGatewayConnectPeerAssociationsResponse
     (Maybe [TransitGatewayConnectPeerAssociation])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTransitGatewayConnectPeerAssociationsResponse' {Maybe [TransitGatewayConnectPeerAssociation]
transitGatewayConnectPeerAssociations :: Maybe [TransitGatewayConnectPeerAssociation]
$sel:transitGatewayConnectPeerAssociations:GetTransitGatewayConnectPeerAssociationsResponse' :: GetTransitGatewayConnectPeerAssociationsResponse
-> Maybe [TransitGatewayConnectPeerAssociation]
transitGatewayConnectPeerAssociations} -> Maybe [TransitGatewayConnectPeerAssociation]
transitGatewayConnectPeerAssociations) (\s :: GetTransitGatewayConnectPeerAssociationsResponse
s@GetTransitGatewayConnectPeerAssociationsResponse' {} Maybe [TransitGatewayConnectPeerAssociation]
a -> GetTransitGatewayConnectPeerAssociationsResponse
s {$sel:transitGatewayConnectPeerAssociations:GetTransitGatewayConnectPeerAssociationsResponse' :: Maybe [TransitGatewayConnectPeerAssociation]
transitGatewayConnectPeerAssociations = Maybe [TransitGatewayConnectPeerAssociation]
a} :: GetTransitGatewayConnectPeerAssociationsResponse) ((Maybe [TransitGatewayConnectPeerAssociation]
  -> f (Maybe [TransitGatewayConnectPeerAssociation]))
 -> GetTransitGatewayConnectPeerAssociationsResponse
 -> f GetTransitGatewayConnectPeerAssociationsResponse)
-> ((Maybe [TransitGatewayConnectPeerAssociation]
     -> f (Maybe [TransitGatewayConnectPeerAssociation]))
    -> Maybe [TransitGatewayConnectPeerAssociation]
    -> f (Maybe [TransitGatewayConnectPeerAssociation]))
-> (Maybe [TransitGatewayConnectPeerAssociation]
    -> f (Maybe [TransitGatewayConnectPeerAssociation]))
-> GetTransitGatewayConnectPeerAssociationsResponse
-> f GetTransitGatewayConnectPeerAssociationsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [TransitGatewayConnectPeerAssociation]
  [TransitGatewayConnectPeerAssociation]
  [TransitGatewayConnectPeerAssociation]
  [TransitGatewayConnectPeerAssociation]
-> Iso
     (Maybe [TransitGatewayConnectPeerAssociation])
     (Maybe [TransitGatewayConnectPeerAssociation])
     (Maybe [TransitGatewayConnectPeerAssociation])
     (Maybe [TransitGatewayConnectPeerAssociation])
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
  [TransitGatewayConnectPeerAssociation]
  [TransitGatewayConnectPeerAssociation]
  [TransitGatewayConnectPeerAssociation]
  [TransitGatewayConnectPeerAssociation]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    GetTransitGatewayConnectPeerAssociationsResponse