{-# 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.EKS.ListIdentityProviderConfigs
(
ListIdentityProviderConfigs (..),
newListIdentityProviderConfigs,
listIdentityProviderConfigs_nextToken,
listIdentityProviderConfigs_maxResults,
listIdentityProviderConfigs_clusterName,
ListIdentityProviderConfigsResponse (..),
newListIdentityProviderConfigsResponse,
listIdentityProviderConfigsResponse_identityProviderConfigs,
listIdentityProviderConfigsResponse_nextToken,
listIdentityProviderConfigsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.EKS.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
data ListIdentityProviderConfigs = ListIdentityProviderConfigs'
{
ListIdentityProviderConfigs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListIdentityProviderConfigs -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListIdentityProviderConfigs -> Text
clusterName :: Prelude.Text
}
deriving (ListIdentityProviderConfigs -> ListIdentityProviderConfigs -> Bool
(ListIdentityProviderConfigs
-> ListIdentityProviderConfigs -> Bool)
-> (ListIdentityProviderConfigs
-> ListIdentityProviderConfigs -> Bool)
-> Eq ListIdentityProviderConfigs
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListIdentityProviderConfigs -> ListIdentityProviderConfigs -> Bool
$c/= :: ListIdentityProviderConfigs -> ListIdentityProviderConfigs -> Bool
== :: ListIdentityProviderConfigs -> ListIdentityProviderConfigs -> Bool
$c== :: ListIdentityProviderConfigs -> ListIdentityProviderConfigs -> Bool
Prelude.Eq, ReadPrec [ListIdentityProviderConfigs]
ReadPrec ListIdentityProviderConfigs
Int -> ReadS ListIdentityProviderConfigs
ReadS [ListIdentityProviderConfigs]
(Int -> ReadS ListIdentityProviderConfigs)
-> ReadS [ListIdentityProviderConfigs]
-> ReadPrec ListIdentityProviderConfigs
-> ReadPrec [ListIdentityProviderConfigs]
-> Read ListIdentityProviderConfigs
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListIdentityProviderConfigs]
$creadListPrec :: ReadPrec [ListIdentityProviderConfigs]
readPrec :: ReadPrec ListIdentityProviderConfigs
$creadPrec :: ReadPrec ListIdentityProviderConfigs
readList :: ReadS [ListIdentityProviderConfigs]
$creadList :: ReadS [ListIdentityProviderConfigs]
readsPrec :: Int -> ReadS ListIdentityProviderConfigs
$creadsPrec :: Int -> ReadS ListIdentityProviderConfigs
Prelude.Read, Int -> ListIdentityProviderConfigs -> ShowS
[ListIdentityProviderConfigs] -> ShowS
ListIdentityProviderConfigs -> String
(Int -> ListIdentityProviderConfigs -> ShowS)
-> (ListIdentityProviderConfigs -> String)
-> ([ListIdentityProviderConfigs] -> ShowS)
-> Show ListIdentityProviderConfigs
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListIdentityProviderConfigs] -> ShowS
$cshowList :: [ListIdentityProviderConfigs] -> ShowS
show :: ListIdentityProviderConfigs -> String
$cshow :: ListIdentityProviderConfigs -> String
showsPrec :: Int -> ListIdentityProviderConfigs -> ShowS
$cshowsPrec :: Int -> ListIdentityProviderConfigs -> ShowS
Prelude.Show, (forall x.
ListIdentityProviderConfigs -> Rep ListIdentityProviderConfigs x)
-> (forall x.
Rep ListIdentityProviderConfigs x -> ListIdentityProviderConfigs)
-> Generic ListIdentityProviderConfigs
forall x.
Rep ListIdentityProviderConfigs x -> ListIdentityProviderConfigs
forall x.
ListIdentityProviderConfigs -> Rep ListIdentityProviderConfigs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListIdentityProviderConfigs x -> ListIdentityProviderConfigs
$cfrom :: forall x.
ListIdentityProviderConfigs -> Rep ListIdentityProviderConfigs x
Prelude.Generic)
newListIdentityProviderConfigs ::
Prelude.Text ->
ListIdentityProviderConfigs
newListIdentityProviderConfigs :: Text -> ListIdentityProviderConfigs
newListIdentityProviderConfigs Text
pClusterName_ =
ListIdentityProviderConfigs' :: Maybe Text -> Maybe Natural -> Text -> ListIdentityProviderConfigs
ListIdentityProviderConfigs'
{ $sel:nextToken:ListIdentityProviderConfigs' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListIdentityProviderConfigs' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:clusterName:ListIdentityProviderConfigs' :: Text
clusterName = Text
pClusterName_
}
listIdentityProviderConfigs_nextToken :: Lens.Lens' ListIdentityProviderConfigs (Prelude.Maybe Prelude.Text)
listIdentityProviderConfigs_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListIdentityProviderConfigs -> f ListIdentityProviderConfigs
listIdentityProviderConfigs_nextToken = (ListIdentityProviderConfigs -> Maybe Text)
-> (ListIdentityProviderConfigs
-> Maybe Text -> ListIdentityProviderConfigs)
-> Lens
ListIdentityProviderConfigs
ListIdentityProviderConfigs
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIdentityProviderConfigs' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListIdentityProviderConfigs' :: ListIdentityProviderConfigs -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListIdentityProviderConfigs
s@ListIdentityProviderConfigs' {} Maybe Text
a -> ListIdentityProviderConfigs
s {$sel:nextToken:ListIdentityProviderConfigs' :: Maybe Text
nextToken = Maybe Text
a} :: ListIdentityProviderConfigs)
listIdentityProviderConfigs_maxResults :: Lens.Lens' ListIdentityProviderConfigs (Prelude.Maybe Prelude.Natural)
listIdentityProviderConfigs_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListIdentityProviderConfigs -> f ListIdentityProviderConfigs
listIdentityProviderConfigs_maxResults = (ListIdentityProviderConfigs -> Maybe Natural)
-> (ListIdentityProviderConfigs
-> Maybe Natural -> ListIdentityProviderConfigs)
-> Lens
ListIdentityProviderConfigs
ListIdentityProviderConfigs
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIdentityProviderConfigs' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListIdentityProviderConfigs' :: ListIdentityProviderConfigs -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListIdentityProviderConfigs
s@ListIdentityProviderConfigs' {} Maybe Natural
a -> ListIdentityProviderConfigs
s {$sel:maxResults:ListIdentityProviderConfigs' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListIdentityProviderConfigs)
listIdentityProviderConfigs_clusterName :: Lens.Lens' ListIdentityProviderConfigs Prelude.Text
listIdentityProviderConfigs_clusterName :: (Text -> f Text)
-> ListIdentityProviderConfigs -> f ListIdentityProviderConfigs
listIdentityProviderConfigs_clusterName = (ListIdentityProviderConfigs -> Text)
-> (ListIdentityProviderConfigs
-> Text -> ListIdentityProviderConfigs)
-> Lens
ListIdentityProviderConfigs ListIdentityProviderConfigs Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIdentityProviderConfigs' {Text
clusterName :: Text
$sel:clusterName:ListIdentityProviderConfigs' :: ListIdentityProviderConfigs -> Text
clusterName} -> Text
clusterName) (\s :: ListIdentityProviderConfigs
s@ListIdentityProviderConfigs' {} Text
a -> ListIdentityProviderConfigs
s {$sel:clusterName:ListIdentityProviderConfigs' :: Text
clusterName = Text
a} :: ListIdentityProviderConfigs)
instance Core.AWSPager ListIdentityProviderConfigs where
page :: ListIdentityProviderConfigs
-> AWSResponse ListIdentityProviderConfigs
-> Maybe ListIdentityProviderConfigs
page ListIdentityProviderConfigs
rq AWSResponse ListIdentityProviderConfigs
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListIdentityProviderConfigs
ListIdentityProviderConfigsResponse
rs
ListIdentityProviderConfigsResponse
-> Getting (First Text) ListIdentityProviderConfigsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListIdentityProviderConfigsResponse
-> Const (First Text) ListIdentityProviderConfigsResponse
Lens' ListIdentityProviderConfigsResponse (Maybe Text)
listIdentityProviderConfigsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListIdentityProviderConfigsResponse
-> Const (First Text) ListIdentityProviderConfigsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListIdentityProviderConfigsResponse 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 ListIdentityProviderConfigs
forall a. Maybe a
Prelude.Nothing
| Maybe [IdentityProviderConfig] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListIdentityProviderConfigs
ListIdentityProviderConfigsResponse
rs
ListIdentityProviderConfigsResponse
-> Getting
(First [IdentityProviderConfig])
ListIdentityProviderConfigsResponse
[IdentityProviderConfig]
-> Maybe [IdentityProviderConfig]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [IdentityProviderConfig]
-> Const
(First [IdentityProviderConfig]) (Maybe [IdentityProviderConfig]))
-> ListIdentityProviderConfigsResponse
-> Const
(First [IdentityProviderConfig])
ListIdentityProviderConfigsResponse
Lens'
ListIdentityProviderConfigsResponse
(Maybe [IdentityProviderConfig])
listIdentityProviderConfigsResponse_identityProviderConfigs
((Maybe [IdentityProviderConfig]
-> Const
(First [IdentityProviderConfig]) (Maybe [IdentityProviderConfig]))
-> ListIdentityProviderConfigsResponse
-> Const
(First [IdentityProviderConfig])
ListIdentityProviderConfigsResponse)
-> (([IdentityProviderConfig]
-> Const (First [IdentityProviderConfig]) [IdentityProviderConfig])
-> Maybe [IdentityProviderConfig]
-> Const
(First [IdentityProviderConfig]) (Maybe [IdentityProviderConfig]))
-> Getting
(First [IdentityProviderConfig])
ListIdentityProviderConfigsResponse
[IdentityProviderConfig]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([IdentityProviderConfig]
-> Const (First [IdentityProviderConfig]) [IdentityProviderConfig])
-> Maybe [IdentityProviderConfig]
-> Const
(First [IdentityProviderConfig]) (Maybe [IdentityProviderConfig])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListIdentityProviderConfigs
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListIdentityProviderConfigs -> Maybe ListIdentityProviderConfigs
forall a. a -> Maybe a
Prelude.Just (ListIdentityProviderConfigs -> Maybe ListIdentityProviderConfigs)
-> ListIdentityProviderConfigs -> Maybe ListIdentityProviderConfigs
forall a b. (a -> b) -> a -> b
Prelude.$
ListIdentityProviderConfigs
rq
ListIdentityProviderConfigs
-> (ListIdentityProviderConfigs -> ListIdentityProviderConfigs)
-> ListIdentityProviderConfigs
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListIdentityProviderConfigs
-> Identity ListIdentityProviderConfigs
Lens
ListIdentityProviderConfigs
ListIdentityProviderConfigs
(Maybe Text)
(Maybe Text)
listIdentityProviderConfigs_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListIdentityProviderConfigs
-> Identity ListIdentityProviderConfigs)
-> Maybe Text
-> ListIdentityProviderConfigs
-> ListIdentityProviderConfigs
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListIdentityProviderConfigs
ListIdentityProviderConfigsResponse
rs
ListIdentityProviderConfigsResponse
-> Getting (First Text) ListIdentityProviderConfigsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListIdentityProviderConfigsResponse
-> Const (First Text) ListIdentityProviderConfigsResponse
Lens' ListIdentityProviderConfigsResponse (Maybe Text)
listIdentityProviderConfigsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListIdentityProviderConfigsResponse
-> Const (First Text) ListIdentityProviderConfigsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListIdentityProviderConfigsResponse 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 ListIdentityProviderConfigs where
type
AWSResponse ListIdentityProviderConfigs =
ListIdentityProviderConfigsResponse
request :: ListIdentityProviderConfigs -> Request ListIdentityProviderConfigs
request = Service
-> ListIdentityProviderConfigs
-> Request ListIdentityProviderConfigs
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListIdentityProviderConfigs
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListIdentityProviderConfigs)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListIdentityProviderConfigs))
-> Logger
-> Service
-> Proxy ListIdentityProviderConfigs
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListIdentityProviderConfigs)))
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 [IdentityProviderConfig]
-> Maybe Text -> Int -> ListIdentityProviderConfigsResponse
ListIdentityProviderConfigsResponse'
(Maybe [IdentityProviderConfig]
-> Maybe Text -> Int -> ListIdentityProviderConfigsResponse)
-> Either String (Maybe [IdentityProviderConfig])
-> Either
String (Maybe Text -> Int -> ListIdentityProviderConfigsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [IdentityProviderConfig]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"identityProviderConfigs"
Either String (Maybe (Maybe [IdentityProviderConfig]))
-> Maybe [IdentityProviderConfig]
-> Either String (Maybe [IdentityProviderConfig])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [IdentityProviderConfig]
forall a. Monoid a => a
Prelude.mempty
)
Either
String (Maybe Text -> Int -> ListIdentityProviderConfigsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListIdentityProviderConfigsResponse)
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
"nextToken")
Either String (Int -> ListIdentityProviderConfigsResponse)
-> Either String Int
-> Either String ListIdentityProviderConfigsResponse
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 ListIdentityProviderConfigs
instance Prelude.NFData ListIdentityProviderConfigs
instance Core.ToHeaders ListIdentityProviderConfigs where
toHeaders :: ListIdentityProviderConfigs -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListIdentityProviderConfigs -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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.ToPath ListIdentityProviderConfigs where
toPath :: ListIdentityProviderConfigs -> ByteString
toPath ListIdentityProviderConfigs' {Maybe Natural
Maybe Text
Text
clusterName :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:clusterName:ListIdentityProviderConfigs' :: ListIdentityProviderConfigs -> Text
$sel:maxResults:ListIdentityProviderConfigs' :: ListIdentityProviderConfigs -> Maybe Natural
$sel:nextToken:ListIdentityProviderConfigs' :: ListIdentityProviderConfigs -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/clusters/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
clusterName,
ByteString
"/identity-provider-configs"
]
instance Core.ToQuery ListIdentityProviderConfigs where
toQuery :: ListIdentityProviderConfigs -> QueryString
toQuery ListIdentityProviderConfigs' {Maybe Natural
Maybe Text
Text
clusterName :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:clusterName:ListIdentityProviderConfigs' :: ListIdentityProviderConfigs -> Text
$sel:maxResults:ListIdentityProviderConfigs' :: ListIdentityProviderConfigs -> Maybe Natural
$sel:nextToken:ListIdentityProviderConfigs' :: ListIdentityProviderConfigs -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data ListIdentityProviderConfigsResponse = ListIdentityProviderConfigsResponse'
{
ListIdentityProviderConfigsResponse
-> Maybe [IdentityProviderConfig]
identityProviderConfigs :: Prelude.Maybe [IdentityProviderConfig],
ListIdentityProviderConfigsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListIdentityProviderConfigsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListIdentityProviderConfigsResponse
-> ListIdentityProviderConfigsResponse -> Bool
(ListIdentityProviderConfigsResponse
-> ListIdentityProviderConfigsResponse -> Bool)
-> (ListIdentityProviderConfigsResponse
-> ListIdentityProviderConfigsResponse -> Bool)
-> Eq ListIdentityProviderConfigsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListIdentityProviderConfigsResponse
-> ListIdentityProviderConfigsResponse -> Bool
$c/= :: ListIdentityProviderConfigsResponse
-> ListIdentityProviderConfigsResponse -> Bool
== :: ListIdentityProviderConfigsResponse
-> ListIdentityProviderConfigsResponse -> Bool
$c== :: ListIdentityProviderConfigsResponse
-> ListIdentityProviderConfigsResponse -> Bool
Prelude.Eq, ReadPrec [ListIdentityProviderConfigsResponse]
ReadPrec ListIdentityProviderConfigsResponse
Int -> ReadS ListIdentityProviderConfigsResponse
ReadS [ListIdentityProviderConfigsResponse]
(Int -> ReadS ListIdentityProviderConfigsResponse)
-> ReadS [ListIdentityProviderConfigsResponse]
-> ReadPrec ListIdentityProviderConfigsResponse
-> ReadPrec [ListIdentityProviderConfigsResponse]
-> Read ListIdentityProviderConfigsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListIdentityProviderConfigsResponse]
$creadListPrec :: ReadPrec [ListIdentityProviderConfigsResponse]
readPrec :: ReadPrec ListIdentityProviderConfigsResponse
$creadPrec :: ReadPrec ListIdentityProviderConfigsResponse
readList :: ReadS [ListIdentityProviderConfigsResponse]
$creadList :: ReadS [ListIdentityProviderConfigsResponse]
readsPrec :: Int -> ReadS ListIdentityProviderConfigsResponse
$creadsPrec :: Int -> ReadS ListIdentityProviderConfigsResponse
Prelude.Read, Int -> ListIdentityProviderConfigsResponse -> ShowS
[ListIdentityProviderConfigsResponse] -> ShowS
ListIdentityProviderConfigsResponse -> String
(Int -> ListIdentityProviderConfigsResponse -> ShowS)
-> (ListIdentityProviderConfigsResponse -> String)
-> ([ListIdentityProviderConfigsResponse] -> ShowS)
-> Show ListIdentityProviderConfigsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListIdentityProviderConfigsResponse] -> ShowS
$cshowList :: [ListIdentityProviderConfigsResponse] -> ShowS
show :: ListIdentityProviderConfigsResponse -> String
$cshow :: ListIdentityProviderConfigsResponse -> String
showsPrec :: Int -> ListIdentityProviderConfigsResponse -> ShowS
$cshowsPrec :: Int -> ListIdentityProviderConfigsResponse -> ShowS
Prelude.Show, (forall x.
ListIdentityProviderConfigsResponse
-> Rep ListIdentityProviderConfigsResponse x)
-> (forall x.
Rep ListIdentityProviderConfigsResponse x
-> ListIdentityProviderConfigsResponse)
-> Generic ListIdentityProviderConfigsResponse
forall x.
Rep ListIdentityProviderConfigsResponse x
-> ListIdentityProviderConfigsResponse
forall x.
ListIdentityProviderConfigsResponse
-> Rep ListIdentityProviderConfigsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListIdentityProviderConfigsResponse x
-> ListIdentityProviderConfigsResponse
$cfrom :: forall x.
ListIdentityProviderConfigsResponse
-> Rep ListIdentityProviderConfigsResponse x
Prelude.Generic)
newListIdentityProviderConfigsResponse ::
Prelude.Int ->
ListIdentityProviderConfigsResponse
newListIdentityProviderConfigsResponse :: Int -> ListIdentityProviderConfigsResponse
newListIdentityProviderConfigsResponse Int
pHttpStatus_ =
ListIdentityProviderConfigsResponse' :: Maybe [IdentityProviderConfig]
-> Maybe Text -> Int -> ListIdentityProviderConfigsResponse
ListIdentityProviderConfigsResponse'
{ $sel:identityProviderConfigs:ListIdentityProviderConfigsResponse' :: Maybe [IdentityProviderConfig]
identityProviderConfigs =
Maybe [IdentityProviderConfig]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListIdentityProviderConfigsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListIdentityProviderConfigsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listIdentityProviderConfigsResponse_identityProviderConfigs :: Lens.Lens' ListIdentityProviderConfigsResponse (Prelude.Maybe [IdentityProviderConfig])
listIdentityProviderConfigsResponse_identityProviderConfigs :: (Maybe [IdentityProviderConfig]
-> f (Maybe [IdentityProviderConfig]))
-> ListIdentityProviderConfigsResponse
-> f ListIdentityProviderConfigsResponse
listIdentityProviderConfigsResponse_identityProviderConfigs = (ListIdentityProviderConfigsResponse
-> Maybe [IdentityProviderConfig])
-> (ListIdentityProviderConfigsResponse
-> Maybe [IdentityProviderConfig]
-> ListIdentityProviderConfigsResponse)
-> Lens'
ListIdentityProviderConfigsResponse
(Maybe [IdentityProviderConfig])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIdentityProviderConfigsResponse' {Maybe [IdentityProviderConfig]
identityProviderConfigs :: Maybe [IdentityProviderConfig]
$sel:identityProviderConfigs:ListIdentityProviderConfigsResponse' :: ListIdentityProviderConfigsResponse
-> Maybe [IdentityProviderConfig]
identityProviderConfigs} -> Maybe [IdentityProviderConfig]
identityProviderConfigs) (\s :: ListIdentityProviderConfigsResponse
s@ListIdentityProviderConfigsResponse' {} Maybe [IdentityProviderConfig]
a -> ListIdentityProviderConfigsResponse
s {$sel:identityProviderConfigs:ListIdentityProviderConfigsResponse' :: Maybe [IdentityProviderConfig]
identityProviderConfigs = Maybe [IdentityProviderConfig]
a} :: ListIdentityProviderConfigsResponse) ((Maybe [IdentityProviderConfig]
-> f (Maybe [IdentityProviderConfig]))
-> ListIdentityProviderConfigsResponse
-> f ListIdentityProviderConfigsResponse)
-> ((Maybe [IdentityProviderConfig]
-> f (Maybe [IdentityProviderConfig]))
-> Maybe [IdentityProviderConfig]
-> f (Maybe [IdentityProviderConfig]))
-> (Maybe [IdentityProviderConfig]
-> f (Maybe [IdentityProviderConfig]))
-> ListIdentityProviderConfigsResponse
-> f ListIdentityProviderConfigsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[IdentityProviderConfig]
[IdentityProviderConfig]
[IdentityProviderConfig]
[IdentityProviderConfig]
-> Iso
(Maybe [IdentityProviderConfig])
(Maybe [IdentityProviderConfig])
(Maybe [IdentityProviderConfig])
(Maybe [IdentityProviderConfig])
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
[IdentityProviderConfig]
[IdentityProviderConfig]
[IdentityProviderConfig]
[IdentityProviderConfig]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listIdentityProviderConfigsResponse_nextToken :: Lens.Lens' ListIdentityProviderConfigsResponse (Prelude.Maybe Prelude.Text)
listIdentityProviderConfigsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListIdentityProviderConfigsResponse
-> f ListIdentityProviderConfigsResponse
listIdentityProviderConfigsResponse_nextToken = (ListIdentityProviderConfigsResponse -> Maybe Text)
-> (ListIdentityProviderConfigsResponse
-> Maybe Text -> ListIdentityProviderConfigsResponse)
-> Lens' ListIdentityProviderConfigsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIdentityProviderConfigsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListIdentityProviderConfigsResponse' :: ListIdentityProviderConfigsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListIdentityProviderConfigsResponse
s@ListIdentityProviderConfigsResponse' {} Maybe Text
a -> ListIdentityProviderConfigsResponse
s {$sel:nextToken:ListIdentityProviderConfigsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListIdentityProviderConfigsResponse)
listIdentityProviderConfigsResponse_httpStatus :: Lens.Lens' ListIdentityProviderConfigsResponse Prelude.Int
listIdentityProviderConfigsResponse_httpStatus :: (Int -> f Int)
-> ListIdentityProviderConfigsResponse
-> f ListIdentityProviderConfigsResponse
listIdentityProviderConfigsResponse_httpStatus = (ListIdentityProviderConfigsResponse -> Int)
-> (ListIdentityProviderConfigsResponse
-> Int -> ListIdentityProviderConfigsResponse)
-> Lens
ListIdentityProviderConfigsResponse
ListIdentityProviderConfigsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIdentityProviderConfigsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListIdentityProviderConfigsResponse' :: ListIdentityProviderConfigsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListIdentityProviderConfigsResponse
s@ListIdentityProviderConfigsResponse' {} Int
a -> ListIdentityProviderConfigsResponse
s {$sel:httpStatus:ListIdentityProviderConfigsResponse' :: Int
httpStatus = Int
a} :: ListIdentityProviderConfigsResponse)
instance
Prelude.NFData
ListIdentityProviderConfigsResponse