{-# 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.DeviceFarm.ListVPCEConfigurations
-- 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)
--
-- Returns information about all Amazon Virtual Private Cloud (VPC)
-- endpoint configurations in the AWS account.
--
-- This operation returns paginated results.
module Amazonka.DeviceFarm.ListVPCEConfigurations
  ( -- * Creating a Request
    ListVPCEConfigurations (..),
    newListVPCEConfigurations,

    -- * Request Lenses
    listVPCEConfigurations_nextToken,
    listVPCEConfigurations_maxResults,

    -- * Destructuring the Response
    ListVPCEConfigurationsResponse (..),
    newListVPCEConfigurationsResponse,

    -- * Response Lenses
    listVPCEConfigurationsResponse_nextToken,
    listVPCEConfigurationsResponse_vpceConfigurations,
    listVPCEConfigurationsResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.DeviceFarm.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:/ 'newListVPCEConfigurations' smart constructor.
data ListVPCEConfigurations = ListVPCEConfigurations'
  { -- | An identifier that was returned from the previous call to this
    -- operation, which can be used to return the next set of items in the
    -- list.
    ListVPCEConfigurations -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | An integer that specifies the maximum number of items you want to return
    -- in the API response.
    ListVPCEConfigurations -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int
  }
  deriving (ListVPCEConfigurations -> ListVPCEConfigurations -> Bool
(ListVPCEConfigurations -> ListVPCEConfigurations -> Bool)
-> (ListVPCEConfigurations -> ListVPCEConfigurations -> Bool)
-> Eq ListVPCEConfigurations
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListVPCEConfigurations -> ListVPCEConfigurations -> Bool
$c/= :: ListVPCEConfigurations -> ListVPCEConfigurations -> Bool
== :: ListVPCEConfigurations -> ListVPCEConfigurations -> Bool
$c== :: ListVPCEConfigurations -> ListVPCEConfigurations -> Bool
Prelude.Eq, ReadPrec [ListVPCEConfigurations]
ReadPrec ListVPCEConfigurations
Int -> ReadS ListVPCEConfigurations
ReadS [ListVPCEConfigurations]
(Int -> ReadS ListVPCEConfigurations)
-> ReadS [ListVPCEConfigurations]
-> ReadPrec ListVPCEConfigurations
-> ReadPrec [ListVPCEConfigurations]
-> Read ListVPCEConfigurations
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListVPCEConfigurations]
$creadListPrec :: ReadPrec [ListVPCEConfigurations]
readPrec :: ReadPrec ListVPCEConfigurations
$creadPrec :: ReadPrec ListVPCEConfigurations
readList :: ReadS [ListVPCEConfigurations]
$creadList :: ReadS [ListVPCEConfigurations]
readsPrec :: Int -> ReadS ListVPCEConfigurations
$creadsPrec :: Int -> ReadS ListVPCEConfigurations
Prelude.Read, Int -> ListVPCEConfigurations -> ShowS
[ListVPCEConfigurations] -> ShowS
ListVPCEConfigurations -> String
(Int -> ListVPCEConfigurations -> ShowS)
-> (ListVPCEConfigurations -> String)
-> ([ListVPCEConfigurations] -> ShowS)
-> Show ListVPCEConfigurations
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListVPCEConfigurations] -> ShowS
$cshowList :: [ListVPCEConfigurations] -> ShowS
show :: ListVPCEConfigurations -> String
$cshow :: ListVPCEConfigurations -> String
showsPrec :: Int -> ListVPCEConfigurations -> ShowS
$cshowsPrec :: Int -> ListVPCEConfigurations -> ShowS
Prelude.Show, (forall x. ListVPCEConfigurations -> Rep ListVPCEConfigurations x)
-> (forall x.
    Rep ListVPCEConfigurations x -> ListVPCEConfigurations)
-> Generic ListVPCEConfigurations
forall x. Rep ListVPCEConfigurations x -> ListVPCEConfigurations
forall x. ListVPCEConfigurations -> Rep ListVPCEConfigurations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListVPCEConfigurations x -> ListVPCEConfigurations
$cfrom :: forall x. ListVPCEConfigurations -> Rep ListVPCEConfigurations x
Prelude.Generic)

-- |
-- Create a value of 'ListVPCEConfigurations' 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:
--
-- 'nextToken', 'listVPCEConfigurations_nextToken' - An identifier that was returned from the previous call to this
-- operation, which can be used to return the next set of items in the
-- list.
--
-- 'maxResults', 'listVPCEConfigurations_maxResults' - An integer that specifies the maximum number of items you want to return
-- in the API response.
newListVPCEConfigurations ::
  ListVPCEConfigurations
newListVPCEConfigurations :: ListVPCEConfigurations
newListVPCEConfigurations =
  ListVPCEConfigurations' :: Maybe Text -> Maybe Int -> ListVPCEConfigurations
ListVPCEConfigurations'
    { $sel:nextToken:ListVPCEConfigurations' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListVPCEConfigurations' :: Maybe Int
maxResults = Maybe Int
forall a. Maybe a
Prelude.Nothing
    }

-- | An identifier that was returned from the previous call to this
-- operation, which can be used to return the next set of items in the
-- list.
listVPCEConfigurations_nextToken :: Lens.Lens' ListVPCEConfigurations (Prelude.Maybe Prelude.Text)
listVPCEConfigurations_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListVPCEConfigurations -> f ListVPCEConfigurations
listVPCEConfigurations_nextToken = (ListVPCEConfigurations -> Maybe Text)
-> (ListVPCEConfigurations -> Maybe Text -> ListVPCEConfigurations)
-> Lens
     ListVPCEConfigurations
     ListVPCEConfigurations
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVPCEConfigurations' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListVPCEConfigurations' :: ListVPCEConfigurations -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListVPCEConfigurations
s@ListVPCEConfigurations' {} Maybe Text
a -> ListVPCEConfigurations
s {$sel:nextToken:ListVPCEConfigurations' :: Maybe Text
nextToken = Maybe Text
a} :: ListVPCEConfigurations)

-- | An integer that specifies the maximum number of items you want to return
-- in the API response.
listVPCEConfigurations_maxResults :: Lens.Lens' ListVPCEConfigurations (Prelude.Maybe Prelude.Int)
listVPCEConfigurations_maxResults :: (Maybe Int -> f (Maybe Int))
-> ListVPCEConfigurations -> f ListVPCEConfigurations
listVPCEConfigurations_maxResults = (ListVPCEConfigurations -> Maybe Int)
-> (ListVPCEConfigurations -> Maybe Int -> ListVPCEConfigurations)
-> Lens
     ListVPCEConfigurations
     ListVPCEConfigurations
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVPCEConfigurations' {Maybe Int
maxResults :: Maybe Int
$sel:maxResults:ListVPCEConfigurations' :: ListVPCEConfigurations -> Maybe Int
maxResults} -> Maybe Int
maxResults) (\s :: ListVPCEConfigurations
s@ListVPCEConfigurations' {} Maybe Int
a -> ListVPCEConfigurations
s {$sel:maxResults:ListVPCEConfigurations' :: Maybe Int
maxResults = Maybe Int
a} :: ListVPCEConfigurations)

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

instance Prelude.NFData ListVPCEConfigurations

instance Core.ToHeaders ListVPCEConfigurations where
  toHeaders :: ListVPCEConfigurations -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListVPCEConfigurations -> 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
"DeviceFarm_20150623.ListVPCEConfigurations" ::
                          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 ListVPCEConfigurations where
  toJSON :: ListVPCEConfigurations -> Value
toJSON ListVPCEConfigurations' {Maybe Int
Maybe Text
maxResults :: Maybe Int
nextToken :: Maybe Text
$sel:maxResults:ListVPCEConfigurations' :: ListVPCEConfigurations -> Maybe Int
$sel:nextToken:ListVPCEConfigurations' :: ListVPCEConfigurations -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"nextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
            (Text
"maxResults" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
maxResults
          ]
      )

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

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

-- | /See:/ 'newListVPCEConfigurationsResponse' smart constructor.
data ListVPCEConfigurationsResponse = ListVPCEConfigurationsResponse'
  { -- | An identifier that was returned from the previous call to this
    -- operation, which can be used to return the next set of items in the
    -- list.
    ListVPCEConfigurationsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | An array of @VPCEConfiguration@ objects that contain information about
    -- your VPC endpoint configuration.
    ListVPCEConfigurationsResponse -> Maybe [VPCEConfiguration]
vpceConfigurations :: Prelude.Maybe [VPCEConfiguration],
    -- | The response's http status code.
    ListVPCEConfigurationsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListVPCEConfigurationsResponse
-> ListVPCEConfigurationsResponse -> Bool
(ListVPCEConfigurationsResponse
 -> ListVPCEConfigurationsResponse -> Bool)
-> (ListVPCEConfigurationsResponse
    -> ListVPCEConfigurationsResponse -> Bool)
-> Eq ListVPCEConfigurationsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListVPCEConfigurationsResponse
-> ListVPCEConfigurationsResponse -> Bool
$c/= :: ListVPCEConfigurationsResponse
-> ListVPCEConfigurationsResponse -> Bool
== :: ListVPCEConfigurationsResponse
-> ListVPCEConfigurationsResponse -> Bool
$c== :: ListVPCEConfigurationsResponse
-> ListVPCEConfigurationsResponse -> Bool
Prelude.Eq, ReadPrec [ListVPCEConfigurationsResponse]
ReadPrec ListVPCEConfigurationsResponse
Int -> ReadS ListVPCEConfigurationsResponse
ReadS [ListVPCEConfigurationsResponse]
(Int -> ReadS ListVPCEConfigurationsResponse)
-> ReadS [ListVPCEConfigurationsResponse]
-> ReadPrec ListVPCEConfigurationsResponse
-> ReadPrec [ListVPCEConfigurationsResponse]
-> Read ListVPCEConfigurationsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListVPCEConfigurationsResponse]
$creadListPrec :: ReadPrec [ListVPCEConfigurationsResponse]
readPrec :: ReadPrec ListVPCEConfigurationsResponse
$creadPrec :: ReadPrec ListVPCEConfigurationsResponse
readList :: ReadS [ListVPCEConfigurationsResponse]
$creadList :: ReadS [ListVPCEConfigurationsResponse]
readsPrec :: Int -> ReadS ListVPCEConfigurationsResponse
$creadsPrec :: Int -> ReadS ListVPCEConfigurationsResponse
Prelude.Read, Int -> ListVPCEConfigurationsResponse -> ShowS
[ListVPCEConfigurationsResponse] -> ShowS
ListVPCEConfigurationsResponse -> String
(Int -> ListVPCEConfigurationsResponse -> ShowS)
-> (ListVPCEConfigurationsResponse -> String)
-> ([ListVPCEConfigurationsResponse] -> ShowS)
-> Show ListVPCEConfigurationsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListVPCEConfigurationsResponse] -> ShowS
$cshowList :: [ListVPCEConfigurationsResponse] -> ShowS
show :: ListVPCEConfigurationsResponse -> String
$cshow :: ListVPCEConfigurationsResponse -> String
showsPrec :: Int -> ListVPCEConfigurationsResponse -> ShowS
$cshowsPrec :: Int -> ListVPCEConfigurationsResponse -> ShowS
Prelude.Show, (forall x.
 ListVPCEConfigurationsResponse
 -> Rep ListVPCEConfigurationsResponse x)
-> (forall x.
    Rep ListVPCEConfigurationsResponse x
    -> ListVPCEConfigurationsResponse)
-> Generic ListVPCEConfigurationsResponse
forall x.
Rep ListVPCEConfigurationsResponse x
-> ListVPCEConfigurationsResponse
forall x.
ListVPCEConfigurationsResponse
-> Rep ListVPCEConfigurationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListVPCEConfigurationsResponse x
-> ListVPCEConfigurationsResponse
$cfrom :: forall x.
ListVPCEConfigurationsResponse
-> Rep ListVPCEConfigurationsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListVPCEConfigurationsResponse' 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:
--
-- 'nextToken', 'listVPCEConfigurationsResponse_nextToken' - An identifier that was returned from the previous call to this
-- operation, which can be used to return the next set of items in the
-- list.
--
-- 'vpceConfigurations', 'listVPCEConfigurationsResponse_vpceConfigurations' - An array of @VPCEConfiguration@ objects that contain information about
-- your VPC endpoint configuration.
--
-- 'httpStatus', 'listVPCEConfigurationsResponse_httpStatus' - The response's http status code.
newListVPCEConfigurationsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListVPCEConfigurationsResponse
newListVPCEConfigurationsResponse :: Int -> ListVPCEConfigurationsResponse
newListVPCEConfigurationsResponse Int
pHttpStatus_ =
  ListVPCEConfigurationsResponse' :: Maybe Text
-> Maybe [VPCEConfiguration]
-> Int
-> ListVPCEConfigurationsResponse
ListVPCEConfigurationsResponse'
    { $sel:nextToken:ListVPCEConfigurationsResponse' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:vpceConfigurations:ListVPCEConfigurationsResponse' :: Maybe [VPCEConfiguration]
vpceConfigurations = Maybe [VPCEConfiguration]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListVPCEConfigurationsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | An identifier that was returned from the previous call to this
-- operation, which can be used to return the next set of items in the
-- list.
listVPCEConfigurationsResponse_nextToken :: Lens.Lens' ListVPCEConfigurationsResponse (Prelude.Maybe Prelude.Text)
listVPCEConfigurationsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListVPCEConfigurationsResponse
-> f ListVPCEConfigurationsResponse
listVPCEConfigurationsResponse_nextToken = (ListVPCEConfigurationsResponse -> Maybe Text)
-> (ListVPCEConfigurationsResponse
    -> Maybe Text -> ListVPCEConfigurationsResponse)
-> Lens' ListVPCEConfigurationsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVPCEConfigurationsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListVPCEConfigurationsResponse' :: ListVPCEConfigurationsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListVPCEConfigurationsResponse
s@ListVPCEConfigurationsResponse' {} Maybe Text
a -> ListVPCEConfigurationsResponse
s {$sel:nextToken:ListVPCEConfigurationsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListVPCEConfigurationsResponse)

-- | An array of @VPCEConfiguration@ objects that contain information about
-- your VPC endpoint configuration.
listVPCEConfigurationsResponse_vpceConfigurations :: Lens.Lens' ListVPCEConfigurationsResponse (Prelude.Maybe [VPCEConfiguration])
listVPCEConfigurationsResponse_vpceConfigurations :: (Maybe [VPCEConfiguration] -> f (Maybe [VPCEConfiguration]))
-> ListVPCEConfigurationsResponse
-> f ListVPCEConfigurationsResponse
listVPCEConfigurationsResponse_vpceConfigurations = (ListVPCEConfigurationsResponse -> Maybe [VPCEConfiguration])
-> (ListVPCEConfigurationsResponse
    -> Maybe [VPCEConfiguration] -> ListVPCEConfigurationsResponse)
-> Lens' ListVPCEConfigurationsResponse (Maybe [VPCEConfiguration])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVPCEConfigurationsResponse' {Maybe [VPCEConfiguration]
vpceConfigurations :: Maybe [VPCEConfiguration]
$sel:vpceConfigurations:ListVPCEConfigurationsResponse' :: ListVPCEConfigurationsResponse -> Maybe [VPCEConfiguration]
vpceConfigurations} -> Maybe [VPCEConfiguration]
vpceConfigurations) (\s :: ListVPCEConfigurationsResponse
s@ListVPCEConfigurationsResponse' {} Maybe [VPCEConfiguration]
a -> ListVPCEConfigurationsResponse
s {$sel:vpceConfigurations:ListVPCEConfigurationsResponse' :: Maybe [VPCEConfiguration]
vpceConfigurations = Maybe [VPCEConfiguration]
a} :: ListVPCEConfigurationsResponse) ((Maybe [VPCEConfiguration] -> f (Maybe [VPCEConfiguration]))
 -> ListVPCEConfigurationsResponse
 -> f ListVPCEConfigurationsResponse)
-> ((Maybe [VPCEConfiguration] -> f (Maybe [VPCEConfiguration]))
    -> Maybe [VPCEConfiguration] -> f (Maybe [VPCEConfiguration]))
-> (Maybe [VPCEConfiguration] -> f (Maybe [VPCEConfiguration]))
-> ListVPCEConfigurationsResponse
-> f ListVPCEConfigurationsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [VPCEConfiguration]
  [VPCEConfiguration]
  [VPCEConfiguration]
  [VPCEConfiguration]
-> Iso
     (Maybe [VPCEConfiguration])
     (Maybe [VPCEConfiguration])
     (Maybe [VPCEConfiguration])
     (Maybe [VPCEConfiguration])
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
  [VPCEConfiguration]
  [VPCEConfiguration]
  [VPCEConfiguration]
  [VPCEConfiguration]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    ListVPCEConfigurationsResponse