amazonka-waf-2.0: Amazon WAF SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.WAF.GetWebACL

Description

This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.

For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version, AWS WAF has a single set of endpoints for regional and global use.

Returns the WebACL that is specified by WebACLId.

Synopsis

Creating a Request

data GetWebACL Source #

See: newGetWebACL smart constructor.

Constructors

GetWebACL' 

Fields

  • webACLId :: Text

    The WebACLId of the WebACL that you want to get. WebACLId is returned by CreateWebACL and by ListWebACLs.

Instances

Instances details
ToJSON GetWebACL Source # 
Instance details

Defined in Amazonka.WAF.GetWebACL

ToHeaders GetWebACL Source # 
Instance details

Defined in Amazonka.WAF.GetWebACL

Methods

toHeaders :: GetWebACL -> [Header] #

ToPath GetWebACL Source # 
Instance details

Defined in Amazonka.WAF.GetWebACL

ToQuery GetWebACL Source # 
Instance details

Defined in Amazonka.WAF.GetWebACL

AWSRequest GetWebACL Source # 
Instance details

Defined in Amazonka.WAF.GetWebACL

Associated Types

type AWSResponse GetWebACL #

Generic GetWebACL Source # 
Instance details

Defined in Amazonka.WAF.GetWebACL

Associated Types

type Rep GetWebACL :: Type -> Type #

Read GetWebACL Source # 
Instance details

Defined in Amazonka.WAF.GetWebACL

Show GetWebACL Source # 
Instance details

Defined in Amazonka.WAF.GetWebACL

NFData GetWebACL Source # 
Instance details

Defined in Amazonka.WAF.GetWebACL

Methods

rnf :: GetWebACL -> () #

Eq GetWebACL Source # 
Instance details

Defined in Amazonka.WAF.GetWebACL

Hashable GetWebACL Source # 
Instance details

Defined in Amazonka.WAF.GetWebACL

type AWSResponse GetWebACL Source # 
Instance details

Defined in Amazonka.WAF.GetWebACL

type Rep GetWebACL Source # 
Instance details

Defined in Amazonka.WAF.GetWebACL

type Rep GetWebACL = D1 ('MetaData "GetWebACL" "Amazonka.WAF.GetWebACL" "amazonka-waf-2.0-7D7QOxIEZeF1ayfX9AzEZC" 'False) (C1 ('MetaCons "GetWebACL'" 'PrefixI 'True) (S1 ('MetaSel ('Just "webACLId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newGetWebACL Source #

Arguments

:: Text

GetWebACL

-> GetWebACL 

Create a value of GetWebACL with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

GetWebACL, getWebACL_webACLId - The WebACLId of the WebACL that you want to get. WebACLId is returned by CreateWebACL and by ListWebACLs.

Request Lenses

getWebACL_webACLId :: Lens' GetWebACL Text Source #

The WebACLId of the WebACL that you want to get. WebACLId is returned by CreateWebACL and by ListWebACLs.

Destructuring the Response

data GetWebACLResponse Source #

See: newGetWebACLResponse smart constructor.

Constructors

GetWebACLResponse' 

Fields

  • webACL :: Maybe WebACL

    Information about the WebACL that you specified in the GetWebACL request. For more information, see the following topics:

    • WebACL: Contains DefaultAction, MetricName, Name, an array of Rule objects, and WebACLId
    • DefaultAction (Data type is WafAction): Contains Type
    • Rules: Contains an array of ActivatedRule objects, which contain Action, Priority, and RuleId
    • Action: Contains Type
  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic GetWebACLResponse Source # 
Instance details

Defined in Amazonka.WAF.GetWebACL

Associated Types

type Rep GetWebACLResponse :: Type -> Type #

Read GetWebACLResponse Source # 
Instance details

Defined in Amazonka.WAF.GetWebACL

Show GetWebACLResponse Source # 
Instance details

Defined in Amazonka.WAF.GetWebACL

NFData GetWebACLResponse Source # 
Instance details

Defined in Amazonka.WAF.GetWebACL

Methods

rnf :: GetWebACLResponse -> () #

Eq GetWebACLResponse Source # 
Instance details

Defined in Amazonka.WAF.GetWebACL

type Rep GetWebACLResponse Source # 
Instance details

Defined in Amazonka.WAF.GetWebACL

type Rep GetWebACLResponse = D1 ('MetaData "GetWebACLResponse" "Amazonka.WAF.GetWebACL" "amazonka-waf-2.0-7D7QOxIEZeF1ayfX9AzEZC" 'False) (C1 ('MetaCons "GetWebACLResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "webACL") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe WebACL)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newGetWebACLResponse Source #

Create a value of GetWebACLResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:webACL:GetWebACLResponse', getWebACLResponse_webACL - Information about the WebACL that you specified in the GetWebACL request. For more information, see the following topics:

  • WebACL: Contains DefaultAction, MetricName, Name, an array of Rule objects, and WebACLId
  • DefaultAction (Data type is WafAction): Contains Type
  • Rules: Contains an array of ActivatedRule objects, which contain Action, Priority, and RuleId
  • Action: Contains Type

$sel:httpStatus:GetWebACLResponse', getWebACLResponse_httpStatus - The response's http status code.

Response Lenses

getWebACLResponse_webACL :: Lens' GetWebACLResponse (Maybe WebACL) Source #

Information about the WebACL that you specified in the GetWebACL request. For more information, see the following topics:

  • WebACL: Contains DefaultAction, MetricName, Name, an array of Rule objects, and WebACLId
  • DefaultAction (Data type is WafAction): Contains Type
  • Rules: Contains an array of ActivatedRule objects, which contain Action, Priority, and RuleId
  • Action: Contains Type

getWebACLResponse_httpStatus :: Lens' GetWebACLResponse Int Source #

The response's http status code.