{-# 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.SageMaker.ListAppImageConfigs
-- 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)
--
-- Lists the AppImageConfigs in your account and their properties. The list
-- can be filtered by creation time or modified time, and whether the
-- AppImageConfig name contains a specified string.
--
-- This operation returns paginated results.
module Amazonka.SageMaker.ListAppImageConfigs
  ( -- * Creating a Request
    ListAppImageConfigs (..),
    newListAppImageConfigs,

    -- * Request Lenses
    listAppImageConfigs_nameContains,
    listAppImageConfigs_creationTimeAfter,
    listAppImageConfigs_modifiedTimeAfter,
    listAppImageConfigs_nextToken,
    listAppImageConfigs_sortOrder,
    listAppImageConfigs_creationTimeBefore,
    listAppImageConfigs_modifiedTimeBefore,
    listAppImageConfigs_maxResults,
    listAppImageConfigs_sortBy,

    -- * Destructuring the Response
    ListAppImageConfigsResponse (..),
    newListAppImageConfigsResponse,

    -- * Response Lenses
    listAppImageConfigsResponse_appImageConfigs,
    listAppImageConfigsResponse_nextToken,
    listAppImageConfigsResponse_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.SageMaker.Types

-- | /See:/ 'newListAppImageConfigs' smart constructor.
data ListAppImageConfigs = ListAppImageConfigs'
  { -- | A filter that returns only AppImageConfigs whose name contains the
    -- specified string.
    ListAppImageConfigs -> Maybe Text
nameContains :: Prelude.Maybe Prelude.Text,
    -- | A filter that returns only AppImageConfigs created on or after the
    -- specified time.
    ListAppImageConfigs -> Maybe POSIX
creationTimeAfter :: Prelude.Maybe Core.POSIX,
    -- | A filter that returns only AppImageConfigs modified on or after the
    -- specified time.
    ListAppImageConfigs -> Maybe POSIX
modifiedTimeAfter :: Prelude.Maybe Core.POSIX,
    -- | If the previous call to @ListImages@ didn\'t return the full set of
    -- AppImageConfigs, the call returns a token for getting the next set of
    -- AppImageConfigs.
    ListAppImageConfigs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The sort order. The default value is @Descending@.
    ListAppImageConfigs -> Maybe SortOrder
sortOrder :: Prelude.Maybe SortOrder,
    -- | A filter that returns only AppImageConfigs created on or before the
    -- specified time.
    ListAppImageConfigs -> Maybe POSIX
creationTimeBefore :: Prelude.Maybe Core.POSIX,
    -- | A filter that returns only AppImageConfigs modified on or before the
    -- specified time.
    ListAppImageConfigs -> Maybe POSIX
modifiedTimeBefore :: Prelude.Maybe Core.POSIX,
    -- | The maximum number of AppImageConfigs to return in the response. The
    -- default value is 10.
    ListAppImageConfigs -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The property used to sort results. The default value is @CreationTime@.
    ListAppImageConfigs -> Maybe AppImageConfigSortKey
sortBy :: Prelude.Maybe AppImageConfigSortKey
  }
  deriving (ListAppImageConfigs -> ListAppImageConfigs -> Bool
(ListAppImageConfigs -> ListAppImageConfigs -> Bool)
-> (ListAppImageConfigs -> ListAppImageConfigs -> Bool)
-> Eq ListAppImageConfigs
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAppImageConfigs -> ListAppImageConfigs -> Bool
$c/= :: ListAppImageConfigs -> ListAppImageConfigs -> Bool
== :: ListAppImageConfigs -> ListAppImageConfigs -> Bool
$c== :: ListAppImageConfigs -> ListAppImageConfigs -> Bool
Prelude.Eq, ReadPrec [ListAppImageConfigs]
ReadPrec ListAppImageConfigs
Int -> ReadS ListAppImageConfigs
ReadS [ListAppImageConfigs]
(Int -> ReadS ListAppImageConfigs)
-> ReadS [ListAppImageConfigs]
-> ReadPrec ListAppImageConfigs
-> ReadPrec [ListAppImageConfigs]
-> Read ListAppImageConfigs
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAppImageConfigs]
$creadListPrec :: ReadPrec [ListAppImageConfigs]
readPrec :: ReadPrec ListAppImageConfigs
$creadPrec :: ReadPrec ListAppImageConfigs
readList :: ReadS [ListAppImageConfigs]
$creadList :: ReadS [ListAppImageConfigs]
readsPrec :: Int -> ReadS ListAppImageConfigs
$creadsPrec :: Int -> ReadS ListAppImageConfigs
Prelude.Read, Int -> ListAppImageConfigs -> ShowS
[ListAppImageConfigs] -> ShowS
ListAppImageConfigs -> String
(Int -> ListAppImageConfigs -> ShowS)
-> (ListAppImageConfigs -> String)
-> ([ListAppImageConfigs] -> ShowS)
-> Show ListAppImageConfigs
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAppImageConfigs] -> ShowS
$cshowList :: [ListAppImageConfigs] -> ShowS
show :: ListAppImageConfigs -> String
$cshow :: ListAppImageConfigs -> String
showsPrec :: Int -> ListAppImageConfigs -> ShowS
$cshowsPrec :: Int -> ListAppImageConfigs -> ShowS
Prelude.Show, (forall x. ListAppImageConfigs -> Rep ListAppImageConfigs x)
-> (forall x. Rep ListAppImageConfigs x -> ListAppImageConfigs)
-> Generic ListAppImageConfigs
forall x. Rep ListAppImageConfigs x -> ListAppImageConfigs
forall x. ListAppImageConfigs -> Rep ListAppImageConfigs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListAppImageConfigs x -> ListAppImageConfigs
$cfrom :: forall x. ListAppImageConfigs -> Rep ListAppImageConfigs x
Prelude.Generic)

-- |
-- Create a value of 'ListAppImageConfigs' 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:
--
-- 'nameContains', 'listAppImageConfigs_nameContains' - A filter that returns only AppImageConfigs whose name contains the
-- specified string.
--
-- 'creationTimeAfter', 'listAppImageConfigs_creationTimeAfter' - A filter that returns only AppImageConfigs created on or after the
-- specified time.
--
-- 'modifiedTimeAfter', 'listAppImageConfigs_modifiedTimeAfter' - A filter that returns only AppImageConfigs modified on or after the
-- specified time.
--
-- 'nextToken', 'listAppImageConfigs_nextToken' - If the previous call to @ListImages@ didn\'t return the full set of
-- AppImageConfigs, the call returns a token for getting the next set of
-- AppImageConfigs.
--
-- 'sortOrder', 'listAppImageConfigs_sortOrder' - The sort order. The default value is @Descending@.
--
-- 'creationTimeBefore', 'listAppImageConfigs_creationTimeBefore' - A filter that returns only AppImageConfigs created on or before the
-- specified time.
--
-- 'modifiedTimeBefore', 'listAppImageConfigs_modifiedTimeBefore' - A filter that returns only AppImageConfigs modified on or before the
-- specified time.
--
-- 'maxResults', 'listAppImageConfigs_maxResults' - The maximum number of AppImageConfigs to return in the response. The
-- default value is 10.
--
-- 'sortBy', 'listAppImageConfigs_sortBy' - The property used to sort results. The default value is @CreationTime@.
newListAppImageConfigs ::
  ListAppImageConfigs
newListAppImageConfigs :: ListAppImageConfigs
newListAppImageConfigs =
  ListAppImageConfigs' :: Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe SortOrder
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Natural
-> Maybe AppImageConfigSortKey
-> ListAppImageConfigs
ListAppImageConfigs'
    { $sel:nameContains:ListAppImageConfigs' :: Maybe Text
nameContains =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:creationTimeAfter:ListAppImageConfigs' :: Maybe POSIX
creationTimeAfter = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:modifiedTimeAfter:ListAppImageConfigs' :: Maybe POSIX
modifiedTimeAfter = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListAppImageConfigs' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:sortOrder:ListAppImageConfigs' :: Maybe SortOrder
sortOrder = Maybe SortOrder
forall a. Maybe a
Prelude.Nothing,
      $sel:creationTimeBefore:ListAppImageConfigs' :: Maybe POSIX
creationTimeBefore = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:modifiedTimeBefore:ListAppImageConfigs' :: Maybe POSIX
modifiedTimeBefore = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListAppImageConfigs' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:sortBy:ListAppImageConfigs' :: Maybe AppImageConfigSortKey
sortBy = Maybe AppImageConfigSortKey
forall a. Maybe a
Prelude.Nothing
    }

-- | A filter that returns only AppImageConfigs whose name contains the
-- specified string.
listAppImageConfigs_nameContains :: Lens.Lens' ListAppImageConfigs (Prelude.Maybe Prelude.Text)
listAppImageConfigs_nameContains :: (Maybe Text -> f (Maybe Text))
-> ListAppImageConfigs -> f ListAppImageConfigs
listAppImageConfigs_nameContains = (ListAppImageConfigs -> Maybe Text)
-> (ListAppImageConfigs -> Maybe Text -> ListAppImageConfigs)
-> Lens
     ListAppImageConfigs ListAppImageConfigs (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAppImageConfigs' {Maybe Text
nameContains :: Maybe Text
$sel:nameContains:ListAppImageConfigs' :: ListAppImageConfigs -> Maybe Text
nameContains} -> Maybe Text
nameContains) (\s :: ListAppImageConfigs
s@ListAppImageConfigs' {} Maybe Text
a -> ListAppImageConfigs
s {$sel:nameContains:ListAppImageConfigs' :: Maybe Text
nameContains = Maybe Text
a} :: ListAppImageConfigs)

-- | A filter that returns only AppImageConfigs created on or after the
-- specified time.
listAppImageConfigs_creationTimeAfter :: Lens.Lens' ListAppImageConfigs (Prelude.Maybe Prelude.UTCTime)
listAppImageConfigs_creationTimeAfter :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListAppImageConfigs -> f ListAppImageConfigs
listAppImageConfigs_creationTimeAfter = (ListAppImageConfigs -> Maybe POSIX)
-> (ListAppImageConfigs -> Maybe POSIX -> ListAppImageConfigs)
-> Lens
     ListAppImageConfigs ListAppImageConfigs (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAppImageConfigs' {Maybe POSIX
creationTimeAfter :: Maybe POSIX
$sel:creationTimeAfter:ListAppImageConfigs' :: ListAppImageConfigs -> Maybe POSIX
creationTimeAfter} -> Maybe POSIX
creationTimeAfter) (\s :: ListAppImageConfigs
s@ListAppImageConfigs' {} Maybe POSIX
a -> ListAppImageConfigs
s {$sel:creationTimeAfter:ListAppImageConfigs' :: Maybe POSIX
creationTimeAfter = Maybe POSIX
a} :: ListAppImageConfigs) ((Maybe POSIX -> f (Maybe POSIX))
 -> ListAppImageConfigs -> f ListAppImageConfigs)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListAppImageConfigs
-> f ListAppImageConfigs
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | A filter that returns only AppImageConfigs modified on or after the
-- specified time.
listAppImageConfigs_modifiedTimeAfter :: Lens.Lens' ListAppImageConfigs (Prelude.Maybe Prelude.UTCTime)
listAppImageConfigs_modifiedTimeAfter :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListAppImageConfigs -> f ListAppImageConfigs
listAppImageConfigs_modifiedTimeAfter = (ListAppImageConfigs -> Maybe POSIX)
-> (ListAppImageConfigs -> Maybe POSIX -> ListAppImageConfigs)
-> Lens
     ListAppImageConfigs ListAppImageConfigs (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAppImageConfigs' {Maybe POSIX
modifiedTimeAfter :: Maybe POSIX
$sel:modifiedTimeAfter:ListAppImageConfigs' :: ListAppImageConfigs -> Maybe POSIX
modifiedTimeAfter} -> Maybe POSIX
modifiedTimeAfter) (\s :: ListAppImageConfigs
s@ListAppImageConfigs' {} Maybe POSIX
a -> ListAppImageConfigs
s {$sel:modifiedTimeAfter:ListAppImageConfigs' :: Maybe POSIX
modifiedTimeAfter = Maybe POSIX
a} :: ListAppImageConfigs) ((Maybe POSIX -> f (Maybe POSIX))
 -> ListAppImageConfigs -> f ListAppImageConfigs)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListAppImageConfigs
-> f ListAppImageConfigs
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | If the previous call to @ListImages@ didn\'t return the full set of
-- AppImageConfigs, the call returns a token for getting the next set of
-- AppImageConfigs.
listAppImageConfigs_nextToken :: Lens.Lens' ListAppImageConfigs (Prelude.Maybe Prelude.Text)
listAppImageConfigs_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListAppImageConfigs -> f ListAppImageConfigs
listAppImageConfigs_nextToken = (ListAppImageConfigs -> Maybe Text)
-> (ListAppImageConfigs -> Maybe Text -> ListAppImageConfigs)
-> Lens
     ListAppImageConfigs ListAppImageConfigs (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAppImageConfigs' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAppImageConfigs' :: ListAppImageConfigs -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAppImageConfigs
s@ListAppImageConfigs' {} Maybe Text
a -> ListAppImageConfigs
s {$sel:nextToken:ListAppImageConfigs' :: Maybe Text
nextToken = Maybe Text
a} :: ListAppImageConfigs)

-- | The sort order. The default value is @Descending@.
listAppImageConfigs_sortOrder :: Lens.Lens' ListAppImageConfigs (Prelude.Maybe SortOrder)
listAppImageConfigs_sortOrder :: (Maybe SortOrder -> f (Maybe SortOrder))
-> ListAppImageConfigs -> f ListAppImageConfigs
listAppImageConfigs_sortOrder = (ListAppImageConfigs -> Maybe SortOrder)
-> (ListAppImageConfigs -> Maybe SortOrder -> ListAppImageConfigs)
-> Lens
     ListAppImageConfigs
     ListAppImageConfigs
     (Maybe SortOrder)
     (Maybe SortOrder)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAppImageConfigs' {Maybe SortOrder
sortOrder :: Maybe SortOrder
$sel:sortOrder:ListAppImageConfigs' :: ListAppImageConfigs -> Maybe SortOrder
sortOrder} -> Maybe SortOrder
sortOrder) (\s :: ListAppImageConfigs
s@ListAppImageConfigs' {} Maybe SortOrder
a -> ListAppImageConfigs
s {$sel:sortOrder:ListAppImageConfigs' :: Maybe SortOrder
sortOrder = Maybe SortOrder
a} :: ListAppImageConfigs)

-- | A filter that returns only AppImageConfigs created on or before the
-- specified time.
listAppImageConfigs_creationTimeBefore :: Lens.Lens' ListAppImageConfigs (Prelude.Maybe Prelude.UTCTime)
listAppImageConfigs_creationTimeBefore :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListAppImageConfigs -> f ListAppImageConfigs
listAppImageConfigs_creationTimeBefore = (ListAppImageConfigs -> Maybe POSIX)
-> (ListAppImageConfigs -> Maybe POSIX -> ListAppImageConfigs)
-> Lens
     ListAppImageConfigs ListAppImageConfigs (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAppImageConfigs' {Maybe POSIX
creationTimeBefore :: Maybe POSIX
$sel:creationTimeBefore:ListAppImageConfigs' :: ListAppImageConfigs -> Maybe POSIX
creationTimeBefore} -> Maybe POSIX
creationTimeBefore) (\s :: ListAppImageConfigs
s@ListAppImageConfigs' {} Maybe POSIX
a -> ListAppImageConfigs
s {$sel:creationTimeBefore:ListAppImageConfigs' :: Maybe POSIX
creationTimeBefore = Maybe POSIX
a} :: ListAppImageConfigs) ((Maybe POSIX -> f (Maybe POSIX))
 -> ListAppImageConfigs -> f ListAppImageConfigs)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListAppImageConfigs
-> f ListAppImageConfigs
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | A filter that returns only AppImageConfigs modified on or before the
-- specified time.
listAppImageConfigs_modifiedTimeBefore :: Lens.Lens' ListAppImageConfigs (Prelude.Maybe Prelude.UTCTime)
listAppImageConfigs_modifiedTimeBefore :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListAppImageConfigs -> f ListAppImageConfigs
listAppImageConfigs_modifiedTimeBefore = (ListAppImageConfigs -> Maybe POSIX)
-> (ListAppImageConfigs -> Maybe POSIX -> ListAppImageConfigs)
-> Lens
     ListAppImageConfigs ListAppImageConfigs (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAppImageConfigs' {Maybe POSIX
modifiedTimeBefore :: Maybe POSIX
$sel:modifiedTimeBefore:ListAppImageConfigs' :: ListAppImageConfigs -> Maybe POSIX
modifiedTimeBefore} -> Maybe POSIX
modifiedTimeBefore) (\s :: ListAppImageConfigs
s@ListAppImageConfigs' {} Maybe POSIX
a -> ListAppImageConfigs
s {$sel:modifiedTimeBefore:ListAppImageConfigs' :: Maybe POSIX
modifiedTimeBefore = Maybe POSIX
a} :: ListAppImageConfigs) ((Maybe POSIX -> f (Maybe POSIX))
 -> ListAppImageConfigs -> f ListAppImageConfigs)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListAppImageConfigs
-> f ListAppImageConfigs
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The maximum number of AppImageConfigs to return in the response. The
-- default value is 10.
listAppImageConfigs_maxResults :: Lens.Lens' ListAppImageConfigs (Prelude.Maybe Prelude.Natural)
listAppImageConfigs_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListAppImageConfigs -> f ListAppImageConfigs
listAppImageConfigs_maxResults = (ListAppImageConfigs -> Maybe Natural)
-> (ListAppImageConfigs -> Maybe Natural -> ListAppImageConfigs)
-> Lens
     ListAppImageConfigs
     ListAppImageConfigs
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAppImageConfigs' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListAppImageConfigs' :: ListAppImageConfigs -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListAppImageConfigs
s@ListAppImageConfigs' {} Maybe Natural
a -> ListAppImageConfigs
s {$sel:maxResults:ListAppImageConfigs' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListAppImageConfigs)

-- | The property used to sort results. The default value is @CreationTime@.
listAppImageConfigs_sortBy :: Lens.Lens' ListAppImageConfigs (Prelude.Maybe AppImageConfigSortKey)
listAppImageConfigs_sortBy :: (Maybe AppImageConfigSortKey -> f (Maybe AppImageConfigSortKey))
-> ListAppImageConfigs -> f ListAppImageConfigs
listAppImageConfigs_sortBy = (ListAppImageConfigs -> Maybe AppImageConfigSortKey)
-> (ListAppImageConfigs
    -> Maybe AppImageConfigSortKey -> ListAppImageConfigs)
-> Lens
     ListAppImageConfigs
     ListAppImageConfigs
     (Maybe AppImageConfigSortKey)
     (Maybe AppImageConfigSortKey)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAppImageConfigs' {Maybe AppImageConfigSortKey
sortBy :: Maybe AppImageConfigSortKey
$sel:sortBy:ListAppImageConfigs' :: ListAppImageConfigs -> Maybe AppImageConfigSortKey
sortBy} -> Maybe AppImageConfigSortKey
sortBy) (\s :: ListAppImageConfigs
s@ListAppImageConfigs' {} Maybe AppImageConfigSortKey
a -> ListAppImageConfigs
s {$sel:sortBy:ListAppImageConfigs' :: Maybe AppImageConfigSortKey
sortBy = Maybe AppImageConfigSortKey
a} :: ListAppImageConfigs)

instance Core.AWSPager ListAppImageConfigs where
  page :: ListAppImageConfigs
-> AWSResponse ListAppImageConfigs -> Maybe ListAppImageConfigs
page ListAppImageConfigs
rq AWSResponse ListAppImageConfigs
rs
    | Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListAppImageConfigs
ListAppImageConfigsResponse
rs
            ListAppImageConfigsResponse
-> Getting (First Text) ListAppImageConfigsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListAppImageConfigsResponse
-> Const (First Text) ListAppImageConfigsResponse
Lens' ListAppImageConfigsResponse (Maybe Text)
listAppImageConfigsResponse_nextToken
              ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListAppImageConfigsResponse
 -> Const (First Text) ListAppImageConfigsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListAppImageConfigsResponse 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 ListAppImageConfigs
forall a. Maybe a
Prelude.Nothing
    | Maybe [AppImageConfigDetails] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListAppImageConfigs
ListAppImageConfigsResponse
rs
            ListAppImageConfigsResponse
-> Getting
     (First [AppImageConfigDetails])
     ListAppImageConfigsResponse
     [AppImageConfigDetails]
-> Maybe [AppImageConfigDetails]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [AppImageConfigDetails]
 -> Const
      (First [AppImageConfigDetails]) (Maybe [AppImageConfigDetails]))
-> ListAppImageConfigsResponse
-> Const
     (First [AppImageConfigDetails]) ListAppImageConfigsResponse
Lens' ListAppImageConfigsResponse (Maybe [AppImageConfigDetails])
listAppImageConfigsResponse_appImageConfigs
              ((Maybe [AppImageConfigDetails]
  -> Const
       (First [AppImageConfigDetails]) (Maybe [AppImageConfigDetails]))
 -> ListAppImageConfigsResponse
 -> Const
      (First [AppImageConfigDetails]) ListAppImageConfigsResponse)
-> (([AppImageConfigDetails]
     -> Const (First [AppImageConfigDetails]) [AppImageConfigDetails])
    -> Maybe [AppImageConfigDetails]
    -> Const
         (First [AppImageConfigDetails]) (Maybe [AppImageConfigDetails]))
-> Getting
     (First [AppImageConfigDetails])
     ListAppImageConfigsResponse
     [AppImageConfigDetails]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([AppImageConfigDetails]
 -> Const (First [AppImageConfigDetails]) [AppImageConfigDetails])
-> Maybe [AppImageConfigDetails]
-> Const
     (First [AppImageConfigDetails]) (Maybe [AppImageConfigDetails])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe ListAppImageConfigs
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      ListAppImageConfigs -> Maybe ListAppImageConfigs
forall a. a -> Maybe a
Prelude.Just (ListAppImageConfigs -> Maybe ListAppImageConfigs)
-> ListAppImageConfigs -> Maybe ListAppImageConfigs
forall a b. (a -> b) -> a -> b
Prelude.$
        ListAppImageConfigs
rq
          ListAppImageConfigs
-> (ListAppImageConfigs -> ListAppImageConfigs)
-> ListAppImageConfigs
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListAppImageConfigs -> Identity ListAppImageConfigs
Lens
  ListAppImageConfigs ListAppImageConfigs (Maybe Text) (Maybe Text)
listAppImageConfigs_nextToken
          ((Maybe Text -> Identity (Maybe Text))
 -> ListAppImageConfigs -> Identity ListAppImageConfigs)
-> Maybe Text -> ListAppImageConfigs -> ListAppImageConfigs
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListAppImageConfigs
ListAppImageConfigsResponse
rs
          ListAppImageConfigsResponse
-> Getting (First Text) ListAppImageConfigsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListAppImageConfigsResponse
-> Const (First Text) ListAppImageConfigsResponse
Lens' ListAppImageConfigsResponse (Maybe Text)
listAppImageConfigsResponse_nextToken
            ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListAppImageConfigsResponse
 -> Const (First Text) ListAppImageConfigsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListAppImageConfigsResponse 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 ListAppImageConfigs where
  type
    AWSResponse ListAppImageConfigs =
      ListAppImageConfigsResponse
  request :: ListAppImageConfigs -> Request ListAppImageConfigs
request = Service -> ListAppImageConfigs -> Request ListAppImageConfigs
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ListAppImageConfigs
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListAppImageConfigs)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListAppImageConfigs))
-> Logger
-> Service
-> Proxy ListAppImageConfigs
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListAppImageConfigs)))
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 [AppImageConfigDetails]
-> Maybe Text -> Int -> ListAppImageConfigsResponse
ListAppImageConfigsResponse'
            (Maybe [AppImageConfigDetails]
 -> Maybe Text -> Int -> ListAppImageConfigsResponse)
-> Either String (Maybe [AppImageConfigDetails])
-> Either String (Maybe Text -> Int -> ListAppImageConfigsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [AppImageConfigDetails]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"AppImageConfigs"
                            Either String (Maybe (Maybe [AppImageConfigDetails]))
-> Maybe [AppImageConfigDetails]
-> Either String (Maybe [AppImageConfigDetails])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [AppImageConfigDetails]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either String (Maybe Text -> Int -> ListAppImageConfigsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListAppImageConfigsResponse)
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 -> ListAppImageConfigsResponse)
-> Either String Int -> Either String ListAppImageConfigsResponse
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 ListAppImageConfigs

instance Prelude.NFData ListAppImageConfigs

instance Core.ToHeaders ListAppImageConfigs where
  toHeaders :: ListAppImageConfigs -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListAppImageConfigs -> 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
"SageMaker.ListAppImageConfigs" ::
                          Prelude.ByteString
                      ),
            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 ListAppImageConfigs where
  toJSON :: ListAppImageConfigs -> Value
toJSON ListAppImageConfigs' {Maybe Natural
Maybe Text
Maybe POSIX
Maybe AppImageConfigSortKey
Maybe SortOrder
sortBy :: Maybe AppImageConfigSortKey
maxResults :: Maybe Natural
modifiedTimeBefore :: Maybe POSIX
creationTimeBefore :: Maybe POSIX
sortOrder :: Maybe SortOrder
nextToken :: Maybe Text
modifiedTimeAfter :: Maybe POSIX
creationTimeAfter :: Maybe POSIX
nameContains :: Maybe Text
$sel:sortBy:ListAppImageConfigs' :: ListAppImageConfigs -> Maybe AppImageConfigSortKey
$sel:maxResults:ListAppImageConfigs' :: ListAppImageConfigs -> Maybe Natural
$sel:modifiedTimeBefore:ListAppImageConfigs' :: ListAppImageConfigs -> Maybe POSIX
$sel:creationTimeBefore:ListAppImageConfigs' :: ListAppImageConfigs -> Maybe POSIX
$sel:sortOrder:ListAppImageConfigs' :: ListAppImageConfigs -> Maybe SortOrder
$sel:nextToken:ListAppImageConfigs' :: ListAppImageConfigs -> Maybe Text
$sel:modifiedTimeAfter:ListAppImageConfigs' :: ListAppImageConfigs -> Maybe POSIX
$sel:creationTimeAfter:ListAppImageConfigs' :: ListAppImageConfigs -> Maybe POSIX
$sel:nameContains:ListAppImageConfigs' :: ListAppImageConfigs -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"NameContains" 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
nameContains,
            (Text
"CreationTimeAfter" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (POSIX -> Pair) -> Maybe POSIX -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
creationTimeAfter,
            (Text
"ModifiedTimeAfter" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (POSIX -> Pair) -> Maybe POSIX -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
modifiedTimeAfter,
            (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
"SortOrder" Text -> SortOrder -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (SortOrder -> Pair) -> Maybe SortOrder -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SortOrder
sortOrder,
            (Text
"CreationTimeBefore" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (POSIX -> Pair) -> Maybe POSIX -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
creationTimeBefore,
            (Text
"ModifiedTimeBefore" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (POSIX -> Pair) -> Maybe POSIX -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
modifiedTimeBefore,
            (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,
            (Text
"SortBy" Text -> AppImageConfigSortKey -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (AppImageConfigSortKey -> Pair)
-> Maybe AppImageConfigSortKey -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AppImageConfigSortKey
sortBy
          ]
      )

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

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

-- | /See:/ 'newListAppImageConfigsResponse' smart constructor.
data ListAppImageConfigsResponse = ListAppImageConfigsResponse'
  { -- | A list of AppImageConfigs and their properties.
    ListAppImageConfigsResponse -> Maybe [AppImageConfigDetails]
appImageConfigs :: Prelude.Maybe [AppImageConfigDetails],
    -- | A token for getting the next set of AppImageConfigs, if there are any.
    ListAppImageConfigsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListAppImageConfigsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListAppImageConfigsResponse -> ListAppImageConfigsResponse -> Bool
(ListAppImageConfigsResponse
 -> ListAppImageConfigsResponse -> Bool)
-> (ListAppImageConfigsResponse
    -> ListAppImageConfigsResponse -> Bool)
-> Eq ListAppImageConfigsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAppImageConfigsResponse -> ListAppImageConfigsResponse -> Bool
$c/= :: ListAppImageConfigsResponse -> ListAppImageConfigsResponse -> Bool
== :: ListAppImageConfigsResponse -> ListAppImageConfigsResponse -> Bool
$c== :: ListAppImageConfigsResponse -> ListAppImageConfigsResponse -> Bool
Prelude.Eq, ReadPrec [ListAppImageConfigsResponse]
ReadPrec ListAppImageConfigsResponse
Int -> ReadS ListAppImageConfigsResponse
ReadS [ListAppImageConfigsResponse]
(Int -> ReadS ListAppImageConfigsResponse)
-> ReadS [ListAppImageConfigsResponse]
-> ReadPrec ListAppImageConfigsResponse
-> ReadPrec [ListAppImageConfigsResponse]
-> Read ListAppImageConfigsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAppImageConfigsResponse]
$creadListPrec :: ReadPrec [ListAppImageConfigsResponse]
readPrec :: ReadPrec ListAppImageConfigsResponse
$creadPrec :: ReadPrec ListAppImageConfigsResponse
readList :: ReadS [ListAppImageConfigsResponse]
$creadList :: ReadS [ListAppImageConfigsResponse]
readsPrec :: Int -> ReadS ListAppImageConfigsResponse
$creadsPrec :: Int -> ReadS ListAppImageConfigsResponse
Prelude.Read, Int -> ListAppImageConfigsResponse -> ShowS
[ListAppImageConfigsResponse] -> ShowS
ListAppImageConfigsResponse -> String
(Int -> ListAppImageConfigsResponse -> ShowS)
-> (ListAppImageConfigsResponse -> String)
-> ([ListAppImageConfigsResponse] -> ShowS)
-> Show ListAppImageConfigsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAppImageConfigsResponse] -> ShowS
$cshowList :: [ListAppImageConfigsResponse] -> ShowS
show :: ListAppImageConfigsResponse -> String
$cshow :: ListAppImageConfigsResponse -> String
showsPrec :: Int -> ListAppImageConfigsResponse -> ShowS
$cshowsPrec :: Int -> ListAppImageConfigsResponse -> ShowS
Prelude.Show, (forall x.
 ListAppImageConfigsResponse -> Rep ListAppImageConfigsResponse x)
-> (forall x.
    Rep ListAppImageConfigsResponse x -> ListAppImageConfigsResponse)
-> Generic ListAppImageConfigsResponse
forall x.
Rep ListAppImageConfigsResponse x -> ListAppImageConfigsResponse
forall x.
ListAppImageConfigsResponse -> Rep ListAppImageConfigsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListAppImageConfigsResponse x -> ListAppImageConfigsResponse
$cfrom :: forall x.
ListAppImageConfigsResponse -> Rep ListAppImageConfigsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListAppImageConfigsResponse' 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:
--
-- 'appImageConfigs', 'listAppImageConfigsResponse_appImageConfigs' - A list of AppImageConfigs and their properties.
--
-- 'nextToken', 'listAppImageConfigsResponse_nextToken' - A token for getting the next set of AppImageConfigs, if there are any.
--
-- 'httpStatus', 'listAppImageConfigsResponse_httpStatus' - The response's http status code.
newListAppImageConfigsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListAppImageConfigsResponse
newListAppImageConfigsResponse :: Int -> ListAppImageConfigsResponse
newListAppImageConfigsResponse Int
pHttpStatus_ =
  ListAppImageConfigsResponse' :: Maybe [AppImageConfigDetails]
-> Maybe Text -> Int -> ListAppImageConfigsResponse
ListAppImageConfigsResponse'
    { $sel:appImageConfigs:ListAppImageConfigsResponse' :: Maybe [AppImageConfigDetails]
appImageConfigs =
        Maybe [AppImageConfigDetails]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListAppImageConfigsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListAppImageConfigsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A list of AppImageConfigs and their properties.
listAppImageConfigsResponse_appImageConfigs :: Lens.Lens' ListAppImageConfigsResponse (Prelude.Maybe [AppImageConfigDetails])
listAppImageConfigsResponse_appImageConfigs :: (Maybe [AppImageConfigDetails]
 -> f (Maybe [AppImageConfigDetails]))
-> ListAppImageConfigsResponse -> f ListAppImageConfigsResponse
listAppImageConfigsResponse_appImageConfigs = (ListAppImageConfigsResponse -> Maybe [AppImageConfigDetails])
-> (ListAppImageConfigsResponse
    -> Maybe [AppImageConfigDetails] -> ListAppImageConfigsResponse)
-> Lens'
     ListAppImageConfigsResponse (Maybe [AppImageConfigDetails])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAppImageConfigsResponse' {Maybe [AppImageConfigDetails]
appImageConfigs :: Maybe [AppImageConfigDetails]
$sel:appImageConfigs:ListAppImageConfigsResponse' :: ListAppImageConfigsResponse -> Maybe [AppImageConfigDetails]
appImageConfigs} -> Maybe [AppImageConfigDetails]
appImageConfigs) (\s :: ListAppImageConfigsResponse
s@ListAppImageConfigsResponse' {} Maybe [AppImageConfigDetails]
a -> ListAppImageConfigsResponse
s {$sel:appImageConfigs:ListAppImageConfigsResponse' :: Maybe [AppImageConfigDetails]
appImageConfigs = Maybe [AppImageConfigDetails]
a} :: ListAppImageConfigsResponse) ((Maybe [AppImageConfigDetails]
  -> f (Maybe [AppImageConfigDetails]))
 -> ListAppImageConfigsResponse -> f ListAppImageConfigsResponse)
-> ((Maybe [AppImageConfigDetails]
     -> f (Maybe [AppImageConfigDetails]))
    -> Maybe [AppImageConfigDetails]
    -> f (Maybe [AppImageConfigDetails]))
-> (Maybe [AppImageConfigDetails]
    -> f (Maybe [AppImageConfigDetails]))
-> ListAppImageConfigsResponse
-> f ListAppImageConfigsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [AppImageConfigDetails]
  [AppImageConfigDetails]
  [AppImageConfigDetails]
  [AppImageConfigDetails]
-> Iso
     (Maybe [AppImageConfigDetails])
     (Maybe [AppImageConfigDetails])
     (Maybe [AppImageConfigDetails])
     (Maybe [AppImageConfigDetails])
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
  [AppImageConfigDetails]
  [AppImageConfigDetails]
  [AppImageConfigDetails]
  [AppImageConfigDetails]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A token for getting the next set of AppImageConfigs, if there are any.
listAppImageConfigsResponse_nextToken :: Lens.Lens' ListAppImageConfigsResponse (Prelude.Maybe Prelude.Text)
listAppImageConfigsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListAppImageConfigsResponse -> f ListAppImageConfigsResponse
listAppImageConfigsResponse_nextToken = (ListAppImageConfigsResponse -> Maybe Text)
-> (ListAppImageConfigsResponse
    -> Maybe Text -> ListAppImageConfigsResponse)
-> Lens' ListAppImageConfigsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAppImageConfigsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAppImageConfigsResponse' :: ListAppImageConfigsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAppImageConfigsResponse
s@ListAppImageConfigsResponse' {} Maybe Text
a -> ListAppImageConfigsResponse
s {$sel:nextToken:ListAppImageConfigsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListAppImageConfigsResponse)

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

instance Prelude.NFData ListAppImageConfigsResponse