{-# 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.AppConfig.ListConfigurationProfiles
-- 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 configuration profiles for an application.
module Amazonka.AppConfig.ListConfigurationProfiles
  ( -- * Creating a Request
    ListConfigurationProfiles (..),
    newListConfigurationProfiles,

    -- * Request Lenses
    listConfigurationProfiles_nextToken,
    listConfigurationProfiles_maxResults,
    listConfigurationProfiles_applicationId,

    -- * Destructuring the Response
    ListConfigurationProfilesResponse (..),
    newListConfigurationProfilesResponse,

    -- * Response Lenses
    listConfigurationProfilesResponse_items,
    listConfigurationProfilesResponse_nextToken,
    listConfigurationProfilesResponse_httpStatus,
  )
where

import Amazonka.AppConfig.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:/ 'newListConfigurationProfiles' smart constructor.
data ListConfigurationProfiles = ListConfigurationProfiles'
  { -- | A token to start the list. Use this token to get the next set of
    -- results.
    ListConfigurationProfiles -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of items to return for this call. The call also
    -- returns a token that you can specify in a subsequent call to get the
    -- next set of results.
    ListConfigurationProfiles -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The application ID.
    ListConfigurationProfiles -> Text
applicationId :: Prelude.Text
  }
  deriving (ListConfigurationProfiles -> ListConfigurationProfiles -> Bool
(ListConfigurationProfiles -> ListConfigurationProfiles -> Bool)
-> (ListConfigurationProfiles -> ListConfigurationProfiles -> Bool)
-> Eq ListConfigurationProfiles
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListConfigurationProfiles -> ListConfigurationProfiles -> Bool
$c/= :: ListConfigurationProfiles -> ListConfigurationProfiles -> Bool
== :: ListConfigurationProfiles -> ListConfigurationProfiles -> Bool
$c== :: ListConfigurationProfiles -> ListConfigurationProfiles -> Bool
Prelude.Eq, ReadPrec [ListConfigurationProfiles]
ReadPrec ListConfigurationProfiles
Int -> ReadS ListConfigurationProfiles
ReadS [ListConfigurationProfiles]
(Int -> ReadS ListConfigurationProfiles)
-> ReadS [ListConfigurationProfiles]
-> ReadPrec ListConfigurationProfiles
-> ReadPrec [ListConfigurationProfiles]
-> Read ListConfigurationProfiles
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListConfigurationProfiles]
$creadListPrec :: ReadPrec [ListConfigurationProfiles]
readPrec :: ReadPrec ListConfigurationProfiles
$creadPrec :: ReadPrec ListConfigurationProfiles
readList :: ReadS [ListConfigurationProfiles]
$creadList :: ReadS [ListConfigurationProfiles]
readsPrec :: Int -> ReadS ListConfigurationProfiles
$creadsPrec :: Int -> ReadS ListConfigurationProfiles
Prelude.Read, Int -> ListConfigurationProfiles -> ShowS
[ListConfigurationProfiles] -> ShowS
ListConfigurationProfiles -> String
(Int -> ListConfigurationProfiles -> ShowS)
-> (ListConfigurationProfiles -> String)
-> ([ListConfigurationProfiles] -> ShowS)
-> Show ListConfigurationProfiles
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListConfigurationProfiles] -> ShowS
$cshowList :: [ListConfigurationProfiles] -> ShowS
show :: ListConfigurationProfiles -> String
$cshow :: ListConfigurationProfiles -> String
showsPrec :: Int -> ListConfigurationProfiles -> ShowS
$cshowsPrec :: Int -> ListConfigurationProfiles -> ShowS
Prelude.Show, (forall x.
 ListConfigurationProfiles -> Rep ListConfigurationProfiles x)
-> (forall x.
    Rep ListConfigurationProfiles x -> ListConfigurationProfiles)
-> Generic ListConfigurationProfiles
forall x.
Rep ListConfigurationProfiles x -> ListConfigurationProfiles
forall x.
ListConfigurationProfiles -> Rep ListConfigurationProfiles x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListConfigurationProfiles x -> ListConfigurationProfiles
$cfrom :: forall x.
ListConfigurationProfiles -> Rep ListConfigurationProfiles x
Prelude.Generic)

-- |
-- Create a value of 'ListConfigurationProfiles' 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', 'listConfigurationProfiles_nextToken' - A token to start the list. Use this token to get the next set of
-- results.
--
-- 'maxResults', 'listConfigurationProfiles_maxResults' - The maximum number of items to return for this call. The call also
-- returns a token that you can specify in a subsequent call to get the
-- next set of results.
--
-- 'applicationId', 'listConfigurationProfiles_applicationId' - The application ID.
newListConfigurationProfiles ::
  -- | 'applicationId'
  Prelude.Text ->
  ListConfigurationProfiles
newListConfigurationProfiles :: Text -> ListConfigurationProfiles
newListConfigurationProfiles Text
pApplicationId_ =
  ListConfigurationProfiles' :: Maybe Text -> Maybe Natural -> Text -> ListConfigurationProfiles
ListConfigurationProfiles'
    { $sel:nextToken:ListConfigurationProfiles' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListConfigurationProfiles' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:applicationId:ListConfigurationProfiles' :: Text
applicationId = Text
pApplicationId_
    }

-- | A token to start the list. Use this token to get the next set of
-- results.
listConfigurationProfiles_nextToken :: Lens.Lens' ListConfigurationProfiles (Prelude.Maybe Prelude.Text)
listConfigurationProfiles_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListConfigurationProfiles -> f ListConfigurationProfiles
listConfigurationProfiles_nextToken = (ListConfigurationProfiles -> Maybe Text)
-> (ListConfigurationProfiles
    -> Maybe Text -> ListConfigurationProfiles)
-> Lens
     ListConfigurationProfiles
     ListConfigurationProfiles
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConfigurationProfiles' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListConfigurationProfiles' :: ListConfigurationProfiles -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListConfigurationProfiles
s@ListConfigurationProfiles' {} Maybe Text
a -> ListConfigurationProfiles
s {$sel:nextToken:ListConfigurationProfiles' :: Maybe Text
nextToken = Maybe Text
a} :: ListConfigurationProfiles)

-- | The maximum number of items to return for this call. The call also
-- returns a token that you can specify in a subsequent call to get the
-- next set of results.
listConfigurationProfiles_maxResults :: Lens.Lens' ListConfigurationProfiles (Prelude.Maybe Prelude.Natural)
listConfigurationProfiles_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListConfigurationProfiles -> f ListConfigurationProfiles
listConfigurationProfiles_maxResults = (ListConfigurationProfiles -> Maybe Natural)
-> (ListConfigurationProfiles
    -> Maybe Natural -> ListConfigurationProfiles)
-> Lens
     ListConfigurationProfiles
     ListConfigurationProfiles
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConfigurationProfiles' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListConfigurationProfiles' :: ListConfigurationProfiles -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListConfigurationProfiles
s@ListConfigurationProfiles' {} Maybe Natural
a -> ListConfigurationProfiles
s {$sel:maxResults:ListConfigurationProfiles' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListConfigurationProfiles)

-- | The application ID.
listConfigurationProfiles_applicationId :: Lens.Lens' ListConfigurationProfiles Prelude.Text
listConfigurationProfiles_applicationId :: (Text -> f Text)
-> ListConfigurationProfiles -> f ListConfigurationProfiles
listConfigurationProfiles_applicationId = (ListConfigurationProfiles -> Text)
-> (ListConfigurationProfiles -> Text -> ListConfigurationProfiles)
-> Lens
     ListConfigurationProfiles ListConfigurationProfiles Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConfigurationProfiles' {Text
applicationId :: Text
$sel:applicationId:ListConfigurationProfiles' :: ListConfigurationProfiles -> Text
applicationId} -> Text
applicationId) (\s :: ListConfigurationProfiles
s@ListConfigurationProfiles' {} Text
a -> ListConfigurationProfiles
s {$sel:applicationId:ListConfigurationProfiles' :: Text
applicationId = Text
a} :: ListConfigurationProfiles)

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

instance Prelude.NFData ListConfigurationProfiles

instance Core.ToHeaders ListConfigurationProfiles where
  toHeaders :: ListConfigurationProfiles -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListConfigurationProfiles -> 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.ToPath ListConfigurationProfiles where
  toPath :: ListConfigurationProfiles -> ByteString
toPath ListConfigurationProfiles' {Maybe Natural
Maybe Text
Text
applicationId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:applicationId:ListConfigurationProfiles' :: ListConfigurationProfiles -> Text
$sel:maxResults:ListConfigurationProfiles' :: ListConfigurationProfiles -> Maybe Natural
$sel:nextToken:ListConfigurationProfiles' :: ListConfigurationProfiles -> Maybe Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/applications/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
applicationId,
        ByteString
"/configurationprofiles"
      ]

instance Core.ToQuery ListConfigurationProfiles where
  toQuery :: ListConfigurationProfiles -> QueryString
toQuery ListConfigurationProfiles' {Maybe Natural
Maybe Text
Text
applicationId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:applicationId:ListConfigurationProfiles' :: ListConfigurationProfiles -> Text
$sel:maxResults:ListConfigurationProfiles' :: ListConfigurationProfiles -> Maybe Natural
$sel:nextToken:ListConfigurationProfiles' :: ListConfigurationProfiles -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"next_token" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
        ByteString
"max_results" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
      ]

-- | /See:/ 'newListConfigurationProfilesResponse' smart constructor.
data ListConfigurationProfilesResponse = ListConfigurationProfilesResponse'
  { -- | The elements from this collection.
    ListConfigurationProfilesResponse
-> Maybe [ConfigurationProfileSummary]
items :: Prelude.Maybe [ConfigurationProfileSummary],
    -- | The token for the next set of items to return. Use this token to get the
    -- next set of results.
    ListConfigurationProfilesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListConfigurationProfilesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListConfigurationProfilesResponse
-> ListConfigurationProfilesResponse -> Bool
(ListConfigurationProfilesResponse
 -> ListConfigurationProfilesResponse -> Bool)
-> (ListConfigurationProfilesResponse
    -> ListConfigurationProfilesResponse -> Bool)
-> Eq ListConfigurationProfilesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListConfigurationProfilesResponse
-> ListConfigurationProfilesResponse -> Bool
$c/= :: ListConfigurationProfilesResponse
-> ListConfigurationProfilesResponse -> Bool
== :: ListConfigurationProfilesResponse
-> ListConfigurationProfilesResponse -> Bool
$c== :: ListConfigurationProfilesResponse
-> ListConfigurationProfilesResponse -> Bool
Prelude.Eq, ReadPrec [ListConfigurationProfilesResponse]
ReadPrec ListConfigurationProfilesResponse
Int -> ReadS ListConfigurationProfilesResponse
ReadS [ListConfigurationProfilesResponse]
(Int -> ReadS ListConfigurationProfilesResponse)
-> ReadS [ListConfigurationProfilesResponse]
-> ReadPrec ListConfigurationProfilesResponse
-> ReadPrec [ListConfigurationProfilesResponse]
-> Read ListConfigurationProfilesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListConfigurationProfilesResponse]
$creadListPrec :: ReadPrec [ListConfigurationProfilesResponse]
readPrec :: ReadPrec ListConfigurationProfilesResponse
$creadPrec :: ReadPrec ListConfigurationProfilesResponse
readList :: ReadS [ListConfigurationProfilesResponse]
$creadList :: ReadS [ListConfigurationProfilesResponse]
readsPrec :: Int -> ReadS ListConfigurationProfilesResponse
$creadsPrec :: Int -> ReadS ListConfigurationProfilesResponse
Prelude.Read, Int -> ListConfigurationProfilesResponse -> ShowS
[ListConfigurationProfilesResponse] -> ShowS
ListConfigurationProfilesResponse -> String
(Int -> ListConfigurationProfilesResponse -> ShowS)
-> (ListConfigurationProfilesResponse -> String)
-> ([ListConfigurationProfilesResponse] -> ShowS)
-> Show ListConfigurationProfilesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListConfigurationProfilesResponse] -> ShowS
$cshowList :: [ListConfigurationProfilesResponse] -> ShowS
show :: ListConfigurationProfilesResponse -> String
$cshow :: ListConfigurationProfilesResponse -> String
showsPrec :: Int -> ListConfigurationProfilesResponse -> ShowS
$cshowsPrec :: Int -> ListConfigurationProfilesResponse -> ShowS
Prelude.Show, (forall x.
 ListConfigurationProfilesResponse
 -> Rep ListConfigurationProfilesResponse x)
-> (forall x.
    Rep ListConfigurationProfilesResponse x
    -> ListConfigurationProfilesResponse)
-> Generic ListConfigurationProfilesResponse
forall x.
Rep ListConfigurationProfilesResponse x
-> ListConfigurationProfilesResponse
forall x.
ListConfigurationProfilesResponse
-> Rep ListConfigurationProfilesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListConfigurationProfilesResponse x
-> ListConfigurationProfilesResponse
$cfrom :: forall x.
ListConfigurationProfilesResponse
-> Rep ListConfigurationProfilesResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListConfigurationProfilesResponse' 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:
--
-- 'items', 'listConfigurationProfilesResponse_items' - The elements from this collection.
--
-- 'nextToken', 'listConfigurationProfilesResponse_nextToken' - The token for the next set of items to return. Use this token to get the
-- next set of results.
--
-- 'httpStatus', 'listConfigurationProfilesResponse_httpStatus' - The response's http status code.
newListConfigurationProfilesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListConfigurationProfilesResponse
newListConfigurationProfilesResponse :: Int -> ListConfigurationProfilesResponse
newListConfigurationProfilesResponse Int
pHttpStatus_ =
  ListConfigurationProfilesResponse' :: Maybe [ConfigurationProfileSummary]
-> Maybe Text -> Int -> ListConfigurationProfilesResponse
ListConfigurationProfilesResponse'
    { $sel:items:ListConfigurationProfilesResponse' :: Maybe [ConfigurationProfileSummary]
items =
        Maybe [ConfigurationProfileSummary]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListConfigurationProfilesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListConfigurationProfilesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The elements from this collection.
listConfigurationProfilesResponse_items :: Lens.Lens' ListConfigurationProfilesResponse (Prelude.Maybe [ConfigurationProfileSummary])
listConfigurationProfilesResponse_items :: (Maybe [ConfigurationProfileSummary]
 -> f (Maybe [ConfigurationProfileSummary]))
-> ListConfigurationProfilesResponse
-> f ListConfigurationProfilesResponse
listConfigurationProfilesResponse_items = (ListConfigurationProfilesResponse
 -> Maybe [ConfigurationProfileSummary])
-> (ListConfigurationProfilesResponse
    -> Maybe [ConfigurationProfileSummary]
    -> ListConfigurationProfilesResponse)
-> Lens
     ListConfigurationProfilesResponse
     ListConfigurationProfilesResponse
     (Maybe [ConfigurationProfileSummary])
     (Maybe [ConfigurationProfileSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConfigurationProfilesResponse' {Maybe [ConfigurationProfileSummary]
items :: Maybe [ConfigurationProfileSummary]
$sel:items:ListConfigurationProfilesResponse' :: ListConfigurationProfilesResponse
-> Maybe [ConfigurationProfileSummary]
items} -> Maybe [ConfigurationProfileSummary]
items) (\s :: ListConfigurationProfilesResponse
s@ListConfigurationProfilesResponse' {} Maybe [ConfigurationProfileSummary]
a -> ListConfigurationProfilesResponse
s {$sel:items:ListConfigurationProfilesResponse' :: Maybe [ConfigurationProfileSummary]
items = Maybe [ConfigurationProfileSummary]
a} :: ListConfigurationProfilesResponse) ((Maybe [ConfigurationProfileSummary]
  -> f (Maybe [ConfigurationProfileSummary]))
 -> ListConfigurationProfilesResponse
 -> f ListConfigurationProfilesResponse)
-> ((Maybe [ConfigurationProfileSummary]
     -> f (Maybe [ConfigurationProfileSummary]))
    -> Maybe [ConfigurationProfileSummary]
    -> f (Maybe [ConfigurationProfileSummary]))
-> (Maybe [ConfigurationProfileSummary]
    -> f (Maybe [ConfigurationProfileSummary]))
-> ListConfigurationProfilesResponse
-> f ListConfigurationProfilesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [ConfigurationProfileSummary]
  [ConfigurationProfileSummary]
  [ConfigurationProfileSummary]
  [ConfigurationProfileSummary]
-> Iso
     (Maybe [ConfigurationProfileSummary])
     (Maybe [ConfigurationProfileSummary])
     (Maybe [ConfigurationProfileSummary])
     (Maybe [ConfigurationProfileSummary])
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
  [ConfigurationProfileSummary]
  [ConfigurationProfileSummary]
  [ConfigurationProfileSummary]
  [ConfigurationProfileSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The token for the next set of items to return. Use this token to get the
-- next set of results.
listConfigurationProfilesResponse_nextToken :: Lens.Lens' ListConfigurationProfilesResponse (Prelude.Maybe Prelude.Text)
listConfigurationProfilesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListConfigurationProfilesResponse
-> f ListConfigurationProfilesResponse
listConfigurationProfilesResponse_nextToken = (ListConfigurationProfilesResponse -> Maybe Text)
-> (ListConfigurationProfilesResponse
    -> Maybe Text -> ListConfigurationProfilesResponse)
-> Lens
     ListConfigurationProfilesResponse
     ListConfigurationProfilesResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConfigurationProfilesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListConfigurationProfilesResponse' :: ListConfigurationProfilesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListConfigurationProfilesResponse
s@ListConfigurationProfilesResponse' {} Maybe Text
a -> ListConfigurationProfilesResponse
s {$sel:nextToken:ListConfigurationProfilesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListConfigurationProfilesResponse)

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

instance
  Prelude.NFData
    ListConfigurationProfilesResponse