{-# 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.MQ.DescribeConfigurationRevision
-- 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 the specified configuration revision for the specified
-- configuration.
module Amazonka.MQ.DescribeConfigurationRevision
  ( -- * Creating a Request
    DescribeConfigurationRevision (..),
    newDescribeConfigurationRevision,

    -- * Request Lenses
    describeConfigurationRevision_configurationRevision,
    describeConfigurationRevision_configurationId,

    -- * Destructuring the Response
    DescribeConfigurationRevisionResponse (..),
    newDescribeConfigurationRevisionResponse,

    -- * Response Lenses
    describeConfigurationRevisionResponse_configurationId,
    describeConfigurationRevisionResponse_data,
    describeConfigurationRevisionResponse_created,
    describeConfigurationRevisionResponse_description,
    describeConfigurationRevisionResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MQ.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newDescribeConfigurationRevision' smart constructor.
data DescribeConfigurationRevision = DescribeConfigurationRevision'
  { -- | The revision of the configuration.
    DescribeConfigurationRevision -> Text
configurationRevision :: Prelude.Text,
    -- | The unique ID that Amazon MQ generates for the configuration.
    DescribeConfigurationRevision -> Text
configurationId :: 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)

-- |
-- Create a value of 'DescribeConfigurationRevision' 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:
--
-- 'configurationRevision', 'describeConfigurationRevision_configurationRevision' - The revision of the configuration.
--
-- 'configurationId', 'describeConfigurationRevision_configurationId' - The unique ID that Amazon MQ generates for the configuration.
newDescribeConfigurationRevision ::
  -- | 'configurationRevision'
  Prelude.Text ->
  -- | 'configurationId'
  Prelude.Text ->
  DescribeConfigurationRevision
newDescribeConfigurationRevision :: Text -> Text -> DescribeConfigurationRevision
newDescribeConfigurationRevision
  Text
pConfigurationRevision_
  Text
pConfigurationId_ =
    DescribeConfigurationRevision' :: Text -> Text -> DescribeConfigurationRevision
DescribeConfigurationRevision'
      { $sel:configurationRevision:DescribeConfigurationRevision' :: Text
configurationRevision =
          Text
pConfigurationRevision_,
        $sel:configurationId:DescribeConfigurationRevision' :: Text
configurationId = Text
pConfigurationId_
      }

-- | The revision of the configuration.
describeConfigurationRevision_configurationRevision :: Lens.Lens' DescribeConfigurationRevision Prelude.Text
describeConfigurationRevision_configurationRevision :: (Text -> f Text)
-> DescribeConfigurationRevision -> f DescribeConfigurationRevision
describeConfigurationRevision_configurationRevision = (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
configurationRevision :: Text
$sel:configurationRevision:DescribeConfigurationRevision' :: DescribeConfigurationRevision -> Text
configurationRevision} -> Text
configurationRevision) (\s :: DescribeConfigurationRevision
s@DescribeConfigurationRevision' {} Text
a -> DescribeConfigurationRevision
s {$sel:configurationRevision:DescribeConfigurationRevision' :: Text
configurationRevision = Text
a} :: DescribeConfigurationRevision)

-- | The unique ID that Amazon MQ generates for the configuration.
describeConfigurationRevision_configurationId :: Lens.Lens' DescribeConfigurationRevision Prelude.Text
describeConfigurationRevision_configurationId :: (Text -> f Text)
-> DescribeConfigurationRevision -> f DescribeConfigurationRevision
describeConfigurationRevision_configurationId = (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
configurationId :: Text
$sel:configurationId:DescribeConfigurationRevision' :: DescribeConfigurationRevision -> Text
configurationId} -> Text
configurationId) (\s :: DescribeConfigurationRevision
s@DescribeConfigurationRevision' {} Text
a -> DescribeConfigurationRevision
s {$sel:configurationId:DescribeConfigurationRevision' :: Text
configurationId = 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 Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeConfigurationRevisionResponse
DescribeConfigurationRevisionResponse'
            (Maybe Text
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe Text
 -> Int
 -> DescribeConfigurationRevisionResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Int
      -> DescribeConfigurationRevisionResponse)
forall (f :: * -> *) a b. Functor 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
"configurationId")
            Either
  String
  (Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Int
   -> DescribeConfigurationRevisionResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe POSIX
      -> 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
"data")
            Either
  String
  (Maybe POSIX
   -> Maybe Text -> Int -> DescribeConfigurationRevisionResponse)
-> Either String (Maybe POSIX)
-> 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 POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"created")
            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' {Text
configurationId :: Text
configurationRevision :: Text
$sel:configurationId:DescribeConfigurationRevision' :: DescribeConfigurationRevision -> Text
$sel:configurationRevision:DescribeConfigurationRevision' :: DescribeConfigurationRevision -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/v1/configurations/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
configurationId,
        ByteString
"/revisions/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
configurationRevision
      ]

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

-- | /See:/ 'newDescribeConfigurationRevisionResponse' smart constructor.
data DescribeConfigurationRevisionResponse = DescribeConfigurationRevisionResponse'
  { -- | Required. The unique ID that Amazon MQ generates for the configuration.
    DescribeConfigurationRevisionResponse -> Maybe Text
configurationId :: Prelude.Maybe Prelude.Text,
    -- | Required. The base64-encoded XML configuration.
    DescribeConfigurationRevisionResponse -> Maybe Text
data' :: Prelude.Maybe Prelude.Text,
    -- | Required. The date and time of the configuration.
    DescribeConfigurationRevisionResponse -> Maybe POSIX
created :: Prelude.Maybe Core.POSIX,
    -- | The description of the configuration.
    DescribeConfigurationRevisionResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    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)

-- |
-- Create a value of 'DescribeConfigurationRevisionResponse' 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:
--
-- 'configurationId', 'describeConfigurationRevisionResponse_configurationId' - Required. The unique ID that Amazon MQ generates for the configuration.
--
-- 'data'', 'describeConfigurationRevisionResponse_data' - Required. The base64-encoded XML configuration.
--
-- 'created', 'describeConfigurationRevisionResponse_created' - Required. The date and time of the configuration.
--
-- 'description', 'describeConfigurationRevisionResponse_description' - The description of the configuration.
--
-- 'httpStatus', 'describeConfigurationRevisionResponse_httpStatus' - The response's http status code.
newDescribeConfigurationRevisionResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeConfigurationRevisionResponse
newDescribeConfigurationRevisionResponse :: Int -> DescribeConfigurationRevisionResponse
newDescribeConfigurationRevisionResponse Int
pHttpStatus_ =
  DescribeConfigurationRevisionResponse' :: Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeConfigurationRevisionResponse
DescribeConfigurationRevisionResponse'
    { $sel:configurationId:DescribeConfigurationRevisionResponse' :: Maybe Text
configurationId =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:data':DescribeConfigurationRevisionResponse' :: Maybe Text
data' = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:created:DescribeConfigurationRevisionResponse' :: Maybe POSIX
created = Maybe POSIX
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_
    }

-- | Required. The unique ID that Amazon MQ generates for the configuration.
describeConfigurationRevisionResponse_configurationId :: Lens.Lens' DescribeConfigurationRevisionResponse (Prelude.Maybe Prelude.Text)
describeConfigurationRevisionResponse_configurationId :: (Maybe Text -> f (Maybe Text))
-> DescribeConfigurationRevisionResponse
-> f DescribeConfigurationRevisionResponse
describeConfigurationRevisionResponse_configurationId = (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
configurationId :: Maybe Text
$sel:configurationId:DescribeConfigurationRevisionResponse' :: DescribeConfigurationRevisionResponse -> Maybe Text
configurationId} -> Maybe Text
configurationId) (\s :: DescribeConfigurationRevisionResponse
s@DescribeConfigurationRevisionResponse' {} Maybe Text
a -> DescribeConfigurationRevisionResponse
s {$sel:configurationId:DescribeConfigurationRevisionResponse' :: Maybe Text
configurationId = Maybe Text
a} :: DescribeConfigurationRevisionResponse)

-- | Required. The base64-encoded XML configuration.
describeConfigurationRevisionResponse_data :: Lens.Lens' DescribeConfigurationRevisionResponse (Prelude.Maybe Prelude.Text)
describeConfigurationRevisionResponse_data :: (Maybe Text -> f (Maybe Text))
-> DescribeConfigurationRevisionResponse
-> f DescribeConfigurationRevisionResponse
describeConfigurationRevisionResponse_data = (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
data' :: Maybe Text
$sel:data':DescribeConfigurationRevisionResponse' :: DescribeConfigurationRevisionResponse -> Maybe Text
data'} -> Maybe Text
data') (\s :: DescribeConfigurationRevisionResponse
s@DescribeConfigurationRevisionResponse' {} Maybe Text
a -> DescribeConfigurationRevisionResponse
s {$sel:data':DescribeConfigurationRevisionResponse' :: Maybe Text
data' = Maybe Text
a} :: DescribeConfigurationRevisionResponse)

-- | Required. The date and time of the configuration.
describeConfigurationRevisionResponse_created :: Lens.Lens' DescribeConfigurationRevisionResponse (Prelude.Maybe Prelude.UTCTime)
describeConfigurationRevisionResponse_created :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeConfigurationRevisionResponse
-> f DescribeConfigurationRevisionResponse
describeConfigurationRevisionResponse_created = (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
created :: Maybe POSIX
$sel:created:DescribeConfigurationRevisionResponse' :: DescribeConfigurationRevisionResponse -> Maybe POSIX
created} -> Maybe POSIX
created) (\s :: DescribeConfigurationRevisionResponse
s@DescribeConfigurationRevisionResponse' {} Maybe POSIX
a -> DescribeConfigurationRevisionResponse
s {$sel:created:DescribeConfigurationRevisionResponse' :: Maybe POSIX
created = 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

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

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