{-# 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.DirectConnect.DeleteDirectConnectGatewayAssociationProposal
-- 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)
--
-- Deletes the association proposal request between the specified Direct
-- Connect gateway and virtual private gateway or transit gateway.
module Amazonka.DirectConnect.DeleteDirectConnectGatewayAssociationProposal
  ( -- * Creating a Request
    DeleteDirectConnectGatewayAssociationProposal (..),
    newDeleteDirectConnectGatewayAssociationProposal,

    -- * Request Lenses
    deleteDirectConnectGatewayAssociationProposal_proposalId,

    -- * Destructuring the Response
    DeleteDirectConnectGatewayAssociationProposalResponse (..),
    newDeleteDirectConnectGatewayAssociationProposalResponse,

    -- * Response Lenses
    deleteDirectConnectGatewayAssociationProposalResponse_directConnectGatewayAssociationProposal,
    deleteDirectConnectGatewayAssociationProposalResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.DirectConnect.Types
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:/ 'newDeleteDirectConnectGatewayAssociationProposal' smart constructor.
data DeleteDirectConnectGatewayAssociationProposal = DeleteDirectConnectGatewayAssociationProposal'
  { -- | The ID of the proposal.
    DeleteDirectConnectGatewayAssociationProposal -> Text
proposalId :: Prelude.Text
  }
  deriving (DeleteDirectConnectGatewayAssociationProposal
-> DeleteDirectConnectGatewayAssociationProposal -> Bool
(DeleteDirectConnectGatewayAssociationProposal
 -> DeleteDirectConnectGatewayAssociationProposal -> Bool)
-> (DeleteDirectConnectGatewayAssociationProposal
    -> DeleteDirectConnectGatewayAssociationProposal -> Bool)
-> Eq DeleteDirectConnectGatewayAssociationProposal
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteDirectConnectGatewayAssociationProposal
-> DeleteDirectConnectGatewayAssociationProposal -> Bool
$c/= :: DeleteDirectConnectGatewayAssociationProposal
-> DeleteDirectConnectGatewayAssociationProposal -> Bool
== :: DeleteDirectConnectGatewayAssociationProposal
-> DeleteDirectConnectGatewayAssociationProposal -> Bool
$c== :: DeleteDirectConnectGatewayAssociationProposal
-> DeleteDirectConnectGatewayAssociationProposal -> Bool
Prelude.Eq, ReadPrec [DeleteDirectConnectGatewayAssociationProposal]
ReadPrec DeleteDirectConnectGatewayAssociationProposal
Int -> ReadS DeleteDirectConnectGatewayAssociationProposal
ReadS [DeleteDirectConnectGatewayAssociationProposal]
(Int -> ReadS DeleteDirectConnectGatewayAssociationProposal)
-> ReadS [DeleteDirectConnectGatewayAssociationProposal]
-> ReadPrec DeleteDirectConnectGatewayAssociationProposal
-> ReadPrec [DeleteDirectConnectGatewayAssociationProposal]
-> Read DeleteDirectConnectGatewayAssociationProposal
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteDirectConnectGatewayAssociationProposal]
$creadListPrec :: ReadPrec [DeleteDirectConnectGatewayAssociationProposal]
readPrec :: ReadPrec DeleteDirectConnectGatewayAssociationProposal
$creadPrec :: ReadPrec DeleteDirectConnectGatewayAssociationProposal
readList :: ReadS [DeleteDirectConnectGatewayAssociationProposal]
$creadList :: ReadS [DeleteDirectConnectGatewayAssociationProposal]
readsPrec :: Int -> ReadS DeleteDirectConnectGatewayAssociationProposal
$creadsPrec :: Int -> ReadS DeleteDirectConnectGatewayAssociationProposal
Prelude.Read, Int -> DeleteDirectConnectGatewayAssociationProposal -> ShowS
[DeleteDirectConnectGatewayAssociationProposal] -> ShowS
DeleteDirectConnectGatewayAssociationProposal -> String
(Int -> DeleteDirectConnectGatewayAssociationProposal -> ShowS)
-> (DeleteDirectConnectGatewayAssociationProposal -> String)
-> ([DeleteDirectConnectGatewayAssociationProposal] -> ShowS)
-> Show DeleteDirectConnectGatewayAssociationProposal
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteDirectConnectGatewayAssociationProposal] -> ShowS
$cshowList :: [DeleteDirectConnectGatewayAssociationProposal] -> ShowS
show :: DeleteDirectConnectGatewayAssociationProposal -> String
$cshow :: DeleteDirectConnectGatewayAssociationProposal -> String
showsPrec :: Int -> DeleteDirectConnectGatewayAssociationProposal -> ShowS
$cshowsPrec :: Int -> DeleteDirectConnectGatewayAssociationProposal -> ShowS
Prelude.Show, (forall x.
 DeleteDirectConnectGatewayAssociationProposal
 -> Rep DeleteDirectConnectGatewayAssociationProposal x)
-> (forall x.
    Rep DeleteDirectConnectGatewayAssociationProposal x
    -> DeleteDirectConnectGatewayAssociationProposal)
-> Generic DeleteDirectConnectGatewayAssociationProposal
forall x.
Rep DeleteDirectConnectGatewayAssociationProposal x
-> DeleteDirectConnectGatewayAssociationProposal
forall x.
DeleteDirectConnectGatewayAssociationProposal
-> Rep DeleteDirectConnectGatewayAssociationProposal x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteDirectConnectGatewayAssociationProposal x
-> DeleteDirectConnectGatewayAssociationProposal
$cfrom :: forall x.
DeleteDirectConnectGatewayAssociationProposal
-> Rep DeleteDirectConnectGatewayAssociationProposal x
Prelude.Generic)

-- |
-- Create a value of 'DeleteDirectConnectGatewayAssociationProposal' 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:
--
-- 'proposalId', 'deleteDirectConnectGatewayAssociationProposal_proposalId' - The ID of the proposal.
newDeleteDirectConnectGatewayAssociationProposal ::
  -- | 'proposalId'
  Prelude.Text ->
  DeleteDirectConnectGatewayAssociationProposal
newDeleteDirectConnectGatewayAssociationProposal :: Text -> DeleteDirectConnectGatewayAssociationProposal
newDeleteDirectConnectGatewayAssociationProposal
  Text
pProposalId_ =
    DeleteDirectConnectGatewayAssociationProposal' :: Text -> DeleteDirectConnectGatewayAssociationProposal
DeleteDirectConnectGatewayAssociationProposal'
      { $sel:proposalId:DeleteDirectConnectGatewayAssociationProposal' :: Text
proposalId =
          Text
pProposalId_
      }

-- | The ID of the proposal.
deleteDirectConnectGatewayAssociationProposal_proposalId :: Lens.Lens' DeleteDirectConnectGatewayAssociationProposal Prelude.Text
deleteDirectConnectGatewayAssociationProposal_proposalId :: (Text -> f Text)
-> DeleteDirectConnectGatewayAssociationProposal
-> f DeleteDirectConnectGatewayAssociationProposal
deleteDirectConnectGatewayAssociationProposal_proposalId = (DeleteDirectConnectGatewayAssociationProposal -> Text)
-> (DeleteDirectConnectGatewayAssociationProposal
    -> Text -> DeleteDirectConnectGatewayAssociationProposal)
-> Lens
     DeleteDirectConnectGatewayAssociationProposal
     DeleteDirectConnectGatewayAssociationProposal
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteDirectConnectGatewayAssociationProposal' {Text
proposalId :: Text
$sel:proposalId:DeleteDirectConnectGatewayAssociationProposal' :: DeleteDirectConnectGatewayAssociationProposal -> Text
proposalId} -> Text
proposalId) (\s :: DeleteDirectConnectGatewayAssociationProposal
s@DeleteDirectConnectGatewayAssociationProposal' {} Text
a -> DeleteDirectConnectGatewayAssociationProposal
s {$sel:proposalId:DeleteDirectConnectGatewayAssociationProposal' :: Text
proposalId = Text
a} :: DeleteDirectConnectGatewayAssociationProposal)

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

instance
  Prelude.NFData
    DeleteDirectConnectGatewayAssociationProposal

instance
  Core.ToHeaders
    DeleteDirectConnectGatewayAssociationProposal
  where
  toHeaders :: DeleteDirectConnectGatewayAssociationProposal -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> DeleteDirectConnectGatewayAssociationProposal -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"OvertureService.DeleteDirectConnectGatewayAssociationProposal" ::
                          Prelude.ByteString
                      ),
            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.ToJSON
    DeleteDirectConnectGatewayAssociationProposal
  where
  toJSON :: DeleteDirectConnectGatewayAssociationProposal -> Value
toJSON
    DeleteDirectConnectGatewayAssociationProposal' {Text
proposalId :: Text
$sel:proposalId:DeleteDirectConnectGatewayAssociationProposal' :: DeleteDirectConnectGatewayAssociationProposal -> Text
..} =
      [Pair] -> Value
Core.object
        ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
            [Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"proposalId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
proposalId)]
        )

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

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

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

-- |
-- Create a value of 'DeleteDirectConnectGatewayAssociationProposalResponse' 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:
--
-- 'directConnectGatewayAssociationProposal', 'deleteDirectConnectGatewayAssociationProposalResponse_directConnectGatewayAssociationProposal' - The ID of the associated gateway.
--
-- 'httpStatus', 'deleteDirectConnectGatewayAssociationProposalResponse_httpStatus' - The response's http status code.
newDeleteDirectConnectGatewayAssociationProposalResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DeleteDirectConnectGatewayAssociationProposalResponse
newDeleteDirectConnectGatewayAssociationProposalResponse :: Int -> DeleteDirectConnectGatewayAssociationProposalResponse
newDeleteDirectConnectGatewayAssociationProposalResponse
  Int
pHttpStatus_ =
    DeleteDirectConnectGatewayAssociationProposalResponse' :: Maybe DirectConnectGatewayAssociationProposal
-> Int -> DeleteDirectConnectGatewayAssociationProposalResponse
DeleteDirectConnectGatewayAssociationProposalResponse'
      { $sel:directConnectGatewayAssociationProposal:DeleteDirectConnectGatewayAssociationProposalResponse' :: Maybe DirectConnectGatewayAssociationProposal
directConnectGatewayAssociationProposal =
          Maybe DirectConnectGatewayAssociationProposal
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DeleteDirectConnectGatewayAssociationProposalResponse' :: Int
httpStatus =
          Int
pHttpStatus_
      }

-- | The ID of the associated gateway.
deleteDirectConnectGatewayAssociationProposalResponse_directConnectGatewayAssociationProposal :: Lens.Lens' DeleteDirectConnectGatewayAssociationProposalResponse (Prelude.Maybe DirectConnectGatewayAssociationProposal)
deleteDirectConnectGatewayAssociationProposalResponse_directConnectGatewayAssociationProposal :: (Maybe DirectConnectGatewayAssociationProposal
 -> f (Maybe DirectConnectGatewayAssociationProposal))
-> DeleteDirectConnectGatewayAssociationProposalResponse
-> f DeleteDirectConnectGatewayAssociationProposalResponse
deleteDirectConnectGatewayAssociationProposalResponse_directConnectGatewayAssociationProposal = (DeleteDirectConnectGatewayAssociationProposalResponse
 -> Maybe DirectConnectGatewayAssociationProposal)
-> (DeleteDirectConnectGatewayAssociationProposalResponse
    -> Maybe DirectConnectGatewayAssociationProposal
    -> DeleteDirectConnectGatewayAssociationProposalResponse)
-> Lens
     DeleteDirectConnectGatewayAssociationProposalResponse
     DeleteDirectConnectGatewayAssociationProposalResponse
     (Maybe DirectConnectGatewayAssociationProposal)
     (Maybe DirectConnectGatewayAssociationProposal)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteDirectConnectGatewayAssociationProposalResponse' {Maybe DirectConnectGatewayAssociationProposal
directConnectGatewayAssociationProposal :: Maybe DirectConnectGatewayAssociationProposal
$sel:directConnectGatewayAssociationProposal:DeleteDirectConnectGatewayAssociationProposalResponse' :: DeleteDirectConnectGatewayAssociationProposalResponse
-> Maybe DirectConnectGatewayAssociationProposal
directConnectGatewayAssociationProposal} -> Maybe DirectConnectGatewayAssociationProposal
directConnectGatewayAssociationProposal) (\s :: DeleteDirectConnectGatewayAssociationProposalResponse
s@DeleteDirectConnectGatewayAssociationProposalResponse' {} Maybe DirectConnectGatewayAssociationProposal
a -> DeleteDirectConnectGatewayAssociationProposalResponse
s {$sel:directConnectGatewayAssociationProposal:DeleteDirectConnectGatewayAssociationProposalResponse' :: Maybe DirectConnectGatewayAssociationProposal
directConnectGatewayAssociationProposal = Maybe DirectConnectGatewayAssociationProposal
a} :: DeleteDirectConnectGatewayAssociationProposalResponse)

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

instance
  Prelude.NFData
    DeleteDirectConnectGatewayAssociationProposalResponse