{-# 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.Connect.ListApprovedOrigins
(
ListApprovedOrigins (..),
newListApprovedOrigins,
listApprovedOrigins_nextToken,
listApprovedOrigins_maxResults,
listApprovedOrigins_instanceId,
ListApprovedOriginsResponse (..),
newListApprovedOriginsResponse,
listApprovedOriginsResponse_nextToken,
listApprovedOriginsResponse_origins,
listApprovedOriginsResponse_httpStatus,
)
where
import Amazonka.Connect.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 ListApprovedOrigins = ListApprovedOrigins'
{
ListApprovedOrigins -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListApprovedOrigins -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListApprovedOrigins -> Text
instanceId :: Prelude.Text
}
deriving (ListApprovedOrigins -> ListApprovedOrigins -> Bool
(ListApprovedOrigins -> ListApprovedOrigins -> Bool)
-> (ListApprovedOrigins -> ListApprovedOrigins -> Bool)
-> Eq ListApprovedOrigins
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListApprovedOrigins -> ListApprovedOrigins -> Bool
$c/= :: ListApprovedOrigins -> ListApprovedOrigins -> Bool
== :: ListApprovedOrigins -> ListApprovedOrigins -> Bool
$c== :: ListApprovedOrigins -> ListApprovedOrigins -> Bool
Prelude.Eq, ReadPrec [ListApprovedOrigins]
ReadPrec ListApprovedOrigins
Int -> ReadS ListApprovedOrigins
ReadS [ListApprovedOrigins]
(Int -> ReadS ListApprovedOrigins)
-> ReadS [ListApprovedOrigins]
-> ReadPrec ListApprovedOrigins
-> ReadPrec [ListApprovedOrigins]
-> Read ListApprovedOrigins
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListApprovedOrigins]
$creadListPrec :: ReadPrec [ListApprovedOrigins]
readPrec :: ReadPrec ListApprovedOrigins
$creadPrec :: ReadPrec ListApprovedOrigins
readList :: ReadS [ListApprovedOrigins]
$creadList :: ReadS [ListApprovedOrigins]
readsPrec :: Int -> ReadS ListApprovedOrigins
$creadsPrec :: Int -> ReadS ListApprovedOrigins
Prelude.Read, Int -> ListApprovedOrigins -> ShowS
[ListApprovedOrigins] -> ShowS
ListApprovedOrigins -> String
(Int -> ListApprovedOrigins -> ShowS)
-> (ListApprovedOrigins -> String)
-> ([ListApprovedOrigins] -> ShowS)
-> Show ListApprovedOrigins
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListApprovedOrigins] -> ShowS
$cshowList :: [ListApprovedOrigins] -> ShowS
show :: ListApprovedOrigins -> String
$cshow :: ListApprovedOrigins -> String
showsPrec :: Int -> ListApprovedOrigins -> ShowS
$cshowsPrec :: Int -> ListApprovedOrigins -> ShowS
Prelude.Show, (forall x. ListApprovedOrigins -> Rep ListApprovedOrigins x)
-> (forall x. Rep ListApprovedOrigins x -> ListApprovedOrigins)
-> Generic ListApprovedOrigins
forall x. Rep ListApprovedOrigins x -> ListApprovedOrigins
forall x. ListApprovedOrigins -> Rep ListApprovedOrigins x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListApprovedOrigins x -> ListApprovedOrigins
$cfrom :: forall x. ListApprovedOrigins -> Rep ListApprovedOrigins x
Prelude.Generic)
newListApprovedOrigins ::
Prelude.Text ->
ListApprovedOrigins
newListApprovedOrigins :: Text -> ListApprovedOrigins
newListApprovedOrigins Text
pInstanceId_ =
ListApprovedOrigins' :: Maybe Text -> Maybe Natural -> Text -> ListApprovedOrigins
ListApprovedOrigins'
{ $sel:nextToken:ListApprovedOrigins' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListApprovedOrigins' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:instanceId:ListApprovedOrigins' :: Text
instanceId = Text
pInstanceId_
}
listApprovedOrigins_nextToken :: Lens.Lens' ListApprovedOrigins (Prelude.Maybe Prelude.Text)
listApprovedOrigins_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListApprovedOrigins -> f ListApprovedOrigins
listApprovedOrigins_nextToken = (ListApprovedOrigins -> Maybe Text)
-> (ListApprovedOrigins -> Maybe Text -> ListApprovedOrigins)
-> Lens
ListApprovedOrigins ListApprovedOrigins (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListApprovedOrigins' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListApprovedOrigins' :: ListApprovedOrigins -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListApprovedOrigins
s@ListApprovedOrigins' {} Maybe Text
a -> ListApprovedOrigins
s {$sel:nextToken:ListApprovedOrigins' :: Maybe Text
nextToken = Maybe Text
a} :: ListApprovedOrigins)
listApprovedOrigins_maxResults :: Lens.Lens' ListApprovedOrigins (Prelude.Maybe Prelude.Natural)
listApprovedOrigins_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListApprovedOrigins -> f ListApprovedOrigins
listApprovedOrigins_maxResults = (ListApprovedOrigins -> Maybe Natural)
-> (ListApprovedOrigins -> Maybe Natural -> ListApprovedOrigins)
-> Lens
ListApprovedOrigins
ListApprovedOrigins
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListApprovedOrigins' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListApprovedOrigins' :: ListApprovedOrigins -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListApprovedOrigins
s@ListApprovedOrigins' {} Maybe Natural
a -> ListApprovedOrigins
s {$sel:maxResults:ListApprovedOrigins' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListApprovedOrigins)
listApprovedOrigins_instanceId :: Lens.Lens' ListApprovedOrigins Prelude.Text
listApprovedOrigins_instanceId :: (Text -> f Text) -> ListApprovedOrigins -> f ListApprovedOrigins
listApprovedOrigins_instanceId = (ListApprovedOrigins -> Text)
-> (ListApprovedOrigins -> Text -> ListApprovedOrigins)
-> Lens ListApprovedOrigins ListApprovedOrigins Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListApprovedOrigins' {Text
instanceId :: Text
$sel:instanceId:ListApprovedOrigins' :: ListApprovedOrigins -> Text
instanceId} -> Text
instanceId) (\s :: ListApprovedOrigins
s@ListApprovedOrigins' {} Text
a -> ListApprovedOrigins
s {$sel:instanceId:ListApprovedOrigins' :: Text
instanceId = Text
a} :: ListApprovedOrigins)
instance Core.AWSPager ListApprovedOrigins where
page :: ListApprovedOrigins
-> AWSResponse ListApprovedOrigins -> Maybe ListApprovedOrigins
page ListApprovedOrigins
rq AWSResponse ListApprovedOrigins
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListApprovedOrigins
ListApprovedOriginsResponse
rs
ListApprovedOriginsResponse
-> Getting (First Text) ListApprovedOriginsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListApprovedOriginsResponse
-> Const (First Text) ListApprovedOriginsResponse
Lens' ListApprovedOriginsResponse (Maybe Text)
listApprovedOriginsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListApprovedOriginsResponse
-> Const (First Text) ListApprovedOriginsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListApprovedOriginsResponse 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 ListApprovedOrigins
forall a. Maybe a
Prelude.Nothing
| Maybe [Text] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListApprovedOrigins
ListApprovedOriginsResponse
rs
ListApprovedOriginsResponse
-> Getting (First [Text]) ListApprovedOriginsResponse [Text]
-> Maybe [Text]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> ListApprovedOriginsResponse
-> Const (First [Text]) ListApprovedOriginsResponse
Lens' ListApprovedOriginsResponse (Maybe [Text])
listApprovedOriginsResponse_origins
((Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> ListApprovedOriginsResponse
-> Const (First [Text]) ListApprovedOriginsResponse)
-> (([Text] -> Const (First [Text]) [Text])
-> Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> Getting (First [Text]) ListApprovedOriginsResponse [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 ListApprovedOrigins
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListApprovedOrigins -> Maybe ListApprovedOrigins
forall a. a -> Maybe a
Prelude.Just (ListApprovedOrigins -> Maybe ListApprovedOrigins)
-> ListApprovedOrigins -> Maybe ListApprovedOrigins
forall a b. (a -> b) -> a -> b
Prelude.$
ListApprovedOrigins
rq
ListApprovedOrigins
-> (ListApprovedOrigins -> ListApprovedOrigins)
-> ListApprovedOrigins
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListApprovedOrigins -> Identity ListApprovedOrigins
Lens
ListApprovedOrigins ListApprovedOrigins (Maybe Text) (Maybe Text)
listApprovedOrigins_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListApprovedOrigins -> Identity ListApprovedOrigins)
-> Maybe Text -> ListApprovedOrigins -> ListApprovedOrigins
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListApprovedOrigins
ListApprovedOriginsResponse
rs
ListApprovedOriginsResponse
-> Getting (First Text) ListApprovedOriginsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListApprovedOriginsResponse
-> Const (First Text) ListApprovedOriginsResponse
Lens' ListApprovedOriginsResponse (Maybe Text)
listApprovedOriginsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListApprovedOriginsResponse
-> Const (First Text) ListApprovedOriginsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListApprovedOriginsResponse 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 ListApprovedOrigins where
type
AWSResponse ListApprovedOrigins =
ListApprovedOriginsResponse
request :: ListApprovedOrigins -> Request ListApprovedOrigins
request = Service -> ListApprovedOrigins -> Request ListApprovedOrigins
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListApprovedOrigins
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListApprovedOrigins)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListApprovedOrigins))
-> Logger
-> Service
-> Proxy ListApprovedOrigins
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListApprovedOrigins)))
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 [Text] -> Int -> ListApprovedOriginsResponse
ListApprovedOriginsResponse'
(Maybe Text -> Maybe [Text] -> Int -> ListApprovedOriginsResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe [Text] -> Int -> ListApprovedOriginsResponse)
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 [Text] -> Int -> ListApprovedOriginsResponse)
-> Either String (Maybe [Text])
-> Either String (Int -> ListApprovedOriginsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Origins" Either String (Maybe (Maybe [Text]))
-> Maybe [Text] -> Either String (Maybe [Text])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> ListApprovedOriginsResponse)
-> Either String Int -> Either String ListApprovedOriginsResponse
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 ListApprovedOrigins
instance Prelude.NFData ListApprovedOrigins
instance Core.ToHeaders ListApprovedOrigins where
toHeaders :: ListApprovedOrigins -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListApprovedOrigins -> 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 ListApprovedOrigins where
toPath :: ListApprovedOrigins -> ByteString
toPath ListApprovedOrigins' {Maybe Natural
Maybe Text
Text
instanceId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:instanceId:ListApprovedOrigins' :: ListApprovedOrigins -> Text
$sel:maxResults:ListApprovedOrigins' :: ListApprovedOrigins -> Maybe Natural
$sel:nextToken:ListApprovedOrigins' :: ListApprovedOrigins -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/instance/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
instanceId,
ByteString
"/approved-origins"
]
instance Core.ToQuery ListApprovedOrigins where
toQuery :: ListApprovedOrigins -> QueryString
toQuery ListApprovedOrigins' {Maybe Natural
Maybe Text
Text
instanceId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:instanceId:ListApprovedOrigins' :: ListApprovedOrigins -> Text
$sel:maxResults:ListApprovedOrigins' :: ListApprovedOrigins -> Maybe Natural
$sel:nextToken:ListApprovedOrigins' :: ListApprovedOrigins -> 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 ListApprovedOriginsResponse = ListApprovedOriginsResponse'
{
ListApprovedOriginsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListApprovedOriginsResponse -> Maybe [Text]
origins :: Prelude.Maybe [Prelude.Text],
ListApprovedOriginsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListApprovedOriginsResponse -> ListApprovedOriginsResponse -> Bool
(ListApprovedOriginsResponse
-> ListApprovedOriginsResponse -> Bool)
-> (ListApprovedOriginsResponse
-> ListApprovedOriginsResponse -> Bool)
-> Eq ListApprovedOriginsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListApprovedOriginsResponse -> ListApprovedOriginsResponse -> Bool
$c/= :: ListApprovedOriginsResponse -> ListApprovedOriginsResponse -> Bool
== :: ListApprovedOriginsResponse -> ListApprovedOriginsResponse -> Bool
$c== :: ListApprovedOriginsResponse -> ListApprovedOriginsResponse -> Bool
Prelude.Eq, ReadPrec [ListApprovedOriginsResponse]
ReadPrec ListApprovedOriginsResponse
Int -> ReadS ListApprovedOriginsResponse
ReadS [ListApprovedOriginsResponse]
(Int -> ReadS ListApprovedOriginsResponse)
-> ReadS [ListApprovedOriginsResponse]
-> ReadPrec ListApprovedOriginsResponse
-> ReadPrec [ListApprovedOriginsResponse]
-> Read ListApprovedOriginsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListApprovedOriginsResponse]
$creadListPrec :: ReadPrec [ListApprovedOriginsResponse]
readPrec :: ReadPrec ListApprovedOriginsResponse
$creadPrec :: ReadPrec ListApprovedOriginsResponse
readList :: ReadS [ListApprovedOriginsResponse]
$creadList :: ReadS [ListApprovedOriginsResponse]
readsPrec :: Int -> ReadS ListApprovedOriginsResponse
$creadsPrec :: Int -> ReadS ListApprovedOriginsResponse
Prelude.Read, Int -> ListApprovedOriginsResponse -> ShowS
[ListApprovedOriginsResponse] -> ShowS
ListApprovedOriginsResponse -> String
(Int -> ListApprovedOriginsResponse -> ShowS)
-> (ListApprovedOriginsResponse -> String)
-> ([ListApprovedOriginsResponse] -> ShowS)
-> Show ListApprovedOriginsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListApprovedOriginsResponse] -> ShowS
$cshowList :: [ListApprovedOriginsResponse] -> ShowS
show :: ListApprovedOriginsResponse -> String
$cshow :: ListApprovedOriginsResponse -> String
showsPrec :: Int -> ListApprovedOriginsResponse -> ShowS
$cshowsPrec :: Int -> ListApprovedOriginsResponse -> ShowS
Prelude.Show, (forall x.
ListApprovedOriginsResponse -> Rep ListApprovedOriginsResponse x)
-> (forall x.
Rep ListApprovedOriginsResponse x -> ListApprovedOriginsResponse)
-> Generic ListApprovedOriginsResponse
forall x.
Rep ListApprovedOriginsResponse x -> ListApprovedOriginsResponse
forall x.
ListApprovedOriginsResponse -> Rep ListApprovedOriginsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListApprovedOriginsResponse x -> ListApprovedOriginsResponse
$cfrom :: forall x.
ListApprovedOriginsResponse -> Rep ListApprovedOriginsResponse x
Prelude.Generic)
newListApprovedOriginsResponse ::
Prelude.Int ->
ListApprovedOriginsResponse
newListApprovedOriginsResponse :: Int -> ListApprovedOriginsResponse
newListApprovedOriginsResponse Int
pHttpStatus_ =
ListApprovedOriginsResponse' :: Maybe Text -> Maybe [Text] -> Int -> ListApprovedOriginsResponse
ListApprovedOriginsResponse'
{ $sel:nextToken:ListApprovedOriginsResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:origins:ListApprovedOriginsResponse' :: Maybe [Text]
origins = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListApprovedOriginsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listApprovedOriginsResponse_nextToken :: Lens.Lens' ListApprovedOriginsResponse (Prelude.Maybe Prelude.Text)
listApprovedOriginsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListApprovedOriginsResponse -> f ListApprovedOriginsResponse
listApprovedOriginsResponse_nextToken = (ListApprovedOriginsResponse -> Maybe Text)
-> (ListApprovedOriginsResponse
-> Maybe Text -> ListApprovedOriginsResponse)
-> Lens' ListApprovedOriginsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListApprovedOriginsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListApprovedOriginsResponse' :: ListApprovedOriginsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListApprovedOriginsResponse
s@ListApprovedOriginsResponse' {} Maybe Text
a -> ListApprovedOriginsResponse
s {$sel:nextToken:ListApprovedOriginsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListApprovedOriginsResponse)
listApprovedOriginsResponse_origins :: Lens.Lens' ListApprovedOriginsResponse (Prelude.Maybe [Prelude.Text])
listApprovedOriginsResponse_origins :: (Maybe [Text] -> f (Maybe [Text]))
-> ListApprovedOriginsResponse -> f ListApprovedOriginsResponse
listApprovedOriginsResponse_origins = (ListApprovedOriginsResponse -> Maybe [Text])
-> (ListApprovedOriginsResponse
-> Maybe [Text] -> ListApprovedOriginsResponse)
-> Lens' ListApprovedOriginsResponse (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListApprovedOriginsResponse' {Maybe [Text]
origins :: Maybe [Text]
$sel:origins:ListApprovedOriginsResponse' :: ListApprovedOriginsResponse -> Maybe [Text]
origins} -> Maybe [Text]
origins) (\s :: ListApprovedOriginsResponse
s@ListApprovedOriginsResponse' {} Maybe [Text]
a -> ListApprovedOriginsResponse
s {$sel:origins:ListApprovedOriginsResponse' :: Maybe [Text]
origins = Maybe [Text]
a} :: ListApprovedOriginsResponse) ((Maybe [Text] -> f (Maybe [Text]))
-> ListApprovedOriginsResponse -> f ListApprovedOriginsResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ListApprovedOriginsResponse
-> f ListApprovedOriginsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listApprovedOriginsResponse_httpStatus :: Lens.Lens' ListApprovedOriginsResponse Prelude.Int
listApprovedOriginsResponse_httpStatus :: (Int -> f Int)
-> ListApprovedOriginsResponse -> f ListApprovedOriginsResponse
listApprovedOriginsResponse_httpStatus = (ListApprovedOriginsResponse -> Int)
-> (ListApprovedOriginsResponse
-> Int -> ListApprovedOriginsResponse)
-> Lens
ListApprovedOriginsResponse ListApprovedOriginsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListApprovedOriginsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListApprovedOriginsResponse' :: ListApprovedOriginsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListApprovedOriginsResponse
s@ListApprovedOriginsResponse' {} Int
a -> ListApprovedOriginsResponse
s {$sel:httpStatus:ListApprovedOriginsResponse' :: Int
httpStatus = Int
a} :: ListApprovedOriginsResponse)
instance Prelude.NFData ListApprovedOriginsResponse