{-# 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.DescribeVpcPeeringAuthorizations
-- 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)
--
-- Retrieves valid VPC peering authorizations that are pending for the AWS
-- account. This operation returns all VPC peering authorizations and
-- requests for peering. This includes those initiated and received by this
-- account.
--
-- __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.DescribeVpcPeeringAuthorizations
  ( -- * Creating a Request
    DescribeVpcPeeringAuthorizations (..),
    newDescribeVpcPeeringAuthorizations,

    -- * Destructuring the Response
    DescribeVpcPeeringAuthorizationsResponse (..),
    newDescribeVpcPeeringAuthorizationsResponse,

    -- * Response Lenses
    describeVpcPeeringAuthorizationsResponse_vpcPeeringAuthorizations,
    describeVpcPeeringAuthorizationsResponse_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

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

-- |
-- Create a value of 'DescribeVpcPeeringAuthorizations' 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.
newDescribeVpcPeeringAuthorizations ::
  DescribeVpcPeeringAuthorizations
newDescribeVpcPeeringAuthorizations :: DescribeVpcPeeringAuthorizations
newDescribeVpcPeeringAuthorizations =
  DescribeVpcPeeringAuthorizations
DescribeVpcPeeringAuthorizations'

instance
  Core.AWSRequest
    DescribeVpcPeeringAuthorizations
  where
  type
    AWSResponse DescribeVpcPeeringAuthorizations =
      DescribeVpcPeeringAuthorizationsResponse
  request :: DescribeVpcPeeringAuthorizations
-> Request DescribeVpcPeeringAuthorizations
request = Service
-> DescribeVpcPeeringAuthorizations
-> Request DescribeVpcPeeringAuthorizations
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeVpcPeeringAuthorizations
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse DescribeVpcPeeringAuthorizations)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeVpcPeeringAuthorizations))
-> Logger
-> Service
-> Proxy DescribeVpcPeeringAuthorizations
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse DescribeVpcPeeringAuthorizations)))
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 [VpcPeeringAuthorization]
-> Int -> DescribeVpcPeeringAuthorizationsResponse
DescribeVpcPeeringAuthorizationsResponse'
            (Maybe [VpcPeeringAuthorization]
 -> Int -> DescribeVpcPeeringAuthorizationsResponse)
-> Either String (Maybe [VpcPeeringAuthorization])
-> Either String (Int -> DescribeVpcPeeringAuthorizationsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Key -> Either String (Maybe (Maybe [VpcPeeringAuthorization]))
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Core..?> Key
"VpcPeeringAuthorizations"
                            Either String (Maybe (Maybe [VpcPeeringAuthorization]))
-> Maybe [VpcPeeringAuthorization]
-> Either String (Maybe [VpcPeeringAuthorization])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [VpcPeeringAuthorization]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either String (Int -> DescribeVpcPeeringAuthorizationsResponse)
-> Either String Int
-> Either String DescribeVpcPeeringAuthorizationsResponse
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
    DescribeVpcPeeringAuthorizations

instance
  Prelude.NFData
    DescribeVpcPeeringAuthorizations

instance
  Core.ToHeaders
    DescribeVpcPeeringAuthorizations
  where
  toHeaders :: DescribeVpcPeeringAuthorizations -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> DescribeVpcPeeringAuthorizations -> 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.DescribeVpcPeeringAuthorizations" ::
                          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 DescribeVpcPeeringAuthorizations where
  toJSON :: DescribeVpcPeeringAuthorizations -> Value
toJSON = Value -> DescribeVpcPeeringAuthorizations -> Value
forall a b. a -> b -> a
Prelude.const (Object -> Value
Core.Object Object
forall a. Monoid a => a
Prelude.mempty)

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

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

-- | /See:/ 'newDescribeVpcPeeringAuthorizationsResponse' smart constructor.
data DescribeVpcPeeringAuthorizationsResponse = DescribeVpcPeeringAuthorizationsResponse'
  { -- | A collection of objects that describe all valid VPC peering operations
    -- for the current AWS account.
    DescribeVpcPeeringAuthorizationsResponse
-> Maybe [VpcPeeringAuthorization]
vpcPeeringAuthorizations :: Prelude.Maybe [VpcPeeringAuthorization],
    -- | The response's http status code.
    DescribeVpcPeeringAuthorizationsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeVpcPeeringAuthorizationsResponse
-> DescribeVpcPeeringAuthorizationsResponse -> Bool
(DescribeVpcPeeringAuthorizationsResponse
 -> DescribeVpcPeeringAuthorizationsResponse -> Bool)
-> (DescribeVpcPeeringAuthorizationsResponse
    -> DescribeVpcPeeringAuthorizationsResponse -> Bool)
-> Eq DescribeVpcPeeringAuthorizationsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeVpcPeeringAuthorizationsResponse
-> DescribeVpcPeeringAuthorizationsResponse -> Bool
$c/= :: DescribeVpcPeeringAuthorizationsResponse
-> DescribeVpcPeeringAuthorizationsResponse -> Bool
== :: DescribeVpcPeeringAuthorizationsResponse
-> DescribeVpcPeeringAuthorizationsResponse -> Bool
$c== :: DescribeVpcPeeringAuthorizationsResponse
-> DescribeVpcPeeringAuthorizationsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeVpcPeeringAuthorizationsResponse]
ReadPrec DescribeVpcPeeringAuthorizationsResponse
Int -> ReadS DescribeVpcPeeringAuthorizationsResponse
ReadS [DescribeVpcPeeringAuthorizationsResponse]
(Int -> ReadS DescribeVpcPeeringAuthorizationsResponse)
-> ReadS [DescribeVpcPeeringAuthorizationsResponse]
-> ReadPrec DescribeVpcPeeringAuthorizationsResponse
-> ReadPrec [DescribeVpcPeeringAuthorizationsResponse]
-> Read DescribeVpcPeeringAuthorizationsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeVpcPeeringAuthorizationsResponse]
$creadListPrec :: ReadPrec [DescribeVpcPeeringAuthorizationsResponse]
readPrec :: ReadPrec DescribeVpcPeeringAuthorizationsResponse
$creadPrec :: ReadPrec DescribeVpcPeeringAuthorizationsResponse
readList :: ReadS [DescribeVpcPeeringAuthorizationsResponse]
$creadList :: ReadS [DescribeVpcPeeringAuthorizationsResponse]
readsPrec :: Int -> ReadS DescribeVpcPeeringAuthorizationsResponse
$creadsPrec :: Int -> ReadS DescribeVpcPeeringAuthorizationsResponse
Prelude.Read, Int -> DescribeVpcPeeringAuthorizationsResponse -> ShowS
[DescribeVpcPeeringAuthorizationsResponse] -> ShowS
DescribeVpcPeeringAuthorizationsResponse -> String
(Int -> DescribeVpcPeeringAuthorizationsResponse -> ShowS)
-> (DescribeVpcPeeringAuthorizationsResponse -> String)
-> ([DescribeVpcPeeringAuthorizationsResponse] -> ShowS)
-> Show DescribeVpcPeeringAuthorizationsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeVpcPeeringAuthorizationsResponse] -> ShowS
$cshowList :: [DescribeVpcPeeringAuthorizationsResponse] -> ShowS
show :: DescribeVpcPeeringAuthorizationsResponse -> String
$cshow :: DescribeVpcPeeringAuthorizationsResponse -> String
showsPrec :: Int -> DescribeVpcPeeringAuthorizationsResponse -> ShowS
$cshowsPrec :: Int -> DescribeVpcPeeringAuthorizationsResponse -> ShowS
Prelude.Show, (forall x.
 DescribeVpcPeeringAuthorizationsResponse
 -> Rep DescribeVpcPeeringAuthorizationsResponse x)
-> (forall x.
    Rep DescribeVpcPeeringAuthorizationsResponse x
    -> DescribeVpcPeeringAuthorizationsResponse)
-> Generic DescribeVpcPeeringAuthorizationsResponse
forall x.
Rep DescribeVpcPeeringAuthorizationsResponse x
-> DescribeVpcPeeringAuthorizationsResponse
forall x.
DescribeVpcPeeringAuthorizationsResponse
-> Rep DescribeVpcPeeringAuthorizationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeVpcPeeringAuthorizationsResponse x
-> DescribeVpcPeeringAuthorizationsResponse
$cfrom :: forall x.
DescribeVpcPeeringAuthorizationsResponse
-> Rep DescribeVpcPeeringAuthorizationsResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeVpcPeeringAuthorizationsResponse' 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:
--
-- 'vpcPeeringAuthorizations', 'describeVpcPeeringAuthorizationsResponse_vpcPeeringAuthorizations' - A collection of objects that describe all valid VPC peering operations
-- for the current AWS account.
--
-- 'httpStatus', 'describeVpcPeeringAuthorizationsResponse_httpStatus' - The response's http status code.
newDescribeVpcPeeringAuthorizationsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeVpcPeeringAuthorizationsResponse
newDescribeVpcPeeringAuthorizationsResponse :: Int -> DescribeVpcPeeringAuthorizationsResponse
newDescribeVpcPeeringAuthorizationsResponse
  Int
pHttpStatus_ =
    DescribeVpcPeeringAuthorizationsResponse' :: Maybe [VpcPeeringAuthorization]
-> Int -> DescribeVpcPeeringAuthorizationsResponse
DescribeVpcPeeringAuthorizationsResponse'
      { $sel:vpcPeeringAuthorizations:DescribeVpcPeeringAuthorizationsResponse' :: Maybe [VpcPeeringAuthorization]
vpcPeeringAuthorizations =
          Maybe [VpcPeeringAuthorization]
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeVpcPeeringAuthorizationsResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | A collection of objects that describe all valid VPC peering operations
-- for the current AWS account.
describeVpcPeeringAuthorizationsResponse_vpcPeeringAuthorizations :: Lens.Lens' DescribeVpcPeeringAuthorizationsResponse (Prelude.Maybe [VpcPeeringAuthorization])
describeVpcPeeringAuthorizationsResponse_vpcPeeringAuthorizations :: (Maybe [VpcPeeringAuthorization]
 -> f (Maybe [VpcPeeringAuthorization]))
-> DescribeVpcPeeringAuthorizationsResponse
-> f DescribeVpcPeeringAuthorizationsResponse
describeVpcPeeringAuthorizationsResponse_vpcPeeringAuthorizations = (DescribeVpcPeeringAuthorizationsResponse
 -> Maybe [VpcPeeringAuthorization])
-> (DescribeVpcPeeringAuthorizationsResponse
    -> Maybe [VpcPeeringAuthorization]
    -> DescribeVpcPeeringAuthorizationsResponse)
-> Lens
     DescribeVpcPeeringAuthorizationsResponse
     DescribeVpcPeeringAuthorizationsResponse
     (Maybe [VpcPeeringAuthorization])
     (Maybe [VpcPeeringAuthorization])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeVpcPeeringAuthorizationsResponse' {Maybe [VpcPeeringAuthorization]
vpcPeeringAuthorizations :: Maybe [VpcPeeringAuthorization]
$sel:vpcPeeringAuthorizations:DescribeVpcPeeringAuthorizationsResponse' :: DescribeVpcPeeringAuthorizationsResponse
-> Maybe [VpcPeeringAuthorization]
vpcPeeringAuthorizations} -> Maybe [VpcPeeringAuthorization]
vpcPeeringAuthorizations) (\s :: DescribeVpcPeeringAuthorizationsResponse
s@DescribeVpcPeeringAuthorizationsResponse' {} Maybe [VpcPeeringAuthorization]
a -> DescribeVpcPeeringAuthorizationsResponse
s {$sel:vpcPeeringAuthorizations:DescribeVpcPeeringAuthorizationsResponse' :: Maybe [VpcPeeringAuthorization]
vpcPeeringAuthorizations = Maybe [VpcPeeringAuthorization]
a} :: DescribeVpcPeeringAuthorizationsResponse) ((Maybe [VpcPeeringAuthorization]
  -> f (Maybe [VpcPeeringAuthorization]))
 -> DescribeVpcPeeringAuthorizationsResponse
 -> f DescribeVpcPeeringAuthorizationsResponse)
-> ((Maybe [VpcPeeringAuthorization]
     -> f (Maybe [VpcPeeringAuthorization]))
    -> Maybe [VpcPeeringAuthorization]
    -> f (Maybe [VpcPeeringAuthorization]))
-> (Maybe [VpcPeeringAuthorization]
    -> f (Maybe [VpcPeeringAuthorization]))
-> DescribeVpcPeeringAuthorizationsResponse
-> f DescribeVpcPeeringAuthorizationsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [VpcPeeringAuthorization]
  [VpcPeeringAuthorization]
  [VpcPeeringAuthorization]
  [VpcPeeringAuthorization]
-> Iso
     (Maybe [VpcPeeringAuthorization])
     (Maybe [VpcPeeringAuthorization])
     (Maybe [VpcPeeringAuthorization])
     (Maybe [VpcPeeringAuthorization])
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
  [VpcPeeringAuthorization]
  [VpcPeeringAuthorization]
  [VpcPeeringAuthorization]
  [VpcPeeringAuthorization]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    DescribeVpcPeeringAuthorizationsResponse