{-# 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.WAFV2.GetWebACL
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Retrieves the specified WebACL.
module Amazonka.WAFV2.GetWebACL
  ( -- * Creating a Request
    GetWebACL (..),
    newGetWebACL,

    -- * Request Lenses
    getWebACL_name,
    getWebACL_scope,
    getWebACL_id,

    -- * Destructuring the Response
    GetWebACLResponse (..),
    newGetWebACLResponse,

    -- * Response Lenses
    getWebACLResponse_applicationIntegrationURL,
    getWebACLResponse_lockToken,
    getWebACLResponse_webACL,
    getWebACLResponse_httpStatus,
  )
where

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
import Amazonka.WAFV2.Types

-- | /See:/ 'newGetWebACL' smart constructor.
data GetWebACL = GetWebACL'
  { -- | The name of the web ACL. You cannot change the name of a web ACL after
    -- you create it.
    GetWebACL -> Text
name :: Prelude.Text,
    -- | Specifies whether this is for an Amazon CloudFront distribution or for a
    -- regional application. A regional application can be an Application Load
    -- Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API,
    -- or an Amazon Cognito user pool.
    --
    -- To work with CloudFront, you must also specify the Region US East (N.
    -- Virginia) as follows:
    --
    -- -   CLI - Specify the Region when you use the CloudFront scope:
    --     @--scope=CLOUDFRONT --region=us-east-1@.
    --
    -- -   API and SDKs - For all calls, use the Region endpoint us-east-1.
    GetWebACL -> Scope
scope :: Scope,
    -- | The unique identifier for the web ACL. This ID is returned in the
    -- responses to create and list commands. You provide it to operations like
    -- update and delete.
    GetWebACL -> Text
id :: Prelude.Text
  }
  deriving (GetWebACL -> GetWebACL -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetWebACL -> GetWebACL -> Bool
$c/= :: GetWebACL -> GetWebACL -> Bool
== :: GetWebACL -> GetWebACL -> Bool
$c== :: GetWebACL -> GetWebACL -> Bool
Prelude.Eq, ReadPrec [GetWebACL]
ReadPrec GetWebACL
Int -> ReadS GetWebACL
ReadS [GetWebACL]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetWebACL]
$creadListPrec :: ReadPrec [GetWebACL]
readPrec :: ReadPrec GetWebACL
$creadPrec :: ReadPrec GetWebACL
readList :: ReadS [GetWebACL]
$creadList :: ReadS [GetWebACL]
readsPrec :: Int -> ReadS GetWebACL
$creadsPrec :: Int -> ReadS GetWebACL
Prelude.Read, Int -> GetWebACL -> ShowS
[GetWebACL] -> ShowS
GetWebACL -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetWebACL] -> ShowS
$cshowList :: [GetWebACL] -> ShowS
show :: GetWebACL -> String
$cshow :: GetWebACL -> String
showsPrec :: Int -> GetWebACL -> ShowS
$cshowsPrec :: Int -> GetWebACL -> ShowS
Prelude.Show, forall x. Rep GetWebACL x -> GetWebACL
forall x. GetWebACL -> Rep GetWebACL x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetWebACL x -> GetWebACL
$cfrom :: forall x. GetWebACL -> Rep GetWebACL x
Prelude.Generic)

-- |
-- Create a value of 'GetWebACL' 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:
--
-- 'name', 'getWebACL_name' - The name of the web ACL. You cannot change the name of a web ACL after
-- you create it.
--
-- 'scope', 'getWebACL_scope' - Specifies whether this is for an Amazon CloudFront distribution or for a
-- regional application. A regional application can be an Application Load
-- Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API,
-- or an Amazon Cognito user pool.
--
-- To work with CloudFront, you must also specify the Region US East (N.
-- Virginia) as follows:
--
-- -   CLI - Specify the Region when you use the CloudFront scope:
--     @--scope=CLOUDFRONT --region=us-east-1@.
--
-- -   API and SDKs - For all calls, use the Region endpoint us-east-1.
--
-- 'id', 'getWebACL_id' - The unique identifier for the web ACL. This ID is returned in the
-- responses to create and list commands. You provide it to operations like
-- update and delete.
newGetWebACL ::
  -- | 'name'
  Prelude.Text ->
  -- | 'scope'
  Scope ->
  -- | 'id'
  Prelude.Text ->
  GetWebACL
newGetWebACL :: Text -> Scope -> Text -> GetWebACL
newGetWebACL Text
pName_ Scope
pScope_ Text
pId_ =
  GetWebACL'
    { $sel:name:GetWebACL' :: Text
name = Text
pName_,
      $sel:scope:GetWebACL' :: Scope
scope = Scope
pScope_,
      $sel:id:GetWebACL' :: Text
id = Text
pId_
    }

-- | The name of the web ACL. You cannot change the name of a web ACL after
-- you create it.
getWebACL_name :: Lens.Lens' GetWebACL Prelude.Text
getWebACL_name :: Lens' GetWebACL Text
getWebACL_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetWebACL' {Text
name :: Text
$sel:name:GetWebACL' :: GetWebACL -> Text
name} -> Text
name) (\s :: GetWebACL
s@GetWebACL' {} Text
a -> GetWebACL
s {$sel:name:GetWebACL' :: Text
name = Text
a} :: GetWebACL)

-- | Specifies whether this is for an Amazon CloudFront distribution or for a
-- regional application. A regional application can be an Application Load
-- Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API,
-- or an Amazon Cognito user pool.
--
-- To work with CloudFront, you must also specify the Region US East (N.
-- Virginia) as follows:
--
-- -   CLI - Specify the Region when you use the CloudFront scope:
--     @--scope=CLOUDFRONT --region=us-east-1@.
--
-- -   API and SDKs - For all calls, use the Region endpoint us-east-1.
getWebACL_scope :: Lens.Lens' GetWebACL Scope
getWebACL_scope :: Lens' GetWebACL Scope
getWebACL_scope = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetWebACL' {Scope
scope :: Scope
$sel:scope:GetWebACL' :: GetWebACL -> Scope
scope} -> Scope
scope) (\s :: GetWebACL
s@GetWebACL' {} Scope
a -> GetWebACL
s {$sel:scope:GetWebACL' :: Scope
scope = Scope
a} :: GetWebACL)

-- | The unique identifier for the web ACL. This ID is returned in the
-- responses to create and list commands. You provide it to operations like
-- update and delete.
getWebACL_id :: Lens.Lens' GetWebACL Prelude.Text
getWebACL_id :: Lens' GetWebACL Text
getWebACL_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetWebACL' {Text
id :: Text
$sel:id:GetWebACL' :: GetWebACL -> Text
id} -> Text
id) (\s :: GetWebACL
s@GetWebACL' {} Text
a -> GetWebACL
s {$sel:id:GetWebACL' :: Text
id = Text
a} :: GetWebACL)

instance Core.AWSRequest GetWebACL where
  type AWSResponse GetWebACL = GetWebACLResponse
  request :: (Service -> Service) -> GetWebACL -> Request GetWebACL
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 GetWebACL
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetWebACL)))
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 Text
-> Maybe Text -> Maybe WebACL -> Int -> GetWebACLResponse
GetWebACLResponse'
            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
"ApplicationIntegrationURL")
            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
"LockToken")
            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
"WebACL")
            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 GetWebACL where
  hashWithSalt :: Int -> GetWebACL -> Int
hashWithSalt Int
_salt GetWebACL' {Text
Scope
id :: Text
scope :: Scope
name :: Text
$sel:id:GetWebACL' :: GetWebACL -> Text
$sel:scope:GetWebACL' :: GetWebACL -> Scope
$sel:name:GetWebACL' :: GetWebACL -> Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
name
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Scope
scope
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
id

instance Prelude.NFData GetWebACL where
  rnf :: GetWebACL -> ()
rnf GetWebACL' {Text
Scope
id :: Text
scope :: Scope
name :: Text
$sel:id:GetWebACL' :: GetWebACL -> Text
$sel:scope:GetWebACL' :: GetWebACL -> Scope
$sel:name:GetWebACL' :: GetWebACL -> Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Text
name
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Scope
scope
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
id

instance Data.ToHeaders GetWebACL where
  toHeaders :: GetWebACL -> 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
"AWSWAF_20190729.GetWebACL" :: 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 GetWebACL where
  toJSON :: GetWebACL -> Value
toJSON GetWebACL' {Text
Scope
id :: Text
scope :: Scope
name :: Text
$sel:id:GetWebACL' :: GetWebACL -> Text
$sel:scope:GetWebACL' :: GetWebACL -> Scope
$sel:name:GetWebACL' :: GetWebACL -> Text
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ forall a. a -> Maybe a
Prelude.Just (Key
"Name" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
name),
            forall a. a -> Maybe a
Prelude.Just (Key
"Scope" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Scope
scope),
            forall a. a -> Maybe a
Prelude.Just (Key
"Id" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
id)
          ]
      )

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

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

-- | /See:/ 'newGetWebACLResponse' smart constructor.
data GetWebACLResponse = GetWebACLResponse'
  { -- | The URL to use in SDK integrations with Amazon Web Services managed rule
    -- groups. For example, you can use the integration SDKs with the account
    -- takeover prevention managed rule group @AWSManagedRulesATPRuleSet@. This
    -- is only populated if you are using a rule group in your web ACL that
    -- integrates with your applications in this way. For more information, see
    -- <https://docs.aws.amazon.com/waf/latest/developerguide/waf-application-integration.html WAF client application integration>
    -- in the /WAF Developer Guide/.
    GetWebACLResponse -> Maybe Text
applicationIntegrationURL :: Prelude.Maybe Prelude.Text,
    -- | A token used for optimistic locking. WAF returns a token to your @get@
    -- and @list@ requests, to mark the state of the entity at the time of the
    -- request. To make changes to the entity associated with the token, you
    -- provide the token to operations like @update@ and @delete@. WAF uses the
    -- token to ensure that no changes have been made to the entity since you
    -- last retrieved it. If a change has been made, the update fails with a
    -- @WAFOptimisticLockException@. If this happens, perform another @get@,
    -- and use the new token returned by that operation.
    GetWebACLResponse -> Maybe Text
lockToken :: Prelude.Maybe Prelude.Text,
    -- | The web ACL specification. You can modify the settings in this web ACL
    -- and use it to update this web ACL or create a new one.
    GetWebACLResponse -> Maybe WebACL
webACL :: Prelude.Maybe WebACL,
    -- | The response's http status code.
    GetWebACLResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetWebACLResponse -> GetWebACLResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetWebACLResponse -> GetWebACLResponse -> Bool
$c/= :: GetWebACLResponse -> GetWebACLResponse -> Bool
== :: GetWebACLResponse -> GetWebACLResponse -> Bool
$c== :: GetWebACLResponse -> GetWebACLResponse -> Bool
Prelude.Eq, ReadPrec [GetWebACLResponse]
ReadPrec GetWebACLResponse
Int -> ReadS GetWebACLResponse
ReadS [GetWebACLResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetWebACLResponse]
$creadListPrec :: ReadPrec [GetWebACLResponse]
readPrec :: ReadPrec GetWebACLResponse
$creadPrec :: ReadPrec GetWebACLResponse
readList :: ReadS [GetWebACLResponse]
$creadList :: ReadS [GetWebACLResponse]
readsPrec :: Int -> ReadS GetWebACLResponse
$creadsPrec :: Int -> ReadS GetWebACLResponse
Prelude.Read, Int -> GetWebACLResponse -> ShowS
[GetWebACLResponse] -> ShowS
GetWebACLResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetWebACLResponse] -> ShowS
$cshowList :: [GetWebACLResponse] -> ShowS
show :: GetWebACLResponse -> String
$cshow :: GetWebACLResponse -> String
showsPrec :: Int -> GetWebACLResponse -> ShowS
$cshowsPrec :: Int -> GetWebACLResponse -> ShowS
Prelude.Show, forall x. Rep GetWebACLResponse x -> GetWebACLResponse
forall x. GetWebACLResponse -> Rep GetWebACLResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetWebACLResponse x -> GetWebACLResponse
$cfrom :: forall x. GetWebACLResponse -> Rep GetWebACLResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetWebACLResponse' 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:
--
-- 'applicationIntegrationURL', 'getWebACLResponse_applicationIntegrationURL' - The URL to use in SDK integrations with Amazon Web Services managed rule
-- groups. For example, you can use the integration SDKs with the account
-- takeover prevention managed rule group @AWSManagedRulesATPRuleSet@. This
-- is only populated if you are using a rule group in your web ACL that
-- integrates with your applications in this way. For more information, see
-- <https://docs.aws.amazon.com/waf/latest/developerguide/waf-application-integration.html WAF client application integration>
-- in the /WAF Developer Guide/.
--
-- 'lockToken', 'getWebACLResponse_lockToken' - A token used for optimistic locking. WAF returns a token to your @get@
-- and @list@ requests, to mark the state of the entity at the time of the
-- request. To make changes to the entity associated with the token, you
-- provide the token to operations like @update@ and @delete@. WAF uses the
-- token to ensure that no changes have been made to the entity since you
-- last retrieved it. If a change has been made, the update fails with a
-- @WAFOptimisticLockException@. If this happens, perform another @get@,
-- and use the new token returned by that operation.
--
-- 'webACL', 'getWebACLResponse_webACL' - The web ACL specification. You can modify the settings in this web ACL
-- and use it to update this web ACL or create a new one.
--
-- 'httpStatus', 'getWebACLResponse_httpStatus' - The response's http status code.
newGetWebACLResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetWebACLResponse
newGetWebACLResponse :: Int -> GetWebACLResponse
newGetWebACLResponse Int
pHttpStatus_ =
  GetWebACLResponse'
    { $sel:applicationIntegrationURL:GetWebACLResponse' :: Maybe Text
applicationIntegrationURL =
        forall a. Maybe a
Prelude.Nothing,
      $sel:lockToken:GetWebACLResponse' :: Maybe Text
lockToken = forall a. Maybe a
Prelude.Nothing,
      $sel:webACL:GetWebACLResponse' :: Maybe WebACL
webACL = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:GetWebACLResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The URL to use in SDK integrations with Amazon Web Services managed rule
-- groups. For example, you can use the integration SDKs with the account
-- takeover prevention managed rule group @AWSManagedRulesATPRuleSet@. This
-- is only populated if you are using a rule group in your web ACL that
-- integrates with your applications in this way. For more information, see
-- <https://docs.aws.amazon.com/waf/latest/developerguide/waf-application-integration.html WAF client application integration>
-- in the /WAF Developer Guide/.
getWebACLResponse_applicationIntegrationURL :: Lens.Lens' GetWebACLResponse (Prelude.Maybe Prelude.Text)
getWebACLResponse_applicationIntegrationURL :: Lens' GetWebACLResponse (Maybe Text)
getWebACLResponse_applicationIntegrationURL = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetWebACLResponse' {Maybe Text
applicationIntegrationURL :: Maybe Text
$sel:applicationIntegrationURL:GetWebACLResponse' :: GetWebACLResponse -> Maybe Text
applicationIntegrationURL} -> Maybe Text
applicationIntegrationURL) (\s :: GetWebACLResponse
s@GetWebACLResponse' {} Maybe Text
a -> GetWebACLResponse
s {$sel:applicationIntegrationURL:GetWebACLResponse' :: Maybe Text
applicationIntegrationURL = Maybe Text
a} :: GetWebACLResponse)

-- | A token used for optimistic locking. WAF returns a token to your @get@
-- and @list@ requests, to mark the state of the entity at the time of the
-- request. To make changes to the entity associated with the token, you
-- provide the token to operations like @update@ and @delete@. WAF uses the
-- token to ensure that no changes have been made to the entity since you
-- last retrieved it. If a change has been made, the update fails with a
-- @WAFOptimisticLockException@. If this happens, perform another @get@,
-- and use the new token returned by that operation.
getWebACLResponse_lockToken :: Lens.Lens' GetWebACLResponse (Prelude.Maybe Prelude.Text)
getWebACLResponse_lockToken :: Lens' GetWebACLResponse (Maybe Text)
getWebACLResponse_lockToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetWebACLResponse' {Maybe Text
lockToken :: Maybe Text
$sel:lockToken:GetWebACLResponse' :: GetWebACLResponse -> Maybe Text
lockToken} -> Maybe Text
lockToken) (\s :: GetWebACLResponse
s@GetWebACLResponse' {} Maybe Text
a -> GetWebACLResponse
s {$sel:lockToken:GetWebACLResponse' :: Maybe Text
lockToken = Maybe Text
a} :: GetWebACLResponse)

-- | The web ACL specification. You can modify the settings in this web ACL
-- and use it to update this web ACL or create a new one.
getWebACLResponse_webACL :: Lens.Lens' GetWebACLResponse (Prelude.Maybe WebACL)
getWebACLResponse_webACL :: Lens' GetWebACLResponse (Maybe WebACL)
getWebACLResponse_webACL = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetWebACLResponse' {Maybe WebACL
webACL :: Maybe WebACL
$sel:webACL:GetWebACLResponse' :: GetWebACLResponse -> Maybe WebACL
webACL} -> Maybe WebACL
webACL) (\s :: GetWebACLResponse
s@GetWebACLResponse' {} Maybe WebACL
a -> GetWebACLResponse
s {$sel:webACL:GetWebACLResponse' :: Maybe WebACL
webACL = Maybe WebACL
a} :: GetWebACLResponse)

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

instance Prelude.NFData GetWebACLResponse where
  rnf :: GetWebACLResponse -> ()
rnf GetWebACLResponse' {Int
Maybe Text
Maybe WebACL
httpStatus :: Int
webACL :: Maybe WebACL
lockToken :: Maybe Text
applicationIntegrationURL :: Maybe Text
$sel:httpStatus:GetWebACLResponse' :: GetWebACLResponse -> Int
$sel:webACL:GetWebACLResponse' :: GetWebACLResponse -> Maybe WebACL
$sel:lockToken:GetWebACLResponse' :: GetWebACLResponse -> Maybe Text
$sel:applicationIntegrationURL:GetWebACLResponse' :: GetWebACLResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
applicationIntegrationURL
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
lockToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe WebACL
webACL
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus