{-# 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.IoTThingsGraph.DescribeNamespace
(
DescribeNamespace (..),
newDescribeNamespace,
describeNamespace_namespaceName,
DescribeNamespaceResponse (..),
newDescribeNamespaceResponse,
describeNamespaceResponse_namespaceArn,
describeNamespaceResponse_trackingNamespaceVersion,
describeNamespaceResponse_namespaceVersion,
describeNamespaceResponse_namespaceName,
describeNamespaceResponse_trackingNamespaceName,
describeNamespaceResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.IoTThingsGraph.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 DescribeNamespace = DescribeNamespace'
{
DescribeNamespace -> Maybe Text
namespaceName :: Prelude.Maybe Prelude.Text
}
deriving (DescribeNamespace -> DescribeNamespace -> Bool
(DescribeNamespace -> DescribeNamespace -> Bool)
-> (DescribeNamespace -> DescribeNamespace -> Bool)
-> Eq DescribeNamespace
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeNamespace -> DescribeNamespace -> Bool
$c/= :: DescribeNamespace -> DescribeNamespace -> Bool
== :: DescribeNamespace -> DescribeNamespace -> Bool
$c== :: DescribeNamespace -> DescribeNamespace -> Bool
Prelude.Eq, ReadPrec [DescribeNamespace]
ReadPrec DescribeNamespace
Int -> ReadS DescribeNamespace
ReadS [DescribeNamespace]
(Int -> ReadS DescribeNamespace)
-> ReadS [DescribeNamespace]
-> ReadPrec DescribeNamespace
-> ReadPrec [DescribeNamespace]
-> Read DescribeNamespace
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeNamespace]
$creadListPrec :: ReadPrec [DescribeNamespace]
readPrec :: ReadPrec DescribeNamespace
$creadPrec :: ReadPrec DescribeNamespace
readList :: ReadS [DescribeNamespace]
$creadList :: ReadS [DescribeNamespace]
readsPrec :: Int -> ReadS DescribeNamespace
$creadsPrec :: Int -> ReadS DescribeNamespace
Prelude.Read, Int -> DescribeNamespace -> ShowS
[DescribeNamespace] -> ShowS
DescribeNamespace -> String
(Int -> DescribeNamespace -> ShowS)
-> (DescribeNamespace -> String)
-> ([DescribeNamespace] -> ShowS)
-> Show DescribeNamespace
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeNamespace] -> ShowS
$cshowList :: [DescribeNamespace] -> ShowS
show :: DescribeNamespace -> String
$cshow :: DescribeNamespace -> String
showsPrec :: Int -> DescribeNamespace -> ShowS
$cshowsPrec :: Int -> DescribeNamespace -> ShowS
Prelude.Show, (forall x. DescribeNamespace -> Rep DescribeNamespace x)
-> (forall x. Rep DescribeNamespace x -> DescribeNamespace)
-> Generic DescribeNamespace
forall x. Rep DescribeNamespace x -> DescribeNamespace
forall x. DescribeNamespace -> Rep DescribeNamespace x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeNamespace x -> DescribeNamespace
$cfrom :: forall x. DescribeNamespace -> Rep DescribeNamespace x
Prelude.Generic)
newDescribeNamespace ::
DescribeNamespace
newDescribeNamespace :: DescribeNamespace
newDescribeNamespace =
DescribeNamespace' :: Maybe Text -> DescribeNamespace
DescribeNamespace' {$sel:namespaceName:DescribeNamespace' :: Maybe Text
namespaceName = Maybe Text
forall a. Maybe a
Prelude.Nothing}
describeNamespace_namespaceName :: Lens.Lens' DescribeNamespace (Prelude.Maybe Prelude.Text)
describeNamespace_namespaceName :: (Maybe Text -> f (Maybe Text))
-> DescribeNamespace -> f DescribeNamespace
describeNamespace_namespaceName = (DescribeNamespace -> Maybe Text)
-> (DescribeNamespace -> Maybe Text -> DescribeNamespace)
-> Lens
DescribeNamespace DescribeNamespace (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNamespace' {Maybe Text
namespaceName :: Maybe Text
$sel:namespaceName:DescribeNamespace' :: DescribeNamespace -> Maybe Text
namespaceName} -> Maybe Text
namespaceName) (\s :: DescribeNamespace
s@DescribeNamespace' {} Maybe Text
a -> DescribeNamespace
s {$sel:namespaceName:DescribeNamespace' :: Maybe Text
namespaceName = Maybe Text
a} :: DescribeNamespace)
instance Core.AWSRequest DescribeNamespace where
type
AWSResponse DescribeNamespace =
DescribeNamespaceResponse
request :: DescribeNamespace -> Request DescribeNamespace
request = Service -> DescribeNamespace -> Request DescribeNamespace
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeNamespace
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeNamespace)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeNamespace))
-> Logger
-> Service
-> Proxy DescribeNamespace
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeNamespace)))
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 Integer
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeNamespaceResponse
DescribeNamespaceResponse'
(Maybe Text
-> Maybe Integer
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeNamespaceResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Integer
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeNamespaceResponse)
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
"namespaceArn")
Either
String
(Maybe Integer
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeNamespaceResponse)
-> Either String (Maybe Integer)
-> Either
String
(Maybe Integer
-> Maybe Text -> Maybe Text -> Int -> DescribeNamespaceResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"trackingNamespaceVersion")
Either
String
(Maybe Integer
-> Maybe Text -> Maybe Text -> Int -> DescribeNamespaceResponse)
-> Either String (Maybe Integer)
-> Either
String
(Maybe Text -> Maybe Text -> Int -> DescribeNamespaceResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"namespaceVersion")
Either
String
(Maybe Text -> Maybe Text -> Int -> DescribeNamespaceResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> DescribeNamespaceResponse)
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
"namespaceName")
Either String (Maybe Text -> Int -> DescribeNamespaceResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeNamespaceResponse)
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
"trackingNamespaceName")
Either String (Int -> DescribeNamespaceResponse)
-> Either String Int -> Either String DescribeNamespaceResponse
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 DescribeNamespace
instance Prelude.NFData DescribeNamespace
instance Core.ToHeaders DescribeNamespace where
toHeaders :: DescribeNamespace -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeNamespace -> 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
"IotThingsGraphFrontEndService.DescribeNamespace" ::
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 DescribeNamespace where
toJSON :: DescribeNamespace -> Value
toJSON DescribeNamespace' {Maybe Text
namespaceName :: Maybe Text
$sel:namespaceName:DescribeNamespace' :: DescribeNamespace -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"namespaceName" 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
namespaceName
]
)
instance Core.ToPath DescribeNamespace where
toPath :: DescribeNamespace -> ByteString
toPath = ByteString -> DescribeNamespace -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeNamespace where
toQuery :: DescribeNamespace -> QueryString
toQuery = QueryString -> DescribeNamespace -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeNamespaceResponse = DescribeNamespaceResponse'
{
DescribeNamespaceResponse -> Maybe Text
namespaceArn :: Prelude.Maybe Prelude.Text,
DescribeNamespaceResponse -> Maybe Integer
trackingNamespaceVersion :: Prelude.Maybe Prelude.Integer,
DescribeNamespaceResponse -> Maybe Integer
namespaceVersion :: Prelude.Maybe Prelude.Integer,
DescribeNamespaceResponse -> Maybe Text
namespaceName :: Prelude.Maybe Prelude.Text,
DescribeNamespaceResponse -> Maybe Text
trackingNamespaceName :: Prelude.Maybe Prelude.Text,
DescribeNamespaceResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeNamespaceResponse -> DescribeNamespaceResponse -> Bool
(DescribeNamespaceResponse -> DescribeNamespaceResponse -> Bool)
-> (DescribeNamespaceResponse -> DescribeNamespaceResponse -> Bool)
-> Eq DescribeNamespaceResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeNamespaceResponse -> DescribeNamespaceResponse -> Bool
$c/= :: DescribeNamespaceResponse -> DescribeNamespaceResponse -> Bool
== :: DescribeNamespaceResponse -> DescribeNamespaceResponse -> Bool
$c== :: DescribeNamespaceResponse -> DescribeNamespaceResponse -> Bool
Prelude.Eq, ReadPrec [DescribeNamespaceResponse]
ReadPrec DescribeNamespaceResponse
Int -> ReadS DescribeNamespaceResponse
ReadS [DescribeNamespaceResponse]
(Int -> ReadS DescribeNamespaceResponse)
-> ReadS [DescribeNamespaceResponse]
-> ReadPrec DescribeNamespaceResponse
-> ReadPrec [DescribeNamespaceResponse]
-> Read DescribeNamespaceResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeNamespaceResponse]
$creadListPrec :: ReadPrec [DescribeNamespaceResponse]
readPrec :: ReadPrec DescribeNamespaceResponse
$creadPrec :: ReadPrec DescribeNamespaceResponse
readList :: ReadS [DescribeNamespaceResponse]
$creadList :: ReadS [DescribeNamespaceResponse]
readsPrec :: Int -> ReadS DescribeNamespaceResponse
$creadsPrec :: Int -> ReadS DescribeNamespaceResponse
Prelude.Read, Int -> DescribeNamespaceResponse -> ShowS
[DescribeNamespaceResponse] -> ShowS
DescribeNamespaceResponse -> String
(Int -> DescribeNamespaceResponse -> ShowS)
-> (DescribeNamespaceResponse -> String)
-> ([DescribeNamespaceResponse] -> ShowS)
-> Show DescribeNamespaceResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeNamespaceResponse] -> ShowS
$cshowList :: [DescribeNamespaceResponse] -> ShowS
show :: DescribeNamespaceResponse -> String
$cshow :: DescribeNamespaceResponse -> String
showsPrec :: Int -> DescribeNamespaceResponse -> ShowS
$cshowsPrec :: Int -> DescribeNamespaceResponse -> ShowS
Prelude.Show, (forall x.
DescribeNamespaceResponse -> Rep DescribeNamespaceResponse x)
-> (forall x.
Rep DescribeNamespaceResponse x -> DescribeNamespaceResponse)
-> Generic DescribeNamespaceResponse
forall x.
Rep DescribeNamespaceResponse x -> DescribeNamespaceResponse
forall x.
DescribeNamespaceResponse -> Rep DescribeNamespaceResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeNamespaceResponse x -> DescribeNamespaceResponse
$cfrom :: forall x.
DescribeNamespaceResponse -> Rep DescribeNamespaceResponse x
Prelude.Generic)
newDescribeNamespaceResponse ::
Prelude.Int ->
DescribeNamespaceResponse
newDescribeNamespaceResponse :: Int -> DescribeNamespaceResponse
newDescribeNamespaceResponse Int
pHttpStatus_ =
DescribeNamespaceResponse' :: Maybe Text
-> Maybe Integer
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeNamespaceResponse
DescribeNamespaceResponse'
{ $sel:namespaceArn:DescribeNamespaceResponse' :: Maybe Text
namespaceArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:trackingNamespaceVersion:DescribeNamespaceResponse' :: Maybe Integer
trackingNamespaceVersion = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:namespaceVersion:DescribeNamespaceResponse' :: Maybe Integer
namespaceVersion = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:namespaceName:DescribeNamespaceResponse' :: Maybe Text
namespaceName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:trackingNamespaceName:DescribeNamespaceResponse' :: Maybe Text
trackingNamespaceName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeNamespaceResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeNamespaceResponse_namespaceArn :: Lens.Lens' DescribeNamespaceResponse (Prelude.Maybe Prelude.Text)
describeNamespaceResponse_namespaceArn :: (Maybe Text -> f (Maybe Text))
-> DescribeNamespaceResponse -> f DescribeNamespaceResponse
describeNamespaceResponse_namespaceArn = (DescribeNamespaceResponse -> Maybe Text)
-> (DescribeNamespaceResponse
-> Maybe Text -> DescribeNamespaceResponse)
-> Lens
DescribeNamespaceResponse
DescribeNamespaceResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNamespaceResponse' {Maybe Text
namespaceArn :: Maybe Text
$sel:namespaceArn:DescribeNamespaceResponse' :: DescribeNamespaceResponse -> Maybe Text
namespaceArn} -> Maybe Text
namespaceArn) (\s :: DescribeNamespaceResponse
s@DescribeNamespaceResponse' {} Maybe Text
a -> DescribeNamespaceResponse
s {$sel:namespaceArn:DescribeNamespaceResponse' :: Maybe Text
namespaceArn = Maybe Text
a} :: DescribeNamespaceResponse)
describeNamespaceResponse_trackingNamespaceVersion :: Lens.Lens' DescribeNamespaceResponse (Prelude.Maybe Prelude.Integer)
describeNamespaceResponse_trackingNamespaceVersion :: (Maybe Integer -> f (Maybe Integer))
-> DescribeNamespaceResponse -> f DescribeNamespaceResponse
describeNamespaceResponse_trackingNamespaceVersion = (DescribeNamespaceResponse -> Maybe Integer)
-> (DescribeNamespaceResponse
-> Maybe Integer -> DescribeNamespaceResponse)
-> Lens
DescribeNamespaceResponse
DescribeNamespaceResponse
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNamespaceResponse' {Maybe Integer
trackingNamespaceVersion :: Maybe Integer
$sel:trackingNamespaceVersion:DescribeNamespaceResponse' :: DescribeNamespaceResponse -> Maybe Integer
trackingNamespaceVersion} -> Maybe Integer
trackingNamespaceVersion) (\s :: DescribeNamespaceResponse
s@DescribeNamespaceResponse' {} Maybe Integer
a -> DescribeNamespaceResponse
s {$sel:trackingNamespaceVersion:DescribeNamespaceResponse' :: Maybe Integer
trackingNamespaceVersion = Maybe Integer
a} :: DescribeNamespaceResponse)
describeNamespaceResponse_namespaceVersion :: Lens.Lens' DescribeNamespaceResponse (Prelude.Maybe Prelude.Integer)
describeNamespaceResponse_namespaceVersion :: (Maybe Integer -> f (Maybe Integer))
-> DescribeNamespaceResponse -> f DescribeNamespaceResponse
describeNamespaceResponse_namespaceVersion = (DescribeNamespaceResponse -> Maybe Integer)
-> (DescribeNamespaceResponse
-> Maybe Integer -> DescribeNamespaceResponse)
-> Lens
DescribeNamespaceResponse
DescribeNamespaceResponse
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNamespaceResponse' {Maybe Integer
namespaceVersion :: Maybe Integer
$sel:namespaceVersion:DescribeNamespaceResponse' :: DescribeNamespaceResponse -> Maybe Integer
namespaceVersion} -> Maybe Integer
namespaceVersion) (\s :: DescribeNamespaceResponse
s@DescribeNamespaceResponse' {} Maybe Integer
a -> DescribeNamespaceResponse
s {$sel:namespaceVersion:DescribeNamespaceResponse' :: Maybe Integer
namespaceVersion = Maybe Integer
a} :: DescribeNamespaceResponse)
describeNamespaceResponse_namespaceName :: Lens.Lens' DescribeNamespaceResponse (Prelude.Maybe Prelude.Text)
describeNamespaceResponse_namespaceName :: (Maybe Text -> f (Maybe Text))
-> DescribeNamespaceResponse -> f DescribeNamespaceResponse
describeNamespaceResponse_namespaceName = (DescribeNamespaceResponse -> Maybe Text)
-> (DescribeNamespaceResponse
-> Maybe Text -> DescribeNamespaceResponse)
-> Lens
DescribeNamespaceResponse
DescribeNamespaceResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNamespaceResponse' {Maybe Text
namespaceName :: Maybe Text
$sel:namespaceName:DescribeNamespaceResponse' :: DescribeNamespaceResponse -> Maybe Text
namespaceName} -> Maybe Text
namespaceName) (\s :: DescribeNamespaceResponse
s@DescribeNamespaceResponse' {} Maybe Text
a -> DescribeNamespaceResponse
s {$sel:namespaceName:DescribeNamespaceResponse' :: Maybe Text
namespaceName = Maybe Text
a} :: DescribeNamespaceResponse)
describeNamespaceResponse_trackingNamespaceName :: Lens.Lens' DescribeNamespaceResponse (Prelude.Maybe Prelude.Text)
describeNamespaceResponse_trackingNamespaceName :: (Maybe Text -> f (Maybe Text))
-> DescribeNamespaceResponse -> f DescribeNamespaceResponse
describeNamespaceResponse_trackingNamespaceName = (DescribeNamespaceResponse -> Maybe Text)
-> (DescribeNamespaceResponse
-> Maybe Text -> DescribeNamespaceResponse)
-> Lens
DescribeNamespaceResponse
DescribeNamespaceResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNamespaceResponse' {Maybe Text
trackingNamespaceName :: Maybe Text
$sel:trackingNamespaceName:DescribeNamespaceResponse' :: DescribeNamespaceResponse -> Maybe Text
trackingNamespaceName} -> Maybe Text
trackingNamespaceName) (\s :: DescribeNamespaceResponse
s@DescribeNamespaceResponse' {} Maybe Text
a -> DescribeNamespaceResponse
s {$sel:trackingNamespaceName:DescribeNamespaceResponse' :: Maybe Text
trackingNamespaceName = Maybe Text
a} :: DescribeNamespaceResponse)
describeNamespaceResponse_httpStatus :: Lens.Lens' DescribeNamespaceResponse Prelude.Int
describeNamespaceResponse_httpStatus :: (Int -> f Int)
-> DescribeNamespaceResponse -> f DescribeNamespaceResponse
describeNamespaceResponse_httpStatus = (DescribeNamespaceResponse -> Int)
-> (DescribeNamespaceResponse -> Int -> DescribeNamespaceResponse)
-> Lens DescribeNamespaceResponse DescribeNamespaceResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeNamespaceResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeNamespaceResponse' :: DescribeNamespaceResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeNamespaceResponse
s@DescribeNamespaceResponse' {} Int
a -> DescribeNamespaceResponse
s {$sel:httpStatus:DescribeNamespaceResponse' :: Int
httpStatus = Int
a} :: DescribeNamespaceResponse)
instance Prelude.NFData DescribeNamespaceResponse