{-# 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.DescribeCustomPlugin
-- 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)
--
-- A summary description of the custom plugin.
module Amazonka.KafkaConnect.DescribeCustomPlugin
  ( -- * Creating a Request
    DescribeCustomPlugin (..),
    newDescribeCustomPlugin,

    -- * Request Lenses
    describeCustomPlugin_customPluginArn,

    -- * Destructuring the Response
    DescribeCustomPluginResponse (..),
    newDescribeCustomPluginResponse,

    -- * Response Lenses
    describeCustomPluginResponse_creationTime,
    describeCustomPluginResponse_latestRevision,
    describeCustomPluginResponse_name,
    describeCustomPluginResponse_customPluginArn,
    describeCustomPluginResponse_customPluginState,
    describeCustomPluginResponse_description,
    describeCustomPluginResponse_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:/ 'newDescribeCustomPlugin' smart constructor.
data DescribeCustomPlugin = DescribeCustomPlugin'
  { -- | Returns information about a custom plugin.
    DescribeCustomPlugin -> Text
customPluginArn :: Prelude.Text
  }
  deriving (DescribeCustomPlugin -> DescribeCustomPlugin -> Bool
(DescribeCustomPlugin -> DescribeCustomPlugin -> Bool)
-> (DescribeCustomPlugin -> DescribeCustomPlugin -> Bool)
-> Eq DescribeCustomPlugin
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeCustomPlugin -> DescribeCustomPlugin -> Bool
$c/= :: DescribeCustomPlugin -> DescribeCustomPlugin -> Bool
== :: DescribeCustomPlugin -> DescribeCustomPlugin -> Bool
$c== :: DescribeCustomPlugin -> DescribeCustomPlugin -> Bool
Prelude.Eq, ReadPrec [DescribeCustomPlugin]
ReadPrec DescribeCustomPlugin
Int -> ReadS DescribeCustomPlugin
ReadS [DescribeCustomPlugin]
(Int -> ReadS DescribeCustomPlugin)
-> ReadS [DescribeCustomPlugin]
-> ReadPrec DescribeCustomPlugin
-> ReadPrec [DescribeCustomPlugin]
-> Read DescribeCustomPlugin
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeCustomPlugin]
$creadListPrec :: ReadPrec [DescribeCustomPlugin]
readPrec :: ReadPrec DescribeCustomPlugin
$creadPrec :: ReadPrec DescribeCustomPlugin
readList :: ReadS [DescribeCustomPlugin]
$creadList :: ReadS [DescribeCustomPlugin]
readsPrec :: Int -> ReadS DescribeCustomPlugin
$creadsPrec :: Int -> ReadS DescribeCustomPlugin
Prelude.Read, Int -> DescribeCustomPlugin -> ShowS
[DescribeCustomPlugin] -> ShowS
DescribeCustomPlugin -> String
(Int -> DescribeCustomPlugin -> ShowS)
-> (DescribeCustomPlugin -> String)
-> ([DescribeCustomPlugin] -> ShowS)
-> Show DescribeCustomPlugin
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeCustomPlugin] -> ShowS
$cshowList :: [DescribeCustomPlugin] -> ShowS
show :: DescribeCustomPlugin -> String
$cshow :: DescribeCustomPlugin -> String
showsPrec :: Int -> DescribeCustomPlugin -> ShowS
$cshowsPrec :: Int -> DescribeCustomPlugin -> ShowS
Prelude.Show, (forall x. DescribeCustomPlugin -> Rep DescribeCustomPlugin x)
-> (forall x. Rep DescribeCustomPlugin x -> DescribeCustomPlugin)
-> Generic DescribeCustomPlugin
forall x. Rep DescribeCustomPlugin x -> DescribeCustomPlugin
forall x. DescribeCustomPlugin -> Rep DescribeCustomPlugin x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeCustomPlugin x -> DescribeCustomPlugin
$cfrom :: forall x. DescribeCustomPlugin -> Rep DescribeCustomPlugin x
Prelude.Generic)

-- |
-- Create a value of 'DescribeCustomPlugin' 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:
--
-- 'customPluginArn', 'describeCustomPlugin_customPluginArn' - Returns information about a custom plugin.
newDescribeCustomPlugin ::
  -- | 'customPluginArn'
  Prelude.Text ->
  DescribeCustomPlugin
newDescribeCustomPlugin :: Text -> DescribeCustomPlugin
newDescribeCustomPlugin Text
pCustomPluginArn_ =
  DescribeCustomPlugin' :: Text -> DescribeCustomPlugin
DescribeCustomPlugin'
    { $sel:customPluginArn:DescribeCustomPlugin' :: Text
customPluginArn =
        Text
pCustomPluginArn_
    }

-- | Returns information about a custom plugin.
describeCustomPlugin_customPluginArn :: Lens.Lens' DescribeCustomPlugin Prelude.Text
describeCustomPlugin_customPluginArn :: (Text -> f Text) -> DescribeCustomPlugin -> f DescribeCustomPlugin
describeCustomPlugin_customPluginArn = (DescribeCustomPlugin -> Text)
-> (DescribeCustomPlugin -> Text -> DescribeCustomPlugin)
-> Lens DescribeCustomPlugin DescribeCustomPlugin Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCustomPlugin' {Text
customPluginArn :: Text
$sel:customPluginArn:DescribeCustomPlugin' :: DescribeCustomPlugin -> Text
customPluginArn} -> Text
customPluginArn) (\s :: DescribeCustomPlugin
s@DescribeCustomPlugin' {} Text
a -> DescribeCustomPlugin
s {$sel:customPluginArn:DescribeCustomPlugin' :: Text
customPluginArn = Text
a} :: DescribeCustomPlugin)

instance Core.AWSRequest DescribeCustomPlugin where
  type
    AWSResponse DescribeCustomPlugin =
      DescribeCustomPluginResponse
  request :: DescribeCustomPlugin -> Request DescribeCustomPlugin
request = Service -> DescribeCustomPlugin -> Request DescribeCustomPlugin
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeCustomPlugin
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeCustomPlugin)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeCustomPlugin))
-> Logger
-> Service
-> Proxy DescribeCustomPlugin
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeCustomPlugin)))
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 CustomPluginRevisionSummary
-> Maybe Text
-> Maybe Text
-> Maybe CustomPluginState
-> Maybe Text
-> Int
-> DescribeCustomPluginResponse
DescribeCustomPluginResponse'
            (Maybe POSIX
 -> Maybe CustomPluginRevisionSummary
 -> Maybe Text
 -> Maybe Text
 -> Maybe CustomPluginState
 -> Maybe Text
 -> Int
 -> DescribeCustomPluginResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe CustomPluginRevisionSummary
      -> Maybe Text
      -> Maybe Text
      -> Maybe CustomPluginState
      -> Maybe Text
      -> Int
      -> DescribeCustomPluginResponse)
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 CustomPluginRevisionSummary
   -> Maybe Text
   -> Maybe Text
   -> Maybe CustomPluginState
   -> Maybe Text
   -> Int
   -> DescribeCustomPluginResponse)
-> Either String (Maybe CustomPluginRevisionSummary)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe CustomPluginState
      -> Maybe Text
      -> Int
      -> DescribeCustomPluginResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe CustomPluginRevisionSummary)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"latestRevision")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe CustomPluginState
   -> Maybe Text
   -> Int
   -> DescribeCustomPluginResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe CustomPluginState
      -> Maybe Text
      -> Int
      -> DescribeCustomPluginResponse)
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 CustomPluginState
   -> Maybe Text
   -> Int
   -> DescribeCustomPluginResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe CustomPluginState
      -> Maybe Text -> Int -> DescribeCustomPluginResponse)
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
"customPluginArn")
            Either
  String
  (Maybe CustomPluginState
   -> Maybe Text -> Int -> DescribeCustomPluginResponse)
-> Either String (Maybe CustomPluginState)
-> Either
     String (Maybe Text -> Int -> DescribeCustomPluginResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe CustomPluginState)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"customPluginState")
            Either String (Maybe Text -> Int -> DescribeCustomPluginResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeCustomPluginResponse)
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 -> DescribeCustomPluginResponse)
-> Either String Int -> Either String DescribeCustomPluginResponse
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 DescribeCustomPlugin

instance Prelude.NFData DescribeCustomPlugin

instance Core.ToHeaders DescribeCustomPlugin where
  toHeaders :: DescribeCustomPlugin -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeCustomPlugin -> 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 DescribeCustomPlugin where
  toPath :: DescribeCustomPlugin -> ByteString
toPath DescribeCustomPlugin' {Text
customPluginArn :: Text
$sel:customPluginArn:DescribeCustomPlugin' :: DescribeCustomPlugin -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"/v1/custom-plugins/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
customPluginArn]

instance Core.ToQuery DescribeCustomPlugin where
  toQuery :: DescribeCustomPlugin -> QueryString
toQuery = QueryString -> DescribeCustomPlugin -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newDescribeCustomPluginResponse' smart constructor.
data DescribeCustomPluginResponse = DescribeCustomPluginResponse'
  { -- | The time that the custom plugin was created.
    DescribeCustomPluginResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
    -- | The latest successfully created revision of the custom plugin. If there
    -- are no successfully created revisions, this field will be absent.
    DescribeCustomPluginResponse -> Maybe CustomPluginRevisionSummary
latestRevision :: Prelude.Maybe CustomPluginRevisionSummary,
    -- | The name of the custom plugin.
    DescribeCustomPluginResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the custom plugin.
    DescribeCustomPluginResponse -> Maybe Text
customPluginArn :: Prelude.Maybe Prelude.Text,
    -- | The state of the custom plugin.
    DescribeCustomPluginResponse -> Maybe CustomPluginState
customPluginState :: Prelude.Maybe CustomPluginState,
    -- | The description of the custom plugin.
    DescribeCustomPluginResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DescribeCustomPluginResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeCustomPluginResponse
-> DescribeCustomPluginResponse -> Bool
(DescribeCustomPluginResponse
 -> DescribeCustomPluginResponse -> Bool)
-> (DescribeCustomPluginResponse
    -> DescribeCustomPluginResponse -> Bool)
-> Eq DescribeCustomPluginResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeCustomPluginResponse
-> DescribeCustomPluginResponse -> Bool
$c/= :: DescribeCustomPluginResponse
-> DescribeCustomPluginResponse -> Bool
== :: DescribeCustomPluginResponse
-> DescribeCustomPluginResponse -> Bool
$c== :: DescribeCustomPluginResponse
-> DescribeCustomPluginResponse -> Bool
Prelude.Eq, ReadPrec [DescribeCustomPluginResponse]
ReadPrec DescribeCustomPluginResponse
Int -> ReadS DescribeCustomPluginResponse
ReadS [DescribeCustomPluginResponse]
(Int -> ReadS DescribeCustomPluginResponse)
-> ReadS [DescribeCustomPluginResponse]
-> ReadPrec DescribeCustomPluginResponse
-> ReadPrec [DescribeCustomPluginResponse]
-> Read DescribeCustomPluginResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeCustomPluginResponse]
$creadListPrec :: ReadPrec [DescribeCustomPluginResponse]
readPrec :: ReadPrec DescribeCustomPluginResponse
$creadPrec :: ReadPrec DescribeCustomPluginResponse
readList :: ReadS [DescribeCustomPluginResponse]
$creadList :: ReadS [DescribeCustomPluginResponse]
readsPrec :: Int -> ReadS DescribeCustomPluginResponse
$creadsPrec :: Int -> ReadS DescribeCustomPluginResponse
Prelude.Read, Int -> DescribeCustomPluginResponse -> ShowS
[DescribeCustomPluginResponse] -> ShowS
DescribeCustomPluginResponse -> String
(Int -> DescribeCustomPluginResponse -> ShowS)
-> (DescribeCustomPluginResponse -> String)
-> ([DescribeCustomPluginResponse] -> ShowS)
-> Show DescribeCustomPluginResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeCustomPluginResponse] -> ShowS
$cshowList :: [DescribeCustomPluginResponse] -> ShowS
show :: DescribeCustomPluginResponse -> String
$cshow :: DescribeCustomPluginResponse -> String
showsPrec :: Int -> DescribeCustomPluginResponse -> ShowS
$cshowsPrec :: Int -> DescribeCustomPluginResponse -> ShowS
Prelude.Show, (forall x.
 DescribeCustomPluginResponse -> Rep DescribeCustomPluginResponse x)
-> (forall x.
    Rep DescribeCustomPluginResponse x -> DescribeCustomPluginResponse)
-> Generic DescribeCustomPluginResponse
forall x.
Rep DescribeCustomPluginResponse x -> DescribeCustomPluginResponse
forall x.
DescribeCustomPluginResponse -> Rep DescribeCustomPluginResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeCustomPluginResponse x -> DescribeCustomPluginResponse
$cfrom :: forall x.
DescribeCustomPluginResponse -> Rep DescribeCustomPluginResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeCustomPluginResponse' 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', 'describeCustomPluginResponse_creationTime' - The time that the custom plugin was created.
--
-- 'latestRevision', 'describeCustomPluginResponse_latestRevision' - The latest successfully created revision of the custom plugin. If there
-- are no successfully created revisions, this field will be absent.
--
-- 'name', 'describeCustomPluginResponse_name' - The name of the custom plugin.
--
-- 'customPluginArn', 'describeCustomPluginResponse_customPluginArn' - The Amazon Resource Name (ARN) of the custom plugin.
--
-- 'customPluginState', 'describeCustomPluginResponse_customPluginState' - The state of the custom plugin.
--
-- 'description', 'describeCustomPluginResponse_description' - The description of the custom plugin.
--
-- 'httpStatus', 'describeCustomPluginResponse_httpStatus' - The response's http status code.
newDescribeCustomPluginResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeCustomPluginResponse
newDescribeCustomPluginResponse :: Int -> DescribeCustomPluginResponse
newDescribeCustomPluginResponse Int
pHttpStatus_ =
  DescribeCustomPluginResponse' :: Maybe POSIX
-> Maybe CustomPluginRevisionSummary
-> Maybe Text
-> Maybe Text
-> Maybe CustomPluginState
-> Maybe Text
-> Int
-> DescribeCustomPluginResponse
DescribeCustomPluginResponse'
    { $sel:creationTime:DescribeCustomPluginResponse' :: Maybe POSIX
creationTime =
        Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:latestRevision:DescribeCustomPluginResponse' :: Maybe CustomPluginRevisionSummary
latestRevision = Maybe CustomPluginRevisionSummary
forall a. Maybe a
Prelude.Nothing,
      $sel:name:DescribeCustomPluginResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:customPluginArn:DescribeCustomPluginResponse' :: Maybe Text
customPluginArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:customPluginState:DescribeCustomPluginResponse' :: Maybe CustomPluginState
customPluginState = Maybe CustomPluginState
forall a. Maybe a
Prelude.Nothing,
      $sel:description:DescribeCustomPluginResponse' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeCustomPluginResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The time that the custom plugin was created.
describeCustomPluginResponse_creationTime :: Lens.Lens' DescribeCustomPluginResponse (Prelude.Maybe Prelude.UTCTime)
describeCustomPluginResponse_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeCustomPluginResponse -> f DescribeCustomPluginResponse
describeCustomPluginResponse_creationTime = (DescribeCustomPluginResponse -> Maybe POSIX)
-> (DescribeCustomPluginResponse
    -> Maybe POSIX -> DescribeCustomPluginResponse)
-> Lens
     DescribeCustomPluginResponse
     DescribeCustomPluginResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCustomPluginResponse' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:DescribeCustomPluginResponse' :: DescribeCustomPluginResponse -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: DescribeCustomPluginResponse
s@DescribeCustomPluginResponse' {} Maybe POSIX
a -> DescribeCustomPluginResponse
s {$sel:creationTime:DescribeCustomPluginResponse' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: DescribeCustomPluginResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribeCustomPluginResponse -> f DescribeCustomPluginResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeCustomPluginResponse
-> f DescribeCustomPluginResponse
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 successfully created revision of the custom plugin. If there
-- are no successfully created revisions, this field will be absent.
describeCustomPluginResponse_latestRevision :: Lens.Lens' DescribeCustomPluginResponse (Prelude.Maybe CustomPluginRevisionSummary)
describeCustomPluginResponse_latestRevision :: (Maybe CustomPluginRevisionSummary
 -> f (Maybe CustomPluginRevisionSummary))
-> DescribeCustomPluginResponse -> f DescribeCustomPluginResponse
describeCustomPluginResponse_latestRevision = (DescribeCustomPluginResponse -> Maybe CustomPluginRevisionSummary)
-> (DescribeCustomPluginResponse
    -> Maybe CustomPluginRevisionSummary
    -> DescribeCustomPluginResponse)
-> Lens
     DescribeCustomPluginResponse
     DescribeCustomPluginResponse
     (Maybe CustomPluginRevisionSummary)
     (Maybe CustomPluginRevisionSummary)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCustomPluginResponse' {Maybe CustomPluginRevisionSummary
latestRevision :: Maybe CustomPluginRevisionSummary
$sel:latestRevision:DescribeCustomPluginResponse' :: DescribeCustomPluginResponse -> Maybe CustomPluginRevisionSummary
latestRevision} -> Maybe CustomPluginRevisionSummary
latestRevision) (\s :: DescribeCustomPluginResponse
s@DescribeCustomPluginResponse' {} Maybe CustomPluginRevisionSummary
a -> DescribeCustomPluginResponse
s {$sel:latestRevision:DescribeCustomPluginResponse' :: Maybe CustomPluginRevisionSummary
latestRevision = Maybe CustomPluginRevisionSummary
a} :: DescribeCustomPluginResponse)

-- | The name of the custom plugin.
describeCustomPluginResponse_name :: Lens.Lens' DescribeCustomPluginResponse (Prelude.Maybe Prelude.Text)
describeCustomPluginResponse_name :: (Maybe Text -> f (Maybe Text))
-> DescribeCustomPluginResponse -> f DescribeCustomPluginResponse
describeCustomPluginResponse_name = (DescribeCustomPluginResponse -> Maybe Text)
-> (DescribeCustomPluginResponse
    -> Maybe Text -> DescribeCustomPluginResponse)
-> Lens
     DescribeCustomPluginResponse
     DescribeCustomPluginResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCustomPluginResponse' {Maybe Text
name :: Maybe Text
$sel:name:DescribeCustomPluginResponse' :: DescribeCustomPluginResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: DescribeCustomPluginResponse
s@DescribeCustomPluginResponse' {} Maybe Text
a -> DescribeCustomPluginResponse
s {$sel:name:DescribeCustomPluginResponse' :: Maybe Text
name = Maybe Text
a} :: DescribeCustomPluginResponse)

-- | The Amazon Resource Name (ARN) of the custom plugin.
describeCustomPluginResponse_customPluginArn :: Lens.Lens' DescribeCustomPluginResponse (Prelude.Maybe Prelude.Text)
describeCustomPluginResponse_customPluginArn :: (Maybe Text -> f (Maybe Text))
-> DescribeCustomPluginResponse -> f DescribeCustomPluginResponse
describeCustomPluginResponse_customPluginArn = (DescribeCustomPluginResponse -> Maybe Text)
-> (DescribeCustomPluginResponse
    -> Maybe Text -> DescribeCustomPluginResponse)
-> Lens
     DescribeCustomPluginResponse
     DescribeCustomPluginResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCustomPluginResponse' {Maybe Text
customPluginArn :: Maybe Text
$sel:customPluginArn:DescribeCustomPluginResponse' :: DescribeCustomPluginResponse -> Maybe Text
customPluginArn} -> Maybe Text
customPluginArn) (\s :: DescribeCustomPluginResponse
s@DescribeCustomPluginResponse' {} Maybe Text
a -> DescribeCustomPluginResponse
s {$sel:customPluginArn:DescribeCustomPluginResponse' :: Maybe Text
customPluginArn = Maybe Text
a} :: DescribeCustomPluginResponse)

-- | The state of the custom plugin.
describeCustomPluginResponse_customPluginState :: Lens.Lens' DescribeCustomPluginResponse (Prelude.Maybe CustomPluginState)
describeCustomPluginResponse_customPluginState :: (Maybe CustomPluginState -> f (Maybe CustomPluginState))
-> DescribeCustomPluginResponse -> f DescribeCustomPluginResponse
describeCustomPluginResponse_customPluginState = (DescribeCustomPluginResponse -> Maybe CustomPluginState)
-> (DescribeCustomPluginResponse
    -> Maybe CustomPluginState -> DescribeCustomPluginResponse)
-> Lens
     DescribeCustomPluginResponse
     DescribeCustomPluginResponse
     (Maybe CustomPluginState)
     (Maybe CustomPluginState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCustomPluginResponse' {Maybe CustomPluginState
customPluginState :: Maybe CustomPluginState
$sel:customPluginState:DescribeCustomPluginResponse' :: DescribeCustomPluginResponse -> Maybe CustomPluginState
customPluginState} -> Maybe CustomPluginState
customPluginState) (\s :: DescribeCustomPluginResponse
s@DescribeCustomPluginResponse' {} Maybe CustomPluginState
a -> DescribeCustomPluginResponse
s {$sel:customPluginState:DescribeCustomPluginResponse' :: Maybe CustomPluginState
customPluginState = Maybe CustomPluginState
a} :: DescribeCustomPluginResponse)

-- | The description of the custom plugin.
describeCustomPluginResponse_description :: Lens.Lens' DescribeCustomPluginResponse (Prelude.Maybe Prelude.Text)
describeCustomPluginResponse_description :: (Maybe Text -> f (Maybe Text))
-> DescribeCustomPluginResponse -> f DescribeCustomPluginResponse
describeCustomPluginResponse_description = (DescribeCustomPluginResponse -> Maybe Text)
-> (DescribeCustomPluginResponse
    -> Maybe Text -> DescribeCustomPluginResponse)
-> Lens
     DescribeCustomPluginResponse
     DescribeCustomPluginResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCustomPluginResponse' {Maybe Text
description :: Maybe Text
$sel:description:DescribeCustomPluginResponse' :: DescribeCustomPluginResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: DescribeCustomPluginResponse
s@DescribeCustomPluginResponse' {} Maybe Text
a -> DescribeCustomPluginResponse
s {$sel:description:DescribeCustomPluginResponse' :: Maybe Text
description = Maybe Text
a} :: DescribeCustomPluginResponse)

-- | The response's http status code.
describeCustomPluginResponse_httpStatus :: Lens.Lens' DescribeCustomPluginResponse Prelude.Int
describeCustomPluginResponse_httpStatus :: (Int -> f Int)
-> DescribeCustomPluginResponse -> f DescribeCustomPluginResponse
describeCustomPluginResponse_httpStatus = (DescribeCustomPluginResponse -> Int)
-> (DescribeCustomPluginResponse
    -> Int -> DescribeCustomPluginResponse)
-> Lens
     DescribeCustomPluginResponse DescribeCustomPluginResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeCustomPluginResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeCustomPluginResponse' :: DescribeCustomPluginResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeCustomPluginResponse
s@DescribeCustomPluginResponse' {} Int
a -> DescribeCustomPluginResponse
s {$sel:httpStatus:DescribeCustomPluginResponse' :: Int
httpStatus = Int
a} :: DescribeCustomPluginResponse)

instance Prelude.NFData DescribeCustomPluginResponse