{-# 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.ImportPlaybackKeyPair
(
ImportPlaybackKeyPair (..),
newImportPlaybackKeyPair,
importPlaybackKeyPair_name,
importPlaybackKeyPair_tags,
importPlaybackKeyPair_publicKeyMaterial,
ImportPlaybackKeyPairResponse (..),
newImportPlaybackKeyPairResponse,
importPlaybackKeyPairResponse_keyPair,
importPlaybackKeyPairResponse_httpStatus,
)
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 ImportPlaybackKeyPair = ImportPlaybackKeyPair'
{
ImportPlaybackKeyPair -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
ImportPlaybackKeyPair -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
ImportPlaybackKeyPair -> Text
publicKeyMaterial :: Prelude.Text
}
deriving (ImportPlaybackKeyPair -> ImportPlaybackKeyPair -> Bool
(ImportPlaybackKeyPair -> ImportPlaybackKeyPair -> Bool)
-> (ImportPlaybackKeyPair -> ImportPlaybackKeyPair -> Bool)
-> Eq ImportPlaybackKeyPair
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ImportPlaybackKeyPair -> ImportPlaybackKeyPair -> Bool
$c/= :: ImportPlaybackKeyPair -> ImportPlaybackKeyPair -> Bool
== :: ImportPlaybackKeyPair -> ImportPlaybackKeyPair -> Bool
$c== :: ImportPlaybackKeyPair -> ImportPlaybackKeyPair -> Bool
Prelude.Eq, ReadPrec [ImportPlaybackKeyPair]
ReadPrec ImportPlaybackKeyPair
Int -> ReadS ImportPlaybackKeyPair
ReadS [ImportPlaybackKeyPair]
(Int -> ReadS ImportPlaybackKeyPair)
-> ReadS [ImportPlaybackKeyPair]
-> ReadPrec ImportPlaybackKeyPair
-> ReadPrec [ImportPlaybackKeyPair]
-> Read ImportPlaybackKeyPair
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ImportPlaybackKeyPair]
$creadListPrec :: ReadPrec [ImportPlaybackKeyPair]
readPrec :: ReadPrec ImportPlaybackKeyPair
$creadPrec :: ReadPrec ImportPlaybackKeyPair
readList :: ReadS [ImportPlaybackKeyPair]
$creadList :: ReadS [ImportPlaybackKeyPair]
readsPrec :: Int -> ReadS ImportPlaybackKeyPair
$creadsPrec :: Int -> ReadS ImportPlaybackKeyPair
Prelude.Read, Int -> ImportPlaybackKeyPair -> ShowS
[ImportPlaybackKeyPair] -> ShowS
ImportPlaybackKeyPair -> String
(Int -> ImportPlaybackKeyPair -> ShowS)
-> (ImportPlaybackKeyPair -> String)
-> ([ImportPlaybackKeyPair] -> ShowS)
-> Show ImportPlaybackKeyPair
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ImportPlaybackKeyPair] -> ShowS
$cshowList :: [ImportPlaybackKeyPair] -> ShowS
show :: ImportPlaybackKeyPair -> String
$cshow :: ImportPlaybackKeyPair -> String
showsPrec :: Int -> ImportPlaybackKeyPair -> ShowS
$cshowsPrec :: Int -> ImportPlaybackKeyPair -> ShowS
Prelude.Show, (forall x. ImportPlaybackKeyPair -> Rep ImportPlaybackKeyPair x)
-> (forall x. Rep ImportPlaybackKeyPair x -> ImportPlaybackKeyPair)
-> Generic ImportPlaybackKeyPair
forall x. Rep ImportPlaybackKeyPair x -> ImportPlaybackKeyPair
forall x. ImportPlaybackKeyPair -> Rep ImportPlaybackKeyPair x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ImportPlaybackKeyPair x -> ImportPlaybackKeyPair
$cfrom :: forall x. ImportPlaybackKeyPair -> Rep ImportPlaybackKeyPair x
Prelude.Generic)
newImportPlaybackKeyPair ::
Prelude.Text ->
ImportPlaybackKeyPair
newImportPlaybackKeyPair :: Text -> ImportPlaybackKeyPair
newImportPlaybackKeyPair Text
pPublicKeyMaterial_ =
ImportPlaybackKeyPair' :: Maybe Text
-> Maybe (HashMap Text Text) -> Text -> ImportPlaybackKeyPair
ImportPlaybackKeyPair'
{ $sel:name:ImportPlaybackKeyPair' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:ImportPlaybackKeyPair' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:publicKeyMaterial:ImportPlaybackKeyPair' :: Text
publicKeyMaterial = Text
pPublicKeyMaterial_
}
importPlaybackKeyPair_name :: Lens.Lens' ImportPlaybackKeyPair (Prelude.Maybe Prelude.Text)
importPlaybackKeyPair_name :: (Maybe Text -> f (Maybe Text))
-> ImportPlaybackKeyPair -> f ImportPlaybackKeyPair
importPlaybackKeyPair_name = (ImportPlaybackKeyPair -> Maybe Text)
-> (ImportPlaybackKeyPair -> Maybe Text -> ImportPlaybackKeyPair)
-> Lens
ImportPlaybackKeyPair
ImportPlaybackKeyPair
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportPlaybackKeyPair' {Maybe Text
name :: Maybe Text
$sel:name:ImportPlaybackKeyPair' :: ImportPlaybackKeyPair -> Maybe Text
name} -> Maybe Text
name) (\s :: ImportPlaybackKeyPair
s@ImportPlaybackKeyPair' {} Maybe Text
a -> ImportPlaybackKeyPair
s {$sel:name:ImportPlaybackKeyPair' :: Maybe Text
name = Maybe Text
a} :: ImportPlaybackKeyPair)
importPlaybackKeyPair_tags :: Lens.Lens' ImportPlaybackKeyPair (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
importPlaybackKeyPair_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> ImportPlaybackKeyPair -> f ImportPlaybackKeyPair
importPlaybackKeyPair_tags = (ImportPlaybackKeyPair -> Maybe (HashMap Text Text))
-> (ImportPlaybackKeyPair
-> Maybe (HashMap Text Text) -> ImportPlaybackKeyPair)
-> Lens
ImportPlaybackKeyPair
ImportPlaybackKeyPair
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportPlaybackKeyPair' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:ImportPlaybackKeyPair' :: ImportPlaybackKeyPair -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: ImportPlaybackKeyPair
s@ImportPlaybackKeyPair' {} Maybe (HashMap Text Text)
a -> ImportPlaybackKeyPair
s {$sel:tags:ImportPlaybackKeyPair' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: ImportPlaybackKeyPair) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> ImportPlaybackKeyPair -> f ImportPlaybackKeyPair)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> ImportPlaybackKeyPair
-> f ImportPlaybackKeyPair
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
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
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
importPlaybackKeyPair_publicKeyMaterial :: Lens.Lens' ImportPlaybackKeyPair Prelude.Text
importPlaybackKeyPair_publicKeyMaterial :: (Text -> f Text)
-> ImportPlaybackKeyPair -> f ImportPlaybackKeyPair
importPlaybackKeyPair_publicKeyMaterial = (ImportPlaybackKeyPair -> Text)
-> (ImportPlaybackKeyPair -> Text -> ImportPlaybackKeyPair)
-> Lens ImportPlaybackKeyPair ImportPlaybackKeyPair Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportPlaybackKeyPair' {Text
publicKeyMaterial :: Text
$sel:publicKeyMaterial:ImportPlaybackKeyPair' :: ImportPlaybackKeyPair -> Text
publicKeyMaterial} -> Text
publicKeyMaterial) (\s :: ImportPlaybackKeyPair
s@ImportPlaybackKeyPair' {} Text
a -> ImportPlaybackKeyPair
s {$sel:publicKeyMaterial:ImportPlaybackKeyPair' :: Text
publicKeyMaterial = Text
a} :: ImportPlaybackKeyPair)
instance Core.AWSRequest ImportPlaybackKeyPair where
type
AWSResponse ImportPlaybackKeyPair =
ImportPlaybackKeyPairResponse
request :: ImportPlaybackKeyPair -> Request ImportPlaybackKeyPair
request = Service -> ImportPlaybackKeyPair -> Request ImportPlaybackKeyPair
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ImportPlaybackKeyPair
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ImportPlaybackKeyPair)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ImportPlaybackKeyPair))
-> Logger
-> Service
-> Proxy ImportPlaybackKeyPair
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ImportPlaybackKeyPair)))
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 PlaybackKeyPair -> Int -> ImportPlaybackKeyPairResponse
ImportPlaybackKeyPairResponse'
(Maybe PlaybackKeyPair -> Int -> ImportPlaybackKeyPairResponse)
-> Either String (Maybe PlaybackKeyPair)
-> Either String (Int -> ImportPlaybackKeyPairResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe PlaybackKeyPair)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"keyPair")
Either String (Int -> ImportPlaybackKeyPairResponse)
-> Either String Int -> Either String ImportPlaybackKeyPairResponse
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 ImportPlaybackKeyPair
instance Prelude.NFData ImportPlaybackKeyPair
instance Core.ToHeaders ImportPlaybackKeyPair where
toHeaders :: ImportPlaybackKeyPair -> ResponseHeaders
toHeaders =
ResponseHeaders -> ImportPlaybackKeyPair -> 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 ImportPlaybackKeyPair where
toJSON :: ImportPlaybackKeyPair -> Value
toJSON ImportPlaybackKeyPair' {Maybe Text
Maybe (HashMap Text Text)
Text
publicKeyMaterial :: Text
tags :: Maybe (HashMap Text Text)
name :: Maybe Text
$sel:publicKeyMaterial:ImportPlaybackKeyPair' :: ImportPlaybackKeyPair -> Text
$sel:tags:ImportPlaybackKeyPair' :: ImportPlaybackKeyPair -> Maybe (HashMap Text Text)
$sel:name:ImportPlaybackKeyPair' :: ImportPlaybackKeyPair -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"name" 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
name,
(Text
"tags" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
tags,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"publicKeyMaterial" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
publicKeyMaterial)
]
)
instance Core.ToPath ImportPlaybackKeyPair where
toPath :: ImportPlaybackKeyPair -> ByteString
toPath = ByteString -> ImportPlaybackKeyPair -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/ImportPlaybackKeyPair"
instance Core.ToQuery ImportPlaybackKeyPair where
toQuery :: ImportPlaybackKeyPair -> QueryString
toQuery = QueryString -> ImportPlaybackKeyPair -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ImportPlaybackKeyPairResponse = ImportPlaybackKeyPairResponse'
{ ImportPlaybackKeyPairResponse -> Maybe PlaybackKeyPair
keyPair :: Prelude.Maybe PlaybackKeyPair,
ImportPlaybackKeyPairResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ImportPlaybackKeyPairResponse
-> ImportPlaybackKeyPairResponse -> Bool
(ImportPlaybackKeyPairResponse
-> ImportPlaybackKeyPairResponse -> Bool)
-> (ImportPlaybackKeyPairResponse
-> ImportPlaybackKeyPairResponse -> Bool)
-> Eq ImportPlaybackKeyPairResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ImportPlaybackKeyPairResponse
-> ImportPlaybackKeyPairResponse -> Bool
$c/= :: ImportPlaybackKeyPairResponse
-> ImportPlaybackKeyPairResponse -> Bool
== :: ImportPlaybackKeyPairResponse
-> ImportPlaybackKeyPairResponse -> Bool
$c== :: ImportPlaybackKeyPairResponse
-> ImportPlaybackKeyPairResponse -> Bool
Prelude.Eq, ReadPrec [ImportPlaybackKeyPairResponse]
ReadPrec ImportPlaybackKeyPairResponse
Int -> ReadS ImportPlaybackKeyPairResponse
ReadS [ImportPlaybackKeyPairResponse]
(Int -> ReadS ImportPlaybackKeyPairResponse)
-> ReadS [ImportPlaybackKeyPairResponse]
-> ReadPrec ImportPlaybackKeyPairResponse
-> ReadPrec [ImportPlaybackKeyPairResponse]
-> Read ImportPlaybackKeyPairResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ImportPlaybackKeyPairResponse]
$creadListPrec :: ReadPrec [ImportPlaybackKeyPairResponse]
readPrec :: ReadPrec ImportPlaybackKeyPairResponse
$creadPrec :: ReadPrec ImportPlaybackKeyPairResponse
readList :: ReadS [ImportPlaybackKeyPairResponse]
$creadList :: ReadS [ImportPlaybackKeyPairResponse]
readsPrec :: Int -> ReadS ImportPlaybackKeyPairResponse
$creadsPrec :: Int -> ReadS ImportPlaybackKeyPairResponse
Prelude.Read, Int -> ImportPlaybackKeyPairResponse -> ShowS
[ImportPlaybackKeyPairResponse] -> ShowS
ImportPlaybackKeyPairResponse -> String
(Int -> ImportPlaybackKeyPairResponse -> ShowS)
-> (ImportPlaybackKeyPairResponse -> String)
-> ([ImportPlaybackKeyPairResponse] -> ShowS)
-> Show ImportPlaybackKeyPairResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ImportPlaybackKeyPairResponse] -> ShowS
$cshowList :: [ImportPlaybackKeyPairResponse] -> ShowS
show :: ImportPlaybackKeyPairResponse -> String
$cshow :: ImportPlaybackKeyPairResponse -> String
showsPrec :: Int -> ImportPlaybackKeyPairResponse -> ShowS
$cshowsPrec :: Int -> ImportPlaybackKeyPairResponse -> ShowS
Prelude.Show, (forall x.
ImportPlaybackKeyPairResponse
-> Rep ImportPlaybackKeyPairResponse x)
-> (forall x.
Rep ImportPlaybackKeyPairResponse x
-> ImportPlaybackKeyPairResponse)
-> Generic ImportPlaybackKeyPairResponse
forall x.
Rep ImportPlaybackKeyPairResponse x
-> ImportPlaybackKeyPairResponse
forall x.
ImportPlaybackKeyPairResponse
-> Rep ImportPlaybackKeyPairResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ImportPlaybackKeyPairResponse x
-> ImportPlaybackKeyPairResponse
$cfrom :: forall x.
ImportPlaybackKeyPairResponse
-> Rep ImportPlaybackKeyPairResponse x
Prelude.Generic)
newImportPlaybackKeyPairResponse ::
Prelude.Int ->
ImportPlaybackKeyPairResponse
newImportPlaybackKeyPairResponse :: Int -> ImportPlaybackKeyPairResponse
newImportPlaybackKeyPairResponse Int
pHttpStatus_ =
ImportPlaybackKeyPairResponse' :: Maybe PlaybackKeyPair -> Int -> ImportPlaybackKeyPairResponse
ImportPlaybackKeyPairResponse'
{ $sel:keyPair:ImportPlaybackKeyPairResponse' :: Maybe PlaybackKeyPair
keyPair =
Maybe PlaybackKeyPair
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ImportPlaybackKeyPairResponse' :: Int
httpStatus = Int
pHttpStatus_
}
importPlaybackKeyPairResponse_keyPair :: Lens.Lens' ImportPlaybackKeyPairResponse (Prelude.Maybe PlaybackKeyPair)
importPlaybackKeyPairResponse_keyPair :: (Maybe PlaybackKeyPair -> f (Maybe PlaybackKeyPair))
-> ImportPlaybackKeyPairResponse -> f ImportPlaybackKeyPairResponse
importPlaybackKeyPairResponse_keyPair = (ImportPlaybackKeyPairResponse -> Maybe PlaybackKeyPair)
-> (ImportPlaybackKeyPairResponse
-> Maybe PlaybackKeyPair -> ImportPlaybackKeyPairResponse)
-> Lens
ImportPlaybackKeyPairResponse
ImportPlaybackKeyPairResponse
(Maybe PlaybackKeyPair)
(Maybe PlaybackKeyPair)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportPlaybackKeyPairResponse' {Maybe PlaybackKeyPair
keyPair :: Maybe PlaybackKeyPair
$sel:keyPair:ImportPlaybackKeyPairResponse' :: ImportPlaybackKeyPairResponse -> Maybe PlaybackKeyPair
keyPair} -> Maybe PlaybackKeyPair
keyPair) (\s :: ImportPlaybackKeyPairResponse
s@ImportPlaybackKeyPairResponse' {} Maybe PlaybackKeyPair
a -> ImportPlaybackKeyPairResponse
s {$sel:keyPair:ImportPlaybackKeyPairResponse' :: Maybe PlaybackKeyPair
keyPair = Maybe PlaybackKeyPair
a} :: ImportPlaybackKeyPairResponse)
importPlaybackKeyPairResponse_httpStatus :: Lens.Lens' ImportPlaybackKeyPairResponse Prelude.Int
importPlaybackKeyPairResponse_httpStatus :: (Int -> f Int)
-> ImportPlaybackKeyPairResponse -> f ImportPlaybackKeyPairResponse
importPlaybackKeyPairResponse_httpStatus = (ImportPlaybackKeyPairResponse -> Int)
-> (ImportPlaybackKeyPairResponse
-> Int -> ImportPlaybackKeyPairResponse)
-> Lens
ImportPlaybackKeyPairResponse ImportPlaybackKeyPairResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportPlaybackKeyPairResponse' {Int
httpStatus :: Int
$sel:httpStatus:ImportPlaybackKeyPairResponse' :: ImportPlaybackKeyPairResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ImportPlaybackKeyPairResponse
s@ImportPlaybackKeyPairResponse' {} Int
a -> ImportPlaybackKeyPairResponse
s {$sel:httpStatus:ImportPlaybackKeyPairResponse' :: Int
httpStatus = Int
a} :: ImportPlaybackKeyPairResponse)
instance Prelude.NFData ImportPlaybackKeyPairResponse