{-# 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.IVS.ListRecordingConfigurations
-- 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)
--
-- Gets summary information about all recording configurations in your
-- account, in the Amazon Web Services region where the API request is
-- processed.
--
-- This operation returns paginated results.
module Amazonka.IVS.ListRecordingConfigurations
  ( -- * Creating a Request
    ListRecordingConfigurations (..),
    newListRecordingConfigurations,

    -- * Request Lenses
    listRecordingConfigurations_nextToken,
    listRecordingConfigurations_maxResults,

    -- * Destructuring the Response
    ListRecordingConfigurationsResponse (..),
    newListRecordingConfigurationsResponse,

    -- * Response Lenses
    listRecordingConfigurationsResponse_nextToken,
    listRecordingConfigurationsResponse_httpStatus,
    listRecordingConfigurationsResponse_recordingConfigurations,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.IVS.Types
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:/ 'newListRecordingConfigurations' smart constructor.
data ListRecordingConfigurations = ListRecordingConfigurations'
  { -- | The first recording configuration to retrieve. This is used for
    -- pagination; see the @nextToken@ response field.
    ListRecordingConfigurations -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | Maximum number of recording configurations to return. Default: 50.
    ListRecordingConfigurations -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
  }
  deriving (ListRecordingConfigurations -> ListRecordingConfigurations -> Bool
(ListRecordingConfigurations
 -> ListRecordingConfigurations -> Bool)
-> (ListRecordingConfigurations
    -> ListRecordingConfigurations -> Bool)
-> Eq ListRecordingConfigurations
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListRecordingConfigurations -> ListRecordingConfigurations -> Bool
$c/= :: ListRecordingConfigurations -> ListRecordingConfigurations -> Bool
== :: ListRecordingConfigurations -> ListRecordingConfigurations -> Bool
$c== :: ListRecordingConfigurations -> ListRecordingConfigurations -> Bool
Prelude.Eq, ReadPrec [ListRecordingConfigurations]
ReadPrec ListRecordingConfigurations
Int -> ReadS ListRecordingConfigurations
ReadS [ListRecordingConfigurations]
(Int -> ReadS ListRecordingConfigurations)
-> ReadS [ListRecordingConfigurations]
-> ReadPrec ListRecordingConfigurations
-> ReadPrec [ListRecordingConfigurations]
-> Read ListRecordingConfigurations
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListRecordingConfigurations]
$creadListPrec :: ReadPrec [ListRecordingConfigurations]
readPrec :: ReadPrec ListRecordingConfigurations
$creadPrec :: ReadPrec ListRecordingConfigurations
readList :: ReadS [ListRecordingConfigurations]
$creadList :: ReadS [ListRecordingConfigurations]
readsPrec :: Int -> ReadS ListRecordingConfigurations
$creadsPrec :: Int -> ReadS ListRecordingConfigurations
Prelude.Read, Int -> ListRecordingConfigurations -> ShowS
[ListRecordingConfigurations] -> ShowS
ListRecordingConfigurations -> String
(Int -> ListRecordingConfigurations -> ShowS)
-> (ListRecordingConfigurations -> String)
-> ([ListRecordingConfigurations] -> ShowS)
-> Show ListRecordingConfigurations
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListRecordingConfigurations] -> ShowS
$cshowList :: [ListRecordingConfigurations] -> ShowS
show :: ListRecordingConfigurations -> String
$cshow :: ListRecordingConfigurations -> String
showsPrec :: Int -> ListRecordingConfigurations -> ShowS
$cshowsPrec :: Int -> ListRecordingConfigurations -> ShowS
Prelude.Show, (forall x.
 ListRecordingConfigurations -> Rep ListRecordingConfigurations x)
-> (forall x.
    Rep ListRecordingConfigurations x -> ListRecordingConfigurations)
-> Generic ListRecordingConfigurations
forall x.
Rep ListRecordingConfigurations x -> ListRecordingConfigurations
forall x.
ListRecordingConfigurations -> Rep ListRecordingConfigurations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListRecordingConfigurations x -> ListRecordingConfigurations
$cfrom :: forall x.
ListRecordingConfigurations -> Rep ListRecordingConfigurations x
Prelude.Generic)

-- |
-- Create a value of 'ListRecordingConfigurations' 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', 'listRecordingConfigurations_nextToken' - The first recording configuration to retrieve. This is used for
-- pagination; see the @nextToken@ response field.
--
-- 'maxResults', 'listRecordingConfigurations_maxResults' - Maximum number of recording configurations to return. Default: 50.
newListRecordingConfigurations ::
  ListRecordingConfigurations
newListRecordingConfigurations :: ListRecordingConfigurations
newListRecordingConfigurations =
  ListRecordingConfigurations' :: Maybe Text -> Maybe Natural -> ListRecordingConfigurations
ListRecordingConfigurations'
    { $sel:nextToken:ListRecordingConfigurations' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListRecordingConfigurations' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
    }

-- | The first recording configuration to retrieve. This is used for
-- pagination; see the @nextToken@ response field.
listRecordingConfigurations_nextToken :: Lens.Lens' ListRecordingConfigurations (Prelude.Maybe Prelude.Text)
listRecordingConfigurations_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListRecordingConfigurations -> f ListRecordingConfigurations
listRecordingConfigurations_nextToken = (ListRecordingConfigurations -> Maybe Text)
-> (ListRecordingConfigurations
    -> Maybe Text -> ListRecordingConfigurations)
-> Lens
     ListRecordingConfigurations
     ListRecordingConfigurations
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRecordingConfigurations' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListRecordingConfigurations' :: ListRecordingConfigurations -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListRecordingConfigurations
s@ListRecordingConfigurations' {} Maybe Text
a -> ListRecordingConfigurations
s {$sel:nextToken:ListRecordingConfigurations' :: Maybe Text
nextToken = Maybe Text
a} :: ListRecordingConfigurations)

-- | Maximum number of recording configurations to return. Default: 50.
listRecordingConfigurations_maxResults :: Lens.Lens' ListRecordingConfigurations (Prelude.Maybe Prelude.Natural)
listRecordingConfigurations_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListRecordingConfigurations -> f ListRecordingConfigurations
listRecordingConfigurations_maxResults = (ListRecordingConfigurations -> Maybe Natural)
-> (ListRecordingConfigurations
    -> Maybe Natural -> ListRecordingConfigurations)
-> Lens
     ListRecordingConfigurations
     ListRecordingConfigurations
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRecordingConfigurations' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListRecordingConfigurations' :: ListRecordingConfigurations -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListRecordingConfigurations
s@ListRecordingConfigurations' {} Maybe Natural
a -> ListRecordingConfigurations
s {$sel:maxResults:ListRecordingConfigurations' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListRecordingConfigurations)

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

instance Prelude.Hashable ListRecordingConfigurations

instance Prelude.NFData ListRecordingConfigurations

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

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

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

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

-- | /See:/ 'newListRecordingConfigurationsResponse' smart constructor.
data ListRecordingConfigurationsResponse = ListRecordingConfigurationsResponse'
  { -- | If there are more recording configurations than @maxResults@, use
    -- @nextToken@ in the request to get the next set.
    ListRecordingConfigurationsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListRecordingConfigurationsResponse -> Int
httpStatus :: Prelude.Int,
    -- | List of the matching recording configurations.
    ListRecordingConfigurationsResponse
-> [RecordingConfigurationSummary]
recordingConfigurations :: [RecordingConfigurationSummary]
  }
  deriving (ListRecordingConfigurationsResponse
-> ListRecordingConfigurationsResponse -> Bool
(ListRecordingConfigurationsResponse
 -> ListRecordingConfigurationsResponse -> Bool)
-> (ListRecordingConfigurationsResponse
    -> ListRecordingConfigurationsResponse -> Bool)
-> Eq ListRecordingConfigurationsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListRecordingConfigurationsResponse
-> ListRecordingConfigurationsResponse -> Bool
$c/= :: ListRecordingConfigurationsResponse
-> ListRecordingConfigurationsResponse -> Bool
== :: ListRecordingConfigurationsResponse
-> ListRecordingConfigurationsResponse -> Bool
$c== :: ListRecordingConfigurationsResponse
-> ListRecordingConfigurationsResponse -> Bool
Prelude.Eq, ReadPrec [ListRecordingConfigurationsResponse]
ReadPrec ListRecordingConfigurationsResponse
Int -> ReadS ListRecordingConfigurationsResponse
ReadS [ListRecordingConfigurationsResponse]
(Int -> ReadS ListRecordingConfigurationsResponse)
-> ReadS [ListRecordingConfigurationsResponse]
-> ReadPrec ListRecordingConfigurationsResponse
-> ReadPrec [ListRecordingConfigurationsResponse]
-> Read ListRecordingConfigurationsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListRecordingConfigurationsResponse]
$creadListPrec :: ReadPrec [ListRecordingConfigurationsResponse]
readPrec :: ReadPrec ListRecordingConfigurationsResponse
$creadPrec :: ReadPrec ListRecordingConfigurationsResponse
readList :: ReadS [ListRecordingConfigurationsResponse]
$creadList :: ReadS [ListRecordingConfigurationsResponse]
readsPrec :: Int -> ReadS ListRecordingConfigurationsResponse
$creadsPrec :: Int -> ReadS ListRecordingConfigurationsResponse
Prelude.Read, Int -> ListRecordingConfigurationsResponse -> ShowS
[ListRecordingConfigurationsResponse] -> ShowS
ListRecordingConfigurationsResponse -> String
(Int -> ListRecordingConfigurationsResponse -> ShowS)
-> (ListRecordingConfigurationsResponse -> String)
-> ([ListRecordingConfigurationsResponse] -> ShowS)
-> Show ListRecordingConfigurationsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListRecordingConfigurationsResponse] -> ShowS
$cshowList :: [ListRecordingConfigurationsResponse] -> ShowS
show :: ListRecordingConfigurationsResponse -> String
$cshow :: ListRecordingConfigurationsResponse -> String
showsPrec :: Int -> ListRecordingConfigurationsResponse -> ShowS
$cshowsPrec :: Int -> ListRecordingConfigurationsResponse -> ShowS
Prelude.Show, (forall x.
 ListRecordingConfigurationsResponse
 -> Rep ListRecordingConfigurationsResponse x)
-> (forall x.
    Rep ListRecordingConfigurationsResponse x
    -> ListRecordingConfigurationsResponse)
-> Generic ListRecordingConfigurationsResponse
forall x.
Rep ListRecordingConfigurationsResponse x
-> ListRecordingConfigurationsResponse
forall x.
ListRecordingConfigurationsResponse
-> Rep ListRecordingConfigurationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListRecordingConfigurationsResponse x
-> ListRecordingConfigurationsResponse
$cfrom :: forall x.
ListRecordingConfigurationsResponse
-> Rep ListRecordingConfigurationsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListRecordingConfigurationsResponse' 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', 'listRecordingConfigurationsResponse_nextToken' - If there are more recording configurations than @maxResults@, use
-- @nextToken@ in the request to get the next set.
--
-- 'httpStatus', 'listRecordingConfigurationsResponse_httpStatus' - The response's http status code.
--
-- 'recordingConfigurations', 'listRecordingConfigurationsResponse_recordingConfigurations' - List of the matching recording configurations.
newListRecordingConfigurationsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListRecordingConfigurationsResponse
newListRecordingConfigurationsResponse :: Int -> ListRecordingConfigurationsResponse
newListRecordingConfigurationsResponse Int
pHttpStatus_ =
  ListRecordingConfigurationsResponse' :: Maybe Text
-> Int
-> [RecordingConfigurationSummary]
-> ListRecordingConfigurationsResponse
ListRecordingConfigurationsResponse'
    { $sel:nextToken:ListRecordingConfigurationsResponse' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListRecordingConfigurationsResponse' :: Int
httpStatus = Int
pHttpStatus_,
      $sel:recordingConfigurations:ListRecordingConfigurationsResponse' :: [RecordingConfigurationSummary]
recordingConfigurations =
        [RecordingConfigurationSummary]
forall a. Monoid a => a
Prelude.mempty
    }

-- | If there are more recording configurations than @maxResults@, use
-- @nextToken@ in the request to get the next set.
listRecordingConfigurationsResponse_nextToken :: Lens.Lens' ListRecordingConfigurationsResponse (Prelude.Maybe Prelude.Text)
listRecordingConfigurationsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListRecordingConfigurationsResponse
-> f ListRecordingConfigurationsResponse
listRecordingConfigurationsResponse_nextToken = (ListRecordingConfigurationsResponse -> Maybe Text)
-> (ListRecordingConfigurationsResponse
    -> Maybe Text -> ListRecordingConfigurationsResponse)
-> Lens' ListRecordingConfigurationsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRecordingConfigurationsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListRecordingConfigurationsResponse' :: ListRecordingConfigurationsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListRecordingConfigurationsResponse
s@ListRecordingConfigurationsResponse' {} Maybe Text
a -> ListRecordingConfigurationsResponse
s {$sel:nextToken:ListRecordingConfigurationsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListRecordingConfigurationsResponse)

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

-- | List of the matching recording configurations.
listRecordingConfigurationsResponse_recordingConfigurations :: Lens.Lens' ListRecordingConfigurationsResponse [RecordingConfigurationSummary]
listRecordingConfigurationsResponse_recordingConfigurations :: ([RecordingConfigurationSummary]
 -> f [RecordingConfigurationSummary])
-> ListRecordingConfigurationsResponse
-> f ListRecordingConfigurationsResponse
listRecordingConfigurationsResponse_recordingConfigurations = (ListRecordingConfigurationsResponse
 -> [RecordingConfigurationSummary])
-> (ListRecordingConfigurationsResponse
    -> [RecordingConfigurationSummary]
    -> ListRecordingConfigurationsResponse)
-> Lens'
     ListRecordingConfigurationsResponse [RecordingConfigurationSummary]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRecordingConfigurationsResponse' {[RecordingConfigurationSummary]
recordingConfigurations :: [RecordingConfigurationSummary]
$sel:recordingConfigurations:ListRecordingConfigurationsResponse' :: ListRecordingConfigurationsResponse
-> [RecordingConfigurationSummary]
recordingConfigurations} -> [RecordingConfigurationSummary]
recordingConfigurations) (\s :: ListRecordingConfigurationsResponse
s@ListRecordingConfigurationsResponse' {} [RecordingConfigurationSummary]
a -> ListRecordingConfigurationsResponse
s {$sel:recordingConfigurations:ListRecordingConfigurationsResponse' :: [RecordingConfigurationSummary]
recordingConfigurations = [RecordingConfigurationSummary]
a} :: ListRecordingConfigurationsResponse) (([RecordingConfigurationSummary]
  -> f [RecordingConfigurationSummary])
 -> ListRecordingConfigurationsResponse
 -> f ListRecordingConfigurationsResponse)
-> (([RecordingConfigurationSummary]
     -> f [RecordingConfigurationSummary])
    -> [RecordingConfigurationSummary]
    -> f [RecordingConfigurationSummary])
-> ([RecordingConfigurationSummary]
    -> f [RecordingConfigurationSummary])
-> ListRecordingConfigurationsResponse
-> f ListRecordingConfigurationsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([RecordingConfigurationSummary]
 -> f [RecordingConfigurationSummary])
-> [RecordingConfigurationSummary]
-> f [RecordingConfigurationSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance
  Prelude.NFData
    ListRecordingConfigurationsResponse