{-# 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 #-}
module Amazonka.CognitoIdentityProvider.ListResourceServers
(
ListResourceServers (..),
newListResourceServers,
listResourceServers_nextToken,
listResourceServers_maxResults,
listResourceServers_userPoolId,
ListResourceServersResponse (..),
newListResourceServersResponse,
listResourceServersResponse_nextToken,
listResourceServersResponse_httpStatus,
listResourceServersResponse_resourceServers,
)
where
import Amazonka.CognitoIdentityProvider.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
data ListResourceServers = ListResourceServers'
{
ListResourceServers -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListResourceServers -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListResourceServers -> Text
userPoolId :: Prelude.Text
}
deriving (ListResourceServers -> ListResourceServers -> Bool
(ListResourceServers -> ListResourceServers -> Bool)
-> (ListResourceServers -> ListResourceServers -> Bool)
-> Eq ListResourceServers
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListResourceServers -> ListResourceServers -> Bool
$c/= :: ListResourceServers -> ListResourceServers -> Bool
== :: ListResourceServers -> ListResourceServers -> Bool
$c== :: ListResourceServers -> ListResourceServers -> Bool
Prelude.Eq, ReadPrec [ListResourceServers]
ReadPrec ListResourceServers
Int -> ReadS ListResourceServers
ReadS [ListResourceServers]
(Int -> ReadS ListResourceServers)
-> ReadS [ListResourceServers]
-> ReadPrec ListResourceServers
-> ReadPrec [ListResourceServers]
-> Read ListResourceServers
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListResourceServers]
$creadListPrec :: ReadPrec [ListResourceServers]
readPrec :: ReadPrec ListResourceServers
$creadPrec :: ReadPrec ListResourceServers
readList :: ReadS [ListResourceServers]
$creadList :: ReadS [ListResourceServers]
readsPrec :: Int -> ReadS ListResourceServers
$creadsPrec :: Int -> ReadS ListResourceServers
Prelude.Read, Int -> ListResourceServers -> ShowS
[ListResourceServers] -> ShowS
ListResourceServers -> String
(Int -> ListResourceServers -> ShowS)
-> (ListResourceServers -> String)
-> ([ListResourceServers] -> ShowS)
-> Show ListResourceServers
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListResourceServers] -> ShowS
$cshowList :: [ListResourceServers] -> ShowS
show :: ListResourceServers -> String
$cshow :: ListResourceServers -> String
showsPrec :: Int -> ListResourceServers -> ShowS
$cshowsPrec :: Int -> ListResourceServers -> ShowS
Prelude.Show, (forall x. ListResourceServers -> Rep ListResourceServers x)
-> (forall x. Rep ListResourceServers x -> ListResourceServers)
-> Generic ListResourceServers
forall x. Rep ListResourceServers x -> ListResourceServers
forall x. ListResourceServers -> Rep ListResourceServers x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListResourceServers x -> ListResourceServers
$cfrom :: forall x. ListResourceServers -> Rep ListResourceServers x
Prelude.Generic)
newListResourceServers ::
Prelude.Text ->
ListResourceServers
newListResourceServers :: Text -> ListResourceServers
newListResourceServers Text
pUserPoolId_ =
ListResourceServers' :: Maybe Text -> Maybe Natural -> Text -> ListResourceServers
ListResourceServers'
{ $sel:nextToken:ListResourceServers' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListResourceServers' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:userPoolId:ListResourceServers' :: Text
userPoolId = Text
pUserPoolId_
}
listResourceServers_nextToken :: Lens.Lens' ListResourceServers (Prelude.Maybe Prelude.Text)
listResourceServers_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListResourceServers -> f ListResourceServers
listResourceServers_nextToken = (ListResourceServers -> Maybe Text)
-> (ListResourceServers -> Maybe Text -> ListResourceServers)
-> Lens
ListResourceServers ListResourceServers (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResourceServers' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListResourceServers' :: ListResourceServers -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListResourceServers
s@ListResourceServers' {} Maybe Text
a -> ListResourceServers
s {$sel:nextToken:ListResourceServers' :: Maybe Text
nextToken = Maybe Text
a} :: ListResourceServers)
listResourceServers_maxResults :: Lens.Lens' ListResourceServers (Prelude.Maybe Prelude.Natural)
listResourceServers_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListResourceServers -> f ListResourceServers
listResourceServers_maxResults = (ListResourceServers -> Maybe Natural)
-> (ListResourceServers -> Maybe Natural -> ListResourceServers)
-> Lens
ListResourceServers
ListResourceServers
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResourceServers' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListResourceServers' :: ListResourceServers -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListResourceServers
s@ListResourceServers' {} Maybe Natural
a -> ListResourceServers
s {$sel:maxResults:ListResourceServers' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListResourceServers)
listResourceServers_userPoolId :: Lens.Lens' ListResourceServers Prelude.Text
listResourceServers_userPoolId :: (Text -> f Text) -> ListResourceServers -> f ListResourceServers
listResourceServers_userPoolId = (ListResourceServers -> Text)
-> (ListResourceServers -> Text -> ListResourceServers)
-> Lens ListResourceServers ListResourceServers Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResourceServers' {Text
userPoolId :: Text
$sel:userPoolId:ListResourceServers' :: ListResourceServers -> Text
userPoolId} -> Text
userPoolId) (\s :: ListResourceServers
s@ListResourceServers' {} Text
a -> ListResourceServers
s {$sel:userPoolId:ListResourceServers' :: Text
userPoolId = Text
a} :: ListResourceServers)
instance Core.AWSPager ListResourceServers where
page :: ListResourceServers
-> AWSResponse ListResourceServers -> Maybe ListResourceServers
page ListResourceServers
rq AWSResponse ListResourceServers
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListResourceServers
ListResourceServersResponse
rs
ListResourceServersResponse
-> Getting (First Text) ListResourceServersResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListResourceServersResponse
-> Const (First Text) ListResourceServersResponse
Lens' ListResourceServersResponse (Maybe Text)
listResourceServersResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListResourceServersResponse
-> Const (First Text) ListResourceServersResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListResourceServersResponse 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 ListResourceServers
forall a. Maybe a
Prelude.Nothing
| [ResourceServerType] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListResourceServers
ListResourceServersResponse
rs
ListResourceServersResponse
-> Getting
[ResourceServerType]
ListResourceServersResponse
[ResourceServerType]
-> [ResourceServerType]
forall s a. s -> Getting a s a -> a
Lens.^. Getting
[ResourceServerType]
ListResourceServersResponse
[ResourceServerType]
Lens' ListResourceServersResponse [ResourceServerType]
listResourceServersResponse_resourceServers
) =
Maybe ListResourceServers
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListResourceServers -> Maybe ListResourceServers
forall a. a -> Maybe a
Prelude.Just (ListResourceServers -> Maybe ListResourceServers)
-> ListResourceServers -> Maybe ListResourceServers
forall a b. (a -> b) -> a -> b
Prelude.$
ListResourceServers
rq
ListResourceServers
-> (ListResourceServers -> ListResourceServers)
-> ListResourceServers
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListResourceServers -> Identity ListResourceServers
Lens
ListResourceServers ListResourceServers (Maybe Text) (Maybe Text)
listResourceServers_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListResourceServers -> Identity ListResourceServers)
-> Maybe Text -> ListResourceServers -> ListResourceServers
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListResourceServers
ListResourceServersResponse
rs
ListResourceServersResponse
-> Getting (First Text) ListResourceServersResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListResourceServersResponse
-> Const (First Text) ListResourceServersResponse
Lens' ListResourceServersResponse (Maybe Text)
listResourceServersResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListResourceServersResponse
-> Const (First Text) ListResourceServersResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListResourceServersResponse 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 ListResourceServers where
type
AWSResponse ListResourceServers =
ListResourceServersResponse
request :: ListResourceServers -> Request ListResourceServers
request = Service -> ListResourceServers -> Request ListResourceServers
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListResourceServers
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListResourceServers)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListResourceServers))
-> Logger
-> Service
-> Proxy ListResourceServers
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListResourceServers)))
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
-> Int -> [ResourceServerType] -> ListResourceServersResponse
ListResourceServersResponse'
(Maybe Text
-> Int -> [ResourceServerType] -> ListResourceServersResponse)
-> Either String (Maybe Text)
-> Either
String (Int -> [ResourceServerType] -> ListResourceServersResponse)
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 (Int -> [ResourceServerType] -> ListResourceServersResponse)
-> Either String Int
-> Either
String ([ResourceServerType] -> ListResourceServersResponse)
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))
Either String ([ResourceServerType] -> ListResourceServersResponse)
-> Either String [ResourceServerType]
-> Either String ListResourceServersResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe [ResourceServerType])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ResourceServers"
Either String (Maybe [ResourceServerType])
-> [ResourceServerType] -> Either String [ResourceServerType]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [ResourceServerType]
forall a. Monoid a => a
Prelude.mempty
)
)
instance Prelude.Hashable ListResourceServers
instance Prelude.NFData ListResourceServers
instance Core.ToHeaders ListResourceServers where
toHeaders :: ListResourceServers -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListResourceServers -> 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
"AWSCognitoIdentityProviderService.ListResourceServers" ::
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 ListResourceServers where
toJSON :: ListResourceServers -> Value
toJSON ListResourceServers' {Maybe Natural
Maybe Text
Text
userPoolId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:userPoolId:ListResourceServers' :: ListResourceServers -> Text
$sel:maxResults:ListResourceServers' :: ListResourceServers -> Maybe Natural
$sel:nextToken:ListResourceServers' :: ListResourceServers -> 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 -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"UserPoolId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
userPoolId)
]
)
instance Core.ToPath ListResourceServers where
toPath :: ListResourceServers -> ByteString
toPath = ByteString -> ListResourceServers -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListResourceServers where
toQuery :: ListResourceServers -> QueryString
toQuery = QueryString -> ListResourceServers -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListResourceServersResponse = ListResourceServersResponse'
{
ListResourceServersResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListResourceServersResponse -> Int
httpStatus :: Prelude.Int,
ListResourceServersResponse -> [ResourceServerType]
resourceServers :: [ResourceServerType]
}
deriving (ListResourceServersResponse -> ListResourceServersResponse -> Bool
(ListResourceServersResponse
-> ListResourceServersResponse -> Bool)
-> (ListResourceServersResponse
-> ListResourceServersResponse -> Bool)
-> Eq ListResourceServersResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListResourceServersResponse -> ListResourceServersResponse -> Bool
$c/= :: ListResourceServersResponse -> ListResourceServersResponse -> Bool
== :: ListResourceServersResponse -> ListResourceServersResponse -> Bool
$c== :: ListResourceServersResponse -> ListResourceServersResponse -> Bool
Prelude.Eq, ReadPrec [ListResourceServersResponse]
ReadPrec ListResourceServersResponse
Int -> ReadS ListResourceServersResponse
ReadS [ListResourceServersResponse]
(Int -> ReadS ListResourceServersResponse)
-> ReadS [ListResourceServersResponse]
-> ReadPrec ListResourceServersResponse
-> ReadPrec [ListResourceServersResponse]
-> Read ListResourceServersResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListResourceServersResponse]
$creadListPrec :: ReadPrec [ListResourceServersResponse]
readPrec :: ReadPrec ListResourceServersResponse
$creadPrec :: ReadPrec ListResourceServersResponse
readList :: ReadS [ListResourceServersResponse]
$creadList :: ReadS [ListResourceServersResponse]
readsPrec :: Int -> ReadS ListResourceServersResponse
$creadsPrec :: Int -> ReadS ListResourceServersResponse
Prelude.Read, Int -> ListResourceServersResponse -> ShowS
[ListResourceServersResponse] -> ShowS
ListResourceServersResponse -> String
(Int -> ListResourceServersResponse -> ShowS)
-> (ListResourceServersResponse -> String)
-> ([ListResourceServersResponse] -> ShowS)
-> Show ListResourceServersResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListResourceServersResponse] -> ShowS
$cshowList :: [ListResourceServersResponse] -> ShowS
show :: ListResourceServersResponse -> String
$cshow :: ListResourceServersResponse -> String
showsPrec :: Int -> ListResourceServersResponse -> ShowS
$cshowsPrec :: Int -> ListResourceServersResponse -> ShowS
Prelude.Show, (forall x.
ListResourceServersResponse -> Rep ListResourceServersResponse x)
-> (forall x.
Rep ListResourceServersResponse x -> ListResourceServersResponse)
-> Generic ListResourceServersResponse
forall x.
Rep ListResourceServersResponse x -> ListResourceServersResponse
forall x.
ListResourceServersResponse -> Rep ListResourceServersResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListResourceServersResponse x -> ListResourceServersResponse
$cfrom :: forall x.
ListResourceServersResponse -> Rep ListResourceServersResponse x
Prelude.Generic)
newListResourceServersResponse ::
Prelude.Int ->
ListResourceServersResponse
newListResourceServersResponse :: Int -> ListResourceServersResponse
newListResourceServersResponse Int
pHttpStatus_ =
ListResourceServersResponse' :: Maybe Text
-> Int -> [ResourceServerType] -> ListResourceServersResponse
ListResourceServersResponse'
{ $sel:nextToken:ListResourceServersResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListResourceServersResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:resourceServers:ListResourceServersResponse' :: [ResourceServerType]
resourceServers = [ResourceServerType]
forall a. Monoid a => a
Prelude.mempty
}
listResourceServersResponse_nextToken :: Lens.Lens' ListResourceServersResponse (Prelude.Maybe Prelude.Text)
listResourceServersResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListResourceServersResponse -> f ListResourceServersResponse
listResourceServersResponse_nextToken = (ListResourceServersResponse -> Maybe Text)
-> (ListResourceServersResponse
-> Maybe Text -> ListResourceServersResponse)
-> Lens' ListResourceServersResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResourceServersResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListResourceServersResponse' :: ListResourceServersResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListResourceServersResponse
s@ListResourceServersResponse' {} Maybe Text
a -> ListResourceServersResponse
s {$sel:nextToken:ListResourceServersResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListResourceServersResponse)
listResourceServersResponse_httpStatus :: Lens.Lens' ListResourceServersResponse Prelude.Int
listResourceServersResponse_httpStatus :: (Int -> f Int)
-> ListResourceServersResponse -> f ListResourceServersResponse
listResourceServersResponse_httpStatus = (ListResourceServersResponse -> Int)
-> (ListResourceServersResponse
-> Int -> ListResourceServersResponse)
-> Lens
ListResourceServersResponse ListResourceServersResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResourceServersResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListResourceServersResponse' :: ListResourceServersResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListResourceServersResponse
s@ListResourceServersResponse' {} Int
a -> ListResourceServersResponse
s {$sel:httpStatus:ListResourceServersResponse' :: Int
httpStatus = Int
a} :: ListResourceServersResponse)
listResourceServersResponse_resourceServers :: Lens.Lens' ListResourceServersResponse [ResourceServerType]
listResourceServersResponse_resourceServers :: ([ResourceServerType] -> f [ResourceServerType])
-> ListResourceServersResponse -> f ListResourceServersResponse
listResourceServersResponse_resourceServers = (ListResourceServersResponse -> [ResourceServerType])
-> (ListResourceServersResponse
-> [ResourceServerType] -> ListResourceServersResponse)
-> Lens' ListResourceServersResponse [ResourceServerType]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResourceServersResponse' {[ResourceServerType]
resourceServers :: [ResourceServerType]
$sel:resourceServers:ListResourceServersResponse' :: ListResourceServersResponse -> [ResourceServerType]
resourceServers} -> [ResourceServerType]
resourceServers) (\s :: ListResourceServersResponse
s@ListResourceServersResponse' {} [ResourceServerType]
a -> ListResourceServersResponse
s {$sel:resourceServers:ListResourceServersResponse' :: [ResourceServerType]
resourceServers = [ResourceServerType]
a} :: ListResourceServersResponse) (([ResourceServerType] -> f [ResourceServerType])
-> ListResourceServersResponse -> f ListResourceServersResponse)
-> (([ResourceServerType] -> f [ResourceServerType])
-> [ResourceServerType] -> f [ResourceServerType])
-> ([ResourceServerType] -> f [ResourceServerType])
-> ListResourceServersResponse
-> f ListResourceServersResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ResourceServerType] -> f [ResourceServerType])
-> [ResourceServerType] -> f [ResourceServerType]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Prelude.NFData ListResourceServersResponse