{-# 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.APIGateway.GetVpcLinks
-- 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 the VpcLinks collection under the caller\'s account in a selected
-- region.
--
-- This operation returns paginated results.
module Amazonka.APIGateway.GetVpcLinks
  ( -- * Creating a Request
    GetVpcLinks (..),
    newGetVpcLinks,

    -- * Request Lenses
    getVpcLinks_limit,
    getVpcLinks_position,

    -- * Destructuring the Response
    GetVpcLinksResponse (..),
    newGetVpcLinksResponse,

    -- * Response Lenses
    getVpcLinksResponse_items,
    getVpcLinksResponse_position,
    getVpcLinksResponse_httpStatus,
  )
where

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

-- | Gets the VpcLinks collection under the caller\'s account in a selected
-- region.
--
-- /See:/ 'newGetVpcLinks' smart constructor.
data GetVpcLinks = GetVpcLinks'
  { -- | The maximum number of returned results per page. The default value is 25
    -- and the maximum value is 500.
    GetVpcLinks -> Maybe Int
limit :: Prelude.Maybe Prelude.Int,
    -- | The current pagination position in the paged result set.
    GetVpcLinks -> Maybe Text
position :: Prelude.Maybe Prelude.Text
  }
  deriving (GetVpcLinks -> GetVpcLinks -> Bool
(GetVpcLinks -> GetVpcLinks -> Bool)
-> (GetVpcLinks -> GetVpcLinks -> Bool) -> Eq GetVpcLinks
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetVpcLinks -> GetVpcLinks -> Bool
$c/= :: GetVpcLinks -> GetVpcLinks -> Bool
== :: GetVpcLinks -> GetVpcLinks -> Bool
$c== :: GetVpcLinks -> GetVpcLinks -> Bool
Prelude.Eq, ReadPrec [GetVpcLinks]
ReadPrec GetVpcLinks
Int -> ReadS GetVpcLinks
ReadS [GetVpcLinks]
(Int -> ReadS GetVpcLinks)
-> ReadS [GetVpcLinks]
-> ReadPrec GetVpcLinks
-> ReadPrec [GetVpcLinks]
-> Read GetVpcLinks
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetVpcLinks]
$creadListPrec :: ReadPrec [GetVpcLinks]
readPrec :: ReadPrec GetVpcLinks
$creadPrec :: ReadPrec GetVpcLinks
readList :: ReadS [GetVpcLinks]
$creadList :: ReadS [GetVpcLinks]
readsPrec :: Int -> ReadS GetVpcLinks
$creadsPrec :: Int -> ReadS GetVpcLinks
Prelude.Read, Int -> GetVpcLinks -> ShowS
[GetVpcLinks] -> ShowS
GetVpcLinks -> String
(Int -> GetVpcLinks -> ShowS)
-> (GetVpcLinks -> String)
-> ([GetVpcLinks] -> ShowS)
-> Show GetVpcLinks
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetVpcLinks] -> ShowS
$cshowList :: [GetVpcLinks] -> ShowS
show :: GetVpcLinks -> String
$cshow :: GetVpcLinks -> String
showsPrec :: Int -> GetVpcLinks -> ShowS
$cshowsPrec :: Int -> GetVpcLinks -> ShowS
Prelude.Show, (forall x. GetVpcLinks -> Rep GetVpcLinks x)
-> (forall x. Rep GetVpcLinks x -> GetVpcLinks)
-> Generic GetVpcLinks
forall x. Rep GetVpcLinks x -> GetVpcLinks
forall x. GetVpcLinks -> Rep GetVpcLinks x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetVpcLinks x -> GetVpcLinks
$cfrom :: forall x. GetVpcLinks -> Rep GetVpcLinks x
Prelude.Generic)

-- |
-- Create a value of 'GetVpcLinks' 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:
--
-- 'limit', 'getVpcLinks_limit' - The maximum number of returned results per page. The default value is 25
-- and the maximum value is 500.
--
-- 'position', 'getVpcLinks_position' - The current pagination position in the paged result set.
newGetVpcLinks ::
  GetVpcLinks
newGetVpcLinks :: GetVpcLinks
newGetVpcLinks =
  GetVpcLinks' :: Maybe Int -> Maybe Text -> GetVpcLinks
GetVpcLinks'
    { $sel:limit:GetVpcLinks' :: Maybe Int
limit = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:position:GetVpcLinks' :: Maybe Text
position = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The maximum number of returned results per page. The default value is 25
-- and the maximum value is 500.
getVpcLinks_limit :: Lens.Lens' GetVpcLinks (Prelude.Maybe Prelude.Int)
getVpcLinks_limit :: (Maybe Int -> f (Maybe Int)) -> GetVpcLinks -> f GetVpcLinks
getVpcLinks_limit = (GetVpcLinks -> Maybe Int)
-> (GetVpcLinks -> Maybe Int -> GetVpcLinks)
-> Lens GetVpcLinks GetVpcLinks (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetVpcLinks' {Maybe Int
limit :: Maybe Int
$sel:limit:GetVpcLinks' :: GetVpcLinks -> Maybe Int
limit} -> Maybe Int
limit) (\s :: GetVpcLinks
s@GetVpcLinks' {} Maybe Int
a -> GetVpcLinks
s {$sel:limit:GetVpcLinks' :: Maybe Int
limit = Maybe Int
a} :: GetVpcLinks)

-- | The current pagination position in the paged result set.
getVpcLinks_position :: Lens.Lens' GetVpcLinks (Prelude.Maybe Prelude.Text)
getVpcLinks_position :: (Maybe Text -> f (Maybe Text)) -> GetVpcLinks -> f GetVpcLinks
getVpcLinks_position = (GetVpcLinks -> Maybe Text)
-> (GetVpcLinks -> Maybe Text -> GetVpcLinks)
-> Lens GetVpcLinks GetVpcLinks (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetVpcLinks' {Maybe Text
position :: Maybe Text
$sel:position:GetVpcLinks' :: GetVpcLinks -> Maybe Text
position} -> Maybe Text
position) (\s :: GetVpcLinks
s@GetVpcLinks' {} Maybe Text
a -> GetVpcLinks
s {$sel:position:GetVpcLinks' :: Maybe Text
position = Maybe Text
a} :: GetVpcLinks)

instance Core.AWSPager GetVpcLinks where
  page :: GetVpcLinks -> AWSResponse GetVpcLinks -> Maybe GetVpcLinks
page GetVpcLinks
rq AWSResponse GetVpcLinks
rs
    | Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse GetVpcLinks
GetVpcLinksResponse
rs
            GetVpcLinksResponse
-> Getting (First Text) GetVpcLinksResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetVpcLinksResponse -> Const (First Text) GetVpcLinksResponse
Lens' GetVpcLinksResponse (Maybe Text)
getVpcLinksResponse_position ((Maybe Text -> Const (First Text) (Maybe Text))
 -> GetVpcLinksResponse -> Const (First Text) GetVpcLinksResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetVpcLinksResponse 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 GetVpcLinks
forall a. Maybe a
Prelude.Nothing
    | Maybe [VpcLink] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse GetVpcLinks
GetVpcLinksResponse
rs
            GetVpcLinksResponse
-> Getting (First [VpcLink]) GetVpcLinksResponse [VpcLink]
-> Maybe [VpcLink]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [VpcLink] -> Const (First [VpcLink]) (Maybe [VpcLink]))
-> GetVpcLinksResponse
-> Const (First [VpcLink]) GetVpcLinksResponse
Lens' GetVpcLinksResponse (Maybe [VpcLink])
getVpcLinksResponse_items ((Maybe [VpcLink] -> Const (First [VpcLink]) (Maybe [VpcLink]))
 -> GetVpcLinksResponse
 -> Const (First [VpcLink]) GetVpcLinksResponse)
-> (([VpcLink] -> Const (First [VpcLink]) [VpcLink])
    -> Maybe [VpcLink] -> Const (First [VpcLink]) (Maybe [VpcLink]))
-> Getting (First [VpcLink]) GetVpcLinksResponse [VpcLink]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([VpcLink] -> Const (First [VpcLink]) [VpcLink])
-> Maybe [VpcLink] -> Const (First [VpcLink]) (Maybe [VpcLink])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe GetVpcLinks
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      GetVpcLinks -> Maybe GetVpcLinks
forall a. a -> Maybe a
Prelude.Just (GetVpcLinks -> Maybe GetVpcLinks)
-> GetVpcLinks -> Maybe GetVpcLinks
forall a b. (a -> b) -> a -> b
Prelude.$
        GetVpcLinks
rq
          GetVpcLinks -> (GetVpcLinks -> GetVpcLinks) -> GetVpcLinks
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> GetVpcLinks -> Identity GetVpcLinks
Lens GetVpcLinks GetVpcLinks (Maybe Text) (Maybe Text)
getVpcLinks_position
          ((Maybe Text -> Identity (Maybe Text))
 -> GetVpcLinks -> Identity GetVpcLinks)
-> Maybe Text -> GetVpcLinks -> GetVpcLinks
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse GetVpcLinks
GetVpcLinksResponse
rs
          GetVpcLinksResponse
-> Getting (First Text) GetVpcLinksResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetVpcLinksResponse -> Const (First Text) GetVpcLinksResponse
Lens' GetVpcLinksResponse (Maybe Text)
getVpcLinksResponse_position ((Maybe Text -> Const (First Text) (Maybe Text))
 -> GetVpcLinksResponse -> Const (First Text) GetVpcLinksResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetVpcLinksResponse 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 GetVpcLinks where
  type AWSResponse GetVpcLinks = GetVpcLinksResponse
  request :: GetVpcLinks -> Request GetVpcLinks
request = Service -> GetVpcLinks -> Request GetVpcLinks
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy GetVpcLinks
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetVpcLinks)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse GetVpcLinks))
-> Logger
-> Service
-> Proxy GetVpcLinks
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetVpcLinks)))
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 [VpcLink] -> Maybe Text -> Int -> GetVpcLinksResponse
GetVpcLinksResponse'
            (Maybe [VpcLink] -> Maybe Text -> Int -> GetVpcLinksResponse)
-> Either String (Maybe [VpcLink])
-> Either String (Maybe Text -> Int -> GetVpcLinksResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [VpcLink]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"item" Either String (Maybe (Maybe [VpcLink]))
-> Maybe [VpcLink] -> Either String (Maybe [VpcLink])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [VpcLink]
forall a. Monoid a => a
Prelude.mempty)
            Either String (Maybe Text -> Int -> GetVpcLinksResponse)
-> Either String (Maybe Text)
-> Either String (Int -> GetVpcLinksResponse)
forall (f :: * -> *) a b. Applicative f => 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
"position")
            Either String (Int -> GetVpcLinksResponse)
-> Either String Int -> Either String GetVpcLinksResponse
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 GetVpcLinks

instance Prelude.NFData GetVpcLinks

instance Core.ToHeaders GetVpcLinks where
  toHeaders :: GetVpcLinks -> ResponseHeaders
toHeaders =
    ResponseHeaders -> GetVpcLinks -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Accept"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# (ByteString
"application/json" :: Prelude.ByteString)
          ]
      )

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

instance Core.ToQuery GetVpcLinks where
  toQuery :: GetVpcLinks -> QueryString
toQuery GetVpcLinks' {Maybe Int
Maybe Text
position :: Maybe Text
limit :: Maybe Int
$sel:position:GetVpcLinks' :: GetVpcLinks -> Maybe Text
$sel:limit:GetVpcLinks' :: GetVpcLinks -> Maybe Int
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"limit" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
limit, ByteString
"position" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
position]

-- | The collection of VPC links under the caller\'s account in a region.
--
-- <https://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started-with-private-integration.html Getting Started with Private Integrations>,
-- <https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-private-integration.html Set up Private Integrations>
--
-- /See:/ 'newGetVpcLinksResponse' smart constructor.
data GetVpcLinksResponse = GetVpcLinksResponse'
  { -- | The current page of elements from this collection.
    GetVpcLinksResponse -> Maybe [VpcLink]
items :: Prelude.Maybe [VpcLink],
    GetVpcLinksResponse -> Maybe Text
position :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    GetVpcLinksResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetVpcLinksResponse -> GetVpcLinksResponse -> Bool
(GetVpcLinksResponse -> GetVpcLinksResponse -> Bool)
-> (GetVpcLinksResponse -> GetVpcLinksResponse -> Bool)
-> Eq GetVpcLinksResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetVpcLinksResponse -> GetVpcLinksResponse -> Bool
$c/= :: GetVpcLinksResponse -> GetVpcLinksResponse -> Bool
== :: GetVpcLinksResponse -> GetVpcLinksResponse -> Bool
$c== :: GetVpcLinksResponse -> GetVpcLinksResponse -> Bool
Prelude.Eq, ReadPrec [GetVpcLinksResponse]
ReadPrec GetVpcLinksResponse
Int -> ReadS GetVpcLinksResponse
ReadS [GetVpcLinksResponse]
(Int -> ReadS GetVpcLinksResponse)
-> ReadS [GetVpcLinksResponse]
-> ReadPrec GetVpcLinksResponse
-> ReadPrec [GetVpcLinksResponse]
-> Read GetVpcLinksResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetVpcLinksResponse]
$creadListPrec :: ReadPrec [GetVpcLinksResponse]
readPrec :: ReadPrec GetVpcLinksResponse
$creadPrec :: ReadPrec GetVpcLinksResponse
readList :: ReadS [GetVpcLinksResponse]
$creadList :: ReadS [GetVpcLinksResponse]
readsPrec :: Int -> ReadS GetVpcLinksResponse
$creadsPrec :: Int -> ReadS GetVpcLinksResponse
Prelude.Read, Int -> GetVpcLinksResponse -> ShowS
[GetVpcLinksResponse] -> ShowS
GetVpcLinksResponse -> String
(Int -> GetVpcLinksResponse -> ShowS)
-> (GetVpcLinksResponse -> String)
-> ([GetVpcLinksResponse] -> ShowS)
-> Show GetVpcLinksResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetVpcLinksResponse] -> ShowS
$cshowList :: [GetVpcLinksResponse] -> ShowS
show :: GetVpcLinksResponse -> String
$cshow :: GetVpcLinksResponse -> String
showsPrec :: Int -> GetVpcLinksResponse -> ShowS
$cshowsPrec :: Int -> GetVpcLinksResponse -> ShowS
Prelude.Show, (forall x. GetVpcLinksResponse -> Rep GetVpcLinksResponse x)
-> (forall x. Rep GetVpcLinksResponse x -> GetVpcLinksResponse)
-> Generic GetVpcLinksResponse
forall x. Rep GetVpcLinksResponse x -> GetVpcLinksResponse
forall x. GetVpcLinksResponse -> Rep GetVpcLinksResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetVpcLinksResponse x -> GetVpcLinksResponse
$cfrom :: forall x. GetVpcLinksResponse -> Rep GetVpcLinksResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetVpcLinksResponse' 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:
--
-- 'items', 'getVpcLinksResponse_items' - The current page of elements from this collection.
--
-- 'position', 'getVpcLinksResponse_position' - Undocumented member.
--
-- 'httpStatus', 'getVpcLinksResponse_httpStatus' - The response's http status code.
newGetVpcLinksResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetVpcLinksResponse
newGetVpcLinksResponse :: Int -> GetVpcLinksResponse
newGetVpcLinksResponse Int
pHttpStatus_ =
  GetVpcLinksResponse' :: Maybe [VpcLink] -> Maybe Text -> Int -> GetVpcLinksResponse
GetVpcLinksResponse'
    { $sel:items:GetVpcLinksResponse' :: Maybe [VpcLink]
items = Maybe [VpcLink]
forall a. Maybe a
Prelude.Nothing,
      $sel:position:GetVpcLinksResponse' :: Maybe Text
position = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:GetVpcLinksResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The current page of elements from this collection.
getVpcLinksResponse_items :: Lens.Lens' GetVpcLinksResponse (Prelude.Maybe [VpcLink])
getVpcLinksResponse_items :: (Maybe [VpcLink] -> f (Maybe [VpcLink]))
-> GetVpcLinksResponse -> f GetVpcLinksResponse
getVpcLinksResponse_items = (GetVpcLinksResponse -> Maybe [VpcLink])
-> (GetVpcLinksResponse -> Maybe [VpcLink] -> GetVpcLinksResponse)
-> Lens' GetVpcLinksResponse (Maybe [VpcLink])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetVpcLinksResponse' {Maybe [VpcLink]
items :: Maybe [VpcLink]
$sel:items:GetVpcLinksResponse' :: GetVpcLinksResponse -> Maybe [VpcLink]
items} -> Maybe [VpcLink]
items) (\s :: GetVpcLinksResponse
s@GetVpcLinksResponse' {} Maybe [VpcLink]
a -> GetVpcLinksResponse
s {$sel:items:GetVpcLinksResponse' :: Maybe [VpcLink]
items = Maybe [VpcLink]
a} :: GetVpcLinksResponse) ((Maybe [VpcLink] -> f (Maybe [VpcLink]))
 -> GetVpcLinksResponse -> f GetVpcLinksResponse)
-> ((Maybe [VpcLink] -> f (Maybe [VpcLink]))
    -> Maybe [VpcLink] -> f (Maybe [VpcLink]))
-> (Maybe [VpcLink] -> f (Maybe [VpcLink]))
-> GetVpcLinksResponse
-> f GetVpcLinksResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [VpcLink] [VpcLink] [VpcLink] [VpcLink]
-> Iso
     (Maybe [VpcLink])
     (Maybe [VpcLink])
     (Maybe [VpcLink])
     (Maybe [VpcLink])
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 [VpcLink] [VpcLink] [VpcLink] [VpcLink]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Undocumented member.
getVpcLinksResponse_position :: Lens.Lens' GetVpcLinksResponse (Prelude.Maybe Prelude.Text)
getVpcLinksResponse_position :: (Maybe Text -> f (Maybe Text))
-> GetVpcLinksResponse -> f GetVpcLinksResponse
getVpcLinksResponse_position = (GetVpcLinksResponse -> Maybe Text)
-> (GetVpcLinksResponse -> Maybe Text -> GetVpcLinksResponse)
-> Lens' GetVpcLinksResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetVpcLinksResponse' {Maybe Text
position :: Maybe Text
$sel:position:GetVpcLinksResponse' :: GetVpcLinksResponse -> Maybe Text
position} -> Maybe Text
position) (\s :: GetVpcLinksResponse
s@GetVpcLinksResponse' {} Maybe Text
a -> GetVpcLinksResponse
s {$sel:position:GetVpcLinksResponse' :: Maybe Text
position = Maybe Text
a} :: GetVpcLinksResponse)

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

instance Prelude.NFData GetVpcLinksResponse