{-# 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.AppRunner.ListOperations
-- 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)
--
-- Return a list of operations that occurred on an App Runner service.
--
-- The resulting list of OperationSummary objects is sorted in reverse
-- chronological order. The first object on the list represents the last
-- started operation.
module Amazonka.AppRunner.ListOperations
  ( -- * Creating a Request
    ListOperations (..),
    newListOperations,

    -- * Request Lenses
    listOperations_nextToken,
    listOperations_maxResults,
    listOperations_serviceArn,

    -- * Destructuring the Response
    ListOperationsResponse (..),
    newListOperationsResponse,

    -- * Response Lenses
    listOperationsResponse_nextToken,
    listOperationsResponse_operationSummaryList,
    listOperationsResponse_httpStatus,
  )
where

import Amazonka.AppRunner.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

-- | /See:/ 'newListOperations' smart constructor.
data ListOperations = ListOperations'
  { -- | A token from a previous result page. It\'s used for a paginated request.
    -- The request retrieves the next result page. All other parameter values
    -- must be identical to the ones specified in the initial request.
    --
    -- If you don\'t specify @NextToken@, the request retrieves the first
    -- result page.
    ListOperations -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of results to include in each response (result page).
    -- It\'s used for a paginated request.
    --
    -- If you don\'t specify @MaxResults@, the request retrieves all available
    -- results in a single response.
    ListOperations -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The Amazon Resource Name (ARN) of the App Runner service that you want a
    -- list of operations for.
    ListOperations -> Text
serviceArn :: Prelude.Text
  }
  deriving (ListOperations -> ListOperations -> Bool
(ListOperations -> ListOperations -> Bool)
-> (ListOperations -> ListOperations -> Bool) -> Eq ListOperations
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListOperations -> ListOperations -> Bool
$c/= :: ListOperations -> ListOperations -> Bool
== :: ListOperations -> ListOperations -> Bool
$c== :: ListOperations -> ListOperations -> Bool
Prelude.Eq, ReadPrec [ListOperations]
ReadPrec ListOperations
Int -> ReadS ListOperations
ReadS [ListOperations]
(Int -> ReadS ListOperations)
-> ReadS [ListOperations]
-> ReadPrec ListOperations
-> ReadPrec [ListOperations]
-> Read ListOperations
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListOperations]
$creadListPrec :: ReadPrec [ListOperations]
readPrec :: ReadPrec ListOperations
$creadPrec :: ReadPrec ListOperations
readList :: ReadS [ListOperations]
$creadList :: ReadS [ListOperations]
readsPrec :: Int -> ReadS ListOperations
$creadsPrec :: Int -> ReadS ListOperations
Prelude.Read, Int -> ListOperations -> ShowS
[ListOperations] -> ShowS
ListOperations -> String
(Int -> ListOperations -> ShowS)
-> (ListOperations -> String)
-> ([ListOperations] -> ShowS)
-> Show ListOperations
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListOperations] -> ShowS
$cshowList :: [ListOperations] -> ShowS
show :: ListOperations -> String
$cshow :: ListOperations -> String
showsPrec :: Int -> ListOperations -> ShowS
$cshowsPrec :: Int -> ListOperations -> ShowS
Prelude.Show, (forall x. ListOperations -> Rep ListOperations x)
-> (forall x. Rep ListOperations x -> ListOperations)
-> Generic ListOperations
forall x. Rep ListOperations x -> ListOperations
forall x. ListOperations -> Rep ListOperations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListOperations x -> ListOperations
$cfrom :: forall x. ListOperations -> Rep ListOperations x
Prelude.Generic)

-- |
-- Create a value of 'ListOperations' 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', 'listOperations_nextToken' - A token from a previous result page. It\'s used for a paginated request.
-- The request retrieves the next result page. All other parameter values
-- must be identical to the ones specified in the initial request.
--
-- If you don\'t specify @NextToken@, the request retrieves the first
-- result page.
--
-- 'maxResults', 'listOperations_maxResults' - The maximum number of results to include in each response (result page).
-- It\'s used for a paginated request.
--
-- If you don\'t specify @MaxResults@, the request retrieves all available
-- results in a single response.
--
-- 'serviceArn', 'listOperations_serviceArn' - The Amazon Resource Name (ARN) of the App Runner service that you want a
-- list of operations for.
newListOperations ::
  -- | 'serviceArn'
  Prelude.Text ->
  ListOperations
newListOperations :: Text -> ListOperations
newListOperations Text
pServiceArn_ =
  ListOperations' :: Maybe Text -> Maybe Natural -> Text -> ListOperations
ListOperations'
    { $sel:nextToken:ListOperations' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListOperations' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:serviceArn:ListOperations' :: Text
serviceArn = Text
pServiceArn_
    }

-- | A token from a previous result page. It\'s used for a paginated request.
-- The request retrieves the next result page. All other parameter values
-- must be identical to the ones specified in the initial request.
--
-- If you don\'t specify @NextToken@, the request retrieves the first
-- result page.
listOperations_nextToken :: Lens.Lens' ListOperations (Prelude.Maybe Prelude.Text)
listOperations_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListOperations -> f ListOperations
listOperations_nextToken = (ListOperations -> Maybe Text)
-> (ListOperations -> Maybe Text -> ListOperations)
-> Lens ListOperations ListOperations (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOperations' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListOperations' :: ListOperations -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListOperations
s@ListOperations' {} Maybe Text
a -> ListOperations
s {$sel:nextToken:ListOperations' :: Maybe Text
nextToken = Maybe Text
a} :: ListOperations)

-- | The maximum number of results to include in each response (result page).
-- It\'s used for a paginated request.
--
-- If you don\'t specify @MaxResults@, the request retrieves all available
-- results in a single response.
listOperations_maxResults :: Lens.Lens' ListOperations (Prelude.Maybe Prelude.Natural)
listOperations_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListOperations -> f ListOperations
listOperations_maxResults = (ListOperations -> Maybe Natural)
-> (ListOperations -> Maybe Natural -> ListOperations)
-> Lens
     ListOperations ListOperations (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOperations' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListOperations' :: ListOperations -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListOperations
s@ListOperations' {} Maybe Natural
a -> ListOperations
s {$sel:maxResults:ListOperations' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListOperations)

-- | The Amazon Resource Name (ARN) of the App Runner service that you want a
-- list of operations for.
listOperations_serviceArn :: Lens.Lens' ListOperations Prelude.Text
listOperations_serviceArn :: (Text -> f Text) -> ListOperations -> f ListOperations
listOperations_serviceArn = (ListOperations -> Text)
-> (ListOperations -> Text -> ListOperations)
-> Lens ListOperations ListOperations Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOperations' {Text
serviceArn :: Text
$sel:serviceArn:ListOperations' :: ListOperations -> Text
serviceArn} -> Text
serviceArn) (\s :: ListOperations
s@ListOperations' {} Text
a -> ListOperations
s {$sel:serviceArn:ListOperations' :: Text
serviceArn = Text
a} :: ListOperations)

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

instance Prelude.NFData ListOperations

instance Core.ToHeaders ListOperations where
  toHeaders :: ListOperations -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListOperations -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# (ByteString
"AppRunner.ListOperations" :: Prelude.ByteString),
            HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.0" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToJSON ListOperations where
  toJSON :: ListOperations -> Value
toJSON ListOperations' {Maybe Natural
Maybe Text
Text
serviceArn :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:serviceArn:ListOperations' :: ListOperations -> Text
$sel:maxResults:ListOperations' :: ListOperations -> Maybe Natural
$sel:nextToken:ListOperations' :: ListOperations -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"NextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
            (Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ServiceArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
serviceArn)
          ]
      )

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

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

-- | /See:/ 'newListOperationsResponse' smart constructor.
data ListOperationsResponse = ListOperationsResponse'
  { -- | The token that you can pass in a subsequent request to get the next
    -- result page. It\'s returned in a paginated request.
    ListOperationsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | A list of operation summary information records. In a paginated request,
    -- the request returns up to @MaxResults@ records for each call.
    ListOperationsResponse -> Maybe [OperationSummary]
operationSummaryList :: Prelude.Maybe [OperationSummary],
    -- | The response's http status code.
    ListOperationsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListOperationsResponse -> ListOperationsResponse -> Bool
(ListOperationsResponse -> ListOperationsResponse -> Bool)
-> (ListOperationsResponse -> ListOperationsResponse -> Bool)
-> Eq ListOperationsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListOperationsResponse -> ListOperationsResponse -> Bool
$c/= :: ListOperationsResponse -> ListOperationsResponse -> Bool
== :: ListOperationsResponse -> ListOperationsResponse -> Bool
$c== :: ListOperationsResponse -> ListOperationsResponse -> Bool
Prelude.Eq, ReadPrec [ListOperationsResponse]
ReadPrec ListOperationsResponse
Int -> ReadS ListOperationsResponse
ReadS [ListOperationsResponse]
(Int -> ReadS ListOperationsResponse)
-> ReadS [ListOperationsResponse]
-> ReadPrec ListOperationsResponse
-> ReadPrec [ListOperationsResponse]
-> Read ListOperationsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListOperationsResponse]
$creadListPrec :: ReadPrec [ListOperationsResponse]
readPrec :: ReadPrec ListOperationsResponse
$creadPrec :: ReadPrec ListOperationsResponse
readList :: ReadS [ListOperationsResponse]
$creadList :: ReadS [ListOperationsResponse]
readsPrec :: Int -> ReadS ListOperationsResponse
$creadsPrec :: Int -> ReadS ListOperationsResponse
Prelude.Read, Int -> ListOperationsResponse -> ShowS
[ListOperationsResponse] -> ShowS
ListOperationsResponse -> String
(Int -> ListOperationsResponse -> ShowS)
-> (ListOperationsResponse -> String)
-> ([ListOperationsResponse] -> ShowS)
-> Show ListOperationsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListOperationsResponse] -> ShowS
$cshowList :: [ListOperationsResponse] -> ShowS
show :: ListOperationsResponse -> String
$cshow :: ListOperationsResponse -> String
showsPrec :: Int -> ListOperationsResponse -> ShowS
$cshowsPrec :: Int -> ListOperationsResponse -> ShowS
Prelude.Show, (forall x. ListOperationsResponse -> Rep ListOperationsResponse x)
-> (forall x.
    Rep ListOperationsResponse x -> ListOperationsResponse)
-> Generic ListOperationsResponse
forall x. Rep ListOperationsResponse x -> ListOperationsResponse
forall x. ListOperationsResponse -> Rep ListOperationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListOperationsResponse x -> ListOperationsResponse
$cfrom :: forall x. ListOperationsResponse -> Rep ListOperationsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListOperationsResponse' 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', 'listOperationsResponse_nextToken' - The token that you can pass in a subsequent request to get the next
-- result page. It\'s returned in a paginated request.
--
-- 'operationSummaryList', 'listOperationsResponse_operationSummaryList' - A list of operation summary information records. In a paginated request,
-- the request returns up to @MaxResults@ records for each call.
--
-- 'httpStatus', 'listOperationsResponse_httpStatus' - The response's http status code.
newListOperationsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListOperationsResponse
newListOperationsResponse :: Int -> ListOperationsResponse
newListOperationsResponse Int
pHttpStatus_ =
  ListOperationsResponse' :: Maybe Text
-> Maybe [OperationSummary] -> Int -> ListOperationsResponse
ListOperationsResponse'
    { $sel:nextToken:ListOperationsResponse' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:operationSummaryList:ListOperationsResponse' :: Maybe [OperationSummary]
operationSummaryList = Maybe [OperationSummary]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListOperationsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The token that you can pass in a subsequent request to get the next
-- result page. It\'s returned in a paginated request.
listOperationsResponse_nextToken :: Lens.Lens' ListOperationsResponse (Prelude.Maybe Prelude.Text)
listOperationsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListOperationsResponse -> f ListOperationsResponse
listOperationsResponse_nextToken = (ListOperationsResponse -> Maybe Text)
-> (ListOperationsResponse -> Maybe Text -> ListOperationsResponse)
-> Lens
     ListOperationsResponse
     ListOperationsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOperationsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListOperationsResponse' :: ListOperationsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListOperationsResponse
s@ListOperationsResponse' {} Maybe Text
a -> ListOperationsResponse
s {$sel:nextToken:ListOperationsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListOperationsResponse)

-- | A list of operation summary information records. In a paginated request,
-- the request returns up to @MaxResults@ records for each call.
listOperationsResponse_operationSummaryList :: Lens.Lens' ListOperationsResponse (Prelude.Maybe [OperationSummary])
listOperationsResponse_operationSummaryList :: (Maybe [OperationSummary] -> f (Maybe [OperationSummary]))
-> ListOperationsResponse -> f ListOperationsResponse
listOperationsResponse_operationSummaryList = (ListOperationsResponse -> Maybe [OperationSummary])
-> (ListOperationsResponse
    -> Maybe [OperationSummary] -> ListOperationsResponse)
-> Lens
     ListOperationsResponse
     ListOperationsResponse
     (Maybe [OperationSummary])
     (Maybe [OperationSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOperationsResponse' {Maybe [OperationSummary]
operationSummaryList :: Maybe [OperationSummary]
$sel:operationSummaryList:ListOperationsResponse' :: ListOperationsResponse -> Maybe [OperationSummary]
operationSummaryList} -> Maybe [OperationSummary]
operationSummaryList) (\s :: ListOperationsResponse
s@ListOperationsResponse' {} Maybe [OperationSummary]
a -> ListOperationsResponse
s {$sel:operationSummaryList:ListOperationsResponse' :: Maybe [OperationSummary]
operationSummaryList = Maybe [OperationSummary]
a} :: ListOperationsResponse) ((Maybe [OperationSummary] -> f (Maybe [OperationSummary]))
 -> ListOperationsResponse -> f ListOperationsResponse)
-> ((Maybe [OperationSummary] -> f (Maybe [OperationSummary]))
    -> Maybe [OperationSummary] -> f (Maybe [OperationSummary]))
-> (Maybe [OperationSummary] -> f (Maybe [OperationSummary]))
-> ListOperationsResponse
-> f ListOperationsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [OperationSummary]
  [OperationSummary]
  [OperationSummary]
  [OperationSummary]
-> Iso
     (Maybe [OperationSummary])
     (Maybe [OperationSummary])
     (Maybe [OperationSummary])
     (Maybe [OperationSummary])
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
  [OperationSummary]
  [OperationSummary]
  [OperationSummary]
  [OperationSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData ListOperationsResponse