{-# 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.ListPlaybackKeyPairs
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Gets summary information about playback key pairs. For more information,
-- see
-- <https://docs.aws.amazon.com/ivs/latest/userguide/private-channels.html Setting Up Private Channels>
-- in the /Amazon IVS User Guide/.
--
-- This operation returns paginated results.
module Amazonka.IVS.ListPlaybackKeyPairs
  ( -- * Creating a Request
    ListPlaybackKeyPairs (..),
    newListPlaybackKeyPairs,

    -- * Request Lenses
    listPlaybackKeyPairs_maxResults,
    listPlaybackKeyPairs_nextToken,

    -- * Destructuring the Response
    ListPlaybackKeyPairsResponse (..),
    newListPlaybackKeyPairsResponse,

    -- * Response Lenses
    listPlaybackKeyPairsResponse_nextToken,
    listPlaybackKeyPairsResponse_httpStatus,
    listPlaybackKeyPairsResponse_keyPairs,
  )
where

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

-- | /See:/ 'newListPlaybackKeyPairs' smart constructor.
data ListPlaybackKeyPairs = ListPlaybackKeyPairs'
  { -- | Maximum number of key pairs to return. Default: your service quota or
    -- 100, whichever is smaller.
    ListPlaybackKeyPairs -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The first key pair to retrieve. This is used for pagination; see the
    -- @nextToken@ response field.
    ListPlaybackKeyPairs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
  }
  deriving (ListPlaybackKeyPairs -> ListPlaybackKeyPairs -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListPlaybackKeyPairs -> ListPlaybackKeyPairs -> Bool
$c/= :: ListPlaybackKeyPairs -> ListPlaybackKeyPairs -> Bool
== :: ListPlaybackKeyPairs -> ListPlaybackKeyPairs -> Bool
$c== :: ListPlaybackKeyPairs -> ListPlaybackKeyPairs -> Bool
Prelude.Eq, ReadPrec [ListPlaybackKeyPairs]
ReadPrec ListPlaybackKeyPairs
Int -> ReadS ListPlaybackKeyPairs
ReadS [ListPlaybackKeyPairs]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListPlaybackKeyPairs]
$creadListPrec :: ReadPrec [ListPlaybackKeyPairs]
readPrec :: ReadPrec ListPlaybackKeyPairs
$creadPrec :: ReadPrec ListPlaybackKeyPairs
readList :: ReadS [ListPlaybackKeyPairs]
$creadList :: ReadS [ListPlaybackKeyPairs]
readsPrec :: Int -> ReadS ListPlaybackKeyPairs
$creadsPrec :: Int -> ReadS ListPlaybackKeyPairs
Prelude.Read, Int -> ListPlaybackKeyPairs -> ShowS
[ListPlaybackKeyPairs] -> ShowS
ListPlaybackKeyPairs -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListPlaybackKeyPairs] -> ShowS
$cshowList :: [ListPlaybackKeyPairs] -> ShowS
show :: ListPlaybackKeyPairs -> String
$cshow :: ListPlaybackKeyPairs -> String
showsPrec :: Int -> ListPlaybackKeyPairs -> ShowS
$cshowsPrec :: Int -> ListPlaybackKeyPairs -> ShowS
Prelude.Show, forall x. Rep ListPlaybackKeyPairs x -> ListPlaybackKeyPairs
forall x. ListPlaybackKeyPairs -> Rep ListPlaybackKeyPairs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListPlaybackKeyPairs x -> ListPlaybackKeyPairs
$cfrom :: forall x. ListPlaybackKeyPairs -> Rep ListPlaybackKeyPairs x
Prelude.Generic)

-- |
-- Create a value of 'ListPlaybackKeyPairs' 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:
--
-- 'maxResults', 'listPlaybackKeyPairs_maxResults' - Maximum number of key pairs to return. Default: your service quota or
-- 100, whichever is smaller.
--
-- 'nextToken', 'listPlaybackKeyPairs_nextToken' - The first key pair to retrieve. This is used for pagination; see the
-- @nextToken@ response field.
newListPlaybackKeyPairs ::
  ListPlaybackKeyPairs
newListPlaybackKeyPairs :: ListPlaybackKeyPairs
newListPlaybackKeyPairs =
  ListPlaybackKeyPairs'
    { $sel:maxResults:ListPlaybackKeyPairs' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListPlaybackKeyPairs' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing
    }

-- | Maximum number of key pairs to return. Default: your service quota or
-- 100, whichever is smaller.
listPlaybackKeyPairs_maxResults :: Lens.Lens' ListPlaybackKeyPairs (Prelude.Maybe Prelude.Natural)
listPlaybackKeyPairs_maxResults :: Lens' ListPlaybackKeyPairs (Maybe Natural)
listPlaybackKeyPairs_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPlaybackKeyPairs' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListPlaybackKeyPairs' :: ListPlaybackKeyPairs -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListPlaybackKeyPairs
s@ListPlaybackKeyPairs' {} Maybe Natural
a -> ListPlaybackKeyPairs
s {$sel:maxResults:ListPlaybackKeyPairs' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListPlaybackKeyPairs)

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

instance Core.AWSPager ListPlaybackKeyPairs where
  page :: ListPlaybackKeyPairs
-> AWSResponse ListPlaybackKeyPairs -> Maybe ListPlaybackKeyPairs
page ListPlaybackKeyPairs
rq AWSResponse ListPlaybackKeyPairs
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListPlaybackKeyPairs
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListPlaybackKeyPairsResponse (Maybe Text)
listPlaybackKeyPairsResponse_nextToken
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        (AWSResponse ListPlaybackKeyPairs
rs forall s a. s -> Getting a s a -> a
Lens.^. Lens' ListPlaybackKeyPairsResponse [PlaybackKeyPairSummary]
listPlaybackKeyPairsResponse_keyPairs) =
        forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ ListPlaybackKeyPairs
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListPlaybackKeyPairs (Maybe Text)
listPlaybackKeyPairs_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListPlaybackKeyPairs
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListPlaybackKeyPairsResponse (Maybe Text)
listPlaybackKeyPairsResponse_nextToken
          forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

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

instance Prelude.Hashable ListPlaybackKeyPairs where
  hashWithSalt :: Int -> ListPlaybackKeyPairs -> Int
hashWithSalt Int
_salt ListPlaybackKeyPairs' {Maybe Natural
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:nextToken:ListPlaybackKeyPairs' :: ListPlaybackKeyPairs -> Maybe Text
$sel:maxResults:ListPlaybackKeyPairs' :: ListPlaybackKeyPairs -> Maybe Natural
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken

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

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

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

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

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

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

-- |
-- Create a value of 'ListPlaybackKeyPairsResponse' 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', 'listPlaybackKeyPairsResponse_nextToken' - If there are more key pairs than @maxResults@, use @nextToken@ in the
-- request to get the next set.
--
-- 'httpStatus', 'listPlaybackKeyPairsResponse_httpStatus' - The response's http status code.
--
-- 'keyPairs', 'listPlaybackKeyPairsResponse_keyPairs' - List of key pairs.
newListPlaybackKeyPairsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListPlaybackKeyPairsResponse
newListPlaybackKeyPairsResponse :: Int -> ListPlaybackKeyPairsResponse
newListPlaybackKeyPairsResponse Int
pHttpStatus_ =
  ListPlaybackKeyPairsResponse'
    { $sel:nextToken:ListPlaybackKeyPairsResponse' :: Maybe Text
nextToken =
        forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListPlaybackKeyPairsResponse' :: Int
httpStatus = Int
pHttpStatus_,
      $sel:keyPairs:ListPlaybackKeyPairsResponse' :: [PlaybackKeyPairSummary]
keyPairs = forall a. Monoid a => a
Prelude.mempty
    }

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

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

-- | List of key pairs.
listPlaybackKeyPairsResponse_keyPairs :: Lens.Lens' ListPlaybackKeyPairsResponse [PlaybackKeyPairSummary]
listPlaybackKeyPairsResponse_keyPairs :: Lens' ListPlaybackKeyPairsResponse [PlaybackKeyPairSummary]
listPlaybackKeyPairsResponse_keyPairs = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPlaybackKeyPairsResponse' {[PlaybackKeyPairSummary]
keyPairs :: [PlaybackKeyPairSummary]
$sel:keyPairs:ListPlaybackKeyPairsResponse' :: ListPlaybackKeyPairsResponse -> [PlaybackKeyPairSummary]
keyPairs} -> [PlaybackKeyPairSummary]
keyPairs) (\s :: ListPlaybackKeyPairsResponse
s@ListPlaybackKeyPairsResponse' {} [PlaybackKeyPairSummary]
a -> ListPlaybackKeyPairsResponse
s {$sel:keyPairs:ListPlaybackKeyPairsResponse' :: [PlaybackKeyPairSummary]
keyPairs = [PlaybackKeyPairSummary]
a} :: ListPlaybackKeyPairsResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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