{-# 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.GameLift.DeleteVpcPeeringAuthorization
-- 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)
--
-- Cancels a pending VPC peering authorization for the specified VPC. If
-- you need to delete an existing VPC peering connection, call
-- DeleteVpcPeeringConnection.
--
-- __Related actions__
--
-- CreateVpcPeeringAuthorization | DescribeVpcPeeringAuthorizations |
-- DeleteVpcPeeringAuthorization | CreateVpcPeeringConnection |
-- DescribeVpcPeeringConnections | DeleteVpcPeeringConnection |
-- <https://docs.aws.amazon.com/gamelift/latest/developerguide/reference-awssdk.html#reference-awssdk-resources-fleets All APIs by task>
module Amazonka.GameLift.DeleteVpcPeeringAuthorization
  ( -- * Creating a Request
    DeleteVpcPeeringAuthorization (..),
    newDeleteVpcPeeringAuthorization,

    -- * Request Lenses
    deleteVpcPeeringAuthorization_gameLiftAwsAccountId,
    deleteVpcPeeringAuthorization_peerVpcId,

    -- * Destructuring the Response
    DeleteVpcPeeringAuthorizationResponse (..),
    newDeleteVpcPeeringAuthorizationResponse,

    -- * Response Lenses
    deleteVpcPeeringAuthorizationResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.GameLift.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

-- | Represents the input for a request operation.
--
-- /See:/ 'newDeleteVpcPeeringAuthorization' smart constructor.
data DeleteVpcPeeringAuthorization = DeleteVpcPeeringAuthorization'
  { -- | A unique identifier for the AWS account that you use to manage your
    -- GameLift fleet. You can find your Account ID in the AWS Management
    -- Console under account settings.
    DeleteVpcPeeringAuthorization -> Text
gameLiftAwsAccountId :: Prelude.Text,
    -- | A unique identifier for a VPC with resources to be accessed by your
    -- GameLift fleet. The VPC must be in the same Region as your fleet. To
    -- look up a VPC ID, use the
    -- <https://console.aws.amazon.com/vpc/ VPC Dashboard> in the AWS
    -- Management Console. Learn more about VPC peering in
    -- <https://docs.aws.amazon.com/gamelift/latest/developerguide/vpc-peering.html VPC Peering with GameLift Fleets>.
    DeleteVpcPeeringAuthorization -> Text
peerVpcId :: Prelude.Text
  }
  deriving (DeleteVpcPeeringAuthorization
-> DeleteVpcPeeringAuthorization -> Bool
(DeleteVpcPeeringAuthorization
 -> DeleteVpcPeeringAuthorization -> Bool)
-> (DeleteVpcPeeringAuthorization
    -> DeleteVpcPeeringAuthorization -> Bool)
-> Eq DeleteVpcPeeringAuthorization
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteVpcPeeringAuthorization
-> DeleteVpcPeeringAuthorization -> Bool
$c/= :: DeleteVpcPeeringAuthorization
-> DeleteVpcPeeringAuthorization -> Bool
== :: DeleteVpcPeeringAuthorization
-> DeleteVpcPeeringAuthorization -> Bool
$c== :: DeleteVpcPeeringAuthorization
-> DeleteVpcPeeringAuthorization -> Bool
Prelude.Eq, ReadPrec [DeleteVpcPeeringAuthorization]
ReadPrec DeleteVpcPeeringAuthorization
Int -> ReadS DeleteVpcPeeringAuthorization
ReadS [DeleteVpcPeeringAuthorization]
(Int -> ReadS DeleteVpcPeeringAuthorization)
-> ReadS [DeleteVpcPeeringAuthorization]
-> ReadPrec DeleteVpcPeeringAuthorization
-> ReadPrec [DeleteVpcPeeringAuthorization]
-> Read DeleteVpcPeeringAuthorization
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteVpcPeeringAuthorization]
$creadListPrec :: ReadPrec [DeleteVpcPeeringAuthorization]
readPrec :: ReadPrec DeleteVpcPeeringAuthorization
$creadPrec :: ReadPrec DeleteVpcPeeringAuthorization
readList :: ReadS [DeleteVpcPeeringAuthorization]
$creadList :: ReadS [DeleteVpcPeeringAuthorization]
readsPrec :: Int -> ReadS DeleteVpcPeeringAuthorization
$creadsPrec :: Int -> ReadS DeleteVpcPeeringAuthorization
Prelude.Read, Int -> DeleteVpcPeeringAuthorization -> ShowS
[DeleteVpcPeeringAuthorization] -> ShowS
DeleteVpcPeeringAuthorization -> String
(Int -> DeleteVpcPeeringAuthorization -> ShowS)
-> (DeleteVpcPeeringAuthorization -> String)
-> ([DeleteVpcPeeringAuthorization] -> ShowS)
-> Show DeleteVpcPeeringAuthorization
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteVpcPeeringAuthorization] -> ShowS
$cshowList :: [DeleteVpcPeeringAuthorization] -> ShowS
show :: DeleteVpcPeeringAuthorization -> String
$cshow :: DeleteVpcPeeringAuthorization -> String
showsPrec :: Int -> DeleteVpcPeeringAuthorization -> ShowS
$cshowsPrec :: Int -> DeleteVpcPeeringAuthorization -> ShowS
Prelude.Show, (forall x.
 DeleteVpcPeeringAuthorization
 -> Rep DeleteVpcPeeringAuthorization x)
-> (forall x.
    Rep DeleteVpcPeeringAuthorization x
    -> DeleteVpcPeeringAuthorization)
-> Generic DeleteVpcPeeringAuthorization
forall x.
Rep DeleteVpcPeeringAuthorization x
-> DeleteVpcPeeringAuthorization
forall x.
DeleteVpcPeeringAuthorization
-> Rep DeleteVpcPeeringAuthorization x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteVpcPeeringAuthorization x
-> DeleteVpcPeeringAuthorization
$cfrom :: forall x.
DeleteVpcPeeringAuthorization
-> Rep DeleteVpcPeeringAuthorization x
Prelude.Generic)

-- |
-- Create a value of 'DeleteVpcPeeringAuthorization' 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:
--
-- 'gameLiftAwsAccountId', 'deleteVpcPeeringAuthorization_gameLiftAwsAccountId' - A unique identifier for the AWS account that you use to manage your
-- GameLift fleet. You can find your Account ID in the AWS Management
-- Console under account settings.
--
-- 'peerVpcId', 'deleteVpcPeeringAuthorization_peerVpcId' - A unique identifier for a VPC with resources to be accessed by your
-- GameLift fleet. The VPC must be in the same Region as your fleet. To
-- look up a VPC ID, use the
-- <https://console.aws.amazon.com/vpc/ VPC Dashboard> in the AWS
-- Management Console. Learn more about VPC peering in
-- <https://docs.aws.amazon.com/gamelift/latest/developerguide/vpc-peering.html VPC Peering with GameLift Fleets>.
newDeleteVpcPeeringAuthorization ::
  -- | 'gameLiftAwsAccountId'
  Prelude.Text ->
  -- | 'peerVpcId'
  Prelude.Text ->
  DeleteVpcPeeringAuthorization
newDeleteVpcPeeringAuthorization :: Text -> Text -> DeleteVpcPeeringAuthorization
newDeleteVpcPeeringAuthorization
  Text
pGameLiftAwsAccountId_
  Text
pPeerVpcId_ =
    DeleteVpcPeeringAuthorization' :: Text -> Text -> DeleteVpcPeeringAuthorization
DeleteVpcPeeringAuthorization'
      { $sel:gameLiftAwsAccountId:DeleteVpcPeeringAuthorization' :: Text
gameLiftAwsAccountId =
          Text
pGameLiftAwsAccountId_,
        $sel:peerVpcId:DeleteVpcPeeringAuthorization' :: Text
peerVpcId = Text
pPeerVpcId_
      }

-- | A unique identifier for the AWS account that you use to manage your
-- GameLift fleet. You can find your Account ID in the AWS Management
-- Console under account settings.
deleteVpcPeeringAuthorization_gameLiftAwsAccountId :: Lens.Lens' DeleteVpcPeeringAuthorization Prelude.Text
deleteVpcPeeringAuthorization_gameLiftAwsAccountId :: (Text -> f Text)
-> DeleteVpcPeeringAuthorization -> f DeleteVpcPeeringAuthorization
deleteVpcPeeringAuthorization_gameLiftAwsAccountId = (DeleteVpcPeeringAuthorization -> Text)
-> (DeleteVpcPeeringAuthorization
    -> Text -> DeleteVpcPeeringAuthorization)
-> Lens
     DeleteVpcPeeringAuthorization
     DeleteVpcPeeringAuthorization
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteVpcPeeringAuthorization' {Text
gameLiftAwsAccountId :: Text
$sel:gameLiftAwsAccountId:DeleteVpcPeeringAuthorization' :: DeleteVpcPeeringAuthorization -> Text
gameLiftAwsAccountId} -> Text
gameLiftAwsAccountId) (\s :: DeleteVpcPeeringAuthorization
s@DeleteVpcPeeringAuthorization' {} Text
a -> DeleteVpcPeeringAuthorization
s {$sel:gameLiftAwsAccountId:DeleteVpcPeeringAuthorization' :: Text
gameLiftAwsAccountId = Text
a} :: DeleteVpcPeeringAuthorization)

-- | A unique identifier for a VPC with resources to be accessed by your
-- GameLift fleet. The VPC must be in the same Region as your fleet. To
-- look up a VPC ID, use the
-- <https://console.aws.amazon.com/vpc/ VPC Dashboard> in the AWS
-- Management Console. Learn more about VPC peering in
-- <https://docs.aws.amazon.com/gamelift/latest/developerguide/vpc-peering.html VPC Peering with GameLift Fleets>.
deleteVpcPeeringAuthorization_peerVpcId :: Lens.Lens' DeleteVpcPeeringAuthorization Prelude.Text
deleteVpcPeeringAuthorization_peerVpcId :: (Text -> f Text)
-> DeleteVpcPeeringAuthorization -> f DeleteVpcPeeringAuthorization
deleteVpcPeeringAuthorization_peerVpcId = (DeleteVpcPeeringAuthorization -> Text)
-> (DeleteVpcPeeringAuthorization
    -> Text -> DeleteVpcPeeringAuthorization)
-> Lens
     DeleteVpcPeeringAuthorization
     DeleteVpcPeeringAuthorization
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteVpcPeeringAuthorization' {Text
peerVpcId :: Text
$sel:peerVpcId:DeleteVpcPeeringAuthorization' :: DeleteVpcPeeringAuthorization -> Text
peerVpcId} -> Text
peerVpcId) (\s :: DeleteVpcPeeringAuthorization
s@DeleteVpcPeeringAuthorization' {} Text
a -> DeleteVpcPeeringAuthorization
s {$sel:peerVpcId:DeleteVpcPeeringAuthorization' :: Text
peerVpcId = Text
a} :: DeleteVpcPeeringAuthorization)

instance
  Core.AWSRequest
    DeleteVpcPeeringAuthorization
  where
  type
    AWSResponse DeleteVpcPeeringAuthorization =
      DeleteVpcPeeringAuthorizationResponse
  request :: DeleteVpcPeeringAuthorization
-> Request DeleteVpcPeeringAuthorization
request = Service
-> DeleteVpcPeeringAuthorization
-> Request DeleteVpcPeeringAuthorization
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DeleteVpcPeeringAuthorization
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DeleteVpcPeeringAuthorization)))
response =
    (Int
 -> ResponseHeaders
 -> ()
 -> Either String (AWSResponse DeleteVpcPeeringAuthorization))
-> Logger
-> Service
-> Proxy DeleteVpcPeeringAuthorization
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DeleteVpcPeeringAuthorization)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
      ( \Int
s ResponseHeaders
h ()
x ->
          Int -> DeleteVpcPeeringAuthorizationResponse
DeleteVpcPeeringAuthorizationResponse'
            (Int -> DeleteVpcPeeringAuthorizationResponse)
-> Either String Int
-> Either String DeleteVpcPeeringAuthorizationResponse
forall (f :: * -> *) a b. Functor 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
    DeleteVpcPeeringAuthorization

instance Prelude.NFData DeleteVpcPeeringAuthorization

instance Core.ToHeaders DeleteVpcPeeringAuthorization where
  toHeaders :: DeleteVpcPeeringAuthorization -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DeleteVpcPeeringAuthorization -> 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
"GameLift.DeleteVpcPeeringAuthorization" ::
                          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 DeleteVpcPeeringAuthorization where
  toJSON :: DeleteVpcPeeringAuthorization -> Value
toJSON DeleteVpcPeeringAuthorization' {Text
peerVpcId :: Text
gameLiftAwsAccountId :: Text
$sel:peerVpcId:DeleteVpcPeeringAuthorization' :: DeleteVpcPeeringAuthorization -> Text
$sel:gameLiftAwsAccountId:DeleteVpcPeeringAuthorization' :: DeleteVpcPeeringAuthorization -> 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
"GameLiftAwsAccountId"
                  Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
gameLiftAwsAccountId
              ),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"PeerVpcId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
peerVpcId)
          ]
      )

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

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

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

-- |
-- Create a value of 'DeleteVpcPeeringAuthorizationResponse' 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:
--
-- 'httpStatus', 'deleteVpcPeeringAuthorizationResponse_httpStatus' - The response's http status code.
newDeleteVpcPeeringAuthorizationResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DeleteVpcPeeringAuthorizationResponse
newDeleteVpcPeeringAuthorizationResponse :: Int -> DeleteVpcPeeringAuthorizationResponse
newDeleteVpcPeeringAuthorizationResponse Int
pHttpStatus_ =
  DeleteVpcPeeringAuthorizationResponse' :: Int -> DeleteVpcPeeringAuthorizationResponse
DeleteVpcPeeringAuthorizationResponse'
    { $sel:httpStatus:DeleteVpcPeeringAuthorizationResponse' :: Int
httpStatus =
        Int
pHttpStatus_
    }

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

instance
  Prelude.NFData
    DeleteVpcPeeringAuthorizationResponse