{-# 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.M2.ListApplications
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Lists the applications associated with a specific Amazon Web Services
-- account. You can provide the unique identifier of a specific runtime
-- environment in a query parameter to see all applications associated with
-- that environment.
--
-- This operation returns paginated results.
module Amazonka.M2.ListApplications
  ( -- * Creating a Request
    ListApplications (..),
    newListApplications,

    -- * Request Lenses
    listApplications_environmentId,
    listApplications_maxResults,
    listApplications_names,
    listApplications_nextToken,

    -- * Destructuring the Response
    ListApplicationsResponse (..),
    newListApplicationsResponse,

    -- * Response Lenses
    listApplicationsResponse_nextToken,
    listApplicationsResponse_httpStatus,
    listApplicationsResponse_applications,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.M2.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newListApplications' smart constructor.
data ListApplications = ListApplications'
  { -- | The unique identifier of the runtime environment where the applications
    -- are deployed.
    ListApplications -> Maybe Text
environmentId :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of applications to return.
    ListApplications -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The names of the applications.
    ListApplications -> Maybe (NonEmpty Text)
names :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
    -- | A pagination token to control the number of applications displayed in
    -- the list.
    ListApplications -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
  }
  deriving (ListApplications -> ListApplications -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListApplications -> ListApplications -> Bool
$c/= :: ListApplications -> ListApplications -> Bool
== :: ListApplications -> ListApplications -> Bool
$c== :: ListApplications -> ListApplications -> Bool
Prelude.Eq, ReadPrec [ListApplications]
ReadPrec ListApplications
Int -> ReadS ListApplications
ReadS [ListApplications]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListApplications]
$creadListPrec :: ReadPrec [ListApplications]
readPrec :: ReadPrec ListApplications
$creadPrec :: ReadPrec ListApplications
readList :: ReadS [ListApplications]
$creadList :: ReadS [ListApplications]
readsPrec :: Int -> ReadS ListApplications
$creadsPrec :: Int -> ReadS ListApplications
Prelude.Read, Int -> ListApplications -> ShowS
[ListApplications] -> ShowS
ListApplications -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListApplications] -> ShowS
$cshowList :: [ListApplications] -> ShowS
show :: ListApplications -> String
$cshow :: ListApplications -> String
showsPrec :: Int -> ListApplications -> ShowS
$cshowsPrec :: Int -> ListApplications -> ShowS
Prelude.Show, forall x. Rep ListApplications x -> ListApplications
forall x. ListApplications -> Rep ListApplications x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListApplications x -> ListApplications
$cfrom :: forall x. ListApplications -> Rep ListApplications x
Prelude.Generic)

-- |
-- Create a value of 'ListApplications' 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:
--
-- 'environmentId', 'listApplications_environmentId' - The unique identifier of the runtime environment where the applications
-- are deployed.
--
-- 'maxResults', 'listApplications_maxResults' - The maximum number of applications to return.
--
-- 'names', 'listApplications_names' - The names of the applications.
--
-- 'nextToken', 'listApplications_nextToken' - A pagination token to control the number of applications displayed in
-- the list.
newListApplications ::
  ListApplications
newListApplications :: ListApplications
newListApplications =
  ListApplications'
    { $sel:environmentId:ListApplications' :: Maybe Text
environmentId = forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListApplications' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:names:ListApplications' :: Maybe (NonEmpty Text)
names = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListApplications' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing
    }

-- | The unique identifier of the runtime environment where the applications
-- are deployed.
listApplications_environmentId :: Lens.Lens' ListApplications (Prelude.Maybe Prelude.Text)
listApplications_environmentId :: Lens' ListApplications (Maybe Text)
listApplications_environmentId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListApplications' {Maybe Text
environmentId :: Maybe Text
$sel:environmentId:ListApplications' :: ListApplications -> Maybe Text
environmentId} -> Maybe Text
environmentId) (\s :: ListApplications
s@ListApplications' {} Maybe Text
a -> ListApplications
s {$sel:environmentId:ListApplications' :: Maybe Text
environmentId = Maybe Text
a} :: ListApplications)

-- | The maximum number of applications to return.
listApplications_maxResults :: Lens.Lens' ListApplications (Prelude.Maybe Prelude.Natural)
listApplications_maxResults :: Lens' ListApplications (Maybe Natural)
listApplications_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListApplications' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListApplications' :: ListApplications -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListApplications
s@ListApplications' {} Maybe Natural
a -> ListApplications
s {$sel:maxResults:ListApplications' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListApplications)

-- | The names of the applications.
listApplications_names :: Lens.Lens' ListApplications (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
listApplications_names :: Lens' ListApplications (Maybe (NonEmpty Text))
listApplications_names = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListApplications' {Maybe (NonEmpty Text)
names :: Maybe (NonEmpty Text)
$sel:names:ListApplications' :: ListApplications -> Maybe (NonEmpty Text)
names} -> Maybe (NonEmpty Text)
names) (\s :: ListApplications
s@ListApplications' {} Maybe (NonEmpty Text)
a -> ListApplications
s {$sel:names:ListApplications' :: Maybe (NonEmpty Text)
names = Maybe (NonEmpty Text)
a} :: ListApplications) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A pagination token to control the number of applications displayed in
-- the list.
listApplications_nextToken :: Lens.Lens' ListApplications (Prelude.Maybe Prelude.Text)
listApplications_nextToken :: Lens' ListApplications (Maybe Text)
listApplications_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListApplications' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListApplications' :: ListApplications -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListApplications
s@ListApplications' {} Maybe Text
a -> ListApplications
s {$sel:nextToken:ListApplications' :: Maybe Text
nextToken = Maybe Text
a} :: ListApplications)

instance Core.AWSPager ListApplications where
  page :: ListApplications
-> AWSResponse ListApplications -> Maybe ListApplications
page ListApplications
rq AWSResponse ListApplications
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListApplications
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListApplicationsResponse (Maybe Text)
listApplicationsResponse_nextToken
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        (AWSResponse ListApplications
rs forall s a. s -> Getting a s a -> a
Lens.^. Lens' ListApplicationsResponse [ApplicationSummary]
listApplicationsResponse_applications) =
        forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ ListApplications
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListApplications (Maybe Text)
listApplications_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListApplications
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListApplicationsResponse (Maybe Text)
listApplicationsResponse_nextToken
          forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance Core.AWSRequest ListApplications where
  type
    AWSResponse ListApplications =
      ListApplicationsResponse
  request :: (Service -> Service)
-> ListApplications -> Request ListApplications
request Service -> Service
overrides =
    forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListApplications
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListApplications)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text
-> Int -> [ApplicationSummary] -> ListApplicationsResponse
ListApplicationsResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"nextToken")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"applications" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
      )

instance Prelude.Hashable ListApplications where
  hashWithSalt :: Int -> ListApplications -> Int
hashWithSalt Int
_salt ListApplications' {Maybe Natural
Maybe (NonEmpty Text)
Maybe Text
nextToken :: Maybe Text
names :: Maybe (NonEmpty Text)
maxResults :: Maybe Natural
environmentId :: Maybe Text
$sel:nextToken:ListApplications' :: ListApplications -> Maybe Text
$sel:names:ListApplications' :: ListApplications -> Maybe (NonEmpty Text)
$sel:maxResults:ListApplications' :: ListApplications -> Maybe Natural
$sel:environmentId:ListApplications' :: ListApplications -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
environmentId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty Text)
names
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken

instance Prelude.NFData ListApplications where
  rnf :: ListApplications -> ()
rnf ListApplications' {Maybe Natural
Maybe (NonEmpty Text)
Maybe Text
nextToken :: Maybe Text
names :: Maybe (NonEmpty Text)
maxResults :: Maybe Natural
environmentId :: Maybe Text
$sel:nextToken:ListApplications' :: ListApplications -> Maybe Text
$sel:names:ListApplications' :: ListApplications -> Maybe (NonEmpty Text)
$sel:maxResults:ListApplications' :: ListApplications -> Maybe Natural
$sel:environmentId:ListApplications' :: ListApplications -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
environmentId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty Text)
names
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken

instance Data.ToHeaders ListApplications where
  toHeaders :: ListApplications -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Data.ToPath ListApplications where
  toPath :: ListApplications -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/applications"

instance Data.ToQuery ListApplications where
  toQuery :: ListApplications -> QueryString
toQuery ListApplications' {Maybe Natural
Maybe (NonEmpty Text)
Maybe Text
nextToken :: Maybe Text
names :: Maybe (NonEmpty Text)
maxResults :: Maybe Natural
environmentId :: Maybe Text
$sel:nextToken:ListApplications' :: ListApplications -> Maybe Text
$sel:names:ListApplications' :: ListApplications -> Maybe (NonEmpty Text)
$sel:maxResults:ListApplications' :: ListApplications -> Maybe Natural
$sel:environmentId:ListApplications' :: ListApplications -> Maybe Text
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"environmentId" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
environmentId,
        ByteString
"maxResults" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Natural
maxResults,
        ByteString
"names"
          forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: forall a. ToQuery a => a -> QueryString
Data.toQuery
            (forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"member" forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Text)
names),
        ByteString
"nextToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken
      ]

-- | /See:/ 'newListApplicationsResponse' smart constructor.
data ListApplicationsResponse = ListApplicationsResponse'
  { -- | A pagination token that\'s returned when the response doesn\'t contain
    -- all applications.
    ListApplicationsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListApplicationsResponse -> Int
httpStatus :: Prelude.Int,
    -- | Returns a list of summary details for all the applications in a runtime
    -- environment.
    ListApplicationsResponse -> [ApplicationSummary]
applications :: [ApplicationSummary]
  }
  deriving (ListApplicationsResponse -> ListApplicationsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListApplicationsResponse -> ListApplicationsResponse -> Bool
$c/= :: ListApplicationsResponse -> ListApplicationsResponse -> Bool
== :: ListApplicationsResponse -> ListApplicationsResponse -> Bool
$c== :: ListApplicationsResponse -> ListApplicationsResponse -> Bool
Prelude.Eq, ReadPrec [ListApplicationsResponse]
ReadPrec ListApplicationsResponse
Int -> ReadS ListApplicationsResponse
ReadS [ListApplicationsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListApplicationsResponse]
$creadListPrec :: ReadPrec [ListApplicationsResponse]
readPrec :: ReadPrec ListApplicationsResponse
$creadPrec :: ReadPrec ListApplicationsResponse
readList :: ReadS [ListApplicationsResponse]
$creadList :: ReadS [ListApplicationsResponse]
readsPrec :: Int -> ReadS ListApplicationsResponse
$creadsPrec :: Int -> ReadS ListApplicationsResponse
Prelude.Read, Int -> ListApplicationsResponse -> ShowS
[ListApplicationsResponse] -> ShowS
ListApplicationsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListApplicationsResponse] -> ShowS
$cshowList :: [ListApplicationsResponse] -> ShowS
show :: ListApplicationsResponse -> String
$cshow :: ListApplicationsResponse -> String
showsPrec :: Int -> ListApplicationsResponse -> ShowS
$cshowsPrec :: Int -> ListApplicationsResponse -> ShowS
Prelude.Show, forall x.
Rep ListApplicationsResponse x -> ListApplicationsResponse
forall x.
ListApplicationsResponse -> Rep ListApplicationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListApplicationsResponse x -> ListApplicationsResponse
$cfrom :: forall x.
ListApplicationsResponse -> Rep ListApplicationsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListApplicationsResponse' 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', 'listApplicationsResponse_nextToken' - A pagination token that\'s returned when the response doesn\'t contain
-- all applications.
--
-- 'httpStatus', 'listApplicationsResponse_httpStatus' - The response's http status code.
--
-- 'applications', 'listApplicationsResponse_applications' - Returns a list of summary details for all the applications in a runtime
-- environment.
newListApplicationsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListApplicationsResponse
newListApplicationsResponse :: Int -> ListApplicationsResponse
newListApplicationsResponse Int
pHttpStatus_ =
  ListApplicationsResponse'
    { $sel:nextToken:ListApplicationsResponse' :: Maybe Text
nextToken =
        forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListApplicationsResponse' :: Int
httpStatus = Int
pHttpStatus_,
      $sel:applications:ListApplicationsResponse' :: [ApplicationSummary]
applications = forall a. Monoid a => a
Prelude.mempty
    }

-- | A pagination token that\'s returned when the response doesn\'t contain
-- all applications.
listApplicationsResponse_nextToken :: Lens.Lens' ListApplicationsResponse (Prelude.Maybe Prelude.Text)
listApplicationsResponse_nextToken :: Lens' ListApplicationsResponse (Maybe Text)
listApplicationsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListApplicationsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListApplicationsResponse' :: ListApplicationsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListApplicationsResponse
s@ListApplicationsResponse' {} Maybe Text
a -> ListApplicationsResponse
s {$sel:nextToken:ListApplicationsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListApplicationsResponse)

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

-- | Returns a list of summary details for all the applications in a runtime
-- environment.
listApplicationsResponse_applications :: Lens.Lens' ListApplicationsResponse [ApplicationSummary]
listApplicationsResponse_applications :: Lens' ListApplicationsResponse [ApplicationSummary]
listApplicationsResponse_applications = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListApplicationsResponse' {[ApplicationSummary]
applications :: [ApplicationSummary]
$sel:applications:ListApplicationsResponse' :: ListApplicationsResponse -> [ApplicationSummary]
applications} -> [ApplicationSummary]
applications) (\s :: ListApplicationsResponse
s@ListApplicationsResponse' {} [ApplicationSummary]
a -> ListApplicationsResponse
s {$sel:applications:ListApplicationsResponse' :: [ApplicationSummary]
applications = [ApplicationSummary]
a} :: ListApplicationsResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Prelude.NFData ListApplicationsResponse where
  rnf :: ListApplicationsResponse -> ()
rnf ListApplicationsResponse' {Int
[ApplicationSummary]
Maybe Text
applications :: [ApplicationSummary]
httpStatus :: Int
nextToken :: Maybe Text
$sel:applications:ListApplicationsResponse' :: ListApplicationsResponse -> [ApplicationSummary]
$sel:httpStatus:ListApplicationsResponse' :: ListApplicationsResponse -> Int
$sel:nextToken:ListApplicationsResponse' :: ListApplicationsResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf [ApplicationSummary]
applications