{-# 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.CloudFormation.DescribePublisher
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns information about a CloudFormation extension publisher.
--
-- If you do not supply a @PublisherId@, and you have registered as an
-- extension publisher, @DescribePublisher@ returns information about your
-- own publisher account.
--
-- For more information on registering as a publisher, see:
--
-- -   <https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterPublisher.html RegisterPublisher>
--
-- -   <https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html Publishing extensions to make them available for public use>
--     in the /CloudFormation CLI User Guide/
module Amazonka.CloudFormation.DescribePublisher
  ( -- * Creating a Request
    DescribePublisher (..),
    newDescribePublisher,

    -- * Request Lenses
    describePublisher_publisherId,

    -- * Destructuring the Response
    DescribePublisherResponse (..),
    newDescribePublisherResponse,

    -- * Response Lenses
    describePublisherResponse_publisherStatus,
    describePublisherResponse_publisherProfile,
    describePublisherResponse_identityProvider,
    describePublisherResponse_publisherId,
    describePublisherResponse_httpStatus,
  )
where

import Amazonka.CloudFormation.Types
import qualified Amazonka.Core as Core
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:/ 'newDescribePublisher' smart constructor.
data DescribePublisher = DescribePublisher'
  { -- | The ID of the extension publisher.
    --
    -- If you do not supply a @PublisherId@, and you have registered as an
    -- extension publisher, @DescribePublisher@ returns information about your
    -- own publisher account.
    DescribePublisher -> Maybe Text
publisherId :: Prelude.Maybe Prelude.Text
  }
  deriving (DescribePublisher -> DescribePublisher -> Bool
(DescribePublisher -> DescribePublisher -> Bool)
-> (DescribePublisher -> DescribePublisher -> Bool)
-> Eq DescribePublisher
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribePublisher -> DescribePublisher -> Bool
$c/= :: DescribePublisher -> DescribePublisher -> Bool
== :: DescribePublisher -> DescribePublisher -> Bool
$c== :: DescribePublisher -> DescribePublisher -> Bool
Prelude.Eq, ReadPrec [DescribePublisher]
ReadPrec DescribePublisher
Int -> ReadS DescribePublisher
ReadS [DescribePublisher]
(Int -> ReadS DescribePublisher)
-> ReadS [DescribePublisher]
-> ReadPrec DescribePublisher
-> ReadPrec [DescribePublisher]
-> Read DescribePublisher
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribePublisher]
$creadListPrec :: ReadPrec [DescribePublisher]
readPrec :: ReadPrec DescribePublisher
$creadPrec :: ReadPrec DescribePublisher
readList :: ReadS [DescribePublisher]
$creadList :: ReadS [DescribePublisher]
readsPrec :: Int -> ReadS DescribePublisher
$creadsPrec :: Int -> ReadS DescribePublisher
Prelude.Read, Int -> DescribePublisher -> ShowS
[DescribePublisher] -> ShowS
DescribePublisher -> String
(Int -> DescribePublisher -> ShowS)
-> (DescribePublisher -> String)
-> ([DescribePublisher] -> ShowS)
-> Show DescribePublisher
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribePublisher] -> ShowS
$cshowList :: [DescribePublisher] -> ShowS
show :: DescribePublisher -> String
$cshow :: DescribePublisher -> String
showsPrec :: Int -> DescribePublisher -> ShowS
$cshowsPrec :: Int -> DescribePublisher -> ShowS
Prelude.Show, (forall x. DescribePublisher -> Rep DescribePublisher x)
-> (forall x. Rep DescribePublisher x -> DescribePublisher)
-> Generic DescribePublisher
forall x. Rep DescribePublisher x -> DescribePublisher
forall x. DescribePublisher -> Rep DescribePublisher x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribePublisher x -> DescribePublisher
$cfrom :: forall x. DescribePublisher -> Rep DescribePublisher x
Prelude.Generic)

-- |
-- Create a value of 'DescribePublisher' 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:
--
-- 'publisherId', 'describePublisher_publisherId' - The ID of the extension publisher.
--
-- If you do not supply a @PublisherId@, and you have registered as an
-- extension publisher, @DescribePublisher@ returns information about your
-- own publisher account.
newDescribePublisher ::
  DescribePublisher
newDescribePublisher :: DescribePublisher
newDescribePublisher =
  DescribePublisher' :: Maybe Text -> DescribePublisher
DescribePublisher' {$sel:publisherId:DescribePublisher' :: Maybe Text
publisherId = Maybe Text
forall a. Maybe a
Prelude.Nothing}

-- | The ID of the extension publisher.
--
-- If you do not supply a @PublisherId@, and you have registered as an
-- extension publisher, @DescribePublisher@ returns information about your
-- own publisher account.
describePublisher_publisherId :: Lens.Lens' DescribePublisher (Prelude.Maybe Prelude.Text)
describePublisher_publisherId :: (Maybe Text -> f (Maybe Text))
-> DescribePublisher -> f DescribePublisher
describePublisher_publisherId = (DescribePublisher -> Maybe Text)
-> (DescribePublisher -> Maybe Text -> DescribePublisher)
-> Lens
     DescribePublisher DescribePublisher (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePublisher' {Maybe Text
publisherId :: Maybe Text
$sel:publisherId:DescribePublisher' :: DescribePublisher -> Maybe Text
publisherId} -> Maybe Text
publisherId) (\s :: DescribePublisher
s@DescribePublisher' {} Maybe Text
a -> DescribePublisher
s {$sel:publisherId:DescribePublisher' :: Maybe Text
publisherId = Maybe Text
a} :: DescribePublisher)

instance Core.AWSRequest DescribePublisher where
  type
    AWSResponse DescribePublisher =
      DescribePublisherResponse
  request :: DescribePublisher -> Request DescribePublisher
request = Service -> DescribePublisher -> Request DescribePublisher
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribePublisher
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribePublisher)))
response =
    Text
-> (Int
    -> ResponseHeaders
    -> [Node]
    -> Either String (AWSResponse DescribePublisher))
-> Logger
-> Service
-> Proxy DescribePublisher
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribePublisher)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
    -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
      Text
"DescribePublisherResult"
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Maybe PublisherStatus
-> Maybe Text
-> Maybe IdentityProvider
-> Maybe Text
-> Int
-> DescribePublisherResponse
DescribePublisherResponse'
            (Maybe PublisherStatus
 -> Maybe Text
 -> Maybe IdentityProvider
 -> Maybe Text
 -> Int
 -> DescribePublisherResponse)
-> Either String (Maybe PublisherStatus)
-> Either
     String
     (Maybe Text
      -> Maybe IdentityProvider
      -> Maybe Text
      -> Int
      -> DescribePublisherResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe PublisherStatus)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"PublisherStatus")
            Either
  String
  (Maybe Text
   -> Maybe IdentityProvider
   -> Maybe Text
   -> Int
   -> DescribePublisherResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe IdentityProvider
      -> Maybe Text -> Int -> DescribePublisherResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"PublisherProfile")
            Either
  String
  (Maybe IdentityProvider
   -> Maybe Text -> Int -> DescribePublisherResponse)
-> Either String (Maybe IdentityProvider)
-> Either String (Maybe Text -> Int -> DescribePublisherResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe IdentityProvider)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"IdentityProvider")
            Either String (Maybe Text -> Int -> DescribePublisherResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribePublisherResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"PublisherId")
            Either String (Int -> DescribePublisherResponse)
-> Either String Int -> Either String DescribePublisherResponse
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 DescribePublisher

instance Prelude.NFData DescribePublisher

instance Core.ToHeaders DescribePublisher where
  toHeaders :: DescribePublisher -> ResponseHeaders
toHeaders = ResponseHeaders -> DescribePublisher -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

instance Core.ToPath DescribePublisher where
  toPath :: DescribePublisher -> ByteString
toPath = ByteString -> DescribePublisher -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery DescribePublisher where
  toQuery :: DescribePublisher -> QueryString
toQuery DescribePublisher' {Maybe Text
publisherId :: Maybe Text
$sel:publisherId:DescribePublisher' :: DescribePublisher -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"Action"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"DescribePublisher" :: Prelude.ByteString),
        ByteString
"Version"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-05-15" :: Prelude.ByteString),
        ByteString
"PublisherId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
publisherId
      ]

-- | /See:/ 'newDescribePublisherResponse' smart constructor.
data DescribePublisherResponse = DescribePublisherResponse'
  { -- | Whether the publisher is verified. Currently, all registered publishers
    -- are verified.
    DescribePublisherResponse -> Maybe PublisherStatus
publisherStatus :: Prelude.Maybe PublisherStatus,
    -- | The URL to the publisher\'s profile with the identity provider.
    DescribePublisherResponse -> Maybe Text
publisherProfile :: Prelude.Maybe Prelude.Text,
    -- | The type of account used as the identity provider when registering this
    -- publisher with CloudFormation.
    DescribePublisherResponse -> Maybe IdentityProvider
identityProvider :: Prelude.Maybe IdentityProvider,
    -- | The ID of the extension publisher.
    DescribePublisherResponse -> Maybe Text
publisherId :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DescribePublisherResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribePublisherResponse -> DescribePublisherResponse -> Bool
(DescribePublisherResponse -> DescribePublisherResponse -> Bool)
-> (DescribePublisherResponse -> DescribePublisherResponse -> Bool)
-> Eq DescribePublisherResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribePublisherResponse -> DescribePublisherResponse -> Bool
$c/= :: DescribePublisherResponse -> DescribePublisherResponse -> Bool
== :: DescribePublisherResponse -> DescribePublisherResponse -> Bool
$c== :: DescribePublisherResponse -> DescribePublisherResponse -> Bool
Prelude.Eq, ReadPrec [DescribePublisherResponse]
ReadPrec DescribePublisherResponse
Int -> ReadS DescribePublisherResponse
ReadS [DescribePublisherResponse]
(Int -> ReadS DescribePublisherResponse)
-> ReadS [DescribePublisherResponse]
-> ReadPrec DescribePublisherResponse
-> ReadPrec [DescribePublisherResponse]
-> Read DescribePublisherResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribePublisherResponse]
$creadListPrec :: ReadPrec [DescribePublisherResponse]
readPrec :: ReadPrec DescribePublisherResponse
$creadPrec :: ReadPrec DescribePublisherResponse
readList :: ReadS [DescribePublisherResponse]
$creadList :: ReadS [DescribePublisherResponse]
readsPrec :: Int -> ReadS DescribePublisherResponse
$creadsPrec :: Int -> ReadS DescribePublisherResponse
Prelude.Read, Int -> DescribePublisherResponse -> ShowS
[DescribePublisherResponse] -> ShowS
DescribePublisherResponse -> String
(Int -> DescribePublisherResponse -> ShowS)
-> (DescribePublisherResponse -> String)
-> ([DescribePublisherResponse] -> ShowS)
-> Show DescribePublisherResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribePublisherResponse] -> ShowS
$cshowList :: [DescribePublisherResponse] -> ShowS
show :: DescribePublisherResponse -> String
$cshow :: DescribePublisherResponse -> String
showsPrec :: Int -> DescribePublisherResponse -> ShowS
$cshowsPrec :: Int -> DescribePublisherResponse -> ShowS
Prelude.Show, (forall x.
 DescribePublisherResponse -> Rep DescribePublisherResponse x)
-> (forall x.
    Rep DescribePublisherResponse x -> DescribePublisherResponse)
-> Generic DescribePublisherResponse
forall x.
Rep DescribePublisherResponse x -> DescribePublisherResponse
forall x.
DescribePublisherResponse -> Rep DescribePublisherResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribePublisherResponse x -> DescribePublisherResponse
$cfrom :: forall x.
DescribePublisherResponse -> Rep DescribePublisherResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribePublisherResponse' 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:
--
-- 'publisherStatus', 'describePublisherResponse_publisherStatus' - Whether the publisher is verified. Currently, all registered publishers
-- are verified.
--
-- 'publisherProfile', 'describePublisherResponse_publisherProfile' - The URL to the publisher\'s profile with the identity provider.
--
-- 'identityProvider', 'describePublisherResponse_identityProvider' - The type of account used as the identity provider when registering this
-- publisher with CloudFormation.
--
-- 'publisherId', 'describePublisherResponse_publisherId' - The ID of the extension publisher.
--
-- 'httpStatus', 'describePublisherResponse_httpStatus' - The response's http status code.
newDescribePublisherResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribePublisherResponse
newDescribePublisherResponse :: Int -> DescribePublisherResponse
newDescribePublisherResponse Int
pHttpStatus_ =
  DescribePublisherResponse' :: Maybe PublisherStatus
-> Maybe Text
-> Maybe IdentityProvider
-> Maybe Text
-> Int
-> DescribePublisherResponse
DescribePublisherResponse'
    { $sel:publisherStatus:DescribePublisherResponse' :: Maybe PublisherStatus
publisherStatus =
        Maybe PublisherStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:publisherProfile:DescribePublisherResponse' :: Maybe Text
publisherProfile = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:identityProvider:DescribePublisherResponse' :: Maybe IdentityProvider
identityProvider = Maybe IdentityProvider
forall a. Maybe a
Prelude.Nothing,
      $sel:publisherId:DescribePublisherResponse' :: Maybe Text
publisherId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribePublisherResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Whether the publisher is verified. Currently, all registered publishers
-- are verified.
describePublisherResponse_publisherStatus :: Lens.Lens' DescribePublisherResponse (Prelude.Maybe PublisherStatus)
describePublisherResponse_publisherStatus :: (Maybe PublisherStatus -> f (Maybe PublisherStatus))
-> DescribePublisherResponse -> f DescribePublisherResponse
describePublisherResponse_publisherStatus = (DescribePublisherResponse -> Maybe PublisherStatus)
-> (DescribePublisherResponse
    -> Maybe PublisherStatus -> DescribePublisherResponse)
-> Lens
     DescribePublisherResponse
     DescribePublisherResponse
     (Maybe PublisherStatus)
     (Maybe PublisherStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePublisherResponse' {Maybe PublisherStatus
publisherStatus :: Maybe PublisherStatus
$sel:publisherStatus:DescribePublisherResponse' :: DescribePublisherResponse -> Maybe PublisherStatus
publisherStatus} -> Maybe PublisherStatus
publisherStatus) (\s :: DescribePublisherResponse
s@DescribePublisherResponse' {} Maybe PublisherStatus
a -> DescribePublisherResponse
s {$sel:publisherStatus:DescribePublisherResponse' :: Maybe PublisherStatus
publisherStatus = Maybe PublisherStatus
a} :: DescribePublisherResponse)

-- | The URL to the publisher\'s profile with the identity provider.
describePublisherResponse_publisherProfile :: Lens.Lens' DescribePublisherResponse (Prelude.Maybe Prelude.Text)
describePublisherResponse_publisherProfile :: (Maybe Text -> f (Maybe Text))
-> DescribePublisherResponse -> f DescribePublisherResponse
describePublisherResponse_publisherProfile = (DescribePublisherResponse -> Maybe Text)
-> (DescribePublisherResponse
    -> Maybe Text -> DescribePublisherResponse)
-> Lens
     DescribePublisherResponse
     DescribePublisherResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePublisherResponse' {Maybe Text
publisherProfile :: Maybe Text
$sel:publisherProfile:DescribePublisherResponse' :: DescribePublisherResponse -> Maybe Text
publisherProfile} -> Maybe Text
publisherProfile) (\s :: DescribePublisherResponse
s@DescribePublisherResponse' {} Maybe Text
a -> DescribePublisherResponse
s {$sel:publisherProfile:DescribePublisherResponse' :: Maybe Text
publisherProfile = Maybe Text
a} :: DescribePublisherResponse)

-- | The type of account used as the identity provider when registering this
-- publisher with CloudFormation.
describePublisherResponse_identityProvider :: Lens.Lens' DescribePublisherResponse (Prelude.Maybe IdentityProvider)
describePublisherResponse_identityProvider :: (Maybe IdentityProvider -> f (Maybe IdentityProvider))
-> DescribePublisherResponse -> f DescribePublisherResponse
describePublisherResponse_identityProvider = (DescribePublisherResponse -> Maybe IdentityProvider)
-> (DescribePublisherResponse
    -> Maybe IdentityProvider -> DescribePublisherResponse)
-> Lens
     DescribePublisherResponse
     DescribePublisherResponse
     (Maybe IdentityProvider)
     (Maybe IdentityProvider)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePublisherResponse' {Maybe IdentityProvider
identityProvider :: Maybe IdentityProvider
$sel:identityProvider:DescribePublisherResponse' :: DescribePublisherResponse -> Maybe IdentityProvider
identityProvider} -> Maybe IdentityProvider
identityProvider) (\s :: DescribePublisherResponse
s@DescribePublisherResponse' {} Maybe IdentityProvider
a -> DescribePublisherResponse
s {$sel:identityProvider:DescribePublisherResponse' :: Maybe IdentityProvider
identityProvider = Maybe IdentityProvider
a} :: DescribePublisherResponse)

-- | The ID of the extension publisher.
describePublisherResponse_publisherId :: Lens.Lens' DescribePublisherResponse (Prelude.Maybe Prelude.Text)
describePublisherResponse_publisherId :: (Maybe Text -> f (Maybe Text))
-> DescribePublisherResponse -> f DescribePublisherResponse
describePublisherResponse_publisherId = (DescribePublisherResponse -> Maybe Text)
-> (DescribePublisherResponse
    -> Maybe Text -> DescribePublisherResponse)
-> Lens
     DescribePublisherResponse
     DescribePublisherResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePublisherResponse' {Maybe Text
publisherId :: Maybe Text
$sel:publisherId:DescribePublisherResponse' :: DescribePublisherResponse -> Maybe Text
publisherId} -> Maybe Text
publisherId) (\s :: DescribePublisherResponse
s@DescribePublisherResponse' {} Maybe Text
a -> DescribePublisherResponse
s {$sel:publisherId:DescribePublisherResponse' :: Maybe Text
publisherId = Maybe Text
a} :: DescribePublisherResponse)

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

instance Prelude.NFData DescribePublisherResponse