{-# 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.ApplicationInsights.DescribeLogPattern
-- 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)
--
-- Describe a specific log pattern from a @LogPatternSet@.
module Amazonka.ApplicationInsights.DescribeLogPattern
  ( -- * Creating a Request
    DescribeLogPattern (..),
    newDescribeLogPattern,

    -- * Request Lenses
    describeLogPattern_resourceGroupName,
    describeLogPattern_patternSetName,
    describeLogPattern_patternName,

    -- * Destructuring the Response
    DescribeLogPatternResponse (..),
    newDescribeLogPatternResponse,

    -- * Response Lenses
    describeLogPatternResponse_logPattern,
    describeLogPatternResponse_resourceGroupName,
    describeLogPatternResponse_httpStatus,
  )
where

import Amazonka.ApplicationInsights.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:/ 'newDescribeLogPattern' smart constructor.
data DescribeLogPattern = DescribeLogPattern'
  { -- | The name of the resource group.
    DescribeLogPattern -> Text
resourceGroupName :: Prelude.Text,
    -- | The name of the log pattern set.
    DescribeLogPattern -> Text
patternSetName :: Prelude.Text,
    -- | The name of the log pattern.
    DescribeLogPattern -> Text
patternName :: Prelude.Text
  }
  deriving (DescribeLogPattern -> DescribeLogPattern -> Bool
(DescribeLogPattern -> DescribeLogPattern -> Bool)
-> (DescribeLogPattern -> DescribeLogPattern -> Bool)
-> Eq DescribeLogPattern
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeLogPattern -> DescribeLogPattern -> Bool
$c/= :: DescribeLogPattern -> DescribeLogPattern -> Bool
== :: DescribeLogPattern -> DescribeLogPattern -> Bool
$c== :: DescribeLogPattern -> DescribeLogPattern -> Bool
Prelude.Eq, ReadPrec [DescribeLogPattern]
ReadPrec DescribeLogPattern
Int -> ReadS DescribeLogPattern
ReadS [DescribeLogPattern]
(Int -> ReadS DescribeLogPattern)
-> ReadS [DescribeLogPattern]
-> ReadPrec DescribeLogPattern
-> ReadPrec [DescribeLogPattern]
-> Read DescribeLogPattern
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeLogPattern]
$creadListPrec :: ReadPrec [DescribeLogPattern]
readPrec :: ReadPrec DescribeLogPattern
$creadPrec :: ReadPrec DescribeLogPattern
readList :: ReadS [DescribeLogPattern]
$creadList :: ReadS [DescribeLogPattern]
readsPrec :: Int -> ReadS DescribeLogPattern
$creadsPrec :: Int -> ReadS DescribeLogPattern
Prelude.Read, Int -> DescribeLogPattern -> ShowS
[DescribeLogPattern] -> ShowS
DescribeLogPattern -> String
(Int -> DescribeLogPattern -> ShowS)
-> (DescribeLogPattern -> String)
-> ([DescribeLogPattern] -> ShowS)
-> Show DescribeLogPattern
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeLogPattern] -> ShowS
$cshowList :: [DescribeLogPattern] -> ShowS
show :: DescribeLogPattern -> String
$cshow :: DescribeLogPattern -> String
showsPrec :: Int -> DescribeLogPattern -> ShowS
$cshowsPrec :: Int -> DescribeLogPattern -> ShowS
Prelude.Show, (forall x. DescribeLogPattern -> Rep DescribeLogPattern x)
-> (forall x. Rep DescribeLogPattern x -> DescribeLogPattern)
-> Generic DescribeLogPattern
forall x. Rep DescribeLogPattern x -> DescribeLogPattern
forall x. DescribeLogPattern -> Rep DescribeLogPattern x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeLogPattern x -> DescribeLogPattern
$cfrom :: forall x. DescribeLogPattern -> Rep DescribeLogPattern x
Prelude.Generic)

-- |
-- Create a value of 'DescribeLogPattern' 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:
--
-- 'resourceGroupName', 'describeLogPattern_resourceGroupName' - The name of the resource group.
--
-- 'patternSetName', 'describeLogPattern_patternSetName' - The name of the log pattern set.
--
-- 'patternName', 'describeLogPattern_patternName' - The name of the log pattern.
newDescribeLogPattern ::
  -- | 'resourceGroupName'
  Prelude.Text ->
  -- | 'patternSetName'
  Prelude.Text ->
  -- | 'patternName'
  Prelude.Text ->
  DescribeLogPattern
newDescribeLogPattern :: Text -> Text -> Text -> DescribeLogPattern
newDescribeLogPattern
  Text
pResourceGroupName_
  Text
pPatternSetName_
  Text
pPatternName_ =
    DescribeLogPattern' :: Text -> Text -> Text -> DescribeLogPattern
DescribeLogPattern'
      { $sel:resourceGroupName:DescribeLogPattern' :: Text
resourceGroupName =
          Text
pResourceGroupName_,
        $sel:patternSetName:DescribeLogPattern' :: Text
patternSetName = Text
pPatternSetName_,
        $sel:patternName:DescribeLogPattern' :: Text
patternName = Text
pPatternName_
      }

-- | The name of the resource group.
describeLogPattern_resourceGroupName :: Lens.Lens' DescribeLogPattern Prelude.Text
describeLogPattern_resourceGroupName :: (Text -> f Text) -> DescribeLogPattern -> f DescribeLogPattern
describeLogPattern_resourceGroupName = (DescribeLogPattern -> Text)
-> (DescribeLogPattern -> Text -> DescribeLogPattern)
-> Lens DescribeLogPattern DescribeLogPattern Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLogPattern' {Text
resourceGroupName :: Text
$sel:resourceGroupName:DescribeLogPattern' :: DescribeLogPattern -> Text
resourceGroupName} -> Text
resourceGroupName) (\s :: DescribeLogPattern
s@DescribeLogPattern' {} Text
a -> DescribeLogPattern
s {$sel:resourceGroupName:DescribeLogPattern' :: Text
resourceGroupName = Text
a} :: DescribeLogPattern)

-- | The name of the log pattern set.
describeLogPattern_patternSetName :: Lens.Lens' DescribeLogPattern Prelude.Text
describeLogPattern_patternSetName :: (Text -> f Text) -> DescribeLogPattern -> f DescribeLogPattern
describeLogPattern_patternSetName = (DescribeLogPattern -> Text)
-> (DescribeLogPattern -> Text -> DescribeLogPattern)
-> Lens DescribeLogPattern DescribeLogPattern Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLogPattern' {Text
patternSetName :: Text
$sel:patternSetName:DescribeLogPattern' :: DescribeLogPattern -> Text
patternSetName} -> Text
patternSetName) (\s :: DescribeLogPattern
s@DescribeLogPattern' {} Text
a -> DescribeLogPattern
s {$sel:patternSetName:DescribeLogPattern' :: Text
patternSetName = Text
a} :: DescribeLogPattern)

-- | The name of the log pattern.
describeLogPattern_patternName :: Lens.Lens' DescribeLogPattern Prelude.Text
describeLogPattern_patternName :: (Text -> f Text) -> DescribeLogPattern -> f DescribeLogPattern
describeLogPattern_patternName = (DescribeLogPattern -> Text)
-> (DescribeLogPattern -> Text -> DescribeLogPattern)
-> Lens DescribeLogPattern DescribeLogPattern Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLogPattern' {Text
patternName :: Text
$sel:patternName:DescribeLogPattern' :: DescribeLogPattern -> Text
patternName} -> Text
patternName) (\s :: DescribeLogPattern
s@DescribeLogPattern' {} Text
a -> DescribeLogPattern
s {$sel:patternName:DescribeLogPattern' :: Text
patternName = Text
a} :: DescribeLogPattern)

instance Core.AWSRequest DescribeLogPattern where
  type
    AWSResponse DescribeLogPattern =
      DescribeLogPatternResponse
  request :: DescribeLogPattern -> Request DescribeLogPattern
request = Service -> DescribeLogPattern -> Request DescribeLogPattern
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeLogPattern
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeLogPattern)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeLogPattern))
-> Logger
-> Service
-> Proxy DescribeLogPattern
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeLogPattern)))
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 LogPattern -> Maybe Text -> Int -> DescribeLogPatternResponse
DescribeLogPatternResponse'
            (Maybe LogPattern
 -> Maybe Text -> Int -> DescribeLogPatternResponse)
-> Either String (Maybe LogPattern)
-> Either String (Maybe Text -> Int -> DescribeLogPatternResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe LogPattern)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LogPattern")
            Either String (Maybe Text -> Int -> DescribeLogPatternResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeLogPatternResponse)
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
"ResourceGroupName")
            Either String (Int -> DescribeLogPatternResponse)
-> Either String Int -> Either String DescribeLogPatternResponse
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 DescribeLogPattern

instance Prelude.NFData DescribeLogPattern

instance Core.ToHeaders DescribeLogPattern where
  toHeaders :: DescribeLogPattern -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeLogPattern -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"EC2WindowsBarleyService.DescribeLogPattern" ::
                          Prelude.ByteString
                      ),
            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.ToJSON DescribeLogPattern where
  toJSON :: DescribeLogPattern -> Value
toJSON DescribeLogPattern' {Text
patternName :: Text
patternSetName :: Text
resourceGroupName :: Text
$sel:patternName:DescribeLogPattern' :: DescribeLogPattern -> Text
$sel:patternSetName:DescribeLogPattern' :: DescribeLogPattern -> Text
$sel:resourceGroupName:DescribeLogPattern' :: DescribeLogPattern -> Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"ResourceGroupName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
resourceGroupName),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"PatternSetName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
patternSetName),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"PatternName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
patternName)
          ]
      )

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

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

-- | /See:/ 'newDescribeLogPatternResponse' smart constructor.
data DescribeLogPatternResponse = DescribeLogPatternResponse'
  { -- | The successfully created log pattern.
    DescribeLogPatternResponse -> Maybe LogPattern
logPattern :: Prelude.Maybe LogPattern,
    -- | The name of the resource group.
    DescribeLogPatternResponse -> Maybe Text
resourceGroupName :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DescribeLogPatternResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeLogPatternResponse -> DescribeLogPatternResponse -> Bool
(DescribeLogPatternResponse -> DescribeLogPatternResponse -> Bool)
-> (DescribeLogPatternResponse
    -> DescribeLogPatternResponse -> Bool)
-> Eq DescribeLogPatternResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeLogPatternResponse -> DescribeLogPatternResponse -> Bool
$c/= :: DescribeLogPatternResponse -> DescribeLogPatternResponse -> Bool
== :: DescribeLogPatternResponse -> DescribeLogPatternResponse -> Bool
$c== :: DescribeLogPatternResponse -> DescribeLogPatternResponse -> Bool
Prelude.Eq, ReadPrec [DescribeLogPatternResponse]
ReadPrec DescribeLogPatternResponse
Int -> ReadS DescribeLogPatternResponse
ReadS [DescribeLogPatternResponse]
(Int -> ReadS DescribeLogPatternResponse)
-> ReadS [DescribeLogPatternResponse]
-> ReadPrec DescribeLogPatternResponse
-> ReadPrec [DescribeLogPatternResponse]
-> Read DescribeLogPatternResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeLogPatternResponse]
$creadListPrec :: ReadPrec [DescribeLogPatternResponse]
readPrec :: ReadPrec DescribeLogPatternResponse
$creadPrec :: ReadPrec DescribeLogPatternResponse
readList :: ReadS [DescribeLogPatternResponse]
$creadList :: ReadS [DescribeLogPatternResponse]
readsPrec :: Int -> ReadS DescribeLogPatternResponse
$creadsPrec :: Int -> ReadS DescribeLogPatternResponse
Prelude.Read, Int -> DescribeLogPatternResponse -> ShowS
[DescribeLogPatternResponse] -> ShowS
DescribeLogPatternResponse -> String
(Int -> DescribeLogPatternResponse -> ShowS)
-> (DescribeLogPatternResponse -> String)
-> ([DescribeLogPatternResponse] -> ShowS)
-> Show DescribeLogPatternResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeLogPatternResponse] -> ShowS
$cshowList :: [DescribeLogPatternResponse] -> ShowS
show :: DescribeLogPatternResponse -> String
$cshow :: DescribeLogPatternResponse -> String
showsPrec :: Int -> DescribeLogPatternResponse -> ShowS
$cshowsPrec :: Int -> DescribeLogPatternResponse -> ShowS
Prelude.Show, (forall x.
 DescribeLogPatternResponse -> Rep DescribeLogPatternResponse x)
-> (forall x.
    Rep DescribeLogPatternResponse x -> DescribeLogPatternResponse)
-> Generic DescribeLogPatternResponse
forall x.
Rep DescribeLogPatternResponse x -> DescribeLogPatternResponse
forall x.
DescribeLogPatternResponse -> Rep DescribeLogPatternResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeLogPatternResponse x -> DescribeLogPatternResponse
$cfrom :: forall x.
DescribeLogPatternResponse -> Rep DescribeLogPatternResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeLogPatternResponse' 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:
--
-- 'logPattern', 'describeLogPatternResponse_logPattern' - The successfully created log pattern.
--
-- 'resourceGroupName', 'describeLogPatternResponse_resourceGroupName' - The name of the resource group.
--
-- 'httpStatus', 'describeLogPatternResponse_httpStatus' - The response's http status code.
newDescribeLogPatternResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeLogPatternResponse
newDescribeLogPatternResponse :: Int -> DescribeLogPatternResponse
newDescribeLogPatternResponse Int
pHttpStatus_ =
  DescribeLogPatternResponse' :: Maybe LogPattern -> Maybe Text -> Int -> DescribeLogPatternResponse
DescribeLogPatternResponse'
    { $sel:logPattern:DescribeLogPatternResponse' :: Maybe LogPattern
logPattern =
        Maybe LogPattern
forall a. Maybe a
Prelude.Nothing,
      $sel:resourceGroupName:DescribeLogPatternResponse' :: Maybe Text
resourceGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeLogPatternResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The successfully created log pattern.
describeLogPatternResponse_logPattern :: Lens.Lens' DescribeLogPatternResponse (Prelude.Maybe LogPattern)
describeLogPatternResponse_logPattern :: (Maybe LogPattern -> f (Maybe LogPattern))
-> DescribeLogPatternResponse -> f DescribeLogPatternResponse
describeLogPatternResponse_logPattern = (DescribeLogPatternResponse -> Maybe LogPattern)
-> (DescribeLogPatternResponse
    -> Maybe LogPattern -> DescribeLogPatternResponse)
-> Lens
     DescribeLogPatternResponse
     DescribeLogPatternResponse
     (Maybe LogPattern)
     (Maybe LogPattern)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLogPatternResponse' {Maybe LogPattern
logPattern :: Maybe LogPattern
$sel:logPattern:DescribeLogPatternResponse' :: DescribeLogPatternResponse -> Maybe LogPattern
logPattern} -> Maybe LogPattern
logPattern) (\s :: DescribeLogPatternResponse
s@DescribeLogPatternResponse' {} Maybe LogPattern
a -> DescribeLogPatternResponse
s {$sel:logPattern:DescribeLogPatternResponse' :: Maybe LogPattern
logPattern = Maybe LogPattern
a} :: DescribeLogPatternResponse)

-- | The name of the resource group.
describeLogPatternResponse_resourceGroupName :: Lens.Lens' DescribeLogPatternResponse (Prelude.Maybe Prelude.Text)
describeLogPatternResponse_resourceGroupName :: (Maybe Text -> f (Maybe Text))
-> DescribeLogPatternResponse -> f DescribeLogPatternResponse
describeLogPatternResponse_resourceGroupName = (DescribeLogPatternResponse -> Maybe Text)
-> (DescribeLogPatternResponse
    -> Maybe Text -> DescribeLogPatternResponse)
-> Lens
     DescribeLogPatternResponse
     DescribeLogPatternResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLogPatternResponse' {Maybe Text
resourceGroupName :: Maybe Text
$sel:resourceGroupName:DescribeLogPatternResponse' :: DescribeLogPatternResponse -> Maybe Text
resourceGroupName} -> Maybe Text
resourceGroupName) (\s :: DescribeLogPatternResponse
s@DescribeLogPatternResponse' {} Maybe Text
a -> DescribeLogPatternResponse
s {$sel:resourceGroupName:DescribeLogPatternResponse' :: Maybe Text
resourceGroupName = Maybe Text
a} :: DescribeLogPatternResponse)

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

instance Prelude.NFData DescribeLogPatternResponse