{-# 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.Schemas.DescribeDiscoverer
(
DescribeDiscoverer (..),
newDescribeDiscoverer,
describeDiscoverer_discovererId,
DescribeDiscovererResponse (..),
newDescribeDiscovererResponse,
describeDiscovererResponse_state,
describeDiscovererResponse_crossAccount,
describeDiscovererResponse_sourceArn,
describeDiscovererResponse_discovererId,
describeDiscovererResponse_description,
describeDiscovererResponse_tags,
describeDiscovererResponse_discovererArn,
describeDiscovererResponse_httpStatus,
)
where
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
import Amazonka.Schemas.Types
data DescribeDiscoverer = DescribeDiscoverer'
{
DescribeDiscoverer -> Text
discovererId :: Prelude.Text
}
deriving (DescribeDiscoverer -> DescribeDiscoverer -> Bool
(DescribeDiscoverer -> DescribeDiscoverer -> Bool)
-> (DescribeDiscoverer -> DescribeDiscoverer -> Bool)
-> Eq DescribeDiscoverer
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDiscoverer -> DescribeDiscoverer -> Bool
$c/= :: DescribeDiscoverer -> DescribeDiscoverer -> Bool
== :: DescribeDiscoverer -> DescribeDiscoverer -> Bool
$c== :: DescribeDiscoverer -> DescribeDiscoverer -> Bool
Prelude.Eq, ReadPrec [DescribeDiscoverer]
ReadPrec DescribeDiscoverer
Int -> ReadS DescribeDiscoverer
ReadS [DescribeDiscoverer]
(Int -> ReadS DescribeDiscoverer)
-> ReadS [DescribeDiscoverer]
-> ReadPrec DescribeDiscoverer
-> ReadPrec [DescribeDiscoverer]
-> Read DescribeDiscoverer
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDiscoverer]
$creadListPrec :: ReadPrec [DescribeDiscoverer]
readPrec :: ReadPrec DescribeDiscoverer
$creadPrec :: ReadPrec DescribeDiscoverer
readList :: ReadS [DescribeDiscoverer]
$creadList :: ReadS [DescribeDiscoverer]
readsPrec :: Int -> ReadS DescribeDiscoverer
$creadsPrec :: Int -> ReadS DescribeDiscoverer
Prelude.Read, Int -> DescribeDiscoverer -> ShowS
[DescribeDiscoverer] -> ShowS
DescribeDiscoverer -> String
(Int -> DescribeDiscoverer -> ShowS)
-> (DescribeDiscoverer -> String)
-> ([DescribeDiscoverer] -> ShowS)
-> Show DescribeDiscoverer
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDiscoverer] -> ShowS
$cshowList :: [DescribeDiscoverer] -> ShowS
show :: DescribeDiscoverer -> String
$cshow :: DescribeDiscoverer -> String
showsPrec :: Int -> DescribeDiscoverer -> ShowS
$cshowsPrec :: Int -> DescribeDiscoverer -> ShowS
Prelude.Show, (forall x. DescribeDiscoverer -> Rep DescribeDiscoverer x)
-> (forall x. Rep DescribeDiscoverer x -> DescribeDiscoverer)
-> Generic DescribeDiscoverer
forall x. Rep DescribeDiscoverer x -> DescribeDiscoverer
forall x. DescribeDiscoverer -> Rep DescribeDiscoverer x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeDiscoverer x -> DescribeDiscoverer
$cfrom :: forall x. DescribeDiscoverer -> Rep DescribeDiscoverer x
Prelude.Generic)
newDescribeDiscoverer ::
Prelude.Text ->
DescribeDiscoverer
newDescribeDiscoverer :: Text -> DescribeDiscoverer
newDescribeDiscoverer Text
pDiscovererId_ =
DescribeDiscoverer' :: Text -> DescribeDiscoverer
DescribeDiscoverer' {$sel:discovererId:DescribeDiscoverer' :: Text
discovererId = Text
pDiscovererId_}
describeDiscoverer_discovererId :: Lens.Lens' DescribeDiscoverer Prelude.Text
describeDiscoverer_discovererId :: (Text -> f Text) -> DescribeDiscoverer -> f DescribeDiscoverer
describeDiscoverer_discovererId = (DescribeDiscoverer -> Text)
-> (DescribeDiscoverer -> Text -> DescribeDiscoverer)
-> Lens DescribeDiscoverer DescribeDiscoverer Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDiscoverer' {Text
discovererId :: Text
$sel:discovererId:DescribeDiscoverer' :: DescribeDiscoverer -> Text
discovererId} -> Text
discovererId) (\s :: DescribeDiscoverer
s@DescribeDiscoverer' {} Text
a -> DescribeDiscoverer
s {$sel:discovererId:DescribeDiscoverer' :: Text
discovererId = Text
a} :: DescribeDiscoverer)
instance Core.AWSRequest DescribeDiscoverer where
type
AWSResponse DescribeDiscoverer =
DescribeDiscovererResponse
request :: DescribeDiscoverer -> Request DescribeDiscoverer
request = Service -> DescribeDiscoverer -> Request DescribeDiscoverer
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeDiscoverer
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeDiscoverer)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeDiscoverer))
-> Logger
-> Service
-> Proxy DescribeDiscoverer
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeDiscoverer)))
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 DiscovererState
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Int
-> DescribeDiscovererResponse
DescribeDiscovererResponse'
(Maybe DiscovererState
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Int
-> DescribeDiscovererResponse)
-> Either String (Maybe DiscovererState)
-> Either
String
(Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Int
-> DescribeDiscovererResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe DiscovererState)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"State")
Either
String
(Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Int
-> DescribeDiscovererResponse)
-> Either String (Maybe Bool)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Int
-> DescribeDiscovererResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CrossAccount")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Int
-> DescribeDiscovererResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Int
-> DescribeDiscovererResponse)
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
"SourceArn")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Int
-> DescribeDiscovererResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Int
-> DescribeDiscovererResponse)
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
"DiscovererId")
Either
String
(Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Int
-> DescribeDiscovererResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (HashMap Text Text)
-> Maybe Text -> Int -> DescribeDiscovererResponse)
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
"Description")
Either
String
(Maybe (HashMap Text Text)
-> Maybe Text -> Int -> DescribeDiscovererResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Maybe Text -> Int -> DescribeDiscovererResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> DescribeDiscovererResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeDiscovererResponse)
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
"DiscovererArn")
Either String (Int -> DescribeDiscovererResponse)
-> Either String Int -> Either String DescribeDiscovererResponse
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 DescribeDiscoverer
instance Prelude.NFData DescribeDiscoverer
instance Core.ToHeaders DescribeDiscoverer where
toHeaders :: DescribeDiscoverer -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeDiscoverer -> 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.ToPath DescribeDiscoverer where
toPath :: DescribeDiscoverer -> ByteString
toPath DescribeDiscoverer' {Text
discovererId :: Text
$sel:discovererId:DescribeDiscoverer' :: DescribeDiscoverer -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/v1/discoverers/id/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
discovererId]
instance Core.ToQuery DescribeDiscoverer where
toQuery :: DescribeDiscoverer -> QueryString
toQuery = QueryString -> DescribeDiscoverer -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeDiscovererResponse = DescribeDiscovererResponse'
{
DescribeDiscovererResponse -> Maybe DiscovererState
state :: Prelude.Maybe DiscovererState,
DescribeDiscovererResponse -> Maybe Bool
crossAccount :: Prelude.Maybe Prelude.Bool,
DescribeDiscovererResponse -> Maybe Text
sourceArn :: Prelude.Maybe Prelude.Text,
DescribeDiscovererResponse -> Maybe Text
discovererId :: Prelude.Maybe Prelude.Text,
DescribeDiscovererResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
DescribeDiscovererResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
DescribeDiscovererResponse -> Maybe Text
discovererArn :: Prelude.Maybe Prelude.Text,
DescribeDiscovererResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeDiscovererResponse -> DescribeDiscovererResponse -> Bool
(DescribeDiscovererResponse -> DescribeDiscovererResponse -> Bool)
-> (DescribeDiscovererResponse
-> DescribeDiscovererResponse -> Bool)
-> Eq DescribeDiscovererResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDiscovererResponse -> DescribeDiscovererResponse -> Bool
$c/= :: DescribeDiscovererResponse -> DescribeDiscovererResponse -> Bool
== :: DescribeDiscovererResponse -> DescribeDiscovererResponse -> Bool
$c== :: DescribeDiscovererResponse -> DescribeDiscovererResponse -> Bool
Prelude.Eq, ReadPrec [DescribeDiscovererResponse]
ReadPrec DescribeDiscovererResponse
Int -> ReadS DescribeDiscovererResponse
ReadS [DescribeDiscovererResponse]
(Int -> ReadS DescribeDiscovererResponse)
-> ReadS [DescribeDiscovererResponse]
-> ReadPrec DescribeDiscovererResponse
-> ReadPrec [DescribeDiscovererResponse]
-> Read DescribeDiscovererResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDiscovererResponse]
$creadListPrec :: ReadPrec [DescribeDiscovererResponse]
readPrec :: ReadPrec DescribeDiscovererResponse
$creadPrec :: ReadPrec DescribeDiscovererResponse
readList :: ReadS [DescribeDiscovererResponse]
$creadList :: ReadS [DescribeDiscovererResponse]
readsPrec :: Int -> ReadS DescribeDiscovererResponse
$creadsPrec :: Int -> ReadS DescribeDiscovererResponse
Prelude.Read, Int -> DescribeDiscovererResponse -> ShowS
[DescribeDiscovererResponse] -> ShowS
DescribeDiscovererResponse -> String
(Int -> DescribeDiscovererResponse -> ShowS)
-> (DescribeDiscovererResponse -> String)
-> ([DescribeDiscovererResponse] -> ShowS)
-> Show DescribeDiscovererResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDiscovererResponse] -> ShowS
$cshowList :: [DescribeDiscovererResponse] -> ShowS
show :: DescribeDiscovererResponse -> String
$cshow :: DescribeDiscovererResponse -> String
showsPrec :: Int -> DescribeDiscovererResponse -> ShowS
$cshowsPrec :: Int -> DescribeDiscovererResponse -> ShowS
Prelude.Show, (forall x.
DescribeDiscovererResponse -> Rep DescribeDiscovererResponse x)
-> (forall x.
Rep DescribeDiscovererResponse x -> DescribeDiscovererResponse)
-> Generic DescribeDiscovererResponse
forall x.
Rep DescribeDiscovererResponse x -> DescribeDiscovererResponse
forall x.
DescribeDiscovererResponse -> Rep DescribeDiscovererResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeDiscovererResponse x -> DescribeDiscovererResponse
$cfrom :: forall x.
DescribeDiscovererResponse -> Rep DescribeDiscovererResponse x
Prelude.Generic)
newDescribeDiscovererResponse ::
Prelude.Int ->
DescribeDiscovererResponse
newDescribeDiscovererResponse :: Int -> DescribeDiscovererResponse
newDescribeDiscovererResponse Int
pHttpStatus_ =
DescribeDiscovererResponse' :: Maybe DiscovererState
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Int
-> DescribeDiscovererResponse
DescribeDiscovererResponse'
{ $sel:state:DescribeDiscovererResponse' :: Maybe DiscovererState
state =
Maybe DiscovererState
forall a. Maybe a
Prelude.Nothing,
$sel:crossAccount:DescribeDiscovererResponse' :: Maybe Bool
crossAccount = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:sourceArn:DescribeDiscovererResponse' :: Maybe Text
sourceArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:discovererId:DescribeDiscovererResponse' :: Maybe Text
discovererId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:DescribeDiscovererResponse' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:DescribeDiscovererResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:discovererArn:DescribeDiscovererResponse' :: Maybe Text
discovererArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeDiscovererResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeDiscovererResponse_state :: Lens.Lens' DescribeDiscovererResponse (Prelude.Maybe DiscovererState)
describeDiscovererResponse_state :: (Maybe DiscovererState -> f (Maybe DiscovererState))
-> DescribeDiscovererResponse -> f DescribeDiscovererResponse
describeDiscovererResponse_state = (DescribeDiscovererResponse -> Maybe DiscovererState)
-> (DescribeDiscovererResponse
-> Maybe DiscovererState -> DescribeDiscovererResponse)
-> Lens
DescribeDiscovererResponse
DescribeDiscovererResponse
(Maybe DiscovererState)
(Maybe DiscovererState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDiscovererResponse' {Maybe DiscovererState
state :: Maybe DiscovererState
$sel:state:DescribeDiscovererResponse' :: DescribeDiscovererResponse -> Maybe DiscovererState
state} -> Maybe DiscovererState
state) (\s :: DescribeDiscovererResponse
s@DescribeDiscovererResponse' {} Maybe DiscovererState
a -> DescribeDiscovererResponse
s {$sel:state:DescribeDiscovererResponse' :: Maybe DiscovererState
state = Maybe DiscovererState
a} :: DescribeDiscovererResponse)
describeDiscovererResponse_crossAccount :: Lens.Lens' DescribeDiscovererResponse (Prelude.Maybe Prelude.Bool)
describeDiscovererResponse_crossAccount :: (Maybe Bool -> f (Maybe Bool))
-> DescribeDiscovererResponse -> f DescribeDiscovererResponse
describeDiscovererResponse_crossAccount = (DescribeDiscovererResponse -> Maybe Bool)
-> (DescribeDiscovererResponse
-> Maybe Bool -> DescribeDiscovererResponse)
-> Lens
DescribeDiscovererResponse
DescribeDiscovererResponse
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDiscovererResponse' {Maybe Bool
crossAccount :: Maybe Bool
$sel:crossAccount:DescribeDiscovererResponse' :: DescribeDiscovererResponse -> Maybe Bool
crossAccount} -> Maybe Bool
crossAccount) (\s :: DescribeDiscovererResponse
s@DescribeDiscovererResponse' {} Maybe Bool
a -> DescribeDiscovererResponse
s {$sel:crossAccount:DescribeDiscovererResponse' :: Maybe Bool
crossAccount = Maybe Bool
a} :: DescribeDiscovererResponse)
describeDiscovererResponse_sourceArn :: Lens.Lens' DescribeDiscovererResponse (Prelude.Maybe Prelude.Text)
describeDiscovererResponse_sourceArn :: (Maybe Text -> f (Maybe Text))
-> DescribeDiscovererResponse -> f DescribeDiscovererResponse
describeDiscovererResponse_sourceArn = (DescribeDiscovererResponse -> Maybe Text)
-> (DescribeDiscovererResponse
-> Maybe Text -> DescribeDiscovererResponse)
-> Lens
DescribeDiscovererResponse
DescribeDiscovererResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDiscovererResponse' {Maybe Text
sourceArn :: Maybe Text
$sel:sourceArn:DescribeDiscovererResponse' :: DescribeDiscovererResponse -> Maybe Text
sourceArn} -> Maybe Text
sourceArn) (\s :: DescribeDiscovererResponse
s@DescribeDiscovererResponse' {} Maybe Text
a -> DescribeDiscovererResponse
s {$sel:sourceArn:DescribeDiscovererResponse' :: Maybe Text
sourceArn = Maybe Text
a} :: DescribeDiscovererResponse)
describeDiscovererResponse_discovererId :: Lens.Lens' DescribeDiscovererResponse (Prelude.Maybe Prelude.Text)
describeDiscovererResponse_discovererId :: (Maybe Text -> f (Maybe Text))
-> DescribeDiscovererResponse -> f DescribeDiscovererResponse
describeDiscovererResponse_discovererId = (DescribeDiscovererResponse -> Maybe Text)
-> (DescribeDiscovererResponse
-> Maybe Text -> DescribeDiscovererResponse)
-> Lens
DescribeDiscovererResponse
DescribeDiscovererResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDiscovererResponse' {Maybe Text
discovererId :: Maybe Text
$sel:discovererId:DescribeDiscovererResponse' :: DescribeDiscovererResponse -> Maybe Text
discovererId} -> Maybe Text
discovererId) (\s :: DescribeDiscovererResponse
s@DescribeDiscovererResponse' {} Maybe Text
a -> DescribeDiscovererResponse
s {$sel:discovererId:DescribeDiscovererResponse' :: Maybe Text
discovererId = Maybe Text
a} :: DescribeDiscovererResponse)
describeDiscovererResponse_description :: Lens.Lens' DescribeDiscovererResponse (Prelude.Maybe Prelude.Text)
describeDiscovererResponse_description :: (Maybe Text -> f (Maybe Text))
-> DescribeDiscovererResponse -> f DescribeDiscovererResponse
describeDiscovererResponse_description = (DescribeDiscovererResponse -> Maybe Text)
-> (DescribeDiscovererResponse
-> Maybe Text -> DescribeDiscovererResponse)
-> Lens
DescribeDiscovererResponse
DescribeDiscovererResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDiscovererResponse' {Maybe Text
description :: Maybe Text
$sel:description:DescribeDiscovererResponse' :: DescribeDiscovererResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: DescribeDiscovererResponse
s@DescribeDiscovererResponse' {} Maybe Text
a -> DescribeDiscovererResponse
s {$sel:description:DescribeDiscovererResponse' :: Maybe Text
description = Maybe Text
a} :: DescribeDiscovererResponse)
describeDiscovererResponse_tags :: Lens.Lens' DescribeDiscovererResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
describeDiscovererResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeDiscovererResponse -> f DescribeDiscovererResponse
describeDiscovererResponse_tags = (DescribeDiscovererResponse -> Maybe (HashMap Text Text))
-> (DescribeDiscovererResponse
-> Maybe (HashMap Text Text) -> DescribeDiscovererResponse)
-> Lens
DescribeDiscovererResponse
DescribeDiscovererResponse
(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 (\DescribeDiscovererResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:DescribeDiscovererResponse' :: DescribeDiscovererResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: DescribeDiscovererResponse
s@DescribeDiscovererResponse' {} Maybe (HashMap Text Text)
a -> DescribeDiscovererResponse
s {$sel:tags:DescribeDiscovererResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: DescribeDiscovererResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeDiscovererResponse -> f DescribeDiscovererResponse)
-> ((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)))
-> DescribeDiscovererResponse
-> f DescribeDiscovererResponse
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
describeDiscovererResponse_discovererArn :: Lens.Lens' DescribeDiscovererResponse (Prelude.Maybe Prelude.Text)
describeDiscovererResponse_discovererArn :: (Maybe Text -> f (Maybe Text))
-> DescribeDiscovererResponse -> f DescribeDiscovererResponse
describeDiscovererResponse_discovererArn = (DescribeDiscovererResponse -> Maybe Text)
-> (DescribeDiscovererResponse
-> Maybe Text -> DescribeDiscovererResponse)
-> Lens
DescribeDiscovererResponse
DescribeDiscovererResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDiscovererResponse' {Maybe Text
discovererArn :: Maybe Text
$sel:discovererArn:DescribeDiscovererResponse' :: DescribeDiscovererResponse -> Maybe Text
discovererArn} -> Maybe Text
discovererArn) (\s :: DescribeDiscovererResponse
s@DescribeDiscovererResponse' {} Maybe Text
a -> DescribeDiscovererResponse
s {$sel:discovererArn:DescribeDiscovererResponse' :: Maybe Text
discovererArn = Maybe Text
a} :: DescribeDiscovererResponse)
describeDiscovererResponse_httpStatus :: Lens.Lens' DescribeDiscovererResponse Prelude.Int
describeDiscovererResponse_httpStatus :: (Int -> f Int)
-> DescribeDiscovererResponse -> f DescribeDiscovererResponse
describeDiscovererResponse_httpStatus = (DescribeDiscovererResponse -> Int)
-> (DescribeDiscovererResponse
-> Int -> DescribeDiscovererResponse)
-> Lens
DescribeDiscovererResponse DescribeDiscovererResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDiscovererResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeDiscovererResponse' :: DescribeDiscovererResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeDiscovererResponse
s@DescribeDiscovererResponse' {} Int
a -> DescribeDiscovererResponse
s {$sel:httpStatus:DescribeDiscovererResponse' :: Int
httpStatus = Int
a} :: DescribeDiscovererResponse)
instance Prelude.NFData DescribeDiscovererResponse