{-# 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.ListLogPatterns
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Lists the log patterns in the specific log @LogPatternSet@.
module Amazonka.ApplicationInsights.ListLogPatterns
  ( -- * Creating a Request
    ListLogPatterns (..),
    newListLogPatterns,

    -- * Request Lenses
    listLogPatterns_maxResults,
    listLogPatterns_nextToken,
    listLogPatterns_patternSetName,
    listLogPatterns_resourceGroupName,

    -- * Destructuring the Response
    ListLogPatternsResponse (..),
    newListLogPatternsResponse,

    -- * Response Lenses
    listLogPatternsResponse_logPatterns,
    listLogPatternsResponse_nextToken,
    listLogPatternsResponse_resourceGroupName,
    listLogPatternsResponse_httpStatus,
  )
where

import Amazonka.ApplicationInsights.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newListLogPatterns' smart constructor.
data ListLogPatterns = ListLogPatterns'
  { -- | The maximum number of results to return in a single call. To retrieve
    -- the remaining results, make another call with the returned @NextToken@
    -- value.
    ListLogPatterns -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The token to request the next page of results.
    ListLogPatterns -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The name of the log pattern set.
    ListLogPatterns -> Maybe Text
patternSetName :: Prelude.Maybe Prelude.Text,
    -- | The name of the resource group.
    ListLogPatterns -> Text
resourceGroupName :: Prelude.Text
  }
  deriving (ListLogPatterns -> ListLogPatterns -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListLogPatterns -> ListLogPatterns -> Bool
$c/= :: ListLogPatterns -> ListLogPatterns -> Bool
== :: ListLogPatterns -> ListLogPatterns -> Bool
$c== :: ListLogPatterns -> ListLogPatterns -> Bool
Prelude.Eq, ReadPrec [ListLogPatterns]
ReadPrec ListLogPatterns
Int -> ReadS ListLogPatterns
ReadS [ListLogPatterns]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListLogPatterns]
$creadListPrec :: ReadPrec [ListLogPatterns]
readPrec :: ReadPrec ListLogPatterns
$creadPrec :: ReadPrec ListLogPatterns
readList :: ReadS [ListLogPatterns]
$creadList :: ReadS [ListLogPatterns]
readsPrec :: Int -> ReadS ListLogPatterns
$creadsPrec :: Int -> ReadS ListLogPatterns
Prelude.Read, Int -> ListLogPatterns -> ShowS
[ListLogPatterns] -> ShowS
ListLogPatterns -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListLogPatterns] -> ShowS
$cshowList :: [ListLogPatterns] -> ShowS
show :: ListLogPatterns -> String
$cshow :: ListLogPatterns -> String
showsPrec :: Int -> ListLogPatterns -> ShowS
$cshowsPrec :: Int -> ListLogPatterns -> ShowS
Prelude.Show, forall x. Rep ListLogPatterns x -> ListLogPatterns
forall x. ListLogPatterns -> Rep ListLogPatterns x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListLogPatterns x -> ListLogPatterns
$cfrom :: forall x. ListLogPatterns -> Rep ListLogPatterns x
Prelude.Generic)

-- |
-- Create a value of 'ListLogPatterns' 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:
--
-- 'maxResults', 'listLogPatterns_maxResults' - The maximum number of results to return in a single call. To retrieve
-- the remaining results, make another call with the returned @NextToken@
-- value.
--
-- 'nextToken', 'listLogPatterns_nextToken' - The token to request the next page of results.
--
-- 'patternSetName', 'listLogPatterns_patternSetName' - The name of the log pattern set.
--
-- 'resourceGroupName', 'listLogPatterns_resourceGroupName' - The name of the resource group.
newListLogPatterns ::
  -- | 'resourceGroupName'
  Prelude.Text ->
  ListLogPatterns
newListLogPatterns :: Text -> ListLogPatterns
newListLogPatterns Text
pResourceGroupName_ =
  ListLogPatterns'
    { $sel:maxResults:ListLogPatterns' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListLogPatterns' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:patternSetName:ListLogPatterns' :: Maybe Text
patternSetName = forall a. Maybe a
Prelude.Nothing,
      $sel:resourceGroupName:ListLogPatterns' :: Text
resourceGroupName = Text
pResourceGroupName_
    }

-- | The maximum number of results to return in a single call. To retrieve
-- the remaining results, make another call with the returned @NextToken@
-- value.
listLogPatterns_maxResults :: Lens.Lens' ListLogPatterns (Prelude.Maybe Prelude.Natural)
listLogPatterns_maxResults :: Lens' ListLogPatterns (Maybe Natural)
listLogPatterns_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLogPatterns' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListLogPatterns' :: ListLogPatterns -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListLogPatterns
s@ListLogPatterns' {} Maybe Natural
a -> ListLogPatterns
s {$sel:maxResults:ListLogPatterns' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListLogPatterns)

-- | The token to request the next page of results.
listLogPatterns_nextToken :: Lens.Lens' ListLogPatterns (Prelude.Maybe Prelude.Text)
listLogPatterns_nextToken :: Lens' ListLogPatterns (Maybe Text)
listLogPatterns_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLogPatterns' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListLogPatterns' :: ListLogPatterns -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListLogPatterns
s@ListLogPatterns' {} Maybe Text
a -> ListLogPatterns
s {$sel:nextToken:ListLogPatterns' :: Maybe Text
nextToken = Maybe Text
a} :: ListLogPatterns)

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

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

instance Core.AWSRequest ListLogPatterns where
  type
    AWSResponse ListLogPatterns =
      ListLogPatternsResponse
  request :: (Service -> Service) -> ListLogPatterns -> Request ListLogPatterns
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListLogPatterns
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListLogPatterns)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe [LogPattern]
-> Maybe Text -> Maybe Text -> Int -> ListLogPatternsResponse
ListLogPatternsResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"LogPatterns" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"NextToken")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"ResourceGroupName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable ListLogPatterns where
  hashWithSalt :: Int -> ListLogPatterns -> Int
hashWithSalt Int
_salt ListLogPatterns' {Maybe Natural
Maybe Text
Text
resourceGroupName :: Text
patternSetName :: Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:resourceGroupName:ListLogPatterns' :: ListLogPatterns -> Text
$sel:patternSetName:ListLogPatterns' :: ListLogPatterns -> Maybe Text
$sel:nextToken:ListLogPatterns' :: ListLogPatterns -> Maybe Text
$sel:maxResults:ListLogPatterns' :: ListLogPatterns -> Maybe Natural
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
patternSetName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
resourceGroupName

instance Prelude.NFData ListLogPatterns where
  rnf :: ListLogPatterns -> ()
rnf ListLogPatterns' {Maybe Natural
Maybe Text
Text
resourceGroupName :: Text
patternSetName :: Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:resourceGroupName:ListLogPatterns' :: ListLogPatterns -> Text
$sel:patternSetName:ListLogPatterns' :: ListLogPatterns -> Maybe Text
$sel:nextToken:ListLogPatterns' :: ListLogPatterns -> Maybe Text
$sel:maxResults:ListLogPatterns' :: ListLogPatterns -> Maybe Natural
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
patternSetName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
resourceGroupName

instance Data.ToHeaders ListLogPatterns where
  toHeaders :: ListLogPatterns -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"EC2WindowsBarleyService.ListLogPatterns" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Data.ToJSON ListLogPatterns where
  toJSON :: ListLogPatterns -> Value
toJSON ListLogPatterns' {Maybe Natural
Maybe Text
Text
resourceGroupName :: Text
patternSetName :: Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:resourceGroupName:ListLogPatterns' :: ListLogPatterns -> Text
$sel:patternSetName:ListLogPatterns' :: ListLogPatterns -> Maybe Text
$sel:nextToken:ListLogPatterns' :: ListLogPatterns -> Maybe Text
$sel:maxResults:ListLogPatterns' :: ListLogPatterns -> Maybe Natural
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"MaxResults" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
            (Key
"NextToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
            (Key
"PatternSetName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
patternSetName,
            forall a. a -> Maybe a
Prelude.Just
              (Key
"ResourceGroupName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
resourceGroupName)
          ]
      )

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

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

-- | /See:/ 'newListLogPatternsResponse' smart constructor.
data ListLogPatternsResponse = ListLogPatternsResponse'
  { -- | The list of log patterns.
    ListLogPatternsResponse -> Maybe [LogPattern]
logPatterns :: Prelude.Maybe [LogPattern],
    -- | The token used to retrieve the next page of results. This value is
    -- @null@ when there are no more results to return.
    ListLogPatternsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The name of the resource group.
    ListLogPatternsResponse -> Maybe Text
resourceGroupName :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListLogPatternsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListLogPatternsResponse -> ListLogPatternsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListLogPatternsResponse -> ListLogPatternsResponse -> Bool
$c/= :: ListLogPatternsResponse -> ListLogPatternsResponse -> Bool
== :: ListLogPatternsResponse -> ListLogPatternsResponse -> Bool
$c== :: ListLogPatternsResponse -> ListLogPatternsResponse -> Bool
Prelude.Eq, ReadPrec [ListLogPatternsResponse]
ReadPrec ListLogPatternsResponse
Int -> ReadS ListLogPatternsResponse
ReadS [ListLogPatternsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListLogPatternsResponse]
$creadListPrec :: ReadPrec [ListLogPatternsResponse]
readPrec :: ReadPrec ListLogPatternsResponse
$creadPrec :: ReadPrec ListLogPatternsResponse
readList :: ReadS [ListLogPatternsResponse]
$creadList :: ReadS [ListLogPatternsResponse]
readsPrec :: Int -> ReadS ListLogPatternsResponse
$creadsPrec :: Int -> ReadS ListLogPatternsResponse
Prelude.Read, Int -> ListLogPatternsResponse -> ShowS
[ListLogPatternsResponse] -> ShowS
ListLogPatternsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListLogPatternsResponse] -> ShowS
$cshowList :: [ListLogPatternsResponse] -> ShowS
show :: ListLogPatternsResponse -> String
$cshow :: ListLogPatternsResponse -> String
showsPrec :: Int -> ListLogPatternsResponse -> ShowS
$cshowsPrec :: Int -> ListLogPatternsResponse -> ShowS
Prelude.Show, forall x. Rep ListLogPatternsResponse x -> ListLogPatternsResponse
forall x. ListLogPatternsResponse -> Rep ListLogPatternsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListLogPatternsResponse x -> ListLogPatternsResponse
$cfrom :: forall x. ListLogPatternsResponse -> Rep ListLogPatternsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListLogPatternsResponse' 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:
--
-- 'logPatterns', 'listLogPatternsResponse_logPatterns' - The list of log patterns.
--
-- 'nextToken', 'listLogPatternsResponse_nextToken' - The token used to retrieve the next page of results. This value is
-- @null@ when there are no more results to return.
--
-- 'resourceGroupName', 'listLogPatternsResponse_resourceGroupName' - The name of the resource group.
--
-- 'httpStatus', 'listLogPatternsResponse_httpStatus' - The response's http status code.
newListLogPatternsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListLogPatternsResponse
newListLogPatternsResponse :: Int -> ListLogPatternsResponse
newListLogPatternsResponse Int
pHttpStatus_ =
  ListLogPatternsResponse'
    { $sel:logPatterns:ListLogPatternsResponse' :: Maybe [LogPattern]
logPatterns =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListLogPatternsResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:resourceGroupName:ListLogPatternsResponse' :: Maybe Text
resourceGroupName = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListLogPatternsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The list of log patterns.
listLogPatternsResponse_logPatterns :: Lens.Lens' ListLogPatternsResponse (Prelude.Maybe [LogPattern])
listLogPatternsResponse_logPatterns :: Lens' ListLogPatternsResponse (Maybe [LogPattern])
listLogPatternsResponse_logPatterns = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLogPatternsResponse' {Maybe [LogPattern]
logPatterns :: Maybe [LogPattern]
$sel:logPatterns:ListLogPatternsResponse' :: ListLogPatternsResponse -> Maybe [LogPattern]
logPatterns} -> Maybe [LogPattern]
logPatterns) (\s :: ListLogPatternsResponse
s@ListLogPatternsResponse' {} Maybe [LogPattern]
a -> ListLogPatternsResponse
s {$sel:logPatterns:ListLogPatternsResponse' :: Maybe [LogPattern]
logPatterns = Maybe [LogPattern]
a} :: ListLogPatternsResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The token used to retrieve the next page of results. This value is
-- @null@ when there are no more results to return.
listLogPatternsResponse_nextToken :: Lens.Lens' ListLogPatternsResponse (Prelude.Maybe Prelude.Text)
listLogPatternsResponse_nextToken :: Lens' ListLogPatternsResponse (Maybe Text)
listLogPatternsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLogPatternsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListLogPatternsResponse' :: ListLogPatternsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListLogPatternsResponse
s@ListLogPatternsResponse' {} Maybe Text
a -> ListLogPatternsResponse
s {$sel:nextToken:ListLogPatternsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListLogPatternsResponse)

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

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

instance Prelude.NFData ListLogPatternsResponse where
  rnf :: ListLogPatternsResponse -> ()
rnf ListLogPatternsResponse' {Int
Maybe [LogPattern]
Maybe Text
httpStatus :: Int
resourceGroupName :: Maybe Text
nextToken :: Maybe Text
logPatterns :: Maybe [LogPattern]
$sel:httpStatus:ListLogPatternsResponse' :: ListLogPatternsResponse -> Int
$sel:resourceGroupName:ListLogPatternsResponse' :: ListLogPatternsResponse -> Maybe Text
$sel:nextToken:ListLogPatternsResponse' :: ListLogPatternsResponse -> Maybe Text
$sel:logPatterns:ListLogPatternsResponse' :: ListLogPatternsResponse -> Maybe [LogPattern]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [LogPattern]
logPatterns
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
resourceGroupName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus