{-# 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.CloudHSM.DescribeLunaClient
(
DescribeLunaClient (..),
newDescribeLunaClient,
describeLunaClient_clientArn,
describeLunaClient_certificateFingerprint,
DescribeLunaClientResponse (..),
newDescribeLunaClientResponse,
describeLunaClientResponse_clientArn,
describeLunaClientResponse_lastModifiedTimestamp,
describeLunaClientResponse_certificateFingerprint,
describeLunaClientResponse_certificate,
describeLunaClientResponse_label,
describeLunaClientResponse_httpStatus,
)
where
import Amazonka.CloudHSM.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
data DescribeLunaClient = DescribeLunaClient'
{
DescribeLunaClient -> Maybe Text
clientArn :: Prelude.Maybe Prelude.Text,
DescribeLunaClient -> Maybe Text
certificateFingerprint :: Prelude.Maybe Prelude.Text
}
deriving (DescribeLunaClient -> DescribeLunaClient -> Bool
(DescribeLunaClient -> DescribeLunaClient -> Bool)
-> (DescribeLunaClient -> DescribeLunaClient -> Bool)
-> Eq DescribeLunaClient
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeLunaClient -> DescribeLunaClient -> Bool
$c/= :: DescribeLunaClient -> DescribeLunaClient -> Bool
== :: DescribeLunaClient -> DescribeLunaClient -> Bool
$c== :: DescribeLunaClient -> DescribeLunaClient -> Bool
Prelude.Eq, ReadPrec [DescribeLunaClient]
ReadPrec DescribeLunaClient
Int -> ReadS DescribeLunaClient
ReadS [DescribeLunaClient]
(Int -> ReadS DescribeLunaClient)
-> ReadS [DescribeLunaClient]
-> ReadPrec DescribeLunaClient
-> ReadPrec [DescribeLunaClient]
-> Read DescribeLunaClient
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeLunaClient]
$creadListPrec :: ReadPrec [DescribeLunaClient]
readPrec :: ReadPrec DescribeLunaClient
$creadPrec :: ReadPrec DescribeLunaClient
readList :: ReadS [DescribeLunaClient]
$creadList :: ReadS [DescribeLunaClient]
readsPrec :: Int -> ReadS DescribeLunaClient
$creadsPrec :: Int -> ReadS DescribeLunaClient
Prelude.Read, Int -> DescribeLunaClient -> ShowS
[DescribeLunaClient] -> ShowS
DescribeLunaClient -> String
(Int -> DescribeLunaClient -> ShowS)
-> (DescribeLunaClient -> String)
-> ([DescribeLunaClient] -> ShowS)
-> Show DescribeLunaClient
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeLunaClient] -> ShowS
$cshowList :: [DescribeLunaClient] -> ShowS
show :: DescribeLunaClient -> String
$cshow :: DescribeLunaClient -> String
showsPrec :: Int -> DescribeLunaClient -> ShowS
$cshowsPrec :: Int -> DescribeLunaClient -> ShowS
Prelude.Show, (forall x. DescribeLunaClient -> Rep DescribeLunaClient x)
-> (forall x. Rep DescribeLunaClient x -> DescribeLunaClient)
-> Generic DescribeLunaClient
forall x. Rep DescribeLunaClient x -> DescribeLunaClient
forall x. DescribeLunaClient -> Rep DescribeLunaClient x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeLunaClient x -> DescribeLunaClient
$cfrom :: forall x. DescribeLunaClient -> Rep DescribeLunaClient x
Prelude.Generic)
newDescribeLunaClient ::
DescribeLunaClient
newDescribeLunaClient :: DescribeLunaClient
newDescribeLunaClient =
DescribeLunaClient' :: Maybe Text -> Maybe Text -> DescribeLunaClient
DescribeLunaClient'
{ $sel:clientArn:DescribeLunaClient' :: Maybe Text
clientArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:certificateFingerprint:DescribeLunaClient' :: Maybe Text
certificateFingerprint = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
describeLunaClient_clientArn :: Lens.Lens' DescribeLunaClient (Prelude.Maybe Prelude.Text)
describeLunaClient_clientArn :: (Maybe Text -> f (Maybe Text))
-> DescribeLunaClient -> f DescribeLunaClient
describeLunaClient_clientArn = (DescribeLunaClient -> Maybe Text)
-> (DescribeLunaClient -> Maybe Text -> DescribeLunaClient)
-> Lens
DescribeLunaClient DescribeLunaClient (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLunaClient' {Maybe Text
clientArn :: Maybe Text
$sel:clientArn:DescribeLunaClient' :: DescribeLunaClient -> Maybe Text
clientArn} -> Maybe Text
clientArn) (\s :: DescribeLunaClient
s@DescribeLunaClient' {} Maybe Text
a -> DescribeLunaClient
s {$sel:clientArn:DescribeLunaClient' :: Maybe Text
clientArn = Maybe Text
a} :: DescribeLunaClient)
describeLunaClient_certificateFingerprint :: Lens.Lens' DescribeLunaClient (Prelude.Maybe Prelude.Text)
describeLunaClient_certificateFingerprint :: (Maybe Text -> f (Maybe Text))
-> DescribeLunaClient -> f DescribeLunaClient
describeLunaClient_certificateFingerprint = (DescribeLunaClient -> Maybe Text)
-> (DescribeLunaClient -> Maybe Text -> DescribeLunaClient)
-> Lens
DescribeLunaClient DescribeLunaClient (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLunaClient' {Maybe Text
certificateFingerprint :: Maybe Text
$sel:certificateFingerprint:DescribeLunaClient' :: DescribeLunaClient -> Maybe Text
certificateFingerprint} -> Maybe Text
certificateFingerprint) (\s :: DescribeLunaClient
s@DescribeLunaClient' {} Maybe Text
a -> DescribeLunaClient
s {$sel:certificateFingerprint:DescribeLunaClient' :: Maybe Text
certificateFingerprint = Maybe Text
a} :: DescribeLunaClient)
instance Core.AWSRequest DescribeLunaClient where
type
AWSResponse DescribeLunaClient =
DescribeLunaClientResponse
request :: DescribeLunaClient -> Request DescribeLunaClient
request = Service -> DescribeLunaClient -> Request DescribeLunaClient
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeLunaClient
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeLunaClient)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeLunaClient))
-> Logger
-> Service
-> Proxy DescribeLunaClient
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeLunaClient)))
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
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeLunaClientResponse
DescribeLunaClientResponse'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeLunaClientResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeLunaClientResponse)
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
"ClientArn")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeLunaClientResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text -> Maybe Text -> Int -> DescribeLunaClientResponse)
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
"LastModifiedTimestamp")
Either
String
(Maybe Text
-> Maybe Text -> Maybe Text -> Int -> DescribeLunaClientResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text -> Maybe Text -> Int -> DescribeLunaClientResponse)
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
"CertificateFingerprint")
Either
String
(Maybe Text -> Maybe Text -> Int -> DescribeLunaClientResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> DescribeLunaClientResponse)
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
"Certificate")
Either String (Maybe Text -> Int -> DescribeLunaClientResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeLunaClientResponse)
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
"Label")
Either String (Int -> DescribeLunaClientResponse)
-> Either String Int -> Either String DescribeLunaClientResponse
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 DescribeLunaClient
instance Prelude.NFData DescribeLunaClient
instance Core.ToHeaders DescribeLunaClient where
toHeaders :: DescribeLunaClient -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeLunaClient -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"CloudHsmFrontendService.DescribeLunaClient" ::
Prelude.ByteString
),
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 DescribeLunaClient where
toJSON :: DescribeLunaClient -> Value
toJSON DescribeLunaClient' {Maybe Text
certificateFingerprint :: Maybe Text
clientArn :: Maybe Text
$sel:certificateFingerprint:DescribeLunaClient' :: DescribeLunaClient -> Maybe Text
$sel:clientArn:DescribeLunaClient' :: DescribeLunaClient -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"ClientArn" 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
clientArn,
(Text
"CertificateFingerprint" 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
certificateFingerprint
]
)
instance Core.ToPath DescribeLunaClient where
toPath :: DescribeLunaClient -> ByteString
toPath = ByteString -> DescribeLunaClient -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeLunaClient where
toQuery :: DescribeLunaClient -> QueryString
toQuery = QueryString -> DescribeLunaClient -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeLunaClientResponse = DescribeLunaClientResponse'
{
DescribeLunaClientResponse -> Maybe Text
clientArn :: Prelude.Maybe Prelude.Text,
DescribeLunaClientResponse -> Maybe Text
lastModifiedTimestamp :: Prelude.Maybe Prelude.Text,
DescribeLunaClientResponse -> Maybe Text
certificateFingerprint :: Prelude.Maybe Prelude.Text,
DescribeLunaClientResponse -> Maybe Text
certificate :: Prelude.Maybe Prelude.Text,
DescribeLunaClientResponse -> Maybe Text
label :: Prelude.Maybe Prelude.Text,
DescribeLunaClientResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeLunaClientResponse -> DescribeLunaClientResponse -> Bool
(DescribeLunaClientResponse -> DescribeLunaClientResponse -> Bool)
-> (DescribeLunaClientResponse
-> DescribeLunaClientResponse -> Bool)
-> Eq DescribeLunaClientResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeLunaClientResponse -> DescribeLunaClientResponse -> Bool
$c/= :: DescribeLunaClientResponse -> DescribeLunaClientResponse -> Bool
== :: DescribeLunaClientResponse -> DescribeLunaClientResponse -> Bool
$c== :: DescribeLunaClientResponse -> DescribeLunaClientResponse -> Bool
Prelude.Eq, ReadPrec [DescribeLunaClientResponse]
ReadPrec DescribeLunaClientResponse
Int -> ReadS DescribeLunaClientResponse
ReadS [DescribeLunaClientResponse]
(Int -> ReadS DescribeLunaClientResponse)
-> ReadS [DescribeLunaClientResponse]
-> ReadPrec DescribeLunaClientResponse
-> ReadPrec [DescribeLunaClientResponse]
-> Read DescribeLunaClientResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeLunaClientResponse]
$creadListPrec :: ReadPrec [DescribeLunaClientResponse]
readPrec :: ReadPrec DescribeLunaClientResponse
$creadPrec :: ReadPrec DescribeLunaClientResponse
readList :: ReadS [DescribeLunaClientResponse]
$creadList :: ReadS [DescribeLunaClientResponse]
readsPrec :: Int -> ReadS DescribeLunaClientResponse
$creadsPrec :: Int -> ReadS DescribeLunaClientResponse
Prelude.Read, Int -> DescribeLunaClientResponse -> ShowS
[DescribeLunaClientResponse] -> ShowS
DescribeLunaClientResponse -> String
(Int -> DescribeLunaClientResponse -> ShowS)
-> (DescribeLunaClientResponse -> String)
-> ([DescribeLunaClientResponse] -> ShowS)
-> Show DescribeLunaClientResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeLunaClientResponse] -> ShowS
$cshowList :: [DescribeLunaClientResponse] -> ShowS
show :: DescribeLunaClientResponse -> String
$cshow :: DescribeLunaClientResponse -> String
showsPrec :: Int -> DescribeLunaClientResponse -> ShowS
$cshowsPrec :: Int -> DescribeLunaClientResponse -> ShowS
Prelude.Show, (forall x.
DescribeLunaClientResponse -> Rep DescribeLunaClientResponse x)
-> (forall x.
Rep DescribeLunaClientResponse x -> DescribeLunaClientResponse)
-> Generic DescribeLunaClientResponse
forall x.
Rep DescribeLunaClientResponse x -> DescribeLunaClientResponse
forall x.
DescribeLunaClientResponse -> Rep DescribeLunaClientResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeLunaClientResponse x -> DescribeLunaClientResponse
$cfrom :: forall x.
DescribeLunaClientResponse -> Rep DescribeLunaClientResponse x
Prelude.Generic)
newDescribeLunaClientResponse ::
Prelude.Int ->
DescribeLunaClientResponse
newDescribeLunaClientResponse :: Int -> DescribeLunaClientResponse
newDescribeLunaClientResponse Int
pHttpStatus_ =
DescribeLunaClientResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeLunaClientResponse
DescribeLunaClientResponse'
{ $sel:clientArn:DescribeLunaClientResponse' :: Maybe Text
clientArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastModifiedTimestamp:DescribeLunaClientResponse' :: Maybe Text
lastModifiedTimestamp = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:certificateFingerprint:DescribeLunaClientResponse' :: Maybe Text
certificateFingerprint = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:certificate:DescribeLunaClientResponse' :: Maybe Text
certificate = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:label:DescribeLunaClientResponse' :: Maybe Text
label = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeLunaClientResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeLunaClientResponse_clientArn :: Lens.Lens' DescribeLunaClientResponse (Prelude.Maybe Prelude.Text)
describeLunaClientResponse_clientArn :: (Maybe Text -> f (Maybe Text))
-> DescribeLunaClientResponse -> f DescribeLunaClientResponse
describeLunaClientResponse_clientArn = (DescribeLunaClientResponse -> Maybe Text)
-> (DescribeLunaClientResponse
-> Maybe Text -> DescribeLunaClientResponse)
-> Lens
DescribeLunaClientResponse
DescribeLunaClientResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLunaClientResponse' {Maybe Text
clientArn :: Maybe Text
$sel:clientArn:DescribeLunaClientResponse' :: DescribeLunaClientResponse -> Maybe Text
clientArn} -> Maybe Text
clientArn) (\s :: DescribeLunaClientResponse
s@DescribeLunaClientResponse' {} Maybe Text
a -> DescribeLunaClientResponse
s {$sel:clientArn:DescribeLunaClientResponse' :: Maybe Text
clientArn = Maybe Text
a} :: DescribeLunaClientResponse)
describeLunaClientResponse_lastModifiedTimestamp :: Lens.Lens' DescribeLunaClientResponse (Prelude.Maybe Prelude.Text)
describeLunaClientResponse_lastModifiedTimestamp :: (Maybe Text -> f (Maybe Text))
-> DescribeLunaClientResponse -> f DescribeLunaClientResponse
describeLunaClientResponse_lastModifiedTimestamp = (DescribeLunaClientResponse -> Maybe Text)
-> (DescribeLunaClientResponse
-> Maybe Text -> DescribeLunaClientResponse)
-> Lens
DescribeLunaClientResponse
DescribeLunaClientResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLunaClientResponse' {Maybe Text
lastModifiedTimestamp :: Maybe Text
$sel:lastModifiedTimestamp:DescribeLunaClientResponse' :: DescribeLunaClientResponse -> Maybe Text
lastModifiedTimestamp} -> Maybe Text
lastModifiedTimestamp) (\s :: DescribeLunaClientResponse
s@DescribeLunaClientResponse' {} Maybe Text
a -> DescribeLunaClientResponse
s {$sel:lastModifiedTimestamp:DescribeLunaClientResponse' :: Maybe Text
lastModifiedTimestamp = Maybe Text
a} :: DescribeLunaClientResponse)
describeLunaClientResponse_certificateFingerprint :: Lens.Lens' DescribeLunaClientResponse (Prelude.Maybe Prelude.Text)
describeLunaClientResponse_certificateFingerprint :: (Maybe Text -> f (Maybe Text))
-> DescribeLunaClientResponse -> f DescribeLunaClientResponse
describeLunaClientResponse_certificateFingerprint = (DescribeLunaClientResponse -> Maybe Text)
-> (DescribeLunaClientResponse
-> Maybe Text -> DescribeLunaClientResponse)
-> Lens
DescribeLunaClientResponse
DescribeLunaClientResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLunaClientResponse' {Maybe Text
certificateFingerprint :: Maybe Text
$sel:certificateFingerprint:DescribeLunaClientResponse' :: DescribeLunaClientResponse -> Maybe Text
certificateFingerprint} -> Maybe Text
certificateFingerprint) (\s :: DescribeLunaClientResponse
s@DescribeLunaClientResponse' {} Maybe Text
a -> DescribeLunaClientResponse
s {$sel:certificateFingerprint:DescribeLunaClientResponse' :: Maybe Text
certificateFingerprint = Maybe Text
a} :: DescribeLunaClientResponse)
describeLunaClientResponse_certificate :: Lens.Lens' DescribeLunaClientResponse (Prelude.Maybe Prelude.Text)
describeLunaClientResponse_certificate :: (Maybe Text -> f (Maybe Text))
-> DescribeLunaClientResponse -> f DescribeLunaClientResponse
describeLunaClientResponse_certificate = (DescribeLunaClientResponse -> Maybe Text)
-> (DescribeLunaClientResponse
-> Maybe Text -> DescribeLunaClientResponse)
-> Lens
DescribeLunaClientResponse
DescribeLunaClientResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLunaClientResponse' {Maybe Text
certificate :: Maybe Text
$sel:certificate:DescribeLunaClientResponse' :: DescribeLunaClientResponse -> Maybe Text
certificate} -> Maybe Text
certificate) (\s :: DescribeLunaClientResponse
s@DescribeLunaClientResponse' {} Maybe Text
a -> DescribeLunaClientResponse
s {$sel:certificate:DescribeLunaClientResponse' :: Maybe Text
certificate = Maybe Text
a} :: DescribeLunaClientResponse)
describeLunaClientResponse_label :: Lens.Lens' DescribeLunaClientResponse (Prelude.Maybe Prelude.Text)
describeLunaClientResponse_label :: (Maybe Text -> f (Maybe Text))
-> DescribeLunaClientResponse -> f DescribeLunaClientResponse
describeLunaClientResponse_label = (DescribeLunaClientResponse -> Maybe Text)
-> (DescribeLunaClientResponse
-> Maybe Text -> DescribeLunaClientResponse)
-> Lens
DescribeLunaClientResponse
DescribeLunaClientResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLunaClientResponse' {Maybe Text
label :: Maybe Text
$sel:label:DescribeLunaClientResponse' :: DescribeLunaClientResponse -> Maybe Text
label} -> Maybe Text
label) (\s :: DescribeLunaClientResponse
s@DescribeLunaClientResponse' {} Maybe Text
a -> DescribeLunaClientResponse
s {$sel:label:DescribeLunaClientResponse' :: Maybe Text
label = Maybe Text
a} :: DescribeLunaClientResponse)
describeLunaClientResponse_httpStatus :: Lens.Lens' DescribeLunaClientResponse Prelude.Int
describeLunaClientResponse_httpStatus :: (Int -> f Int)
-> DescribeLunaClientResponse -> f DescribeLunaClientResponse
describeLunaClientResponse_httpStatus = (DescribeLunaClientResponse -> Int)
-> (DescribeLunaClientResponse
-> Int -> DescribeLunaClientResponse)
-> Lens
DescribeLunaClientResponse DescribeLunaClientResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLunaClientResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeLunaClientResponse' :: DescribeLunaClientResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeLunaClientResponse
s@DescribeLunaClientResponse' {} Int
a -> DescribeLunaClientResponse
s {$sel:httpStatus:DescribeLunaClientResponse' :: Int
httpStatus = Int
a} :: DescribeLunaClientResponse)
instance Prelude.NFData DescribeLunaClientResponse