{-# 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.Kafka.DescribeConfigurationRevision
(
DescribeConfigurationRevision (..),
newDescribeConfigurationRevision,
describeConfigurationRevision_revision,
describeConfigurationRevision_arn,
DescribeConfigurationRevisionResponse (..),
newDescribeConfigurationRevisionResponse,
describeConfigurationRevisionResponse_creationTime,
describeConfigurationRevisionResponse_serverProperties,
describeConfigurationRevisionResponse_arn,
describeConfigurationRevisionResponse_revision,
describeConfigurationRevisionResponse_description,
describeConfigurationRevisionResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Kafka.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 DescribeConfigurationRevision = DescribeConfigurationRevision'
{
DescribeConfigurationRevision -> Integer
revision :: Prelude.Integer,
DescribeConfigurationRevision -> Text
arn :: Prelude.Text
}
deriving (DescribeConfigurationRevision
-> DescribeConfigurationRevision -> Bool
(DescribeConfigurationRevision
-> DescribeConfigurationRevision -> Bool)
-> (DescribeConfigurationRevision
-> DescribeConfigurationRevision -> Bool)
-> Eq DescribeConfigurationRevision
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeConfigurationRevision
-> DescribeConfigurationRevision -> Bool
$c/= :: DescribeConfigurationRevision
-> DescribeConfigurationRevision -> Bool
== :: DescribeConfigurationRevision
-> DescribeConfigurationRevision -> Bool
$c== :: DescribeConfigurationRevision
-> DescribeConfigurationRevision -> Bool
Prelude.Eq, ReadPrec [DescribeConfigurationRevision]
ReadPrec DescribeConfigurationRevision
Int -> ReadS DescribeConfigurationRevision
ReadS [DescribeConfigurationRevision]
(Int -> ReadS DescribeConfigurationRevision)
-> ReadS [DescribeConfigurationRevision]
-> ReadPrec DescribeConfigurationRevision
-> ReadPrec [DescribeConfigurationRevision]
-> Read DescribeConfigurationRevision
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeConfigurationRevision]
$creadListPrec :: ReadPrec [DescribeConfigurationRevision]
readPrec :: ReadPrec DescribeConfigurationRevision
$creadPrec :: ReadPrec DescribeConfigurationRevision
readList :: ReadS [DescribeConfigurationRevision]
$creadList :: ReadS [DescribeConfigurationRevision]
readsPrec :: Int -> ReadS DescribeConfigurationRevision
$creadsPrec :: Int -> ReadS DescribeConfigurationRevision
Prelude.Read, Int -> DescribeConfigurationRevision -> ShowS
[DescribeConfigurationRevision] -> ShowS
DescribeConfigurationRevision -> String
(Int -> DescribeConfigurationRevision -> ShowS)
-> (DescribeConfigurationRevision -> String)
-> ([DescribeConfigurationRevision] -> ShowS)
-> Show DescribeConfigurationRevision
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeConfigurationRevision] -> ShowS
$cshowList :: [DescribeConfigurationRevision] -> ShowS
show :: DescribeConfigurationRevision -> String
$cshow :: DescribeConfigurationRevision -> String
showsPrec :: Int -> DescribeConfigurationRevision -> ShowS
$cshowsPrec :: Int -> DescribeConfigurationRevision -> ShowS
Prelude.Show, (forall x.
DescribeConfigurationRevision
-> Rep DescribeConfigurationRevision x)
-> (forall x.
Rep DescribeConfigurationRevision x
-> DescribeConfigurationRevision)
-> Generic DescribeConfigurationRevision
forall x.
Rep DescribeConfigurationRevision x
-> DescribeConfigurationRevision
forall x.
DescribeConfigurationRevision
-> Rep DescribeConfigurationRevision x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeConfigurationRevision x
-> DescribeConfigurationRevision
$cfrom :: forall x.
DescribeConfigurationRevision
-> Rep DescribeConfigurationRevision x
Prelude.Generic)
newDescribeConfigurationRevision ::
Prelude.Integer ->
Prelude.Text ->
DescribeConfigurationRevision
newDescribeConfigurationRevision :: Integer -> Text -> DescribeConfigurationRevision
newDescribeConfigurationRevision Integer
pRevision_ Text
pArn_ =
DescribeConfigurationRevision' :: Integer -> Text -> DescribeConfigurationRevision
DescribeConfigurationRevision'
{ $sel:revision:DescribeConfigurationRevision' :: Integer
revision =
Integer
pRevision_,
$sel:arn:DescribeConfigurationRevision' :: Text
arn = Text
pArn_
}
describeConfigurationRevision_revision :: Lens.Lens' DescribeConfigurationRevision Prelude.Integer
describeConfigurationRevision_revision :: (Integer -> f Integer)
-> DescribeConfigurationRevision -> f DescribeConfigurationRevision
describeConfigurationRevision_revision = (DescribeConfigurationRevision -> Integer)
-> (DescribeConfigurationRevision
-> Integer -> DescribeConfigurationRevision)
-> Lens
DescribeConfigurationRevision
DescribeConfigurationRevision
Integer
Integer
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationRevision' {Integer
revision :: Integer
$sel:revision:DescribeConfigurationRevision' :: DescribeConfigurationRevision -> Integer
revision} -> Integer
revision) (\s :: DescribeConfigurationRevision
s@DescribeConfigurationRevision' {} Integer
a -> DescribeConfigurationRevision
s {$sel:revision:DescribeConfigurationRevision' :: Integer
revision = Integer
a} :: DescribeConfigurationRevision)
describeConfigurationRevision_arn :: Lens.Lens' DescribeConfigurationRevision Prelude.Text
describeConfigurationRevision_arn :: (Text -> f Text)
-> DescribeConfigurationRevision -> f DescribeConfigurationRevision
describeConfigurationRevision_arn = (DescribeConfigurationRevision -> Text)
-> (DescribeConfigurationRevision
-> Text -> DescribeConfigurationRevision)
-> Lens
DescribeConfigurationRevision
DescribeConfigurationRevision
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationRevision' {Text
arn :: Text
$sel:arn:DescribeConfigurationRevision' :: DescribeConfigurationRevision -> Text
arn} -> Text
arn) (\s :: DescribeConfigurationRevision
s@DescribeConfigurationRevision' {} Text
a -> DescribeConfigurationRevision
s {$sel:arn:DescribeConfigurationRevision' :: Text
arn = Text
a} :: DescribeConfigurationRevision)
instance
Core.AWSRequest
DescribeConfigurationRevision
where
type
AWSResponse DescribeConfigurationRevision =
DescribeConfigurationRevisionResponse
request :: DescribeConfigurationRevision
-> Request DescribeConfigurationRevision
request = Service
-> DescribeConfigurationRevision
-> Request DescribeConfigurationRevision
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeConfigurationRevision
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeConfigurationRevision)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeConfigurationRevision))
-> Logger
-> Service
-> Proxy DescribeConfigurationRevision
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeConfigurationRevision)))
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 Base64
-> Maybe Text
-> Maybe Integer
-> Maybe Text
-> Int
-> DescribeConfigurationRevisionResponse
DescribeConfigurationRevisionResponse'
(Maybe POSIX
-> Maybe Base64
-> Maybe Text
-> Maybe Integer
-> Maybe Text
-> Int
-> DescribeConfigurationRevisionResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Base64
-> Maybe Text
-> Maybe Integer
-> Maybe Text
-> Int
-> DescribeConfigurationRevisionResponse)
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 Base64
-> Maybe Text
-> Maybe Integer
-> Maybe Text
-> Int
-> DescribeConfigurationRevisionResponse)
-> Either String (Maybe Base64)
-> Either
String
(Maybe Text
-> Maybe Integer
-> Maybe Text
-> Int
-> DescribeConfigurationRevisionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Base64)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"serverProperties")
Either
String
(Maybe Text
-> Maybe Integer
-> Maybe Text
-> Int
-> DescribeConfigurationRevisionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Integer
-> Maybe Text -> Int -> DescribeConfigurationRevisionResponse)
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
"arn")
Either
String
(Maybe Integer
-> Maybe Text -> Int -> DescribeConfigurationRevisionResponse)
-> Either String (Maybe Integer)
-> Either
String (Maybe Text -> Int -> DescribeConfigurationRevisionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"revision")
Either
String (Maybe Text -> Int -> DescribeConfigurationRevisionResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeConfigurationRevisionResponse)
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 -> DescribeConfigurationRevisionResponse)
-> Either String Int
-> Either String DescribeConfigurationRevisionResponse
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
DescribeConfigurationRevision
instance Prelude.NFData DescribeConfigurationRevision
instance Core.ToHeaders DescribeConfigurationRevision where
toHeaders :: DescribeConfigurationRevision -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeConfigurationRevision -> 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 DescribeConfigurationRevision where
toPath :: DescribeConfigurationRevision -> ByteString
toPath DescribeConfigurationRevision' {Integer
Text
arn :: Text
revision :: Integer
$sel:arn:DescribeConfigurationRevision' :: DescribeConfigurationRevision -> Text
$sel:revision:DescribeConfigurationRevision' :: DescribeConfigurationRevision -> Integer
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/v1/configurations/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
arn,
ByteString
"/revisions/",
Integer -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Integer
revision
]
instance Core.ToQuery DescribeConfigurationRevision where
toQuery :: DescribeConfigurationRevision -> QueryString
toQuery = QueryString -> DescribeConfigurationRevision -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeConfigurationRevisionResponse = DescribeConfigurationRevisionResponse'
{
DescribeConfigurationRevisionResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
DescribeConfigurationRevisionResponse -> Maybe Base64
serverProperties :: Prelude.Maybe Core.Base64,
DescribeConfigurationRevisionResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
DescribeConfigurationRevisionResponse -> Maybe Integer
revision :: Prelude.Maybe Prelude.Integer,
DescribeConfigurationRevisionResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
DescribeConfigurationRevisionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeConfigurationRevisionResponse
-> DescribeConfigurationRevisionResponse -> Bool
(DescribeConfigurationRevisionResponse
-> DescribeConfigurationRevisionResponse -> Bool)
-> (DescribeConfigurationRevisionResponse
-> DescribeConfigurationRevisionResponse -> Bool)
-> Eq DescribeConfigurationRevisionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeConfigurationRevisionResponse
-> DescribeConfigurationRevisionResponse -> Bool
$c/= :: DescribeConfigurationRevisionResponse
-> DescribeConfigurationRevisionResponse -> Bool
== :: DescribeConfigurationRevisionResponse
-> DescribeConfigurationRevisionResponse -> Bool
$c== :: DescribeConfigurationRevisionResponse
-> DescribeConfigurationRevisionResponse -> Bool
Prelude.Eq, ReadPrec [DescribeConfigurationRevisionResponse]
ReadPrec DescribeConfigurationRevisionResponse
Int -> ReadS DescribeConfigurationRevisionResponse
ReadS [DescribeConfigurationRevisionResponse]
(Int -> ReadS DescribeConfigurationRevisionResponse)
-> ReadS [DescribeConfigurationRevisionResponse]
-> ReadPrec DescribeConfigurationRevisionResponse
-> ReadPrec [DescribeConfigurationRevisionResponse]
-> Read DescribeConfigurationRevisionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeConfigurationRevisionResponse]
$creadListPrec :: ReadPrec [DescribeConfigurationRevisionResponse]
readPrec :: ReadPrec DescribeConfigurationRevisionResponse
$creadPrec :: ReadPrec DescribeConfigurationRevisionResponse
readList :: ReadS [DescribeConfigurationRevisionResponse]
$creadList :: ReadS [DescribeConfigurationRevisionResponse]
readsPrec :: Int -> ReadS DescribeConfigurationRevisionResponse
$creadsPrec :: Int -> ReadS DescribeConfigurationRevisionResponse
Prelude.Read, Int -> DescribeConfigurationRevisionResponse -> ShowS
[DescribeConfigurationRevisionResponse] -> ShowS
DescribeConfigurationRevisionResponse -> String
(Int -> DescribeConfigurationRevisionResponse -> ShowS)
-> (DescribeConfigurationRevisionResponse -> String)
-> ([DescribeConfigurationRevisionResponse] -> ShowS)
-> Show DescribeConfigurationRevisionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeConfigurationRevisionResponse] -> ShowS
$cshowList :: [DescribeConfigurationRevisionResponse] -> ShowS
show :: DescribeConfigurationRevisionResponse -> String
$cshow :: DescribeConfigurationRevisionResponse -> String
showsPrec :: Int -> DescribeConfigurationRevisionResponse -> ShowS
$cshowsPrec :: Int -> DescribeConfigurationRevisionResponse -> ShowS
Prelude.Show, (forall x.
DescribeConfigurationRevisionResponse
-> Rep DescribeConfigurationRevisionResponse x)
-> (forall x.
Rep DescribeConfigurationRevisionResponse x
-> DescribeConfigurationRevisionResponse)
-> Generic DescribeConfigurationRevisionResponse
forall x.
Rep DescribeConfigurationRevisionResponse x
-> DescribeConfigurationRevisionResponse
forall x.
DescribeConfigurationRevisionResponse
-> Rep DescribeConfigurationRevisionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeConfigurationRevisionResponse x
-> DescribeConfigurationRevisionResponse
$cfrom :: forall x.
DescribeConfigurationRevisionResponse
-> Rep DescribeConfigurationRevisionResponse x
Prelude.Generic)
newDescribeConfigurationRevisionResponse ::
Prelude.Int ->
DescribeConfigurationRevisionResponse
newDescribeConfigurationRevisionResponse :: Int -> DescribeConfigurationRevisionResponse
newDescribeConfigurationRevisionResponse Int
pHttpStatus_ =
DescribeConfigurationRevisionResponse' :: Maybe POSIX
-> Maybe Base64
-> Maybe Text
-> Maybe Integer
-> Maybe Text
-> Int
-> DescribeConfigurationRevisionResponse
DescribeConfigurationRevisionResponse'
{ $sel:creationTime:DescribeConfigurationRevisionResponse' :: Maybe POSIX
creationTime =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:serverProperties:DescribeConfigurationRevisionResponse' :: Maybe Base64
serverProperties = Maybe Base64
forall a. Maybe a
Prelude.Nothing,
$sel:arn:DescribeConfigurationRevisionResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:revision:DescribeConfigurationRevisionResponse' :: Maybe Integer
revision = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:description:DescribeConfigurationRevisionResponse' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeConfigurationRevisionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeConfigurationRevisionResponse_creationTime :: Lens.Lens' DescribeConfigurationRevisionResponse (Prelude.Maybe Prelude.UTCTime)
describeConfigurationRevisionResponse_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeConfigurationRevisionResponse
-> f DescribeConfigurationRevisionResponse
describeConfigurationRevisionResponse_creationTime = (DescribeConfigurationRevisionResponse -> Maybe POSIX)
-> (DescribeConfigurationRevisionResponse
-> Maybe POSIX -> DescribeConfigurationRevisionResponse)
-> Lens
DescribeConfigurationRevisionResponse
DescribeConfigurationRevisionResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationRevisionResponse' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:DescribeConfigurationRevisionResponse' :: DescribeConfigurationRevisionResponse -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: DescribeConfigurationRevisionResponse
s@DescribeConfigurationRevisionResponse' {} Maybe POSIX
a -> DescribeConfigurationRevisionResponse
s {$sel:creationTime:DescribeConfigurationRevisionResponse' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: DescribeConfigurationRevisionResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeConfigurationRevisionResponse
-> f DescribeConfigurationRevisionResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeConfigurationRevisionResponse
-> f DescribeConfigurationRevisionResponse
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
describeConfigurationRevisionResponse_serverProperties :: Lens.Lens' DescribeConfigurationRevisionResponse (Prelude.Maybe Prelude.ByteString)
describeConfigurationRevisionResponse_serverProperties :: (Maybe ByteString -> f (Maybe ByteString))
-> DescribeConfigurationRevisionResponse
-> f DescribeConfigurationRevisionResponse
describeConfigurationRevisionResponse_serverProperties = (DescribeConfigurationRevisionResponse -> Maybe Base64)
-> (DescribeConfigurationRevisionResponse
-> Maybe Base64 -> DescribeConfigurationRevisionResponse)
-> Lens
DescribeConfigurationRevisionResponse
DescribeConfigurationRevisionResponse
(Maybe Base64)
(Maybe Base64)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationRevisionResponse' {Maybe Base64
serverProperties :: Maybe Base64
$sel:serverProperties:DescribeConfigurationRevisionResponse' :: DescribeConfigurationRevisionResponse -> Maybe Base64
serverProperties} -> Maybe Base64
serverProperties) (\s :: DescribeConfigurationRevisionResponse
s@DescribeConfigurationRevisionResponse' {} Maybe Base64
a -> DescribeConfigurationRevisionResponse
s {$sel:serverProperties:DescribeConfigurationRevisionResponse' :: Maybe Base64
serverProperties = Maybe Base64
a} :: DescribeConfigurationRevisionResponse) ((Maybe Base64 -> f (Maybe Base64))
-> DescribeConfigurationRevisionResponse
-> f DescribeConfigurationRevisionResponse)
-> ((Maybe ByteString -> f (Maybe ByteString))
-> Maybe Base64 -> f (Maybe Base64))
-> (Maybe ByteString -> f (Maybe ByteString))
-> DescribeConfigurationRevisionResponse
-> f DescribeConfigurationRevisionResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso Base64 Base64 ByteString ByteString
-> Iso
(Maybe Base64) (Maybe Base64) (Maybe ByteString) (Maybe ByteString)
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 Base64 Base64 ByteString ByteString
Iso' Base64 ByteString
Core._Base64
describeConfigurationRevisionResponse_arn :: Lens.Lens' DescribeConfigurationRevisionResponse (Prelude.Maybe Prelude.Text)
describeConfigurationRevisionResponse_arn :: (Maybe Text -> f (Maybe Text))
-> DescribeConfigurationRevisionResponse
-> f DescribeConfigurationRevisionResponse
describeConfigurationRevisionResponse_arn = (DescribeConfigurationRevisionResponse -> Maybe Text)
-> (DescribeConfigurationRevisionResponse
-> Maybe Text -> DescribeConfigurationRevisionResponse)
-> Lens
DescribeConfigurationRevisionResponse
DescribeConfigurationRevisionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationRevisionResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:DescribeConfigurationRevisionResponse' :: DescribeConfigurationRevisionResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: DescribeConfigurationRevisionResponse
s@DescribeConfigurationRevisionResponse' {} Maybe Text
a -> DescribeConfigurationRevisionResponse
s {$sel:arn:DescribeConfigurationRevisionResponse' :: Maybe Text
arn = Maybe Text
a} :: DescribeConfigurationRevisionResponse)
describeConfigurationRevisionResponse_revision :: Lens.Lens' DescribeConfigurationRevisionResponse (Prelude.Maybe Prelude.Integer)
describeConfigurationRevisionResponse_revision :: (Maybe Integer -> f (Maybe Integer))
-> DescribeConfigurationRevisionResponse
-> f DescribeConfigurationRevisionResponse
describeConfigurationRevisionResponse_revision = (DescribeConfigurationRevisionResponse -> Maybe Integer)
-> (DescribeConfigurationRevisionResponse
-> Maybe Integer -> DescribeConfigurationRevisionResponse)
-> Lens
DescribeConfigurationRevisionResponse
DescribeConfigurationRevisionResponse
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationRevisionResponse' {Maybe Integer
revision :: Maybe Integer
$sel:revision:DescribeConfigurationRevisionResponse' :: DescribeConfigurationRevisionResponse -> Maybe Integer
revision} -> Maybe Integer
revision) (\s :: DescribeConfigurationRevisionResponse
s@DescribeConfigurationRevisionResponse' {} Maybe Integer
a -> DescribeConfigurationRevisionResponse
s {$sel:revision:DescribeConfigurationRevisionResponse' :: Maybe Integer
revision = Maybe Integer
a} :: DescribeConfigurationRevisionResponse)
describeConfigurationRevisionResponse_description :: Lens.Lens' DescribeConfigurationRevisionResponse (Prelude.Maybe Prelude.Text)
describeConfigurationRevisionResponse_description :: (Maybe Text -> f (Maybe Text))
-> DescribeConfigurationRevisionResponse
-> f DescribeConfigurationRevisionResponse
describeConfigurationRevisionResponse_description = (DescribeConfigurationRevisionResponse -> Maybe Text)
-> (DescribeConfigurationRevisionResponse
-> Maybe Text -> DescribeConfigurationRevisionResponse)
-> Lens
DescribeConfigurationRevisionResponse
DescribeConfigurationRevisionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationRevisionResponse' {Maybe Text
description :: Maybe Text
$sel:description:DescribeConfigurationRevisionResponse' :: DescribeConfigurationRevisionResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: DescribeConfigurationRevisionResponse
s@DescribeConfigurationRevisionResponse' {} Maybe Text
a -> DescribeConfigurationRevisionResponse
s {$sel:description:DescribeConfigurationRevisionResponse' :: Maybe Text
description = Maybe Text
a} :: DescribeConfigurationRevisionResponse)
describeConfigurationRevisionResponse_httpStatus :: Lens.Lens' DescribeConfigurationRevisionResponse Prelude.Int
describeConfigurationRevisionResponse_httpStatus :: (Int -> f Int)
-> DescribeConfigurationRevisionResponse
-> f DescribeConfigurationRevisionResponse
describeConfigurationRevisionResponse_httpStatus = (DescribeConfigurationRevisionResponse -> Int)
-> (DescribeConfigurationRevisionResponse
-> Int -> DescribeConfigurationRevisionResponse)
-> Lens
DescribeConfigurationRevisionResponse
DescribeConfigurationRevisionResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationRevisionResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeConfigurationRevisionResponse' :: DescribeConfigurationRevisionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeConfigurationRevisionResponse
s@DescribeConfigurationRevisionResponse' {} Int
a -> DescribeConfigurationRevisionResponse
s {$sel:httpStatus:DescribeConfigurationRevisionResponse' :: Int
httpStatus = Int
a} :: DescribeConfigurationRevisionResponse)
instance
Prelude.NFData
DescribeConfigurationRevisionResponse