{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.KafkaConnect.DescribeWorkerConfiguration
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns information about a worker configuration.
module Amazonka.KafkaConnect.DescribeWorkerConfiguration
  ( -- * Creating a Request
    DescribeWorkerConfiguration (..),
    newDescribeWorkerConfiguration,

    -- * Request Lenses
    describeWorkerConfiguration_workerConfigurationArn,

    -- * Destructuring the Response
    DescribeWorkerConfigurationResponse (..),
    newDescribeWorkerConfigurationResponse,

    -- * Response Lenses
    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

-- | /See:/ 'newDescribeWorkerConfiguration' smart constructor.
data DescribeWorkerConfiguration = DescribeWorkerConfiguration'
  { -- | The Amazon Resource Name (ARN) of the worker configuration that you want
    -- to get information about.
    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)

-- |
-- Create a value of 'DescribeWorkerConfiguration' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'workerConfigurationArn', 'describeWorkerConfiguration_workerConfigurationArn' - The Amazon Resource Name (ARN) of the worker configuration that you want
-- to get information about.
newDescribeWorkerConfiguration ::
  -- | 'workerConfigurationArn'
  Prelude.Text ->
  DescribeWorkerConfiguration
newDescribeWorkerConfiguration :: Text -> DescribeWorkerConfiguration
newDescribeWorkerConfiguration
  Text
pWorkerConfigurationArn_ =
    DescribeWorkerConfiguration' :: Text -> DescribeWorkerConfiguration
DescribeWorkerConfiguration'
      { $sel:workerConfigurationArn:DescribeWorkerConfiguration' :: Text
workerConfigurationArn =
          Text
pWorkerConfigurationArn_
      }

-- | The Amazon Resource Name (ARN) of the worker configuration that you want
-- to get information about.
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

-- | /See:/ 'newDescribeWorkerConfigurationResponse' smart constructor.
data DescribeWorkerConfigurationResponse = DescribeWorkerConfigurationResponse'
  { -- | The time that the worker configuration was created.
    DescribeWorkerConfigurationResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
    -- | The latest revision of the custom configuration.
    DescribeWorkerConfigurationResponse
-> Maybe WorkerConfigurationRevisionDescription
latestRevision :: Prelude.Maybe WorkerConfigurationRevisionDescription,
    -- | The name of the worker configuration.
    DescribeWorkerConfigurationResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the custom configuration.
    DescribeWorkerConfigurationResponse -> Maybe Text
workerConfigurationArn :: Prelude.Maybe Prelude.Text,
    -- | The description of the worker configuration.
    DescribeWorkerConfigurationResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    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)

-- |
-- Create a value of 'DescribeWorkerConfigurationResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'creationTime', 'describeWorkerConfigurationResponse_creationTime' - The time that the worker configuration was created.
--
-- 'latestRevision', 'describeWorkerConfigurationResponse_latestRevision' - The latest revision of the custom configuration.
--
-- 'name', 'describeWorkerConfigurationResponse_name' - The name of the worker configuration.
--
-- 'workerConfigurationArn', 'describeWorkerConfigurationResponse_workerConfigurationArn' - The Amazon Resource Name (ARN) of the custom configuration.
--
-- 'description', 'describeWorkerConfigurationResponse_description' - The description of the worker configuration.
--
-- 'httpStatus', 'describeWorkerConfigurationResponse_httpStatus' - The response's http status code.
newDescribeWorkerConfigurationResponse ::
  -- | 'httpStatus'
  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_
    }

-- | The time that the worker configuration was created.
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

-- | The latest revision of the custom configuration.
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)

-- | The name of the worker configuration.
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)

-- | The Amazon Resource Name (ARN) of the custom configuration.
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)

-- | The description of the worker configuration.
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)

-- | The response's http status code.
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