{-# 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.DisassociateTransitGatewayConnectPeer
-- 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)
--
-- Disassociates a transit gateway Connect peer from a device and link.
module Amazonka.NetworkManager.DisassociateTransitGatewayConnectPeer
  ( -- * Creating a Request
    DisassociateTransitGatewayConnectPeer (..),
    newDisassociateTransitGatewayConnectPeer,

    -- * Request Lenses
    disassociateTransitGatewayConnectPeer_globalNetworkId,
    disassociateTransitGatewayConnectPeer_transitGatewayConnectPeerArn,

    -- * Destructuring the Response
    DisassociateTransitGatewayConnectPeerResponse (..),
    newDisassociateTransitGatewayConnectPeerResponse,

    -- * Response Lenses
    disassociateTransitGatewayConnectPeerResponse_transitGatewayConnectPeerAssociation,
    disassociateTransitGatewayConnectPeerResponse_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:/ 'newDisassociateTransitGatewayConnectPeer' smart constructor.
data DisassociateTransitGatewayConnectPeer = DisassociateTransitGatewayConnectPeer'
  { -- | The ID of the global network.
    DisassociateTransitGatewayConnectPeer -> Text
globalNetworkId :: Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the transit gateway Connect peer.
    DisassociateTransitGatewayConnectPeer -> Text
transitGatewayConnectPeerArn :: Prelude.Text
  }
  deriving (DisassociateTransitGatewayConnectPeer
-> DisassociateTransitGatewayConnectPeer -> Bool
(DisassociateTransitGatewayConnectPeer
 -> DisassociateTransitGatewayConnectPeer -> Bool)
-> (DisassociateTransitGatewayConnectPeer
    -> DisassociateTransitGatewayConnectPeer -> Bool)
-> Eq DisassociateTransitGatewayConnectPeer
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DisassociateTransitGatewayConnectPeer
-> DisassociateTransitGatewayConnectPeer -> Bool
$c/= :: DisassociateTransitGatewayConnectPeer
-> DisassociateTransitGatewayConnectPeer -> Bool
== :: DisassociateTransitGatewayConnectPeer
-> DisassociateTransitGatewayConnectPeer -> Bool
$c== :: DisassociateTransitGatewayConnectPeer
-> DisassociateTransitGatewayConnectPeer -> Bool
Prelude.Eq, ReadPrec [DisassociateTransitGatewayConnectPeer]
ReadPrec DisassociateTransitGatewayConnectPeer
Int -> ReadS DisassociateTransitGatewayConnectPeer
ReadS [DisassociateTransitGatewayConnectPeer]
(Int -> ReadS DisassociateTransitGatewayConnectPeer)
-> ReadS [DisassociateTransitGatewayConnectPeer]
-> ReadPrec DisassociateTransitGatewayConnectPeer
-> ReadPrec [DisassociateTransitGatewayConnectPeer]
-> Read DisassociateTransitGatewayConnectPeer
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DisassociateTransitGatewayConnectPeer]
$creadListPrec :: ReadPrec [DisassociateTransitGatewayConnectPeer]
readPrec :: ReadPrec DisassociateTransitGatewayConnectPeer
$creadPrec :: ReadPrec DisassociateTransitGatewayConnectPeer
readList :: ReadS [DisassociateTransitGatewayConnectPeer]
$creadList :: ReadS [DisassociateTransitGatewayConnectPeer]
readsPrec :: Int -> ReadS DisassociateTransitGatewayConnectPeer
$creadsPrec :: Int -> ReadS DisassociateTransitGatewayConnectPeer
Prelude.Read, Int -> DisassociateTransitGatewayConnectPeer -> ShowS
[DisassociateTransitGatewayConnectPeer] -> ShowS
DisassociateTransitGatewayConnectPeer -> String
(Int -> DisassociateTransitGatewayConnectPeer -> ShowS)
-> (DisassociateTransitGatewayConnectPeer -> String)
-> ([DisassociateTransitGatewayConnectPeer] -> ShowS)
-> Show DisassociateTransitGatewayConnectPeer
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DisassociateTransitGatewayConnectPeer] -> ShowS
$cshowList :: [DisassociateTransitGatewayConnectPeer] -> ShowS
show :: DisassociateTransitGatewayConnectPeer -> String
$cshow :: DisassociateTransitGatewayConnectPeer -> String
showsPrec :: Int -> DisassociateTransitGatewayConnectPeer -> ShowS
$cshowsPrec :: Int -> DisassociateTransitGatewayConnectPeer -> ShowS
Prelude.Show, (forall x.
 DisassociateTransitGatewayConnectPeer
 -> Rep DisassociateTransitGatewayConnectPeer x)
-> (forall x.
    Rep DisassociateTransitGatewayConnectPeer x
    -> DisassociateTransitGatewayConnectPeer)
-> Generic DisassociateTransitGatewayConnectPeer
forall x.
Rep DisassociateTransitGatewayConnectPeer x
-> DisassociateTransitGatewayConnectPeer
forall x.
DisassociateTransitGatewayConnectPeer
-> Rep DisassociateTransitGatewayConnectPeer x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DisassociateTransitGatewayConnectPeer x
-> DisassociateTransitGatewayConnectPeer
$cfrom :: forall x.
DisassociateTransitGatewayConnectPeer
-> Rep DisassociateTransitGatewayConnectPeer x
Prelude.Generic)

-- |
-- Create a value of 'DisassociateTransitGatewayConnectPeer' 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:
--
-- 'globalNetworkId', 'disassociateTransitGatewayConnectPeer_globalNetworkId' - The ID of the global network.
--
-- 'transitGatewayConnectPeerArn', 'disassociateTransitGatewayConnectPeer_transitGatewayConnectPeerArn' - The Amazon Resource Name (ARN) of the transit gateway Connect peer.
newDisassociateTransitGatewayConnectPeer ::
  -- | 'globalNetworkId'
  Prelude.Text ->
  -- | 'transitGatewayConnectPeerArn'
  Prelude.Text ->
  DisassociateTransitGatewayConnectPeer
newDisassociateTransitGatewayConnectPeer :: Text -> Text -> DisassociateTransitGatewayConnectPeer
newDisassociateTransitGatewayConnectPeer
  Text
pGlobalNetworkId_
  Text
pTransitGatewayConnectPeerArn_ =
    DisassociateTransitGatewayConnectPeer' :: Text -> Text -> DisassociateTransitGatewayConnectPeer
DisassociateTransitGatewayConnectPeer'
      { $sel:globalNetworkId:DisassociateTransitGatewayConnectPeer' :: Text
globalNetworkId =
          Text
pGlobalNetworkId_,
        $sel:transitGatewayConnectPeerArn:DisassociateTransitGatewayConnectPeer' :: Text
transitGatewayConnectPeerArn =
          Text
pTransitGatewayConnectPeerArn_
      }

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

-- | The Amazon Resource Name (ARN) of the transit gateway Connect peer.
disassociateTransitGatewayConnectPeer_transitGatewayConnectPeerArn :: Lens.Lens' DisassociateTransitGatewayConnectPeer Prelude.Text
disassociateTransitGatewayConnectPeer_transitGatewayConnectPeerArn :: (Text -> f Text)
-> DisassociateTransitGatewayConnectPeer
-> f DisassociateTransitGatewayConnectPeer
disassociateTransitGatewayConnectPeer_transitGatewayConnectPeerArn = (DisassociateTransitGatewayConnectPeer -> Text)
-> (DisassociateTransitGatewayConnectPeer
    -> Text -> DisassociateTransitGatewayConnectPeer)
-> Lens
     DisassociateTransitGatewayConnectPeer
     DisassociateTransitGatewayConnectPeer
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociateTransitGatewayConnectPeer' {Text
transitGatewayConnectPeerArn :: Text
$sel:transitGatewayConnectPeerArn:DisassociateTransitGatewayConnectPeer' :: DisassociateTransitGatewayConnectPeer -> Text
transitGatewayConnectPeerArn} -> Text
transitGatewayConnectPeerArn) (\s :: DisassociateTransitGatewayConnectPeer
s@DisassociateTransitGatewayConnectPeer' {} Text
a -> DisassociateTransitGatewayConnectPeer
s {$sel:transitGatewayConnectPeerArn:DisassociateTransitGatewayConnectPeer' :: Text
transitGatewayConnectPeerArn = Text
a} :: DisassociateTransitGatewayConnectPeer)

instance
  Core.AWSRequest
    DisassociateTransitGatewayConnectPeer
  where
  type
    AWSResponse
      DisassociateTransitGatewayConnectPeer =
      DisassociateTransitGatewayConnectPeerResponse
  request :: DisassociateTransitGatewayConnectPeer
-> Request DisassociateTransitGatewayConnectPeer
request = Service
-> DisassociateTransitGatewayConnectPeer
-> Request DisassociateTransitGatewayConnectPeer
forall a. ToRequest a => Service -> a -> Request a
Request.delete Service
defaultService
  response :: Logger
-> Service
-> Proxy DisassociateTransitGatewayConnectPeer
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse DisassociateTransitGatewayConnectPeer)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either
      String (AWSResponse DisassociateTransitGatewayConnectPeer))
-> Logger
-> Service
-> Proxy DisassociateTransitGatewayConnectPeer
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse DisassociateTransitGatewayConnectPeer)))
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 TransitGatewayConnectPeerAssociation
-> Int -> DisassociateTransitGatewayConnectPeerResponse
DisassociateTransitGatewayConnectPeerResponse'
            (Maybe TransitGatewayConnectPeerAssociation
 -> Int -> DisassociateTransitGatewayConnectPeerResponse)
-> Either String (Maybe TransitGatewayConnectPeerAssociation)
-> Either
     String (Int -> DisassociateTransitGatewayConnectPeerResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text
-> Either String (Maybe TransitGatewayConnectPeerAssociation)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"TransitGatewayConnectPeerAssociation")
              Either
  String (Int -> DisassociateTransitGatewayConnectPeerResponse)
-> Either String Int
-> Either String DisassociateTransitGatewayConnectPeerResponse
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
    DisassociateTransitGatewayConnectPeer

instance
  Prelude.NFData
    DisassociateTransitGatewayConnectPeer

instance
  Core.ToHeaders
    DisassociateTransitGatewayConnectPeer
  where
  toHeaders :: DisassociateTransitGatewayConnectPeer -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> DisassociateTransitGatewayConnectPeer -> 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
    DisassociateTransitGatewayConnectPeer
  where
  toPath :: DisassociateTransitGatewayConnectPeer -> ByteString
toPath DisassociateTransitGatewayConnectPeer' {Text
transitGatewayConnectPeerArn :: Text
globalNetworkId :: Text
$sel:transitGatewayConnectPeerArn:DisassociateTransitGatewayConnectPeer' :: DisassociateTransitGatewayConnectPeer -> Text
$sel:globalNetworkId:DisassociateTransitGatewayConnectPeer' :: DisassociateTransitGatewayConnectPeer -> 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/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
transitGatewayConnectPeerArn
      ]

instance
  Core.ToQuery
    DisassociateTransitGatewayConnectPeer
  where
  toQuery :: DisassociateTransitGatewayConnectPeer -> QueryString
toQuery = QueryString -> DisassociateTransitGatewayConnectPeer -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newDisassociateTransitGatewayConnectPeerResponse' smart constructor.
data DisassociateTransitGatewayConnectPeerResponse = DisassociateTransitGatewayConnectPeerResponse'
  { -- | The transit gateway Connect peer association.
    DisassociateTransitGatewayConnectPeerResponse
-> Maybe TransitGatewayConnectPeerAssociation
transitGatewayConnectPeerAssociation :: Prelude.Maybe TransitGatewayConnectPeerAssociation,
    -- | The response's http status code.
    DisassociateTransitGatewayConnectPeerResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DisassociateTransitGatewayConnectPeerResponse
-> DisassociateTransitGatewayConnectPeerResponse -> Bool
(DisassociateTransitGatewayConnectPeerResponse
 -> DisassociateTransitGatewayConnectPeerResponse -> Bool)
-> (DisassociateTransitGatewayConnectPeerResponse
    -> DisassociateTransitGatewayConnectPeerResponse -> Bool)
-> Eq DisassociateTransitGatewayConnectPeerResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DisassociateTransitGatewayConnectPeerResponse
-> DisassociateTransitGatewayConnectPeerResponse -> Bool
$c/= :: DisassociateTransitGatewayConnectPeerResponse
-> DisassociateTransitGatewayConnectPeerResponse -> Bool
== :: DisassociateTransitGatewayConnectPeerResponse
-> DisassociateTransitGatewayConnectPeerResponse -> Bool
$c== :: DisassociateTransitGatewayConnectPeerResponse
-> DisassociateTransitGatewayConnectPeerResponse -> Bool
Prelude.Eq, ReadPrec [DisassociateTransitGatewayConnectPeerResponse]
ReadPrec DisassociateTransitGatewayConnectPeerResponse
Int -> ReadS DisassociateTransitGatewayConnectPeerResponse
ReadS [DisassociateTransitGatewayConnectPeerResponse]
(Int -> ReadS DisassociateTransitGatewayConnectPeerResponse)
-> ReadS [DisassociateTransitGatewayConnectPeerResponse]
-> ReadPrec DisassociateTransitGatewayConnectPeerResponse
-> ReadPrec [DisassociateTransitGatewayConnectPeerResponse]
-> Read DisassociateTransitGatewayConnectPeerResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DisassociateTransitGatewayConnectPeerResponse]
$creadListPrec :: ReadPrec [DisassociateTransitGatewayConnectPeerResponse]
readPrec :: ReadPrec DisassociateTransitGatewayConnectPeerResponse
$creadPrec :: ReadPrec DisassociateTransitGatewayConnectPeerResponse
readList :: ReadS [DisassociateTransitGatewayConnectPeerResponse]
$creadList :: ReadS [DisassociateTransitGatewayConnectPeerResponse]
readsPrec :: Int -> ReadS DisassociateTransitGatewayConnectPeerResponse
$creadsPrec :: Int -> ReadS DisassociateTransitGatewayConnectPeerResponse
Prelude.Read, Int -> DisassociateTransitGatewayConnectPeerResponse -> ShowS
[DisassociateTransitGatewayConnectPeerResponse] -> ShowS
DisassociateTransitGatewayConnectPeerResponse -> String
(Int -> DisassociateTransitGatewayConnectPeerResponse -> ShowS)
-> (DisassociateTransitGatewayConnectPeerResponse -> String)
-> ([DisassociateTransitGatewayConnectPeerResponse] -> ShowS)
-> Show DisassociateTransitGatewayConnectPeerResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DisassociateTransitGatewayConnectPeerResponse] -> ShowS
$cshowList :: [DisassociateTransitGatewayConnectPeerResponse] -> ShowS
show :: DisassociateTransitGatewayConnectPeerResponse -> String
$cshow :: DisassociateTransitGatewayConnectPeerResponse -> String
showsPrec :: Int -> DisassociateTransitGatewayConnectPeerResponse -> ShowS
$cshowsPrec :: Int -> DisassociateTransitGatewayConnectPeerResponse -> ShowS
Prelude.Show, (forall x.
 DisassociateTransitGatewayConnectPeerResponse
 -> Rep DisassociateTransitGatewayConnectPeerResponse x)
-> (forall x.
    Rep DisassociateTransitGatewayConnectPeerResponse x
    -> DisassociateTransitGatewayConnectPeerResponse)
-> Generic DisassociateTransitGatewayConnectPeerResponse
forall x.
Rep DisassociateTransitGatewayConnectPeerResponse x
-> DisassociateTransitGatewayConnectPeerResponse
forall x.
DisassociateTransitGatewayConnectPeerResponse
-> Rep DisassociateTransitGatewayConnectPeerResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DisassociateTransitGatewayConnectPeerResponse x
-> DisassociateTransitGatewayConnectPeerResponse
$cfrom :: forall x.
DisassociateTransitGatewayConnectPeerResponse
-> Rep DisassociateTransitGatewayConnectPeerResponse x
Prelude.Generic)

-- |
-- Create a value of 'DisassociateTransitGatewayConnectPeerResponse' 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:
--
-- 'transitGatewayConnectPeerAssociation', 'disassociateTransitGatewayConnectPeerResponse_transitGatewayConnectPeerAssociation' - The transit gateway Connect peer association.
--
-- 'httpStatus', 'disassociateTransitGatewayConnectPeerResponse_httpStatus' - The response's http status code.
newDisassociateTransitGatewayConnectPeerResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DisassociateTransitGatewayConnectPeerResponse
newDisassociateTransitGatewayConnectPeerResponse :: Int -> DisassociateTransitGatewayConnectPeerResponse
newDisassociateTransitGatewayConnectPeerResponse
  Int
pHttpStatus_ =
    DisassociateTransitGatewayConnectPeerResponse' :: Maybe TransitGatewayConnectPeerAssociation
-> Int -> DisassociateTransitGatewayConnectPeerResponse
DisassociateTransitGatewayConnectPeerResponse'
      { $sel:transitGatewayConnectPeerAssociation:DisassociateTransitGatewayConnectPeerResponse' :: Maybe TransitGatewayConnectPeerAssociation
transitGatewayConnectPeerAssociation =
          Maybe TransitGatewayConnectPeerAssociation
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DisassociateTransitGatewayConnectPeerResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The transit gateway Connect peer association.
disassociateTransitGatewayConnectPeerResponse_transitGatewayConnectPeerAssociation :: Lens.Lens' DisassociateTransitGatewayConnectPeerResponse (Prelude.Maybe TransitGatewayConnectPeerAssociation)
disassociateTransitGatewayConnectPeerResponse_transitGatewayConnectPeerAssociation :: (Maybe TransitGatewayConnectPeerAssociation
 -> f (Maybe TransitGatewayConnectPeerAssociation))
-> DisassociateTransitGatewayConnectPeerResponse
-> f DisassociateTransitGatewayConnectPeerResponse
disassociateTransitGatewayConnectPeerResponse_transitGatewayConnectPeerAssociation = (DisassociateTransitGatewayConnectPeerResponse
 -> Maybe TransitGatewayConnectPeerAssociation)
-> (DisassociateTransitGatewayConnectPeerResponse
    -> Maybe TransitGatewayConnectPeerAssociation
    -> DisassociateTransitGatewayConnectPeerResponse)
-> Lens
     DisassociateTransitGatewayConnectPeerResponse
     DisassociateTransitGatewayConnectPeerResponse
     (Maybe TransitGatewayConnectPeerAssociation)
     (Maybe TransitGatewayConnectPeerAssociation)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociateTransitGatewayConnectPeerResponse' {Maybe TransitGatewayConnectPeerAssociation
transitGatewayConnectPeerAssociation :: Maybe TransitGatewayConnectPeerAssociation
$sel:transitGatewayConnectPeerAssociation:DisassociateTransitGatewayConnectPeerResponse' :: DisassociateTransitGatewayConnectPeerResponse
-> Maybe TransitGatewayConnectPeerAssociation
transitGatewayConnectPeerAssociation} -> Maybe TransitGatewayConnectPeerAssociation
transitGatewayConnectPeerAssociation) (\s :: DisassociateTransitGatewayConnectPeerResponse
s@DisassociateTransitGatewayConnectPeerResponse' {} Maybe TransitGatewayConnectPeerAssociation
a -> DisassociateTransitGatewayConnectPeerResponse
s {$sel:transitGatewayConnectPeerAssociation:DisassociateTransitGatewayConnectPeerResponse' :: Maybe TransitGatewayConnectPeerAssociation
transitGatewayConnectPeerAssociation = Maybe TransitGatewayConnectPeerAssociation
a} :: DisassociateTransitGatewayConnectPeerResponse)

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

instance
  Prelude.NFData
    DisassociateTransitGatewayConnectPeerResponse