{-# 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.KafkaConnect.DescribeWorkerConfiguration
(
DescribeWorkerConfiguration (..),
newDescribeWorkerConfiguration,
describeWorkerConfiguration_workerConfigurationArn,
DescribeWorkerConfigurationResponse (..),
newDescribeWorkerConfigurationResponse,
describeWorkerConfigurationResponse_creationTime,
describeWorkerConfigurationResponse_latestRevision,
describeWorkerConfigurationResponse_name,
describeWorkerConfigurationResponse_workerConfigurationArn,
describeWorkerConfigurationResponse_description,
describeWorkerConfigurationResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.KafkaConnect.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 DescribeWorkerConfiguration = DescribeWorkerConfiguration'
{
DescribeWorkerConfiguration -> Text
workerConfigurationArn :: Prelude.Text
}
deriving (DescribeWorkerConfiguration -> DescribeWorkerConfiguration -> Bool
(DescribeWorkerConfiguration
-> DescribeWorkerConfiguration -> Bool)
-> (DescribeWorkerConfiguration
-> DescribeWorkerConfiguration -> Bool)
-> Eq DescribeWorkerConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeWorkerConfiguration -> DescribeWorkerConfiguration -> Bool
$c/= :: DescribeWorkerConfiguration -> DescribeWorkerConfiguration -> Bool
== :: DescribeWorkerConfiguration -> DescribeWorkerConfiguration -> Bool
$c== :: DescribeWorkerConfiguration -> DescribeWorkerConfiguration -> Bool
Prelude.Eq, ReadPrec [DescribeWorkerConfiguration]
ReadPrec DescribeWorkerConfiguration
Int -> ReadS DescribeWorkerConfiguration
ReadS [DescribeWorkerConfiguration]
(Int -> ReadS DescribeWorkerConfiguration)
-> ReadS [DescribeWorkerConfiguration]
-> ReadPrec DescribeWorkerConfiguration
-> ReadPrec [DescribeWorkerConfiguration]
-> Read DescribeWorkerConfiguration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeWorkerConfiguration]
$creadListPrec :: ReadPrec [DescribeWorkerConfiguration]
readPrec :: ReadPrec DescribeWorkerConfiguration
$creadPrec :: ReadPrec DescribeWorkerConfiguration
readList :: ReadS [DescribeWorkerConfiguration]
$creadList :: ReadS [DescribeWorkerConfiguration]
readsPrec :: Int -> ReadS DescribeWorkerConfiguration
$creadsPrec :: Int -> ReadS DescribeWorkerConfiguration
Prelude.Read, Int -> DescribeWorkerConfiguration -> ShowS
[DescribeWorkerConfiguration] -> ShowS
DescribeWorkerConfiguration -> String
(Int -> DescribeWorkerConfiguration -> ShowS)
-> (DescribeWorkerConfiguration -> String)
-> ([DescribeWorkerConfiguration] -> ShowS)
-> Show DescribeWorkerConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeWorkerConfiguration] -> ShowS
$cshowList :: [DescribeWorkerConfiguration] -> ShowS
show :: DescribeWorkerConfiguration -> String
$cshow :: DescribeWorkerConfiguration -> String
showsPrec :: Int -> DescribeWorkerConfiguration -> ShowS
$cshowsPrec :: Int -> DescribeWorkerConfiguration -> ShowS
Prelude.Show, (forall x.
DescribeWorkerConfiguration -> Rep DescribeWorkerConfiguration x)
-> (forall x.
Rep DescribeWorkerConfiguration x -> DescribeWorkerConfiguration)
-> Generic DescribeWorkerConfiguration
forall x.
Rep DescribeWorkerConfiguration x -> DescribeWorkerConfiguration
forall x.
DescribeWorkerConfiguration -> Rep DescribeWorkerConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeWorkerConfiguration x -> DescribeWorkerConfiguration
$cfrom :: forall x.
DescribeWorkerConfiguration -> Rep DescribeWorkerConfiguration x
Prelude.Generic)
newDescribeWorkerConfiguration ::
Prelude.Text ->
DescribeWorkerConfiguration
newDescribeWorkerConfiguration :: Text -> DescribeWorkerConfiguration
newDescribeWorkerConfiguration
Text
pWorkerConfigurationArn_ =
DescribeWorkerConfiguration' :: Text -> DescribeWorkerConfiguration
DescribeWorkerConfiguration'
{ $sel:workerConfigurationArn:DescribeWorkerConfiguration' :: Text
workerConfigurationArn =
Text
pWorkerConfigurationArn_
}
describeWorkerConfiguration_workerConfigurationArn :: Lens.Lens' DescribeWorkerConfiguration Prelude.Text
describeWorkerConfiguration_workerConfigurationArn :: (Text -> f Text)
-> DescribeWorkerConfiguration -> f DescribeWorkerConfiguration
describeWorkerConfiguration_workerConfigurationArn = (DescribeWorkerConfiguration -> Text)
-> (DescribeWorkerConfiguration
-> Text -> DescribeWorkerConfiguration)
-> Lens
DescribeWorkerConfiguration DescribeWorkerConfiguration Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorkerConfiguration' {Text
workerConfigurationArn :: Text
$sel:workerConfigurationArn:DescribeWorkerConfiguration' :: DescribeWorkerConfiguration -> Text
workerConfigurationArn} -> Text
workerConfigurationArn) (\s :: DescribeWorkerConfiguration
s@DescribeWorkerConfiguration' {} Text
a -> DescribeWorkerConfiguration
s {$sel:workerConfigurationArn:DescribeWorkerConfiguration' :: Text
workerConfigurationArn = Text
a} :: DescribeWorkerConfiguration)
instance Core.AWSRequest DescribeWorkerConfiguration where
type
AWSResponse DescribeWorkerConfiguration =
DescribeWorkerConfigurationResponse
request :: DescribeWorkerConfiguration -> Request DescribeWorkerConfiguration
request = Service
-> DescribeWorkerConfiguration
-> Request DescribeWorkerConfiguration
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeWorkerConfiguration
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeWorkerConfiguration)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeWorkerConfiguration))
-> Logger
-> Service
-> Proxy DescribeWorkerConfiguration
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeWorkerConfiguration)))
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 POSIX
-> Maybe WorkerConfigurationRevisionDescription
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeWorkerConfigurationResponse
DescribeWorkerConfigurationResponse'
(Maybe POSIX
-> Maybe WorkerConfigurationRevisionDescription
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeWorkerConfigurationResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe WorkerConfigurationRevisionDescription
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeWorkerConfigurationResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"creationTime")
Either
String
(Maybe WorkerConfigurationRevisionDescription
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeWorkerConfigurationResponse)
-> Either String (Maybe WorkerConfigurationRevisionDescription)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeWorkerConfigurationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Either String (Maybe WorkerConfigurationRevisionDescription)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"latestRevision")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeWorkerConfigurationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text -> Int -> DescribeWorkerConfigurationResponse)
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
"name")
Either
String
(Maybe Text
-> Maybe Text -> Int -> DescribeWorkerConfigurationResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Text -> Int -> DescribeWorkerConfigurationResponse)
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
"workerConfigurationArn")
Either
String (Maybe Text -> Int -> DescribeWorkerConfigurationResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeWorkerConfigurationResponse)
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 (Int -> DescribeWorkerConfigurationResponse)
-> Either String Int
-> Either String DescribeWorkerConfigurationResponse
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 DescribeWorkerConfiguration
instance Prelude.NFData DescribeWorkerConfiguration
instance Core.ToHeaders DescribeWorkerConfiguration where
toHeaders :: DescribeWorkerConfiguration -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeWorkerConfiguration -> 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 DescribeWorkerConfiguration where
toPath :: DescribeWorkerConfiguration -> ByteString
toPath DescribeWorkerConfiguration' {Text
workerConfigurationArn :: Text
$sel:workerConfigurationArn:DescribeWorkerConfiguration' :: DescribeWorkerConfiguration -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/v1/worker-configurations/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
workerConfigurationArn
]
instance Core.ToQuery DescribeWorkerConfiguration where
toQuery :: DescribeWorkerConfiguration -> QueryString
toQuery = QueryString -> DescribeWorkerConfiguration -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeWorkerConfigurationResponse = DescribeWorkerConfigurationResponse'
{
DescribeWorkerConfigurationResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
DescribeWorkerConfigurationResponse
-> Maybe WorkerConfigurationRevisionDescription
latestRevision :: Prelude.Maybe WorkerConfigurationRevisionDescription,
DescribeWorkerConfigurationResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
DescribeWorkerConfigurationResponse -> Maybe Text
workerConfigurationArn :: Prelude.Maybe Prelude.Text,
DescribeWorkerConfigurationResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
DescribeWorkerConfigurationResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeWorkerConfigurationResponse
-> DescribeWorkerConfigurationResponse -> Bool
(DescribeWorkerConfigurationResponse
-> DescribeWorkerConfigurationResponse -> Bool)
-> (DescribeWorkerConfigurationResponse
-> DescribeWorkerConfigurationResponse -> Bool)
-> Eq DescribeWorkerConfigurationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeWorkerConfigurationResponse
-> DescribeWorkerConfigurationResponse -> Bool
$c/= :: DescribeWorkerConfigurationResponse
-> DescribeWorkerConfigurationResponse -> Bool
== :: DescribeWorkerConfigurationResponse
-> DescribeWorkerConfigurationResponse -> Bool
$c== :: DescribeWorkerConfigurationResponse
-> DescribeWorkerConfigurationResponse -> Bool
Prelude.Eq, ReadPrec [DescribeWorkerConfigurationResponse]
ReadPrec DescribeWorkerConfigurationResponse
Int -> ReadS DescribeWorkerConfigurationResponse
ReadS [DescribeWorkerConfigurationResponse]
(Int -> ReadS DescribeWorkerConfigurationResponse)
-> ReadS [DescribeWorkerConfigurationResponse]
-> ReadPrec DescribeWorkerConfigurationResponse
-> ReadPrec [DescribeWorkerConfigurationResponse]
-> Read DescribeWorkerConfigurationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeWorkerConfigurationResponse]
$creadListPrec :: ReadPrec [DescribeWorkerConfigurationResponse]
readPrec :: ReadPrec DescribeWorkerConfigurationResponse
$creadPrec :: ReadPrec DescribeWorkerConfigurationResponse
readList :: ReadS [DescribeWorkerConfigurationResponse]
$creadList :: ReadS [DescribeWorkerConfigurationResponse]
readsPrec :: Int -> ReadS DescribeWorkerConfigurationResponse
$creadsPrec :: Int -> ReadS DescribeWorkerConfigurationResponse
Prelude.Read, Int -> DescribeWorkerConfigurationResponse -> ShowS
[DescribeWorkerConfigurationResponse] -> ShowS
DescribeWorkerConfigurationResponse -> String
(Int -> DescribeWorkerConfigurationResponse -> ShowS)
-> (DescribeWorkerConfigurationResponse -> String)
-> ([DescribeWorkerConfigurationResponse] -> ShowS)
-> Show DescribeWorkerConfigurationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeWorkerConfigurationResponse] -> ShowS
$cshowList :: [DescribeWorkerConfigurationResponse] -> ShowS
show :: DescribeWorkerConfigurationResponse -> String
$cshow :: DescribeWorkerConfigurationResponse -> String
showsPrec :: Int -> DescribeWorkerConfigurationResponse -> ShowS
$cshowsPrec :: Int -> DescribeWorkerConfigurationResponse -> ShowS
Prelude.Show, (forall x.
DescribeWorkerConfigurationResponse
-> Rep DescribeWorkerConfigurationResponse x)
-> (forall x.
Rep DescribeWorkerConfigurationResponse x
-> DescribeWorkerConfigurationResponse)
-> Generic DescribeWorkerConfigurationResponse
forall x.
Rep DescribeWorkerConfigurationResponse x
-> DescribeWorkerConfigurationResponse
forall x.
DescribeWorkerConfigurationResponse
-> Rep DescribeWorkerConfigurationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeWorkerConfigurationResponse x
-> DescribeWorkerConfigurationResponse
$cfrom :: forall x.
DescribeWorkerConfigurationResponse
-> Rep DescribeWorkerConfigurationResponse x
Prelude.Generic)
newDescribeWorkerConfigurationResponse ::
Prelude.Int ->
DescribeWorkerConfigurationResponse
newDescribeWorkerConfigurationResponse :: Int -> DescribeWorkerConfigurationResponse
newDescribeWorkerConfigurationResponse Int
pHttpStatus_ =
DescribeWorkerConfigurationResponse' :: Maybe POSIX
-> Maybe WorkerConfigurationRevisionDescription
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeWorkerConfigurationResponse
DescribeWorkerConfigurationResponse'
{ $sel:creationTime:DescribeWorkerConfigurationResponse' :: Maybe POSIX
creationTime =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:latestRevision:DescribeWorkerConfigurationResponse' :: Maybe WorkerConfigurationRevisionDescription
latestRevision = Maybe WorkerConfigurationRevisionDescription
forall a. Maybe a
Prelude.Nothing,
$sel:name:DescribeWorkerConfigurationResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:workerConfigurationArn:DescribeWorkerConfigurationResponse' :: Maybe Text
workerConfigurationArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:DescribeWorkerConfigurationResponse' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeWorkerConfigurationResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeWorkerConfigurationResponse_creationTime :: Lens.Lens' DescribeWorkerConfigurationResponse (Prelude.Maybe Prelude.UTCTime)
describeWorkerConfigurationResponse_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeWorkerConfigurationResponse
-> f DescribeWorkerConfigurationResponse
describeWorkerConfigurationResponse_creationTime = (DescribeWorkerConfigurationResponse -> Maybe POSIX)
-> (DescribeWorkerConfigurationResponse
-> Maybe POSIX -> DescribeWorkerConfigurationResponse)
-> Lens
DescribeWorkerConfigurationResponse
DescribeWorkerConfigurationResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorkerConfigurationResponse' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:DescribeWorkerConfigurationResponse' :: DescribeWorkerConfigurationResponse -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: DescribeWorkerConfigurationResponse
s@DescribeWorkerConfigurationResponse' {} Maybe POSIX
a -> DescribeWorkerConfigurationResponse
s {$sel:creationTime:DescribeWorkerConfigurationResponse' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: DescribeWorkerConfigurationResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeWorkerConfigurationResponse
-> f DescribeWorkerConfigurationResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeWorkerConfigurationResponse
-> f DescribeWorkerConfigurationResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
describeWorkerConfigurationResponse_latestRevision :: Lens.Lens' DescribeWorkerConfigurationResponse (Prelude.Maybe WorkerConfigurationRevisionDescription)
describeWorkerConfigurationResponse_latestRevision :: (Maybe WorkerConfigurationRevisionDescription
-> f (Maybe WorkerConfigurationRevisionDescription))
-> DescribeWorkerConfigurationResponse
-> f DescribeWorkerConfigurationResponse
describeWorkerConfigurationResponse_latestRevision = (DescribeWorkerConfigurationResponse
-> Maybe WorkerConfigurationRevisionDescription)
-> (DescribeWorkerConfigurationResponse
-> Maybe WorkerConfigurationRevisionDescription
-> DescribeWorkerConfigurationResponse)
-> Lens
DescribeWorkerConfigurationResponse
DescribeWorkerConfigurationResponse
(Maybe WorkerConfigurationRevisionDescription)
(Maybe WorkerConfigurationRevisionDescription)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorkerConfigurationResponse' {Maybe WorkerConfigurationRevisionDescription
latestRevision :: Maybe WorkerConfigurationRevisionDescription
$sel:latestRevision:DescribeWorkerConfigurationResponse' :: DescribeWorkerConfigurationResponse
-> Maybe WorkerConfigurationRevisionDescription
latestRevision} -> Maybe WorkerConfigurationRevisionDescription
latestRevision) (\s :: DescribeWorkerConfigurationResponse
s@DescribeWorkerConfigurationResponse' {} Maybe WorkerConfigurationRevisionDescription
a -> DescribeWorkerConfigurationResponse
s {$sel:latestRevision:DescribeWorkerConfigurationResponse' :: Maybe WorkerConfigurationRevisionDescription
latestRevision = Maybe WorkerConfigurationRevisionDescription
a} :: DescribeWorkerConfigurationResponse)
describeWorkerConfigurationResponse_name :: Lens.Lens' DescribeWorkerConfigurationResponse (Prelude.Maybe Prelude.Text)
describeWorkerConfigurationResponse_name :: (Maybe Text -> f (Maybe Text))
-> DescribeWorkerConfigurationResponse
-> f DescribeWorkerConfigurationResponse
describeWorkerConfigurationResponse_name = (DescribeWorkerConfigurationResponse -> Maybe Text)
-> (DescribeWorkerConfigurationResponse
-> Maybe Text -> DescribeWorkerConfigurationResponse)
-> Lens
DescribeWorkerConfigurationResponse
DescribeWorkerConfigurationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorkerConfigurationResponse' {Maybe Text
name :: Maybe Text
$sel:name:DescribeWorkerConfigurationResponse' :: DescribeWorkerConfigurationResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: DescribeWorkerConfigurationResponse
s@DescribeWorkerConfigurationResponse' {} Maybe Text
a -> DescribeWorkerConfigurationResponse
s {$sel:name:DescribeWorkerConfigurationResponse' :: Maybe Text
name = Maybe Text
a} :: DescribeWorkerConfigurationResponse)
describeWorkerConfigurationResponse_workerConfigurationArn :: Lens.Lens' DescribeWorkerConfigurationResponse (Prelude.Maybe Prelude.Text)
describeWorkerConfigurationResponse_workerConfigurationArn :: (Maybe Text -> f (Maybe Text))
-> DescribeWorkerConfigurationResponse
-> f DescribeWorkerConfigurationResponse
describeWorkerConfigurationResponse_workerConfigurationArn = (DescribeWorkerConfigurationResponse -> Maybe Text)
-> (DescribeWorkerConfigurationResponse
-> Maybe Text -> DescribeWorkerConfigurationResponse)
-> Lens
DescribeWorkerConfigurationResponse
DescribeWorkerConfigurationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorkerConfigurationResponse' {Maybe Text
workerConfigurationArn :: Maybe Text
$sel:workerConfigurationArn:DescribeWorkerConfigurationResponse' :: DescribeWorkerConfigurationResponse -> Maybe Text
workerConfigurationArn} -> Maybe Text
workerConfigurationArn) (\s :: DescribeWorkerConfigurationResponse
s@DescribeWorkerConfigurationResponse' {} Maybe Text
a -> DescribeWorkerConfigurationResponse
s {$sel:workerConfigurationArn:DescribeWorkerConfigurationResponse' :: Maybe Text
workerConfigurationArn = Maybe Text
a} :: DescribeWorkerConfigurationResponse)
describeWorkerConfigurationResponse_description :: Lens.Lens' DescribeWorkerConfigurationResponse (Prelude.Maybe Prelude.Text)
describeWorkerConfigurationResponse_description :: (Maybe Text -> f (Maybe Text))
-> DescribeWorkerConfigurationResponse
-> f DescribeWorkerConfigurationResponse
describeWorkerConfigurationResponse_description = (DescribeWorkerConfigurationResponse -> Maybe Text)
-> (DescribeWorkerConfigurationResponse
-> Maybe Text -> DescribeWorkerConfigurationResponse)
-> Lens
DescribeWorkerConfigurationResponse
DescribeWorkerConfigurationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorkerConfigurationResponse' {Maybe Text
description :: Maybe Text
$sel:description:DescribeWorkerConfigurationResponse' :: DescribeWorkerConfigurationResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: DescribeWorkerConfigurationResponse
s@DescribeWorkerConfigurationResponse' {} Maybe Text
a -> DescribeWorkerConfigurationResponse
s {$sel:description:DescribeWorkerConfigurationResponse' :: Maybe Text
description = Maybe Text
a} :: DescribeWorkerConfigurationResponse)
describeWorkerConfigurationResponse_httpStatus :: Lens.Lens' DescribeWorkerConfigurationResponse Prelude.Int
describeWorkerConfigurationResponse_httpStatus :: (Int -> f Int)
-> DescribeWorkerConfigurationResponse
-> f DescribeWorkerConfigurationResponse
describeWorkerConfigurationResponse_httpStatus = (DescribeWorkerConfigurationResponse -> Int)
-> (DescribeWorkerConfigurationResponse
-> Int -> DescribeWorkerConfigurationResponse)
-> Lens
DescribeWorkerConfigurationResponse
DescribeWorkerConfigurationResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorkerConfigurationResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeWorkerConfigurationResponse' :: DescribeWorkerConfigurationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeWorkerConfigurationResponse
s@DescribeWorkerConfigurationResponse' {} Int
a -> DescribeWorkerConfigurationResponse
s {$sel:httpStatus:DescribeWorkerConfigurationResponse' :: Int
httpStatus = Int
a} :: DescribeWorkerConfigurationResponse)
instance
Prelude.NFData
DescribeWorkerConfigurationResponse