{-# 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 #-}
module Amazonka.IVS.ListStreamKeys
(
ListStreamKeys (..),
newListStreamKeys,
listStreamKeys_nextToken,
listStreamKeys_maxResults,
listStreamKeys_channelArn,
ListStreamKeysResponse (..),
newListStreamKeysResponse,
listStreamKeysResponse_nextToken,
listStreamKeysResponse_httpStatus,
listStreamKeysResponse_streamKeys,
)
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
data ListStreamKeys = ListStreamKeys'
{
ListStreamKeys -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListStreamKeys -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListStreamKeys -> Text
channelArn :: Prelude.Text
}
deriving (ListStreamKeys -> ListStreamKeys -> Bool
(ListStreamKeys -> ListStreamKeys -> Bool)
-> (ListStreamKeys -> ListStreamKeys -> Bool) -> Eq ListStreamKeys
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListStreamKeys -> ListStreamKeys -> Bool
$c/= :: ListStreamKeys -> ListStreamKeys -> Bool
== :: ListStreamKeys -> ListStreamKeys -> Bool
$c== :: ListStreamKeys -> ListStreamKeys -> Bool
Prelude.Eq, ReadPrec [ListStreamKeys]
ReadPrec ListStreamKeys
Int -> ReadS ListStreamKeys
ReadS [ListStreamKeys]
(Int -> ReadS ListStreamKeys)
-> ReadS [ListStreamKeys]
-> ReadPrec ListStreamKeys
-> ReadPrec [ListStreamKeys]
-> Read ListStreamKeys
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListStreamKeys]
$creadListPrec :: ReadPrec [ListStreamKeys]
readPrec :: ReadPrec ListStreamKeys
$creadPrec :: ReadPrec ListStreamKeys
readList :: ReadS [ListStreamKeys]
$creadList :: ReadS [ListStreamKeys]
readsPrec :: Int -> ReadS ListStreamKeys
$creadsPrec :: Int -> ReadS ListStreamKeys
Prelude.Read, Int -> ListStreamKeys -> ShowS
[ListStreamKeys] -> ShowS
ListStreamKeys -> String
(Int -> ListStreamKeys -> ShowS)
-> (ListStreamKeys -> String)
-> ([ListStreamKeys] -> ShowS)
-> Show ListStreamKeys
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListStreamKeys] -> ShowS
$cshowList :: [ListStreamKeys] -> ShowS
show :: ListStreamKeys -> String
$cshow :: ListStreamKeys -> String
showsPrec :: Int -> ListStreamKeys -> ShowS
$cshowsPrec :: Int -> ListStreamKeys -> ShowS
Prelude.Show, (forall x. ListStreamKeys -> Rep ListStreamKeys x)
-> (forall x. Rep ListStreamKeys x -> ListStreamKeys)
-> Generic ListStreamKeys
forall x. Rep ListStreamKeys x -> ListStreamKeys
forall x. ListStreamKeys -> Rep ListStreamKeys x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListStreamKeys x -> ListStreamKeys
$cfrom :: forall x. ListStreamKeys -> Rep ListStreamKeys x
Prelude.Generic)
newListStreamKeys ::
Prelude.Text ->
ListStreamKeys
newListStreamKeys :: Text -> ListStreamKeys
newListStreamKeys Text
pChannelArn_ =
ListStreamKeys' :: Maybe Text -> Maybe Natural -> Text -> ListStreamKeys
ListStreamKeys'
{ $sel:nextToken:ListStreamKeys' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListStreamKeys' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:channelArn:ListStreamKeys' :: Text
channelArn = Text
pChannelArn_
}
listStreamKeys_nextToken :: Lens.Lens' ListStreamKeys (Prelude.Maybe Prelude.Text)
listStreamKeys_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListStreamKeys -> f ListStreamKeys
listStreamKeys_nextToken = (ListStreamKeys -> Maybe Text)
-> (ListStreamKeys -> Maybe Text -> ListStreamKeys)
-> Lens ListStreamKeys ListStreamKeys (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListStreamKeys' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListStreamKeys' :: ListStreamKeys -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListStreamKeys
s@ListStreamKeys' {} Maybe Text
a -> ListStreamKeys
s {$sel:nextToken:ListStreamKeys' :: Maybe Text
nextToken = Maybe Text
a} :: ListStreamKeys)
listStreamKeys_maxResults :: Lens.Lens' ListStreamKeys (Prelude.Maybe Prelude.Natural)
listStreamKeys_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListStreamKeys -> f ListStreamKeys
listStreamKeys_maxResults = (ListStreamKeys -> Maybe Natural)
-> (ListStreamKeys -> Maybe Natural -> ListStreamKeys)
-> Lens
ListStreamKeys ListStreamKeys (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListStreamKeys' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListStreamKeys' :: ListStreamKeys -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListStreamKeys
s@ListStreamKeys' {} Maybe Natural
a -> ListStreamKeys
s {$sel:maxResults:ListStreamKeys' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListStreamKeys)
listStreamKeys_channelArn :: Lens.Lens' ListStreamKeys Prelude.Text
listStreamKeys_channelArn :: (Text -> f Text) -> ListStreamKeys -> f ListStreamKeys
listStreamKeys_channelArn = (ListStreamKeys -> Text)
-> (ListStreamKeys -> Text -> ListStreamKeys)
-> Lens ListStreamKeys ListStreamKeys Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListStreamKeys' {Text
channelArn :: Text
$sel:channelArn:ListStreamKeys' :: ListStreamKeys -> Text
channelArn} -> Text
channelArn) (\s :: ListStreamKeys
s@ListStreamKeys' {} Text
a -> ListStreamKeys
s {$sel:channelArn:ListStreamKeys' :: Text
channelArn = Text
a} :: ListStreamKeys)
instance Core.AWSPager ListStreamKeys where
page :: ListStreamKeys
-> AWSResponse ListStreamKeys -> Maybe ListStreamKeys
page ListStreamKeys
rq AWSResponse ListStreamKeys
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListStreamKeys
ListStreamKeysResponse
rs
ListStreamKeysResponse
-> Getting (First Text) ListStreamKeysResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListStreamKeysResponse
-> Const (First Text) ListStreamKeysResponse
Lens' ListStreamKeysResponse (Maybe Text)
listStreamKeysResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListStreamKeysResponse
-> Const (First Text) ListStreamKeysResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListStreamKeysResponse 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 ListStreamKeys
forall a. Maybe a
Prelude.Nothing
| [StreamKeySummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
(AWSResponse ListStreamKeys
ListStreamKeysResponse
rs ListStreamKeysResponse
-> Getting
[StreamKeySummary] ListStreamKeysResponse [StreamKeySummary]
-> [StreamKeySummary]
forall s a. s -> Getting a s a -> a
Lens.^. Getting
[StreamKeySummary] ListStreamKeysResponse [StreamKeySummary]
Lens' ListStreamKeysResponse [StreamKeySummary]
listStreamKeysResponse_streamKeys) =
Maybe ListStreamKeys
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListStreamKeys -> Maybe ListStreamKeys
forall a. a -> Maybe a
Prelude.Just (ListStreamKeys -> Maybe ListStreamKeys)
-> ListStreamKeys -> Maybe ListStreamKeys
forall a b. (a -> b) -> a -> b
Prelude.$
ListStreamKeys
rq
ListStreamKeys
-> (ListStreamKeys -> ListStreamKeys) -> ListStreamKeys
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListStreamKeys -> Identity ListStreamKeys
Lens ListStreamKeys ListStreamKeys (Maybe Text) (Maybe Text)
listStreamKeys_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListStreamKeys -> Identity ListStreamKeys)
-> Maybe Text -> ListStreamKeys -> ListStreamKeys
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListStreamKeys
ListStreamKeysResponse
rs
ListStreamKeysResponse
-> Getting (First Text) ListStreamKeysResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListStreamKeysResponse
-> Const (First Text) ListStreamKeysResponse
Lens' ListStreamKeysResponse (Maybe Text)
listStreamKeysResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListStreamKeysResponse
-> Const (First Text) ListStreamKeysResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListStreamKeysResponse 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 ListStreamKeys where
type
AWSResponse ListStreamKeys =
ListStreamKeysResponse
request :: ListStreamKeys -> Request ListStreamKeys
request = Service -> ListStreamKeys -> Request ListStreamKeys
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListStreamKeys
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListStreamKeys)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListStreamKeys))
-> Logger
-> Service
-> Proxy ListStreamKeys
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListStreamKeys)))
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 -> [StreamKeySummary] -> ListStreamKeysResponse
ListStreamKeysResponse'
(Maybe Text -> Int -> [StreamKeySummary] -> ListStreamKeysResponse)
-> Either String (Maybe Text)
-> Either
String (Int -> [StreamKeySummary] -> ListStreamKeysResponse)
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 -> [StreamKeySummary] -> ListStreamKeysResponse)
-> Either String Int
-> Either String ([StreamKeySummary] -> ListStreamKeysResponse)
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 ([StreamKeySummary] -> ListStreamKeysResponse)
-> Either String [StreamKeySummary]
-> Either String ListStreamKeysResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe [StreamKeySummary])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"streamKeys" Either String (Maybe [StreamKeySummary])
-> [StreamKeySummary] -> Either String [StreamKeySummary]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [StreamKeySummary]
forall a. Monoid a => a
Prelude.mempty)
)
instance Prelude.Hashable ListStreamKeys
instance Prelude.NFData ListStreamKeys
instance Core.ToHeaders ListStreamKeys where
toHeaders :: ListStreamKeys -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListStreamKeys -> 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 ListStreamKeys where
toJSON :: ListStreamKeys -> Value
toJSON ListStreamKeys' {Maybe Natural
Maybe Text
Text
channelArn :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:channelArn:ListStreamKeys' :: ListStreamKeys -> Text
$sel:maxResults:ListStreamKeys' :: ListStreamKeys -> Maybe Natural
$sel:nextToken:ListStreamKeys' :: ListStreamKeys -> 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,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"channelArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
channelArn)
]
)
instance Core.ToPath ListStreamKeys where
toPath :: ListStreamKeys -> ByteString
toPath = ByteString -> ListStreamKeys -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/ListStreamKeys"
instance Core.ToQuery ListStreamKeys where
toQuery :: ListStreamKeys -> QueryString
toQuery = QueryString -> ListStreamKeys -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListStreamKeysResponse = ListStreamKeysResponse'
{
ListStreamKeysResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListStreamKeysResponse -> Int
httpStatus :: Prelude.Int,
ListStreamKeysResponse -> [StreamKeySummary]
streamKeys :: [StreamKeySummary]
}
deriving (ListStreamKeysResponse -> ListStreamKeysResponse -> Bool
(ListStreamKeysResponse -> ListStreamKeysResponse -> Bool)
-> (ListStreamKeysResponse -> ListStreamKeysResponse -> Bool)
-> Eq ListStreamKeysResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListStreamKeysResponse -> ListStreamKeysResponse -> Bool
$c/= :: ListStreamKeysResponse -> ListStreamKeysResponse -> Bool
== :: ListStreamKeysResponse -> ListStreamKeysResponse -> Bool
$c== :: ListStreamKeysResponse -> ListStreamKeysResponse -> Bool
Prelude.Eq, ReadPrec [ListStreamKeysResponse]
ReadPrec ListStreamKeysResponse
Int -> ReadS ListStreamKeysResponse
ReadS [ListStreamKeysResponse]
(Int -> ReadS ListStreamKeysResponse)
-> ReadS [ListStreamKeysResponse]
-> ReadPrec ListStreamKeysResponse
-> ReadPrec [ListStreamKeysResponse]
-> Read ListStreamKeysResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListStreamKeysResponse]
$creadListPrec :: ReadPrec [ListStreamKeysResponse]
readPrec :: ReadPrec ListStreamKeysResponse
$creadPrec :: ReadPrec ListStreamKeysResponse
readList :: ReadS [ListStreamKeysResponse]
$creadList :: ReadS [ListStreamKeysResponse]
readsPrec :: Int -> ReadS ListStreamKeysResponse
$creadsPrec :: Int -> ReadS ListStreamKeysResponse
Prelude.Read, Int -> ListStreamKeysResponse -> ShowS
[ListStreamKeysResponse] -> ShowS
ListStreamKeysResponse -> String
(Int -> ListStreamKeysResponse -> ShowS)
-> (ListStreamKeysResponse -> String)
-> ([ListStreamKeysResponse] -> ShowS)
-> Show ListStreamKeysResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListStreamKeysResponse] -> ShowS
$cshowList :: [ListStreamKeysResponse] -> ShowS
show :: ListStreamKeysResponse -> String
$cshow :: ListStreamKeysResponse -> String
showsPrec :: Int -> ListStreamKeysResponse -> ShowS
$cshowsPrec :: Int -> ListStreamKeysResponse -> ShowS
Prelude.Show, (forall x. ListStreamKeysResponse -> Rep ListStreamKeysResponse x)
-> (forall x.
Rep ListStreamKeysResponse x -> ListStreamKeysResponse)
-> Generic ListStreamKeysResponse
forall x. Rep ListStreamKeysResponse x -> ListStreamKeysResponse
forall x. ListStreamKeysResponse -> Rep ListStreamKeysResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListStreamKeysResponse x -> ListStreamKeysResponse
$cfrom :: forall x. ListStreamKeysResponse -> Rep ListStreamKeysResponse x
Prelude.Generic)
newListStreamKeysResponse ::
Prelude.Int ->
ListStreamKeysResponse
newListStreamKeysResponse :: Int -> ListStreamKeysResponse
newListStreamKeysResponse Int
pHttpStatus_ =
ListStreamKeysResponse' :: Maybe Text -> Int -> [StreamKeySummary] -> ListStreamKeysResponse
ListStreamKeysResponse'
{ $sel:nextToken:ListStreamKeysResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListStreamKeysResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:streamKeys:ListStreamKeysResponse' :: [StreamKeySummary]
streamKeys = [StreamKeySummary]
forall a. Monoid a => a
Prelude.mempty
}
listStreamKeysResponse_nextToken :: Lens.Lens' ListStreamKeysResponse (Prelude.Maybe Prelude.Text)
listStreamKeysResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListStreamKeysResponse -> f ListStreamKeysResponse
listStreamKeysResponse_nextToken = (ListStreamKeysResponse -> Maybe Text)
-> (ListStreamKeysResponse -> Maybe Text -> ListStreamKeysResponse)
-> Lens' ListStreamKeysResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListStreamKeysResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListStreamKeysResponse' :: ListStreamKeysResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListStreamKeysResponse
s@ListStreamKeysResponse' {} Maybe Text
a -> ListStreamKeysResponse
s {$sel:nextToken:ListStreamKeysResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListStreamKeysResponse)
listStreamKeysResponse_httpStatus :: Lens.Lens' ListStreamKeysResponse Prelude.Int
listStreamKeysResponse_httpStatus :: (Int -> f Int)
-> ListStreamKeysResponse -> f ListStreamKeysResponse
listStreamKeysResponse_httpStatus = (ListStreamKeysResponse -> Int)
-> (ListStreamKeysResponse -> Int -> ListStreamKeysResponse)
-> Lens ListStreamKeysResponse ListStreamKeysResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListStreamKeysResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListStreamKeysResponse' :: ListStreamKeysResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListStreamKeysResponse
s@ListStreamKeysResponse' {} Int
a -> ListStreamKeysResponse
s {$sel:httpStatus:ListStreamKeysResponse' :: Int
httpStatus = Int
a} :: ListStreamKeysResponse)
listStreamKeysResponse_streamKeys :: Lens.Lens' ListStreamKeysResponse [StreamKeySummary]
listStreamKeysResponse_streamKeys :: ([StreamKeySummary] -> f [StreamKeySummary])
-> ListStreamKeysResponse -> f ListStreamKeysResponse
listStreamKeysResponse_streamKeys = (ListStreamKeysResponse -> [StreamKeySummary])
-> (ListStreamKeysResponse
-> [StreamKeySummary] -> ListStreamKeysResponse)
-> Lens' ListStreamKeysResponse [StreamKeySummary]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListStreamKeysResponse' {[StreamKeySummary]
streamKeys :: [StreamKeySummary]
$sel:streamKeys:ListStreamKeysResponse' :: ListStreamKeysResponse -> [StreamKeySummary]
streamKeys} -> [StreamKeySummary]
streamKeys) (\s :: ListStreamKeysResponse
s@ListStreamKeysResponse' {} [StreamKeySummary]
a -> ListStreamKeysResponse
s {$sel:streamKeys:ListStreamKeysResponse' :: [StreamKeySummary]
streamKeys = [StreamKeySummary]
a} :: ListStreamKeysResponse) (([StreamKeySummary] -> f [StreamKeySummary])
-> ListStreamKeysResponse -> f ListStreamKeysResponse)
-> (([StreamKeySummary] -> f [StreamKeySummary])
-> [StreamKeySummary] -> f [StreamKeySummary])
-> ([StreamKeySummary] -> f [StreamKeySummary])
-> ListStreamKeysResponse
-> f ListStreamKeysResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([StreamKeySummary] -> f [StreamKeySummary])
-> [StreamKeySummary] -> f [StreamKeySummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Prelude.NFData ListStreamKeysResponse