{-# 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.ElasticSearch.ListElasticsearchVersions
(
ListElasticsearchVersions (..),
newListElasticsearchVersions,
listElasticsearchVersions_nextToken,
listElasticsearchVersions_maxResults,
ListElasticsearchVersionsResponse (..),
newListElasticsearchVersionsResponse,
listElasticsearchVersionsResponse_nextToken,
listElasticsearchVersionsResponse_elasticsearchVersions,
listElasticsearchVersionsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.ElasticSearch.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 ListElasticsearchVersions = ListElasticsearchVersions'
{ ListElasticsearchVersions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListElasticsearchVersions -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int
}
deriving (ListElasticsearchVersions -> ListElasticsearchVersions -> Bool
(ListElasticsearchVersions -> ListElasticsearchVersions -> Bool)
-> (ListElasticsearchVersions -> ListElasticsearchVersions -> Bool)
-> Eq ListElasticsearchVersions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListElasticsearchVersions -> ListElasticsearchVersions -> Bool
$c/= :: ListElasticsearchVersions -> ListElasticsearchVersions -> Bool
== :: ListElasticsearchVersions -> ListElasticsearchVersions -> Bool
$c== :: ListElasticsearchVersions -> ListElasticsearchVersions -> Bool
Prelude.Eq, ReadPrec [ListElasticsearchVersions]
ReadPrec ListElasticsearchVersions
Int -> ReadS ListElasticsearchVersions
ReadS [ListElasticsearchVersions]
(Int -> ReadS ListElasticsearchVersions)
-> ReadS [ListElasticsearchVersions]
-> ReadPrec ListElasticsearchVersions
-> ReadPrec [ListElasticsearchVersions]
-> Read ListElasticsearchVersions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListElasticsearchVersions]
$creadListPrec :: ReadPrec [ListElasticsearchVersions]
readPrec :: ReadPrec ListElasticsearchVersions
$creadPrec :: ReadPrec ListElasticsearchVersions
readList :: ReadS [ListElasticsearchVersions]
$creadList :: ReadS [ListElasticsearchVersions]
readsPrec :: Int -> ReadS ListElasticsearchVersions
$creadsPrec :: Int -> ReadS ListElasticsearchVersions
Prelude.Read, Int -> ListElasticsearchVersions -> ShowS
[ListElasticsearchVersions] -> ShowS
ListElasticsearchVersions -> String
(Int -> ListElasticsearchVersions -> ShowS)
-> (ListElasticsearchVersions -> String)
-> ([ListElasticsearchVersions] -> ShowS)
-> Show ListElasticsearchVersions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListElasticsearchVersions] -> ShowS
$cshowList :: [ListElasticsearchVersions] -> ShowS
show :: ListElasticsearchVersions -> String
$cshow :: ListElasticsearchVersions -> String
showsPrec :: Int -> ListElasticsearchVersions -> ShowS
$cshowsPrec :: Int -> ListElasticsearchVersions -> ShowS
Prelude.Show, (forall x.
ListElasticsearchVersions -> Rep ListElasticsearchVersions x)
-> (forall x.
Rep ListElasticsearchVersions x -> ListElasticsearchVersions)
-> Generic ListElasticsearchVersions
forall x.
Rep ListElasticsearchVersions x -> ListElasticsearchVersions
forall x.
ListElasticsearchVersions -> Rep ListElasticsearchVersions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListElasticsearchVersions x -> ListElasticsearchVersions
$cfrom :: forall x.
ListElasticsearchVersions -> Rep ListElasticsearchVersions x
Prelude.Generic)
newListElasticsearchVersions ::
ListElasticsearchVersions
newListElasticsearchVersions :: ListElasticsearchVersions
newListElasticsearchVersions =
ListElasticsearchVersions' :: Maybe Text -> Maybe Int -> ListElasticsearchVersions
ListElasticsearchVersions'
{ $sel:nextToken:ListElasticsearchVersions' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListElasticsearchVersions' :: Maybe Int
maxResults = Maybe Int
forall a. Maybe a
Prelude.Nothing
}
listElasticsearchVersions_nextToken :: Lens.Lens' ListElasticsearchVersions (Prelude.Maybe Prelude.Text)
listElasticsearchVersions_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListElasticsearchVersions -> f ListElasticsearchVersions
listElasticsearchVersions_nextToken = (ListElasticsearchVersions -> Maybe Text)
-> (ListElasticsearchVersions
-> Maybe Text -> ListElasticsearchVersions)
-> Lens
ListElasticsearchVersions
ListElasticsearchVersions
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListElasticsearchVersions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListElasticsearchVersions' :: ListElasticsearchVersions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListElasticsearchVersions
s@ListElasticsearchVersions' {} Maybe Text
a -> ListElasticsearchVersions
s {$sel:nextToken:ListElasticsearchVersions' :: Maybe Text
nextToken = Maybe Text
a} :: ListElasticsearchVersions)
listElasticsearchVersions_maxResults :: Lens.Lens' ListElasticsearchVersions (Prelude.Maybe Prelude.Int)
listElasticsearchVersions_maxResults :: (Maybe Int -> f (Maybe Int))
-> ListElasticsearchVersions -> f ListElasticsearchVersions
listElasticsearchVersions_maxResults = (ListElasticsearchVersions -> Maybe Int)
-> (ListElasticsearchVersions
-> Maybe Int -> ListElasticsearchVersions)
-> Lens
ListElasticsearchVersions
ListElasticsearchVersions
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListElasticsearchVersions' {Maybe Int
maxResults :: Maybe Int
$sel:maxResults:ListElasticsearchVersions' :: ListElasticsearchVersions -> Maybe Int
maxResults} -> Maybe Int
maxResults) (\s :: ListElasticsearchVersions
s@ListElasticsearchVersions' {} Maybe Int
a -> ListElasticsearchVersions
s {$sel:maxResults:ListElasticsearchVersions' :: Maybe Int
maxResults = Maybe Int
a} :: ListElasticsearchVersions)
instance Core.AWSPager ListElasticsearchVersions where
page :: ListElasticsearchVersions
-> AWSResponse ListElasticsearchVersions
-> Maybe ListElasticsearchVersions
page ListElasticsearchVersions
rq AWSResponse ListElasticsearchVersions
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListElasticsearchVersions
ListElasticsearchVersionsResponse
rs
ListElasticsearchVersionsResponse
-> Getting (First Text) ListElasticsearchVersionsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListElasticsearchVersionsResponse
-> Const (First Text) ListElasticsearchVersionsResponse
Lens' ListElasticsearchVersionsResponse (Maybe Text)
listElasticsearchVersionsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListElasticsearchVersionsResponse
-> Const (First Text) ListElasticsearchVersionsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListElasticsearchVersionsResponse 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 ListElasticsearchVersions
forall a. Maybe a
Prelude.Nothing
| Maybe [Text] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListElasticsearchVersions
ListElasticsearchVersionsResponse
rs
ListElasticsearchVersionsResponse
-> Getting (First [Text]) ListElasticsearchVersionsResponse [Text]
-> Maybe [Text]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> ListElasticsearchVersionsResponse
-> Const (First [Text]) ListElasticsearchVersionsResponse
Lens' ListElasticsearchVersionsResponse (Maybe [Text])
listElasticsearchVersionsResponse_elasticsearchVersions
((Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> ListElasticsearchVersionsResponse
-> Const (First [Text]) ListElasticsearchVersionsResponse)
-> (([Text] -> Const (First [Text]) [Text])
-> Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> Getting (First [Text]) ListElasticsearchVersionsResponse [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 ListElasticsearchVersions
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListElasticsearchVersions -> Maybe ListElasticsearchVersions
forall a. a -> Maybe a
Prelude.Just (ListElasticsearchVersions -> Maybe ListElasticsearchVersions)
-> ListElasticsearchVersions -> Maybe ListElasticsearchVersions
forall a b. (a -> b) -> a -> b
Prelude.$
ListElasticsearchVersions
rq
ListElasticsearchVersions
-> (ListElasticsearchVersions -> ListElasticsearchVersions)
-> ListElasticsearchVersions
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListElasticsearchVersions -> Identity ListElasticsearchVersions
Lens
ListElasticsearchVersions
ListElasticsearchVersions
(Maybe Text)
(Maybe Text)
listElasticsearchVersions_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListElasticsearchVersions -> Identity ListElasticsearchVersions)
-> Maybe Text
-> ListElasticsearchVersions
-> ListElasticsearchVersions
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListElasticsearchVersions
ListElasticsearchVersionsResponse
rs
ListElasticsearchVersionsResponse
-> Getting (First Text) ListElasticsearchVersionsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListElasticsearchVersionsResponse
-> Const (First Text) ListElasticsearchVersionsResponse
Lens' ListElasticsearchVersionsResponse (Maybe Text)
listElasticsearchVersionsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListElasticsearchVersionsResponse
-> Const (First Text) ListElasticsearchVersionsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListElasticsearchVersionsResponse 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 ListElasticsearchVersions where
type
AWSResponse ListElasticsearchVersions =
ListElasticsearchVersionsResponse
request :: ListElasticsearchVersions -> Request ListElasticsearchVersions
request = Service
-> ListElasticsearchVersions -> Request ListElasticsearchVersions
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListElasticsearchVersions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListElasticsearchVersions)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListElasticsearchVersions))
-> Logger
-> Service
-> Proxy ListElasticsearchVersions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListElasticsearchVersions)))
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 -> ListElasticsearchVersionsResponse
ListElasticsearchVersionsResponse'
(Maybe Text
-> Maybe [Text] -> Int -> ListElasticsearchVersionsResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe [Text] -> Int -> ListElasticsearchVersionsResponse)
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 -> ListElasticsearchVersionsResponse)
-> Either String (Maybe [Text])
-> Either String (Int -> ListElasticsearchVersionsResponse)
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
"ElasticsearchVersions"
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 -> ListElasticsearchVersionsResponse)
-> Either String Int
-> Either String ListElasticsearchVersionsResponse
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 ListElasticsearchVersions
instance Prelude.NFData ListElasticsearchVersions
instance Core.ToHeaders ListElasticsearchVersions where
toHeaders :: ListElasticsearchVersions -> ResponseHeaders
toHeaders = ResponseHeaders -> ListElasticsearchVersions -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath ListElasticsearchVersions where
toPath :: ListElasticsearchVersions -> ByteString
toPath = ByteString -> ListElasticsearchVersions -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/2015-01-01/es/versions"
instance Core.ToQuery ListElasticsearchVersions where
toQuery :: ListElasticsearchVersions -> QueryString
toQuery ListElasticsearchVersions' {Maybe Int
Maybe Text
maxResults :: Maybe Int
nextToken :: Maybe Text
$sel:maxResults:ListElasticsearchVersions' :: ListElasticsearchVersions -> Maybe Int
$sel:nextToken:ListElasticsearchVersions' :: ListElasticsearchVersions -> 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 Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
maxResults
]
data ListElasticsearchVersionsResponse = ListElasticsearchVersionsResponse'
{ ListElasticsearchVersionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListElasticsearchVersionsResponse -> Maybe [Text]
elasticsearchVersions :: Prelude.Maybe [Prelude.Text],
ListElasticsearchVersionsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListElasticsearchVersionsResponse
-> ListElasticsearchVersionsResponse -> Bool
(ListElasticsearchVersionsResponse
-> ListElasticsearchVersionsResponse -> Bool)
-> (ListElasticsearchVersionsResponse
-> ListElasticsearchVersionsResponse -> Bool)
-> Eq ListElasticsearchVersionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListElasticsearchVersionsResponse
-> ListElasticsearchVersionsResponse -> Bool
$c/= :: ListElasticsearchVersionsResponse
-> ListElasticsearchVersionsResponse -> Bool
== :: ListElasticsearchVersionsResponse
-> ListElasticsearchVersionsResponse -> Bool
$c== :: ListElasticsearchVersionsResponse
-> ListElasticsearchVersionsResponse -> Bool
Prelude.Eq, ReadPrec [ListElasticsearchVersionsResponse]
ReadPrec ListElasticsearchVersionsResponse
Int -> ReadS ListElasticsearchVersionsResponse
ReadS [ListElasticsearchVersionsResponse]
(Int -> ReadS ListElasticsearchVersionsResponse)
-> ReadS [ListElasticsearchVersionsResponse]
-> ReadPrec ListElasticsearchVersionsResponse
-> ReadPrec [ListElasticsearchVersionsResponse]
-> Read ListElasticsearchVersionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListElasticsearchVersionsResponse]
$creadListPrec :: ReadPrec [ListElasticsearchVersionsResponse]
readPrec :: ReadPrec ListElasticsearchVersionsResponse
$creadPrec :: ReadPrec ListElasticsearchVersionsResponse
readList :: ReadS [ListElasticsearchVersionsResponse]
$creadList :: ReadS [ListElasticsearchVersionsResponse]
readsPrec :: Int -> ReadS ListElasticsearchVersionsResponse
$creadsPrec :: Int -> ReadS ListElasticsearchVersionsResponse
Prelude.Read, Int -> ListElasticsearchVersionsResponse -> ShowS
[ListElasticsearchVersionsResponse] -> ShowS
ListElasticsearchVersionsResponse -> String
(Int -> ListElasticsearchVersionsResponse -> ShowS)
-> (ListElasticsearchVersionsResponse -> String)
-> ([ListElasticsearchVersionsResponse] -> ShowS)
-> Show ListElasticsearchVersionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListElasticsearchVersionsResponse] -> ShowS
$cshowList :: [ListElasticsearchVersionsResponse] -> ShowS
show :: ListElasticsearchVersionsResponse -> String
$cshow :: ListElasticsearchVersionsResponse -> String
showsPrec :: Int -> ListElasticsearchVersionsResponse -> ShowS
$cshowsPrec :: Int -> ListElasticsearchVersionsResponse -> ShowS
Prelude.Show, (forall x.
ListElasticsearchVersionsResponse
-> Rep ListElasticsearchVersionsResponse x)
-> (forall x.
Rep ListElasticsearchVersionsResponse x
-> ListElasticsearchVersionsResponse)
-> Generic ListElasticsearchVersionsResponse
forall x.
Rep ListElasticsearchVersionsResponse x
-> ListElasticsearchVersionsResponse
forall x.
ListElasticsearchVersionsResponse
-> Rep ListElasticsearchVersionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListElasticsearchVersionsResponse x
-> ListElasticsearchVersionsResponse
$cfrom :: forall x.
ListElasticsearchVersionsResponse
-> Rep ListElasticsearchVersionsResponse x
Prelude.Generic)
newListElasticsearchVersionsResponse ::
Prelude.Int ->
ListElasticsearchVersionsResponse
newListElasticsearchVersionsResponse :: Int -> ListElasticsearchVersionsResponse
newListElasticsearchVersionsResponse Int
pHttpStatus_ =
ListElasticsearchVersionsResponse' :: Maybe Text
-> Maybe [Text] -> Int -> ListElasticsearchVersionsResponse
ListElasticsearchVersionsResponse'
{ $sel:nextToken:ListElasticsearchVersionsResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:elasticsearchVersions:ListElasticsearchVersionsResponse' :: Maybe [Text]
elasticsearchVersions = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListElasticsearchVersionsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listElasticsearchVersionsResponse_nextToken :: Lens.Lens' ListElasticsearchVersionsResponse (Prelude.Maybe Prelude.Text)
listElasticsearchVersionsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListElasticsearchVersionsResponse
-> f ListElasticsearchVersionsResponse
listElasticsearchVersionsResponse_nextToken = (ListElasticsearchVersionsResponse -> Maybe Text)
-> (ListElasticsearchVersionsResponse
-> Maybe Text -> ListElasticsearchVersionsResponse)
-> Lens' ListElasticsearchVersionsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListElasticsearchVersionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListElasticsearchVersionsResponse' :: ListElasticsearchVersionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListElasticsearchVersionsResponse
s@ListElasticsearchVersionsResponse' {} Maybe Text
a -> ListElasticsearchVersionsResponse
s {$sel:nextToken:ListElasticsearchVersionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListElasticsearchVersionsResponse)
listElasticsearchVersionsResponse_elasticsearchVersions :: Lens.Lens' ListElasticsearchVersionsResponse (Prelude.Maybe [Prelude.Text])
listElasticsearchVersionsResponse_elasticsearchVersions :: (Maybe [Text] -> f (Maybe [Text]))
-> ListElasticsearchVersionsResponse
-> f ListElasticsearchVersionsResponse
listElasticsearchVersionsResponse_elasticsearchVersions = (ListElasticsearchVersionsResponse -> Maybe [Text])
-> (ListElasticsearchVersionsResponse
-> Maybe [Text] -> ListElasticsearchVersionsResponse)
-> Lens' ListElasticsearchVersionsResponse (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListElasticsearchVersionsResponse' {Maybe [Text]
elasticsearchVersions :: Maybe [Text]
$sel:elasticsearchVersions:ListElasticsearchVersionsResponse' :: ListElasticsearchVersionsResponse -> Maybe [Text]
elasticsearchVersions} -> Maybe [Text]
elasticsearchVersions) (\s :: ListElasticsearchVersionsResponse
s@ListElasticsearchVersionsResponse' {} Maybe [Text]
a -> ListElasticsearchVersionsResponse
s {$sel:elasticsearchVersions:ListElasticsearchVersionsResponse' :: Maybe [Text]
elasticsearchVersions = Maybe [Text]
a} :: ListElasticsearchVersionsResponse) ((Maybe [Text] -> f (Maybe [Text]))
-> ListElasticsearchVersionsResponse
-> f ListElasticsearchVersionsResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ListElasticsearchVersionsResponse
-> f ListElasticsearchVersionsResponse
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
listElasticsearchVersionsResponse_httpStatus :: Lens.Lens' ListElasticsearchVersionsResponse Prelude.Int
listElasticsearchVersionsResponse_httpStatus :: (Int -> f Int)
-> ListElasticsearchVersionsResponse
-> f ListElasticsearchVersionsResponse
listElasticsearchVersionsResponse_httpStatus = (ListElasticsearchVersionsResponse -> Int)
-> (ListElasticsearchVersionsResponse
-> Int -> ListElasticsearchVersionsResponse)
-> Lens
ListElasticsearchVersionsResponse
ListElasticsearchVersionsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListElasticsearchVersionsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListElasticsearchVersionsResponse' :: ListElasticsearchVersionsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListElasticsearchVersionsResponse
s@ListElasticsearchVersionsResponse' {} Int
a -> ListElasticsearchVersionsResponse
s {$sel:httpStatus:ListElasticsearchVersionsResponse' :: Int
httpStatus = Int
a} :: ListElasticsearchVersionsResponse)
instance
Prelude.NFData
ListElasticsearchVersionsResponse