{-# 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.DescribeCustomPlugin
(
DescribeCustomPlugin (..),
newDescribeCustomPlugin,
describeCustomPlugin_customPluginArn,
DescribeCustomPluginResponse (..),
newDescribeCustomPluginResponse,
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
data DescribeCustomPlugin = DescribeCustomPlugin'
{
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)
newDescribeCustomPlugin ::
Prelude.Text ->
DescribeCustomPlugin
newDescribeCustomPlugin :: Text -> DescribeCustomPlugin
newDescribeCustomPlugin Text
pCustomPluginArn_ =
DescribeCustomPlugin' :: Text -> DescribeCustomPlugin
DescribeCustomPlugin'
{ $sel:customPluginArn:DescribeCustomPlugin' :: Text
customPluginArn =
Text
pCustomPluginArn_
}
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
data DescribeCustomPluginResponse = DescribeCustomPluginResponse'
{
DescribeCustomPluginResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
DescribeCustomPluginResponse -> Maybe CustomPluginRevisionSummary
latestRevision :: Prelude.Maybe CustomPluginRevisionSummary,
DescribeCustomPluginResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
DescribeCustomPluginResponse -> Maybe Text
customPluginArn :: Prelude.Maybe Prelude.Text,
DescribeCustomPluginResponse -> Maybe CustomPluginState
customPluginState :: Prelude.Maybe CustomPluginState,
DescribeCustomPluginResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
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)
newDescribeCustomPluginResponse ::
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_
}
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
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)
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)
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)
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)
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)
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