{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Synthetics.DescribeRuntimeVersions
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns a list of Synthetics canary runtime versions. For more
-- information, see
-- <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html Canary Runtime Versions>.
module Amazonka.Synthetics.DescribeRuntimeVersions
  ( -- * Creating a Request
    DescribeRuntimeVersions (..),
    newDescribeRuntimeVersions,

    -- * Request Lenses
    describeRuntimeVersions_nextToken,
    describeRuntimeVersions_maxResults,

    -- * Destructuring the Response
    DescribeRuntimeVersionsResponse (..),
    newDescribeRuntimeVersionsResponse,

    -- * Response Lenses
    describeRuntimeVersionsResponse_runtimeVersions,
    describeRuntimeVersionsResponse_nextToken,
    describeRuntimeVersionsResponse_httpStatus,
  )
where

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
import Amazonka.Synthetics.Types

-- | /See:/ 'newDescribeRuntimeVersions' smart constructor.
data DescribeRuntimeVersions = DescribeRuntimeVersions'
  { -- | A token that indicates that there is more data available. You can use
    -- this token in a subsequent @DescribeRuntimeVersions@ operation to
    -- retrieve the next set of results.
    DescribeRuntimeVersions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | Specify this parameter to limit how many runs are returned each time you
    -- use the @DescribeRuntimeVersions@ operation. If you omit this parameter,
    -- the default of 100 is used.
    DescribeRuntimeVersions -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
  }
  deriving (DescribeRuntimeVersions -> DescribeRuntimeVersions -> Bool
(DescribeRuntimeVersions -> DescribeRuntimeVersions -> Bool)
-> (DescribeRuntimeVersions -> DescribeRuntimeVersions -> Bool)
-> Eq DescribeRuntimeVersions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeRuntimeVersions -> DescribeRuntimeVersions -> Bool
$c/= :: DescribeRuntimeVersions -> DescribeRuntimeVersions -> Bool
== :: DescribeRuntimeVersions -> DescribeRuntimeVersions -> Bool
$c== :: DescribeRuntimeVersions -> DescribeRuntimeVersions -> Bool
Prelude.Eq, ReadPrec [DescribeRuntimeVersions]
ReadPrec DescribeRuntimeVersions
Int -> ReadS DescribeRuntimeVersions
ReadS [DescribeRuntimeVersions]
(Int -> ReadS DescribeRuntimeVersions)
-> ReadS [DescribeRuntimeVersions]
-> ReadPrec DescribeRuntimeVersions
-> ReadPrec [DescribeRuntimeVersions]
-> Read DescribeRuntimeVersions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeRuntimeVersions]
$creadListPrec :: ReadPrec [DescribeRuntimeVersions]
readPrec :: ReadPrec DescribeRuntimeVersions
$creadPrec :: ReadPrec DescribeRuntimeVersions
readList :: ReadS [DescribeRuntimeVersions]
$creadList :: ReadS [DescribeRuntimeVersions]
readsPrec :: Int -> ReadS DescribeRuntimeVersions
$creadsPrec :: Int -> ReadS DescribeRuntimeVersions
Prelude.Read, Int -> DescribeRuntimeVersions -> ShowS
[DescribeRuntimeVersions] -> ShowS
DescribeRuntimeVersions -> String
(Int -> DescribeRuntimeVersions -> ShowS)
-> (DescribeRuntimeVersions -> String)
-> ([DescribeRuntimeVersions] -> ShowS)
-> Show DescribeRuntimeVersions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeRuntimeVersions] -> ShowS
$cshowList :: [DescribeRuntimeVersions] -> ShowS
show :: DescribeRuntimeVersions -> String
$cshow :: DescribeRuntimeVersions -> String
showsPrec :: Int -> DescribeRuntimeVersions -> ShowS
$cshowsPrec :: Int -> DescribeRuntimeVersions -> ShowS
Prelude.Show, (forall x.
 DescribeRuntimeVersions -> Rep DescribeRuntimeVersions x)
-> (forall x.
    Rep DescribeRuntimeVersions x -> DescribeRuntimeVersions)
-> Generic DescribeRuntimeVersions
forall x. Rep DescribeRuntimeVersions x -> DescribeRuntimeVersions
forall x. DescribeRuntimeVersions -> Rep DescribeRuntimeVersions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeRuntimeVersions x -> DescribeRuntimeVersions
$cfrom :: forall x. DescribeRuntimeVersions -> Rep DescribeRuntimeVersions x
Prelude.Generic)

-- |
-- Create a value of 'DescribeRuntimeVersions' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'nextToken', 'describeRuntimeVersions_nextToken' - A token that indicates that there is more data available. You can use
-- this token in a subsequent @DescribeRuntimeVersions@ operation to
-- retrieve the next set of results.
--
-- 'maxResults', 'describeRuntimeVersions_maxResults' - Specify this parameter to limit how many runs are returned each time you
-- use the @DescribeRuntimeVersions@ operation. If you omit this parameter,
-- the default of 100 is used.
newDescribeRuntimeVersions ::
  DescribeRuntimeVersions
newDescribeRuntimeVersions :: DescribeRuntimeVersions
newDescribeRuntimeVersions =
  DescribeRuntimeVersions' :: Maybe Text -> Maybe Natural -> DescribeRuntimeVersions
DescribeRuntimeVersions'
    { $sel:nextToken:DescribeRuntimeVersions' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:DescribeRuntimeVersions' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
    }

-- | A token that indicates that there is more data available. You can use
-- this token in a subsequent @DescribeRuntimeVersions@ operation to
-- retrieve the next set of results.
describeRuntimeVersions_nextToken :: Lens.Lens' DescribeRuntimeVersions (Prelude.Maybe Prelude.Text)
describeRuntimeVersions_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeRuntimeVersions -> f DescribeRuntimeVersions
describeRuntimeVersions_nextToken = (DescribeRuntimeVersions -> Maybe Text)
-> (DescribeRuntimeVersions
    -> Maybe Text -> DescribeRuntimeVersions)
-> Lens
     DescribeRuntimeVersions
     DescribeRuntimeVersions
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRuntimeVersions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeRuntimeVersions' :: DescribeRuntimeVersions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeRuntimeVersions
s@DescribeRuntimeVersions' {} Maybe Text
a -> DescribeRuntimeVersions
s {$sel:nextToken:DescribeRuntimeVersions' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeRuntimeVersions)

-- | Specify this parameter to limit how many runs are returned each time you
-- use the @DescribeRuntimeVersions@ operation. If you omit this parameter,
-- the default of 100 is used.
describeRuntimeVersions_maxResults :: Lens.Lens' DescribeRuntimeVersions (Prelude.Maybe Prelude.Natural)
describeRuntimeVersions_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> DescribeRuntimeVersions -> f DescribeRuntimeVersions
describeRuntimeVersions_maxResults = (DescribeRuntimeVersions -> Maybe Natural)
-> (DescribeRuntimeVersions
    -> Maybe Natural -> DescribeRuntimeVersions)
-> Lens
     DescribeRuntimeVersions
     DescribeRuntimeVersions
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRuntimeVersions' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:DescribeRuntimeVersions' :: DescribeRuntimeVersions -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: DescribeRuntimeVersions
s@DescribeRuntimeVersions' {} Maybe Natural
a -> DescribeRuntimeVersions
s {$sel:maxResults:DescribeRuntimeVersions' :: Maybe Natural
maxResults = Maybe Natural
a} :: DescribeRuntimeVersions)

instance Core.AWSRequest DescribeRuntimeVersions where
  type
    AWSResponse DescribeRuntimeVersions =
      DescribeRuntimeVersionsResponse
  request :: DescribeRuntimeVersions -> Request DescribeRuntimeVersions
request = Service
-> DescribeRuntimeVersions -> Request DescribeRuntimeVersions
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeRuntimeVersions
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeRuntimeVersions)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeRuntimeVersions))
-> Logger
-> Service
-> Proxy DescribeRuntimeVersions
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeRuntimeVersions)))
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 [RuntimeVersion]
-> Maybe Text -> Int -> DescribeRuntimeVersionsResponse
DescribeRuntimeVersionsResponse'
            (Maybe [RuntimeVersion]
 -> Maybe Text -> Int -> DescribeRuntimeVersionsResponse)
-> Either String (Maybe [RuntimeVersion])
-> Either
     String (Maybe Text -> Int -> DescribeRuntimeVersionsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object -> Text -> Either String (Maybe (Maybe [RuntimeVersion]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"RuntimeVersions"
                            Either String (Maybe (Maybe [RuntimeVersion]))
-> Maybe [RuntimeVersion] -> Either String (Maybe [RuntimeVersion])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [RuntimeVersion]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either
  String (Maybe Text -> Int -> DescribeRuntimeVersionsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeRuntimeVersionsResponse)
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 -> DescribeRuntimeVersionsResponse)
-> Either String Int
-> Either String DescribeRuntimeVersionsResponse
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 DescribeRuntimeVersions

instance Prelude.NFData DescribeRuntimeVersions

instance Core.ToHeaders DescribeRuntimeVersions where
  toHeaders :: DescribeRuntimeVersions -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeRuntimeVersions -> 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.ToJSON DescribeRuntimeVersions where
  toJSON :: DescribeRuntimeVersions -> Value
toJSON DescribeRuntimeVersions' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:DescribeRuntimeVersions' :: DescribeRuntimeVersions -> Maybe Natural
$sel:nextToken:DescribeRuntimeVersions' :: DescribeRuntimeVersions -> 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
          ]
      )

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

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

-- | /See:/ 'newDescribeRuntimeVersionsResponse' smart constructor.
data DescribeRuntimeVersionsResponse = DescribeRuntimeVersionsResponse'
  { -- | An array of objects that display the details about each Synthetics
    -- canary runtime version.
    DescribeRuntimeVersionsResponse -> Maybe [RuntimeVersion]
runtimeVersions :: Prelude.Maybe [RuntimeVersion],
    -- | A token that indicates that there is more data available. You can use
    -- this token in a subsequent @DescribeRuntimeVersions@ operation to
    -- retrieve the next set of results.
    DescribeRuntimeVersionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DescribeRuntimeVersionsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeRuntimeVersionsResponse
-> DescribeRuntimeVersionsResponse -> Bool
(DescribeRuntimeVersionsResponse
 -> DescribeRuntimeVersionsResponse -> Bool)
-> (DescribeRuntimeVersionsResponse
    -> DescribeRuntimeVersionsResponse -> Bool)
-> Eq DescribeRuntimeVersionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeRuntimeVersionsResponse
-> DescribeRuntimeVersionsResponse -> Bool
$c/= :: DescribeRuntimeVersionsResponse
-> DescribeRuntimeVersionsResponse -> Bool
== :: DescribeRuntimeVersionsResponse
-> DescribeRuntimeVersionsResponse -> Bool
$c== :: DescribeRuntimeVersionsResponse
-> DescribeRuntimeVersionsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeRuntimeVersionsResponse]
ReadPrec DescribeRuntimeVersionsResponse
Int -> ReadS DescribeRuntimeVersionsResponse
ReadS [DescribeRuntimeVersionsResponse]
(Int -> ReadS DescribeRuntimeVersionsResponse)
-> ReadS [DescribeRuntimeVersionsResponse]
-> ReadPrec DescribeRuntimeVersionsResponse
-> ReadPrec [DescribeRuntimeVersionsResponse]
-> Read DescribeRuntimeVersionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeRuntimeVersionsResponse]
$creadListPrec :: ReadPrec [DescribeRuntimeVersionsResponse]
readPrec :: ReadPrec DescribeRuntimeVersionsResponse
$creadPrec :: ReadPrec DescribeRuntimeVersionsResponse
readList :: ReadS [DescribeRuntimeVersionsResponse]
$creadList :: ReadS [DescribeRuntimeVersionsResponse]
readsPrec :: Int -> ReadS DescribeRuntimeVersionsResponse
$creadsPrec :: Int -> ReadS DescribeRuntimeVersionsResponse
Prelude.Read, Int -> DescribeRuntimeVersionsResponse -> ShowS
[DescribeRuntimeVersionsResponse] -> ShowS
DescribeRuntimeVersionsResponse -> String
(Int -> DescribeRuntimeVersionsResponse -> ShowS)
-> (DescribeRuntimeVersionsResponse -> String)
-> ([DescribeRuntimeVersionsResponse] -> ShowS)
-> Show DescribeRuntimeVersionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeRuntimeVersionsResponse] -> ShowS
$cshowList :: [DescribeRuntimeVersionsResponse] -> ShowS
show :: DescribeRuntimeVersionsResponse -> String
$cshow :: DescribeRuntimeVersionsResponse -> String
showsPrec :: Int -> DescribeRuntimeVersionsResponse -> ShowS
$cshowsPrec :: Int -> DescribeRuntimeVersionsResponse -> ShowS
Prelude.Show, (forall x.
 DescribeRuntimeVersionsResponse
 -> Rep DescribeRuntimeVersionsResponse x)
-> (forall x.
    Rep DescribeRuntimeVersionsResponse x
    -> DescribeRuntimeVersionsResponse)
-> Generic DescribeRuntimeVersionsResponse
forall x.
Rep DescribeRuntimeVersionsResponse x
-> DescribeRuntimeVersionsResponse
forall x.
DescribeRuntimeVersionsResponse
-> Rep DescribeRuntimeVersionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeRuntimeVersionsResponse x
-> DescribeRuntimeVersionsResponse
$cfrom :: forall x.
DescribeRuntimeVersionsResponse
-> Rep DescribeRuntimeVersionsResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeRuntimeVersionsResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'runtimeVersions', 'describeRuntimeVersionsResponse_runtimeVersions' - An array of objects that display the details about each Synthetics
-- canary runtime version.
--
-- 'nextToken', 'describeRuntimeVersionsResponse_nextToken' - A token that indicates that there is more data available. You can use
-- this token in a subsequent @DescribeRuntimeVersions@ operation to
-- retrieve the next set of results.
--
-- 'httpStatus', 'describeRuntimeVersionsResponse_httpStatus' - The response's http status code.
newDescribeRuntimeVersionsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeRuntimeVersionsResponse
newDescribeRuntimeVersionsResponse :: Int -> DescribeRuntimeVersionsResponse
newDescribeRuntimeVersionsResponse Int
pHttpStatus_ =
  DescribeRuntimeVersionsResponse' :: Maybe [RuntimeVersion]
-> Maybe Text -> Int -> DescribeRuntimeVersionsResponse
DescribeRuntimeVersionsResponse'
    { $sel:runtimeVersions:DescribeRuntimeVersionsResponse' :: Maybe [RuntimeVersion]
runtimeVersions =
        Maybe [RuntimeVersion]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:DescribeRuntimeVersionsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeRuntimeVersionsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | An array of objects that display the details about each Synthetics
-- canary runtime version.
describeRuntimeVersionsResponse_runtimeVersions :: Lens.Lens' DescribeRuntimeVersionsResponse (Prelude.Maybe [RuntimeVersion])
describeRuntimeVersionsResponse_runtimeVersions :: (Maybe [RuntimeVersion] -> f (Maybe [RuntimeVersion]))
-> DescribeRuntimeVersionsResponse
-> f DescribeRuntimeVersionsResponse
describeRuntimeVersionsResponse_runtimeVersions = (DescribeRuntimeVersionsResponse -> Maybe [RuntimeVersion])
-> (DescribeRuntimeVersionsResponse
    -> Maybe [RuntimeVersion] -> DescribeRuntimeVersionsResponse)
-> Lens
     DescribeRuntimeVersionsResponse
     DescribeRuntimeVersionsResponse
     (Maybe [RuntimeVersion])
     (Maybe [RuntimeVersion])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRuntimeVersionsResponse' {Maybe [RuntimeVersion]
runtimeVersions :: Maybe [RuntimeVersion]
$sel:runtimeVersions:DescribeRuntimeVersionsResponse' :: DescribeRuntimeVersionsResponse -> Maybe [RuntimeVersion]
runtimeVersions} -> Maybe [RuntimeVersion]
runtimeVersions) (\s :: DescribeRuntimeVersionsResponse
s@DescribeRuntimeVersionsResponse' {} Maybe [RuntimeVersion]
a -> DescribeRuntimeVersionsResponse
s {$sel:runtimeVersions:DescribeRuntimeVersionsResponse' :: Maybe [RuntimeVersion]
runtimeVersions = Maybe [RuntimeVersion]
a} :: DescribeRuntimeVersionsResponse) ((Maybe [RuntimeVersion] -> f (Maybe [RuntimeVersion]))
 -> DescribeRuntimeVersionsResponse
 -> f DescribeRuntimeVersionsResponse)
-> ((Maybe [RuntimeVersion] -> f (Maybe [RuntimeVersion]))
    -> Maybe [RuntimeVersion] -> f (Maybe [RuntimeVersion]))
-> (Maybe [RuntimeVersion] -> f (Maybe [RuntimeVersion]))
-> DescribeRuntimeVersionsResponse
-> f DescribeRuntimeVersionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [RuntimeVersion] [RuntimeVersion] [RuntimeVersion] [RuntimeVersion]
-> Iso
     (Maybe [RuntimeVersion])
     (Maybe [RuntimeVersion])
     (Maybe [RuntimeVersion])
     (Maybe [RuntimeVersion])
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
  [RuntimeVersion] [RuntimeVersion] [RuntimeVersion] [RuntimeVersion]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A token that indicates that there is more data available. You can use
-- this token in a subsequent @DescribeRuntimeVersions@ operation to
-- retrieve the next set of results.
describeRuntimeVersionsResponse_nextToken :: Lens.Lens' DescribeRuntimeVersionsResponse (Prelude.Maybe Prelude.Text)
describeRuntimeVersionsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeRuntimeVersionsResponse
-> f DescribeRuntimeVersionsResponse
describeRuntimeVersionsResponse_nextToken = (DescribeRuntimeVersionsResponse -> Maybe Text)
-> (DescribeRuntimeVersionsResponse
    -> Maybe Text -> DescribeRuntimeVersionsResponse)
-> Lens
     DescribeRuntimeVersionsResponse
     DescribeRuntimeVersionsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRuntimeVersionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeRuntimeVersionsResponse' :: DescribeRuntimeVersionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeRuntimeVersionsResponse
s@DescribeRuntimeVersionsResponse' {} Maybe Text
a -> DescribeRuntimeVersionsResponse
s {$sel:nextToken:DescribeRuntimeVersionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeRuntimeVersionsResponse)

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

instance
  Prelude.NFData
    DescribeRuntimeVersionsResponse